1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7588],{98659:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/file/[slug]",function(){return t(43391)}])},5601:function(e,n,t){"use strict";t.d(n,{Z:function(){return s}});var i=t(77818),r=t(27378),a=t(13606),l=function(e,n){var t=a[n.locale];return n.locale===n.defaultLocale?e:t[e]},o=function(e,n){var t=n.locale===n.defaultLocale?"":"/".concat(n.locale),i=n.asPath.split("?");return i[1]?"".concat(t,"/").concat(e,"?").concat(i[1]):"".concat(t,"/").concat(e)};function s(){var e=(0,i.t)(),n=(0,r.useCallback)(function(n){return o(n,e)},[e.asPath,e.locale]),t=(0,r.useCallback)(function(n){return l(n,e)},[e.locale]);return{getUrl:n,getTranslatedToolRouteName:t}}},43391:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return b},default:function(){return y}});var i=t(23842),r=t(59312),a=t(24246),l=t(70409),o=t(34896),s=t(83125),u=t(77818),c=t(27378),f=t(69890),_=t(37929),d=t(13308),p=t(74270),k=t(32803),h=t(87407),g=t(5601),v=t(14562),T=t(15858),E=t(86102),b=!0;function y(){var e,n=(0,u.t)(),t=(0,l.pm)(),b=(0,h.$G)().t,y="/"+(0,(0,g.Z)().getTranslatedToolRouteName)(v.Z.ANNOTATE_PDF),m=(0,T.Z)().deleteAutosavedFile,w=(0,d.Z)().goToEditorWithFile,N=(0,c.useCallback)((0,i.Z)(function(){return(0,r.__generator)(this,function(e){switch(e.label){case 0:return[4,m(v.Z.ANNOTATE_PDF)];case 1:return e.sent(),[4,n.push(y)];case 2:return e.sent(),[2]}})}),[n,y,m]),C=(0,c.useCallback)((0,i.Z)(function(){return(0,r.__generator)(this,function(e){switch(e.label){case 0:return[4,N()];case 1:return e.sent(),t({id:"file-linking-unable-to-load-toast-id",title:b("file_linking.link_error_title"),description:b("file_linking.unable_to_load_file_error_message"),status:"error",duration:9e3,isClosable:!0}),[2]}})}),[t,b,N]),Z=(0,c.useCallback)((e=(0,i.Z)(function(e){var n,i,a,l,o,s,u,c,d,h,g;return(0,r.__generator)(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,4]),[4,(0,k.ZX)(e)];case 1:return i=(a=r.sent()).file,n=a.downloadUrl,E.lF.track("File Link Opened",{"File Format":i.extension,"File Size":i.sizeInBytes}),[3,4];case 2:return d=(null==(l=r.sent())?void 0:null===(o=l.response)||void 0===o?void 0:null===(s=o.data)||void 0===s?void 0:s.key)==="FILE_LINK_EXPIRED_ERROR"?b("file_linking.link_expired_error_message"):b("file_linking.link_error_message"),h=(null==l?void 0:null===(u=l.response)||void 0===u?void 0:null===(c=u.data)||void 0===c?void 0:c.key)==="FILE_LINK_EXPIRED_ERROR"?"file-linking-expired-toast-id":"file-linking-error-toast-id",[4,N()];case 3:return r.sent(),t({id:h,title:b("file_linking.link_error_title"),description:d,status:"error",duration:9e3,isClosable:!0}),[2];case 4:return[4,(0,p.xy)({fileUrl:n,name:i.name,extension:i.extension,fileObj:new _.T(function(){return(0,f.WD)(n)}),metaData:i.metadata})];case 5:return w(r.sent(),C),[2]}})}),function(n){return e.apply(this,arguments)}),[N,w,C,b,t,]);return(0,c.useEffect)(function(){var e=n.query.slug;if(e){if("string"!=typeof e){N(),t({title:b("file_linking.link_error_title"),description:b("file_linking.link_invalid_error_message"),status:"error",duration:9e3,isClosable:!0});return}Z(e)}},[n.query.slug]),(0,a.jsx)(o.M5,{h:"100vh",children:(0,a.jsx)(s.$,{thickness:"4px",speed:"0.65s",emptyColor:"gray.200",color:"blue.500",size:"xl"})})}},32803:function(e,n,t){"use strict";t.d(n,{Sk:function(){return c},XT:function(){return d},Xu:function(){return f},ZX:function(){return _}});var i,r,a,l=t(23842),o=t(59312),s=t(5114),u=t(38271),c=(i=(0,l.Z)(function(e){var n,t,i,r;return(0,o.__generator)(this,function(n){switch(n.label){case 0:return[4,(0,u.T)(s.Q+"/api/v1/linking/"+e.id,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({})})];case 1:return[4,n.sent().json()];case 2:return[2,{linkId:i=(t=n.sent()).linkId,linkExpiresAt:t.linkExpiresAt}]}})}),function(e){return i.apply(this,arguments)}),f=(r=(0,l.Z)(function(e){return(0,o.__generator)(this,function(n){switch(n.label){case 0:return[4,(0,u.T)(s.Q+"/api/v1/linking/"+e,{method:"DELETE",headers:{Accept:"application/json","Content-Type":"application/json"}})];case 1:return n.sent(),[2]}})}),function(e){return r.apply(this,arguments)}),_=(a=(0,l.Z)(function(e){var n;return(0,o.__generator)(this,function(n){switch(n.label){case 0:return[4,(0,u.T)(s.Q+"/api/v1/linking/"+e,{method:"GET",headers:{Accept:"application/json","Content-Type":"application/json"}})];case 1:return[4,n.sent().json()];case 2:return[2,n.sent()]}})}),function(e){return a.apply(this,arguments)}),d=function(e){var n,t=new Date;return Math.ceil((new Date(e).getTime()-t.getTime())/864e5)}}},function(e){e.O(0,[9774,2888,179],function(){return e(e.s=98659)}),_N_E=e.O()}]); 2//# sourceMappingURL=[slug]-cadd93cee86a6bf9.js.map
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.