1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7909],{17909:(e,r,a)=>{"use strict";a.d(r,{U:()=>k});var n=a(12072),t=a(60004),o=a(59100),l=a(82726),s=a(10983),i=a(43207),c=a(25568),d=a(90471),h=a(86800),g=a(37630),b=a(60119),p=a(86263),u=a(55537),_=a(88088),m=a(35695);let B=function(e){return e.CONFIGURATORS="configurators",e}({}),y=(e,r,a="...")=>{if(!e||"string"!=typeof e||r<=0)return"";let n=Array.from(e),t=Array.from(a);if(n.length<=r)return e;let o=r-t.length;return o<=0?t.slice(0,r).join(""):n.slice(0,o).join("")+a},f=e=>e.split("-").filter(Boolean).map(e=>`${e[0]?.toUpperCase()}${e.slice(1)}`).join(" ");var x=a(35749),j=a.n(x),C=a(7976),N=a(10468),v=a(60072);let T=20,$=({resultsForText:e,query:r="",categoryNames:a,onClearFilters:n,maxLength:t=T,isBrandPage:o=!1})=>{let[s]=(0,i.B)(),{isFlagEnabled:c}=(0,C.h)(),d=c(N.yK),h=c(N.w_),g=d||!h?"default":"inverse";return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(_.E,{as:"span",size:"body-6",weight:o?"black":"bold",color:g,className:(0,m.A)(j().elementText,j().resultsForText),children:e}),r&&(0,v.jsx)(_.E,{as:"span",size:"body-6",weight:"black",color:g,className:(0,m.A)(j().elementText,j().queryText),title:r,children:y(r,t)}),a&&(0,v.jsxs)("div",{className:j().inCategoryLine,children:[(0,v.jsx)(_.E,{as:"span",size:"body-6",weight:"bold",className:j().elementText,children:s("common.in")}),(0,v.jsx)(_.E,{as:"span",className:j().categoryText,size:"body-6",weight:"black","data-testid":"category-names",title:a,children:y(a,t)}),n&&(0,v.jsx)(l.$,{icon:"cross","data-testid":"cross-icon-clear-filters",onClick:n,className:j().clearFiltersButton,"aria-label":s("catalog.categories.clearFilters"),variant:"ghost",title:s("catalog.categories.clearFilters"),children:(0,v.jsx)("span",{className:"sr-only",children:s("catalog.categories.clearFilters")})})]})]})};var O=a(22137),L=a.n(O);function w(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),a.push.apply(a,n)}return a}function F(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?w(Object(a),!0).forEach(function(r){(0,n.A)(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):w(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}let I=({brandImage:e,brandName:r,setHasImageError:a,hasImageError:n,className:t})=>n?null:(0,v.jsx)("div",{className:t,children:(0,v.jsx)(h._,{src:e,width:120,height:40,loading:"lazy",alt:r,className:L().heroBannerLogo,onError:()=>a(!0)})}),k=({brandImage:e,brandName:r,brandId:a,path:n,title:_,description:y,picture:x,isPreview:j,filters:T,data:O,isLoading:w,augmentedCategoriesIds:k,hasCmsComponents:E=!1,isComponentsPage:W=!1,setIsComponentsPage:H,isMerchandisedPage:R=!1,isMerchandisedCategoryPage:S=!1,isMerchandisedSeriesPage:z=!1,isConfiguratorPage:A=!1,contentId:P})=>{let[U]=(0,i.B)(),{0:D,1:q}=(0,t.useState)(!e),{query:G,asPath:M}=(0,s.useRouter)(),{isFlagEnabled:Q}=(0,C.h)(),{computeCmsImage:K}=(0,g.Cr)(j),Y=_?decodeURIComponent(_):"",V=Q(N.yK),Z=Q(N.hT)&&Q(N.Y7),J=x&&K(x,void 0,{},c.k.SevenByTwo),{clearFilters:X=()=>{},checkedFilters:ee={getFilters:()=>({category:[]})}}=T||{},{lastFilterLabel:er}=((e,r)=>{let a=e?.getFilters().category??[],n=(0,t.useMemo)(()=>a[a.length-1],[a]);return{lastFilterLabel:n?decodeURIComponent(r?.find(e=>e.cat_id===n)?.cat_name||""):"",filtersArr:a}})(ee,O?.facetResults?.category),ea=ee?.getFilters().category?.length>0;if(!r)return null;let en=Array.isArray(O?.categoryMap)?O.categoryMap:[],et=(ee?.getFilters().category||[]).map(e=>en.find(({cat_id:r})=>r===e.split("-").pop())?.cat_name).filter(Boolean).slice(-2).join(", "),eo=S&&en&&(en?.find(({cat_id:e})=>String(G?.category).split("-").pop()===e)?.crumb||"").split("/").filter(Boolean).map(e=>({id:e,title:en?.find(({cat_id:r})=>e===r)?.cat_name})).filter(e=>k?.includes(e.id)),el=S&&eo?.pop(),es={error:null,id:el?.id||null,title:el?.title||null,parents:eo},ei=Z&&a?a:r,ec=`${u.b.catalog.base}${u.b.catalog.brand}/${ei}`,ed=`${ec}${u.b.catalog.series}/${G?.series}`,eh=R&&G?.series&&G?.category,{configuratorBreadcrumbItems:eg,configuratorCurrentItem:eb}=(({path:e,isConfiguratorPage:r,brandName:a,decodedTitle:n,configuratorQuery:t,t:o})=>
1{let l=e?.replace(/^\/+/,"").split("/").filter(Boolean)??[],s=l.indexOf(B.CONFIGURATORS),i=s>0?l.slice(0,s):[],c=i.length>0?`/${i.join("/")}`:"",d=c?`${c}/${B.CONFIGURATORS}`:"",h=-1!==s?l[s+1]:void 0,g=!!t||!!h;return{configuratorBreadcrumbItems:r&&c?[{label:f(i[1]??a),href:c},...g&&d?[{label:o("breadcrumb.brands.configurator"),href:d}]:[]]:null,configuratorCurrentItem:r&&c?g?{label:n||f(h??""),href:h&&d?`${d}/${h}`:d}:{label:o("breadcrumb.brands.configurator"),href:d}:null}})({path:n,isConfiguratorPage:A,brandName:r,decodedTitle:Y,configuratorQuery:G?.configurator,t:U}),ep=(()=>{let e;if(eg)return eg;let a=[{label:U("breadcrumb.brands"),href:`${u.b.catalog.base}${u.b.catalog.brand}`},{label:Z?r:R?String(G?.brand):A?r:Y||r,href:ec}];if(A&&Y){if(G?.configurator){let e=M.split("/").slice(0,-1).join("/");a.push({label:U("breadcrumb.brands.configurator"),href:`${u.b.catalog.base}${e}`})}a.push({label:Y,href:M})}return eh&&a.push({label:G?.series,href:ed}),S&&es?.parents?.length>0&&a.push(...(e=es.parents,e.map(e=>({label:e.title,href:`${ec}${u.b.catalog.category}/${e.title.toLowerCase().split(" ").join("-").replace("/","%2F")}-${e.id}`})))),R&&a.push({label:Y,href:M}),a})(),eu=er&&!w?{label:er,href:M}:eb??ep.pop(),e_=!R&&ea&&!V,em=U(W?"brands.heroBanner.exploreProducts":R?S?"brands.heroBanner.exploreCategory":"brands.heroBanner.exploreSeries":"brands.heroBanner.exploreBrand"),eB=z||!G?.filters?.includes("category"),ey=j?{"data-cm-metadata":JSON.stringify([{_:{$Ref:"content/"+P}}])}:void 0;return(0,v.jsx)("div",{className:L().heroBanner,children:(0,v.jsxs)("div",{className:L().heroBannerContentWrapper,children:[(0,v.jsx)(d.T,{currentItem:eu,items:ep}),R&&!S&&(0,v.jsxs)("div",{className:L().heroBannerBrandCategoryImageLink,children:[(0,v.jsx)(I,{brandImage:e,brandName:r,setHasImageError:q,hasImageError:D,className:L().heroBannerCategoryLogoWrapper}),(0,v.jsx)(p.w,{href:`${u.b.catalog.brand}/${ei}`,size:"l",variant:"standalone-regular",children:U("brands.heroBanner.discoverBrandLink",{brandName:r})})]}),(0,v.jsxs)("div",F(F({className:L().heroBannerContent},ey),{},{children:[(0,v.jsxs)("div",{className:L().heroBannerHeadingWrapper,children:[(0,v.jsxs)("div",{className:L().heroBannerHeadingContainer,children:[(0,v.jsxs)("div",{className:L().heroBannerHeading,children:[(!R||S)&&(0,v.jsx)(I,{brandImage:e,brandName:r,setHasImageError:q,hasImageError:D,className:L().heroBannerLogoWrapper}),!R&&ea&&V?(0,v.jsx)("h1",{className:L().clearableCategoryHeading,children:(0,v.jsx)($,{resultsForText:r,categoryNames:et,onClearFilters:X,maxLength:60,isBrandPage:!0})}):(0,v.jsxs)("div",{className:(0,m.A)(e_&&L().heroBannerTitleWrapper),children:[(0,v.jsx)(o.D,{size:"body-6",as:"h1",weight:"black",className:L().heroBannerTitle,children:Y||r}),e_&&(0,v.jsx)(p.w,{href:`${u.b.catalog.brand}/${ei}`,size:"l",variant:"underlined",children:U("brands.heroBanner.discoverBrandLink",{brandName:r})})]})]}),er&&(0,v.jsx)(l.$,{onClick:X,variant:"underlined",children:`${U("brands.heroBanner.buttonLabel")} ${r}`})]}),y&&!ea&&(0,v.jsx)(b._,{descriptionText:y,hasMaxLines:!0,className:L().heroBannerDescription,textStyle:{color:"subtle"}}),E&&eB&&(0,v.jsx)(l.$,{variant:"secondary",onClick:()=>H?.(!W),className:L().heroBannerExploreButton,children:em})]}),J&&!ea&&(0,v.jsx)(h._,F({loading:"lazy",className:L().heroBannerImage},J))]}))]})})}},22137:e=>{e.exports={heroBanner:"brand-hero-banner_heroBanner__OyvnG",heroBannerContentWrapper:"brand-hero-banner_heroBannerContentWrapper__Vj9E5",heroBannerContent:"brand-hero-banner_heroBannerContent__3iEXl",heroBannerBrandCategoryImageLink:"brand-hero-banner_heroBannerBrandCategoryImageLink__Nqx99",heroBannerHeadingWrapper:"brand-hero-banner_heroBannerHeadingWrapper__d3NYG",heroBannerHeading:"brand-hero-banner_heroBannerHeading__Rtxyp",heroBannerCategoryLogoWrapper:"brand-hero-banner_heroBannerCategoryLogoWrapper__M2YKy",heroBannerTitle:"brand-hero-banner_heroBannerTitle__80wcb",clearableCategoryHeading:"brand-hero-banner_clearableCategoryHeading__FzL_S",heroBannerLogoWrapper:"brand-hero-banner_heroBannerLogoWrapper__Awzdh",heroBannerLogo:"brand-hero-banner_heroBannerLogo__uZgNk",heroBannerDe
1scription:"brand-hero-banner_heroBannerDescription__w_TOU",heroBannerImage:"brand-hero-banner_heroBannerImage__bWbQo",heroBannerExploreButton:"brand-hero-banner_heroBannerExploreButton__1PRTI",heroBannerHeadingContainer:"brand-hero-banner_heroBannerHeadingContainer__3Q23p",heroBannerTitleWrapper:"brand-hero-banner_heroBannerTitleWrapper__kQv9h"}},35749:e=>{e.exports={resultsForText:"clearable-category-heading_resultsForText__2qURm",queryText:"clearable-category-heading_queryText__mLLS6",inCategoryLine:"clearable-category-heading_inCategoryLine__3TZGz",elementText:"clearable-category-heading_elementText__14mV5",categoryText:"clearable-category-heading_categoryText__dUprW",clearFiltersButton:"clearable-category-heading_clearFiltersButton__vdTqc"}}}]);
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.