import{a as _,b1 as v,r as t,b,f as x,o as y,h as w,j as H,p as k,i as S,n as c,k as e,aX as l,d7 as z,aH as R}from"./index.bde7963b.js";import{u as C}from"./useWindowSizeFn.ada338ad.js";import{u as B}from"./useContentViewHeight.9a4f8bdd.js";const L=["src"],$=_({__name:"index",props:{frameSrc:v.string.def("")},setup(p){const i=t(!0),g=t(50),s=t(window.innerHeight),o=t(),{headerHeightRef:m}=B(),{prefixCls:r}=b("iframe-page");C(f,150,{immediate:!0});const d=x(()=>({height:`${e(s)}px`}));function f(){const n=e(o);if(!n)return;const a=m.value;g.value=a,s.value=window.innerHeight-a;const h=document.documentElement.clientHeight-a;n.style.height=`${h}px`}function u(){i.value=!1,f()}return(n,a)=>(y(),w("div",{class:c(e(r)),style:l(e(d))},[H(e(z),{spinning:i.value,size:"large",style:l(e(d))},{default:k(()=>[S("iframe",{src:p.frameSrc,class:c(`${e(r)}__main`),ref_key:"frameRef",ref:o,onLoad:u},null,42,L)]),_:1},8,["spinning","style"])],6))}});var V=R($,[["__scopeId","data-v-179381bf"]]);export{V as default};
