import{p as h,u as y,_ as v}from"./index.js";import{u as x}from"./useContentViewHeight-1771cd5b.js";import{y as w}from"./antd-0679333d.js";import{d as H,f as a,c as S,u as e,Z as R,_ as k,k as z,a5 as C,ad as l,a1 as u,$}from"./vue-72a104e4.js";import{u as B}from"./useWindowSizeFn-1db11f4f.js";const L=["src"],E=H({__name:"index",props:{frameSrc:h.string.def("")},setup(m){const n=a(!0),p=a(50),i=a(window.innerHeight),o=a(),{headerHeightRef:d}=x(),{prefixCls:r}=y("iframe-page");B(f,{wait:150,immediate:!0});const c=S(()=>({height:`${e(i)}px`}));function f(){const s=e(o);if(!s)return;const t=d.value;p.value=t,i.value=window.innerHeight-t;const g=document.documentElement.clientHeight-t;s.style.height=`${g}px`}function _(){n.value=!1,f()}return(s,t)=>(R(),k("div",{class:u(e(r)),style:l(c.value)},[z(e(w),{spinning:n.value,size:"large",style:l(c.value)},{default:C(()=>[$("iframe",{src:m.frameSrc,class:u(`${e(r)}__main`),ref_key:"frameRef",ref:o,onLoad:_},null,42,L)]),_:1},8,["spinning","style"])],6))}});const I=v(E,[["__scopeId","data-v-c7e0c85f"]]);export{I as default};
