define(['exports', 'preact/jsx-runtime', 'preact', 'preact/compat', 'preact/hooks', './BaseButton-c86afd54', './useTooltip-7b915f4c', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-733ade2f', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-30886397', './useButtonSetContext-dffdaea3', './ToggleButtonLabel-2f0e4f18', './toggleButtonUtils-0ebe4c56', './buttonUtils-97878e90'], (function(t,e,o,s,n,i,l,a,r,u,c,d,p,b,g,B,f,h){"use strict";const y=s.forwardRef((({children:t,tooltip:s,value:r,accessibleLabel:u,isSelected:c=!1,onToggle:d,position:p,testId:b,width:y,"aria-describedby":S,...m},T)=>{const x=g.useButtonSetContext(),{inputProps:v,buttonSetButtonProps:w,isDisabled:C}=h.processSetButtonProps(m,x),I=n.useRef(null);n.useImperativeHandle(T,(()=>I.current),[I]);const{tooltipContent:P,tooltipProps:L}=l.useTooltip({text:s??u,isDisabled:C}),U=f.toggleStyling(w.layoutWidth,c,!1,!0,"outlined"===w.variant,p,void 0,!0),j={"aria-describedby":S};return e.jsxs(o.Fragment,{children:[e.jsx(i.BaseButton,{...a.mergeProps(w,j,L),elementDetails:{type:"span",isFocusable:!1,isLabel:!0},onAction:()=>d?.({value:c}),styling:U,width:x.width?"100%":y,ref:I,testId:b,children:e.jsx(B.ToggleButtonLabel,{label:u??s,display:"icons",isSelected:c,...v,value:r,startIcon:t})}),P]})}));y.displayName="ButtonSetIconButton",t.ButtonSetIconButton=y}));
//# sourceMappingURL=ButtonSetIconButton-9f171b1e.js.map
