import{u as i,j as e,C as t,k as d,q as c,s as r}from"./vendor-BKmmeuxg.js";import{L as m}from"./live-class-status-DRscMQ3s.js";import{A as x,a as p,b as h,c as j}from"./accordion-CNBvFN43.js";import{C as u}from"./card-D9_SJYq6.js";import{e as f}from"./richtor-CRcM6Du2.js";import"./button-BpNwv2aE.js";import"./index-WW_1X1qx.js";import"./utils-DxSsnXxD.js";const C=()=>{const{props:l}=i(),{course:o,live_classes:a,zoomConfig:n}=l;return e.jsx("div",{className:"space-y-4",children:a.length<=0?e.jsxs("div",{className:"p-8 text-center",children:[e.jsx(t,{className:"mx-auto mb-4 h-12 w-12 text-gray-400"}),e.jsx("h3",{className:"mb-2 text-lg font-medium",children:"No Live Classes Scheduled"}),e.jsx("p",{className:"text-gray-500",children:"Schedule your first live class to get started with Zoom."})]}):a.map(s=>e.jsxs(u,{className:"space-y-4 p-4",children:[e.jsx("p",{className:"text-base font-medium",children:s.class_topic}),e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("div",{className:"text-muted-foreground space-y-3 text-sm",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(d,{className:"h-4 w-4"}),e.jsx("span",{children:c(r(s.class_date_and_time),"p")})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(t,{className:"h-4 w-4"}),e.jsx("span",{children:c(r(s.class_date_and_time),"PPP")})]})]}),e.jsx("div",{className:"flex flex-col gap-2",children:e.jsx(m,{courseId:o.id,liveClass:s,zoomConfig:n})})]}),s.class_note&&e.jsx(x,{type:"single",collapsible:!0,className:"w-full",children:e.jsxs(p,{value:"item-1",className:"bg-muted overflow-hidden rounded-lg border-none",children:[e.jsx(h,{className:"[&[data-state=open]]:!bg-secondary-lighter px-3 py-1.5 text-sm font-normal hover:no-underline",children:"Class Note"}),e.jsx(j,{className:"p-3",children:e.jsx(f,{value:s.class_note})})]})})]},s.id))})};export{C as default};
