1import{e as h,r as i,m as d,f as p,J as g,c as _,q as y,l as t,o as b,a as w,n as v,s as x}from"#entry";const B=["src"],C=h({__name:"Iframe",props:{url:{default:""},border:{type:Boolean,default:!1},data:{default:()=>({url:"",border:!1})}},setup(f){const r=f,c=i(null),s=i("600px"),n=d(()=>r.data?.url||r.url||""),m=d(()=>r.data?.border??r.border??!1),o=l=>{let e=l.data;if(typeof e=="string")try{e=JSON.parse(e)}catch{}if(e?.type==="resize-iframe"&&e?.height!=null){const a=e.height,u=typeof a=="number"?`${a}px`:String(a).endsWith("px")?String(a):`${a}px`;s.value=u}};return p(()=>{window.addEventListener("message",o)}),g(()=>{window.removeEventListener("message",o)}),(l,e)=>t(n)?(b(),_("div",{key:0,class:x(["col-span-10 w-full overflow-hidden rounded-lg",t(m)?"border border-[#C6CED6]":""])},[w("iframe",{ref_key:"iframeRef",ref:c,src:t(n),class:"w-full border-0 transition-[height] duration-150",style:v({height:t(s)}),loading:"lazy"},null,12,B)],2)):y("",!0)}}),k=Object.assign(C,{__name:"SectionIframe"});export{k 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.