1import{_ as He}from"./DzXyldwC.js";import{_ as fe,l as C,c as T,J as ze,a as p,o as s,b as t,e as F,K as Ue,f as y,u as l,d as b,t as w,L as Ge,M as Qe,F as O,w as P,r as z,p as U,k as oe,A as Ne,N as Ze,O as ve,D as We,j as $e,P as Ce,Q as Ke,E as we,g as W,i as Te,R as Fe,m as G,n as K,y as xe,B as Je,C as Xe,H as Ye,S as Ve,U as et,V as tt,q as nt}from"./DQGiOTCX.js";import{A as it,a as at}from"./COKQHJnw.js";import{P as Se}from"./DmvZtylh.js";import{a as lt,b as rt,_ as st}from"./Bq9a1dOT.js";import{N as de}from"./DjVIQ-vh.js";import{a as ot,u as dt,_ as ct,b as ut}from"./IxDqiu1_.js";import{p as Ae}from"./DWZxiXb6.js";import{_ as De,a as Ee}from"./C1ITnI9x.js";import{B as qe,C as Ie,a as Le,b as Oe,T as je}from"./CGIPRnow.js";import{P as pe}from"./9nJ9JrkD.js";import{E as mt}from"./DKrbtJd5.js";import{_ as Pe}from"./tcFLp_ts.js";import Re from"./ByBrZtA5.js";import ke from"./C2GqF3J7.js";import{_ as pt}from"./DMKBPSxT.js";/* empty css */import{H as gt}from"./C7-ShyhL.js";import{u as ft,_ as vt}from"./CMLfsXVQ.js";import{_ as xt}from"./D0KN5_xm.js";/* empty css */import{E as kt}from"./DFvNuOOd.js";import"./BjQIgOeE.js";import"./YPZ9tpqc.js";import"./x_rD_Ya3.js";import"./b02WPa_e.js";import"./DGyA2PlO.js";import"./D6kDGv9j.js";import"./Ch7UsAPP.js";import"./q-_ckPPD.js";const yt=["src","alt"],bt={key:2,class:"absolute bottom-6 left-1/2 transform -translate-x-1/2 text-white bg-black bg-opacity-50 px-3 py-1 rounded"},ht={__name:"ProductModal",props:{images:{type:Array,required:!0},startIndex:{type:Number,default:0}},emits:["open","close"],setup(e,{emit:i}){const n=e,r=i,d=C(!1),c=C(0),g=T(()=>{if(!n.images||!n.images.length)return"";const v=n.images[c.value];return(v==null?void 0:v.url)||""}),k=T(()=>{if(!n.images||!n.images.length)return"";const v=n.images[c.value];return(v==null?void 0:v.altText)||""});function f(){console.log("Modal opening with startIndex:",n.startIndex),c.value=n.startIndex,d.value=!0,document.body.style.overflow="hidden",document.addEventListener("keydown",m),r("open")}function u(){d.value=!1,document.body.style.overflow="",document.removeEventListener("keydown",m),r("close")}function a(){!n.images||n.images.length<=1||(c.value=(c.value+1)%n.images.length)}function o(){!n.images||n.images.length<=1||(c.value=c.value===0?n.images.length-1:c.value-1)}function m(v){switch(v.key){case"Escape":u();break;case"ArrowLeft":o();break;case"ArrowRight":a();break}}return ze(()=>{document.body.style.overflow="",document.removeEventListener("keydown",m)}),(v,N)=>{const V=He;return s(),p(O,null,[t("div",{class:"modal-trigger",onClick:f},[Ue(v.$slots,"default",{},void 0,!0)]),(s(),F(Qe,{to:"body"},[l(d)?(s(),p("div",{key:0,class:"fixed inset-0 bg-black bg-opacity-75 flex items-center justify-center z-50",onClick:u},[t("div",{class:"relative max-w-4xl max-h-full p-4",onClick:N[0]||(N[0]=Ge(()=>{},["stop"]))},[t("button",{onClick:u,class:"absolute top-6 right-5 text-2xl font-bold z-10 bg-foster-dark text-white rounded-full w-10 h-10 flex items-center justify-center"},[b(V,{icon:["fas","xmark"]})]),e.images&&e.images.length>1?(s(),p("button",{key:0,onClick:o,class:"absolute left-6 top-1/2 transform -translate-y-1/2 text-foster-dark text-3xl font-bold z-10 flex items-center justify-center"},[b(l(it),{class:"cursor-pointer !w-10 !h-10"})])):y("",!0),e.images&&e.images.length>1?(s(),p("button",{key:1,onClick:a,class:"absolute right-6 top-1/2 transform -translate-y-1/2 text-foster-dark text-3xl font-bold z-10 flex items-center justify-center"},[b(l(at),{class:"cursor-pointer !w-10 !h-10"})])):y("",!0),t("img",{src:l(g),alt:l(k),class:"max-w-full max-h-full object-contain rounded-[16px] bg-white"},null,8,yt),e.images&&e.images.length>1?(s(),p("div",bt,w(l(c)+1)+" / "+w(e.images.length),1)):y("",!0)])])):y("",!0)]))],64)}}},_t=fe(ht,[["__scopeId","data-v-97022e30"]]),wt={key:0,class:"product-media"},St={class:"flex flex-row overflow-x-auto gap-2 md:gap-4"},Nt={key:0,class:"hidden md:block bg-grey-lightest border border-grey-checkout rounded-[16px]"},$t=["src","alt"],Ct=["src","alt","sizes"],Tt=["href"],Ft=["src","alt"],Vt={class:"absolute w-20 h-20 flex items-center justify-center"},At={class:"hidden md:flex items-center"},Dt=["src","alt","onClick"],Et=["href"],qt=["src","alt"],It={class:"absolute w-20 h-20 flex items-center justify-center"},Lt={__name:"Media",props:{media:{type:Array,required:!0}},setup(e){const i=e,n=C(0),r=T(()=>"300px"),d=T(()=>{let g=[];
1return i.media.forEach(k=>{let f=null;k.node.mediaContentType=="IMAGE"&&(f=k.node.image.large),k.node.mediaContentType=="EXTERNAL_VIDEO"&&(f=k.node.embeddedUrl),g.push({type:k.node.mediaContentType,thumb:k.node.previewImage.url,altText:k.node.previewImage.altText,url:f})}),g}),c=T(()=>d.value.length?d.value[n.value]:null);return(g,k)=>{const f=_t;return l(d).length?(s(),p("div",wt,[t("div",St,[l(c)?(s(),p("div",Nt,[b(f,{images:l(d).filter(u=>u.type=="IMAGE"),"start-index":l(n)},{default:P(()=>[t("img",{src:l(c).url,alt:l(c).altText,class:"block bg-grey-lightest max-w-[305px] max-h-[305px] md:max-w-[555px] md:max-h-[555px] object-contain"},null,8,$t)]),_:1},8,["images","start-index"])])):y("",!0),(s(!0),p(O,null,z(l(d),(u,a)=>(s(),p("div",{key:a,class:"flex-shrink-0 block md:hidden"},[u.type=="IMAGE"?(s(),p("img",{key:0,src:u.url,alt:u.altText,sizes:l(r),class:"bg-grey-lightest border border-grey-checkout rounded-[8px] w-full h-full max-w-[305px] max-h-[305px] object-contain"},null,8,Ct)):u.type=="EXTERNAL_VIDEO"?(s(),p("a",{key:1,href:u.url,target:"_blank",class:"relative flex items-center justify-center w-full h-full max-w-[305px] max-h-[305px] object-contain"},[t("img",{src:u.thumb,alt:u.altText,class:"opacity-30 bg-grey-lightest border border-grey-checkout rounded-[8px] w-full h-full object-contain"},null,8,Ft),t("div",Vt,[b(l(Se),{class:"!w-10 !h-10 text-foster-dark"})])],8,Tt)):y("",!0)]))),128))]),t("div",At,[(s(!0),p(O,null,z(l(d),(u,a)=>(s(),p("div",{key:a,class:U(["block border-2 rounded-[2.723px] m-1 cursor-pointer bg-white relative",a==l(n)?"border-yellow-400":"border-grey-150"])},[u.type=="IMAGE"?(s(),p("img",{key:0,src:u.thumb,alt:u.altText,class:"block flex items-center w-20 h-20",onClick:o=>n.value=a},null,8,Dt)):u.type=="EXTERNAL_VIDEO"?(s(),p("a",{key:1,href:u.url,target:"_blank",class:"relative flex items-center justify-center"},[t("img",{src:u.thumb,alt:u.altText,class:"block flex items-center w-20 h-20 opacity-30"},null,8,qt),t("div",It,[b(l(Se),{class:"!w-10 !h-10 text-foster-dark"})])],8,Et)):y("",!0)],2))),128))])])):y("",!0)}}},Ot={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 25"};function jt(e,i){return s(),p("svg",Ot,i[0]||(i[0]=[t("mask",{id:"i995027197__a",width:"24",height:"25",x:"0",y:"0",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"}},[t("path",{fill:"#D9D9D9",d:"M0 .5h24v24H0z"})],-1),t("g",{mask:"url(#i995027197__a)"},[t("path",{fill:"#DEDC48",d:"m9.55 18.5-5.7-5.7 1.425-1.425L9.55 15.65l9.175-9.175L20.15 7.9 9.55 18.5Z"})],-1)]))}const me={render(){return oe(de,{icon:{render:jt},name:"check"})}},Pt={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 40 40"};function Rt(e,i){return s(),p("svg",Pt,i[0]||(i[0]=[t("mask",{id:"i821361764__a",width:"40",height:"40",x:"0",y:"0",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"}},[t("path",{fill:"#D9D9D9",d:"M0 0h40v40H0z"})],-1),t("g",{mask:"url(#i821361764__a)"},[t("path",{fill:"#284192",d:"M12.5 20.833h15v-1.666h-15v1.666ZM20.005 35c-2.074 0-4.024-.394-5.85-1.18-1.826-.788-3.414-1.856-4.765-3.206-1.35-1.35-2.42-2.936-3.208-4.76C5.394 24.028 5 22.08 5 20.004c0-2.074.394-4.024 1.18-5.85.788-1.826 1.856-3.414 3.206-4.765 1.35-1.35 2.936-2.42 4.76-3.208C15.972 5.394 17.92 5 19.996 5c2.074 0 4.024.394 5.85 1.18 1.826.788 3.414 1.856 4.765 3.206 1.35 1.35 2.42 2.936 3.208 4.76C34.606 15.972 35 17.92 35 19.996c0 2.074-.394 4.024-1.18 5.85-.788 1.826-1.856 3.414-3.206 4.765-1.35 1.35-2.936 2.42-4.76 3.208C24.028 34.606 22.08 35 20.004 35ZM20 33.333c3.722 0 6.875-1.291 9.458-3.875 2.584-2.583 3.875-5.736 3.875-9.458 0-3.722-1.291-6.875-3.875-9.458C26.875 7.958 23.722 6.667 20 6.667c-3.722 0-6.875 1.291-9.458 3.875C7.958 13.125 6.667 16.278 6.667 20c0 3.722 1.291 6.875 3.875 9.458 2.583 2.584 5.736 3.875 9.458 3.875Z"})],-1)]))}const Bt={render(){return oe(de,{icon:{render:Rt},name:"minus-circle"})}},Mt={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 40 40"};function Ht(e,i){return s(),p("svg",Mt,i[0]||(i[0]=[t("mask",{id:"i-1904883757__a",width:"40",height:"40",x:"0",y:"0",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"}},[t("path",{fill:"#D9D9D9",d:"M0 0h40v40H0z"})],-1),t("g",{mask:"url(#i-1904883757__a)"},[t("path",{fill:"#284192",d:"M19.167 27.5h1.666v-6.667H27.5v-1.666h-6.667V12.5h-1.666v6.667H12.5v1.666h6.667V27.5Zm.838 7.5c-2.074 0-4.024-.394-5.85-1.18-1.826-.788-3.414-1.856-4.765-3.206-1.35-1.35-2.42-2.936-3.208-4.76C5.394 24.028 5 22.08 5 20.004c0-2.074.394-4.024 1.18-5.85.788-1.826 1.856-3.414 3.206-4.765 1.35-1.35 2.936-2.42 4.76-3.208C15.972 5.394 17.92 5 19.996 5c2.074 0 4.024.394 5.85 1.18 1.826.788 3.414 1.856 4.765 3.206 1.35 1.35 2.42 2.936 3.208 4.76C34.606 15.972 35 17.92 35 19.996c0 2.074-.394 4.024-1.18 5.85-.788 1.826-1.856 3.414-3.206 4.765-1.35 1.35-2.936 2.42-4.76 3.208C24.028 34.606 22.08 35 20.004 35ZM20 33.333c3.722 0 6.875-1.291 9.458-3.875 2.584-2.583 3.875-5.736 3.875-9.458 0-3.722-1.291-6.875-3.875-9.458C26.875 7.958 23.722 6.667 20 6.667c-3.722 0-6.875 1.291-9.458 3.875C7.958 13.125 6.667 16.278 6.667 20c0 3.722 1.291 6.875 3.875 9.458 2.583 2.584 5.736 3.875 9.458 3.875Z"})],-1)]))}const zt={render(){return oe(de,{icon:{render:Ht},name:"add-circle"})}},Ut={class:"product-view__container lg:pb-10"},Gt={class:"product-view container mx-auto py-5"},Qt={class:"text-foster-base text-lg uppercase flex flex-col justify-center lg:justify-start md:flex-row items-center pb-5"},Zt={class:"text-sm text-white"},Wt={class:"flex flex-col lg:flex-row"},Kt={class:"w-full lg:w-auto"},Jt={class:"relative"},Xt={class:"w-full lg:max-w-xl lg:ml-[48px] lg:mr-auto"},Yt={class:"flex flex-col mt-5 md:mb-0"},en={key:0,class:"mb-4 md:mb-6 lg:mb-8"},tn=["src"],nn={class:"text-foster-dark leading-1.1 text-[24px] md:text-[36px] font-body"},an={class:"flex flex-col text-grey-body text-[18px] leading-1.5 font-body"},ln={key:0,class:"flex flex-row items-center gap-2 mt-[24px] md:mt-[32px]"},rn={key:1,class:"flex flex-row items-center gap-2"},sn={key:2,class:"flex flex-row items-center gap-2"},on={class:"flex flex-row items-start mt-[24px] md:mt-[56px] mb-[32px]"},dn={class:"flex flex-col"},cn={class:"flex flex-row w-full lg:flex-col lg:justify-start lg:items-start"},un={key:0,class:"lg:ml-0 lg:mt-4"},mn={key:1,class:"text-foster-white font-bold mt-2 text-sm mr-20"},pn={class:"flex mt-[32px] w-full justify-center gap-[40px]"},gn={class:"w-full product-view__button"},fn={key:1,class:"btn btn--disabled pointer-events-none"},vn={__name:"Hero",props:{ctx:{type:Object,required:!0},entry:{type:Object,required:!0}},setup(e){var N;const i=e,{addToCart:n}=ot(),{setToast:r}=dt(),d=i.ctx.variants.edges.length?i.ctx.variants.edges[0].node:null,c=d.price.amount,g=(N=d.compareAtPrice)==null?void 0:N.amount,k=d?d.quantityAvailable:0,f=d?d.availableForSale:!0,u=C(1),a=()=>{u.value>1&&u.value--},o=()=>{u.value++},m=V=>{const $=V.target.value.replace(/[^\d]/g,""),S=parseInt($)||0;u.value=Math.max(0,S)},v=async()=>{d&&(await n(d.id,u.value),r(!0),Ae("add_to_cart",{ecommerce:{items:[{item_id:d.sku,item_name:i.ctx.title,quantity:u.value}]}}))};return(V,$)=>{var q;const S=Lt,E=lt,A=rt;return s(),p("div",Ut,[t("div",Gt,[t("div",Qt,[t("div",Zt,"sku: "+w((q=e.ctx.variants.edges[0])==null?void 0:q.node.sku),1)]),t("div",Wt,[t("div",Kt,[t("div",Jt,[b(S,{media:e.ctx.media.edges},null,8,["media"])])]),t("div",Xt,[t("div",Yt,[e.entry&&e.entry.brand&&e.entry.brand.length&&e.entry.brand[0].image&&e.entry.brand[0].image.length>0?(s(),p("div",en,[t("img",{src:e.entry.brand[0].image[0].url,class:"w-[92px] md:w-[105px] lg:w-[129px] object-contain"},null,8,tn)])):y("",!0),t("h1",nn,w(e.ctx.title),1),t("div",an,[e.ctx.subtitle?(s(),p("div",ln,[b(l(me),{class:"text-yellow-400"}),t("span",null,w(e.ctx.subtitle.value),1)])):y("",!0),e.ctx.warranty?(s(),p("div",rn,[b(l(me),{class:"text-yellow-400"}),t("span",null,w(e.ctx.warranty.value.replace("yr",""))+" warranty",1)])):y("",!0),e.ctx.voltage?(s(),p("div",sn,[b(l(me),{class:"text-yellow-400"}),t("span",null,w(e.ctx.voltage.value),1)])):y("",!0)]),t("div",on,[b(E,{price:l(c),original:l(g),dark:!1,large:!0},null,8,["price","original"])])]),t("div",dn,[t("div",cn,[l(f)?(s(),p("div",un,[b(A,{stock:l(k),available:l(f)},null,8,["stock","available"])])):l(f)?y("",!0):(s(),p("div",mn," Product currently out of stock online, please call 01509 509 269 "))]),t("div",pn,[t("div",{class:U(["flex flex-row items-center w-auto justify-center",{"opacity-50 pointer-events-none":!l(f)}])},[b(l(Bt),{class:"!w-[40px] !h-[40px] text-foster-base cursor-pointer",onClick:a}),Ne(t("input",{class:"qty-input mx-2 text-[18px] font-bold font-body text-foster-dark w-[32px] text-center","onUpdate:modelValue":$[0]||($[0]=I=>u.value=I),type:"text",inputmode:"numeric",pattern:"[0-9]*",onInput:m},null,544),[[Ze,u.value]]),b(l(zt),{class:"!w-[40px] !h-[40px] text-foster-base cursor-pointer",onClick:o})],2),t("div",gn,[l(f)?(s(),p("button",{key:0,class:"btn btn-yellow--active",onClick:v},"Add to Basket")):(s(),p("button",fn,"Out of Stock"))])])])])])])])}}},xn=fe(vn,[["__scopeId","data-v-200909ad"]]),kn=""+new URL("download.H8YAeGNV.png",import.meta.url).href;function Q(e,i={}){let{scoped:n}=i,r="";if((typeof e=="string"||e instanceof String)&&(e=JSON.parse(e)),(typeof i=="string"||i instanceof String||i===!0)&&(n=i),e.type==="root"&&e.children.length>0)n?r+=` 2 <div class="${n===!0?"rte":n}"> 3 ${Q(e.children,i)} 4 </div> 5 `:r+=Q(e.children,i);
5else for(const d of e)switch(d.type){case"paragraph":r+=hn(d,i);break;case"heading":r+=_n(d,i);break;case"list":r+=wn(d,i);break;case"list-item":r+=Sn(d,i);break;case"link":r+=Nn(d,i);break;case"text":r+=$n(d,i);break}return r}function yn(e,i){return i&&i[e]?i[e]:null}function bn(e){if(!e&&(e!=null&&e.class))return"";const i=" ";return Object.keys(e).map(n=>{if(e[n])return`${i}${n}="${e[n]}"`}).join("")}function H(e,i,n,r={}){return r={...r,class:yn(e,i)},`<${e}${bn(r)}>${n}</${e}>`}function hn(e,i){const{classes:n}=i;return H("p",n,Q(e==null?void 0:e.children,i))}function _n(e,i){const{classes:n}=i,r=`h${e==null?void 0:e.level}`;return H(r,n,Q(e==null?void 0:e.children,i))}function wn(e,i){const{classes:n}=i,r=(e==null?void 0:e.listType)==="ordered"?"ol":"ul";return H(r,n,Q(e==null?void 0:e.children,i))}function Sn(e,i){const{classes:n}=i;return H("li",n,Q(e==null?void 0:e.children,i))}function Nn(e,i){const{classes:n}=i,r={href:e==null?void 0:e.url,title:e==null?void 0:e.title,target:e==null?void 0:e.target};return H("a",n,Q(e==null?void 0:e.children,i),r)}function $n(e,i){var d;const{classes:n,newLineToBreak:r}=i;return e!=null&&e.bold&&(e!=null&&e.italic)?H("strong",n,H("em",n,e==null?void 0:e.value)):e!=null&&e.bold?H("strong",n,e==null?void 0:e.value):e!=null&&e.italic?H("em",n,e==null?void 0:e.value):r?(d=e==null?void 0:e.value)==null?void 0:d.replace(/\n/g,"<br>"):e==null?void 0:e.value}const Cn={class:"flex flex-row flex-wrap justify-between"},Tn={key:0,class:"mb-8 relative z-20 max-w-3xl w-full"},Fn=["innerHTML"],Vn=["innerHTML"],An={key:1,class:"mb-8 lg:mb-0 max-w-3xl w-full"},Dn=["innerHTML"],En={class:"w-full lg:max-w-sm"},qn={class:"lg:max-w-sm w-full mb-10"},In={class:"bg-grey-lightest flex flex-col justify-center"},Ln={class:"grid grid-cols-2 border-b border-grey-checkout"},On={class:"flex px-4 items-center text-lg text-foster-dark w-full"},jn={key:0,class:"grid grid-cols-2 border-b border-grey-checkout"},Pn={class:"flex px-4 items-center text-lg text-foster-dark w-full"},Rn={key:1,class:"grid grid-cols-2 border-b border-grey-checkout"},Bn={class:"flex px-4 items-center text-lg text-foster-dark w-full"},Mn={key:0,class:"lg:max-w-sm w-full"},Hn={class:"p-6 bg-white border border-grey-checkout rounded-[16px]"},zn=["href"],Un={class:"text-foster-base font-heading font-extrabold uppercase text-[28px] leading-[24px] mt-4"},Gn={__name:"Description",props:{ctx:{type:Object,required:!0},content:{type:Object,default:null}},setup(e){const i=e,n=i.ctx.variants.edges.length?i.ctx.variants.edges[0].node.sku:null,r=T(()=>!("featuresRich"in i.ctx)||!i.ctx.featuresRich?null:Q(i.ctx.featuresRich.value));return(d,c)=>(s(),p("div",Cn,[t("div",null,[e.ctx.features||l(r)?(s(),p("div",Tn,[c[0]||(c[0]=t("div",{class:"bg-foster-dark p-4 rounded-t-[4px]"},[t("div",{class:"font-headingextrabold font-extrabold uppercase text-yellow-400 text-[20px] md:text-[24px] leading-1.1"},"FEATURES")],-1)),l(r)?(s(),p("div",{key:0,class:"product-view__features bg-grey-lightest p-8 pb-0 md:p-8 text-foster-dark border border-grey-150",innerHTML:l(r)},null,8,Fn)):(s(),p("div",{key:1,class:"product-view__features bg-grey-lightest p-8 pb-0 md:p-8 text-foster-dark border border-grey-150",innerHTML:e.ctx.features.value},null,8,Vn))])):y("",!0),e.ctx.descriptionHtml?(s(),p("div",An,[c[1]||(c[1]=t("div",{class:"bg-foster-dark p-4 rounded-t-[4px]"},[t("h2",{class:"font-headingextrabold font-extrabold uppercase text-yellow-400 text-[20px] md:text-[24px] leading-1.1"},"Product Description")],-1)),t("div",{class:"product-view__body bg-grey-lightest p-8 pb-0 md:p-8 text-foster-dark border border-grey-150",innerHTML:e.ctx.descriptionHtml},null,8,Dn)])):y("",!0)]),t("div",En,[t("div",qn,[c[5]||(c[5]=t("div",{class:"bg-foster-dark p-4 rounded-t-[4px]"},[t("div",{class:"font-headingextrabold font-extrabold uppercase text-yellow-400 text-[20px] md:text-[24px] leading-1.1"},"SPECIFICATION")],-1)),t("div",In,[t("div",Ln,[c[2]||(c[2]=t("div",{class:"product-view__spec-title px-4 text-foster-dark uppercase font-bold font-bodytext-[18px] leading-[44px] border-r border-grey-checkout"},"SKU",-1)),t("div",On,w(l(n)),1)]),e.ctx.warranty?(s(),p("div",jn,[c[3]||(c[3]=t("div",{class:"product-view__spec-title px-4 text-foster-dark uppercase font-bold font-bodytext-[18px] leading-[44px] border-r border-grey-checkout"},"Warranty",-1)),t("div",Pn,w(e.ctx.warranty.value.replace("yr","")),1)])):y("",!0),e.ctx.voltage?(s(),p("div",Rn,[c[4]||(c[4]=t("div",{class:"product-view__spec-title px-4 text-foster-dark uppercase font-bold font-bodytext-[18px] leading-[44px] border-r border-grey-checkout"},"Voltage",-1)),t("div",Bn,w(e.ctx.voltage.value),1)])):y("",!0)])]),e.content?(s(),p(O,{key:0},[e.content.downloads.length>0?(s(),p("div",Mn,[t("div",Hn,[c[7]||(c[7]=t("div",{class:"flex items-center justify-center"},[t("img",{src:kn})],-1)),(s(!0),p(O,null,z(e.content.downloads,g=>(s(),p("a",{href:g.url,target:"_blank",class:"mr-5 mb-2 text-lg text-foster-light cursor-pointer"}
5,[t("div",Un,w(g.title),1),c[6]||(c[6]=t("button",{class:"btn btn-yellow--active mt-[24px]"},"Download",-1))],8,zn))),256))])])):y("",!0)],64)):y("",!0)])]))}},Qn={class:"container mx-auto py-10 lg:py-20"},Zn={class:"flex items-center gap-2 mb-6"},Wn={key:1,class:"mb-8 relative z-20 max-w-3xl w-full"},Kn=["innerHTML"],Jn={key:2,class:"mb-8 relative z-20 max-w-3xl w-full"},Xn=["innerHTML"],Yn={__name:"Tabs",props:{ctx:{type:Object,required:!0},content:{type:Object,default:null}},setup(e){const{shippingInfo:i,returnPolicy:n}=ve(),r=C("details");return(d,c)=>{const g=Gn;return s(),p("div",Qn,[t("div",Zn,[t("div",{class:U(["rounded-full py-2 px-4 cursor-pointer",l(r)=="details"?"bg-foster-yellow text-foster-dark font-bold":"bg-grey-lightest text-grey-body"]),onClick:c[0]||(c[0]=k=>r.value="details")},"Details",2),t("div",{class:U(["rounded-full py-2 px-4 cursor-pointer",l(r)=="shipping"?"bg-foster-yellow text-foster-dark font-bold":"bg-grey-lightest text-grey-body"]),onClick:c[1]||(c[1]=k=>r.value="shipping")},"Shipping",2),t("div",{class:U(["rounded-full py-2 px-4 cursor-pointer",l(r)=="returns"?"bg-foster-yellow text-foster-dark font-bold":"bg-grey-lightest text-grey-body"]),onClick:c[2]||(c[2]=k=>r.value="returns")},"Returns",2)]),l(r)=="details"?(s(),F(g,{key:0,ctx:e.ctx,content:e.content},null,8,["ctx","content"])):l(r)=="shipping"?(s(),p("div",Wn,[c[3]||(c[3]=t("div",{class:"bg-foster-dark p-4 rounded-t-[4px]"},[t("div",{class:"font-headingextrabold font-extrabold uppercase text-yellow-400 text-[20px] md:text-[24px] leading-1.1"},"Shipping Details")],-1)),t("div",{class:"product-view__features bg-grey-lightest p-8 pb-0 md:p-8 text-foster-dark border border-grey-150",innerHTML:l(i)},null,8,Kn)])):l(r)=="returns"?(s(),p("div",Jn,[c[4]||(c[4]=t("div",{class:"bg-foster-dark p-4 rounded-t-[4px]"},[t("div",{class:"font-headingextrabold font-extrabold uppercase text-yellow-400 text-[20px] md:text-[24px] leading-1.1"},"Returns Policy")],-1)),t("div",{class:"product-view__features bg-grey-lightest p-8 pb-0 md:p-8 text-foster-dark border border-grey-150",innerHTML:l(n)},null,8,Xn)])):y("",!0)])}}},ae=""+new URL("cta-products-single-person.CAR_2m4t.jpg",import.meta.url).href,ei={class:"relative overflow-hidden flex flex-col lg:flex-row"},ti={class:"bg-foster-dark rounded-b-0 rounded-t-[16px] lg:rounded-[16px] flex flex-col lg:flex-row flex-1 relative"},ni={class:"py-[24px] px-[16px] lg:py-[64px] lg:pl-[48px] lg:pr-[24px] flex flex-col z-[50] lg:flex-1"},ii={class:"grid grid-cols-1 md:grid-cols-2 my-[16px] lg:my-[24px] gap-y-[8px] gap-x-[16px]"},ai={class:"flex flex-row items-center gap-[8px]"},li={class:"flex flex-row items-center gap-[8px]"},ri={class:"flex flex-row items-center gap-[8px]"},si={class:"flex flex-row items-center gap-[8px]"},oi={class:"flex flex-row items-center gap-[8px]"},di={class:"flex flex-row items-center gap-[8px]"},ci={class:"bg-yellow-400 rounded-b-[16px] lg:rounded-l-none lg:rounded-r-[16px] pl-[16px] pr-[16px] lg:pl-[48px] lg:pr-[64px] py-[32px] lg:py-[64px] flex flex-col w-full lg:max-w-[464px]"},ui={class:"flex flex-row items-center gap-[8px] mb-[8px]"},mi={class:"flex flex-row items-center gap-[8px] mb-[24px]"},pi={__name:"SecondaryCta",setup(e){return(i,n)=>(s(),p("div",ei,[t("div",ti,[n[8]||(n[8]=t("div",{class:"block lg:hidden relative z-1 top-0 right-0 w-full h-[193.709px] rounded-t-[16px] overflow-hidden"},[t("img",{src:ae,alt:"cta image",class:"object-cover-absolute"}),t("div",{class:"absolute inset-x-0 bottom-0 w-full h-[40%] bg-gradient-to-t from-foster-dark to transparent"})],-1)),t("div",ni,[n[6]||(n[6]=t("h2",{class:"font-headingextrabold font-extrabold uppercase text-white text-[26px] lg:text-[40px] leading-[24px] lg:leading-[40px] max-w-[637px]"},"Sign up for a trade account today",-1)),t("div",ii,[t("div",ai,[b(l(qe),{class:"text-green-foster flex-shrink-0"}),n[0]||(n[0]=t("p",{class:"font-semibold font-body text-white text-[16px] lg:text-[18px] leading-[24px] lg:leading-[27px]"},"Stock management solutions",-1))]),t("div",li,[b(l(Ie),{class:"text-green-foster flex-shrink-0"}),n[1]||(n[1]=t("p",{class:"font-semibold font-body text-white text-[16px] lg:text-[18px] leading-[24px] lg:leading-[27px]"},"Access 4000 products",-1))]),t("div",ri,[b(l(Le),{class:"text-green-foster flex-shrink-0"}),n[2]||(n[2]=t("p",{class:"font-semibold font-body text-white text-[16px] lg:text-[18px] leading-[24px] lg:leading-[27px]"},"Welding repair and servicing in-house",-1))]),t("div",si,[b(l(Oe),{class:"text-green-foster flex-shrink-0"}),n[3]||(n[3]=t("p",{class:"font-semibold font-body text-white text-[16px] lg:text-[18px] leading-[24px] lg:leading-[27px]"},"60 days credit terms",-1))]),t("div",oi,[b(l(pe),{class:"text-green-foster flex-shrink-0"}),n[4]||(n[4]=t("p",{class:"font-semibold font-body text-white text-[16px] lg:text-[18px] leading-[24px] lg:leading-[27px]"},"Unlimited technical support",-1))]),t("div",di,[b(l(je),{class:"text-green-foster flex-shrink-0"}),n[5]||(n[5]=t("p",{class:"font-semibold font-body text-white text-[16px] lg:text-[18px] leading-[24px] lg:leading-[27px]"},"Bespoke pricing",-1))])]),n[7]||(n[7]=t("a",{href:"/page/trade-account",class:"cursor-pointer"},[t("button",{class:"btn btn-yellow--active !w-max mt-[8px]"},"Sign up for trade account")],-1))]),n[9]||(n[9]=We('<div class="hidden lg:block absolute z-1 right-0 top-0 w-[40%] h-full">
5<img src="'+ae+'" alt="cta image" class="object-cover-absolute"><div class="absolute left-0 inset-y-0 h-full w-[80%] bg-gradient-to-r from-foster-dark to transparent"></div></div><div class="hidden lg:block absolute right-0 top-0 w-[40%] h-full pointer-events-none z-10"><div class="absolute left-0 top-0 h-full w-1/3 hero-left-gradient"></div></div>',2))]),t("div",ci,[n[12]||(n[12]=t("h2",{class:"text-foster-dark font-headingextrabold font-extrabold text-[24px] lg:text-[32px] leading-[28px] lg:leading-[32px] uppercase"},"Need any help with your order?",-1)),n[13]||(n[13]=t("p",{class:"font-body text-foster-dark text-[14px] lg:text-[16px] leading-[20px] lg:leading-[24px] my-[16px]"},"Talk to our experts if you need any assistance.",-1)),t("div",ui,[b(l(pe),{class:"text-foster-light w-[16px] h-[16px] flex-shrink-0"}),n[10]||(n[10]=t("p",{class:"font-body text-foster-dark font-bold text-[18px] lg:text-[20px] leading-[22px] lg:leading-[24px]"},"01509 509269",-1))]),t("div",mi,[b(l(mt),{class:"text-foster-light w-[16px] h-[16px] flex-shrink-0"}),n[11]||(n[11]=t("a",{href:"mailto:[email protected]",class:"font-body text-foster-dark font-bold text-[18px] lg:text-[20px] leading-[22px] lg:leading-[24px]"},"[email protected]",-1))]),n[14]||(n[14]=t("a",{href:"/contacts",class:"cursor-pointer"},[t("button",{class:"font-extrabold font-heading h-[50px] flex items-center text-center uppercase w-max bg-foster-dark text-white px-[24px] py-[8px] text-[18px] leading-[18px] rounded-[4px]"},"Contact us")],-1))])]))}},gi={key:0,class:"container mx-auto my-[24px] md:mt-[40px] md:mb-[72px]"},fi={key:0,class:"mb-6 md:mb-8 text-foster-dark uppercase font-headingextrabold font-extrabold text-[20px] leading-[16px] md:text-[28px] md:leading-[24px]"},vi={class:"grid grid-cols-1 md:grid-cols-3 gap-[16px] xl:gap-[40px]"},xi={class:"flex flex-col w-full h-full"},ki={key:1,class:"mb-[8px] mt-0 md:mt-[24px] text-foster-base font-heading font-extrabold text-[28px] leading-[24px] uppercase"},yi=["innerHTML"],bi={key:1},hi={key:0,class:"mb-[24px] h-[200px] w-full rounded-[8px]"},_i={class:"flex flex-col flex-1"},wi={class:"mb-[8px] text-foster-base font-heading font-extrabold text-[20px] leading-[16px] uppercase"},Si=["innerHTML"],Ni={class:"cursor-pointer font-extrabold font-heading h-[50px] flex items-center text-center uppercase w-max bg-foster-dark text-white px-[24px] py-[8px] text-[18px] leading-[18px] mt-auto"},$i={key:0,class:"mt-6 md:hidden"},Ci={class:"flex space-x-2"},Ti=["onClick"],Fi={__name:"Guides",setup(e){const i=ve(),n=T(()=>i.productGuides),r=T(()=>i.guidesTitle),d=T(()=>i.productGuides.length),c=C(null),g=C(null),k=C(!0),f=C(!1),u=C(0),a=T(()=>d>1),o=T(()=>"350px"),m={class:"object-cover w-full h-full md:h-[229px] rounded-[8px]"},v=C(!1),N=()=>{v.value=window.innerWidth>=768};$e(()=>{N(),window.addEventListener("resize",N),Ce(()=>{c.value&&(g.value=c.value.swiper,g.value&&(k.value=g.value.isBeginning,f.value=g.value.isEnd,u.value=g.value.activeIndex,g.value.on("slideChange",()=>{k.value=g.value.isBeginning,f.value=g.value.isEnd,u.value=g.value.activeIndex})))})}),Ke(()=>{window.removeEventListener("resize",N)});const V=$=>{var S;return(S=g.value)==null?void 0:S.slideTo($)};return($,S)=>{const E=Re,A=ke,q=we("swiper-slide"),I=we("swiper-container"),j=pt;return l(n)&&l(n).length?(s(),p("div",gi,[l(r)?(s(),p("div",fi,w(l(r)),1)):y("",!0),t("div",vi,[l(v)?(s(!0),p(O,{key:0},z(l(n),(x,h)=>(s(),p("div",{key:h},[t("div",xi,[x.blockImage&&x.blockImage.length?(s(),F(E,{key:0,src:x.blockImage[0].url,alt:x.blockImage[0].title,sizes:l(o),"img-attrs":m,"img-class":"rounded-[8px]"},null,8,["src","alt","sizes"])):y("",!0),x.blockTitle?(s(),p("div",ki,w(x.blockTitle),
51)):y("",!0),x.body?(s(),p("div",{key:2,class:"mb-[24px] text-grey-body font-body font-normal text-[16px] leading-[24px] flex-grow",innerHTML:x.body.html},null,8,yi)):y("",!0),x.blockLink&&x.blockLink.url?(s(),F(A,{key:3,to:x.blockLink.url,class:"cursor-pointer font-extrabold font-heading h-[50px] flex items-center text-center uppercase w-max bg-foster-dark text-white px-[24px] py-[8px] text-[18px] leading-[18px] mt-auto"},{default:P(()=>[W(w(x.linkText||"Read the Guide"),1)]),_:2},1032,["to"])):y("",!0)])]))),128)):y("",!0)]),l(v)?y("",!0):(s(),p("div",bi,[b(j,null,{default:P(()=>[b(I,{ref_key:"swiperRef",ref:c,loop:!1,pagination:!1,"preload-images":!1,lazy:"true","space-between":8,"slides-per-view":1.1},{default:P(()=>[(s(!0),p(O,null,z(l(n),(x,h)=>(s(),F(q,{key:h},{default:P(()=>[x.blockLink&&x.blockLink.url?(s(),F(A,{key:0,to:x.blockLink.url,class:"cursor-pointer flex flex-col w-full"},{default:P(()=>[x.blockImage&&x.blockImage.length?(s(),p("div",hi,[b(E,{class:"h-full w-full",src:x.blockImage[0].url,alt:x.blockImage[0].title,sizes:l(o),"img-attrs":m},null,8,["src","alt","sizes"])])):y("",!0),t("div",_i,[t("div",wi,w(x.blockTitle),
51),x.body?(s(),p("div",{key:0,class:"mb-[16px] md:mb-[24px] text-grey-body font-body font-normal text-[16px] leading-[20px]",innerHTML:x.body.html},null,8,Si)):y("",!0)]),t("div",Ni,w(x.linkText||"Read the Guide"),1)]),_:2},1032,["to"])):y("",!0)]),_:2},1024))),128))]),_:1},512)]),_:1}),l(a)?(s(),p("div",$i,[t("div",Ci,[(s(!0),p(O,null,z($.block.products,(x,h)=>(s(),p("button",{key:h,onClick:D=>V(h),class:U(["w-2 h-2 rounded-full transition-all duration-300",l(u)===h?"bg-foster-base scale-125":"bg-gray-300"])},null,10,Ti))),128))])])):y("",!0)]))])):y("",!0)}}},Vi=fe(Fi,[["__scopeId","data-v-c3e1cb4f"]]),Ai=`#import '../pagebuilder.gql' 6 7query Product($sku: [QueryArgument]) { 8 entry(section: "products" productSku: $sku) { 9 title 10 ...on product_Entry { 11 pageBuilder { 12 ...pageBuilderBlocks 13 } 14 downloads { 15 title 16 url 17 } 18 brand { 19 id 20 title 21 ...on productBrands_Category { 22 image { 23 id 24 url 25 } 26 } 27 } 28 } 29 } 30}`,le={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Product"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sku"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryArgument"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"entry"},arguments:[{kind:"Argument",name:{kind:"Name",value:"section"},value:{kind:"StringValue",value:"products",block:!1}},{kind:"Argument",name:{kind:"Name",value:"productSku"},value:{kind:"Variable",name:{kind:"Name",value:"sku"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"product_Entry"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageBuilder"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pageBuilderBlocks"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"downloads"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"brand"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"productBrands_Category"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}]}}]}}]}}]}}],loc:{start:0,end:479,source:{name:"GraphQL request",locationOffset:{line:1,column:1},body:Ai}}},Di=e=>{const i={};return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;const r=n.name.value;return i[r]?!1:(i[r]=!0,!0)})};le.definitions=Di(le.definitions.concat(De.definitions));const Ei=(e,i)=>{const n=(a,o)=>{if(a.kind==="FragmentSpread")o.add(a.name.value);else if(a.kind==="VariableDefinition"){const m=a.type;m.kind==="NamedType"&&o.add(m.name.value)}return a&&"selectionSet"in a&&a.selectionSet&&a.selectionSet.selections.forEach(m=>{n(m,o)}),a&&"variableDefinitions"in a&&a.variableDefinitions&&a.variableDefinitions.forEach(m=>{n(m,o)}),a&&"definitions"in a&&a.definitions&&a.definitions.forEach(m=>{n(m,o)}),o},r=a=>{const o={};return a.definitions.forEach(function(m){"name"in m&&m.name&&(o[m.name.value]=n(m,new Set))}),o},d=(a,o)=>{for(let m=0;m<a.definitions.length;m++){const v=a.definitions[m];if(v&&"name"in v&&v.name&&v.name.value==o)return v}},c=r(e),g=Object.assign({},e,{definitions:[d(e,i)]}),k=c[i]||new Set,f=new Set;let u=new Set;for(k.forEach(a=>{u.add(a)});u.size>0;){const a=u;u=new Set,a.forEach(o=>
30{f.has(o)||(f.add(o),(c[o]||new Set).forEach(v=>{u.add(v)}))})}return f.forEach(a=>{const o=d(e,a);o&&g.definitions.push(o)}),g};Ei(le,"Product");function ye(e){Te({script:[{type:"application/ld+json",children:JSON.stringify(e)}]})}const qi={class:"relative"},Ii={key:0,class:"my-10 md:my-16 lg:my-20"},Li={__name:"product",props:{ctx:{type:Object,required:!0}},async setup(e){var f,u,a,o,m,v,N,V,$,S,E,A,q,I,j,x,h,D,R,_,B,M,L;let i,n;const r=e;Fe({title:(f=r.ctx.seo)==null?void 0:f.title,ogTitle:(u=r.ctx.seo)==null?void 0:u.title,description:(a=r.ctx.seo)==null?void 0:a.description,ogDescription:(o=r.ctx.seo)==null?void 0:o.description,ogImage:(V=(N=(v=(m=r.ctx.images)==null?void 0:m.edges)==null?void 0:v[0])==null?void 0:N.node)==null?void 0:V.url}),ye({"@context":"https://schema.org","@type":"Product",description:($=r.ctx.seo)==null?void 0:$.description,name:(S=r.ctx.seo)==null?void 0:S.title,primaryImageOfPage:(I=(q=(A=(E=r.ctx.images)==null?void 0:E.edges)==null?void 0:A[0])==null?void 0:q.node)==null?void 0:I.url,image:(D=(h=(x=(j=r.ctx.images)==null?void 0:j.edges)==null?void 0:x[0])==null?void 0:h.node)==null?void 0:D.url,offers:{"@type":"Offer",availability:"https://schema.org/InStock",price:(L=(M=(B=(_=(R=r.ctx.variants)==null?void 0:R.edges)==null?void 0:_[0])==null?void 0:B.node)==null?void 0:M.price)==null?void 0:L.amount,priceCurrency:"GBP"}});const d=r.ctx.variants.edges.length?r.ctx.variants.edges[0].node:null,c=d?d.sku:null,{data:g}=([i,n]=G(()=>K({query:le,variables:{sku:c}})),i=await i,n(),i),k=g.value&&g.value.entry?g.value.entry:null;return Ae("view_item",r.ctx),(Z,J)=>{var X,be,he,_e;const ce=xn,ue=Yn,ee=Ee,te=pi,ne=Pe,ie=Vi;return s(),p("div",qi,[b(ce,{ctx:e.ctx,entry:l(k)},null,8,["ctx","entry"]),b(ue,{ctx:e.ctx,content:l(k),class:""},null,8,["ctx","content"]),l(k)&&l(k).pageBuilder.length?(s(),p("div",Ii,[b(ee,{ctx:l(k).pageBuilder},null,8,["ctx"])])):y("",!0),b(te,{class:"container"}),(be=(X=e.ctx.related)==null?void 0:X.references)!=null&&be.edges.length?(s(),F(ne,{key:1,products:(_e=(he=e.ctx.related)==null?void 0:he.references)==null?void 0:_e.edges},null,8,["products"])):y("",!0),b(ie)])}}},Oi={class:"mt-3 mb-5 container mx-auto font-body flex flex-row"},ji={key:3,class:"text-sm text-foster-yellow lowercase capitalize"},Pi={__name:"Breadcrumb",props:{links:{type:Array,default(){return[]}},current:{type:String,default:null},rootTitle:{type:String,default:null}},setup(e){const i=e,n=T(()=>i.current?i.current.toLowerCase().replace(/\b\w/g,r=>r.toUpperCase()):"");return(r,d)=>{const c=ke;return s(),p("div",Oi,[e.rootTitle?(s(),F(c,{key:0,to:"/page/"+e.rootTitle,class:"text-sm hover:text-foster-light capitalize"},{default:P(()=>[W(w(e.rootTitle)+" ",1),d[0]||(d[0]=t("span",{class:"pl-1 text-white"},">",-1))]),_:1,__:[0]},8,["to"])):(s(),F(c,{key:1,to:"/",class:"flex flex-row items-center text-sm hover:text-foster-light"},{default:P(()=>[b(l(gt),{class:"text-white"}),d[1]||(d[1]=W()),d[2]||(d[2]=t("span",{class:"pl-1 text-white"},">",-1))]),_:1,__:[1,2]})),e.links.length?(s(!0),p(O,{key:2},z(e.links,(g,k)=>(s(),F(c,{key:k,to:"/"+g.url,class:"text-sm px-1 capitalize text-white hover:text-foster-light"},{default:P(()=>[W(w(g.title)+" ",1),d[3]||(d[3]=t("span",{class:"pl-1 text-grey-200"},">",-1))]),_:2,__:[3]},1032,["to"]))),128)):y("",!0),e.current?(s(),p("span",ji,w(l(n)),1)):y("",!0)])}}},Ri={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 569 389"};function Bi(e,i){return s(),p("svg",Ri,i[0]||(i[0]=[t("path",{fill:"#fff","fill-opacity":".2","fill-rule":"evenodd",d:"M266.69 57.876a57.875 57.875 0 1 1-115.75-.001 57.875 57.875 0 0 1 115.75 0Zm151.183 0a57.875 57.875 0 1 1-115.75-.001 57.875 57.875 0 0 1 115.75 0Zm150.59 0a57.874 57.874 0 1 1-115.751 0 57.874 57.874 0 1 1 115.751 0ZM190.509 194.194a57.872 57.872 0 1 1-115.744.001 57.872 57.872 0 0 1 115.744-.001Zm151.176 0a57.856 57.856 0 0 1-16.724 41.33 57.866 57.866 0 0 1-41.144 17.174 57.876 57.876 0 0 1-53.647-36.164 57.87 57.87 0 0 1 53.647-79.58 57.872 57.872 0 0 1 57.868 57.24Zm150.591 0a57.87 57.87 0 0 1-80.161 54.038 57.866 57.866 0 0 1-31.354-31.698 57.875 57.875 0 0 1 12.948-62.853 57.872 57.872 0 0 1 98.567 40.513ZM11
305.803 330.513a57.871 57.871 0 1 1-115.744 0 57.875 57.875 0 0 1 57.872-57.872 57.872 57.872 0 0 1 57.872 57.872Zm301.774 0a57.873 57.873 0 1 1-115.746-.002 57.873 57.873 0 0 1 115.746.002Z","clip-rule":"evenodd"},null,-1)]))}const Mi={render(){return oe(de,{icon:{render:Bi},name:"foster-dots"})}};function Hi(){return{titleCase:i=>i.toLowerCase().split(" ").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" ")}}const zi={class:"relative category-hero__container py-6 lg:py-10",style:{background:"linear-gradient(0deg, #17213F 0%, #3C56A5 100%), #17213F"}},Ui={class:"relative"},Gi={class:"container mx-auto relative z-10"},Qi={class:"flex flex-col items-center relative"},Zi={class:"w-full"},Wi={class:"title mx-auto flex flex-col"},Ki={class:"text-[40px] lg:text-5xl font-headingextrabold font-extrabold uppercase leading-none text-white"},Ji={class:"flex flex-col w-full"},Xi=["innerHTML"],Yi={class:"hidden xl:block absolute -right-10 -top-10"},ea={__name:"Hero",props:{ctx:{type:Object,required:!0}},setup(e){const i=e,n=C(!1),r=C(null),d=C(!1),c=xe();$e(()=>{Ce(()=>{r.value&&(d.value=r.value.scrollHeight>50)})});const g=T(()=>{const u=[];i.ctx.parent&&u.push({title:i.ctx.parent.title,url:`category/${i.ctx.parent.slug}`});const a=c.path.split("/").filter(o=>o);return a.forEach((o,m)=>{m<a.length-1&&u.push({title:o.replace("-"," "),url:a.slice(0,m+1).join("/")})}),u}),{titleCase:k}=Hi(),f=T(()=>{if(!i.ctx.descriptionHtml)return null;let u=i.ctx.descriptionHtml.match(/<p>.*?<\/p>/g);return u&&u.length>0?u.slice(0,1).join(""):i.ctx.descriptionHtml});return(u,a)=>{const o=Pi;return s(),p("div",zi,[t("div",Ui,[b(o,{links:l(g),current:e.ctx.title},null,8,["links","current"]),t("div",Gi,[t("div",Qi,[t("div",Zi,[t("div",Wi,[t("h1",Ki,w(l(k)(e.ctx.title)),1)])]),a[2]||(a[2]=t("div",{class:"slash hidden lg:block"},null,-1)),t("div",Ji,[l(f)?(s(),p("div",{key:0,ref_key:"textContainer",ref:r,innerHTML:l(f),class:U(["mt-2 copy w-full text-base text-white lg:text-base leading-relaxed font-light",{"max-h-[50px] overflow-y-hidden":!l(n)}])},null,10,Xi)):y("",!0),!l(n)&&l(d)?(s(),p("div",{key:1,class:"cursor-pointer font-body text-foster-yellow underline",onClick:a[0]||(a[0]=m=>n.value=!0)},"Read more")):l(n)&&l(d)?(s(),p("div",{key:2,class:"cursor-pointer font-body text-foster-yellow underline",onClick:a[1]||(a[1]=m=>n.value=!1)},"Read less")):y("",!0)])])])]),t("div",Yi,[b(l(Mi),{class:"text-white !h-[350px] !w-[700px]"})])])}}},ta={class:"container mx-auto mb-4 md:mb-6 font-headingextrabold font-extrabold text-[28px] leading-[24px] uppercase text-foster-dark"},na={class:"container mx-auto grid grid-cols-2 lg:grid-cols-4 justify-center gap-4 md:gap-x-8 md:gap-y-6"},ia={class:"p-[14.17px] md:p-[24px] rounded-[8px] transition duration-300 hover:bg-black/5 bg-gradient-to-b from-white/0 to-[#E5E7EC] border border-[#E5E7EC] flex items-center justify-center h-[163px] lg:h-[273px]"},aa={class:"uppercase font-heading font-extrabold text-[24px] leading-[24px] text-foster-dark group-hover:text-foster-base mt-[18px]"},la={__name:"Children",props:{title:{type:String,default:"Shop by category"},items:{type:Array,required:!0},parentUrl:{type:String,required:!0}},setup(e){const i=e,n=d=>d.type=="COLLECTION"&&d.resource?"/"+i.parentUrl+"/"+d.resource.handle:d.url,r={class:"w-[131px] lg:w-[223px] h-full max-h-[131px] lg:max-h-[223px] object-contain"};return(d,c)=>{const g=Re,k=ke;return s(),p("div",null,[t("div",ta,w(e.title),1),t("div",na,[(s(!0),p(O,null,z(e.items,f=>(s(),F(k,{key:f.id,to:n(f),class:"w-full group"},{default:P(()=>[t("div",ia,[f.type=="COLLECTION"&&f.resource?(s(),F(g,{key:0,src:f.resource.image.large,alt:f.resource.image.altText,"img-attrs":r},null,8,["src","alt"])):y("",!0)]),t("div",aa,w(f.title.toLowerCase()),1)]),_:2},1032,["to"]))),128))])])}}},ra=`query ($category: [QueryArgument]) { 31 category(group: "productCollections", collectionId: $category) { 32 ...on productCollections_Category { 33 title 34 products { 35 id 36 } 37 } 38 } 39}`,sa={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[{kind:"V
39ariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"category"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryArgument"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"},arguments:[{kind:"Argument",name:{kind:"Name",value:"group"},value:{kind:"StringValue",value:"productCollections",block:!1}},{kind:"Argument",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"category"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"productCollections_Category"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"products"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:251,source:{name:"GraphQL request",locationOffset:{line:1,column:1},body:ra}}},oa=`#import '../fragments/entry/product.gql' 40 41query ($category: [QueryArgument], $ids: [QueryArgument], $offset: Int, $limit: Int, $relatedTo: [QueryArgument], $price: [QueryArgument], $orderBy: String, $useCustomSort: Boolean! = false) { 42 productsFixed: entries(section: "products", id: $ids, relatedTo: $relatedTo, price: $price, limit: $limit, offset: $offset, fixedOrder: true) @skip(if: $useCustomSort) { 43 ...product 44 } 45 productsSorted: entries(section: "products", id: $ids, relatedTo: $relatedTo, price: $price, limit: $limit, offset: $offset, orderBy: $orderBy) @include(if: $useCustomSort) { 46 ...product 47 } 48 entryCount(section: "products", relatedTo: $relatedTo, price: $price, relatedToCategories: {group:"productCollections", collectionId: $category}) 49 brand: categories(group: "productBrands", relatedToEntries: {relatedToCategories: {group:"productCollections", collectionId: $category}}) { 50 id 51 slug 52 title 53 } 54 voltage: categories(group: "voltage", relatedToEntries: {relatedToCategories: {group:"productCollections", collectionId: $category}}) { 55 id 56 slug 57 title 58 } 59 warranty: categories(group: "warranty", relatedToEntries: {relatedToCategories: {group:"productCollections", collectionId: $category}}) { 60 id 61 slug 62 title 63 } 64 lowestPrice: entry(section: "products", relatedToCategories: {group:"productCollections", collectionId: $category}, orderBy: "price ASC") { 65 ...on product_Entry { 66 price 67 } 68 } 69 highestPrice: entry(section: "products", relatedToCategories: {group:"productCollections", collectionId: $category}, orderBy: "price DESC") { 70 ...on product_Entry { 71 price 72 } 73 } 74}`,ge={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"category"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryArgument"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ids"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryArgument"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"offset"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"limit"}},type:{kind:"NamedType",name:{kind:"Name",value:"Int"}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"relatedTo"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryArgument"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"price"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"QueryArgument"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"orderBy"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}
74,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"useCustomSort"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},defaultValue:{kind:"BooleanValue",value:!1},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"productsFixed"},name:{kind:"Name",value:"entries"},arguments:[{kind:"Argument",name:{kind:"Name",value:"section"},value:{kind:"StringValue",value:"products",block:!1}},{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"ids"}}},{kind:"Argument",name:{kind:"Name",value:"relatedTo"},value:{kind:"Variable",name:{kind:"Name",value:"relatedTo"}}},{kind:"Argument",name:{kind:"Name",value:"price"},value:{kind:"Variable",name:{kind:"Name",value:"price"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"fixedOrder"},value:{kind:"BooleanValue",value:!0}}],directives:[{kind:"Directive",name:{kind:"Name",value:"skip"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"useCustomSort"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"product"},directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"productsSorted"},name:{kind:"Name",value:"entries"},arguments:[{kind:"Argument",name:{kind:"Name",value:"section"},value:{kind:"StringValue",value:"products",block:!1}},{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"ids"}}},{kind:"Argument",name:{kind:"Name",value:"relatedTo"},value:{kind:"Variable",name:{kind:"Name",value:"relatedTo"}}},{kind:"Argument",name:{kind:"Name",value:"price"},value:{kind:"Variable",name:{kind:"Name",value:"price"}}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"Variable",name:{kind:"Name",value:"limit"}}},{kind:"Argument",name:{kind:"Name",value:"offset"},value:{kind:"Variable",name:{kind:"Name",value:"offset"}}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"Variable",name:{kind:"Name",value:"orderBy"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"useCustomSort"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"product"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"entryCount"},arguments:[{kind:"Argument",name:{kind:"Name",value:"section"},value:{kind:"StringValue",value:"products",block:!1}},{kind:"Argument",name:{kind:"Name",value:"relatedTo"},value:{kind:"Variable",name:{kind:"Name",value:"relatedTo"}}},{kind:"Argument",name:{kind:"Name",value:"price"},value:{kind:"Variable",name:{kind:"Name",value:"price"}}},{kind:"Argument",name:{kind:"Name",value:"relatedToCategories"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"group"},value:{kind:"StringValue",value:"productCollections",block:!1}},{kind:"ObjectField",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"category"}}}]}}],directives:[]},{kind:"Field",alias:{kind:"Name",value:"brand"},name:{kind:"Name",value:"categories"},arguments:[{kind:"Argument",name:{kind:"Name",value:"group"},value:{kind:"StringValue",value:"productBrands",block:!1}},{kind:"Argument",name:{kind:"Name",value:"relatedToEntries"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"relatedToCategories"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"group"},value:{kind:"StringValue",value:"productCollections",block:!1}},{kind:"ObjectField",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"category"}}}]}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"voltage"},name:{kind:"Name",value:"categories"},arguments:[{kind:"Argument",name:{kind:"Name",value:"group"},value:{kind:"StringValue",value:"voltage",block:!1}},{kind:"Argument",name:{kind:"Name",value:"relatedToEntries"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"relatedToCategories"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"group"}
74,value:{kind:"StringValue",value:"productCollections",block:!1}},{kind:"ObjectField",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"category"}}}]}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"warranty"},name:{kind:"Name",value:"categories"},arguments:[{kind:"Argument",name:{kind:"Name",value:"group"},value:{kind:"StringValue",value:"warranty",block:!1}},{kind:"Argument",name:{kind:"Name",value:"relatedToEntries"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"relatedToCategories"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"group"},value:{kind:"StringValue",value:"productCollections",block:!1}},{kind:"ObjectField",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"category"}}}]}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"lowestPrice"},name:{kind:"Name",value:"entry"},arguments:[{kind:"Argument",name:{kind:"Name",value:"section"},value:{kind:"StringValue",value:"products",block:!1}},{kind:"Argument",name:{kind:"Name",value:"relatedToCategories"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"group"},value:{kind:"StringValue",value:"productCollections",block:!1}},{kind:"ObjectField",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"category"}}}]}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"StringValue",value:"price ASC",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"product_Entry"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"price"},arguments:[],directives:[]}]}}]}},{kind:"Field",alias:{kind:"Name",value:"highestPrice"},name:{kind:"Name",value:"entry"},arguments:[{kind:"Argument",name:{kind:"Name",value:"section"},value:{kind:"StringValue",value:"products",block:!1}},{kind:"Argument",name:{kind:"Name",value:"relatedToCategories"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"group"},value:{kind:"StringValue",value:"productCollections",block:!1}},{kind:"ObjectField",name:{kind:"Name",value:"collectionId"},value:{kind:"Variable",name:{kind:"Name",value:"category"}}}]}},{kind:"Argument",name:{kind:"Name",value:"orderBy"},value:{kind:"StringValue",value:"price DESC",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"product_Entry"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"price"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:1701,source:{name:"GraphQL request",locationOffset:{line:1,column:1},body:oa}}},da=e=>{const i={};return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;const r=n.name.value;return i[r]?!1:(i[r]=!0,!0)})};ge.definitions=da(ge.definitions.concat(xt.definitions));const ca={key:0},ua={class:"container mx-auto flex flex-col md:flex-row gap-[16px] md:gap-[30px] justify-center"},ma={class:"block md:hidden text-center"},pa={class:"w-full"},ga={class:"flex flex-col md:flex-row mb-[16px] md:mb-[48px] gap-[16px] md:gap-0"},fa={class:"hidden md:block"},va={class:"ml-0 md:ml-auto pr-4 bg-grey-lightest border border-grey-checkout rounded-[8px] flex justify-between"},xa={key:0,class:"grid md:grid-cols-2 lg:grid-cols-3 gap-x-[23px] gap-y-[32px] md:gap-y-[40px]"},ka={class:"flex justify-center pt-8 md:pt-10"},ya={__name:"Products",props:{categoryId:{type:Number,required:!0},categoryTitle:{type:String,required:!0}},async setup(e){var I,j;let i,n;const r=e,{buildRanges:d}=ft(),c=C("default"),g=C(1),k=C(24),{data:f}=([i,n]=G(()=>K({query:sa,variables:{category:r.categoryId}})),i=await i,n(),i),u=C({ids:f.value.category.products.map(x=>x.id),category:r.categoryId,limit:k,offset:(g.value-1)*k.value,relatedTo:null,price:null,orderBy:c.value!="default"?c.value:null,useCustomSort:c.value!="default"}),{data:a,executeQuery:o}=([i,n]=G(()=>K({query:ge,variables:u.value})),i=await i,n(),i),m=T(()=>a.value.productsFixed??a.value.productsSorted??[]);q();const v=C(!1),N=[],V=d((I=a.value.lowestPrice)==null?void 0:I.price,(j=a.value.highestPrice)==null?void 0:j.price);V&&N.push({id:1,title:"Price",slug:"price",related:!1,multi:!1,children:V}),"brand"in a.value&&a.value.brand.length&&N.push({id:2,title:"Brand",slug:"brand",children:a.value.brand}),"warranty"in a.value&&a.value.warranty.length&&N.push({id:3,title:"Warranty",slug:"warranty",children:a.value.warranty}),"voltage"in a.value&&a.value.voltage.length&&N.push({id:4,title:"Voltage",slug:"voltage",children:a.value.voltage});const $={accordion:"w-full md:w-[clamp(120px,15vw,280px)] flex flex-col justify-center mb-[24px] mr-[30px]",heading:"text-foster-dark font-headingextrabold font-extrabold leading-1.5 mb-4 uppercase",groupWrapper:"bg-grey-lightest border border-grey-checkout mb-2 p-4 rounded-[8px]",categoryTitle:"cursor-pointer font-headingextrabold font-extrabold leading-1.5 text-foster-dark uppercase flex justify-between form-select",categoryTitleSelected:"mb-[8px]",option:"cursor-pointer text-foster-dark font-body leading-1.5 gap-[14px]",optionSelected:"",optionsWrapper:"",itemIcon:"text-foster-base !rounded-full"},S=x=>{g.value=x,u.value.offset=(g.value-1)*k.value,o({requestPolicy:"network-only"}),window.scrollTo({top:0,behavior:"smooth"})},E=()=>{u.value.orderBy=c.value!="default"?c.value:null,u.value.useCustomSort=c.value!="default",g.value=1,u.value.offset=(g.value-1)*k.value,o({requestPolicy:"network-only"})},A=x=>{if(x!=null&&x.selected&&"price"in x.selected&&x.selected.price.length){let h=x.selected.price[0],D=V.find(R=>R.id==h);u.value.price=["and",...D.search]}else u.value.price=null;u.value.relatedTo=x?x.relatedTo:null,g.value=1,u.value.offset=(g.value-1)*k.value,o({requestPolicy:"network-only"})};function q(){try{let x=[];a.value.categories.length&&a.value.categories[0].products.forEac
74h((h,D)=>{x.push({"@type":"ListItem",position:D,url:h.productUrl,item:{"@type":"Product",name:h.title,url:h.productUrl,offers:{"@type":"Offer",availability:"https://schema.org/InStock",price:h.price,priceCurrency:"GBP"}}})}),ye({"@context":"https://schema.org","@type":"ItemList",name:r.categoryTitle,itemListOrder:"https://schema.org/ItemListOrderAscending",numberOfItems:a.value.categories.length?a.value.categories[0].products.length:0,itemListElement:x})}catch{}}return(x,h)=>{const D=vt,R=st;return l(a)?(s(),p("div",ca,[t("div",ua,[t("div",ma,[t("strong",null,w(l(a).entryCount),1),h[2]||(h[2]=W(" products"))]),b(D,{data:N,onFilter:A,classes:$,class:"hidden md:block"}),t("div",pa,[t("div",ga,[t("div",fa,[t("strong",null,w(l(a).entryCount),1),h[3]||(h[3]=W(" products"))]),t("div",va,[Ne(t("select",{"onUpdate:modelValue":h[0]||(h[0]=_=>Xe(c)?c.value=_:null),class:"w-full md:w-auto bg-grey-lightest px-[16px] py-[12px]",onChange:E},h[4]||(h[4]=[t("option",{value:"default"},"Sort by: Recommended",-1),t("option",{value:"price ASC"},"Sort by: Price Low-High",-1),t("option",{value:"price DESC"},"Sort by: Price High-Low",-1),t("option",{value:"title ASC"},"Sort by: Title A-Z",-1)]),544),[[Je,l(c)]])])]),t("button",{onClick:h[1]||(h[1]=_=>v.value=!l(v)),class:"block md:hidden mb-8 md:mb-4 cursor-pointer font-extrabold font-heading h-[50px] flex items-center justify-center uppercase w-full bg-foster-dark text-white px-[24px] py-[8px] text-[18px] leading-[18px]"},w(l(v)?"Hide":"Show")+" Filters ",1),b(D,{data:N,onFilter:A,classes:$,class:U(l(v)?"block md:hidden mb-4 mt-4":"hidden")},null,8,["class"]),l(f)?(s(),p("div",xa,[(s(!0),p(O,null,z(l(m),_=>(s(),F(R,{key:_.id,id:_.variantId,url:_.productUrl,title:_.title,sku:_.productSku,price:_.price,"original-price":_.originalPrice,image:_.productImage,stock:_.stock,available:_.availability,created:_.dateCreated,brand:_.brand},null,8,["id","url","title","sku","price","original-price","image","stock","available","created","brand"]))),128))])):y("",!0),t("div",ka,[b(l(kt),{layout:"prev, pager, next","current-page":l(g),"page-size":l(k),total:l(a).entryCount,"onUpdate:currentPage":S},null,8,["current-page","page-size","total"])])])])])):y("",!0)}}},ba={class:"container mx-auto lg:relative lg:overflow-hidden mt-6 md:mt-16"},ha={class:"bg-foster-dark rounded-[16px] flex flex-col lg:flex-row"},_a={class:"py-[24px] px-[16px] lg:py-[64px] lg:pl-[48px] flex flex-col z-10"},wa={class:"grid grid-cols-1 md:grid-cols-2 my-[16px] lg:my-[24px] gap-y-[8px]"},Sa={class:"flex flex-row items-center gap-[8px]"},Na={class:"flex flex-row items-center gap-[8px]"},$a={class:"flex flex-row items-center gap-[8px]"},Ca={class:"flex flex-row items-center gap-[8px]"},Ta={class:"flex flex-row items-center gap-[8px]"},Fa={class:"flex flex-row items-center gap-[8px]"},Va={__name:"Cta",setup(e){return(i,n)=>(s(),p("div",ba,[t("div",ha,[n[8]||(n[8]=t("div",{class:"block lg:hidden relative z-1 top-0 right-0 w-full h-[193.709px] rounded-t-[16px] overflow-hidden"},[t("img",{src:ae,alt:"cta image",class:"object-cover-absolute"}),t("div",{class:"absolute inset-x-0 bottom-0 w-full h-[40%] bg-gradient-to-t from-foster-dark to transparent"})],-1)),t("div",_a,[n[6]||(n[6]=t("h2",{class:"font-headingextrabold font-extrabold uppercase text-white text-[26px] lg:text-[40px] leading-[24px] lg:leading-[40px]"},"Sign up for a trade account today",-1)),t("div",wa,[t("div",Sa,[b(l(qe),{class:"text-green-foster"}),n[0]||(n[0]=t("p",{class:"font-semibold font-body text-white text-[18px] leading-[27px]"},"Stock management solutions",-1))]),t("div",Na,[b(l(Ie),{class:"text-green-foster"}),n[1]||(n[1]=t("p",{class:"font-semibold font-body text-white text-[18px] leading-[27px]"},"Access 4000 products",-1))]),t("div",$a,[b(l(Le),{class:"text-green-foster"}),n[2]||(n[2]=t("p",{class:"font-semibold font-body text-white text-[18px] leading-[27px]"},"Welding repair and servicing in-house",-1))]),t("div",Ca,[b(l(Oe),{class:"text-green-foster"}),n[3]||(n[3]=t("p",{class:"font-semibold font-body text-white text-[18px] leading-[27px]"},"60 days credit terms",-1))]),t("div",Ta,[b(l(pe),{class:"text-green-foster"}),n[4]||(n[4]=t("p",{class:"font-semibold font-body text-white text-[18px] leading-[27px]"},"Unlimited technical support",-1))]),t("div",Fa,[b(l(je),{class:"text-green-foster"}),n[5]||(n[5]=t("p",{class:"font-semibold font-body text-white text-[18px] leading-[27px]"},"Bespoke pricing",-1))])]),n[7]||(n[7]=t("a",{href:"/page/trade-account",class:"cursor-pointer"},[t("button",{class:"btn btn-yellow--active !w-max"},"Sign up for trade account")],-1))]),n[9]||(n[9]=t("div",{class:"hidden lg:block z-1 absolute top-0 right-0 w-[556px] h-full rounded-r-[16px] overflow-hidden"}
74,[t("img",{src:ae,alt:"cta image",class:"object-cover-absolute"}),t("div",{class:"absolute left-0 inset-y-0 h-full w-[80%] bg-gradient-to-r from-foster-dark to transparent"})],-1))])]))}},Aa=`#import '../pagebuilder.gql' 75 76query ProductCollections($slug: [String!]) { 77 category(group: "productCollections", slug: $slug) { 78 id 79 title 80 ... on productCollections_Category { 81 id 82 plainText 83 pickerProductCollections { 84 ... on productCollections_Category { 85 id 86 slug 87 title 88 } 89 } 90 pageBuilder { 91 ...pageBuilderBlocks 92 } 93 } 94 } 95}`,re={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ProductCollections"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"},arguments:[{kind:"Argument",name:{kind:"Name",value:"group"},value:{kind:"StringValue",value:"productCollections",block:!1}},{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"productCollections_Category"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"plainText"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pickerProductCollections"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"productCollections_Category"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"pageBuilder"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pageBuilderBlocks"},directives:[]}]}}]}}]}}]}}],loc:{start:0,end:459,source:{name:"GraphQL request",locationOffset:{line:1,column:1},body:Aa}}},Da=e=>{const i={};return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;const r=n.name.value;return i[r]?!1:(i[r]=!0,!0)})};re.definitions=Da(re.definitions.concat(De.definitions));const Ea=(e,i)=>{const n=(a,o)=>{if(a.kind==="FragmentSpread")o.add(a.name.value);else if(a.kind==="VariableDefinition"){const m=a.type;m.kind==="NamedType"&&o.add(m.name.value)}return a&&"selectionSet"in a&&a.selectionSet&&a.selectionSet.selections.forEach(m=>{n(m,o)}),a&&"variableDefinitions"in a&&a.variableDefinitions&&a.variableDefinitions.forEach(m=>{n(m,o)}),a&&"definitions"in a&&a.definitions&&a.definitions.forEach(m=>{n(m,o)}),o},r=a=>{const o={};return a.definitions.forEach(function(m){"name"in m&&m.name&&(o[m.name.value]=n(m,new Set))}),o},d=(a,o)=>{for(let m=0;m<a.definitions.length;m++){const v=a.definitions[m];if(v&&"name"in v&&v.name&&v.name.value==o)return v}},c=r(e),g=Object.assign({},e,{definitions:[d(e,i)]}),k=c[i]||new Set,f=new Set;let u=new Set;for(k.forEach(a=>{u.add(a)});u.size>0;){const a=u;u=new Set,a.forEach(o=>{f.has(o)||(f.add(o),(c[o]||new Set).forEach(v=>{u.add(v)}))})}return f.forEach(a=>{const o=d(e,a);o&&g.definitions.push(o)}),g};Ea(re,"ProductCollections");const qa=`query Url($url: String) { 96 retourResolveRedirect(uri: $url) { 97 redirectDestUrl 98 redirectHttpCode 99 } 100}`,Be={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Url"}
100,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"url"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"retourResolveRedirect"},arguments:[{kind:"Argument",name:{kind:"Name",value:"uri"},value:{kind:"Variable",name:{kind:"Name",value:"url"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"redirectDestUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"redirectHttpCode"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:147,source:{name:"GraphQL request",locationOffset:{line:1,column:1},body:qa}}},Ia={class:"category_view"},La={class:"relative my-[24px] md:mt-[56px] md:mb-[64px]"},Oa={key:2,class:"mt-12"},ja={key:5,class:"container mx-auto w-full m-auto mt-12"},Pa={class:"pt-12 pb-2 uppercase font-headingextrabold font-bold font-bold font-extrabold text-xl sm:text-3xl text-foster-dark"},Ra=["innerHTML"],Ba={__name:"category",props:{ctx:{type:Object,required:!0}},async setup(e){var A,q,I,j,x,h,D,R;let i,n;const r=e;Fe({title:(A=r.ctx.seo)==null?void 0:A.title,ogTitle:(q=r.ctx.seo)==null?void 0:q.title,description:(I=r.ctx.seo)==null?void 0:I.description,ogDescription:(j=r.ctx.seo)==null?void 0:j.description,ogImage:(x=r.ctx.image)==null?void 0:x.url});const d=Ye(),{shopMenu:c}=ve(),g=xe(),k=Array.from(g.path)[0];let f=d.public.urls.live+g.path;k=="/"&&(f=d.public.urls.live+g.path.substring(1)),ye({"@context":"https://schema.org","@type":"CollectionPage","@id":f,name:(h=r.ctx.seo)==null?void 0:h.title,url:f,description:(D=r.ctx.seo)==null?void 0:D.description});const u=g.params.slug[g.params.slug.length-1],a=v(c,u),o=a&&"items"in a?a.items.length:!1;Te(()=>({link:[{rel:"canonical",href:f}]}));const m=T(()=>{if(!r.ctx.descriptionHtml)return null;let _=r.ctx.descriptionHtml.match(/<p>.*?<\/p>/);return r.ctx.descriptionHtml.replace(_,"")});function v(_,B){var M,L;for(const Z of _){if(((M=Z.resource)==null?void 0:M.handle)===B)return Z;if((L=Z.items)!=null&&L.length){const J=v(Z.items,B);if(J)return J}}return null}const N=_=>_.normalize("NFKD").toLowerCase().replace(/[^\w\s-]/g,"").trim().replace(/[-\s]+/g,"-"),{data:V}=([i,n]=G(()=>K({query:Be,variables:{url:"/"+g.path.replace(/^\/+/g,"")}})),i=await i,n(),i),$=(R=V.value)==null?void 0:R.retourResolveRedirect;$!=null&&$.redirectDestUrl&&Ve($.redirectDestUrl,{redirectCode:$.redirectHttpCode,external:!0});const{data:S}=([i,n]=G(()=>K({query:re,variables:{slug:N(r.ctx.title)}})),i=await i,n(),i),E=T(()=>{if(!S.value||!S.value.category||!("pickerProductCollections"in S.value.category)||!S.value.category.pickerProductCollections.length)return[];let _=S.value.category.pickerProductCollections,B=[];return _.forEach(M=>{let L=v(c,M.slug);L&&B.push(L)}),B});return(_,B)=>{var ee,te,ne,ie,X;const M=ea,L=la,Z=ya,J=Ee,ce=Pe,ue=Va;return s(),p("div",Ia,[b(M,{ctx:e.ctx},null,8,["ctx"]),t("div",La,[l(o)?(s(),F(L,{key:0,items:l(a).items,"parent-url":l(g).path},null,8,["items","parent-url"])):(s(),F(Z,{key:1,categoryId:e.ctx.id,categoryTitle:e.ctx.title},null,8,["categoryId","categoryTitle"])),l(S).category&&l(S).category.pageBuilder&&l(S).category.pageBuilder.length?(s(),p("div",Oa,[b(J,{ctx:l(S).category.pageBuilder},null,8,["ctx"])])):y("",!0),l(o)&&((te=(ee=e.ctx.related)==null?void 0:ee.references)!=null&&te.edges.length)?(s(),F(ce,{key:3,products:(ie=(ne=e.ctx.related)==null?void 0:ne.references)==null?void 0:ie.edges,title:"Featured "+e.ctx.title},null,8,["products","title"])):y("",!0),b(ue),l(E).length?(s(),F(L,{key:4,title:((X=l(S).category)==null?void 0:X.plainText)||"More Categories",items:l(E),"parent-url":l(g).path,class:"mt-8"},null,8,["title","items","parent-url"])):y("",!0),l(m)?(s(),p("div",ja,[t("h2",Pa,"MORE ABOUT "+w(e.ctx.title),1),t("div",{class:"category-view__description mb-8 pb-8 text-base text-grey-400 wysiwyg",innerHTML:l(m)},null,8,Ra)])):y("",!0)])])}}},Ma=`#import './productCard.gql' 101 102fragment collection on Collection { 103 id 104 title 105 handle 106 descriptionHtml 107 seo { 108 title 109 description 110 } 111 image { 112 id 113 url 114 } 115 related: metafield(namespace: "custom", key: "featured_products") { 116 references(first: 10) { 117 edges { 118 node { 119 ...card 120 } 121 } 122 } 123 } 124}`,se={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"collection"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Collection"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"handle"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"descriptionHtml"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"seo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"related"},name:{kind:"Name",value:"metafield"},arguments:[{kind:"Argument",name:{kind:"Name",value:"namespace"},value:{kind:"StringValue",value:"custom",block:!1}},{kind:"Argument",name:{kind:"Name",value:"key"},value:{kind:"StringValue",value:"featured_products",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"references"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"10"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"edges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"node"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"card"},directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:466,source:{name:"GraphQL request",locationOffset:{line:1,column:1},body:Ma}}},Ha=e=>{const i={};return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;const r=n.name.value;return i[r]?!1:(i[r]=!0,!0)})};se.definitions=Ha(se.definitions.concat(ct.definitions));const za=(e,i)=>{const n=(a,o)=>
124{if(a.kind==="FragmentSpread")o.add(a.name.value);else if(a.kind==="VariableDefinition"){const m=a.type;m.kind==="NamedType"&&o.add(m.name.value)}return a&&"selectionSet"in a&&a.selectionSet&&a.selectionSet.selections.forEach(m=>{n(m,o)}),a&&"variableDefinitions"in a&&a.variableDefinitions&&a.variableDefinitions.forEach(m=>{n(m,o)}),a&&"definitions"in a&&a.definitions&&a.definitions.forEach(m=>{n(m,o)}),o},r=a=>{const o={};return a.definitions.forEach(function(m){"name"in m&&m.name&&(o[m.name.value]=n(m,new Set))}),o},d=(a,o)=>{for(let m=0;m<a.definitions.length;m++){const v=a.definitions[m];if(v&&"name"in v&&v.name&&v.name.value==o)return v}},c=r(e),g=Object.assign({},e,{definitions:[d(e,i)]}),k=c[i]||new Set,f=new Set;let u=new Set;for(k.forEach(a=>{u.add(a)});u.size>0;){const a=u;u=new Set,a.forEach(o=>{f.has(o)||(f.add(o),(c[o]||new Set).forEach(v=>{u.add(v)}))})}return f.forEach(a=>{const o=d(e,a);o&&g.definitions.push(o)}),g};za(se,"collection");const Ua=`#import './fragments/product.gql' 125#import './fragments/collection.gql' 126 127query ($handle: String) { 128 collection: collection(handle: $handle) { 129 ...collection 130 } 131 product: product(handle: $handle) { 132 ...product 133 } 134}`,Y={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"handle"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"collection"},name:{kind:"Name",value:"collection"},arguments:[{kind:"Argument",name:{kind:"Name",value:"handle"},value:{kind:"Variable",name:{kind:"Name",value:"handle"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"collection"},directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"product"},name:{kind:"Name",value:"product"},arguments:[{kind:"Argument",name:{kind:"Name",value:"handle"},value:{kind:"Variable",name:{kind:"Name",value:"handle"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"product"},directives:[]}]}}]}}],loc:{start:0,end:260,source:{name:"GraphQL request",locationOffset:{line:1,column:1},body:Ua}}},Me=e=>{const i={};return e.filter(function(n){if(n.kind!=="FragmentDefinition")return!0;const r=n.name.value;return i[r]?!1:(i[r]=!0,!0)})};Y.definitions=Me(Y.definitions.concat(ut.definitions));Y.definitions=Me(Y.definitions.concat(se.definitions));const Ga=async e=>{const{$urqlShopify:i}=et();return await i.query(e.query,e.variables).toPromise()},wl={__name:"[...slug]",async setup(e){var f;let i,n;const r=xe(),{data:d}=([i,n]=G(()=>Ga({query:Y,variables:{handle:r.params.slug[r.params.slug.length-1]}})),i=await i,n(),i);if(!d||!d.collection&&!d.product){const{data:u}=([i,n]=G(()=>K({query:Be,variables:{url:"/"+r.path.replace(/^\/+/g,"")}})),i=await i,n(),i),a=(f=u.value)==null?void 0:f.retourResolveRedirect;if(a!=null&&a.redirectDestUrl)[i,n]=G(()=>Ve(a.redirectDestUrl,{redirectCode:a.redirectHttpCode,external:!0})),await i,n();else throw tt({statusCode:404,statusMessage:"Page not found"})}const c={product:Li,collection:Ba},g=T(()=>d&&d.collection?"collection":"product"),k=T(()=>c[g.value]);return(u,a)=>l(d).collection||l(d).product?(s(),F(nt(l(k)),{key:0,ctx:l(d)[l(g)]},null,8,["ctx"])):y("",!0)}};export{wl as default};
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.