PageSourceSearch

https://aratac.com/_next/static/chunks/pages/shop-9ccf1f76faf1d559.js

js aratac.com collected 2026-10-07 19:39:43 UTC 53,141 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2804],{375:(e,t,r)=>{"use strict";r.d(t,{b:()=>a,c:()=>s});var l=r(7876),i=r(5135),n=r(2269);function s(e){let{children:t,className:r,delay:s=0,y:a=28,scale:o=1,amount:c=.2}=e,d=(0,i.I)();return(0,l.jsx)(n.P.div,{className:r,initial:!d&&{opacity:0,y:a,scale:o},whileInView:{opacity:1,y:0,scale:1},viewport:{once:!0,amount:c},transition:{duration:.45*!d,delay:d?0:s,ease:[.22,1,.36,1]},children:t})}function a(e){let{children:t,className:r,delay:s=0,y:a=32,scale:o=1}=e,c=(0,i.I)();return(0,l.jsx)(n.P.div,{className:r,initial:!c&&{opacity:0,y:a,scale:o},animate:{opacity:1,y:0,scale:1},transition:{duration:.65*!c,delay:c?0:s,ease:[.22,1,.36,1]},children:t})}},1050:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>el,default:()=>ei});var l=r(7876),i=r(4587),n=r.n(i),s=r(9099),a=r(4232),o=r(3456);function c(e){let{collections:t,search:r,collection:i,sort:n,resultCount:s,facets:c,showStickSpecificFacets:d=!0,merchandisingFilters:u=o.GF,onSearchChange:m,onCollectionChange:p,onSortChange:h,onMerchandisingFiltersChange:b,onExpansionChange:x}=e,f=(0,a.useRef)(null),g=(0,a.useRef)(0),v=(0,a.useRef)(null),w=(0,a.useRef)(null),y=(0,a.useRef)(!1),C=(0,a.useRef)(!1),[j,k]=(0,a.useState)(!1),[N,F]=(0,a.useState)(!1),[E,A]=(0,a.useState)(!1),B=(d?+!!u.playerLevel+ +!!u.position+ +!!u.playStyle+ +!!u.bowProfile+ +!!u.ageGroup+ +!!u.length:0)+ +!!u.benefit+ +!!u.availableOnly,S=0===B&&(N||E);C.current=S;let _=+!!r.trim()+ +!!i+ +("featured"!==n)+B,D="number"==typeof s?"".concat(s," ").concat(1===s?"product":"products"):"".concat(t.length," live collections"),P=(e,t)=>null==b?void 0:b({...u,[e]:t});(0,a.useEffect)(()=>{B>0&&window.innerWidth>=1024&&A(!0)},[B]),(0,a.useEffect)(()=>{k(!1),g.current=window.scrollY,v.current=null,null==x||x(S)},[S,x]),(0,a.useEffect)(()=>{g.current=window.scrollY;let e=()=>{var e,t,r;w.current=null;let l=f.current,i=Math.max(window.scrollY,0),n=i-g.current,s=null!=(r=null==(e=(t=window).matchMedia)?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches)&&r;if(!l||s||C.current){k(!1),g.current=i;return}let a=Number.parseFloat(window.getComputedStyle(l).top),o=Number.isFinite(a)?a:0,c=l.getBoundingClientRect().top<=o+2,d=y.current&&l.contains(document.activeElement);i<72||!c?(k(!1),v.current=null):n>4?(v.current=null,d||k(!0)):n<-4&&(null===v.current&&(v.current=g.current),v.current-i>=128&&k(!1)),(Math.abs(n)>4||i<72)&&(g.current=i)},t=()=>{null===w.current&&(w.current=window.requestAnimationFrame(e))},r=()=>{y.current=!0},l=()=>{y.current=!1};return window.addEventListener("keydown",r,!0),window.addEventListener("pointerdown",l,!0),window.addEventListener("wheel",l,{passive:!0,capture:!0}),window.addEventListener("scroll",t,{passive:!0}),()=>{window.removeEventListener("keydown",r,!0),window.removeEventListener("pointerdown",l,!0),window.removeEventListener("wheel",l,!0),window.removeEventListener("scroll",t),null!==w.current&&window.cancelAnimationFrame(w.current)}},[]);let L=(e,t)=>{let r=0===B&&(e||t);C.current=r,k(!1),g.current=window.scrollY,v.current=null,null==x||x(r)};(0,a.useEffect)(()=>{let e=null,t=()=>{"#shop-search"===window.location.hash&&(window.innerWidth<1024&&(C.current=!0,F(!0),k(!1),null==x||x(!0)),e=window.requestAnimationFrame(()=>{var e;null==(e=document.getElementById("shop-search"))||e.focus()}))};return t(),window.addEventListener("hashchange",t),()=>{window.removeEventListener("hashchange",t),null!==e&&window.cancelAnimationFrame(e)}},[x]);let R=j&&!S;return(0,l.jsx)("div",{ref:f,className:"sticky top-[6.25rem] z-30 [--filter-hide-distance:6.75rem] sm:top-[8.5rem] sm:[--filter-hide-distance:9rem]","data-scroll-state":R?"hidden":"visible",children:(0,l.jsxs)("section",{"aria-labelledby":"product-filters-heading",onFocusCapture:()=>k(!1),style:{transform:R?"translateY(calc(-100% - var(--filter-hide-distance)))":"translateY(0)"},className:"rounded-2xl border border-[#DCE5EF] bg-white/95 p-3 shadow-[0_12px_32px_rgba(16,46,82,0.08)] backdrop-blur-xl motion-safe:transition-[transform,opacity] motion-safe:duration-200 motion-safe:ease-out ".concat(R?"pointer-events-none opacity-0":"opacity-100"),children:[(0,l.jsxs)("div",{className:"lg:grid lg:grid-cols-[minmax(8rem,auto)_minmax(0,1fr)] lg:items-center lg:gap-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,l.jsxs)("div",{className:"min-w-0",children:[(0,l.jsx)("h2",{id:"product-filters-heading",className:"truncate text-[0.62rem] font-bold uppercase tracking-[0.24em] text-[#C2410C]",children:"Refine the range"}),(0,l.jsx)("p",{"aria-live":"polite","aria-atomic":"true",className:"mt-1 text-[0.6rem] font-semibold uppercase tracking-[0.16em] text-[#52677C]",children:D})]}),(0,l.jsxs)("button",{type:"button","aria-controls":"product-filter-control
1s","aria-expanded":N,"aria-label":N?"Hide product filters":"Show product filters",onClick:()=>{let e=!N,t=!!e&&E;F(e),e||A(!1),L(e,t)},className:"inline-flex min-h-[44px] cursor-pointer items-center gap-2 rounded-xl border border-[#CBD8E5] bg-[#F8FAFD] px-3 text-[0.62rem] font-bold uppercase tracking-[0.16em] text-[#0B1F3A] transition-colors hover:border-[#AEBED0] hover:bg-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C] focus-visible:ring-offset-2 lg:hidden",children:[(0,l.jsx)("span",{children:_?"Filters \xb7 ".concat(_):"Filters"}),(0,l.jsx)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:"h-4 w-4 motion-safe:transition-transform motion-safe:duration-200 ".concat(N?"rotate-180":""),children:(0,l.jsx)("path",{d:"m6 8 4 4 4-4"})})]})]}),(0,l.jsxs)("div",{id:"product-filter-controls",className:"mt-3 gap-2.5 sm:grid-cols-[minmax(0,1.5fr)_minmax(0,1fr)_minmax(0,1fr)] lg:mt-0 lg:grid ".concat(N?"grid":"hidden"),children:[(0,l.jsx)("input",{id:"shop-search",type:"search",value:r,onChange:e=>m(e.target.value),placeholder:"Search products","aria-label":"Search products",className:"min-h-[44px] min-w-0 scroll-mt-36 rounded-xl border border-[#CBD8E5] bg-[#F8FAFD] px-3.5 py-2.5 text-sm text-[#0B1F3A] outline-none transition placeholder:text-[#60758A] hover:border-[#AEBED0] focus:border-[#C2410C] focus:bg-white focus:ring-4 focus:ring-[#C2410C]/10"}),(0,l.jsxs)("select",{value:i,onChange:e=>p(e.target.value),"aria-label":"Filter by collection",className:"min-h-[44px] min-w-0 cursor-pointer rounded-xl border border-[#CBD8E5] bg-[#F8FAFD] px-3.5 py-2.5 text-sm text-[#0B1F3A] outline-none transition hover:border-[#AEBED0] focus:border-[#C2410C] focus:bg-white focus:ring-4 focus:ring-[#C2410C]/10",children:[(0,l.jsx)("option",{value:"",children:"All collections"}),t.map(e=>(0,l.jsx)("option",{value:e,children:e},e))]}),(0,l.jsxs)("select",{value:n,onChange:e=>h(e.target.value),"aria-label":"Sort products",className:"min-h-[44px] min-w-0 cursor-pointer rounded-xl border border-[#CBD8E5] bg-[#F8FAFD] px-3.5 py-2.5 text-sm text-[#0B1F3A] outline-none transition hover:border-[#AEBED0] focus:border-[#C2410C] focus:bg-white focus:ring-4 focus:ring-[#C2410C]/10",children:[(0,l.jsx)("option",{value:"featured",children:"Featured"}),(0,l.jsx)("option",{value:"best-selling",children:"Best selling"}),(0,l.jsx)("option",{value:"name-asc",children:"Name A-Z"}),(0,l.jsx)("option",{value:"price-asc",children:"Price low to high"}),(0,l.jsx)("option",{value:"price-desc",children:"Price high to low"})]})]})]}),b?(0,l.jsxs)("div",{className:"mt-3 border-t border-[#E3EAF1] pt-3 ".concat(N?"block":"hidden lg:block"),children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,l.jsxs)("button",{type:"button","aria-expanded":E,"aria-controls":"hockey-product-filter-controls",onClick:()=>{let e=!E;A(e),L(N,e)},className:"inline-flex min-h-[44px] cursor-pointer items-center gap-2 rounded-xl px-2 text-[0.62rem] font-bold uppercase tracking-[0.18em] text-[#0B1F3A] transition hover:text-[#C2410C] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C]",children:[d?"Hockey filters":"More filters",B?" \xb7 ".concat(B):"",(0,l.jsx)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,className:"h-4 w-4 transition-transform ".concat(E?"rotate-180":""),children:(0,l.jsx)("path",{d:"m6 8 4 4 4-4"})})]}),B?(0,l.jsx)("button",{type:"button",onClick:()=>null==b?void 0:b(o.GF),className:"min-h-[44px] cursor-pointer rounded-xl px-2 text-[0.6rem] font-bold uppercase tracking-[0.18em] text-[#C2410C] transition hover:text-[#0B1F3A] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C]",children:d?"Clear hockey filters":"Clear filters"}):null]}),E?(0,l.jsxs)("div",{id:"hockey-product-filter-controls",className:"mt-3 grid gap-2.5 sm:grid-cols-2 lg:grid-cols-4",children:[[...d?[["playerLevel","Player level",(null==c?void 0:c.playerLevels)||[]],["position","Position",(null==c?void 0:c.positions)||[]],["playStyle","Playing style",(null==c?void 0:c.playStyles)||[]]]:[],["benefit","Priority",(null==c?void 0:c.benefits)||[]],...d?[["bowProfile","Bow profile",(null==c?void 0:c.bowProfiles)||[]],["ageGroup","Age group",(null==c?void 0:c.ageGroups)||[]],["length","Stick length",(null==c?void 0:c.lengths)||[]]]:[]].map(e=>{let[t,r,i]=e;return i.length?(0,l.jsxs)("label",{className:"min-w-0",children:[(0,l.jsx)("span",{className:"sr-only",children:r}),(0,l.jsxs)("select",{value:String(u[t]),onChange:e=>P(t,e.target.value),"aria-label":r,className:"min-h-[44px] w-full min-w-0 cursor-pointer rounded-xl border border-[#CBD8E5] bg-[#F8FAFD] px-3.5 py-2.5 text-sm text-[#0B1F3A] outline-none transition hover:border-[#AEBED0] focus:border-[#C2410C] focu
1s:bg-white focus:ring-4 focus:ring-[#C2410C]/10",children:[(0,l.jsxs)("option",{value:"",children:["All ",r.toLowerCase()," options"]}),i.map(e=>(0,l.jsx)("option",{value:e,children:e},e))]})]},t):null}),(0,l.jsxs)("label",{className:"flex min-h-[44px] cursor-pointer items-center gap-3 rounded-xl border border-[#CBD8E5] bg-[#F8FAFD] px-3.5 text-sm font-semibold text-[#0B1F3A]",children:[(0,l.jsx)("input",{type:"checkbox",checked:u.availableOnly,onChange:e=>P("availableOnly",e.target.checked),className:"h-4 w-4 accent-[#C2410C]"}),"Available now"]})]}):null]}):null]})})}var d=r(9869),u=r(8477),m=r(6363),p=r(8230),h=r.n(p),b=r(2284),x=r(3549),f=r(8625);let g=new Intl.NumberFormat("en-GB",{style:"currency",currency:"GBP",minimumFractionDigits:0,maximumFractionDigits:2}),v=e=>!!(null==e?void 0:e.trim()),w=e=>Array.from(new Set(e.map(e=>String(e||"").trim()).filter(Boolean))),y=e=>{let t=w(e);return t.length?t.join(" \xb7 "):null},C=/\b(?:aramid|balance|blade|bow|carbon|channel|coating|composition|construction|core|fibre|fiberglass|fibreglass|foam|graphene|groove|head shape|kevlar|layup|material|reinforc(?:e|ed|ement)|resin|shaft|technology|weight)\b/i,j=/\b(?:3d skills?|adult|aerial|attack|beginner|club|defen[cs]e|defender|developing|drag[- ]?flick|elite|forward|goalkeeper|indoor|junior|midfield|outdoor|passing|performance|receiving|shooting)\b/i,k=/\b(?:balance|balanced|control|crisp|dampen(?:ed|ing)?|direct|feedback|feel|forgiving|handling|power|responsive|soft|stiff|touch)\b/i,N=(e,t)=>w(e.featureBullets).find(e=>t.test(e))||null,F=e=>{let t=e.slug.trim().toLowerCase(),r=t.match(/(?:^|-)((?:19|20)\d{2})-((?:19|20)\d{2})(?:-|$)/);if(r)return"".concat(r[1],"–").concat(r[2].slice(-2)," listing");let l=t.match(/(?:^|-)(\d{2})-(\d{2})(?:-|$)/);return l?"20".concat(l[1],"–").concat(l[2]," listing"):null},E=e=>{let t=(0,b.J7)(e).map(e=>e.price).sort((e,t)=>e-t),r=(0,f.X)(e).flatMap(e=>null!==e.price&&Number.isFinite(e.price)&&e.price>0?[e.price]:[]).sort((e,t)=>e-t),l=null!==e.price&&Number.isFinite(e.price)&&e.price>0?[e.price]:[],i=t.length?t:r.length?r:l;if(!i.length)return null;let n=i[0],s=i[i.length-1];return n===s?g.format(n):"".concat(g.format(n)," – ").concat(g.format(s))};function A(e){let{onRemove:t,onClear:r,onPurchase:i}=e,s=(0,a.useId)(),c=(e=>{let t=new Set;return e.filter(e=>!t.has(e.id)&&(t.add(e.id),!0)).slice(0,3)})(("selected"in e?e.selected:e.selectedProducts)||[]);if(!c.length)return null;let d=c.map(o.Zd),u=[{label:"Price",values:c.map(E)},{label:"Intended use",values:d.map((e,t)=>e.intendedUse||e.bestFor||N(c[t],j))},{label:"Feel & control",values:d.map((e,t)=>e.feel||N(c[t],k))},{label:"Player level",values:d.map(e=>y(e.playerLevels))},{label:"Position",values:d.map(e=>y(e.positions))},{label:"Play style",values:d.map(e=>y(e.playStyles))},{label:"Key benefits",values:d.map(e=>y([e.primaryBenefit,...e.benefits]))},{label:"Bow profile",values:d.map(e=>e.bowProfile)},{label:"Carbon",values:d.map(e=>null===e.carbonPercentage||void 0===e.carbonPercentage?null:"".concat(e.carbonPercentage,"%"))},{label:"Weight",values:d.map(e=>e.weight)},{label:"Balance",values:d.map(e=>e.balance)},{label:"Technology & construction",values:c.map(e=>y((e=>{let t=e.sections.flatMap(e=>(e.detailItems||[]).flatMap(e=>{var t;let r=(null==(t=e.label)?void 0:t.trim())||"";if(!r||!C.test(r))return[];let l=w(e.values);return l.length?["".concat(r,": ").concat(l.join(", "))]:[]}));return w([...t,...e.featureBullets.filter(e=>C.test(e))]).slice(0,3)})(e)))},{label:"Key differences",values:d.map(e=>y(e.comparisonHighlights||[]))},{label:"Available lengths",values:d.map(e=>y(e.availableLengths))},{label:"Availability",values:d.map(e=>e.isBuyable?"In stock":e.isSoldOut?"Sold out":"Not available online")}].filter(e=>e.values.some(v));return(0,l.jsxs)("section",{"aria-labelledby":s,className:"rounded-[1.75rem] border border-[#D9E3EC] bg-[#F7F9FB] p-4 shadow-[0_18px_45px_rgba(11,31,58,0.08)] sm:p-6",children:[(0,l.jsxs)("header",{className:"flex flex-col gap-4 border-b border-[#D9E3EC] pb-5 sm:flex-row sm:items-center sm:justify-between",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-[0.65rem] font-bold uppercase tracking-[0.24em] text-[#C2410C]",children:"Side-by-side details"}),(0,l.jsx)("h2",{id:s,className:"mt-1 font-display text-2xl font-black uppercase tracking-[-0.02em] text-[#0B1F3A] sm:text-3xl",children:"Compare products"}),(0,l.jsxs)("p",{className:"mt-1 text-sm text-[#52677C]","aria-live":"polite",children:[c.length," of 3 selected"]}),(0,l.jsx)("p",{className:"mt-1 max-w-xl text-xs leading-5 text-[#6A7D90]",children:"Only current catalogue facts are shown. Missing details stay marked as 
1not specified."})]}),(0,l.jsx)("button",{type:"button",onClick:r,className:"inline-flex min-h-[44px] cursor-pointer items-center justify-center self-start rounded-xl border border-[#B7C6D5] bg-white px-4 py-2 text-xs font-bold uppercase tracking-[0.16em] text-[#0B1F3A] transition-colors hover:border-[#C2410C] hover:text-[#C2410C] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C] focus-visible:ring-offset-2 sm:self-auto",children:"Clear comparison"})]}),(0,l.jsx)("ul",{"aria-label":"Selected products","data-comparison-columns":c.length,className:"grid gap-3 py-5 ".concat(3===c.length?"sm:grid-cols-2 lg:grid-cols-3":2===c.length?"sm:grid-cols-2":"grid-cols-1"),children:c.map((e,r)=>{let s=d[r],a=F(e),o=(0,b.J7)(e),c=E(e),u=e.images[0]||null,m=o.length>1?"Choose options":1===o.length?"Add to cart":null,p=s.isSoldOut?"Sold out":"Unavailable online";return(0,l.jsxs)("li",{className:"relative flex min-w-0 flex-col rounded-2xl border border-[#D9E3EC] bg-white p-3 shadow-[0_8px_24px_rgba(11,31,58,0.05)]",children:[(0,l.jsx)("button",{type:"button",onClick:()=>t(e.id),"aria-label":"Remove ".concat(e.name," from comparison"),className:"absolute right-2 top-2 z-10 inline-flex h-10 w-10 shrink-0 cursor-pointer items-center justify-center rounded-full border border-[#D9E3EC] bg-white/95 text-[#52677C] shadow-sm transition-colors hover:border-[#C2410C]/40 hover:bg-[#F4EFE5] hover:text-[#C2410C] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C]",children:(0,l.jsx)("svg",{viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round","aria-hidden":"true",className:"h-4 w-4",children:(0,l.jsx)("path",{d:"m5 5 10 10M15 5 5 15"})})}),(0,l.jsxs)("div",{className:"flex min-w-0 gap-3 pr-10",children:[(0,l.jsx)(h(),{href:(0,x.S)(e),"aria-label":"View ".concat(e.name),className:"relative h-20 w-20 shrink-0 overflow-hidden rounded-xl bg-aratac-product focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C]",children:u?(0,l.jsx)(n(),{src:u.url,alt:"","aria-hidden":"true",fill:!0,quality:80,sizes:"80px",className:"object-contain"}):(0,l.jsx)("span",{className:"flex h-full items-center justify-center font-display text-xl font-black uppercase text-[#C2410C]",children:e.name.slice(0,2)})}),(0,l.jsxs)("div",{className:"min-w-0 flex-1 py-1",children:[(0,l.jsxs)("p",{className:"text-[0.58rem] font-bold uppercase tracking-[0.18em] text-[#C2410C]",children:[String(r+1).padStart(2,"0")," \xb7 ",e.collection||"Product"]}),(0,l.jsx)(h(),{href:(0,x.S)(e),className:"mt-1 block text-base font-black leading-5 text-[#0B1F3A] underline-offset-4 hover:text-[#C2410C] hover:underline focus-visible:rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C]",children:e.name}),a?(0,l.jsx)("p",{className:"mt-1 text-[0.62rem] font-semibold uppercase tracking-[0.12em] text-[#6A7D90]",children:a}):null,(0,l.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-x-2 gap-y-1",children:[(0,l.jsx)("span",{className:"text-sm font-black text-[#0B1F3A]",children:c||"Price unavailable"}),(0,l.jsx)("span",{className:"rounded-full px-2 py-1 text-[0.55rem] font-bold uppercase tracking-[0.13em] ".concat(s.isBuyable?"bg-[#E4F5EC] text-[#0B6B45]":"bg-[#F1F3F6] text-[#52677C]"),children:s.isBuyable?"Available":p})]})]})]}),m?(0,l.jsx)("button",{type:"button",onClick:()=>i(e),"aria-label":o.length>1?"Choose options for ".concat(e.name):"Add ".concat(e.name," to cart"),className:"mt-3 inline-flex min-h-[44px] w-full cursor-pointer items-center justify-center rounded-xl bg-[#C2410C] px-4 py-2.5 text-[0.62rem] font-bold uppercase tracking-[0.16em] text-white transition-colors hover:bg-[#9A3412] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C] focus-visible:ring-offset-2",children:m}):(0,l.jsx)("button",{type:"button",disabled:!0,"aria-label":"".concat(p," \xb7 ").concat(e.name),className:"mt-3 inline-flex min-h-[44px] w-full cursor-not-allowed items-center justify-center rounded-xl bg-[#E8EDF3] px-4 py-2.5 text-[0.62rem] font-bold uppercase tracking-[0.16em] text-[#52677C]",children:p})]},e.id)})}),(0,l.jsx)("div",{role:"region","aria-label":"Product comparison table",tabIndex:0,className:"overflow-x-auto rounded-2xl border border-[#D9E3EC] bg-white shadow-[0_8px_24px_rgba(11,31,58,0.04)] focu
1s-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C] focus-visible:ring-offset-2",children:(0,l.jsxs)("table",{className:"w-full table-fixed border-collapse text-left ".concat(3===c.length?"min-w-[920px]":"min-w-[680px]"),children:[(0,l.jsxs)("caption",{className:"sr-only",children:["Product specifications for ",c.map(e=>e.name).join(", ")]}),(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{className:"bg-[#0B1F3A] text-white",children:[(0,l.jsx)("th",{scope:"col",className:"sticky left-0 z-[2] w-40 bg-[#0B1F3A] px-4 py-4 text-[0.65rem] font-bold uppercase tracking-[0.18em] text-white/75",children:"Feature"}),c.map(e=>(0,l.jsxs)("th",{scope:"col",className:"px-4 py-4 align-top",children:[(0,l.jsx)(h(),{href:(0,x.S)(e),className:"text-sm font-bold text-white underline-offset-4 hover:text-[#E7D4B5] hover:underline focus-visible:rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#E7D4B5]",children:e.name}),F(e)?(0,l.jsx)("span",{className:"mt-1 block text-[0.58rem] font-semibold uppercase tracking-[0.12em] text-white/65",children:F(e)}):null]},e.id))]})}),(0,l.jsx)("tbody",{children:u.map(e=>(0,l.jsxs)("tr",{className:"border-b border-[#E3EAF1] last:border-b-0",children:[(0,l.jsx)("th",{scope:"row",className:"sticky left-0 z-[1] bg-[#F4EFE5] px-4 py-4 text-xs font-bold uppercase tracking-[0.13em] text-[#5E4728] shadow-[1px_0_0_#E3EAF1]",children:e.label}),e.values.map((e,t)=>(0,l.jsx)("td",{className:"border-l border-[#E3EAF1] px-4 py-4 align-top text-sm leading-6 text-[#0B1F3A]",children:v(e)?e:(0,l.jsx)("span",{className:"text-[#52677C]",children:"Not specified"})},c[t].id))]},e.label))})]})})]})}function B(e){let{onClear:t,onClose:r,onPurchase:i,onRemove:n,open:s,products:o}=e,c=(0,a.useRef)(null),d=(0,a.useRef)(null);return((0,m.A)({active:s&&o.length>0,backdropRef:c,dialogRef:d,onClose:r}),s&&o.length&&"undefined"!=typeof document)?(0,u.createPortal)((0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{ref:c,className:"fixed inset-0 z-[70] bg-[#0B1F3A]/45 backdrop-blur-sm","aria-hidden":"true",onClick:r}),(0,l.jsxs)("div",{ref:d,role:"dialog","aria-modal":"true","aria-label":"Compare selected products",tabIndex:-1,className:"fixed inset-x-0 bottom-0 z-[71] max-h-[calc(100dvh-0.75rem)] overflow-y-auto rounded-t-[1.75rem] bg-white p-4 pb-[max(1rem,env(safe-area-inset-bottom))] pt-16 text-[#0B1F3A] shadow-[0_-24px_70px_rgba(11,31,58,0.24)] sm:p-6 sm:pb-[max(1.5rem,env(safe-area-inset-bottom))] sm:pt-16 md:bottom-auto md:left-1/2 md:top-1/2 md:w-[min(72rem,calc(100vw-3rem))] md:-translate-x-1/2 md:-translate-y-1/2 md:rounded-[1.75rem] md:px-6 md:pb-6 md:shadow-[0_28px_90px_rgba(11,31,58,0.24)]",children:[(0,l.jsx)("button",{type:"button",onClick:r,"aria-label":"Close product comparison",className:"absolute right-4 top-4 z-10 flex h-11 w-11 cursor-pointer items-center justify-center rounded-full border border-[#DCE5EF] bg-white text-[#0B1F3A] shadow-sm transition hover:border-[#C2410C]/45 hover:bg-[#F4EFE5] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C] focus-visible:ring-offset-2 sm:right-6",children:(0,l.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",className:"h-5 w-5","aria-hidden":"true",children:(0,l.jsx)("path",{d:"M6 6l12 12M18 6L6 18"})})}),(0,l.jsx)(A,{selectedProducts:o,onRemove:n,onClear:t,onPurchase:i})]})]}),document.body):null}var S=r(8977),_=r(8203),D=r(9675),P=r(5180),L=r(5325),R=r(3424),M=r(1796);function q(e){var t,r,i;let{product:s,onClose:o}=e,c=(0,a.useRef)(null),d=(0,a.useRef)(null),p=(0,a.useRef)(null),g=(0,a.useRef)(o),v=(0,a.useId)(),w=(0,a.useId)(),{openDrawer:y}=(0,_.A)(),{addToBag:C,isAdding:j,error:k}=(0,S.A)(),[N,F]=(0,a.useState)(null),[E,A]=(0,a.useState)(0);g.current=o;let B=(0,a.useMemo)(()=>s?(0,b.J7)(s):[],[s]),q=(0,a.useMemo)(()=>s?(0,f.X)(s).length:0,[s]),z=B.map(e=>e.id).join("|"),G=1===B.length?B[0].id:null;(0,a.useEffect)(()=>{F(G),A(0)},[G,z,null==s?void 0:s.id]);let I=1===B.length?B[0]:B.find(e=>e.id===N)||null,O=(0,f.Q)(I,q),W=s&&(s.images[E]||s.images[0])||null,T=(0,a.useMemo)(()=>
1s?(0,P.n)(s).slice(0,3):[],[s]),U=(0,a.useMemo)(()=>s?String(s.heroSubheadline||s.description||"").trim():"",[s]),Y=(0,a.useMemo)(()=>s?s.featureBullets.map(e=>e.trim()).filter(Boolean).slice(0,3):[],[s]);if((0,a.useEffect)(()=>{if(!s||!(null==I?void 0:I.imageUrl))return;let e=s.images.findIndex(e=>e.url===I.imageUrl);e>=0&&A(t=>t===e?t:e)},[s,null==I?void 0:I.imageUrl]),(0,m.A)({active:!!s,backdropRef:c,dialogRef:d,onClose:()=>g.current()}),!s||"undefined"==typeof document)return null;let H=B.length>1,V=B.length?Math.min(...B.map(e=>e.price)):null,Z=null!=(r=null!=(t=null==I?void 0:I.price)?t:V)?r:s.price,X=null!=(i=null==I?void 0:I.compareAt)?i:null,J=(0,L.K0)(I),K=(0,L.Vg)(I,s),$=(0,L.q0)(s),Q=!!(I&&null!==X&&X>I.price),ee=K||(I?(0,R.ig)(I.stockLabel,I.sellWhenOutOfStock):B.length>1?"".concat(B.length," options available"):"Unavailable online"),et=async()=>{var e;I&&await C({cmsProductId:s.id,cmsProductSlug:s.slug,clubSlug:s.clubSlug||null,cmsVariantId:I.cmsVariantId,productName:s.name,variantName:I.label,imageUrl:I.imageUrl||(null==W?void 0:W.url)||(null==(e=s.images[0])?void 0:e.url)||null,unitPrice:I.price,compareAtPrice:I.compareAt,quantity:1,currency:"GBP"},{sourceElement:p.current,openDrawer:!1,category:s.collection})&&(g.current(),window.setTimeout(y,0))};return(0,u.createPortal)((0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{ref:c,className:"fixed inset-0 z-[70] bg-[#0B1F3A]/45 backdrop-blur-sm","aria-hidden":"true",onClick:()=>g.current()}),(0,l.jsxs)("div",{ref:d,role:"dialog","aria-modal":"true","aria-labelledby":v,tabIndex:-1,"data-product-quick-view":!0,className:"fixed inset-x-0 bottom-0 z-[71] max-h-[calc(100dvh-0.75rem)] overflow-y-auto rounded-t-[1.75rem] bg-white pb-[max(0px,env(safe-area-inset-bottom))] text-[#0B1F3A] shadow-[0_-24px_70px_rgba(11,31,58,0.24)] md:bottom-auto md:left-1/2 md:top-1/2 md:w-[min(70rem,calc(100vw-3rem))] md:-translate-x-1/2 md:-translate-y-1/2 md:rounded-[1.75rem] md:pb-0 md:shadow-[0_28px_90px_rgba(11,31,58,0.24)]",children:[(0,l.jsx)("button",{type:"button",onClick:()=>g.current(),"aria-label":"Close product quick view",className:"absolute right-4 top-4 z-10 flex h-11 w-11 items-center justify-center rounded-full border border-[#DCE5EF] bg-white/95 text-[#0B1F3A] shadow-sm transition hover:border-[#C2410C]/45 hover:bg-[#F4EFE5] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C] focus-visible:ring-offset-2 sm:right-5 sm:top-5",children:(0,l.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",className:"h-5 w-5","aria-hidden":"true",children:(0,l.jsx)("path",{d:"M6 6l12 12M18 6L6 18"})})}),(0,l.jsxs)("div",{className:"grid md:grid-cols-[minmax(0,0.92fr)_minmax(0,1.08fr)]",children:[(0,l.jsxs)("div",{className:"bg-[#F5F8FC] p-4 pt-16 sm:p-6 sm:pt-16 md:p-8",children:[(0,l.jsx)("div",{ref:p,"data-product-quick-view-media":!0,className:"relative aspect-square overflow-hidden rounded-2xl bg-aratac-product",children:W?(0,l.jsx)(n(),{src:W.url,alt:W.alt||s.name,fill:!0,priority:!0,quality:90,sizes:"(min-width: 768px) 42vw, calc(100vw - 2rem)",className:"object-contain"}):(0,l.jsx)(M.Ay,{collection:s.collection,label:"Aratac range"})}),s.images.length>1?(0,l.jsx)("div",{className:"mt-3 flex gap-2 overflow-x-auto pb-1","aria-label":"Product images",children:s.images.map((e,t)=>(0,l.jsx)("button",{type:"button","aria-label":"View image ".concat(t+1," of ").concat(s.images.length),"aria-pressed":E===t,onClick:()=>A(t),className:"relative aspect-square w-16 shrink-0 overflow-hidden rounded-xl border bg-white transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C] focus-visible:ring-offset-2 ".concat(E===t?"border-[#C2410C] ring-1 ring-[#C2410C]":"border-[#DCE5EF] hover:border-[#C2410C]/50"),children:(0,l.jsx)(n(),{src:e.url,alt:"","aria-hidden":"true",fill:!0,quality:70,sizes:"64px",className:"object-contain"})},"".concat(e.url,"-").concat(t)))}):null]}),(0,l.jsxs)("div",{className:"flex flex-col p-5 sm:p-7 md:p-9 md:pl-10",children:[(0,l.jsx)("p",{className:"pr-14 text-[0.62rem] font-bold uppercase tracking-[0.24em] text-[#C2410C]",children:s.collection||"Aratac equipment"}),(0,l.jsx)("h2",{id:v,className:"mt-3 pr-12 font-display text-3xl font-black uppercase leading-[1.05] tracking-[-0.035em] text-[#0B1F3A] sm:text-4xl",children:s.name}),U?(0,l.jsx)("p",{className:"mt-3 line-clamp-3 text-sm leading-6 text-[#52677C]",children:U}):null,T.length>0?(0,l.jsx)("dl",{className:"mt-6 grid gap-px overflow-hidden rounded-xl border border-[#DCE5EF] bg-[#DCE5EF] sm:grid-cols-3 md:grid-cols-1 lg:grid-cols-3",children:T.map(e=>(0,l.jsxs)("div",{className:"min-w-0 bg-[#F5F8FC] p-3.5",children:[(0,l.jsx)("dt",{className:"text-[0.56rem] font-bold uppercase tracking-[0.18em] text-[#C2410C]",children:e.label}),(0,l.jsx)("dd",{className:"mt-1.5 text-sm font-semibold leading-5 text-[#0B1F3A]",children:e.value})]},e.label))}):null,Y.length>0?(0,l.jsxs)("div",{className:"mt-5",children:[(0,l.jsx)("h3",{className:"text-[0.56rem] font-bold uppercase tracking-[0.18em] text-[#C2410C]",children:"What you'll notice"}),(0,l.jsx)("ul",{className:"mt-2.5 grid gap-2",children:Y.map(e=>(0,l.jsxs)("li",{className:"flex items-start gap-2.5 text-sm leading-6 text-[#52677C]",children:[(0,l.jsx)("span",{className:"mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-[#C2410C]","aria-hidden":!0}),e]},e))})]}):null,(0,l.jsxs)("div",{className:"mt-6 border-t border-[#DCE5EF] pt-5",children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{className:"text-[0.58rem] font-bold uppercase tracking-[0.2em] text-[#52677C]",children:H&&!I?"From":"Price"}),(0,l.jsxs)("div",{className:"mt-1 flex flex-wrap items-baseline gap-2.5",children:[(0,l.jsx)("span",{className:"text-2xl font-black text-[#0B1F3A]",children:null===Z?"Price unavailable":(0,D.v)(Z)}),Q&&null!==X?(0,l.jsx)("span",{className:"text-sm font-semibold text-[#52677C] line-through",children:(0,D.v)(X)}):null]})]}),ee?(0,l.jsx)("p",{className:"rounded-full px-3 py-1.5 text-[0.6rem] font-bold uppercase tracking-[0.16em] ".concat(B.length>0?"bg-[#E4F5EC] text-[#0B6B45]":"bg-[#F1F3F6] text-[#52677C]"),children:ee}):null]}),H?(0,l.jsxs)("div",{className:"mt-5",children:[(0,l.jsx)("label",{htmlFor:w,className:"text-[0.62rem] font-bold uppercase tracking-[0.18em] text-[#0B1F3A]",children:"Choose an option"}),(0,l.jsxs)("select",{id:w,value:N||"",onChange:e=>F(e.target.value||null),className:"mt-2 min-h-[48px] w-full cursor-pointer rounded-xl border border-[#CBD8E5] bg-white px-4 py-3 text-sm font-semibold text-[#0B1F3A] transition hover:border-[#C2410C]/45 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C]",children:[(0,l.jsx)("option",{value:"",disabled:!0,children:"Select an option"}),B.map(e=>(0,l.jsxs)("option",{value:e.id,children:[e.label," - ",(0,D.v)(e.price)]},e.id))]})]}):O?(0,l.jsxs)("p",{className:"mt-4 text-sm font-semibold text-[#52677C]",children:["Option: ",(0,l.jsx)("span",{className:"text-[#0B1F3A]",children:O})]}):null]}),(0,l.jsxs)("div",{className:"mt-6 grid gap-3 sm:grid-cols-[minmax(0,1fr)_auto]",children:[(0,l.jsx)("button",{type:"button",onClick:()=>
1void et(),disabled:!I||j,className:"flex min-h-[52px] cursor-pointer items-center justify-center rounded-xl bg-[#C2410C] px-5 py-3 text-[0.68rem] font-bold uppercase tracking-[0.18em] text-white transition hover:bg-[#9A3412] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:bg-[#D7DEE7] disabled:text-[#52677C]",children:j?"Adding...":H&&!I?"Choose an option":I?J?$:"Add to cart":"Unavailable online"}),(0,l.jsx)(h(),{href:(0,x.S)(s),onClick:()=>g.current(),className:"flex min-h-[52px] cursor-pointer items-center justify-center rounded-xl border border-[#CBD8E5] bg-white px-5 py-3 text-[0.68rem] font-bold uppercase tracking-[0.18em] text-[#0B1F3A] transition hover:border-[#C2410C]/45 hover:bg-[#F4EFE5] hover:text-[#C2410C] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C]",children:"View full product"})]}),k?(0,l.jsx)("p",{role:"alert",className:"mt-3 text-sm leading-6 text-[#B42318]",children:k}):null]})]})]})]}),document.body)}let z=()=>(0,l.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4 transition-transform group-hover:translate-x-0.5","aria-hidden":!0,children:(0,l.jsx)("path",{d:"M5 12h14M13 6l6 6-6 6"})});function G(e){let{tile:t}=e,r="shop-promo-".concat(t.id,"-heading");return(0,l.jsxs)("aside",{"aria-labelledby":r,className:"group relative isolate flex min-h-[26rem] h-full overflow-hidden rounded-2xl bg-[#07182D] text-white shadow-[0_16px_46px_rgba(7,24,45,0.2)]",children:[(0,l.jsx)(n(),{src:t.imageSrc,alt:t.imageAlt,fill:!0,quality:90,sizes:"(min-width: 1280px) 300px, (min-width: 1024px) calc(33vw - 2rem), (min-width: 640px) calc(50vw - 2rem), calc(100vw - 2rem)",className:"-z-20 object-cover object-center motion-safe:transition-transform motion-safe:duration-700 motion-safe:group-hover:scale-[1.025]"}),(0,l.jsx)("div",{className:"absolute inset-0 -z-10 bg-[linear-gradient(180deg,rgba(7,24,45,0.08)_12%,rgba(7,24,45,0.38)_46%,rgba(7,24,45,0.96)_100%)]"}),(0,l.jsxs)("div",{className:"mt-auto p-5 sm:p-6",children:[(0,l.jsx)("p",{className:"text-[0.62rem] font-bold uppercase tracking-[0.22em] text-[#E7D4B5]",children:t.eyebrow}),(0,l.jsx)("h2",{id:r,className:"mt-3 font-display text-3xl font-black uppercase leading-[0.95] tracking-[-0.035em] text-white",children:t.heading}),(0,l.jsx)("p",{className:"mt-3 text-sm leading-6 text-white/85",children:t.body}),(0,l.jsxs)(h(),{href:t.href,className:"relative mt-5 inline-flex min-h-[44px] items-center gap-2 rounded-xl bg-[#C2410C] px-5 py-2.5 text-[0.66rem] font-bold uppercase tracking-[0.16em] text-white shadow-[0_12px_28px_rgba(194,65,12,0.3)] transition-colors hover:bg-[#9A3412] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#D8C18F] focus-visible:ring-offset-2 focus-visible:ring-offset-[#07182D] after:absolute after:inset-[-20rem] after:content-['']",children:[t.ctaLabel,(0,l.jsx)(z,{})]})]})]})}let I={finder:{id:"finder",eyebrow:"Aratac gear finder",heading:"Find your stick.",body:"Describe your game and we’ll shortlist the strongest current matches.",ctaLabel:"Start finder",href:"/#gear-guide",imageSrc:"/images/about/player-control.webp",imageAlt:"An Aratac player controlling a hockey ball"},tape:{id:"tape",eyebrow:"Restock",heading:"Tape & grips.",body:"Chamois grips, coloured grips and stick tape — keep your stick playing its best.",ctaLabel:"Shop accessories",href:"/shop/collections/accessories",imageSrc:"/images/about/player-striking.webp",imageAlt:"An Aratac player striking a hockey ball"},sizeGuide:{id:"size-guide",eyebrow:"Sizing",heading:"Not sure on length?",body:"Match your height to the right stick length in under a minute.",ctaLabel:"Open size guide",href:"/size-guide",imageSrc:"/images/journal/choosing-your-stick.webp",imageAlt:"Aratac hockey sticks lined up for selection"},teamwear:{id:"teamwear",eyebrow:"Clubs & schools",heading:"Custom teamwear.",body:"Playing kit, training layers and full club shops built around your colours.",ctaLabel:"Explore teamwear",href:"/teamwear",imageSrc:"/images/teamwear/loretto-jacket.webp",imageAlt:"Aratac custom teamwear jacket"}},O=(e,t)=>({...I[e],position:t}),W=new Set(["bags","stick-bags","backpacks","holdalls","ball-bags"]),T=new Set(["clothing","activewear","casual-wear"]);var U=r(2200),Y=r(375),H=r(7192);let V=e=>e.trim().toLowerCase().replace(/&/g,"and").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""),Z=e=>{let t=V(e);return"apparel"===t?"clothing":t},X=e=>{let t=Z(e);return"clothing"===t?"Clothing":"activewear"===t?"Activewear":"casual-wear"===t?"Casual wear":e},J=e=>Array.isArray(e)?e[0]||"":e||"",K=(e,t)=>e.name.localeCompare(t.name,"en-GB"),$=(e,t)=>e.filter(e=>!t||("clearance"===Z(t)?(0,o.kJ)(e):(0,o.pw)(e,t))),Q=e=>{let t=(0,o.$K)(e),r=e.length>0&&e.every(e=>(0,o.Zd)(e).isStick);return{facets:r?t:{...t,playerLevels:[],positions:[],playStyles:[],bowProfiles:[],ageGroups:[],lengths:[]},showStickSpecificFacets:r}},ee=(e,t)=>
1{let r=e.trim().toLocaleLowerCase("en-GB");return r&&t.find(e=>e.trim().toLocaleLowerCase("en-GB")===r)||""},et=(e,t)=>({playerLevel:ee(e.playerLevel,t.playerLevels),position:ee(e.position,t.positions),playStyle:ee(e.playStyle,t.playStyles),benefit:ee(e.benefit,t.benefits),bowProfile:ee(e.bowProfile,t.bowProfiles),ageGroup:ee(e.ageGroup,t.ageGroups),length:ee(e.length,t.lengths),availableOnly:e.availableOnly}),er=e=>({level:e.playerLevel,position:e.position,style:e.playStyle,benefit:e.benefit,bow:e.bowProfile,age:e.ageGroup,length:e.length,available:e.availableOnly});var el=!0;let ei=e=>{let{products:t}=e,r=(0,s.useRouter)(),[i,u]=(0,a.useState)(""),[m,p]=(0,a.useState)(""),[h,b]=(0,a.useState)("featured"),[x,f]=(0,a.useState)(o.GF),[g,v]=(0,a.useState)([]),[w,y]=(0,a.useState)(""),[C,j]=(0,a.useState)(!1),[k,N]=(0,a.useState)(null),[F,E]=(0,a.useState)(!1),A=(0,a.useRef)(null),S=(0,a.useCallback)(e=>{window.requestAnimationFrame(()=>{var t;null==(t=(e?document.getElementById("compare-product-".concat(e)):null)||A.current)||t.focus()})},[]),_=(0,a.useCallback)(()=>{v([]),y("Comparison cleared."),j(!1),S()},[S]),D=(0,a.useMemo)(()=>{let e=new Set(t.map(e=>e.collection).filter(Boolean).map(X));return(0,o.XK)(t).forEach(t=>e.add(t)),(0,o.zi)(t).forEach(t=>e.add(t)),t.some(o.kJ)&&e.add("Clearance"),Array.from(e).sort((e,t)=>e.localeCompare(t))},[t]),P=(0,a.useMemo)(()=>$(t,m),[m,t]),{facets:L,showStickSpecificFacets:R}=(0,a.useMemo)(()=>Q(P),[P]);(0,a.useEffect)(()=>{if(!r.isReady)return;let e=Array.isArray(r.query.collection)?r.query.collection[0]:r.query.collection,t=e?Z(e):"";p(D.find(e=>Z(e)===t)||""),u(J(r.query.search)),b(J(r.query.sort)||"featured"),f({playerLevel:(0,o.jq)(J(r.query.level)),position:J(r.query.position),playStyle:J(r.query.style),benefit:J(r.query.benefit),bowProfile:J(r.query.bow),ageGroup:J(r.query.age),length:J(r.query.length),availableOnly:"1"===J(r.query.available)})},[D,r.isReady,r.query]);let M=(0,a.useCallback)(e=>{if(!r.isReady)return;let t={...r.query};Object.entries(e).forEach(e=>{let[r,l]=e;!1===l||""===l?delete t[r]:t[r]=!0===l?"1":l}),r.replace({pathname:r.pathname,query:t},void 0,{shallow:!0,scroll:!1})},[r]),z=(0,a.useCallback)(e=>{let l=et(x,Q($(t,e)).facets);p(e),f(l),r.isReady&&M({collection:e?V(e):"",...er(l)})},[x,t,r.isReady,M]),I=(0,a.useCallback)(e=>{f(e),M(er(e))},[M]);(0,a.useEffect)(()=>{let e=et(x,L);Object.keys(o.GF).every(t=>e[t]===x[t])||(f(e),M(er(e)))},[L,x,M]);let ee=(0,a.useMemo)(()=>{let e=i.trim().toLowerCase(),r=t.filter(t=>{let r=!m||("clearance"===Z(m)?(0,o.kJ)(t):(0,o.pw)(t,m)),l=(0,o.Zd)(t),i=[t.name,t.description,t.heroHeadline,t.heroSubheadline,t.collection,(0,o.u_)(t),...(0,o.ix)(t),...l.playerLevels,...l.positions,...l.playStyles,...l.benefits,l.bowProfile,l.ageGroup].filter(Boolean).join(" ").toLowerCase();return r&&(0,o.eZ)(t,x)&&(!e||i.includes(e))});return"featured"===h?(0,o.Ym)(r,{prioritizeClothingInMixedResults:"clearance"!==Z(m)}):[...r].sort((e,t)=>{var r,l,i,n;return"best-selling"===h?((e,t)=>{var r,l;let i=null==(r=e.merchandising)?void 0:r.bestSellingRank,n=null==(l=t.merchandising)?void 0:l.bestSellingRank,s=null!=i,a=null!=n;return s!==a?s?-1:1:s&&a&&i!==n?i-n:((e,t)=>{var r,l,i,n;let s=null==(r=e.merchandising)?void 0:r.featuredRank,a=null==(l=t.merchandising)?void 0:l.featuredRank,o=(null==(i=e.merchandising)?void 0:i.featured)===!0,c=(null==(n=t.merchandising)?void 0:n.featured)===!0,d=o&&null!=s,u=c&&null!=a;return d!==u?d?-1:1:d&&u?s===a?K(e,t):s-a:o!==c?o?-1:1:K(e,t)})(e,t)})(e,t):"price-asc"===h?(null!=(r=e.price)?r:Number.MAX_SAFE_INTEGER)-(null!=(l=t.price)?l:Number.MAX_SAFE_INTEGER):"price-desc"===h?(null!=(i=t.price)?i:0)-(null!=(n=e.price)?n:0):"name-asc"===h?K(e,t):0})},[m,x,t,i,h]),el=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(0===ee.length)return;let e=ee.map(e=>e.id).join("|");el.current!==e&&(el.current=e,H.z.viewItemList("shop","Shop",ee.map((e,t)=>{var r,l;return{item_id:e.id,item_name:e.name,price:null!=(r=e.price)?r:void 0,index:t,item_category:null!=(l=e.collection)?l:void 0}})))},[ee]),(0,a.useEffect)(()=>{let e=i.trim();if(!e)return;let t=setTimeout(()=>H.z.search(e),600);return()=>clearTimeout(t)},[i]);let ei=g.flatMap(e=>{let r=t.find(t=>
1t.id===e);return r?[r]:[]}),en=(0,a.useMemo)(()=>{let e=new Map;return"featured"!==h||i.trim()||ee.length<4||(e=>e?"sticks"===e?[O("finder",4),O("sizeGuide",10),O("tape",16)]:W.has(e)?[O("tape",6)]:"protection"===e?[O("tape",4)]:"accessories"===e?[O("finder",4)]:T.has(e)?[O("teamwear",4)]:[]:[O("finder",4),O("tape",12),O("teamwear",20)])(m?Z(m):"").forEach(t=>{let r=Math.min(t.position,ee.length);e.set(r,[...e.get(r)||[],t])}),e},[m,ee.length,i,h]),es=e=>{v(t=>t.includes(e.id)?(y("".concat(e.name," removed from comparison.")),t.filter(t=>t!==e.id)):t.length>=3?(y("You can compare up to three sticks. Remove one before adding another."),t):(y("".concat(e.name," added to comparison.")),[...t,e.id]))};return(0,l.jsxs)(U.A,{title:"Shop",description:"Browse the full Aratac Hockey range — sticks, protection, bags, layers and teamwear engineered for the modern game.",chromeTone:"light",themeColor:"#ffffff",shellClassName:"bg-white text-[#0B1F3A]",headerUpwardRevealDistance:64,headerAutoHidePaused:F,children:[(0,l.jsxs)("section",{className:"space-y-6 lg:space-y-8",children:[(0,l.jsx)(Y.c,{children:(0,l.jsxs)("header",{className:"max-w-3xl py-1 sm:py-2",children:[(0,l.jsx)("p",{className:"text-[0.62rem] font-bold uppercase tracking-[0.3em] text-[#C2410C]",children:"Shop"}),(0,l.jsx)("h1",{ref:A,tabIndex:-1,className:"mt-3 font-display text-[clamp(2.4rem,6vw,4.5rem)] font-black uppercase leading-[0.92] tracking-[-0.05em] text-[#0B1F3A]",children:"Performance hockey gear."}),(0,l.jsx)("p",{className:"mt-4 text-base leading-7 text-[#52677C] sm:text-lg",children:"Sticks, bags, protection, clothing and accessories."})]})}),(0,l.jsx)(c,{collections:D,search:i,collection:m,sort:h,resultCount:ee.length,facets:L,showStickSpecificFacets:R,merchandisingFilters:x,onSearchChange:e=>{u(e),M({search:e})},onCollectionChange:z,onSortChange:e=>{b(e),M({sort:"featured"===e?"":e})},onMerchandisingFiltersChange:I,onExpansionChange:E}),(0,l.jsx)("p",{role:"status","aria-live":"polite",className:"sr-only",children:w}),ei.length?(0,l.jsxs)("div",{role:"region","aria-label":"Product comparison selection","data-shop-comparison-tray":!0,className:"fixed bottom-[max(1.25rem,env(safe-area-inset-bottom))] left-1/2 z-[45] flex w-[calc(100%_-_2rem)] max-w-xl -translate-x-1/2 flex-wrap items-center justify-between gap-2 rounded-2xl border border-white/20 bg-[#0B1F3A] p-2 text-white shadow-[0_18px_48px_rgba(7,24,45,0.3)] sm:w-auto sm:min-w-[26rem] sm:flex-nowrap",children:[(0,l.jsx)("ul",{className:"flex min-w-0 items-center gap-2 sm:flex-1","aria-label":"Selected sticks",children:ei.map(e=>{let t=e.id.startsWith("mock-")?null:e.images[0];return(0,l.jsx)("li",{className:"shrink-0",children:(0,l.jsxs)("button",{type:"button",onClick:()=>{es(e),S(e.id)},"aria-label":"Remove ".concat(e.name," from comparison"),className:"group/selected relative flex h-11 w-11 cursor-pointer items-center justify-center overflow-hidden rounded-xl border-2 border-[#0B1F3A] bg-white text-[0.62rem] font-black uppercase text-[#0B1F3A] shadow-sm focus-visible:z-10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#E7D4B5]",children:[t?(0,l.jsx)(n(),{src:t.url,alt:"","aria-hidden":"true",fill:!0,quality:80,sizes:"44px",className:"object-contain"}):e.name.slice(0,2),(0,l.jsx)("span",{"aria-hidden":!0,className:"absolute right-0.5 top-0.5 flex h-3.5 w-3.5 items-center justify-center rounded-full bg-[#0B1F3A] text-[0.55rem] leading-none text-white",children:"\xd7"})]})},e.id)})}),(0,l.jsxs)("div",{className:"ml-auto flex shrink-0 items-center gap-1",children:[(0,l.jsxs)("button",{type:"button",onClick:()=>j(!0),"aria-label":"Show comparison \xb7 ".concat(ei.length),className:"inline-flex min-h-[44px] shrink-0 cursor-pointer items-center justify-center rounded-xl bg-white px-4 text-[0.66rem] font-bold uppercase tracking-[0.15em] text-[#0B1F3A] transition hover:bg-[#F4EFE5] hover:text-[#C2410C] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#E7D4B5]",children:["Compare \xb7 ",ei.length]}),(0,l.jsx)("button",{type:"button","aria-label":"Clear selected products",onClick:_,className:"inline-flex min-h-[44px] shrink-0 cursor-pointer items-center justify-center rounded-xl px-2 text-[0.64rem] font-bold text-white/80 transition hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#E7D4B5]",children:"Clear"})]})]}):null,0===ee.length?(0,l.jsxs)("div",{className:"rounded-2xl border border-dashed border-[#BFCDE0] bg-[#F5F8FC] px-8 py-16 text-center",children:[(0,l.jsx)("p",{className:"text-sm font-semibold uppercase tracking-[0.22em] text-[#52677C]",children:"Nothing matches yet"}),(0,l.jsx)("h2",{className:"mx-auto mt-4 max-w-xl font-display text-3xl font-black uppercase tracking-[-0.02em] text-[#0B1F3A]",children:"Try a broader search or clear the filters."}),(0,l.jsx)("button",{type:"button",onClick:()=>{u(""),p(""),b("featured"),f(o.GF),M({search:"",collection:"",sort:"",level:"",position:"",style:"",benefit:"",bow:"",age:"",length:"",available:!1})}
1,className:"mt-7 inline-flex min-h-[44px] cursor-pointer items-center rounded-xl bg-[#C2410C] px-7 py-3 text-[0.7rem] font-bold uppercase tracking-[0.2em] text-white transition duration-200 hover:bg-[#9A3412] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C] focus-visible:ring-offset-2",children:"Reset filters"})]}):(0,l.jsxs)("div",{className:"grid items-start gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:[ee.map((e,t)=>{let r=(0,l.jsx)(d.A,{product:e,compact:!0,comparisonSelected:g.includes(e.id),comparisonDisabled:g.length>=3,onComparisonToggle:(0,o.Zd)(e).isStick?()=>es(e):void 0,onQuickView:()=>N(e)}),i={className:"h-full",delay:.06*Math.min(t,5),y:24};return(0,l.jsxs)(a.Fragment,{children:[(en.get(t)||[]).map(e=>(0,l.jsx)(Y.c,{className:"h-full",delay:.08,y:24,children:(0,l.jsx)(G,{tile:e})},e.id)),t<4?(0,l.jsx)(Y.b,{...i,children:r}):(0,l.jsx)(Y.c,{...i,children:r})]},e.id)}),(en.get(ee.length)||[]).map(e=>(0,l.jsx)(Y.c,{className:"h-full",delay:.08,y:24,children:(0,l.jsx)(G,{tile:e})},e.id))]})]}),(0,l.jsx)(q,{product:k,onClose:()=>N(null)}),(0,l.jsx)(B,{open:C,products:ei,onClose:()=>j(!1),onPurchase:e=>{j(!1),y("Choose an option for ".concat(e.name,".")),window.setTimeout(()=>N(e),0)},onRemove:e=>{let r=t.find(t=>t.id===e),l=g.length>1;v(t=>{let r=t.filter(t=>t!==e);return r.length||j(!1),r}),y(r?"".concat(r.name," removed from comparison."):"Product removed from comparison."),window.requestAnimationFrame(()=>{if(l){var t;null==(t=document.querySelector('[aria-label="Close product comparison"]'))||t.focus()}else S(e)})},onClear:_})]})}},4853:(e,t,r)=>{"use strict";r.d(t,{Cq:()=>i,Oi:()=>a,ei:()=>n,hb:()=>s,nB:()=>l});let l="https://appointments.aratac.com/",i="https://maps.google.com/?daddr=Aratac+Hockey",n="[email protected]",s={line1:"Unit 2, Dalhousie Business Park",line2:"Carrington Road",city:"Edinburgh",county:"Midlothian",postcode:"EH19 3HY",country:"GB"},a=[s.line1,s.line2,"".concat(s.city,", ").concat(s.postcode)]},5180:(e,t,r)=>{"use strict";r.d(t,{A:()=>h,n:()=>m});var l=r(7876),i=r(8230),n=r.n(i),s=r(6246),a=r(3456),o=r(4853),c=r(9675);let d=e=>String(e||"").trim(),u=(e,t,r,l)=>{let i=d(r),n=d(l),s=i.toLocaleLowerCase("en-GB").replace(/[^a-z0-9]+/g," ").trim();!i||!n||!s||t.has(s)||(t.add(s),e.push({label:i,value:n}))},m=e=>{let t=(0,a.Zd)(e),r=[],l=new Set;return u(r,l,"Best for",t.bestFor),u(r,l,"Player level",t.playerLevels.join(", ")),u(r,l,"Feel",t.feel),u(r,l,"Primary benefit",t.primaryBenefit),u(r,l,"Playing style",t.playStyles.join(", ")),u(r,l,"Good for",t.benefits.join(", ")),u(r,l,"Positions",t.positions.join(", ")),u(r,l,"Bow profile",t.bowProfile),u(r,l,"Carbon construction",null===t.carbonPercentage||void 0===t.carbonPercentage?null:"".concat(t.carbonPercentage,"% carbon")),u(r,l,"Weight",t.weight),u(r,l,"Balance",t.balance),u(r,l,"Available lengths",t.availableLengths.filter(
1Boolean).join(", ")),e.sections.filter(e=>!e.hidden).forEach(e=>{var t;null==(t=e.detailItems)||t.forEach(t=>{u(r,l,t.label||e.detailName,t.values.filter(Boolean).join(", "))})}),r},p=()=>(0,l.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",className:"h-4 w-4","aria-hidden":!0,children:(0,l.jsx)("path",{d:"M5 12h14M13 6l6 6-6 6"})});function h(e){let{className:t,product:r}=e,i=m(r),d=(0,a.Zd)(r).isStick;return(0,l.jsxs)("section",{"aria-labelledby":"product-decision-support-heading",className:"rounded-2xl border border-[#DCE5EF] bg-white p-6 shadow-[0_18px_48px_rgba(16,46,82,0.08)] lg:p-8 ".concat(t||""),children:[(0,l.jsx)("p",{className:"text-xs font-bold uppercase tracking-[0.26em] text-[#C2410C]",children:"Choose with confidence"}),(0,l.jsx)("h2",{id:"product-decision-support-heading",className:"mt-4 font-display text-3xl font-black uppercase tracking-[-0.03em] text-[#0B1F3A]",children:"At a glance"}),i.length>0?(0,l.jsx)("dl",{className:"mt-6 grid gap-px overflow-hidden rounded-xl border border-[#DCE5EF] bg-[#DCE5EF] sm:grid-cols-2",children:i.map(e=>(0,l.jsxs)("div",{className:"min-w-0 bg-[#F5F8FC] p-4 sm:p-5",children:[(0,l.jsx)("dt",{className:"text-[0.62rem] font-bold uppercase tracking-[0.2em] text-[#C2410C]",children:e.label}),(0,l.jsx)("dd",{className:"mt-2 text-sm font-semibold leading-6 text-[#0B1F3A]",children:e.value})]},e.label))}):null,r.featureBullets.length>0?(0,l.jsxs)("div",{className:"mt-6 rounded-xl border border-[#DCE5EF] bg-[#F5F8FC] p-5",children:[(0,l.jsx)("h3",{className:"font-display text-xl font-black uppercase tracking-[-0.02em] text-[#0B1F3A]",children:"What you'll notice"}),(0,l.jsx)("ul",{className:"mt-4 grid gap-3 sm:grid-cols-2",children:r.featureBullets.slice(0,4).map(e=>(0,l.jsxs)("li",{className:"flex items-start gap-3 text-sm leading-7 text-[#52677C]",children:[(0,l.jsx)("span",{className:"mt-2.5 h-1.5 w-1.5 shrink-0 rounded-full bg-[#C2410C]","aria-hidden":!0}),e]},e))})]}):null,(0,l.jsxs)("div",{className:"mt-6 grid gap-3 border-t border-[#DCE5EF] pt-6 sm:grid-cols-2",children:[(0,l.jsxs)(n(),{href:"/shipping",className:"group flex min-h-[52px] cursor-pointer items-center justify-between gap-4 rounded-xl border border-[#DCE5EF] bg-[#F5F8FC] px-4 py-3 text-sm font-bold text-[#0B1F3A] transition hover:border-[#C2410C]/40 hover:bg-[#F4EFE5] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C] focus-visible:ring-offset-2",children:[(0,l.jsxs)("span",{children:[(0,l.jsx)("span",{className:"block",children:"UK delivery"}),(0,l.jsxs)("span",{className:"mt-1 block text-xs font-medium leading-5 text-[#52677C]",children:["Free on merchandise totals of ",(0,c.v)(s.DO)," or more."]})]}),(0,l.jsx)(p,{})]}),(0,l.jsxs)(n(),{href:"/returns",className:"group flex min-h-[52px] cursor-pointer items-center justify-between gap-4 rounded-xl border border-[#DCE5EF] bg-[#F5F8FC] px-4 py-3 text-sm font-bold text-[#0B1F3A] transition hover:border-[#C2410C]/40 hover:bg-[#F4EFE5] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C] focus-visible:ring-offset-2",children:[(0,l.jsxs)("span",{children:[(0,l.jsx)("span",{className:"block",children:"14-day returns"}),(0,l.jsx)("span",{className:"mt-1 block text-xs font-medium leading-5 text-[#52677C]",children:"Read the current returns and warranty guidance."})]}),(0,l.jsx)(p,{})]})]}),d?(0,l.jsxs)("div",{className:"mt-6 rounded-xl border border-[#D8C9AE] bg-[#F4EFE5] p-5",children:[(0,l.jsx)("h3",{className:"font-display text-xl font-black uppercase tracking-[-0.02em] text-[#0B1F3A]",children:"Need help with stick choice or sizing?"}),(0,l.jsx)("p",{className:"mt-2 text-sm leading-7 text-[#52677C]",children:"Use the practical size guide, or ask the team for advice based on your height, position and current setup. You can also book ahead to compare sticks at the Edinburgh showroom."}),(0,l.jsxs)("div",{className:"mt-4 flex flex-wrap gap-3",children:[(0,l.jsx)(n(),{href:"/size-guide",className:"inline-flex min-h-[44px] cursor-pointer items-center justify-center rounded-xl bg-[#0B1F3A] px-4 py-2 text-[0.65rem] font-bold uppercase tracking-[0.18em] text-white transition hover:bg-[#173C62] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C] focu
1s-visible:ring-offset-2 focus-visible:ring-offset-[#F4EFE5]",children:"View size guide"}),(0,l.jsx)(n(),{href:"/contact?subject=Stick%20choice%20and%20sizing#enquiry",className:"inline-flex min-h-[44px] cursor-pointer items-center justify-center rounded-xl border border-[#BFAF8B] bg-white px-4 py-2 text-[0.65rem] font-bold uppercase tracking-[0.18em] text-[#C2410C] transition hover:border-[#C2410C] hover:bg-[#FFFDF8] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C] focus-visible:ring-offset-2 focus-visible:ring-offset-[#F4EFE5]",children:"Ask the team"}),(0,l.jsxs)("a",{href:o.nB,target:"_blank",rel:"noreferrer noopener",className:"inline-flex min-h-[44px] cursor-pointer items-center justify-center rounded-xl border border-[#BFAF8B] bg-white px-4 py-2 text-[0.65rem] font-bold uppercase tracking-[0.18em] text-[#C2410C] transition hover:border-[#C2410C] hover:bg-[#FFFDF8] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#C2410C] focus-visible:ring-offset-2 focus-visible:ring-offset-[#F4EFE5]",children:["Book showroom visit",(0,l.jsx)("span",{className:"sr-only",children:" (opens in a new tab)"})]})]})]}):null]})}},8303:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/shop",function(){return r(1050)}])}},e=>{e.O(0,[2200,5369,9869,636,6593,8792],()=>e(e.s=8303)),_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.