PageSourceSearch

https://www.vetgeni.com/_next/static/chunks/pages/demo/administrat…/assignments-10c9ea971ad5cb41.js

js vetgeni.com collected 2026-10-02 00:10:24 UTC 23,044 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[18798],{48479:(e,t,s)=>{"use strict";s.d(t,{Ts:()=>u,ix:()=>c,lN:()=>x,tq:()=>d});var i=s(90855);let n={TAMU:"America/Chicago",VERO:"America/Chicago",GENI:"America/Chicago",ALL:"America/Chicago"},r=n[i.Ms]??"America/Chicago",o=new Map,a=new Map,l=new Map;function d(e){let t=(0,i.to)(e);return t?n[t]||n[i.Ms]||r:n[i.Ms]??r}function c(e,t={}){if(!e)return"";let s=new Date(e instanceof Date?e.getTime():e);return Number.isNaN(s.getTime())?"":t.timeZone?function(e,t){let s,i=(!(s=o.get(t))&&(s=new Intl.DateTimeFormat("en-CA",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hour12:!1}),o.set(t,s)),s).formatToParts(e),n={};for(let e of i)"literal"!==e.type&&(n[e.type]=e.value);return n.year&&n.month&&n.day&&n.hour&&n.minute?`${n.year}-${n.month}-${n.day}T${n.hour}:${n.minute}`:""}(s,t.timeZone):(s.setMinutes(s.getMinutes()-s.getTimezoneOffset()),s.toISOString().slice(0,16))}function u(e,t={}){if(!e)return null;if(t.timeZone){let[s,i]=e.split("T");if(!s||!i)return null;let[n,r,o]=s.split("-"),[l,d]=i.split(":");if(!n||!r||!o||!l||!d)return null;let c=Number(n),u=Number(r),x=Number(o),h=Number(l),m=Number(d);if(Number.isNaN(c)||Number.isNaN(u)||Number.isNaN(x)||Number.isNaN(h)||Number.isNaN(m))return null;let p=new Date(Date.UTC(c,u-1,x,h,m,0)),b=function(e,t){let s,i=(!(s=a.get(t))&&(s=new Intl.DateTimeFormat("en-US",{timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}),a.set(t,s)),s).formatToParts(e),n={};for(let e of i)"literal"!==e.type&&(n[e.type]=Number(e.value));if(void 0===n.year||void 0===n.month||void 0===n.day||void 0===n.hour||void 0===n.minute)return 0;let r=void 0===n.second?0:n.second;return(Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,r)-e.getTime())/6e4}(p,t.timeZone);return new Date(p.getTime()-6e4*b).toISOString()}let s=new Date(e);return Number.isNaN(s.getTime())?null:s.toISOString()}function x(e,t,s){let i=e instanceof Date?e:new Date(e);if(Number.isNaN(i.getTime()))return"";let n=JSON.stringify({timeZone:t,options:s||null}),r=l.get(n);return r||(r=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0,timeZone:t,...s||{}}),l.set(n,r)),r.format(i)}},56540:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/demo/administration/communications/second-year/assignments",function(){return s(92243)}])},92243:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>ei,default:()=>en});var i=s(37876),n=s(14232),r=s(58398),o=s(95049),a=s(22252),l=s(12878),d=s(47104),c=s(77328),u=s.n(c),x=s(32937),h=s(21392),m=s(13145),p=s(28482),b=s(89595),f=s(52563),g=s(17455),A=s(77090),j=s(9846),y=s(69257),v=s(94870),_=s(28439),S=s(17808),w=s(78163),C=s(12992),k=s(796),N=s(97384),z=s(42922),I=s(51522),E=s(40137),M=s(97544),T=s(2769),W=s(65648),O=s(4185),F=s(49747),D=s(10163),R=s(21961),P=s(31286),$=s(82168),G=s(67603),U=s(31734),B=s(33667),H=s(90195),L=s(47086),Y=s(34838),Z=s(9628),q=s(75532),V=s(62599),X=s(98486),J=s(89099),K=s(85115),Q=s(13868),ee=s(48479);let et="#C8102E",es="#000000";var ei=!0;let en=({user:e,userRole:t,department:s,isMasterUser:c=!1,availableCampuses:ei,adminData:en})=>{let er=(0,J.useRouter)(),[eo,ea]=(0,n.useState)(!1),[el,ed]=(0,n.useState)(null),[ec,eu]=(0,n.use
1State)(!1),[ex,eh]=(0,n.useState)(!1),[em,ep]=(0,n.useState)(!1),[eb,ef]=(0,n.useState)(null),[eg,eA]=(0,n.useState)({release_at:"",close_at:"",is_enabled:!0,module_type:"osce",override_to_active:!1}),[ej,ey]=(0,n.useState)({}),ev=(0,n.useMemo)(()=>{let e=new Set;if(ei?.length)for(let t of ei)t&&e.add(t.toUpperCase());return en?.campus&&e.add(en.campus.toUpperCase()),0===e.size&&e.add("GENI"),Array.from(e)},[ei,en?.campus]),e_=(0,n.useMemo)(()=>[...ev],[ev]),[eS,ew]=(0,n.useState)(ev[0]??"GENI");(0,n.useEffect)(()=>{ew(e=>ev.includes(e)?e:ev[0]??"GENI")},[ev]);let eC=(0,n.useMemo)(()=>[eS],[eS]),ek=(0,n.useMemo)(()=>(0,ee.tq)(eS),[eS]),eN=(0,n.useCallback)(e=>(0,ee.ix)(e??null,{timeZone:ek}),[ek]),ez=(0,n.useCallback)(e=>(0,ee.Ts)(e??null,{timeZone:ek}),[ek]),eI=[{id:"osce-module-scruffy-cat-2",title:"Practice Case: Scruffy",description:"12-year-old neutered male cat presenting for urinating outside of the litter box.",icon:(0,i.jsx)(r.A,{size:32,color:"#ffffff"}),color:"#FF69B4",gradient:"linear-gradient(135deg, #FF69B4 0%, #FF1493 100%)",duration:"3-5 min",tag:"Practice Session"},{id:"osce-module-lucy-dystocia",title:"Lucy Dystocia Consultation",description:"Canine dystocia communication station with diagnostics explanation and revised planning after the workup update",icon:(0,i.jsx)(o.A,{size:32,color:"#ffffff"}),color:"#d84315",gradient:"linear-gradient(135deg, #d84315 0%, #ff7043 100%)",duration:"8 min",tag:"Spring Semester"},{id:"osce-module-turtle",title:"Slider Turtle Husbandry",description:"Exotic animal medicine - Red-eared slider turtle husbandry consultation",icon:(0,i.jsx)(a.A,{size:32,color:"#ffffff"}),color:"#2e7d32",gradient:"linear-gradient(135deg, #2e7d32 0%, #4caf50 100%)",duration:"8 min",tag:"Fall Semester"},{id:"osce-module-tony-kitten",title:"Tony Kitten Wellness",description:"New patient wellness visit for a 4-month-old male kitten",icon:(0,i.jsx)(r.A,{size:32,color:"#ffffff"}),color:"#9c27b0",gradient:"#C8102E",duration:"8 min",tag:"Fall Semester"}],eE=(0,n.useCallback)(async()=>{try{let{data:e,error:t}=await Q.supabase.from("module_release_status_vw").select("*").eq("year_level","Second Year").in("campus",eC);if(t)throw t;if(Array.isArray(e)){let t={};e.forEach(e=>{t[e.module_id]=e,"osce-module-scruffy-cat-2"===e.module_id||"osce-module-lucy-dystocia"===e.module_id||e.module_id}),ey(t)}else ey({})}catch(e){}},[eC]);(0,n.useEffect)(()=>{eE()},[eE]);let eM=async e=>{ed(e),eu(!0),ea(!0);try{let{data:t,error:s}=await Q.supabase.from("module_release_schedule").select("*").eq("module_id",e.id).eq("year_level","Second Year").eq("campus",eS).maybeSingle();if(s)throw s;if(t){ef(t);let e=t.release_at&&new Date(t.release_at)<new Date;eA({release_at:eN(t.release_at),close_at:eN(t.close_at),is_enabled:t.is_enabled,module_type:"osce",override_to_active:e})}else ef(null),eA({release_at:"",close_at:"",is_enabled:!0,module_type:"osce",override_to_active:!1})}catch(e){}finally{eu(!1)}},eT=async()=>{eh(!0);try{let e=ez(eg.release_at),t=ez(eg.close_at),s={module_id:el.id,year_level:"Second Year",campus:eS,is_enabled:eg.is_enabled,module_type:"osce"};if(eg.override_to_active&&eg.is_enabled?s.release_at=new Date(Date.now()-36e5).toISOString():eg.is_enabled?eg.release_at?s.release_at=e:s.release_at=null:s.release_at=e,s.close_at=t,eb){let{data:e,error:t}=await Q.supabase.from("module_release_schedule").update(s).eq("id",eb.id).select().single();if(t)throw t}else{let{data:e,error:t}=await Q.supabase.from("module_release_schedule").insert(s).select().single();if(t)throw t}await eE(),ea(!1)}catch(e){alert("Failed to save schedule. Please try again."),e instanceof Error&&e.message}finally{eh(!1)}},eW=(0,i.jsxs)(x.A,{sx:{display:"flex",gap:1},children:[(0,i.jsx)(h.A,{variant:"contained",size:"small",onClick:()=>er.push("/demo/administration"),startIcon:(0,i.jsx)(P.A,{style:{fontSize:18}}),sx:{backgroundColor:"#C8102E !important",color:"white !important",px:3,py:1,fontSize:"0.875rem",fontWeight:500,textTransform:"none",borderRadius:"6px",boxShadow:"0 2px 6px rgba(0,0,0,0.15)",border:"1px solid rgba(255,255,255,0.15)","&:hover":{backgroundColor:"#000000 !important"}
1,"&:focus":{outline:"2px solid #C8102E",outlineOffset:2}},"aria-label":"Back to Administration Dashboard",children:"Back to Dashboard"}),(0,i.jsx)(h.A,{variant:"contained",size:"small",onClick:()=>er.push("/demo/administration/communications"),startIcon:(0,i.jsx)($.A,{style:{fontSize:18}}),sx:{background:"#C8102E !important",color:"white !important",px:3,py:1,fontSize:"0.875rem",fontWeight:500,textTransform:"none",borderRadius:"6px","&:hover":{background:"linear-gradient(135deg, #000000 0%, #000000 50%, #000000 75%, #000000 85%, #000000 100%) !important"}},"aria-label":"Back to Communications",children:"Back to Communications"})]});return(0,i.jsxs)(K.A,{extraActions:eW,children:[(0,i.jsxs)(u(),{children:[(0,i.jsx)("title",{children:"OSCE Communication - Scheduling - VetGeni Demo"}),(0,i.jsx)("meta",{name:"description",content:"Manage scheduling and module release timelines for OSCE Communication second year students"})]}),(0,i.jsxs)(x.A,{sx:{minHeight:"100vh",bgcolor:"#f8f9fa"},children:[(0,i.jsx)(x.A,{sx:{background:"#C8102E",color:"white",pt:8,pb:12,position:"relative",overflow:"hidden","&::before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,background:'url("/pattern.svg")',opacity:.1}},children:(0,i.jsx)(m.A,{maxWidth:"lg",children:(0,i.jsx)(p.A,{in:!0,timeout:800,children:(0,i.jsxs)(x.A,{sx:{textAlign:"center",position:"relative",zIndex:1},children:[(0,i.jsx)(x.A,{sx:{display:"flex",justifyContent:"center"},children:(0,i.jsxs)(x.A,{sx:{position:"relative"},children:[(0,i.jsx)(b.A,{sx:{width:100,height:100,mb:4,bgcolor:"rgba(255, 255, 255, 0.15)",backdropFilter:"blur(10px)",border:"3px solid rgba(255, 255, 255, 0.3)",boxShadow:"0 8px 32px rgba(0, 0, 0, 0.2)"},children:(0,i.jsx)(G.A,{sx:{fontSize:56}})}),(0,i.jsx)(x.A,{sx:{position:"absolute",top:-8,right:-8,width:32,height:32,borderRadius:"50%",background:"white",color:et,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:"1.1rem",boxShadow:"0 2px 8px rgba(0, 172, 193, 0.4)",border:`2px solid ${et}`},children:"2"})]})}),(0,i.jsx)(f.A,{variant:"h1",component:"h1",sx:{fontWeight:300,mb:2,fontSize:{xs:"2rem",md:"3rem"},fontFamily:'-apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif'},children:"OSCE Communication - Scheduling"}),(0,i.jsx)(f.A,{variant:"h5",component:"p",sx:{opacity:.9,maxWidth:600,mx:"auto",fontWeight:300,lineHeight:1.6,mb:3},children:"Module Scheduling - Second Year"}),(0,i.jsxs)(x.A,{sx:{display:"flex",justifyContent:"center",gap:2,alignItems:"center",flexWrap:"wrap"},children:[(0,i.jsx)(x.A,{sx:{px:3,py:1,borderRadius:25,background:"#C8102E",color:"white",boxShadow:"0 4px 14px rgba(200,16,46,0.35)",display:"flex",alignItems:"center"},children:(0,i.jsxs)(f.A,{variant:"body1",sx:{fontWeight:600,letterSpacing:"0.25px"},children:[en.first_name," ",en.last_name]})}),c&&(0,i.jsx)(g.A,{label:"ADMINISTRATOR",sx:{background:"#FFFFFF",color:"#000",fontWeight:700,letterSpacing:"0.5px",boxShadow:"0 2px 8px rgba(0,0,0,0.25)"}}),(0,i.jsx)(x.A,{sx:{px:2.5,py:1,borderRadius:18,background:"#000000",color:"white",fontWeight:700,fontSize:"0.75rem",letterSpacing:"1px",boxShadow:"0 3px 10px rgba(200,16,46,0.45)",textTransform:"uppercase"},children:eS}),(0,i.jsx)(g.A,{icon:(0,i.jsx)(U.A,{}),label:"Class of 2028",sx:{background:"#FFFFFF",color:"#000000",fontWeight:700,borderRadius:"4px",px:2,py:.5,fontSize:"0.875rem","& .MuiChip-icon":{color:"#C8102E"},boxShadow:"0 2px 6px rgba(0,0,0,0.25)"}})]})]})})})}),(0,i.jsxs)(m.A,{maxWidth:"lg",sx:{mt:4,pb:8,position:"relative",zIndex:2},children:[(0,i.jsx)(x.A,{sx:{mb:3,display:"flex",alignItems:"center",gap:2,flexWrap:"wrap"},children:(0,i.jsxs)(A.A,{size:"small",sx:{minWidth:220,backgroundColor:"white",borderRadius:1,"& .MuiOutlinedInput-root":{backgroundColor:"white"}},children:[(0,i.jsx)(j.A,{id:"second-year-campus-select-label",children:"Campus"}),(0,i.jsx)(y.A,{labelId:"second-year-campus-select-label",value:eS,label:"Campus",onChange:e=>ew(e.target.value),disabled:e_.length<=1,children:e_.map(e=>(0,i.jsx)(v.A,{value:e,children:e},e))})]})}),(0,i.jsxs)(x.A,{sx:{mb:4,borderRadius:3,bgcolor:"white",boxShadow:"0 2px 6px rgba(0,0,0,0.06)",border:"1px solid #ececec",overflow:"hidden"},children:[(0,i.jsxs)(x.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",p:2.5,bgcolor:"rgba(92, 0, 24, 0.02)"},children:[(0,i.jsxs)(f.A,{variant:"h6",sx:{fontWeight:600,color:es,display:"flex",alignItems:"center",gap:1},children:[(0,i.jsx)(l.A,{size:20}),"Module Scheduling"]}),(0,i.jsxs)(h.A,{size:"small",variant:"outlined",onClick:()=>ep(e=>!e),endIcon:em?(0,i.jsx)(B.A,{}):(0,i.jsx)(H.A,{}),sx:{textTransform:"none",fontWeight:500,borderColor:et,color:et,"&:hover":{borderColor:es,bgcolor:"rgba(92, 0, 24, 0.04)"}},children:[em?"Hide":"Show"," Instructions"]})]}),(0,i.jsxs)(_.A,{in:em,timeout:"auto",unmountOnExit:!0,children:[(0,i.jsx)(S.A,{}),(0,i.jsxs)(x.A,{component:"ul",sx:{p:3,pt:2,m:0,color:"text.secondary",fontSize:"0.95rem",lineHeight:1.6,bgcolor:"rgba(92, 0, 24, 0.015)"},children:[(0,i.jsxs)("li",{children:[(0,i.jsx)("strong",{children:"Selecting Campuses:"})," Use the Campus dropdown above to switch between GENI and VERO schedules. Each campus is fully independent."]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("strong",{children:"No In
1heritance:"})," The previous global fallback model has been removed. Configure each campus explicitly."]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("strong",{children:"Preview Mode:"})," Enable the module and leave Assessment Opens blank (or set it in the future). Students can view case details but the Start button is ",(0,i.jsx)("strong",{children:"disabled and gray"}),"."]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("strong",{children:"Scheduled Preview:"})," Set a future Assessment Opens time\xc3\xa2\xe2‚\xac\xe2€\x9dcase visible now, Start button unlocks on schedule and shows countdown."]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("strong",{children:"Active Mode:"})," Assessment Opens in the past OR use the ",(0,i.jsx)("em",{children:"Make Immediately Active"})," override toggle. Start button is ",(0,i.jsx)("strong",{children:"green and enabled"}),"."]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("strong",{children:"Immediate Activation:"})," The override toggle forces Active state right away (bypasses all scheduling\xc3\xa2\xe2‚\xac\xe2€\x9dstudents can start assessment immediately)."]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("strong",{children:"Clearing Dates:"})," Use \xc3\xa2\xc2\x9d\xc5’ to remove a time. Blank Close = no deadline."]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("strong",{children:"Optional Fields:"})," Module Closes is optional\xc3\xa2\xe2‚\xac\xe2€\x9dleave blank if no deadline is needed."]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("strong",{children:"Status Indicators:"})," Cards surface Not Scheduled (Hidden), Preview Mode (gray button), Scheduled (countdown), Active (green button), or Closed for fast auditing."]}),(0,i.jsxs)("li",{children:[(0,i.jsx)("strong",{children:"Tip:"})," Stage changes on one campus, verify student experience, then replicate settings on the other campus."]})]})]})]}),(0,i.jsx)(w.A,{sx:{p:3,borderRadius:3,boxShadow:"0 2px 12px rgba(0,0,0,0.08)"},children:(0,i.jsx)(x.A,{sx:{p:3},children:(0,i.jsx)(C.Ay,{container:!0,spacing:3,children:eI.map((e,t)=>{let s=(e=>{let t=ej[e];if(!t)return{label:"Not Configured",color:"default"};if(!t.is_enabled)return{label:"Not Scheduled",color:"error"};switch(t.status_text){case"active":case"always_visible":return{label:"Active",color:"success"};case"osce_preview":case"osce_scheduled":return{label:"Preview Mode",color:"info"};case"disabled":case"hidden":return{label:"Disabled",color:"error"};case"closed":return{label:"Closed",color:"error"};default:if(t.is_visible_now)return{label:"Active",color:"success"};return{label:t.status_text||"Unknown",color:"default"}}})(e.id),n=ej[e.id];return(0,i.jsx)(C.Ay,{item:!0,xs:12,sm:6,md:4,children:(0,i.jsx)(p.A,{in:!0,timeout:800+200*t,children:(0,i.jsx)(k.A,{onClick:()=>eM(e),sx:{cursor:"pointer",height:"100%",transition:"all 0.3s ease",position:"relative",overflow:"visible","&:hover":{transform:"translateY(-8px)",boxShadow:"0 12px 40px rgba(0,0,0,0.15)"}},children:(0,i.jsxs)(N.A,{children:[(0,i.jsxs)(x.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",mb:2},children:[(0,i.jsx)(x.A,{sx:{p:2,borderRadius:2,background:e.gradient,boxShadow:"0 4px 18px rgba(0,0,0,0.15)",display:"flex",alignItems:"center",justifyContent:"center"},children:e.icon}),(0,i.jsxs)(x.A,{sx:{display:"flex",flexDirection:"column",gap:.5,alignItems:"flex-end"},children:[(0,i.jsx)(g.A,{label:s.label,size:"small",sx:{bgcolor:"success"===s.color?"#2e7d32":"warning"===s.color?"#ff9800":"error"===s.color?"#d32f2f":"#757575",color:"white",fontWeight:600,fontSize:"0.7rem"}}),(0,i.jsx)(z.A,{size:"small",sx:{p:.5},children:(0,i.jsx)(L.A,{sx:{fontSize:18,color:"text.secondary"}})})]})]}),(0,i.jsx)(f.A,{variant:"h6",sx:{fontWeight:600,mb:1},children:e.title}),(0,i.jsx)(f.A,{variant:"body2",sx:{color:"text.secondary",mb:2},children:e.description}),(0,i.jsxs)(x.A,{sx:{display:"flex",gap:1,flexWrap:"wrap",mb:2},children:[(0,i.jsx)(g.A,{label:e.duration,size:"small",icon:(0,i.jsx)(d.A,{size:14}),sx:{fontSize:"0.75rem"}}),(0,i.jsx)(g.A,{label:e.tag,size:"small",sx:{fontSize:"0.75rem",bgcolor:e.tag?.toLowerCase().includes("fall")?"#ff9800":e.tag?.toLowerCase().includes("spring")?"#2e7d32":"#757575",color:"white"}})]}),(()=>{if(!n)return(0,i.jsx)(I.A,{severity:"warning",sx:{py:.5,fontSize:"0.75rem"},children:"Not configured - Click to set up"});if(!n.is_enabled)return(0,i.jsx)(I.A,{severity:"error",sx:{py:.5,fontSize:"0.75rem"},children:"Not Scheduled - Hidden from students"});let e=n.release_at?(0,ee.lN)(n.release_at,ek):null,t=n.close_at?(0,ee.lN)(n.close_at,ek):null;switch(n.status_text){case"active":case"always_visible":return(0,i.jsxs)(I.A,{severity:"success",sx:{py:.5,fontSize:"0.75rem"},children:["Active - Start button enabled (green)",t&&` | Closes: ${t}`]});case"osce_preview":case"osce_scheduled":return(0,i.jsxs)(I.A,{severity:"info",sx:{py:.5,fontSize:"0.75rem"},children:["Preview Mode - Start button disabled (gray)",e&&` | Opens: ${e}`]});case"closed":return(0,i.jsxs)(I.A,{severity:"error",sx:{py:.5,fontSize:"0.75rem"},children:["Closed - Assessment ended ",t||e||""]});case"disabled":case"hidden":return(0,i.jsx)(I.A,{severity:"error",sx:{py:.5,fontSize:"0.75rem"},children:"Disabled - Hidden from students"});default:if(n.is_visible_now)return(0,i.jsx)(I.A,{severity:"success",sx:{py:.5,fontSize:"0.75rem"},children:"Currently visible to students"});return(0,i.jsx)(I.A,{severity:"warning",sx:{py:.5,fontSize:"0.75rem"},children:n.status_text||"Module scheduling not configured"})}})()]})})})},e.id)})})})}),(0,i.jsxs)(E.A,{open:eo,onClose:()=>!ex&&ea(!1),maxWidth:"md",fullWidth:!0,children:[(0,i.jsx)(M.A,{sx:{background:"#C8102E",color:"white",pb:2},children:(0,i.jsxs)(x.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,i.jsxs)(x.A,{children:[(0,i.jsx)(f.A,{variant:"h5",sx:{fontWeight:600,mb:.5},children:"\xc3\xb0\xc5\xb8\xe2€œ\xe2€\xa6 Schedule Module"}),(0,i.jsx)(f.A,{variant:"body2",sx:{opacity:.9},children:el?.title})]}),(0,i.jsx)(z.A,{onClick:()=>ea(!1),disabled:ex,size:"small",sx:{color:"white"},children:(0,i.jsx)(Y.A,{})})]})}),(0,i.jsx)(T.A,{sx:{mt:3},children:ec?(0,i.jsx)(x.A,{sx:{display:"flex",justifyContent:"center",p:4},children:(0,i.jsx)(W.A,{})}):(0,i.jsx)(x.A,{children:(0,i.jsxs)(w.A,{sx:{p:3,mb:3,bgcolor:"#f8f9fa",border:"1px solid #dee2e6"},children:[(0,i.jsx)(f.A,{variant:"h6",sx:{mb:3,fontWeight:600},children:"\xc3\xb0\xc5\xb8\xc2\xa9\xc2\xba OSCE Module Control"}),(0,i.jsx)(x.A,{sx:{mb:3,p:2,bgcolor:eg.is_enabled?"#d4edda":"#f8d7da",borderRadius:1},children:(0,i.jsx)(O.A,{control:(0,i.jsx)(F.A,{checked:eg.is_enabled,onChange:e=>{eA({...eg,is_enabled:e.target.checked}),e.target.checked||eA(e=>({...e,override_to_active:!1}))},color:"primary",size:"medium"}),label:(0,i.jsxs)(x.A,{children:[(0,i.jsx)(f.A,{variant:"body1",sx:{fontWeight:600},children:eg.is_enabled?"Module Visible":"Module Hidden"}),(0,i.jsx)(f.A,{variant:"caption",color:"text.secondary",children:eg.is_enabled?"Students can see and access this module":"Module is completely hidden from students"})]})})}),eg.is_enabled&&(0,i.jsxs)(x.A,{sx:{mb:3,p:2,bgcolor:"#e7f3ff",borderRadius:1},children:[(0,i.jsx)(f.A,{variant:"subtitle2",sx:{fontWeight:600,mb:1},children:"Current Module Status:"}),(0,i.jsx)(f.A,{variant:"body2",sx:{fontWeight:500,color:"primary.main"},children:(()=>
1{if(eg.override_to_active)return"Active - Start button GREEN and enabled (students can start immediately)";let e=new Date,t=ez(eg.release_at),s=t?new Date(t):null,i=t?(0,ee.lN)(t,ek):"";return s&&s>e?i?`Scheduled Preview - Start button GRAY and disabled | Opens ${i}`:"Scheduled Preview - Start button GRAY and disabled | Opens soon":s?"Active - Start button GREEN and enabled":"Preview Mode - Start button GRAY and disabled (case visible only)"})()})]}),eg.is_enabled&&!eg.override_to_active&&(0,i.jsxs)(x.A,{sx:{mb:3},children:[(0,i.jsx)(f.A,{variant:"subtitle2",sx:{fontWeight:600,mb:2},children:"Schedule Settings:"}),(0,i.jsxs)(C.Ay,{container:!0,spacing:2,children:[(0,i.jsx)(C.Ay,{item:!0,xs:12,children:(0,i.jsx)(D.A,{fullWidth:!0,label:"Assessment Opens (Optional)",type:"datetime-local",value:eg.release_at,onChange:e=>eA({...eg,release_at:e.target.value}),InputLabelProps:{shrink:!0},InputProps:{endAdornment:eg.release_at&&(0,i.jsx)(X.A,{position:"end",children:(0,i.jsx)(z.A,{onClick:()=>eA({...eg,release_at:""}),edge:"end",title:"Clear date",children:(0,i.jsx)(Z.A,{})})})},helperText:"Leave empty for preview-only mode",size:"small"})}),(0,i.jsx)(C.Ay,{item:!0,xs:12,children:(0,i.jsx)(D.A,{fullWidth:!0,label:"Module Closes (Optional)",type:"datetime-local",value:eg.close_at,onChange:e=>eA({...eg,close_at:e.target.value}),InputLabelProps:{shrink:!0},InputProps:{endAdornment:eg.close_at&&(0,i.jsx)(X.A,{position:"end",children:(0,i.jsx)(z.A,{onClick:()=>eA({...eg,close_at:""}),edge:"end",title:"Clear date",children:(0,i.jsx)(Z.A,{})})})},size:"small"})})]})]}),eg.is_enabled&&(0,i.jsx)(x.A,{sx:{p:2,bgcolor:eg.override_to_active?"#fff3cd":"#f8f9fa",border:"2px solid",borderColor:eg.override_to_active?"#ffc107":"#dee2e6",borderRadius:1},children:(0,i.jsx)(O.A,{control:(0,i.jsx)(F.A,{checked:eg.override_to_active,onChange:e=>eA({...eg,override_to_active:e.target.checked}),color:"warning"}),label:(0,i.jsxs)(x.A,{children:[(0,i.jsx)(f.A,{variant:"body2",sx:{fontWeight:600},children:"\xc3\xa2\xc5\xa1\xc2\xa1 Override: Make Assessment Immediately Active"}),(0,i.jsx)(f.A,{variant:"caption",color:"text.secondary",children:"Bypasses all scheduling - students can start assessment right away"})]})})})]})})}),(0,i.jsxs)(R.A,{sx:{p:3},children:[(0,i.jsx)(h.A,{onClick:()=>ea(!1),disabled:ex,startIcon:(0,i.jsx)(q.A,{}),children:"Cancel"}),(0,i.jsx)(h.A,{onClick:eT,variant:"contained",disabled:ex||ec,startIcon:ex?(0,i.jsx)(W.A,{size:20}):(0,i.jsx)(V.A,{}),sx:{bgcolor:`${et} !important`,color:"#fff !important",boxShadow:"none","&:hover":{bgcolor:`${et} !important`,boxShadow:"none"},"&:active":{bgcolor:`${et} !important`},"&:focus":{bgcolor:`${et} !important`}},children:ex?"Saving...":"Save Schedule"})]})]})]})]})]})}}},e=>{e.O(0,[48230,54587,7417,69229,31154,47251,49121,61225,45154,51522,48003,45336,60420,72297,47198,10163,82832,59598,86302,67692,85115,90636,46593,38792],()=>e(e.s=56540)),_N_E=e.O()}]);

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.