"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[8896],{88896:function(e,n,t){t.r(n);var r=t(37762),o=t(29439),l=t(72791),u=t(29945),i=t(45248),c=t(87995),a=t(81551),s=t(23508),f=t(9505),h=t(80184);n.default=function(e){var n=e.selectedGroups,t=e.deleteOpen,p=e.closeDeleteModalAndRefresh,d=(0,a.TL)(),g=(0,f.Z)((function(){return p(!0)}),(function(e){d((0,c.Ih)(e)),p(!1)})),v=(0,o.Z)(g,2),x=v[0],j=v[1];if(!n)return null;var m=n.map((function(e){return(0,h.jsx)("div",{children:(0,h.jsx)("b",{children:e})},e)}));return(0,h.jsx)(s.Z,{title:"Delete Group".concat(n.length>1?"s":""),confirmText:"Delete",isOpen:t,titleIcon:(0,h.jsx)(u.NvT,{}),isLoading:x,onConfirm:function(){var e,t=(0,r.Z)(n);try{for(t.s();!(e=t.n()).done;){var o=e.value;j("DELETE","/api/v1/group/".concat((0,i.LL)(o)))}}catch(l){t.e(l)}finally{t.f()}},onClose:function(){return p(!1)},confirmationContent:(0,h.jsxs)(l.Fragment,{children:["Are you sure you want to delete the following"," ",1===n.length?"":n.length," group",n.length>1?"s?":"?",m]})})}}}]);
//# sourceMappingURL=8896.ef691d94.chunk.js.map