1import{M as p,bE as d,u as n,v as _,F as y,aX as I,q as m,a_ as w,aL as o,bL as c,I as k,bJ as b,bB as v,h as O,aU as L,as as x}from"./@vue-C6_P5-bq.js";import{u as B}from"./vue-router-B8du_y4b.js";const R={class:"layout-padding layout-padding-unset layout-iframe"},E={class:"layout-padding-auto layout-padding-view"},P=["src","data-url"],S=p({name:"layoutIframeView"}),C=p({...S,props:{refreshKey:{type:String,default:()=>""},name:{type:String,default:()=>"slide-right"},list:{type:Array,default:()=>[]}},setup(f){const r=f,l=L(),i=B(),h=m(()=>r.list.filter(e=>{var a;return(a=e.meta)==null?void 0:a.isIframeOpen})),g=m(()=>i.path),u=(e,a)=>{x(()=>{if(!l.value)return!1;l.value.forEach(s=>{s.dataset.url===e&&(s.onload=()=>{var t;(t=a.meta)!=null&&t.isIframeOpen&&a.meta.loading&&(a.meta.loading=!1)})})})};return d(()=>i.fullPath,e=>{const a=r.list.find(s=>s.path===e);if(!a)return!1;a.meta.isIframeOpen||(a.meta.isIframeOpen=!0),u(e,a)},{immediate:!0}),d(()=>r.refreshKey,()=>{const e=r.list.find(a=>a.path===i.path);if(!e)return!1;e.meta.isIframeOpen&&(e.meta.isIframeOpen=!1),setTimeout(()=>{e.meta.isIframeOpen=!0,e.meta.loading=!0,u(i.fullPath,e)})},{deep:!0}),(e,a)=>{const s=w("loading");return o(),n("div",R,[_("div",E,[(o(!0),n(y,null,I(h.value,t=>c((o(),n("div",{class:"w100",key:t.path,"element-loading-background":"white"},[k(O,{name:f.name},{default:b(()=>[c((o(),n("iframe",{src:t.meta.isLink,key:t.path,frameborder:"0",height:"100%",width:"100%",style:{position:"absolute"},"data-url":t.path,ref_for:!0,ref_key:"iframeRef",ref:l},null,8,P)),[[v,g.value===t.path]])]),_:2},1032,["name"])])),[[s,t.meta.loading]])),128))])])}}});export{C as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.