exports.id=9630,exports.ids=[9630],exports.modules={25487:(e,t,r)=>{"use strict";r.d(t,{$G:()=>E,Ce:()=>C,D5:()=>g,Fs:()=>y,HZ:()=>v,M:()=>D,Pq:()=>T,Rb:()=>P,UZ:()=>d,Ud:()=>o,VA:()=>w,Yz:()=>l,bi:()=>_,cD:()=>j,dO:()=>p,fW:()=>b,fh:()=>n,gN:()=>h,gU:()=>S,hM:()=>c,j9:()=>a,lZ:()=>x,pR:()=>k,pi:()=>i,rd:()=>f,sE:()=>s,vX:()=>u,vt:()=>m,wA:()=>O});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
  }
}
    `,{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 n=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 i={__meta__:{operationName:"ServerAccountPageQuery",operationHash:"47315a3cd26ddd9c7fa963778988464341b8193f"}},s={__meta__:{operationName:"ServerCollectionPageQuery",operationHash:"4b33c5c07f440dc7489e55619dc2211a13786e72"}},c={__meta__:{operationName:"ServerProductQuery",operationHash:"e855903879c6504e90269e6e010549bc6de933eb"}},l={__meta__:{operationName:"ServerOrderDetailsQuery",operationHash:"2c5dca039e0aa4924e9e583f5afbe522758ca7c4"}},u={__meta__:{operationName:"ServerListOrdersQuery",operationHash:"ee84ac3f5b58c5e1950a927a42c5c1dd6012fcc4"}},d={__meta__:{operationName:"ServerProfileQuery",operationHash:"0ed4b5db8fed122d8418195d01fb91b30261d587"}},p={__meta__:{operationName:"ServerSecurity",operationHash:"63c6eadbe8b77c0c3c91406589755accba5cf155"}},m={__meta__:{operationName:"ServerUserDetailsQuery",operationHash:"522e5feeb80e67cee931bc98eac9d08ea75c75d2"}},f={__meta__:{operationName:"CancelOrderMutation",operationHash:"e2b06da6840614d3c72768e56579b9d3b8e80802"}},y={__meta__:{operationName:"ProcessOrderAuthorizationMutation",operationHash:"8c25d37c8d6e7c20ab21bb8a4f4e6a2fe320ea8d"}},b={__meta__:{operationName:"ValidateUser",operationHash:"32f99c73c3de958b64d6bece1afe800469f54548"}},g={__meta__:{operationName:"ValidateCartMutation",operationHash:"c2b3f8bff73ebf6ac79d758c66cabbc21ba9fcc0"}},P={__meta__:{operationName:"ClientPickupPointsQuery",operationHash:"3fa04e88c811fcb5ece7206fd5aa745bdbc143a8"}},v={__meta__:{operationName:"SubscribeToNewsletter",operationHash:"feb7005103a859e2bc8cf2360d568806fd88deba"}},_={__meta__:{operationName:"ClientProductCountQuery",operationHash:"dc912e7272e3d9f5ced206837df87f544d39d0a5"}},h={__meta__:{operationName:"ClientAllVariantProductsQuery",operationHash:"4039e05f01a2fe449e20e8b82170d0ba94b1fbe9"}},S={__meta__:{operationName:"ClientManyProductsQuery",operationHash:"a4d0dbbeaafcf323c0850f282d4beaa2969ababa"}},w={__meta__:{operationName:"ClientProductGalleryQuery",operationHash:"bfc40da32b60f9404a4adb96b0856e3fbb04b076"}},O={__meta__:{operationName:"ClientProductQuery",operationHash:"47aa22eb750cb2c529e5eeafb921bfeadb67db71"}},j={__meta__:{operationName:"ClientManyProductsSelectedQuery",operationHash:"b668777678c137b8c7004297df4d8b8f2b29ee06"}},k={__meta__:{operationName:"ClientProfileQuery",operationHash:"34ea14c0d4a57ddf9bc11e4be0cd2b5a6506d3d4"}},C={__meta__:{operationName:"ClientSearchSuggestionsQuery",operationHash:"3df0026ed7d06f74ef470ecb6e4d2e7c70882451"}},D={__meta__:{operationName:"ClientTopSearchSuggestionsQuery",operationHash:"e2385b0f11726d0068f96548f57a8dd441c064e3"}},E={__meta__:{operationName:"ValidateSession",operationHash:"5da2700f5a69ee8835b1cb6c69e14f4b6e12c4df"}},T={__meta__:{operationName:"ClientShippingSimulationQuery",operationHash:"c35bad22f67f3eb34fea52bb49efa6b1da6b728d"}},x={__meta__:{operationName:"ServerManyProductsQuery",operationHash:"59ff9a09e138da0f0d5e7ab553c4889a6d4bc432"}}},45011:(e,t,r)=>{"use strict";r.d(t,{A:()=>l,Z:()=>c});var a=r(43412),o=r.n(a);let n=new Date().toISOString(),i=Date.now(),s={norobots:o().experimental.noRobots,dangerouslySetAllPagesToNoFollow:o().experimental.nofollow,dangerouslySetAllPagesToNoIndex:o().experimental.noindex,additionalMetaTags:[{name:"generated-at",content:n}]},c=s,l=i},98736:(e,t,r)=>{"use strict";r.d(t,{Z:()=>src_Layout});var a=r(16689),o=r(16422),n=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(2792),r.e(6393)]).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]),o=(0,n.useRouter)();return(0,a.useEffect)(()=>{t()},[o.pathname,t]),{sendPageViewEvent:t}};var i=r(20997);let src_Layout=function({children:e}){let t=(0,a.useMemo)(()=>e?.props,[]);return usePageViewEvent(t),(0,o.g)(),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),n=r(43412),i=r.n(n),s=r(39729),c=r(36401),l=r(64369),u=r(20997),d=e([o]);o=(d.then?(await d)():d)[0];let p=i().analytics?.gtmContainerId,m="string"==typeof p,f="vtex"===i().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('${c.v}=')&&${m}?'dataLayer.push':null].filter(Boolean)}`}}),m&&u.jsx(c.Z,{containerId:p}),f&&u.jsx(l.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),n=r(20997);let __WEBPACK_DEFAULT_EXPORT__=function(){return(0,n.jsxs)(n.Fragment,{children:[n.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"),n.jsx("script",{type:"text/partytown",async:!0,src:"https://io.vtex.com.br/rc/rc.js"},"vtexrc.js-script"),n.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"),n.jsx("script",{type:"text/javascript",dangerouslySetInnerHTML:{__html:`
            window.vtexaf('init', {
              account: '${o().api.storeId}',
              env: '${o().api.environment}',
              workspace: '${o().api.workspace}'
            });
          `}},"vtexaf-config")]})}},16422:(e,t,r)=>{"use strict";r.d(t,{g:()=>useRegionModal});var a=r(16652),o=r(43412),n=r(16689),i=r(70031);function useRegionModal(){let{openModal:e}=(0,a.l8)(),{isValidating:t}=(0,i.kP)(),r=(0,n.useRef)(t),{0:s,1:c}=(0,n.useState)(!1),openRegionModal=()=>{let{postalCode:t}=i.Qf.read();t||e()};return(0,n.useEffect)(()=>{o.deliveryPromise.enabled&&(r.current&&!t&&(c(!0),o.deliveryPromise.mandatory&&openRegionModal()),r.current=t)},[openRegionModal]),{openRegionModal,isValidationComplete:s}}},98132:(e,t,r)=>{"use strict";r.d(t,{KS:()=>o,YQ:()=>n,gK:()=>a});let a=12,o=5,n=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),n=r(40968),i=r.n(n),s=r(33339),c=r(69029),l=r(16652),u=r(61992),d=r(98736),p=r(3571),m=r(13028),f=r(25326),y=r(77938),b=r(45011);r(45276);var g=r(98132),P=r(20997),v=r(16689),_=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=(_.then?(await _)():_)[0];let __WEBPACK_DEFAULT_EXPORT__=function({Component:e,pageProps:t}){(0,y.Z)();let r=(0,s.useRouter)(),{start:a}=(0,c.R)();return a(r.asPath,{itemsPerPage:g.gK}),(0,P.jsxs)(f.Z,{children:[(0,P.jsxs)(i(),{children:[" ",!process.env.DISABLE_3P_SCRIPTS&&P.jsx(u.Z,{})]}),P.jsx(o.DefaultSeo,_objectSpread({},b.Z)),P.jsx(p.Z,{}),P.jsx(l.ZP,{children:P.jsx(m.L,{children:P.jsx(d.Z,{children:(0,v.createElement)(e,_objectSpread(_objectSpread({},t),{},{key:t?.key}))})})})]})};a()}catch(e){a(e)}})},3571:(e,t,r)=>{"use strict";r.d(t,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var a=r(28529),o=r(43412),n=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)(`./${n().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),n=r(16689),i=r(43412),s=r.n(i),c=r(57440),l=r(70031),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,c.W)(d,{session:l.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,n.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),n=r(16689),i=r(70031),s=r(78209),c=r(25487),l=r(43412),u=r(57440);let d=c.Rb,getPickupPoints=async({geoCoordinates:e})=>{if(!l.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,n.createContext)(void 0);function DeliveryPromiseProvider({children:e}){let{postalCode:t,geoCoordinates:r}=(0,i.kP)(),{0:a,1:c}=(0,n.useReducer)(s.pO,void 0,s.wL);(0,n.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 l=(0,n.useMemo)(()=>_objectSpread(_objectSpread({},a),{},{dispatchDeliveryPromiseAction:c}),[a]);return m.jsx(f.Provider,{value:l,children:e})}function useDeliveryPromiseContext(){let e=(0,n.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,{KL:()=>v,d:()=>g,z0:()=>useDeliveryPromise});var a=r(12404),o=r.n(a),n=r(16689),i=r(49578),s=r(69029),c=r(9664),l=r(70031),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=(0,i.M)({pickupPoints:[],defaultPickupPoint:null,globalPickupPoint:null,shouldUpdatePickupPoints:!1,pickupPointsSimulation:void 0,simulatePickupPoints:!1},"fs::deliveryPromise"),v=_objectSpread(_objectSpread({},P),{},{set:e=>{let t=P.read(),r=_objectSpread(_objectSpread({},t),e);o()(t,r)||P.set(r)}});function useDeliveryPromise({allFacets:e,selectedFilterFacets:t,deliveryPromiseSettings:r,fallbackToFirstPickupPoint:a=!0}={}){let{postalCode:o}=(0,l.kP)(),{state:i,setState:g}=(0,s.R)(),{pickupPoints:P,defaultPickupPoint:h,globalPickupPoint:S,pickupPointsSimulation:w,dispatchDeliveryPromiseAction:O,shouldUpdatePickupPoints:j}=(0,d.P)(),k=u.deliveryPromise.enabled,C=(0,n.useMemo)(()=>t??i.selectedFacets,[t,i.selectedFacets]),D=(0,n.useMemo)(()=>C.find(({key:e})=>e===m)?.value,[C]);(0,n.useEffect)(()=>{let e=[v.subscribe(e=>{O({type:"updateDeliveryPromiseState",payload:e})})];return()=>{e.forEach(e=>e())}},[]),(0,n.useEffect)(()=>{0!==P.length&&v.set({defaultPickupPoint:E(D)})},[P,D]),(0,n.useEffect)(()=>{let e=C.some(({key:e})=>e===f),t=!!S&&!e;t&&g({selectedFacets:(0,c.a2)(C,[{key:f,value:y},{key:m,value:S.id}],!0),page:0})},[]);let E=(0,n.useCallback)(e=>{if(!P?.length)return;let t=P?.find(({id:t})=>t===e)??h??S;return a&&!t?P[0]:t},[P,h,S]),T=(0,n.useMemo)(()=>({value:y,label:h?.name??h?.address.street,selected:C?.some(({key:e,value:t})=>t===y||e===m),quantity:h?.totalItems}),[h,C]),x=(0,n.useMemo)(()=>({value:b,label:r?.deliveryMethods?.allDeliveryMethods??"All delivery methods",selected:!C.some(e=>e.key===f)||C?.some(e=>e.key===f&&e.value===b),quantity:0}),[C,r,T]),I=(0,n.useCallback)(({facet:e=null,facets:t=[],filterDispatch:r})=>{var a;let o=!0,n=t?.length!==0?t:[e],i=C;if(e?.value===y?n.push({key:m,value:h?.id}):(o="string"==typeof(a=e?.key)&&_.some(e=>e===a),i=i.filter(({key:e})=>e!==m),n.concat(i)),r){r({type:"toggleFacets",payload:{unique:o,facets:n}});return}g({selectedFacets:(0,c.a2)(i,n,o),page:0})},[C,h]),N=(0,n.useMemo)(()=>e?k&&o?e.map(e=>{if(e.key!==f||"StoreFacetBoolean"!==e.__typename)return e;e.values=e.values.filter(e=>e.value!==x.value).concat([x]);let t=e.values.findIndex(e=>e?.value===y);if(-1===t||h)-1===t&&h?e.values.push(T):e.values[t]&&e.values[t]?.label!==T.label&&(e.values[t]=T);else{let r=C.find(({key:e})=>e===f);if(r){let e=C.filter(({key:e,value:t})=>t===y||e===m);e.length?I({facets:e}):I({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}):e.filter(({key:e})=>e!==f):[],[x,T,e,h,S,P,C,I,D]),M=(0,n.useCallback)(({simulatePickupPoints:e=!1,validatedSession:t=null}={})=>{let r={country:t?.country,postalCode:t?.postalCode,geoCoordinates:t?.geoCoordinates};O(_objectSpread({type:"onPostalCodeChange"},e?{payload:{simulatePickupPoints:e,validatedSession:_objectSpread({},r)}}:void 0))},[]),R=(0,n.useCallback)(()=>v.set({pickupPointsSimulation:p.sd}),[]);return{mandatory:u.deliveryPromise.mandatory,isEnabled:k,pickupPoints:P,defaultPickupPoint:h,selectedPickupPointFacet:D,pickupPointsSimulation:w,clearPickupPointsSimulation:R,fetchingPickupPoints:j,changePickupPoint:e=>{v.set({defaultPickupPoint:e})},globalPickupPoint:S,changeGlobalPickupPoint:e=>{v.set({globalPickupPoint:e})},pickupPointByID:E,facets:N,onPostalCodeChange:M,onDeliveryFacetChange:I,deliveryLabel:r?.deliveryMethods?.title??"Delivery",isPickupAllEnabled:P?.length>0&&(r?.deliveryMethods?.pickupAll?.enabled??!1),shouldDisplayDeliveryButton:k&&!o}}let _=["shipping","pickupPoint"]},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),n=r(98132),i=r(70031);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}async function askGeolocationConsent(){let{postalCode:e,geoCoordinates:t}=i.Qf.read();!navigator?.geolocation||e&&t||navigator.geolocation.getCurrentPosition(async({coords:{latitude:e,longitude:t}})=>{let r=i.Qf.read();if(r.postalCode||r.geoCoordinates)return;let a=_objectSpread(_objectSpread({},r),{},{geoCoordinates:{latitude:e,longitude:t}}),o=await (0,i.je)(a);i.Qf.set(o??a)})}function useGeolocation(){(0,a.useEffect)(()=>{o.deliveryPromise.enabled&&setTimeout(()=>askGeolocationConsent(),n.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:n,operationHash:i}=t.__meta__,s=o?.method!==void 0?o.method.toUpperCase():n.endsWith("Query")?"GET":"POST",c=new URLSearchParams(_objectSpread({operationName:n,operationHash:i},"GET"===s&&{variables:JSON.stringify(r)})),l="POST"===s?JSON.stringify({operationName:n,operationHash:i,variables:r}):void 0,u=`${e}?${c.toString()}`,d=await fetch(u,_objectSpread(_objectSpread({method:s,body:l},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()}},70031:(e,t,r)=>{"use strict";r.d(t,{Qf:()=>S,kP:()=>useSession,je:()=>validateSession});var a=r(25487),o=r(88987),n=r(47881),i=r.n(n),s=r(16689),c=r(43412),l=r.n(c),u=r(4018),d=r(71041),p=r(57440);let m=a.pR,getAddresses=async e=>{let t=await (0,p.W)(m,{id:e});return t.profile.addresses},getSavedAddress=async e=>{let t=await getAddresses(e);return t?t[0]:null};var f=r(50135);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={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[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=`${l().storeUrl}/api/vtexid/refreshtoken/webstore`,P=a.$G,validateSession=async e=>{if(l().deliveryPromise?.enabled&&!e.postalCode){if(e.b2b&&e.b2b?.savedPostalCode)S.set(_objectSpread(_objectSpread({},e),{},{postalCode:e.b2b.savedPostalCode}));else if(e.person?.id){let t=await getSavedAddress(e.person?.id);t&&S.set(_objectSpread(_objectSpread({},e),{},{city:t?.city,postalCode:t?.postalCode,geoCoordinates:{latitude:t?.geoCoordinate?t?.geoCoordinate[1]:null,longitude:t?.geoCoordinate?t?.geoCoordinate[0]:null},country:t?.country}))}else{let t=h.readInitial().postalCode;t&&S.set(_objectSpread(_objectSpread({},e),{},{postalCode:t}))}}try{if(!e)return null;let t=await (0,p.W)(P,{session:e,search:window.location.search});return t.validateSession}catch(r){let t=r?.status===401&&l().experimental?.refreshToken;if(t){let t={"content-type":"application/json",Host:`${(0,u.Y1)(l().storeUrl)}`},r=await fetchWithRetry(g,{credentials:"include",headers:t,body:JSON.stringify({}),method:"POST"});if(r?.status?.toLowerCase?.()==="success"){let t=String(Math.floor(new Date(r?.refreshAfter).getTime()/1e3));S.set(_objectSpread(_objectSpread({},e),{},{refreshAfter:t}))}else S.set(_objectSpread(_objectSpread({},e),{},{refreshAfter:String(Math.floor(Date.now()/1e3)+3600)}))}}},[v,_]=(0,f.d)(validateSession),h=(0,o.S)(l().session,_),S=_objectSpread(_objectSpread({},h),{},{set:e=>{h.set(e),d.i8.set(d.i8.read())}}),useSession=({filter:e}={filter:!0})=>{let t=S.read()??S.readInitial(),r=(0,f.o)(S),a=(0,f.o)(v),o=r??t,{channel:n}=o,i=_objectWithoutProperties(o,y);if(e){let e=JSON.parse(n),{hasOnlyDefaultSalesChannel:t}=e,r=_objectWithoutProperties(e,b);n=JSON.stringify(r)}return(0,s.useMemo)(()=>_objectSpread(_objectSpread({},i),{},{channel:n,isValidating:a}),[a,i,n])};async function fetchWithRetry(e,t,r=3){for(let a=0;a<r;a++)try{let r=await i()(e,t);if(200!==r.status)continue;let a=await r.json();if(a.status?.toLowerCase?.()==="success")return a}catch{}}},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]}},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?.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});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}},45276:()=>{},16652:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>__WEBPACK_DEFAULT_EXPORT__,gK:()=>n,l8:()=>useUI});var a=r(16689),o=r.n(a);let n={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}}),i=(0,a.createContext)(void 0);function useUI(){let e=(0,a.useContext)(i);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),n=(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,...n}),[n,t]);return o().createElement(i.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 n=(0,o.M)(e,r,t),getItem=e=>n.read().items.find(t=>t.id===e);return{...n,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=n.read(),r=getItem(e.id),o=r?{...e,quantity:r.quantity+e.quantity}:e;n.set({...t,items:r?t.items.map(e=>e===r?o:e):[...t.items,o]})},updateItemQuantity:(e,t)=>{let r=n.read(),o=getItem(e);if(!o)throw new a.q(`Item with id not found: ${e}`);let i={...o,quantity:t};n.set({...r,items:r.items.map(e=>e===o?i:e).filter(e=>e.quantity>0)})},removeItem:e=>{let t=n.read(),r=getItem(e);n.set({...t,items:t.items.filter(e=>e!==r)})},emptyCart:()=>n.set({...n.read(),items:[]}),inCart:e=>!!getItem(e),isEmpty:()=>0===n.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:()=>l});var a=r(62987),o=r(26142),n=r(72339),i=r(12404),s=r.n(i);let initialize=({sort:e="score_desc",selectedFacets:t=[],term:r=null,base:a="/",page:o=0,passThrough:n=new URLSearchParams}={})=>({sort:e,selectedFacets:t,term:r,base:a,page:o,passThrough:n}),c=(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.history.state?.key;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),i=(0,n.Z)(t().state);(0,n.Z)(a).href!==i.href&&e({state:a})},serializedState:()=>(0,n.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}))}})),l=(e=>{for(let t of(e.use={},Object.keys(e.getState())))e.use[t]=()=>e(e=>e[t]);return e})(c),getSessionStorageKey=e=>`__fs_gallery_page_${e}`;function setPagesSessionStorage(e){try{let t=window.history.state?.key;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),n=r(86878);let parse=({pathname:e,searchParams:t})=>{let r=(0,n.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 i=t.get("facets")?.split(",")??[];for(let e of i){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",...i]),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),n=r(78901),i=r(68956),s=r(73365);let identity=e=>e,createStore=(e,t,r)=>(0,i.q)([t?(0,n.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,500);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:n,passThrough:i}=e;null!==n&&t.searchParams.set("q",n);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()),i)for(let[e,r]of i.entries())t.searchParams.append(e,r);return t}}};