"use strict";(self.webpackChunkseahub_frontend=self.webpackChunkseahub_frontend||[]).push([[8400],{65773:function(e,n,t){var o=t(23029),i=t(92901),a=t(39874),r=t(85501),c=t(9950),s=t(17119),d=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,A=p.repoEncrypted,g=p.fileExt,j=p.filePath,y=p.sharedToken,b=window.app.pageOptions.thumbnailSizeForOriginal,C="?p=".concat(encodeURIComponent(w)),P="?p=".concat(encodeURIComponent(k)),I=function(e){function n(){return(0,o.A)(this,n),(0,a.A)(this,n,arguments)}return(0,r.A)(n,e),(0,i.A)(n,[{key:"render",value:function(){return(0,h.jsx)(d.A,{content:(0,h.jsx)(N,{})})}}])}(c.Component),N=function(e){function n(){return(0,o.A)(this,n),(0,a.A)(this,n,arguments)}return(0,r.A)(n,e),(0,i.A)(n,[{key:"componentDidMount",value:function(){document.addEventListener("keydown",(function(e){w&&37==e.keyCode&&(location.href=C),k&&39==e.keyCode&&(location.href=P)}))}},{key:"render",value:function(){if(v)return(0,h.jsx)(f.A,{});var e="";return!A&&["tif","tiff","psd","heic"].includes(g)&&(e="".concat(l.Yc,"thumbnail/").concat(y,"/").concat(b).concat(u.Aq.encodePath(j))),(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:C,id:"img-prev",title:(0,l.AP)("you can also press \u2190 "),children:(0,h.jsx)("span",{className:"sf3-font sf3-font-down rotate-90 d-inline-block"})}),k&&(0,h.jsx)("a",{href:P,id:"img-next",title:(0,l.AP)("you can also press \u2192"),children:(0,h.jsx)("span",{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);s.render((0,h.jsx)(I,{}),document.getElementById("wrapper"))},89046:function(){}},function(e){e.O(0,[4223],(function(){return n=65773,e(e.s=n);var n}));e.O()}]);