1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[881],{58170:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/files/trash",function(){return t(62415)}])},66540:function(e,n,t){"use strict";t.d(n,{m:function(){return d}});var r=t(24246),i=t(29549),s=t(62634),c=t(4146),o=t(22097),u=t(88872),a=t(74270);function l(e){var n=e.file,t=e.disabled,o=(0,s.I)().onOpen;return(0,r.jsx)(i.hU,{id:"view-file-icon-button",variant:"ghost",size:"sm",height:"24px",width:"24px",disabled:void 0!==t&&t,icon:(0,r.jsx)(c.ci,{}),onClick:function(){return o(n)},"aria-label":"View File"})}var d=function(e){var n=e.file,t=o.BX.find(function(e){return e.tool===u.UA.VIEW_AND_EDIT}).fileInputTypes.includes((0,a.o8)(n.extension));return(0,r.jsx)(l,{file:n,disabled:!t})}},22134:function(e,n,t){"use strict";t.d(n,{Z:function(){return E}});var r=t(24246),i=t(27378),s=t(5003),c=t(19130),o=t(3582),u=t(59389),a=t(34896),l=(0,u.m$)(function(e){var n=e.children,t=e.className;return(0,r.jsx)(a.xu,{id:"pro-feature-layout",bgColor:"gray.100",flexGrow:1,className:t,px:{base:"20px",lg:"88px"},py:{base:"20px",md:"50px"},children:n})}),d=t(9627),f=(0,u.m$)(function(e){var n=e.children,t=e.className,i=(0,d.S)().preferredBannerHeight;return(0,r.jsx)(a.kC,{id:"pro-layout",h:"calc(100vh - ".concat(4*s.g3,"px)"),pt:"".concat(i,"px"),className:t,children:n})}),h=t(62135),_=(0,u.m$)(function(e){var n=e.children,t=e.className;return(0,r.jsx)(a.xu,{id:"pro-side-layout",width:s.gE,display:{base:"none",navBreakpoint:"flex"},flexDirection:"column",height:"100%",className:t,children:n})}),p=t(33645),v=t(4457),x=t(5160),b=t(54291);function E(e){var n=e.children,t=(0,i.useState)(),u=t[0],E=t[1],w=(0,d.S)().showBanner;return(0,i.useEffect)(function(){E((0,x.Ij)())},[]),(0,r.jsxs)(r.Fragment,{children:[w&&(0,r.jsx)(b.Z,{source:"XodoDrive"}),(0,r.jsx)(c.Z,{}),(0,r.jsxs)(f,{children:[(0,r.jsxs)(_,{children:[(0,r.jsx)(h.Z,{}),(0,r.jsx)(p.Z,{onClose:function(){}}),"Windows"===u&&(0,r.jsx)(a.xu,{ml:"28px",mb:"10px",children:(0,r.jsx)(o.Z,{appStore:s.CN.MICROSOFT_STORE})}),(0,r.jsx)(v.Z,{})]}),(0,r.jsx)(l,{children:n})]})]})}},84804:function(e,n,t){"use strict";t.d(n,{B:function(){return _}});var r=t(23842),i=t(59312),s=t(27378),c=t(68567),o=t(38271),u=t(5114);function a(e){return l.apply(this,arguments)}function l(){return(l=(0,r.Z)(function(e){var n,t,r=arguments;return(0,i.__generator)(this,function(t){switch(t.label){case 0:return n=r.length>1&&void 0!==r[1]&&r[1],[4,(0,o.T)(u.Q+"/api/v1/files/"+e,{method:"DELETE",headers:{Accept:"application/json","Content-Type":"application/json"},credentials:"include",body:JSON.stringify({hardDelete:n})})];case 1:return[4,t.sent().json()];case 2:return[2,t.sent()]}})})).apply(this,arguments)}var d=t(11996),f=t(14241),h=t(38540);function _(){var e,n,t=(0,c.I0)(),o=(0,c.v9)(function(e){return e.userFiles.fileDetails}),u=(0,d.Z)(),l=u.showDeletedFileToast,_=u.showDeletedFileFailedToast,p=u.closeToast,v=(0,s.useCallback)((e=(0,r.Z)(function(e){var n;return(0,i.__generator)(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,a(e)];case 1:return n=s.sent(),t((0,h.fl)(h.cc.FILE_DELETED)),t((0,f.hV)(n)),l(function(){},"soft_delete"+e),[3,3];case 2:return s.sent(),_((0,r.Z)(function(){return(0,i.__generator)(this,function(n){switch(n.label){case 0:return p("soft_delete_failed"+e),[4,v(e)];case 1:return n.sent(),[2]}})}),"soft_delete_failed_failed"+e),[3,3];case 3:return[2]}})}),function(n){return e.apply(this,arguments)}),[o]),x=(0,s.useCallback)((n=(0,r.Z)(function(e){var n;return(0,i.__generator)(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,a(e,!0)];case 1:return n=s.sent(),t((0,h.fl)(h.cc.FILE_DELETED)),t((0,f.hV)(n)),l(function(){},"hard_delete"+e),[3,3];case 2:return s.sent(),_((0,r.Z)(function(){return(0,i.__generator)(this,function(n){switch(n.label){case 0:return p("hard_delete_failed"+e),[4,v(e)];case 1:return n.sent(),[2]}})}),"hard_delete_failed"+e),[3,3];case 3:return[2]}})}),function(e){return n.apply(this,arguments)}),[o]);return(0,s.useMemo)(function(){return{softDeleteFile:v,hardDeleteFile:x}},[v,x])}},62415:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return C},default:function(){return T}});var r=t(23842),i=t(85034),s=t(59312),c=t(24246),o=t(82505),u=t(22134),a=t(51231),l=t(68567),d=t(27378),f=t(4146),h=t(60169),_=t(11996),p=t(38540),v=t
1(84804),x=t(87407),b=t(21084),E=t(65218),w=t.n(E),m=t(99211),j=t(62634),g=t(66540),y=t(87504),Z=t(5003),D=w()(function(){return t.e(5240).then(t.bind(t,55240)).then(function(e){return e.FileStorageDeleteModal})},{loadableGenerated:{webpack:function(){return[55240]}}}),F=function(e){var n=e.file;return(0,c.jsx)(m.ZP,{file:n,disabled:!0})},C=!0;function T(){var e,n,t,E,w,m,C,T=(0,l.v9)(function(e){return e.fileStorage}).fileStorageMetadata,N=(e=(0,l.I0)(),t=(n=(0,_.Z)()).showFileRecoveredSuccessToast,E=n.showFailedFileRecoveredToast,w=n.closeToast,C=(0,d.useCallback)((m=(0,r.Z)(function(n){return(0,s.__generator)(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,(0,h.s)(n.id,{recover:!0})];case 1:return i.sent(),e((0,p.fl)(p.cc.FILE_RECOVERED)),t(function(){},"xodo_drive_recover"+n.id),[3,3];case 2:return i.sent(),E((0,r.Z)(function(){return(0,s.__generator)(this,function(e){switch(e.label){case 0:return w("xodo_drive_recover_failed"+n.id),[4,C(n)];case 1:return e.sent(),[2]}})}),"xodo_drive_recover_failed"+n.id),[3,3];case 3:return[2]}})}),function(e){return m.apply(this,arguments)}),[]),(0,d.useMemo)(function(){return{recoverFile:C}},[C])).recoverFile,k=(0,v.B)().hardDeleteFile,R=(0,d.useState)(),S=R[0],O=R[1],I=(0,x.$G)().t,A=(0,b.qY)().onClose,L=(0,d.useMemo)(function(){return[F,g.m]},[]),M=(0,d.useMemo)(function(){var e,n,t=[{icon:f._8,id:a.R.DOWNLOAD,i18nKey:"download",click:(e=(0,r.Z)(function(e){return(0,s.__generator)(this,function(n){switch(n.label){case 0:return[4,e.download()];case 1:return[2,n.sent()]}})}),function(n){return e.apply(this,arguments)})},{icon:f.UE,id:a.R.RECOVER,i18nKey:"recover",click:(n=(0,r.Z)(function(e){return(0,s.__generator)(this,function(n){switch(n.label){case 0:return[4,N(e)];case 1:return[2,n.sent()]}})}),function(e){return n.apply(this,arguments)})},{icon:f.kM,id:a.R.HARD_DELETE,i18nKey:"hard_delete",click:function(e){return O(e)}},];return T&&(null==T?void 0:T.sizeAllowed)&&!((null==T?void 0:T.sizeUsed)>(null==T?void 0:T.sizeAllowed))||(t=t.filter(function(e){return e.id!==a.R.RECOVER})),t},[T]);return(0,c.jsxs)(j.Z,{children:[(0,c.jsx)(u.Z,{children:(0,c.jsx)(o.Z,{deleted:!0,moreActionMenuItems:M,menuQuickActions:L,enableSort:!1})}),S&&(0,c.jsx)(D,{header:I("delete_modal.hard_delete_title"),description:I("delete_modal.hard_delete_description",{fileName:null==S?void 0:S.name}),acceptLabel:I("delete_modal.hard_delete_accept_label"),isOpen:S,onAccept:(0,r.Z)(function(){return(0,s.__generator)(this,function(e){switch(e.label){case 0:return[4,k(S.id)];case 1:return e.sent(),[2]}})}),onClose:function(){O(void 0),A()},file:S}),(0,c.jsx)(y.B,{px:(0,i.Z)({},Z.JC,Z.jq),py:20,useFullWidth:!0})]})}}},function(e){e.O(0,[4794,5232,4550,9774,2888,179],function(){return e(e.s=58170)}),_N_E=e.O()}]); 2//# sourceMappingURL=trash-b7a52b09d291101a.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.