var e=Object.defineProperty,r=Object.defineProperties,a=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,s=(r,a,t)=>a in r?e(r,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[a]=t;import{_ as l}from"./vendor-element-CbJWrKZ5.js";import{K as f}from"./index-DOwSoTEN.js";import{q as c,bz as i,r as m,R as p,F as u,u as b,t as d,v,A as y}from"./vendor-core-DQkwEQyE.js";const j={class:"box-border w-full h-full"},O=["src"],h=c((w=((e,r)=>{for(var a in r||(r={}))o.call(r,a)&&s(e,a,r[a]);if(t)for(var a of t(r))n.call(r,a)&&s(e,a,r[a]);return e})({},{name:"IframeView"}),r(w,a({__name:"Iframe",setup(e){const r=i(),a=m(!0),t=m(""),o=m(null);p(()=>{const e=f.getInstance().findByPath(r.path);(null==e?void 0:e.meta)&&(t.value=e.meta.link||"")});const n=()=>{a.value=!1};return(e,r)=>{const s=l;return u((v(),d("div",j,[y("iframe",{ref_key:"iframeRef",ref:o,src:b(t),frameborder:"0",class:"w-full h-full min-h-[calc(100vh-120px)] border-none",onLoad:n},null,40,O)])),[[s,b(a)]])}}}))));var w;export{h as default};
