"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[502],{70502:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var s=n(65043),o=n(89923),l=n(64159),c=n(20554),r=n(56629),u=n(53518),a=n(58661),i=n(70579);const p=e=>{let{onClose:t,modalOpen:n,bucket:p,toDelete:f}=e;const h=(0,c.jL)(),[d,k]=(0,s.useState)(!1);return(0,i.jsx)(a.A,{title:"Delete Anonymous Access Rule",confirmText:"Delete",isOpen:n,isLoading:d,onConfirm:()=>{k(!0);let e={prefix:f};r.F.bucket.deleteAccessRuleWithBucket(p,e).then((()=>{t()})).catch((e=>{h((0,l.C9)((0,u.S)(e.error))),t()})).finally((()=>k(!1)))},titleIcon:(0,i.jsx)(o.xWY,{}),onClose:t,confirmationContent:(0,i.jsx)(s.Fragment,{children:"Are you sure you want to delete this access rule?"})})}}}]);
//# sourceMappingURL=502.0106f2a9.chunk.js.map