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(e,t,o,s,a,l,i,n,r,d,c,u,b,p,g,y,f){"use strict";const m=l.forwardRef((({variant:e="outlined",isLoading:l=!1,isDisabled:n=!1,size:d="md",display:c="all",type:u="button",startIcon:b,edge:p,testId:g,onAction:m,label:L="",tooltip:h,"aria-describedby":B,width:P,...T},v)=>{const{globalEventProps:A}=y.processGlobals(T),x=!n&&l,C=f.default.accButtonProgressStatus({label:L}),w=f.default.accButtonProgressComplete({label:L}),j=x&&("label"==c||!b)?h||L:h,{tooltipContent:D,tooltipProps:I}=i.useTooltip({text:j,isDisabled:n}),S=!b||"label"===c,U={type:"button",buttonType:u},k=t.jsx(a.ProgressButtonLabelLayout,{display:c,isLoadingContrast:"callToAction"===e,startIcon:b,accessibleLoadedLabel:w,accessibleLoadingLabel:C,size:d,isLoading:x,children:L}),{"aria-describedby":z,...E}=I;return t.jsxs(o.Fragment,{children:[t.jsx(s.BaseButton,{...r.mergeProps(E,A),ref:v,elementDetails:U,isDisabled:n,isReadOnly:x,size:d,width:P,edge:p,variant:e,styling:S?x?["default","hiddenLabel","noHoverActive"]:["default"]:x?["noHoverActive","min"]:["min"],onAction:m,"aria-label":L,testId:g,children:k}),D]})}));m.displayName="ProgressButton",e.ProgressButton=m}));
//# sourceMappingURL=ProgressButton-cd0c21df.js.map
