exports.id=9630,exports.ids=[9630],exports.modules={25487:(e,t,r)=>{"use strict";r.d(t,{$G:()=>D,Ce:()=>k,D5:()=>b,Fs:()=>y,HZ:()=>P,M:()=>C,Pq:()=>E,Rb:()=>g,UZ:()=>d,Ud:()=>o,VA:()=>_,Yz:()=>c,bi:()=>v,cD:()=>O,dO:()=>p,fh:()=>i,gN:()=>h,gU:()=>S,hM:()=>l,j9:()=>a,lZ:()=>T,pR:()=>j,pi:()=>n,rd:()=>f,sE:()=>s,vX:()=>u,vt:()=>m,wA:()=>w});let TypedDocumentString=class TypedDocumentString extends String{constructor(e,t){super(e),this.value=e,this.__meta__=t,function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"__apiType",void 0)}toString(){return this.value}};new TypedDocumentString(`
    fragment ProductSummary_product on StoreProduct {
  id: productID
  slug
  sku
  brand {
    brandName: name
  }
  name
  gtin
  unitMultiplier
  isVariantOf {
    productGroupID
    name
    skuVariants {
      allVariantsByName
      activeVariations
      slugsMap
      availableVariations
    }
  }
  image {
    url
    alternateName
  }
  brand {
    name
  }
  offers {
    lowPrice
    lowPriceWithTaxes
    offers {
      availability
      price
      listPrice
      listPriceWithTaxes
      priceWithTaxes
      quantity
      seller {
        identifier
      }
    }
  }
  additionalProperty {
    propertyID
    name
    value
    valueReference
  }
  hasSpecifications
  unitMultiplier
  isVariantOf {
    productGroupID
    name
    skuVariants {
      activeVariations
      slugsMap
      availableVariations
      allVariantProducts {
        name
        productID
      }
    }
  }
  advertisement {
    adId
    adResponseId
  }
  deliveryPromiseBadges {
    typeName
  }
}
    `,{fragmentName:"ProductSummary_product"});let a=new TypedDocumentString(`
    fragment Filter_facets on StoreFacet {
  ... on StoreFacetRange {
    key
    label
    min {
      selected
      absolute
    }
    max {
      selected
      absolute
    }
    __typename
  }
  ... on StoreFacetBoolean {
    key
    label
    values {
      label
      value
      selected
      quantity
    }
    __typename
  }
}
    `,{fragmentName:"Filter_facets"});new TypedDocumentString(`
    fragment CartProductItem on StoreProduct {
  sku
  name
  unitMultiplier
  image {
    url
    alternateName
  }
  brand {
    name
  }
  isVariantOf {
    productGroupID
    name
    skuVariants {
      activeVariations
      slugsMap
      availableVariations
    }
  }
  gtin
  additionalProperty {
    propertyID
    name
    value
    valueReference
  }
}
    `,{fragmentName:"CartProductItem"}),new TypedDocumentString(`
    fragment ProductDetailsFragment_product on StoreProduct {
  id: productID
  sku
  name
  gtin
  description
  unitMultiplier
  isVariantOf {
    name
    productGroupID
    skuVariants {
      activeVariations
      slugsMap
      availableVariations
      allVariantProducts {
        name
        productID
      }
    }
  }
  image {
    url
    alternateName
  }
  brand {
    name
  }
  offers {
    lowPrice
    lowPriceWithTaxes
    offers {
      availability
      price
      priceWithTaxes
      listPrice
      listPriceWithTaxes
      seller {
        identifier
      }
    }
  }
  additionalProperty {
    propertyID
    name
    value
    valueReference
  }
  ...CartProductItem
}
    fragment CartProductItem on StoreProduct {
  sku
  name
  unitMultiplier
  image {
    url
    alternateName
  }
  brand {
    name
  }
  isVariantOf {
    productGroupID
    name
    skuVariants {
      activeVariations
      slugsMap
      availableVariations
    }
  }
  gtin
  additionalProperty {
    propertyID
    name
    value
    valueReference
  }
}`,{fragmentName:"ProductDetailsFragment_product"}),new TypedDocumentString(`
    fragment ProductComparisonFragment_product on StoreProduct {
  id: productID
  sku
  slug
  name
  gtin
  description
  unitMultiplier
  isVariantOf {
    name
    productGroupID
    skuVariants {
      activeVariations
      slugsMap
      availableVariations
      allVariantProducts {
        name
        productID
      }
    }
  }
  image {
    url
    alternateName
  }
  brand {
    name
  }
  offers {
    lowPrice
    lowPriceWithTaxes
    offers {
      availability
      price
      priceWithTaxes
      listPrice
      quantity
      listPriceWithTaxes
      seller {
        identifier
      }
    }
  }
  additionalProperty {
    propertyID
    name
    value
    valueReference
  }
  advertisement {
    adId
    adResponseId
  }
  hasSpecifications
  skuSpecifications {
    field {
      id
      name
      originalName
    }
    values {
      name
      id
      fieldId
      originalName
    }
  }
  specificationGroups {
    name
    originalName
    specifications {
      name
      originalName
      values
    }
  }
}
    `,{fragmentName:"ProductComparisonFragment_product"});let o=new TypedDocumentString(`
    fragment ProductSKUMatrixSidebarFragment_product on StoreProduct {
  id: productID
  isVariantOf {
    name
    productGroupID
    skuVariants {
      activeVariations
      slugsMap
      availableVariations
      allVariantProducts {
        sku
        name
        image {
          url
          alternateName
        }
        offers {
          highPrice
          lowPrice
          lowPriceWithTaxes
          offerCount
          priceCurrency
          offers {
            listPrice
            listPriceWithTaxes
            sellingPrice
            priceCurrency
            price
            priceWithTaxes
            priceValidUntil
            itemCondition
            availability
            quantity
          }
        }
        additionalProperty {
          propertyID
          value
          name
          valueReference
        }
      }
    }
  }
}
    `,{fragmentName:"ProductSKUMatrixSidebarFragment_product"});new TypedDocumentString(`
    fragment ClientManyProducts on Query {
  search(
    first: $first
    after: $after
    sort: $sort
    term: $term
    selectedFacets: $selectedFacets
    sponsoredCount: $sponsoredCount
  ) {
    products {
      pageInfo {
        totalCount
      }
    }
  }
}
    `,{fragmentName:"ClientManyProducts"}),new TypedDocumentString(`
    fragment ClientProduct on Query {
  product(locator: $locator) {
    id: productID
  }
}
    `,{fragmentName:"ClientProduct"}),new TypedDocumentString(`
    fragment ClientProductGallery on Query {
  search(
    first: $first
    after: $after
    sort: $sort
    term: $term
    selectedFacets: $selectedFacets
  ) {
    products {
      pageInfo {
        totalCount
      }
    }
  }
}
    `,{fragmentName:"ClientProductGallery"}),new TypedDocumentString(`
    fragment ClientSearchSuggestions on Query {
  search(first: 5, term: $term, selectedFacets: $selectedFacets) {
    suggestions {
      terms {
        value
      }
    }
  }
}
    `,{fragmentName:"ClientSearchSuggestions"}),new TypedDocumentString(`
    fragment ClientShippingSimulation on Query {
  shipping(items: $items, postalCode: $postalCode, country: $country) {
    address {
      city
    }
  }
}
    `,{fragmentName:"ClientShippingSimulation"}),new TypedDocumentString(`
    fragment ClientTopSearchSuggestions on Query {
  search(first: 5, term: $term, selectedFacets: $selectedFacets) {
    suggestions {
      terms {
        value
      }
    }
  }
}
    `,{fragmentName:"ClientTopSearchSuggestions"}),new TypedDocumentString(`
    fragment ServerCollectionPage on Query {
  collection(slug: $slug) {
    id
  }
}
    `,{fragmentName:"ServerCollectionPage"}),new TypedDocumentString(`
    fragment ServerProduct on Query {
  product(locator: $locator) {
    id: productID
  }
}
    `,{fragmentName:"ServerProduct"});let i=new TypedDocumentString(`
    fragment UserOrderItemsFragment on UserOrderItems {
  id
  name
  quantity
  sellingPrice
  unitMultiplier
  measurementUnit
  imageUrl
  detailUrl
  refId
  rewardValue
}
    `,{fragmentName:"UserOrderItemsFragment"});new TypedDocumentString(`
    fragment CartMessage on StoreCartMessage {
  text
  status
}
    `,{fragmentName:"CartMessage"}),new TypedDocumentString(`
    fragment CartItem on StoreOffer {
  seller {
    identifier
  }
  quantity
  price
  priceWithTaxes
  listPrice
  listPriceWithTaxes
  itemOffered {
    ...CartProductItem
  }
}
    fragment CartProductItem on StoreProduct {
  sku
  name
  unitMultiplier
  image {
    url
    alternateName
  }
  brand {
    name
  }
  isVariantOf {
    productGroupID
    name
    skuVariants {
      activeVariations
      slugsMap
      availableVariations
    }
  }
  gtin
  additionalProperty {
    propertyID
    name
    value
    valueReference
  }
}`,{fragmentName:"CartItem"}),new TypedDocumentString(`
    fragment SearchEvent_metadata on SearchMetadata {
  isTermMisspelled
  logicalOperator
  fuzzy
}
    `,{fragmentName:"SearchEvent_metadata"});let n={__meta__:{operationName:"ServerAccountPageQuery",operationHash:"9baae331b75848a310fecb457e8c971ae27897ff"}},s={__meta__:{operationName:"ServerCollectionPageQuery",operationHash:"4b33c5c07f440dc7489e55619dc2211a13786e72"}},l={__meta__:{operationName:"ServerProductQuery",operationHash:"e855903879c6504e90269e6e010549bc6de933eb"}},c={__meta__:{operationName:"ServerOrderDetailsQuery",operationHash:"7937ec2d330f0f6f68f3aab589f10bc96c6ddeea"}},u={__meta__:{operationName:"ServerListOrdersQuery",operationHash:"b0a6b9da966cf2365f9806fd810bac248b44dba8"}},d={__meta__:{operationName:"ServerProfileQuery",operationHash:"672fe0f00b7b710b63fc6573c0a6b2ec54812b8f"}},p={__meta__:{operationName:"ServerSecurity",operationHash:"0890ba3456c40a426893b80b698df7a84cfdd6a1"}},m={__meta__:{operationName:"ServerUserDetailsQuery",operationHash:"e5eb7e46c685d0c7a2ec62c865bfb0a66f81d557"}},f={__meta__:{operationName:"CancelOrderMutation",operationHash:"e2b06da6840614d3c72768e56579b9d3b8e80802"}},y={__meta__:{operationName:"ProcessOrderAuthorizationMutation",operationHash:"8c25d37c8d6e7c20ab21bb8a4f4e6a2fe320ea8d"}},b={__meta__:{operationName:"ValidateCartMutation",operationHash:"c2b3f8bff73ebf6ac79d758c66cabbc21ba9fcc0"}},g={__meta__:{operationName:"ClientPickupPointsQuery",operationHash:"3fa04e88c811fcb5ece7206fd5aa745bdbc143a8"}},P={__meta__:{operationName:"SubscribeToNewsletter",operationHash:"feb7005103a859e2bc8cf2360d568806fd88deba"}},v={__meta__:{operationName:"ClientProductCountQuery",operationHash:"dc912e7272e3d9f5ced206837df87f544d39d0a5"}},h={__meta__:{operationName:"ClientAllVariantProductsQuery",operationHash:"4039e05f01a2fe449e20e8b82170d0ba94b1fbe9"}},S={__meta__:{operationName:"ClientManyProductsQuery",operationHash:"e49027bc29aa10cbf7bbb0ed62239af8de1653f0"}},_={__meta__:{operationName:"ClientProductGalleryQuery",operationHash:"bfc40da32b60f9404a4adb96b0856e3fbb04b076"}},w={__meta__:{operationName:"ClientProductQuery",operationHash:"47aa22eb750cb2c529e5eeafb921bfeadb67db71"}},O={__meta__:{operationName:"ClientManyProductsSelectedQuery",operationHash:"b668777678c137b8c7004297df4d8b8f2b29ee06"}},j={__meta__:{operationName:"ClientProfileQuery",operationHash:"34ea14c0d4a57ddf9bc11e4be0cd2b5a6506d3d4"}},k={__meta__:{operationName:"ClientSearchSuggestionsQuery",operationHash:"bbaa2ed75c4fb04842189e8d53a1d65481154e2b"}},C={__meta__:{operationName:"ClientTopSearchSuggestionsQuery",operationHash:"e2385b0f11726d0068f96548f57a8dd441c064e3"}},D={__meta__:{operationName:"ValidateSession",operationHash:"8c3a5999496e227f167e9dc79697e6c478d48a9e"}},E={__meta__:{operationName:"ClientShippingSimulationQuery",operationHash:"c35bad22f67f3eb34fea52bb49efa6b1da6b728d"}},T={__meta__:{operationName:"ServerManyProductsQuery",operationHash:"4b769cda49004c85d0d427c601eba36c37a52224"}}},45011:(e,t,r)=>{"use strict";r.d(t,{A:()=>c,Z:()=>l});var a=r(43412),o=r.n(a);let i=new Date().toISOString(),n=Date.now(),s={norobots:o().experimental.noRobots,dangerouslySetAllPagesToNoFollow:o().experimental.nofollow,dangerouslySetAllPagesToNoIndex:o().experimental.noindex,additionalMetaTags:[{name:"generated-at",content:i}]},l=s,c=n},98736:(e,t,r)=>{"use strict";r.d(t,{Z:()=>src_Layout});var a=r(16689),o=r(33339);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}let usePageViewEvent=e=>{let t=(0,a.useCallback)(()=>{Promise.all([r.e(6393),r.e(2792)]).then(r.bind(r,66393)).then(({sendAnalyticsEvent:t})=>{t({name:"page_view",params: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){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({page_title:document.title,page_location:location.href,send_page_view:!0},e)})})},[e]),i=(0,o.useRouter)();return(0,a.useEffect)(()=>{t()},[i.pathname,t]),{sendPageViewEvent:t}};var i=r(20997);let src_Layout=function({children:e}){let t=(0,a.useMemo)(()=>e?.props,[]);return usePageViewEvent(t),i.jsx(i.Fragment,{children:e})}},36401:(e,t,r)=>{"use strict";r.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__,v:()=>o});var a=r(20997);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}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){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let o="gtm_debug",useSnippet=e=>`${e.partytownScript?"!":""}window.location.search.includes('${o}=')&&
  (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
 })(window,document,'script',${JSON.stringify(e.dataLayerName??"dataLayer")},${JSON.stringify(e.containerId)});`,__WEBPACK_DEFAULT_EXPORT__=function(e){return(0,a.jsxs)(a.Fragment,{children:[a.jsx("script",{type:"text/partytown",dangerouslySetInnerHTML:{__html:useSnippet(_objectSpread(_objectSpread({},e),{},{partytownScript:!0}))}},"gtm.partytown"),a.jsx("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:useSnippet(_objectSpread(_objectSpread({},e),{},{partytownScript:!1}))}},"gtm")]})}},61992:(e,t,r)=>{"use strict";r.a(e,async(e,a)=>{try{r.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var o=r(14037),i=r(43412),n=r.n(i),s=r(39729),l=r(36401),c=r(64369),u=r(20997),d=e([o]);o=(d.then?(await d)():d)[0];let p=n().analytics?.gtmContainerId,m="string"==typeof p,f="vtex"===n().platform,__WEBPACK_DEFAULT_EXPORT__=function(){let e=[];return f&&e.push("sendrc"),(0,u.jsxs)(u.Fragment,{children:[u.jsx("script",{dangerouslySetInnerHTML:{__html:`var partytown={forward:[...${JSON.stringify(e)},!window.location.search.includes('${l.v}=')&&${m}?'dataLayer.push':null].filter(Boolean)}`}}),m&&u.jsx(l.Z,{containerId:p}),f&&u.jsx(c.Z,{}),u.jsx(s.Z.ThirdPartyScripts,{}),u.jsx(o.Partytown,{},"partytown")]})};a()}catch(e){a(e)}})},64369:(e,t,r)=>{"use strict";r.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var a=r(43412),o=r.n(a),i=r(20997);let __WEBPACK_DEFAULT_EXPORT__=function(){return(0,i.jsxs)(i.Fragment,{children:[i.jsx("script",{type:"text/partytown",dangerouslySetInnerHTML:{__html:`
            window.VTEX_METADATA = {account:'${o().api.storeId}', renderer: 'faststore'};
            window.sendrc=function(en,ed){window.NavigationCapture&&window.NavigationCapture.sendEvent(en,ed)};
          `}},"vtexrc.js-init"),i.jsx("script",{type:"text/partytown",async:!0,src:"https://io.vtex.com.br/rc/rc.js"},"vtexrc.js-script"),i.jsx("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`
            (function(v,t,e,x,a,f,s){
              f=v.vtexaf=v.vtexaf||function(){(f.q=f.q||[]).push(arguments)}
              ;f.l=+new Date;s=t.createElement(e);s.async=!0;
              s.src=x;a=t.getElementsByTagName(e)[0];
              a.parentNode.insertBefore(s,a)
            })(window,document,'script','https://activity-flow.vtex.com/af/af.js');
          `}},"vtexaf-init"),i.jsx("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`
            window.vtexaf('init', {
              account: '${o().api.storeId}',
              env: '${o().api.environment}',
              workspace: '${o().api.workspace}'
            });
          `}},"vtexaf-config")]})}},98132:(e,t,r)=>{"use strict";r.d(t,{KS:()=>o,YQ:()=>i,gK:()=>a});let a=12,o=5,i=3e3},19630:(e,t,r)=>{"use strict";r.a(e,async(e,a)=>{try{r.r(t),r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__});var o=r(16641),i=r(40968),n=r.n(i),s=r(33339),l=r(69029),c=r(16652),u=r(61992),d=r(98736),p=r(3571),m=r(13028),f=r(25326),y=r(77938),b=r(16423),g=r(45011),P=r(43412),v=r.n(P);r(45276);var h=r(98132),S=r(20997),_=r(16689),w=e([u]);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}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){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}u=(w.then?(await w)():w)[0];let __WEBPACK_DEFAULT_EXPORT__=function({Component:e,pageProps:t}){(0,y.Z)(),v().experimental?.scrollRestoration&&(0,b.Z)();let r=(0,s.useRouter)(),{start:a}=(0,l.R)();return a(r.asPath,{itemsPerPage:h.gK}),(0,S.jsxs)(f.Z,{children:[(0,S.jsxs)(n(),{children:[" ",!process.env.DISABLE_3P_SCRIPTS&&S.jsx(u.Z,{})]}),S.jsx(o.DefaultSeo,_objectSpread({},g.Z)),S.jsx(p.Z,{}),S.jsx(c.ZP,{children:S.jsx(m.L,{children:S.jsx(d.Z,{children:(0,_.createElement)(e,_objectSpread(_objectSpread({},t),{},{key:t?.key}))})})})]})};a()}catch(e){a(e)}})},38543:(e,t,r)=>{"use strict";r.d(t,{N:()=>isRefreshTokenSuccessful,z:()=>refreshTokenRequest});var a=r(43412),o=r.n(a),i=r(47881),n=r.n(i),s=r(4018);let l=`${o().storeUrl}/api/vtexid/refreshtoken/webstore`;async function fetchWithRetry(e,t,r=3){for(let a=0;a<r;a++)try{let r=await n()(e,t);if(200!==r.status)continue;let a=await r.json();return a}catch{}}let refreshTokenRequest=async()=>{let e={"content-type":"application/json",Host:`${(0,s.Y1)(o().storeUrl)}`};return await fetchWithRetry(l,{credentials:"include",headers:e,body:JSON.stringify({}),method:"POST"})},isRefreshTokenSuccessful=e=>e?.status?.toLowerCase?.()==="success"},3571:(e,t,r)=>{"use strict";r.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var a=r(28529),o=r(43412),i=r.n(o);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}let __WEBPACK_DEFAULT_EXPORT__=()=>((0,a.W)(e=>{window.dataLayer.push({ecommerce:null});let t=e.isEcommerceEvent?{event:e.name,ecommerce:e.params}: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){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({event:e.name},e.params);window.dataLayer.push(t),r(73982)(`./${i().platform}`).then(({default:t})=>{t(e)})}),null)},71041:(e,t,r)=>{"use strict";r.d(t,{i8:()=>y,jD:()=>useCart});var a=r(25487),o=r(29380),i=r(16689),n=r(43412),s=r.n(n),l=r(57440),c=r(97358),u=r(50135);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}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){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let d=a.D5,isGift=e=>0===e.price,getItemId=e=>[e.itemOffered.sku,e.seller.identifier,e.itemOffered.additionalProperty?.map(({propertyID:e})=>e).join("-")].filter(Boolean).join("::"),validateCart=async e=>{let{validateCart:t=null}=await (0,l.W)(d,{session:c.Qf.read(),cart:{order:{orderNumber:e.id,shouldSplitItem:e.shouldSplitItem,acceptedOffer:e.items.map(({price:e,listPrice:t,seller:r,quantity:a,itemOffered:o})=>({price:e,listPrice:t,seller:r,quantity:a,itemOffered:{sku:o.sku,image:o.image,name:o.name,additionalProperty:o.additionalProperty}}))}}});return t&&{id:t.order.orderNumber,items:t.order.acceptedOffer.map(e=>_objectSpread(_objectSpread({},e),{},{id:getItemId(e)})),messages:t.messages,shouldSplitItem:t.order.shouldSplitItem}},[p,m]=(0,u.d)(validateCart),f=(0,o.n)(s().cart,m),y=_objectSpread(_objectSpread({},f),{},{addItem:e=>{let t=_objectSpread(_objectSpread({},e),{},{id:getItemId(e)});f.addItem(t)}}),useCart=({useUnitMultiplier:e}={useUnitMultiplier:!1})=>{let t=(0,u.o)(y),r=(0,u.o)(p);return(0,i.useMemo)(()=>{let a=t.items.reduce((t,r)=>{t.total+=r.price*r.quantity,t.totalWithTaxes+=r.priceWithTaxes*r.quantity;let a=e?r.quantity*(r?.itemOffered?.unitMultiplier??1):r.quantity;return t.totalItems+=isGift(r)?0:a,t.subTotal+=r.listPrice*a,t.subTotalWithTaxes+=r.listPriceWithTaxes*a,t},{totalItems:0,total:0,subTotal:0,totalWithTaxes:0,subTotalWithTaxes:0});return _objectSpread(_objectSpread(_objectSpread({},t),a),{},{isValidating:r,messages:t.messages,gifts:t.items.filter(e=>isGift(e)),items:t.items.filter(e=>!isGift(e)),totalUniqueItems:t.items.length})},[t,r,e])}},13028:(e,t,r)=>{"use strict";r.d(t,{L:()=>DeliveryPromiseProvider,P:()=>useDeliveryPromiseContext});var a=r(12404),o=r.n(a),i=r(16689),n=r(97358),s=r(78209),l=r(25487),c=r(43412),u=r(57440);let d=l.Rb,getPickupPoints=async({geoCoordinates:e})=>{if(!c.deliveryPromise.enabled||!e)return[];let t=await (0,u.W)(d,{geoCoordinates:e??void 0});if(!t)return[];let r=t.pickupPoints?.pickupPointDistances?.filter(e=>e.isActive).map(e=>({id:e?.pickupId,name:e?.pickupName,totalItems:t.pickupPoints?.pickupPointDistances?.length??0,address:{street:e?.address?.street,number:e?.address?.number,postalCode:e?.address?.postalCode,city:e?.address?.city,state:e?.address?.state},distance:e?.distance}));return r};var p=r(52011),m=r(20997);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}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){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let f=(0,i.createContext)(void 0);function DeliveryPromiseProvider({children:e}){let{postalCode:t,geoCoordinates:r}=(0,n.kP)(),{0:a,1:l}=(0,i.useReducer)(s.pO,void 0,s.wL);(0,i.useEffect)(()=>{t&&a.shouldUpdatePickupPoints&&async function(){let e=await getPickupPoints({geoCoordinates:a.simulatePickupPoints&&a.pickupPointsSimulation?.geoCoordinates?a.pickupPointsSimulation.geoCoordinates:r});if(a.simulatePickupPoints){p.KL.set({pickupPointsSimulation:_objectSpread(_objectSpread({},a.pickupPointsSimulation),{},{pickupPoints:e}),shouldUpdatePickupPoints:!1,simulatePickupPoints:!1});return}if(0!==a.pickupPoints.length&&o()(a.pickupPoints,e))return;let t=e.some(({id:e})=>e===a.globalPickupPoint?.id);p.KL.set({globalPickupPoint:t?a.globalPickupPoint:null,defaultPickupPoint:null,pickupPoints:e,pickupPointsSimulation:s.sd,simulatePickupPoints:!1,shouldUpdatePickupPoints:!1})}()},[a.shouldUpdatePickupPoints,t]);let c=(0,i.useMemo)(()=>_objectSpread(_objectSpread({},a),{},{dispatchDeliveryPromiseAction:l}),[a]);return m.jsx(f.Provider,{value:c,children:e})}function useDeliveryPromiseContext(){let e=(0,i.useContext)(f);if(void 0===e)throw Error("Missing Delivery Promise context on React tree");return e}},78209:(e,t,r)=>{"use strict";function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}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){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}r.d(t,{pO:()=>deliveryPromiseReducer,sd:()=>a,wL:()=>initializeDeliveryPromiseState});let a={pickupPoints:[],geoCoordinates:null},initializeDeliveryPromiseState=()=>({pickupPoints:[],defaultPickupPoint:null,globalPickupPoint:null,shouldUpdatePickupPoints:!1,simulatePickupPoints:!1,pickupPointsSimulation:a}),deliveryPromiseReducer=(e,t)=>{let{type:r}=t;switch(r){case"updatePickupPoints":{let{payload:r}=t;return _objectSpread(_objectSpread({},e),{},{defaultPickupPoint:null,globalPickupPoint:null,pickupPoints:r.pickupPoints,shouldUpdatePickupPoints:r.shouldUpdatePickupPoints})}case"onPostalCodeChange":if(t.payload){let{payload:{simulatePickupPoints:r,validatedSession:a}}=t;return _objectSpread(_objectSpread({},e),{},{simulatePickupPoints:r,pickupPointsSimulation:_objectSpread(_objectSpread({},e.pickupPointsSimulation),{},{geoCoordinates:a.geoCoordinates}),shouldUpdatePickupPoints:!0})}return _objectSpread(_objectSpread({},e),{},{pickupPointsSimulation:a,shouldUpdatePickupPoints:!0});case"changePickupPoint":{let{payload:r}=t;return _objectSpread(_objectSpread({},e),{},{defaultPickupPoint:r})}case"changeGlobalPickupPoint":{let{payload:r}=t;return _objectSpread(_objectSpread({},e),{},{globalPickupPoint:r})}case"updateDeliveryPromiseState":{let{payload:r}=t;return _objectSpread(_objectSpread({},e),r)}case"clearPickupPointsSimulation":return _objectSpread(_objectSpread({},e),{},{simulatePickupPoints:!1,pickupPointsSimulation:a});default:throw Error(`Action ${r} not implemented`)}}},52011:(e,t,r)=>{"use strict";r.d(t,{DX:()=>v,KL:()=>w,d:()=>g,gA:()=>f,sG:()=>m,yp:()=>y,z0:()=>useDeliveryPromise});var a=r(12404),o=r.n(a),i=r(16689),n=r(49578),s=r(69029),l=r(9664),c=r(97358),u=r(43412),d=r(13028),p=r(78209);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}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){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let m="pickupPoint",f="shipping",y="pickup-in-point",b="all-delivery-methods",g="pickup-all",P="all-delivery-options",v="delivery-options",h="dynamic-estimate",S="in-stock",_=(0,n.M)({pickupPoints:[],defaultPickupPoint:null,globalPickupPoint:null,shouldUpdatePickupPoints:!1,pickupPointsSimulation:void 0,simulatePickupPoints:!1},"fs::deliveryPromise"),w=_objectSpread(_objectSpread({},_),{},{set:e=>{let t=_.read(),r=_objectSpread(_objectSpread({},t),e);o()(t,r)||_.set(r)}});function useDeliveryPromise({allFacets:e,selectedFilterFacets:t,deliveryPromiseSettings:r,fallbackToFirstPickupPoint:a=!0,deliveryPromiseBadges:o}={}){let{postalCode:n}=(0,c.kP)(),{state:g,setState:_}=(0,s.R)(),{pickupPoints:j,defaultPickupPoint:k,globalPickupPoint:C,pickupPointsSimulation:D,dispatchDeliveryPromiseAction:E,shouldUpdatePickupPoints:T}=(0,d.P)(),x=u.deliveryPromise.enabled,I=r?.deliveryOptions?.enabled??!0,N=r?.inStock?.enabled??!1,R=(0,i.useMemo)(()=>t??g.selectedFacets,[t,g.selectedFacets]),A=(0,i.useMemo)(()=>R.find(({key:e})=>e===m)?.value,[R]);(0,i.useEffect)(()=>{let e=[w.subscribe(e=>{E({type:"updateDeliveryPromiseState",payload:e})})];return()=>{e.forEach(e=>e())}},[]),(0,i.useEffect)(()=>{0!==j.length&&w.set({defaultPickupPoint:F(A)})},[j,A]),(0,i.useEffect)(()=>{let e=R.some(({key:e})=>e===f),t=!!C&&!e;t&&_({selectedFacets:(0,l.a2)(R,[{key:f,value:y},{key:m,value:C.id}],!0),page:0})},[]);let F=(0,i.useCallback)(e=>{if(!j?.length)return;let t=j?.find(({id:t})=>t===e)??k??C;return a&&!t?j[0]:t},[j,k,C]),M=(0,i.useMemo)(()=>({value:y,label:k?.name??k?.address.street,selected:R?.some(({key:e,value:t})=>t===y||e===m),quantity:k?.totalItems}),[k,R]),L=(0,i.useMemo)(()=>({key:S,label:S,__typename:"StoreFacetBoolean",values:[{value:"true",label:r?.inStock?.label??"In-stock only",selected:R.some(({key:e,value:t})=>e===S&&"true"===t),quantity:null}]}),[r,R]),{0:U,1:K}=(0,i.useMemo)(()=>[{value:b,label:r?.deliveryMethods?.allDeliveryMethods??"All delivery methods",selected:!R.some(({key:e})=>e===f)||R?.some(({key:e,value:t})=>e===f&&t===b),quantity:0},{value:P,label:r?.deliveryOptions?.allDeliveryOptions??"All delivery options",selected:!R.some(({key:e})=>e===v)||R?.some(({key:e,value:t})=>e===v&&t===P),quantity:0}],[R,r,M]),$=(0,i.useCallback)(({facet:e=null,facets:t=[],filterDispatch:r})=>{var a;let o=!0,i=t?.length!==0?t:[e],n=R;if(e?.value===y?i.push({key:m,value:k?.id}):(o="string"==typeof(a=e?.key)&&O.some(e=>e===a),n=n.filter(({key:e})=>e!==m),i.concat(n)),r){r({type:"toggleFacets",payload:{unique:o,facets:i}});return}_({selectedFacets:(0,l.a2)(n,i,o),page:0})},[R,k]),W=(0,i.useMemo)(()=>{if(!e)return[];if(!x||!n)return e.filter(({key:e})=>e!==f&&e!==v&&e!==h);let t=e.filter(({key:e})=>e!==h).filter(({key:e})=>!!I||e!==v);return N&&!t.find(({key:e})=>e===S)&&t.find(({key:e})=>e===f)&&t.push(L),t.map(e=>{if("StoreFacetBoolean"!==e.__typename)return e;if(e.key===v)return e.values=withUniqueFacet(e.values,K),e;if(e.key!==f)return e;e.values=withUniqueFacet(e.values,U);let t=e.values.findIndex(e=>e?.value===y);if(-1===t||k)-1===t&&k?e.values.push(M):e.values[t]&&e.values[t]?.label!==M.label&&(e.values[t]=M);else{let r=R.find(({key:e})=>e===f);if(r){let e=R.filter(({key:e,value:t})=>t===y||e===m);e.length?$({facets:e}):$({facet:r})}e.values=e.values.filter((e,r)=>r!==t)}return e.values=e.values.sort((e,t)=>(e.value??"").localeCompare(t.value??"")),e}).sort((e,t)=>{let getPriority=e=>e===f?0:e===v?1:e===S?2:3;return getPriority(e.key)-getPriority(t.key)})},[U,M,e,k,C,j,R,$,A]),V=(0,i.useCallback)(({simulatePickupPoints:e=!1,validatedSession:t=null}={})=>{let r={country:t?.country,postalCode:t?.postalCode,geoCoordinates:t?.geoCoordinates};E(_objectSpread({type:"onPostalCodeChange"},e?{payload:{simulatePickupPoints:e,validatedSession:_objectSpread({},r)}}:void 0))},[]),q=(0,i.useCallback)(()=>w.set({pickupPointsSimulation:p.sd}),[]),B={[f]:r?.deliveryMethods?.title??"Delivery",[v]:r?.deliveryOptions?.title??"Delivery Option",[S]:r?.inStock?.title??"Availability"};function getBadgeLabel(e,t){let a={delivery:{available:r?.deliveryPromiseBadges?.delivery??"Available for shipping",unavailable:r?.deliveryPromiseBadges?.deliveryUnavailable??"Unavailable for shipping"},"pickup-in-point":{available:r?.deliveryPromiseBadges?.pickupInPoint??"Available for pickup",unavailable:r?.deliveryPromiseBadges?.pickupInPointUnavailable??"Unavailable for pickup"}};return a[e]?t?a[e].available:a[e].unavailable:e}let Q=function(){if(!o||0===o.length)return[];let e=[],t=o?.map(e=>e.typeName),r=t?.includes("delivery"),a=t?.includes("pickup-in-point");return r?e.push({label:getBadgeLabel("delivery",!0),availability:!0}):e.push({label:getBadgeLabel("delivery",!1),availability:!1}),a?e.push({label:getBadgeLabel("pickup-in-point",!0),availability:!0}):e.push({label:getBadgeLabel("pickup-in-point",!1),availability:!1}),e}(),H=!!n&&x&&(r?.deliveryPromiseBadges?.enabled??!0)&&Q.length>0;return{mandatory:u.deliveryPromise.mandatory,isEnabled:x,pickupPoints:j,defaultPickupPoint:k,selectedPickupPointFacet:A,pickupPointsSimulation:D,clearPickupPointsSimulation:q,fetchingPickupPoints:T,changePickupPoint:e=>{w.set({defaultPickupPoint:e})},globalPickupPoint:C,changeGlobalPickupPoint:e=>{w.set({globalPickupPoint:e})},pickupPointByID:F,facets:W,onPostalCodeChange:V,onDeliveryFacetChange:$,labelsMap:B,isPickupAllEnabled:j?.length>0&&(r?.deliveryMethods?.pickupAll?.enabled??!1),shouldDisplayDeliveryButton:x&&!n,shouldDisplayDeliveryPromiseBadges:H,badges:Q}}function withUniqueFacet(e,t){return[t,...e.filter(e=>e.value!==t.value)]}let O=["shipping","pickupPoint","delivery-options"]},25326:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var a=r(16689);let getReloads=()=>Number(window.sessionStorage.getItem("store:reloads")??"0"),setReloads=e=>window.sessionStorage.setItem("store:reloads",`${e}`),canRecover=()=>2>getReloads(),isFrameworkLevelError=e=>e?.name==="ChunkLoadError";let ErrorBoundary=class ErrorBoundary extends a.Component{constructor(...e){super(...e),function(e,t,r){t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(this,"state",{hasError:!1,error:null})}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){if(console.error(`React Error: ${e.message} ${t.componentStack}`),window.location.pathname.startsWith("/404")||window.location.pathname.startsWith("/500"))return;let r=encodeURIComponent(window.location.pathname),a=e?.extensions?.exception?.status===404;isFrameworkLevelError(e)&&canRecover()?(setReloads(getReloads()+1),window.location.reload()):a?window.location.href=`/404?from=${r}`:window.location.href=`/500?from=${r}&errorId=unknown`}render(){return this.state.hasError?null:this.props.children}};let o=ErrorBoundary},77938:(e,t,r)=>{"use strict";r.d(t,{Z:()=>useGeolocation});var a=r(16689),o=r(43412),i=r(98132),n=r(97358),s=r(17552);function useGeolocation(){(0,a.useEffect)(()=>{o.deliveryPromise.enabled&&setTimeout(()=>{let e=n.Qf.read();e.postalCode&&e.geoCoordinates||(0,s.ne)(e).then(async t=>{if(e===t||(e=n.Qf.read()).postalCode||e.geoCoordinates)return;let r=await (0,n.je)(t);n.Qf.set(r??t)})},i.YQ)},[])}},57440:(e,t,r)=>{"use strict";function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}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){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}r.d(t,{W:()=>request});let a={POST:{"Content-Type":"application/json"}},request=async(e,t,r)=>{let{data:a,errors:o}=await baseRequest("/api/graphql",_objectSpread(_objectSpread({},r),{},{variables:t,operation:e}));if(o?.length)throw o[0];return a},baseRequest=async(e,{operation:t,variables:r,fetchOptions:o})=>{let{operationName:i,operationHash:n}=t.__meta__,s=o?.method!==void 0?o.method.toUpperCase():i.endsWith("Query")?"GET":"POST",l=new URLSearchParams(_objectSpread({operationName:i,operationHash:n},"GET"===s&&{variables:JSON.stringify(r)})),c="POST"===s?JSON.stringify({operationName:i,operationHash:n,variables:r}):void 0,u=`${e}?${l.toString()}`,d=await fetch(u,_objectSpread(_objectSpread({method:s,body:c},o),{},{headers:_objectSpread(_objectSpread({},a[s]),o?.headers)}));if(!d.ok){let e=d.statusText;return{errors:[{status:d.status,message:e}],data:void 0}}return d.json()}},97358:(e,t,r)=>{"use strict";r.d(t,{Qf:()=>S,je:()=>validateSession,kP:()=>useSession});var a=r(25487),o=r(88987),i=r(16689),n=r(12404),s=r.n(n),l=r(43412),c=r.n(l),u=r(38543),d=r(71041),p=r(57440),m=r(50135),f=r(17552);let y=["channel"],b=["hasOnlyDefaultSalesChannel"];function _objectWithoutProperties(e,t){if(null==e)return{};var r,a,o=function(e,t){if(null==e)return{};var r,a,o={},i=Object.keys(e);for(a=0;a<i.length;a++)r=i[a],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}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){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let g=a.$G,validateSession=async e=>{if(c().deliveryPromise?.enabled&&(!e.postalCode||e.postalCode===c().session.postalCode)){if(e.b2b&&e.b2b?.savedPostalCode)S.set(_objectSpread(_objectSpread({},e),{},{postalCode:e.b2b.savedPostalCode}));else{let t=await (0,f.Ph)(e);t&&S.set(t)}}try{if(!e)return null;let t=await (0,p.W)(g,{session:e,search:window.location.search});return t.validateSession}catch(r){let t=r?.status===401&&c().experimental?.refreshToken;if(t){let t=await (0,u.z)();if((0,u.N)(t)){let r=String(Math.floor(new Date(t?.refreshAfter).getTime()/1e3));S.set(_objectSpread(_objectSpread({},e),{},{refreshAfter:r}))}else S.set(_objectSpread(_objectSpread({},e),{},{refreshAfter:String(Math.floor(Date.now()/1e3)+3600)}))}}},[P,v]=(0,m.d)(validateSession),h=(0,o.S)(c().session,v),S=_objectSpread(_objectSpread({},h),{},{set:e=>{!0!==s()(e,h.read())&&(h.set(e),d.i8.set(d.i8.read()))}}),useSession=({filter:e}={filter:!0})=>{let t=S.read()??S.readInitial(),r=(0,m.o)(S),a=(0,m.o)(P),{isSessionReady:o}=useSessionReady({isValidating:a}),n=r??t,{channel:s}=n,l=_objectWithoutProperties(n,y);if(e){let e=JSON.parse(s),{hasOnlyDefaultSalesChannel:t}=e,r=_objectWithoutProperties(e,b);s=JSON.stringify(r)}return(0,i.useMemo)(()=>_objectSpread(_objectSpread({},l),{},{channel:s,isValidating:a,isSessionReady:o}),[a,l,s,o])},useSessionReady=({isValidating:e})=>{let{0:t,1:r}=(0,i.useState)(()=>!1),a=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{if(!a.current&&e){a.current=!0;return}if(a.current&&!e){r(!0);try{sessionStorage.setItem("faststore_session_ready","true")}catch{}return}},[e]),{isSessionReady:t}}},16423:(e,t,r)=>{"use strict";r.d(t,{Z:()=>useScrollRestoration});var a=r(16689),o=r(33339),i=r(69029);function useScrollRestoration(){let e=(0,o.useRouter)(),{resetInfiniteScroll:t}=(0,i.R)();(0,a.useEffect)(()=>{let r=!1;"scrollRestoration"in history&&(history.scrollRestoration="manual");let saveScrollPos=()=>{let e=window.history.state?.key;e&&sessionStorage.setItem(`__fs_scroll_${e}`,JSON.stringify({x:window.scrollX,y:window.scrollY}))},restoreScrollPos=async()=>{let e=window.history.state?.key;if(e){let t=sessionStorage.getItem(`__fs_scroll_${e}`);if(t){let{x:e,y:r}=await JSON.parse(t);setTimeout(()=>window.scrollTo(e,r),800)}}},onRouteChangeStart=e=>{!(r||e.includes(window.location.pathname))&&(saveScrollPos(),e.includes(window.location.pathname)||e.endsWith("/p")||t(0))};return e.beforePopState(()=>r=!0),e.events.on("routeChangeStart",onRouteChangeStart),window.addEventListener("popstate",restoreScrollPos),()=>{e.beforePopState(()=>!0),e.events.off("routeChangeStart",onRouteChangeStart),window.removeEventListener("popstate",restoreScrollPos),"scrollRestoration"in history&&(history.scrollRestoration="auto")}},[e])}},50135:(e,t,r)=>{"use strict";r.d(t,{d:()=>createValidationStore,o:()=>useStore});var a=r(73365),o=r(16689);let useStore=e=>(0,o.useSyncExternalStore)(e.subscribe,e.read,e.readInitial),createValidationStore=e=>{let t=(0,a.M)(!1),onValidate=async r=>{try{return t.set(!0),await e(r)}finally{t.set(!1)}};return[t,onValidate]}},17552:(e,t,r)=>{"use strict";let a,o;r.d(t,{ne:()=>getNavigatorGeolocation,Ph:()=>getPostalCode,MS:()=>useCheckRegionState});var i=r(25487),n=r(57440);let s=i.pR,getAddresses=async e=>{let t=await (0,n.W)(s,{id:e});return t.profile.addresses},getSavedAddress=async e=>{let t=await getAddresses(e);return t?t[0]:null};var l=r(43412),c=r.n(l),u=r(97358),d=r(16689),p=r(16652);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}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){var a;a=r[t],t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}let set=(e,t)=>t&&Object.keys(t).length?_objectSpread(_objectSpread({},e),t):e,getUserSavedAddress=async e=>{if(a)return set(e,a);let t=e?.person;if(!t?.id)return Promise.resolve(e);let{city:r,country:o,geoCoordinate:i,postalCode:n}=await getSavedAddress(t.id)??{};return set(e,a={city:r,country:o,geoCoordinates:{latitude:i?.[1]??null,longitude:i?.[0]??null},postalCode:n})},getNavigatorGeolocation=e=>new Promise(t=>o?t(set(e,{geoCoordinates:o})):navigator&&"geolocation"in navigator?navigator.geolocation.getCurrentPosition(({coords:{latitude:r,longitude:a}})=>t(set(e,{geoCoordinates:o={latitude:r,longitude:a}})),r=>(console.warn("Failed to get navigator location: ",r),t(e)),{timeout:18e4}):e),getPostalCode=async e=>{let t=await getUserSavedAddress(e);if(t!==e)return t;let r=c().session?.postalCode??null;return set(e,{postalCode:r})},{deliveryPromise:m,session:f}=c(),useCheckRegionState=e=>{let{0:t,1:r}=(0,d.useState)("closed"),{openModal:a,openPopover:o,modal:i,closePopover:n}=(0,p.l8)();return(0,d.useEffect)(()=>{if(m.enabled)return u.Qf.subscribe(e=>{if(m.mandatory&&!e?.postalCode&&!i)return a();r(t=>{let r=function(e){let t=!!f.postalCode&&f.postalCode===e?.postalCode,r=!t&&(e?.postalCode||m.mandatory)?"closed":"open";return r}(e);return t!==r?r:t})})},[i]),(0,d.useEffect)(()=>{if("closed"===t){n();return}e&&o({isOpen:!0,triggerRef:e})},[e,t]),{openModal:a,openPopover:o,regionPopoverState:t}}},4018:(e,t,r)=>{"use strict";function textToKebabCase(e){let t=e.replace(/[^\w\s]/gi,"-");return(t=(t=t.replace(/\s+/g,"-")).toLowerCase())??""}function textToTitleCase(e){return e?e.replace(/\S+/g,e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()):""}function camelCaseToTitle(e){if(!e)return"";let t=e.replace(/([a-z])([A-Z])/g,"$1 $2");return t.charAt(0).toUpperCase()+t.slice(1)}function extractStatusFromError(e){if(e?.extensions?.status)return e.extensions.status;if(!e?.message)return;let t=e.message.match(/{.*}$/);if(t)try{let e=JSON.parse(t[0]);if(e.status)return e.status;if(e.message){let t=JSON.parse(e.message);return t.status}}catch{console.error("Failed to parse error message:",t[0])}}function sanitizeHost(e){return e?e.replace(/^https?:\/\//,""):""}r.d(t,{B5:()=>textToKebabCase,E2:()=>extractStatusFromError,GZ:()=>buildFormData,Y1:()=>sanitizeHost,_W:()=>textToTitleCase,gi:()=>camelCaseToTitle,qo:()=>toArray});let buildFormData=e=>{let t=new FormData;return Object.keys(e).forEach(r=>{let a=e[r];t.append(r,null===a?"":String(a))}),t},toArray=e=>Array.isArray(e)?e:e?[e]:[]},45276:()=>{},16652:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>__WEBPACK_DEFAULT_EXPORT__,gK:()=>i,l8:()=>useUI});var a=r(16689),o=r.n(a);let i={setLocation:"setLocation",changeLocation:"changeLocation",changePickupPoint:"changePickupPoint",globalChangePickupPoint:"globalChangePickupPoint"},reducer=(e,t)=>{let{type:r}=t;switch(r){case"open":{let{payload:r}=t;return document.body.classList.add("no-scroll"),{...e,[r]:!0}}case"close":{let{payload:r}=t;return document.body.classList.remove("no-scroll"),{...e,[r]:!1}}case"pushToast":{let r=e.toasts.some(e=>e.message===t.payload.message&&e.status===t.payload.status);if(r)return e;return{...e,toasts:[...e.toasts,t.payload]}}case"popToast":return{...e,toasts:e.toasts.slice(1)};case"openPopover":return{...e,popover:{isOpen:!0,triggerRef:t.payload.triggerRef}};case"closePopover":return{...e,popover:{isOpen:!1,triggerRef:void 0}};case"openRegionSlider":return document.body.classList.add("no-scroll"),{...e,regionSlider:{type:t.payload,isOpen:!0}};case"closeRegionSlider":return e.filter||document.body.classList.remove("no-scroll"),{...e,regionSlider:{type:"none",isOpen:!1}};default:throw Error(`Action ${r} not implemented`)}},initializer=()=>({cart:!1,modal:!1,navbar:!1,filter:!1,toasts:[],popover:{isOpen:!1,triggerRef:void 0},regionSlider:{type:"none",isOpen:!1}}),n=(0,a.createContext)(void 0);function useUI(){let e=(0,a.useContext)(n);if(void 0===e)throw Error("Missing UI context on React tree");return e}let __WEBPACK_DEFAULT_EXPORT__=function({children:e}){let[t,r]=(0,a.useReducer)(reducer,void 0,initializer),i=(0,a.useMemo)(()=>({openFilter:()=>r({type:"open",payload:"filter"}),closeFilter:()=>r({type:"close",payload:"filter"}),openNavbar:()=>r({type:"open",payload:"navbar"}),closeNavbar:()=>r({type:"close",payload:"navbar"}),openCart:()=>r({type:"open",payload:"cart"}),closeCart:()=>r({type:"close",payload:"cart"}),openModal:()=>r({type:"open",payload:"modal"}),closeModal:()=>r({type:"close",payload:"modal"}),pushToast:e=>r({type:"pushToast",payload:e}),popToast:()=>r({type:"popToast"}),openPopover:e=>r({type:"openPopover",payload:e}),closePopover:()=>r({type:"closePopover"}),openRegionSlider:e=>r({type:"openRegionSlider",payload:e}),closeRegionSlider:()=>r({type:"closeRegionSlider"})}),[]),s=(0,a.useMemo)(()=>({...t,...i}),[i,t]);return o().createElement(n.Provider,{value:s},e)}},73982:(e,t,r)=>{var a={"./vtex":[7692,4365,7692],"./vtex/":[7692,4365,7692],"./vtex/index":[7692,4365,7692],"./vtex/index.ts":[7692,4365,7692],"./vtex/rc":[38068,8068],"./vtex/rc.ts":[38068,8068],"./vtex/search":[4365,4365],"./vtex/search.ts":[4365,4365]};function webpackAsyncContext(e){if(!r.o(a,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=a[e],o=t[0];return Promise.all(t.slice(1).map(r.e)).then(()=>r(o))}webpackAsyncContext.keys=()=>Object.keys(a),webpackAsyncContext.id=73982,e.exports=webpackAsyncContext},28529:(e,t,r)=>{"use strict";r.d(t,{W:()=>useAnalyticsEvent});var a=r(16689),o=r(14950);let useAnalyticsEvent=e=>{let t=(0,a.useCallback)(t=>{try{if(t.data.name!==o.vi)return;e((0,o.Wg)(t.data))}catch(e){console.error("Something went wrong while running Analytics handler")}},[e]);(0,a.useEffect)(()=>(window.addEventListener("message",t),()=>window.removeEventListener("message",t)),[t])}},14950:(e,t,r)=>{"use strict";r.d(t,{Mi:()=>a,Wg:()=>unwrap,re:()=>wrap,vi:()=>o});let a="store:",o="AnalyticsEvent",wrap=e=>({name:o,isEcommerceEvent:e.isEcommerceEvent??!0,params:{...e,name:`${a}${e.name}`}}),unwrap=e=>({...e.params,isEcommerceEvent:e.isEcommerceEvent??!0,name:e.params.name.slice(a.length,e.params.name.length)})},29380:(e,t,r)=>{"use strict";r.d(t,{n:()=>createCartStore});var a=r(12254),o=r(49578);let createCartStore=(e,t,r="fs::cart")=>{let i=(0,o.M)(e,r,t),getItem=e=>i.read().items.find(t=>t.id===e);return{...i,getItem,addItem:e=>{if(!e.id)throw new a.q("You must provide an `id` for items");if(e.quantity<0)throw new a.q("Item quantity needs to be higher than zero");let t=i.read(),r=getItem(e.id),o=r?{...e,quantity:r.quantity+e.quantity}:e;i.set({...t,items:r?t.items.map(e=>e===r?o:e):[...t.items,o]})},updateItemQuantity:(e,t)=>{let r=i.read(),o=getItem(e);if(!o)throw new a.q(`Item with id not found: ${e}`);let n={...o,quantity:t};i.set({...r,items:r.items.map(e=>e===o?n:e).filter(e=>e.quantity>0)})},removeItem:e=>{let t=i.read(),r=getItem(e);i.set({...t,items:t.items.filter(e=>e!==r)})},emptyCart:()=>i.set({...i.read(),items:[]}),inCart:e=>!!getItem(e),isEmpty:()=>0===i.read().items.length}}},9664:(e,t,r)=>{"use strict";r.d(t,{Ru:()=>removeFacet,a2:()=>toggleFacets,uL:()=>setFacet,wB:()=>toggleFacet,wb:()=>isSearchSort});var a=r(12254);let o=new Set(["price_desc","price_asc","orders_desc","name_desc","name_asc","release_desc","discount_desc","score_desc"]),isSearchSort=e=>o.has(e),removeFacet=(e,t)=>{let{value:r}=t,o=e.findIndex(e=>e.value===r);if(o<0)throw new a.q(`Cannot remove ${r} from search params`);return e.filter((e,t)=>t!==o)},setFacet=(e,t,r)=>{if(!0===r){let r=e.findIndex(e=>e.key===t.key);if(r>-1)return e.map((e,a)=>a===r?t:e)}return[...e,t]},toggleFacet=(e,t,r)=>{let a=e.find(e=>e.key===t.key&&e.value===t.value);return void 0!==a?removeFacet(e,t):setFacet(e,t,r)},toggleFacets=(e,t,r)=>t.reduce((e,t)=>toggleFacet(e,t,r),e)},86878:(e,t,r)=>{"use strict";r.d(t,{j:()=>initialize,X:()=>c});var a=r(62987),o=r(26142),i=r(72339),n=r(12404),s=r.n(n);let initialize=({sort:e="score_desc",selectedFacets:t=[],term:r=null,base:a="/",page:o=0,passThrough:i=new URLSearchParams}={})=>({sort:e,selectedFacets:t,term:r,base:a,page:o,passThrough:i}),l=(0,a.U)((e,t)=>({state:initialize(),setState:r=>{let a=t().state,o={...a,...r};!1===s()(a,o)&&e({state:o})},appendFacet:t=>e(e=>({state:{...e.state,selectedFacets:[...e.state.selectedFacets.filter(e=>!t.some(t=>t.key===e.key)),...t]}})),itemsPerPage:0,setItemsPerPage:t=>e({itemsPerPage:t}),pages:function(){try{let e=window.location.pathname.replace(/\W/g,"_");if(!e)return null;let t=getSessionStorageKey(e),r=sessionStorage.getItem(t);return r?JSON.parse(r):null}catch(e){return null}}()??[0],addPrevPage:()=>{let{pages:r}=t(),a=r[0]-1,o=[a,...r];setPagesSessionStorage(o),e({pages:o})},addNextPage:()=>{let{pages:r}=t(),a=Number(r.at(-1))+1,o=[...r,a];setPagesSessionStorage(o),e({pages:o})},resetInfiniteScroll:t=>{let r=[t];setPagesSessionStorage(r),e({pages:r})},parseURL:r=>{let a=(0,o.Q)(r),n=(0,i.Z)(t().state);(0,i.Z)(a).href!==n.href&&e({state:a})},serializedState:()=>(0,i.Z)(t().state),initialized:!1,reset:()=>{e({state:{...initialize({base:t().state.base})}})},start:(r,a)=>{t().initialized||e(e=>({initialized:!0,state:initialize({...e.state,...a,...(0,o.Q)(new URL(r,"http://localhost"))}),itemsPerPage:a.itemsPerPage??e.itemsPerPage,pages:a.pages??e.pages}))}})),c=(e=>{for(let t of(e.use={},Object.keys(e.getState())))e.use[t]=()=>e(e=>e[t]);return e})(l),getSessionStorageKey=e=>`__fs_gallery_page_${e}`;function setPagesSessionStorage(e){try{let t=window.location.pathname.replace(/\W/g,"_");if(!t)return;let r=getSessionStorageKey(t);sessionStorage.setItem(r,JSON.stringify(e))}catch(e){return}}},26142:(e,t,r)=>{"use strict";r.d(t,{Q:()=>parse});var a=r(12254),o=r(9664),i=r(86878);let parse=({pathname:e,searchParams:t})=>{let r=(0,i.j)({base:e,term:t.get("q")??null,sort:t.get("sort")??void 0,page:Number(t.get("page")??0)});if(!(0,o.wb)(r.sort))throw new a.q(`Uknown sorting option ${r.sort}`);let n=t.get("facets")?.split(",")??[];for(let e of n){let a=t.getAll(e);for(let t of a)r.selectedFacets=(0,o.uL)(r.selectedFacets,{key:e,value:t})}return r.passThrough=function(e,t){let r=new URLSearchParams,a=new Set(t),o=Array.from(e.entries());for(let[e,t]of o)a.has(e)||r.append(e,t);return r}(t,["q","sort","page","facets",...n]),r}},69029:(e,t,r)=>{"use strict";r.d(t,{R:()=>useSearch});var a=r(86878);let useSearch=()=>{let e=(0,a.X)();return e}},88987:(e,t,r)=>{"use strict";r.d(t,{S:()=>createSessionStore});var a=r(49578);let createSessionStore=(e,t,r="fs::session")=>(0,a.M)(e,r,t)},73365:(e,t,r)=>{"use strict";r.d(t,{M:()=>createStore});let createStore=e=>{let t=new Set,r=new Set,a=e;return{set:e=>{a=e,r.forEach(e=>e()),r.clear(),t.forEach(t=>{let a=t(e);"function"==typeof a&&r.add(a)})},read:()=>a,readInitial:()=>e,subscribe:e=>(t.add(e),()=>{t.delete(e)})}}},49578:(e,t,r)=>{"use strict";r.d(t,{M:()=>createStore});var a=r(74375),o=r(25214),i=r(78901),n=r(68956),s=r(73365);let identity=e=>e,createStore=(e,t,r)=>(0,n.q)([t?(0,i.r)(t):identity,t?(0,a.R)(t):identity,r?(0,o.A)(r):identity],(0,s.M)(e))},25214:(e,t,r)=>{"use strict";r.d(t,{A:()=>optimistic});let trivial=async()=>null,optimistic=(e=trivial)=>{let t=Promise.resolve();return r=>(r.subscribe(a=>{let o=!1,handler=async()=>{if(o)return;let t=await e(a);o||null==t||r.set(t)};return t=t.then(handler).catch(e=>{console.error("Error in optimistic validation:",e)}),()=>{o=!0}}),r)}},74375:(e,t,r)=>{"use strict";r.d(t,{R:()=>persisted});var a=r(87337);let getIDB=async e=>{try{return await (0,a.U2)(e)}catch(e){return}},setIDB=async(e,t)=>{try{await (0,a.t8)(e,t)}catch(e){}},debounce=(e,t)=>{let r;return(...a)=>{clearTimeout(r),r=setTimeout(()=>{e(...a)},t)}},persisted=e=>t=>{let handler=async()=>{let r=await getIDB(e);"undefined"!=typeof document&&t.set(r??t.readInitial())},r=debounce(handler,100);return r(),globalThis.addEventListener?.("focus",()=>r()),globalThis.document?.addEventListener("visibilitychange",()=>"visible"===document.visibilityState&&r()),t.subscribe(t=>{setIDB(e,t)}),t}},78901:(e,t,r)=>{"use strict";r.d(t,{r:()=>singleton}),globalThis.faststore_sdk_stores=globalThis.faststore_sdk_stores??new Map;let singleton=e=>t=>{let r=globalThis.faststore_sdk_stores;return r.has(e)||r.set(e,t),r.get(e)}},68956:(e,t,r)=>{"use strict";r.d(t,{q:()=>compose});let compose=(e,t)=>e.reduce((e,t)=>t(e),t)},12254:(e,t,r)=>{"use strict";r.d(t,{q:()=>SDKError});let SDKError=class SDKError extends Error{constructor(e){super(`[sdk]: ${e}`)}}},72339:(e,t,r)=>{"use strict";r.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});let __WEBPACK_DEFAULT_EXPORT__=e=>{let t=new URL(e.base,"http://localhost"),{page:r,selectedFacets:a,sort:o,term:i,passThrough:n}=e;null!==i&&t.searchParams.set("q",i);let s=new Set;for(let e of a)t.searchParams.append(e.key,e.value),s.add(e.key);if(a.length>0&&t.searchParams.set("facets",Array.from(s).join(",")),t.searchParams.set("sort",o),t.searchParams.set("page",r.toString()),n)for(let[e,r]of n.entries())t.searchParams.append(e,r);return t}}};