@faststore/core 2.1.102 → 2.1.103

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 (48) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +18 -18
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/cache/config.json +3 -3
  5. package/.next/cache/eslint/.cache_1gneedd +1 -1
  6. package/.next/cache/next-server.js.nft.json +1 -1
  7. package/.next/cache/webpack/client-production/0.pack +0 -0
  8. package/.next/cache/webpack/client-production/index.pack +0 -0
  9. package/.next/cache/webpack/server-production/0.pack +0 -0
  10. package/.next/cache/webpack/server-production/index.pack +0 -0
  11. package/.next/next-server.js.nft.json +1 -1
  12. package/.next/prerender-manifest.json +1 -1
  13. package/.next/routes-manifest.json +1 -1
  14. package/.next/server/chunks/350.js +1 -1
  15. package/.next/server/middleware-build-manifest.js +1 -1
  16. package/.next/server/pages/404.js.nft.json +1 -1
  17. package/.next/server/pages/500.js.nft.json +1 -1
  18. package/.next/server/pages/[...slug].js.nft.json +1 -1
  19. package/.next/server/pages/[slug]/p.js +2 -1
  20. package/.next/server/pages/[slug]/p.js.nft.json +1 -1
  21. package/.next/server/pages/_app.js.nft.json +1 -1
  22. package/.next/server/pages/account.js.nft.json +1 -1
  23. package/.next/server/pages/api/graphql.js +1 -1
  24. package/.next/server/pages/checkout.js.nft.json +1 -1
  25. package/.next/server/pages/en-US/404.html +2 -2
  26. package/.next/server/pages/en-US/500.html +2 -2
  27. package/.next/server/pages/en-US/account.html +2 -2
  28. package/.next/server/pages/en-US/checkout.html +2 -2
  29. package/.next/server/pages/en-US/login.html +2 -2
  30. package/.next/server/pages/en-US/s.html +2 -2
  31. package/.next/server/pages/en-US.html +2 -2
  32. package/.next/server/pages/index.js.nft.json +1 -1
  33. package/.next/server/pages/login.js.nft.json +1 -1
  34. package/.next/server/pages/s.js.nft.json +1 -1
  35. package/.next/server/pages-manifest.json +4 -4
  36. package/.next/static/chunks/{383-c300b4a6b9b73189.js → 383-30148758d68cf682.js} +1 -1
  37. package/.next/static/chunks/{438-a795db53afaf383d.js → 438-ab0b63fd5fb2b928.js} +1 -1
  38. package/.next/static/chunks/pages/[...slug]-082eeffd6ee392ec.js +1 -0
  39. package/.next/static/chunks/pages/[slug]/{p-bd8bc0dc990926db.js → p-627dcdbe8192c380.js} +1 -1
  40. package/.next/static/chunks/pages/index-f82dece57c1d046e.js +1 -0
  41. package/.next/static/chunks/pages/{s-8bc74f787941260d.js → s-e9c1ebecbb4f4a8c.js} +1 -1
  42. package/.next/static/{ofbKk88d35plIgjMgCFBr → kapD1T2t8iYEhnERXIM0S}/_buildManifest.js +1 -1
  43. package/.next/trace +77 -77
  44. package/package.json +2 -2
  45. package/src/pages/[slug]/p.tsx +1 -0
  46. package/.next/static/chunks/pages/[...slug]-8677aea289ea744c.js +0 -1
  47. package/.next/static/chunks/pages/index-cef00c688675a75c.js +0 -1
  48. /package/.next/static/{ofbKk88d35plIgjMgCFBr → kapD1T2t8iYEhnERXIM0S}/_ssgManifest.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/core",
3
- "version": "2.1.102",
3
+ "version": "2.1.103",
4
4
  "license": "MIT",
5
5
  "browserslist": "supports es6-module and not dead",
