1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6659],{2303:(e,t,l)=>{l.d(t,{A:()=>n});var i=l(37876),s=l(32327),r=l(6805);let n=e=>{let{label:t,targetId:l}=e,n=l?"a":"button",a=(0,s.d)(r.o.ARIA_LABEL_GO_TO_CONTENT);return(0,i.jsx)(n,{...l&&{href:"#".concat(l)},className:"sr-only focus:not-sr-only focus:mb-2 focus:inline-block focus:px-4 focus:py-2 focus:underline",onClick:e=>{e.preventDefault();let t=l?document.getElementById(l):document.querySelector("main");if(t){null===t.getAttribute("tabIndex")?(t.setAttribute("tabIndex","-1"),t.focus(),t.addEventListener("blur",()=>{t.removeAttribute("tabIndex")},{once:!0})):t.focus();let e=document.createElement("span");e.setAttribute("role","alert"),e.setAttribute("aria-live","assertive"),e.className="sr-only",e.innerText="Navigated to ".concat(l),document.body.appendChild(e),setTimeout(()=>{document.body.removeChild(e)},2e3)}},children:(0,i.jsx)("span",{children:t||a})})}},13123:(e,t,l)=>{l.d(t,{A:()=>a});var i=l(37876),s=l(84955),r=l(92932),n=l(98690);let a=e=>{let{onClickHandler:t,label:l,disabled:a}=e,d=(0,r.Ny)(s.yR.GlobalFormFilterReset);return(0,i.jsx)(n.eC,{...a&&{disabled:a},size:"M",type:"secondary",label:null!=l?l:d,width:"100%",display:"block","data-testid":"al-reset-filter",onClick:t,focusBorderInside:!0})}},14725:(e,t,l)=>{l.d(t,{X:()=>a,r:()=>n});var i=l(37876),s=l(14232),r=l(45874);let n={root:null,rootMargin:"100px",threshold:[.4]},a=e=>{let{domElementType:t,listName:l,products:a,intersectConfig:d=n,isStatic:o=!1,children:c,...u}=e,p=(0,s.useRef)(null);return(0,r.V)({ref:p,listName:l,products:a,intersectConfig:d,isStatic:o}),(0,i.jsx)(t,{...u,ref:p,children:c})}},15320:(e,t,l)=>{l.d(t,{A:()=>j});var i=l(37876),s=l(17369),r=l(75423),n=l(9758);let a=e=>{let{errorMessage:t}=e;return(0,i.jsxs)("div",{"data-testid":"acp-errormessage",className:"!mt-3 flex items-center gap-x-2 text-warning",tabIndex:0,"aria-label":t,role:"alert",children:[(0,i.jsx)("div",{children:(0,i.jsx)(r.A,{size:"inherit",name:"triangle-with-exclamation-mark"})}),(0,i.jsx)("div",{children:(0,i.jsx)(s.A,{variant:n.Oo.COPYEXTRASMALL,children:t})})]})};var d=l(84955),o=l(77966),c=l(9362),u=l(82546),p=l(46582),m=l(92932),x=l(77720),v=l(96486),h=l(48023),f=l(41528),g=l(14232),b=l(37872);let j=e=>{let{template:t}=(0,c.H)(),[l,s]=(0,g.useState)("default"),{productPresentation:r}=(0,p.j)(),{validProductNumber:n,setValidProductNumber:j}=(0,u.DH)((0,b.k)(e=>({validProductNumber:e.validProductNumber,setValidProductNumber:e.setValidProductNumber}))),[y,N]=(0,g.useState)(e.selectedProductNumber||""),[w,A]=(0,g.useState)(!1),L=(0,m.mq)(d.XB.SerialNumberFilterNoResults),_=(0,m.mq)(d.XB.SerialNumberFilterInvalid),F=(0,m.mq)(d.XB.SerialInputLabel),k=(0,m.mq)(d.XB.SerialInputPlaceholder);(0,g.useEffect)(()=>{if(y)s((0,f.k)(y))},[y]);let C=()=>{let t=(0,h.u)(y).slice(0,9),l=(0,f.k)(t);s(l),A(!1),""===t?e.validationCallback(void 0):"success"===l&&e.validationCallback(t)},I=t===o.Z.AccessoryContainerPageHau,P=!e.productNumberReturnsResult&&!I&&y.length>0,S="error"===l||y&&!1===n,H="warning"===l,R=null==r?void 0:r.productAccessoryRatingPlateLink;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v.A,{"data-testid":"accessory-serialnumber-input-field",onLhChange:t=>{let l=t.detail.value.toString();j(!0),A(!1),N(l);let i=(0,h.u)(l).slice(0,9),r=(0,f.k)(i);s(r),"success"===r?e.validationCallback(i):""===i&&e.validationCallback(void 0)},onKeyDown:e=>{let t=/^[0-9]$/.test(e.key),l=/^[.\-\s]$/.test(e.key),i=["Backspace","Delete","Tab","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key),s=e.metaKey||e.ctrlKey;if("Enter"===e.key){C();return}if(t&&y.replace(/[^0-9]/g,"").length>=9){e.preventDefault();return}t||l||i||s||e.preventDefault()},onPaste:e=>{e.preventDefault(),e.stopPropagation();let t=e.clipboardData.getData("text");j(!0),A(!1),N(t.slice(0,12)),s("default")},onBlur:()=>{let e=(0,h.u)(y).slice(0,9);s((0,f.k)(e)),A(!1)},onSearch:C,label:F,placeholder:k,value:y,size:"M",status:w||S||P?"error":H?"warning":"success"===l?"success":"default",inputMode:"numeric",showRemoveIcon:!0,onReset:()=>{N(""),s("default"),A(!1),e.validationCallback(void 0)}}),(w||S||P||H)&&(0,i.jsx)(a,{errorMessage:w||H||S?_:P?L:e.errorMessage?e.errorMessage:""}),R&&(0,i.jsx)("div",{"data-testid":"accessory-serialnumber-description",children:(0,i.jsx)("div",{className:"relative h-full",children:(0,i.jsx)(x.A,{className:"mt-4",icon:"info-circle",link:R})})})]})}},16126:(e,t,l)=>{l.d(t,{A:()=>a});var i=l(37876),s=l(17369),r=l(9758),n=l(46582);let a=()=>{let{productPresentation:e}=(0,n.j)();
1return(null==e?void 0:e.productContentLegalNote)?(0,i.jsx)(s.A,{variant:r.Oo.COPYSMALLER,className:"mt-8 md:mt-10 xl:mt-17",html:null==e?void 0:e.productContentLegalNote}):(0,i.jsx)(i.Fragment,{})}},27390:(e,t,l)=>{l.d(t,{A:()=>n});var i=l(37876),s=l(9871),r=l(4856);let n=e=>e.isActive?(0,i.jsxs)(i.Fragment,{children:[e.children,(0,i.jsx)("div",{className:(0,r.x)("absolute inset-0 h-full w-full overflow-clip","z-content-30",e.useWhiteBackdrop&&"bg-[rgba(255,255,255,0.5)]"),children:(0,i.jsx)("div",{className:(0,r.x)("sticky top-[50vh] translate-x-[calc(50%-28px)]",e.spinnerClasses),children:(0,i.jsx)(s.A,{})})})]}):(0,i.jsx)(i.Fragment,{children:e.children})},28477:(e,t,l)=>{l.d(t,{A:()=>c});var i=l(37876),s=l(75423),r=l(9362),n=l(78482),a=l(4856),d=l(14232);let o={st_sticky_element_section:"Sticky Element Section",product_presentation:"Product Presentation",shop_configuration:"Shop Configuration",product_shopadvice:"Product Shopadvice",address_page_config:"Address Page Config",address_filter_config:"Address Filter Config",address_teaser_config:"Address Teaser Config"},c=()=>{var e,t;let{components:l}=(0,r.H)(),c=null==l?void 0:null===(e=l.config)||void 0===e?void 0:e.some(e=>e.previewId),[u,p]=(0,d.useState)(!1),m=(0,n.y)(),x=e=>{e&&window.TPP_SNAP.showEditDialog(e)};return m&&c?(0,i.jsxs)("div",{className:"fixed bottom-[10%] right-[2%] z-overlay-100 text-white",children:[(0,i.jsx)("div",{className:(0,a.x)("menu-btn relative z-overlay-200 flex h-[100px] w-[100px] cursor-pointer flex-col content-center justify-center rounded-full bg-warning px-5 py-3",u?"bg-transparent shadow-none":"shadow-grey hover:bg-ruby"),onClick:()=>{p(!u)},children:(0,i.jsx)(s.A,{name:u?"x":"wrench",size:62})}),(0,i.jsx)("div",{className:(0,a.x)("absolute bottom-0 right-0 w-0",u?"block min-w-[300px] opacity-100":"absolute bottom-[20px] right-[20px] hidden opacity-0"),children:(0,i.jsxs)("ul",{className:"menu-list rounded-custom w-full rounded-[3px_3px_33.5px_3px] bg-warning p-6 shadow-grey",children:[(0,i.jsx)("h6",{className:"mb-2",children:"Editable Config Sections:"}),null==l?void 0:null===(t=l.config)||void 0===t?void 0:t.map((e,t)=>{var l;return e.previewId&&(0,i.jsx)("li",{className:"cursor-pointer py-1 hover:underline",onClick:()=>x(e.previewId||""),children:o[null!==(l=e.component)&&void 0!==l?l:""]},t)})]})})]}):null}},33500:(e,t,l)=>{l.d(t,{A:()=>c});var i=l(37876),s=l(13123),r=l(84955),n=l(92932),a=l(98690);let d=e=>{let{amountResults:t,onClickHandler:l}=e,s=(0,n.Ny)(r.yR.FilterShowResults),d=void 0!==t?" ("+t+")":"";return(0,i.jsx)("div",{className:"mb-4 md:hidden",children:(0,i.jsx)(a.eC,{size:"M",type:"primary",label:s+d,width:"100%",display:"block",onClick:l,focusBorderInside:!0},"res"+d)})};var o=l(4856);let c=e=>{let{hasDivider:t=!0}=e;return(0,i.jsxs)("div",{className:(0,o.x)("mt-4 w-full",t&&"border-t-[1px] border-t-steel-400 pt-4"),children:[(0,i.jsx)(d,{amountResults:e.amountResults,onClickHandler:e.showResultsHandler}),(0,i.jsx)(s.A,{label:e.resetLabel,onClickHandler:e.resetHandler,disabled:e.isResetDisabled})]})}},36659:(e,t,l)=>{l.r(t),l.d(t,{default:()=>eA});var i=l(37876),s=l(85812),r=l(28477),n=l(24743),a=l(75423),d=l(2303),o=l(16797),c=l(84955),u=l(77966),p=l(9362),m=l(82546),x=l(46582),v=l(48840),h=l(49484),f=l(92932),g=l(33500),b=l(16499),j=l(83572),y=l(37549),N=l(57666),w=l(99649),A=l(90634),L=l(4391),_=l(4856),F=l(51856),k=l(70892),C=l(14232),I=l(37872);let P=e=>{let{isFilterHidden:t,children:l,hasNoHorizontalPadding:s,hasMultipleButtons:r,showPermanent:n,testId:a}=e,{updateIsFilterHidden:d,isAnyFilterSet:o,plpQuery:c,isFilterHiddenStore:p,lastClickedItemName:x,template:v}=(0,m.DH)((0,I.k)(e=>({updateIsFilterHidden:e.updateIsFilterHidden,isAnyFilterSet:e.isAnyFilterSet,plpQuery:e.plpQuery,isFilterHiddenStore:e.isFilterHidden,lastClickedItemName:e.lastClickedItemName,template:e.template}))),h=(0,C.useRef)(p),{modalRef:f,firstElement:g}=(0,L.b)(!t,void 0,h.current,x),{isMobileScreen:b}=(0,A.G)(),[j,y]=(0,C.useState)(!1);(0,C.useEffect)(()=>{if(!b&&!t)return;h.current=t;let e=e=>{"Escape"===e.code&&d(!0)},l=()=>y(!0);return window.addEventListener("lh_reset_all_filters_plp",l),window.addEventListener("keyup",e),()=>{window.removeEventListener("keyup",e),window.removeEventListener("lh_reset_all_filters_plp",l)}},[t,b,f,d]);let N=o();(0,C.useEffect)(()=>
1{if(j&&!N){var e,t,l;y(!1),g.current&&(0,F.p)(g.current),b?null==f||null===(e=f.current)||void 0===e||e.scrollTo(0,0):window.scrollTo(0,null!==(l=null==f?void 0:null===(t=f.current)||void 0===t?void 0:t.offsetTop)&&void 0!==l?l:0)}},[j,N,g,b,f,c.selectedFilters]);let w=(0,i.jsx)("div",{ref:f,className:(0,_.x)(t&&!n?"invisible":"block",!n&&"fixed left-0 top-0 z-overlay h-screen w-full overflow-auto",n&&"visible col-span-full mb-8 block","md:relative md:z-auto md:col-span-3 md:block md:h-auto md:w-auto md:overflow-visible","bg-steel-100 md:visible md:bg-transparent"),"data-testid":a,children:(0,i.jsx)("div",{className:(0,_.x)("bg-steel-100 py-4 md:mb-0 md:px-4",s&&"px-0",!s&&"px-5",r&&"mb-[128px]",!r&&!n&&"mb-16"),children:l})});return(0,i.jsx)(i.Fragment,{children:v===u.Z.AccessoryListPageHau?w:(0,i.jsxs)(i.Fragment,{children:[b&&(0,i.jsx)(k.A,{wrapperId:"modalElement",children:w}),!b&&w]})})};var S=l(72371),H=l(15320);let R=()=>{let{plpQuery:e,productNumberReturnsResult:t,productListQuery:l}=(0,m.DH)((0,I.k)(e=>({plpQuery:e.plpQuery,productNumberReturnsResult:e.productNumberReturnsResult,productListQuery:e.productListQuery})));return(0,i.jsx)("section",{className:"space-y-6","data-testid":"plp-filter-facets",children:(0,i.jsx)(H.A,{selectedProductNumber:e.selectedProductNumber,productNumberReturnsResult:t,validationCallback:t=>{l({...e,selectedProductNumber:t,pageIndex:1})}})})};var T=l(1919),E=l(17369),B=l(18847),D=l.n(B);let O={FTCheckboxList:D()(()=>l.e(457).then(l.bind(l,80457)),{loadableGenerated:{webpack:()=>[80457]}}),FTRadiobuttonList:D()(()=>l.e(3632).then(l.bind(l,51251)),{loadableGenerated:{webpack:()=>[51251]}}),FTRangeSlider:D()(()=>l.e(2281).then(l.bind(l,92281)),{loadableGenerated:{webpack:()=>[92281]}}),FTPriceRangeSlider:D()(()=>l.e(9950).then(l.bind(l,89950)),{loadableGenerated:{webpack:()=>[89950]}}),FTMultiselectDropdown:D()(()=>l.e(5218).then(l.bind(l,62837)),{loadableGenerated:{webpack:()=>[62837]}})},M={checkbox_facet_field:O.FTCheckboxList,text_checkbox_list_facet_field:O.FTCheckboxList,text_radio_facet_field:O.FTRadiobuttonList,numeric_radio_facet_field:O.FTRadiobuttonList,numeric_slider_facet_field:O.FTRangeSlider,price_slider_facet_field:O.FTPriceRangeSlider,text_checkbox_dropdown_facet_field:O.FTMultiselectDropdown};var z=l(9758),Q=l(98690),U=l(1803);let q=e=>{var t;let{facetId:l}=e,{productPresentation:s}=(0,x.j)(),r=null==s?void 0:null===(t=s.productContentFacetTeasers)||void 0===t?void 0:t.find(e=>e.identifier===l);return r?(0,i.jsx)("section",{"data-testid":"ft-container",className:"mb-8 mt-4",children:(0,i.jsxs)("div",{"data-testid":"ft-data",children:[(0,i.jsx)(E.A,{variant:z.Oo.COPYBOLD,children:null==r?void 0:r.headline}),(0,i.jsx)(U.A,{html:null==r?void 0:r.text,className:"style_copy"})]})}):null},Z=e=>{var t;let l=null!==(t=e.facetType)&&void 0!==t?t:"";return"numeric_slider_facet_field"===l&&"5985"===e.facetSourceId?"price_slider_facet_field":l},$=(e,t)=>{if("price_slider_facet_field"!==e&&"numeric_slider_facet_field"!==e){var l;return void 0===(null===(l=t.values)||void 0===l?void 0:l.find(e=>{var t;return(null!==(t=e.count)&&void 0!==t?t:0)>0}))}return"numeric_slider_facet_field"===e&&(!t.totalMax||!t.totalMin)},G=e=>{var t,l;let s=(0,f.$U)(c.qd.ListFilterFacetToolTipDescription),r=Z(e);return $(r,e)?(0,i.jsx)(i.Fragment,{}):(0,i.jsxs)("fieldset",{"data-testid":"facet-item",children:[(0,i.jsx)("legend",{children:(0,i.jsxs)("div",{className:"flex items-center gap-2 hyphens-auto break-words",children:[(0,i.jsx)("p",{className:"font-head text-h6",children:"numeric_slider_facet_field"===r&&e.unit?(null===(t=e.caption)||void 0===t?void 0:t.trim())+" ("+e.unit+")":null===(l=e.caption)||void 0===l?void 0:l.trim()}),e.tooltip&&(0,i.jsx)("div",{className:"cursor-pointer text-[1.5rem]",children:(0,i.jsx)("div",{className:"relative h-full w-full",children:(0,i.jsxs)(Q.hx,{useAbsolutePositioning:!0,children:[(0,i.jsx)(a.A,{size:"inherit",name:"info-circle"}),(0,i.jsxs)("div",{slot:"content",className:"w-[250px] space-y-2 px-3 py-2",children:[(0,i.jsx)("strong",{className:"font-head text-h6",children:s}),(0,i.jsx)(E.A,{variant:z.Oo.COPYSMALL,children:e.tooltip})]})]})})})]})}),M[r]?C.createElement(M[r],{...e}):(0,i.jsx)("p",{children:"FacetType not found"}),(0,i.jsx)(q,{facetId:e.facetId})]},e.facetId)};var V=l(9126),Y=l(94637);let X=e=>{var t,l,s;let r=(0,f.$U)(c.qd.ListFilterFacetToolTipDescription),n=(0,m.DH)(e=>e.isMainCategory),d=Z(e),o=null!==(s=e.facetId)&&void 0!==s?s:"",[u,p]=(0,C.useState)(!n||e.isMainCategory?[o]:[]);if($(d,e))return(0,i.jsx)(i.Fragment,{});let x="numeric_slider_facet_field"===d&&e.unit?(null===(t=e.caption)||void 0===t?void 0:t.trim())+" ("+e.unit+")":null===(l=e.caption)||void 0===l?void 0:l.trim(),v=(0,i.jsxs)("span",{className:"flex items-center gap-2 hyphens-auto break-words py-3",children:[(0,i.jsx)("span",{children:x}),e.tooltip&&(0,i.jsx)("span",{className:"relative cursor-pointer text-[1.5rem]",children:(0,i.jsxs)(Q.hx,{useAbsolutePositioning:!0,children:[(0,i.jsx)(a.A,{size:"inherit",name:"info-circle"}),(0,i.jsxs)("span",{slot:"content",className:"block w-[250px] space-y-2 px-3 py-2",children:[(0,i.jsx)("strong",{className:"font-head text-h6",children:r}),(0,i.jsx)(E.A,{variant:z.Oo.COPYSMALL,children:e.tooltip})]})]})})]});return(0,i.jsx)("div",{"data-testid":"facet-item",children:(0,i.jsx)(V.A,{value:u,onValueChange:p,variant:"white",breakpoint:"mobile",style:{"--pl-surface-default":"transparent"},children:(0,i.jsxs)(Y.A,{value:o,testId:"facet-item-accordion-".concat(o),label:v,className:n?void 0:"[&>svg]:hidden",children:[M[d]?C.createElement(M[d],{...e}):(0,i.jsx)("p",{children:"FacetType not found"}),(0,i.jsx)(q,{facetId:e.facetId})]})})},e.facetId)},W=e=>{var t,l;let{template:s}=(0,p.H)(),r=!!((null===(t=e.facets)||void 0===t?void 0:t.some(e=>{var t;return null==e?void 0:null===(t=e.values)||void 0===t?void 0:t.some(e=>0!==e.count)}))&&e.title),n=(0,v.d)(e=>e.unit),a=s===u.Z.ProductListPageHau,d=null===(l=e.facets)||void 0===l?void 0:l.filter(e=>e.metricFilterRelevance===n||e.metricFilterRelevance===T.Q.NONE),o=a?X:G;return d&&0!==d.length?(0,i.jsxs)("fieldset",{"data-testid":"facet-group",className:r?void 0:"!mt-1",children:[r&&(0,i.jsx)("legend",{className:"mb-4 hyphens-auto break-words font-head text-h5",children:e.title}),(0,i.jsx)("div",{className:a?"space-y-1":"space-y-4",children:null==d?void 0:d.map((e,t)=>{var l;return(0,i.jsx)(o,{...e},null!==(l=e.facetId)&&void 0!==l?l:""+t)})})]}):null},K=()=>{let e=(0,m.DH)(e=>e.facets);return(0,i.jsx)("section",{className:"space-y-6","data-testid":"plp-filter-facets",children:e.map((e,t)=>{var l;return(0,C.createElement)(W,{...e,key:t+(null!==(l=e.title)&&void 0!==l?l:"")}
1)})})};var J=l(82579),ee=l(99221),et=l(9833),el=l(27390),ei=l(16126),es=l(57684),er=l(14725),en=l(45874),ea=l(65629),ed=l(99653),eo=l(4243);let ec=()=>{var e;let{trackEvent:t}=(0,eo.z)(),l=(0,f.$U)(c.qd.ListSortLabel),r=(0,f.$U)(c.qd.ListSortByPim),n=(0,f.$U)(c.qd.ListSortByNew),a=(0,f.$U)(c.qd.ListSortByPriceAsc),d=(0,f.$U)(c.qd.ListSortByPriceDesc),o=[{label:r,value:s.cl.Initial},{label:n,value:s.cl.Newest},{label:a,value:s.cl.PriceAscending},{label:d,value:s.cl.PriceDescending}],{plpQuery:u,productListQuery:p,sortOptions:v}=(0,m.DH)((0,I.k)(e=>({plpQuery:e.plpQuery,productListQuery:e.productListQuery,sortOptions:e.sortOptions}))),{productPresentation:h}=(0,x.j)(),g=function(e,t,l){let i=[],r=e.filter(e=>null==t?void 0:t.includes(e));return l.forEach(e=>{(r.includes(e.value)||(null==t?void 0:t.includes(s.cl.Initial))&&e.value===s.cl.Initial)&&i.push(e)}),void 0!=t&&i.sort((e,l)=>t.indexOf(e.value)-t.indexOf(l.value)),i.sort()}(v,null==h?void 0:h.productPlpSortOrder,o);return(0,i.jsx)(i.Fragment,{children:g.length>1&&(0,i.jsx)(ea.A,{onLhSelect:e=>{var l,i;let r=function(e){return"string"==typeof e&&e in s.cl?s.cl[e]:s.cl.Initial}(null===(i=e.detail)||void 0===i?void 0:null===(l=i.selected)||void 0===l?void 0:l.value);r!==u.orderBy&&(t(ed.b.PLP_SORT,{sort:{sort_value:r}}),u.orderBy&&p({...u,pageIndex:1,orderBy:r}))},value:null===(e=g.find(e=>e.value==u.orderBy))||void 0===e?void 0:e.value,name:"orderBy",width:"auto","data-testid":"order-by-test-id",placeholder:l,closeOnScroll:!0,options:g})})};var eu=l(42353),ep=l(49231),em=l(40299),ex=l(82679);let ev=()=>{let{style:e}=(0,ep.d)(),{pageHeadline:t}=(0,p.H)(),l=(0,m.DH)(e=>e.products);return(0,i.jsx)(i.Fragment,{children:l.map(l=>(0,i.jsx)(eu.M,{product:l,trackingListName:" - "+t,children:(0,i.jsx)("div",{className:"mb-6 border-b border-steel-400 pb-4 md:pb-6",children:e===z.Qt.HAU?(0,i.jsx)(ex.A,{}):(0,i.jsx)(em.A,{})})},l.id))})},eh=e=>{let{scrollToTop:t}=e,{plpQuery:l,productListQuery:s,totalProducts:r,getMaxPage:n}=(0,m.DH)((0,I.k)(e=>({plpQuery:e.plpQuery,productListQuery:e.productListQuery,totalProducts:e.totalProducts,getMaxPage:e.getMaxPage}))),a=(0,f.Ny)(c.yR.GlobalResultHitsPerPageTitle),{url:d}=(0,p.H)(),o="".concat(d.split("?")[0]),{productPresentation:u}=(0,x.j)(),v=e=>{l.pageIndex!==e&&(s({...l,pageIndex:e}),t())};return(null==u?void 0:u.productDefaultPageSize)&&u.productDefaultPageSize>=r&&l.pageSize>=r?(0,i.jsx)(i.Fragment,{}):(0,i.jsx)("div",{className:"flex flex-col-reverse items-center justify-center gap-4 xl:flex-row xl:justify-between",children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex items-center gap-4 self-start",children:[(0,i.jsx)(ea.A,{testId:"plp-dropdown",onLhSelect:e=>{let i=e.detail.selected,r=Number(i.value);i&&r!==l.pageSize&&(s({...l,pageSize:r,pageIndex:1}),t())},value:l.pageSize.toString(),width:"6.2rem",closeOnScroll:!0,options:[{value:"10",label:"10"},{value:"25",label:"25"},{value:"50",label:"50"},{value:"100",label:"100"}]}),(0,i.jsx)(E.A,{variant:z.Oo.COPYSMALLER,children:a})]}),(0,i.jsx)("div",{className:"self-center md:self-start xl:self-stretch",children:(0,i.jsx)(Q.MR,{"data-testid":"plp-patternlibPagination",onLhChangeToPage:e=>v(e.detail),onLhButtonNext:()=>v(l.pageIndex+1),onLhButtonPrev:()=>v(l.pageIndex-1),onLhButtonFirst:()=>v(1),onLhButtonLast:()=>v(n()),lastPage:n(),currentPage:l.pageIndex,baseUrl:o,baseUrlTransformer:(e,t)=>0===t?e:e+"?p="+String(t+1)})})]})})},ef=()=>{let e=(0,m.DH)(e=>e.totalInNode),t=(0,f.$U)(c.qd.ListNoResultsTitle),l=(0,f.$U)(c.qd.ListNoResultsHint),s=(0,f.$U)(c.qd.ListNoResultsBoldTitle),r=t.replace("{0}","<strong>".concat(s,"</strong>"));return(0,i.jsxs)(E.A,{className:"pb-4",variant:z.Oo.COPY,children:[(0,i.jsx)("strong",{children:e})," ",(0,i.jsx)("span",{dangerouslySetInnerHTML:{__html:r}})," ",(0,i.jsx)("br",{}),l]})};var eg=l(75738);let eb=function(){let{locale:e}=(0,p.H)(),{totalProducts:t,getZeroIndexedPageIndex:l,pageSize:s}=(0,m.DH)((0,I.k)(e=>({totalProducts:e.totalProducts,getZeroIndexedPageIndex:e.getZeroIndexedPageIndex,pageSize:e.plpQuery.pageSize}))),r=s+l()*s,n=1+l()*s,a=t&&(r<t?r:t),d=(0,f.Ny)(c.yR.GlobalFormResultHitsInfo),o=t>0?d.replace("{0}",String(n)).replace("{1}",String(a)).replace("{2}",String((0,eg.ZV)(t,e))):d.slice(0,d.indexOf("{0}"))+t;return(0,i.jsx)(E.A,{variant:z.Oo.COPYMOBILESMALL,testId:"product-counter",children:o})},ej=e=>{let t=(0,v.d)(e=>e.showUnitSwitch),{plpQuery:l,productListQuery:s,products:r,facets:n,state:a,totalProducts:d,updateIsFilterHidden:o}=(0,m.DH)((0,I.k)(e=>({plpQuery:e.plpQuery,productListQuery:e.productListQuery,products:e.products,facets:e.facets,state:e.state,totalProducts:e.totalProducts,updateIsFilterHidden:e.updateIsFilterHidden}))),{template:c}=(0,p.H)(),x=(0,C.useRef)(null),h=(0,et.A)(x);(0,en.V)({ref:x,listName:"Product List Module",products:r,intersectConfig:{...er.r,threshold:[.1]}});let f=e=>{let t=[];n.map(i=>{var s;return null===(s=i.facets)||void 0===s?void 0:s.map(i=>{if("numeric_slider_facet_field"!==i.facetType&&(i.metricFilterRelevance===e||i.metricFilterRelevance===T.Q.NONE)){var s;
1null===(s=i.values)||void 0===s||s.forEach(e=>{e.id&&l.selectedFilters.includes(e.id.toString())&&t.push(e.id.toString())})}else"numeric_slider_facet_field"===i.facetType&&i.facetId&&l.selectedFilters.includes(i.facetId)&&(i.metricFilterRelevance===e||i.metricFilterRelevance===T.Q.NONE)&&t.push(i.facetId)})}),s({...l,selectedFilters:t})};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:(0,_.x)(e.className,"relative outline-none"),"data-testid":"plp-results",id:"product-list",ref:x,children:[t&&c!==u.Z.AccessoryListPageHau&&(0,i.jsx)("div",{className:"mb-6 hidden justify-end md:flex xl:mb-10",children:(0,i.jsx)(J.A,{additionalOnSwitchHandler:f})}),(0,i.jsxs)(el.A,{useWhiteBackdrop:!0,isActive:a!==ee.c.DONE,spinnerClasses:"pb-[200px]",children:[e.showMobileListFilterButton&&(0,i.jsx)(es.A,{updateIsFilterHidden:o}),t&&(0,i.jsx)("div",{className:"mb-4 flex justify-end md:hidden",children:(0,i.jsx)(J.A,{additionalOnSwitchHandler:f})}),(0,i.jsxs)("div",{className:"mb-6 border-b border-b-steel-400 pb-4 md:flex md:items-center md:justify-between md:pb-2","data-testid":"test-label-result",children:[(0,i.jsx)(eb,{}),d>0&&(0,i.jsx)(ec,{})]}),d>0?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ev,{}),(0,i.jsx)(eh,{scrollToTop:h})]}):(0,i.jsx)(ef,{})]})]}),(0,i.jsx)("div",{className:"col-span-full",children:d>0&&(0,i.jsx)(ei.A,{})})]})},ey=()=>{let e=(0,f.$U)(c.qd.ListFilterTitel);return(0,i.jsx)("div",{className:"mb-8 flex justify-between md:hidden",children:(0,i.jsx)("h3",{children:e})})},eN=()=>{let e=(0,f.mq)(c.XB.FilterHeadline);return(0,i.jsx)("div",{className:"mb-5 flex justify-between md:mb-4",children:(0,i.jsx)("strong",{className:"font-head text-h6",children:e})})},ew=()=>{let e=(0,m.DH)(e=>e.updateIsFilterHidden);return(0,i.jsx)("button",{className:"focus-outline absolute right-5 top-6 md:hidden",onClick:()=>e(!0),children:(0,i.jsx)(a.A,{name:"x",size:24})})},eA=()=>{let{components:e,template:t,pageHeadline:l}=(0,p.H)(),{plpQuery:a,productListQuery:A,updateClientsideURL:L,facets:F,isFilterHidden:k,updateIsFilterHidden:H,totalProducts:T,isAnyFilterSet:E,products:B,setLastClickedItemName:D}=(0,m.DH)((0,I.k)(e=>({plpQuery:e.plpQuery,productListQuery:e.productListQuery,updateClientsideURL:e.updateClientsideURL,facets:e.facets,isFilterHidden:e.isFilterHidden,updateIsFilterHidden:e.updateIsFilterHidden,totalProducts:e.totalProducts,isAnyFilterSet:e.isAnyFilterSet,products:e.products,setLastClickedItemName:e.setLastClickedItemName}))),O=(0,f.AC)(c.pE.SkipFilter),M=()=>{A({...a,selectedFilters:[],pageIndex:1}),D(""),dispatchEvent(new CustomEvent("lh_reset_all_filters_plp"))},z=(0,C.useCallback)(()=>{var e;let t=new URLSearchParams(window.location.search),l=Number(t.get("p"))||0,i=(null===(e=t.get("filter"))||void 0===e?void 0:e.split(";"))||[],r=Number(t.get("ps"))||10,n=t.get("orderBy")||s.cl.Initial;A({...a,pageIndex:l,selectedFilters:i,pageSize:r,orderBy:s.cl[n]},{addToHistory:!1})},[a,A]);(0,h.G)(z),(0,C.useEffect)(()=>{let t=(0,S.u)(null==e?void 0:e.config,o.M.product_presentation);L({...a},null==t?void 0:t.productDefaultPageSize)},[null==e?void 0:e.config,a,L]);let Q=F&&F.length>0;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.A,{}),(0,i.jsx)(r.A,{}),(0,i.jsxs)("main",{children:[(0,i.jsx)(j.A,{}),l&&(0,i.jsx)("div",{className:"xl:content-container content-container-padding",id:"main-content",tabIndex:-1,children:(0,i.jsx)(n.A,{text:l,className:"mb-8 md:mb-10 xl:mb-16"})}),!l&&(0,i.jsx)("div",{id:"main-content",tabIndex:-1}),(0,i.jsx)(w.A,{slot:w.D.ContentTop,className:"mb-8 w-full md:mb-10 xl:mb-16"}),(0,i.jsx)(x.B,{configurations:null==e?void 0:e.config,children:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"xl:content-container content-container-padding w-full",children:[(0,i.jsx)(d.A,{label:O,targetId:"product-list"}),(0,i.jsx)("div",{className:"lh-grid w-full","data-testid":"product-list-page-filters-and-products",children:(0,i.jsxs)(v.n,{configurations:null==e?void 0:e.config,products:B,children:[t===u.Z.AccessoryListPageHau&&(0,i.jsxs)(P,{isFilterHidden:k,testId:"plp-filter",showPermanent:!0,children:[(0,i.jsx)(eN,{}),(0,i.jsx)(R,{})]}),t===u.Z.ProductListPageHau&&Q&&(0,i.jsx)(P,{isFilterHidden:k,testId:"plp-filter",children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ey,{}),(0,i.jsx)(K,{}),(0,i.jsx)(g.A,{hasDivider:!1,amountResults:T,showResultsHandler:()=>H(!0),resetHandler:M,isResetDisabled:!E()}),(0,i.jsx)(ew,{})]})}),(0,i.jsxs)(i.Fragment,{children:[t===u.Z.ProductListPage&&Q&&(0,i.jsx)(P,{isFilterHidden:k,testId:"plp-filter",children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ey,{}),(0,i.jsx)(K,{}),(0,i.jsx)(g.A,{amountResults:T,showResultsHandler:()=>H(!0),resetHandler:M,isResetDisabled:!E()}),(0,i.jsx)(ew,{})]})}),(0,i.jsx)(ej,{className:(0,_.x)(Q||t===u.Z.ProductListPageHau||t===u.Z.AccessoryListPageHau?"col-span-4 md:col-span-5 xl:col-span-9":"col-span-full"),showMobileListFilterButton:Q||t===u.Z.ProductListPageHau})]})]})})]})})}),(0,i.jsx)("div",{className:"mt-8 w-full md:mt-10 xl:mt-16",children:(0,i.jsx)(w.A,{slot:w.D.ContentBottom})})]}),(0,i.jsx)(b.A,{}),(0,i.jsx)(y.A,{})]})}},41528:(e,t,l)=>{l.d(t,{A:()=>r,k:()=>s});var i=l(48023);let s=e=>{let t=(0,i.u)(e);return 0===t.length?0===e.trim().length?"default":"error":t.length>0&&t.length<9?"warning":9===t.length?"success":"error"},r=e=>"success"===s(e)},45874:(e,t,l)=>{l.d(t,{V:()=>c});var i=l(99653),s=l(14232),r=l(42135),n=l(14725),a=l(74003),d=l(70626),o=l(4243);let c=e=>{let{ref:t,intersectConfig:l=n.r,listName:c="",products:u,isStatic:p=!1}=e,m=(0,r.BL)({...l,freezeOnceVisible:!0}),{trackEvent:x}=(0,o.z)();(0,s.useEffect)(()=>{m.ref(t.current)},[t,m]);let v=(0,s.useMemo)(()=>(0,a.PB)(u,c,p),[u,c,p]);(0,s.useEffect)(()=>
1{!0===m.isIntersecting&&v&&((0,d.Q)(),x(i.b.ITEM_LIST_VIEW,v))},[m.isIntersecting,v,x])}},49484:(e,t,l)=>{l.d(t,{G:()=>s});var i=l(14232);function s(e){(0,i.useEffect)(()=>(window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}),[e])}},57684:(e,t,l)=>{l.d(t,{A:()=>p});var i=l(37876),s=l(75423),r=l(84955),n=l(9362),a=l(92932),d=l(98690),o=l(4856),c=l(95091),u=l(42135);let p=e=>{var t,l;let{updateIsFilterHidden:p,testId:m}=e,{template:x}=(0,n.H)(),v=(0,a.AC)(r.pE.ListFilterButton),h=(0,u.BL)({rootMargin:"-1px 0px 0px 0px",threshold:[1]}),f=!h.isIntersecting&&(null!==(l=null===(t=h.entry)||void 0===t?void 0:t.boundingClientRect.top)&&void 0!==l?l:1)<=0;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:(0,o.x)((0,c.m)(x)?"xl:content-container":"content-container content-container-padding","sticky top-0 z-content-sticky-10 bg-white py-4 md:hidden"),ref:h.ref,"data-testid":m,children:[(0,i.jsx)(d.eC,{type:"secondary",label:v,width:"100%",display:"block",iconPosition:"left",onClick:()=>p(!1),focusBorderInside:!0,className:"relative z-content",children:(0,i.jsx)(s.A,{useIconSlot:!0,size:24,name:"settings"})}),f&&(0,i.jsx)("div",{className:(0,o.x)("fixed left-0 right-0 top-0 h-20",f?"box-shadow-bottom duration-400 transition-shadow ease-in":"")})]})})}},65629:(e,t,l)=>{l.d(t,{A:()=>n});var i=l(37876),s=l(98690),r=l(42135);let n=e=>{let t=(0,r.DE)(),l=e.width?{width:e.width}:void 0;return t?(0,i.jsx)("div",{className:"h-[40px]",style:l,children:(0,i.jsx)(s.WW,{"data-testid":e.testId,value:e.value,name:e.name,size:"small",...e.width&&{width:e.width},...e.placeholder&&{placeholder:e.placeholder},...e.closeOnScroll&&{closeOnScroll:e.closeOnScroll},...e.onLhSelect&&{onLhSelect:e.onLhSelect},children:e.options.map(e=>(0,i.jsx)(s.Lz,{value:e.value,children:e.label},e.value))})}):(0,i.jsx)("div",{className:"h-[40px]",style:l})}},92183:(e,t,l)=>{l.d(t,{A:()=>o});var i=l(37876),s=l(75423),r=l(9362),n=l(78482),a=l(98690),d=l(15911);let o=e=>{let{slot:t}=e,{previewId:l}=(0,r.H)();return(0,n.y)()&&(0,i.jsx)("div",{className:"flex justify-center py-8",children:(0,i.jsx)(a.eC,{iconPosition:"left",label:"Add section to "+t,type:"warning",onClick:()=>{l&&(0,d.Bn)(t,l)},children:(0,i.jsx)(s.A,{useIconSlot:!0,name:"plus",size:24})})})}},99649:(e,t,l)=>{l.d(t,{A:()=>h,D:()=>p});var i=l(37876),s=l(14232),r=l(92183),n=l(77966),a=l(9362),d=l(56127),o=l(78482),c=l(28913),u=l(4856),p=function(e){return e[e.Stage=0]="Stage",e[e.Content=1]="Content",e[e.ContentTop=2]="ContentTop",e[e.ContentMiddle=3]="ContentMiddle",e[e.ContentBottom=4]="ContentBottom",e[e.ContentFooter=5]="ContentFooter",e[e.ContentNoResults=6]="ContentNoResults",e}({});let m={0:"stage",1:"content",2:"contentTop",3:"contentMiddle",4:"contentBottom",5:"contentFooter",6:"contentNoResults"},x={0:"stage",1:"content",2:"content_top",3:"content_middle",4:"content_bottom",5:"content_footer",6:"content_no_results"},v=e=>{let{slot:t,itemcount:l,children:s}=e,n=(0,o.y)();return 0===l&&n?(0,i.jsx)(r.A,{slot:x[t]}):s},h=e=>{var t,l;let{slot:r,className:p}=e,{components:x,template:h,pageAnimateToggle:f,isRemoteProject:g}=(0,a.H)(),{isContentStagingStage:b}=(0,d.A)(),j=(0,o.y)(),y=(0,s.useRef)(null),N=[];Object.entries(x||{}).forEach(e=>{let[t,l]=e;t===m[r]&&(N=l)});let w=e=>{if(e){let t=document.createElement("div");t.classList.add("restriction-notice"),t.innerHTML="This module has restrictions.",e.style.position="relative",e.appendChild(t)}},A=e=>{if(e){e.classList.add("restricted-module");let t=e.getElementsByClassName("restriction-notice").item(0);t.classList.add("restriction-notice-active"),t.innerHTML="<strong>This module is restricted.</strong>"}};return(0,s.useEffect)(()=>{if(b&&!g&&y.current){let a=y.current.children;for(let d=0;d<a.length;d++){var e,t,l,i,s,r,n;if(j&&N[d].restrictions){w(a.item(d));let n=(null===(e=N[d].restrictions)||void 0===e?void 0:e.mode)==="all"&&(null===(l=N[d].restrictions)||void 0===l?void 0:null===(t=l.rules)||void 0===t?void 0:t.some(e=>!e.isComponentActive)),o=(null===(i=N[d].restrictions)||void 0===i?void 0:i.mode)==="any"&&(null===(r=N[d].restrictions)||void 0===r?void 0:null===(s=r.rules)||void 0===s?void 0:s.some(e=>e.isComponentActive));(n||o)&&A(a.item(d))}let o=a.item(d);"auto"===o.style.minHeight&&(o.style.minHeight="32px");let c=null==N?void 0:N[d].previewId;c&&(null===(n=a.item(d))||void 0===n||n.setAttribute("data-preview-id",c))}}}
1),(0,i.jsx)(v,{slot:r,itemcount:(null==N?void 0:N.length)||0,children:(0,i.jsx)(i.Fragment,{children:N.length>0?(0,i.jsx)("div",{className:(0,u.x)("modulespacer",h===n.Z.MagazineContentPage&&f?"magazine-animation-identifier":"",p),ref:y,children:null==N?void 0:N.map((e,t)=>(0,s.createElement)(c.p,{moduleIndex:t,moduleCount:N.length,slot:m[r],...e,key:t}))},"k"+(null!==(l=null===(t=y.current)||void 0===t?void 0:t.offsetTop)&&void 0!==l?l:"")):(0,i.jsx)(i.Fragment,{})})})}}}]);
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.