github.com/minio/console@v1.4.1/web-app/build/static/js/4676.578844c1.chunk.js (about) 1 "use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[4676],{4676:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var l=n(65043),o=n(58661),s=n(89923),c=n(64159),i=n(20554),r=n(56629),a=n(53518),u=n(56483),p=n(70579);const d=e=>{let{closeDeleteModalAndRefresh:t,deleteOpen:n,selectedPolicy:d}=e;const f=(0,i.jL)(),[y,h]=(0,l.useState)(!1);if(!d)return null;return(0,p.jsx)(o.A,{title:"Delete Policy",confirmText:"Delete",isOpen:n,titleIcon:(0,p.jsx)(s.xWY,{}),isLoading:y,onConfirm:()=>{h(!0),r.F.policy.removePolicy((0,u.nf)(d)).then((e=>{t(!0)})).catch((async e=>{const n=await e.json();f((0,c.C9)((0,a.S)(n))),t(!1)})).finally((()=>h(!1)))},onClose:()=>t(!1),confirmationContent:(0,p.jsxs)(l.Fragment,{children:["Are you sure you want to delete policy ",(0,p.jsx)("br",{}),(0,p.jsx)("b",{children:d}),"?"]})})}}}]); 2 //# sourceMappingURL=4676.578844c1.chunk.js.map