import{b8 as d,R as u,g as c,F as r,j as a,bT as p}from"./app-BgLa5dit.js";import{B as k,a as g}from"./BTbZzD17.chunk.js";import{u as m}from"./DL8ott7R.chunk.js";import{B as o}from"./DpWmZ9cE.chunk.js";import{W as L}from"./B3eOBVf8.chunk.js";import{W as U}from"./DJ0pq8J_.chunk.js";import{a as x}from"./MEkA24R1.chunk.js";const f="_wizardContent_1apso_1",B={wizardContent:f},n="userManager.bulkUserUploadWizardLayout",i="bulk:user:upload:nav:lock";function C(e){const{users:t,setUsers:l}=m(),s=d();return u.useEffect(()=>{if(!t){c.trigger(e.appLinks.userManager,{replace:!0});return}return s.lock({id:i,title:r.getPhrase(n,"navLockTitle"),text:r.getPhrase(n,"navLockBody"),appLinkWhitelist:o.getWizardAppLinks(e.appLinks),onConfirmUnlock:()=>{l(null)}}),()=>{s.unlock(i)}},[]),u.useEffect(()=>{t!=null&&t.length||(s.unlock(i),c.trigger(e.appLinks.userManager,{replace:!0}))},[t==null?void 0:t.length]),t?a.jsx(x,{children:a.jsxs("div",{className:"px-3",children:[a.jsx(L,{title:r.getPhrase(n,"bulkUpload"),currentStep:e.currentStep,loaded:!0,continueButton:a.jsx(g,{currentStep:e.currentStep,appLinks:e.appLinks,canAddExistingUsers:e.canAddExistingUsers}),backButton:a.jsx(k,{currentStep:e.currentStep,appLinks:e.appLinks}),breadcrumbs:[{name:r.getPhrase(n,"settingsBreadcrumb"),appLink:e.appLinks.settings},{name:r.getPhrase(n,e.userType===p.Learner?"studentManager":"staffManager"),appLink:e.appLinks.userManager},{name:r.getPhrase(n,"bulkUpload"),active:!0}]}),a.jsxs("div",{className:"row g-0",children:[a.jsx("div",{className:"col-2",children:a.jsx(U,{steps:o.getSteps(e.userType,e.canAddExistingUsers),currentStep:e.currentStep})}),a.jsx("div",{className:`col-10 ${B.wizardContent}`,children:e.children})]})]})}):a.jsx(a.Fragment,{})}export{C as B,i as a};
//# sourceMappingURL=C0Fqgg75.chunk.js.map
