Ben Lin
2024-05-01 532e24e6c347c56757124f627945b73c5c637ff5
1
var l=(o,c,n)=>new Promise((r,t)=>{var i=e=>{try{s(n.next(e))}catch(h){t(h)}},a=e=>{try{s(n.throw(e))}catch(h){t(h)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,a);s((n=n.apply(o,c)).next())});import{R as _,__tla as m}from"./index-f0df2f76.js";import{u as w,__tla as d}from"./useWindowSizeFn-53b82e7c.js";import{k as u,e as p,u as f}from"./vue-1631514e.js";let g,H,v=Promise.all([(()=>{try{return m}catch(o){}})(),(()=>{try{return d}catch(o){}})()]).then(()=>l(void 0,null,function*(){const o=Symbol();function c(t){return _(t,o,{native:!0})}const n=u(0),r=u(0);H=function(){function t(a){n.value=a}function i(a){r.value=a}return{headerHeightRef:n,footerHeightRef:r,setHeaderHeight:t,setFooterHeight:i}},g=function(){const t=u(window.innerHeight),i=u(window.innerHeight),a=p(()=>f(t)-f(n)-f(r)||0);w(()=>{t.value=window.innerHeight},{wait:100,immediate:!0});function s(e){return l(this,null,function*(){i.value=e})}c({contentHeight:a,setPageHeight:s,pageHeight:i})}}));export{v as __tla,g as a,H as u};