"use strict";exports.id=40665,exports.ids=[40665],exports.modules={40665:(a,b,c)=>{c.r(b),c.d(b,{default:()=>h});var d=c(48249),e=c(67484),f=c(42947),g=c(82697);function h(){let[a,b]=(0,e.useState)([]),[c,h]=(0,e.useState)(!0);return(0,d.jsx)(f.o,{title:"Holidays",description:"Upcoming school holidays and closed days.",children:c?(0,d.jsx)("div",{className:"h-40 animate-pulse rounded-lg bg-slate-100"}):a.length?(0,d.jsx)("ul",{className:"divide-y divide-slate-100 overflow-hidden rounded-lg border border-slate-100 bg-white shadow-sm",children:a.map(a=>(0,d.jsx)("li",{className:"px-4 py-4 sm:px-5",children:(0,d.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-2",children:[(0,d.jsxs)("div",{children:[(0,d.jsx)("p",{className:"font-semibold text-slate-900",children:a.title}),(0,d.jsx)("p",{className:"mt-1 text-sm tabular-nums text-slate-600",children:a.startDate===a.endDate?a.startDate:`${a.startDate} → ${a.endDate}`}),a.description?(0,d.jsx)("p",{className:"mt-1 text-sm text-slate-500",children:a.description}):null]}),(0,d.jsx)("span",{className:"rounded-md bg-slate-100 px-2 py-1 text-xs font-medium text-slate-600",children:a.holidayType})]})},a.id))}):(0,d.jsx)(g.i0,{title:"No upcoming holidays",description:"When the school adds holidays to the calendar, they will appear here."})})}c(92038),c(91115)}};