useContentViewHeight-d0a5c58e.js 840 Bytes
var H=(t,i,e)=>new Promise((a,o)=>{var f=n=>{try{u(e.next(n))}catch(s){o(s)}},m=n=>{try{u(e.throw(n))}catch(s){o(s)}},u=n=>n.done?a(n.value):Promise.resolve(n.value).then(f,m);u((e=e.apply(t,i)).next())});import{k as r,e as w,u as c}from"./vue-5a35c3f5.js";import{s as d}from"./index.js";import{u as p}from"./useWindowSizeFn-cc2fb57c.js";const l=Symbol();function v(t){return d(t,l,{native:!0})}const g=r(0),h=r(0);function F(){function t(e){g.value=e}function i(e){h.value=e}return{headerHeightRef:g,footerHeightRef:h,setHeaderHeight:t,setFooterHeight:i}}function P(){const t=r(window.innerHeight),i=r(window.innerHeight),e=w(()=>c(t)-c(g)-c(h)||0);p(()=>{t.value=window.innerHeight},{wait:100,immediate:!0});function a(o){return H(this,null,function*(){i.value=o})}v({contentHeight:e,setPageHeight:a,pageHeight:i})}export{F as a,P as u};