mirror of
https://github.com/OpenMaxIO/openmaxio-object-browser
synced 2026-07-01 07:41:18 -07:00
2 lines
1.3 KiB
JavaScript
2 lines
1.3 KiB
JavaScript
"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[2032],{62032:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var a=n(72791),s=n(29945),r=n(87995),o=n(44690),l=n(9505),i=n(23508),c=n(80184);const d=e=>{let{closeDeleteModalAndRefresh:t,deleteOpen:n,selectedItem:d,endpoint:h,element:p}=e;const u=(0,o.TL)(),[x,m]=(0,l.Z)((()=>t(!0)),(e=>u((0,r.Ih)(e)))),[f,j]=(0,a.useState)("");if(!d)return null;return(0,c.jsx)(i.Z,{title:"Delete ".concat(p),confirmText:"Delete",isOpen:n,titleIcon:(0,c.jsx)(s.NvT,{}),isLoading:x,onConfirm:()=>{m("DELETE","".concat(h).concat(d))},onClose:()=>t(!1),confirmButtonProps:{disabled:f!==d||x},confirmationContent:(0,c.jsxs)(a.Fragment,{children:[(0,c.jsx)(s.rjZ,{item:!0,xs:12,children:(0,c.jsx)(s.J6i,{variant:"error",title:"WARNING",message:"Please note that this is a dangerous operation. Once a key has been deleted all data that has been encrypted with it cannot be decrypted anymore, and therefore, is lost.",sx:{margin:"15px 0"}})}),"To continue please type ",(0,c.jsx)("b",{children:d})," in the box.",(0,c.jsx)(s.rjZ,{item:!0,xs:12,children:(0,c.jsx)(s.Wzg,{id:"retype-key",name:"retype-key",onChange:e=>{j(e.target.value)},onPaste:e=>e.preventDefault(),label:"",value:f})})]})})}}}]);
|
|
//# sourceMappingURL=2032.79310ed7.chunk.js.map
|