1import{l as G,a as S,j as e,L as c}from"./vendor-CbN_FLw4.js";import{t as f,u as Q,b as W,d as P,R as j,B as o,g as V,e as R,M as A,l as T,j as L,i as Y,T as X,E as K,S as Z}from"./index-ClmhQYHE.js";import{S as ee,N as ae}from"./NewsTickerMarquee-DhBcTeKT.js";import{P as se}from"./phone-Ce4GnctH.js";import{C as te}from"./clock-BxXEOKY7.js";import{D as le}from"./download-D_5mda3q.js";import"./ui-29psSSNT.js";const ne={Jazz:"999-472-831-06",Pop:"998-361-749-12","Hip-Hop":"997-284-615-38",EDM:"996-518-203-74","R&B":"995-642-907-51",Rock:"994-735-128-63","AXLS Rock":"994-735-128-63","Sound Bath/Holiday":"993-891-456-27",Latin:"992-167-384-95","Lo-Fi":"991-423-670-84",Indie:"990-856-219-43","The Speakeasy":"101-937-582-16",Faith:"101-548-763-29",Classical:"101-472-891-05",Broadway:"101-683-214-78",Opera:"101-729-345-61","80s Retro":"101-814-567-93",Smash:"101-SMASH-001"};function ce({djName:x,accentColor:a,isPlaying:m,genre:b}){const g=Z[b];return e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:41",className:"relative",children:[e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:42",className:"w-28 h-28 rounded-full overflow-hidden flex items-center justify-center",style:{border:`3px solid ${a}70`,boxShadow:m?`0 0 40px ${a}50, 0 0 80px ${a}20`:"none",transition:"box-shadow 0.5s ease"},children:g?e.jsx("img",{"data-loc":"client/src/pages/Channel.tsx:51",src:g,alt:b,className:"w-full h-full object-cover",loading:"lazy",decoding:"async"}):e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:53",className:"w-full h-full flex items-center justify-center",style:{background:`linear-gradient(135deg, ${a}50, ${a}15)`},children:e.jsx(A,{"data-loc":"client/src/pages/Channel.tsx:57",className:"w-10 h-10",style:{color:a}})})}),m&&e.jsxs(e.Fragment,{children:[e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:63",className:"absolute inset-0 rounded-full animate-ping opacity-20",style:{border:`2px solid ${a}`}}),e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:67",className:"absolute -bottom-1 left-1/2 -translate-x-1/2 px-3 py-0.5 rounded-full bg-[#C6002B] text-white text-[10px] font-black tracking-wider",children:"ON AIR"})]})]})}function ie(x){if(!x)return"3:00";const a=Math.floor(x/60),m=x%60;return`${a}:${m.toString().padStart(2,"0")}`}function Ce(){const x=G(),{data:a,isLoading:m}=f.channels.getBySlug.useQuery({slug:x.slug||""}),{data:b}=f.channels.getCurrentDJs.useQuery(void 0,{staleTime:6e4}),{setChannel:g,currentChannel:B,isPlaying:F,nowPlaying:C,playDirectSong:$,dailyMinutesUsed:re,isMusicLocked:r,djSpeaking:O,speakingDjName:U}=Q(),{isAuthenticated:z}=W(),[I,_]=S.useState(""),[E,J]=S.useState(""),D=b?.find(s=>s.channelId===a?.id)?.dj?.name||null,i=B?.id===a?.id&&O&&U?U:D||a?.djName||"DJ",u=f.dj.generateAnnouncement.useMutation({onSuccess:s=>{s&&_(s.content)}}),M=f.mp3Download.createCheckout.useMutation({onSuccess:s=>{s.freeDownload&&s.downloadUrl?(window.open(s.downloadUrl,"_blank"),P.success(`Free Platinum download! ${s.remaining} remaining this month.`)):s.checkoutUrl&&(window.open(s.checkoutUrl,"_blank"),P.info("Redirecting to Stripe checkout..."))},onError:s=>{P.error(s.message||"Failed to start download")}}),h=B?.slug===x.slug&&F,{data:d}=f.songs.listByGenre.useQuery({genre:a?.name||""},{enabled:!!a?.name}),v=(()=>{const t=new URLSearchParams(window.location.search).get("song");return t?parseInt(t,10):null})(),[y,H]=S.useState(!1),{data:n}=f.songs.getById.useQuery({id:v},{enabled:!!v&&!y});S.useEffect(()=>{if(v&&!y)return;const s=a?.name==="The Speakeasy";r&&!s||a&&!B&&!F&&g({id:a.id,name:a.name,slug:a.slug,djName:D||a.djName,accentColor:a.accentColor,displayName:a.displayName})},[a,D,y,r]);const q=()=>{if(n&&a){const s=n.audioUrl||n.sunoUrl;if(s){$({title:n.title,artistName:n.artistName||"Unknown Artist",genre:n.genre||a.name,audioUrl:s,coverUrl:n.coverUrl||void 0,duration:n.duration||void 0,songId:n.id}),H(!0);const t=new URL(window.location.href);t.searchParams.delete("song"),window.history.replaceState({},"",t.toString())}}},N=s=>{if(!a)return;J(s);const t=C?.songTitle||"Neon Dreams",w=C?.artistName||i||"Andora Artist Collection";u.mutate({channelId:a.id,type:s,songTitle:t,artistName:w})};if(m)return e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:202",className:"min-h-screen bg-[#0d0d1a]",children:[e.jsx("header",{"data-loc":"client/src/pages/Channel.tsx:204",className:"sticky top-0 z-50 bg-[#0d0d1a]/95 backdrop-blur-md border-b border-white/5",children:e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:205",className:"container flex items-center justify-between h-14",children:e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:206",className:"flex items-center gap-4",children:e.jsxs(c,{"data-loc":"client/src/pages/Channel.tsx:207",href:"/",className:"flex items-center gap-2",children:[e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:208",className:"w-8 h-8 rounded-full bg-[#C6002B] flex items-center justify-center",children:e.jsx(j,{"data-loc":"client/src/pages/Channel.tsx:209",className:"w-4 h-4 text-white"})}),e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:211",className:"neon-brand-flash text-lg font-black tracking-tight",style:{fontFamily:"Orbitron, sans-serif"},children:"ANDORA Radio"}),e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:211",className:"on-air-flash ml-1 px-2 py-0.5 rounded text-[10px] font-black tracking-wider",children:"ON AIR NOW"})]})})})}),e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:216",className:"pt-12 container",children:e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:217",className:"animate-pulse space-y-4",children:[e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:218",className:"h-8 w-48 bg-white/5 rounded"}),e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:219",className:"h-64 bg-white/5 rounded-xl"})]})})]});if(!a)return e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:228",className:"min-h-screen bg-[#0d0d1a]",children:[e.jsx("header",{"data-loc":"client/src/pages/Channel.tsx:229",className:"sticky top-0 z-50 bg-[#0d0d1a]/95 backdrop-blur-md border-b border-white/5",children:e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:230",className:"container flex items-center justify-between h-14",children:e.jsxs(c,{"data-loc":"client/src/pages/Channel.tsx:231",href:"/",className:"flex items-center gap-2",children:[e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:232",className:"w-8 h-8 rounded-full bg-[#C6002B] flex items-center justify-center",children:e.jsx(j,{"data-loc":"client/src/pages/Channel.tsx:233",className:"w-4 h-4 text-white"})}),e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:235",className:"neon-brand-flash text-lg font-black tracking-tight",style:{fontFamily:"Orbitron, sans-serif"},children:"ANDORA Radio"}),e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:235",className:"on-air-flash ml-1 px-2 py-0.5 rounded text-[10px] font-black tracking-wider",children:"ON AIR NOW"})]})})}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:239",className:"pt-12 container text-center",children:[e.jsx("h1",{"data-loc":"client/src/pages/Channel.tsx:240",className:"text-2xl font-bold text-white",children:"Channel not found"}),e.jsx(c,{"data-loc":"client/src/pages/Channel.tsx:241",href:"/",className:"text-[#C6002B] mt-4 inline-block hover:underline",children:"â Back to stations"})]})]});const l=a.accentColor||"#C6002B",k=s=>{r&&(s.preventDefault(),window.location.href="/listener/dashboard")};return e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:259",className:"min-h-screen bg-[#0d0d1a] pb-32",children:[e.jsx("header",{"data-loc":"client/src/pages/Channel.tsx:261",className:"sticky top-0 z-50 bg-[#0d0d1a]/95 backdrop-blur-md border-b border-white/5",children:e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:262",className:"container flex items-center justify-between h-14",children:[e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:263",className:"flex items-center gap-4",children:[e.jsxs(c,{"data-loc":"client/src/pages/Channel.tsx:264",href:r?"#":"/",className:"flex items-center gap-2 group",onClick:k,children:[e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:265",className:"w-8 h-8 rounded-full bg-[#C6002B] flex items-center justify-center group-hover:scale-105 transition-transform",children:e.jsx(j,{"data-loc":"client/src/pages/Channel.tsx:266",className:"w-4 h-4 text-white"})}),e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:268",className:"neon-brand-flash text-lg font-black tracking-tight",style:{fontFamily:"Orbitron, sans-serif"},children:"ANDORA Radio"}),e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:268",className:"on-air-flash ml-1 px-2 py-0.5 rounded text-[10px] font-black tracking-wider",children:"ON AIR NOW"}),e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:269",className:"text-[10px] font-bold text-[#C6002B] uppercase tracking-widest hidden sm:block",children:"RADIO"})]}),e.jsxs("nav",{"data-loc":"client/src/pages/Channel.tsx:271",className:"hidden md:flex items-center gap-5 ml-4",children:[e.jsx(c,{"data-loc":"client/src/pages/Channel.tsx:272",href:r?"#":"/",className:"text-sm text-white/60 hover:text-white transition-colors",onClick:k,children:"For You"}),e.jsx(c,{"data-loc":"client/src/pages/Channel.tsx:273",href:r?"#":"/charts",className:"text-sm text-white/60 hover:text-white transition-colors",onClick:k,children:"Charts"}),e.jsx(c,{"data-loc":"client/src/pages/Channel.tsx:274",href:r?"#":"/top-artist",className:"text-sm text-white/60 hover:text-white transition-colors",onClick:k,children:"Artists"}),e.jsx("a",{"data-loc":"client/src/pages/Channel.tsx:275",href:"mailto:[email protected]?subject=Suggestion%20for%20ANDORA%20Radio",className:"text-sm font-black px-3 py-1 rounded-full bg-[#39ff14] text-black hover:bg-[#32e612] transition-all hover:scale-105 active:scale-95",style:{boxShadow:"0 0 8px #39ff14, 0 0 16px #39ff1480"},children:"Suggestions Please"})]})]}),e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:278",className:"flex items-center gap-3",children:z?e.jsx(c,{"data-loc":"client/src/pages/Channel.tsx:288",href:"/artist/dashboard",className:"text-sm text-white/60 hover:text-white transition-colors",children:"Dashboard"}):e.jsx(o,{"data-loc":"client/src/pages/Channel.tsx:280",size:"sm",className:"bg-[#C6002B] hover:bg-[#a00023] text-white font-bold text-xs px-4",onClick:()=>{window.location.href=V()},children:"Sign In"})})]})}),e.jsxs(c,{"data-loc":"client/src/pages/Channel.tsx:297",href:"/",className:"fixed top-4 left-4 z-[100] inline-flex items-center gap-2 px-5 py-3 rounded-xl border-2 border-[#39FF14] bg-black/80 hover:bg-[#39FF14]/30 active:scale-95 transition-all duration-150 animate-[homePulse_1.5s_ease-in-out_infinite]",style:{boxShadow:"0 0 20px rgba(57,255,20,0.8), 0 0 40px rgba(57,255,20,0.5), inset 0 0 12px rgba(57,255,20,0.2)",backdropFilter:"blur(12px)"},children:[e.jsxs("svg",{"data-loc":"client/src/pages/Channel.tsx:302",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"#39FF14",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{"data-loc":"client/src/pages/Channel.tsx:302",d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),e.jsx("polyline",{"data-loc":"client/src/pages/Channel.tsx:302",points:"9 22 9 12 15 12 15 22"})]}),e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:303",className:"text-[#39FF14] font-black text-base uppercase tracking-wider",style:{textShadow:"0 0 10px rgba(57,255,20,0.9), 0 0 20px rgba(57,255,20,0.6)"},children:"HOME"})]}),v&&!y&&n&&e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:308",className:"container pt-4",children:e.jsxs("button",{"data-loc":"client/src/pages/Channel.tsx:309",onClick:q,className:"w-full p-4 rounded-xl bg-gradient-to-r from-[#C6002B]/20 to-purple-500/20 border border-[#C6002B]/40 flex items-center gap-4 hover:from-[#C6002B]/30 hover:to-purple-500/30 transition-all group active:scale-[0.98]",children:[e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:313",className:"w-12 h-12 rounded-full bg-[#C6002B] flex items-center justify-center shrink-0 group-hover:scale-110 transition-transform",children:e.jsx(R,{"data-loc":"client/src/pages/Channel.tsx:314",className:"w-5 h-5 text-white ml-0.5"})}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:316",className:"text-left flex-1 min-w-0",children:[e.jsx("p",{"data-loc":"client/src/pages/Channel.tsx:317",className:"text-xs text-[#C6002B] font-bold uppercase tracking-wider mb-0.5",children:"Shared with you"}),e.jsx("p",{"data-loc":"client/src/pages/Channel.tsx:318",className:"text-white font-bold truncate",children:n.title}),e.jsx("p",{"data-loc":"client/src/pages/Channel.tsx:319",className:"text-white/50 text-sm truncate",children:n.artistName||"Unknown Artist"})]}),e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:321",className:"text-white/40 text-sm font-medium shrink-0",children:"Tap to play"})]})}),e.jsxs("section",{"data-loc":"client/src/pages/Channel.tsx:327",className:"pt-6 pb-8 relative overflow-hidden",children:[a.name==="Smash"?e.jsx(ee,{"data-loc":"client/src/pages/Channel.tsx:329"}):e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:331",className:"absolute inset-0 opacity-10",style:{background:`radial-gradient(ellipse at center, ${l}, transparent 70%)`}}),e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:336",className:"container relative",children:e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:337",className:"flex flex-col md:flex-row items-center gap-8",children:[e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:338",className:"relative",children:e.jsx(ce,{"data-loc":"client/src/pages/Channel.tsx:339",djName:i,accentColor:l,isPlaying:h,genre:a.name})}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:343",className:"text-center md:text-left flex-1",children:[e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:344",className:"flex items-center gap-3 justify-center md:justify-start mb-2",children:[e.jsx("h1",{"data-loc":"client/src/pages/Channel.tsx:345",className:"text-3xl font-black text-white",style:{fontFamily:"Orbitron, sans-serif"},children:a.displayName||a.name}),e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:348",className:"px-2 py-1 rounded bg-[#C6002B]/20 border border-[#C6002B]/40 text-[#C6002B] text-xs font-black",children:ne[a.name]||a.stationNumber||""}),h&&e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:352",className:"live-badge px-2 py-0.5 rounded text-[10px]",children:"LIVE"})]}),e.jsx("p",{"data-loc":"client/src/pages/Channel.tsx:355",className:"text-white/50 mb-2",children:a.description}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:356",className:"flex items-center gap-4 justify-center md:justify-start text-sm",children:[e.jsxs("span",{"data-loc":"client/src/pages/Channel.tsx:357",className:"flex items-center gap-1.5 animate-dj-flash font-bold",style:{color:"#39ff14",textShadow:"0 0 6px #39ff14, 0 0 12px #39ff14"},children:[e.jsx(A,{"data-loc":"client/src/pages/Channel.tsx:358",className:"w-4 h-4"})," ",i]}),e.jsxs("span",{"data-loc":"client/src/pages/Channel.tsx:360",className:"flex items-center gap-1.5 text-white/40",children:[e.jsx(T,{"data-loc":"client/src/pages/Channel.tsx:361",className:"w-4 h-4"}
1)," ",a.listenerCount?.toLocaleString()," listeners"]}),e.jsxs("span",{"data-loc":"client/src/pages/Channel.tsx:363",className:"flex items-center gap-1.5 text-white/40",children:[e.jsx(L,{"data-loc":"client/src/pages/Channel.tsx:364",className:"w-4 h-4"})," ",d?.length||0," tracks"]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:368",className:"mt-4 flex items-center gap-3 justify-center md:justify-start",children:[e.jsxs(o,{"data-loc":"client/src/pages/Channel.tsx:369",onClick:()=>{const s=a.name==="Live Breaking News";if(r&&!s){window.location.href="/listener/dashboard";return}g({id:a.id,name:a.name,slug:a.slug,djName:i,accentColor:a.accentColor,displayName:a.displayName})},className:"font-bold text-white px-6",style:{backgroundColor:"#C6002B"},children:[e.jsx(j,{"data-loc":"client/src/pages/Channel.tsx:388",className:"w-4 h-4 mr-2"}),h?"Now Playing":"Listen Live"]}),e.jsx(c,{"data-loc":"client/src/pages/Channel.tsx:391",href:"/now-playing",children:e.jsxs(o,{"data-loc":"client/src/pages/Channel.tsx:392",variant:"outline",className:"border-white/20 text-white/70 hover:text-white hover:bg-white/5",children:[e.jsx(R,{"data-loc":"client/src/pages/Channel.tsx:393",className:"w-4 h-4 mr-2"})," Full Player"]})})]})]})]})})]}),e.jsx("section",{"data-loc":"client/src/pages/Channel.tsx:403",className:"py-2 px-0",children:e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:404",className:"container",children:e.jsx(ae,{"data-loc":"client/src/pages/Channel.tsx:405"})})}),e.jsx("section",{"data-loc":"client/src/pages/Channel.tsx:410",className:"py-6",children:e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:411",className:"container",children:e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:412",className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:414",className:"lg:col-span-2 space-y-6",children:[e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:416",className:"rounded-xl p-6 bg-[#1a0a2e]/60 border border-white/5",children:[e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:417",className:"flex items-center gap-4 mb-4",children:[e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:419",className:"w-16 h-16 rounded-full overflow-hidden border-2 shrink-0",style:{borderColor:`${l}70`},children:e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:420",className:"w-full h-full flex items-center justify-center",style:{background:`linear-gradient(135deg, ${l}40, ${l}10)`},children:e.jsx(A,{"data-loc":"client/src/pages/Channel.tsx:421",className:"w-6 h-6",style:{color:l}})})}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:424",children:[e.jsxs("h2",{"data-loc":"client/src/pages/Channel.tsx:425",className:"text-lg font-bold flex items-center gap-2 text-white",children:[e.jsx(A,{"data-loc":"client/src/pages/Channel.tsx:426",className:"w-5 h-5",style:{color:l}}),"Live On Air â ",i]}),e.jsxs("p",{"data-loc":"client/src/pages/Channel.tsx:429",className:"text-xs text-white/50",children:["Your DJ on ",a.name]})]})]}),I&&e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:435",className:"mb-5 p-4 rounded-lg bg-[#0d0d1a]/80 border border-white/10",children:[e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:436",className:"flex items-center gap-2 mb-2",children:e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:437",className:"text-xs font-bold uppercase tracking-wider",style:{color:l},children:E.replace(/_/g," ")})}),e.jsxs("p",{"data-loc":"client/src/pages/Channel.tsx:441",className:"text-white/80 italic leading-relaxed",children:['"',I,'"']}),e.jsxs("p",{"data-loc":"client/src/pages/Channel.tsx:442",className:"text-xs text-white/40 mt-2",children:["â ",i]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:447",className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:[e.jsxs(o,{"data-loc":"client/src/pages/Channel.tsx:448",variant:"outline",size:"sm",onClick:()=>N("song_intro"),disabled:u.isPending,className:"border-white/10 text-white/70 hover:bg-white/5 hover:text-white",children:[e.jsx(L,{"data-loc":"client/src/pages/Channel.tsx:455",className:"w-3.5 h-3.5 mr-1.5"})," Song Intro"]}),e.jsxs(o,{"data-loc":"client/src/pages/Channel.tsx:457",variant:"outline",size:"sm",onClick:()=>N("caller_shoutout"),disabled:u.isPending,className:"border-white/10 text-white/70 hover:bg-white/5 hover:text-white",children:[e.jsx(se,{"data-loc":"client/src/pages/Channel.tsx:464",className:"w-3.5 h-3.5 mr-1.5"})," Caller"]}),e.jsxs(o,{"data-loc":"client/src/pages/Channel.tsx:466",variant:"outline",size:"sm",onClick:()=>N("ad_read"),disabled:u.isPending,className:"border-white/10 text-white/70 hover:bg-white/5 hover:text-white",children:[e.jsx(Y,{"data-loc":"client/src/pages/Channel.tsx:473",className:"w-3.5 h-3.5 mr-1.5"})," Ad Read"]}),e.jsxs(o,{"data-loc":"client/src/pages/Channel.tsx:475",variant:"outline",size:"sm",onClick:()=>N("artist_bio"),disabled:u.isPending,className:"border-white/10 text-white/70 hover:bg-white/5 hover:text-white",children:[e.jsx(T,{"data-loc":"client/src/pages/Channel.tsx:482",className:"w-3.5 h-3.5 mr-1.5"})," Artist Bio"]}),e.jsxs(o,{"data-loc":"client/src/pages/Channel.tsx:484",variant:"outline",size:"sm",onClick:()=>N("station_id"),disabled:u.isPending,className:"border-white/10 text-white/70 hover:bg-white/5 hover:text-white",children:[e.jsx(j,{"data-loc":"client/src/pages/Channel.tsx:491",className:"w-3.5 h-3.5 mr-1.5"})," Station ID"]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:497",className:"rounded-xl p-6 bg-[#1a0a2e]/40 border border-white/5",children:[e.jsxs("h2",{"data-loc":"client/src/pages/Channel.tsx:498",className:"text-lg font-bold flex items-center gap-2 text-white mb-4",children:[e.jsx(X,{"data-loc":"client/src/pages/Channel.tsx:499",className:"w-5 h-5 text-[#C6002B]"}),"Trending on ",a.displayName||a.name]}),e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:502",className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:d?.slice(0,6).map(s=>e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:504",className:"rounded-lg bg-white/5 p-3 hover:bg-white/10 transition-colors",children:[e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:505",className:"flex items-center gap-2 mb-1",children:[s.artistAvatarUrl&&e.jsx("img",{"data-loc":"client/src/pages/Channel.tsx:507",src:s.artistAvatarUrl,alt:"",className:"w-6 h-6 rounded-full object-cover border border-white/20"}),e.jsx("p",{"data-loc":"client/src/pages/Channel.tsx:509",className:"text-sm font-medium text-white truncate flex-1",children:s.title})]}),e.jsx("p",{"data-loc":"client/src/pages/Channel.tsx:511",className:"text-xs text-white/40 truncate",children:s.artistName||i})]},s.id))})]}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:518",className:"rounded-xl p-6 bg-[#1a0a2e]/40 border border-white/5",children:[e.jsxs("h2",{"data-loc":"client/src/pages/Channel.tsx:519",className:"text-lg font-bold flex items-center gap-2 text-white mb-4",children:[e.jsx(te,{"data-loc":"client/src/pages/Channel.tsx:520",className:"w-5 h-5",style:{color:l}}),"Recently Played"]}),e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:523",className:"space-y-2",children:d?.slice(3,8).map((s,t)=>e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:525",className:"flex items-center gap-3 p-2 rounded-lg hover:bg-white/5",children:[e.jsxs("span",{"data-loc":"client/src/pages/Channel.tsx:526",className:"text-xs text-white/30 w-12",children:[t+1,"m ago"]}),s.artistAvatarUrl&&e.jsx("img",{"data-loc":"client/src/pages/Channel.tsx:528",src:s.artistAvatarUrl,alt:"",className:"w-7 h-7 rounded-full object-cover border border-white/20 shrink-0"}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:530",className:"flex-1 min-w-0",children:[e.jsx("p",{"data-loc":"client/src/pages/Channel.tsx:531",className:"text-sm text-white/80 truncate",children:s.title}),e.jsx("p",{"data-loc":"client/src/pages/Channel.tsx:532",className:"text-xs text-white/40 truncate",children:s.artistName||i})]})]},s.id))})]}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:540",className:"rounded-xl p-6 bg-[#1a0a2e]/40 border border-white/5",children:[e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:541",className:"flex items-center justify-between mb-4",children:[e.jsxs("h2",{"data-loc":"client/src/pages/Channel.tsx:542",className:"text-lg font-bold flex items-center gap-2 text-white",children:[e.jsx(L,{"data-loc":"client/src/pages/Channel.tsx:543",className:"w-5 h-5",style:{color:l}}),"Channel Playlist"]}),e.jsxs("span",{"data-loc":"client/src/pages/Channel.tsx:546",className:"text-xs text-white/40",children:[d?.length||0," tracks in rotation"]})]}),e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:549",className:"space-y-1 max-h-[500px] overflow-y-auto pr-2",children:d?.slice(0,50).map((s,t)=>{const w=h&&C?.songTitle===s.title;return e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:553",className:`flex items-center gap-3 p-3 rounded-lg transition-all ${w?"bg-white/10 border border-white/10":"hover:bg-white/5"}`,children:[e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:562",className:"w-8 text-center shrink-0",children:w?e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:564",className:"flex items-end justify-center gap-[2px] h-4",children:[1,2,3].map(p=>e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:566",className:"w-[3px] rounded-full",style:{backgroundColor:l,animation:`equalizer 1.2s ease-in-out ${p*.15}s infinite`,height:"100%"}},p))}):e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:578",className:"text-xs text-white/30",children:t+1})}),s.artistAvatarUrl&&e.jsx("img",{"data-loc":"client/src/pages/Channel.tsx:584",src:s.artistAvatarUrl,alt:"",className:"w-8 h-8 rounded-full object-cover border border-white/20 shrink-0"}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:588",className:"flex-1 min-w-0",children:[e.jsx("p",{"data-loc":"client/src/pages/Channel.tsx:589",className:`text-sm font-medium truncate ${w?"text-white":"text-white/70"}`,children:s.title}),e.jsx("p",{"data-loc":"client/src/pages/Channel.tsx:592",className:"text-xs text-white/40 truncate",children:s.artistName||i})]}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:598",className:"flex items-center gap-2 shrink-0",children:[e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:599",className:"text-xs text-white/30 font-mono",children:ie(s.duration)}),e.jsx("button",{"data-loc":"client/src/pages/Channel.tsx:602",onClick:p=>{p.preventDefault(),p.stopPropagation(),M.mutate({songId:s.id,origin:window.location.origin})},disabled:M.isPending,className:"p-1.5 rounded-full text-[#39FF14]/60 hover:text-[#39FF14] hover:bg-[#39FF14]/10 transition-all active:scale-90 disabled:opacity-30",title:`Download MP3 â ${s.isLabelArtist?"$5.99":"$2.99"}`,children:e.jsx(le,{"data-loc":"client/src/pages/Channel.tsx:612",className:"w-3.5 h-3.5"})}),s.sunoUrl&&e.jsx("a",{"data-loc":"client/src/pages/Channel.tsx:615",href:s.sunoUrl,target:"_blank",rel:"noopener noreferrer",className:"text-white/30 hover:text-white transition-colors",onClick:p=>p.stopPropagation(),children:e.jsx(K,{"data-loc":"client/src/pages/Channel.tsx:622",className:"w-3 h-3"})})]})]},s.id)})}),d&&d.length>50&&e.jsxs("p",{"data-loc":"client/src/pages/Channel.tsx:632",className:"text-xs text-white/40 text-center mt-4",children:["Showing 50 of ",d.length," tracks in rotation"]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:640",className:"space-y-4",children:[h&&C&&e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:643",className:"rounded-xl p-5 bg-[#1a0a2e]/60 border border-white/10",style:{boxShadow:`0 0 30px ${l}15`},children:[e.jsxs("h3",{"data-loc":"client/src/pages/Channel.tsx:644",className:"font-bold mb-3 flex items-center gap-2 text-white",children:[e.jsx(R,{"data-loc":"client/src/pages/Channel.tsx:645",className:"w-4 h-4",style:{color:l}}),"Now Playing"]}),e.jsx("p",{"data-loc":"client/src/pages/Channel.tsx:648",className:"text-white font-semibold",children:C.songTitle}),e.jsxs("p",{"data-loc":"client/src/pages/Channel.tsx:649",className:"text-sm text-white/50 mt-1",children:["by ",C.artistName]}),e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:650",className:"mt-3 flex items-end justify-center gap-[2px] h-8",children:Array.from({length:16}).map((s,t)=>e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:652",className:"flex-1 rounded-full",style:{height:`${30+Math.random()*70}%`,backgroundColor:l,opacity:.7,animation:`equalizer 1.2s ease-in-out ${t*.07}
1s infinite`}},t))})]}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:668",className:"rounded-xl p-5 bg-[#1a0a2e]/40 border border-white/5",children:[e.jsx("h3",{"data-loc":"client/src/pages/Channel.tsx:669",className:"font-bold mb-3 text-white",children:"About This Channel"}),e.jsx("p",{"data-loc":"client/src/pages/Channel.tsx:670",className:"text-sm text-white/50 mb-4",children:a.djPersonality}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:671",className:"space-y-2 text-sm",children:[e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:672",className:"flex justify-between",children:[e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:673",className:"text-white/40",children:"Format"}),e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:674",className:"font-medium text-white/80",children:a.displayName||a.name})]}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:676",className:"flex justify-between",children:[e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:677",className:"text-white/40",children:"DJ"}),e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:678",className:"font-medium text-white/80",children:i})]}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:680",className:"flex justify-between",children:[e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:681",className:"text-white/40",children:"Status"}),e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:682",className:"text-[#C6002B] font-medium",children:"Live 24/7"})]}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:684",className:"flex justify-between",children:[e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:685",className:"text-white/40",children:"Tracks"}),e.jsx("span",{"data-loc":"client/src/pages/Channel.tsx:686",className:"font-medium text-white/80",children:d?.length||0})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:692",className:"rounded-xl p-5 bg-[#1a0a2e]/40 border border-white/5",children:[e.jsx("h3",{"data-loc":"client/src/pages/Channel.tsx:693",className:"font-bold mb-3 text-white",children:"Live Visualizer"}),e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:694",className:"flex items-end justify-center gap-[3px] h-24",children:Array.from({length:20}).map((s,t)=>e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:696",className:"flex-1 rounded-full",style:{height:`${20+Math.random()*80}%`,backgroundColor:l,opacity:h?.7:.2,animation:h?`equalizer 1.2s ease-in-out ${t*.06}s infinite`:"none"}},t))})]}),!h&&e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:712",className:"rounded-xl p-5 bg-[#C6002B]/10 border border-[#C6002B]/20 text-center",children:[e.jsx("p",{"data-loc":"client/src/pages/Channel.tsx:713",className:"text-white/70 text-sm mb-3",children:"Ready to tune in?"}),e.jsxs(o,{"data-loc":"client/src/pages/Channel.tsx:714",onClick:()=>{const s=a.name==="Live Breaking News";if(r&&!s){window.location.href="/listener/dashboard";return}g({id:a.id,name:a.name,slug:a.slug,djName:i,accentColor:a.accentColor,displayName:a.displayName})},className:"w-full font-bold text-white bg-[#C6002B] hover:bg-[#a00023]",children:[e.jsx(j,{"data-loc":"client/src/pages/Channel.tsx:732",className:"w-4 h-4 mr-2"})," Listen Live"]})]})]})]})})}),e.jsx("div",{"data-loc":"client/src/pages/Channel.tsx:741",className:"mt-8 pb-2 text-center",children:e.jsx(c,{"data-loc":"client/src/pages/Channel.tsx:742",href:"/support",className:"inline-flex items-center gap-2 px-5 py-2.5 rounded-full bg-[#C6002B]/20 border border-[#C6002B]/40 text-[#C6002B] font-bold text-sm hover:bg-[#C6002B]/30 transition-all hover:scale-105 active:scale-95",children:"â¤ï¸ Donate to Andora Radio"})}),e.jsxs("div",{"data-loc":"client/src/pages/Channel.tsx:747",className:"mt-4 pb-6 text-center",children:[e.jsx(c,{"data-loc":"client/src/pages/Channel.tsx:748",href:"/terms",className:"inline-block text-sm font-bold",style:{animation:"legalFlash 1s ease-in-out infinite"},children:"âï¸ LEGAL DISCLAIMERS â 100% LEGAL AI RADIO STATION âï¸"}),e.jsx("style",{"data-loc":"client/src/pages/Channel.tsx:751",children:` 2 @keyframes legalFlash { 3 0%, 100% { color: #22c55e; text-shadow: 0 0 8px #22c55e80; } 4 50% { color: #ef4444; text-shadow: 0 0 8px #ef444480; } 5 } 6 `})]})]})}export{Ce 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.