import{j as t,F as m,Y as r}from"./app-BgLa5dit.js";const x="shared.wizardStepList",h=m.encloseNamespace(x);function u(e){var i,s,d,a,c;const l=t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"d-flex",children:[!e.hideStepNumber&&t.jsxs("div",{className:"flex-shrink-0 flex-grow-0",children:[`${e.index+1}.`," "]}),t.jsx("div",{children:e.text})]}),e.subText&&t.jsx("div",{className:"ms-2 ps-1 pt-1",children:e.subText})]});let n="px-2 py-1 mb-1 rounded d-inline-block";return e.isSelected&&(n+=` ${((i=e.theme)==null?void 0:i.isSelectedOverride)||"bg-light-blue fw-semibold"}`),!e.isSelected&&e.isCompleted&&(n+=` ${((s=e.theme)==null?void 0:s.isCompletedOverride)||"text-info"}`),e.disabled&&(n+=" text-secondary cursor-default"),t.jsx("li",{className:(d=e.theme)==null?void 0:d.item,children:e.isCompleted&&e.appLink?t.jsx(r,{appLink:e.disabled?null:e.appLink,className:`${n} ${((a=e.theme)==null?void 0:a.itemContent)||""}`,children:l}):t.jsx("div",{className:`${n} ${((c=e.theme)==null?void 0:c.itemContent)||""}`,children:l})})}function j(e){var n;const l=e.steps.reduce((i,s,d)=>(s.id===e.currentStep&&(i=d+1),i),1);return t.jsxs(t.Fragment,{children:[t.jsx("h2",{className:"h4",children:h("stepNumber",{currentStep:l,totalSteps:e.steps.length})}),t.jsx("ol",{className:`list-unstyled ${((n=e.theme)==null?void 0:n.itemsContainer)||""}`,children:e.steps.map((i,s)=>{const d=i.id===e.currentStep,a=l>s+1;return t.jsx(u,{index:s,text:i.text,subText:i.subText,isSelected:d,isCompleted:a,appLink:!e.disableAppLinks&&i.appLink,disabled:i.disabled,theme:e.theme},i.id)})})]})}export{j as W};
//# sourceMappingURL=DJ0pq8J_.chunk.js.map
