1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6848],{77805:function(t,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/secure-pdf-viewer",function(){return i(34428)}])},17156:function(t,e,i){"use strict";i.d(e,{sP:function(){return a},xb:function(){return o}});var r,n=i(51438);!function(t){t.DEFAULT="DEFAULT",t.CENTERED="CENTERED"}(r||(r={}));var o={watermarkType:r.DEFAULT,opacity:.2,size:10,color:"0,0,0",rotate:0},s=function t(e){(0,n.Z)(this,t),this._pdfObject=null,this._pdfUrl="",this.watermarkText="",this.watermarkType=r.DEFAULT,this.opacity=.3,this.size=20,this.color=[0,0,0],this.rotate=0,this.phone="",this.showWatermark=!1;var i=e.watermarkText,o=void 0===i?"":i,s=e.showWatermark,a=void 0!==s&&s,c=e.file,u=void 0===c?null:c,f=e.fileUrl,l=void 0===f?"":f,h=e.watermarkType,d=void 0===h?r.DEFAULT:h,p=e.opacity,v=void 0===p?.3:p,w=e.size,_=void 0===w?20:w,m=e.color,E=void 0===m?"0,0,0":m,k=e.rotate,T=void 0===k?0:k,b=e.phone,y=void 0===b?"":b;this.watermarkText=o,this.phone=y,this.showWatermark=a,this._pdfObject=u,this._pdfUrl=l,this.watermarkType=d,this.opacity=Number(v),this.size=Number(_),this.color="string"===typeof E?E.split(",").map(Number):E,this.rotate=Number(T)},a=function(t){return new s(t)}},34428:function(t,e,i){"use strict";i.r(e),i.d(e,{__N_SSP:function(){return f},default:function(){return l}});var r=i(85893),n=i(67294),o=i(17156),s=i(96076),a=i(95719),c=i(83024),u=i(48764).Buffer,f=!0;function l(t){var e=t.file,i=t.isMobile,f=(0,n.useState)(null),l=f[0],h=f[1],d=(0,n.useState)(!0),p=d[0],v=d[1],w=function(){v((function(t){return!t}))};return(0,n.useEffect)((function(){var t=u.from(e,"base64"),r=new Blob([t],{type:"application/pdf"}),n=URL.createObjectURL(r),s=(0,o.sP)({file:t,fileUrl:n});h(s),i&&Object.assign(window,{pdfConfig:s})}),[e,i]),(0,r.jsxs)("div",{className:"h-100",children:[(0,r.jsx)("div",{onClick:w,children:"PDF Viewer"}),!i&&(null===l||void 0===l?void 0:l._pdfUrl)&&(0,r.jsxs)(a.Z,{unmountOnClose:!0,isOpen:p,toggle:w,fullscreen:!0,children:[(0,r.jsx)(c.Z,{toggle:w}),(0,r.jsx)("iframe",{src:"".concat(s.Nf,"pdfjs/web/viewer1.html?file=").concat(null===l||void 0===l?void 0:l._pdfUrl,"&save_flag=3&is_encrypted=0&encryption_key=&phone="),height:"100%",width:"100%"})]})]})}l.layout=function(t){var e=t.children;return(0,r.jsx)("div",{children:e})}}},function(t){t.O(0,[9774,2888,179],(function(){return e=77805,t(t.s=e);var e}));var e=t.O();_N_E=e}]);
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.