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