"use strict";(self.webpackChunkweb_app=self.webpackChunkweb_app||[]).push([[3052],{53052:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var a=n(69060),s=n(89940),o=n(70780),r=n(66152),c=n(95705),l=n(66156),i=n(82496);const d=e=>{let{deleteOpen:t,currentTags:n,selectedTag:d,onCloseAndUpdate:u,bucketName:p}=e;const b=(0,l.Ab)(),[g,h]=d,[w,f]=(0,s.c)((()=>u(!0)),(e=>b((0,c.aW)(e))));if(!d)return null;return(0,i.jsx)(o.c,{title:"Delete Tag",confirmText:"Delete",isOpen:t,titleIcon:(0,i.jsx)(r.sB6,{}),isLoading:w,onConfirm:()=>{const e={...n};delete e[g],f("PUT","/api/v1/buckets/".concat(p,"/tags"),{tags:e})},onClose:()=>u(!1),confirmationContent:(0,i.jsxs)(a.Fragment,{children:["Are you sure you want to delete the tag"," ",(0,i.jsxs)("b",{style:{maxWidth:200,whiteSpace:"normal",wordWrap:"break-word"},children:[g," : ",h]})," ","?"]})})}}}]);
//# sourceMappingURL=3052.c221a4c1.chunk.js.map