import{b as m,u as p,p as o,O as g,f as e,H as h,ac as x,K as k,o as w,c as y,a as R,y as V,_ as B}from"./index.4d3e3847.js";const E=["element-loading-text"],L=["src"],S=m({name:"FrameView"}),D=m({...S,setup(I){var f,_,l;const{t:u}=p(),r=o(!0),t=g(),c=o(""),i=o(null);(f=e(t.meta))!=null&&f.frameSrc&&(c.value=(_=e(t.meta))==null?void 0:_.frameSrc),((l=e(t.meta))==null?void 0:l.frameLoading)===!1&&s();function s(){r.value=!1}function d(){V(()=>{const a=e(i);if(!a)return;const n=a;n.attachEvent?n.attachEvent("onload",()=>{s()}):a.onload=()=>{s()}})}return h(()=>{d()}),(a,n)=>{const v=x("loading");return k((w(),y("div",{class:"frame","element-loading-text":e(u)("status.hsLoad")},[R("iframe",{src:c.value,class:"frame-iframe",ref_key:"frameRef",ref:i},null,8,L)],8,E)),[[v,r.value]])}}});const C=B(D,[["__scopeId","data-v-02537a84"]]);export{C as default};
