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