PageSourceSearch

https://gojammin.com/_next/static/chunks/app/(home)/map/page-820e0d644be42cb0.js

js gojammin.com collected 2026-10-06 13:19:19 UTC 44,936 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="15e58111-371d-48e1-929d-1dbce289f9b4",e._sentryDebugIdIdentifier="sentry-dbid-15e58111-371d-48e1-929d-1dbce289f9b4")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2676],{3688:(e,t,r)=>{"use strict";r.d(t,{C:()=>f});var n=r(95155),o=r(19749),l=r(86156),a=r(65425),s=r(17610),i=r(41197),c=r(64827),u=r(73062),d=r(19414);let m={type:"spring",stiffness:400,damping:17},f=e=>{let t,r,f,g,p,h,v,y,b,x=(0,o.c)(31),{eventId:w,className:k}=e,{requireAuth:E}=(0,i.useAuthGate)(),P=(0,a.I)(),{data:S,isLoading:j}=(0,u.y)(),{toggleSavedEvent:L,isPending:C}=(0,d.h)();if(x[0]!==w||x[1]!==S){var z;t=null!=(z=null==S?void 0:S.includes(w))&&z,x[0]=w,x[1]=S,x[2]=t}else t=x[2];let A=t,_=j||C;x[3]!==w||x[4]!==E||x[5]!==L?(r=e=>{e.preventDefault(),E(()=>L(w))},x[3]=w,x[4]=E,x[5]=L,x[6]=r):r=x[6];let N=r,M=A?"Remove event from saved":"Save event",I=A?"border-primary bg-primary":"border-transparent";x[7]!==k||x[8]!==I?(f=(0,c.cn)("group relative flex size-11 shrink-0 rounded-full bg-background-light hover:border hover:border-primary hover:bg-primary/50 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:outline-none tablet:size-[30px]",I,k),x[7]=k,x[8]=I,x[9]=f):f=x[9],x[10]!==P?(g=P?void 0:{scale:.85},x[10]=P,x[11]=g):g=x[11],x[12]!==A||x[13]!==P?(p=P?void 0:{scale:A?[1,1.25,1]:1},x[12]=A,x[13]=P,x[14]=p):p=x[14],x[15]!==A||x[16]!==P?(h=P?{duration:0}:A?{type:"tween",duration:.3,ease:"easeOut"}:m,x[15]=A,x[16]=P,x[17]=h):h=x[17];let T=A?"fill-white text-white":"fill-none";return x[18]!==T?(v=(0,c.cn)("absolute top-1/2 left-1/2 size-4 -translate-x-1/2 -translate-y-1/2 text-foreground-secondary transition-colors duration-200 group-hover:text-white",T),x[18]=T,x[19]=v):v=x[19],x[20]!==v?(y=(0,n.jsx)(l.A,{stroke:1.5,className:v}),x[20]=v,x[21]=y):y=x[21],x[22]!==N||x[23]!==_||x[24]!==y||x[25]!==M||x[26]!==f||x[27]!==g||x[28]!==p||x[29]!==h?(b=(0,n.jsx)(s.P.button,{"aria-label":M,className:f,onClick:N,disabled:_,whileTap:g,animate:p,transition:h,children:y}),x[22]=N,x[23]=_,x[24]=y,x[25]=M,x[26]=f,x[27]=g,x[28]=p,x[29]=h,x[30]=b):b=x[30],b}},10328:()=>{},10453:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(21760).A)("outline","loader-2","Loader2",[["path",{d:"M12 3a9 9 0 1 0 9 9",key:"svg-0"}]])},10609:(e,t,r)=>{"use strict";r.d(t,{l:()=>n});let n=["user","all-saved-events"]},19414:(e,t,r)=>{"use strict";r.d(t,{h:()=>u});var n=r(19749),o=r(46278),l=r(58242),a=r(94913),s=r(17392),i=r(50980),c=r(10609);let u=()=>{let e,t,r,a=(0,n.c)(7),u=(0,o.useQueryClient)();a[0]!==u?(e={mutationFn:d,onMutate:async e=>{await u.cancelQueries({queryKey:c.l});let t=u.getQueryData(c.l);return u.setQueryData(c.l,t=>t?t.includes(e)?t.filter(t=>t!==e):[e,...t]:[e]),{previousSavedEvents:t}},onError:(e,t,r)=>{(null==r?void 0:r.previousSavedEvents)!==void 0&&u.setQueryData(c.l,r.previousSavedEvents),(0,s.toast)({variant:"error",description:i.Rve()})},onSettled:()=>{u.invalidateQueries({queryKey:c.l})}},a[0]=u,a[1]=e):e=a[1];let m=(0,l.useMutation)(e);return a[2]!==m?(t=e=>m.mutate(e),a[2]=m,a[3]=t):t=a[3],a[4]!==m.isPending||a[5]!==t?(r={toggleSavedEvent:t,isPending:m.isPending},a[4]=m.isPending,a[5]=t,a[6]=r):r=a[6],r};function d(e){return a.J.user.addSavedEvent(e)}},36446:(e,t,r)=>{"use strict";r.d(t,{EventsMap:()=>ey});var n=r(95155),o=r(12115),l=r(35089),a=r(43234),s=r(21760);let i=(0,s.A)("outline","minus","Minus",[["path",{d:"M5 12l14 0",key:"svg-0"}]]),c=(0,s.A)("outline","navigation","Navigation",[["path",{d:"M12 18.5l7.265 2.463c.196 .077 .42 .032 .57 -.116a.548 .548 0 0 0 .134 -.572l-7.969 -17.275l-7.97 17.275c-.07 .2 -.017 .424 .135 .572c.15 .148 .374 .193 .57 .116l7.265 -2.463",key:"svg-0"}]]);var u=r(10453),d=r(52298),m=r.n(d),f=r(17392),g=r(50980),p=r(55046),h=r(96936),v=r(64827);let y={src:"/_next/static/media/woman-has-no-clue.9c81212e.png",height:865,width:1e3,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAMAAAACh/xsAAAAXVBMVEVMaXH/s74fICIqKSYcGhhXdMd7T0EeMzUcHyLCc1seHyDqi3ZUcsWzbFciIyNWds9ncZJZdMREVXcMGRlhaoYTGyKZXk0WGh7XfmVgQTjnlZZYdcphgN6Ilbw1MiwYXUzPAAAAG3RSTlMADen4ru1oDHxW+ymsfcqBYzkeFPJC2ONvo8v+9ufLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAPElEQVR4nBXBBxKAIAwAwSMCodgFu/7/mY67APk0QDT4teadzoeUtiOivcjbyALBjk+xgDLcbubXXm7iA0AJAhM2ejbzAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:7};var b=r(10194),x=r(19749),w=r(73329),k=r.n(w);let E=(0,s.A)("outline","route","Route",[["path",{d:"M3 19a2 2 0 1 0 4 0a2 2 0 0 0 -4 0",key:"svg-0"}],["path",{d:"M19 7a2 2 0 1 0 0 -4a2 2 0 0 0 0 4",key:"svg-1"}],["path",{d:"M11 19h5.5a3.5 3.5 0 0 0 0 -7h-8a3.5 3.5 0 0 1 0 -7h4.5",key:"svg-2"}]]);var P=r(71004),S=r(55072),j=r(96661),L=r(98899),C=r(53227),z=r(73199),A=r(3688),_=r(73347),N=r(64251),M=r
1(7473),I=r(52226),T=r(28849),R=r(73773),D=r(45863),F=r(82506),B=r(75001),O=r(45591);let q=(0,F.v)(e=>({eventIds:[],setEventIds:t=>e({eventIds:t})})),V=e=>{let t,r,o,l=(0,x.c)(6),{lat:a,lng:s}=e;l[0]!==a||l[1]!==s?(t=()=>{window.open("https://www.google.com/maps/dir/?api=1&destination=".concat(a,",").concat(s),"_blank","noopener,noreferrer")},l[0]=a,l[1]=s,l[2]=t):t=l[2];let i=t;return l[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,n.jsx)(E,{className:"size-4 text-foreground-secondary"}),l[3]=r):r=l[3],l[4]!==i?(o=(0,n.jsx)("button",{type:"button","aria-label":"Navigate",onClick:i,className:"flex size-8 items-center justify-center rounded-full bg-background-light transition-all duration-300 hover:border hover:border-primary hover:bg-primary/50",children:r}),l[4]=i,l[5]=o):o=l[5],o},X=e=>{var t,r,o,a,s,i,c,u,d;let m,f,g,p,h,v,y,b,w,E,P,S=(0,x.c)(31),{event:L,filterRange:C,onClick:z}=e,_=null==(r=L.images)||null==(t=r[0])?void 0:t.url,M=null!=(c=null==(o=L.translation)?void 0:o.title)?c:"",T=null!=(u=null==(a=L.translation)?void 0:a.short_description)?u:"";if(S[0]!==L.dates||S[1]!==C){let e=(0,N.W4)(null!=(d=L.dates)?d:[],C);m=e?function(e,t){let r=(0,j.H)(e),n=(0,j.H)(t),o=new Intl.DateTimeFormat((0,I.xw)(),{hour:"2-digit",minute:"2-digit",hour12:!1}),l=o.format(r),a=o.format(n);return"00:00"===l&&"00:00"===a?"":l===a?l:"".concat(l," - ").concat(a)}(e.start_date,e.end_date):null,S[0]=L.dates,S[1]=C,S[2]=m}else m=S[2];let R=m,D=null==(s=L.location)?void 0:s.latitude,F=null==(i=L.location)?void 0:i.longitude,B="/events/".concat(L.id);return S[3]!==_?(f=_?(0,n.jsx)(l.default,{src:_,alt:"",width:64,height:64,className:"size-16 shrink-0 rounded-lg bg-foreground
1/5 object-cover"}):(0,n.jsx)("div",{className:"size-16 shrink-0 rounded-lg bg-muted"}),S[3]=_,S[4]=f):f=S[4],S[5]!==R?(g=R&&(0,n.jsx)("p",{className:"text-xs font-medium text-muted-foreground",children:R}),S[5]=R,S[6]=g):g=S[6],S[7]!==M?(p=(0,n.jsx)("p",{className:"line-clamp-2 text-base leading-tight font-semibold",children:M}),S[7]=M,S[8]=p):p=S[8],S[9]!==T?(h=T&&(0,n.jsx)("p",{className:"line-clamp-2 text-sm text-muted-foreground",children:T}),S[9]=T,S[10]=h):h=S[10],S[11]!==g||S[12]!==p||S[13]!==h?(v=(0,n.jsxs)("div",{className:"min-w-0 space-y-0.5 py-0.5",children:[g,p,h]}),S[11]=g,S[12]=p,S[13]=h,S[14]=v):v=S[14],S[15]!==z||S[16]!==B||S[17]!==f||S[18]!==v?(y=(0,n.jsxs)(k(),{href:B,onClick:z,className:"flex min-w-0 flex-1 gap-3",children:[f,v]}),S[15]=z,S[16]=B,S[17]=f,S[18]=v,S[19]=y):y=S[19],S[20]!==L.id?(b=(0,n.jsx)(A.C,{eventId:L.id,className:"size-8"}),S[20]=L.id,S[21]=b):b=S[21],S[22]!==D||S[23]!==F?(w=null!=D&&null!=F&&(0,n.jsx)(V,{lat:D,lng:F}),S[22]=D,S[23]=F,S[24]=w):w=S[24],S[25]!==w||S[26]!==b?(E=(0,n.jsxs)("div",{className:"flex shrink-0 flex-col items-center gap-1",children:[b,w]}),S[25]=w,S[26]=b,S[27]=E):E=S[27],S[28]!==E||S[29]!==y?(P=(0,n.jsxs)("div",{className:"flex items-center gap-3 rounded-xl p-2 transition-all hover:bg-muted/50",children:[y,E]}),S[28]=E,S[29]=y,S[30]=P):P=S[30],P},Z=e=>{let t,r,l,a,s,i,c,u,d,m,f=(0,x.c)(48),{events:g,isTransitioning:p}=e,[h,y]=(0,o.useState)(!0),{capture:b}=(0,_.s)(),{filters:w}=(0,T.f)();f[0]!==w.end_date||f[1]!==w.start_date?(t={start_date:w.start_date,end_date:w.end_date},f[0]=w.end_date,f[1]=w.start_date,f[2]=t):t=f[2];let k=t,E=q(U),{isUnderBreakpoint:A}=(0,M.i)("tablet");f[3]!==b?(r=e=>{b({eventKey:"events:card:click",details:{event_id:e.id,source:"map",event_details:{dates:e.dates,prices:e.prices,translation:e.translation,city:e.location.city,country:e.location.country}}})},f[3]=b,f[4]=r):r=f[4];let R=r;f[5]!==g||f[6]!==k?(l=function(e,t){let r=new Map,n=(0,I.xw)(),o=new Intl.DateTimeFormat(n,{month:"short",day:"numeric"}),l=new Intl.DateTimeFormat(n,{weekday:"long"}),a=(0,S.o)(new Date),s=(null==t?void 0:t.start_date)?(0,S.o)(t.start_date):null;for(let c of e){var i;let e=(0,N.W4)(null!=(i=c.dates)?i:[],t);if(!e)continue;let u=(0,j.H)(e.start_date),d=s&&u<s?s:u<a?a:u,m=(0,S.o)(d).toISOString();if(!r.has(m)){let e=(0,N.pl)(d,n)||"".concat(o.format(d)," / ").concat((0,v.ZH)(l.format(d)));r.set(m,{label:e,events:[]})}r.get(m).events.push(c)}return Array.from(r.entries()).sort((e,t)=>{let[r]=e,[n]=t;return r.localeCompare(n)}).map(e=>{let[,t]=e;return t})}(g,k),f[5]=g,f[6]=k,f[7]=l):l=f[7];let D=l;if(f[8]!==D||f[9]!==k||f[10]!==R){let e;f[12]!==k||f[13]!==R?(e=e=>(0,n.jsxs)("div",{children:[(0,n.jsx)("h3",{className:"sticky top-0 z-10 bg-card-background/80 px-2 py-1.5 text-xs font-semibold tracking-wide text-muted-foreground uppercase backdrop-blur-sm",children:e.label}),(0,n.jsx)("div",{className:"grid gap-0.5",children:e.events.map(e=>(0,n.jsx)(X,{event:e,filterRange:k,onClick:()=>R(e)},e.id))})]},e.label),f[12]=k,f[13]=R,f[14]=e):e=f[14],a=D.map(e),f[8]=D,f[9]=k,f[10]=R,f[11]=a}else a=f[11];let F=a;if(A){let e,t,r,o,l,a,s,i,c;f[15]===Symbol.for("react.memo_cache_sentinel")?(e=()=>y(!1),f[15]=e):e=f[15],f[16]!==E?(t=()=>E([]),f[16]=E,f[17]=t):t=f[17],f[18]===Symbol.for("react.memo_cache_sentinel")?(r=(0,v.cn)("group/drawer-content fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[20px] border border-card-border bg-background/95 p-5 pr-3 text-modal-foreground shadow-popover backdrop-blur-[30px] outline-none","data-[side=bottom]:slide-in-from-top-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95","dark:bg-background/90"),o=(0,n.jsx)(L._s.Title,{"aria-hidden":!0,hidden:!0}),f[18]=r,f[19]=o):(r=f[18],o=f[19]);let u=h?0:-1,d=!h;f[20]!==d||f[21]!==u?(l=(0,n.jsx)(C.s1,{tabIndex:u,"aria-hidden":d}),f[20]=d,f[21]=u,f[22]=l):l=f[22];let m=p&&"opacity-40";return f[23]!==m?(a=(0,v.cn)("grid max-h-[35vh] custom-scrollbar gap-2 overflow-y-auto pb-6 transition-opacity duration-200",m),f[23]=m,f[24]=a):a=f[24],f[25]!==F||f[26]!==a?(s=(0,n.jsx)("div",{className:a,children:F}),f[25]=F,f[26]=a,f[27]=s):s=f[27],f[28]!==l||f[29]!==s?(i=(0,n.jsx)(L._s.Portal,{children:(0,n.jsxs)(L._s.Content,{className:r,children:[o,l,s]})}),f[28]=l,f[29]=s,f[30]=i):i=f[30],f[31]!==h||f[32]!==i||f[33]!==t?(c=(0,n.jsx)(L._s.Root,{open:h,modal:!1,onClose:e,onAnimationEnd:t,children:i}),f[31]=h,f[32]=i,f[33]=t,f[34]=c):c=f[34],c}f[35]!==E?(s=()=>E([]),f[35]=E,f[36]=s):s=f[36],f[37]===Symbol.for("react.memo_cache_sentinel")?(i=(0,n.jsx)(P.A,{className:"size-4"}),f[37]=i):i=f[37],f[38]!==s?(c=(0,n.jsx)("button",{type:"button","aria-label":"Close",onClick:s,className:"absolute top-0 -left-10 z-20 flex size-8 items-center justify-center rounded-full border border-card-border bg-card-background/80 text-foreground
1/70 backdrop-blur-xl transition-colors hover:bg-card-background hover:text-foreground",children:i}),f[38]=s,f[39]=c):c=f[39];let B=p&&"opacity-40";return f[40]!==B?(u=(0,v.cn)("grid gap-2 transition-opacity duration-200",B),f[40]=B,f[41]=u):u=f[41],f[42]!==F||f[43]!==u?(d=(0,n.jsx)(z.ScrollArea,{className:"h-[calc(100vh-180px)] rounded-2xl bg-card-background/80 p-3 backdrop-blur-xl",viewportClassName:"pr-0",children:(0,n.jsx)("div",{className:u,children:F})}),f[42]=F,f[43]=u,f[44]=d):d=f[44],f[45]!==d||f[46]!==c?(m=(0,n.jsx)("div",{className:"pointer-events-none absolute inset-0 z-10 flex justify-end",children:(0,n.jsxs)("div",{className:"pointer-events-auto relative m-5 mt-20 w-96 animate-in duration-300 ease-out slide-in-from-right-5 fade-in",children:[c,d]})}),f[45]=d,f[46]=c,f[47]=m):m=f[47],m};function U(e){return e.setEventIds}var H=r(24375),J=r(88717),Y=r(11554),G=r(45328);let K=e=>{let t,r,o,l,a=(0,x.c)(10),{icon:s,color:i,className:c}=e;return a[0]!==i?(t={background:i},a[0]=i,a[1]=t):t=a[1],a[2]!==c?(r=(0,v.cn)("flex size-11 items-center justify-center rounded-full border-2 border-white shadow-md",c),a[2]=c,a[3]=r):r=a[3],a[4]!==s?(o=(0,n.jsx)(s,{className:"size-6"}),a[4]=s,a[5]=o):o=a[5],a[6]!==t||a[7]!==r||a[8]!==o?(l=(0,n.jsx)("span",{style:t,className:r,children:o}),a[6]=t,a[7]=r,a[8]=o,a[9]=l):l=a[9],l},Q=e=>{let t,r,o,l,a=(0,x.c)(12),{icons:s,moreEventsCount:i}=e;a[0]!==s.length?(t=2===s.length?["-rotate-12 translate-y-2 translate-x-2","rotate-12 translate-y-2 -translate-x-2"]:3===s.length?["-rotate-12 scale-90 translate-y-2 translate-x-4","relative","rotate-12 scale-90 translate-y-2 -translate-x-4"]:[],a[0]=s.length,a[1]=t):t=a[1];let c=t;if(a[2]!==s||a[3]!==c){let e;a[5]!==c?(e=(e,t)=>(0,n.jsx)(K,{icon:e.icon,color:e.color,className:c[t]},t),a[5]=c,a[6]=e):e=a[6],r=s.map(e),a[2]=s,a[3]=c,a[4]=r}else r=a[4];return a[7]!==i?(o=!!i&&(0,n.jsx)("span",{className:"absolute top-0.5 right-0.5 z-20 rounded-md bg-white px-1 text-sm font-semibold text-black",children:(0,n.jsxs)("span",{children:["+",i]})}),a[7]=i,a[8]=o):o=a[8],a[9]!==r||a[10]!==o?(l=(0,n.jsxs)("span",{className:"relative flex",children:[r,o]}),a[9]=r,a[10]=o,a[11]=l):l=a[11],l};var W=r(45687);function $(e){var t,r,n;let o=null==(t=e.match(/linear-gradient\((.+)\)/))?void 0:t[1];if(!o)return{angle:180,stops:[]};let l=[],a=0,s="";for(let e of o)"("===e?a++:")"===e&&a--,","===e&&0===a?(l.push(s.trim()),s=""):s+=e;l.push(s.trim());let i=parseFloat(null!=(r=l[0])?r:"")||180,c=[];for(let e=1;e<l.length;e++){let t=null==(n=l[e])?void 0:n.trim();if(!t)continue;let r=t.match(/^(.+?)\s+([\d.]+)%$/);(null==r?void 0:r[1])&&r[2]&&c.push({color:r[1].trim(),position:parseFloat(r[2])/100})}return{angle:i,stops:c}}function ee(e,t,r,n,o){let l=(t.angle-90)*Math.PI/180,a=r-Math.cos(l)*o,s=n-Math.sin(l)*o,i=r+Math.cos(l)*o,c=n+Math.sin(l)*o,u=e.createLinearGradient(a,s,i,c);for(let e of t.stops)u.addColorStop(e.position,e.color);return u}async function et(e){let{svgMarkup:t,gradientCSS:r,size:n,pixelRatio:o}=e,l=n+8,a=Math.ceil(l*o),s=document.createElement("canvas");s.width=a,s.height=a;let i=s.getContext("2d");i.scale(o,o);let c=l/2,u=l/2,d=n/2,m=d-2;i.shadowColor="rgba(0, 0, 0, 0.25)",i.shadowBlur=4,i.shadowOffsetX=0,i.shadowOffsetY=2,i.beginPath(),i.arc(c,u,d,0,2*Math.PI),i.fillStyle="#ffffff",i.fill(),i.shadowColor="transparent",i.shadowBlur=0,i.shadowOffsetX=0,i.shadowOffsetY=0;let f=$(r);i.beginPath(),i.arc(c,u,m,0,2*Math.PI),i.fillStyle=ee(i,f,c,u,m),i.fill();let g=await function(e,t){let r=new Blob([e.includes("<svg")?e.replace(/<svg/,'<svg width="'.concat(t,'" height="').concat(t,'"')):'<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(t,'" height="').concat(t,'" viewBox="0 0 40 40" fill="none">').concat(e,"</svg>")],{type:"image/svg+xml;charset=utf-8"}),n=URL.createObjectURL(r);return new Promise((e,t)=>{let r=new Image;r.onload=()=>{URL.revokeObjectURL(n),e(r)},r.onerror=()=>{URL.revokeObjectURL(n),t(Error("Failed to load SVG image"))},r.src=n})}(t,Math.ceil(24*o)),p=c-12,h=u-12;return i.drawImage(g,p,h,24,24),i.getImageData(0,0,a,a)}function er(e,t){return"".concat("event-").concat(e,"-").concat(t)}function en(e){return"".concat("cluster-glow-").concat(e)}
1async function eo(e,t,r){let n=window.devicePixelRatio||1,l=en(r);if(!e.hasImage(l)){let t=function(e){let{isDark:t,size:r,pixelRatio:n}=e,o=r+8,l=Math.ceil(o*n),a=document.createElement("canvas");a.width=l,a.height=l;let s=a.getContext("2d");s.scale(n,n);let i=o/2,c=o/2,u=r/2,d=u-2.5,m=$("linear-gradient(45deg, rgba(124, 30, 110, 1) 0%, rgba(255, 165, 0, 1) 15%, rgba(255, 87, 37, 1) 30%, rgba(59, 55, 164, 1) 100%)");return s.beginPath(),s.arc(i,c,u,0,2*Math.PI),s.fillStyle=ee(s,m,i,c,u),s.fill(),s.beginPath(),s.arc(i,c,d,0,2*Math.PI),s.fillStyle=t?"rgba(23, 23, 23, 0.85)":"rgba(255, 255, 255, 0.95)",s.fill(),s.getImageData(0,0,l,l)}({isDark:"dark"===r,size:48,pixelRatio:n});e.addImage(l,t,{pixelRatio:n})}for(let[l,a]of t){if("all"===l)continue;let t=er(l,r);if(e.hasImage(t))continue;let s=(0,W.qV)((0,o.createElement)(a.icon,{className:"size-6"})),i=await et({svgMarkup:s,gradientCSS:a.color,size:44,pixelRatio:n});e.hasImage(t)||e.addImage(t,i,{pixelRatio:n})}}let el="events",ea="clusters",es="clusters-selected",ei="events-single",ec="events-selected",eu=[ea,ei],ed={type:"geojson",cluster:!0,clusterRadius:50,clusterMaxZoom:16,promoteId:"id",buffer:0,maxzoom:14};function em(e,t){return e?er(e,t):["concat","event-",["get","category"],"-".concat(t)]}function ef(e){return{iconImage:en(e),textColor:"dark"===e?"#ffffff":"#1a1a1a",textHaloColor:"dark"===e?"rgba(23, 23, 23, 0.8)":"rgba(255, 255, 255, 0.8)"}}function eg(e,t,r){let n=ef(r);return{id:e,source:el,type:"symbol",filter:t,layout:{"icon-image":n.iconImage,"icon-size":1,"icon-allow-overlap":!0,"icon-ignore-placement":!0,"text-field":["get","point_count_abbreviated"],"text-size":14,"text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"text-allow-overlap":!0,"text-ignore-placement":!0},paint:{"text-color":n.textColor,"text-halo-color":n.textHaloColor,"text-halo-width":1.5,"icon-opacity":1,"icon-opacity-transition":{duration:200,delay:0},"text-opacity":1,"text-opacity-transition":{duration:200,delay:0}}}}let ep="districts-render-hook";function eh(e){var t;let r=new Intl.PluralRules((0,I.xw)()).select(e),n={one:g.mV8,few:g.ILi,many:g.Jqt,other:g.Jqt};return(null!=(t=n[r])?t:n.other)()}function ev(e,t,r,n){let o=document.createElement("button");o.type="button",o.className=n?"district-pin ".concat(n):"district-pin",o.style.cssText="position:absolute;top:0;left:0;will-change:transform;pointer-events:none;opacity:0;";let l=document.createElement("span");l.className="district-pin__name",l.textContent=e;let a=document.createElement("span");a.className="district-pin__count";let s=document.createElement("span");s.className="district-pin__count-num",s.textContent=String(t);let i=document.createElement("span");return i.className="district-pin__count-word",i.textContent=" ".concat(eh(t)),a.appendChild(s),a.appendChild(i),o.appendChild(l),o.appendChild(a),o.addEventListener("click",r),o}let ey=()=>{let{filters:e}=(0,b.wz)(),{data:t,isLoading:r}=(e=>{let t,r,n,o=(0,x.c)(7),{filters:l}=e;o[0]!==l?(t=["events-geojson",l],r=async()=>{let[e]=await (0,O.N)(e=>e.events.getAllEventsInGeoJson({filters:l}));return null!=e?e:null},o[0]=l,o[1]=t,o[2]=r):(t=o[1],r=o[2]);let a=!!l.city;return o[3]!==t||o[4]!==r||o[5]!==a?(n={queryKey:t,queryFn:r,enabled:a,staleTime:3e5},o[3]=t,o[4]=r,o[5]=a,o[6]=n):n=o[6],(0,R.useQuery)(n)})({filters:e}),{map:s,mapContainer:d,mapError:w,animationPhase:k,maxBounds:E}=(e=>{let{events:t}=e,{filters:{city:r,category:n}}=(0,b.wz)(),{theme:l}=(0,Y.D)(),a="dark"===l?"dark":"light",s=q(e=>e.setEventIds),i=q(e=>e.eventIds),{zoom:c,lng:u,lat:d,maxBounds:f}=(0,o.useMemo)(()=>(e=>{let t=p.xk[e];return{lng:t.center[0],lat:t.center[1],zoom:t.zoom,maxBounds:t.maxBounds}})(r),[r]),g=(0,o.useMemo)(()=>({lng:u,lat:d}),[u,d]),v=(0,o.useMemo)(()=>[u,d],[u,d]),y=(0,o.useMemo)(()=>{var e,t;return null!=(t=null==(e=(0,J.kh)().cities.find(e=>e.code===r))?void 0:e.name)?t:r},[r]),w=(0,o.useMemo)(()=>(0,H.b0)({theme:l}),[l]),[k,E]=(0,o.useState)([]),{animationPhase:P,phaseRef:S,triggerFlyIn:j,resetPhase:L,settle:C}=(()=>{let e,t,r,n,l=(0,x.c)(5),[a,s]=(0,o.useState)("IDLE"),i=(0,o.useRef)("IDLE"),c=(0,o.useRef)(0);l[0]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{let{map:t,center:r,zoom:n,theme:o,onSettled:l}=e;if("IDLE"!==i.current)return;let a=c.current=c.current+1;if(window.matchMedia("(prefers-reduced-motion: reduce)").matches){t.jumpTo({center:[r.lng,r.lat],zoom:n,pitch:p.PJ.settledPitch,bearing:0}),i.current="SETTLED",s("SETTLED"),l();return}let u="dark"===o?p.z3.dark:p.z3.light;t.setConfigProperty("basemap","lightPreset",u);let d={center:[r.lng,r.lat],zoom:n,pitch:p.PJ.settledPitch,bearing:0,speed:p.PJ.flySpeed,curve:p.PJ.flyCurve,essential:!0},m=()=>{c.current===a&&"IDLE"===i.current&&(t.flyTo({...d,preloadOnly:!0}),t.once("idle",()=>{c.current===a&&"IDLE"===i.current&&(i.current="FLYING",s("FLYING"),t.flyTo(d),t.once("moveend",()=>{c.current===a&&(i.current="SETTLED",s("SETTLED"),l())}))}))};t.loaded()?m():t.once("idle",m)},l[0]=e):e=l[0];let u=e;l[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{c.current=c.current+1,i.current="IDLE",s("IDLE")},l[1]=t):t=l[1];let d=t;l[2]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{let{map:t,theme:r,onSettled:n}=e;if("IDLE"!==i.current)return;c.current=c.current+1;let o="dark"===r?p.z3.dark:p.z3.light;t.setConfigProperty("basemap","lightPreset",o),i.current="SETTLED",s("SETTLED"),n()},l[2]=r):r=l[2];let m=r;return l[3]!==a?(n={animationPhase:a,phaseRef:i,triggerFlyIn:u,resetPhase:d,settle:m},l[3]=a,l[4]=n):n=l[4],n})(),{map:z,mapContainer:A,mounted:_,isMarkersReadyToRender:N,mapError:M}=(0,G.z)({center:g,zoom:c,pitch:p.PJ.settledPitch,bearing:0,markers:k}),{areImagesRegistered:I}=function(e){let{map:t,mounted:r,isMarkersReadyToRender:n,resolvedTheme:l,categories:a,activeFiltersCategoryKey:s}=e,[i,c]=(0,o.useState)(!1);return(0,o.useEffect)(()=>
1{if(!r.current||!t.current||!n)return;let e=!1;return eo(t.current,a,l).then(()=>{e||c(!0)}),()=>{e=!0}},[n,l]),(0,o.useEffect)(()=>{if(!t.current||!r.current||!i||!t.current.getLayer(ei))return;let e=em(s,l);t.current.setLayoutProperty(ei,"icon-image",e),t.current.getLayer(ec)&&t.current.setLayoutProperty(ec,"icon-image",e)},[s,l,i]),(0,o.useEffect)(()=>{if(!t.current||!r.current||!i)return;let e=t.current,n="dark"===l?"light":"dark";eo(e,a,l).then(()=>{if(!t.current)return;let r=ef(l);for(let t of[ea,es])e.getLayer(t)&&(e.setLayoutProperty(t,"icon-image",r.iconImage),e.setPaintProperty(t,"text-color",r.textColor),e.setPaintProperty(t,"text-halo-color",r.textHaloColor));e.getLayer(ei)&&e.setLayoutProperty(ei,"icon-image",em(s,l)),e.getLayer(ec)&&e.setLayoutProperty(ec,"icon-image",em(s,l));let o=en(n);for(let[t]of(e.hasImage(o)&&e.removeImage(o),a)){if("all"===t)continue;let r=er(t,n);e.hasImage(r)&&e.removeImage(r)}})},[l]),{areImagesRegistered:i}}({map:z,mounted:_,isMarkersReadyToRender:N,resolvedTheme:a,categories:w,activeFiltersCategoryKey:n}),{isMapEventsUtilsReady:T,selectedClusterIdRef:R,shouldUpdateMarkers:D,updateSamePlaceGroupsRef:F}=function(e){let{map:t,mounted:r,isMarkersReadyToRender:n,categories:l,activeFiltersCategoryKey:a,animationPhaseRef:s,setSelectedEventsIds:i,setMarkers:c}=e,[u,d]=(0,o.useState)(!1),m=(0,o.useRef)(!1),f=(0,o.useRef)(null),g=(0,o.useRef)(null),v=(0,o.useRef)(!1),y=(0,o.useRef)(()=>{});y.current=(0,o.useCallback)(()=>{try{if(!t.current||!t.current.getLayer(ei))return;let e=t.current.querySourceFeatures(el),{groupMarkers:r,groupedEventIds:n}=function(e){let{features:t,categories:r,activeCategoryKey:n,onGroupClick:o}=e,l=new Map,a=new Set;for(let e of t){let[t,r]="Point"===e.geometry.type?e.geometry.coordinates:[null,null];if(!t||!r)continue;let n=e.properties;if(n.cluster||a.has(n.id))continue;a.add(n.id);let o="".concat(t,"-").concat(r),s=l.get(o);s?s.events.push({id:n.id,category:n.category}):l.set(o,{lng:t,lat:r,events:[{id:n.id,category:n.category}]})}let s=[],i=new Set;for(let e of l.values()){if(e.events.length<2)continue;let t=[];for(let o of e.events){if(t.length>=3)break;let e=function(e){let{activeCategoryKey:t,eventCategoryKey:r,categories:n}=e,o=null!=t?t:r;if(!o)return null;let l=n.get(o);return l?{icon:l.icon,color:l.color}:null}({categories:r,activeCategoryKey:n,eventCategoryKey:o.category});e&&t.push({icon:e.icon,color:e.color})}if(!t.length)continue;let l=e.events.map(e=>e.id),a=e.events.length-t.length;for(let e of l)i.add(e);s.push({id:l.join(","),lng:e.lng,lat:e.lat,icon:Q({icons:t,moreEventsCount:a}),onClick:()=>{o({center:[e.lng,e.lat],eventIds:l})}})}return{groupMarkers:s,groupedEventIds:i}}({features:e,categories:l,activeCategoryKey:a,onGroupClick:e=>{let{center:r,eventIds:n}=e;t.current&&(b(t.current,{center:r,zoom:Math.max(t.current.getZoom(),p.FY)}),q.getState().setEventIds(n))}});c(r),n.size>0?t.current.setFilter(ei,["all",["!",["has","point_count"]],["!",["in",["get","id"],["literal",[...n]]]]]):t.current.setFilter(ei,["!",["has","point_count"]])}catch(e){console.error("Failed to update same-place groups:",e)}},[t,l,a,c]);let b=(e,t,r)=>{f.current&&(e.off("moveend",f.current),f.current=null),m.current=!0;let n=e.getZoom();t.zoom>n+.5?e.flyTo({center:t.center,zoom:t.zoom,speed:.8,curve:1.2,essential:!0}):e.easeTo({center:t.center,duration:600,easing:e=>1-Math.pow(1-e,3)});let o=()=>{f.current=null,m.current=!1,y.current(),null==r||r()};f.current=o,e.once("moveend",o)};return(0,o.useEffect)(()=>{let e;if(!r.current||!t.current||!n)return;let o=t.current,l=()=>{"SETTLED"===s.current&&(m.current||y.current())},a=t=>{t.sourceId===el&&t.isSourceLoaded&&v.current&&(v.current=!1,clearTimeout(e),e=setTimeout(()=>l(),100))};o.on("sourcedata",a),o.on("moveend",l);let c=e=>{var t,r,n,l;let a=null==(t=e.features)?void 0:t[0];if(!a)return;let s=null==(r=a.properties)?void 0:r.cluster_id,i=null!=(l=null==(n=a.properties)?void 0:n.point_count)?l:0,c=(0,h.cy)(a);if(!c)return;let u=(0,h.FL)(o,el);if(!u)return;let d=o.getZoom();d>=14||i<=10?u.getClusterLeaves(Number(s),i,0,(e,t)=>{if(e||!t)return;let r=t.map(e=>{var t;return null==(t=e.properties)?void 0:t.id}
1).filter(Boolean);0!==r.length&&b(o,{center:c,zoom:Math.max(d,p.FY)},()=>{var e,t,n;let l=o.project(c);g.current=null!=(n=null==(t=o.queryRenderedFeatures([[l.x-25,l.y-25],[l.x+25,l.y+25]],{layers:[ea]})[0])||null==(e=t.properties)?void 0:e.cluster_id)?n:null,q.getState().setEventIds(r)})}):u.getClusterExpansionZoom(Number(s),(e,t)=>{e||null==t||b(o,{center:c,zoom:t+.1})})},u=e=>{var t,r;let n=null==(t=e.features)?void 0:t[0];if(!n)return;let l=(0,h.cy)(n);if(!l)return;let a=null==(r=n.properties)?void 0:r.id;b(o,{center:l,zoom:Math.max(o.getZoom(),p.FY)}),q.getState().setEventIds([a])},f=()=>{o.getCanvas().style.cursor="pointer"},x=()=>{o.getCanvas().style.cursor=""},w=e=>{0!==q.getState().eventIds.length&&0===o.queryRenderedFeatures(e.point,{layers:eu}).length&&q.getState().setEventIds([])};return o.on("click",ea,c),o.on("click",ei,u),o.on("click",w),o.on("mouseenter",ea,f),o.on("mouseleave",ea,x),o.on("mouseenter",ei,f),o.on("mouseleave",ei,x),d(!0),()=>{clearTimeout(e),o.off("sourcedata",a),o.off("moveend",l),o.off("click",ea,c),o.off("click",ei,u),o.off("click",w),o.off("mouseenter",ea,f),o.off("mouseleave",ea,x),o.off("mouseenter",ei,f),o.off("mouseleave",ei,x),d(!1),i([])}},[t,r,n,i]),{isMapEventsUtilsReady:u,selectedClusterIdRef:g,shouldUpdateMarkers:v,updateSamePlaceGroupsRef:y}}({map:z,mounted:_,isMarkersReadyToRender:N,categories:w,activeFiltersCategoryKey:n,animationPhaseRef:S,setSelectedEventsIds:s,setMarkers:E});!function(e){let{map:t,mounted:r,events:n,isMapEventsUtilsReady:l,areImagesRegistered:a,resolvedTheme:s,activeFiltersCategoryKey:i,animationPhaseRef:c,shouldUpdateMarkers:u,setMarkers:d}=e,m=(0,o.useRef)(void 0);(0,o.useEffect)(()=>{if(!r.current||!t.current||!l||!a)return;if(!n)return void d([]);m.current=n,u.current=!1;let e=t.current;if(e.getSource(el)){let t=(0,h.FL)(e,el);t&&t.setData(n)}else e.addSource(el,{...ed,data:n});e.getLayer(ea)||e.addLayer({...eg(ea,["has","point_count"],s),minzoom:13}),e.getLayer(es)||e.addLayer({...eg(es,["==",["get","cluster_id"],-1],s),minzoom:13});let o=em(i,s);return e.getLayer(ei)||e.addLayer({id:ei,source:el,type:"symbol",minzoom:13,filter:["!",["has","point_count"]],layout:{"icon-image":o,"icon-size":1,"icon-allow-overlap":!0,"icon-ignore-placement":!0,"icon-anchor":"center"},paint:{"icon-opacity":1,"icon-opacity-transition":{duration:200,delay:0}}}),e.getLayer(ec)||e.addLayer({id:ec,source:el,type:"symbol",minzoom:13,filter:["!",["has","point_count"]],layout:{"icon-image":o,"icon-size":1.2,"icon-allow-overlap":!0,"icon-ignore-placement":!0,"icon-anchor":"center"},paint:{"icon-opacity":["case",["boolean",["feature-state","selected"],!1],1,0],"icon-opacity-transition":{duration:200,delay:0}}}),"SETTLED"===c.current&&(u.current=!0),()=>{u.current=!1}},[n,l,a,t,r])}({map:z,mounted:_,events:t,isMapEventsUtilsReady:T,areImagesRegistered:I,resolvedTheme:a,activeFiltersCategoryKey:n,animationPhaseRef:S,shouldUpdateMarkers:D,setMarkers:E}),function(e){let{map:t,mounted:r,selectedEventIds:n,selectedClusterIdRef:l}=e,a=(0,o.useRef)([]),s=(0,o.useRef)([]);(0,o.useEffect)(()=>{if(!t.current||!r.current||!t.current.getLayer(ei))return;let e=t.current,o=n.length>0,i=l.current;for(let t of(l.current=null,a.current))e.setFeatureState({source:el,id:t},{selected:!1});for(let e of s.current)e.remove();if(s.current=[],o){for(let t of n)e.setFeatureState({source:el,id:t},{selected:!0});let t=e.querySourceFeatures(el,{filter:["all",["!",["has","point_count"]],["in",["get","id"],["literal",n]]]}),r=new Set;for(let n of t){var c;let t=null==(c=n.properties)?void 0:c.id;if(!t||r.has(t)||(r.add(t),"Point"!==n.geometry.type))continue;let o=n.geometry.coordinates;s.current.push(function(e,t){let r=document.createElement("div");r.style.position="relative",r.style.width="52px",r.style.height="52px";let n=document.createElement("div");return n.className="event-pulse-ring",r.appendChild(n),new(m()).Marker({element:r,anchor:"center"}).setLngLat(t).addTo(e)}(e,o))}}return e.setFilter(es,["==",["get","cluster_id"],o&&null!=i?i:-1]),a.current=n,()=>{for(let e of s.current)e.remove();if(s.current=[],e.isStyleLoaded())for(let t of n)e.setFeatureState({source:el,id:t},{selected:!1})}},[n])}
1({map:z,mounted:_,selectedEventIds:i,selectedClusterIdRef:R}),function(e){let{map:t,mounted:r,events:n,animationPhase:l,cityCenter:a,cityName:s}=e,i=(0,o.useRef)(new Map),c=(0,o.useRef)(null),u=(0,o.useRef)(null),d=(0,o.useRef)(null);(0,o.useEffect)(()=>{var e,o;if(!t.current||!r.current||"SETTLED"!==l)return;let m=t.current;if(!u.current){let e=document.createElement("div");e.style.cssText="position:absolute;inset:0;pointer-events:none;overflow:hidden;",m.getContainer().appendChild(e),u.current=e}m.getLayer(ep)||m.addLayer({id:ep,type:"custom",render(e,t){let r=performance.now(),n=m.getZoom(),o=!1,l=(e,t)=>{let n=m.project(e.center);e.el.style.transform="translate(".concat(Math.round(n.x),"px,").concat(Math.round(n.y),"px) translate(-50%,calc(-100% - 7px))");let l=Math.min((r-e.createdAt)/600,1),a=(1-Math.pow(1-l,2))*t;e.el.style.opacity=String(a),e.el.style.pointerEvents=a<.05?"none":"auto",l<1&&(o=!0)};for(let e of(c.current&&l(c.current,n<=11?1:n>=11.5?0:1-(n-11)/.5),i.current.values())){var a;l(e,(a=n)<11||a>13.5?0:a<=12.5?a<11.5?(a-11)/.5:1:(13.5-a)/1)}o&&m.triggerRepaint()}});let f=u.current,g=null!=(e=null==n?void 0:n.features.length)?e:0;if(null!==d.current&&d.current!==s){null==(o=c.current)||o.el.remove(),c.current=null;let e=i.current;for(let{el:t}of e.values())t.remove();e.clear()}if(d.current=s,c.current){let e=c.current.el.querySelector(".district-pin__count-num"),t=c.current.el.querySelector(".district-pin__count-word");e&&(e.textContent=String(g)),t&&(t.textContent=" ".concat(eh(g)))}else{let e=ev(s,g,()=>m.flyTo({center:a,zoom:12,speed:1,curve:1,essential:!0}),"district-pin--city");f.appendChild(e),c.current={el:e,center:a,createdAt:performance.now()}}let p=i.current,h=n?function(e){let t=new Map;for(let n of e.features){var r;let e=n.properties.district;if(!e)continue;let[o,l]=n.geometry.coordinates,a=null!=(r=t.get(e))?r:{count:0,lngSum:0,latSum:0};t.set(e,{count:a.count+1,lngSum:a.lngSum+o,latSum:a.latSum+l})}return[...t.entries()].map(e=>{let[t,{count:r,lngSum:n,latSum:o}]=e;return{name:t,count:r,center:[n/r,o/r]}})}(n):[],v=new Set(h.map(e=>e.name));for(let[e,{el:t}]of p)v.has(e)||(t.remove(),p.delete(e));let y=!1;for(let e of h){if(p.has(e.name))continue;let t=ev(e.name,e.count,()=>{m.flyTo({center:e.center,zoom:14,speed:1.2,curve:1,essential:!0})});f.appendChild(t),p.set(e.name,{el:t,center:e.center,createdAt:performance.now()}),y=!0}y&&m.triggerRepaint()},[n,l,s,a,t,r]),(0,o.useEffect)(()=>{let e=u.current;e&&(e.style.transition="opacity 200ms ease",e.style.opacity="SETTLED"===l?"1":"0")},[l]),(0,o.useEffect)(()=>{let e=i.current,r=t.current;return()=>{var t,n;for(let{el:t}of((null==r?void 0:r.isStyleLoaded())&&r.getLayer(ep)&&r.removeLayer(ep),e.values())
1)t.remove();e.clear(),null==(t=c.current)||t.el.remove(),c.current=null,null==(n=u.current)||n.remove(),u.current=null}},[t])}({map:z,mounted:_,events:t,animationPhase:P,cityCenter:v,cityName:y});let B=(0,o.useRef)(r);return(0,o.useEffect)(()=>{if(!_.current||!z.current||!N||"IDLE"!==S.current)return;let e=z.current;C({map:e,theme:a,onSettled:()=>{e.setMaxBounds(f),F.current(),e.once("idle",()=>{e.setConfigProperty("basemap","show3dObjects",!0)})}})},[N]),(0,o.useEffect)(()=>{if(!z.current||!_.current||B.current===r||"SETTLED"!==S.current)return;B.current=r;let e=z.current;e.stop(),(0,h.Vi)(e),s([]),e.jumpTo({center:[u,d],zoom:p.PJ.startZoom,pitch:p.PJ.startPitch,bearing:p.PJ.startBearing}),L(),j({map:e,center:{lng:u,lat:d},zoom:c,theme:a,onSettled:()=>{e.setMaxBounds(f),F.current(),e.once("idle",()=>{e.setConfigProperty("basemap","show3dObjects",!0)})}})},[r]),(0,o.useEffect)(()=>{z.current&&_.current&&"SETTLED"===S.current&&z.current.setMaxBounds(f)},[f]),{map:z,mapContainer:A,mapError:M,animationPhase:P,maxBounds:f}})({events:null!=t?t:void 0}),P=!r&&"SETTLED"===k,{data:S,isPlaceholderData:j}=(()=>{let e=q(e=>e.eventIds),t=(0,o.useRef)(!1),r=e.length>0&&t.current;return t.current=e.length>0,(0,R.useQuery)({queryKey:["events-short-details-by-ids",e],queryFn:async()=>{let[t]=await (0,O.N)(t=>t.events.getEventsShortDetailsByIds({eventIds:e,language:(0,B.K)()}));return null!=t?t:[]},enabled:!!e.length,staleTime:6e5,placeholderData:r?D.rX:void 0})})(),L=q(e=>e.eventIds.length>0),[C,z]=(0,o.useState)(!1),A=(0,o.useRef)(null),_=(0,o.useCallback)(()=>{if(s.current){if(C){var e;null==(e=A.current)||e.remove(),A.current=null,z(!1),s.current.setMaxBounds(E);return}navigator.geolocation.getCurrentPosition(e=>{let{latitude:t,longitude:r}=e.coords,n=s.current;if(!n)return;A.current&&A.current.remove();let o=document.createElement("div");o.className="user-location-marker",A.current=new(m()).Marker({element:o}).setLngLat([r,t]).addTo(n),(0,h.Vi)(n),n.flyTo({center:[r,t],zoom:p.FY,speed:1.2,curve:1,essential:!0,preloadOnly:!0}),z(!0)},()=>{(0,f.toast)({description:g.XsM(),variant:"error"})},{enableHighAccuracy:!0,timeout:1e4})}},[s,C,E]);return w?(0,n.jsxs)("section",{className:"relative container grid flex-1 content-center justify-items-center",children:[(0,n.jsx)("p",{className:"mb-20 max-w-[50ch] text-center font-semibold desktop:text-xl",children:w}),(0,n.jsx)(l.default,{alt:"",src:y,className:"absolute bottom-0 left-1/2 hidden max-w-xs -translate-x-1/2 tablet:block"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"absolute top-header z-10 w-full rounded-b-xl bg-background/70 backdrop-blur-lg",children:(0,n.jsx)("div",{className:"py-2 tablet:container",children:(0,n.jsx)(b.Ul,{})})}),(0,n.jsxs)("section",{className:"relative grid flex-1",children:[(0,n.jsx)("div",{ref:d,className:(0,v.cn)("absolute inset-0 size-full transition-opacity duration-700",P?"opacity-100":"opacity-0")}),(0,n.jsxs)("div",{className:(0,v.cn)("absolute right-4 bottom-6 z-10 grid grid-cols-2 gap-2 transition-all duration-300",P?"scale-100 opacity-100":"scale-75 opacity-0"),children:[(0,n.jsx)("button",{type:"button",onClick:()=>{var e;return null==(e=s.current)?void 0:e.zoomIn({duration:300})},className:"flex items-center justify-center rounded-full border border-border bg-background/90 py-2.5 text-foreground shadow-lg backdrop-blur-lg transition-colors hover:bg-background",children:(0,n.jsx)(a.A,{className:"size-4"})}),(0,n.jsx)("button",{type:"button",onClick:()=>{var e;return null==(e=s.current)?void 0:e.zoomOut({duration:300})},className:"flex items-center justify-center rounded-full border border-border bg-background/90 py-2.5 text-foreground shadow-lg backdrop-blur-lg transition-colors hover:bg-background",children:(0,n.jsx)(i,{className:"size-4"})}),(0,n.jsxs)("button",{type:"button",onClick:_,className:(0,v.cn)("col-span-2 flex items-center justify-center gap-2 rounded-full border px-4 py-2.5 shadow-lg backdrop-blur-lg transition-all duration-200",C?"border-primary bg-primary text-primary-foreground shadow-primary/25":"border-border bg-background/90 text-foreground hover:bg-background"),children:[(0,n.jsx)(c,{className:"size-4 shrink-0"}),(0,n.jsx)("span",{className:"text-sm font-semibold",children:g.ojR()})]})]}),P&&L&&(null==S?void 0:S.length)?(0,n.jsx)(Z,{events:S,isTransitioning:j}):null,!P&&(0,n.jsx)("div",{className:"absolute inset-0 grid size-full place-content-center bg-background/60",children:(0,n.jsx)(u.A,{className:"size-10 animate-spin text-primary"})})]})]})}},40314:(e,t,r)=>{Promise.resolve().then(r.bind(r,71174)),Promise.resolve().then(r.bind(r,17940)),Promise.resolve().then(r.bind(r,73284)),Promise.resolve().then(r.bind(r,46278)),Promise.resolve().then(r.bind(r,8119)),Promise.resolve().then(r.bind(r,49053)),Promise.resolve().then(r.bind(r,77691)),Promise.resolve().then(r.bind(r,58242)),Promise.resolve().then(r.bind(r,44513)),Promise.resolve().then(r.bind(r,91072)),Promise.resolve().then(r.bind(r,73773)),Promise.resolve().then(r.bind(r,32317)),Promise.resolve().then(r.bind(r,19109)),Promise.resolve().then(r.bind(r,96301)),Promise.resolve().then(r.t.bind(r,73329,23)),Promise.resolve().then(r.t.bind(r,56702,23)),Promise.resolve().then(r.bind(r,9034)),Promise.resolve().then(r.bind(r,79408)),Promise.resolve().then(r.bind(r,53583)),Promise.resolve().then(r.bind(r,76990)),Promise.resolve().then(r.bind(r,5057)),Promise.resolve().then(r.bind(r,63406)),Promise.resolve().then(r.bind(r,73199)),Promise.resolve().then(r.bind(r,24074)),Promise.resolve().then(r.bind(r,95011)),Promise.resolve().then(r.bind(r,82272)),Promise.resolve().then(r.bind(r,5456)),Promise.resolve().then(r.bind(r,49104)),Promise.resolve().then(r.bind(r,68951)),Promise.resolve().then(r.bind(r,20003)),Promise.resolve().then(r.bind(r,32215)),Promise.resolve().then(r.bind(r,28849)),Promise.resolve().then(r.bind(r,89573)),Promise.resolve().then(r.bind(r,56587)),Promise.resolve().then(r.bind(r,36446)),Promise.resolve().then(r.bind(r,41197)),Promise.resolve().then(r.bind(r,17392)),Promise.resolve().then(r.bind(r,48337))},43234:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(21760).A)("outline","plus","Plus",[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]])},45328:(e,t,r)=>{"use strict";r.d(t,{z:()=>b});var n=r(12115),o=r(52298),l=r.n(o),a=r(91369),s=r(11554),i=r(85971),c=r(50980),u=r(52226),d=r(55046),m=r(95155),f=r(45687),g=r(86997);let p=(0,m.jsx)(g._,{className:"size-10 text-primary"}),h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,t=arguments.length>1?arguments[1]:void 0,r=document.createElement("span");return r.className="map-marker-inner",r.innerHTML=(0,f.qV)(e),t&&(r.style.cursor="pointer",r.addEventListener("click",t)),{element:r,cleanup:()=>{t&&r.removeEventListener("click",t),r.remove()}}},v=e=>{let t=h(e.marker.icon,e.marker.onClick),r=new(l()).Marker({element:t.element,anchor:"center"}).setLngLat([e.marker.lng,e.marker.lat]).addTo(e.map),n=r.remove.bind(r);return r.remove=()=>(t.cleanup(),n()),r};var y=r(96936);r(48689),r(10328),l().accessToken=a._.NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN;let b=e=>{let{center:t,zoom:r,pitch:o,bearing:a,markers:m,interactive:f=!0,onReady:g}=e,p=(0,n.useRef)(null),h=(0,n.useRef)(null),b=(0,n.useRef)(new Map),x=(0,n.useRef)(!1),w=(0,n.useRef)({lng:t.lng,lat:t.lat}),{theme:k}
1=(0,s.D)(),[E,P]=(0,n.useState)(!1),[S,j]=(0,n.useState)(null);return(0,n.useEffect)(()=>{if(!p.current||h.current&&!x.current)return;if(h.current&&x.current)return void P(!0);try{h.current=new(l()).Map({container:p.current,center:[t.lng,t.lat],zoom:r,style:d.mr,attributionControl:!1,pitch:null!=o?o:0,bearing:null!=a?a:0,fadeDuration:0,maxTileCacheSize:100,interactive:f,config:{basemap:{show3dObjects:!1}}})}catch(e){h.current=null,j(c.uBx());return}let e=RegExp("WebGL|Failed to initialize|api\\.mapbox\\.com/styles","i");h.current.on("error",t=>{var r,n;let o=null!=(n=null==t||null==(r=t.error)?void 0:r.message)?n:"";e.test(o)&&j(c.uBx())}),h.current.on("load",()=>{var e,t,r;null==(e=h.current)||e.setConfigProperty("basemap","showPointOfInterestLabels",!1),null==(t=h.current)||t.setConfigProperty("basemap","showTransitLabels",!0);let n=(0,u.xw)().split("-")[0];null==(r=h.current)||r.setConfigProperty("basemap","language",n),P(!0),x.current=!0,null==g||g(h.current)})},[t.lat,t.lng,r,o,a,f,g]),(0,n.useEffect)(()=>{if(!h.current||!x.current)return;let e="dark"===k?d.z3.dark:d.z3.light;h.current.setConfigProperty("basemap","lightPreset",e)},[k,h]),(0,n.useEffect)(()=>{h.current&&x.current&&(w.current.lng!==t.lng||w.current.lat!==t.lat)&&(w.current={lng:t.lng,lat:t.lat},h.current.getMaxBounds()&&(0,y.Vi)(h.current),h.current.flyTo({center:[t.lng,t.lat],zoom:r,animate:!1}))},[t.lng,t.lat,r]),(0,n.useEffect)(()=>{h.current&&x.current&&h.current.zoomTo(r)},[r,h]),(0,n.useEffect)(()=>{if(!h.current||!E||!x.current)return;let e=b.current;if(!m||!m.length){e.forEach(e=>e.remove()),e.clear();return}let t=new Set(m.map(e=>e.id));for(let r of([...e.keys()].filter(e=>!t.has(e)).forEach(t=>{let r=e.get(t);r&&(r.remove(),e.delete(t))}),m))e.has(r.id)||e.set(r.id,v({marker:r,map:h.current}))},[h,E,m]),(0,i.i)(()=>{h.current&&x.current&&(b.current.forEach(e=>e.remove()),b.current.clear(),h.current.remove(),h.current=null,x.current=!1,P(!1))}),{map:h,mapContainer:p,mounted:x,isMarkersReadyToRender:E,mapError:S}}},45687:(e,t,r)=>{"use strict";var n,o;n=r(54592),o=r(49506),n.version,n.renderToString,t.qV=n.renderToStaticMarkup,o.renderToReadableStream,o.resume&&o.resume},48689:()=>{},55046:(e,t,r)=>{"use strict";r.d(t,{FY:()=>s,PJ:()=>i,mr:()=>l,xk:()=>o,z3:()=>a});var n=r(57607);let o={[n.E8.warsaw]:{center:[21.011731518,52.229827082],zoom:11.5,maxBounds:[[20.2,51.8],[21.85,52.65]]},[n.E8.krakow]:{center:[19.944544,50.049683],zoom:11.5,maxBounds:[[19.15,49.65],[20.75,50.45]]},[n.E8.poznan]:{center:[16.9252,52.4064],zoom:11.5,maxBounds:[[16.1,52],[17.75,52.85]]}},l="mapbox://styles/mapbox/standard",a={light:"day",dark:"dusk"},s=15.5,i={startZoom:10,startPitch:0,startBearing:-15,settledPitch:30,flySpeed:.8,flyCurve:1}},73062:(e,t,r)=>{"use strict";r.d(t,{y:()=>i});var n=r(19749),o=r(73773),l=r(45591),a=r(12299),s=r(10609);let i=()=>{let e,t,r,l=(0,n.c)(8),{isSignedIn:i}=(0,a.wV)(),c=!!i;l[0]!==c?(e={queryKey:s.l,enabled:c,queryFn:u},l[0]=c,l[1]=e):e=l[1];let{data:d,refetch:m,isLoading:f}=(0,o.useQuery)(e);l[2]!==d?(t=void 0===d?[]:d,l[2]=d,l[3]=t):t=l[3];let g=t;return l[4]!==g||l[5]!==f||l[6]!==m?(r={data:g,refetch:m,isLoading:f},l[4]=g,l[5]=f,l[6]=m,l[7]=r):r=l[7],r};function c(e){return e.user.getAllSavedEventsIds()}async function u(){let[e,t]=await (0,l.N)(c);return t?[]:null!=e?e:[]}},86156:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(21760).A)("outline","heart","Heart",[["path",{d:"M19.5 12.572l-7.5 7.428l-7.5 -7.428a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572",key:"svg-0"}]])},86997:(e,t,r)=>{"use strict";r.d(t,{_:()=>l});var n=r(95155),o=r(19749);let l=e=>{let t,r,l=(0,o.c)(4),{className:a,style:s}=e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,n.jsx)("path",{d:"M320 76.5c99.311 0 179.499 79.016 179.5 176.1 0 55.985-28.434 119.048-64.442 176.022-35.76 56.581-77.803 105.332-102.648 132.306-6.85 7.43-18.07 7.43-24.919 0h-.001c-24.845-26.974-66.889-75.725-102.649-132.306-34.781-55.032-62.493-115.746-64.341-170.274V252.6c0-97.084 80.189-176.1 179.5-176.1Zm0 103c-42.204 0-76.5 34.297-76.5 76.5s34.296 76.5 76.5 76.5 76.5-34.296 76.5-76.5-34.297-76.5-76.5-76.5Z"}),l[0]=t):t=l[0],l[1]!==a||l[2]!==s?(r=(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"
1currentColor",viewBox:"0 0 640 640",className:a,style:s,children:t}),l[1]=a,l[2]=s,l[3]=r):r=l[3],r}},96936:(e,t,r)=>{"use strict";function n(e){e.setMaxBounds(null)}function o(e,t){let r=e.getSource(t);return r&&"geojson"===r.type?r:null}function l(e){if("Point"!==e.geometry.type)return null;let t=e.geometry.coordinates;return t.length<2?null:[t[0],t[1]]}r.d(t,{FL:()=>o,Vi:()=>n,cy:()=>l})}},e=>{e.O(0,[8058,240,9690,4390,1093,3329,2886,5995,4186,4429,3923,6702,6122,7428,602,9964,5906,8330,5575,9870,6403,7223,9426,9375,7596,8813,1706,8441,309,7358],()=>e(e.s=40314)),_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.