PageSourceSearch

https://www.haier-europe.com/fr_BE/component---src-templates-page-cross-line-js-559c7b93fcb23cfb56b0.js

js haier-europe.com collected 2026-09-24 17:40:17 UTC 24,996 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkgatsby_haier=self.webpackChunkgatsby_haier||[]).push([[15],{48827:function(e,l,t){t.r(l),t.d(l,{Head:function(){return re},default:function(){return ne}});t(33792);var r=t(67294),n=t(7008),i=t(9357),a=t(54744),o=t(42982),s=t(47500),c=t(11212),u=t.n(c),d=t(94184),m=t.n(d),p=t(40763),g=t(44512),v=t(12458),b=t(43099),f=t(36463),y=t(75924),h=t(75874),_=t(135),E=t(40359),P=t(11975),k=t(58455),N=t.n(k),M=t(8012),I=t(58822),F=t(21578),L=t(11006),C=t(77610),x=t(3040),w=t.n(x),S=t(96584),T=t.n(S),Z=t(43770),A=t(71364),B=t(70405),R=t(83450),O=t(69939),j=t(10196);const z=["price_asc","price_desc","priority_per_price"];var H=e=>{var l,t;let{pageCrossLine:n,products:i,config:a,hasHero:c,location:d,bannerPromoCM:k,className:x,categoryModule:S}=e;const{pclTitle:H,pclIntroBefore:U,pclIntroAfter:V,order:W,filterMagento:D}=n,{productIds:G,toggleProduct:q}=(0,r.useContext)(v.Z),{labelManagerLabels:Q,site:K,config:{currency:X}}=(0,s.useStaticQuery)("2000466498"),J=(0,r.useCallback)((e=>q(e.currentTarget.name)),[q]),{0:Y,1:$}=(0,r.useState)(!1),ee=(0,r.useCallback)((()=>$((e=>!e))),[]),{0:le,1:te}=(0,r.useState)(!1),re=(0,r.useCallback)((()=>te(!0)),[]),ne=(0,r.useCallback)((()=>te(!1)),[]);(0,b.Z)(le);const{0:ie,1:ae}=(0,r.useState)(!1),oe=(0,r.useMemo)((()=>null==i?void 0:i.map((e=>e.key_prod))),[i]),se=(0,y.Z)(oe,i),ce=(0,r.useMemo)((()=>{var e;const l={priority:{label:Q.priority,value:"priority"},product_name:{label:Q.nameProductListOrd,value:"product_name"},date_rt:{label:Q.dateProductListOrd,value:"date_rt"},price_asc:{label:Q.priceAsc,value:"price_asc"},price_desc:{label:Q.priceDesc,value:"price_desc"},priority_per_price:{label:Q.priorityPerPrice,value:"priority_per_price"}};return null!=W&&W.length?(null==W||null===(e=W.map((e=>l[e])))||void 0===e?void 0:e.filter(Boolean))||[]:(0,o.Z)(Object.values(l))}),[Q,W]),ue=(0,r.useMemo)((()=>0!==(null==se?void 0:se.size)&&se?ce:ce.filter((e=>!z.includes(e.value)))),[ce,se]),[de,me]=(0,f.Z)(d),{data:pe,isLoading:ge}=(0,O.i)(!0,null==de?void 0:de.compatibleSku),ve=ue.find((e=>e.value===de.sort))?de.sort:null==ue||null===(l=ue[0])||void 0===l?void 0:l.value,be=z.includes(null==ce||null===(t=ce[0])||void 0===t?void 0:t.value)||z.includes(ve),fe=((null==D?void 0:D.length)||be)&&!se||ge,ye=(0,r.useMemo)((()=>null!=D&&D.length||be?se?D.includes("priceSpecial")?i.filter((e=>{var l,t,r,n,i,a,o,s,c,u,d,m,p,g;return(null===(l=se.get(e.key_prod))||void 0===l||null===(t=l.sellingPrice)||void 0===t?void 0:t.value)&&((null===(r=se.get(e.key_prod))||void 0===r||null===(n=r.omnibusPrice)||void 0===n?void 0:n.value)&&(null===(i=se.get(e.key_prod))||void 0===i||null===(a=i.sellingPrice)||void 0===a?void 0:a.value)<(null===(o=se.get(e.key_prod))||void 0===o||null===(s=o.omnibusPrice)||void 0===s?void 0:s.value)||!(null!==(c=se.get(e.key_prod))&&void 0!==c&&null!==(u=c.omnibusPrice)&&void 0!==u&&u.value)&&(null===(d=se.get(e.key_prod))||void 0===d||null===(m=d.sellingPrice)||void 0===m?void 0:m.value)<(null===(p=se.get(e.key_prod))||void 0===p||null===(g=p.msrpPrice)||void 0===g?void 0:g.value))})):D.includes("inStock")?i.filter((e=>se.has(e.key_prod))):D.includes("inStock")&&D.includes("priceSpecial")?i.filter((e=>{var l,t,r,n,i,a,o,s,c,u,d,m,p,g;return(null===(l=se.get(e.key_prod))||void 0===l||null===(t=l.sellingPrice)||void 0===t?void 0:t.value)&&((null===(r=se.get(e.key_prod))||void 0===r||null===(n=r.omnibusPrice)||void 0===n?void 0:n.value)&&(null===(i=se.get(e.key_prod))||void 0===i||null===(a=i.sellingPrice)||void 0===a?void 0:a.value)<(null===(o=se.get(e.key_prod))||void 0===o||null===(s=o.omnibusPrice)||void 0===s?void 0:s.value)||!(null!==(c=se.get(e.key_prod))&&void 0!==c&&null!==(u=c.omnibusPrice)&&void 0!==u&&u.value)&&(null===(d=se.get(e.key_prod))||void 0===d||null===(m=d.sellingPrice)||void 0===m?void 0:m.value)<(null===(p=se.get(e.key_prod))||void 0===p||null===(g=p.msrpPrice)||void 0===g?void 0:g.value))})):i:[]:i),[i,D,se,be]),he=(0,r.useMemo)((()=>{const e=(e,l)=>{var t,r,n,i;const a=null===(t=se.get(e.key_prod))||void 0===t||null===(r=t.sellingPrice)||void 0===r?void 0:r.value,o=null===(n=se.get(l.key_prod))||void 0===n||null===(i=n.sellingPrice)||void 0===i?void 0:i.value;return a===o?0:a<o?-1:1};return{product_name:(e,l)=>e.productName<l.productName?-1:1,date_rt:(e,l)=>e.date_rt_ISO<l.date_rt_ISO?1:-1,priority:(e,l)=>{const t=null==se?void 0:se.has(e.key_prod);if(t!==(null==se?void 0:se.has(l.key_prod)))return t?-1:1;const r=e.productPriority?parseInt(e.productPriority):0,n=l.productPriority?parseInt(l.productPriority):0;if(r!==n)return r>n?-1:1;if(!t)return 0;const i=se.get(e.key_prod),a=se.get(l.key_prod);return i===a?0:i<a?-1:1},price_asc:(l,t)=>{const r=se.has(l.key_prod);return r!==se.has(t.key_prod)?r?-1:1:e(l,t)},price_desc:(l,t)=>{const r=se.has(l.key_prod);return r!==se.has(t.key_prod)?r?-1:1:-e(l,t)},priority_per_price:(e,l)=>{const t=se.has(e.key_prod),r=se.has(l.key_prod),n=e.productPriority?parseInt(e.productPriority):0,i=l.productPriority?parseInt(l.productPriority):0;return t!==r?t?-1:1:t===r?n===i?0:n>i?-1:1:void 0}}}),[se]),_e=(0,r.useMemo)((()=>{const e=new Map,l=[];for(const t of ye)e.has(t.pageLine.liferayFields.title)||(e.set(t.pageLine.liferayFields.title,!0),l.push(t.pageLine));return l}),[ye]),Ee=de.category,Pe=(0,r.useMemo)((()=>{const e=e=>l=>({...l,values:"compatibility"===l.id?l.values:l.values.filter((t=>e.some((e=>{const r=e.attributesMap[l.id];return r&&(Array.isArray(r.fieldValue)?r.fieldValue.includes(t):""+r.fieldValue===t||r.fieldBoolean===t)}))))});if(1===(null==_e?void 0:_e.length)){const l=ye.filter((e=>e.pageLine.liferayFields.title===_e[0].liferayFields.title));return _e[0].computedFilters.map(e(l)).filter((e=>e.values.length>1))}const l=Ee&&!Array.isArray(Ee)?_e.find((e=>e.liferayFields.title===Ee)):null,t={id:"category",name:Q.category,type:"PILLS",values:_e.map((e=>
1e.liferayFields.title)).filter(Boolean),hashMap:Q.category};if(l){const r=ye.filter((e=>e.pageLine.liferayFields.title===l.liferayFields.title));return[t].concat(l.computedFilters.map(e(r)).filter((e=>e.values.length>1)))}return[t]}),[Q,_e,Ee,ye]),ke=(0,r.useMemo)((()=>{const e=[];return de.price&&e.push({id:"price",current:de.price,values:["true","false"]}),de.prices&&e.push({id:"prices",current:de.prices,values:se?Object.values(se).map((e=>{var l;return null==e||null===(l=e.sellingPrice)||void 0===l?void 0:l.value})).filter(Boolean):[]}),e.concat(Pe.map((e=>({...e,name:"compatibility"===e.id?Q.productCategory:e.name,current:de[e.id]}))))}),[de,Pe,se,Q.productCategory]),Ne=(0,r.useCallback)((()=>{const e=Object.fromEntries(Object.entries(de).filter((e=>{let[l]=e;return!(["price","prices"].includes(l)||null!=Pe&&Pe.some((e=>e.id===l)))})));me(e),ne();const l=new CustomEvent("ClearFilter",{detail:{}});document.dispatchEvent(l)}),[de,me,ne,Pe]),Me=ke.some((e=>void 0!==e.current)),Ie=(0,r.useMemo)((()=>ke.reduce(((e,l)=>(e[l.id]=["category"].includes(l.id)?l.values:(0,C.e)(l,ye,ke,de,se,pe),e)),{})),[ke,ye,de,se,pe]),Fe=(0,r.useMemo)((()=>ke?ye.filter((e=>(0,C.v)(e,ke,se,pe))):ye),[ye,ke,se,pe]),Le=(0,r.useCallback)((e=>{const{name:l,checked:t}=e.target,r=e.target.getAttribute("data-facet"),n=Pe.find((e=>e.id===r)),i="category"===r;if(!1===l){const e={...de};delete e[r],me(e)}else if(i){const e=de[r],t=e?Array.isArray(e)?e:[e]:[],n=t.includes(l)?t.filter((e=>e!==l)):t.concat(l);if(n.length){const e=n.length>1?Object.fromEntries(Object.entries(de).filter((e=>{let[l]=e;return["price","prices"].includes(l)}))):de;me({...e,[r]:n.length>1?n:n[0]})}else{const e={...de};delete e[r],me(e)}}else{let e=l;if(void 0!==t&&de[r])if(Array.isArray(de[r]))e=t?de[r].filter((e=>e!==l)).concat(l):de[r].filter((e=>e!==l));else{if(de[r]===l&&!t){const e={...de};return delete e[r],void me(e)}e=[de[r]],e=t?e.filter((e=>e!==l)).concat(l):e.filter((e=>e!==l))}if("RANGE"===n.type){const l=n.values?(0,o.Z)(n.values).sort(((e,l)=>Number(e)-Number(l))):n.values,t=l[0],r=l[l.length-1],[i,a]=e;e=Number(i)===Number(t)&&Number(a)===Number(r)?null:e}const i={...de};null===e?(delete i[r],me(i)):me({...i,[r]:e})}}),[de,me,Pe]),Ce=(0,r.useCallback)((e=>{const{name:l}=e.target,t={...de};delete t[l],me(t)}),[de,me]),xe=(0,r.useCallback)((e=>{e?me({...de,price:!0}):(delete de.price,me(de))}),[de,me]),we=(0,r.useCallback)((e=>me({...de,sort:e.target.value})),[de,me]),Se=(0,r.useMemo)((()=>{const e=Fe.slice(0),l=he[ve];return l?e.sort(l):e}),[Fe,ve,he]),Te=(0,R.Z)(991)?15:30,Ze=parseInt(de.page),Ae=isNaN(Ze)||Ze<1||Ze>Math.ceil(Se/15)?1:Ze,Be=(0,r.useMemo)((()=>{const e=Se.slice(0,Ae*Te);return se?e.map((e=>{const l=se.get(e.key_prod);return{...e,msrpPrice:(null==l?void 0:l.msrpPrice)||null,sellingPrice:(null==l?void 0:l.sellingPrice)||null,omnibusPrice:(null==l?void 0:l.omnibusPrice)||null,availableForSale:null==l?void 0:l.availableForSale,shopLink:(null==l?void 0:l.shopLink)||(null==e?void 0:e.shopLink)||null,special_from_date:null==l?void 0:l.special_from_date,special_to_date:null==l?void 0:l.special_to_date,contributoRaee:null!=l&&l.contributo_raee?l.contributo_raee:null}})):e}),[Se,Ae,se,Te]),Re=Se.length>Be.length,Oe=(0,r.useCallback)((()=>me({...de,page:Ae+1})),[de,Ae,me]),je=(0,r.useMemo)((()=>{var e,l;return null!=Be&&Be.length?{"@context":"http://schema.org/",numberOfItems:Be.length,"@type":"ItemList",itemListElement:Be.map(((e,l)=>({position:l+1,"@type":"ListItem",url:"https://www.haier-europe.com"+(0,s.withPrefix)("/"+[e.pageLine.slug.startsWith("/")?e.pageLine.slug.substring(1):e.pageLine.slug,e.key_prod,e.productName.toLowerCase()].map(u()).join("/"))+"/"}))),url:"https://www.haier-europe.com"+(0,s.withPrefix)((0,I.normalizeRelativePath)(null===(e=Be[0])||void 0===e||null===(l=e.pageLine)||void 0===l?void 0:l.slug))}:null}),[Be]),{0:ze,1:He}=(0,r.useState)(0);(0,r.useEffect)((()=>{if((!Z.RX||se)&&ze<Ae){const e=15*ze;(0,h.Kn)(Be.slice(e),"Product listing page cross"),He(Ae)}}),[Be,Ae,se,ze]);const Ue=(0,r.useMemo)((()=>{const e=ye.map((e=>e.key_prod));return null!=se&&se.size?(0,o.Z)(se.values()).filter((l=>e.includes(l.sku))).map((e=>{var l;return null===(l=e.sellingPrice)||void 0===l?void 0:l.value})).sort(((e,l)=>e-l)):[]}),[se,ye]),Ve=(0,r.useMemo)((()=>null!=se&&se.size?Fe.map((e=>
1se.get(e.key_prod))).filter(Boolean).map((e=>{var l;return null===(l=e.sellingPrice)||void 0===l?void 0:l.value})).filter(Boolean).sort(((e,l)=>e-l)):[]),[se,Fe]),We=!!de.prices||"true"===de.price,De=(0,A.Z)(),Ge=(0,r.useMemo)((()=>{const e=new URLSearchParams(d.search).get("page")||1;return Se.length>Be.length?Number(e)+1:null}),[d.search,Se.length,Be.length]),qe=(0,r.useMemo)((()=>{const e=new URLSearchParams(d.search).get("page")||1;return e>1?Number(e)-1:null}),[d.search]),Qe=(0,r.useMemo)((()=>ye.every((e=>(null==pe?void 0:pe.GetProductDetailsResult.accessoriesByLine.split(",").map((e=>e.trim())).includes(e.key_prod))||(null==pe?void 0:pe.GetProductDetailsResult.accessoriesBySku.split(",").map((e=>e.trim())).includes(e.key_prod))))),[ye,pe]);return r.createElement("div",{className:m()("product-list position-relative",c?"product-list--hero "+x:"product-list--nohero")},r.createElement(B.ql,null,Ge&&r.createElement("link",{rel:"next",href:""+K.siteMetadata.siteUrl+(0,s.withPrefix)((0,I.normalizeRelativePath)(n.slug))+"?page="+Ge}),qe&&1!==qe?r.createElement("link",{rel:"prev",href:""+K.siteMetadata.siteUrl+(0,s.withPrefix)((0,I.normalizeRelativePath)(n.slug))+"?page="+qe}):qe&&1===qe?r.createElement("link",{rel:"prev",href:""+K.siteMetadata.siteUrl+(0,s.withPrefix)((0,I.normalizeRelativePath)(n.slug))}):null),r.createElement(M.Z,{data:je}),r.createElement("div",{className:"container-fluid"},c&&!S&&r.createElement("div",{className:"row product-list__intro"},r.createElement("div",{className:"col-lg-8 col-xl-9 offset-lg-4 offset-xl-3"},r.createElement("div",{className:"text-center"},c&&r.createElement(r.Fragment,null,H&&r.createElement("h1",{className:"product-list__title"},H),U&&r.createElement("div",{className:"product-list__description",dangerouslySetInnerHTML:{__html:U}}),U&&V&&r.createElement(r.Fragment,null,r.createElement("div",{className:"product-list__description "+(Y?"d-block":"d-none"),dangerouslySetInnerHTML:{__html:V}}),r.createElement("button",{className:"product-list__more",onClick:ee},r.createElement("span",{className:Y?"d-none":"d-inline"},Q.readMore),r.createElement("span",{className:Y?"d-inline":"d-none"},Q.readLess))))))),r.createElement("div",{className:"row"},r.createElement("div",{className:"col-4 col-xl-3 px-0"},r.createElement("div",{className:m()("product-list__filters d-lg-flex",{"d-none":!le})},r.createElement("div",{className:"product-list__filters-content"},null!=Pe&&Pe.length&&Be.length>0?r.createElement("div",{className:"product-list__filters-intro pb-3 d-flex align-items-center justify-content-between"},r.createElement("div",{className:"product-list__filters-title d-none d-lg-block"},Q.filterBy),r.createElement("button",{className:"product-list__filters-close-label d-lg-none",onClick:ne,"aria-label":"Close"},Q.close),r.createElement("button",{className:m()("product-list__reset-btn ml-2",{"d-none":!Me}),onClick:Ne},Q.cancel,r.createElement(N(),null))):null,(null==ye?void 0:ye.every((e=>333===(null==e?void 0:e.lineId))))&&r.createElement(r.Fragment,null,r.createElement("div",{className:"product-list__facet-label"},r.createElement("span",{className:"product-list__filter-btn"},r.createElement("span",null,Q.verifyCompitability))),r.createElement(j.Z,{labelManagerLabels:Q,updateQuery:me,query:de,isAllAccCompatible:Qe})),(Ve.length>0||We)&&!De&&r.createElement(r.Fragment,null,((null==Ve?void 0:Ve.length)<(null==Fe?void 0:Fe.length)||We)&&!De&&r.createElement("label",{htmlFor:"price-toggle",className:"d-flex mt-4 mb-3 justify-content-between align-items-center"},r.createElement("span",{className:"product-list__filter-btn mr-3"},Q.avaiableOn),r.createElement(E.Z,{id:"price-toggle",checked:We,disabled:!!de.prices,setChecked:e=>{xe(e);const l=new CustomEvent("FilterChange",{detail:{attributeId:"price-toggle",attributeValue:e,name:"Price Toggle",type:"SWITCH"}});document.dispatchEvent(l)}})),((null==Ve?void 0:Ve.length)>1||!!de.prices)&&r.createElement("div",{className:"product-list__facet"},r.createElement("div",{className:"d-flex align-items-center"},r.createElement("span",{className:"product-list__filter-btn"},Q.price),r.createElement("button",{className:m()("product-list__reset-btn product-list__reset-btn--single",{"d-none":!de.prices}),name:"prices",onClick:Ce},Q.cancel,r.createElement(N(),null))),r.createElement(_.Z,{start:de.prices?Number(de.prices[0]):Ve[0],end:de.prices?Number(de.prices[de.prices.length-1]):Ve[Ve.length-1],values:Ue,unit:X,onChange:e=>{(e=>{let{start:l,end:t}=e;const r=Ue[0],n=Ue[Ue.length-1];if(Number(r)===Number(l)&&Number(n)===Number(t)){const e={...de};delete e.prices,me(e)}else me({...de,prices:[l,t]})})(e);const l=new CustomEvent("FilterChange",{detail:{attributeId:"prices",attributeValue:[e.start,e.end],name:"Price",type:"RANGE"}});document.dispatchEvent(l)}}))),r.createElement("div",{className:"d-flex flex-column mt-4"},null==ke?void 0:ke.filter((e=>{var l;return!["price","prices"].includes(e.id)&&"category"===e.id||Ie[e.id].length>
11||1===(null===(l=Ie[e.id])||void 0===l?void 0:l.length)&&de[e.id]})).map((e=>r.createElement(P.Z,{facet:e,facetOptions:Ie,selectFacet:Le,clearFacet:Ce,labelManagerLabels:Q,multiple:"category"!==e.id&&Ie[e.id].length>2,key:e.id})))),r.createElement("div",{className:"mt-3 d-flex justify-content-center d-lg-none"},r.createElement("button",{className:"product-list__mb-filter",onClick:ne},Q.applyFilters))))),r.createElement("div",{className:"col-lg-8 col-xl-9 px-0 pl-md-3"},r.createElement("div",{className:"product-list__products"},r.createElement("div",{className:"product-list__topbar pb-2"},r.createElement("div",{className:"row mt-5"},r.createElement("div",{className:m()("product-list__count-wrapper col-sm-6 d-none d-lg-block",{invisible:!Be.length})},r.createElement("div",{className:"product-list__result-count text-center text-sm-left mb-4 mb-sm-0"},r.createElement("span",null,Q.show," ",Be.length),r.createElement("span",{className:"text-lowercase"}," ",Q.of," ",Se.length),r.createElement("span",{className:"text-lowercase"}," ",Q.results))),r.createElement("div",{className:m()("col-sm-12 d-flex justify-content-between align-items-center pb-1 col-lg-6 d-lg-block",{invisible:Be.length<1})},!!Pe.length&&r.createElement("div",{className:"text-center d-inline-block d-lg-none"},r.createElement("button",{className:"product-list__btn-filter",onClick:re},r.createElement(w(),null),Q.filters,Object.keys(de).filter((e=>"sort"!==e)).length>0&&r.createElement("div",{className:"box-search__filter-icon"}))),Be.length>=2&&r.createElement("label",{htmlFor:"product-list-sort-by",className:"d-flex align-items-center justify-content-end mb-0"},r.createElement("button",{className:m()("product-list__btn-filter d-lg-none"),disabled:ie,onClick:()=>{ae(!0)}},null==Q?void 0:Q.orderBy,r.createElement(T(),{className:m()(ie&&"d-none")})),r.createElement(g.Z,{id:"product-list-sort-by",className:m()("product-list__sort-by flex-fill flex-md-grow-0 ml-3 d-lg-block",!ie&&"d-none"),options:ue,value:ve,onChange:e=>{we(e),ae(!1)}}))))),r.createElement("div",{className:"row py-4"},fe?r.createElement("div",{className:"d-flex justify-content-center w-100 py-4"},r.createElement("div",{className:"spinner-border mr-2"})):Be.length?Be.map(((e,l)=>r.createElement("div",{className:"col-sm-6 col-xl-4 px-0 product-list__product-card",key:e.key_prod},r.createElement(p.Z,{data:e,productIds:G,toggleProduct:J,addCart:!0,heading2:!0,config:a,origin:"Product listing page cross",index:l,labelManagerLabels:Q,isList:!0,isSingleProdInList:1===Be.length,location:d})))):r.createElement("div",{className:"product-list__empty text-center py-4"},Q.noResultsFound),!!k&&k.map(((e,l)=>l<2&&r.createElement("div",{className:m()("col-sm-6 col-xl-4 px-0",1===l?"product-list__banner-promo-second":"product-list__banner-promo")},r.createElement(L.Z,{sleekNoteId:"sn-785b13d4-ee9e-4fc6-acfe-e7bcc50e61dd"},r.createElement(F.Z,{data:e,position:"plp"})))))),fe?null:r.createElement("div",{className:"row py-4"+(Re?"":" d-none")},r.createElement("div",{className:"col-12 text-center"},r.createElement("div",{className:"product-list__size mb-3 text-lowercase"},Be.length," ",Q.of," ",Se.length),Se.length>Be.length&&r.createElement("button",{className:"btn-link button secondary",onClick:Oe},Q.loadMore," ","("+Math.min(Te,Se.length-Be.length)+")"))))))))},U=t(92699),V=t(93405),W=t(81344),D=t(71465),G=t(38387),q=t(30557),Q=t(64641),K=t(60601),X=t(31805),J=t(62054),Y=t(46831),$=t.n(Y),ee=t(58671),le=t(2479);const te=(0,V.Z)(U.Z),re=e=>{let{data:{liferayPageCrossLine:l},location:t}=e;const{descriptionText:n,seo:a,pclIntro:o}=l,s=(0,r.useMemo)((()=>{if(o){const e=o.moduleTitleFieldSet.find((e=>{var l;return null===(l=e.titleT1FieldSet)||void 0===l?void 0:l.some((e=>e.bgImageMobileT1FieldSet.bgImageMobileT1||e.bgImageT1FieldSet.bgImageT1))})),l=o.moduleTitleFieldSet.find((e=>{var l;return null===(l=e.titleT1FieldSet)||void 0===l?void 0:l.some((e=>e.slideForegroundImageFieldSet.slideForegroundImage))}));return e?e.titleT1FieldSet.find((e=>e.bgImageMobileT1FieldSet.bgImageMobileT1))?e.titleT1FieldSet.find((e=>e.bgImageMobileT1FieldSet.bgImageMobileT1)).bgImageMobileT1FieldSet.bgImageMobileT1.node.resize:l?l.titleT1FieldSet.find((e=>e.slideForegroundImageFieldSet.slideForegroundImage)).slideForegroundImageFieldSet.slideForegroundImage.node.resize:e.titleT1FieldSet.find((e=>e.bgImageT1FieldSet.bgImageT1)).bgImageT1FieldSet.bgImageT1.node.resize:q.Z}return q.Z}),[o]),c=(0,r.useMemo)((()=>(0,K.Z)(l)),[l]),u=(0,r.useMemo)((()=>
1{if("undefined"!=typeof window&&t){const e=new URLSearchParams(window.location.search),t=new URLSearchParams;return e.has("page")?(e.has("page")&&t.set("page",e.get("page")),(0,I.normalizeRelativePath)(l.slug)+"?"+t):l.slug}return l.slug}),[l,t]);return r.createElement(i.Z,{title:l.liferayFields.title,description:n,path:u,ogImage:s,seo:a,hrefLanguages:c,excludeFromSitemap:null==l?void 0:l.excludeFromSitemap,noIndexNoFollow:null==l?void 0:l.noIndexNoFollow})};var ne=(0,V.Z)((e=>{let{data:{liferayPageCrossLine:l,config:t,labelManagerLabels:i,globalCampaignsBannerTop:o,liferayProductNotes:s,newMainMenuFiltered:c,liferayMenuConfiguration:u},location:d}=e;const{pclLines:m,plcSkusProducts:p,pclIntro:g,campaignsPLP:b,campaignsBannerTop:f,categoryModule:y}=l,_=(0,r.useMemo)((()=>!!g),[g]),E=(0,r.useMemo)((()=>{var e;const l=p?p.filter(Boolean):[];if(l.length)return l.reduce(((e,l)=>(e.some((e=>e.key_prod===l.key_prod))||e.push(l),e)),[]).map(((e,t)=>({...e,productPriority:l.length-t})));return null==m||null===(e=m.map((e=>e.allBabelProdotto)))||void 0===e?void 0:e.flat()}),[m,p]),{0:P,1:k}=(0,r.useState)(!1);(0,r.useEffect)((()=>{if(!P){var e,t;const r=null===(e=l.liferayFields)||void 0===e||null===(t=e.taxonomyCategoryBriefs)||void 0===t?void 0:t.find((e=>{var l;return"events"===(null==e||null===(l=e.parentTaxonomyVocabulary)||void 0===l?void 0:l.name)}));
1r&&((0,h.NN)(l.slug,r.name),k(!0))}}),[l,P]);const N=!!c&&(null==c?void 0:c.name)&&(null==u?void 0:u.newMenuActive)&&""!==(null==u?void 0:u.copyrightText),M=(0,r.useMemo)((()=>{var e;return[{name:i.home,link:"/"}].concat((null===(e=l.parentPages)||void 0===e?void 0:e.length)>0?l.parentPages.map((e=>{var l,t,r,n;return{name:N&&null!==(l=e.menuItem)&&void 0!==l&&l.name&&null!==(t=e.menuItem)&&void 0!==t&&t.useCustomName?e.menuItem.name:e.page.liferayFields.title,link:null!==(r=e.page)&&void 0!==r&&r.slug?(0,I.normalizeRelativePath)(e.page.slug):(null===(n=e.page)||void 0===n?void 0:n.externalLink)||""}})):[])}),[l,i,N]),F=E.find((e=>null!==e.productSellingPrice)),L=(0,r.useMemo)((()=>F?{msrpPrice:{currency:t.currency,value:F.productMsrpPrice},sellingPrice:{currency:t.currency,value:F.productSellingPrice},omnibusPrice:F.productOmnibusPrice?{currency:t.currency,value:F.productOmnibusPrice}:null}:null),[F,t]),C=(0,r.useMemo)((()=>(0,G.W)(b,L)),[b,L]),x=C.length?C:[],w=(0,r.useMemo)((()=>(0,G.W)(f,L)),[f,L]),S=w.length?w:[],T=(0,r.useMemo)((()=>(0,G.W)(o)),[o]),Z=T.length?T:[],A=E.some((e=>null!==e.productSellingPrice)),B=(0,r.useMemo)((()=>{var e,t;return l.bodyItem&&null!==(e=l.bodyItem)&&void 0!==e&&e.find((e=>null==e?void 0:e.contentBody))?null===(t=l.bodyItem)||void 0===t?void 0:t.map((e=>e)):[]}),[null==l?void 0:l.bodyItem]),R=(0,r.useMemo)((()=>B.filter((e=>{var l;return!(null==e||!e.contentBody)&&"Underneath"!==(null==e||null===(l=e.position)||void 0===l?void 0:l[0])}))),[B]),O=(0,r.useMemo)((()=>B.filter((e=>{var l;return!(null==e||!e.contentBody)&&"Underneath"===(null==e||null===(l=e.position)||void 0===l?void 0:l[0])}))),[B]),j=(0,ee.Z)(R,null==i?void 0:i.productList,(null==B?void 0:B.length)>0?"Above":null),z=(0,ee.Z)(O),U=j.concat(z);return r.createElement(n.Z,{bannerTop:S.length?S[0]:Z[0],location:d,newMenu:!!N},r.createElement(v.D,{category:l.slug,products:E},_&&r.createElement(r.Fragment,null,{LiferaySliderHero:r.createElement(te,{isFirstHero:!0,data:g,breadcrumb:M}),LiferayEditorial:r.createElement(W.Z,{data:g,breadcrumb:M}),LiferayIntro:r.createElement(Q.Z,{data:g,breadcrumb:M})}[g.__typename]),(_||!_&&(null==R?void 0:R.length)>0)&&r.createElement(J.Z,{bodyItems:R,tabs:U,location:d,config:t,labelManagerLabels:i,position:"Above",showTabs:(null==B?void 0:B.length)>0,breadcrumb:!_&&(null==R?void 0:R.length)>0?M:null,pagePath:l.slug}),(!_||_&&!!y&&"LiferayCategoryModule"===(null==y?void 0:y.__typename))&&r.createElement(a.Z,{title:null==l?void 0:l.pclTitle,descriptionBefore:l.pclIntroBefore,descriptionAfter:l.pclIntroAfter,breadcrumb:0===(null==R?void 0:R.length)?M:null,categoryModule:!!y&&"LiferayCategoryModule"===(null==y?void 0:y.__typename),hasHero:_}),!!y&&"LiferayCategoryModule"===(null==y?void 0:y.__typename)&&r.createElement(le.Z,{data:y,pagePath:l.slug}),!(null!=R&&R.length)>0&&!_&&r.createElement(J.Z,{bodyItems:R,tabs:U,location:d,config:t,labelManagerLabels:i,position:"Above",showTabs:(null==B?void 0:B.length)>0,breadcrumb:!_&&(null==R?void 0:R.length)>0?M:null,noHeroTop:!0,pagePath:l.slug}),(null==B?void 0:B.length)>0&&r.createElement("span",{id:$()(null==i?void 0:i.productList),className:"tabs__scroll-anchor"}),r.createElement(H,{pageCrossLine:l,products:E,location:d,config:t,hasHero:_,breadcrumb:M,bannerPromoCM:x,className:(null==B?void 0:B.length)>0&&"product-list--with-anchor",categoryModule:!!y&&"LiferayCategoryModule"===(null==y?void 0:y.__typename)}),s&&A&&r.createElement(X.Z,{data:s,position:"plp",className:(null==O?void 0:O.length)>0&&"product-notes--with-modules"}),r.createElement(J.Z,{bodyItems:O,tabs:U,location:d,config:t,labelManagerLabels:i,position:"Underneath",pagePath:l.slug}),r.createElement(D.Z,{to:(0,I.normalizeRelativePath)(l.slug)+"compare/",products:E,config:t})))}),{subField:"liferayPageCrossLine",fixed:!0})}}]);
2//# sourceMappingURL=component---src-templates-page-cross-line-js-559c7b93fcb23cfb56b0.js.map

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.