1import{l as u,ad as l,r as d,j as e,B as a,N as m}from"./index-DICudJnO.js";import{P as p}from"./PageWrapper--4MkMB2g.js";import{C as x}from"./CourseContentWizardStep-DPkqyt6y.js";import"./house-4CcEDmSo.js";import"./Select-CM9EvXGO.js";import"./form-field-DOkYsI6H.js";import"./label-DGS9-O-X.js";import"./UploadProgressModal-YOysVvrf.js";import"./Input-ZvPKoKhP.js";import"./input-CkFNqs_v.js";import"./sharePointService-DNRQCwfl.js";import"./courseService-CGdt-O7P.js";import"./quizAdminService-DWbsxcwQ.js";import"./grip-vertical-DaFKRWD-.js";const E=()=>{const s=u(),[n,r]=l(),[i,t]=d.useState(null);return d.useEffect(()=>{const c=n.get("courseId"),o=sessionStorage.getItem("createCourse_courseId");c?t(c):o?(t(o),r({courseId:o})):t(null)},[n,r]),e.jsx(p,{title:"Course Content",description:"Add content to an existing course",glassyBackground:!0,children:e.jsxs("div",{className:"max-w-4xl flex flex-col gap-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(a,{variant:"outline",onClick:()=>s("/admin/courses"),children:"Back to courses"}),e.jsx(a,{variant:"outline",onClick:()=>s("/admin/create-course"),children:"Start new course wizard"})]}),i?e.jsx(x,{courseId:i,onPublished:()=>{sessionStorage.removeItem("createCourse_courseId"),r({}),s("/admin/courses")},onFinishLater:()=>s("/admin/courses")}):e.jsxs(e.Fragment,{children:[e.jsxs(m,{variant:"warning",title:"Course not selected",children:["Please open this page with a ",e.jsx("span",{className:"font-mono",children:"courseId"})," (for example: ",e.jsx("span",{className:"font-mono",children:"/admin/course-content?courseId=..."}),"), or use the Create Course wizard."]}),e.jsx("div",{className:"card-elevated",children:e.jsx(a,{onClick:()=>s("/admin/create-course"),children:"Go to Create Course"})})]})]})})};export{E as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.