var d=(e,u,t)=>new Promise((i,l)=>{var o=a=>{try{r(t.next(a))}catch(s){l(s)}},c=a=>{try{r(t.throw(a))}catch(s){l(s)}},r=a=>a.done?i(a.value):Promise.resolve(a.value).then(o,c);r((t=t.apply(e,u)).next())});import{E as x,i as H,_ as $,__tla as k}from"./index-f0df2f76.js";import{u as E,__tla as R}from"./useContentViewHeight-c315421e.js";import{Y as S}from"./antd-057b41b1.js";import{d as z,k as f,e as C,u as n,_ as I,$ as L,f as B,a9 as P,a3 as Y,a0 as h,af as g}from"./vue-1631514e.js";import{u as b,__tla as j}from"./useWindowSizeFn-53b82e7c.js";let v,q=Promise.all([(()=>{try{return k}catch(e){}})(),(()=>{try{return R}catch(e){}})(),(()=>{try{return j}catch(e){}})()]).then(()=>d(void 0,null,function*(){const e=["src"],u=z({__name:"index",props:{frameSrc:x.string.def("")},setup(t){const i=f(!0),l=f(50),o=f(window.innerHeight),c=f(),{headerHeightRef:r}=E(),{prefixCls:a}=H("iframe-page");b(p,{wait:150,immediate:!0});const s=C(()=>({height:`${n(o)}px`}));function p(){const m=n(c);if(!m)return;const _=r.value;l.value=_,o.value=window.innerHeight-_;const w=document.documentElement.clientHeight-_;m.style.height=`${w}px`}function y(){i.value=!1,p()}return(m,_)=>(I(),L("div",{class:h(n(a)),style:g(s.value)},[B(n(S),{spinning:i.value,size:"large",style:g(s.value)},{default:P(()=>[Y("iframe",{src:t.frameSrc,class:h(`${n(a)}__main`),ref_key:"frameRef",ref:c,onLoad:y},null,42,e)]),_:1},8,["spinning","style"])],6))}});v=$(u,[["__scopeId","data-v-c7e0c85f"]])}));export{q as __tla,v as default};