"use strict";(self.webpackChunkseahub_frontend=self.webpackChunkseahub_frontend||[]).push([[8400],{65773:function(e,n,t){var a=t(23029),i=t(92901),o=t(39874),r=t(85501),c=t(9950),d=t(1352),s=t(88204),f=t(15167),u=t(65604),l=t(40326),h=(t(89046),t(44414)),p=window.shared.pageOptions,m=p.fileName,x=p.rawPath,v=p.err,w=p.prevImgPath,k=p.nextImgPath,g=p.repoEncrypted,j=p.fileExt,y=p.filePath,b=p.sharedToken,C=p.lastModified,P=window.app.pageOptions.thumbnailSizeForOriginal,A="?p=".concat(encodeURIComponent(w)),I="?p=".concat(encodeURIComponent(k)),N=function(e){function n(){return(0,a.default)(this,n),(0,o.default)(this,n,arguments)}return(0,r.default)(n,e),(0,i.default)(n,[{key:"render",value:function(){return(0,h.jsx)(s.A,{content:(0,h.jsx)(O,{})})}}])}(c.Component),O=function(e){function n(){return(0,a.default)(this,n),(0,o.default)(this,n,arguments)}return(0,r.default)(n,e),(0,i.default)(n,[{key:"componentDidMount",value:function(){document.addEventListener("keydown",(function(e){w&&37==e.keyCode&&(location.href=A),k&&39==e.keyCode&&(location.href=I)}))}},{key:"render",value:function(){if(v)return(0,h.jsx)(f.A,{});var e="";return!g&&["tif","tiff","psd","heic"].includes(j)&&(e="".concat(l.YcY,"thumbnail/").concat(b,"/").concat(P).concat(u.Aq.encodePath(y),"?mtime=").concat(C)),(0,h.jsx)("div",{className:"shared-file-view-body d-flex text-center",children:(0,h.jsxs)("div",{className:"image-file-view flex-1",children:[w&&(0,h.jsx)("a",{href:A,id:"img-prev",title:(0,l.APU)("you can also press \u2190 "),children:(0,h.jsx)("span",{"aria-hidden":"true",className:"sf3-font sf3-font-down rotate-90 d-inline-block"})}),k&&(0,h.jsx)("a",{href:I,id:"img-next",title:(0,l.APU)("you can also press \u2192"),children:(0,h.jsx)("span",{"aria-hidden":"true",className:"sf3-font sf3-font-down rotate-270 d-inline-block"})}),(0,h.jsx)("img",{src:e||x,alt:m,id:"image-view"})]})})}}])}(c.Component);(0,d.createRoot)(document.getElementById("wrapper")).render((0,h.jsx)(N,{}))},89046:function(){}},function(e){e.O(0,[4223],(function(){return n=65773,e(e.s=n);var n}));e.O()}]);