1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,398361,e=>{"use strict";let t=(0,e.i(475254).default)("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]);e.s(["Maximize2",0,t],398361)},68807,e=>{e.v({scope:"tour-map-module__aA2mga__scope","tm-pulse":"tour-map-module__aA2mga__tm-pulse"})},478558,483233,225920,158947,555122,e=>{"use strict";var t=e.i(843476),l=e.i(271645),i=e.i(266027),n=e.i(964053),s=e.i(37727),r=e.i(95187);let a=(0,r.createServerReference)("60a9af26a38dddd8b1a2f321414f99d92ba18c8ec2",r.callServer,void 0,r.findSourceMapURL,"getArtistTour");e.s(["getArtistTour",0,a],483233),e.i(247167);var o=e.i(401851);function c(e,t,l,i){let n=e=>e*Math.PI/180;return 12742*Math.asin(Math.sqrt(Math.sin(n(l-e)/2)**2+Math.sin(n(i-t)/2)**2*Math.cos(n(e))*Math.cos(n(l))))}function d(e){let t=[];return e<800&&t.push({mode:"car",hours:e/80,priceLow:Math.round(.25*e),priceHigh:Math.round(.35*e)}),e>50&&e<1200&&t.push({mode:"train",hours:e/120+.5,priceLow:Math.max(20,Math.round(.12*e)),priceHigh:Math.round(.2*e)}),e>300&&t.push({mode:"plane",hours:2+e/700,priceLow:Math.max(50,Math.round(.08*e)),priceHigh:Math.round(.18*e)}),t.sort((e,t)=>e.hours-t.hours)}function u(e){if(e<1)return`${Math.round(60*e)}min`;if(e<10){let t=Math.floor(e),l=Math.round((e-t)*60);return 0===l?`${t}h`:`${t}h ${l}min`}return`${Math.round(e)}h`}let m={car:"ð",train:"ð",plane:"âï¸"},p=[{km:160,label:"â¤2h trip"},{km:500,label:"Day trip"},{km:2e3,label:"Short trip"},{km:5e3,label:"Long trip"}];function x(e){if(e<30)return{kind:"day",label:"In your city",tone:"good"};let t=d(e).find(e=>"car"===e.mode||"train"===e.mode);if(t){if(t.hours<=3)return{kind:"day",label:"Day trip",tone:"good"};if(t.hours<=8)return{kind:"weekend",label:"Weekend trip",tone:"ok"};if(t.hours<=12)return{kind:"longWeekend",label:"2â3 day trip",tone:"warn"}}return e<=2e3?{kind:"shortTrip",label:"Short trip",tone:"ok"}:{kind:"longTrip",label:"Long trip",tone:"muted"}}e.s(["REACH_RINGS",0,p,"TRAVEL_MODE_ICON",0,m,"TRAVEL_MODE_LABEL",0,{car:"Car",train:"Train",plane:"Flight"},"classifyTrip",0,x,"formatHours",0,u,"haversineKm",0,c,"pickTravelOptionForClass",0,function(e,t){let l=d(e);return 0===l.length?null:"shortTrip"===t||"longTrip"===t?l.find(e=>"plane"===e.mode)??l[0]??null:l.find(e=>"car"===e.mode||"train"===e.mode)??l[0]??null},"travelOptions",0,d],225920);var f=e.i(68807);let h=null;function g(){return h||(h=(async()=>{let t=await e.A(52498);return await e.A(98650),t})()),h}function v(e){if(!e)return"";try{return(0,o.format)(new Date(e),"EEE, MMM d, yyyy")}catch{return e}}function y(e){return e.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">").replaceAll('"',""")}let b=(0,l.forwardRef)(function({events:e,viewer:i,interactive:n=!0,showReachRings:s=!1,maxRings:r,centerOnViewer:a=!0,fitPadding:o,dim:c=!1,onMarkerClick:d},u){let m=(0,l.useRef)(null),x=(0,l.useRef)(null),h=(0,l.useRef)(new Map),b=(0,l.useRef)(null),j=(0,l.useRef)(null),[N,_]=(0,l.useState)(!1),[M,$]=(0,l.useState)(!1),S=(0,l.useMemo)(()=>(function(e){let t=new Map;for(let l of e){let e=l.place,i=t.get(e.id);i?i.events.push(l):t.set(e.id,{placeId:e.id,name:e.name,city:e.city,country:e.country,lat:e.latitude,lng:e.longitude,events:[l]})}return[...t.values()]})(e),[e]),[C]=(0,l.useState)(()=>(function(e){let t,{clusters:l,viewer:i,centerOnViewer:n,token:s}=e,r=e.width??1e3,a=e.height??600;if(0===l.length&&!i)return null;let o=(n&&i?[...l].sort((e,t)=>w(e,i)-w(t,i)).slice(0,16):l.slice(0,16)).map(e=>`pin-s+fe4f30(${e.lng.toFixed(4)},${e.lat.toFixed(4)})`).join(",");if(n&&i){var c,d,u,m;let e=k(l,i),n=e?(c=i,d=e,u=r,m=a,Math.min(5,Math.max(1.5,Math.min(Math.log2(360*u/(512*Math.max(2*Math.abs(d.lng-c.longitude),.4))),Math.log2(170*m/(512*Math.max(2*Math.abs(d.lat-c.latitude),.4))))-.4))):3.5;t=`${i.longitude.toFixed(4)},${i.latitude.toFixed(4)},${n.toFixed(2)}`}else if(o)t="auto";else{if(!i)return null;t=`${i.longitude.toFixed(4)},${i.latitude.toFixed(4)},3.5`}let p=o?`/${o}`:"";return`https://api.mapbox.com/styles/v1/mapbox/dark-v11/static${p}/${t}/${r}x${a}?access_token=${s}&attribution=false&logo=false`})({clusters:S,viewer:i,centerOnViewer:a,token:"pk.eyJ1IjoibmlrbGFzYWkiLCJhIjoiY21vZTd5OGxzMGVvbDJyczI0amNicGVhNSJ9.0IlxC5yvSL-70kOGKIuTXg\n"}));(0,l.useEffect)(()=>
1{if(!N)return;let e=setTimeout(()=>$(!0),650);return()=>clearTimeout(e)},[N]),(0,l.useImperativeHandle)(u,()=>({flyToVenue:e=>{let t=S.find(t=>t.placeId===e),l=x.current;if(!t||!l?.flyTo)return;l.flyTo({center:[t.lng,t.lat],zoom:11,duration:1400,essential:!0});let i=h.current.get(e);i?.getElement?.().click?.()},refit:()=>z()}),[S]);let L=(0,l.useMemo)(()=>("number"==typeof r?p.slice(0,Math.max(0,r)):p).map(e=>({km:e.km,label:e.label,meters:1e3*e.km})),[r]);function z(){let e=x.current;e&&(async()=>{let t=(await g()).default;if(a&&i&&e.jumpTo){let l=k(S,i);if(!l)return e.jumpTo({center:[i.longitude,i.latitude],zoom:3.5});let n=l.lng-i.longitude,s=l.lat-i.latitude,r=new t.LngLatBounds;return r.extend([i.longitude,i.latitude]),r.extend([l.lng,l.lat]),r.extend([i.longitude-n,i.latitude-s]),e.fitBounds?.(r,{padding:o??{top:60,right:60,bottom:60,left:60},maxZoom:5,duration:0})}if(!e.fitBounds)return;let l=new t.LngLatBounds;for(let e of S)l.extend([e.lng,e.lat]);i&&l.extend([i.longitude,i.latitude]),l.isEmpty()||e.fitBounds(l,{padding:o??{top:60,right:60,bottom:60,left:60},maxZoom:6,duration:0})})()}return(0,l.useEffect)(()=>{let e=!1,t="pk.eyJ1IjoibmlrbGFzYWkiLCJhIjoiY21vZTd5OGxzMGVvbDJyczI0amNicGVhNSJ9.0IlxC5yvSL-70kOGKIuTXg\n";if(m.current&&t)return(async()=>{let l=(await g()).default;if(e)return;l.accessToken=t;let i=new l.Map({container:m.current,style:"mapbox://styles/mapbox/dark-v11",center:[10,30],zoom:1.5,projection:{name:"globe"},attributionControl:n,interactive:n});x.current=i,i.on("style.load",()=>{if(!e)try{i.setFog({color:"rgb(20, 18, 16)","high-color":"rgb(36, 32, 28)","horizon-blend":.04,"space-color":"rgb(10, 9, 8)","star-intensity":.15})}catch{}});let s=()=>{e||_(!0)};if(i.loaded())s();else{i.once("load",s),i.once("idle",s);let t=setInterval(()=>{e?clearInterval(t):(i.loaded()||i.isStyleLoaded())&&(clearInterval(t),s())},200);setTimeout(()=>{e||i.loaded()||(clearInterval(t),s())},3e3)}})(),()=>{e=!0;let t=x.current;t?.remove?.(),x.current=null,h.current.clear(),b.current=null,_(!1)}},[]),(0,l.useEffect)(()=>{if(!N)return;let e=x.current;if(!e)return;let t=!1;return(async()=>{let l=(await g()).default;if(!t){for(let t of(h.current.forEach(e=>e.remove()),h.current.clear(),S)){let i=document.createElement("button");i.type="button";let s=t.events.length>1;i.className=`tm-marker ${s?"tm-marker--multi":"tm-marker--single"}`,c&&(i.style.opacity="0.55"),s&&(i.textContent=String(t.events.length)),i.setAttribute("aria-label",`${t.name??"Venue"} \xb7 ${t.events.length} show${1===t.events.length?"":"s"}`),n?i.addEventListener("click",i=>{i.stopPropagation();let n=j.current;n?.remove?.();let r=s?function(e,t){let l=e.events.map(e=>{let t=e.trip_worthiness_score;return` 2 <div data-event-id="${e.id}" style="display:flex;align-items:center;justify-content:space-between;padding:8px 14px;border-top:1px solid #e5e5e5;cursor:pointer;"> 3 <div style="display:flex;flex-direction:column;gap:2px;min-width:0;"> 4 <div style="font-size:12px;font-weight:500;line-height:1.3;color:#1e1f1f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px;">${y(e.name??"")}</div> 5 <div style="font-size:11px;color:#767676;">${v(e.date)}</div> 6 </div> 7 ${null!==t?`<div style="font-size:11px;font-weight:600;color:#ffffff;background:#fe4f30;padding:1px 6px;border-radius:9999px;">Trip ${t}</div>`:""} 8 </div> 9 `}).join("");return` 10 <div style="width:300px;color:#1e1f1f;${t?"opacity:0.75;":""}"> 11 <div style="padding:12px 14px;"> 12 <div style="font-size:11px;color:#767676;font-weight:500;">${e.events.length} shows at this venue</div> 13 <div style="font-size:14px;font-weight:600;margin-top:2px;">${y(e.name??"Venue")}</div> 14 <div style="font-size:12px;color:#767676;margin-top:2px;">${y([e.city,e.country].filter(Boolean).join(", "))}</div> 15 </div> 16 <div style="max-height:260px;overflow-y:auto;"> 17 ${l} 18 </div> 19 </div> 20 `}(t,c):function(e,t){let l=e.cover_image_url,i=e.coolness_score,n=e.trip_worthiness_score;return` 21 <div style="width:280px;
21display:flex;flex-direction:column;color:#1e1f1f;${t?"opacity:0.75;":""}"> 22 ${l?`<div style="aspect-ratio:16/9;background:#f6f6f6;overflow:hidden;"><img src="${l}" alt="" style="width:100%;height:100%;object-fit:cover;"/></div>`:""} 23 <div style="padding:12px 14px;display:flex;flex-direction:column;gap:4px;"> 24 <div style="font-size:14px;font-weight:600;line-height:1.3;">${y(e.name??"")}</div> 25 <div style="font-size:12px;color:#767676;">${v(e.date)} \xb7 ${y(e.place.city??e.place.name??"")}</div> 26 ${null!==i||null!==n?`<div style="display:flex;gap:10px;margin-top:4px;font-size:11px;font-weight:600;"> 27 ${null!==n?`<span style="color:#ffffff;background:#fe4f30;padding:1px 6px;border-radius:9999px;">Trip ${n}</span>`:""} 28 ${null!==i?`<span style="color:#1e1f1f;background:#f6f6f6;padding:1px 6px;border-radius:9999px;">â ${i}</span>`:""} 29 </div>`:""} 30 </div> 31 </div> 32 `}(t.events[0],c);j.current=new l.Popup({offset:18,closeButton:!0,closeOnClick:!0,maxWidth:"320px"}).setLngLat([t.lng,t.lat]).setHTML(r).addTo(e),d?.(t.placeId)}):i.style.pointerEvents="none";let r=new l.Marker(i).setLngLat([t.lng,t.lat]).addTo(e);h.current.set(t.placeId,r)}b.current&&(b.current.remove(),b.current=null);for(let t=0;t<p.length;t++)e.getLayer?.(`tm-ring-${t}`)&&e.removeLayer(`tm-ring-${t}`);if(e.getSource?.("tm-viewer")&&e.removeSource("tm-viewer"),s&&i){let t=document.createElement("div");t.className="tm-viewer-pin",b.current=new l.Marker(t).setLngLat([i.longitude,i.latitude]).addTo(e),e.addSource("tm-viewer",{type:"geojson",data:{type:"FeatureCollection",features:[{type:"Feature",properties:{},geometry:{type:"Point",coordinates:[i.longitude,i.latitude]}}]}}),[...L].sort((e,t)=>t.meters-e.meters).forEach((t,l)=>{var n;let s=`tm-ring-${p.findIndex(e=>e.km===t.km)}`;e.addLayer({id:s,type:"circle",source:"tm-viewer",paint:{"circle-radius":{stops:[[0,0],[20,(n=t.meters,n/(78271.484/Math.pow(2,20)*Math.cos(i.latitude*Math.PI/180)))]],base:2},"circle-color":"#fe4f30","circle-opacity":.05+.025*l,"circle-stroke-color":"#fe4f30","circle-stroke-opacity":.25,"circle-stroke-width":.5}})})}z()}})(),()=>{t=!0}},[N,S,i,s,c]),(0,t.jsxs)("div",{className:`${f.default.scope} relative h-full w-full`,children:[(0,t.jsx)("div",{ref:m,className:"h-full w-full"}),C&&!M?(0,t.jsx)("img",{src:C,alt:"","aria-hidden":"true",className:"pointer-events-none absolute inset-0 size-full object-cover transition-opacity duration-500 ease-out",style:{opacity:+!N},onTransitionEnd:()=>{N&&$(!0)}}):null]})});function k(e,t){let l=null,i=1/0;for(let n of e){let e=n.lng-t.longitude,s=n.lat-t.latitude,r=e*e+s*s;r<i&&(i=r,l=n)}return l}function w(e,t){let l=e.lng-t.longitude,i=e.lat-t.latitude;return l*l+i*i}e.s(["TourMap",0,b,"preloadMapbox",0,g],158947);var j=e.i(826514),N=e.i(647163);function _({tour:e,pastTour:i,mode:n,onModeChange:s,viewer:r,onEventClick:a,highlightedPlaceId:c}){let d="past"===n&&i?i:e,u=(0,l.useMemo)(()=>(function(e){let t=new Map;for(let l of e){if(!l.date)continue;let e=(0,j.parseISO)(l.date),i=(0,o.format)(e,"yyyy-MM"),n=(0,o.format)(e,"MMMM yyyy"),s=t.get(i);s?s.events.push(l):t.set(i,{key:i,label:n,events:[l]})}return[...t.values()]})(d.events),[d.events]);return(0,t.jsxs)("aside",{className:"flex h-full w-full flex-col overflow-hidden bg-card",children:[(0,t.jsxs)("div",{className:"border-b border-divider px-6 py-5 md:pl-16",children:[(0,t.jsx)("h2",{className:"text-2xl font-semibold text-ink",children:e.artist.name}),(0,t.jsx)("div",{className:"mt-1 text-xs text-ink-muted",children:"past"===n?"Past tour":"Upcoming tour"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-3 border-b border-divider",children:[(0,t.jsx)(M,{label:"Shows",value:d.stats.shows}),(0,t.jsx)(M,{label:"Venues",value:d.stats.venues}),(0,t.jsx)(M,{label:"Countries",value:d.stats.countries})]}),(0,t.jsxs)("div",{className:"flex border-b border-divider",children:[(0,t.jsx)($,{active:"upcoming"===n,onClick:()=>s("upcoming"),label:`Upcoming (${e.stats.shows})`}),(0,t.jsx)($,{active:"past"===n,onClick:()=>s("past"),label:`Past${i?` (${i.stats.shows})`:""}`,disabled:!i})]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto",children:0===u.length?(0,t.jsx)("div",{className:"px-6 py-12 text-center text-sm text-ink-muted",children:"past"===n?"No past shows on record.":"No upcoming shows yet."}):u.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"sticky top-0 z-10 flex items-center justify-between border-b border-divider bg-card px-6 py-2 text-[11px] font-semibold uppercase tracking-wide text-ink-muted",children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsxs)("span",{children:[e.events.length," show",1===e.events.length?"":"s"]})]}),e.events.map(e=>(0,t.jsx)(S,{event:e,viewer:r,active:e.place.id===c,onClick:()=>a(e)},e.id))]},e.key))})]})}function M({label:e,value:l}){return(0,t.jsxs)("div",{className:"border-r border-divider px-6 py-4 last:border-r-0",children:[(0,t.jsx)("div",{className:"text-2xl font-semibold text-ink",children:l}),(0,t.jsx)("div",{className:"mt-0.5 text-[11px] font-medium uppercase tracking-wide text-ink-muted",children:e})]})}function $({active:e,onClick:l,label:i,disabled:n=!1}){return(0,t.jsx)("button",{type:"button",onClick:l,disabled:n,className:(0,N.cn)("flex-1 border-b-2 px-6 py-3 text-xs font-semibold uppercase tracking-wide transition-colors",e?"border-ink text-ink":"border-transparent text-ink-muted hover:text-ink",n&&"cursor-not-allowed opacity-40"),children:i})}function S({event:e,viewer:i,active:n,onClick:s}){let r=e.date?(0,j.parseISO)(e.date):null,a=r?(0,o.format)(r,"d"):"?",p=r?(0,o.format)(r,"MMM").toUpperCase():"",f=(0,l.useMemo)(()=>
32{if(!i)return null;let t=c(i.latitude,i.longitude,e.place.latitude,e.place.longitude),l=d(t)[0];return l?{km:Math.round(t),top:l,trip:x(t)}:null},[e,i]);return(0,t.jsxs)("button",{type:"button",onClick:s,className:(0,N.cn)("group flex w-full items-center gap-4 border-b border-divider px-6 py-3 text-left transition-colors hover:bg-shell",n&&"bg-shell"),children:[(0,t.jsxs)("div",{className:"flex w-12 shrink-0 flex-col items-center",children:[(0,t.jsx)("div",{className:"text-2xl font-semibold leading-none text-ink",children:a}),(0,t.jsx)("div",{className:"mt-1 text-[10px] font-semibold uppercase tracking-wider text-ink-muted",children:p})]}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsx)("div",{className:"truncate text-sm font-medium text-ink",children:e.name??"Untitled show"}),(0,t.jsxs)("div",{className:"truncate text-xs text-ink-muted",children:[e.place.name??"Venue TBA",e.place.city?` \xb7 ${e.place.city}`:""]}),f?(0,t.jsxs)("div",{className:"mt-0.5 text-[11px] text-ink-muted",children:[m[f.top.mode]," ~",u(f.top.hours)," ","· ",f.km.toLocaleString()," km · ",f.trip.label]}):null]}),null!==e.trip_worthiness_score?(0,t.jsxs)("div",{className:"shrink-0 rounded-full bg-lime px-2 py-0.5 text-[11px] font-semibold text-lime-text",children:["Trip ",e.trip_worthiness_score]}):null]})}function C({count:e,city:l,className:i}){let n=p.slice(0,"number"==typeof e?Math.max(0,e):p.length);return 0===n.length?null:(0,t.jsxs)("div",{className:(0,N.cn)("flex flex-col gap-1.5 rounded-md bg-page/95 px-3 py-2.5 text-[11px] text-ink shadow-sm ring-1 ring-divider backdrop-blur",i),children:[(0,t.jsx)("div",{className:"text-[10px] font-semibold uppercase tracking-wide text-ink-muted",children:l?`Reach from ${l}`:"Reach rings"}),(0,t.jsx)("ul",{className:"flex flex-col gap-1.5",children:n.map((e,l)=>(0,t.jsxs)("li",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"inline-flex size-4 shrink-0 items-center justify-center rounded-full bg-lime text-[10px] font-bold leading-none text-lime-text",children:l+1}),(0,t.jsx)("span",{className:"font-medium text-ink",children:e.label}),(0,t.jsxs)("span",{className:"ml-auto pl-2 text-ink-muted",children:["â¤",e.km.toLocaleString()," km"]})]},e.km))})]})}e.s(["ReachRingLegend",0,C],555122),e.s(["ArtistTourMapOverlay",0,function({tour:e,viewer:r,onClose:o}){let[c,d]=(0,l.useState)("upcoming"),[u,m]=(0,l.useState)(null),p=(0,l.useRef)(null),x=(0,i.useQuery)({queryKey:["artist-tour-past",e.artist.id],queryFn:()=>null!==e.artist.id?a(e.artist.id,{past:!0}):Promise.resolve(null),enabled:"past"===c,staleTime:3e5});(0,l.useEffect)(()=>{let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[]);let f="past"===c&&x.data?x.data:e,h="past"===c,g=r?{latitude:r.latitude,longitude:r.longitude,city:r.city}:null;return(0,t.jsx)(n.Dialog.Root,{open:!0,onOpenChange:e=>!e&&o(),children:(0,t.jsxs)(n.Dialog.Portal,{children:[(0,t.jsx)(n.Dialog.Overlay,{className:"fixed inset-0 z-[60] bg-black/40 backdrop-blur-sm"}),(0,t.jsxs)(n.Dialog.Content,{className:"fixed inset-0 z-[70] flex flex-col-reverse bg-page md:flex-row",children:[(0,t.jsxs)(n.Dialog.Title,{className:"sr-only",children:[e.artist.name," tour map"]}),(0,t.jsxs)(n.Dialog.Description,{className:"sr-only",children:["Map of all upcoming and past shows for ",e.artist.name]}),(0,t.jsx)("div",{className:"min-h-0 flex-1 border-t border-divider md:h-auto md:max-h-none md:min-h-0 md:w-[420px] md:flex-initial md:border-t-0 md:border-r",children:(0,t.jsx)(_,{tour:e,pastTour:x.data??null,mode:c,onModeChange:d,viewer:g,onEventClick:e=>{m(e.place.id),p.current?.flyToVenue(e.place.id)},highlightedPlaceId:u})}),(0,t.jsxs)("div",{className:"relative h-[45vh] shrink-0 md:h-auto md:flex-1",children:[(0,t.jsx)(b,{ref:p,events:f.events,viewer:g,interactive:!0,showReachRings:"upcoming"===c,centerOnViewer:!1,fitPadding:{top:80,right:80,bottom:80,left:80},dim:h,onMarkerClick:e=>{m(e)}},c),r?(0,t.jsx)(C,{city:r.city,className:"absolute top-4 right-4 z-10 hidden w-[220px] md:flex"}):null,(0,t.jsxs)("div",{className:"absolute bottom-4 left-4 hidden flex-col gap-0.5 rounded-md bg-page/90 px-3 py-2 text-[11px] text-ink-muted shadow-sm ring-1 ring-divider backdrop-blur md:flex",children:[(0,t.jsx)("div",{className:"font-semibold text-ink",children:"Eventmate · Event Knowledge Graph"}),(0,t.jsxs)("div",{children:["Updated"," ",new Date().toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"})]})]})]}),(0,t.jsx)(n.Dialog.Close,{className:"absolute top-3 right-3 z-50 inline-flex size-9 items-center justify-center rounded-full bg-page text-ink ring-1 ring-divider shadow-sm transition-colors hover:bg-shell md:right-auto md:left-3","aria-label":"Close tour map",children:(0,t.jsx)(s.X,{className:"size-4"})})]})]})})}],478558)},210407,e=>{"use strict";let t=(0,e.i(475254).default)("music-2",[["circle",{cx:"8",cy:"18",r:"4",key:"1fc0mg"}],["path",{d:"M12 18V2l7 4",key:"g04rme"}]]);e.s(["Music2",0,t],210407)},115057,e=>{"use strict";let t=(0,e.i(475254).default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);e.s(["ArrowUpRight",0,t],115057)},248256,e=>{"use strict";let t=(0,e.i(475254).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",0,t],248256)},690562,e=>{"use strict";var t=e.i(843476);let l=e.i(271645).forwardRef(function({title:e="Facebook",color:l="currentColor",size:i=24,...n},s){return"default"===l&&(l="#0866FF"),(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,fill:l,viewBox:"0 0 24 24",ref:s,...n,children:[(0,t.jsx)("title",{children:e}),(0,t.jsx)("path",{d:"M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z"})]})});e.s(["SiFacebook",0,l],690562)},99754,558047,e=>{"use strict";var t=e.i(843476),l=e.i(271645);let i=l.forwardRef(function({title:e="Instagram",color:l="currentColor",size:i=24,...n},s){return"default"===l&&(l="#FF0069"),(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,fill:l,viewBox:"0 0 24 24",ref:s,...n,children:[(0,t.jsx)("title",{children:e}),(0,t.jsx)("path",{d:"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.00
327-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"})]})});e.s(["SiInstagram",0,i],99754);let n=l.forwardRef(function({title:e="Spotify",color:l="currentColor",size:i=24,...n},s){return"default"===l&&(l="#1ED760"),(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,fill:l,viewBox:"0 0 24 24",ref:s,...n,children:[(0,t.jsx)("title",{children:e}),(0,t.jsx)("path",{d:"M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.66 0 12 0zm5.521 17.34c-.24.359-.66.48-1.021.24-2.82-1.74-6.36-2.101-10.561-1.141-.418.122-.779-.179-.899-.539-.12-.421.18-.78.54-.9 4.56-1.021 8.52-.6 11.64 1.32.42.18.479.659.301 1.02zm1.44-3.3c-.301.42-.841.6-1.262.3-3.239-1.98-8.159-2.58-11.939-1.38-.479.12-1.02-.12-1.14-.6-.12-.48.12-1.021.6-1.141C9.6 9.9 15 10.561 18.72 12.84c.361.181.54.78.241 1.2zm.12-3.36C15.24 8.4 8.82 8.16 5.16 9.301c-.6.179-1.2-.181-1.38-.721-.18-.601.18-1.2.72-1.381 4.26-1.26 11.28-1.02 15.721 1.621.539.3.719 1.02.419 1.56-.299.421-1.02.599-1.559.3z"})]})});e.s(["SiSpotify",0,n],558047)},642573,e=>{"use strict";e.s(["getPageGalleryImages",0,function(e){let t=e.media?.gallery?.filter(e=>"image"===e.kind&&e.url).map(e=>e.url)??[];return t.length>0?t:e.image_urls??[]},"getPageLogoUrl",0,function(e){let t=e.media;if(t){let e=t.portrait?.url??t.logo?.url??t.gallery?.find(e=>"image"===e.kind)?.url??null;if(e)return e}return e.logo_url??null}])},870273,e=>{"use strict";let t=(0,e.i(475254).default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",0,t],870273)},504728,e=>{"use strict";var t=e.i(843476);let l=e.i(271645).forwardRef(function({title:e="Apple",color:l="currentColor",size:i=24,...n},s){return"default"===l&&(l="#000000"),(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,fill:l,viewBox:"0 0 24 24",ref:s,...n,children:[(0,t.jsx)("title",{children:e}),(0,t.jsx)("path",{d:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701"})]})});e.s(["SiApple",0,l],504728)},959558,e=>{"use strict";function t(e){return!Number.isFinite(e)||e<1?"0":e>=1e6?`${(e/1e6).toFixed(e>=1e7?0:1)}M`:e>=1e3?`${(e/1e3).toFixed(e>=1e4?0:1)}K`:String(Math.round(e))}function l(e,t,l){return Math.max(t,Math.min(l,e))}function i(e,t,i){return e<=t?0:e>=i?100:l(Math.log10(e/t)/Math.log10(i/t)*100,0,100)}e.s(["buildPopularitySnapshot",0,function(e){let n=e.enrichment_data?.data??{},s=e.profile??{},r=[],a=e.urls?.find(e=>e.platform?.toLowerCase()==="spotify")?.url;if(null!=n.spotify_monthly_listeners||null!=n.spotify_followers||null!=n.spotify_popularity){let e=n.spotify_monthly_listeners??0,l=n.spotify_followers??0,i=n.spotify_popularity??null,s=[];l>0&&s.push(`${t(l)} followers`),null!=i&&s.push(`Popularity ${i}/100`),r.push({id:"spotify",label:"Spotify",primary:e>0?`${t(e)} monthly listeners`:l>0?`${t(l)} followers`:`Popularity ${i??0}/100`,secondary:s.join(" · ")||null,href:a??null})}if(n.apple_music_id||n.apple_music_url){let t=e.apple_chart_best_rank??null,l=n.apple_music_genres??[],i=null!=t?`Chart rank #${t}`:l.length>0?`${l.slice(0,2).join(" · ")}`:"Listed in catalogue",s=[];null==t&&null==n.apple_music_genres&&s.push("Apple Music profile"),null!=t&&l.length>0&&s.push(l.slice(0,2).join(" · ")),r.push({id:"apple",label:"Apple Music",primary:i,secondary:s.length>0?s.join(" · "):null,href:n.apple_music_url??null})}if(null!=n.ig_followers&&n.ig_followers>0){let l=e.instagram_handle?`https://instagram.com/${e.instagram_handle}`:e.urls?.find(e=>e.platform?.toLowerCase()==="instagram")?.url;r.push({id:"instagram",label:"Instagram",primary:`${t(n.ig_followers)} followers`,secondary:null,href:l??null})}if(null!=e.source_fan_count&&e.source_fan_count>0){let l=e.facebook_username?`https://facebook.com/${e.facebook_username}`:e.urls?.find(e=>e.platform?.toLowerCase()==="facebook")?.url;r.push({id:"facebook",label:"Facebook",primary:`${t(e.source_fan_count)} fans`,secondary:null,href:l??null})}null!=n.coolness_score&&r.push({id:"partymate",label:"Partymate Coolness",primary:`${n.coolness_score}/100`,secondary:"Quality + scene fit signal from event data"}),null!=s.upcoming_event_count&&s.upcoming_event_count>0&&r.push({id:"events",label:"Active right now",primary:`${s.upcoming_event_count} upcoming show${1===s.upcoming_event_count?"":"s"}`,secondary:s.avg_popularity_heat?`Avg event heat ${Math.round(s.avg_popularity_heat)}/100`:null});let o=function(e,t,n,s){let r=[];if(e?.spotify_popularity!=null&&Number.isFinite(e.spotify_popularity)&&r.push({value:l(e.spotify_popularity,0,100),weight:.3}),e?.spotify_monthly_listeners!=null&&e.spotify_monthly_listeners>0&&r.push({value:i(e.spotify_monthly_listeners,1e3,1e7),weight:.25}),e?.coolness_score!=null&&r.push({value:l(e.coolness_score,0,100),weight:.25}),t?.avg_popularity_heat!=null&&r.push({value:l(t.avg_popularity_heat,0,100),weight:.1}),null!=s&&s>0){let e=l(100-25*Math.log10(s),0,100);
32r.push({value:e,weight:.2})}let a=(e?.spotify_followers??0)+(e?.ig_followers??0)+(n??0);if(a>0&&r.push({value:i(a,5e3,5e6),weight:.1}),r.length<2)return null;let o=r.reduce((e,t)=>e+t.weight,0);return Math.round(l(r.reduce((e,t)=>e+t.value*t.weight,0)/o,0,100))}(n,s,e.source_fan_count,e.apple_chart_best_rank??null),c=[];return null!=n.spotify_monthly_listeners&&c.push({label:"Spotify monthly listeners",value:n.spotify_monthly_listeners}),null!=n.ig_followers&&c.push({label:"Instagram followers",value:n.ig_followers}),null!=n.spotify_followers&&c.push({label:"Spotify followers",value:n.spotify_followers}),null!=e.source_fan_count&&c.push({label:"Facebook fans",value:e.source_fan_count}),{pmScore:o,sources:r,audienceHeadline:c.length?c.sort((e,t)=>t.value-e.value).slice(0,1).map(e=>({label:e.label,value:t(e.value)}))[0]:null}},"formatBigNumber",0,t])},362034,e=>{"use strict";var t=e.i(95187);let l=(0,t.createServerReference)("40b8343e9e881e04c95c199bbdfc6a0beb9206cee5",t.callServer,void 0,t.findSourceMapURL,"getArtistDetailBySlug");e.s(["getArtistDetailBySlug",0,l])},105443,e=>{"use strict";var t=e.i(95187);let l=(0,t.createServerReference)("60ad258d854e7e1bb291d0b2e3a15690809216b02d",t.callServer,void 0,t.findSourceMapURL,"getArtistVenuesPlayed");e.s(["getArtistVenuesPlayed",0,l])},809292,e=>{"use strict";var t=e.i(843476),l=e.i(504728),i=e.i(690562),n=e.i(99754),s=e.i(558047),r=e.i(778917),a=e.i(210407),o=e.i(283086),c=e.i(870273),d=e.i(959558),u=e.i(647163);function m({source:e}){let l=(0,t.jsxs)("div",{className:"flex items-center gap-3 rounded-lg px-2 py-2 transition-colors hover:bg-shell",children:[(0,t.jsx)("div",{className:"flex size-9 shrink-0 items-center justify-center rounded-md bg-shell",children:(0,t.jsx)(p,{id:e.id})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("span",{className:"text-xs font-medium text-ink-muted",children:e.label}),e.href?(0,t.jsx)(r.ExternalLink,{className:"size-3 text-ink-muted opacity-0 transition-opacity group-hover:opacity-100"}):null]}),(0,t.jsx)("div",{className:"truncate text-sm font-medium text-ink",children:e.primary}),e.secondary?(0,t.jsx)("div",{className:"truncate text-xs text-ink-muted",children:e.secondary}):null]})]});return e.href?(0,t.jsx)("a",{className:"group block",href:e.href,target:"_blank",rel:"noopener noreferrer",children:l}):l}function p({id:e}){switch(e){case"spotify":return(0,t.jsx)(s.SiSpotify,{className:(0,u.cn)("size-5"),color:"#1DB954"});case"apple":return(0,t.jsx)(l.SiApple,{className:"size-5 text-ink"});case"instagram":return(0,t.jsx)(n.SiInstagram,{className:"size-5",color:"#E1306C"});case"facebook":return(0,t.jsx)(i.SiFacebook,{className:"size-5",color:"#1877F2"});case"partymate":return(0,t.jsx)(c.Star,{className:"size-4 text-ink-muted"});case"events":return(0,t.jsx)(a.Music2,{className:"size-4 text-ink-muted"});default:return null}}e.s(["ArtistPopularityCard",0,function({artist:e}){let l=(0,d.buildPopularitySnapshot)(e);return 0===l.sources.length&&null===l.pmScore?null:(0,t.jsxs)("div",{className:"rounded-lg bg-card p-5 ring-1 ring-divider",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsx)("div",{className:"text-xs font-semibold uppercase tracking-wide text-ink-muted",children:"About this artist"}),l.audienceHeadline?(0,t.jsxs)("div",{className:"flex items-baseline gap-1.5",children:[(0,t.jsx)("span",{className:"text-2xl font-semibold leading-none text-ink",children:l.audienceHeadline.value}),(0,t.jsx)("span",{className:"text-xs text-ink-muted",children:l.audienceHeadline.label.toLowerCase()})]}):(0,t.jsx)("div",{className:"text-sm text-ink-muted",children:"Connected sources below"})]}),null!==l.pmScore?(0,t.jsxs)("div",{className:"flex shrink-0 flex-col items-end",children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,t.jsx)("span",{className:"text-3xl font-semibold leading-none text-ink",children:l.pmScore}),(0,t.jsx)("span",{className:"text-xs text-ink-muted",children:"/100"})]}),(0,t.jsxs)("div",{className:"mt-1 inline-flex items-center gap-1 rounded-full bg-lime px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide text-lime-text",children:[(0,t.jsx)(o.Sparkles,{className:"size-3"}),"PM Score"]})]}):null]}),l.sources.length>0?(0,t.jsx)("div",{className:"mt-4 flex flex-col gap-1.5",children:l.sources.map(e=>(0,t.jsx)(m,{source:e},e.id))}):null]})}])},376840,288619,33556,e=>{"use strict";var t=e.i(843476),l=e.i(271645),i=e.i(522016),n=e.i(401851),s=e.i(826514),r=e.i(664659),a=e.i(398361),o=e.i(346897),c=e.i(225920),d=e.i(647163),u=e.i(478558),m=e.i(210407);function p({src:e,fallback:i,className:n,alt:s=""}){let[r,a]=(0,l.useState)(e??i??null),[o,c]=(0,l.useState)(!1),[u,x]=(0,l.useState)(!1);return(0,l.useEffect)(()=>
32{a(e??i??null),c(!e&&!!i),x(!e&&!i)},[e,i]),(0,t.jsx)("div",{className:(0,d.cn)("relative shrink-0 overflow-hidden rounded-lg bg-shell",n),children:r&&!u?(0,t.jsx)("img",{src:r,alt:s,loading:"lazy",onError:function(){if(!o&&i&&r!==i){a(i),c(!0);return}x(!0)},className:"absolute inset-0 size-full object-cover"}):(0,t.jsx)(m.Music2,{"aria-hidden":"true",className:"absolute inset-0 m-auto size-5 text-ink-muted"})})}e.s(["EventImage",0,p],288619);var x=e.i(555122),f=e.i(158947);function h(e,t){if(0===e.length)return{kind:"empty"};if(!t)return{kind:"no-viewer",event:e[0]};let l=e.map(e=>{let l=(0,c.haversineKm)(t.latitude,t.longitude,e.place.latitude,e.place.longitude);return{event:e,km:l,trip:(0,c.classifyTrip)(l)}});for(let e of["day","weekend"]){let t=l.find(t=>t.trip.kind===e);if(t)return{kind:"nearby",event:t.event,km:Math.round(t.km),trip:t.trip}}let i=l[0];return{kind:"far",event:i.event,km:Math.round(i.km),trip:i.trip}}function g({featured:e,viewer:l,fallbackImageUrl:i}){if("empty"===e.kind)return null;if("no-viewer"===e.kind)return e.event?(0,t.jsxs)("div",{className:"rounded-lg bg-shell p-4",children:[(0,t.jsx)("div",{className:"text-xs font-medium text-ink-muted uppercase tracking-wide",children:"Next upcoming show"}),(0,t.jsx)(v,{event:e.event,fallbackImageUrl:i})]}):null;let n="nearby"===e.kind,s=e.event,r=(0,c.pickTravelOptionForClass)(e.km,e.trip.kind);return(0,t.jsxs)("div",{className:(0,d.cn)("rounded-lg p-4 ring-1",n?"bg-lime text-lime-text ring-lime":"bg-shell text-ink ring-divider"),children:[(0,t.jsx)("div",{className:(0,d.cn)("text-xs font-semibold uppercase tracking-wide",n?"text-lime-text/80":"text-ink-muted"),children:n?l?.city?`Closest stop \xb7 ${e.trip.label.toLowerCase()} from ${l.city}`:`Closest stop \xb7 ${e.trip.label.toLowerCase()}`:"Nearest upcoming show needs travel"}),(0,t.jsx)(v,{event:s,fallbackImageUrl:i,accentClass:n?"text-lime-text":"text-ink",subClass:n?"text-lime-text/70":"text-ink-muted",footer:r?(0,t.jsxs)("div",{className:(0,d.cn)("mt-2 flex flex-wrap items-center gap-3 text-xs",n?"text-lime-text/80":"text-ink-muted"),children:[(0,t.jsxs)("span",{children:[c.TRAVEL_MODE_ICON[r.mode]," ",c.TRAVEL_MODE_LABEL[r.mode]," ","· ~",(0,c.formatHours)(r.hours)]}),(0,t.jsx)("span",{children:"·"}),(0,t.jsxs)("span",{children:[e.km.toLocaleString()," km"]}),(0,t.jsx)("span",{children:"·"}),(0,t.jsxs)("span",{children:["â¬",r.priceLow,"ââ¬",r.priceHigh]})]}):null})]})}function v({event:e,fallbackImageUrl:l,accentClass:r="text-ink",subClass:a="text-ink-muted",footer:o}){let c=e.date?(0,s.parseISO)(e.date):null,u=c?(0,n.format)(c,"EEE, MMM d, yyyy"):"",m=e.slug?`/events/${e.slug}`:null,x=(0,t.jsxs)("div",{className:"mt-2 flex items-start gap-4",children:[(0,t.jsx)(p,{src:e.cover_image_url,fallback:l,className:"size-16"}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,t.jsx)("div",{className:(0,d.cn)("truncate text-base font-semibold",r),children:e.name??"Untitled show"}),(0,t.jsxs)("div",{className:(0,d.cn)("truncate text-sm",a),children:[e.place.name??"Venue TBA",e.place.city?` \xb7 ${e.place.city}`:"",e.place.country?`, ${e.place.country}`:""]}),(0,t.jsx)("div",{className:(0,d.cn)("text-sm",a),children:u}),o]})]});return m?(0,t.jsx)(i.default,{href:m,className:"-mx-1 block rounded-md px-1 transition-opacity hover:opacity-90",children:x}):x}function y({event:e,viewer:r,fallbackImageUrl:a}){let o=e.date?(0,s.parseISO)(e.date):null,d=o?(0,n.format)(o,"d"):"?",u=o?(0,n.format)(o,"MMM").toUpperCase():"",m=o?(0,n.format)(o,"EEE"):"",x=(0,l.useMemo)(()=>{if(!r)return null;let t=(0,c.haversineKm)(r.latitude,r.longitude,e.place.latitude,e.place.longitude),l=(0,c.classifyTrip)(t);return{km:Math.round(t),class:l,fastest:(0,c.pickTravelOptionForClass)(t,l.kind)}},[e,r]),f=[e.place.city,e.place.country].filter(Boolean).join(", "),h=e.slug?`/events/${e.slug}`:null,g=(0,t.jsxs)("div",{className:"flex items-center gap-4 roun
32ded-lg px-2 py-3 transition-colors hover:bg-shell",children:[(0,t.jsxs)("div",{className:"flex w-14 shrink-0 flex-col items-center justify-center text-center",children:[(0,t.jsx)("div",{className:"text-[10px] font-semibold tracking-[0.12em] text-ink-muted uppercase",children:u}),(0,t.jsx)("div",{className:"text-2xl font-semibold leading-none text-ink",children:d}),m?(0,t.jsx)("div",{className:"mt-0.5 text-[10px] font-medium text-ink-muted uppercase tracking-wider",children:m}):null]}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsx)("div",{className:"truncate text-sm font-medium text-ink",children:e.name??"Untitled show"}),(0,t.jsxs)("div",{className:"truncate text-xs text-ink-muted",children:[e.place.name??"Venue TBA",f?` \xb7 ${f}`:""]}),x?(0,t.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-2",children:[(0,t.jsx)(b,{info:x.class}),x.fastest?(0,t.jsxs)("span",{className:"text-[11px] text-ink-muted",children:[c.TRAVEL_MODE_ICON[x.fastest.mode]," ","~",(0,c.formatHours)(x.fastest.hours)," ·"," ",x.km.toLocaleString()," km"]}):null]}):null]}),(0,t.jsx)(p,{src:e.cover_image_url,fallback:a,className:"size-16"})]});return h?(0,t.jsx)(i.default,{href:h,children:g}):(0,t.jsx)("div",{children:g})}function b({info:e}){let l="good"===e.tone?"bg-lime text-lime-text":"ok"===e.tone?"bg-shell text-ink ring-1 ring-divider":(e.tone,"bg-shell text-ink-muted ring-1 ring-divider");return(0,t.jsx)("span",{className:(0,d.cn)("inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide",l),children:e.label})}e.s(["ArtistTourMapSection",0,function({tour:e,viewer:i,fallbackImageUrl:n}){let[s,c]=(0,l.useState)(!1),[m,p]=(0,l.useState)(!1),v=i?{latitude:i.latitude,longitude:i.longitude,city:i.city}:null,b=m?e.events:e.events.slice(0,5),k=e.events.length>5,w=(0,l.useMemo)(()=>h(e.events,i),[e.events,i]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("section",{className:"flex flex-col gap-5 rounded-lg bg-card p-5",children:[(0,t.jsxs)("header",{className:"flex items-center justify-between gap-3",children:[(0,t.jsx)("h2",{className:"text-2xl font-semibold text-ink",children:"Tour"}),(0,t.jsxs)("span",{className:"text-xs text-ink-muted",children:[e.stats.shows," show",1===e.stats.shows?"":"s"," ·"," ",e.stats.countries," countr",1===e.stats.countries?"y":"ies"]})]}),(0,t.jsx)(g,{featured:w,viewer:i,fallbackImageUrl:n}),i?(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-ink-muted",children:[(0,t.jsx)(o.MapPin,{className:"size-3.5"}),(0,t.jsxs)("span",{children:["Distances from"," ",(0,t.jsxs)("span",{className:"font-medium text-ink",children:[i.city??"your approximate location",i.country?`, ${i.country}`:""]})]})]}):null,(0,t.jsx)("div",{className:"flex flex-col gap-1",children:b.map(e=>(0,t.jsx)(y,{event:e,viewer:v,fallbackImageUrl:n},e.id))}),k?(0,t.jsxs)("button",{type:"button",onClick:()=>p(!m),className:"mx-auto inline-flex items-center gap-1.5 rounded-full border border-divider bg-page px-5 py-2 text-sm font-medium text-ink transition-colors hover:bg-shell",children:[(0,t.jsx)(r.ChevronDown,{className:(0,d.cn)("size-4 transition-transform",m&&"rotate-180")}),m?"Show fewer":`Show ${e.events.length-5} more show${e.events.length-5==1?"":"s"}`]}):null,(0,t.jsxs)("div",{className:"relative mt-1 h-[320px] w-full overflow-hidden rounded-lg",children:[(0,t.jsx)(f.TourMap,{events:e.events,viewer:v,interactive:!0,showReachRings:!!v,maxRings:2,fitPadding:{top:40,right:40,bottom:40,left:40}}),v?(0,t.jsx)(x.ReachRingLegend,{count:2,city:v.city,className:"absolute top-3 left-3 z-10 max-w-[200px]"}):null,(0,t.jsxs)("button",{type:"button",onClick:()=>c(!0),className:"absolute right-3 bottom-3 z-10 inline-flex items-center gap-1.5 rounded-full bg-page/90 px-3 py-1.5 text-xs font-medium text-ink shadow-sm ring-1 ring-divider transition-colors hover:bg-shell-hover","aria-label":"Open fullscreen tour map",children:[(0,t.jsx)(a.Maximize2,{className:"size-3.5"}),(0,t.jsx)("span",{children:"Expand"})]})]})]}),s?(0,t.jsx)(u.ArtistTourMapOverlay,{tour:e,viewer:i,onClose:()=>c(!1)}):null]})}
32,"pickFeaturedEvent",0,h],376840),e.s(["FALLBACK_VIEWER_LOCATION",0,{latitude:53.5511,longitude:9.9937,city:"Hamburg",country:"DE",source:"fallback"}],33556)}]);
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.