1"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[8152],{28152:(e,t,l)=>{l.r(t),l.d(t,{default:()=>u});var n=l(65043),s=l(89923),r=l(64159),i=l(21383),a=l(25448),c=l(58661),o=l(70579);const u=e=>{let{closeDeleteModalAndRefresh:t,deleteOpen:l,selectedBucket:u,ruleToDelete:d,rulesToDelete:p,remainingRules:b,allSelected:x,deleteSelectedRules:h=!1}=e;const j=(0,i.jL)(),[m,f]=(0,n.useState)(""),[k,v]=(0,a.A)((()=>t(!0)),(e=>j((0,r.C9)(e))));if(!u)return null;return(0,o.jsx)(c.A,{title:h?"Delete Selected Replication Rules":"Delete Replication Rule",confirmText:"Delete",isOpen:l,titleIcon:(0,o.jsx)(s.xWY,{}),isLoading:k,onConfirm:()=>{let e=`/api/v1/buckets/${u}/replication/${d}`;if(h){if(!x)return e=`/api/v1/buckets/${u}/delete-selected-replication-rules`,void v("DELETE",e,{rules:p});e=`/api/v1/buckets/${u}/delete-all-replication-rules`}else 1===b&&(e=`/api/v1/buckets/${u}/delete-all-replication-rules`);v("DELETE",e)},onClose:()=>t(!1),confirmButtonProps:{disabled:h&&"Yes, I am sure"!==m},confirmationContent:(0,o.jsx)(n.Fragment,{children:h?(0,o.jsxs)(n.Fragment,{children:["Are you sure you want to remove the selected replication rules for bucket ",(0,o.jsx)("b",{children:u}),"?",(0,o.jsx)("br",{}),(0,o.jsx)("br",{}),"To continue please type ",(0,o.jsx)("b",{children:"Yes, I am sure"})," in the box.",(0,o.jsx)(s.xA9,{item:!0,xs:12,children:(0,o.jsx)(s.cl_,{id:"retype-tenant",name:"retype-tenant",onChange:e=>{f(e.target.value)},label:"",value:m})})]}):(0,o.jsxs)(n.Fragment,{children:["Are you sure you want to delete replication rule"," ",(0,o.jsx)("b",{children:d}),"?"]})})})}},25448:(e,t,l)=>{l.d(t,{A:()=>r});var n=l(65043),s=l(20649);const r=(e,t)=>{const[l,r]=(0,n.useState)(!1);return[l,(l,n,i,a)=>{r(!0),s.A.invoke(l,n,i,a).then((t=>{r(!1),e(t)})).catch((e=>{r(!1),t(e)}))}]}}}]); 2//# sourceMappingURL=8152.51d0ef4b.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.