PageSourceSearch

https://nightli.se/_next/static/chunks/app/%5Blocale%5D/(marketing)/explore/page-48bd42551ea3ba24.js

js nightli.se collected 2026-10-01 23:51:14 UTC 21,818 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5877],{1888:(e,s,t)=>{"use strict";t.d(s,{default:()=>m});var l=t(36950),r=t(78368),a=t(616),n=t.n(a),i=t(22804),o=t(59049),c=t(32142),d=t(44252);let u=t(4185).y.vipTable;function m(){let e=(0,d.U)().pages.explore;return(0,l.jsxs)("header",{className:"grid w-full items-center gap-8 lg:grid-cols-[minmax(0,1fr)_minmax(0,26rem)]",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,l.jsx)("span",{className:"eyebrow",children:e.eyebrow}),(0,l.jsx)("h1",{className:"heading-1",children:e.title}),(0,l.jsx)("p",{className:"text-foreground-100/70 max-w-2xl text-base sm:text-lg",children:e.description})]}),(0,l.jsxs)("div",{className:"flex w-full flex-row items-center gap-3",children:[(0,l.jsx)("div",{className:"w-full max-w-lg min-w-0 flex-1 lg:max-w-124 xl:max-w-136",children:(0,l.jsx)(c.A,{})}),(0,l.jsx)(i.T,{as:n(),href:"#cities",radius:"lg","aria-label":e.viewCities,className:"btn-chrome text-chrome-ink h-14 w-14 min-w-0 shrink-0 justify-center px-0 text-sm font-semibold sm:w-auto sm:px-5",endContent:(0,l.jsx)(o.A,{className:"size-5 sm:size-4","aria-hidden":"true"}),disableRipple:!0,children:(0,l.jsx)("span",{className:"hidden sm:inline",children:e.viewCities})})]})]}),(0,l.jsx)(r.default,{src:u,sizes:"(min-width: 1024px) 26rem, 100vw",alt:"",width:1536,height:1024,priority:!0,className:"hidden w-full lg:block"})]})}},16315:(e,s,t)=>{Promise.resolve().then(t.bind(t,98966)),Promise.resolve().then(t.bind(t,54760)),Promise.resolve().then(t.bind(t,1888)),Promise.resolve().then(t.bind(t,84917))},18892:(e,s,t)=>{"use strict";t.d(s,{K:()=>a,X:()=>n});var l=t(92332),r=t(42543);async function a(){return l.F.get("/public/cities/summary",{params:{limit:10}})}function n(){return(0,r.useSuspenseQuery)({queryKey:["cities-summary"],queryFn:a})}},20575:(e,s,t)=>{"use strict";t.d(s,{N:()=>n,u:()=>i});var l=t(20694),r=t(50461),a=t(48085);function n(){let e=(0,r.usePathname)();return(0,a.g6)(e)}function i(){let e=n();return(0,l.useCallback)(s=>(0,a.NL)(e,s),[e])}},23794:(e,s,t)=>{"use strict";t.d(s,{Uo:()=>n,Xn:()=>a,_O:()=>i,mN:()=>r,r6:()=>o});let l={us:"en-US",sv:"sv-SE",no:"nb-NO",da:"da-DK",es:"es-ES",fi:"fi-FI",fr:"fr-FR",pl:"pl-PL"},r=[{key:"us",label:"English",flag:"\uD83C\uDDFA\uD83C\uDDF8",code:"ENG",currency:"USD"},{key:"sv",label:"Svenska",flag:"\uD83C\uDDF8\uD83C\uDDEA",code:"SWE",currency:"SEK"},{key:"no",label:"Norsk",flag:"\uD83C\uDDF3\uD83C\uDDF4",code:"NOR",currency:"NOK"},{key:"da",label:"Dansk",flag:"\uD83C\uDDE9\uD83C\uDDF0",code:"DAN",currency:"DKK"},{key:"es",label:"Espa\xf1ol",flag:"\uD83C\uDDEA\uD83C\uDDF8",code:"ESP",currency:"EUR"},{key:"fr",label:"Fran\xe7ais",flag:"\uD83C\uDDEB\uD83C\uDDF7",code:"FRA",currency:"EUR"},{key:"fi",label:"Suomi",flag:"\uD83C\uDDEB\uD83C\uDDEE",code:"FIN",currency:"EUR"},{key:"pl",label:"Polski",flag:"\uD83C\uDDF5\uD83C\uDDF1",code:"POL",currency:"PLN"}],a="us",n={us:"en",sv:"sv",no:"no",da:"da",es:"es",fr:"fr",fi:"fi",pl:"pl"},i=Object.fromEntries(Object.entries(n).map(e=>{let[s,t]=e;return[t,s]}));function o(e){return l[e]}},29891:(e,s,t)=>{"use strict";t.d(s,{O8:()=>n,Xj:()=>a});var l=t(23794),r=t(48085);let a=[...new Set(Object.values(l.Uo))];function n(e){return(0,r.mj)(e)}},32142:(e,s,t)=>{"use strict";t.d(s,{A:()=>K});var l=t(36950),r=t(59547),a=t(20694),n=t(50461),i=t(69341),o=t(48507),c=t(22804),d=t(67516),u=t(90945),m=t(18243),x=t(10585),p=t(24750),h=t(67695),f=t(3983),g=t(21586),b=t(92332),y=t(87438),v=t(23794);let j={citySlug:null,days:[]};function w(e){return null!==e.citySlug||e.days.length>0||void 0!==e.isPackage}async function N(e,s,t){let l=e.trim();return b.F.get("/public/venues",{params:{q:l,isPackage:s.isPackage,cities:s.citySlug?[s.citySlug]:void 0,weekdays:s.days.length>0?s.days:void 0,limit:20,locale:(0,v.r6)(t)}})}var k=t(20575),S=t(79092),C=t(22493),E=t(21589),P=t(88251),z=t(74535),T=t(8056),O=t(18892);t(29891);let U={en:"en",sv:"sv",no:"nb",da:"da",es:"es",fr:"fr",fi:"fi",pl:"pl"};v.Uo[v.Xn];var A=t(44252);
1let R=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],D=Date.UTC(2024,0,1);function F(e){return(0,z.cn)("h-8 min-w-0 border px-3 text-xs transition-colors data-[focus-visible=true]:outline-2 data-[focus-visible=true]:outline-offset-2 data-[focus-visible=true]:outline-ice-500",e?"border-ice-500 bg-ice-500 text-chrome-ink font-semibold":"border-line-500 bg-background-950 text-muted-500 font-medium data-[hover=true]:text-foreground-100")}function q(e){let{label:s,children:t}=e;return(0,l.jsxs)("fieldset",{className:"min-w-0 border-0 p-0",children:[(0,l.jsx)("legend",{className:"eyebrow p-0",children:s}),(0,l.jsx)("div",{className:"mt-2 flex flex-wrap gap-2",children:t})]})}function L(e){var s;let{filters:t,onChange:r,onDone:n}=e,i=(0,A.U)().pages.search,o=(0,k.N)(),[d,u]=(0,a.useState)(!1),{data:m}=(0,f.useQuery)({queryKey:["cities-summary"],queryFn:O.K,staleTime:6e5}),x=function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"short",t=new Intl.DateTimeFormat(e,{weekday:s,timeZone:"UTC"}),l={};return R.forEach((e,s)=>{l[e]=t.format(new Date(D+864e5*s))}),l}(null!=(s=U[o])?s:o),p=w(t),h=+!!t.citySlug+t.days.length,g=e=>r({...t,citySlug:e});return(0,l.jsxs)(C.y,{isOpen:d,onOpenChange:u,placement:"bottom-end",offset:10,classNames:{content:"bg-background-800 w-[min(22rem,calc(100vw-2rem))] border border-white/10 p-4 shadow-2xl shadow-black/50"},children:[(0,l.jsx)(E.T,{children:(0,l.jsxs)(c.T,{isIconOnly:!0,"aria-label":i.filters,radius:"lg",variant:"light",disableRipple:!0,className:(0,z.cn)("relative size-10 min-w-0 overflow-visible text-white/70 hover:text-white data-[hover=true]:bg-white/8",p&&"text-white"),children:[(0,l.jsx)(T.A,{className:"size-5","aria-hidden":"true"}),h>0?(0,l.jsx)("span",{"aria-hidden":"true",className:"bg-danger-500 absolute -top-1 -right-1 flex size-4 items-center justify-center rounded-full text-[10px] leading-none font-bold text-white",children:h}):null]})}),(0,l.jsx)(P.C,{children:(0,l.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,l.jsxs)(q,{label:i.city,children:[(0,l.jsx)(c.T,{type:"button","aria-pressed":null===t.citySlug,onPress:()=>g(null),variant:"flat",color:"default",radius:"full",size:"sm",disableRipple:!0,className:F(null===t.citySlug),children:i.allCities},"all"),(null!=m?m:[]).map(e=>{let s=t.citySlug===e.place.slug;return(0,l.jsx)(c.T,{type:"button","aria-pressed":s,onPress:()=>g(s?null:e.place.slug),variant:"flat",color:"default",radius:"full",size:"sm",disableRipple:!0,className:F(s),children:e.place.name},e.place.slug)})]}),(0,l.jsx)(q,{label:i.openDays,children:R.map(e=>{let s=t.days.includes(e);return(0,l.jsx)(c.T,{type:"button","aria-pressed":s,onPress:()=>r({...t,days:t.days.includes(e)?t.days.filter(s=>s!==e):[...t.days,e]}),variant:"flat",color:"default",radius:"full",size:"sm",disableRipple:!0,className:F(s),children:x[e]},e)})}),(0,l.jsxs)("div",{className:"flex items-center justify-between gap-3 pt-1",children:[(0,l.jsx)(c.T,{variant:"light",radius:"lg",size:"sm",isDisabled:!p,disableRipple:!0,className:"text-white/70 hover:text-white",onPress:()=>r(j),children:i.clear}),(0,l.jsx)(c.T,{radius:"lg",size:"sm",disableRipple:!0,className:"btn-chrome text-chrome-ink px-5 font-semibold",onPress:()=>{u(!1),null==n||n()},children:i.done})]})]})})]})}var I=t(39280);function K(){let[e,s]=(0,a.useState)(""),[t,b]=(0,a.useState)(j),v=(0,a.useRef)(null),C=(0,a.useDeferredValue)(e),E=(0,n.useRouter)(),P=(0,k.u)(),{pages:z}=(0,A.U)(),T=z.venueDetails.closedStatus,O=z.search,{data:U,isPending:R,isPlaceholderData:D}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j,t=(0,y.z)(),l=e.trim(),r
1=[...s.days].sort();return(0,f.useQuery)({queryKey:["venues",l,s.citySlug,r,t,s.isPackage],queryFn:()=>N(l,{...s,days:r},t),enabled:l.length>0||w(s),staleTime:3e5,placeholderData:g.rX})}(C,t),F=w(t),q=e.length>0||F,K=q&&(R||D);return(0,l.jsxs)("div",{ref:v,className:"relative w-full min-w-0",children:[(0,l.jsx)(i.H,{"aria-label":"Search for clubs by name, location, or music style",inputValue:e,items:D?[]:null!=U?U:[],isLoading:K,onInputChange:s,onSelectionChange:e=>{if(!e)return;let t=String(e);if("user-location"===t){s(""),E.push(P("/explore?preset=nearby"));return}s(""),E.push(P("/clubs/".concat(t)))},placeholder:O.placeholder,startContent:(0,l.jsx)(x.A,{"aria-hidden":"true",className:"text-foreground-100/50 size-5"}),selectorIcon:null,shouldCloseOnBlur:!1,variant:"flat",radius:"lg",popoverProps:{shouldCloseOnScroll:!1,shouldBlockScroll:!0,isDismissable:!e,placement:"bottom",shouldFlip:!1},classNames:{base:"w-full min-w-0 max-w-full",popoverContent:"bg-background-800"},inputProps:{classNames:{input:"ml-1 text-base text-white placeholder:text-white/46",inputWrapper:["h-14 border-1 border-white/12 bg-[#20283a]/92 px-4 shadow-none hover:border-white/24","dark:hover:bg-background-800","group-data-[focus=true]:bg-background-800","w-full min-w-0 pr-14"]}},inputMode:"search",listboxProps:{hideSelectedIcon:!0,emptyContent:K?(0,l.jsx)(m.o,{color:"white",size:"sm"}):(0,l.jsx)(S.A,{}),itemClasses:{title:"text-base"}},children:q?e=>(0,l.jsx)(o.y,{className:"w-full p-2",textValue:e.name,children:(0,l.jsx)("div",{className:"flex w-full flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:(0,l.jsxs)("div",{className:"flex min-w-0 flex-1 flex-row items-start gap-4 sm:items-center",children:[(0,l.jsx)(u.W,{src:(0,r.w)(e.profileImage,{width:96}),width:48,height:48,alt:e.name+" image",radius:"md",classNames:{wrapper:"size-12 shrink-0 overflow-hidden rounded-md sm:h-10 sm:w-10",img:"size-full object-cover"}}),(0,l.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,l.jsxs)("div",{className:"flex min-w-0 flex-row items-center justify-between gap-1",children:[(0,l.jsx)("span",{className:"truncate text-base font-medium text-white sm:text-base",children:e.name}),(0,l.jsxs)("div",{className:"flex shrink-0 flex-row items-center justify-end gap-2",children:[(0,l.jsxs)("span",{className:"text-primary-500 text-xs sm:text-sm",children:[e.ageLimit,"+"]}),e.partner?(0,l.jsx)(d.R,{radius:"sm",size:"sm",startContent:(0,l.jsx)(I.PartnerCheckMarkIcon,{className:"size-3.5"}),className:"gap-1 bg-gray-700 px-2 text-[11px] sm:text-xs",classNames:{content:"font-medium"},children:"Partner"}):null,"display_only"===e.status?(0,l.jsx)(d.R,{radius:"sm",size:"sm",startContent:(0,l.jsx)(p.A,{className:"size-3.5","aria-hidden":"true"}),className:"bg-danger-500/10 text-danger-400 gap-1 px-2 text-[11px] sm:text-xs",classNames:{content:"font-medium"},children:T}):null]})]}),(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)("span",{className:"text-foreground-100/70 truncate text-xs sm:text-sm",children:e.city}),(0,l.jsx)("span",{className:"text-foreground-100/40 line-clamp-1 text-xs sm:line-clamp-1",children:e.description})]})]})]})})},e.slug):(0,l.jsx)(o.y,{textValue:O.nearby,children:(0,l.jsx)(c.T,{fullWidth:!0,disableRipple:!0,variant:"solid",className:"flex justify-start gap-6 bg-transparent px-1 py-4 text-base text-white",startContent:(0,l.jsx)("div",{className:"flex justify-center rounded-sm border-1 p-2 dark:border-gray-500",children:(0,l.jsx)(h.A,{color:"gray",fill:"transparent",size:18})}),onPress:()=>{s(""),E.push(P("/explore?preset=nearby"))},children:O.nearby})},"user-location")}),(0,l.jsx)("div",{className:"absolute top-1/2 right-2 z-10 -translate-y-1/2",children:(0,l.jsx)(L,{filters:t,onChange:b,onDone:()=>{var e,s;w(t)&&(null==(s=v.current)||null==(e=s.querySelector("input"))||e.focus())}})})]})}},48085:(e,s,t)=>{"use strict";t.d(s,{Ee:()=>o,NL:()=>i,g6:()=>n,gB:()=>r,mj:()=>c});
1var l=t(23794);let r="blog-locale",a=new Set(Object.values(l.Uo));function n(e){let s=e.split("/").filter(Boolean)[0];return s&&a.has(s)?s:l.Uo[l.Xn]}function i(e,s){let t=s.indexOf("?"),l=-1===t?s:s.slice(0,t),r=-1===t?"":s.slice(t),a="/"===l||""===l?"":l.startsWith("/")?l:"/".concat(l);return""===a?"/".concat(e).concat(r):"/".concat(e).concat(a).concat(r)}function o(e,s){let t=l.Uo[s],r=e.split("/").filter(Boolean),a=Object.values(l.Uo);return r.length>0&&a.includes(r[0])?r[0]=t:r.unshift(t),"/".concat(r.join("/"))}function c(e){var s;return null!=(s=l._O[e])?s:l.Xn}},54760:(e,s,t)=>{"use strict";t.d(s,{default:()=>g});var l=t(36950),r=t(20694),a=t(18892),n=t(96060),i=t(53923),o=t(74535),c=t(616),d=t.n(c),u=t(44252),m=t(20575);function x(e){let{city:s}=e,t=(0,u.U)().pages.explore,r=(0,m.u)(),a=1===s.clubCount?t.club:t.clubs;return(0,l.jsx)(n.Z,{as:d(),href:r("/cities/".concat(s.place.slug)),radius:"lg",className:(0,o.cn)("bg-background-900/50 border-primary-500/20 relative border backdrop-blur-lg transition-[background-color,border-color,transform] duration-200","hover:bg-background-900/60 hover:-translate-y-1 hover:border-white/2"),children:(0,l.jsxs)(i.U,{className:"relative flex flex-col justify-between gap-2 p-6 text-left",children:[(0,l.jsx)("h3",{className:"text-xl leading-tight font-semibold text-white",children:s.place.name}),(0,l.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,l.jsx)("span",{className:"text-foreground-100/60 text-4xl font-semibold",children:s.clubCount}),(0,l.jsx)("span",{className:"text-foreground-100/60 text-xs font-semibold tracking-[0.35em] uppercase",children:a})]})]})})}var p=t(97319),h=t(42260);let f=Array.from({length:4},(e,s)=>s);function g(){let e=(0,u.U)().pages.explore.citiesSection;return(0,l.jsx)("section",{id:"cities",className:"relative isolate scroll-mt-28",children:(0,l.jsxs)("div",{className:"mx-auto flex w-full max-w-6xl flex-col gap-8",children:[(0,l.jsxs)("header",{className:"flex flex-col gap-4",children:[(0,l.jsx)("span",{className:"eyebrow",children:e.eyebrow}),(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsx)("h2",{className:"heading-2",children:e.title}),(0,l.jsx)("p",{className:"text-foreground-100/70 max-w-2xl text-base",children:e.description})]})]}),(0,l.jsx)(h.tH,{fallback:(0,l.jsx)(y,{}),children:(0,l.jsx)(r.Suspense,{fallback:(0,l.jsx)(v,{}),children:(0,l.jsx)(b,{})})})]})})}function b(){let{data:e}=(0,a.X)();return e&&0!==e.length?(0,l.jsx)("div",{className:"grid grid-cols-2 gap-4 xl:grid-cols-3",children:e.map(e=>(0,l.jsx)(x,{city:e},e.place.slug))}):(0,l.jsx)(y,{})}function y(){return(0,l.jsx)("div",{className:"bg-background-800/40 rounded-3xl border border-white/10 p-12 text-center shadow-inner shadow-black/20 backdrop-blur",children:(0,l.jsx)("p",{className:"text-foreground-100/70 text-base",children:"We're mapping out more cities right now. Check back soon."})})}function v(){return(0,l.jsx)("div",{className:"grid grid-cols-2 gap-4 xl:grid-cols-3",children:f.map(e=>(0,l.jsx)(n.Z,{radius:"lg",className:"bg-background-900/50 border-primary-500/20 border backdrop-blur-lg",children:(0,l.jsxs)(i.U,{className:"flex flex-col justify-between gap-2 p-6",children:[(0,l.jsx)(p.m,{className:"h-6 w-28 rounded-md"}),(0,l.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,l.jsx)(p.m,{className:"h-10 w-12 rounded-md"}),(0,l.jsx)(p.m,{className:"h-3 w-14 rounded-md"})]})]})},e))})}},79092:(e,s,t)=>{"use strict";t.d(s,{A:()=>r});var l=t(36950);function r(){return(0,l.jsx)("div",{className:"text-foreground-100 flex items-center gap-6",children:"No results found"})}},84917:(e,s,t)=>{"use strict";t.d(s,{ExploreNearbySection:()=>k});
1var l=t(36950),r=t(20694),a=t(50461),n=t(88462),i=t(7623),o=t.n(i),c=t(20567),d=t.n(c),u=t(93674),m=t.n(u),x=t(67695);function p(){return(0,l.jsxs)("div",{className:"bg-background-800/40 flex w-full max-w-xl flex-col items-center gap-4 rounded-3xl border border-white/10 px-6 py-10 text-center shadow-inner shadow-black/20 backdrop-blur sm:p-12",children:[(0,l.jsx)("span",{className:"bg-primary-500/10 text-primary-300 rounded-full p-3",children:(0,l.jsx)(x.A,{className:"size-6","aria-hidden":"true"})}),(0,l.jsxs)("div",{className:"flex max-w-md flex-col gap-2",children:[(0,l.jsx)("p",{className:"text-lg font-semibold text-white",children:"No nearby clubs to show right now"}),(0,l.jsx)("p",{className:"text-foreground-100/70 text-sm leading-relaxed",children:"We're refreshing the lineup. Check back soon or explore our featured collections while we get these venues ready."})]})]})}var h=t(98966);let f=Array.from({length:4},(e,s)=>s);function g(){return(0,l.jsx)("div",{className:"grid gap-4 lg:grid-cols-2",children:f.map(e=>(0,l.jsx)(h.LoadingClubCardHorizontal,{},e))})}var b=t(92332),y=t(3983),v=t(87438),j=t(23794);let w={enableHighAccuracy:!1,maximumAge:3e5,timeout:1e4};var N=t(44252);function k(){return(0,l.jsx)(r.Suspense,{fallback:(0,l.jsx)(g,{}),children:(0,l.jsx)(S,{})})}function S(){let e=(0,N.U)().pages.explore.nearbySection,s=(0,a.useSearchParams)().get("preset"),{position:t,status:i,isRequesting:c}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{autoRequest:s=!0,positionOptions:t}=e,l=function(e){let s=!!navigator.geolocation,[t,l]=(0,r.useState)(()=>s?"prompt":"unsupported"),[a,n]=(0,r.useState)(null),[i,o]=(0,r.useState)(null),[c,d]=(0,r.useState)(!1),u=(0,r.useMemo)(()=>({...w,...e}),[e]),m=(0,r.useRef)(u);(0,r.useEffect)(()=>{m.current=u},[u]),(0,r.useEffect)(()=>{var e;if(!s||!(null==(e=navigator.permissions)?void 0:e.query))return;let t=!0,r=null,a=()=>{r&&t&&l(r.state)};return navigator.permissions.query({name:"geolocation"}).then(e=>{t&&(r=e,l(e.state),"function"==typeof e.addEventListener?e.addEventListener("change",a):e.onchange=a
1)}).catch(()=>{t&&l("prompt")}),()=>{t=!1,r&&("function"==typeof r.removeEventListener?r.removeEventListener("change",a):r.onchange=null)}},[s]);let x=(0,r.useCallback)(()=>s&&navigator.geolocation?(d(!0),o(null),new Promise(e=>{navigator.geolocation.getCurrentPosition(s=>{n(s),l("granted"),d(!1),e("granted")},s=>{if(o(s),d(!1),s.code===s.PERMISSION_DENIED){l("denied"),e("denied");return}l("unsupported"),e("unsupported")},m.current)})):(l("unsupported"),Promise.resolve("unsupported")),[s]);return{status:s?t:"unsupported",position:a,error:i,isRequesting:c,requestPermission:x}}(t),{status:a,position:n,isRequesting:i,requestPermission:o}=l;return(0,r.useEffect)(()=>{s&&"denied"!==a&&"unsupported"!==a&&!i&&("granted"===a&&n||o())},[s,i,n,o,a]),l}(),d=t?{latitude:t.coords.latitude,longitude:t.coords.longitude}:null,u="prompt"===i,{data:m,isPending:x,isError:f}=function(e){var s,t,l;let{params:r,enabled:a}=e,n=(0,v.z)(),i=null!=(s=null==r?void 0:r.coordinates)?s:null,o=!!i;return(0,y.useQuery)({queryKey:["nearby-clubs",null!=(t=null==i?void 0:i.latitude)?t:null,null!=(l=null==i?void 0:i.longitude)?l:null,"Europe/Stockholm",n],queryFn:()=>{var e,s={coordinates:o?i:void 0,timeZone:null!=(e=null==r?void 0:r.timeZone)?e:"Europe/Stockholm",locale:n};let t=s.locale?(0,j.r6)(s.locale):void 0,l={limit:4,...t?{locale:t}:{}};return s.coordinates&&(l.lat=s.coordinates.latitude,l.long=s.coordinates.longitude),s.timeZone&&(l.tz=s.timeZone),b.F.get("/public/venues",{params:l})},enabled:a,staleTime:3e5})}({params:{coordinates:d,timeZone:o().tz.guess()},enabled:!c&&!u}),k=null!=m?m:[],S=k.length>0;return(0,l.jsx)("section",{className:"relative isolate overflow-hidden",children:(0,l.jsxs)("div",{className:"mx-auto flex w-full max-w-6xl flex-col gap-8",children:[(0,l.jsxs)("header",{className:"flex flex-col gap-4",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-3",children:[(0,l.jsx)("span",{className:"eyebrow",children:e.eyebrow}),"nearby"===s?(0,l.jsxs)("span",{className:"text-primary-300 bg-primary-500/10 inline-flex items-center gap-1 rounded-full px-3 py-1 text-xs font-semibold",children:[(0,l.jsx)(n.A,{className:"size-3.5","aria-hidden":"true"}),e.smartPreset]}):null]}),(0,l.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,l.jsx)("h2",{className:"heading-2",children:e.title}),(0,l.jsx)("p",{className:"text-foreground-100/70 max-w-2xl text-sm sm:text-base",children:e.description})]})]}),x||c||u?(0,l.jsx)(g,{}):!S||f?(0,l.jsx)(p,{}):(0,l.jsx)("div",{className:"grid gap-4 lg:grid-cols-2",children:k.map(e=>(0,l.jsx)(h.r,{club:e},e.id))})]})})}o().extend(m()),o().extend(d())},87438:(e,s,t)=>{"use strict";t.d(s,{z:()=>a});var l=t(29891),r=t(20575);function a(){let e=(0,r.N)();return(0,l.O8)(e)}},92332:(e,s,t)=>{"use strict";function l(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}async function r(e){try{var s;let t=await e.json();if(!l(t)||(s=t.error,!(l(s)&&"number"==typeof s.statusCode&&Number.isInteger(s.statusCode))||"string"!=typeof s.name||"string"!=typeof s.message))return;return t.error}catch(e){return}}t.d(s,{F:()=>i,h:()=>a});class a extends Error{constructor(e,s,t){super(s),this.name="ApiError",this.status=e,this.details=t}}async function n(e,s){let t=function(e,s){if(!s)return e;let t=new URLSearchParams;for(let[e,l]of Object.entries(s))if(null!=l)for(let s of Array.isArray(l)?l:[l])t.append(e,String(s));let l=t.toString();return l?"".concat(e,"?").concat(l):e}("".concat("https://nightli-prod-server.link").concat(e),s.params),l=new Headers(s.headers);s.body&&!l.has("Content-Type")&&l.set("Content-Type","application/json"),l.set("api-target","rest");let n={...s,headers:l},i=await fetch(t,n);if(!i.ok){var o;let e=await r(i),s=null!=(o=null==e?void 0:e.message)?o:"Request failed with status: ".concat(String(i.status));throw new a(i.status,s,e)}return i.json()}let i={get:(e,s)=>n(e,{...s,method:"GET"}),post:(e,s,t)=>n(e,{...t,method:"POST",body:s}),put:(e,s,t)=>n(e,{...t,method:"PUT",body:s}),patch:(e,s,t)=>n(e,{...t,method:"PATCH",body:s}),delete:(e,s)=>n(e,{...s,method:"DELETE"})}}},e=>{e.O(0,[616,5793,9235,3725,4546,3376,3983,1977,6612,942,8945,9747,3592,2134,3238,5813,2296,61
173,9740,3026,7358],()=>e(e.s=16315)),_N_E=e.O()}]);

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.