@faststore/core 3.83.0 → 3.83.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +27 -27
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/cache/config.json +3 -3
  5. package/.next/cache/webpack/client-production/0.pack +0 -0
  6. package/.next/cache/webpack/client-production/index.pack +0 -0
  7. package/.next/cache/webpack/server-production/0.pack +0 -0
  8. package/.next/cache/webpack/server-production/index.pack +0 -0
  9. package/.next/prerender-manifest.js +1 -1
  10. package/.next/prerender-manifest.json +1 -1
  11. package/.next/react-loadable-manifest.json +18 -18
  12. package/.next/routes-manifest.json +1 -1
  13. package/.next/server/chunks/2792.js +1 -1
  14. package/.next/server/chunks/8474.js +2 -2
  15. package/.next/server/chunks/9630.js +3 -3
  16. package/.next/server/middleware-build-manifest.js +1 -1
  17. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  18. package/.next/server/pages/[...slug].js +1 -1
  19. package/.next/server/pages/en-US/404.html +1 -1
  20. package/.next/server/pages/en-US/500.html +1 -1
  21. package/.next/server/pages/en-US/checkout.html +1 -1
  22. package/.next/server/pages/en-US/login.html +1 -1
  23. package/.next/server/pages/en-US/s.html +1 -1
  24. package/.next/server/pages/en-US.html +1 -1
  25. package/.next/server/pages/s.js +1 -1
  26. package/.next/server/pages-manifest.json +1 -1
  27. package/.next/static/{irlP2Y8IJEbMTGvY6bTt_ → CaCKSx22-JjJUNjxZbMA8}/_buildManifest.js +1 -1
  28. package/.next/static/chunks/{3166-785c61fd0e214905.js → 3166-7f69db4fed76486b.js} +1 -1
  29. package/.next/static/chunks/{6393.f13568b0fd5f52f6.js → 6393.4ad395e06f7dbbc6.js} +1 -1
  30. package/.next/static/chunks/7191-d91c65fe5de71dcd.js +1 -0
  31. package/.next/static/chunks/ProductShelf.ee5cec2ae121df87.js +1 -0
  32. package/.next/static/chunks/ProductTiles.90806430263e4389.js +1 -0
  33. package/.next/static/chunks/pages/[slug]/{p-0287b5a8ac0b92e5.js → p-6ae1f8bde471e1a6.js} +1 -1
  34. package/.next/static/chunks/pages/{_app-f8a8608651b3f06b.js → _app-ea25733c67653eac.js} +1 -1
  35. package/.next/static/chunks/pages/s-c624c961a98a1be0.js +1 -0
  36. package/.next/static/chunks/{webpack-e7151d8bd72a8f2f.js → webpack-648fd45b167c0042.js} +1 -1
  37. package/.next/trace +136 -136
  38. package/.turbo/turbo-build.log +14 -14
  39. package/.turbo/turbo-test.log +5 -5
  40. package/CHANGELOG.md +6 -0
  41. package/package.json +3 -3
  42. package/src/components/sections/ProductTiles/ProductTiles.tsx +15 -1
  43. package/src/components/templates/SearchPage/SearchPage.tsx +1 -3
  44. package/src/components/templates/SearchPage/SearchWrapper.tsx +1 -1
  45. package/src/components/ui/ProductShelf/ProductShelf.tsx +4 -7
  46. package/src/pages/s.tsx +5 -8
  47. package/src/sdk/product/useLocalizedVariables.ts +2 -6
  48. package/src/sdk/product/usePageProductsQuery.ts +64 -80
  49. package/src/utils/utilities.ts +18 -0
  50. package/.next/static/chunks/7191-102277856f196551.js +0 -1
  51. package/.next/static/chunks/ProductShelf.9f3194be577c7cce.js +0 -1
  52. package/.next/static/chunks/ProductTiles.e0528e72234381e6.js +0 -1
  53. package/.next/static/chunks/pages/s-e7745eef6c834c3e.js +0 -1
  54. /package/.next/static/{irlP2Y8IJEbMTGvY6bTt_ → CaCKSx22-JjJUNjxZbMA8}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3506],{552:function(e,t,r){"use strict";r.r(t),r.d(t,{OverriddenDefaultProductShelf:function(){return g}});var n=r(3067),i={section:"ProductShelf"},o=r(1716),s=r(6410),c=r(1325),a=r(7247),u=r(2418),l=r.n(u),d=r(3888),p=r.n(d),f=p()(()=>Promise.all([r.e(9666),r.e(4836),r.e(9781),r.e(8587)]).then(r.bind(r,4836)).then(e=>e.ProductShelf),{loadableGenerated:{webpack:()=>[null]}}),h=p()(()=>r.e(294).then(r.bind(r,294)),{loadableGenerated:{webpack:()=>[294]}}),b=p()(()=>r.e(3836).then(r.bind(r,3836)),{loadableGenerated:{webpack:()=>[3836]}}),v=r(1549);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ProductShelfSection(e){var t=Object.assign({},e),{ref:r,inView:i}=(0,s.YD)();return(0,v.jsx)(c.Z,{className:"".concat(l().section," section-product-shelf layout__section"),ref:r,children:(0,v.jsx)(a.Z,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({inView:i},t))})}ProductShelfSection.$componentKey="ProductShelf";var y=(0,o.B)("ProductShelf",ProductShelfSection,{ProductShelf:f,__experimentalCarousel:h,__experimentalProductCard:b});function OverriddenDefaultProductShelf_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function OverriddenDefaultProductShelf_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?OverriddenDefaultProductShelf_ownKeys(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OverriddenDefaultProductShelf_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var g=(0,o.v)(OverriddenDefaultProductShelf_objectSpread(OverriddenDefaultProductShelf_objectSpread(OverriddenDefaultProductShelf_objectSpread({},i),i),{},{Section:y}))},7247:function(e,t,r){"use strict";r.d(t,{Z:function(){return ProductShelf_ProductShelf}});var n=r(3067),i=r(4235),o=r(3888),s=r.n(o),c=r(4194),a=r(1917),u=r(9746),l=r(6377),d=r(4018),p=r(9029),pickByKey=e=>t=>{var{key:r}=t;return e.includes(r)},f=r(4876),h=r.n(f),b=r(1549),v=["title","inView","productCardConfiguration","numberOfItems","itemsPerPage","taxesConfiguration"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var y=s()(()=>r.e(4799).then(r.bind(r,4799)),{loadableGenerated:{webpack:()=>[4799]}}),ProductShelf_ProductShelf=function(e){var t,r,{title:n,inView:o,productCardConfiguration:{bordered:s,showDiscountBadge:f}={},numberOfItems:g,itemsPerPage:O=5,taxesConfiguration:w={}}=e,P=(0,i.Z)(e,v),{ProductShelf:_,__experimentalCarousel:j,__experimentalProductCard:m}=(0,u.r3)(),S=(0,d.B5)(n),k=(0,c.useId)(),V=(0,c.useRef)(!1),{deliveryFacets:C}=function(){var e,t,{state:r}=(0,p.R)();return{deliveryFacets:r.selectedFacets.filter(pickByKey(["shipping","pickupPoint"])),shipping:null===(e=r.selectedFacets.filter(pickByKey(["shipping"])))||void 0===e?void 0:e[0],pickupPoint:null===(t=r.selectedFacets.filter(pickByKey(["pickupPoint"])))||void 0===t?void 0:t[0]}}(),D=(0,l.k)(_objectSpread({first:g,selectedFacets:h()(P.selectedFacets,C,{arrayMerge:overwriteMerge})},P)),I=null==D?void 0:null===(t=D.search)||void 0===t?void 0:t.products,x=null!==(r=null==I?void 0:I.edges)&&void 0!==r?r:[],{sendViewItemListEvent:E}=(0,a.m)({products:x,title:n,page:0,pageSize:0});return((0,c.useEffect)(()=>{o&&!V.current&&x.length&&(E(),V.current=!0)},[o,x.length,E]),(null==I?void 0:I.edges.length)===0)?null:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("h2",{className:"text__title-section layout__content",children:n}),(0,b.jsx)(y,{aspectRatio:1,loading:void 0===I,itemsPerPage:O,children:(0,b.jsx)(_.Component,_objectSpread(_objectSpread({},_.props),{},{children:(0,b.jsx)(j.Component,_objectSpread(_objectSpread({id:S||k,itemsPerPage:O},j.props),{},{children:x.map((e,t)=>(0,c.createElement)(m.Component,_objectSpread(_objectSpread({aspectRatio:1,imgProps:{width:216,height:216,sizes:"(max-width: 768px) 42vw, 30vw"}},m.props),{},{bordered:null!=s?s:m.props.bordered,showDiscountBadge:null!=f?f:m.props.showDiscountBadge,taxesConfiguration:w,key:"".concat(e.node.id),product:e.node,index:t+1})))}))}))})]})},overwriteMerge=(e,t)=>t},1917:function(e,t,r){"use strict";r.d(t,{m:function(){return useViewItemListEvent}});var n=r(4194),i=r(7358),useViewItemListEvent=e=>{var{products:t,title:o,page:s,pageSize:c}=e,{currency:{code:a}}=(0,i.kP)();return{sendViewItemListEvent:(0,n.useCallback)(e=>{var n=null!=t&&t.length?t:null==e?void 0:e.products;n&&0!==n.length&&r.e(6393).then(r.bind(r,6393)).then(e=>{var{sendAnalyticsEvent:t}=e;t({name:"view_item_list",params:{item_list_name:o,item_list_id:o,items:n.map((e,t)=>{var{node:r}=e;return{item_id:r.isVariantOf.productGroupID,item_name:r.isVariantOf.name,item_brand:r.brand.name,item_variant:r.sku,price:r.offers.offers[0].price,index:s*c+t+1,discount:r.offers.offers[0].listPrice-r.offers.offers[0].price,currency:a,item_variant_name:r.name,product_reference_id:r.gtin}})}})})},[a,t,o,s,c])}}},7772:function(e,t,r){"use strict";r.d(t,{y:function(){return useLocalizedVariables}});var n=r(4194),i=r(7358),o=r(8132),toArray=e=>Array.isArray(e)?e:e?[e]:[],useLocalizedVariables=e=>{var{first:t,after:r,sort:s,term:c,selectedFacets:a,sponsoredCount:u}=e,{channel:l,locale:d}=(0,i.kP)();return(0,n.useMemo)(()=>({first:null!=t?t:o.KS,after:null!=r?r:"0",sort:null!=s?s:"score_desc",term:null!=c?c:"",selectedFacets:[...toArray(a),{key:"channel",value:null!=l?l:""},{key:"locale",value:d}],sponsoredCount:null!=u?u:3}),[a,t,r,s,c,l,d,u])}},6377:function(e,t,r){"use strict";r.d(t,{k:function(){return useProductsQuery}});var n=r(3067),i=r(5487),o=r(2693),s=r(7772);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var c=i.gU,useProductsQuery=(e,t)=>{var r=(0,s.y)(e),{data:i}=(0,o.aM)(c,r,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({fallbackData:null,suspense:!0},t));return i}},2418:function(e){e.exports={section:"section_section__TjtMz",loading:"section_loading__ffSvt"}},6410:function(e,t,r){"use strict";r.d(t,{YD:function(){return useInView},df:function(){return u}});var n=r(4194);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var i=new Map,o=new WeakMap,s=0,c=void 0;function observe(e,t,r,n){if(void 0===r&&(r={}),void 0===n&&(n=c),void 0===window.IntersectionObserver&&void 0!==n){var a=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),function(){}}var u=function(e){var t=Object.keys(e).sort().filter(function(t){return void 0!==e[t]}).map(function(t){var r;return t+"_"+("root"===t?(r=e.root)?(o.has(r)||(s+=1,o.set(r,s.toString())),o.get(r)):"0":e[t])}).toString(),r=i.get(t);if(!r){var n,c=new Map,a=new IntersectionObserver(function(t){t.forEach(function(t){var r,i=t.isIntersecting&&n.some(function(e){return t.intersectionRatio>=e});e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(r=c.get(t.target))||r.forEach(function(e){e(i,t)})})},e);n=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:a,elements:c},i.set(t,r)}return r}(r),l=u.id,d=u.observer,p=u.elements,f=p.get(e)||[];return p.has(e)||p.set(e,f),f.push(t),d.observe(e),function(){f.splice(f.indexOf(t),1),0===f.length&&(p.delete(e),d.unobserve(e)),0===p.size&&(d.disconnect(),i.delete(l))}}var a=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function isPlainChildren(e){return"function"!=typeof e.children}var u=function(e){function InView(t){var r;return(r=e.call(this,t)||this).node=null,r._unobserveCb=null,r.handleNode=function(e){!r.node||(r.unobserve(),e||r.props.triggerOnce||r.props.skip||r.setState({inView:!!r.props.initialInView,entry:void 0})),r.node=e||null,r.observeNode()},r.handleChange=function(e,t){e&&r.props.triggerOnce&&r.unobserve(),isPlainChildren(r.props)||r.setState({inView:e,entry:t}),r.props.onChange&&r.props.onChange(e,t)},r.state={inView:!!t.initialInView,entry:void 0},r}InView.prototype=Object.create(e.prototype),InView.prototype.constructor=InView,_setPrototypeOf(InView,e);var t=InView.prototype;return t.componentDidUpdate=function(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())},t.componentWillUnmount=function(){this.unobserve(),this.node=null},t.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,r=e.root,n=e.rootMargin,i=e.trackVisibility,o=e.delay,s=e.fallbackInView;this._unobserveCb=observe(this.node,this.handleChange,{threshold:t,root:r,rootMargin:n,trackVisibility:i,delay:o},s)}},t.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},t.render=function(){if(!isPlainChildren(this.props)){var e=this.state,t=e.inView,r=e.entry;return this.props.children({inView:t,entry:r,ref:this.handleNode})}var i=this.props,o=i.children,s=i.as,c=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(i,a);return n.createElement(s||"div",_extends({ref:this.handleNode},c),o)},InView}(n.Component);function useInView(e){var t=void 0===e?{}:e,r=t.threshold,i=t.delay,o=t.trackVisibility,s=t.rootMargin,c=t.root,a=t.triggerOnce,u=t.skip,l=t.initialInView,d=t.fallbackInView,p=n.useRef(),f=n.useState({inView:!!l}),h=f[0],b=f[1],v=n.useCallback(function(e){void 0!==p.current&&(p.current(),p.current=void 0),!u&&e&&(p.current=observe(e,function(e,t){b({inView:e,entry:t}),t.isIntersecting&&a&&p.current&&(p.current(),p.current=void 0)},{root:c,rootMargin:s,threshold:r,trackVisibility:o,delay:i},d))},[Array.isArray(r)?r.toString():r,c,s,a,u,o,d,i]);(0,n.useEffect)(function(){p.current||!h.entry||a||u||b({inView:!!l})});var y=[v,h.inView,h.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}u.displayName="InView",u.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1}}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7181],{839:function(e,t,r){"use strict";var n=r(3067),i=r(4235),a=r(5402),o=r(8394),s=r(5167),c=r(547),l=r(4194),d=r(2331),u=r.n(d),f=r(2056),p=r(643),h=r(8563),m=r(1549),v=["product","index","bordered","variant","aspectRatio","imgProps","ratingValue","buttonLabel","onButtonClick","showDiscountBadge","taxesConfiguration","sponsoredLabel","enableCompareCheckbox","compareLabel"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}t.Z=(0,l.memo)(function(e){var t,r,{product:n,index:d,bordered:b=!0,variant:g="default",aspectRatio:y=1,imgProps:w,ratingValue:k,buttonLabel:P="Add",onButtonClick:_,showDiscountBadge:O=!0,taxesConfiguration:x,sponsoredLabel:j,enableCompareCheckbox:E=!1,compareLabel:Z}=e,V=(0,i.Z)(e,v),{sku:S,isVariantOf:{name:C},image:[I],advertisement:R,offers:{lowPrice:D,lowPriceWithTaxes:T,offers:[{listPrice:M,availability:z,listPriceWithTaxes:A}]}}=n,F=_objectSpread(_objectSpread({},(0,h.w)({product:n,selectedOffer:0,index:d})),{},{as:u(),passHref:!0,legacyBehavior:!1,prefetch:!1}),L=(0,l.useMemo)(()=>"https://schema.org/InStock"!==z,[z]),N=null!=x&&x.usePriceWithTaxes?T:D,B=null!=x&&x.usePriceWithTaxes?A:M,K=R?{"data-van-res-id":R.adResponseId,"data-van-aid":R.adId,"data-van-prod-name":C}:{};return(0,m.jsxs)(m.Fragment,{children:[E&&(0,m.jsx)(a.Z,{label:Z,product:n,id:n.id}),(0,m.jsxs)(o.Z,_objectSpread(_objectSpread(_objectSpread({outOfStock:L,bordered:b,variant:g,"data-fs-product-card-sku":S},K),V),{},{children:[(0,m.jsx)(s.Z,{aspectRatio:y,children:(0,m.jsx)(f.Z,{src:I.url,alt:I.alternateName,sizes:"".concat(null!==(t=null==w?void 0:w.sizes)&&void 0!==t?t:"(max-width: 768px) 40vw, 30vw"),width:null!==(r=null==w?void 0:w.width)&&void 0!==r?r:360,height:Math.round((Number(null==w?void 0:w.height)||360)/y),loading:null==w?void 0:w.loading})}),(0,m.jsx)(c.Z,{title:C,price:{value:N,listPrice:B,formatter:p.P},ratingValue:k,outOfStock:L,onButtonClick:_,linkProps:F,showDiscountBadge:N<=B&&O,includeTaxes:null==x?void 0:x.usePriceWithTaxes,includeTaxesLabel:null==x?void 0:x.taxesLabel,sponsored:!!R,sponsoredLabel:j})]}))]})})},5859:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(4235),i=r(4194),a=r(6410),o=r(839),s=r(3067),c=r(3877),l=r(1549),d=["children"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){(0,s.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var ui_Tiles_Tiles=e=>{var{children:t}=e,r=(0,n.Z)(e,d);return(0,l.jsx)(c.Z,_objectSpread(_objectSpread({},r),{},{children:t}))},u=r(7901),f=r(792),ProductTileSkeleton_ProductTileSkeleton=function(e){var{index:t,aspectRatio:r=1}=e;return(0,l.jsxs)("div",{"data-fs-product-tile-skeleton":!0,"data-fs-product-tile-skeleton-index":t,children:[(0,l.jsx)("div",{"data-fs-product-tile-skeleton-image":!0,"data-fs-product-tile-skeleton-index":t,style:{"--fs-product-tile-skeleton-image-aspect-ratio":r},children:(0,l.jsx)(f.Z,{size:{width:"auto",height:"100%"},loading:!0})}),(0,l.jsxs)("div",{"data-fs-product-tile-skeleton-content":!0,"data-fs-product-tile-skeleton-index":t,children:[(0,l.jsxs)("div",{"data-fs-product-tile-skeleton-heading":!0,children:[(0,l.jsx)("div",{"data-fs-product-tile-skeleton-text":!0,"data-fs-product-tile-skeleton-index":t,children:(0,l.jsx)(f.Z,{size:{width:"70%",height:"1.5rem"}})}),(0,l.jsx)("div",{"data-fs-product-tile-skeleton-price":!0,children:(0,l.jsx)(f.Z,{size:{width:"60%",height:"1.5rem"}})})]}),(0,l.jsx)("div",{"data-fs-product-tile-skeleton-badge":!0,"data-fs-product-tile-skeleton-index":t,children:(0,l.jsx)(f.Z,{size:{width:"6rem",height:"2rem"},border:"pill"})})]})]})},getRatio=(e,t)=>3===e&&0===t||2===e&&(0===t||1===t)?5/3:3/4,ProductTilesSkeleton_ProductTilesSkeleton=function(e){var{children:t,loading:r=!0}=e;return r?(0,l.jsx)(ui_Tiles_Tiles,{children:Array.from({length:3},(e,t)=>(0,l.jsx)(u.Z,{children:(0,l.jsx)(ProductTileSkeleton_ProductTileSkeleton,{index:t+1,aspectRatio:getRatio(3,t)})},String(t)))}):(0,l.jsx)(l.Fragment,{children:t})},p=r(1917),h=r(6377),m=r(1325),v=r(4578),b=r.n(v),g=["title","taxesConfiguration"],ProductTiles_getRatio=(e,t)=>3===e&&0===t||2===e&&(0===t||1===t)?5/3:3/4,getSizes=(e,t)=>3===e&&0===t||2===e&&(0===t||1===t)?{width:594,height:364}:{width:284,height:364},ProductTiles=e=>{var t,r,{title:s,taxesConfiguration:c}=e,d=(0,n.Z)(e,g),f=(0,i.useRef)(!1),{ref:v,inView:y}=(0,a.YD)(),w=(0,h.k)(d),k=null==w?void 0:null===(t=w.search)||void 0===t?void 0:t.products,P=null!==(r=null==k?void 0:k.edges)&&void 0!==r?r:[],{sendViewItemListEvent:_}=(0,p.m)({products:P,title:s,page:0,pageSize:0});return((0,i.useEffect)(()=>{y&&!f.current&&P.length&&(_(),f.current=!0)},[y,P.length,_]),(null==k?void 0:k.edges.length)===0)?null:(0,l.jsxs)(m.Z,{className:"".concat(b().section," section-product-tiles layout__section"),ref:v,children:[(0,l.jsx)("h2",{className:"text__title-section layout__content",children:s}),(0,l.jsx)(ProductTilesSkeleton_ProductTilesSkeleton,{loading:!k,children:(0,l.jsx)(ui_Tiles_Tiles,{children:P.map((e,t)=>(0,l.jsx)(u.Z,{children:(0,l.jsx)(o.Z,{"data-testid":"tile-card",product:e.node,index:t+1,variant:"wide",aspectRatio:ProductTiles_getRatio(P.length,t),imgProps:getSizes(P.length,t),taxesConfiguration:c})},e.node.id))})})]})};ProductTiles.$componentKey="ProductTiles";var y=ProductTiles},7226:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return n.Z}});var n=r(5859)},1917:function(e,t,r){"use strict";r.d(t,{m:function(){return useViewItemListEvent}});var n=r(4194),i=r(7358),useViewItemListEvent=e=>{var{products:t,title:a,page:o,pageSize:s}=e,{currency:{code:c}}=(0,i.kP)();return{sendViewItemListEvent:(0,n.useCallback)(e=>{var n=null!=t&&t.length?t:null==e?void 0:e.products;n&&0!==n.length&&r.e(6393).then(r.bind(r,6393)).then(e=>{var{sendAnalyticsEvent:t}=e;t({name:"view_item_list",params:{item_list_name:a,item_list_id:a,items:n.map((e,t)=>{var{node:r}=e;return{item_id:r.isVariantOf.productGroupID,item_name:r.isVariantOf.name,item_brand:r.brand.name,item_variant:r.sku,price:r.offers.offers[0].price,index:o*s+t+1,discount:r.offers.offers[0].listPrice-r.offers.offers[0].price,currency:c,item_variant_name:r.name,product_reference_id:r.gtin}})}})})},[c,t,a,o,s])}}},643:function(e,t,r){"use strict";r.d(t,{P:function(){return useFormattedPrice}});var n=r(4194),i=r(7358),usePriceFormatter=function(){var{decimals:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{currency:t,locale:r}=(0,i.kP)();return(0,n.useCallback)(n=>Intl.NumberFormat(r,{style:"currency",currency:t.code,minimumFractionDigits:e?2:0}).format(n),[t.code,r,e])},useFormattedPrice=e=>{var t=usePriceFormatter();return(0,n.useMemo)(()=>t(e),[t,e])}},7772:function(e,t,r){"use strict";r.d(t,{y:function(){return useLocalizedVariables}});var n=r(4194),i=r(7358),a=r(8132),toArray=e=>Array.isArray(e)?e:e?[e]:[],useLocalizedVariables=e=>{var{first:t,after:r,sort:o,term:s,selectedFacets:c,sponsoredCount:l}=e,{channel:d,locale:u}=(0,i.kP)();return(0,n.useMemo)(()=>({first:null!=t?t:a.KS,after:null!=r?r:"0",sort:null!=o?o:"score_desc",term:null!=s?s:"",selectedFacets:[...toArray(c),{key:"channel",value:null!=d?d:""},{key:"locale",value:u}],sponsoredCount:null!=l?l:3}),[c,t,r,o,s,d,u,l])}},8563:function(e,t,r){"use strict";r.d(t,{w:function(){return useProductLink}});var n=r(4194),i=r(7358),useProductLink=e=>{var{index:t,product:a,selectedOffer:o}=e,{slug:s}=a,{currency:{code:c}}=(0,i.kP)(),l=(0,n.useCallback)(()=>{r.e(6393).then(r.bind(r,6393)).then(e=>{var{sendAnalyticsEvent:r}=e;r({name:"select_item",params:{items:[{item_id:a.isVariantOf.productGroupID,item_name:a.isVariantOf.name,item_brand:a.brand.name,item_variant:a.sku,index:t,price:a.offers.offers[o].price,discount:a.offers.offers[o].listPrice-a.offers.offers[o].price,currency:c,item_variant_name:a.name,product_reference_id:a.gtin}]}}),r({name:"search_select_item",params:{url:window.location.href,items:[{item_id:a.isVariantOf.productGroupID,item_variant:a.sku,index:t}]}})})},[c,a,t,o]);return{href:"/".concat(s,"/p"),onClick:l,"data-testid":"product-link"}}},6377:function(e,t,r){"use strict";r.d(t,{k:function(){return useProductsQuery}});var n=r(3067),i=r(5487),a=r(2693),o=r(7772);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var s=i.gU,useProductsQuery=(e,t)=>{var r=(0,o.y)(e),{data:i}=(0,a.aM)(s,r,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({fallbackData:null,suspense:!0},t));return i}},4578:function(e){e.exports={section:"section_section__Wwc_y",loading:"section_loading__7M1Dl"}},6410:function(e,t,r){"use strict";r.d(t,{YD:function(){return useInView},df:function(){return l}});var n=r(4194);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var i=new Map,a=new WeakMap,o=0,s=void 0;function observe(e,t,r,n){if(void 0===r&&(r={}),void 0===n&&(n=s),void 0===window.IntersectionObserver&&void 0!==n){var c=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:c,intersectionRect:c,rootBounds:c}),function(){}}var l=function(e){var t=Object.keys(e).sort().filter(function(t){return void 0!==e[t]}).map(function(t){var r;return t+"_"+("root"===t?(r=e.root)?(a.has(r)||(o+=1,a.set(r,o.toString())),a.get(r)):"0":e[t])}).toString(),r=i.get(t);if(!r){var n,s=new Map,c=new IntersectionObserver(function(t){t.forEach(function(t){var r,i=t.isIntersecting&&n.some(function(e){return t.intersectionRatio>=e});e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=i),null==(r=s.get(t.target))||r.forEach(function(e){e(i,t)})})},e);n=c.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:c,elements:s},i.set(t,r)}return r}(r),d=l.id,u=l.observer,f=l.elements,p=f.get(e)||[];return f.has(e)||f.set(e,p),p.push(t),u.observe(e),function(){p.splice(p.indexOf(t),1),0===p.length&&(f.delete(e),u.unobserve(e)),0===f.size&&(u.disconnect(),i.delete(d))}}var c=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function isPlainChildren(e){return"function"!=typeof e.children}var l=function(e){function InView(t){var r;return(r=e.call(this,t)||this).node=null,r._unobserveCb=null,r.handleNode=function(e){!r.node||(r.unobserve(),e||r.props.triggerOnce||r.props.skip||r.setState({inView:!!r.props.initialInView,entry:void 0})),r.node=e||null,r.observeNode()},r.handleChange=function(e,t){e&&r.props.triggerOnce&&r.unobserve(),isPlainChildren(r.props)||r.setState({inView:e,entry:t}),r.props.onChange&&r.props.onChange(e,t)},r.state={inView:!!t.initialInView,entry:void 0},r}InView.prototype=Object.create(e.prototype),InView.prototype.constructor=InView,_setPrototypeOf(InView,e);var t=InView.prototype;return t.componentDidUpdate=function(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())},t.componentWillUnmount=function(){this.unobserve(),this.node=null},t.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,r=e.root,n=e.rootMargin,i=e.trackVisibility,a=e.delay,o=e.fallbackInView;this._unobserveCb=observe(this.node,this.handleChange,{threshold:t,root:r,rootMargin:n,trackVisibility:i,delay:a},o)}},t.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},t.render=function(){if(!isPlainChildren(this.props)){var e=this.state,t=e.inView,r=e.entry;return this.props.children({inView:t,entry:r,ref:this.handleNode})}var i=this.props,a=i.children,o=i.as,s=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(i,c);return n.createElement(o||"div",_extends({ref:this.handleNode},s),a)},InView}(n.Component);function useInView(e){var t=void 0===e?{}:e,r=t.threshold,i=t.delay,a=t.trackVisibility,o=t.rootMargin,s=t.root,c=t.triggerOnce,l=t.skip,d=t.initialInView,u=t.fallbackInView,f=n.useRef(),p=n.useState({inView:!!d}),h=p[0],m=p[1],v=n.useCallback(function(e){void 0!==f.current&&(f.current(),f.current=void 0),!l&&e&&(f.current=observe(e,function(e,t){m({inView:e,entry:t}),t.isIntersecting&&c&&f.current&&(f.current(),f.current=void 0)},{root:s,rootMargin:o,threshold:r,trackVisibility:a,delay:i},u))},[Array.isArray(r)?r.toString():r,s,o,c,l,a,u,i]);(0,n.useEffect)(function(){f.current||!h.entry||c||l||m({inView:!!d})});var b=[v,h.inView,h.entry];return b.ref=b[0],b.inView=b[1],b.entry=b[2],b}l.displayName="InView",l.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1}},2740:function(e,t,r){"use strict";var n=r(4194);let i=(0,n.forwardRef)(function({testId:e="fs-checkbox",partial:t,...r},i){return n.createElement("input",{ref:i,"data-fs-checkbox":!0,"data-testid":e,"data-fs-checkbox-partial":t,type:"checkbox",...r})});t.Z=i},9767:function(e,t,r){"use strict";var n=r(4194),i=r(5450);let a=(0,n.forwardRef)(function({value:e,as:t="span",variant:r="selling",testId:a="fs-price",formatter:o=e=>e,SRText:s,...c},l){let d=o(e,r);return n.createElement(t,{ref:l,"data-fs-price":!0,"data-fs-price-variant":r,"data-testid":a,...c},s&&n.createElement(i.Z,{text:s}),d)});t.Z=a},5450:function(e,t,r){"use strict";var n=r(4194);t.Z=function({text:e,as:t}){let r=t??"span";return n.createElement(r,{"data-fs-sr-only":!0},e)}},792:function(e,t,r){"use strict";var n=r(4194);let i=(0,n.forwardRef)(function({testId:e="fs-skeleton",loading:t=!0,shimmer:r=!0,children:i,size:a,border:o,borderRadius:s,...c},l){let d={width:a.width,height:a.height};return t?n.createElement("div",{ref:l,"data-fs-skeleton":!0,"data-testid":e,"data-fs-skeleton-border":o||null,style:s?{...d,borderRadius:s}:d,...c},r&&n.createElement("div",{"data-fs-skeleton-shimmer":!0})):n.createElement(n.Fragment,null,i)});t.Z=i},2182:function(e,t,r){"use strict";r.d(t,{S:function(){return useProductComparison}});var n=r(4194),i=r(2770);function useProductComparison(){let e=(0,n.useContext)(i.A);if(void 0===e)throw Error("useProductComparison must be used within a ProductComparisonProvider");return e}},673:function(e,t,r){"use strict";var n=r(4194),i=r(2740),a=r(1953);let o=(0,n.forwardRef)(function({testId:e="fs-checkbox-field",id:t,label:r,value:o,name:s,error:c,disabled:l,alignment:d="center",...u},f){let p=!l&&c&&""!==c;return n.createElement("div",{ref:f,"data-testid":e,"data-fs-checkbox-field":!0,"data-fs-checkbox-field-error":c&&""!==c,"data-fs-checkbox-field-alignment":d},n.createElement(i.Z,{id:t,value:o??r,name:s,defaultChecked:u?.checked,disabled:l,...u}),n.createElement("div",{"data-fs-checkbox-field-content":!0},n.createElement(a.Z,{"data-fs-checkbox-field-label":!0,htmlFor:t},r),p&&n.createElement("span",{"data-fs-checkbox-field-error-message":!0},c)))});t.Z=o},2946:function(e,t,r){"use strict";r.d(t,{Z:function(){return DiscountBadge_DiscountBadge}});var n=r(4194),i=r(276);let useDiscountPercent=(e,t)=>(0,n.useMemo)(()=>{let r=e-t,n=100*r/e;return Math.round(n)},[t,e]);var DiscountBadge_DiscountBadge=({listPrice:e,spotPrice:t,thresholdLow:r=15,thresholdHigh:a=40,size:o,testId:s="fs-discount-badge"})=>{let c=useDiscountPercent(e,t);if(0===c)return n.createElement(n.Fragment,null);let l=c<=r?"low":c<=a?"medium":"high";return n.createElement(i.Z,{"data-fs-discount-badge":!0,"data-fs-discount-badge-variant":l,size:o,"data-testid":s},c,"% off")}},8394:function(e,t,r){"use strict";var n=r(4194);let i=(0,n.forwardRef)(function({testId:e="fs-product-card",variant:t="default",bordered:r=!1,outOfStock:i,children:a,...o},s){return n.createElement("article",{ref:s,"data-fs-product-card":i?"out-of-stock":"","data-fs-product-card-variant":t,"data-fs-product-card-bordered":r,"data-testid":e,...o},a)});t.Z=i},547:function(e,t,r){"use strict";var n=r(4194),i=r(727),a=r(9088),o=r(1953),s=r(3024),c=r(2614),l=r(2946),d=r(276),u=r(9009);let f=(0,n.forwardRef)(function({testId:e="fs-product-card-content",title:t,linkProps:r,price:f,outOfStock:p,outOfStockLabel:h="Out of stock",ratingValue:m,showDiscountBadge:v,buttonLabel:b="Add",onButtonClick:g,children:y,includeTaxes:w=!1,includeTaxesLabel:k="Tax included",sponsored:P=!1,sponsoredLabel:_="Sponsored",...O},x){let j=f?.listPrice?f.listPrice:0,E=f?.value?f.value:0;return n.createElement("section",{ref:x,"data-fs-product-card-content":!0,"data-fs-product-card-badge":v,"data-testid":e,...O},P&&n.createElement("span",{"data-fs-product-card-sponsored-label":!0},_),n.createElement("div",{"data-fs-product-card-heading":!0},n.createElement("h3",{"data-fs-product-card-title":!0},n.createElement(i.Z,{...r,title:t},n.createElement("span",null,t))),!p&&n.createElement(a.Z,{"data-fs-product-card-prices":!0,value:E,listPrice:j,formatter:f?.formatter}),w&&n.createElement(o.Z,{"data-fs-product-card-taxes-label":!0},k),m&&n.createElement(s.Z,{value:m,icon:n.createElement(c.Z,{name:"Star"})})),v&&!p&&n.createElement(l.Z,{listPrice:j,spotPrice:E}),p&&n.createElement(d.Z,null,h),g&&!p&&n.createElement("div",{"data-fs-product-card-actions":!0},n.createElement(u.Z,{variant:"primary",icon:n.createElement(c.Z,{name:"ShoppingCart"}),iconPosition:"left",size:"small",onClick:g},b)))});t.Z=f},5167:function(e,t,r){"use strict";var n=r(4194);let i=(0,n.forwardRef)(function({testId:e="fs-product-card-image",aspectRatio:t=1,children:r,...i},a){return n.createElement("div",{ref:a,"data-fs-product-card-image":!0,"data-testid":e,style:{"--fs-product-card-image-aspect-ratio":t},...i},r)});t.Z=i},9088:function(e,t,r){"use strict";var n=r(4194),i=r(9767);let a=(0,n.forwardRef)(function({testId:e="fs-product-price",value:t,listPrice:r,formatter:a,...o},s){let c=r??0,l=t??0;return n.createElement("div",{ref:s,"data-fs-product-price":!0,"data-testid":e,...o},l!==c&&0!==c?n.createElement(n.Fragment,null,n.createElement(i.Z,{value:c,formatter:a,testId:"list-price","data-value":c,variant:"listing",SRText:"Original price:"}),n.createElement(i.Z,{value:l,formatter:a,testId:"price","data-value":l,variant:"spot",SRText:"Price:"})):n.createElement(i.Z,{value:l,formatter:a,testId:"price","data-value":l,variant:"spot",SRText:"Price:"}))});t.Z=a},3024:function(e,t,r){"use strict";var n=r(4194),i=r(2614),a=r(7041),o=r(4564);let s=(0,n.forwardRef)(function({children:e,testId:t="fs-rating",length:r=5,value:s=0,icon:c,onChange:l,disabled:d,...u},f){let[p,h]=(0,n.useState)(0),m={"data-fs-rating-icon-outline":!0},v=n.isValidElement(c)?c:n.createElement(i.Z,{name:"Star"});return n.createElement(o.Z,{ref:f,"data-fs-rating":!0,"data-fs-rating-actionable":"function"==typeof l,"data-testid":t,...u},Array.from({length:r}).map((e,r)=>{let o=r+1;return n.createElement("li",{key:`rating-${r}`,"data-fs-rating-item":o<=(p||s)?"full":o-s>0&&o-s<1?"partial":"empty","data-testid":`${t}-item`},l?n.createElement(a.Z,{"data-fs-rating-button":!0,icon:v,size:"small","aria-label":"rate",onClick:()=>{l(o)},onMouseEnter:()=>h(o),onMouseLeave:()=>h(s),disabled:d}):n.createElement(n.Fragment,null,n.createElement("div",{"data-fs-rating-icon-wrapper":!0},v),n.isValidElement(c)?n.cloneElement(c,m):n.createElement(i.Z,{name:"Star","data-fs-rating-icon-outline":!0})))}))});t.Z=s},5402:function(e,t,r){"use strict";var n=r(4194),i=r(673),a=r(2182);let o=(0,n.forwardRef)(function({id:e,label:t,onChange:r,product:o,...s},c){let{productIds:l,handleProductsIds:d}=(0,a.S)(),u=l.some(e=>e===o.id);return n.createElement("div",{"data-fs-product-comparison-trigger":!0},o.hasSpecifications&&n.createElement(i.Z,{"data-fs-product-comparison-trigger-checkbox-field":!0,ref:c,id:`product-comparison-trigger-${e}`,label:t,checked:u,onClick:e=>{e.stopPropagation()},onChange:e=>{r?.(e),d(o)},...s}))});t.Z=o},2770:function(e,t,r){"use strict";r.d(t,{A:function(){return i}});var n=r(4194);let i=(0,n.createContext)(void 0);t.Z=function({children:e}){let[t,r]=(0,n.useState)([]),[a,o]=(0,n.useState)([]),[s,c]=(0,n.useState)(!1),l=(0,n.useCallback)(e=>{r(t=>t.includes(e?.id)?t.filter(t=>t!==e.id):[...t,e.id]),o(t=>t.some(t=>t.id===e.id)?t.filter(t=>t.id!==e.id):[...t,e])},[]);return n.createElement(i.Provider,{value:{isOpen:s,setIsOpen:c,productIds:t,products:a,handleProductsIds:l,handleProductsComparison:function(e){let t=e.map(t=>{let r=e.find(e=>e.id===t.id);return{...t,...r}});o(t)},clearProducts:function(){r([]),o([])}}},e)}},7901:function(e,t,r){"use strict";var n=r(4194);let i=(0,n.forwardRef)(function({testId:e="store-tile",children:t,...r},i){return n.createElement("li",{ref:i,role:"listitem","data-fs-tile":!0,"data-testid":e,...r},t)});t.Z=i},3877:function(e,t,r){"use strict";var n=r(4194);let i=(0,n.forwardRef)(function({testId:e="store-tiles",children:t,...r},i){let a=n.Children.count(t);return n.createElement("ul",{ref:i,role:"list","data-fs-tiles":!0,"data-fs-tiles-variant":3===a?"expanded-first":2===a?"expanded-first-two":"","data-fs-content":"tiles","data-testid":e,...r},t)});t.Z=i}}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6552],{1780:function(e,t,r){"use strict";r.d(t,{Z:function(){return f}});var n=r(3067),o=r(3339),a=r(2614),l=r(1667),c=r(9746),i=r(1325),p=r(5093),u=r.n(p),d={EmptyState:r(6133).Z},b=r(1716),h=r(1549);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var useErrorState=()=>{var e,{query:{errorId:t,fromUrl:r},pathname:n,asPath:a}=(0,o.useRouter)();return{errorId:t,fromUrl:null!==(e=null!=r?r:a)&&void 0!==e?e:n}};function EmptyState_EmptyState(e){var t,r,n,o,{title:p,titleIcon:d,children:b,subtitle:f,errorState:j,showLoader:y=!1}=e,{EmptyState:v}=(0,c.r3)(),{errorId:O,fromUrl:S}=useErrorState(),g=null!=d&&d.icon?(0,h.jsx)(a.Z,{name:null==d?void 0:d.icon,"aria-label":null==d?void 0:d.alt,width:56,height:56,weight:"thin"}):v.props.titleIcon;return(0,h.jsx)(i.Z,{className:"".concat(u().section," section-empty-state"),children:(0,h.jsxs)(v.Component,_objectSpread(_objectSpread({bkgColor:"light"},v.props),{},{title:null!=p?p:v.props.title,titleIcon:g,children:[!!f&&(0,h.jsx)("h2",{children:f}),!!(null!=j&&null!==(t=j.errorId)&&void 0!==t&&t.show)&&(0,h.jsx)("p",{children:"".concat(null==j?void 0:null===(r=j.errorId)||void 0===r?void 0:r.description," ").concat(O)}),!!(null!=j&&null!==(n=j.fromUrl)&&void 0!==n&&n.show)&&(0,h.jsx)("p",{children:"".concat(null==j?void 0:null===(o=j.fromUrl)||void 0===o?void 0:o.description," ").concat(S)}),y&&(0,h.jsx)(l.Z,{}),b]}))})}EmptyState_EmptyState.$componentKey="EmptyState";var f=(0,b.B)("EmptyState",EmptyState_EmptyState,d)},6138:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return H},default:function(){return s}});var n=r(3067),o=r(4235),a=r(5935),l=r(3339),c=r(4194),i=r(6142),p=r(2339),u=r(6763),d=r(5450),b=r(8132),h=r(8998),f=r(3412),j=r.n(f),y=r(9029),v=r(7444),O=r(9173),S=r(6272),g=r(1780),m=r(2007),P=r.n(m),w=r(1325),_=r(1549);function EmptySearch(e){var{title:t,term:r}=e;return(0,_.jsx)(w.Z,{className:"".concat(P().section," section-product-gallery"),children:(0,_.jsxs)("section",{"data-testid":"product-gallery","data-fs-product-listing":!0,"data-fs-search-loading":!0,children:[t&&(0,_.jsxs)("h1",{"data-fs-empty-search-title":!0,children:[t," ",(0,_.jsx)("strong",{children:r})]}),(0,_.jsx)(g.Z,{title:"",showLoader:!0})]})})}var x=r(3888),E=r.n(x),Z=r(2301),D=r(3882),K=r(3954),T=r(6924),k=r(3091),G=r(1772),N=r(5949);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var R=E()(()=>Promise.all([r.e(2715),r.e(84)]).then(r.bind(r,4173)).then(e=>e.OverriddenDefaultBannerText),{ssr:!1,loadableGenerated:{webpack:()=>[4173]}}),W=E()(()=>Promise.all([r.e(1417),r.e(385),r.e(2715),r.e(2858)]).then(r.bind(r,3143)),{ssr:!1,loadableGenerated:{webpack:()=>[3143]}}),B=E()(()=>Promise.all([r.e(1417),r.e(385),r.e(9704)]).then(r.bind(r,7272)).then(e=>e.OverriddenDefaultNewsletter),{ssr:!1,loadableGenerated:{webpack:()=>[7272]}}),C=E()(()=>Promise.all([r.e(6863),r.e(3506)]).then(r.bind(r,552)).then(e=>e.OverriddenDefaultProductShelf),{ssr:!1,loadableGenerated:{webpack:()=>[552]}}),I=E()(()=>r.e(7181).then(r.bind(r,7226)),{ssr:!1,loadableGenerated:{webpack:()=>[7226]}}),U=_objectSpread(_objectSpread(_objectSpread({},G.Z),{},{[(0,N.x)(D.V,"Hero")]:D.V,[(0,N.x)(Z.j,"Breadcrumb")]:Z.j,[(0,N.x)(K.f,"ProductGallery")]:K.f,[(0,N.x)(R,"BannerText")]:R,[(0,N.x)(W,"BannerNewsletter")]:W,[(0,N.x)(B,"Newsletter")]:B,[(0,N.x)(C,"ProductShelf")]:C,[(0,N.x)(I,"ProductTiles")]:I},k.Z),T.Z),q=r(330);function SearchPage_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function SearchPage_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?SearchPage_ownKeys(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SearchPage_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var SearchPage_SearchPage=function(e){var{page:{sections:t},data:r,globalSections:n,globalSettings:o}=e,{pages:a,useGalleryPage:l}=(0,q.Y_)({searchTerm:null==r?void 0:r.searchTerm}),c={data:SearchPage_objectSpread(SearchPage_objectSpread({},r),{},{pages:a}),globalSettings:o};return(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(S.ZP,{context:c,children:(0,_.jsx)(q.Bj.Provider,{value:l,children:(0,_.jsx)(O.ZP,{sections:t,globalSections:n,components:U})})})})};function SearchWrapper_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function SearchWrapper_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?SearchWrapper_ownKeys(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SearchWrapper_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function SearchWrapper(e){var t,r,n,o,a,c,i,{itemsPerPage:p,searchContentType:u,serverData:d,globalSections:b,globalSettings:h}=e,f=(0,l.useRouter)(),{state:{term:g,sort:m,selectedFacets:P},pages:w,resetInfiniteScroll:x}=(0,y.R)(),{data:E}=(0,v.UO)({term:null!==(t=null!==(r=null==d?void 0:d.searchTerm)&&void 0!==r?r:g)&&void 0!==t?t:"",sort:m,itemsPerPage:p,selectedFacets:P}),Z=j().experimental.enableSearchSSR?{title:null!==(n=j().seo.search.bodyH1)&&void 0!==n?n:"Showing results for:",term:d.searchTerm}:{};if(!E)return(0,_.jsx)(S.ZP,{context:{globalSettings:h},children:(0,_.jsx)(O.ZP,{globalSections:b,children:(0,_.jsx)(EmptySearch,SearchWrapper_objectSpread({},Z))})});if(null!=E&&null!==(o=E.redirect)&&void 0!==o&&o.url)return f.replace(null==E?void 0:null===(i=E.redirect)||void 0===i?void 0:i.url,null,{shallow:!0}),(0,_.jsx)(S.ZP,{context:{globalSettings:h},children:(0,_.jsx)(O.ZP,{globalSections:b,children:(0,_.jsx)(EmptySearch,SearchWrapper_objectSpread({},Z))})});var D=null==E?void 0:null===(a=E.search)||void 0===a?void 0:a.products,K=w.length,T=Math.ceil((null==D?void 0:null===(c=D.pageInfo)||void 0===c?void 0:c.totalCount)/p);return T>0&&T<K&&x(0),(0,_.jsx)(SearchPage_SearchPage,{page:u,data:SearchWrapper_objectSpread(SearchWrapper_objectSpread({},d),E),globalSections:b,globalSettings:h})}var F=["search"],L=["noindex","nofollow"];function s_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s_ownKeys(Object(r),!0).forEach(function(t){(0,n.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var H=!0,useSearchParams=e=>{var{sort:t}=e,{asPath:r}=(0,l.useRouter)();return(0,c.useMemo)(()=>{var e=new URL(r,"http://localhost");t&&!e.searchParams.has("sort")&&e.searchParams.set("sort",t);var n=(0,i.Q)(e),o=(0,p.Z)(n).href;return(0,i.Q)(new URL(o))},[r,t])},s=function(e){var t,r,n,c,i,p,{page:f,globalSections:y,searchTerm:v}=e,O=(0,l.useRouter)(),{sections:S,settings:g}=null!=y?y:{},{settings:m}=f,P=(0,h.j)(),w=useSearchParams({sort:null==m?void 0:null===(t=m.productGallery)||void 0===t?void 0:t.sortBySelection}),x=null!==(r=null==m?void 0:null===(n=m.productGallery)||void 0===n?void 0:n.itemsPerPage)&&void 0!==r?r:b.gK,E=null!==(c=null!==(i=null!=v?v:null===(p=O.query)||void 0===p?void 0:p.q)&&void 0!==i?i:w.term)&&void 0!==c?c:void 0;if(!w)return null;var Z=function(e,t){var r,n,a,l,c,i=e.seo,{search:p}=i,u=(0,o.Z)(i,F);if(!e.experimental.enableSearchSSR)return{noindex:null===(l=null==p?void 0:p.noIndex)||void 0===l||l,nofollow:null===(c=null==p?void 0:p.noFollow)||void 0===c||c,title:u.title,description:u.description,titleTemplate:u.titleTemplate,openGraph:{type:"website",title:u.title,description:u.description}};var d=null!=t?t:"Search Results",b=null!==(r=null==p?void 0:p.titleTemplate)&&void 0!==r?r:u.titleTemplate,h=null!=p&&p.descriptionTemplate?p.descriptionTemplate.replace(/%s/g,()=>t):u.description,f=t?"".concat(e.storeUrl,"/s?q=").concat(t.replaceAll(" ","+")):void 0;return{noindex:null===(n=null==p?void 0:p.noIndex)||void 0===n||n,nofollow:null===(a=null==p?void 0:p.noFollow)||void 0===a||a,title:d,description:h,titleTemplate:b,canonical:f,openGraph:{type:"website",title:d,description:h}}}(j(),E),{noindex:D,nofollow:K}=Z,T=(0,o.Z)(Z,L);return(0,_.jsxs)(u.z,s_objectSpread(s_objectSpread({onChange:P,itemsPerPage:x},w),{},{children:[(0,_.jsx)(a.PB,s_objectSpread({noindex:D,nofollow:K},T)),(0,_.jsx)(d.Z,{text:T.title}),(0,_.jsx)(SearchWrapper,{itemsPerPage:x,searchContentType:f,serverData:{title:T.title,searchTerm:E},globalSections:S,globalSettings:g})]}))}},9590:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/s",function(){return r(6138)}])},5093:function(e){e.exports={section:"section_section__KG_b8",load:"section_load__DKeod"}},6133:function(e,t,r){"use strict";var n=r(4194);t.Z=function({testId:e="fs-empty-state",title:t,titleIcon:r,variant:o="default",bkgColor:a="default",children:l,...c}){return n.createElement("section",{"data-fs-empty-state":!0,"data-fs-empty-state-variant":o,"data-fs-empty-state-bkg-color":a,"data-fs-content":"empty-state","data-testid":e,...c},t&&n.createElement("header",{"data-fs-empty-state-title":!0},r&&n.createElement(n.Fragment,null,r),n.createElement("p",null,t)),l)}}},function(e){e.O(0,[6031,9173,7191,9774,2888,179],function(){return e(e.s=9590)}),_N_E=e.O()}]);