import{aI as m,i$ as r,ao as t,L as x,ba as u}from"./app-k0jcl5PQ.js";import{B as h}from"./CCtuxSlD.chunk.js";function S(e){const{showButtons:n}=m.useContext(r);return t.jsxs("div",{className:"d-flex justify-content-between",children:[e.hideHeader?t.jsx("div",{}):t.jsxs("div",{children:[t.jsx("h1",{className:"h2",children:e.title}),e.breadcrumbs&&t.jsx("div",{className:"pb-3",children:t.jsx(h,{breadcrumbs:e.breadcrumbs})})]}),e.loaded&&n&&t.jsxs("div",{className:"d-flex align-items-center",children:[e.backButton,e.continueButton]})]})}const b="shared.wizardStepList",j=x.encloseNamespace(b);function f(e){var i,a,d,l,c;const n=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 s="px-2 py-1 mb-1 rounded d-inline-block";return e.isSelected&&(s+=` ${((i=e.theme)==null?void 0:i.isSelectedOverride)||"bg-light-blue fw-semibold"}`),!e.isSelected&&e.isCompleted&&(s+=` ${((a=e.theme)==null?void 0:a.isCompletedOverride)||"text-info"}`),e.disabled&&(s+=" text-secondary cursor-default"),t.jsx("li",{className:(d=e.theme)==null?void 0:d.item,children:e.isCompleted&&e.appLink?t.jsx(u,{appLink:e.disabled?null:e.appLink,className:`${s} ${((l=e.theme)==null?void 0:l.itemContent)||""}`,children:n}):t.jsx("div",{className:`${s} ${((c=e.theme)==null?void 0:c.itemContent)||""}`,children:n})})}function v(e){var s;const n=e.steps.reduce((i,a,d)=>(a.id===e.currentStep&&(i=d+1),i),1);return t.jsxs(t.Fragment,{children:[t.jsx("h2",{className:"h4",children:j("stepNumber",{currentStep:n,totalSteps:e.steps.length})}),t.jsx("ol",{className:`list-unstyled ${((s=e.theme)==null?void 0:s.itemsContainer)||""}`,children:e.steps.map((i,a)=>{const d=i.id===e.currentStep,l=n>a+1;return t.jsx(f,{index:a,text:i.text,subText:i.subText,isSelected:d,isCompleted:l,appLink:!e.disableAppLinks&&i.appLink,disabled:i.disabled,theme:e.theme},i.id)})})]})}export{S as W,v as a};
//# sourceMappingURL=Djb1f-EX.chunk.js.map
