PageSourceSearch

https://www.embedpdf.com/_next/static/chunks/9182.665ff46557ce63f5.js

js embedpdf.com collected 2026-09-25 21:54:16 UTC 5,709 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9182],{29192:(e,t,r)=>{r.d(t,{L:()=>a});let a=(0,r(97155).c)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},33241:(e,t,r)=>{r.d(t,{P7:()=>c,Pr:()=>s,Tx:()=>o,fw:()=>u});var a=r(86267),l=r(86242),n=r(74486),i=r(72086),d=r(96468);let o=()=>(0,a.US)(l.n_.id),u=e=>{let{provides:t}=o();return{provides:(0,n.EW)(()=>{var r,a;let l=(0,i.BA)(e);return null!=(a=null==(r=t.value)?void 0:r.forDocument(l))?a:null})}},s=(0,n.pM)({__name:"print",setup(e){let t,r=(0,i.KR)(null),d=(0,i.KR)(null),{provides:u}=o(),{plugin:s}=(0,a.nu)(l.n_.id);return(0,n.sV)(()=>{u.value&&s.value&&(t=s.value.onPrintRequest(e=>{let{buffer:t,task:a}=e,l=r.value;if(!l)return;d.value&&(URL.revokeObjectURL(d.value),d.value=null);let n=URL.createObjectURL(new Blob([t],{type:"application/pdf"}));d.value=n,l.onload=()=>{var e,r;l.src===n&&(a.progress({stage:"iframe-ready",message:"Ready to print"}),null==(e=l.contentWindow)||e.focus(),null==(r=l.contentWindow)||r.print(),a.progress({stage:"printing",message:"Print dialog opened"}),a.resolve(t))},l.src=n}))}),(0,n.hi)(()=>{null==t||t(),d.value&&URL.revokeObjectURL(d.value)}),(e,t)=>((0,n.uX)(),(0,n.CE)("iframe",{ref_key:"iframeRef",ref:r,title:"Print Document",src:"about:blank",style:{position:"absolute",display:"none"}},null,512))}}),c=(0,d.MK)(l.P7).addUtility(s).build()},57374:(e,t,r)=>{r.d(t,{P:()=>a});let a=(0,r(97155).c)("printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]])},59182:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_});var a=r(74486),l=r(72086),n=r(35715),i=r(8205),d=r(86267),o=r(96468),u=r(32087),s=r(928),c=r(30673),p=r(15686),g=r(33241),v=r(29192),m=r(57374);let k={class:"overflow-hidden rounded-lg border border-gray-300 bg-white shadow-sm dark:border-gray-700 dark:bg-gray-900"},h={class:"flex items-center gap-3 border-b border-gray-300 bg-gray-100 px-3 py-2 dark:border-gray-700 dark:bg-gray-800"},b=["disabled"],y={key:0,class:"text-xs text-gray-600 dark:text-gray-300"},w={key:1,class:"animate-pulse text-xs text-blue-600 dark:text-blue-400"},f={class:"relative h-[400px] sm:h-[500px]"},x=(0,a.pM)({__name:"print-example-content",props:{documentId:{}},setup(e){let{provides:t}=(0,g.fw)(()=>e.documentId),r=(0,l.KR)(!1),i=()=>{t.value&&!r.value&&(r.value=!0,t.value.print().wait(()=>{r.value=!1},()=>{r.value=!1}))};return(d,o)=>((0,a.uX)(),(0,a.CE)("div",k,[(0,a.Lk)("div",h,[(0,a.Lk)("button",{onClick:i,disabled:!(0,l.R1)(t)||r.value,class:"inline-flex items-center gap-2 rounded-md bg-blue-500 px-3 py-1.5 text-sm font-medium text-white shadow-sm transition-all hover:bg-blue-600 disabled:cursor-not-allowed disabled:opacity-50"},[r.value?((0,a.uX)(),(0,a.Wv)((0,l.R1)(v.L),{key:0,size:16,class:"animate-spin"})):((0,a.uX)(),(0,a.Wv)((0,l.R1)(m.P),{key:1,size:16})),(0,a.eW)(" "+(0,n.v_)(r.value?"Preparing...":"Print Document"),1)],8,b),r.value?(0,a.Q3)("",!0):((0,a.uX)(),(0,a.CE)("span",y," Opens your system print dialog ")),r.value?((0,a.uX)(),(0,a.CE)("span",w," Rendering pages for print... ")):(0,a.Q3)("",!0)]),(0,a.Lk)("div",f,[(0,a.bF)((0,l.R1)(s.LM),{"document-id":e.documentId,class:"absolute inset-0 bg-gray-200 dark:bg-gray-800"},{default:(0,a.k6)(()=>[(0,a.bF)((0,l.R1)(c.HO),{"document-id":e.documentId},{default:(0,a.k6)(t=>{let{page:r}=t;return[(0,a.Lk)("div",{style:(0,n.Tr)({width:r.width+"px",height:r.height+"px",position:"relative"})},[(0,a.bF)((0,l.R1)(p.er),{"document-id":e.documentId,"page-index":r.pageIndex},null,8,["document-id","page-index"])],4)]}),_:1},8,["document-id"])]),_:1},8,["document-id"])])]))}}),R={key:0},_=(0,a.pM)({__name:"print-example",setup(e){let{engine:t,isLoading:r}=(0,i.tQ)(),n=[(0,o.Pe)(u.Et,{initialDocuments:[{url:"https://snippet.embedpdf.com/ebook.pdf"}]}),(0,o.Pe)(s.qC),(0,o.Pe)(c.PH),(0,o.Pe)(p.iz),(0,o.Pe)(g.P7)];return(e,i)=>(0,l.R1)(r)||!(0,l.R1)(t)?((0,a.uX)(),(0,a.CE)("div",R,"Loading PDF Engine...")):((0,a.uX)(),(0,a.Wv)((0,l.R1)(d.U9),{key:1,engine:(0,l.R1)(t),plugins:n},{default:(0,a.k6)(e=>{let{activeDocumentId:t}=e;return[t?((0,a.uX)(),(0,a.Wv)((0,l.R1)(u.N6),{key:0,"document-id":t},{default:(0,a.k6)(e=>{let{isLoaded:r}=e;return[r?((0,a.uX)(),(0,a.Wv)(x,{key:0,"document-id":t},null,8,["document-id"])):(0,a.Q3)("",!0)]}),_:2},1032,["document-id"])):(0,a.Q3)("",!0)]}),_:1},8,["engine"]))}})},97155:(e,t,r)=>{r.d(t,{c:()=>o});var a=r(74486);let l=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),n=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};let d=(e,t)=>{let{name:r,iconNode:d,absoluteStrokeWidth:o,"absolute-stroke-width":u,strokeWidth:s,"stroke-width":c,size:p=i.width,color:g=i.stroke,...v}=e,{slots:m}=t;return(0,a.h)("svg",{...i,...v,width:p,height:p,stroke:g,"stroke-width":""===o||""===u||!0===o||!0===u?24*Number(s||c||i["stroke-width"])/Number(p):s||c||i["stroke-width"],class:n("lucide",v.class,...r?["lucide-".concat(l((e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)})(r)),"-icon"),"lucide-".concat(l(r))]:["lucide-icon"])},[...d.map(e=>(0,a.h)(...e)),...m.default?[m.default()]:[]])},o=(e,t)=>(r,l)=>{let{slots:n,attrs:i}=l;return(0,a.h)(d,{...i,...r,iconNode:t,name:e},n)}}}]);

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.