6
6
  "scripts": {
@@ -110,5 +110,5 @@
110
110
  "msw": {
111
111
  "workerDirectory": "public"
112
112
  },
113
- "gitHead": "28bca332210f360f8d50888da020db73199851e6"
113
+ "gitHead": "fa2b3e2ea6d6e6080d33ab0e3822f1db169d298f"
114
114
  }
@@ -233,6 +233,7 @@ export const getStaticProps: GetStaticProps<
233
233
  meta,
234
234
  offers,
235
235
  globalSections,
236
+ key: slug,
236
237
  },
237
238
  }
238
239
  }
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[330],{940:function(e,t,r){"use strict";r.d(t,{Z:function(){return x}});var n=r(9499),o=r(5731),i=r(2784);const c=(0,i.createContext)(void 0);var s=(0,i.forwardRef)((function({children:e,testId:t="fs-hero",variant:r="primary",colorVariant:n="main",...o},s){const a={variant:r,colorVariant:n};return i.createElement(c.Provider,{value:a},i.createElement("article",{ref:s,"data-fs-hero":!0,"data-fs-hero-variant":r,"data-fs-hero-color-variant":n,"data-testid":t,...o},e))}));var a=(0,i.forwardRef)((function({children:e,testId:t="fs-hero-image",...r},n){return i.createElement("div",{ref:n,"data-fs-hero-image":!0,"data-testid":t,...r},e)})),l=r(3922),d=r(2614);var u=(0,i.forwardRef)((function({icon:e,link:t,title:r,linkText:n,subtitle:o,children:s,testId:a="fs-hero-heading",...u},p){const{variant:f,colorVariant:v}=function(){const e=(0,i.useContext)(c);if(void 0===e)throw new Error("Do not use Hero components outside the Hero context.");return e}();return i.createElement("header",{ref:p,"data-fs-hero-heading":!0,"data-testid":a,...u},i.createElement("div",{"data-fs-hero-wrapper":!0,"data-fs-content":"hero"},i.createElement("div",{"data-fs-hero-info":!0},i.createElement("h1",{"data-fs-hero-title":!0},r),i.createElement("p",{"data-fs-hero-subtitle":!0},o),!!t&&i.createElement(l.Z,{href:t,inverse:"main"===v,icon:i.createElement(d.Z,{name:"ArrowRight"}),iconPosition:"right"},n)),!!e&&"secondary"===f&&i.createElement("span",{"data-fs-hero-icon":!0},e)))})),p=r(9104),f={section:"Hero"},{Hero:v,HeroImage:h,HeroHeader:j}=(0,p.f)({Hero:s,HeroImage:a,HeroHeader:u},f),g=r(3271),O=r(1592),b=r.n(O),m=r(2322);function y(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 w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var x=e=>{var t,r,{link:n,title:i,subtitle:c,image:s,variant:a=(null!==(t=v.props.variant)&&void 0!==t?t:"primary"),colorVariant:l=(null!==(r=v.props.colorVariant)&&void 0!==r?r:"main"),icon:d}=e;return(0,m.jsx)(g.Z,{className:"".concat(b().section," section-hero"),children:(0,m.jsxs)(v.Component,w(w({},v.props),{},{variant:a,colorVariant:l,children:[(0,m.jsx)(h.Component,w(w({},h.props),{},{children:(0,m.jsx)(o.Z,{loading:"eager",src:s.src,alt:s.alt,width:360,height:240,sizes:"(max-width: 360px) 50vw, (max-width: 768px) 90vw, 50vw"})})),(0,m.jsx)(j.Component,w({title:i,subtitle:c,link:null===n||void 0===n?void 0:n.url,linkText:null===n||void 0===n?void 0:n.text,icon:d},j.props))]}))})}},5247:function(e,t,r){"use strict";var n=r(2411),o=r(3271),i=r(1738),c=r.n(i),s=r(2322);t.Z=function(e){var{incentives:t}=e;return(0,s.jsx)(o.Z,{className:"".concat(c().section," section-incentives layout__section"),children:(0,s.jsx)(n.Z,{incentives:t,colored:!0})})}},8569:function(e,t,r){"use strict";var n=r(9499),o=r(7704),i=r(3271),c=r(3262),s=r.n(c),a=r(6532),l=r(2322);function d(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 u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.Z=function(e){var t=Object.assign({},e),{ref:r,inView:n}=(0,o.YD)();return(0,l.jsx)(i.Z,{className:"".concat(s().section," section-product-shelf layout__section"),ref:r,children:(0,l.jsx)(a.Z,u({inView:n},t))})}},4569:function(e,t,r){"use strict";r.d(t,{Z:function(){return _}});var n=r(4730),o=r(2784),i=r(7704),c=r(8553),s=r(9499);var a=(0,o.forwardRef)((function({testId:e="store-tiles",children:t,...r},n){const i=o.Children.count(t);const c=3===i?"expanded-first":2===i?"expanded-first-two":"";return o.createElement("ul",{ref:n,role:"list","data-fs-tiles":!0,"data-fs-tiles-variant":c,"data-fs-content":"tiles","data-testid":e,...r},t)})),l=r(2322),d=["children"];function u(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 p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){(0,s.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var f=e=>{var{children:t}=e,r=(0,n.Z)(e,d);return(0,l.jsx)(a,p(p({},r),{},{children:t}))};var v=(0,o.forwardRef)((function({testId:e="store-tile",children:t,...r},n){return o.createElement("li",{ref:n,role:"listitem","data-fs-tile":!0,"data-testid":e,...r},t)})),h=r(792);var j=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)(h.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)(h.Z,{size:{width:"70%",height:"1.5rem"}})}),(0,l.jsx)("div",{"data-fs-product-tile-skeleton-price":!0,children:(0,l.jsx)(h.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)(h.Z,{size:{width:"6rem",height:"2rem"},border:"pill"})})]})]})};var g=function(e){var{children:t,loading:r=!0}=e;return r?(0,l.jsx)(f,{children:Array.from({length:3},((e,t)=>{return(0,l.jsx)(v,{children:(0,l.jsx)(j,{index:t+1,aspectRatio:(r=3,n=t,3===r&&0===n||2===r&&(0===n||1===n)?5/3:3/4)})},String(t));var r,n}))}):(0,l.jsx)(l.Fragment,{children:t})},O=r(5184),b=r(737),m=r(3271),y=r(5085),w=r.n(y),x=["title"],P=(e,t)=>3===e&&0===t||2===e&&(0===t||1===t)?5/3:3/4,Z=(e,t)=>3===e&&0===t||2===e&&(0===t||1===t)?{width:594,height:364}:{width:284,height:364},_=e=>{var t,{title:r}=e,s=(0,n.Z)(e,x),a=(0,o.useRef)(!1),{ref:d,inView:u}=(0,i.YD)(),p=(0,b.kN)(s),h=null!==(t=null===p||void 0===p?void 0:p.edges)&&void 0!==t?t:[],{sendViewItemListEvent:j}=(0,O.m)({products:h,title:r,page:0,pageSize:0});return(0,o.useEffect)((()=>{u&&!a.current&&h.length&&(j(),a.current=!0)}),[u,h.length,j]),0===(null===p||void 0===p?void 0:p.edges.length)?null:(0,l.jsxs)(m.Z,{className:"".concat(w().section," section-product-tiles layout__section"),ref:d,children:[(0,l.jsx)("h2",{className:"text__title-section layout__content",children:r}),(0,l.jsx)(g,{loading:!p,children:(0,l.jsx)(f,{children:h.map(((e,t)=>(0,l.jsx)(v,{children:(0,l.jsx)(c.Z,{"data-testid":"tile-card",product:e.node,index:t+1,variant:"wide",aspectRatio:P(h.length,t),imgProps:Z(h.length,t)})},e.node.id)))})})]})}},5968:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return M},default:function(){return Q}});var n=r(9499),o=r(4730),i=r(2541),c=r(5383),s=r(6142),a=r(2339),l=r(1197),d=r(5351),u=r(1163),p=r(2784),f=r(387),v=r(940),h=r(6243),j=r(8569),g=r(2614),O=r(3339),b=r(3271),m=r(1515),y=r.n(m),w=r(2322);var x=function(e){var{text:t="Scroll to top",icon:r=(0,w.jsx)(g.Z,{name:"CaretUp",width:16,height:16,weight:"bold"}),iconPosition:n="left"}=e;return(0,w.jsx)(b.Z,{className:"".concat(y().section," section-scroll-to-top-button"),children:(0,w.jsx)(O.Z,{variant:"secondary",icon:r,iconPosition:n,onClick:()=>window.scrollTo(0,0),children:t})})},P=r(8459),Z=r(1523),_=r(7231),E=r(859),k=r(7183),D=r.n(k),S=["page"];function R(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 N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var H=N({Breadcrumb:f.Z,Hero:v.Z,ProductGallery:h.Z,ProductShelf:j.Z},E.Z);function C(e){var t,r,n,i,c,f,{page:{sections:v,settings:h}}=e,j=(0,o.Z)(e,S),{collection:g}=j,O=(0,u.useRouter)(),b=(0,Z.j)(),m=(e=>{var{collection:t,sort:r}=e,n=null===t||void 0===t?void 0:t.meta.selectedFacets,{asPath:o}=(0,u.useRouter)(),i=(0,p.useMemo)((()=>{var e=new URL(o,"http://localhost");r&&!e.searchParams.has("sort")&&e.searchParams.set("sort",r);var t=(0,s.Q)(e);return 0===t.selectedFacets.length&&(t.selectedFacets=n),(0,a.Z)(t).href}),[o,n,r]);return(0,p.useMemo)((()=>(0,s.Q)(new URL(i))),[i])})(N(N({},j),{},{sort:null===h||void 0===h||null===(t=h.productGallery)||void 0===t?void 0:t.sortBySelection})),{page:y,sort:E}=m,k=null!==(r=null===g||void 0===g?void 0:g.seo.title)&&void 0!==r?r:D().seo.title,R=null!==(n=null===g||void 0===g?void 0:g.seo.description)&&void 0!==n?n:D().seo.title,C=0!==y?"?page=".concat(y):"",T=E?"".concat(""!==C?"&":"?","sort=").concat(E):"",[I]=O.asPath.split("?"),V="".concat(D().storeUrl).concat(I).concat(C).concat(T);return(0,w.jsx)(w.Fragment,{children:(0,w.jsxs)(l.z,N(N({onChange:b,itemsPerPage:null!==(i=null===h||void 0===h||null===(c=h.productGallery)||void 0===c?void 0:c.itemsPerPage)&&void 0!==i?i:P.g},m),{},{children:[(0,w.jsx)(d.PB,{title:k,description:R,titleTemplate:D().seo.titleTemplate,canonical:V,openGraph:{type:"website",title:k,description:R}}),(0,w.jsx)(d.gR,{itemListElements:null!==(f=null===g||void 0===g?void 0:g.breadcrumbList.itemListElement)&&void 0!==f?f:[]}),(0,w.jsx)(_.Z,{context:g,sections:v,components:H}),(0,w.jsx)(x,{})]}))})}var T=r(5247),I=r(4569),V=r(8824),G=r(3473);function U(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 z(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?U(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var B=z({Hero:v.Z,Incentives:T.Z,ProductShelf:j.Z,ProductTiles:I.Z,BannerText:V.Z,Newsletter:G.Z},E.Z);function F(e){var t,r,n,o,i,c,s,a,l,u,p,f,v,h,{page:{sections:j,settings:g}}=e;return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(d.PB,{title:null!==(t=null===g||void 0===g||null===(r=g.seo)||void 0===r?void 0:r.title)&&void 0!==t?t:D().seo.title,description:null!==(n=null===g||void 0===g||null===(o=g.seo)||void 0===o?void 0:o.description)&&void 0!==n?n:null===(i=D().seo)||void 0===i?void 0:i.description,titleTemplate:null!==(c=null===(s=D().seo)||void 0===s?void 0:s.titleTemplate)&&void 0!==c?c:null===(a=D().seo)||void 0===a?void 0:a.title,canonical:null!==(l=null===g||void 0===g||null===(u=g.seo)||void 0===u?void 0:u.canonical)&&void 0!==l?l:D().storeUrl,openGraph:{type:"website",url:D().storeUrl,title:null!==(p=null===g||void 0===g||null===(f=g.seo)||void 0===f?void 0:f.title)&&void 0!==p?p:D().seo.title,description:null!==(v=null===g||void 0===g||null===(h=g.seo)||void 0===h?void 0:h.description)&&void 0!==v?v:D().seo.description}}),(0,w.jsx)(d.iu,{url:D().storeUrl,potentialActions:[{target:"".concat(D().storeUrl,"/s/?q"),queryInput:"search_term_string"}]}),(0,w.jsx)(_.Z,{sections:j,components:B})]})}var L=["globalSections","type"];function A(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 Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function q(e){var{globalSections:t,type:r}=e,n=(0,o.Z)(e,L);return(0,w.jsxs)(c.ZP,Y(Y({},t),{},{children:["plp"===r&&(0,w.jsx)(C,Y({},n)),"page"===r&&(0,w.jsx)(F,Y({},n))]}))}q.displayName="Page";var M=!0,Q=(0,i.B)(q)},881:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[...slug]",function(){return r(5968)}])},1592:function(e){e.exports={section:"section_section__WY2pp"}},1738:function(e){e.exports={section:"section_section__rUfAR"}},5085:function(e){e.exports={section:"section_section__hGuvG",loading:"section_loading__GpWrl"}},1515:function(e){e.exports={section:"section_section__xo_yt"}}},function(e){e.O(0,[783,383,438,666,896,774,888,179],(function(){return t=881,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
@@ -1 +0,0 @@
1
- (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{940:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(9499),i=r(5731),o=r(2784);const s=(0,o.createContext)(void 0);var c=(0,o.forwardRef)((function({children:e,testId:t="fs-hero",variant:r="primary",colorVariant:n="main",...i},c){const a={variant:r,colorVariant:n};return o.createElement(s.Provider,{value:a},o.createElement("article",{ref:c,"data-fs-hero":!0,"data-fs-hero-variant":r,"data-fs-hero-color-variant":n,"data-testid":t,...i},e))}));var a=(0,o.forwardRef)((function({children:e,testId:t="fs-hero-image",...r},n){return o.createElement("div",{ref:n,"data-fs-hero-image":!0,"data-testid":t,...r},e)})),l=r(3922),d=r(2614);var u=(0,o.forwardRef)((function({icon:e,link:t,title:r,linkText:n,subtitle:i,children:c,testId:a="fs-hero-heading",...u},f){const{variant:p,colorVariant:v}=function(){const e=(0,o.useContext)(s);if(void 0===e)throw new Error("Do not use Hero components outside the Hero context.");return e}();return o.createElement("header",{ref:f,"data-fs-hero-heading":!0,"data-testid":a,...u},o.createElement("div",{"data-fs-hero-wrapper":!0,"data-fs-content":"hero"},o.createElement("div",{"data-fs-hero-info":!0},o.createElement("h1",{"data-fs-hero-title":!0},r),o.createElement("p",{"data-fs-hero-subtitle":!0},i),!!t&&o.createElement(l.Z,{href:t,inverse:"main"===v,icon:o.createElement(d.Z,{name:"ArrowRight"}),iconPosition:"right"},n)),!!e&&"secondary"===p&&o.createElement("span",{"data-fs-hero-icon":!0},e)))})),f=r(9104),p={section:"Hero"},{Hero:v,HeroImage:h,HeroHeader:j}=(0,f.f)({Hero:c,HeroImage:a,HeroHeader:u},p),g=r(3271),O=r(1592),b=r.n(O),m=r(2322);function x(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 w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var y=e=>{var t,r,{link:n,title:o,subtitle:s,image:c,variant:a=(null!==(t=v.props.variant)&&void 0!==t?t:"primary"),colorVariant:l=(null!==(r=v.props.colorVariant)&&void 0!==r?r:"main"),icon:d}=e;return(0,m.jsx)(g.Z,{className:"".concat(b().section," section-hero"),children:(0,m.jsxs)(v.Component,w(w({},v.props),{},{variant:a,colorVariant:l,children:[(0,m.jsx)(h.Component,w(w({},h.props),{},{children:(0,m.jsx)(i.Z,{loading:"eager",src:c.src,alt:c.alt,width:360,height:240,sizes:"(max-width: 360px) 50vw, (max-width: 768px) 90vw, 50vw"})})),(0,m.jsx)(j.Component,w({title:o,subtitle:s,link:null===n||void 0===n?void 0:n.url,linkText:null===n||void 0===n?void 0:n.text,icon:d},j.props))]}))})}},5247:function(e,t,r){"use strict";var n=r(2411),i=r(3271),o=r(1738),s=r.n(o),c=r(2322);t.Z=function(e){var{incentives:t}=e;return(0,c.jsx)(i.Z,{className:"".concat(s().section," section-incentives layout__section"),children:(0,c.jsx)(n.Z,{incentives:t,colored:!0})})}},8569:function(e,t,r){"use strict";var n=r(9499),i=r(7704),o=r(3271),s=r(3262),c=r.n(s),a=r(6532),l=r(2322);function d(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 u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.Z=function(e){var t=Object.assign({},e),{ref:r,inView:n}=(0,i.YD)();return(0,l.jsx)(o.Z,{className:"".concat(c().section," section-product-shelf layout__section"),ref:r,children:(0,l.jsx)(a.Z,u({inView:n},t))})}},4569:function(e,t,r){"use strict";r.d(t,{Z:function(){return Z}});var n=r(4730),i=r(2784),o=r(7704),s=r(8553),c=r(9499);var a=(0,i.forwardRef)((function({testId:e="store-tiles",children:t,...r},n){const o=i.Children.count(t);const s=3===o?"expanded-first":2===o?"expanded-first-two":"";return i.createElement("ul",{ref:n,role:"list","data-fs-tiles":!0,"data-fs-tiles-variant":s,"data-fs-content":"tiles","data-testid":e,...r},t)})),l=r(2322),d=["children"];function u(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 f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){(0,c.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p=e=>{var{children:t}=e,r=(0,n.Z)(e,d);return(0,l.jsx)(a,f(f({},r),{},{children:t}))};var v=(0,i.forwardRef)((function({testId:e="store-tile",children:t,...r},n){return i.createElement("li",{ref:n,role:"listitem","data-fs-tile":!0,"data-testid":e,...r},t)})),h=r(792);var j=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)(h.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)(h.Z,{size:{width:"70%",height:"1.5rem"}})}),(0,l.jsx)("div",{"data-fs-product-tile-skeleton-price":!0,children:(0,l.jsx)(h.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)(h.Z,{size:{width:"6rem",height:"2rem"},border:"pill"})})]})]})};var g=function(e){var{children:t,loading:r=!0}=e;return r?(0,l.jsx)(p,{children:Array.from({length:3},((e,t)=>{return(0,l.jsx)(v,{children:(0,l.jsx)(j,{index:t+1,aspectRatio:(r=3,n=t,3===r&&0===n||2===r&&(0===n||1===n)?5/3:3/4)})},String(t));var r,n}))}):(0,l.jsx)(l.Fragment,{children:t})},O=r(5184),b=r(737),m=r(3271),x=r(5085),w=r.n(x),y=["title"],P=(e,t)=>3===e&&0===t||2===e&&(0===t||1===t)?5/3:3/4,_=(e,t)=>3===e&&0===t||2===e&&(0===t||1===t)?{width:594,height:364}:{width:284,height:364},Z=e=>{var t,{title:r}=e,c=(0,n.Z)(e,y),a=(0,i.useRef)(!1),{ref:d,inView:u}=(0,o.YD)(),f=(0,b.kN)(c),h=null!==(t=null===f||void 0===f?void 0:f.edges)&&void 0!==t?t:[],{sendViewItemListEvent:j}=(0,O.m)({products:h,title:r,page:0,pageSize:0});return(0,i.useEffect)((()=>{u&&!a.current&&h.length&&(j(),a.current=!0)}),[u,h.length,j]),0===(null===f||void 0===f?void 0:f.edges.length)?null:(0,l.jsxs)(m.Z,{className:"".concat(w().section," section-product-tiles layout__section"),ref:d,children:[(0,l.jsx)("h2",{className:"text__title-section layout__content",children:r}),(0,l.jsx)(g,{loading:!f,children:(0,l.jsx)(p,{children:h.map(((e,t)=>(0,l.jsx)(v,{children:(0,l.jsx)(s.Z,{"data-testid":"tile-card",product:e.node,index:t+1,variant:"wide",aspectRatio:P(h.length,t),imgProps:_(h.length,t)})},e.node.id)))})})]})}},3639:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return w}});var n=r(9499),i=r(5351),o=r(7231),s=r(8824),c=r(940),a=r(5247),l=r(3473),d=r(8569),u=r(4569),f=r(859),p=r(2541),v=r(5383),h=r(7183),j=r.n(h),g=r(2322);function O(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 b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var m=b({Hero:c.Z,Incentives:a.Z,ProductShelf:d.Z,ProductTiles:u.Z,BannerText:s.Z,Newsletter:l.Z},f.Z);function x(e){var t,r,n,s,c,a,l,d,u,f,p,h,O,x,{page:{sections:w,settings:y},globalSections:P}=e;return(0,g.jsxs)(v.ZP,b(b({},P),{},{children:[(0,g.jsx)(i.PB,{title:null!==(t=null===y||void 0===y||null===(r=y.seo)||void 0===r?void 0:r.title)&&void 0!==t?t:j().seo.title,description:null!==(n=null===y||void 0===y||null===(s=y.seo)||void 0===s?void 0:s.description)&&void 0!==n?n:null===(c=j().seo)||void 0===c?void 0:c.description,titleTemplate:null!==(a=null===(l=j().seo)||void 0===l?void 0:l.titleTemplate)&&void 0!==a?a:null===(d=j().seo)||void 0===d?void 0:d.title,canonical:null!==(u=null===y||void 0===y||null===(f=y.seo)||void 0===f?void 0:f.canonical)&&void 0!==u?u:j().storeUrl,openGraph:{type:"website",url:j().storeUrl,title:null!==(p=null===y||void 0===y||null===(h=y.seo)||void 0===h?void 0:h.title)&&void 0!==p?p:j().seo.title,description:null!==(O=null===y||void 0===y||null===(x=y.seo)||void 0===x?void 0:x.description)&&void 0!==O?O:j().seo.description}}),(0,g.jsx)(i.iu,{url:j().storeUrl,potentialActions:[{target:"".concat(j().storeUrl,"/s/?q"),queryInput:"search_term_string"}]}),(0,g.jsx)(o.Z,{sections:w,components:m})]}))}x.displayName="Page";var w=!0;t.default=(0,p.B)(x)},8312:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return r(3639)}])},1592:function(e){e.exports={section:"section_section__WY2pp"}},1738:function(e){e.exports={section:"section_section__rUfAR"}},5085:function(e){e.exports={section:"section_section__hGuvG",loading:"section_loading__GpWrl"}}},function(e){e.O(0,[783,383,438,896,774,888,179],(function(){return t=8312,e(e.s=t);var t}));var t=e.O();_N_E=t}]);