PageSourceSearch

https://beta.workstedi.com/_next/static/chunks/9843.e4ff4e539001aa74.js

js workstedi.com collected 2026-09-24 14:59:56 UTC 2,011 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9843],{10167:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return PDFViewer}});var r=t(50029),i=t(87794),a=t.n(i),s=t(2734),o=t(61730),c=t(98456),l=t(15861),u=t(89609),d=t(67294),f=t(8092),h=t(54664),p=t(86875),w=t(85893);function PDFViewer(e){var n,t=e.invoiceId,i=void 0===t?null:t,x=e.handleClose,v=e.isModal,m=e.preview,j=e.pdfFile,k=(0,d.useState)(null),g=k[0],b=k[1],Z=(0,f.Z)(),_=(0,s.Z)(),y=(0,o.Z)(_.breakpoints.down("sm")),L=(0,o.Z)(_.breakpoints.down("md")),S=y?Z:L?.8*Z:.85*Z,C=y?1200:900,F=y?Z:.7*Z,M=(0,d.useState)(!0),N=M[0],P=M[1],R=(0,d.useState)(null),B=R[0],D=R[1];console.log({file:g,isModal:v,width:Z,modalWidth:S}),(0,d.useEffect)(function(){i&&!m&&E(),m&&j&&(b(j),P(!1))},[]);var E=(n=(0,r.Z)(a().mark(function _callee(){var e,n,t,r;return a().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,p.FR)(i);case 2:n=(e=a.sent).success,t=e.resData,n&&t&&(r=new Blob([t],{type:"application/pdf"}),b(window.URL.createObjectURL(r)),P(!1)),!n&&v&&(P(!1),x());case 7:case"end":return a.stop()}},_callee)})),function(){return n.apply(this,arguments)});return(0,w.jsxs)(u.Z,{sx:{width:"100%"},children:[N&&(0,w.jsxs)(u.Z,{sx:{width:"100%",height:"100vh",display:"flex",justifyContent:"center",alignItems:"center"},children:[(0,w.jsx)(c.Z,{}),(0,w.jsx)(l.Z,{ml:2,variant:"body2",children:"Loading invoice..."})]}),!N&&(0,w.jsx)("div",{children:(0,w.jsx)(h.BB,{file:g,onLoadSuccess:function(e){var n=e.numPages;console.log({nextNumPages:n}),D(n)},externalLinkRel:"_self",externalLinkTarget:"_self",children:Array.from({length:B},function(e,n){return(0,w.jsx)(h.T3,{pageNumber:n+1,renderAnnotationLayer:!1,renderTextLayer:!1,width:v?Math.min(S,C):Math.min(1*F)},"page_".concat(n))})})})]})}h.v0.GlobalWorkerOptions.workerSrc="//cdnjs.cloudflare.com/ajax/libs/pdf.js/".concat(h.v0.version,"/pdf.worker.min.js")},69349:function(){},49080:function(){},57588:function(){},3071:function(){},15232:function(){}}]);

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.