import{__assign as o}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,Fragment as c,jsx as i}from"react/jsx-runtime";import n from"classnames";import{CheckSmallIcon as e}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/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{Regular20 as t,Regular16 as r,Regular14 as m}from"../../Typography.js";import{Tooltip as l}from"../../Tooltip/Tooltip.js";import"../../Tooltip/ScrollableTooltip.js";import{Size as a}from"../constants.js";import{useStyles as p}from"./styles.js";var u,d=((u={})[a.Large]={value:t,label:r},u[a.Medium]={value:r,label:m},u),j=function(t){var r,m,u=t.label,j=t.value,I=t.canGoBack,b=void 0===I||I,h=t.className,v=t.goBackTooltip,k=void 0===v?"Go Back":v,C=t.tooltip,f=t.onClick,F=t.size,x=void 0===F?a.Medium:F,M=t.checked,T=t.active,g=t.error,N=t.disabled,y=p(),B=d[x]||d[a.Medium],E=b&&M,G=!(E&&f||C),L=s(c,{children:[E&&k,E&&C&&s(c,{children:[i("br",{}),i("br",{})]}),C]}),O=((r={})[a.Large]="",r[a.Medium]=y.medium,r),R=s("div",o({className:n(y.step,(m={},m[y.error]=g,m[y.disabled]=N,m[y.passed]=M,m[y.current]=T,m[y.hoverable]=b,m),O[x],h),onClick:E?f:void 0},{children:[i(B.value,o({className:y.value},{children:b||!M?j:i(e,{})})),i(B.label,o({className:y.label},{children:u}))]}));return G?R:i(l,o({title:L,placement:"bottom"},{children:R}))};export{j as Step};
