PageSourceSearch

https://www.aplace.com/static/Product/Product-f61c7c523d101e20ca10.js

js aplace.com collected 2026-09-24 11:23:41 UTC 21,961 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkwordpress_api_react_client=self.webpackChunkwordpress_api_react_client||[]).push([["Product/Product"],{"8G3g":(e,t,a)=>{a.r(t),a.d(t,{default:()=>g});var r=a("j3Cw"),n=a("e9G9"),c=a("vCD5"),s=a("V2c6"),i=a("9+Aw"),o=a("6X5C"),l=a("4cpO"),d=a("CDWf");const u=e=>r.createElement("div",{className:"css-85yOqvZ0B7"},r.createElement(d.Z,e),r.createElement(o.Z,{message:"Filter:",debugData:e.filtering},r.createElement(i.Z,(0,s.Z)({ListComponent:l.Z},e))));var p=a("AyZd"),m=a("o8gk"),_=a("+hOU");const h={category:"css-6H9fNJmmZA",category__embed:"css-1WzTKlFWB3"},g=(0,n.connect)((({environment:e,productCache:t,filter:a},r)=>({setup:e.setup,categoryData:e?.categoryData,brands:e.brands,favourites:e.favourites,productCache:t,filter:a,...r})),{toggleFavourite:_.F,listItemCache:m.dj})((({setup:e,categoryData:t,brands:a,favourites:n,productCache:s,filter:i,data:o={},currentPath:l="",listingId:d=!1,...m})=>{const _=s?.[e.market]?.[e.pricelist];if(!o||!_)return null;const g=o?.content?.section;return r.createElement("main",{className:[h.category,d?h.category__embed:null].join(" "),role:"main"},o.content&&r.createElement(c.Z,{setup:e,pageContent:o.content,paths:o.paths}),g&&g.length>0&&r.createElement(p.Z,{sections:g,setup:e}),r.createElement(u,{filter:i,brands:a,filtering:_,data:o,setup:e,currentPath:l,resetFilter:m.resetFilter}))}))},HykY:(e,t,a)=>{a.r(t),a.d(t,{default:()=>P});var r=a("j3Cw"),n=a("vG+N"),c=a("e9G9"),s=a("i0+b"),i=a("vCD5"),o=a("nn9I"),l=a("TBAg"),d=a("ovCD");const u=({canonical:e,product:t,soldOut:a,price:n={},currency:c,image:s})=>{const i={"@context":"http://schema.org","@type":"Product",url:e,name:t.name,brand:{"@type":"Brand",name:t.brandName},sku:t.sku,description:t.metaDescription,image:s,offers:{"@type":"Offer",availability:a?"https://schema.org/OutOfStock":"http://schema.org/InStock",price:n.priceAsNumber,priceCurrency:c,url:e}};return r.createElement("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:(0,d.Vh)(JSON.stringify(i),{ALLOWED_TAGS:[]})}})};var p=a("1IiE");var m=a("VfZc"),_=a("8G3g"),h=a("4cpO"),g=a("PsML"),f=a("6X5C"),v=a("L5o4"),y=a("8nZ2"),b=a("o8gk"),E=a("+hOU"),D=a("Jret");const w=a.p+"c872bc74fc67c2304d51c865b4148330.svg",k=a.p+"3cd472b67eb867cd7447fc553b724ef9.svg",C=a.p+"03836d11a623b4cf2a96514fcbe3d559.svg",N=a.p+"0bbccba3e56f945ac1419ffbd5aebd80.svg",O={product:"css-vM45Om3dsw",productImages:"css-LXmACRwaKn",productImages_media_image:"css-a4WVRCfseU",productDetail:"css-wFo7OeChF7",productDetail_top:"css-svBEgFmDow",productDetail_top_price:"css-i6Mfzih9uM",productDetail_top_brand:"css-ovRKl3Dbz7",productDetail_top_title:"css-la+uElc9rX",productDetail_purchase:"css-PNmzqju69A",productDetail_variants:"css-gjVi7R6mug",productDetail_variants_title:"css-HhWZ97zFzj",productDetail_variants_items:"css-XoqCnhQpL6",productDetail_variants_item:"css-iBfgBFHt-O",productDetail_variants_item__selected:"css--wMJON5yYh",productDetail_variants_item_image:"css-YW2DfjniaS",productDetail_info_sections_title:"css-1WYmEgTDT+",productDetail_info_sections_title__selected:"css-FTTZsFKcW3",productDetail_info_section:"css-Tj+BGAYDmI",productDetail_info_section_inner:"css-7+zZcPH3xL",productDetail_info_section_inner_bottom:"css-ZYqPiip+qn",productDetail_info_section_inner_all:"css-Z1GLulVPK2",productDetail_info_section_inner__all:"css-I7C3YWkjz+",productDetail_info_section_table:"css-sx9thHF2CF",productDetail_info_section__selected:"css-7FFtP31P18",productDetail_info_brandLink:"css-awJBQX3dud",productDetail_share:"css-yrMg7cYAkK",productDetail_share_left_text:"css-KJmcKFX8YE",productDetail_share_left:"css-uS1m+t0UKt",productDetail_share_left_inner:"css-mEciwwTWUK",productDetail_share_left__open:"css-GqLRFmuEvc",productDetail_share_right:"css-S9M8-OwlIN",productDetail_share_right_text:"css-+ZXAugsk0H",productDetail_incentives_section_title:"css-pcmOYzeoDg",productDetail_incentives_section_inner:"css-tp3YKB1nKB",productDetail_incentives_section__open:"css-7x6dfg5paJ",productRelations_title:"css-0ePVGN0H3B",productFilter_title:"css-NpA4nwI11I"};e=a.hmd(e);const P=(0,n.wU)(e)((0,c.connect)((({environment:e,productCache:t,checkout:a},{data:r,currentPath:n})=>({data:r,currentPath:n,header:e.header,setup:e.setup,favourites:e.favourites,brands:e.brands,siteUpdated:e.properties.siteUpdated,productCache:t,recentlyViewed:a.recentlyViewed,checkout:a})),{toggleFavourite:E.F,listItemCache:b.dj,addRecentlyViewed:b.nX,retrieveProductCache:b.X7,goToProduct:E.lY})((({data:e,currentPath:t,setup:a,checkout:n,favourites:c,brands:b,header:E,siteUpdated:P,productCache:I={},recentlyViewed:F,...j})=>{if(!e?.productData||!I?.[a.market]?.[a.pricelist])return j.retrieveProductCache(),null;const[x,T]=(0,r.useState)("description"),[Z,$]=(0,r.useState)(!1),[L,R]=(0,r.useState)(!1),[U,A]=(0,r.useState)([]),S=(0,y._w)(a,e.productData),B=S.markets[a.market].pricesByPricelist[a.pricelist];(0,r.useEffect)((()=>{void 0===window.dataLayer&&(window.dataLayer=[]),j.addRecentlyViewed(S.product),((e,t,a,r={})=>{void 0===window.dataLayer&&(window.dataLayer=[]);const n=(0,p.Sw)();window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"ViewContent",event_id:n,values:{value:e.priceAsNumber,currency:a.countries[a.country].currency,content_name:t.name,content_type:"product",content_ids:[`1/${a.country.toLowerCase()}-p${t.silkProduct}-v${t.silkVariant}-s`]}}),window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"ViewContentGA",ecommerce:{detail
1:{actionField:{list:r[`p${t.silkProduct}-v${t.silkVariant}`]||""},products:[{name:t.name,id:t.silkProduct,sku:t.productSku,price:e.priceAsNumber,brand:t.brandName,category:t.canonicalUri.slice(0,t.canonicalUri.lastIndexOf("/")),variant:t.variantName}]}}}),window.dataLayer.push({ecommerce:null});const c=t.canonicalUri.split("/").slice(0,-1).reduce(((e,t,a)=>({...e,[`item_category${a>0?a+1:""}`]:t})),{});window.dataLayer.push({event:"view_item",ecommerce:{"x-fb-event_id":n,currency:a.countries[a.country].currency,items:[{item_name:t.name,item_id:t.silkProduct,price:e.priceAsNumber,currency:a.countries[a.country].currency,item_brand:t.brandName,...c,item_list_id:(0,p.x5)(r[`p${t.silkProduct}-v${t.silkVariant}`]||""),item_list_name:r[`p${t.silkProduct}-v${t.silkVariant}`]||"",quantity:"1"}]}})})(B,S,a,n.listItemCache||{})}),[]);const V=e=>{e.preventDefault();const t=e.currentTarget.getAttribute("href").slice(1);T(t),R(!1)},z=e=>{e.preventDefault();const t=e.currentTarget.id;A((e=>{const a=e.indexOf(t);return-1===a?[...e,t]:[...e.slice(0,a),...e.slice(a+1)]}))},M=a.language,G=0===S.markets[a.market].stockOfAllItems,W=S.sold_out&&S.sold_out[M]?S.sold_out[M]:(0,p.Iu)(a,"soldOut"),K=S.description.split(/<br\s?\/>/),H=Object.keys(S.items).map((e=>({name:S.items[e].name,item:e,stock:S.items[e].stockByMarket[a.market]}))),Y=`${D.hW}${(0,p.O4)(a,S.canonicalUri)}`,X=`${S.name} — APLACE`;let q=0;const J=e.parts||[],Q=S.media.length>0?S.media.map((e=>e.sources.zoom.url)):[],ee={title:`${S.name} - ${S.brandName}`,metaDescription:S.metaDescription,linkCanonical:Y,images:Q},te={standard:[],variant:[]};S?.relatedProducts&&S.relatedProducts.forEach((e=>{const t=(0,p.eV)(e.relation);te[t]||(te[t]=[]),te[t]=[...te[t],e.product]}));const ae=I[a.market][a.pricelist],re=[{image:S.media.map((e=>e.sources.mini.url))||[],selected:!0,name:S.name,uri:S.uri},...te.variant.filter((e=>{const t=ae.products?.[e];return!!t&&0!==parseInt(t.inStock||0,10)})).map((e=>({image:ae.products?.[e]?.image||[],uri:ae.products?.[e]?.uri,name:ae.products?.[e]?.name})))].sort(((e,t)=>e.name.localeCompare(t.name))),ne=(0,y.oK)(a,b.posts[0].meta).fullUri;return r.createElement("main",{role:"main"},r.createElement(i.Z,{setup:a,pageContent:ee,paths:e.paths,skipGeneral:!0}),r.createElement(u,{canonical:Y,product:S,soldOut:G,price:B,currency:a.countries[a.country].currency,image:Q}),r.createElement("div",{className:O.product},r.createElement(f.Z,{message:"Product images missing data",debugData:S},r.createElement("div",{className:O.productImages},S.media.length>0?r.createElement(g.Z,{adaption:"product",infinite:!0,thumbs:!0,showNav:!1},S.media.map((e=>r.createElement("div",{key:e.sources.zoom.url.slice(e.sources.zoom.url.lastIndexOf("/")+1),className:O.productImages_media},r.createElement("img",{className:O.productImages_media_image,src:e.sources.zoom.url,alt:`${S.brandName} ${S.name}`}))))):null)),r.createElement("div",{className:O.productDetail},r.createElement(f.Z,{message:"Product details missing data",debugData:S},r.createElement("div",{className:O.productDetail_top},r.createElement("span",{className:O.productDetail_top_price},r.createElement(o.Z,{price:B,soldOut:!!G&&W})),r.createElement("h2",{className:O.productDetail_top_brand},S.brandName),r.createElement("h1",{className:O.productDetail_top_title},S.name)),r.createElement("div",{className:O.productDetail_purchase},r.createElement(l.Z,{setup:a,currentPath:t,productId:e.productData.product,originalProduct:e.productData,sizes:H,instoreOnly:e.productData.instore_only,soldOut:!!G&&W})),r.createElement("div",{className:O.productDetail_info},r.createElement("div",{className:O.productDetail_info_sections},r.createElement("a",{onClick:V,className:[O.productDetail_info_sections_title,..."description"===x?[O.productDetail_info_sections_title__selected]:[]].join(" "),href:"#description"},(0,p.Iu)(a,"description")),Object.keys(S.measurementChartRows).length>0?r.createElement("a",{onClick:V,className:[O.productDetail_info_sections_title,..."size-guide"===x?[O.productDetail_info_sections_title__selected]:[]].join(" "),href:"#size-guide"},(0,p.Iu)(a,"sizeGuide")):null),r.createElement("div",{className:[O.productDetail_info_section,..."description"===x?[O.productDetail_info_section__selected]:[]].join(" ")},r.createElement("div",{className:[O.productDetail_info_section_inner,...L?[O.productDetail_info_section_inner__all]:[]].join(" ")},r.createElement("p",{className:O.productDetail_info_section_inner_top},K[0]),r.createElement("p",{className:O.productDetail_info_section_inner_bottom,dangerouslySetInnerHTML:{__html:(0,d.Vh)(K.slice(1).join("<br />"))}}),K.length>0&&!L?r.createElement("a",{onClick:e=>{e.preventDefault(),R((e=>!e))},className:[O.productDetail_info_section_inner_all,"a-productReadMore"].join(" "),href:"#read-more"},(0,p.Iu)(a,"readMore")):null)),Object.keys(S.measurementChartRows).length>0?r.createElement("div",{className:[O.productDetail_info_section,..."size-guide"===x?[O.productDetail_info_section__selected]:[]].join(" ")},r.createElement("div",{className:O.productDetail_info_section_inner},r.createElement("table",{className:O.productDetail_info_section_table},r.createElement("thead",null,r.createElement("tr",null,r.createElement("th",
1null),Object.keys(S.measurementChartRows).slice(0,1).map((e=>Object.keys(S.measurementChartRows[e]).map((e=>r.createElement("th",{key:e},e))))))),r.createElement("tbody",null,Object.keys(S.measurementChartRows).map((e=>r.createElement("tr",{key:(0,p.x5)(`${e}`)},r.createElement("td",null,e),Object.keys(S.measurementChartRows[e]).map((t=>r.createElement("td",{key:(0,p.x5)(`${e}-${t}`)},S.measurementChartRows[e][t])))))))))):null,re.length>1&&r.createElement("div",{className:O.productDetail_variants},r.createElement("h3",{className:O.productDetail_variants_title},(0,p.Iu)(a,"productVariants")),r.createElement("div",{className:O.productDetail_variants_items},re.map((e=>r.createElement(s.ZP,{key:e.uri,to:(0,p.O4)(a,`${t.slice(0,t.lastIndexOf("/"))}/${e.uri}`),className:[O.productDetail_variants_item,...e.selected?[O.productDetail_variants_item__selected]:[]].join(" "),title:e.name},r.createElement("img",{className:O.productDetail_variants_item_image,src:e.image[0],alt:e.name})))))),r.createElement("div",{className:O.productDetail_info_brandLink},r.createElement("span",null,(0,p.Iu)(a,"seeMoreFromBrand"))," ",r.createElement(s.ZP,{className:"a-productBrand",to:(0,p.O4)(a,`${ne}/${(0,p.Iu)(a,e.brand.uri)}`)},S.brandName)))),r.createElement("div",{className:O.productDetail_share},r.createElement("div",{className:[O.productDetail_share_left,...Z?[O.productDetail_share_left__open]:[]].join(" ")},r.createElement("a",{href:"#shareProduct",onClick:e=>{e.preventDefault(),$((e=>!e))},className:[O.productDetail_share_left_text,"a-productShare"].join(" ")},r.createElement("span",null,(0,p.Iu)(a,"share")),r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"23",viewBox:"0 0 19 23"},r.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"#000",strokeWidth:"1.3",transform:"translate(0 1)"},r.createElement("path",{d:"M.65 14.65L.65 21.35 18.35 21.35 18.35 14.65"}),r.createElement("path",{d:"M9.43408203 16.6413574L9.43408203.528310441"}),r.createElement("polyline",{points:"3.63 6.995 9.455 .171 15.008 6.995"})))),r.createElement("div",{className:O.productDetail_share_left_inner},r.createElement("a",{title:"Share on Facebook",rel:"noopener noreferrer nofollow",target:"_blank",href:`http://www.facebook.com/sharer.php?u=${encodeURIComponent(Y)}`},r.createElement("img",{src:w,alt:"Facebook icon"})),r.createElement("a",{title:"Tweet",rel:"noopener noreferrer nofollow",target:"_blank",href:`http://twitter.com/intent/tweet?text=${encodeURIComponent(X)}&amp;url=${encodeURIComponent(Y)}`},r.createElement("img",{src:k,alt:"Twitter icon"})),S.media.length>0?r.createElement("a",{title:"Pin it on Pinterest",rel:"noopener noreferrer nofollow",target:"_blank",href:`http://pinterest.com/pin/create/button/?url=${encodeURIComponent(Y)}&amp;media=${encodeURIComponent(S.media[0].sources.zoom.url)}&amp;description=${encodeURIComponent(X)}`},r.createElement("img",{src:C,alt:"Pinterest icon"})):null,r.createElement("a",{href:`mailto:?subject=${encodeURIComponent(X)}&body=${encodeURIComponent(X)}%0A%0D${encodeURIComponent(Y)}`},r.createElement("img",{src:N,alt:"Email icon"})))),r.createElement("a",{href:"#addToFavourites","data-product-id":S.product,onClick:e=>{e.preventDefault();const t=e.currentTarget.dataset.favouritesProductId;j.toggleFavourite(t)},className:[O.productDetail_share_right,"a-productFavorite"].join(" ")},r.createElement("span",{className:O.productDetail_share_right_text},(0,p.Iu)(a,"addToFavourites")),r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"22",viewBox:"0 0 24 22"},r.createElement("path",{fill:-1===c.indexOf(S.product)?"none":"#A7C4EA",stroke:"#000",strokeWidth:"1.3",d:"M82.3607178,44.9685735 C89.1964111,38.2322454 85.5537109,32.7345647 81.5004883,32.0919866 C78.7983398,31.6636012 76.7208802,32.7314723 75.0893698,35.2955999 C73.4578594,32.7314723 71.3803998,31.6636012 68.6782514,32.0919866 C64.6250287,32.7345647 60.9823285,38.2322454 67.8180219,44.9685735 C70.9248433,48.0302334 73.289046,50.256918 75.0893698,51.6486272 C76.8896936,50.256918 79.2538964,48.0302334 82.3607178,44.9685735 Z",transform:"translate(-63 -31)"})))),r.createElement(f.Z,{message:"Product page incentives missing data",debugData:S},r.createElement("div",{className:O.productDetail_incentives},E.incentives?E.incentives.map((e=>e.countryRestrict&&-1===e.countryRestrict.indexOf(a.country)?null:e.texts.filter((e=>e.title&&e.content)).map((e=>(q+=1,r.createElement("div",{key:(0,p.x5)((0,p.Iu)(a,e.title).slice(0,20)),className:[O.productDetail_incentives_section,...-1!==U.indexOf(`incentive_${q}`)?[O.productDetail_incentives_section__open]:[]].join(" ")},r.createElement("a",{id:`incentive_${q}`,className:O.productDetail_incentives_section_title,href:"#openIncentive",onClick:z},r.createElement("span",{className:"a-productIncentive"},(0,p.Iu)(a,e.title))),r.createElement("div",{className:O.productDetail_incentives_section_inner,dangerouslySetInnerHTML:{__html:(0,d.Vh)((0,p.Iu)(a,e.content))}}))))))):null)))),F&&F.length>0&&r.createElement(f.Z,{message:"Recently Viewed Product details missing data",debugData:F},r.createElement("div",{className:O.productRelations},r.createElement("h2",{className:O.productRelations_title},(0,p.Iu)(a,"recentlyViewedProducts")),r.createElement("div",{className:O.productRelations_inner},r.createElement(v.Z,{ListComponent:h.Z,list:F,cache:I[a.market][a.pricelist].products,currentPath:"",canonical:!0})))),J.length>0&&r.createElement("div",{className:O.productCMS},r.createElement(f.Z,{message:"Product content incorrect format",debugData:J},J.map((e=>r.createElement(m.Z,{sections:e.sections,setup:a,product:S,isProduct:S.product}))))),P&&r.createElement(f.Z,{message:"Product page filter error"},r.createElement(_.default,{data:e,currentPath:(0,p.Wd)(t),stateKey:(0,p.N)(t)})))})))},"9+Aw":(e,t,a)=>{a.d(t,{Z:()=>_});var r=a("j3Cw"),n=a("vG+N"),c=a("e9G9"),s=a("L5o4"),i=a("pZhm"),o=a("+hOU"),l=a("PcDS"),d=a("1IiE"),u=a("ovCD");const p={filter:"css-F-Idvs6Afz",filter_buttons:"css-ywavyVbuFo"};e=a.hmd(e);class m extends r.Component{constructor(e){super(e),this.state={categories:!1,hash:"undefined"!=typeof window?window.location.hash:""},this.filterTools=r.createRef()}componentDidMount(){if(this.state.hash){const e=[];this.state.hash.slice(1).split("&").forEach((t=>{const a=t.split("=");1===a.length?e.push({[a[0]]:!0}):e.push({[a[0]]:a[1].split(",")})})),this.props.updateFilter(e,!0),this.setState({hash:null})}}handleToggleDropdown=e=>{e.preventDefault();const t=window.pageYOffset||document.documentElement.scrollTop,a=this.filterTools.current.getBoundingClientRect().top+t-70;Math.abs(t-a)>5&&(0,u.X5)(200,a)};handleClearFilter=e=>{e.preventDefault(),this.props.clearFilter(),this.props.updatePagination(this.props.currentPath,1)};handleToggleGroup=e=>{e.preventDefault();const t=e.currentTarget.dataset.group;this.setState((e=>({[t]:!e[t]||!e[t]}
1)))};handleFilterUpdate=e=>{e.preventDefault();const t=e.currentTarget.getAttribute("href"),a=0===t.indexOf("#")?t.slice(1,t.indexOf("=")):"categories",r=0===t.indexOf("#")?t.slice(t.indexOf("=")+1):t.replace((0,d.O4)(this.props.setup,""),"");this.props.updateFilter([{[a]:r}]),this.props.updatePagination(this.props.currentPath,1)};render(){const{ListComponent:e,location:t,data:a,filtering:n,setup:c,filter:o,currentPath:u}=this.props,{filterArrays:m,filterDescriptions:_,localized:h,products:g}=n,f=h[c.language],v=o.filteredBy.reduce(((e,t)=>"sort"!==Object.keys(t)[0]?e+1:e),0);if(!o.currentFilterSegment)return null;const y=f?Object.keys(m.categories).reduce(((e,t)=>({...e,[f.categories[t]?f.categories[t].key:t]:[...m.categories[t]]})),{}):m.categories,b=f?Object.keys(m.categories).reduce(((e,t)=>({...e,[f.categories[t]?f.categories[t].key:t]:f.categories[t]?f.categories[t].description:_.categories[t]})),{}):_.categories,E="all"===o.currentFilterSegment?{...y}:Object.keys(y).reduce(((e,t)=>0===t.indexOf(o.currentFilterSegment)?{...e,[t]:[...y[t]]}:e),{});if(void 0===a.baseUri)return null;let D="campaigns"===a.baseType?m[a.campaignType]:m[a.baseType][a.baseUri];void 0===D&&(D=[]),0===D.length&&"brands"===a.baseType&&m[a.baseType][(0,d.x5)(a.baseUri)]&&(D=m[a.baseType][(0,d.x5)(a.baseUri)]),D=D.filter((e=>void 0!==g[e])),-1===u.indexOf("archive")&&y.archive&&(D=(0,l.e5)(D,y.archive));let w=[...D];const k={};o.filteredBy.forEach((e=>{const t=Object.keys(e)[0],a=e[t];if(!0===a||Array.isArray(a)&&a.length>0)switch(t){case"categories":{const e=(0,l.Tw)(a.reduce(((e,t)=>[...y[t]?y[t]:[],...e]),[]));k.categories=e,w=(0,l.wf)(w,e);break}case"brands":{const e=(0,l.Tw)(a.reduce(((e,t)=>[...m.brands[t]?m.brands[t]:[],...e]),[]));k.brands=e,w=(0,l.wf)(w,e)}break;case"newProducts":k.newProducts=m.newProducts,w=(0,l.wf)(w,m.newProducts);break;case"productsOnSale":k.productsOnSale=m.productsOnSale,w=(0,l.wf)(w,m.productsOnSale)}}));let C=[...D],N=[...D],O="";o.filteredBy.slice(1).forEach(((e,t)=>{O=Object.keys(e)[0],C=(0,l.wf)(C,k[O]),t<o.filteredBy.length-2&&(N=(0,l.wf)(N,k[O]))}));let P=[...D],I=[...D];o.filteredBy.slice(0).forEach(((e,t)=>{O=Object.keys(e)[0],P=(0,l.wf)(P,k[O]),t<o.filteredBy.length-1&&(I=(0,l.wf)(I,k[O]))}));const F=[p.filter_tools];0===D.length&&F.push(p.filter_tools__empty);const j=[p.filtering_section_group];this.state.categories&&j.push(p.filtering_section_group__open);let x=["all"!==o.currentFilterSegment?o.currentFilterSegment:""];"brands"!==a.baseType&&"campaigns"!==a.baseType||(x=["shop"]),o.categories.length>0&&(x=o.categories);const T=e=>{const t=""===e?0:e.split("/").length;return Object.keys(E).filter((a=>a.split("/").length===t+1&&(""===e||0===a.indexOf(`${e}/`))&&(0,l.wf)(E[a],D).length>0))},Z=e=>{if(""===e)return[];const t=e.split("/"),a=t.slice(0,-1).join("/");return Object.keys(E).filter((e=>e.split("/").length===t.length&&(""===a||0===e.indexOf(`${a}/`))&&(0,l.wf)(E[e],D).length>0))};let $=(0,l.Tw)(x.reduce(((e,t)=>[...e,...T(t)]),[]));return 0===$.length&&($=(0,l.Tw)(x.reduce(((e,t)=>[...e,...Z(t)]),[]))),r.createElement("div",{className:p.filter},r.createElement("div",{className:p.filter_buttons},"categories"===a.baseType&&$.map((e=>{const t=-1!==o.categories.indexOf(e),a=v>1&&0===(0,l.wf)(E[e],"categories"===O?N:C).length;return r.createElement(i.Z,{key:e,type:"link",location:(0,d.O4)(c,e),clickEventHandler:this.handleFilterUpdate,variantClasses:t?["button__selected"]:[],disabled:a,text:b[e]})}))),w.length>0&&r.createElement(s.Z,{ListComponent:e,list:w,cache:g,currentPath:u,showAll:t.query&&void 0!==t.query.showAll}),r.createElement("div",{className:p.filter_buttons},("brands"===a.baseType||"campaigns"===a.baseType)&&$.map((e=>{const t=-1!==o.categories.indexOf(e),a=v>1&&0===(0,l.wf)(E[e],"categories"===O?N:C).length;return r.createElement(i.Z,{key:e,type:"link",location:(0,d.O4)(c,e),clickEventHandler:this.handleFilterUpdate,variantClasses:t?["button__selected"]:[],disabled:a,text:b[e]})}))))}}const _=(0,n.wU)(e)((0,c.connect)((({filter:e,location:t},{ListComponent:a,data:r,filtering:n,setup:c,currentPath:s,productUri:i=!1})=>({filter:e,location:t,ListComponent:a,data:r,filtering:n,setup:c,currentPath:s,productUri:i})),{updateFilter:o.a8,resetFilter:o.sx,clearFilter:o.Dg,updatePagination:o.Ik})(m))}}]);
2//# sourceMappingURL=Product-f61c7c523d101e20ca10.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.