import{d as g,Z as x,a as i,ah as I,u as n,n as k,m as w,A as R,B,f as S,k as V,g as E,y as L,_ as P}from"./index-BOXClPvw.js";const y=["element-loading-text"],D=["src"],A=g({name:"FrameView",__name:"frameView",props:{frameInfo:{}},setup(v){var m,u,d;const o=v,{t:h}=x(),f=i(!0),t=I(),r=i(""),l=i(null);(m=n(t.meta))!=null&&m.frameSrc&&(r.value=(u=n(t.meta))==null?void 0:u.frameSrc),((d=n(t.meta))==null?void 0:d.frameLoading)===!1&&c();function c(){f.value=!1}function p(){L(()=>{const e=n(l);if(!e)return;const a=e;a.attachEvent?a.attachEvent("onload",()=>{c()}):e.onload=()=>{c()}})}return k(()=>t.fullPath,e=>{var a,s,_;t.name==="Redirect"&&e.includes((a=o.frameInfo)==null?void 0:a.fullPath)&&(r.value=e,f.value=!0),((s=o.frameInfo)==null?void 0:s.fullPath)===e&&(r.value=(_=o.frameInfo)==null?void 0:_.frameSrc)}),w(()=>{p()}),(e,a)=>{const s=R("loading");return B((S(),V("div",{class:"frame","element-loading-text":n(h)("status.pureLoad")},[E("iframe",{ref_key:"frameRef",ref:l,src:r.value,class:"frame-iframe"},null,8,D)],8,y)),[[s,f.value]])}}}),F=P(A,[["__scopeId","data-v-724f2843"]]);export{F as default};