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