(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[889],{7108:function(e,n,t){Promise.resolve().then(t.bind(t,3041))},3041:function(e,n,t){"use strict";t.r(n),t.d(n,{ActionButton:function(){return b}});var r=t(7437),o=t(2614),i=t(2265),a=t(8482),s=t(8692),l=t(9260),c=t(2964),d=t(967);let u=e=>(f({command:e}),null),f=e=>{let{command:n}=e,t=(0,i.useId)(),r=(0,c.b9)(d.G);(0,i.useLayoutEffect)(()=>(r(e=>({...e,[t]:n})),()=>{r(e=>{let{[t]:n,...r}=e;return r})}))},m=e=>{let{children:n,...t}=e;return(0,r.jsx)(u,{...t,children:n})},p=(0,i.forwardRef)((e,n)=>(0,r.jsx)(a.g7,{...e,ref:n}));p.displayName="ActionWrapperSlot";let h=(0,i.forwardRef)((e,n)=>{var t;let{action:o,disabled:i,children:a,catchToast:c,askForConfirmation:d,stopPropagation:u,command:f,triggerOn:h=["onClick"],icon:j,...b}=e,{isLoading:x,trigger:g}=(0,l.Y)({action:o,disabled:i,catchToast:c,askForConfirmation:d,stopPropagation:u});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(p,{ref:n,disabled:x||i,isLoading:x,...b,...Object.fromEntries((0,s.Z)(h,e=>[e,e=>g(void 0,e)])),children:a}),f&&(0,r.jsx)(m,{icon:j,...f,action:o,disabled:x||i,catchToast:c,askForConfirmation:d,stopPropagation:u,children:null!==(t=f.label)&&void 0!==t?t:a})]})});h.displayName="ActionWrapper";var j=t(6719);let b=(0,i.forwardRef)((e,n)=>{let{action:t,disabled:o,hideButton:i,catchToast:a=!0,askForConfirmation:s,stopPropagation:l,command:c,icon:d,...u}=e;return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(h,{action:t,disabled:o,askForConfirmation:s,stopPropagation:l,command:c,catchToast:a,triggerOn:["onClick"],icon:d,children:!i&&(0,r.jsx)(x,{icon:d,...u,ref:n})})})});b.displayName="ActionButton";let x=(0,i.forwardRef)((e,n)=>{let{isLoading:t,children:i,hideIcon:a=!0,icon:s,...l}=e;return(0,r.jsxs)(o.z,{type:"button",...l,ref:n,children:[i,!a&&(0,r.jsx)(j.y,{icon:s,className:"ml-2",isLoading:t})]})});x.displayName="InnerButton"}},function(e){e.O(0,[542,589,315,967,971,117,744],function(){return e(e.s=7108)}),_N_E=e.O()}]);