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