PageSourceSearch

https://southernfm.com.au/assets/ProgramGuide-uYLuAMzM.js

js southernfm.com.au collected 2026-09-24 21:13:20 UTC 22,426 bytes, 1 lines download raw bytes

1import{u as Ne,a as ve,b as _e,m as q,r as y,g as z,j as e,L as ke,S as Se,D as $e,c as De,d as Oe,e as Le,f as ne,M as Q,h as Me,s as ae,i as B,R as U,t as oe,E as Ae}from"./index-CysU2Jg9.js";import{I as Ie}from"./input-UNMuvhAA.js";import{P as Pe}from"./PageHeader-tcsahsuR.js";const w=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],S=u=>u.getDate()<=7,de=(u,b=80)=>u.length>b?u.substring(0,b).trimEnd()+"…":u,J=u=>u.toLocaleDateString("en-AU",{weekday:"short",day:"numeric",month:"short"}),T=(u,b,$)=>{const m=w.indexOf(b);if(m<0)return null;const D=(m+1)%7,j=new Date(u);j.setHours(0,0,0,0);for(let A=0;A<70;A++){if(j.getDay()===D&&$(j))return new Date(j);j.setDate(j.getDate()+1)}return null},M=u=>{const[b,$]=(u||"0:0").split(":").map(m=>parseInt(m,10));return(isNaN(b)?0:b)*60+(isNaN($)?0:$)},Re=()=>{const u=Ne("header_program_guide");ve();const[b,$]=_e(),m=q(),D=m.getDay(),j=w[D===0?6:D-1],A=w.indexOf(b.get("day")??""),[C,ie]=y.useState(A>=0?A:D===0?6:D-1),[le,ce]=y.useState([]),[me,xe]=y.useState([]),[K,he]=y.useState(!0),[I,V]=y.useState(""),[ue,R]=y.useState(!1),[pe,X]=y.useState(!1),fe=(()=>{const t={};return w.forEach((s,o)=>{const l=(o+1)%7,n=m.getDay(),r=(l-n+7)%7,a=new Date(m);a.setDate(a.getDate()+r),t[s]=a}),t})(),G=t=>`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`,_=w[C],H=fe[_],ge=G(H);y.useEffect(()=>{const t=new URLSearchParams(b);t.set("day",_),$(t,{replace:!0})},[_]);const Z=z(m)%2===1,[E,ye]=y.useState(()=>{const t=q();return t.getHours()*60+t.getMinutes()});y.useEffect(()=>{const t=window.setInterval(()=>{const s=q();ye(s.getHours()*60+s.getMinutes())},3e4);return()=>window.clearInterval(t)},[]);const P=t=>{const s=oe(t.start_time),o=oe(t.end_time);if(s===null||o===null)return!1;const l=o<=s,n=new Date(m);n.setDate(n.getDate()-1);const r=w[n.getDay()],a=t.day_of_week===j,i=t.day_of_week===r;if(!a&&!i)return!1;const p=a?m:n;if(t.schedule_type==="monthly"&&!S(p))return!1;if(t.schedule_type==="fortnightly"){const x=z(p)%2===1;if(!(t.fortnightly_inverted?!x:x))return!1}return a?l?E>=s:E>=s&&E<o:l&&E<o};y.useEffect(()=>{(async()=>{const{data:o,error:l}=await ae.from("shows").select("*").eq("archived",!1).order("start_time",{ascending:!0});l&&console.error("Failed to load program guide shows",l),ce((o??[]).map(n=>({id:n.id,name:n.name,slug:n.slug,description:n.description??"",image_url:n.image_url,icon_url:n.icon_url??null,day_of_week:n.day_of_week??"",start_time:n.start_time??"",end_time:n.end_time??"",replay_enabled:n.replay_enabled??!1,vacant:n.vacant??!1,explicit:n.explicit??!1,presenters:Array.isArray(n.presenters)?n.presenters:[],schedule_type:n.schedule_type??"weekly",alternating_show_id:n.alternating_show_id??null,fortnightly_inverted:n.fortnightly_inverted??!1}))),he(!1)})(),(async()=>{const o=G(m),l=new Date(m);l.setDate(l.getDate()+14);const n=G(l),{data:r}=await ae.from("schedule_overrides").select("*").gte("override_date",o).lte("override_date",n).order("start_time",{ascending:!0});xe(r??[])})()},[]);const k=I.trim().length>0,ee=I.toLowerCase(),O=le.filter(t=>k?!0:t.day_of_week===w[C]).filter(t=>!k||t.name.toLowerCase().includes(ee)||t.presenters.some(s=>s.name.toLowerCase().includes(ee))).sort((t,s)=>{if(k){const o=w.indexOf(t.day_of_week)-w.indexOf(s.day_of_week);if(o!==0)return o}return t.start_time.localeCompare(s.start_time)}),Y=(()=>{const t=[],s=new Set;let o=0;const l=new Map,n=new Set;for(const r of O){if(r.schedule_type!=="weekly")continue;const a=M(r.start_time),i=M(r.end_time),p=O.filter(x=>x.schedule_type==="monthly"&&x.day_of_week===r.day_of_week&&M(x.start_time)>=a&&M(x.end_time)<=i&&!(M(x.start_time)===a&&M(x.end_time)===i)).sort((x,W)=>x.start_time.localeCompare(W.start_time));p.length>0&&(l.set(r.id,p),p.forEach(x=>n.add(x.id)))}for(const r of O)if(!s.has(r.id)){if(l.has(r.id)){const a=l.get(r.id);s.add(r.id),a.forEach(i=>s.add(i.id)),t.push({type:"split",weeklyShow:r,monthlyShows:a,index:o++});continue}if(!n.has(r.id)){if(r.schedule_type==="fortnightly"&&r.alternating_show_id){const a=O.find(i=>i.id===r.alternating_show_id);if(a&&!s.has(a.id)){s.add(r.id),s.add(a.id);const i=r.fortnightly_inverted?a:r,p=r.fortnightly_inverted?r:a;t.push({type:"pair",showA:i,showB:p,index:o++});continue}}if(r.schedule_type==="monthly"||O.some(a=>a.id!==r.id&&a.schedule_type==="monthly"&&a.day_of_week===r.day_of_week&&a.start_time===r.start_time&&a.end_time===r.end_time)){const a=O.find(i=>i.id!==r.id&&!s.has(i.id)&&i.day_of_week===r.day_of_week&&i.start_time===r.start_time&&i.end_time===r.end_time&&(r.schedule_type==="monthly"?i.schedule_type!=="monthly"||i.id!==r.id:i.schedule_type==="monthly"));if(a){s.add(r.id),s.add(a.id);const i=r.schedule_type==="monthly"?r:a,p=r.schedule_type==="monthly"?a:r;t.push({type:"monthly",monthlyShow:i,otherShow:p,index:o++});continue}}s.add(r.id),t.push({type:"single",show:r,index:o++})}}return t})(),we=(t,s=!1)=>{const o=t.description?de(t.description):t.presenters.map(l=>
1l.name).join(", ")||"";return t.vacant?e.jsxs("div",{className:"p-5 flex flex-col sm:flex-row sm:items-center gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3 sm:w-40 flex-shrink-0",children:[e.jsx("span",{className:`text-sm font-mono font-semibold ${s?"text-white":"text-foreground"}`,children:t.start_time}),e.jsx("span",{className:`text-muted-foreground text-xs ${s?"text-white/70":""}`,children:"–"}),e.jsx("span",{className:`text-sm font-mono ${s?"text-white/80":"text-muted-foreground"}`,children:t.end_time})]}),e.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[e.jsx("div",{className:`h-10 w-10 rounded-lg flex items-center justify-center flex-shrink-0 ${s?"bg-white/15":"bg-amber-50"}`,children:e.jsx(Q,{className:`h-5 w-5 ${s?"text-white":"text-amber-500"}`})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("h3",{className:`font-semibold ${s?"text-white":"text-foreground"}`,children:t.name}),e.jsx("p",{className:`text-sm ${s?"text-white/80":"text-muted-foreground"}`,children:"This timeslot is available"})]})]}),e.jsx("span",{className:"text-xs font-medium px-3 py-1 rounded-full bg-amber-100 text-amber-700 self-start sm:self-center flex-shrink-0",children:"Vacant"}),e.jsxs(B,{to:`/get-involved#enquire?interest=Presenting&show=${t.id}`,className:`self-start sm:self-center inline-flex items-center gap-1.5 text-sm font-medium hover:underline ${s?"text-white":"text-primary"}`,children:["Enquire Now ",e.jsx(Ae,{className:"h-3 w-3"})]})]}):e.jsxs(B,{to:`/show/${t.slug}`,state:{from:`/program-guide?day=${_}`,fromLabel:"Back to Program Guide"},className:`group block p-5 flex flex-col sm:flex-row sm:items-center gap-3 text-left transition-colors ${s?"hover:bg-white/5":"hover:bg-muted/30"}`,children:[e.jsxs("div",{className:"flex items-center gap-3 sm:w-40 flex-shrink-0",children:[e.jsx("span",{className:`text-sm font-mono font-semibold transition-colors ${s?"text-white":"text-foreground group-hover:text-primary"}`,children:t.start_time}),e.jsx("span",{className:`text-xs transition-colors ${s?"text-white/70":"text-muted-foreground group-hover:text-primary"}`,children:"–"}),e.jsx("span",{className:`text-sm font-mono transition-colors ${s?"text-white/80":"text-muted-foreground group-hover:text-primary"}`,children:t.end_time})]}),e.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[t.icon_url?e.jsx("img",{src:t.icon_url,alt:t.name,className:"h-10 w-10 rounded-lg object-contain flex-shrink-0"}):e.jsx("div",{className:`h-10 w-10 rounded-lg flex items-center justify-center flex-shrink-0 ${s?"bg-white/15":"bg-muted"}`,children:e.jsx(U,{className:`h-5 w-5 ${s?"text-white":"text-muted-foreground"}`})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:`font-semibold transition-colors ${s?"text-white":"text-foreground group-hover:text-primary"}`,children:t.name}),o&&e.jsx("p",{className:`text-sm truncate transition-colors ${s?"text-white/80":"text-muted-foreground group-hover:text-primary/80"}`,children:o})]})]}),t.schedule_type==="monthly"&&e.jsxs("span",{className:"text-xs font-medium px-3 py-1 rounded-full bg-purple-100 text-purple-700 self-start sm:self-center",children:["1st ",t.day_of_week]}),t.explicit&&e.jsx("span",{className:"text-xs font-medium px-3 py-1 rounded-full bg-rose-100 text-rose-700 self-start sm:self-center",children:"Explicit"}),t.replay_enabled&&e.jsx("span",{className:"text-xs font-medium px-3 py-1 rounded-full bg-green-100 text-green-700 self-start sm:self-center",children:"On-Demand"})]})},te=t=>{if(t.type==="single"){const d=P(t.show);return e.jsxs("div",{className:`relative ${d?"my-3":""}`,children:[d&&e.jsxs("span",{className:"absolute -top-2.5 left-4 inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full bg-primary text-primary-foreground text-[10px] font-bold uppercase tracking-widest shadow-md z-10",children:[e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-white animate-pulse-live"}),"On Air Now"]}),e.jsx("div",{className:`rounded-2xl transition-all duration-200 overflow-hidden ${d?`bg-secondary text-secondary-foreground border-2 shadow-xl ring-4 ring-secondary/15 ${t.show.vacant?"border-dashed border-secondary":"border-secondary"}`:t.show.vacant?"bg-card border border-dashed border-amber-300":"bg-card border border-border hover:border-primary/30"}`,children:we(t.show,d)})]},t.show.id)}if(t.type==="split"){const d=t.weeklyShow.day_of_week,g=S(H),N=T(m,d,h=>S(h)),v=T(m,d,h=>!S(h)),L=t.monthlyShows.some(h=>P(h)),F=P(t.weeklyShow),c=L||F,je=`split-${t.weeklyShow.id}`,re=h=>e.jsx(B,{to:`/show/${h.slug}`,state:{from:`/program-guide?day=${_}`,fromLabel:"Back to Program Guide"},className:`group block p-3 transition-colors ${c?"hover:bg-white/5":"hover:bg-muted/30"}`,children:e.jsxs("div",{className:"flex items-center gap-3",children:[h.icon_url?e.jsx("img",{src:h.icon_url,alt:h.name,className:"h-9 w-9 rounded-lg object-contain flex-shrink-0"}):e.jsx("div",{className:`h-9 w-9 rounded-lg flex items-center justify-center flex-shrink-0 ${c?"bg-white/15":"bg-muted"}`,children:e.jsx(U,{className:`h-4 w-4 ${c?"text-white":"text-muted-foreground"}`})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("div",{className:`font-semibold text-sm truncate transition-colors ${c?"text-white":"text-foreground group-hover:text-primary"}`,children:h.name}),e.jsxs("div",{className:`text-[11px] font-mono ${c?"text-white/70":"text-muted-foreground"}`,children:[h.start_time," – ",h.end_time]})]})]})},h.id);return e.jsxs("div",{className:`relative ${c?"my-3":""}`,children:[c&&e.jsxs("span",{className:"absolute -top-2.5 left-4 inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full bg-primary text-primary-foreground text-[10px] font-bold uppercase tracking-widest shadow-md z-10",children:[e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-white animate-pulse-live"}),"On Air Now"]}),e.jsxs("div",{className:`rounded-2xl transition-all duration-200 overflow-hidden ${c?"bg-secondary text-secondary-foreground border-2 border-secondary shadow-xl ring-4 ring-secondary/15":"bg-card border border-border hover:border-primary/30"}`,children:[e.jsxs("div",{className:"px-5 pt-4 pb-2 flex flex-wrap items-center gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:`text-sm font-mono font-semibold ${c?"text-white":"text-foreground"}`,children:t.weeklyShow.start_time}),e.jsx("span",{className:`text-xs ${c?"text-white/70":"text-muted-foreground"}`,children:"–"}),e.jsx("span",{className:`text-sm font-mono ${c?"text-white/80":"text-muted-foreground"}`,children:t.weeklyShow.end_time})]}),e.jsxs("span",{className:"text-xs font-medium px-3 py-1 rounded-full bg-purple-100 text-purple-700",children:["Split · 1st ",d]})]}),e.jsxs("div",{className:`grid grid-cols-1 sm:grid-cols-2 divide-y sm:divide-y-0 sm:divide-x ${c?"divide-white/15":"divide-border"}`,children:[e.jsxs("div",{className:"p-3 pt-2",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2 px-1 pb-1.5",children:[e.jsxs("div",{className:`text-[11px] font-semibold uppercase tracking-wider ${c?"text-white/80":"text-muted-foreground"}`,children:["1st ",d," of month"]}),g?e.jsx("span",{className:"text-[10px] font-bold px-2 py-0.5 rounded-full bg-green-100 text-green-700",children:"On This Week"}):N?e.jsxs("span",{className:`text-[10px] font-medium ${c?"text-white/70":"text-muted-foreground"}`,children:["Next: ",J(N)]}):null]}),e.jsx("div",{className:`rounded-lg overflow-hidden divide-y ${c?"divide-white/15":"divide-border"}`,children:t.monthlyShows.map(h=>re(h))})]}),e.jsxs("div",{className:"p-3 pt-2",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2 px-1 pb-1.5",children:[e.jsxs("div",{className:`text-[11px] font-semibold uppercase tracking-wider ${c?"text-white/80":"text-muted-foreground"}`,children:["Other ",d,"s"]}),g?v?e.jsxs("span",{className:`text-[10px] font-medium ${c?"text-white/70":"text-muted-foreground"}`,children:["Next: ",J(v)]}):null:e.jsx("span",{className:"text-[10px] font-bold px-2 py-0.5 rounded-full bg-green-100 text-green-700",children:"On This Week"})]}),e.jsx("div",{className:"rounded-lg overflow-hidden",children:re(t.weeklyShow)})]})]})]})]},je)}let s,o,l,n,r,a,i,p=null,x=null;if(t.type==="pair"){const d=Z;s=d?t.showA:t.showB,o=d?t.showB:t.showA,l="This Week",n="Next Week",r="Alternating Fortnightly",a=!0,i=`${t.showA.id}-${t.showB.id}`,x=T(m,o.day_of_week,g=>z(g)%2===1!==Z)}else{const d=S(H);s=d?t.monthlyShow:t.otherShow,o=d?t.otherShow:t.monthlyShow;const g=t.monthlyShow.day_of_week,N=`1st ${g}`,v=`Other ${g}s`;l=d?N:v,n=d?v:N,r=`Monthly · 1st ${g}`,a=!0,i=`${t.monthlyShow.id}-${t.otherShow.id}`;const L=T(m,g,c=>S(c)),F=T(m,g,c=>!S(c));p=d?L:F,x=d?F:L}const W=P(s),se=P(o),f=W||se,be=[{show:s,label:l,active:a,live:W,next:p},{show:o,label:n,active:!1,live:se,next:x}];return e.jsxs("div",{className:`relative ${f?"my-3":""}`,children:[f&&e.jsxs("span",{className:"absolute -top-2.5 left-4 inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full bg-primary text-primary-foreground text-[10px] font-bold uppercase tracking-widest shadow-md z-10",children:[e.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-white animate-pulse-live"}),"On Air Now"]}),e.jsxs("div",{className:`rounded-2xl transition-all duration-200 overflow-hidden ${f?"bg-secondary text-secondary-foreground border-2 border-secondary shadow-xl ring-4 ring-secondary/15":"bg-card border border-border hover:border-primary/30"}`,children:[e.jsxs("div",{className:"px-5 pt-4 pb-2 flex items-center gap-3",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("span",{className:`text-sm font-mono font-semibold ${f?"text-white":"text-foreground"}`,children:s.start_time}),e.jsx("span",{className:`text-xs ${f?"text-white/70":"text-muted-foreground"}`,children:"–"}),e.jsx("span",{className:`text-sm font-mono ${f?"text-white/80":"text-muted-foreground"}`,children:s.end_time})]}),e.jsx("span",{className:`text-xs font-medium px-3 py-1 rounded-full ${t.type==="monthly"?"bg-purple-100 text-purple-700":"bg-blue-100 text-blue-700"}`,children:r})]}),e.jsx("div",{className:`grid grid-cols-1 sm:grid-cols-2 divide-y sm:divide-y-0 sm:divide-x ${f?"divide-white/15":"divide-border"}`,children:be.map(({show:d,label:g,active:N,next:v})=>e.jsxs(B,{to:`/show/${d.slug}`,state:{from:`/program-guide?day=${_}`,fromLabel:"Back to Program Guide"},className:`group relative block transition-colors ${f?"hover:bg-white/5":"hover:bg-muted/30"}`,children:[N&&e.jsx("div",{className:"absolute top-2 right-2 text-[10px] font-bold px-2 py-0.5 rounded-full bg-green-100 text-green-700",children:"On This Week"}),e.jsxs("div",{className:"p-4",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[d.icon_url?e.jsx("img",{src:d.icon_url,alt:d.name,className:"h-10 w-10 rounded-lg object-contain flex-shrink-0"}):e.jsx("div",{className:`h-10 w-10 rounded-lg flex items-center justify-center flex-shrink-0 ${f?"bg-white/15":"bg-muted"}`,children:e.jsx(U,{className:`h-5 w-5 ${f?"text-white":"text-muted-foreground"}`})}),e.jsxs("div",{className:"min-w-0",children:[e.jsx("span",{className:`font-semibold text-sm transition-colors ${f?"text-white":"text-foreground group-hover:text-primary"}`,children:d.name}),e.jsx("p",{className:`text-xs truncate transition-colors ${f?"text-white/80":"text-muted-foreground group-hover:text-primary/80"}`,children:d.description?de(d.description,50):d.presenters.map(L=>L.name).join(", ")||""})]})]}),e.jsxs("p",{className:`text-[11px] transition-colors ${f?"text-white/70":"text-muted-foreground group-hover:text-primary/80"}`,children:[g,!N&&v?` · Next: ${J(v)}`:""]})]})]},d.id))})]})]},i)};return e.jsxs(ke,{children:[e.jsx(Se,{title:"Program Guide - 88.3 Southern FM",description:"Weekly program guide for 88.3 Southern FM. Browse shows, presenters and schedules across the week.",path:"/program-guide"}),e.jsx(Pe,{title:"Program Guide",description:"Your weekly schedule for Southern FM 88.3",backgroundImage:u.src,backgroundImageSrcSet:u.srcSet,rightSlot:e.jsxs("div",{className:"rounded-2xl border border-secondary-foreground
1/20 bg-secondary-foreground/5 backdrop-blur-sm px-4 py-3 text-xs text-secondary-foreground/80 leading-relaxed",children:["Listening to any Radio On-Demand (show recordings) means accepting the"," ",e.jsx("button",{type:"button",onClick:()=>X(!0),className:"font-semibold text-secondary-foreground underline underline-offset-2 hover:text-secondary-foreground/80",children:"terms and conditions"}),"."]})}),e.jsx("div",{className:"bg-muted/30",children:e.jsxs("div",{className:"page-content w-full py-10",children:[e.jsx($e,{open:pe,onOpenChange:X,children:e.jsxs(De,{className:"max-w-2xl",children:[e.jsx(Oe,{children:e.jsx(Le,{children:"Radio On-Demand Terms and Conditions"})}),e.jsxs("div",{className:"space-y-4 text-sm text-foreground/85 leading-relaxed max-h-[60vh] overflow-y-auto",children:[e.jsx("p",{children:"Any stream or audio recording listened to on the Southern FM website must only be used for personal and non commercial purposes."}),e.jsx("p",{children:"The recordings cannot be reproduced, transmitted, distributed (other than via social links pointing people to the Southern FM website), communicated to the public or otherwise used separately from the program in which it is embodied."}),e.jsx("p",{children:"You must reside within Australia."}),e.jsx("p",{children:"You must not retain a copy of the recording for longer than 14 days after the recording was made available online (which is at the time the show went to air). If you do obtain a recording, it must be deleted prior to the 14 day maximum retention period."})]})]})}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center gap-2 mb-8",children:[e.jsx("div",{className:"flex flex-wrap gap-2 flex-1 min-w-0 order-2 sm:order-1",children:w.map((t,s)=>e.jsxs("button",{onClick:()=>{ie(s),V(""),R(!1)},className:`flex-grow basis-[calc(25%-0.375rem)] sm:basis-auto sm:flex-grow-0 text-center px-4 py-2.5 rounded-xl text-sm font-medium transition-all duration-200 ${!k&&C===s?"bg-secondary text-secondary-foreground shadow-md":"bg-muted text-muted-foreground hover:bg-accent hover:text-secondary"}`,children:[e.jsx("span",{className:"hidden md:inline",children:t}),e.jsx("span",{className:"md:hidden",children:t.substring(0,3)})]},t))}),e.jsx("div",{className:"order-1 sm:order-2 flex-shrink-0",children:ue?e.jsxs("div",{className:"relative w-full sm:w-56",children:[e.jsx(ne,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.jsx(Ie,{autoFocus:!0,placeholder:"Search all days...",value:I,onChange:t=>V(t.target.value),onBlur:()=>{I||R(!1)},className:"pl-9 h-10"})]}):e.jsxs("button",{onClick:()=>R(!0),"aria-label":"Search shows",className:"h-10 w-full sm:w-10 px-3 sm:px-0 rounded-xl bg-muted text-muted-foreground hover:bg-accent flex items-center justify-center gap-2 transition-colors",children:[e.jsx(ne,{className:"h-4 w-4"}),e.jsx("span",{className:"sm:hidden text-sm",children:"Search shows"})]})})]}),!k&&!K&&(()=>{const t=me.filter(s=>s.override_date===ge);return t.length===0?null:e.jsxs("div",{className:"mb-6 rounded-2xl border border-primary/30 bg-primary/5 p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx(Q,{className:"h-4 w-4 text-primary"}),e.jsxs("h3",{className:"font-display text-sm font-bold text-primary uppercase tracking-wider",children:["Special programming this ",_]})]}),e.jsx("div",{className:"grid sm:grid-cols-2 gap-3",children:t.map(s=>e.jsxs("div",{className:"bg-card border border-border rounded-xl p-4 flex items-start gap-3",children:[s.image_url?e.jsx("img",{src:s.image_url,alt:s.title,className:"h-12 w-12 rounded-lg object-cover flex-shrink-0"}):e.jsx("div",{className:"h-12 w-12 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0",children:e.jsx(Q,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"text-xs font-mono font-semibold text-foreground",children:[s.start_time," – ",s.end_time]}),e.jsx("div",{className:"font-semibold text-foreground",children:s.title}),s.description&&e.jsx("p",{className:"text-sm text-muted-foreground mt-1 line-clamp-3",children:s.description}
1),e.jsx("p",{className:"text-[11px] text-muted-foreground/70 italic mt-2",children:"Replaces the regular schedule during this slot."})]})]},s.id))})]})})(),K?e.jsx("div",{className:"flex items-center justify-center py-10",children:e.jsx(Me,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):Y.length===0?e.jsx("p",{className:"text-center text-muted-foreground py-10",children:k?`No shows matching "${I}".`:`No shows scheduled for ${w[C]}.`}):e.jsx("div",{className:"flex flex-col gap-3",children:k?(()=>{let t="";return Y.map(s=>{const o=s.type==="single"?s.show:s.type==="pair"?s.showA:s.type==="monthly"?s.monthlyShow:s.weeklyShow,l=o.day_of_week!==t?e.jsx("h3",{className:"font-display text-lg font-bold text-foreground mt-4 first:mt-0 mb-2",children:o.day_of_week},`day-${o.day_of_week}`):null;t=o.day_of_week;const n=s.type==="single"?s.show.id:s.type==="pair"?`${s.showA.id}-${s.showB.id}`:s.type==="monthly"?`${s.monthlyShow.id}-${s.otherShow.id}`:`split-${s.weeklyShow.id}`;return e.jsxs("div",{children:[l,te(s)]},n)})})():Y.map(t=>te(t))})]})})]})};export{Re 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.