1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{82114:(e,t,i)=>{Promise.resolve().then(i.bind(i,63647)),Promise.resolve().then(i.bind(i,48555)),Promise.resolve().then(i.bind(i,84189)),Promise.resolve().then(i.bind(i,71415)),Promise.resolve().then(i.bind(i,96795)),Promise.resolve().then(i.bind(i,31957)),Promise.resolve().then(i.bind(i,95188)),Promise.resolve().then(i.bind(i,55981)),Promise.resolve().then(i.bind(i,86980)),Promise.resolve().then(i.bind(i,97077)),Promise.resolve().then(i.bind(i,81641)),Promise.resolve().then(i.bind(i,91693)),Promise.resolve().then(i.bind(i,90487)),Promise.resolve().then(i.bind(i,17202)),Promise.resolve().then(i.bind(i,29094)),Promise.resolve().then(i.t.bind(i,53704,23))},37638:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});var n=i(95155),s=i(81965),o=i.n(s);let a=e=>{let{bolder:t}=e;return(0,n.jsx)("div",{className:"".concat(o().line," ").concat(t&&o().bolder)})}},84189:(e,t,i)=>{"use strict";i.d(t,{default:()=>l});var n=i(95155),s=i(12115),o=i(91910),a=i.n(o),r=i(82651),d=i(53805);let l=function(){let[e,t]=(0,s.useState)({regularMessage:{text:"",isVisible:!1},errorMessage:{text:"",isVisible:!1}}),{initialAction:i}=(0,d.Us)();async function o(e){try{let i=(await r.A.get(e)).data;t({regularMessage:{text:i.text_en,isVisible:i.show},errorMessage:{text:i.error_msg_en,isVisible:i.show_error}})}catch(e){console.error("Failed to fetch marquee data:",e)}}return((0,s.useEffect)(()=>{i&&o("https://api.ozparts.eu/marquees/pedderscouk")},[i]),e.errorMessage.isVisible&&e.errorMessage.text||e.regularMessage.isVisible&&e.regularMessage.text)?(0,n.jsx)("div",{className:a().scrollContainer,children:(0,n.jsx)("div",{className:a().scrollText,children:(()=>{let{errorMessage:t,regularMessage:i}=e;return t.isVisible?t.text:i.isVisible?i.text:""})()})}):null}},71415:(e,t,i)=>{"use strict";i.d(t,{default:()=>u});var n=i(95155),s=i(12115),o=i(65285),a=i(76046),r=i(90643),d=i(71882),l=i(53648),c=i(31643),p=i(81559);let u=e=>{let{mobile:t}=e,[i,o]=(0,s.useState)(!1),[u,E]=(0,s.useState)(""),[T,O]=(0,s.useState)([]),[M,B]=(0,s.useState)([]),[F,U]=(0,s.useState)(!1),R=(0,s.useRef)(null),D=(0,a.useRouter)(),L=(0,d.M)();(0,s.useEffect)(()=>{if(i){var e;null===(e=R.current)||void 0===e||e.focus(),document.body.style.overflow="hidden"}else document.body.style.overflow="";return()=>document.body.style.overflow=""},[i]);let K=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;e&&(U(!0),J(e),o(!1),D.push("/search/"+e))};(0,s.useEffect)(()=>{i&&!u&&B(G())},[i,u]);let W=(e,t)=>[...e].sort((e,i)=>{var n,s;let o=(null===(n=e.name)||void 0===n?void 0:n.toString())||"",a=(null===(s=i.name)||void 0===s?void 0:s.toString())||"",r=o.indexOf(t),d=a.indexOf(t);return o.startsWith(t)&&!a.startsWith(t)?-1:!o.startsWith(t)&&a.startsWith(t)?1:-1!==r&&-1!==d?r-d:-1!==r?-1:-1!==d?1:0});(0,s.useEffect)(()=>{if(!u||u.length<=1){O([]);return}let e=!0;return(async()=>{O([]);let t=await (0,r.$P)(u,L);e&&O(W(t.data,u))})(),()=>{e=!1}},[u,L]);let H="search_history",J=e=>{if(!e)return;let t=JSON.parse(localStorage.getItem(H))||{};t[e]=(t[e]||0)+1,localStorage.setItem(H,JSON.stringify(t))},G=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return Object.entries(JSON.parse(localStorage.getItem(H))||{}).sort((e,t)=>t[1]-e[1]).slice(0,e).map(e=>{let[t]=e;return t})},V=()=>{O([]),E("")},q=(0,a.usePathname)(),Z=e=>{U(!0),(0,p.Vd)(e),J(e.name),D.push("/details/"+e.urlcomponent)};return(0,s.useEffect)(()=>{U(!1)},[q]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(P,{onClick:()=>o(!0),"aria-label":"Search button",$mobile:t,children:(0,n.jsx)("i",{className:"fa fa-search","aria-hidden":"true",style:{color:"#666666"}})}),(0,n.jsx)(h,{children:(0,n.jsxs)(f,{children:[(0,n.jsx)(g,{placeholder:"Searchâ¦",onFocus:()=>o(!0),onClick:()=>o(!0),readOnly:!0}),(0,n.jsx)(m,{disabled:!u.length,onClick:K,"aria-label":"Search",children:(0,n.jsx)("i",{className:"fa fa-search","aria-hidden":"true"})})]})}),i&&(0,n.jsx)(x,{children:(0,n.jsx)(y,{children:(0,n.jsxs)(b,{children:[(0,n.jsxs)(w,{children:[(0,n.jsx)(v,{ref:R,value:u,onChange:e=>E(e.target.value),placeholder:"Search products...",onKeyDown:e=>"Enter"===e.key&&K(e.target.value)}),(0,n.jsx)(k,{disabled:!u,onClick:()=>K(),children:"Search"}),(null==u?void 0:u.length)>1?(0,n.jsx)(j,{onClick:()=>V(),children:(0,n.jsx)("i",{className:"fa fa-times-circle",style:{fontSize:"20px"}})}):null,(0,n.jsx)(j,{onClick:()=>o(!1),children:"Cancel"})]}),(0,n.jsx)(l.A,{loading:!(null==T?void 0:T.length)&&u.length>1,height:"3px",width:"100%",color:"#F54D40"}),!u&&M.length>0&&(0,n.jsxs)(_,{children:[(0,n.jsx)("h4",{children:"Recent searches"}),[...M].reverse().map(e=>(0,n.jsxs)(I,{onClick:()=>K(e),children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(N,{src:"/assets/reverse-time.webp"}),e]}),(0,n.jsx)(S,{children:(0,n.jsx)("i",{className:"fa fa-long-arrow-right"})})]},e))]}),(0,n.jsx)(A,{children:T.map(e=>{var t,i;return(0,n.jsx)("div",{onClick:()=>{o(!1),Z(e)},children:(0,n.jsxs)(C,{children:[(0,n.jsx)("img",{src:(null===(i=e.photos)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.url)||"/assets/placeholders/pedders_placeholder.webp",alt:e.displayname}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h5",{children:e.name}),(0,n.jsx)("p",{children:e.description})]}),(0,n.jsx)(S,{children:(0,n.jsx)("i",{className:"fa fa-long-arrow-right"})})]})},e.name)})})]})})}),F&&(0,n.jsx)(z,{children:(0,n.jsx)(c.A,{color:"red",size:14})})]})},h=o.Ay.div.withConfig({componentId:"sc-58332e10-0"})(["padding:10px 15px;@media (min-width:990px){display:none;}"]),f=o.Ay.div.withConfig({componentId:"sc-58332e10-1"})(["position:relative;width:100%;"]),m=o.Ay.button.withConfig({componentId:"sc-58332e10-2"})(["position:absolute;right:10px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:#666;&:disabled{opacity:0.4;cursor:default;}"]),g=o.Ay.input.withConfig({componentId:"sc-58332e10-3"})(["width:100%;height:40px;padding:0 12px;border:1px solid #ccc;border-radius:6px;cursor:pointer;"]),x=o.Ay.div.withConfig({componentId:"sc-58332e10-4"})(["position:fixed;inset:0;background:#393838e2;z-index:9998;display:flex;justify-content:center;align-items:center;"]),y=o.Ay.div.withConfig({componentId:"sc-58332e10-5"})(["width:100%;max-width:800px;height:75vh;background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,0.25);@media (max-width:990px){height:100vh;height:100dvh;border-radius:0;}"]),b=o.Ay.div.withConfig({componentId:"sc-58332e10-6"}
1)(["height:100%;overflow-y:auto;display:flex;flex-direction:column;scrollbar-gutter:stable;"]),w=o.Ay.div.withConfig({componentId:"sc-58332e10-7"})(["display:flex;align-items:center;padding:12px;padding-top:calc(12px + env(safe-area-inset-top));background-color:white;border-bottom:1px solid #eee;position:sticky;top:0;z-index:1000;@media (min-width:990px){padding:20px;}"]),v=o.Ay.input.withConfig({componentId:"sc-58332e10-8"})(["flex:1;height:40px;padding:0 12px;font-size:16px;border:1px solid #ccc;border-radius:6px;"]),j=o.Ay.button.withConfig({componentId:"sc-58332e10-9"})(["margin-left:10px;font-size:16px;font-weight:600;background:none;border:none;cursor:pointer;color:black;transition:0.3s;&:hover{cursor:pointer;color:red;}"]),k=o.Ay.button.withConfig({componentId:"sc-58332e10-10"})(["margin-left:3px;font-size:16px;font-weight:600;background:red;height:40px;border-radius:6px;border:none;cursor:pointer;color:white;transition:0.3s;padding:0 20px;&:hover{cursor:pointer;opacity:0.7;}@media (max-width:990px){display:none;}"]),A=o.Ay.div.withConfig({componentId:"sc-58332e10-11"})(["@media (min-width:990px){padding:20px;}"]),C=o.Ay.div.withConfig({componentId:"sc-58332e10-12"})(["padding:10px 15px;border-bottom:1px solid #e8e8e8;display:flex;transition:0.3s;img{min-width:50px;max-width:50px;min-heigt:50px;max-height:50px;margin-right:20px;}div{display:flex;flex-direction:column;h5{font-size:15px;margin:5px 0 0 0;transition:0.3s;}p{font-size:13px;margin:0;}}&:hover{cursor:pointer;h5{color:red;}}"]),S=o.Ay.div.withConfig({componentId:"sc-58332e10-13"})(["color:#9c9c9c;margin:auto 0 0 auto;"]),_=o.Ay.div.withConfig({componentId:"sc-58332e10-14"})(["padding:10px 15px;h4{font-size:16px;margin:8px 0;color:#666;}"]),I=o.Ay.div.withConfig({componentId:"sc-58332e10-15"})(["padding:10px 0;border-bottom:1px solid #eee;cursor:pointer;font-size:16px;font-weight:600;display:flex;&:hover{color:#f54d40;}div{display:flex;aligne-items:center;padding:10px 0;}"]),N=o.Ay.img.withConfig({componentId:"sc-58332e10-16"})(["width:22px;opacity:0.6;margin-right:15px;"]),P=o.Ay.button.withConfig({componentId:"sc-58332e10-17"})(["border-radius:25px;background-color:rgb(235,235,237);width:42px;margin-left:40px;height:42px;display:flex;justify-content:center;align-items:center;font-size:14px;border:none;right:0;z-index:100;display:",";&:focus{outline:none;}&:hover{cursor:pointer;}@media (max-width:425px){margin-right:10px;}"],e=>e.$mobile?"none":"flex"),z=o.Ay.div.withConfig({componentId:"sc-58332e10-18"})(["position:fixed;inset:0;background:rgba(255,255,255,0.5);z-index:9999;display:flex;align-items:center;justify-content:center;"])},30433:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>l});var n=i(95155);i(12115);var s=i(65285);let o=e=>{let{text:t,bolder:i,h1:s}=e;return(0,n.jsx)(n.Fragment,{children:s?(0,n.jsx)(r,{$bolder:i,children:t}):(0,n.jsx)(a,{$bolder:i,children:t})})},a=s.Ay.h3.withConfig({componentId:"sc-8a3372ce-0"})(["font-weight:700;font-size:",";text-transform:uppercase;margin-bottom:0;color:#444444;"],e=>e.$bolder?"20px":"1em"),r=s.Ay.h1.withConfig({componentId:"sc-8a3372ce-1"})(["font-weight:700;font-size:",";text-transform:uppercase;margin-bottom:0;color:#444444;"],e=>e.$bolder?"20px":"1em");var d=i(37638);let l=e=>{let{text:t,bolder:i,soft:s,h1:a,margin:r}=e;return(0,n.jsxs)(c,{margin:r,children:[(0,n.jsx)(o,{text:t,bolder:i,h1:a}),!s&&(0,n.jsx)(d.A,{bolder:i})]})},c=s.Ay.div.withConfig({componentId:"sc-fd2c1438-0"})(["margin-bottom:",";"],e=>{let{margin:t}=e;return null!=t?t:"20px"})},84187:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var n=i(95155);i(12115);var s=i(65285),o=i(67396),a=i(36514);let r=[{make:"Citroen",models:[{to:"/info-citroen-dispatch",display:"Dispatch"}]},{make:"Chrysler",models:[{to:"/info-chrysler-300c",display:"Chrysler 300C"}]},{make:"Dacia",models:[{to:"/info-dacia-duster",display:"Duster"}]},{make:"Dodge",models:[{to:"/info-dodge-ram",display:"Ram"}]},{make:"Ford",models:[{to:"/info-ford-ranger",display:"Ranger"},{to:"/info-ford-mustang",display:"Mustang"}]},{make:"Fiat",models:[{to:"/info-fiat-talento",display:"Talento"}]},{make:"Hyundai",models:[{to:"/info-hyundai-santa-fe",display:"Santa Fe"}]},{make:"Isuzu",models:[{to:"/info-isuzu-d-max",display:"D-Max"}]},{make:"Jeep",models:[{to:"/info-jeep-gladiator",display:"Gladiator"},{to:"/info-jeep-wrangler",display:"Wrangler"}]},{make:"Kia",models:[{to:"/info-kia-sorento",display:"Sorento"},{to:"/info-kia-sportage",display:"Sportage"}]},{make:"Mercedes",models:[{to:"/info-mercedes-x-class",display:"X-Class"}]},{make:"Mazda",models:[{to:"/info-mazda-mx5",display:"MX5"}]},{make:"Mitsubishi",models:[{to:"/info-mitsubishi-l200",display:"L200"},{to:"/info-mitsubishi-shogun",display:"Pajero & Shogun"}
1,{to:"/info-mitsubishi-shogun-sport",display:"Shogun Sport"}]}],d=[{make:"Nissan",models:[{to:"/info-nissan-navara",display:"Navara"},{to:"/info-nissan-nv300",display:"NV300"},{to:"/info-nissan-pathfinder",display:"Pathfinder"},{to:"/info-nissan-patrol",display:"Patrol"},{to:"/info-nissan-x-trail",display:"X-Trail"}]},{make:"Renault",models:[{to:"/info-renault-trafic",display:"Trafic"}]},{make:"Subaru",models:[{to:"/info-subaru-forester",display:"Forester"},{to:"/info-subaru-impreza",display:"Impreza"},{to:"/info-subaru-outback",display:"Outback"},{to:"/info-subaru-brz",display:"BRZ"},{to:"/info-subaru-xv",display:"XV"}]},{make:"Suzuki",models:[{to:"/info-suzuki-jimny",display:"Jimny"}]},{make:"Tesla",models:[{to:"/info-tesla-model-3",display:"Model 3"}]},{make:"Toyota",models:[{to:"/info-toyota-hilux",display:"Hilux 4WD"},{to:"/info-toyota-landcruiser",display:"Landcruiser"},{to:"/info-toyota-gt86",display:"GT86"}]},{make:"Vauxhall",models:[{to:"/info-vauxhall-monaro",display:"Monaro & VXR8"},{to:"/info-vauxhall-vivaro",display:"Vivaro"}]},{make:"Volkswagen",models:[{to:"/info-volkswagen-amarok",display:"Amarok"},{to:"/info-volkswagen-transporter",display:"Transporter"},{to:"/info-volkswagen-golf",display:"Golf"}]}],l=()=>(0,n.jsxs)(u,{children:[(0,n.jsx)("div",{children:r.map(e=>{let{make:t,models:i}=e;return(0,n.jsxs)("div",{children:[(0,n.jsx)(c,{children:t}),i.map(e=>{let{to:t,display:i}=e;return(0,n.jsx)(p,{href:t,className:"gtm_nav_popular_vehicles",children:i},i)})]},t)})}),(0,n.jsx)("div",{children:d.map(e=>{let{make:t,models:i}=e;return(0,n.jsxs)("div",{children:[(0,n.jsx)(c,{children:t}),i.map(e=>{let{to:t,display:i}=e;return(0,n.jsx)(p,{href:t,className:"gtm_nav_popular_vehicles",children:i},i)})]},t)})})]}),c=s.Ay.span.withConfig({componentId:"sc-a3771299-0"})(["font-weight:bold;font-size:12px;color:#666666;display:block;margin-bottom:5px;"]),p=(0,s.Ay)(o.default).withConfig({componentId:"sc-a3771299-1"})(["display:block;margin-bottom:5px;font-size:12px;color:#444444;@media screen and (min-width:992px){padding-left:15px;}&:hover{color:",";}"],a.jd),u=s.Ay.div.withConfig({componentId:"sc-a3771299-2"})(["display:grid;grid-template-columns:repeat(2,1fr);"])},55639:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var n=i(95155);i(12115);var s=i(65285),o=i(67396),a=i(36514);let r=[{to:"/info-trade",display:"Trade"},{to:"/info-distributors-uk",display:"UK Dealers"},{to:"https://pedders.eu/distributors",display:"EU Dealers"}],d=[{to:"https://www.pedders.com.au/stores",display:"International Dealers"}],l=()=>(0,n.jsxs)(p,{children:[(0,n.jsx)("div",{children:r.map(e=>{let{display:t,to:i}=e;return i.startsWith("http")?(0,n.jsx)(u,{href:i,target:"_blank",rel:"noopener noreferrer",children:t},t):(0,n.jsx)(c,{href:i,children:t},t)})}),(0,n.jsx)("div",{children:d.map(e=>{let{display:t,to:i}=e;return i.startsWith("http")?(0,n.jsx)(u,{href:i,target:"_blank",rel:"noopener noreferrer",children:t},t):(0,n.jsx)(c,{href:i,children:t},t)})})]}),c=(0,s.Ay)(o.default).withConfig({componentId:"sc-c3cca8ba-0"})(["font-weight:bold;font-size:12px;color:#666666;display:block;margin-bottom:5px;&:hover{color:",";}"],a.jd),p=s.Ay.div.withConfig({componentId:"sc-c3cca8ba-1"})(["display:grid;grid-template-columns:repeat(2,1fr);"]),u=s.Ay.a.withConfig({componentId:"sc-c3cca8ba-2"})(["font-weight:bold;font-size:12px;color:#666666;display:block;margin-bottom:5px;&:hover{color:",";}"],a.jd)},96795:(e,t,i)=>{"use strict";i.d(t,{default:()=>c});var n=i(95155),s=i(12115),o=i(65285),a=i(73498),r=i(53805),d=i(76216),l=i(76046);let c=()=>{let{initialAction:e,showCookiesManager:t}=(0,r.Us)(),{cookiesConsentCtx:i}=(0,d.bh)(),{showDrawer:o,toggleDrawer:c}=(0,s.useContext)(a.A),u=(0,l.usePathname)(),h=e&&(o||!i.accepted)&&!t,f=e=>{document.body.style.overflow=e};return((0,s.useEffect)(()=>(f(h?"hidden":"visible"),()=>f("visible")),[h]),"/cookies"!==u&&h)?(0,n.jsx)(p,{onClick:c}):null},p=o.Ay.div.withConfig({componentId:"sc-6d165e90-0"})(["background-color:#0000004d;z-index:500;position:fixed;top:0;left:0;width:100%;height:100%;"])},31957:(e,t,i)=>{"use strict";i.d(t,{default:()=>a});var n=i(95155);i(12115);var s=i(65285),o=i(34798);let a=()=>(0,n.jsx)(r,{children:(0,n.jsx)(o.default,{children:"Pedders Suspension \xa9 2026 All Rights Reserved."})}),r=s.Ay.section.withConfig({componentId:"sc-25f2079c-0"})(['background-color:#f5f5f5;padding:30px 0;color:#555555;font-weight:400;font-size:12px;font-family:"Open Sans",sans-serif;'])},95188:(e,t,i)=>{"use strict";i.d(t,{CookieContainer:()=>S});var n=i(95155),s=i(12115),o=i(65285),a=i(34798),r=i(36514),d=i(76046);let l=e=>{let{onCookieConsentResponse:t}=e,i=(0,d.useRouter)(),s=()=>{t("agree")},o=()=>{t("manage")};return(0,n.jsx)(c,{$visible:!0,children:(0,n.jsx)(a.default,{children:(0,n.jsxs)(u,{children:[(0,n.jsxs)(p,{children:["This site uses co
1okies and similar technologies to ensure the proper functioning of our website, to analyze traffic, and to personalize ads. With your consent, we and our partners (including Google) may use cookies and mobile advertising identifiers to measure advertising performance and to provide personalized and non-personalized advertising. Find out more about how we use cookies and how you can change your preferences by reading our"," ",(0,n.jsx)(g,{onClick:function(){i.push("/cookies")},"aria-label":"Link to cookie policy",children:"Cookie Policy"})," ","and",(0,n.jsxs)(g,{children:[" ",(0,n.jsx)("a",{style:{color:"#dc3332"},href:"https://business.safety.google/privacy/",target:"_blank",children:"Googleâs Business Data Responsibility Site"})]}),"."]}),(0,n.jsx)(f,{onClick:()=>s(),"aria-label":"Agree to cookie policy button",children:"Agree"}),(0,n.jsx)(m,{onClick:()=>o(),"aria-label":"Open cookie settings",children:"Manage"})]})})})},c=o.Ay.div.withConfig({componentId:"sc-207d9ca1-0"})(["display:",";padding:20px 0;width:100%;position:fixed;top:0;background-color:white;z-index:505;"],e=>{let{$visible:t}=e;return t?"block":"none"}),p=o.Ay.div.withConfig({componentId:"sc-207d9ca1-1"})(["padding:5px;"]),u=o.Ay.div.withConfig({componentId:"sc-207d9ca1-2"})(["display:flex;align-items:center;@media screen and (max-width:600px){flex-direction:column;}"]),h=o.Ay.div.withConfig({componentId:"sc-207d9ca1-3"})(["appearance:none;border:none;border-radius:4px;font-size:14px;font-weight:600;padding:10px 20px;cursor:pointer;transition:all 0.2s ease;display:inline-block;margin:0 5px;&:hover{opacity:0.9;}&:focus-visible{outline:2px solid ",";outline-offset:2px;}@media screen and (max-width:600px){width:100%;margin:10px 0 5px 0;}"],r.jd),f=(0,o.Ay)(h).withConfig({componentId:"sc-207d9ca1-4"})(["background-color:#b30000;color:white;"]),m=(0,o.Ay)(h).withConfig({componentId:"sc-207d9ca1-5"})(["background-color:lightgray;color:#222;"]),g=o.Ay.span.withConfig({componentId:"sc-207d9ca1-6"})(["color:",";&:hover{cursor:pointer;}"],r.jd);var x=i(76216),y=i(53805),b=i(87850),w=i(35435),v=i(22841),j=i(92963),k=i(67396),A=i(89208);i(41274);let C=e=>{let{onSavePreferences:t}=e,{showCookiesManager:i,setShowCookiesManager:o}=(0,y.Us)(),[a,d]=(0,s.useState)([{label:"Mandatory",enabled:!0,mandatory:!0},{label:"Functional",enabled:!1,mandatory:!1},{label:"Analytics",enabled:!1,mandatory:!1},{label:"Advertisement",enabled:!1,mandatory:!1}]),[l,c]=(0,s.useState)(!1),p=()=>{let e=a.map(e=>({...e,enabled:!0}));d(e),h(e)},u=e=>{let t=A.A.get(e);return t?JSON.parse(t):null},h=e=>{t(e.map(e=>({label:e.label,enabled:e.enabled}))),g()};(0,s.useEffect)(()=>{f()},[]);let f=()=>{let e=u(r.ll);e&&e.accepted&&m(e.preferences)},m=e=>{d(t=>t.map(t=>({...t,enabled:t.mandatory||e.includes(t.label)})))},g=()=>{c(!1)},x=e=>{d(t=>t.map((t,i)=>i===e?{...t,enabled:!t.enabled}:t))};return(0,s.useEffect)(()=>{c(i),o(i),f()},[i]),(0,n.jsxs)(w.A,{show:l,size:"xs",centered:!0,animation:!0,onHide:g,children:[(0,n.jsx)(w.A.Header,{className:"customTheme",children:(0,n.jsx)(w.A.Title,{children:"Cookie Settings"})}),(0,n.jsxs)(w.A.Body,{className:"p-4",children:[(0,n.jsx)("h5",{className:"font-weight-bold mb-3",children:"Your privacy"}),(0,n.jsx)("p",{className:"mb-3",children:"Below you can adjust the cookie settings for both our and our partners' cookies. We need your consent to use analytical and marketing cookies."}),(0,n.jsx)("p",{className:"mb-3",children:"If you want to accept all cookies, click 'Accept all'. If you prefer that we only use necessary cookies, select 'Save settings and close'. To change your cookie preferences, move the slider next to the appropriate category. You have the right to view and modify your settings at any time."}),(0,n.jsxs)("p",{className:"mb-3",children:["Using cookies involves processing your personal data related to activity on the website. Detailed information about how we and our partners use cookies and process your data, as well as information about your rights, can be found in our"," ",(0,n.jsx)(k.default,{href:"/info-privacy",target:"_blank",className:"customLinkColor",children:"Privacy Policy."})]}),(0,n.jsxs)("p",{className:"mb-3",children:["Information about how Google uses your data can be found in"," ",(0,n.jsx)("a",{href:"https://business.safety.google/privacy/",target:"_blank",className:"customLinkColor",children:"Googleâs Business Data Responsibility Site."})]}),(0,n.jsx)("h5",{className:"font-weight-bold mb-3",children:"Manage cookies"}),(0,n.jsx)(v.A,{children:a.map((e,t)=>(0,n.jsx)(v.A.Group,{className:"d-flex justify-content-between align-items-center mb-2",children:(0,n.jsx)(v.A.Check,{type:"switch",id:"custom-switch-".concat(t),label:"Advertisement"===e.label?"Advertising & Ads Personalization":e.label,checked:e.enabled,onChange:()=>x(t),disabled:e.mandatory,className:"custom-switch"})},t))})]}),(0,n.jsxs)(w.A.Footer,{className:"d-flex flex-column",children:[(0,n.jsx)(j.A,{variant:"danger",onClick:()=>p(),className:"w-100",children:"ACCEPT ALL"}),(0,n.jsx)(j.A,{variant:"secondary",onClick:()=>{h(a)},className:"w-100",children:"SAVE SETTINGS AND CLOSE"})]})]})},S=()=>{let{cookiesConsentCtx:e,setCookiesConsentCtx:t}=(0,x.bh)(),{initialAction:i,setShowCookiesManager:o}
1=(0,y.Us)(),[a,r]=(0,s.useState)(!1),d=()=>{c(!0,["Mandatory","Functional","Analytics","Advertisement"])},c=(e,i)=>{t({accepted:e,preferences:i})},p=()=>{e.accepted?r(!1):r(!0)},u=()=>{let t=e.preferences&&e.preferences.includes("Analytics"),i=e.preferences&&e.preferences.includes("Functional"),n=e.preferences&&e.preferences.includes("Advertisement");t&&(0,b.y9)(),i&&(0,b.Xq)(),window.gtag("consent","update",{ad_storage:n?"granted":"denied",ad_user_data:n?"granted":"denied",ad_personalization:n?"granted":"denied",analytics_storage:t?"granted":"denied"})};return(0,s.useEffect)(()=>{i&&(p(),u())},[e,i]),(0,n.jsxs)(n.Fragment,{children:[a&&(0,n.jsx)(l,{onCookieConsentResponse:e=>{"manage"===e?o(!0):d()}}),(0,n.jsx)(C,{onSavePreferences:e=>{c(!0,e.filter(e=>e.enabled).map(e=>e.label)),o(!1)}})]})}},34947:(e,t,i)=>{"use strict";i.d(t,{A:()=>c});var n=i(95155),s=i(12115),o=i(65285),a=i(33067),r=i(31818),d=i(71882);let l=["GB"],c=e=>{let t,{full:i}=e,o=(0,d.M)(),[c,u]=(0,s.useState)("");return(0,s.useEffect)(()=>{if(o){var e;(function(e){t=l.includes(e)?"pedders.co.uk":"FR"===e?"https://www.trans4x4.com/":""})(o),u((null===(e=r.X.find(e=>e.iso===o))||void 0===e?void 0:e.name)||o)}},[o]),t?(0,n.jsx)(p,{full:i,children:(0,n.jsxs)(a.A,{variant:"warning",children:["Hello! It seems that you are coming from ",c,". Just so you know, you can browse the website but we would like to ask you to place your order at"," ",(0,n.jsx)("a",{rel:"noopener noreferrer nofollow",target:"_blank",href:"https://"+t,children:t}),"."]})}):null},p=o.Ay.div.withConfig({componentId:"sc-668fbe69-0"})(["padding:",";"],e=>e.full?"0":"0 20px")},55981:(e,t,i)=>{"use strict";i.d(t,{default:()=>y});var n=i(95155),s=i(12115),o=i(65285),a=i(73498),r=i(19738),d=i.n(r),l=i(55639),c=i(84187);let p=[{display:"where to buy",to:"/distributors",children:(0,n.jsx)(l.A,{})},{display:"popular vehicles",to:"/",children:(0,n.jsx)(c.A,{})},{to:"/technical-information",display:"product features"},{to:"/blog",display:"blog & news"},{to:"/clearance",display:"clearance"}];i(57597);var u=i(67396);let h=(e,t,i)=>{i(e===t?"":e)},f=e=>{let{to:t,display:i,children:s,active:o,handler:a}=e;return s?(0,n.jsxs)(x,{children:[(0,n.jsxs)(g,{onClick:()=>h(i,o,a),children:[(0,n.jsx)("div",{className:"MobileNavLink",children:i}),o===i?(0,n.jsx)("i",{clasclassNames:"fa fa-caret-up","aria-hidden":"true"}):(0,n.jsx)("i",{className:"fa fa-caret-down","aria-hidden":"true"})]}),o===i?(0,n.jsx)(m,{children:s}):null]}):(0,n.jsx)(x,{children:(0,n.jsx)(g,{children:(0,n.jsx)(u.default,{className:"MobileNavLink",href:t,children:i})})})},m=o.Ay.div.withConfig({componentId:"sc-83f60004-0"})(["padding:0 15px;"]),g=o.Ay.div.withConfig({componentId:"sc-83f60004-1"})(["display:flex;justify-content:space-between;padding:8px 10px 8px 0;"]),x=o.Ay.div.withConfig({componentId:"sc-83f60004-2"})(["border-bottom:1px solid #ddd;display:flex;flex-direction:column;"]),y=()=>{let e=(0,s.useContext)(a.A),[t,i]=(0,s.useState)("");return(0,n.jsx)(b,{className:e.showDrawer?d().active:d().inactive,children:p.map(e=>{let{display:s,to:o,children:a}=e;return(0,n.jsx)(f,{display:s,to:o,active:t,handler:i,children:a},s)})})},b=o.Ay.div.withConfig({componentId:"sc-3adda15e-0"})(["position:fixed;padding:20px 10px;top:0;left:0;width:250px;height:100%;z-index:1000;background-color:white;display:flex;flex-direction:column;overflow-y:scroll;"])},97077:(e,t,i)=>{"use strict";i.d(t,{default:()=>r});var n=i(95155),s=i(12115),o=i(65285),a=i(36514);let r=()=>{let[e,t]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let e=()=>{t(window.scrollY>500)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,n.jsx)(d,{onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},$visible:e,children:(0,n.jsx)("i",{className:"fa fa-arrow-up fa-lg","aria-hidden":"true"})})},d=o.Ay.div.withConfig({componentId:"sc-52ad1fca-0"})(["z-index:1000;position:fixed;bottom:30px;right:30px;padding:6px 8px;background-color:",";border-radius:50%;color:white;cursor:pointer;opacity:",";transition:opacity 0.2s;"],a.jd,e=>e.visible?1:0)},81641:(e,t,i)=>{"use strict";i.d(t,{default:()=>es});var n=i(95155),s=i(12115),o=i(65285),a=i(34798),r=i(67396);let d=()=>(0,n.jsx)(r.default,{href:"/",children:(0,n.jsxs)("picture",{children:[(0,n.jsx)("source",{srcSet:"/assets/Pedders_logo.webp",type:"image/webp"}),(0,n.jsx)(l,{src:"/assets/Pedders_logo.jpg",alt:"Pedders EU logo"})]})}),l=o.Ay.img.withConfig({componentId:"sc-e19fcbbd-0"})(["width:150px;height:54px;&:hover{cursor:pointer;}@media screen and (min-width:992px){margin-bottom:0;}"]);i(30013);let c=e=>{let{to:t,display:i,children:s}=e;return t?(0,n.jsx)(r.default,{className:"DesktopNavLink ".concat("/distributors"===t&&"gtm_btn_distributors"),href:t,children:i}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"DesktopNavLink",children:i}),s]})},p=e=>{let{children:t}=e;return(0,n.jsx)(u,{className:"my-dropdown",children:t})},u=o.Ay.div.withConfig({componentId:"sc-b866b140-0"})(["z-index:10;position:absolute;width:100%;top:25px;background-color:white;display:none;padding:40px 20px;border:1px solid #ccc;&:hover{display:block;}"]);var h=i(84187),f=i(55639);let m=[{display:"where to buy",children:(0,n.jsx)(p,{children:(0,n.jsx)(f.A,{})})},{display:"popular vehicles",children:(0,n.jsx)(p,{children:(0,n.jsx)(h.A,{})})},{to:"/technical-information",display:"product features"},{to:"/blog",display:"Blog & News"},{to:"/clearance",display:"clearance"}],g=()=>(0,n.jsx)(x,{children:m.map(e=>{let{display:t,to:i,children:s}=e;return(0,n.jsx)(c,{display:t,to:i,children:s},t)})}),x=o.Ay.div.withConfig({componentId:"sc-23598d18-0"})(["position:relative;"]);i(76046),o.Ay.input.withConfig({componentId:"sc-9bdb582e-0"})(["margin-left:30px;border:1px solid #adadad;line-height:1.66;background-color:#fff;width:230px;height:42px;padding:0 40px 0 15px;border-radius:21px;font-size:12px;position:absolute;z-index:50;right:0;&::placeholder{font-size:12px;}&:focus{outline:none;}
1@media (max-width:425px){width:200px;margin-left:0;right:10px;}"]),o.Ay.div.withConfig({componentId:"sc-9bdb582e-1"})(["position:relative;display:flex;@media (max-width:991px){right:50%;}@media (max-width:767px){right:0;}"]),o.Ay.button.withConfig({componentId:"sc-9bdb582e-2"})(["border-radius:25px;background-color:rgb(235,235,237);width:42px;margin-left:40px;height:42px;display:flex;justify-content:center;align-items:center;font-size:14px;border:none;right:0;z-index:100;&:focus{outline:none;}&:hover{cursor:pointer;}@media (max-width:425px){margin-right:10px;}"]);var y=i(36514);i(21807);let b=()=>(0,n.jsxs)(w,{children:[(0,n.jsx)("div",{children:"Your product"}),(0,n.jsx)("div",{children:"Price"})]}),w=o.Ay.div.withConfig({componentId:"sc-26e2fbd6-0"})(['padding:8px 20px;display:flex;justify-content:space-between;color:white;text-transform:uppercase;font-size:14px;font-family:"Open Sans",sans-serif;background-color:',";"],y.jd),v=e=>{let{children:t,to:i}=e;return(0,n.jsx)(j,{href:i,className:"".concat("checkout"===t&&"gtm_btn_checkout"," ").concat("view cart"===t&&"gtm_btn_viewcart"),children:t})},j=(0,o.Ay)(r.default).withConfig({componentId:"sc-7bd3a53c-0"})(['text-transform:uppercase;color:white;background-color:#4a5678;padding:0 20px;height:35px;border:none;font-size:14px;font-family:"Open Sans",sans-serif;font-weight:700;display:flex;align-items:center;&:hover{background-color:',";color:white;}"],y.jd);var k=i(53805),A=i(81559),C=i(89208);let S=e=>{let{closeMiniBasket:t}=e,{basket:i,summary:s}=(0,k.Us)(),o=C.A.get("cart_id");return(0,n.jsxs)(_,{onClick:t,children:[(0,n.jsx)("div",{onClick:()=>(0,A.N5)({basket:i,summary:s}),children:(0,n.jsx)(v,{to:"/basket/".concat(o),children:"view cart"})}),(0,n.jsx)("div",{onClick:()=>(0,A.xS)("mini_basket",{basket:i,summary:s}),children:(0,n.jsx)(v,{to:"/checkout/".concat(o),children:"checkout"})})]})},_=o.Ay.div.withConfig({componentId:"sc-9448f0ed-0"})(["display:flex;padding:15px 20px;justify-content:space-between;"]),I=e=>{let{subtotal:t,currency:i}=e;return(0,n.jsxs)(N,{children:[(0,n.jsx)(P,{children:"Cart subtotal:"}),(0,n.jsxs)(z,{children:[i,t]})]})},N=o.Ay.div.withConfig({componentId:"sc-6a06a184-0"})(['padding:13px 20px 10px;border-top:1px solid #ddd;border-bottom:1px solid #ddd;display:flex;font-size:14px;font-family:"Open Sans",sans-serif;justify-content:space-between;font-weight:700;text-transform:uppercase;']),P=o.Ay.div.withConfig({componentId:"sc-6a06a184-1"})(["color:#444444;"]),z=o.Ay.div.withConfig({componentId:"sc-6a06a184-2"})(["color:",";"],y.jd),E=e=>{var t;let{item:i,currency:o,deleteHandler:a,changeHanlder:r}=e,[d,l]=(0,s.useState)(i.quantity),c=C.A.get("cart_id"),p=(e,t)=>{let{value:i}=e.target;l(i),r(i,t,c)};return(0,n.jsxs)(F,{children:[(0,n.jsxs)(U,{children:[i.item.photos.length?(0,n.jsx)("img",{src:i.item.photos[0].url,alt:i.displayname}):(0,n.jsxs)("picture",{children:[(0,n.jsx)("source",{srcSet:"/assets/placeholders/pedders_placeholder.webp",type:"image/webp"}),(0,n.jsx)("img",{src:"/assets/placeholders/pedders_placeholder.jpg",alt:"logo"})]}),(0,n.jsx)(R,{onClick:()=>a(i._id,i),children:(0,n.jsx)("i",{className:"fa fa-times-circle fa-lg","aria-hidden":"true"})})]}),(0,n.jsxs)(L,{children:[(0,n.jsx)(B,{children:i.item.description}),(0,n.jsxs)(D,{children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(T,{children:"Qty: "}),(0,n.jsx)(O,{disabled:!0,type:"number",min:1,value:d,onChange:e=>p(e,i._id)})]}),(0,n.jsxs)(M,{children:[o,null==i?void 0:null===(t=i.grosamount)||void 0===t?void 0:t.toFixed(2)]})]})]})]})},T=o.Ay.span.withConfig({componentId:"sc-df0a77d7-0"})(['display:inline-block;color:#666666;font-size:12px;font-family:"Open Sans",sans-serif;']),O=o.Ay.input.withConfig({componentId:"sc-df0a77d7-1"})(['width:35px;margin-left:10px;text-align:center;padding:0px;background:white;&[type="number"]{-moz-appearance:textfield;}&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}']),M=o.Ay.div.withConfig({componentId:"sc-df0a77d7-2"})(['font-family:"Open Sans",sans-serif;color:',";font-weight:700;font-size:16px;"],y.jd),B=o.Ay.div.withConfig({componentId:"sc-df0a77d7-3"})(['color:#444444;font-size:13px;font-family:"Open Sans",sans-serif;text-align:left;']),F=o.Ay.div.withConfig({componentId:"sc-df0a77d7-4"})(["display:grid;grid-template-columns:4fr 6fr;"]),U=o.Ay.div.withConfig({componentId:"sc-df0a77d7-5"})(["position:relative;display:flex;justify-content:center;height:100px;align-items:center;img{border:1px solid #ddd;width:100px;height:80px;object-fit:contain;background-color:white;}"]),R=o.Ay.div.withConfig({componentId:"sc-df0a77d7-6"})(["position:absolute;top:4px;right:1px;&:hover{cursor:pointer;color:",";}"],y.jd),D=o.Ay.div.withConfig({componentId:"sc-df0a77d7-7"})(["display:flex;justify-content:space-between;align-items:center;margin-top:10px;"]),L=o.Ay.div.withConfig({componentId:"sc-df0a77d7-8"})(["display:flex;flex-direction:column;padding:10px 8px;"]);var K=i(42356),W=i(34947);let H=e=>{let{showMiniBasket:t,setShowMiniBasket:i}=e,{basket:s,summary:o}=(0,k.Us)(),{updateHandler:a,deleteHandler:r}=(0,K.A)();return(0,n.jsx)("div",{children:t?s&&s.transactionlines.length?(0,n.jsx)(()=>(0,n.jsxs)("div",{className:"MiniBasket MiniBasketFull",children:[(0,n.jsx)(b,{}),s&&s.transactionlines.filter(e=>!0!==e.kitcomponent).map(e=>(0,n.jsx)(E,{deleteHandler:r,changeHanlder:a,item:e,currency:s.currency.symbol},e._id)),(0,n.jsx)(I,{subtotal:o.grossitemsamount.toFixed(2),currency:s.currency.symbol}),(0,n.jsx)(S,{closeMiniBasket:()=>i(!1)}),(0,n.jsx)(W.A,{})]}),{}):(0,n.jsx)(()=>(0,n.jsx)("div",{className:"MiniBasket MiniBasketEmpty",children:"You have no items in your shopping cart."}),{}):null})},J=()=>
1{let[e,t]=(0,s.useState)(!1),{basketCount:i,summary:o}=(0,k.Us)(),a=(0,s.useRef)(null);return(0,s.useEffect)(()=>{function e(e){a.current&&!a.current.contains(e.target)&&t(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[a]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(G,{children:[(0,n.jsxs)($,{onClick:()=>{t(e=>!e)},"aria-label":"Show basket button",children:[(0,n.jsx)("i",{className:"fa fa-shopping-basket","aria-hidden":"true",style:{color:"white"}}),i>0?(0,n.jsx)(X,{children:i}):null]}),(0,n.jsxs)(Z,{children:[(0,n.jsx)(V,{children:"Shopping Cart"}),(0,n.jsxs)(q,{children:[i?"".concat(i," items"):"0 item"," - \xa3",o&&o.grossitemsamount.toFixed(2)||"0.00"," "]})]}),(0,n.jsx)("div",{ref:a,children:(0,n.jsx)(H,{showMiniBasket:e,setShowMiniBasket:t})})]})})},G=o.Ay.div.withConfig({componentId:"sc-8360b778-0"})(["display:flex;position:relative;"]),V=o.Ay.div.withConfig({componentId:"sc-8360b778-1"})(["color:#333333;font-size:12px;text-transform:uppercase;font-weight:700;"]),q=o.Ay.div.withConfig({componentId:"sc-8360b778-2"})(["color:",";font-size:12px;font-weight:700;"],y.jd),Z=o.Ay.div.withConfig({componentId:"sc-8360b778-3"})(["display:none;@media screen and (min-width:992px){display:flex;align-items:flex-start;justify-content:center;flex-direction:column;}"]),$=o.Ay.button.withConfig({componentId:"sc-8360b778-4"})(["border-radius:25px;background-color:",";width:42px;height:42px;display:flex;justify-content:center;align-items:center;font-size:18px;z-index:100;border:none;margin-left:15px;position:relative;&:focus{outline:none;}@media screen and (min-width:992px){margin:0 15px;}@media (max-width:425px){margin:0 10px 0 0;}"],y.jd),X=o.Ay.div.withConfig({componentId:"sc-8360b778-5"})(["display:flex;align-items:center;justify-content:center;z-index:10;position:absolute;top:-5px;right:-8px;color:"," !important;font-weight:600;background-color:white;width:18px;height:18px;color:white;font-size:13.5px !important;border-radius:50%;border:2px solid ",";"],y.jd,y.jd),Y=e=>{let{children:t}=e;return(0,n.jsx)(Q,{children:t})},Q=(0,o.Ay)(a.default).withConfig({componentId:"sc-d6de543a-0"})(["padding:10px;height:70px;background-color:#f5f5f5;display:flex;align-items:center;justify-content:space-between;@media screen and (min-width:992px){display:none;}"]);var ee=i(73498);let et=()=>{let{toggleDrawer:e}=(0,s.useContext)(ee.A);return(0,n.jsx)(ei,{onClick:e,"aria-label":"Open drawer button",children:(0,n.jsx)("i",{className:"fa fa-bars","aria-hidden":"true"})})},ei=o.Ay.button.withConfig({componentId:"sc-5b958b4b-0"})(["width:42px;height:42px;font-size:24px;line-height:42px;background-color:#ebebed;border-radius:50%;color:#333;border:none;display:flex;justify-content:center;align-items:center;&:active,&:focus{outline:none;}"]);var en=i(71415);let es=()=>(0,n.jsx)(eo,{children:(0,n.jsx)(a.default,{children:(0,n.jsxs)(er,{children:[(0,n.jsx)(el,{children:(0,n.jsx)(d,{})}),(0,n.jsxs)(ed,{children:[(0,n.jsx)(g,{}),(0,n.jsx)(en.default,{}),(0,n.jsx)(J,{})]}),(0,n.jsx)(Y,{children:(0,n.jsxs)(ea,{children:[(0,n.jsx)(et,{}),(0,n.jsx)(d,{}),(0,n.jsx)(J,{})]})})]})})}),eo=o.Ay.nav.withConfig({componentId:"sc-444f86e9-0"})(["padding-top:30px;"]),ea=o.Ay.div.withConfig({componentId:"sc-444f86e9-1"})(["width:100%;display:flex;align-items:center;justify-content:space-between;"]),er=o.Ay.div.withConfig({componentId:"sc-444f86e9-2"})(["display:flex;align-items:center;justify-content:space-between;flex-direction:column;@media screen and (min-width:1200px){flex-direction:row;}"]),ed=o.Ay.div.withConfig({componentId:"sc-444f86e9-3"})(["display:none;@media screen and (min-width:992px){display:flex;align-items:center;}"]),el=o.Ay.div.withConfig({componentId:"sc-444f86e9-4"})(["display:none;@media screen and (min-width:992px){display:block;}"])},91693:(e,t,i)=>{"use strict";i.d(t,{default:()=>o});var n=i(12115),s=i(76046);function o(){let e=(0,s.usePathname)();return(0,n.useEffect)(()=>{window.scrollTo(0,0)},[e]),null}},90487:(e,t,i)=>{"use strict";i.d(t,{default:()=>b});var n=i(95155),s=i(12115),o=i(65285),a=i(34798),r=i(67396),d=i(36514),l=i(81559);let c=e=>{let{icon:t,text:i,path:s,direct:o}=e;return(0,n.jsxs)(p,{href:s,className:"/contact"===s&&"gtm_btn_contactus",onClick:()=>(0,l.WA)("topbar"),children:[(0,n.jsx)(h,{style:{pointerEvents:"none"},children:t}),(0,n.jsx)(u,{style:{pointerEvents:"none"},children:i})]})};o.Ay.a.withConfig({componentId:"sc-31d4f831-0"})(['color:white;font-family:"Open Sans",sans-serif;font-size:12px;padding:0 20px;text-align:center;&:not(:last-of-type){border-right:1px solid ',";}&:hover{color:",";cursor:pointer;}"],d.lS,d.jd);let p=(0,o.Ay)(r.default).withConfig({componentId:"sc-31d4f831-1"})(['color:white;font-family:"Open Sans",sans-serif;font-size:12px;padding:0 20px;text-align:center;&:not(:last-of-type){border-right:1px solid ',";}&:hover{color:",";cursor:pointer;}"],d.lS,d.jd),u=o.Ay.span.withConfig({componentId:"sc-31d4f831-2"})(["@media screen and (min-width:","){margin-left:10px;}"],d.SL),h=o.Ay.span.withConfig({componentId:"sc-31d4f831-3"})(["display:none;@media screen and (min-width:","){display:inline-block;}"],d.SL);o.Ay.span.withConfig({componentId:"sc-31d4f831-4"})(["display:none;@media screen and (min-width:","){display:inline-block;margin-left:10px;}"],d.SL),o.Ay.span.withConfig({componentId:"sc-31d4f831-5"})([""]);let f=[{path:"/about-us",text:"About Us",icon:(0,n.jsx)("i",{className:"fa fa-heart","aria-hidden":"true"})},{path:"https://www.facebook.com/peddersuk",text:"Facebook",direct:!0,icon:(0,n.jsx)("i",{className:"fa fa-facebook","aria-hidden":"true"})},{path:"https://www.instagram.com/pedderssuspensionuk/",text:"Instagram",direct:!0,icon:(0,n.jsx)("i",{className:"fa fa-instagram","aria-hidden":"true"})}],m=[{path:"/contact",text:"Contact us",icon:(0,n.jsx)("i",{className:"fa fa-phone","aria-hidden":"true"})}];var g=i(89208),x=i(53805),y=i(33806);let b=()=>{let e=g.A.get("authToken"),{user:t,reset:i,setUser:o}=(0,x.Us)(),{logout:a}
1=(0,y.A)(),[r,d]=(0,s.useState)(!1);(0,s.useEffect)(()=>{e?d(!0):(i(),o(null),d(!1))},[t,e]);let l={path:r?"/customer/account":"/customer/account/login",text:"My Account",icon:(0,n.jsx)("i",{className:"fa fa-user","aria-hidden":"true"})};return(0,n.jsx)(w,{children:(0,n.jsx)(j,{children:(0,n.jsxs)(v,{children:[(0,n.jsx)(k,{children:f.map(e=>(0,s.createElement)(c,{...e,key:e.path}))}),(0,n.jsxs)("div",{children:[(0,n.jsx)(c,{...l}),m.map(e=>(0,s.createElement)(c,{...e,key:e.path}))]})]})})})},w=o.Ay.section.withConfig({componentId:"sc-505a000b-0"})(["background-color:#333333;height:40px;color:#ffffff;"]),v=o.Ay.div.withConfig({componentId:"sc-505a000b-1"})(["display:flex;align-items:center;height:100%;justify-content:center;@media screen and (min-width:780px){justify-content:space-between;}"]),j=(0,o.Ay)(a.default).withConfig({componentId:"sc-505a000b-2"})(["height:100%;"]),k=o.Ay.div.withConfig({componentId:"sc-505a000b-3"})(["display:none;@media (min-width:780px){display:flex;}"])},76216:(e,t,i)=>{"use strict";i.d(t,{Ay:()=>c,bh:()=>l});var n=i(95155),s=i(12115),o=i(89208),a=i(36514);let r=(0,s.createContext)(),d={accepted:!1,preferences:["mandatory"]},l=()=>(0,s.useContext)(r),c=e=>{let[t,i]=(0,s.useState)(d),l=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=JSON.stringify(t);return o.A.set(e,n,i)},c=e=>{let t=o.A.get(e);return t?JSON.parse(t):null};return(0,s.useEffect)(()=>{let e=c(a.ll);e&&e.accepted?i(e):l(a.ll,d,{expires:7})},[]),(0,s.useEffect)(()=>{t.accepted&&l(a.ll,t)},[t]),(0,n.jsx)(r.Provider,{value:{cookiesConsentCtx:t,setCookiesConsentCtx:i},children:e.children})}},73498:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});let n=i(12115).createContext({showDrawer:!1,toggleDrawer:()=>{},smallNavText:"",setSmallNavText:()=>{},catalogueHeader:"",setCatalogueHeader:()=>{},loader:0,setLoader:()=>{}})},17202:(e,t,i)=>{"use strict";i.d(t,{StylesProvider:()=>s});var n=i(95155);function s(e){let{children:t}=e;return(0,n.jsx)(n.Fragment,{children:t})}i(15685),i(57565),i(6920),i(32514),i(2817)},32514:()=>{},30013:()=>{},57597:()=>{},41274:()=>{},21807:()=>{},81965:e=>{e.exports={line:"Line_line__Ix95o",bolder:"Line_bolder__M4_J4"}},91910:e=>{e.exports={scrollContainer:"Marquee_scrollContainer__RfUKk",scrollText:"Marquee_scrollText__S9umL",scroll:"Marquee_scroll__IbREg"}},19738:e=>{e.exports={active:"Drawer_active__w7U8A",inactive:"Drawer_inactive__0ztX6"}},63647:(e,t,i)=>{"use strict";i.d(t,{Providers:()=>g});var n=i(95155),s=i(12115),o=i(53805),a=i(76216),r=i(73498);let d=e=>{let{children:t}=e,[i,o]=(0,s.useState)(!1),[a,d]=(0,s.useState)(""),[l,c]=(0,s.useState)(""),[p,u]=(0,s.useState)(!1);return(0,n.jsx)(r.A.Provider,{value:{showDrawer:i,toggleDrawer:()=>{o(!i)},smallNavText:a,setSmallNavText:d,catalogueHeader:l,setCatalogueHeader:c,loader:p,setLoader:u},children:t})};var l=i(87066),c=i(35906),p=i(13267),u=i(89208),h=i(42356);let f=new l.E;function m(){let e=u.A.get("cart_id"),{fetchBasket:t}=(0,h.A)(),{basket:i}=(0,o.Us)(),n=async()=>{let e=await (0,p.I)(!0)||"GB";u.A.set("userCountry",e,{path:"/",expires:1})};return(0,s.useEffect)(()=>{n()},[]),(0,s.useEffect)(()=>{i||t(e)},[i]),null}function g(e){let{children:t}=e;return(0,n.jsx)(c.Ht,{client:f,children:(0,n.jsx)(o.Ay,{children:(0,n.jsx)(a.Ay,{children:(0,n.jsxs)(d,{children:[(0,n.jsx)(m,{}),t]})})})})}},48555:(e,t,i)=>{"use strict";i.d(t,{default:()=>a});var n=i(95155);let s=[{url:"suspension-kits",id:"SUSPENSION KITS",meta_title:"Premium Suspension Lift Kits by Pedders UK - Best Prices",meta_desc:"Explore top suspension kits for improved performance and comfort. Find the perfect suspension system for your vehicle and enjoy a smoother, safer drive.",meta_url:"https://pedders.co.uk/suspension-kits",category_header:"Suspension Kits",category_desc:"Explore our extensive range of <strong>suspension lift kits and car suspension parts</strong> at Pedders UK. Upgrade your vehicle with our high-quality, reliable, and durable suspension solutions, designed to enhance performance and handling. Find the perfect fit for your car today.",icon:"/assets/ribbon/Suspension_kits_Black.webp",alt_icon:"/assets/ribbon/Suspension_kits_White.webp"},{url:"springs-shocks",id:"SPRINGS AND SHOCKS",meta_title:"Shocks and
1Springs - Enhance Your Vehicle's Performance",meta_desc:"Discover the best shocks and springs to boost your vehicle's handling and ride quality. Get expert advice on choosing the right suspension components.",meta_url:"https://pedders.co.uk/springs-shocks",category_header:"Springs & Shocks",category_desc:"Discover our extensive selection of shocks and springs. Our top-quality suspension kits are designed to enhance your vehicle's performance, ensuring durability and reliability. Upgrade today with Pedders Suspension.",icon:"/assets/ribbon/Springs_and_Shocks_Black.webp",alt_icon:"/assets/ribbon/Springs_and_Shocks_White.webp"},{url:"suspension-parts",id:"SUSPENSION PARTS",meta_title:"Suspension Parts",meta_desc:"Suspension Parts",meta_url:"https://pedders.co.uk/suspension-parts",category_header:"Suspension Parts",category_desc:"",icon:"/assets/ribbon/Suspension_parts_Black.webp",alt_icon:"/assets/ribbon/Suspension_parts_white.webp"},{url:"bushes",id:"BUSHES",meta_title:"Suspension Bushes: Durable Rubber Bushes for Cars",meta_desc:"Discover top-quality suspension bushes at Pedders. Find rear suspension bushes, rubber bushes, and more for optimal vehicle performance and durability.",meta_url:"https://pedders.co.uk/bushes",category_header:"Bushes",category_desc:"Upgrade your vehicle's performance with Pedders' <strong>suspension bushes</strong>. Our range includes durable bushes, rubber bushes, and polyurethane bushes as well as specialised components designed for long-lasting reliability. Trust Pedders for premium car suspension solutions that enhance durability and control.",icon:"/assets/ribbon/Bushes_Black.webp",alt_icon:"/assets/ribbon/Bushes_White.webp"},{url:"steering",id:"STEERING",meta_title:"Steering",meta_desc:"Steering",meta_url:"https://pedders.co.uk/steering",category_header:"Steering",category_desc:"",icon:"/assets/ribbon/Steering_Black.webp",alt_icon:"/assets/ribbon/Steering_White.webp"},{url:"brakes",id:"BRAKES",meta_title:"Brake Kits - Upgrade Your Vehicle's Braking Performance",meta_desc:"Explore the benefits of brake kits and how to enhance your vehicle's safety and performance. Find different types of brake kits and installation tips.",meta_url:"https://pedders.co.uk/brakes",category_header:"Brakes",category_desc:"Enhance your vehicle's braking performance with Pedders Suspension brakes and brake pads. Our premium products ensure reliable stopping power and durability. Trust Pedders Suspension for top-quality brake and suspension upgrades in the UK, delivering unmatched safety and performance.",icon:"/assets/ribbon/Brakes_Black.webp",alt_icon:"/assets/ribbon/Brakes_White.webp"},{url:"airbags",id:"AIRBAGS",meta_title:"Airbags",meta_desc:"Airbags",meta_url:"https://pedders.co.uk/airbags",category_header:"Airbags",category_desc:"Upgrade your vehicle's performance with Pedders' <strong>suspension bushes</strong>. Our range includes durable bushes, rubber bushes, and polyurethane bushes as well as specialised components designed for long-lasting reliability. Trust Pedders for premium car suspension solutions that enhance durability and control.",icon:"/assets/ribbon/Airbag_black.webp",alt_icon:"/assets/ribbon/Airbag_white.webp"}],o=(0,i(77711).default)(()=>Promise.all([i.e(7078),i.e(1387)]).then(i.bind(i,21387)),{loadableGenerated:{webpack:()=>[require.resolveWeak("@/components/organisms/CarouselRibbon/CarouselRibbon")]},ssr:!1});function a(){return(null==s?void 0:s.length)>0?(0,n.jsx)(o,{categories:s}):null}},86980:(e,t,i)=>{"use strict";i.d(t,{default:()=>y});var n=i(95155);i(12115);var s=i(65285),o=i(34798),a=i(30433),r=i(36514),d=i(67396),l=i(81559);let c=e=>{let{display:t,to:i}=e,s=()=>{"/contact"===i&&(0,l.WA)("footer"),"/info-international-delivery"===i&&(0,l._s)("footer"),"/info-conditions"===i&&(0,l.rJ)("footer")};return(0,n.jsx)(p,{children:(0,n.jsxs)(u,{href:i,onClick:()=>s(),children:[(0,n.jsx)("i",{className:"fa fa-angle-double-right","aria-hidden":"true"}),t]})})},p=s.Ay.div.withConfig({componentId:"sc-bcd997a2-0"})(["display:block;margin:5px 0;"]),u=(0,s.Ay)(d.default).withConfig({componentId:"sc-bcd997a2-1"})(["color:",';font-weight:400;font-size:13px;font-family:"Open Sans",sans-serif;&:hover{color:',";}"],r.lS,r.jd);var h=i(53805);let f=e=>{let{header:t,links:i,special:s}=e,{setShowCookiesManager:o}=(0,h.Us)(),r=()=>{o(!0)};return(0,n.jsxs)(m,{$special:s,children:[(0,n.jsx)(a.default,{text:t}),null==i?void 0:i.map(e=>{let{to:t,display:i,specialKits:s}=e;return"Cookies Manager"===i?(0,n.jsxs)(g,{onClick:r,children:[(0,n.jsx)("i",{className:"fa fa-angle-double-right","aria-hidden":"true"}),(0,n.jsx)("span",{children:i})]},i):(0,n.jsx)(c,{to:t,display:i,specialKits:s},i)})]})},m=s.Ay.div.withConfig({componentId:"sc-744478e7-0"})(["padding:20px 0;background-color:",";@media screen and (min-width:","){grid-column:",";padding:70px 30px 60px;}@media screen and (min-width:992px){grid-column:auto;}"],e=>e.$special?"#f9f9f9":null,r.SL,e=>e.$special?"1 / 4":null),g=s.Ay.div.withConfig({componentId:"sc-744478e7-1"})(["color:",';font-weight:400;display:flex;align-items:center;font-size:13px;height:24px;margin:5px 0;cursor:pointer;font-family:"Open Sans",sans-serif;&:hover{color:',";}&:hover span{text-decoration:underline;}"],r.lS,r.jd),x=[{header:"4X4 SPECIALIST KITS",special:!0,links:[{to:"/info-mitsubishi-pajero",display:"Mitsubishi Pajero",specialKits:!0},{to:"/info-mitsubishi-shogun",display:"Mitsubishi Shogun",specialKits:!0},{to:"/info-nissan-patrol",display:"Nissan Patrol",specialKits:!0},{to:"/info-nissan-x-trail",display:"Nissan X-Trail",specialKits:!0},{to:"/info-subaru-forester",display:"Subaru Forester",specialKits:!0},{to:"/info-subaru-outback",display:"Subaru Outback",specialKits:!0},{to:"/info-toyota-hilux",display:"Toyota Hilux 4WD",specialKits:!0}
1,{to:"/info-toyota-landcruiser",display:"Toyota Landcruiser",specialKits:!0},{to:"/info-volkswagen-amarok",display:"Volkswagen Amarok",specialKits:!0}]},{header:"HOW CAN WE HELP",links:[{to:"/contact",display:"Contact Us"},{to:"/info-international-delivery",display:"Delivery Informacion"},{to:"/returns",display:"Returns"},{to:"/warranties",display:"Warranties"},{to:"/faq",display:"FAQ"},{to:"/blog",display:"Blog & News"}]},{header:"FURTHER INFORMATION",links:[{to:"/about-us",display:"About Us"},{to:"/info-specialist-kits",display:"Specialist Kits"},{to:"/info-distributors-uk",display:"Find a dealer UK"},{to:"https://pedders.eu/distributors",display:"Find a dealer EU"},{to:"/info-privacy",display:"Privacy"},{to:"/cookies",display:"Cookies Policy"},{to:"#",display:"Cookies Manager"},{to:"/info-conditions",display:"Terms & Conditions"}]},{header:"OTHER KITS",links:[{to:"/info-chrysler-300c",display:"Chrysler 300C"},{to:"/info-volkswagen-transporter",display:"Volkswagen Transporter T5"}]}],y=()=>(0,n.jsx)(w,{children:(0,n.jsx)(o.default,{children:(0,n.jsx)(b,{children:null==x?void 0:x.map(e=>(0,n.jsx)(f,{...e},e.header))})})}),b=s.Ay.div.withConfig({componentId:"sc-3e7691f7-0"})(["display:grid;@media screen and (min-width:768px){grid-template-columns:repeat(3,1fr);}@media screen and (min-width:992px){grid-template-columns:1.5fr 1fr 1fr 1fr;}"]),w=s.Ay.div.withConfig({componentId:"sc-3e7691f7-1"})(["background-color:#f5f5f5;"])},33806:(e,t,i)=>{"use strict";i.d(t,{A:()=>l});var n=i(12115),s=i(53805),o=i(36514),a=i(90643),r=i(89208),d=i(81559);function l(){let{setUser:e,user:t,setUserAddresses:i,reset:l,setBasketCount:c,setBasket:p,setSummary:u}=(0,s.Us)(),h=r.A.get("cart_id"),f=(0,n.useMemo)(()=>!0,[]),m=(0,n.useRef)(null),[g,x]=(0,n.useState)(""),[y,b]=(0,n.useState)(!1),[w,v]=(0,n.use
1State)(!1),[j,k]=(0,n.useState)(!1),[A,C]=(0,n.useState)([]),[S,_]=(0,n.useState)(null),I=(0,n.useCallback)(async()=>{if(!f||!m.current)return;let e=await m.current.executeAsync();m.current.reset();let t=await fetch("/api/verify-recaptcha",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e})});if(!(await t.json()).success)throw Error("reCAPTCHA verification failed")},[f]),N=(0,n.useCallback)(async t=>{x(""),b(!0);try{var i,n,s;await I();let f=await fetch("".concat(o.MZ,"/login"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...t,action:"login",source:o.u2})});if(!f.ok){let e=await f.json().catch(()=>({}));throw Error((null==e?void 0:e.message)||"Invalid email or password.")}(0,d.XB)();let m=await f.json().catch(()=>({}));r.A.set("authToken",m.token,{expires:7,path:"/"}),e(m),await T(m.token);let{data:g}=await (0,a.Bm)();if(null==g?void 0:null===(i=g.shoppingcarts)||void 0===i?void 0:i[0]){let e=((null==g?void 0:null===(s=g.shoppingcarts)||void 0===s?void 0:null===(n=s[0].shoppingcart)||void 0===n?void 0:n.transactionlines)||0).filter(e=>!0!==e.kitcomponent).reduce((e,t)=>e+Number(t.quantity),0);c(e),r.A.set("cart_id",null==g?void 0:g.shoppingcarts[0].shoppingcart._id,{expires:1}),p(g.shoppingcarts[0].shoppingcart),u(g.summary)}else h?(0,a.S9)(h,"customer",m._id):l();return m}catch(e){throw x(e.message||"Login failed."),e}finally{b(!1)}},[I]),P=(0,n.useCallback)(async e=>{let{email:i}=e;x(""),k(!0);try{await I();let e=r.A.get("authToken")||(null==t?void 0:t.token),n={"Content-Type":"application/json"};e&&(n.Authorization="Bearer ".concat(e));let s=await fetch("".concat(o.MZ,"/login"),{method:"POST",headers:n,body:JSON.stringify({email:i,action:"login",resetpassword:!0,source:o.u2})});if(!s.ok){let e=await s.json().catch(()=>({}));throw Error((null==e?void 0:e.message)||"Password reset failed.")}return await s.json().catch(()=>({}))}catch(e){throw x(e.message||"Password reset failed."),e}finally{k(!1)}},[I,t]),z=(0,n.useCallback)(async e=>{let{access:t,user:i,password:n}=e;x(""),k(!0);try{await I();let e=await fetch("".concat(o.MZ,"/resetpassword"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"resetPassword",source:o.u2,access:t,user:i,password:n})});if(!e.ok){let t=await e.json().catch(()=>({}));throw Error((null==t?void 0:t.message)||"Password reset failed.")}return await e.json().catch(()=>({}))}catch(e){throw x(e.message||"Password reset failed."),e}finally{k(!1)}},[I,t]),E=(0,n.useCallback)(async()=>{r.A.remove("authToken",{path:"/"}),e(null),i(null),l()}),T=(0,n.useCallback)(async()=>{x("");let e=r.A.get("authToken")||(null==t?void 0:t.token);try{if(!e)throw Error("Brak tokenu uwierzytelniajÄ
cego. Zaloguj siÄ ponownie.");let t=await fetch("".concat(o.MZ,"/user"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(e)},body:JSON.stringify({action:"getAddresses",source:o.u2})});if(!t.ok){let e=await t.json();throw Error((null==e?void 0:e.message)||"Failed to retrieve addresses.")}let n=await t.json();return i(n),n}catch(e){throw x(e.message||"Failed to retrieve addresses."),e}},[t]),O=(0,n.useCallback)(async e=>{x("");let i=r.A.get("authToken")||(null==t?void 0:t.token);try{if(!i)throw Error("Brak tokenu uwierzytelniajÄ
cego. Zaloguj siÄ ponownie.");let n={action:"updateAddress",source:o.u2,...e},s=await fetch("".concat(o.MZ,"/cart"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(i)},body:JSON.stringify(n)});if(!s.ok){let e=await s.json().catch(()=>({}));throw Error((null==e?void 0:e.message)||"Nie udaÅo siÄ dodaÄ adresu.")}await T(t.token);return}catch(e){throw x(e.message||"Nie udaÅo siÄ dodaÄ adresu."),e}},[t,T]),M=(0,n.useCallback)(async e=>{x("");let i=r.A.get("authToken")||(null==t?void 0:t.token);try{if(!i)throw Error("Brak tokenu uwierzytelniajÄ
cego. Zaloguj siÄ ponownie.");let n={action:"updateAddress",source:o.u2,...e},s=await fetch("".concat(o.MZ,"/cart"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(i)},body:JSON.stringify(n)});if(!s.ok){let e=await s.json().catch(()=>({}));throw Error((null==e?void 0:e.message)||"Nie udaÅo siÄ dodaÄ adresu.")}await T(t.token);return}catch(e){throw x(e.message||"Nie udaÅo siÄ dodaÄ adresu."),e}},[t,T]),B=(0,n.useCallback)(async e=>{x("");let i=r.A.get("authToken")||(null==t?void 0:t.token);try{if(!i)throw Error("Brak tokenu uwierzytelniajÄ
cego. Zaloguj siÄ ponownie.");let t=await fetch("".concat(o.MZ,"/transactions"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(i)},body:JSON.stringify({action:"getTransactions",source:o.u2,language:o.Np,transaction_id:e||""})});if(!t.ok){let e=await t.json();throw Error((null==e?void 0:e.message)||"Failed to retrieve transactions.")}let n=await t.json();return(null==n?void 0:n.length)?C(n):_(n),n}catch(e){throw x(e.message||"Failed to retrieve transactions."),e}},[t]);return{register:(0,n.useCallback)(async e=>{x(""),v(!0);try{await I();let t=await fetch("".concat(o.MZ,"/addcustomer"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...e,name:"".concat(e.firstname," ").concat(e.lastname),displayname:"".concat(e.firstname," ").concat(e.lastname),action:"addCustomer",source:o.u2,currency:o.UM})});if(!t.ok){let e=await t.json().catch(()=>({}));throw Error((null==e?void 0:e.message)||"Invalid data.")}let i=await t.json().catch(()=>({}));return(0,d.wJ)(),i}catch(e){throw x(e.message||"Register failed."),e}finally{v(!1)}},[I]),login:N,logout:E,resetPassword:P,getAddresses:T,addAddress:O,updateAddress:M,getTransactions:B,setPassword:z,transactions:A,order:S,error:g,setError:x,loginLoading:y,resetPasswordLoading:j,registerLoading:w,recaptchaRef:m,shouldRenderRecaptcha:f&&!0}}},42356:(e,t,i)=>{"use strict";i.d(t,{A:()=>p});var n=i(12115),s=i(53805),o=i(70245),a=i(90643),r=i(54047),d=i(71882),l=i(81559),c=i(89208);let p=()=>{let{setBasketCount:e,setBasket:t,setSummary:i,setBasketOptions:p,address:u,user:h,basket:f}
1=(0,s.Us)(),m=c.A.get("cart_id"),g=(0,d.M)(),[x,y]=(0,n.useState)(!1),[b,w]=(0,n.useState)("Add to cart"),[v,j]=(0,n.useState)(!1),[k,A]=(0,n.useState)(""),C=(0,n.useRef)(Promise.resolve()),S=async e=>{let t=await (0,a.Bm)(e,g);t&&(c.A.set("cart_id",t.data.shoppingcarts[0].shoppingcart._id,{expires:1}),M(t)),y(!1)};async function _(){let{firstName:e,lastName:t,companyName:i,streetAddress:n,streetAddress2:s,city:o,zip:a,country:r,phone:d,email:l,address:c,address2:p,addresse:f}=u,m={address:n||c,address2:s||p,addressee:f||i||"".concat(e," ").concat(t),city:o,zip:a,country:r,phone:d,name:i||"".concat(e," ").concat(t),email:l,default:null!=h&&!!h.token},{data:{_id:g}}=await z(m);return g}async function I(){var e;let{company:t,companyName:i,name:n,billaddress:s,address:o,streetAddress:a,address2:r,streetAddress2:d,billing:l,billaddress2:c,billcity:p,city:f,billzip:m,zip:g,billcountryname:x,country:y,phone:b,firstName:w,lastName:v}=u,j={phone:b,address:s||o||a,address2:c||r||d,city:p||f,zip:m||g,country:x||y,name:t||i||n||"".concat(w," ").concat(v),_id:(null==h?void 0:null===(e=h.billingaddress)||void 0===e?void 0:e._id)||""},{data:{_id:k}}=await z(j);return k}async function N(){let{data:{_id:e}}=await E();return e}async function P(){var e;let t=await _();if(await T("shippingaddress",t),!u.billing||h&&!(null==h?void 0:null===(e=h.billingaddress)||void 0===e?void 0:e.city)){let e=await I();e&&await T("billingaddress",e)}return await T("shipemail",u.email),await T("paymentmethod",u.payment),await T("reqpayment",!0),await T("sendtogether",!0),await N()}let z=e=>(0,a.FR)(e,m),E=()=>(0,a.fS)(m||f._id),T=(e,t)=>{if(m)return y(!0),C.current=C.current.catch(()=>{}).then(()=>(0,a.S9)(m,e,t)).then(M).finally(()=>y(!1)),C.current}
1,O=(0,n.useCallback)(r((e,t,i)=>{y(!0),(0,a.si)(t,i,"quantity",e).then(M)},500),[]),M=n=>{let{data:s}=n,{shoppingcarts:[{shoppingcart:o,options:a}],summary:r}=s,d=o.transactionlines.filter(e=>!0!==e.kitcomponent).reduce((e,t)=>e+Number(t.quantity),0);t(o),e(d),i(r),p(a),y(!1)};return{updateBasket:a.S9,updateCountryWithTax:(e,t)=>(y(!0),(0,a.S9)(m,"shipcountry",e).then(M)),addHandler:function(n,s){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,d=arguments.length>3?arguments[3]:void 0;w("Adding..."),(0,a.H4)(s,r,m,g,d).then(e=>{let{data:t}=e,{cart_id:i}=t;return c.A.set("cart_id",i,{expires:1}),(0,l.Ml)(n,r),i}).then(e=>(0,a.Bm)(e,g)).then(n=>{let{data:s}=n,{shoppingcarts:[{shoppingcart:o,options:a}],summary:r}=s;e(o.transactionlines.filter(e=>!0!==e.kitcomponent).reduce((e,t)=>e+Number(t.quantity),0)),t(o),i(r),p(a),j(!0),w("Added")}).catch(e=>{A((0,o.E)(e))}).finally(()=>{setTimeout(()=>{w("Add to cart")},1e3)})},showAlert:v,buttonText:b,updateHandler:O,deleteHandler:(e,t)=>{y(!0),(0,a.SA)(e,m).then(M),(0,l.Ui)(t)},isLoading:x,updateFieldHandler:T,bulkUpdateHandler:e=>{y(!0),(0,a.Gw)(m,e).then(M)},addAddress:z,addOrder:E,handleOrder:P,get3COrder:e=>(0,a.r$)(e),error:k,setError:A,fetchBasket:S}}},71882:(e,t,i)=>{"use strict";i.d(t,{M:()=>n});let n=()=>{var e;return"undefined"!=typeof document?null===(e=document.cookie.split("; ").find(e=>e.startsWith("userCountry=")))||void 0===e?void 0:e.split("=")[1]:void 0}},29094:(e,t,i)=>{"use strict";i.d(t,{default:()=>a});var n=i(95155),s=i(76046),o=i(65285);function a(e){let{children:t}=e,i=new o.E;return(0,s.useServerInsertedHTML)(()=>(0,n.jsx)(n.Fragment,{children:i.getStyleElement()})),(0,n.jsx)(n.Fragment,{children:t})}},31818:(e,t,i)=>{"use strict";i.d(t,{X:()=>n});let n=[{name:"United Kingdom",iso:"GB"},{name:"Ireland",iso:"IE"},{name:"Jersey",iso:"JE"},{name:"Guernsey",iso:"GG"}]},70245:(e,t,i)=>{"use strict";i.d(t,{E:()=>n});let n=e=>e.response?e.response.data.message:e.message}},e=>{var t=t=>e(e.s=t);e.O(0,[490,5433,9657,740,7292,5422,9369,5285,4839,2651,8095,9206,5435,7527,3678,3503,8441,1517,7358],()=>t(82114)),_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.