PageSourceSearch

https://airwaveai-bz7lhntu.manus.space/assets/LiveDJs-D85eDggJ.js

js airwaveai-bz7lhntu.manus.space collected 2026-10-03 05:00:24 UTC 7,874 bytes, 1 lines download raw bytes

1import{a as l,j as e,L as f}from"./vendor-CbN_FLw4.js";import{t as b,M as d,R as L}from"./index-ClmhQYHE.js";import{S as o}from"./skeleton-Dcm_6UIy.js";import{B as x}from"./badge-B7_k-h4t.js";import{C as j}from"./card-BonV7zBZ.js";import{C as D}from"./clock-BxXEOKY7.js";import{C as J}from"./chevron-right-CCxkcR_4.js";import"./ui-29psSSNT.js";function m(){const i=new Date,t=new Date(i.toLocaleString("en-US",{timeZone:"America/Los_Angeles"})).getHours();return t>=6&&t<14?"morning":t>=14&&t<22?"afternoon":"night"}function p(){return new Date().toLocaleString("en-US",{timeZone:"America/Los_Angeles",hour:"numeric",minute:"2-digit",hour12:!0})}function T(){const{data:i,isLoading:n}=b.channels.djSchedule.useQuery(),[t,g]=l.useState(m()),[v,u]=l.useState(p());if(l.useEffect(()=>{const a=setInterval(()=>{g(m()),u(p())},3e4);return()=>clearInterval(a)},[]),n)return e.jsx("div",{"data-loc":"client/src/pages/LiveDJs.tsx:43",className:"min-h-screen bg-background text-foreground",children:e.jsxs("div",{"data-loc":"client/src/pages/LiveDJs.tsx:44",className:"container py-8",children:[e.jsx(o,{"data-loc":"client/src/pages/LiveDJs.tsx:45",className:"h-12 w-64 mb-8"}),e.jsx("div",{"data-loc":"client/src/pages/LiveDJs.tsx:46",className:"grid gap-6",children:Array.from({length:8}).map((a,s)=>e.jsx(o,{"data-loc":"client/src/pages/LiveDJs.tsx:48",className:"h-48 w-full rounded-xl"},s))})]})});const h={morning:"from-amber-500/20 to-orange-500/20 border-amber-500/30",afternoon:"from-blue-500/20 to-purple-500/20 border-blue-500/30",night:"from-indigo-500/20 to-violet-500/20 border-indigo-500/30"},c={morning:"☀️",afternoon:"🌤️",night:"🌙"};return e.jsxs("div",{"data-loc":"client/src/pages/LiveDJs.tsx:69",className:"min-h-screen bg-background text-foreground",children:[e.jsx("div",{"data-loc":"client/src/pages/LiveDJs.tsx:71",className:"border-b border-border/50 bg-gradient-to-r from-primary/5 to-accent/5",children:e.jsxs("div",{"data-loc":"client/src/pages/LiveDJs.tsx:72",className:"container py-8",children:[e.jsxs("div",{"data-loc":"client/src/pages/LiveDJs.tsx:73",className:"flex items-center justify-between flex-wrap gap-4",children:[e.jsxs("div",{"data-loc":"client/src/pages/LiveDJs.tsx:74",children:[e.jsxs("h1",{"data-loc":"client/src/pages/LiveDJs.tsx:75",className:"text-3xl font-bold flex items-center gap-3",children:[e.jsx(d,{"data-loc":"client/src/pages/LiveDJs.tsx:76",className:"h-8 w-8 text-primary"}),"Live DJs Schedule"]}),e.jsx("p",{"data-loc":"client/src/pages/LiveDJs.tsx:79",className:"text-muted-foreground mt-2",children:"Meet our DJs and tune in during their shifts. All times are Pacific (LA)."})]}),e.jsxs("div",{"data-loc":"client/src/pages/LiveDJs.tsx:83",className:"flex items-center gap-3 bg-card/80 backdrop-blur px-4 py-2 rounded-lg border border-border/50",children:[e.jsx(D,{"data-loc":"client/src/pages/LiveDJs.tsx:84",className:"h-4 w-4 text-primary"}),e.jsxs("span",{"data-loc":"client/src/pages/LiveDJs.tsx:85",className:"text-sm font-medium",children:["LA Time: ",v]}),e.jsxs(x,{"data-loc":"client/src/pages/LiveDJs.tsx:86",variant:"outline",className:"capitalize",children:[c[t]," ",t," Shift"]})]})]}),e.jsx("div",{"data-loc":"client/src/pages/LiveDJs.tsx:93",className:"flex flex-wrap gap-4 mt-6",children:[{shift:"morning",label:"6:00 AM - 2:00 PM"},{shift:"afternoon",label:"2:00 PM - 10:00 PM"},{shift:"night",label:"10:00 PM - 6:00 AM"}].map(({shift:a,label:s})=>e.jsxs("div",{"data-loc":"client/src/pages/LiveDJs.tsx:99",className:`flex items-center gap-2 px-3 py-1.5 rounded-full text-sm border ${t===a?"bg-primary/10 border-primary/40 text-primary font-medium":"bg-muted/30 border-border/50 text-muted-foreground"}`,children:[e.jsx("span",{"data-loc":"client/src/pages/LiveDJs.tsx:107",children:c[a]}),e.jsx("span",{"data-loc":"client/src/pages/LiveDJs.tsx:108",className:"capitalize",children:a}),e.jsxs("span",{"data-loc":"client/src/pages/LiveDJs.tsx:109",className:"text-xs opacity-70",children:["(",s,")"]}),t===a&&e.jsxs("span",{"data-loc":"client/src/pages/LiveDJs.tsx:111",className:"relative flex h-2 w-2 ml-1",children:[e.jsx("span",{"data-loc":"client/src/pages/LiveDJs.tsx:112",className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-primary opacity-75"}),e.jsx("span",{"data-loc":"client/src/pages/LiveDJs.tsx:113",className:"relative inline-flex rounded-full h-2 w-2 bg-primary"})]})]},a))})]})}),e.jsx("div",{"data-loc":"client/src/pages/LiveDJs.tsx:123",className:"container py-8",children:e.jsx("div",{"data-loc":"client/src/pages/LiveDJs.tsx:124",className:"grid gap-6",children:i?.map(a=>e.jsxs(j,{"data-loc":"client/src/pages/LiveDJs.tsx:126",className:"overflow-hidden border-border/50 hover:border-border transition-colors",children:[e.jsxs("div",{"data-loc":"client/src/pages/LiveDJs.tsx:131",className:"px-6 py-4 border-b border-border/30 bg-muted/20 flex items-center justify-between",children:[e.jsxs("div",{"data-loc":"client/src/pages/LiveDJs.tsx:132",className:"flex items-center gap-3",children:[e.jsx(L,{"data-loc":"client/src/pages/LiveDJs.tsx:133",className:"h-5 w-5 text-primary"}),e.jsxs("div",{"data-loc":"client/src/pages/LiveDJs.tsx:134",children:[e.jsx("h2",{"data-loc":"client/src/pages/LiveDJs.tsx:135",className:"font-semibold text-lg",children:a.channelName}),e.jsxs("span",{"data-loc":"client/src/pages/LiveDJs.tsx:136",className:"text-xs text-muted-foreground",children:["Station ",a.stationNumber]})]})]}),e.jsxs(f,{"data-loc":"client/src/pages/LiveDJs.tsx:141",href:`/channel/${a.channelSlug}`,className:"text-sm text-primary hover:underline flex items-center gap-1",children:["Tune In ",e.jsx(J,{"data-loc":"client/src/pages/LiveDJs.tsx:145",className:"h-3 w-3"})]})]}),e.jsx("div",{"data-loc":"client/src/pages/LiveDJs.tsx:150",className:"grid md:grid-cols-3 divide-y md:divide-y-0 md:divide-x divide-border/30",children:a.shifts.map(s=>{const r=s.shift===t;return e.jsxs("div",{"data-loc":"client/src/pages/LiveDJs.tsx:154",className:`p-4 relative ${r?`bg-gradient-to-br ${h[s.shift]}`:"bg-card/50"}`,children:[r&&e.jsx(x,{"data-loc":"client/src/pages/LiveDJs.tsx:163",className:"absolute top-3 right-3 bg-red-500 text-white text-[10px] px-1.5 py-0.5 animate-pulse",children:"ON AIR"}),e.jsxs("div",{"data-loc":"client/src/pages/LiveDJs.tsx:167",className:"flex items-start gap-3",children:[e.jsx("div",{"data-loc":"client/src/pages/LiveDJs.tsx:169",className:"flex-shrink-0",children:s.portrait?e.jsx("img",{"data-loc":"client/src/pages/LiveDJs.tsx:171",src:s.portrait,alt:s.djName,className:`w-16 h-16 rounded-full object-cover border-2 ${r?"border-primary shadow-lg shadow-primary/20":"border-border/50"}`}):e.jsx("div",{"data-loc":"client/src/pages/LiveDJs.tsx:179",className:"w-16 h-16 rounded-full bg-muted flex items-center justify-center border-2 border-border/50",children:e.jsx(d,{"data-loc":"client/src/pages/LiveDJs.tsx:180",className:"h-6 w-6 text-muted-foreground"})})}),e.jsxs("div",{"data-loc":"client/src/pages/LiveDJs.tsx:185",className:"flex-1 min-w-0",children:[e.jsxs("div",{"data-loc":"client/src/pages/LiveDJs.tsx:186",className:"flex items-center gap-2 mb-1",children:[e.jsx("span",{"data-loc":"client/src/pages/LiveDJs.tsx:187",className:"text-sm",children:c[s.shift]}),e.jsx("span",{"data-loc":"client/src/pages/LiveDJs.tsx:188",className:"text-xs text-muted-foreground capitalize font-medium",children:s.shift})]}),e.jsx("h3",{"data-loc":"client/src/pages/LiveDJs.tsx:192",className:`font-semibold truncate ${r?"text-primary":""}`,children:s.djName}),e.jsx("p",{"data-loc":"client/src/pages/LiveDJs.tsx:195",className:"text-xs text-muted-foreground mt-0.5",children:s.label}),e.jsxs("p",{"data-loc":"client/src/pages/LiveDJs.tsx:196",className:"text-xs text-muted-foreground
1/80 mt-2 line-clamp-2 italic",children:['"',s.personality,'"']})]})]})]},s.shift)})})]},a.channelId))})})]})}export{T 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.