1import{_ as i,o as n,c,a as h,h as m}from"./zFQdoL8e.js";const l={props:{url:{type:String,default:null}},data(){return{iframeHeight:200}},computed:{iframeSrc(){const t=/\/infogram\.com\/(.*)/,e=this.url.match(t)[1];let s="https://e.infogram.com/"+e;return s+=e.includes("?")?"&src=embed":"?src=embed",s}},beforeUnmount(){window.removeEventListener("message",this.handleMessages)},mounted(){window.addEventListener("message",this.handleMessages)},methods:{handleMessages(t){let e="";try{e=JSON.parse(t.data)}catch{return}if(e.context!=="iframe.resize")return!1;console.log("INFOGRAM RESIZE,",e);const s=e.src.split("?")[0],o=this.url.split("?")[0];e.height&&(s===o||e.src===this.iframeSrc)&&(console.log("INFOGRAM RESIZE IN!",this.iframeSrc),console.log("set flourish height to",e.height),this.iframeHeight=e.height)}}},g={class:"flourish-embed"},d=["src","height"];function f(t,e,s,o,r,a){return n(),c("div",g,[h("iframe",{src:a.iframeSrc,height:r.iframeHeight,style:m([{height:r.iframeHeight+"px",width:"100%"},{border:"none"}]),scrolling:"no",frameborder:"0"},null,12,d)])}const p=Object.assign(i(l,[["render",f]]),{__name:"InfogramEmbed"});export{p 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.