"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[4440],{44440:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var c=n(69060),s=n(70780),o=n(66152),l=n(61060),r=n(95705),a=n(66156),i=n(61180),u=n(78256),d=n(82496);const p=e=>{let{closeDeleteModalAndRefresh:t,deleteOpen:n,selectedServiceAccount:p}=e;const h=(0,a.Ab)(),[f,w]=(0,c.useState)(!1);if(!p)return null;return(0,d.jsx)(s.c,{title:"Delete Access Key",confirmText:"Delete",isOpen:n,titleIcon:(0,d.jsx)(o.sB6,{}),isLoading:f,onConfirm:()=>{w(!0),i.m.serviceAccounts.deleteServiceAccount((0,l.CO)(p)).then((e=>{t(!0)})).catch((async e=>{const n=await e.json();h((0,r.aW)((0,u.K)(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=4440.7da6ff32.chunk.js.map