1import{s as w,j as e,L as V,r as h,B as E,b as j,u as $,t as M}from"./index-BWKVl_8M.js";import{i as B,t as A,H as q,L as S,e as H,g as D,c as O,d as U,f as W,S as z,b as G,a as K}from"./SEOHead-DxGnaOqv.js";import{u as I}from"./useQuery-D48NDIgt.js";import{b as Q}from"./useEvents-Bhj9Z7L3.js";import{u as Y}from"./useBrandContent-C_Lte893.js";import{a as J}from"./brandImages-Dm-gEYI6.js";import{H as Z,Q as X,I as ee,w as te,D as se,C as ae,S as R,F as re}from"./blacklightPacketPickup-Di6z-Tz6.js";import{G as oe}from"./GalleryCarousel-DfCyPLjw.js";import{C as ne}from"./chevron-right-CfmufEVN.js";import{E as ie}from"./EventCard-iXPwabu9.js";import{V as le,a as ce,U as de}from"./UGCVideoGallery-BgeV5AnV.js";import{m as v}from"./proxy-CQRMKxsv.js";import{P as me,V as P}from"./video-DfV4Eo5u.js";import{D as ue,b as he,a as pe,c as ge,d as fe}from"./dialog-CexQweMe.js";import{I as F}from"./input-D7iXBNfg.js";import{L as _}from"./label-CkZwLUe5.js";import{S as xe,a as ye,b as be,c as ve,d as C}from"./select-C0W6EXON.js";import{n as je}from"./notifyInquiry-nFPges_o.js";import{L as we}from"./loader-circle-DDrVaIz-.js";import{U as ke}from"./upload-DMlP82uo.js";import{E as Ne}from"./external-link-BhYWC1xF.js";import"./index-tpdW2Qs0.js";import"./imageUtils-ErSZkxv7.js";import"./badge-5lgR0cpA.js";import"./zap-BbnFNLrd.js";import"./arrow-left-BwvT5i13.js";import"./map-pin-GkS6aPAQ.js";import"./tag-DUI8xDL-.js";import"./format--YuNkvsf.js";import"./clock-CL4YdE7n.js";import"./circle-check-big-CUvVauX6.js";import"./star-CW-vI8cx.js";import"./check-DRimPO66.js";import"./sparkles-B9mqse4g.js";import"./music-Cm3WxPkv.js";import"./party-popper-cC3jznE6.js";import"./chevron-down-CbPiL9G2.js";import"./car-BY93Njoa.js";import"./map-C4HoK3Ag.js";import"./gift-C9eQq2L8.js";import"./chevron-left-DyTMbxIM.js";import"./card-249XDqvi.js";import"./index-CXlXHWvK.js";import"./index-DpU2GHdQ.js";import"./index-CVwrx-3F.js";function Se(a,o){return I({queryKey:["event-by-location",a,o],queryFn:async()=>{const{data:t,error:d}=await w.from("events").select("*").eq("brand",a).order("date",{ascending:!0});if(d)throw d;const l=t.filter(c=>A(c.city)===o);if(l.length===0)return null;const m=l.filter(c=>!B(c.date)).sort((c,s)=>new Date(c.date).getTime()-new Date(s.date).getTime());return m.length>0?m[0]:l.slice().sort((c,s)=>new Date(s.date).getTime()-new Date(c.date).getTime())[0]??null},enabled:!!a&&!!o})}function _e(a,o=100){return I({queryKey:["nearby-events",a==null?void 0:a.id,o],queryFn:async()=>{if(!a)return[];const{data:t,error:d}=await w.from("events").select("*").eq("brand",a.brand).neq("id",a.id).order("date",{ascending:!0});if(d)throw d;return t.filter(l=>!B(l.date)).slice(0,6)},enabled:!!a})}function Ce({items:a}){return e.jsxs("nav",{"aria-label":"Breadcrumb",className:"flex items-center gap-1.5 text-xs text-muted-foreground overflow-x-auto whitespace-nowrap py-3",children:[e.jsxs(V,{to:"/",className:"flex items-center gap-1 hover:text-foreground transition-colors shrink-0",children:[e.jsx(q,{className:"h-3.5 w-3.5"}),e.jsx("span",{children:"Home"})]}),a.map((o,t)=>e.jsxs("span",{className:"flex items-center gap-1.5 shrink-0",children:[e.jsx(ne,{className:"h-3 w-3 text-muted-foreground/50"}),t===a.length-1?e.jsx("span",{className:"text-foreground font-medium",children:o.name}):e.jsx(V,{to:o.path,className:"hover:text-foreground transition-colors",children:o.name})]},o.path))]})}const Ve={"the-color-run":[{heading:"Packet Pickup",content:"Packet pickup is typically held the day before the event from 4:00 PM â 8:00 PM at a local venue near the start line. Exact location and hours will be emailed the week of the event. Can't make it? Packets will be available on Race Day for a small $5 fee per packet (cash only). Bring a friend with a copy of your barcode if you can't attend.",type:"text"},{heading:"Parking",content:"Parking is available at the venue. A cash-only parking fee (typically up to $20) may be collected by the venue. Some locations are card-only â we'll send venue-specific updates as your event gets closer. C
1arpool when possible and arrive early for the smoothest experience.",type:"text"},{heading:"Course",content:"The Color Run is a 5K (3.1 mile) untimed course that anyone can finish. Walk, jog, or dance your way through 5 vibrant color zones where you'll be doused head-to-toe in safe, plant-based color powder. Strollers welcome. Family-friendly and designed for all fitness levels.",type:"text"},{heading:"Race Day",content:"Registration opens at 7:00 AM on Race Day. Heats are released in small waves every 60â90 seconds on a first-come, first-served basis. Wear WHITE so the color really pops, arrive at least 45 minutes before your wave, and don't forget sunglasses to protect your eyes during color throws.",type:"text"},{heading:"What to Wear",content:["White clothing â the color shows up best on white","Sunglasses to keep color powder out of your eyes","A bandana or buff to cover your mouth in color zones","Old running shoes you don't mind getting colorful","A bag to stash your phone and keys"],type:"text"},{heading:"Finish Festival",content:"Cross the finish line and dive straight into the Finish Festival â the happiest 5K after-party on the planet. DJ on stage, music, dancing, group color throws every 15 minutes, photo ops, food trucks, and a sea of color-covered participants celebrating together.",type:"text"},{heading:"Volunteer",content:"Color Crew volunteers make the magic happen. Help throw color, hand out bibs, cheer on runners, or work the festival. Volunteers get a free Color Crew shirt, lunch, and a front-row view of the brightest 5K in town. Sign up on the Volunteer page.",type:"text"},{heading:"The Color Run â Buy One & Give One Program!",content:"For every registration purchased, The Color Run donates a free registration to a local community member who may not otherwise have the means to participate â including children, families facing hardship, and individuals battling illness. We partner with organizations like Make-A-Wish, St. Jude Children's Research Hospital, Feeding America, UNICEF USA, and local children's hospitals to bring the joy of color to everyone.",type:"charity"}]};function Ee(a){return a?Ve[a]||[]:[]}const Be=1,Le="9108ff5a-6777-42df-af34-be8afc2e0264",De="e0491c20-5e54-474d-89c2-4c9e22b3ba79",Re="/__l5e/assets-v1/9108ff5a-6777-42df-af34-be8afc2e0264/the-color-run-is-back.mov",Pe="a/v1/e0491c20-5e54-474d-89c2-4c9e22b3ba79/9108ff5a-6777-42df-af34-be8afc2e0264/the-color-run-is-back.mov",Fe="the-color-run-is-back.mov",Ie=10431578,Te="video/quicktime",$e="2026-06-10T20:31:21Z",Me={version:Be,asset_id:Le,project_id:De,url:Re,r2_key:Pe,original_filename:Fe,size:Ie,content_type:Te,created_at:$e},Ae=[{src:"/videos/BLR_2016_30_Sec.mp4",label:"30s Highlight",poster:"/images/video-posters/BLR_2016_30_Sec.jpg"},{src:"/videos/BLR_2016_15_Sec.mp4",label:"15s Teaser",poster:"/images/video-posters/BLR_2016_15_Sec.jpg"},{src:"/videos/BLR_1.MOV",label:"Blacklight Run 1",poster:"/images/video-posters/BLR_1.jpg"},{src:"/videos/BLR@_1.MOV",label:"Blacklight Run 2",poster:"/images/video-posters/BLR@_1.jpg"},{src:"/videos/BLR.MOV",label:"Blacklight Run 3",poster:"/images/video-posters/BLR.jpg"}],qe={src:Me.url,label:"The Color Run is Back!",poster:"/images/video-posters/the-color-run-is-back.jpg"};function He({brandColor:a="#BF00FF",brand:o}){const t=o==="the-color-run",d=h.useMemo(()=>t?[qe]:[...Ae].sort(()=>Math.random()-.5).slice(0,2),[t]),n=t?"See the Color in Action":"See the Glow in Action";return e.jsxs(v.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-2xl font-black tracking-tight mb-4",children:n}),e.jsx("div",{className:`grid gap-4 ${t?"grid-cols-1":"grid-cols-1 sm:grid-cols-2"}`,children:d.map(l=>e.jsx(Oe,{video:l,brandColor:a},l.src))})]})}function Oe({video:a,brandColor:o}){const[t,d]=h.useState(!0),[n,l]=h.useState(!1),m=h.useRef(null),u=()=>{m.current&&(m.current.muted=!t,d(!t))},c=()=>{const s=m.current;s&&(l(!0),s.src||(s.src=a.src,s.load()),s.play().catch(()=>{}))};return e.jsxs("div",{className:"relative rounded-xl overflow-hidden border border-primary/30 shadow-lg",style:{boxShadow:`0 0 20px ${o}33`},children:[e.jsx("video",{ref:m,preload:"none",poster:a.poster,muted:!0,loop:!0,playsInl
1ine:!0,className:"w-full aspect-video object-cover bg-black"}),!n&&e.jsxs("button",{type:"button",onClick:c,"aria-label":`Play ${a.label}`,className:"absolute inset-0 flex items-center justify-center",children:[e.jsx("img",{src:a.poster,alt:a.label,loading:"lazy",decoding:"async",className:"absolute inset-0 w-full h-full object-cover"}),e.jsx("span",{className:"absolute inset-0 bg-black/20"}),e.jsx("span",{className:"relative w-16 h-16 rounded-full bg-black/50 backdrop-blur-sm flex items-center justify-center text-white shadow-lg transition-transform active:scale-90 hover:scale-105",children:e.jsx(me,{className:"h-7 w-7 ml-0.5",fill:"currentColor"})})]}),n&&e.jsx("button",{onClick:u,className:"absolute bottom-3 right-3 p-2 rounded-full bg-black/60 text-white hover:bg-black/80 transition-colors","aria-label":t?"Unmute":"Mute",children:t?e.jsx(le,{className:"h-4 w-4"}):e.jsx(ce,{className:"h-4 w-4"})})]})}function Ue({brand:a,city:o,state:t,eventId:d,trigger:n}){const[l,m]=h.useState(!1),[u,c]=h.useState(""),[s,i]=h.useState("upload"),[p,k]=h.useState(null),[y,b]=h.useState(!1),N=async f=>{if(f.preventDefault(),!p){j.error("Please select a video file");return}if(!u.trim()){j.error("Please enter your social handle");return}if(p.size>100*1024*1024){j.error("Video must be under 100MB");return}b(!0);try{const g=p.name.split(".").pop()||"mp4",r=`${a}/${o}/${Date.now()}_${u.replace(/[^a-zA-Z0-9]/g,"")}.${g}`,{error:x}=await w.storage.from("ugc-videos").upload(r,p,{contentType:p.type});if(x)throw x;const{data:{publicUrl:T}}=w.storage.from("ugc-videos").getPublicUrl(r),{error:L}=await w.from("ugc_videos").insert({creator_handle:u.replace("@","").trim(),platform:s,video_url:T,brand:a,city:o,state:t,event_id:d||null});if(L)throw L;j.success("Video submitted! Our team will review it shortly. ð"),je({inquiry_type:"ugc-video",title:`New UGC video from @${u.replace("@","").trim()}`,message:`${a} - ${o}, ${t}`,submitter_name:u.trim()}),m(!1),c(""),k(null),i("upload")}catch(g){j.error(g.message||"Failed to submit video")}finally{b(!1)}};return e.jsxs(ue,{open:l,onOpenChange:m,children:[e.jsx(he,{asChild:!0,children:n||e.jsxs(E,{variant:"outline",className:"gap-2",children:[e.jsx(P,{className:"h-4 w-4"})," Submit Your Video"]})}),e.jsxs(pe,{className:"sm:max-w-md",children:[e.jsx(ge,{children:e.jsxs(fe,{className:"flex items-center gap-2",children:[e.jsx(P,{className:"h-5 w-5"})," Submit Your Video"]})}),e.jsxs("form",{onSubmit:N,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(_,{htmlFor:"handle",children:"Your Social Handle"}),e.jsx(F,{id:"handle",placeholder:"@yourusername",value:u,onChange:f=>c(f.target.value),required:!0,maxLength:100})]}),e.jsxs("div",{children:[e.jsx(_,{htmlFor:"platform",children:"Platform"}),e.jsxs(xe,{value:s,onValueChange:i,children:[e.jsx(ye,{children:e.jsx(be,{})}),e.jsxs(ve,{children:[e.jsx(C,{value:"upload",children:"Direct Upload"}),e.jsx(C,{value:"instagram",children:"Instagram"}),e.jsx(C,{value:"tiktok",children:"TikTok"})]})]})]}),e.jsxs("div",{children:[e.jsx(_,{htmlFor:"video",children:"Video File"}),e.jsx(F,{id:"video",type:"file",accept:"video/*",onChange:f=>{var g;return k(((g=f.target.files)==null?void 0:g[0])||null)},required:!0}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Max 100MB. MP4, MOV, or WebM."})]}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"By submitting, you confirm this was filmed at an EventLab event."}),e.jsxs(E,{type:"submit",className:"w-full gap-2",disabled:y,children:[y?e.jsx(we,{className:"h-4 w-4 animate-spin"}):e.jsx(ke,{className:"h-4 w-4"}),y?"Uploading...":"Submit Video"]})]})]})]})}function It(){const{brandSlug:a,citySlug:o}=$(),{data:t,isLoading:d}=Se(a||"",o||""),{data:n}=Q((t==null?void 0:t.id)||""),{data:l}=_e(t),{getBrand:m,isLoading:u}=Y(),c=h.useMemo(()=>t?J(t.brand):[],[t==null?void 0:t.brand]);if(h.useEffect(()=>{t&&M({content_type:"event",content_id:t.id,content_name:t.title,brand:t.brand})},[t==null?void 0:t.id]),d||u)return e.jsx(S,{children:e.jsx("div",{className:"min-h-screen flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-8 h-8 border-2 border-primary border-t-transparent roun
1ded-full animate-spin mx-auto mb-3"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Loading event..."})]})})});if(!t)return e.jsx(S,{children:e.jsx("div",{className:"min-h-screen flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-3xl font-black mb-2",children:"Event Not Found"}),e.jsx("p",{className:"text-muted-foreground",children:"No event found for this location."})]})})});const s=m(t.brand),i=s==null?void 0:s.colors.primary,p=!!n&&(n.sections.length>0||n.gallery_images.length>0),k=H(t),y=B(t.date),b=((n==null?void 0:n.sections)||[]).filter(r=>r.heading&&r.content).slice(0,5).map(r=>({question:`What about ${r.heading} at ${(s==null?void 0:s.name)||t.brand} ${t.city}?`,answer:Array.isArray(r.content)?r.content.join(" "):r.content})),N=[{name:"Brands",path:"/brands"},{name:(s==null?void 0:s.name)||t.brand,path:`/brands/${t.brand}`},{name:t.city,path:D(t)}],f=[O(t,s),U([{name:"Home",path:"/"},...N])],g=W(b);return g&&f.push(g),e.jsxs(S,{children:[e.jsx(z,{title:G(t,s),description:K(t,s),canonicalPath:D(t),ogImage:t.hero_image||void 0,ogType:"event",schemas:f}),e.jsx(Z,{event:t,brand:s,content:n,brandColor:i}),e.jsx("section",{className:"py-10 md:py-16 bg-background overflow-x-clip",children:e.jsxs("div",{className:"container mx-auto px-4 max-w-6xl overflow-hidden",children:[e.jsx(Ce,{items:N}),e.jsx("div",{className:"mb-10 md:mb-16",children:e.jsx(X,{event:t,brand:s,brandColor:i})}),e.jsxs("div",{className:"grid lg:grid-cols-3 gap-10",children:[e.jsxs("div",{className:"lg:col-span-2 min-w-0 space-y-10 md:space-y-14",children:[e.jsxs(v.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[y&&e.jsxs("div",{className:"mb-6 rounded-2xl p-5 md:p-6",style:{backgroundColor:`${i}12`,border:`1px solid ${i}40`},children:[e.jsx("h2",{className:"text-xl md:text-2xl font-black tracking-tight mb-2",style:{color:i},children:"This event has already taken place"}),e.jsxs("p",{className:"text-muted-foreground mb-4",children:[(s==null?void 0:s.name)||t.brand," ",t.city," ran on"," ",new Date(t.date).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}),". Registration is closed."]}),e.jsx(V,{to:"/events",children:e.jsx(E,{className:"font-bold text-white border-0",style:{backgroundColor:i},children:"See upcoming events"})})]}),e.jsxs("h1",{className:"text-3xl md:text-4xl font-black tracking-tight mb-4",children:[(s==null?void 0:s.name)||t.brand," ",t.city," ",k,t.venue?` â ${t.venue}`:""]}),e.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:t.short_description||(s==null?void 0:s.description)})]}),e.jsxs(v.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsxs("h2",{className:"text-2xl font-black tracking-tight mb-3",children:["Why ",t.city," Loves ",(s==null?void 0:s.name)||t.brand]}),e.jsxs("p",{className:"text-muted-foreground leading-relaxed",children:[t.city,", ",t.state," is gearing up for an incredible ",(s==null?void 0:s.name)||t.brand," experience",t.venue?` at ${t.venue}`:"","! Join thousands of participants on"," ",new Date(t.date).toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})," ","for the most fun 5K in town. Whether you're a seasoned runner or a first-timer, this event is designed for everyone."]})]}),e.jsx(ee,{sections:p?n.sections:[],brandColor:i,brand:t.brand,event:t}),(()=>{const r=p?n.sections:Ee(t.brand),x=te(r,t);return x.length>0?e.jsxs(e.Fragment,{children:[e.jsx(se,{sections:x,brandColor:i,brandSecondary:s==null?void 0:s.colors.secondary,brand:t.brand}),e.jsx(ae,{sections:x,brandColor:i})]}):null})(),e.jsx(He,{brandColor:i,brand:t.brand}),c.length>0&&e.jsx(oe,{images:c,brandColor:i}),e.jsx(de,{brand:t.brand,city:t.city,state:t.state}),e.jsx("div",{className:"flex justify-center",children:e.jsx(Ue,{brand:t.brand,city:t.city,state:t.state,eventId:t.id})}),!p&&s&&e.jsxs(v.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-3xl font-black tracking-tight mb-4",children:"What to Expect"}),e.jsx("ul",{className:"space-y-3",children:s.tips.map(r=>e.jsxs("li",{className:"flex items-center gap-3 text-muted-foreground",children:[e.jsx("span",{className:"h-2 w-2 rounded-full flex-shrink-0",style:{backgroundColor:i}}),r]},r))})]}),e.jsx("div",{className:"lg:hidden",children:e.jsx(R,{event:t,brand:s,content:n,brandColor:i})}),b.length>0&&e.jsxs(v.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsx("h2",{className:"text-2xl font-black tracking-tight mb-4",children:"Frequently Asked Questions"}),e.jsx("div",{className:"space-y-4",children:b.map((r,x)=>e.jsxs("details",{className:"group border rounded-lg p-4",children:[e.jsx("summary",{className:"font-semibold cursor-pointer text-foreground",children:r.question}),e.jsx("p",{className:"mt-2 text-muted-foreground text-sm leading-relaxed",children:r.answer})]},x))})]}),l&&l.length>0&&e.jsxs(v.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},children:[e.jsxs("h2",{className:"text-2xl font-black tracking-tight mb-4",children:["More ",(s==null?void 0:s.name)||t.brand," Events"]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:l.slice(0,4).map(r=>e.jsx(ie,{event:r},r.id))})]}),t.location_detail_url&&e.jsxs("a",{href:t.location_detail_url,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center text-sm text-muted-foreground
1/60 hover:text-muted-foreground transition-colors",children:["View original brand page ",e.jsx(Ne,{className:"ml-1.5 h-3.5 w-3.5"})]})]}),e.jsx("div",{className:"min-w-0 hidden lg:block",children:e.jsx(R,{event:t,brand:s,content:n,brandColor:i})})]})]})}),!y&&e.jsx(re,{event:t,brand:s,brandColor:i})]})}export{It 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.