PageSourceSearch

https://nightout.com/assets/EventsThisWeekCarousel-COv_kjH8.js

js nightout.com collected 2026-09-24 19:23:07 UTC 3,993 bytes, 1 lines download raw bytes

1import{a as e,t}from"./jsx-runtime-B7NcOfaX.js";import{t as n}from"./router-compat-oy8vyOyq.js";import{a as r}from"./useEvents-ByLafF0T.js";import{a as i,i as a,n as o,r as s,t as c}from"./carousel-8XdbDZnk.js";import{t as l}from"./calendar-days-BK14rhq7.js";import{n as u,t as d}from"./date-Ciu4KpFa.js";import{t as f}from"./eventUrl-DgKu69V0.js";import{r as p}from"./CityScopeContext-Bf4EEfvN.js";import{t as m}from"./format-Ilt5-1Z9.js";import{i as h,r as g}from"./defaultImages-D1tcuUPj.js";import{t as _}from"./skeleton-B-9es_Ue.js";import{n as v,t as y}from"./card-Dep9rv_V.js";import{t as b}from"./badge-B4dsozLc.js";import{t as x}from"./carouselAutoplay-DC3ceSpU.js";import{t as S}from"./EventMosaic-CoRZLpHL.js";import{n as C,r as w}from"./TrendingEventsCarousel-DZm5MMep.js";import{t as T}from"./imageFallback-BVhdUqBC.js";var E=e({EventsThisWeekCarousel:()=>O}),D=t(),O=({displayType:e=`carousel`,gridCount:t=12})=>{h();let{events:E,isLoading:O}=r(),k=E.filter(e=>!d(e)),A=p(`Events Happening This Week`);return O?(0,D.jsx)(`section`,{className:`py-8`,children:(0,D.jsxs)(`div`,{className:`container`,children:[(0,D.jsxs)(`div`,{className:`flex items-center gap-2 mb-8`,children:[(0,D.jsx)(l,{className:`h-8 w-8 text-primary`}),(0,D.jsx)(`h2`,{className:`text-3xl font-bold text-foreground`,children:A})]}),(0,D.jsx)(`div`,{className:`grid md:grid-cols-2 lg:grid-cols-4 gap-6`,children:[1,2,3,4].map(e=>(0,D.jsxs)(y,{children:[(0,D.jsx)(_,{className:`aspect-[4/3] w-full rounded-t-lg`}),(0,D.jsxs)(v,{className:`p-4`,children:[(0,D.jsx)(_,{className:`h-6 w-3/4 mb-2`}),(0,D.jsx)(_,{className:`h-4 w-1/2`})]})]},e))})]})}):k.length===0?null:e===`grid`?(0,D.jsx)(`section`,{className:`py-8`,children:(0,D.jsxs)(`div`,{className:`container`,children:[(0,D.jsxs)(`div`,{className:`flex items-center gap-2 mb-8`,children:[(0,D.jsx)(l,{className:`h-8 w-8 text-primary`}),(0,D.jsx)(`h2`,{className:`text-3xl font-bold text-foreground`,children:A})]}),(0,D.jsx)(w,{events:k.slice(0,t)})]})}):e===`mosaic`?(0,D.jsx)(`section`,{className:`py-8`,children:(0,D.jsxs)(`div`,{className:`container`,children:[(0,D.jsxs)(`div`,{className:`flex items-center gap-2 mb-8`,children:[(0,D.jsx)(l,{className:`h-8 w-8 text-primary`}),(0,D.jsx)(`h2`,{className:`text-3xl font-bold text-foreground`,children:A})]}),(0,D.jsx)(S,{events:k.slice(0,t)})]})}):(0,D.jsx)(`section`,{className:`py-8`,children:(0,D.jsxs)(`div`,{className:`container`,children:[(0,D.jsxs)(`div`,{className:`flex items-center gap-2 mb-8`,children:[(0,D.jsx)(l,{className:`h-8 w-8 text-primary`}),(0,D.jsx)(`h2`,{className:`text-3xl font-bold text-foreground`,children:A})]}),(0,D.jsxs)(c,{opts:{align:`start`,loop:!0},plugins:[x({delay:5500,stopOnInteraction:!0})],className:`w-full`,children:[(0,D.jsxs)(o,{children:[k.slice(0,t).map(e=>(0,D.jsx)(s,{className:`md:basis-1/2 lg:basis-1/4`,children:(0,D.jsx)(n,{to:f(e),children:(0,D.jsxs)(y,{className:`overflow-hidden hover:shadow-lg transition-all duration-300 h-full group`,children:[(0,D.jsxs)(`div`,{className:`relative aspect-[4/3] overflow-hidden`,children:[(0,D.jsx)(`img`,{src:g(e),alt:e.title,className:`w-full h-full object-cover object-top transition-transform duration-300 group-hover:scale-110`,onError:T}),(0,D.jsx)(b,{className:`absolute top-3 right-3`,variant:`secondary`,children:e.category})]}),(0,D.jsxs)(v,{className:`p-4`,children:[(0,D.jsx)(`h3`,{className:`font-bold text-xl mb-4 line-clamp-2`,children:e.title}),(0,D.jsxs)(`div`,{className:`space-y-1.5`,children:[(0,D.jsxs)(`p`,{className:`text-base font-medium`,children:[m(u(e.date),`EEEE, MMM d, yyyy`),e.time&&` at ${e.time}`]}),(e.venue||e.location)&&(0,D.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[e.venue,e.venue&&e.location&&`, `,e.location]})]})]})]})})},e.id)),(0,D.jsx)(C,{})]}),(0,D.jsxs)(`div`,{className:`flex gap-2 justify-end mt-4`,children:[(0,D.jsx)(i,{className:`static translate-y-0`}),(0,D.jsx)(a,{className:`static translate-y-0`})]})]})]})})};export{E as n,O as t};

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.