import{jsxs as o,Fragment as s,jsx as c}from"react/jsx-runtime";import i from"classnames";import{CheckSmallIcon as n}from"../../../icons/iconParkIcons.js";import"../../../icons/customIcons/icons/AddMessage.js";import"../../../icons/customIcons/icons/Attention.js";import"../../../icons/customIcons/icons/Collapse.js";import"../../../icons/customIcons/icons/Dashboard.js";import"../../../icons/customIcons/icons/Expand.js";import"../../../icons/customIcons/icons/FolderClosed.js";import"../../../icons/customIcons/icons/FolderClosedFilled.js";import"../../../icons/customIcons/icons/FolderOpened.js";import"../../../icons/customIcons/icons/GreaterOrEqual.js";import"../../../icons/customIcons/icons/LessOrEqual.js";import"../../../icons/customIcons/icons/Search.js";import"../../../icons/customIcons/icons/Wellhub.js";import"../../../icons/customIcons/icons/MultiRuler.js";import"../../../icons/customIcons/icons/Checkbox.js";import"../../../icons/customIcons/icons/CheckboxChecked.js";import"../../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../../icons/customIcons/icons/Radio.js";import"../../../icons/customIcons/icons/RadioChecked.js";import"../../../icons/customIcons/icons/SimulFrac.js";import"../../../icons/customIcons/icons/ZipperFrac.js";import"../../../icons/customIcons/icons/CautionFilled.js";import"../../../icons/customIcons/icons/MoreApp.js";import{Regular20 as t,Regular16 as e,Regular14 as r}from"../../Typography.js";import{Tooltip as m}from"../../Tooltip/Tooltip.js";import"../../Tooltip/ScrollableTooltip.js";import{Size as l}from"../constants.js";import{useStyles as a}from"./styles.js";var p,u=((p={})[l.Large]={value:t,label:e},p[l.Medium]={value:e,label:r},p),d=function(t){var e,r,p=t.label,d=t.value,j=t.canGoBack,I=void 0===j||j,b=t.className,h=t.goBackTooltip,v=void 0===h?"Go Back":h,k=t.tooltip,C=t.onClick,f=t.size,F=void 0===f?l.Medium:f,M=t.checked,x=t.active,T=t.error,g=t.disabled,N=a(),y=u[F]||u[l.Medium],A=I&&M,B=!(A&&C||k),E=o(s,{children:[A&&v,A&&k&&o(s,{children:[c("br",{}),c("br",{})]}),k]}),G=((e={})[l.Large]="",e[l.Medium]=N.medium,e),L=o("div",{className:i(N.step,(r={},r[N.error]=T,r[N.disabled]=g,r[N.passed]=M,r[N.current]=x,r[N.hoverable]=I,r),G[F],b),onClick:A?C:void 0,children:[c(y.value,{className:N.value,children:I||!M?d:c(n,{})}),c(y.label,{className:N.label,children:p})]});return B?L:c(m,{title:E,placement:"bottom",children:L})};export{d as Step};
