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 t}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 e,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:e,label:r},u[a.Medium]={value:r,label:m},u),j=function(e){var r,m,u=e.label,j=e.value,I=e.canGoBack,b=void 0===I||I,h=e.className,v=e.goBackTooltip,k=void 0===v?"Go Back":v,C=e.tooltip,f=e.onClick,F=e.size,M=void 0===F?a.Medium:F,x=e.checked,T=e.active,g=e.error,N=e.disabled,y=p(),A=d[M]||d[a.Medium],B=b&&x,E=!(B&&f||C),G=s(c,{children:[B&&k,B&&C&&s(c,{children:[i("br",{}),i("br",{})]}),C]}),L=((r={})[a.Large]="",r[a.Medium]=y.medium,r),O=s("div",o({className:n(y.step,(m={},m[y.error]=g,m[y.disabled]=N,m[y.passed]=x,m[y.current]=T,m[y.hoverable]=b,m),L[M],h),onClick:B?f:void 0},{children:[i(A.value,o({className:y.value},{children:b||!x?j:i(t,{})})),i(A.label,o({className:y.label},{children:u}))]}));return E?O:i(l,o({title:G,placement:"bottom"},{children:O}))};export{j as Step};
