"use strict";(self.webpackChunkportal_ui=self.webpackChunkportal_ui||[]).push([[455],{80455:function(e,n,t){t.r(n);var u=t(29439),i=(t(72791),t(26181)),r=t.n(i),o=t(51691),c=t(9505),s=t(2148),f=t(38734),l=t(87995),a=t(25469),v=t(80184);n.default=function(e){var n=e.closeDeleteModalAndRefresh,t=e.deleteOpen,i=e.selectedBucket,p=e.bucketEvent,d=(0,a.TL)(),x=(0,c.Z)((function(){return n(!0)}),(function(e){return d((0,l.Ih)(e))})),h=(0,u.Z)(x,2),k=h[0],C=h[1];if(!i)return null;return(0,v.jsx)(s.Z,{title:"Delete Event",confirmText:"Delete",isOpen:t,titleIcon:(0,v.jsx)(f.NvT,{}),isLoading:k,onConfirm:function(){if(null!==p){var e=r()(p,"events",[]),n=r()(p,"prefix",""),t=r()(p,"suffix","");C("DELETE","/api/v1/buckets/".concat(i,"/events/").concat(p.arn),{events:e,prefix:n,suffix:t})}},onClose:function(){return n(!1)},confirmationContent:(0,v.jsx)(o.Z,{children:"Are you sure you want to delete this event?"})})}}}]);
//# sourceMappingURL=455.ae9e0193.chunk.js.map