"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[6536],{96536:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var s=n(69060),c=n(58564),l=n.n(c),r=n(89940),i=n(70780),o=n(66152),u=n(95705),a=n(66156),f=n(82496);const p=e=>{let{closeDeleteModalAndRefresh:t,deleteOpen:n,selectedBucket:c,bucketEvent:p}=e;const d=(0,a.Ab)(),[v,x]=(0,r.c)((()=>t(!0)),(e=>d((0,u.aW)(e))));if(!c)return null;return(0,f.jsx)(i.c,{title:"Delete Event",confirmText:"Delete",isOpen:n,titleIcon:(0,f.jsx)(o.sB6,{}),isLoading:v,onConfirm:()=>{if(null===p)return;const e=l()(p,"events",[]),t=l()(p,"prefix",""),n=l()(p,"suffix",""),s=e.reduce(((e,t)=>e.includes(t)?e:[...e,t]),[]);x("DELETE","/api/v1/buckets/".concat(c,"/events/").concat(p.arn),{events:s,prefix:t,suffix:n})},onClose:()=>t(!1),confirmationContent:(0,f.jsx)(s.Fragment,{children:"Are you sure you want to delete this event?"})})}}}]);
//# sourceMappingURL=6536.fd6f7316.chunk.js.map