1import{usePDF as i,VuePDF as p}from"./BS3zUhTX.js";import{aD as u,cj as _,dm as h,bJ as a,at as t,F as g,bX as P,ay as x,cv as s,am as C,W as b}from"./DtGgvzh8.js";const v={class:"flex w-full flex-col gap-3"},D=u({__name:"ChatPdfDocument",props:{src:{},maxPages:{default:1}},emits:["ready","failed"],setup(d,{emit:m}){const o=d,r=m,{pdf:f,pages:c}=i(_(o,"src"),{onError:()=>r("failed")}),l=C(()=>Math.min(c.value,o.maxPages));return h(c,e=>{e>0&&r("ready",e)},{immediate:!0}),(e,w)=>(a(),t("div",v,[(a(!0),t(g,null,P(s(l),n=>(a(),t("div",{key:n,class:"chat-pdf-page w-full bg-white"},[x(s(p),{pdf:s(f),page:n,"fit-parent":""},null,8,["pdf","page"])]))),128))]))}}),k=Object.assign(b(D,[["__scopeId","data-v-a4fa7db5"]]),{__name:"CommonChatCardsChatPdfDocument"});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.