PageSourceSearch

https://www.recordstoreday.co.uk/_next/static/immutable/chunks/1qku0p_a43m18.js

js recordstoreday.co.uk collected 2026-09-24 19:15:48 UTC 27,524 bytes, 3 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,133058,e=>{"use strict";let t=(0,e.i(874822).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,t],133058)},549991,e=>{"use strict";let t=(0,e.i(874822).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,t],549991)},874800,e=>{"use strict";let t=(0,e.i(874822).default)("panel-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);e.s(["PanelLeft",0,t],874800)},594031,e=>{"use strict";let t=(0,e.i(874822).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,t],594031)},502195,e=>{"use strict";let t=(0,e.i(874822).default)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);e.s(["Share2",0,t],502195)},917760,115491,e=>{"use strict";var t=e.i(931080),r=e.i(388856),a=e.i(143246);e.s(["CardFavoriteButton",0,function({favorited:e,count:s,onClick:l}){let n=(0,a.formatWishlistCount)(s);return(0,t.jsx)(r.CardHeartCountButton,{active:e,count:s,ariaLabel:e?`Remove from favourites (${n} likes)`:`Add to favourites (${n} likes)`,onClick:l})}],917760);var s=e.i(853249),l=e.i(572986),n=e.i(161790);e.s(["useFavorites",0,function(){return(0,l.useFavoritesContext)()}
1,"useStoreFavoriteCount",0,function(e,t){let[r,a]=(0,s.useState)(t);return(0,s.useEffect)(()=>{a(t)},[t]),(0,s.useEffect)(()=>{function t(t){let r=t.detail;r?.storeId===e&&a(r.likeCount)}return window.addEventListener(n.STORE_LIKE_COUNT_EVENT,t),()=>{window.removeEventListener(n.STORE_LIKE_COUNT_EVENT,t)}},[e]),r}],115491)},920367,e=>{"use strict";var t=e.i(931080);function r([e,t,a]){let s=[e,t,a].map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*s[0]+.7152*s[1]+.0722*s[2]}function a(e,t){let a=r(e),s=r(t);return(Math.max(a,s)+.05)/(Math.min(a,s)+.05)}var s=e.i(549838);let l={default:{frame:"size-32","top-left":"top-[22px] left-[-38px] w-[150px] py-1.5 text-xs tracking-wider -rotate-45","bottom-right":"bottom-[22px] right-[-38px] w-[150px] py-1.5 text-xs tracking-wider -rotate-45"},sm:{frame:"size-20","top-left":"top-[14px] left-[-28px] w-[100px] py-1 text-[10px] tracking-wide -rotate-45","bottom-right":"bottom-[14px] right-[-22px] w-[100px] py-1 text-[10px] tracking-wide -rotate-45"}};e.s(["StoreFeaturedRibbon",0,function({label:e="Featured",size:r="default",placement:n="top-left",backgroundColor:i,trailing:o,className:c}){let d=l[r],u="featured"===e.trim().toLowerCase(),m=i?.trim()||null,h=m?function(e){if(!e)return"text-white";let t=function(e){let t=e.trim().replace(/^#/,"");if(!/^[0-9a-f]{3}$|^[0-9a-f]{6}$/i.test(t))return null;let r=3===t.length?t.split("").map(e=>e+e).join(""):t;return[Number.parseInt(r.slice(0,2),16),Number.parseInt(r.slice(2,4),16),Number.parseInt(r.slice(4,6),16)]}(e);return t?a([255,255,255],t)>=a([10,10,10],t)?"text-white":"text-neutral-950":"text-white"}(m):"text-white";return(0,t.jsx)("span",{className:(0,s.cn)("absolute z-[11] block",o?"overflow-visible":"overflow-hidden",!o&&"pointer-events-none",d.frame,"bottom-right"===n?"right-0 bottom-0":"top-0 left-0",c),children:(0,t.jsxs)("span",{className:(0,s.cn)("absolute flex items-center justify-center gap-0.5 px-1 text-center font-bold shadow-sm",h,!m&&"bg-primary",u?"uppercase tracking-wider":"tracking-wide normal-case",o&&"pointer-events-auto",d[n]),style:m?{backgroundColor:m}:void 0,children:[(0,t.jsx)("span",{className:"truncate",children:e}),o]})})}],920367)},312256,e=>{"use strict";var t=e.i(931080),r=e.i(853249),a=e.i(502195),s=e.i(133058);let l=(0,e.i(874822).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var n=e.i(576790),i=e.i(473068),o=e.i(549838);let c=[{platform:"x",label:"X",icon:function({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"})})}},{platform:"facebook",label:"Facebook",icon:i.FacebookIcon},{platform:"linkedin",label:"LinkedIn",icon:i.LinkedinIcon},{platform:"whatsapp",label:"WhatsApp",icon:function({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413Z"})})}},{platform:"bluesky",label:"Bluesky",icon:function({className:e}
1){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M12 10.8c-1.087-2.114-4.046-6.053-6.798-7.995C2.566.944 1.561 1.266.902 1.565.139 1.908 0 3.08 0 3.768c0 .69.378 5.65.624 6.479.815 2.736 3.713 3.66 6.383 3.364.136-.02.275-.039.415-.056-.138.022-.276.04-.415.056-3.912.58-7.387 2.005-2.83 7.078 5.013 5.19 6.87-1.113 7.823-4.308.953 3.195 2.05 9.271 7.733 4.308 4.267-4.308 1.172-6.498-2.74-7.078a8.741 8.741 0 0 1-.415-.056c.138.017.279.036.415.056 2.67.297 5.568-.628 6.383-3.364.246-.828.624-5.788.624-6.478 0-.69-.139-1.861-.902-2.203-.659-.298-1.664-.62-4.3 1.24C16.046 4.748 13.087 8.687 12 10.8Z"})})}},{platform:"reddit",label:"Reddit",icon:function({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:(0,t.jsx)("path",{d:"M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z"})})}},{platform:"email",label:"Email",icon:n.Mail}];function d({url:e,title:r,subtitle:a,className:s}){var l;let n,i;if(!e)return null;let u=(l={subtitle:a,title:r}
1,n=l.subtitle?.trim(),i=l.title?.trim(),n||i||"Record Store Day UK");return(0,t.jsxs)("div",{className:(0,o.cn)("space-y-3 border-t border-border pt-4",s),children:[(0,t.jsx)("p",{className:"text-sm font-medium text-foreground",children:"Share on social"}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:c.map(({platform:r,label:a,icon:s})=>{let l=function(e,t){let r=encodeURIComponent(t.url),a=encodeURIComponent(t.message),s=encodeURIComponent(`${t.message} ${t.url}`);switch(e){case"x":return`https://twitter.com/intent/tweet?url=${r}&text=${a}`;case"facebook":return`https://www.facebook.com/sharer/sharer.php?u=${r}`;case"linkedin":return`https://www.linkedin.com/sharing/share-offsite/?url=${r}`;case"whatsapp":return`https://wa.me/?text=${s}`;case"email":return`mailto:?subject=${a}&body=${encodeURIComponent(`${t.message}
2
3${t.url}`)}`;case"reddit":return`https://www.reddit.com/submit?url=${r}&title=${a}`;case"bluesky":return`https://bsky.app/intent/compose?text=${s}`}}(r,{url:e,message:u}),n="email"!==r;return(0,t.jsx)("a",{href:l,target:n?"_blank":void 0,rel:n?"noopener noreferrer":void 0,"aria-label":`Share on ${a}`,className:"flex size-10 items-center justify-center rounded-full border border-border bg-background text-foreground transition-colors hover:border-primary hover:bg-primary hover:text-white",children:(0,t.jsx)(s,{className:"size-4"})},r)})})]})}var u=e.i(776639),m=e.i(519455),h=e.i(793479);function x({open:e,onOpenChange:a,url:n,title:i,subtitle:o,description:c="Copy the link below to share"}){let[p,f]=(0,r.useState)(!1),[b,g]=(0,r.useState)(n);async function w(){try{await navigator.clipboard.writeText(b),f(!0),setTimeout(()=>f(!1),2e3)}catch{f(!1)}}return(0,r.useEffect)(()=>{e?n.startsWith("/")?g(`${window.location.origin}${n}`):g(n):f(!1)},[e,n]),(0,t.jsx)(u.Dialog,{open:e,onOpenChange:a,children:(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:i}),(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",children:[o?(0,t.jsx)("span",{className:"mb-1 block font-medium text-foreground",children:o}):null,c]})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(h.Input,{value:b,readOnly:!0,className:"font-mono text-sm",onClick:e=>e.currentTarget.select()}),(0,t.jsx)(m.Button,{type:"button",size:"icon",onClick:()=>void w(),"aria-label":p?"Link copied":"Copy link",children:p?(0,t.jsx)(s.Check,{className:"h-4 w-4 text-green-600"}):(0,t.jsx)(l,{className:"h-4 w-4"})})]}),(0,t.jsx)(d,{url:b,title:i,subtitle:o})]})})}let p="rounded-full bg-background/50 p-2 backdrop-blur-sm transition-colors hover:bg-background/70",f=`absolute top-2 z-10 ${p}`;e.s(["CardShareButton",0,function({sharePath:e,modalTitle:s,subtitle:l,description:n,ariaLabel:i,className:c,inline:d=!1}){let[u,m]=(0,r.useState)(!1);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{type:"button","aria-label":i,onClick:function(e){e.preventDefault(),e.stopPropagation(),m(!0)},className:(0,o.cn)(d?p:f,!d&&"right-12",c),children:(0,t.jsx)(a.Share2,{className:"h-4 w-4 text-white"})}),(0,t.jsx)(x,{open:u,onOpenChange:m,url:e,title:s,subtitle:l,description:n})]})},"cardIconSurfaceClassName",0,p],312256)},893484,e=>{"use strict";var t=e.i(931080),r=e.i(853249),a=e.i(874800),s=e.i(536243),l=e.i(594031),n=e.i(634986),i=e.i(417368),o=e.i(793479),c=e.i(665836),d=e.i(549838);function u({locationFilter:e,onLocationFilterChange:a}){let l=(0,r.useId)(),m=(0,r.useRef)(null),h=(0,r.useRef)(null),x=(0,r.useRef)(null),p=(0,r.useRef)(null),[f,b]=(0,r.useState)(e?.label??""),[g,w]=(0,r.useState)([]),[v,j]=(0,r.useState)(!1),[y,k]=(0,r.useState)(!1),[N,C]=(0,r.useState)(-1),[S,E]=(0,r.useState)(null),[M,_]=(0,r.useState)(null),O=(0,r.useCallback)(()=>{let e=h.current;if(!e)return;let t=e.getBoundingClientRect();_({top:t.bottom+4,left:t.left,width:t.width})},[]);function R(t){b(t.label),j(!1),w([]),a({lat:t.lat,lng:t.lng,label:t.label,radiusMiles:e?.radiusMiles??c.STORE_LOCATOR_DEFAULT_RADIUS_MILES})}return(0,r.useEffect)(()=>{b(e?.label??"")},[e?.label]),(0,r.useEffect)(()=>{let t=f.trim();
3if(!t||e&&t===e.label){w([]),k(!1),E(null);return}if(t.length<2){w([]),k(!1);return}let r=new AbortController,a=window.setTimeout(async()=>{k(!0),E(null);try{let e=await fetch(`/api/store-locator/address-search?q=${encodeURIComponent(t)}`,{signal:r.signal}),a=await e.json();if(!e.ok){w([]),E(a.error??"Could not search locations.");return}w(a.suggestions??[]),j(!0),C(a.suggestions?.length?0:-1)}catch(e){if(r.signal.aborted)return;w([]),E("Could not search locations.")}finally{r.signal.aborted||k(!1)}},300);return()=>{window.clearTimeout(a),r.abort()}},[f,e]),(0,r.useEffect)(()=>v&&0!==g.length?(O(),window.addEventListener("resize",O),window.addEventListener("scroll",O,!0),()=>{window.removeEventListener("resize",O),window.removeEventListener("scroll",O,!0)}):void _(null),[v,g.length,O]),(0,r.useEffect)(()=>{function e(e){let t=e.target;p.current?.contains(t)||x.current?.contains(t)||j(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,t.jsxs)("div",{ref:p,className:"space-y-3",children:[(0,t.jsxs)("div",{ref:h,className:"relative",children:[(0,t.jsx)(s.MapPin,{className:"pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-muted-foreground","aria-hidden":!0}),(0,t.jsx)(o.Input,{ref:m,id:"store-location-search",type:"search",value:f,onChange:e=>{b(e.target.value),j(!0)},onFocus:()=>{g.length>0&&j(!0)},onKeyDown:e=>{if(v&&0!==g.length){if("ArrowDown"===e.key&&(e.preventDefault(),C(e=>(e+1)%g.length)),"ArrowUp"===e.key&&(e.preventDefault(),C(e=>e<=0?g.length-1:e-1)),"Enter"===e.key&&N>=0){e.preventDefault();let t=g[N];t&&R(t)}"Escape"===e.key&&j(!1)}},placeholder:"Search location or postcode",className:"bg-background pr-9 pl-8","aria-label":"Search location or postcode","aria-expanded":v,"aria-controls":l,"aria-autocomplete":"list",role:"combobox",autoComplete:"postal-code"}),f?(0,t.jsx)("button",{type:"button",className:"absolute top-1/2 right-2 inline-flex size-7 -translate-y-1/2 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground","aria-label":"Clear location search",onClick:function(){b(""),w([]),j(!1),E(null),a(null),m.current?.focus()},children:(0,t.jsx)(i.X,{className:"size-4","aria-hidden":!0})}):null]}),"u">typeof document&&v&&g.length>0&&M?(0,n.createPortal)((0,t.jsx)("ul",{ref:x,id:l,role:"listbox",className:"fixed z-[60] max-h-52 overflow-y-auto rounded-lg border border-border bg-background shadow-lg",style:{top:M.top,left:M.left,width:M.width},children:g.map((e,r)=>(0,t.jsx)("li",{role:"presentation",children:(0,t.jsxs)("button",{type:"button",role:"option","aria-selected":N===r,className:(0,d.cn)("flex w-full items-start gap-2 px-3 py-2 text-left text-sm transition-colors",N===r?"bg-accent text-foreground":"text-foreground"),onMouseEnter:()=>C(r),onClick:()=>R(e),children:[(0,t.jsx)(s.MapPin,{className:"mt-0.5 size-3.5 shrink-0 text-muted-foreground","aria-hidden":!0}),(0,t.jsx)("span",{children:e.label})]})},e.id))}),document.body):null,y?(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Searching locations…"}):null,S?(0,t.jsx)("p",{className:"text-xs text-destructive",children:S}):null,e?(0,t.jsxs)("div",{className:"space-y-2 rounded-lg border border-border bg-muted/20 p-3",children:[(0,t.jsx)("div",{className:"flex items-center justify-between gap-3",children:(0,t.jsxs)("label",{htmlFor:"store-radius-miles",className:"text-sm font-medium text-foreground",children:["Within ",e.radiusMiles," miles"]})}),(0,t.jsx)("input",{id:"store-radius-miles",type:"range",min:0,max:c.STORE_LOCATOR_MAX_RADIUS_MILES,step:1,value:e.radiusMiles,onChange:t=>{var r;return r=Number(t.target.value),void(e&&a({...e,radiusMiles:r}))},className:"store-locator-radius-slider w-full","aria-valuemin":0,"aria-valuemax":c.STORE_LOCATOR_MAX_RADIUS_MILES,"aria-valuenow":e.radiusMiles}),(0,t.jsxs)("div",{className:"flex justify-between text-[11px] text-muted-foreground",children:[(0,t.jsx)("span",{children:"0 mi"}),(0,t.jsxs)("span",{children:[c.STORE_LOCATOR_MAX_RADIUS_MILES," mi"]})]})]}):null]})}var m=e.i(528656),h=e.i(549991),x=e.i(576790);let p=(0,e.i(874822).default)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 
30 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);var f=e.i(917760),b=e.i(920367);let g={default:{frame:"size-32","top-left":"top-[22px] left-[-38px] w-[150px] py-1.5 text-xs tracking-wider -rotate-45","bottom-right":"bottom-[22px] right-[-38px] w-[150px] py-1.5 text-xs tracking-wider -rotate-45"},sm:{frame:"size-20","top-left":"top-[14px] left-[-28px] w-[100px] py-1 text-[10px] tracking-wide -rotate-45","bottom-right":"bottom-[14px] right-[-22px] w-[100px] py-1 text-[10px] tracking-wide -rotate-45"}};function w({size:e="default",placement:r="top-left",className:a}){let s=g[e];return(0,t.jsx)("span",{className:(0,d.cn)("pointer-events-none absolute z-[11] block overflow-hidden",s.frame,"bottom-right"===r?"right-0 bottom-0":"top-0 left-0",a),children:(0,t.jsx)("span",{className:(0,d.cn)("absolute block text-center font-bold text-white uppercase shadow-sm",s[r]),style:{backgroundColor:c.STORE_LOCATOR_EVENT_MARKER_COLOR},children:"New event"})})}var v=e.i(519455),j=e.i(115491),y=e.i(554228);let k=(0,r.forwardRef)(function({store:e,selected:r,onSelect:a},l){let{isFavorited:n,toggle:i}=(0,j.useFavorites)(),o=n(e.id),u=(0,j.useStoreFavoriteCount)(e.id,e.likeCount),g=(0,y.getStoreContactHref)(e.email),k=g?.startsWith("mailto:")??!1,N=!!e.nextUpcomingEvent&&!e.featured;return(0,t.jsxs)("div",{className:(0,d.cn)("store-locator-list-card relative w-full overflow-hidden rounded-lg border transition-[background-color,border-color,box-shadow]",r?"border-primary/50 bg-accent shadow-sm ring-1 ring-primary/20":"border-border bg-background hover:border-border hover:bg-accent/60"),children:[e.featured?(0,t.jsx)(b.StoreFeaturedRibbon,{size:"sm",placement:"bottom-right",backgroundColor:c.STORE_LOCATOR_FEATURED_MARKER_COLOR}):N?(0,t.jsx)(w,{size:"sm",placement:"bottom-right"}):null,(0,t.jsx)("div",{className:"absolute top-2 right-2 z-10",onClick:e=>e.stopPropagation(),children:(0,t.jsx)(f.CardFavoriteButton,{favorited:o,count:u,onClick:async t=>{t.stopPropagation(),await i(e.id)}})}),(0,t.jsx)("button",{ref:l,type:"button",onClick:()=>a(e),"aria-current":r?"true":void 0,className:"w-full p-3 pr-16 text-left",children:(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("div",{className:"flex items-start justify-between gap-2",children:(0,t.jsx)("span",{className:"font-medium text-foreground",children:e.name})}),(0,t.jsxs)("div",{className:"space-y-1.5 text-xs text-muted-foreground",children:[e.location?(0,t.jsxs)("p",{className:"flex items-start gap-1.5",children:[(0,t.jsx)(s.MapPin,{className:"mt-0.5 size-3.5 shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{className:"line-clamp-2",children:e.location})]}):null,e.phone?(0,t.jsxs)("p",{className:"flex items-center gap-1.5",children:[(0,t.jsx)(p,{className:"size-3.5 shrink-0","aria-hidden":!0}),(0,t.jsx)("span",{children:e.phone})]}):null,e.distance?(0,t.jsx)("p",{className:"text-muted-foreground/80",children:e.distance}):null]})]})}),e.slug||g?(0,t.jsxs)("div",{className:(0,d.cn)("flex flex-wrap gap-2 px-3 pb-3",(e.featured||N)&&"pr-14"),children:[e.slug?(0,t.jsx)(v.Button,{variant:"secondary",size:"xs",asChild:!0,children:(0,t.jsxs)(m.default,{href:`/shops/${e.slug}`,children:[(0,t.jsx)(h.ExternalLink,{className:"size-3.5","aria-hidden":!0}),"Visit store page"]})}):null,g?(0,t.jsx)(v.Button,{variant:"secondary",size:"xs",asChild:!0,children:(0,t.jsxs)("a",{href:g,...k?{}:{target:"_blank",rel:"noopener noreferrer"},children:[(0,t.jsx)(x.Mail,{className:"size-3.5","aria-hidden":!0}),"Contact store"]})}):null]}):null]})});function N({stores:e,totalCount:a,query:n,onQueryChange:i,locationFilter:c,onLocationFilterChange:m,selectedStoreId:h,onSelect:x,className:p}){let f=(0,r.useRef)(new Map);return(0,r.useEffect)(()=>{h&&f.current.get(h)?.scrollIntoView({block:"nearest",behavior:"smooth"})},[h]),(0,t.jsxs)("aside",{className:(0,d.cn)("store-locator-sidebar flex w-[var(--store-locator-sidebar-width,24rem)] max-w-full flex-col border-r border-border bg-background",p),children:[(0,t.jsxs)("div",{className:"space-y-3 border-b border-border p-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-lg font-semibold tracking-tight text-foreground",children:"Find a shop"}),(0,t.jsxs)("p",{className:"text-sm text-muted-foreground",children:[e.length," ",1===e.length?"location":"locations",n.trim()||c?" matching your filters":" on the map",a!==e.length?` (${a} total)`:""]})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(l.Search,{className:"pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-muted-foreground","aria-hidden":!0}),(0,t.jsx)(o.Input,{id:"store-search",type:"search",value:n,onChange:e=>i(e.target.value),placeholder:"Search shop name",className:"bg-background pl-8","aria-label":"Search shop name"})]}),(0,t.jsx)(u,{locationFilter:c,onLocationFilterChange:m})]}),(0,t.jsx)("div",{className:"flex-1 overflow-y-auto p-2",children:0===e.length?(0,t.jsx)("div",{className:"flex h-full min-h-48 items-center justify-center p-6",children:(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)(s.MapPin,{className:"mx-auto 
3size-8 text-muted-foreground","aria-hidden":!0}),(0,t.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:0===a?"No stores with map coordinates yet.":c?.radiusMiles?`No stores within ${c.radiusMiles} miles of this location.`:n.trim()||c?"No stores match your filters.":"No stores available."})]})}):(0,t.jsx)("ul",{className:"flex flex-col gap-1",children:e.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(k,{ref:t=>{t?f.current.set(e.id,t):f.current.delete(e.id)},store:e,selected:h===e.id,onSelect:x})},e.id))})})]})}let C=(0,e.i(301313).default)(()=>e.A(237126),{loadableGenerated:{modules:[349857]},ssr:!1});function S({stores:e,center:r,zoom:a,selectedStore:s=null,mapLocation:l=null,onSelectStore:n,onClearSelection:i}){return(0,t.jsx)("div",{className:"relative isolate z-0 h-full overflow-hidden",children:(0,t.jsx)(C,{stores:e,center:r,zoom:a,selectedStore:s,mapLocation:l,onSelectStore:n,onClearSelection:i})})}var E=e.i(143202);e.s(["StoreLocatorClient",0,function({stores:e}){let[s,l]=(0,r.useState)(""),[n,i]=(0,r.useState)(null),[o,u]=(0,r.useState)(null),[m,h]=(0,r.useState)(!1),x=(0,r.useMemo)(()=>(function({stores:e,query:t,locationFilter:r}){var a=function(e,t){let r=t.trim();if(!r)return e;let a=r.toLowerCase();return e.filter(e=>e.name.toLowerCase().includes(a))}(e,t);if(!r)return a.map(e=>({...e,distance:void 0}));let s=a.map(e=>({...e,distanceMiles:(0,E.haversineDistanceMiles)(r.lat,r.lng,e.lat,e.lng)}));return s.sort((e,t)=>e.distanceMiles-t.distanceMiles),(r.radiusMiles<=0?s:s.filter(e=>e.distanceMiles<=r.radiusMiles)).map(({distanceMiles:e,...t})=>({...t,distance:(0,E.formatDistanceMiles)(e)}))})({stores:e,query:s,locationFilter:n}),[e,s,n]),p=s.trim()||n?x:e,f=n?{lat:n.lat,lng:n.lng,radiusMiles:n.radiusMiles}:null,b=o?[o.lat,o.lng]:n?[n.lat,n.lng]:c.UK_MAP_CENTER,g=o?c.SELECTED_STORE_ZOOM:c.UK_MAP_ZOOM;function w(e){u(e),h(!1)}return(0,t.jsxs)("div",{className:"store-locator-shell flex h-[calc(100vh-5rem)] overflow-hidden",style:{"--store-locator-sidebar-width":"24rem"},children:[m?(0,t.jsx)("button",{type:"button","aria-label":"Close store list",className:"fixed inset-0 z-30 bg-black/50 md:hidden",onClick:()=>h(!1)}):null,(0,t.jsx)(N,{stores:x,totalCount:e.length,query:s,onQueryChange:l,locationFilter:n,onLocationFilterChange:function(e){i(e),u(null)},selectedStoreId:o?.id??null,onSelect:w,className:(0,d.cn)("fixed inset-y-0 left-0 z-40 h-full shadow-xl transition-transform duration-300 md:relative md:z-auto md:translate-x-0 md:shadow-none",m?"translate-x-0":"-translate-x-full md:translate-x-0")}),(0,t.jsxs)("div",{className:"relative min-h-0 min-w-0 flex-1",children:[(0,t.jsx)(v.Button,{type:"button",variant:"secondary",size:"icon",className:"absolute top-3 left-3 z-20 border border-border bg-background shadow-sm md:hidden","aria-label":"Open store list","aria-expanded":m,onClick:()=>h(!0),children:(0,t.jsx)(a.PanelLeft,{className:"size-4","aria-hidden":!0})}),(0,t.jsx)(S,{stores:p,center:b,zoom:g,selectedStore:o,mapLocation:f,onSelectStore:w,onClearSelection:()=>u(null)})]})]})}],893484)},237126,e=>{e.v(t=>Promise.all(["static/immutable/chunks/218yr-x11hau2.js","static/immutable/chunks/0e65d_nh8cgll.js","static/immutable/chunks/1rckdk_zr1a63.css"].map(t=>e.l(t))).then(()=>t(349857)))},388856,e=>{"use strict";var t=e.i(931080),r=e.i(837018),a=e.i(312256),s=e.i(143246),l=e.i(549838);e.s(["CardHeartCountButton",0,function({active:e,count:n,ariaLabel:i,onClick:o}){return(0,t.jsxs)("button",{type:"button","aria-label":i,className:(0,l.cn)(a.cardIconSurfaceClassName,"flex shrink-0 items-center gap-1 py-2 pl-2 pr-2.5"),onClick:o,children:[(0,t.jsx)(r.Heart,{className:(0,l.cn)("h-4 w-4 shrink-0",e?"fill-[#e84e0d] text-[#e84e0d]":"text-white")}),(0,t.jsx)("span",{className:"text-xs font-semibold tabular-nums text-white",children:(0,s.formatWishlistCount)(n)})]})}])},793479,e=>{"use strict";var t=e.i(931080),r=e.i(853249),a=e.i(549838);let s=r.forwardRef(({className:e,type:r="text",...s},l)=>(0,t.jsx)("input",{ref:l,type:r,className:(0,a.cn)("flex h-10 w-full rounded-md border border-border bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...s}));s.displayName="Input",e.s(["Input",0,s])},665836,143202,e=>{"use strict";function t(e){return e*Math.PI/180}e.s(["LOCATION_ZOOM",0,13,"PIN_MARKER_ZOOM_THRESHOLD",0,10,"SELECTED_STORE_ZOOM",0,14,"STORE_LOCATOR_DEFAULT_RADIUS_MILES",0,25,"STORE_LOCATOR_EVENT_MARKER_COLOR",0,"#eab308","STORE_LOCATOR_FEATURED_MARKER_COLOR",0,"#22c55e","STORE_LOCATOR_MAX_RADIUS_MILES",0,50,"STORE_LOCATOR_POPUP_WIDTH",0,250,"STORE_LOCATOR_POPUP_WITH_EVENT_WIDTH",0,520,"UK_MAP_CENTER",0,[54.7024,-3.2766],"UK_MAP_ZOOM",0,6],665836),e.s(["formatDistanceMiles",0,function(e){return e<.1?"Less than 0.1 miles away":e<10?`${e.toFixed(1)} miles away`:`${Math.round(e)} miles away`},"haversineDistanceMiles",0,function(e,r,a,s){let l=t(a-e),n=t(s-r),i=Math.sin(l/2)**2+Math.cos(t(e))*Math.cos(t(a))*Math.sin(n/2)**2;
3return 7917.5226*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))},"milesToMeters",0,function(e){return 1609.344*e}],143202)},554228,e=>{"use strict";e.s(["getStoreContactHref",0,function(e){if(null==e)return null;let t=String(e).trim();return t?/^https?:\/\//i.test(t)||/^mailto:/i.test(t)?t:/^[^\s@]+@[^\s@]+\.[^\s@]+$/i.test(t)?`mailto:${t}`:/^www\./i.test(t)||/^[a-z0-9][a-z0-9.-]*\.[a-z]{2,}(\/[^\s]*)?$/i.test(t)&&!t.includes("@")?`https://${t}`:t:null}])}]);

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.