define(['exports', 'preact/jsx-runtime', 'preact', './BaseButton-c86afd54', './ProgressButtonLabelLayout-76d8a3e7', 'preact/compat', './useTooltip-7b915f4c', 'preact/hooks', './mergeProps-bcfa6a92', './logger-0f873e29', './LayerHost-733ade2f', 'css!./TooltipContentStyles.styles.css', 'module', './hooks/UNSAFE_useTooltip/themes/redwood/TooltipContentVariants.css', './tooltipUtils-30886397', './buttonUtils-97878e90', './resources/nls/en/bundle'], (function(t,e,o,s,a,i,n,l,r,c,d,p,u,b,g,m,y){"use strict";const L=i.forwardRef((({variant:t="outlined",isLoading:i=!1,isDisabled:l=!1,size:c="md",type:d="button",onAction:p,width:u,tooltip:b,testId:g,...L},f)=>{const{globalEventProps:h}=m.processGlobals(L),B=!l&&i,P=y.default.accButtonProgressStatus({label:b}),T=y.default.accButtonProgressComplete({label:b}),x={type:"button",buttonType:d},A=b,{tooltipContent:C,tooltipProps:v}=n.useTooltip({text:A,isDisabled:l}),{"aria-describedby":w,...I}=v;return e.jsxs(o.Fragment,{children:[e.jsx(s.BaseButton,{...r.mergeProps(I,h),ref:f,elementDetails:x,isReadOnly:B,isDisabled:l,size:c,variant:t,width:u,styling:B?["min","hiddenLabel","noHoverActive"]:["min"],onAction:p,"aria-label":b,testId:g,children:e.jsx(a.ProgressButtonLabelLayout,{display:"icons",isLoading:B,accessibleLoadedLabel:T,accessibleLoadingLabel:P,isLoadingContrast:"callToAction"===t,startIcon:L.children,size:c})}),C]})}));L.displayName="IconProgressButton",t.IconProgressButton=L}));
//# sourceMappingURL=IconProgressButton-11c44c28.js.map
