"use strict";(self.webpackChunkreact_typescript_webpack=self.webpackChunkreact_typescript_webpack||[]).push([[7181],{7181:(e,o,n)=>{n.d(o,{A:()=>c});var u=n(50394),r=n(39248),i=n(49587),t=n(17437),b=n(80953),a=n(90578),v=n(96540),h=n(92921),f=n(71462),k=n(2445),l=function(e){var o=e.onClick,n=e.isOpen,r=e.disabled,i=void 0!==r&&r,t=e.closePopover,a=e.arrowPosition,l=void 0===a?"top":a,c=e.children,s=e.animationType,d=void 0===s?b.J6.slideLeft:s,p=(0,v.useRef)(null);return(0,k.FD)(k.FK,{children:[(0,k.Y)(u.Ay,{variant:u.Ak.plain,ref:p,onClick:o,buttonCss:g.button,disabled:i,children:(0,k.Y)(h.A,{name:"ellipsis"})}),(0,k.Y)(f.A,{gap:13,maxWidth:"148px",arrow:l,triggerRef:p,isOpen:n,closePopover:t,animationType:d,children:(0,k.Y)("div",{css:g.wrapper,children:v.Children.map(c,function(e){if(v.isValidElement(e)){var o={onClosePopover:t};return v.cloneElement(e,o)}return e})})})]})};l.Option=function(e){var o=e.text,n=e.icon,r=e.onClick,i=e.onClosePopover,t=e.isTrash,a=void 0!==t&&t,l=e.disabled,c=void 0!==l&&l;return(0,k.FD)("button",{type:"button",css:g.option(a,c),disabled:c,onClick:function(e){r&&r(e),i&&i()},children:[n&&n,(0,k.Y)("span",{children:o})]})};const c=l;var g={wrapper:(0,t.AH)("padding-block:",r.YK[8],";;label:wrapper;"),option:function(e,o){return(0,t.AH)(a.xB.resetButton,";",i.I.body(),";width:100%;padding:",r.YK[10]," ",r.YK[20],";transition:background-color 0.3s ease-in-out;cursor:pointer;display:flex;align-items:center;gap:",r.YK[8],";:hover{background-color:",r.nm.surface.hover,";}",e&&(0,t.AH)("color:",r.nm.text.critical,";&:hover{background-color:",r.nm.surface.critical.neutralHover,";}&:active{background-color:",r.nm.surface.critical.neutralPressed,";};label:option;")," ",o&&(0,t.AH)("color:",r.nm.text.disabled,";cursor:not-allowed;;label:option;"),";;label:option;")},button:(0,t.AH)("width:32px;height:32px;border-radius:",r.Vq.circle,";display:flex;justify-content:center;align-items:center;transition:background-color 0.3s ease-in-out;:hover{background-color:",r.nm.surface.selected.default,";};label:button;")}}}]);