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