"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../../ext-esm/tslib/tslib.es6.js'),s=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/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");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(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}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,v=o.tooltip,h=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(),f=d[g]||d[n.Size.Medium],z=q&&k,M=!(z&&h||v),R=s.jsxs(s.Fragment,{children:[z&&b,z&&v&&s.jsxs(s.Fragment,{children:[s.jsx("br",{}),s.jsx("br",{})]}),v]}),T=((c={})[n.Size.Large]="",c[n.Size.Medium]=F.medium,c),y=s.jsxs("div",e.__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:z?h:void 0},{children:[s.jsx(f.value,e.__assign({className:F.value},{children:q||!k?m:s.jsx(i.CheckSmallIcon,{})})),s.jsx(f.label,e.__assign({className:F.label},{children:a}))]}));return M?y:s.jsx(r.Tooltip,e.__assign({title:R,placement:"bottom"},{children:y}))};
