PageSourceSearch

https://leedsgigguide.com/_next/static/chunks/4630afc8a0afd612.js

js leedsgigguide.com collected 2026-10-09 21:55:33 UTC 11,540 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,678745,e=>{"use strict";let t=(0,e.i(475254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["default",()=>t])},643531,e=>{"use strict";var t=e.i(678745);e.s(["Check",()=>t.default])},107233,e=>{"use strict";let t=(0,e.i(475254).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",()=>t],107233)},639125,e=>{"use strict";let t=(0,e.i(475254).default)("list-plus",[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 19H3",key:"zzsher"}],["path",{d:"M18 9v6",key:"1twb98"}],["path",{d:"M21 12h-6",key:"bt1uis"}]]);e.s(["ListPlus",()=>t],639125)},65860,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(643531),a=e.i(639125),l=e.i(495242),i=e.i(431343),n=e.i(107233),c=e.i(173299),o=e.i(347548),u=e.i(644),d=e.i(987172),h=e.i(660869),m=e.i(373711);function x(e){return e.length<=1?e[0]??"":`${e.slice(0,-1).join(", ")} and ${e[e.length-1]}`}function g({queueUrl:e,pageType:g,pageSlug:p,headingClassName:f,className:y,heading:j,queueLabel:k,previewRows:b=0,initialQueue:v=null}){let[N,$]=(0,s.useState)(v?{url:e,tracks:v.tracks,artists:v.artists}:null),[w,z]=(0,s.useState)(!1),{player:P,queueKey:S,tracks:C,opened:A,registerQueue:M,playQueue:T,addToQueue:q}=(0,m.usePlayer)(),U=v?e:null;(0,s.useEffect)(()=>{if(e===U)return;let t=!1;return fetch(e).then(e=>e.ok?e.json():null).then(s=>{t||$({url:e,tracks:s?.tracks??[],artists:s?.artists??[]})}).catch(()=>{t||$({url:e,tracks:[],artists:[]})}),()=>{t=!0}},[e,U]);let B=N?.url===e?N:null,H=B?.tracks??[],L=(B?.artists??[]).filter(e=>e.trackCount>0).map(e=>e.name),R=L.length>0?L:Array.from(new Set(H.map(e=>e.artist))),O=R.length>1,W=`${g}:${p}`,F={key:W,pageType:g,pageSlug:p,title:k||x(R)||"Sample tracks",href:"artist"===g?`/artists/${p}`:"venue"===g?`/venues/${p}`:"promoter"===g?`/promoters/${p}`:"home"===g?"/":"crew"===g?`/crew/${p}`:"release"===g?`/releases/${p}`:"festival"===g?`/festivals/${p}`:`/listings/${p}`};(0,s.useEffect)(()=>{H.length>0&&M(F,H)},[B]);let D=S===W,E=D?P.idx:-1,K=D?P.phase:"idle",G=D?P.current:null,I=new Set(A?C.map(e=>e.id):[]);if(!B||0===H.length)return null;let V=w?H:H.slice(0,b),Z=G?.artUrl??H[0]?.artUrl??null;return(0,t.jsxs)("div",{className:y,children:[(0,t.jsx)("h2",{className:f,children:j??`Sample tracks by ${x(R)}`}),(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-md border p-3",children:[(0,t.jsx)(d.ArtworkWashFade,{src:Z}),(0,t.jsxs)("div",{className:"@container relative space-y-2",children:[G?(0,t.jsxs)("div",{className:"flex items-start gap-2.5",children:[G.artUrl&&(0,t.jsx)("img",{src:G.artUrl,alt:"",className:"size-11 shrink-0 rounded-md object-cover",loading:"lazy"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"text-sm font-semibold leading-snug break-words",title:P.currentTitle??void 0,children:P.currentTitle}),(0,t.jsxs)("p",{className:"mt-0.5 flex flex-wrap items-center gap-x-1.5 gap-y-1 text-[13px] text-muted-foreground",children:[(0,t.jsxs)("span",{children:[(0,t.jsx)("span",{className:"font-medium text-foreground",children:G.artist})," · ",G.detail]}),(0,t.jsx)(h.SourceChip,{source:G.source})]}),G.genres?.length?(0,t.jsx)("p",{className:"mt-0.5 text-xs italic text-muted-foreground",children:G.genres.slice(0,3).join(" · ")}):null]})]}):(0,t.jsx)("p",{className:"text-sm text-muted-foreground",children:D&&"done"===K?"That was the lot. Play it again?":`${1===H.length?"One track":`${H.length} tracks`} from ${"venue"===g?"the artists playing here soon":"promoter"===g?"the artists playing their gigs soon":"festival"===g?"the artists playing soon":"home"===g?"the artists playing Leeds this week":O?"the artists on this bill":"their pages around the web"}.`}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>D?P.jump(-1):((e,t="list")=>T(F,H,0,t))(0,"play"),title:"Previous track","aria-label":"Previous track",className:"flex size-8 shrink-0 items-center justify-center rounded-full border hover:bg-accent transition-colors",children:(0,t.jsx)(c.SkipBack,{className:"size-3.5"})}),(0,t.jsx)("button",{type:"button",onClick:()=>D?P.togglePlay():((e,t="list")=>T(F,H,0,t))(0,"play"),title:"playing"===K?"Pause":"Play","aria-label":"playing"===K?"Pause":"Play",className:"flex size-10 shrink-0 items-center justify-center rounded-full bg-primary text-primary-foreground hover:opacity-90 transition-opacity",children:"playing"===K?(0,t.jsx)(l.Pause,{className:"size-4"}):(0,t.jsx)(i.Play,{className:"size-4 translate-x-px"})}),(0,t.jsx)("button",{type:"button",onClick:()=>D?P.jump(1):((e,t="list")=>T(F,H,0,t))(0,"play"),title:"Next track","aria-label":"Next track",className:"flex size-8 shrink-0 items-center justify-center rounded-full border hover:bg-accent transition-colors",children:(0,t.jsx)(o.SkipForward,{className:"size-3.5"})}),(0,t.jsx)(h.ShuffleButton,{on:P.shuffle,onToggle:P.toggleShuffle}),(0,t.jsx)("button",{type:"button",onClick:()=>q(F,H),title:"Add all of these to the queue","aria-label":"Add all of these to the queue",className:"flex size-8 shrink-0 items-center justify-center rounded-full border hover:bg-accent transition-colors",children:(0,t.jsx)(a.ListPlus,{className:"size-3.5"})}),(0,t.jsx)("button",{type:"button",onClick:()=>z(e=>!e),className:"ml-auto text-xs text-muted-foreground underline underline-offset-4 hover:text-foreground transition-colors",children:w?"Hide tracks":1===H.length?"The track":`All ${H.length} tracks`})]}),G&&(0,t.jsx)(h.ScrubBar,{elapsed:P.elapsed,duration:P.duration,canSeek:P.canSeek,seek:P.seek,track:G}),V.length>0&&(0,t.jsx)("ul",{className:"divide-y overflow-hidden rounded-md border bg-background/40",children:V.map((e,s)=>(0,t.jsxs)("li",{className:`relative flex items-center overflow-hidden ${s===E?"bg-accent/60":""}`,children:[e.artUrl&&(0,t.jsx)(u.ArtworkWash,{src:e.artUrl,strength:"row"}),(0,t.jsxs)("button",{type:"button",onClick:()=>((e,t="list")=>T(F,H,e,t))(s),className:"relative flex min-w-0 flex-1 items-center gap-2 px-2.5 py-1.5 text-left text-sm hover:bg-accent/40",children:[(0,t.jsx)("span",{className:"min-w-0 shrink truncate font-medium",children:P.titleFor(e)}
1),(0,t.jsx)("span",{className:"min-w-[4.5rem] shrink truncate text-[13px] font-medium text-foreground/70",children:e.artist}),(0,t.jsxs)("span",{className:"ml-auto flex shrink-0 items-center gap-2",children:[e.genres?.length?(0,t.jsx)("span",{className:"hidden max-w-[16rem] truncate text-xs italic text-muted-foreground @xl:block",children:e.genres.slice(0,2).join(" · ")}):null,(0,t.jsx)(h.SourceChip,{source:e.source})]})]}),I.has((0,m.queuedId)(F.key,e.id))?(0,t.jsx)("span",{title:"Already in the queue",className:"relative mr-1.5 flex size-7 shrink-0 items-center justify-center text-muted-foreground",children:(0,t.jsx)(r.Check,{className:"size-3"})}):(0,t.jsx)("button",{type:"button",onClick:()=>q(F,[e]),title:"Add to the queue","aria-label":`Add ${e.title} to the queue`,className:"relative mr-1.5 flex size-7 shrink-0 items-center justify-center rounded-full border hover:bg-accent transition-colors",children:(0,t.jsx)(n.Plus,{className:"size-3"})})]},e.id))})]})]})]})}e.s(["SampleTracksPlayer",()=>g,"joinNames",()=>x])},653339,e=>{"use strict";let t=(0,e.i(475254).default)("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);e.s(["Music",()=>t],653339)},309317,e=>{"use strict";var t=e.i(843476),s=e.i(644),r=e.i(975157);function a({artUrl:e,artCrop:a,alt:l="",className:i}){if(!a)return(0,t.jsxs)("span",{className:(0,r.cn)("relative block size-full overflow-hidden",i),children:[(0,t.jsx)(s.ArtworkWash,{src:e,strength:"bed"}),(0,t.jsx)("img",{src:e,alt:l,loading:"lazy",className:"relative size-full object-contain"})]});let n={width:`${100/a.w}%`,height:`${100/a.h}%`,left:`${-100*a.x/a.w}%`,top:`${-100*a.y/a.h}%`,maxWidth:"none"};return(0,t.jsx)("span",{className:(0,r.cn)("relative block size-full overflow-hidden",i),children:(0,t.jsx)("img",{src:e,alt:l,loading:"lazy",style:n,className:"absolute"})})}e.s(["ReleaseArt",()=>a])},65685,e=>{"use strict";var t=e.i(843476),s=e.i(653339),r=e.i(495242),a=e.i(431343),l=e.i(522016),i=e.i(373711),n=e.i(309317);let c=(0,e.i(475254).default)("mouse-pointer-click",[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]]),o={poster:"aspect-[3/4]",square:"aspect-square"};function u({more:e,shape:s}){return(0,t.jsx)(l.default,{href:e.href,"aria-label":e.label,className:"group block",children:(0,t.jsxs)("div",{className:`flex ${o[s]} flex-col items-center justify-center gap-2 rounded-lg border bg-muted px-2 text-center transition-colors group-hover:bg-accent`,children:[(0,t.jsxs)("span",{className:"text-lg font-bold leading-tight tabular-nums",children:[e.count," more"]}),(0,t.jsx)(c,{className:"size-6 text-muted-foreground transition-colors group-hover:text-primary","aria-hidden":"true"})]})})}let d={album:"album",track:"single",video:"video"};function h(e){return new Date(`${e}T12:00:00Z`).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"})}let m={key:"releases:home",pageType:"releases",pageSlug:"home",title:"New releases from Leeds artists",href:"/latest-releases"};function x({rows:e,tracks:c,more:o}){let{player:x,queueKey:g,playQueue:p}=(0,i.usePlayer)(),f=g===m.key;return(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-6",children:[e.map((e,i)=>{let o=f&&x.idx===i&&"playing"===x.phase,u=f&&x.idx===i;return(0,t.jsxs)("div",{className:"group",children:[(0,t.jsxs)("div",{className:"relative aspect-square overflow-hidden rounded-lg border bg-muted",children:[e.artUrl?(0,t.jsx)(n.ReleaseArt,{artUrl:e.artUrl,artCrop:e.artCrop,className:"transition-transform group-hover:scale-[1.02]"}):(0,t.jsx)("div",{className:"flex size-full items-center justify-center",children:(0,t.jsx)(s.Music,{className:"size-6 text-muted-foreground"})}),(0,t.jsx)("button",{type:"button",onClick:()=>u?x.togglePlay():p(m,c,i,"list"),title:o?`Pause ${e.title}`:`Play ${e.title}`,"aria-label":o?`Pause ${e.title}`:`Play ${e.title}`,className:"absolute bottom-2 left-2 flex size-9 items-center justify-center rounded-full bg-primary text-primary-foreground shadow-sm transition-opacity hover:opacity-90",children:o?(0,t.jsx)(r.Pause,{className:"size-4"}):(0,t.jsx)(a.Play,{className:"size-4 translate-x-px"})})]}),(0,t.jsx)("p",{className:`mt-2 text-sm font-semibold leading-snug ${u?"text-primary":""}`,children:e.title}),(0,t.jsxs)("p",{className:"text-xs leading-snug text-muted-foreground",children:[(0,t.jsx)(l.default,{href:`/artists/${e.artistSlug}`,className:"hover:text-foreground hover:underline",children:e.artistName})," ","· ",d[e.kind]]}),(0,t.jsx)("p",{className:"text-xs leading-snug text-muted-foreground",children:e.forthcoming?`Out ${h(e.date)}`:h(e.date)}),e.genres?.length?(0,t.jsx)("p",{className:"truncate text-xs italic leading-snug text-muted-foreground",children:e.genres.slice(0,2).join(" · ")}):null]},`${e.artistSlug}-${i}`)}),o&&(0,t.jsx)(u,{more:o,shape:"square"})]})}e.s(["HomeReleaseStrip",()=>x],65685)}]);

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.