(this["webpackJsonpseahub-frontend"]=this["webpackJsonpseahub-frontend"]||[]).push([[22],{1693:function(e,t,n){n(75),e.exports=n(1694)},1694:function(e,t,n){"use strict";n.r(t);var a=n(3),c=n(5),r=n(7),o=n(6),s=n(2),i=n.n(s),j=n(31),d=n.n(j),b=n(105),u=n(94),l=n(1),p=(n(546),n(0)),f=window.shared.pageOptions,h=f.fileName,O=f.rawPath,m=f.err,x=f.prevImgPath,v=f.nextImgPath,y="?p=".concat(encodeURIComponent(x)),g="?p=".concat(encodeURIComponent(v)),w=function(e){Object(r.a)(n,e);var t=Object(o.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"render",value:function(){return Object(p.jsx)(b.a,{content:Object(p.jsx)(k,{})})}}]),n}(i.a.Component),k=function(e){Object(r.a)(n,e);var t=Object(o.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"componentDidMount",value:function(){document.addEventListener("keydown",(function(e){x&&37==e.keyCode&&(location.href=y),v&&39==e.keyCode&&(location.href=g)}))}},{key:"render",value:function(){return m?Object(p.jsx)(u.a,{}):Object(p.jsx)("div",{className:"shared-file-view-body d-flex text-center",children:Object(p.jsxs)("div",{className:"image-file-view flex-1",children:[x&&Object(p.jsx)("a",{href:y,id:"img-prev",title:Object(l.tb)("you can also press \u2190 "),children:Object(p.jsx)("span",{className:"fas fa-chevron-left"})}),v&&Object(p.jsx)("a",{href:g,id:"img-next",title:Object(l.tb)("you can also press \u2192"),children:Object(p.jsx)("span",{className:"fas fa-chevron-right"})}),Object(p.jsx)("img",{src:O,alt:h,id:"image-view"})]})})}}]),n}(i.a.Component);d.a.render(Object(p.jsx)(w,{}),document.getElementById("wrapper"))}},[[1693,1,0]]]);
//# sourceMappingURL=sharedFileViewImage.chunk.js.map