define(['exports', 'preact/jsx-runtime', './ButtonLabelLayout-ce54dfdc', './ChevronDown-502b16f2', './Menu-bb715ef5', './MenuItem-1a324975', 'preact/hooks', 'preact', './useTooltip-7b915f4c', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-733ade2f', 'preact/compat', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-30886397', 'css!./IconStyle.styles.css', './SelectMenuGroupContext-67f24a8f', './UNSAFE_Separator/themes/SeparatorStyles.css', 'css!./MenuSeparatorStyles.styles.css', 'module', './UNSAFE_Menu/themes/redwood/MenuSeparatorVariants.css', './useMenuAction-4ecda01c', './BaseButton-c86afd54'], (function(e,t,s,o,n,a,i,r,l,c,u,d,p,b,m,y,h,f,M,S,g,T,x,B,I){"use strict";const w=p.forwardRef((({children:e,tooltip:a,accessibleLabel:u,variant:d="outlined",isDisabled:p=!1,isMenuOpen:b=!1,isIconOnly:m=!1,onToggleMenu:y,size:h="md",type:f="button",testId:M,width:S,icon:g,"aria-describedby":T},x)=>{const w=i.useRef(null);i.useImperativeHandle(x,(()=>w.current),[w]);const{triggerProps:j,menuProps:v}=B.useMenuAction({isDisabled:p,onToggleMenu:y,isMenuOpen:b,anchorRef:w}),{tooltipContent:A,tooltipProps:C}=l.useTooltip({text:a||u,isDisabled:b||p}),D={type:"button",buttonType:f},F={"aria-describedby":T},L=t.jsx(r.Fragment,{children:t.jsxs(I.BaseButton,{...c.mergeProps(C,j,F),styling:b?["min","active"]:["min"],elementDetails:D,isDisabled:p,variant:d,width:S,size:h,ref:w,"aria-label":u??a,testId:M,children:[t.jsx(s.ButtonLabelLayout,{display:"icons",startIcon:g,endIcon:m?null:t.jsx(o.SvgChevronDown,{}),size:h}),A]})});return p?L:t.jsxs(r.Fragment,{children:[L,t.jsx(n.Menu,{...v,offsetValue:4,"aria-label":u??a,children:e})]})}));w.displayName="IconMenuButton",e.IconMenuButton=w}));
//# sourceMappingURL=IconMenuButton-3f3c2386.js.map
