1import{d as l,z as c,a as n,o as a,e as m,m as u,h as f,A as h,j as g,k as p}from"../../entry/js/main-DqXmKUqu.js";const I=["id","src","height"],B=60,F=l({__name:"DocGenericIframe.async",props:{iFrameId:{default:c()},iFrameName:{default:"doc generic iFrame"},initialHeight:{default:"750"},initialMinWidth:{default:"850"},initialMaxWidth:{default:"1300"},src:{default:""},isPrint:{type:Boolean,default:!0},isResizable:{type:Boolean,default:!0},printButtonDescription:{default:"Print"}},setup(r){const e=r,o=n(()=>e.initialHeight);n(()=>e.initialMinWidth),n(()=>e.initialMaxWidth);function s(){var t;(t=document.getElementById(e.iFrameId).contentWindow)==null||t.print()}function d(){if(e.isResizable)try{const i=document.getElementById(e.iFrameId);i.contentDocument&&(i.height=(i.contentDocument.body.offsetHeight+B).toString())}catch{var t=document.getElementById(e.iFrameId).offsetWidth;t<480?document.getElementById(e.iFrameId).height=(parseInt(e.initialHeight)*.5).toString():t<768&&(document.getElementById(e.iFrameId).height=(parseInt(e.initialHeight)*.667).toString())}}return(t,i)=>(a(),m("div",null,[t.isPrint?(a(),u(f(h),{key:0,class:"float-right",theme:"primary",size:"small",text:t.printButtonDescription,onClick:s},null,8,["text"])):g("",!0),p("iframe",{id:t.iFrameId,src:t.src,name:"iFrameName",frameborder:"0",allowfullscreen:"",height:o.value,onLoad:d},null,40,I)]))}});export{F 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.