"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[8823],{18823:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var c=n(65043),s=n(58661),o=n(89923),l=n(56483),r=n(64159),a=n(20554),i=n(56629),u=n(53518),d=n(70579);const p=e=>{let{closeDeleteModalAndRefresh:t,deleteOpen:n,selectedServiceAccount:p}=e;const f=(0,a.jL)(),[h,w]=(0,c.useState)(!1);if(!p)return null;return(0,d.jsx)(s.A,{title:"Delete Access Key",confirmText:"Delete",isOpen:n,titleIcon:(0,d.jsx)(o.xWY,{}),isLoading:h,onConfirm:()=>{w(!0),i.F.serviceAccounts.deleteServiceAccount((0,l.nf)(p)).then((e=>{t(!0)})).catch((async e=>{const n=await e.json();f((0,r.C9)((0,u.S)(n))),t(!1)})).finally((()=>w(!1)))},onClose:()=>t(!1),confirmationContent:(0,d.jsxs)(c.Fragment,{children:["Are you sure you want to delete Access Key"," ",(0,d.jsx)("b",{style:{maxWidth:"200px",whiteSpace:"normal",wordWrap:"break-word"},children:p}),"?"]})})}}}]);
//# sourceMappingURL=8823.034b6a8d.chunk.js.map