github.com/minio/console@v1.4.1/web-app/build/static/js/8152.6306ebd5.chunk.js (about)

     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),c=l(20554),i=l(25448),a=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,c.jL)(),[m,f]=(0,n.useState)(""),[k,v]=(0,i.A)((()=>t(!0)),(e=>j((0,r.C9)(e))));if(!u)return null;return(0,o.jsx)(a.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/".concat(u,"/replication/").concat(d);if(h){if(!x)return e="/api/v1/buckets/".concat(u,"/delete-selected-replication-rules"),void v("DELETE",e,{rules:p});e="/api/v1/buckets/".concat(u,"/delete-all-replication-rules")}else 1===b&&(e="/api/v1/buckets/".concat(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}),"?"]})})})}}}]);
     2  //# sourceMappingURL=8152.6306ebd5.chunk.js.map