(this["webpackJsonpcloudreve-frontend-plus"]=this["webpackJsonpcloudreve-frontend-plus"]||[]).push([[3],{7384:function(e,t){function a(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}a.keys=function(){return[]},a.resolve=a,e.exports=a,a.id=7384},7811:function(e,t){},7813:function(e,t){},7814:function(e,t){},7815:function(e,t){},7816:function(e,t){},8129:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return O}));var n=a(7),r=a(6),o=a(0),c=a.n(o),i=a(7810),s=a(102),u=a(83),p=a(19),d=a(11),l=a(5),f=a(21),m=a(121),g=a(2),h=a(105),b=a(84);i.pdfjs.GlobalWorkerOptions.workerSrc="//cdn.staticfile.org/pdf.js/".concat(i.pdfjs.version,"/pdf.worker.min.js");var j=Object(u.a)((function(e){var t;return{layout:(t={marginTop:"30px",marginLeft:e.spacing(3),marginRight:e.spacing(3)},Object(r.a)(t,e.breakpoints.up(1100+2*e.spacing(3)),{maxWidth:900,marginLeft:"auto",marginRight:"auto"}),Object(r.a)(t,"marginBottom",50),t),"@global":{canvas:{width:"100% !important",height:"auto !important",borderRadius:e.shape.borderRadius}},paper:{marginBottom:e.spacing(3)}}}));function O(){var e=Object(b.a)().t,t=Object(p.j)(),a=Object(p.h)(),r=new URLSearchParams(Object(p.h)().search),u=Object(p.i)().id;Object(h.a)(r,t,a);var O=Object(o.useState)(1),v=Object(n.a)(O,2),w=v[0],E=v[1],y=Object(l.d)(),k=Object(o.useCallback)((function(e,t,a,n){return y(Object(g.U)(e,t,a,n))}),[y]),L=function(){document.querySelectorAll(".react-pdf__Page__textContent").forEach((function(e){e.style.display="none"}))},_=j();return c.a.createElement("div",{className:_.layout},c.a.createElement(i.Document,{onLoadSuccess:function(e){var t=e.numPages;return E(t)},onLoadError:function(t){k("top","right",e("fileManager.pdfLoadingError",{msg:t.message}),"error")},loading:c.a.createElement(s.a,{className:_.paper,elevation:1},c.a.createElement(m.a,null)),file:Object(d.d)()+(f.a.isSharePage(a.pathname)?"/share/preview/"+u+(""!==r.get("share_path")?"?path="+encodeURIComponent(r.get("share_path")):""):"/file/preview/"+r.get("id"))},Array.from(new Array(w),(function(e,t){return c.a.createElement(s.a,{className:_.paper,elevation:1},c.a.createElement(i.Page,{width:900,onLoadSuccess:L,key:"page_".concat(t+1),pageNumber:t+1,renderAnnotationLayer:!1}))}))))}}}]);
//# sourceMappingURL=pdf.01501f00.chunk.js.map