PageSourceSearch

https://www.bendix.com.au/_next/static/chunks/7380-ca8ac0af48e72284.js

js bendix.com.au collected 2026-10-07 07:04:13 UTC 54,637 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7380],{1939:e=>{var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"image"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AssetInterface"}},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",name:{kind:"Name",value:"uri"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"alt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"format"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"width"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"height"},arguments:[],directives:[]}]}}],loc:{start:0,end:94}};t.loc.source={body:"fragment image on AssetInterface {\n  id\n  url\n  uri\n  title\n  alt\n  format\n  width\n  height\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,t){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==t)return i}}t.definitions.forEach(function(e){if(e.name){var t=new Set;!function e(t,a){if("FragmentSpread"===t.kind)a.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&a.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,a)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,a)}),t.definitions&&t.definitions.forEach(function(t){e(t,a)})}(e,t),a[e.name.value]=t}}),e.exports=t,e.exports.image=function(e,t){var n={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var l=a[t]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var c=o;o=new Set,c.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(t){var a=i(e,t);a&&n.definitions.push(a)}),n}(t,"image")},3116:(e,t,a)=>{"use strict";a.d(t,{L:()=>n});var i=a(33003);class n{apiRequest(e,t,a){let n;if(t){let e=new URLSearchParams;Object.keys(t).forEach(a=>{let i=Array.isArray(t[a])?t[a].map(e=>"".concat(e)).join(","):t[a];e.set(a.toLowerCase(),i)}),n="?"+e.toString()}let{method:l,tags:r}=null!=a?a:{};return(0,i.E)({method:null!=l?l:"GET",url:"".concat(this.apiUrl,"/api/").concat(e)+n,headers:this.defaultHeaders,tags:["catalogue:*",...null!=r?r:[]]})}constructor(e){var t;this.config=e;let a=new URL(e.apiUrl);this.apiUrl="".concat(a.protocol,"//").concat(a.host),this.country=null!=(t=null==e?void 0:e.country)?t:"au",this.defaultHeaders={"User-Agent":"Bendix/".concat(new Date().getFullYear(),".").concat(new Date().getMonth()+1," Web/API")},(null==e?void 0:e.authorization)?this.defaultHeaders.authorization=e.authorization:["local","xprod"].includes("".concat("xprod"))||(this.defaultHeaders.authorization="Basic YmVuZGl4OnR1bmRyYWJlbmRpeA==")}}},9598:(e,t,a)=>{"use strict";a.d(t,{default:()=>d});var i=a(73365),n=a(1521),l=a(19534),r=a(13860),o=a(14015),c=a(99783),s=a(57110),u=a.n(s);let d=e=>{var t,a;let{text:s,className:d}
1=e,[p,v]=(0,n.useState)(!1),h=(0,n.useRef)(null),{refs:m,floatingStyles:g,context:y,middlewareData:f}=(0,l.we)({open:p,onOpenChange:v,placement:"top",middleware:[(0,r.cY)(10),(0,r.UU)(),(0,r.BN)(),(0,r.UE)({element:h})]}),_=(0,l.Mk)(y),{getReferenceProps:b,getFloatingProps:k}=(0,l.bv)([_]);return(0,i.jsxs)("div",{ref:m.setReference,...b(),className:(0,c.A)(u().tooltip,d),children:[(0,i.jsx)(o.A,{pathname:"question",width:16,height:16,className:u().tooltip__icon}),p&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{ref:m.setFloating,style:g,...k(),className:u().tooltip__content,children:s}),(0,i.jsx)("div",{ref:h,className:u().tooltip__arrow,style:{position:"absolute",left:(null==(t=f.arrow)?void 0:t.x)!=null?"".concat(f.arrow.x,"px"):"",top:(null==(a=f.arrow)?void 0:a.y)!=null?"".concat(f.arrow.y,"px"):""},children:(0,i.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"10",viewBox:"0 0 16 10",fill:"none",children:(0,i.jsx)("path",{d:"M0 0H16L8 10L0 0Z",fill:"currentColor"})})})]})]})}},19638:e=>{e.exports={"select-input":"select-input_select-input__hCKDC","select-input__icon-wrapper":"select-input_select-input__icon-wrapper__QjWdg","select-input__icon":"select-input_select-input__icon__tIutH","select-input__icon--active":"select-input_select-input__icon--active__74ipa","select-input__label":"select-input_select-input__label__SDv1S","select-input__button":"select-input_select-input__button__732Id","select-input__list":"select-input_select-input__list__PL1NT","select-input__list--absolute":"select-input_select-input__list--absolute__Jhan9","select-input__list--relative":"select-input_select-input__list--relative__aQt2W","select-input__option":"select-input_select-input__option__O66Hp","select-input__option--highlighted":"select-input_select-input__option--highlighted__lKGxv","select-input__option--selected":"select-input_select-input__option--selected__IhPlt","select-input__option--selected--highlighted":"select-input_select-input__option--selected--highlighted__o7y6t"}},21036:(e,t,a)=>{"use strict";a.d(t,{A:()=>u});var i=a(73365),n=a(1521),l=a(99783),r=a(19638),o=a.n(r),c=a(14015);let s=(0,n.forwardRef)((e,t)=>{let{label:a,options:r,value:s,onChange:u,className:d="",listClassName:p="",listPosition:v="absolute"}
1=e,[h,m]=(0,n.useState)(!1),[g,y]=(0,n.useState)(null),f=(0,n.useRef)(null),_=(0,n.useRef)(null),b=r.find(e=>e.value===s);return(0,n.useEffect)(()=>{let e=e=>{f.current&&!f.current.contains(e.target)&&_.current&&!_.current.contains(e.target)&&m(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,i.jsxs)("div",{className:(0,l.A)(o()["select-input"],d),ref:t,children:[a&&(0,i.jsx)("label",{className:o()["select-input__label"],children:a}),(0,i.jsxs)("button",{type:"button",ref:f,className:o()["select-input__button"],onClick:()=>m(e=>!e),onKeyDown:e=>{switch(e.key){case"ArrowDown":e.preventDefault(),m(!0),y(e=>null===e||e===r.length-1?0:e+1);break;case"ArrowUp":e.preventDefault(),m(!0),y(e=>null===e||0===e?r.length-1:e-1);break;case"Enter":case" ":e.preventDefault(),h?null!==g&&(u(r[g].value),m(!1)):m(!0);break;case"Escape":case"Tab":m(!1);break;case"Home":e.preventDefault(),y(0);break;case"End":e.preventDefault(),y(r.length-1)}},"aria-haspopup":"listbox","aria-expanded":h,"aria-controls":"select-input-list","aria-labelledby":"select-label",children:[b?b.label:"Select an option",(0,i.jsx)("div",{className:(0,l.A)(o()["select-input__icon-wrapper"]),children:(0,i.jsx)(c.A,{className:(0,l.A)(o()["select-input__icon"],h&&o()["select-input__icon--active"]),pathname:"
1chevron-down",width:24,height:24})})]}),h&&(0,i.jsx)("ul",{ref:_,className:(0,l.A)(o()["select-input__list"],"relative"===v&&o()["select-input__list--relative"],"absolute"===v&&o()["select-input__list--absolute"],p),role:"listbox",id:"select-input-list",tabIndex:-1,children:r.map((e,t)=>(0,i.jsx)("li",{id:"select-option-".concat(t),className:(0,l.A)(o()["select-input__option"],e.value===s?o()["select-input__option--selected"]:"",t===g?o()["select-input__option--highlighted"]:""),role:"option","aria-selected":e.value===s,onClick:()=>{u(e.value),m(!1)},onMouseEnter:()=>y(t),children:e.label},"select-option-".concat(t)))})]})});s.displayName="SelectInput";let u=s},22320:(e,t,a)=>{var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"productRangesQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"site"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"section"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"entries"},arguments:[{kind:"Argument",name:{kind:"Name",value:"site"},value:{kind:"Variable",name:{kind:"Name",value:"site"}}},{kind:"Argument",name:{kind:"Name",value:"section"},value:{kind:"Variable",name:{kind:"Name",value:"section"}}},{kind:"Argument",name:{kind:"Name",value:"tecdoc_subBrand"},value:{kind:"StringValue",value:":notempty:",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"productRange_Entry"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tecdoc_subBrand"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tecdoc_productTypeId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"productRange_productImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"image"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"productRange_logo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"image"},directives:[]}]}}]}}]}}]}}],loc:{start:0,end:464}};i.loc.source={body:"#import './fragments/image.gql'\n\n###\n# NOTE - this query is for the logos, so is allowed to get hidden entries\n###\nquery productRangesQuery($site: [String], $section: [String]) {\n  entries(site: $site, section: $section, tecdoc_subBrand: \":notempty:\") {\n    id\n    ... on productRange_Entry {\n      tecdoc_subBrand\n      tecdoc_productTypeId\n      productRange_productImage {\n        ...image\n      }\n      productRange_logo {\n        ...image\n      }\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};i.definitions=i.definitions.concat(a(1939).definitions.filter(function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!n[t]&&(n[t]=!0,!0)}));var l={};function r(e,t){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==t)return i}}i.definitions.forEach(function(e){if(e.name){var t=new Set;!function e(t,a){if("FragmentSpread"===t.kind)a.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&a.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,a)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,a)}),t.definitions&&t.definitions.forEach(function(t){e(t,a)})}(e,t),l[e.name.value]=t}}),e.exports=i,e.exports.productRangesQuery=function(e,t){var a={kind:e.kind,definitions:[r(e,t)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var i=l[t]||new Set,n=new Set,o=new Set;for(i.forEach(function(e){o.add(e)});o.size>0;){var c=o;
1o=new Set,c.forEach(function(e){n.has(e)||(n.add(e),(l[e]||new Set).forEach(function(e){o.add(e)}))})}return n.forEach(function(t){var i=r(e,t);i&&a.definitions.push(i)}),a}(i,"productRangesQuery")},25431:(e,t,a)=>{"use strict";a.d(t,{v:()=>o});var i=a(73365),n=a(87686),l=a.n(n),r=a(99783);let o=e=>{let{tagColour:t="blue",tagSize:a="small",className:n,children:o}=e;return(0,i.jsx)("div",{className:(0,r.A)(l().tag,l()["tag--".concat(t)],l()["tag--".concat(a)],n),children:o})}},29296:(e,t,a)=>{"use strict";a.d(t,{$y:()=>r,E1:()=>o});var i=a(55129),n=a(22320),l=a.n(n);function r(e,t,a){let i=e.find(e=>e.subBrand===t&&e.productTypeId===a);return i||(i=e.find(e=>e.subBrand===t&&!e.productTypeId&&e.logoUrl)),i}async function o(e){var t,a;let n=await (0,i.Co)({query:l(),variables:{site:e,section:"bendix__productRanges"},tags:["".concat(e,":*"),"".concat(e,":/product-range:*")]});return null==(t=null!=(a=null==n?void 0:n.entries)?a:[])?void 0:t.map(e=>{var t,a,i,n;return{subBrand:null==e?void 0:e.tecdoc_subBrand,productTypeId:(null==e?void 0:e.tecdoc_productTypeId)?Number(null==e?void 0:e.tecdoc_productTypeId):void 0,logoUrl:null==e||null==(a=e.productRange_logo)||null==(t=a[0])?void 0:t.url,productImageUrl:null==e||null==(n=e.productRange_productImage)||null==(i=n[0])?void 0:i.url}})}},30668:(e,t,a)=>{"use strict";a.d(t,{A:()=>p});var i=a(73365),n=a(1521),l=a(98196),r=a(14015),o=a(99783),c=a(39458),s=a.n(c),u=a(74433),d=a(66461);let p=e=>{let{isOpen:t,onClose:a,title:c,children:p,footer:v,topAlign:h=!1,noPadding:m=!1,fullWidth:g=!1,fullHeight:y=!1,noOverflow:f=!1,hasActions:_=!1,backgroundColour:b="white",closeOnOverlayClick:k=!0}=e,S=(0,u.T)("en-au"),[w,F]=(0,n.useState)(!1);(0,n.useEffect)(()=>(F(!0),()=>F(!1)),[]);let T=(0,n.useCallback)(e=>{"Escape"===e.key&&t&&a()},[t,a]);(0,n.useEffect)(()=>{if(w)return document.addEventListener("keydown",T),t&&(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",T),document.body.style.overflow="unset"}},[t,T,w]);let N=(0,i.jsx)(d.WB,{style:{width:"100%",height:"100%"},children:(0,i.jsx)("div",{className:(0,o.A)(s().modal__overlay,t&&s().open,h&&s()["top-align"]),onClick:e=>{k&&e.target===e.currentTarget&&a()},role:"dialog","aria-modal":"true","aria-labelledby":c?"modal-title":void 0,children:(0,i.jsxs)("div",{className:(0,o.A)(s().modal,t&&s().open,f&&s()["no-overflow"],g&&s()["full-width"],y&&s()["full-height"],s()["".concat(b)]),children:[(0,i.jsx)("button",{className:s().modal__close,onClick:a,"aria-label":S("Close modal"),children:(0,i.jsx)(r.A,{pathname:"
1close",width:16,height:16,className:s()["modal__close-icon"]})}),c&&(0,i.jsx)("div",{className:s().modal__header,children:(0,i.jsx)("h3",{children:c})}),(0,i.jsx)("div",{className:(0,o.A)(s().modal__content,m&&s()["no-padding"],f&&s()["no-overflow"],_&&s()["has-actions"]),children:p}),v&&(0,i.jsx)("div",{className:s().modal__footer,children:v})]})})});return w?(0,l.createPortal)(N,document.body):null}},38660:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"breadcrumbsQuery"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"site"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"uri"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"entries"},arguments:[{kind:"Argument",name:{kind:"Name",value:"site"},value:{kind:"Variable",name:{kind:"Name",value:"site"}}},{kind:"Argument",name:{kind:"Name",value:"uri"},value:{kind:"Variable",name:{kind:"Name",value:"uri"}}}],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:"uri"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:126}};t.loc.source={body:"query breadcrumbsQuery($site: [String], $uri: [String]) {\n  entries(site: $site, uri: $uri) {\n    title\n    url\n    uri\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function i(e,t){for(var a=0;a<e.definitions.length;a++){var i=e.definitions[a];if(i.name&&i.name.value==t)return i}}t.definitions.forEach(function(e){if(e.name){var t=new Set;!function e(t,a){if("FragmentSpread"===t.kind)a.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&a.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,a)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,a)}),t.definitions&&t.definitions.forEach(function(t){e(t,a)})}(e,t),a[e.name.value]=t}}),e.exports=t,e.exports.breadcrumbsQuery=function(e,t){var n={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var l=a[t]||new Set,r=new Set,o=new Set;for(l.forEach(function(e){o.add(e)});o.size>0;){var c=o;o=new Set,c.forEach(function(e){r.has(e)||(r.add(e),(a[e]||new Set).forEach(function(e){o.add(e)}))})}return r.forEach(function(t){var a=i(e,t);a&&n.definitions.push(a)}),n}(t,"breadcrumbsQuery")},39373:(e,t,a)=>{"use strict";a.d(t,{Go:()=>n,O$:()=>o,gp:()=>r,he:()=>l,nF:()=>c});let i=["Passenger","Commercial","Moto"];function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{encode:a=!0,arraySeparator:i=",",skipEmpty:n=!0}=t,l=e=>a?encodeURIComponent(e):e,r=[];for(let[t,a]of Object.entries(e)){if(null==a)continue;let e=e=>{n&&""===e.trim()||r.push("".concat(l(t),"=").concat(l(e)))};if(Array.isArray(a)){let t=a.filter(e=>null!=e&&(!n||""!==String(e).trim())).map(e=>String(e));if(!t.length)continue;e(t.join(i))}else e(String(a))}return r.join("&")}let l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e.reduce((e,t)=>{var a,i;let n=null==(a=t.attribute)?void 0:a.trim(),l=String(null!=(i=t.value)?i:"").trim();return n&&l&&(e[n]||(e[n]=[])).push(l),e},{});for(let[e,t]of Object.entries(a)){let i=Array.from(new Set(t));"years"===e?a[e]=i.map(e=>parseInt(e,10)).filter(Number.isFinite).sort((e,t)=>e-t).map(String):a[e]=i}return n({...a,...t})},r=(e,t)=>{if(!t)return e;try{let a=new URL(e,"http://placeholder");if(a.searchParams.set("tab",t),e.startsWith("http://")||e.startsWith("https://"))return a.toString();return"".concat(a.pathname).concat(a.search).concat(a.hash)}catch(t){return e}},o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;try{let l=new URL(e,"http://placeholder");for(let[e,a]of Object.entries(t)){if("tab"===e||null==a)continue;if(Array.isArray(a)){let t=a.map(e=>
1String(e).trim()).filter(Boolean);if(!t.length)continue;l.searchParams.set(e,t.join(","));continue}let t=String(a).trim();t&&l.searchParams.set(e,t)}let r=((e,t)=>{let a=t?i.includes(t)?t:"Passenger":void 0;return e?i.includes(e)?e:"Passenger":a})(a,n);if(r&&l.searchParams.set("tab",r),e.startsWith("http://")||e.startsWith("https://"))return l.toString();return"".concat(l.pathname).concat(l.search).concat(l.hash)}catch(t){return e}},c=(e,t)=>{if(!t)return e;try{let a=new URL(e,"http://placeholder");if(a.searchParams.set("type",t),e.startsWith("http://")||e.startsWith("https://"))return a.toString();return"".concat(a.pathname).concat(a.search).concat(a.hash)}catch(t){return e}}},39458:e=>{e.exports={modal:"modal_modal__y8vM_","full-width":"modal_full-width___racT","full-height":"modal_full-height__4SL2N",white:"modal_white__vR8nf",blue:"modal_blue__AyyCg",open:"modal_open__R7lNs",modal__overlay:"modal_modal__overlay__H30A_","top-align":"modal_top-align__Hd3iy",modal__close:"modal_modal__close__oN2_F","modal__close-icon":"modal_modal__close-icon__jWxHe",modal__header:"modal_modal__header__tspKu",modal__content:"modal_modal__content__is7HU","no-padding":"modal_no-padding__WNSCY","has-actions":"modal_has-actions__rCTPo","no-overflow":"modal_no-overflow__3WpUv",modal__footer:"modal_modal__footer__JjdGr"}},52901:(e,t,a)=>{"use strict";a.d(t,{n:()=>o,p:()=>r});var i=a(73365),n=a(1521);let l=(0,n.createContext)(null);function r(e){let{config:t,children:a}=e;return(0,i.jsx)(l.Provider,{value:t,children:a})}function o(){let e=(0,n.useContext)(l);if(!e)throw Error("useCatalogueConfig must be used within a CatalogueConfigProvider");return e}},55129:(e,t,a)=>{"use strict";a.d(t,{Co:()=>c});var i=a(33003),n=a(22618),l=a(79389),r=a.n(l);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500;return e.replace(/[\r\n]/g," ").slice(0,t)}async function c(e){let t,{query:a,variables:l,previewToken:c,headers:s,cache:u,tags:d,returnErrorResponse:p=!1}=e;try{let e=(0,n.y)(a);t=function(e){let t=r().states({main:{comment:/#.*$/,blockString:{match:/:\s*"""/,push:"blockString"},description:{match:'"""',push:"description"},string:/"(?:\\"|[^"])*"/,variable:/\$[A-z\d]+/,id:/[A-z\d]+!?/,ws:{match:/[\s\t]+/,lineBreaks:!0},any:/./},description:{descriptionEnd:{match:'"""',pop:1},ws:{match:/[\s\t]+/,lineBreaks:!0},description:/./},blockString:{esc:{match:'"""',pop:1},stringSpace:{match:/[\s\t]+/,lineBreaks:!0},any:/./}});t.reset(e);let a="";for(let{type:e,value:i}of t)"comment"!==e&&"description"!==e&&"descriptionEnd"!==e&&(a+=i);t.reset(a);let i=Array.from(t);return i.map((e,t)=>{let{type:a,value:n}=e;if("blockString"===a)return n.replace(/\s*/g,"");if("ws"===a){var l,r;let e=null==(l=i[t-1])?void 0:l.type,a=null==(r=i[t+1])?void 0:r.type;return"id"===e&&"id"===a||"variable"===e&&"id"===a||"id"===e&&"variable"===a?" ":""}return n}).join("").trim()}(e)}catch(e){throw Error("Error parsing GraphQL query: ".concat(e))}let v={query:t},h=function(e){let t={"Content-Type":"application/json",...e};return delete t.Authorization,delete t.authorization,delete t["User-Agent"],delete t["user-agent"],t}({...function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=t.find(e=>e.includes(":/")),i=null==a?void 0:a.replace(/^[^:]+:/,"");return{"X-Bendix-Request-Source":"next-web","X-Bendix-GraphQL-Operation":o(function(e){var t;let a=("definitions"in e&&Array.isArray(e.definitions)?e.definitions:[]).find(e=>(null==e?void 0:e.kind)==="OperationDefinition");return a&&"name"in a&&(null==(t=a.name)?void 0:t.value)?a.name.value:"anonymous"}(e),100),"X-Bendix-GraphQL-Tags":o(t.join(",")),...i?{"X-Bendix-Source-Path":o(i)}:{},...{"X-Bendix-Source-Path":o(window.location.pathname+window.location.search),"X-Bendix-Original-User-Agent":o(window.navigator.userAgent)}}}(a,d),...s}),m=new URLSearchParams;c?(c.split("&").forEach(e=>{var t,a;return m.set(null!=(t=e.split("=")[0])?t:"",null!=(a=e.split("=")[1])?a:"")}),l&&(v.variables={...l,drafts:null}),h["x-craft-gql-cache"]="no-cache"):l&&(v.variables={...l,drafts:!1});let g=await (0,i.E)({method:"POST",url:"/api/content"+(m.size>0?"?".concat(m.toString()):""),headers:h,cache:"no-store",tags:d,body:v});if(g.errors){if(p)return g;throw console.error("ERRORS",g.errors,v),Error("GraphQL Errors: ".concat(JSON.stringify(g.errors)))}return g.data||{}}a(38660)},57110:e=>{e.exports={tooltip:"tooltip_tooltip__vQ2fJ",tooltip__content:"tooltip_tooltip__content__Y0V_A",tooltip__arrow:"tooltip_tooltip__arrow__v3
1kYG"}},66461:(e,t,a)=>{"use strict";a.d(t,{WB:()=>s,jn:()=>o,v2:()=>c});var i=a(73365),n=a(1521),l=a(99783);let r=(0,n.createContext)({slots:{}});function o(e){let{slots:t,theme:a,children:n}=e;return(0,i.jsx)(r.Provider,{value:{slots:null!=t?t:{},theme:a},children:n})}function c(){return(0,n.useContext)(r).slots}function s(e){var t;let{children:a,className:o,style:c}=e,s=(0,n.useContext)(r).theme;return(0,i.jsx)("div",{className:(0,l.A)(null==s?void 0:s.className,o),style:{...null!=(t=null==s?void 0:s.style)?t:{},...null!=c?c:{}},children:a})}},73892:(e,t,a)=>{"use strict";a.d(t,{$M:()=>v,C4:()=>p,FE:()=>A,Fc:()=>d,HB:()=>w,HG:()=>m,Ie:()=>_,N1:()=>g,N9:()=>b,_t:()=>h,_v:()=>f,bh:()=>c,ce:()=>y,fC:()=>S,lo:()=>k,vg:()=>u,xe:()=>o,zr:()=>s});let i=e=>Array.isArray(e)?e.map(i):e&&"object"==typeof e?Object.keys(e).sort().reduce((t,a)=>(t[a]=i(e[a]),t),{}):e,n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1200,a=window.__bendixAnalyticsSeen=window.__bendixAnalyticsSeen||{},n=JSON.stringify(i(e)),l=Date.now(),r=a[n];return"number"==typeof r&&l-r<t||(a[n]=l,!1)},l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"NA";return Array.isArray(e)?e.map(e=>l(e,"")).filter(Boolean).join(", ").trim()||t:null==e?t:String(e).trim()||t},r=function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(t&&n(e))return;let a=window;a.dataLayer=a.dataLayer||[],a.dataLayer.push(e)},o=function(e,t){let a=!(arguments.length>2)||void 0===arguments[2]||arguments[2];r({event:e,...t||{}},a)},c=e=>{o("catalogueSearch",{catalogueSearchType:e.catalogueSearchType,vehicleMake:l(e.vehicleMake),vehicleModel:l(e.vehicleModel),vehicleSeries:l(e.vehicleSeries),vehicleYear:l(e.vehicleYear),vehicleBodyType:l(e.vehicleBodyType),vehicleFuelType:l(e.vehicleFuelType),vehicleCylinders:l(e.vehicleCylinders),vehicleLitres:l(e.vehicleLitres),vehicleEngineCode:l(e.vehicleEngineCode),PartNo:l(e.PartNo)})},s=e=>{let t=e.facets||[],a=function(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.filter(t=>e.includes(t.attribute)).map(e=>e.value).filter(Boolean);if(i.length)return a?i.join(", "):i[0]};c({catalogueSearchType:((e,t)=>{let a=String(e||"").toLowerCase();if("rego"===a)return"Registration";if("vin"===a)return"VIN";if("part"===a||"partno"===a)return"Part Number";let i=String(t||"").toLowerCase();return i.includes("bike")||i.includes("moto")?"Bike":i.includes("commercial")?"Commercial Vehicle":"Passenger Vehicle"})(e.activeSearchType,e.activeTab),vehicleMake:a(["make.title","make"]),vehicleModel:a(["model.title","model"]),vehicleSeries:a(["series.shortTitle","series.title","series"]),vehicleYear:a(["years","year"],!0),vehicleBodyType:a(["bodyType","body"]),vehicleFuelType:a(["fuelType","fuel"]),vehicleCylinders:a(["cylinders","cylinder"]),vehicleLitres:a(["litres","engineSize"]),vehicleEngineCode:a(["engineCode"]),PartNo:e.partNo})},u=(e,t)=>{o("catalogueFilterSelection",{filterGroup:l(e),filterValue:l(t)},!1)},d=e=>{o("mainNavigationClick",{navigationLink:l(e)},!1)},p=e=>{o("mainNavigationPromtionClick",{navigationCategory:l(e)},!1)},v=e=>{o("footerNavigationClick",{navigationLink:l(e)},!1)},h=e=>{o("onThisPageClick",{navigationLink:l(e)},!1)},m=e=>{o("compatibleProductClick",{productName:l(e)},!1)},g=()=>{o("newsletterSignup",void 0,!1)},y=(e,t)=>{o("accordionClick",{accordionName:l(e),accordionAction:t},!1)},f=e=>{o("socialShareClick",{sharePlatform:l(e)},!1)},_=(e,t)=>{o("filterClick",{filterOption:l(e),filterStatus:t},!1)},b=(e,t,a)=>{o("filterClick",{filterOption:l(e),filterStatus:t,filterSource:l(a)},!1)},k=(e,t)=>{o("productSelectionGuide",{selectionGuideStep:e,...t||{}},!1)},S=e=>{o("stockistTabClick",{selectedTab:l(e)},!1)},w=()=>{o("stockistLocationSearch",void 0,!1)},F=[/contactbendix/i,/^contact/i],T=[/cant.*find.*part/i,/find.*part/i],N=[/cant.*find.*vehicle/i,/find.*vehicle/i],x=[/different.*application/i],V=[/newsletter/i],C=(e,t)=>t.some(t=>t.test(e)),A=e=>{let t=l(e,"").toLowerCase();if(t){if(C(t,V))return void g();if(C(t,T))return void o("cantFindPartSubmission",void 0,!1);if(C(t,N))return void o("cantFindVehicleSubmission",void 0,!1);if(C(t,x))return void o("foundDifferentApplicationSubmission",void 0,!1);C(t,F)&&o("contactFormSubmission",void 0,!1)}}},84675:(e,t,a)=>{"use strict";a.d(t,{Oq:()=>J,RU:()=>ee,kC:()=>Z});var i,n=a(84044),l=a(39373),r=a(35052);let o=r.k5(["rego","vin","make_model","part"]),c=r.Ik({attribute:r.Yj().min(1),value:r.Yj().min(1),label:r.Yj().optional()}),s=r.Ik({preSelectedFacets:r.YO(c).default([]),hiddenFacets:r.YO(c).default([]),selectedFacets:r.YO(c).default([]),query:r.Yj().default("")}
1).strict(),u=r.Ik({registration:r.Yj().default(""),state:r.Yj().default(""),selectedFacets:r.YO(c).default([]),ktypes:r.YO(r.Yj()).default([])}).strict(),d=r.Ik({vin:r.Yj().default(""),selectedFacets:r.YO(c).default([]),ktypes:r.YO(r.Yj()).default([])}).strict(),p=r.Ik({rego:u,vin:d,make_model:s,part:s}).strict(),v=r.Ik({activeType:o.default("make_model"),type:p}).strict(),h=r.Ik({version:r.ai().int().nonnegative().default(1),activeTab:r.Yj().default(""),tabs:r.g1(v).default({})}).strict(),m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"make_model";return v.parse({activeType:e,type:{rego:{},vin:{},make_model:{},part:{}}})},g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null!=(i=e[0])?i:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"make_model";return h.parse({activeTab:t,tabs:Object.fromEntries(e.map(e=>[e,m(a)]))})};var y=a(29296),f=a(73892);let _=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.activeCatalogueTab||e.catalogueWidgetState.activeTab||t},b=e=>P(e.activeSearchType),k=(e,t,a,i)=>{var n,l,r;if(!t)return e.catalogueWidgetState;let o={...null!=(l=null==(n=e.catalogueWidgetState)?void 0:n.tabs)?l:{}},c=null!=(r=o[t])?r:m(a);return o[t]=i(c),{...e.catalogueWidgetState,activeTab:t,tabs:o}},S=e=>null==e?void 0:e.replace(/"/g,'\\"'),w=new Set(["id","series.id"]),F=e=>(null!=e?e:[]).filter(e=>!!(null==e?void 0:e.attribute)&&!!(null==e?void 0:e.value)),T=(e,t)=>{var a,i,n,l,r,o;return"make_model"===t?F(null==e||null==(i=e.type)||null==(a=i.make_model)?void 0:a.selectedFacets):"vin"===t?F(null==e||null==(l=e.type)||null==(n=l.vin)?void 0:n.selectedFacets):"rego"===t?F(null==e||null==(o=e.type)||null==(r=o.rego)?void 0:r.selectedFacets):[]},N=e=>w.has(e.attribute)&&/^-?\d+(\.\d+)?$/.test(String(e.value))?"".concat(e.attribute,":").concat(e.value):"".concat(e.attribute,':"').concat(S(e.value),'"'),x=e=>e.map(N).join(" AND "),V=e=>"".concat(e.attribute,"::").concat(e.value).toLowerCase(),C={years:"Year",driveType:"Drive","series.shortTitle":"Model","make.title":"Make"},A=e=>e.replace(/([A-Z])/g," $1").replace(/^\w/,e=>e.toUpperCase()).trim(),P=e=>"partno"===e?"part":"make_model"===e?"make_model":"vin"===e?"vin":"rego"===e?"rego":"make_model",j={make_model:"mm",rego:"rego",vin:"vin"},E=new Set(["query","ktypes"]),I=(e,t)=>"".concat(e,".").concat(t),W=(e,t)=>I(j[e],t),B={tab:"tab",type:"type",query:"query",rego:"rego",regoState:"state",vin:"vin",legacyPartQuery:"search",legacyVehicleQuery:"vehicle_query"},L={makeModelQuery:W("make_model","query"),regoKtypes:W("rego","ktypes"),vinKtypes:W("vin","ktypes")},O=new Set([...Object.values(B),...Object.values(L)]),q=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?"part"===e||"partno"===e?"partno":"make_model"===e?"make_model":"vin"===e?"vin":"rego"===e?"rego":t:t},R=e=>"part"===e?"partno":e,D=()=>({selectedVehicleFacets:[],selectedVehicleFacetsByTab:{},selectedPartFacets:[],preSelectedVehicleFacets:[],hiddenVehicleFacet:null,partQuery:"",dropdownOpen:!1,mobileModalOpen:!1,searchMessage:null,vehicleSearchInput:"",vinSearchInput:"",vehicleSearchKtypes:[],catalogueWidgetState:g([]),vehicleSearchHitsCount:0,vehicleSearchFirstUri:void 0,vehicleSearchFirstTitle:void 0,activeCatalogueTab:"",activeSearchType:"",brandInfo:[],brandInfoLoading:!1}),Q=new Set([B.query,L.makeModelQuery]),U=e=>{let t=new URLSearchParams(e);return Q.forEach(e=>t.delete(e)),t.toString()},M=(e,t)=>t||C[e]||A(e);function K(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{prefix:a,allowUnprefixed:i=!a}=t,n=[],l=e=>{if(!e)return[];if(!e.includes(","))return[e.trim()].filter(Boolean);let t=[],a="",i=0;for(let n=0;n<e.length;n+=1){let l=e[n];if("("===l&&(i+=1),")"===l&&i>0&&(i-=1),","===l&&0===i){a.trim()&&t.push(a.trim()),a="";continue}a+=l}return a.trim()&&t.push(a.trim()),t};e||(e=window.location.search||""),"string"==typeof e?n=Array.from(new URLSearchParams(e.startsWith("?")?e:"?".concat(e)).entries()).map(e=>{let[t,a]=e;return[t,l(a)]}):e instanceof URLSearchParams?n=Array.from(e.entries()).map(e=>
1{let[t,a]=e;return[t,l(a)]}):e&&"object"==typeof e&&(n=Object.entries(e).map(e=>{let[t,a]=e;return[t,(Array.isArray(a)?a.map(String):l(String(a))).map(e=>e.trim()).filter(Boolean)]}));let r=Object.values(j),o=n.some(e=>{let[t]=e;return r.some(e=>t.startsWith("".concat(e,".")))}),c=n.flatMap(e=>{let[t,n]=e,l=t;if(a){let e="".concat(a,".");if(t.startsWith(e)){if(!(l=t.slice(e.length))||E.has(l))return[]}else if(!i||o||O.has(t))return[]}else if(O.has(t))return[];if(O.has(l))return[];let r=Array.from(new Set(n));return"years"===l?[[l,r.map(e=>parseInt(e,10)).filter(Number.isFinite).sort((e,t)=>e-t).map(String)]]:[[l,r]]}),s=[];for(let[e,t]of c){var u;let a=null!=(u=C[e])?u:A(e);for(let i of t)s.push({attribute:e,value:i,label:a})}return s}function Y(e,t){let a=G(e,t);return a?Array.from(new Set(a.split(",").map(e=>e.trim()).filter(Boolean))):[]}function $(e,t){return e.includes(t)}function H(e,t){let a="".concat(t,".");return e.some(e=>e.startsWith(a))}function z(e){if(!(null==e?void 0:e.length))return[];let t=new Set,a=[];for(let o of e){var i,n,l,r;let e=null==(i=o.attribute)?void 0:i.trim(),c=String(null!=(n=o.value)?n:"").trim();if(!e||!c)continue;let s="".concat(e,"::").concat(c).toLowerCase();t.has(s)||(t.add(s),a.push({attribute:e,value:c,label:null!=(r=null!=(l=o.label)?l:C[e])?r:A(e)}))}let o=a.filter(e=>"years"===e.attribute).map(e=>parseInt(e.value,10)).filter(Number.isFinite).sort((e,t)=>e-t).map(e=>({attribute:"years",value:String(e),label:C.years}));return[...a.filter(e=>"years"!==e.attribute),...o]}function G(e){var t,a,i,n;let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"search";if(e||(e=window.location.search||""),"string"==typeof e)return(null!=(i=new URLSearchParams(e.startsWith("?")?e:"?".concat(e)).get(l))?i:"").trim();if(e instanceof URLSearchParams)return(null!=(n=e.get(l))?n:"").trim();let r=e[l];return r&&(null==(a=Array.isArray(r)?r[0]:r)||null==(t=a.toString())?void 0:t.trim())||""}function J(e,t){var a,i,n,l,r,o,c,s,u,d,p,v,h,m,g,y,f,k;let{mode:w="shared",defaultMode:F="vehicle",searchTypes:T,vehicleTypes:N=[],preSelectedVehicleFacets:C}=t,A="shared"===w?e.activeSearchType?e.activeSearchType===T.PART_NO?"part":"vehicle":F:w,P=_(e,""),j=null==(i=e.catalogueWidgetState)||null==(a=i.tabs)?void 0:a[P],E=null!=(u=null==j?void 0:j.activeType)?u:b(e),I=null==j||null==(n=j.type)?void 0:n.make_model,W=null==j||null==(l=j.type)?void 0:l.rego,B=null==j||null==(r=j.type)?void 0:r.vin,L=null==j||null==(o=j.type)?void 0:o.part,O="vin"===E?null!=(d=null==B?void 0:B.ktypes)?d:e.vehicleSearchKtypes:"rego"===E?null!=(p=null==W?void 0:W.ktypes)?p:e.vehicleSearchKtypes:[],q=null==I||null==(c=I.hiddenFacets)?void 0:c[0],R=(null==q?void 0:q.attribute)&&(null==q?void 0:q.value)?q:null,D=null==L||null==(s=L.hiddenFacets)?void 0:s[0],Q=(null==D?void 0:D.attribute)&&(null==D?void 0:D.value)?D:R,U=(null!=(v=null==I?void 0:I.selectedFacets)?v:[]).filter(e=>!!(null==e?void 0:e.attribute)&&!!(null==e?void 0:e.value)),M=("vin"===E?null!=(h=null==B?void 0:B.selectedFacets)?h:[]:"rego"===E&&null!=(m=null==W?void 0:W.selectedFacets)?m:[]).filter(e=>!!(null==e?void 0:e.attribute)&&!!(null==e?void 0:e.value)),K=(null!=(g=null==L?void 0:L.selectedFacets)?g:[]).filter(e=>!!(null==e?void 0:e.attribute)&&!!(null==e?void 0:e.value)&&!!(null==e?void 0:e.label)),Y=null!=(y=null==L?void 0:L.query)?y:"",$=((null!=(f=null==I?void 0:I.preSelectedFacets)?f:[]).length?null!=(k=null==I?void 0:I.preSelectedFacets)?k:[]:null!=C?C:[]).filter(e=>!!(null==e?void 0:e.attribute)&&!!(null==e?void 0:e.value)),H="part"!==A?"":(null==Q?void 0:Q.attribute)==="vehicleTypes"&&Q.value?"Passenger"===Q.value?'(vehicleTypes:"Passenger" OR vehicleTypes:"Unlinked")':'vehicleTypes:"'.concat(S(Q.value),'"'):(null==N?void 0:N.length)?"(".concat(N.map(e=>'vehicleTypes:"'.concat(S(e),'"')).join(" OR "),")"):"",z=(()=>{if("part"===A){let e=[];return H&&e.push(H),(null==K?void 0:K.length)&&e.push(K.map(e=>"".concat(e.attribute,':"').concat(S(e.value),'"')).join(" AND ")),e.length?e.join(" AND "):void 0}let e=[];R&&e.push(R),$.length&&e.push(...$),"make_model"===E&&U.length&&e.push(...((e,t)=>
1{if(!t.length)return e;let a=new Set(t.map(e=>e.attribute));return e.filter(e=>!a.has(e.attribute))})(U,$)),("vin"===E||"rego"===E)&&M.length&&e.push(...M);let t=[];if(e.length)t.push(x((e=>{let t=new Set;return e.filter(e=>{let a=V(e);return!t.has(a)&&(t.add(a),!0)})})(e)));else{let e=(null==$?void 0:$.length)?x($):"";e&&t.push(e)}let a="vin"===E||"rego"===E?(e=>{let t=Array.from(new Set((null!=e?e:[]).map(e=>String(e).trim()).filter(e=>/^\d+$/.test(e))));return t.length?1===t.length?"id = ".concat(t[0]):"(".concat(t.map(e=>"id = ".concat(e)).join(" OR "),")"):""})(O):"";return a&&t.push(a),t.length?t.join(" AND "):void 0})(),G="part"===A?Y:"",J="part"===A?!!Y.trim()||K.length>0:"rego"===E||"vin"===E?O.length>0||M.length>0:U.length>0||$.length>0;return{resolvedMode:A,filters:z,initialQuery:G,hasSearchCriteria:J,selectedVehicleFacets:U,selectedPartFacets:K,preSelectedVehicleFacets:$,hiddenVehicleFacet:R,hiddenVehicleFacetForParts:Q,partQuery:Y,activeTabKey:P}}let X=()=>{let e=null;return(0,n.v)((t,a)=>({...D(),resetCatalogueState:()=>t(e=>({...D(),brandInfo:e.brandInfo,brandInfoLoading:e.brandInfoLoading})),setCatalogueFromParams:function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(t=>{var i,n,l,r,o,c,s,u,d,p;let{type:v,defaultSearchType:h,initialTab:g,availableTabs:y,availableSearchTypes:f,partQueryKey:_=B.query,preserveMissingParams:b=!1}=a,k=e=>!!e&&(!(null==y?void 0:y.length)||y.includes(e)),S=e=>!!e&&(!(null==f?void 0:f.length)||f.includes(e)),w=((p=e)||(p=window.location.search||""),"string"==typeof p)?Array.from(new Set(Array.from(new URLSearchParams(p.startsWith("?")?p:"?".concat(p)).keys()))):p instanceof URLSearchParams?Array.from(new Set(Array.from(p.keys()))):Object.keys(p),T=G(e,B.tab),N=q(G(e,B.type),""),x=G(e,B.query)||G(e,_)||G(e,B.legacyPartQuery)||G(e,B.legacyVehicleQuery),V=G(e,L.makeModelQuery)||x,C=G(e,B.vin),A=G(e,B.rego),E=G(e,B.regoState),I=Y(e,L.regoKtypes).filter(e=>/^\d+$/.test(e)),W=Y(e,L.vinKtypes).filter(e=>/^\d+$/.test(e)),R=$(w,B.query)||$(w,_)||$(w,B.legacyPartQuery)||$(w,B.legacyVehicleQuery),D=H(w,j.make_model)||R||function(e){let t=Object.values(j);return e.some(e=>!O.has(e)&&!t.some(t=>e.startsWith("".concat(t,"."))))}(w),Q=$(w,B.rego)||$(w,B.regoState)||H(w,j.rego),U=$(w,B.vin)||H(w,j.vin),M=(k(T)?T:"")||(k(t.activeCatalogueTab)?t.activeCatalogueTab:"")||(k(t.catalogueWidgetState.activeTab)?t.catalogueWidgetState.activeTab:"")||(k(g)?g:"")||"",z={...null!=(l=null==(i=t.catalogueWidgetState)?void 0:i.tabs)?l:{}},J="part"===v?"partno":"vehicle"===v?"make_model":"",X=S(t.activeSearchType)?t.activeSearchType:"",Z=(b&&!N?X:"")||(S(h)?h:"")||(S(J)?J:"")||X||(null==f?void 0:f[0])||"",ee=(S(N)?N:"")||Z,et=M?null==(n=z[M])?void 0:n.activeType:void 0,ea=ee?P(ee):null!=et?et:P(Z||"make_model"),ei=ee||t.activeSearchType||Z||"make_model",en="make_model"===ea,el="part"===ea,er="rego"===ea,eo="vin"===ea,ec=M&&null!=(r=z[M])?r:m(ea),es=K(e,{prefix:j.make_model,allowUnprefixed:en}),eu=K(e,{prefix:j.rego}),ed=K(e,{prefix:j.vin}),ep=!b||D,ev=!b||Q,eh=!b||U,em=en&&ep?es:F(ec.type.make_model.selectedFacets),eg=er&&ev?eu:F(ec.type.rego.selectedFacets),ey=eo&&eh?ed:F(ec.type.vin.selectedFacets),ef=er?ev?I:ec.type.rego.ktypes:eo?eh?W:ec.type.vin.ktypes:[],e_=en&&ep?V:null!=(o=ec.type.make_model.query)?o:"",eb=el&&(!b||R)?x:null!=(c=ec.type.part.query)?c:t.partQuery,ek=er&&ev?A:null!=(s=ec.type.rego.registration)?s:"",eS=er&&ev?E:null!=(u=ec.type.rego.state)?u:"",ew=eo&&eh?C:null!=(d=ec.type.vin.vin)?d:"",eF=en?em:er?eg:eo?ey:[],eT={...t.selectedVehicleFacetsByTab};M&&en&&(eT[M]=em);let eN=M?{attribute:"vehicleType",value:M,label:"Vehicle type"}:null,ex=M?{attribute:"vehicleTypes",value:M,label:"Vehicle type"}:null;M&&(z[M]={...ec,activeType:ea,type:{...ec.type,make_model:{...ec.type.make_model,hiddenFacets:eN?[eN]:ec.type.make_model.hiddenFacets,selectedFacets:em,query:null!=e_?e_:""},rego:{...ec.type.rego,registration:null!=ek?ek:"",state:null!=eS?eS:"",selectedFacets:eg,ktypes:er?ef:ec.type.rego.ktypes},vin:{...ec.type.vin,vin:null!=ew?ew:"",selectedFacets:ey,ktypes:eo?ef:ec.type.vin.ktypes},part:{...ec.type.part,hiddenFacets:ex?[ex]:ec.type.part.hiddenFacets,query:null!=eb?eb:""}}});let eV={...t.catalogueWidgetState,activeTab:M||t.catalogueWidgetState.activeTab,tabs:z};return{activeCatalogueTab:M||t.activeCatalogueTab,activeSearchType:ei||t.activeSearchType,selectedVehicleFacets:eF,selectedVehicleFacetsByTab:eT,partQuery:null!=eb?eb:"",vehicleSearchInput:en&&null!=e_?e_:"",vinSearchInput:eo&&null!=ew?ew:"",vehicleSearchKtypes:er||eo?ef:[],hiddenVehicleFacet:null!=eN?eN:t.hiddenVehicleFacet,catalogueWidgetState:eV}})},addVehicleFacet:e=>{t(t=>{var a;let i=_(t),n=b(t);if(!i||"part"===n)return{};let l=T(null==(a=t.catalogueWidgetState.tabs)?void 0:a[i],n),r=l.some(t=>t.value===e.value&&t.attribute===e.attribute)?l.filter(t=>t.value!==e.value||t.attribute!==e.attribute):[...l,e],o="make_model"===n?{...t.selectedVehicleFacetsByTab,[i]:r}:t.selectedVehicleFacetsByTab,c=k(t,i,n,e=>({...e,activeType:n,type:{...e.type,..."make_model"===n?{make_model:{...e.type.make_model,preSelectedFacets:t.preSelectedVehicleFacets,hiddenFacets:t.hiddenVehicleFacet?[t.hiddenVehicleFacet]:e.type.make_model.hiddenFacets,selectedFacets:r}}:{[n]:{...e.type[n],selectedFacets:r}}}}));return{selectedVehicleFacets:r,selectedVehicleFacetsByTab:o,catalogueWidgetState:c}})},removeVehicleFacet:(e,a)=>t(t=>{var i;let n=_(t),l=b(t);if(!n||"part"===l)return{};let r=T(null==(i=t.catalogueWidgetState.tabs)?void 0:i[n],l),o=new Set(("make_model"===l?z(t.preSelectedVehicleFacets):[]).map(V)),c=r.filter(t=>!!o.has(V(t))||t.value!==e||t.attribute!==a),s="make_model"===l?{...t.selectedVehicleFacetsByTab,[n]:c}:t.selectedVehicleFacetsByTab,u=k(t,n,l,e=>({...e,activeType:l,type:{...e.type,..."make_model"===l?{make_model:{...e.type.make_model,selectedFacets:c}}:{[l]:{...e.type[l],selectedFacets:c}}}}));return{selectedVehicleFacets:c,selectedVehicleFacetsByTab:s,catalogueWidgetState:u}}),clearVehicleFacets:()=>t(e=>{let t=_(e),a=b(e);if(!t||"part"===a)return{};let i="make_model"===a?z(e.preSelectedVehicleFacets):[],n="make_model"===a?{...e.selectedVehicleFacetsByTab,[t]:i}:e.selectedVehicleFacetsByTab,l=k(e,t,a,e=>({...e,activeType:a,type:{...e.type,..."make_model"===a?{make_model:{...e.type.make_model,selectedFacets:i}}:{[a]:{...e.type[a],selectedFacets:i}}}}));return{selectedVehicleFacets:i,selectedVehicleFacetsByTab:n,catalogueWidgetState:l}}),setPreSetVehicleFacets:e=>{t(t=>{let a=z(e),i=_(t),n=b(t),l=i&&"make_model"===n?{...t.selectedVehicleFacetsByTab,[i]:a}:t.selectedVehicleFacetsByTab,r=k(t,i,n,e=>({...e,activeType:n,type:{...e.type,make_model:{...e.type.make_model,preSelectedFacets:a,selectedFacets:a}}}));return{preSelectedVehicleFacets:null!=e?e:[],selectedVehicleFacets:"make_model"===n?a:t.selectedVehicleFacets,selectedVehicleFacetsByTab:l,catalogueWidgetState:r}})},setHiddenVehicleFacet:function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"vehicleType";return t(t=>{let i=e?{attribute:a,value:e,label:"Vehicle type"}:null,n=_(t),l=b(t),r=k(t,n,l,e=>{let t={...e.type};return"part"===l?t.part={...e.type.part,hiddenFacets:i?[i]:[]}:t.make_model={...e.type.make_model,hiddenFacets:i?[i]:[]},{...e,activeType:l,type:t}});return{hiddenVehicleFacet:i,catalogueWidgetState:r}})},setVehicleSearchInput:e=>t(t=>{let a=null!=e?e:"",i=_(t);if(!i)return{vehicleSearchInput:a};let n="make_model",l=k(t,i,n,e=>({...e,activeType:n,type:{...e.type,make_model:{...e.type.make_model,query:a}}}));return{vehicleSearchInput:a,catalogueWidgetState:l}}),setVinSearchInput:e=>t(t=>{let a=null!=e?e:"",i=_(t);if(!i)return{vinSearchInput:a};let n=k(t,i,"vin",e=>({...e,activeType:"vin",type:{...e.type,vin:{...e.type.vin,vin:a}}}));return{vinSearchInput:a,catalogueWidgetState:n}}),setVehicleSearchKtypes:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t(t=>{let a=Array.from(new Set(e.map(e=>String(e).trim()).filter(e=>/^\d+$/.test(e)))),i=_(t),n=b(t);if(!i||"rego"!==n&&"vin"!==n)return{vehicleSearchKtypes:a};let l=k(t,i,n,e=>({...e,activeType:n,type:{...e.type,[n]:{...e.type[n],ktypes:a}}}));return{vehicleSearchKtypes:a,catalogueWidgetState:l}})},setVehicleSearchMeta:(e,a,i)=>t(t=>{let n=void 0!==a?a||void 0:t.vehicleSearchFirstUri,l=void 0!==i?i||void 0:t.vehicleSearchFirstTitle;return t.vehicleSearchHitsCount===e&&t.vehicleSearchFirstUri===n&&t.vehicleSearchFirstTitle===l?{}:{vehicleSearchHitsCount:e,vehicleSearchFirstUri:n,vehicleSearchFirstTitle:l}}),setActiveCatalogueTab:e=>t(t=>{var a,i,n,l,r,o,c,s,u,d,p,v,h,g,y,f,_,k,S,w;let F=null!=e?e:"";if(t.activeCatalogueTab===F)return{};let N=b(t),x=t.activeCatalogueTab||"",V={...null!=(h=null==(a=t.catalogueWidgetState)?void 0:a.tabs)?h:{}};if(x){let e=null!=(g=V[x])?g:m(N),a={...e.type};"make_model"===N?a.make_model={...e.type.make_model,preSelectedFacets:t.preSelectedVehicleFacets,hiddenFacets:t.hiddenVehicleFacet?[t.hiddenVehicleFacet]:e.type.make_model.hiddenFacets,selectedFacets:t.selectedVehicleFacets,query:t.vehicleSearchInput}:"part"===N?a.part={...e.type.part,selectedFacets:t.selectedPartFacets,query:t.partQuery}:"vin"===N?a.vin={...e.type.vin,vin:t.vinSearchInput,selectedFacets:t.selectedVehicleFacets,ktypes:x===t.activeCatalogueTab?t.vehicleSearchKtypes:e.type.vin.ktypes}:"rego"===N&&(a.rego={...e.type.rego,registration:e.type.rego.registration,state:e.type.rego.state,selectedFacets:t.selectedVehicleFacets,ktypes:x===t.activeCatalogueTab?t.vehicleSearchKtypes:e.type.rego.ktypes}),V[x]={...e,activeType:N,type:a}}V[F]||(V[F]=m(N));let C={...t.catalogueWidgetState,activeTab:F,tabs:V},A={...t.selectedVehicleFacetsByTab};x&&"make_model"===N&&(A[x]=t.selectedVehicleFacets);let P=null==(i=C.tabs)?void 0:i[F],j=null!=(y=null==P?void 0:P.activeType)?y:N,E=T(P,j);F&&"make_model"===j&&(A[F]=E);let I=null!=(f=null==P||null==(l=P.type)||null==(n=l.make_model)?void 0:n.query)?f:"",W=null!=(_=null==P||null==(o=P.type)||null==(r=o.part)?void 0:r.query)?_:"",B=null!=(k=null==P||null==(s=P.type)||null==(c=s.vin)?void 0:c.vin)?k:"",L=R(j),O="vin"===j?null!=(S=null==P||null==(d=P.type)||null==(u=d.vin)?void 0:u.ktypes)?S:[]:"rego"===j&&null!=(w=null==P||null==(v=P.type)||null==(p=v.rego)?void 0:p.ktypes)?w:[];return{activeCatalogueTab:F,selectedVehicleFacets:E,selectedVehicleFacetsByTab:A,activeSearchType:L,vehicleSearchInput:"make_model"===j?I:"",partQuery:W,vinSearchInput:"vin"===j?B:"",vehicleSearchKtypes:O,catalogueWidgetState:C}}),setActiveSearchType:e=>t(t=>{var a,i,n,l,r,o,c,s,u,d,p,v,h,g,y,f,k,S;let w=null!=e?e:"";if(t.activeSearchType===w)return{};let F=P(w),N=b(t),x=_(t),V={...null!=(v=null==(a=t.catalogueWidgetState)?void 0:a.tabs)?v:{}};if(x){let e=null!=(h=V[x])?h:m(N),a={...e.type};"make_model"===N?a.make_model={...e.type.make_model,preSelectedFacets:t.preSelectedVehicleFacets,hiddenFacets:t.hiddenVehicleFacet?[t.hiddenVehicleFacet]:e.type.make_model.hiddenFacets,selectedFacets:t.selectedVehicleFacets,query:t.vehicleSearchInput}:"part"===N?a.part={...e.type.part,hiddenFacets:t.hiddenVehicleFacet?[t.hiddenVehicleFacet]:e.type.part.hiddenFacets,selectedFacets:t.selectedPartFacets,query:t.partQuery}:"vin"===N?a.vin={...e.type.vin,vin:t.vinSearchInput,selectedFacets:t.selectedVehicleFacets,ktypes:t.vehicleSearchKtypes}:"rego"===N&&(a.rego={...e.type.rego,registration:e.type.rego.registration,state:e.type.rego.state,selectedFacets:t.selectedVehicleFacets,ktypes:t.vehicleSearchKtypes}),V[x]={...e,activeType:F,type:a}}let C=x?V[x]:void 0,A=T(C,F),j=x&&"make_model"===F?{...t.selectedVehicleFacetsByTab,[x]:A}:t.selectedVehicleFacetsByTab,E="vin"===F?null!=(g=null==C||null==(n=C.type)||null==(i=n.vin)?void 0:i.ktypes)?g:[]:"rego"===F&&null!=(y=null==C||null==(r=C.type)||null==(l=r.rego)?void 0:l.ktypes)?y:[],I={...t.catalogueWidgetState,activeTab:x||t.catalogueWidgetState.activeTab,tabs:V};return{activeSearchType:w,selectedVehicleFacets:A,selectedVehicleFacetsByTab:j,vehicleSearchInput:"make_model"===F&&null!=(f=null==C||null==(c=C.type)||null==(o=c.make_model)?void 0:o.query)?f:"",vinSearchInput:"vin"===F&&null!=(k=null==C||null==(u=C.type)||null==(s=u.vin)?void 0:s.vin)?k:"",partQuery:"part"===F?null!=(S=null==C||null==(p=C.type)||null==(d=p.part)?void 0:d.query)?S:"":t.partQuery,vehicleSearchKtypes:E,catalogueWidgetState:I}}),addPartFacet:e=>t(t=>{let a=t.selectedPartFacets.some(t=>t.value===e.value&&t.attribute===e.attribute)?t.selectedPartFacets.filter(t=>t.value!==e.value||t.attribute!==e.attribute):[...t.selectedPartFacets,e],i=_(t),n=b(t),l=k(t,i,n,e=>({...e,activeType:n,type:{...e.type,part:{...e.type.part,selectedFacets:a,query:t.partQuery}}}));return{selectedPartFacets:a,catalogueWidgetState:l}}),removePartFacet:(e,a)=>t(t=>{let i=t.selectedPartFacets.filter(t=>t.value!==e||t.attribute!==a),n=_(t),l=b(t),r=k(t,n,l,e=>({...e,activeType:l,type:{...e.type,part:{...e.type.part,selectedFacets:i}}}));return{selectedPartFacets:i,catalogueWidgetState:r}}),clearPartFacets:()=>t(e=>{let t=_(e),a=b(e);return{selectedPartFacets:[],catalogueWidgetState:k(e,t,a,e=>({...e,activeType:a,type:{...e.type,part:{...e.type.part,selectedFacets:[]}}}))}}),setPartQuery:e=>t(t=>{let a=null!=e?e:"",i=_(t);if(!i)return{partQuery:a};let n="part",l=k(t,i,n,e=>({...e,activeType:n,type:{...e.type,part:{...e.type.part,query:a}}}));return{partQuery:a,catalogueWidgetState:l}}
1),setPreSetFiltersOnly:e=>t(()=>({preSelectedVehicleFacets:null!=e?e:[]})),setMobileModalOpen:e=>t(()=>({mobileModalOpen:e})),setSearchMessage:a=>{e&&(clearTimeout(e),e=null),t(()=>({searchMessage:a})),a&&(e=setTimeout(()=>{e=null,t(()=>({searchMessage:null}))},3e3))},setDropdownOpen:e=>{queueMicrotask(()=>t(t=>t.dropdownOpen===e?{}:{dropdownOpen:e}))},loadBrandInfo:async e=>{var i;let n=a();if((null==(i=n.brandInfo)?void 0:i.length)>0||n.brandInfoLoading)return;t(()=>({brandInfoLoading:!0}));let l=await (0,y.E1)(e);t(()=>({brandInfo:null!=l?l:[],brandInfoLoading:!1}))}}))},Z=X(),ee=X();{let e="",t=new Set;Z.subscribe(a=>{let i;if(i=window.location.pathname,!/\/catalogue\/search(?:\/|$)/.test(i)){e="",t=new Set;return}if(!a.activeCatalogueTab&&!a.catalogueWidgetState.activeTab)return;let n=(e=>{var t,a,i,n,l;let r=_(e);if(!r)return[];let o=null==(t=e.catalogueWidgetState.tabs)?void 0:t[r],c=null!=(n=null==o?void 0:o.activeType)?n:b(e),s=T(o,c).map(e=>({attribute:e.attribute,value:e.value,label:M(e.attribute,e.label)}));return"part"!==c?s:[...s,...(null!=(l=null==o||null==(i=o.type)||null==(a=i.part)?void 0:a.selectedFacets)?l:[]).filter(e=>(null==e?void 0:e.attribute)&&(null==e?void 0:e.value)).map(e=>({attribute:e.attribute,value:e.value,label:M(e.attribute,e.label)}))]})(a),r=new Set(n.map(e=>"".concat(e.attribute,"::").concat(e.value))),o=(e=>{var t,a,i,n,r,o,c,s;let u=_(e),d=null==(t=e.catalogueWidgetState.tabs)?void 0:t[u],p=null!=(o=null==d?void 0:d.activeType)?o:b(e),v=new URLSearchParams;u&&v.set(B.tab,u),p&&v.set(B.type,R(p));let h=null==d||null==(a=d.type)?void 0:a.make_model,m=null==d||null==(i=d.type)?void 0:i.part,g=null==d||null==(n=d.type)?void 0:n.rego,y=null==d||null==(r=d.type)?void 0:r.vin,f=(e,t)=>{let a=(0,l.he)(F(t).map(e=>({attribute:e.attribute,value:e.value})));a&&new URLSearchParams(a).forEach((t,a)=>v.set(I(e,a),t))};if("make_model"===p&&(f(j.make_model,null==h?void 0:h.selectedFacets),(null==h?void 0:h.query)&&v.set(L.makeModelQuery,h.query)),"part"===p&&(null==m?void 0:m.query)&&v.set(B.query,m.query),"rego"===p){f(j.rego,null==g?void 0:g.selectedFacets),(null==g?void 0:g.registration)&&v.set(B.rego,g.registration),(null==g?void 0:g.state)&&v.set(B.regoState,g.state);let t=null!=(c=null==g?void 0:g.ktypes)?c:e.vehicleSearchKtypes;t.length&&v.set(L.regoKtypes,t.join(","))}if("vin"===p){f(j.vin,null==y?void 0:y.selectedFacets),(null==y?void 0:y.vin)&&v.set(B.vin,y.vin);let t=null!=(s=null==y?void 0:y.ktypes)?s:e.vehicleSearchKtypes;t.length&&v.set(L.vinKtypes,t.join(","))}return v.toString()})(a);if(o===e)return;let c=window.location.search.replace(/^\?/,"");if(c===o){e=o,t=r;return}let s=e||c,u=U(o)===U(s)&&((e,t)=>e.size===t.size&&[...e].every(e=>t.has(e)))(r,t);if((a.dropdownOpen||a.mobileModalOpen)&&u)return;let d=n.find(e=>!t.has("".concat(e.attribute,"::").concat(e.value)));if(d)(0,f.vg)(d.label,d.value);else{let e=[...t].find(e=>!r.has(e));if(e){let[t="",a=""]=e.split("::");(0,f.vg)(M(t),a)}}(0,f.zr)({activeSearchType:a.activeSearchType,activeTab:a.activeCatalogueTab||a.catalogueWidgetState.activeTab,facets:(e=>{var t,a,i,n,l;let r=_(e);if(!r)return[];let o=null==(t=e.catalogueWidgetState.tabs)?void 0:t[r],c=null!=(n=null==o?void 0:o.activeType)?n:b(e),s=T(o,c).map(e=>({attribute:e.attribute,value:e.value}));return"part"!==c?s:[...s,...(null!=(l=null==o||null==(i=o.type)||null==(a=i.part)?void 0:a.selectedFacets)?l:[]).filter(e=>(null==e?void 0:e.attribute)&&(null==e?void 0:e.value)).map(e=>({attribute:e.attribute,value:e.value}))]})(a),partNo:a.partQuery}),e=o,t=r;let p="".concat(window.location.pathname).concat(o?"?".concat(o):"").concat(window.location.hash);window.history.replaceState({},"",p)})}},87686:e=>{e.exports={tag:"tag_tag__Bx5W4","tag--blue":"tag_tag--blue__MmKk3","tag--light-grey":"tag_tag--light-grey__J7Atr","tag--light-green":"tag_tag--light-green__2ur2z","tag--part-card":"tag_tag--part-card__FKQ17","tag--medium":"tag_tag--medium__S970o"}},97310:e=>{e.exports={"section-wrapper":"section-wrapper_section-wrapper__UDuDr","section-wrapper--max-w-narrow":"section-wrapper_section-wrapper--max-w-narrow__PoPYi","section-wrapper__inner":"section-wrapper_section-wrapper__inner__qxMEK","section-wrapper--max-w-medium":"section-wrapper_section-wrapper--max-w-medium__i75IN","section-wrapper--max-w-wide":"section-wrapper_section-wrapper--max-w-wide__pVFwy","section-wrapper--max-w-extra-wide":"section-wrapper_section-wrapper--max-w-extra-wide__ecUD2","section-wrapper--product-range-extended-right-side":"section-wrapper_section-wrapper--product-range-extended-right-side__FCh35","section-wrapper--no-side-padding":"section-wrapper_section-wrapper--no-side-padding__awxHJ","section-wrapper--no-side-padding-mobile":"section-wrapper_section-wrapper--no-side-padding-mobile__byvqv","section-wrapper--no-right-padding-mob":"section-wrapper_section-wrapper--no-right-padding-mob__JuKxE","section-wrapper--carousel":"section-wrapper_section-wrapper--carousel__Sp5uO","section-wrapper--grey-100":"section-wrapper_section-wrapper--grey-100__xcP9y"}},99397:(e,t,a)=>{"use strict";a.d(t,{PageStoreProvider:()=>s,s:()=>u});var i=a(73365),n=a(1521),l=a(84044),r=a(49428);let o={siteBaseUrl:"https://www.bendix.com.au",uri:"/",site:"en_au",lang:"en-au",catalogCountry:"au",config:{},theme:"bendix",components:[],timestamp:0},c=(0,n.createContext)(void 0),s=e=>{let{children:t,initState:a}=e;a.theme=a.site.includes("moto")?"moto":"bendix";let l=(0,r.y)()(e=>({...o,...a,stamp:()=>{e({timestamp:Math.floor(Date.now())})},reset:()=>e({...o}
1),setConfig:t=>{e(e=>({config:{...e.config,...t}}))},setPageData:t=>{e(e=>({...e,pageData:t}))},setCatalogData:t=>{e(e=>({...e,catalogData:t}))},setComponents:t=>e({components:t}),setAdminInfo:t=>{e(e=>({...e,showAdminInfo:t}))}})),s=(0,n.useRef)(l);return(0,i.jsx)(c.Provider,{value:s.current,children:t})},u=e=>{let t=(0,n.useContext)(c);if(!t)throw Error("usePageStore must be used within PageStoreContext");return(0,l.P)(t,e)}}}]);

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.