"use strict";exports.id=61658,exports.ids=[61658],exports.modules={61658:(a,b,c)=>{c.r(b),c.d(b,{default:()=>h});var d=c(48249),e=c(67484),f=c(59478),g=c(82697);function h(){let[a,b]=(0,e.useState)([]),[c,h]=(0,e.useState)(!0);return(0,d.jsx)(f.R,{title:"Holidays",description:"Upcoming school holidays for your linked children.",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 publishes holidays, they will appear here."})})}c(93529),c(91115)},93529:(a,b,c)=>{c.d(b,{BT:()=>h,CP:()=>o,OI:()=>k,W6:()=>f,WR:()=>l,hi:()=>j,kN:()=>g,mk:()=>i,n9:()=>n,xw:()=>m});var d=c(23971);function e(a){if(!a.data.success||void 0===a.data.data)throw Error(a.data.message||"Request failed");return a.data.data}async function f(){return e(await d.uE.get("/school/parent/home"))}async function g(a){return e(await d.uE.get(`/school/parent/children/${a}/overview`))}async function h(a){return e(await d.uE.get(`/school/parent/children/${a}/details`))}async function i(a){return e(await d.uE.get(`/school/parent/children/${a}/notices`))}async function j(a){return e(await d.uE.get(`/school/parent/children/${a}/homework`))}async function k(a,b){return e(await d.uE.get(`/school/parent/children/${a}/attendance`,{params:b}))}async function l(a){return e(await d.uE.get(`/school/parent/children/${a}/fees`))}async function m(a){return e(await d.uE.get(`/school/parent/children/${a}/exams`))}async function n(a,b){return e(await d.uE.get(`/school/parent/children/${a}/exam-result`,{params:{examId:b}}))}async function o(){return e(await d.uE.get("/school/parent/holidays"))}}};