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{ad as _,r as u,A as m,u as g,__tla as d}from"./index-b5895273.js";import{u as w,__tla as v}from"./useWindowSizeFn-a59bee15.js";let f,H,y=Promise.all([(()=>{try{return d}catch(o){}})(),(()=>{try{return v}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}},f=function(){const t=u(window.innerHeight),i=u(window.innerHeight),a=m(()=>g(t)-g(n)-g(r)||0);w(()=>{t.value=window.innerHeight},100,{immediate:!0});function s(e){return l(this,null,function*(){i.value=e})}c({contentHeight:a,setPageHeight:s,pageHeight:i})}}));export{y as __tla,f as a,H as u};
|