@faststore/core 3.69.0 → 3.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +50 -50
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/cache/config.json +3 -3
  5. package/.next/cache/webpack/client-production/0.pack +0 -0
  6. package/.next/cache/webpack/client-production/index.pack +0 -0
  7. package/.next/cache/webpack/server-production/0.pack +0 -0
  8. package/.next/cache/webpack/server-production/index.pack +0 -0
  9. package/.next/prerender-manifest.js +1 -1
  10. package/.next/prerender-manifest.json +1 -1
  11. package/.next/react-loadable-manifest.json +18 -18
  12. package/.next/routes-manifest.json +1 -1
  13. package/.next/server/chunks/1780.js +1 -1
  14. package/.next/server/chunks/2778.js +2 -2
  15. package/.next/server/chunks/3882.js +1 -1
  16. package/.next/server/chunks/3918.js +1 -1
  17. package/.next/server/chunks/3963.js +1 -1
  18. package/.next/server/chunks/948.js +2 -2
  19. package/.next/server/chunks/9563.js +1 -1
  20. package/.next/server/middleware-build-manifest.js +1 -1
  21. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  22. package/.next/server/pages/404.js +1 -1
  23. package/.next/server/pages/500.js +1 -1
  24. package/.next/server/pages/[...slug].js +1 -1
  25. package/.next/server/pages/[slug]/p.js +1 -1
  26. package/.next/server/pages/api/graphql.js +1 -1
  27. package/.next/server/pages/en-US/404.html +1 -1
  28. package/.next/server/pages/en-US/500.html +1 -1
  29. package/.next/server/pages/en-US/checkout.html +1 -1
  30. package/.next/server/pages/en-US/login.html +1 -1
  31. package/.next/server/pages/en-US/s.html +1 -1
  32. package/.next/server/pages/en-US.html +1 -1
  33. package/.next/server/pages/index.js +1 -1
  34. package/.next/server/pages/login.js +1 -1
  35. package/.next/server/pages/s.js +1 -1
  36. package/.next/server/pages-manifest.json +1 -1
  37. package/.next/static/{8LqJdo90qttH83UstKDej → T-feA7OkkJoZOJ4u9O47z}/_buildManifest.js +1 -1
  38. package/.next/static/chunks/3166-e2e2d3255aa5f208.js +1 -0
  39. package/.next/static/chunks/6355.454b14737c2bf69c.js +1 -0
  40. package/.next/static/chunks/7191-df87383e8d7c078f.js +1 -0
  41. package/.next/static/chunks/9173-ed47aa8015d45a84.js +1 -0
  42. package/.next/static/chunks/BannerNewsletter.fe0181162c046991.js +1 -0
  43. package/.next/static/chunks/BannerText.681f118e9f149f6c.js +1 -0
  44. package/.next/static/chunks/Footer.0eb7e5cc7bce8103.js +1 -0
  45. package/.next/static/chunks/Newsletter.46c9113fa222890a.js +1 -0
  46. package/.next/static/chunks/ProductShelf.b75a7ab8e313ea07.js +1 -0
  47. package/.next/static/chunks/ProductTiles.35cd23ada22f5a96.js +1 -0
  48. package/.next/static/chunks/RegionModal.04b02aafc0836d49.js +1 -0
  49. package/.next/static/chunks/RegionSlider.d063ccee38bdfdb7.js +1 -0
  50. package/.next/static/chunks/pages/404-cc5de07438cb53b5.js +1 -0
  51. package/.next/static/chunks/pages/500-926ab913425651bc.js +1 -0
  52. package/.next/static/chunks/pages/[...slug]-b3a9bdfcf0127006.js +1 -0
  53. package/.next/static/chunks/pages/[slug]/p-3c16bf4c43aefc51.js +1 -0
  54. package/.next/static/chunks/pages/account/403-b65f508af4df4904.js +1 -0
  55. package/.next/static/chunks/pages/account/404-9a7f4c3464751182.js +1 -0
  56. package/.next/static/chunks/pages/index-004d6444cfaf59cb.js +1 -0
  57. package/.next/static/chunks/pages/login-3043634ec00661a8.js +1 -0
  58. package/.next/static/chunks/pages/s-3197dfed5c06ad7b.js +1 -0
  59. package/.next/static/chunks/{webpack-8b6c086380cf1398.js → webpack-b39da7001e937875.js} +1 -1
  60. package/.next/static/css/{92960607d6088082.css → 9bdd3be2a41064c6.css} +1 -1
  61. package/.next/trace +135 -135
  62. package/.turbo/turbo-build.log +19 -19
  63. package/.turbo/turbo-test.log +5 -5
  64. package/CHANGELOG.md +12 -0
  65. package/package.json +2 -2
  66. package/src/components/cms/RenderSections.tsx +5 -4
  67. package/src/components/cms/global/Components.ts +9 -8
  68. package/src/components/cms/home/Components.ts +7 -6
  69. package/src/components/cms/plp/Components.ts +8 -7
  70. package/src/components/cms/search/Components.ts +9 -8
  71. package/src/components/region/RegionModal/RegionModal.tsx +2 -0
  72. package/src/components/region/RegionPopover/RegionPopover.tsx +2 -0
  73. package/src/components/region/RegionSlider/RegionSlider.tsx +2 -0
  74. package/src/components/sections/Alert/Alert.tsx +2 -0
  75. package/src/components/sections/BannerNewsletter/BannerNewsletter.tsx +2 -0
  76. package/src/components/sections/BannerText/BannerText.tsx +2 -0
  77. package/src/components/sections/Breadcrumb/Breadcrumb.tsx +2 -0
  78. package/src/components/sections/CrossSellingShelf/CrossSellingShelf.tsx +2 -0
  79. package/src/components/sections/EmptyState/EmptyState.tsx +2 -0
  80. package/src/components/sections/Footer/Footer.tsx +2 -0
  81. package/src/components/sections/Hero/Hero.tsx +2 -0
  82. package/src/components/sections/Incentives/Incentives.tsx +2 -0
  83. package/src/components/sections/Navbar/Navbar.tsx +2 -0
  84. package/src/components/sections/Newsletter/Newsletter.tsx +2 -0
  85. package/src/components/sections/ProductDetails/ProductDetails.tsx +2 -0
  86. package/src/components/sections/ProductGallery/ProductGallery.tsx +2 -0
  87. package/src/components/sections/ProductShelf/ProductShelf.tsx +2 -0
  88. package/src/components/sections/ProductTiles/ProductTiles.tsx +2 -0
  89. package/src/components/sections/RegionBar/RegionBar.tsx +2 -0
  90. package/src/components/templates/LandingPage/LandingPage.tsx +9 -8
  91. package/src/components/ui/ProductShelf/ProductShelf.tsx +15 -1
  92. package/src/pages/404.tsx +2 -1
  93. package/src/pages/500.tsx +2 -1
  94. package/src/pages/[slug]/p.tsx +10 -9
  95. package/src/pages/login.tsx +2 -1
  96. package/src/sdk/deliveryPromise/useDeliveryPromiseFacets.ts +20 -0
  97. package/src/sdk/product/useLocalizedVariables.ts +2 -14
  98. package/src/utils/cms.ts +10 -0
  99. package/.next/static/chunks/3166-6af5e854c2f2913a.js +0 -1
  100. package/.next/static/chunks/6355.57d1a07f50ee6cc9.js +0 -1
  101. package/.next/static/chunks/7191-9bdd5f0c18fbd942.js +0 -1
  102. package/.next/static/chunks/9173-9fc2b806c0ac0b8d.js +0 -1
  103. package/.next/static/chunks/BannerNewsletter.a9ea51c53885c80f.js +0 -1
  104. package/.next/static/chunks/BannerText.21f106b180339df1.js +0 -1
  105. package/.next/static/chunks/Footer.09dddd47ce6c816f.js +0 -1
  106. package/.next/static/chunks/Newsletter.2c79d1813e9f9c95.js +0 -1
  107. package/.next/static/chunks/ProductShelf.299d0989eea49a79.js +0 -1
  108. package/.next/static/chunks/ProductTiles.ab99b919f3c0215f.js +0 -1
  109. package/.next/static/chunks/RegionModal.503f063f2e19b936.js +0 -1
  110. package/.next/static/chunks/RegionSlider.00de4571775d04cc.js +0 -1
  111. package/.next/static/chunks/pages/404-dca50618ea3e6fb6.js +0 -1
  112. package/.next/static/chunks/pages/500-ae6697c7631fb07a.js +0 -1
  113. package/.next/static/chunks/pages/[...slug]-debd8b208a0e3d02.js +0 -1
  114. package/.next/static/chunks/pages/[slug]/p-d782ecb21200f200.js +0 -1
  115. package/.next/static/chunks/pages/account/403-a3d8b31b4e9ee8a6.js +0 -1
  116. package/.next/static/chunks/pages/account/404-22b789f04fcdce39.js +0 -1
  117. package/.next/static/chunks/pages/index-b45c9535696b5ab1.js +0 -1
  118. package/.next/static/chunks/pages/login-bae3a4cdaaed110c.js +0 -1
  119. package/.next/static/chunks/pages/s-011eedb19dcdccc6.js +0 -1
  120. /package/.next/static/{8LqJdo90qttH83UstKDej → T-feA7OkkJoZOJ4u9O47z}/_ssgManifest.js +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";exports.id=9563,exports.ids=[9563],exports.modules={48116:(e,t,r)=>{r.d(t,{Z:()=>a});let a={}},29313:(e,t,r)=>{r.d(t,{Z:()=>a});let a={}},99563:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{h:()=>execute});var i=r(99664),n=r(37886),s=r(84656),o=r(36093),l=r(77397),c=r(45774),d=r(36550),u=r(57343),p=r(71017),m=r.n(p),g=r(57565),f=r(48116),h=r(29313),y=r(17486),S=e([i,n,s,o,l,c,d]);[i,n,s,o,l,c,d]=S.then?(await S)():S;let v=new Map(Object.entries(g)),I=(0,l.E9)(y.e),customFormatError=e=>e instanceof u.GraphQLError&&(0,l.T9)(e.originalError)?e:(console.error(e),new u.GraphQLError(`Sorry, something went wrong. ${e}`)),getEnvelop=async()=>(0,i.envelop)({plugins:[(0,i.useEngine)(u),(0,i.useSchema)(function(){let e=(0,c.loadFilesSync)(m().join(process.cwd(),"@generated"),{extensions:["graphql"]}),t=(0,l.yd)(y.e);return(0,d.makeExecutableSchema)({typeDefs:e,resolvers:[t,h.Z,f.Z]})}()),(0,i.useExtendContext)(I),(0,i.useMaskedErrors)({maskError:customFormatError}),(0,n.useGraphQlJit)(),(0,o.useValidationCache)(),(0,s.useParserCache)()]}),C=getEnvelop(),execute=async(e,t={headers:{}})=>{let{operation:r,variables:a,query:i}=e,{operationHash:n,operationName:s}=r.__meta__,o=i??v.get(n);if(null==o)throw new l.oY(`No query found for operationName ${s} and operationHash ${n}.`);let c=await C,{parse:d,contextFactory:u,execute:p,schema:m}=c(t),g=await u(t),{data:f,errors:h}=await p({schema:m,document:d(o),variableValues:a,contextValue:g,operationName:s});return{data:f,errors:h,extensions:{cookies:g.storage.cookies,cacheControl:g.cacheControl}}};a()}catch(e){a(e)}})},17486:(e,t,r)=>{r.d(t,{e:()=>n});var a=r(43412),i=r.n(a);let n={platform:i().platform,account:i().api.storeId,environment:i().api.environment,subDomainPrefix:i().api.subDomainPrefix??["www"],hideUnavailableItems:i().api.hideUnavailableItems,showSponsored:i().api.showSponsored,simulationBehavior:i().api.simulationBehavior,incrementAddress:i().api.incrementAddress,channel:i().session.channel,locale:i().session.locale,flags:{enableOrderFormSync:!0,enableUnavailableItemsOnCart:i().api?.enableUnavailableItemsOnCart??!1}}},48608:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{Z:()=>s});var i=r(38722),n=e([i]);i=(n.then?(await n)():n)[0];let min=(e,t)=>"number"==typeof e&&"number"==typeof t?e>t?t:e:"number"==typeof e?e:t,minScope=(e,t)=>"string"==typeof e&&"string"==typeof t?"public"===e&&"public"===t?"public":"private":e||t,s={typeDefs:"directive @cacheControl(sMaxAge: Int, staleWhileRevalidate: Int, scope: String) on FIELD_DEFINITION",transformer:e=>(0,i.mapSchema)(e,{[i.MapperKind.OBJECT_FIELD]:t=>{let r=i.getDirective(e,t,"cacheControl")?.[0];if(r){let{sMaxAge:e,staleWhileRevalidate:a,scope:i}=r,n=t.resolve;t.resolve=(t,r,s,o)=>(s.cacheControl={sMaxAge:min(s.cacheControl?.sMaxAge,e),staleWhileRevalidate:min(s.cacheControl?.staleWhileRevalidate,a),scope:minScope(s.cacheControl?.scope,i)},n?.(t,r,s,o))}return t}})};a()}catch(e){a(e)}})},77397:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{E9:()=>getContextFactory,T9:()=>o.T9,XD:()=>o.XD,oY:()=>o.oY,yd:()=>getResolvers});var i=r(2147),n=r(33999),s=r(48608),o=r(90782),l=e([n,s]);[n,s]=l.then?(await l)():l;let c={vtex:{getResolvers:i.y,getContextFactory:i.E}};s.Z;let getResolvers=e=>c[e.platform].getResolvers(e),getContextFactory=e=>c[e.platform].getContextFactory(e);a()}catch(e){a(e)}})},90782:(e,t,r)=>{r.d(t,{T9:()=>isFastStoreError,XD:()=>isNotFoundError,dR:()=>NotFoundError,lY:()=>ForbiddenError,oY:()=>BadRequestError});let FastStoreError=class FastStoreError extends Error{extensions;constructor(e,t){super(t),this.extensions=e,this.name="FastStoreError"}};let BadRequestError=class BadRequestError extends FastStoreError{constructor(e){super({status:400,type:"BadRequestError"},e)}};let NotFoundError=class NotFoundError extends FastStoreError{constructor(e){super({status:404,type:"NotFoundError"},e)}};let ForbiddenError=class ForbiddenError extends FastStoreError{constructor(e){super({status:403,type:"ForbiddenError"},e)}};let isFastStoreError=e=>e?.name==="FastStoreError",isNotFoundError=e=>e?.extensions?.type==="NotFoundError"},2147:(e,t,r)=>{r.d(t,{E:()=>getContextFactory,y:()=>getResolvers});var a=r(84802),i=r(73747),n=r.n(i);let s=JSON.parse('{"u2":"@faststore/api","i8":"3.68.1"}'),o=`${s.u2}@${s.i8}`,fetchAPI=async(e,t,r)=>{let a=await n()(e,{...t,headers:{...t?.headers??{},"User-Agent":o}});if(a.ok)return r?.storeCookies&&r.storeCookies(a.headers),204!==a.status?a.json():void 0;console.error(e,t,a);let i=await a.text();throw Error(i)},buildFormData=e=>{let t=new FormData;return Object.keys(e).forEach(r=>{let a=e[r];t.append(r,null==a?"":String(a))}),t},l=/^([^=]+)=([^;]*)/,updatesContextStorageCookies=(e,t)=>{let r=t.match(l);if(r){let a=r[1],i=r[2];e.storage.cookies.set(a,{value:i,setCookie:t})}},setCookie=(e,t)=>{t.getSetCookie().forEach(t=>updatesContextStorageCookies(e,t))},getStoreCookie=e=>t=>setCookie(e,t),getUpdatedCookie=e=>{if(!e.headers?.cookie)return null;let t=Array.from(e.storage.cookies.entries());return 0===t.length?e.headers.cookie:t.reduce((e,[t,{value:r}])=>updatesCookieValueByKey(e,t,r),e.headers.cookie)},getWithCookie=e=>function(t){let r=getUpdatedCookie(e);return r?{...t,cookie:r}:t},getAuthCookie=(e,t)=>{let r=(0,a.parse)(e),i=r[`VtexIdclientAutCookie_${t}`];return i||""},getWithAutCookie=e=>{let t=getWithCookie(e);return function(r,a){let i=t({"content-type":"application/json","X-FORWARDED-HOST":r}),n=getAuthCookie(e?.headers?.cookie??"",a);return i.VtexIdclientAutCookie=n,i}},updatesCookieValueByKey=(e,t,r)=>{let a=RegExp(`(${t})=([^;]*)`),i=e.match(a);return i?e.replace(i[0],`${i[1]}=${r}`):`${e};${t}=${r}`};function parseJwt(e){return e?JSON.parse(Buffer.from(e.split(".")[1],"base64").toString()):null}let c={method:"POST",headers:{"content-type":"application/json"}},VtexCommerce=({account:e,environment:t,incrementAddress:r,subDomainPrefix:i},n)=>{let s=`https://${e}.${t}.com.br`,o=getStoreCookie(n),l=getWithCookie(n),d=getWithAutCookie(n),u=new Headers(n.headers).get("x-forwarded-host")??n.headers?.host??"",p=i&&i.map(e=>e+".").find(e=>u.includes(e))||"",m=u.replace(p,"");return{catalog:{salesChannel:e=>fetchAPI(`${s}/api/catalog_system/pub/saleschannel/${e}`,void 0,{storeCookies:o}),brand:{list:()=>fetchAPI(`${s}/api/catalog_system/pub/brand/list`,void 0,{storeCookies:o})},category:{tree:(e=3)=>fetchAPI(`${s}/api/catalog_system/pub/category/tree/${e}`,void 0,{storeCookies:o})},portal:{pagetype:e=>fetchAPI(`${s}/api/catalog_system/pub/portal/pagetype/${e}`,void 0,{storeCookies:o})},products:{crossselling:({type:e,productId:t,groupByProduct:r=!0})=>{let a=new URLSearchParams({sc:n.storage.channel.salesChannel,groupByProduct:r.toString()});return fetchAPI(`${s}/api/catalog_system/pub/products/crossselling/${e}/${t}?${a}`,void 0,{storeCookies:o})}}},checkout:{simulation:(e,{salesChannel:t}=n.storage.channel)=>{let r=new URLSearchParams({sc:t}),a=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/checkout/pub/orderForms/simulation?${r.toString()}`,{...c,headers:a,body:JSON.stringify(e)},{storeCookies:o})},shippingData:({id:e,index:t,deliveryMode:a,selectedAddresses:i},n)=>{let d=n?{startDateUtc:a?.deliveryWindow?.startDate,endDateUtc:a?.deliveryWindow?.endDate}:null,u={logisticsInfo:Array.from({length:t},(e,t)=>({itemIndex:t,selectedDeliveryChannel:a?.deliveryChannel||null,selectedSla:a?.deliveryMethod||null,deliveryWindow:d})),selectedAddresses:i,clearAddressIfPostalCodeNotFound:r},p=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/checkout/pub/orderForm/${e}/attachments/shippingData`,{...c,headers:p,body:JSON.stringify(u)},{storeCookies:o})},marketingData:({id:e,marketingData:t})=>{let r=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/checkout/pub/orderForm/${e}/attachments/marketingData`,{headers:r,body:JSON.stringify(t),method:"POST"},{storeCookies:o})},orderForm:({id:e,refreshOutdatedData:t=!0,channel:r=n.storage.channel})=>{let{salesChannel:a}=r,i=new URLSearchParams({refreshOutdatedData:t.toString(),sc:a}),d=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/checkout/pub/orderForm/${e}?${i.toString()}`,{...c,headers:d},{storeCookies:o})},clearOrderFormMessages:({id:e})=>{let t=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/checkout/pub/orderForm/${e}/messages/clear`,{...c,headers:t,body:"{}"})},updateOrderFormItems:({id:e,orderItems:t,allowOutdatedData:r="paymentData",salesChannel:a=n.storage.channel.salesChannel,shouldSplitItem:i=!0})=>{let c=new URLSearchParams({allowOutdatedData:r,sc:a}),d=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/checkout/pub/orderForm/${e}/items?${c}`,{headers:d,body:JSON.stringify({orderItems:t,noSplitItem:!i}),method:"PATCH"},{storeCookies:o})},setCustomData:({id:e,appId:t,key:r,value:a})=>{let i=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/checkout/pub/orderForm/${e}/customData/${t}/${r}`,{headers:i,body:JSON.stringify({value:a}),method:"PUT"})},region:async({postalCode:e,geoCoordinates:t,country:r,salesChannel:a})=>{let i=new URLSearchParams({country:r,sc:a??""});e?i.append("postalCode",e):i.append("geoCoordinates",`${t?.longitude};${t?.latitude}`);let n=`${s}/api/checkout/pub/regions/?${i.toString()}`,c=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(n,{headers:c},{storeCookies:o})},address:async({postalCode:e,country:t})=>{let r=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/checkout/pub/postal-code/${t}/${e}`,{headers:r},{storeCookies:o})},cancelOrder:({orderId:e,customerEmail:t,reason:r})=>{let a=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/checkout/pub/orders/${e}/user-cancel-request`,{method:"POST",headers:a,body:JSON.stringify({customerEmail:t,reason:r})},{})},pickupPoints:({geoCoordinates:e})=>{if(!e)throw Error("Missing required parameter for listing pickup points.");let t=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/logistics-shipping/pickuppoints/_search`,{method:"POST",headers:t,body:JSON.stringify({coordinate:e})},{storeCookies:o})}},session:e=>{let t=new URLSearchParams(e);t.set("items","profile.id,profile.email,profile.firstName,profile.lastName,shopper.firstName,shopper.lastName,store.channel,store.countryCode,store.cultureInfo,store.currencyCode,store.currencySymbol,authentication.customerId,authentication.storeUserId,authentication.storeUserEmail,authentication.unitId,authentication.unitName,checkout.regionId,public.postalCode");let r=l({"content-type":"application/json"}),i=a.parse(n?.headers?.cookie??"")?.vtex_session;return fetchAPI(`${s}/api/sessions?${t.toString()}`,{method:i?"PATCH":"POST",headers:r,body:"{}"},{storeCookies:o})},subscribeToNewsletter:e=>fetchAPI(`${s}/api/dataentities/NL/documents/`,{...c,body:JSON.stringify({...e,isNewsletterOptIn:!0}),method:"PATCH"},{storeCookies:o}),profile:{addresses:async t=>{let r=d(m,e);return fetchAPI(`${s}/api/profile-system/pvt/profiles/${t}/addresses`,{headers:r},{storeCookies:o})}},oms:{userOrder:({orderId:t})=>{let r=d(m,e);return fetchAPI(`${s}/api/oms/user/orders/${t}`,{method:"GET",headers:r},{storeCookies:o})},listUserOrders:({page:e,status:t,dateInitial:r,dateFinal:a,text:i,clientEmail:n,perPage:c})=>{let d=new URLSearchParams;if(r){let e=new Date(r).setHours(0,0,0,0);r=new Date(e).toISOString()}if(a){let e=new Date(a).setHours(23,59,59,999);a=new Date(e).toISOString()}i&&d.append("text",i),t&&t.length>0&&d.append("status",t.filter(Boolean).join(",")),r&&a?d.append("creation_date",`creationDate:[${r} TO ${a}]`):r?d.append("creation_date",`creationDate:[${r} TO *]`):a&&d.append("creation_date",`creationDate:[* TO ${a}]`),n&&d.append("clientEmail",n),e&&d.append("page",e.toString()),c&&d.append("per_page",c.toString());let u=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/oms/user/orders?${d.toString()}`,{method:"GET",headers:u},{storeCookies:o})},getCommercialAuthorizationsByOrderId:({orderId:t})=>{let r=d(m,e);return fetchAPI(`${s}/${e}/commercial-authorizations/order/${t}`,{method:"GET",headers:r},{storeCookies:o})},processOrderAuthorization:async({orderAuthorizationId:t,dimensionId:r,ruleId:a,approved:i})=>{let n=d(m,e);return fetchAPI(`${s}/${e}/commercial-authorizations/${t}/callback`,{method:"POST",headers:n,body:JSON.stringify({params:{ruleId:a,dimensionId:r,score:i?100:0}})},{storeCookies:o})}},units:{getUnitByUserId:({userId:t})=>{let r=d(m,e);return fetchAPI(`${s}/api/units/v1/${t}/unit`,{method:"GET",headers:r},{})},getOrgUnitById:({orgUnitId:t})=>{let r=d(m,e);return fetchAPI(`${s}/api/units/v1/${t}`,{method:"GET",headers:r},{})},getScopesByOrgUnit:({orgUnitId:t})=>{let r=d(m,e);return fetchAPI(`${s}/api/units/v1/${t}/scopes`,{method:"GET",headers:r},{})}},licenseManager:{getUserById:({userId:t})=>{let r=d(m,e);return fetchAPI(`${s}/api/license-manager/users/${t}`,{method:"GET",headers:r},{})},getUserByEmail:({email:t})=>{let r=d(m,e);return fetchAPI(`${s}/api/license-manager/pvt/users/${t}`,{method:"GET",headers:r},{})}},masterData:{getContractById:({contractId:t})=>{let r=d(m,e);return fetchAPI(`${s}/api/dataentities/CL/documents/${t}?_fields=_all`,{method:"GET",headers:r},{})},getShopperNameById:({userId:t})=>{if(!t)throw Error("Missing userId to fetch shopper name");let r=t.replace(/-/g,""),a=d(m,e);return fetchAPI(`${s}/api/dataentities/shopper/search?_where=(userId=${r})&_fields=_all&_schema=v1`,{method:"GET",headers:a},{})}},vtexid:{validate:()=>{let t=d(m,e);return fetchAPI(`${s}/api/vtexid/credential/validate`,{headers:t,body:JSON.stringify({token:t.VtexIdclientAutCookie}),method:"POST"},{storeCookies:o})},setPassword:async({email:t,newPassword:r,currentPassword:a,accesskey:i,recaptcha:n})=>{let l=d(m,e),c=buildFormData({login:t,newPassword:r,currentPassword:a,accesskey:i,recaptcha:n}),u=await fetchAPI(`${s}/api/vtexid/pub/authentication/classic/setpassword?expireSessions=true`,{method:"POST",headers:l,body:c},{storeCookies:o});return"success"===(u?.authStatus??"").toLowerCase()?{success:!0}:{success:!1,message:u?.authStatus??"Unknown error"}}}}},d="trade-policy",u="region-id",p="fuzzy",m="operator",g="pickupPoint",f="shipping",h=new Set([d,u,p,m,g,f]),isFuzzyFacet=e=>"fuzzy"===e.key&&("0"===e.value||"1"===e.value||"auto"===e.value),isOperatorFacet=e=>"operator"===e.key&&("and"===e.value||"or"===e.value),IntelligentSearch=({account:e,environment:t,hideUnavailableItems:r,simulationBehavior:a,showSponsored:i,subDomainPrefix:n},s)=>{let o=`https://${e}.${t}.com.br/api/io`,l=getWithCookie(s),c=new Headers(s.headers).get("x-forwarded-host")??s.headers?.host??"",y=n&&n.map(e=>e+".").find(e=>c.includes(e))||"",S=c.replace(y,""),v=l({"content-type":"application/json","X-FORWARDED-HOST":S}),getPolicyFacet=()=>{let{salesChannel:e}=s.storage.channel;return e?{key:d,value:e}:null},getRegionFacet=()=>{let{regionId:e,seller:t}=s.storage.channel,r=t?Buffer.from(`SW#${t}`).toString("base64"):null,a=r??e;return a?{key:u,value:a}:null},addDefaultFacets=e=>{let t=e.filter(({key:e})=>!h.has(e)),r=e.find(({key:e,value:t})=>e===f&&"all-delivery-methods"!==t)??null,a=e.find(({key:e})=>e===d)??getPolicyFacet(),i=e.find(({key:e})=>e===u)??getRegionFacet();return null!==r&&t.push(r),null!==a&&t.push(a),null!==i&&t.push(i),t},addSearchParamsFacets=(e,t)=>{let r=e.find(({key:e})=>e===p)??null,a=e.find(({key:e})=>e===m)??null,i=e.find(({key:e})=>e===g)??null;r&&isFuzzyFacet(r)&&t.append(p,r.value),a&&isOperatorFacet(a)&&t.append(m,a.value),i&&t.append(g,i.value)},search=({query:e="",page:t,count:n,sort:l="",selectedFacets:c=[],type:d,showInvisibleItems:u,sponsoredCount:p,hideUnavailableItems:m,allowRedirect:g=!1})=>{let f=new URLSearchParams({page:(t+1).toString(),count:0!==n?n.toString():"1",query:e,sort:l,locale:s.storage.locale});addSearchParamsFacets(c,f),u&&f.append("show-invisible-items","true"),void 0!==r&&f.append("hideUnavailableItems",m?.toString()??r.toString()),void 0!==a&&f.append("simulationBehavior",a.toString()),void 0!==i&&f.append("showSponsored",i.toString()),void 0!==p&&f.append("sponsoredCount",p.toString()),void 0!==g&&f.append("allowRedirect",g.toString());let h=addDefaultFacets(c).map(({key:e,value:t})=>`${e}/${t}`).join("/");return fetchAPI(`${o}/_v/api/intelligent-search/${d}/${h}?${f.toString()}`,{headers:v})};return{facets:e=>search({...e,type:"facets"}),products:e=>search({...e,type:"product_search"}),suggestedTerms:e=>{let t=new URLSearchParams({query:e.query?.toString()??"",locale:s.storage.locale});return fetchAPI(`${o}/_v/api/intelligent-search/search_suggestions?${t.toString()}`,{headers:v})},topSearches:()=>{let e=new URLSearchParams({locale:s.storage.locale});return fetchAPI(`${o}/_v/api/intelligent-search/top_searches?${e.toString()}`,{headers:v})},productCount:e=>{let t=new URLSearchParams;return e?.query&&t.append("query",e.query.toString()),fetchAPI(`${o}/_v/api/intelligent-search/catalog_count?${t.toString()}`,{headers:v})}}},getClients=(e,t)=>{let r=IntelligentSearch(e,t),a=VtexCommerce(e,t);return{search:r,commerce:a}};var y=r(66464),S=r.n(y);let getSalesChannelLoader=(e,t)=>{let loader=async e=>Promise.all(e.map(e=>t.commerce.catalog.salesChannel(e)));return new(S())(loader)};var v=r(81786),I=r.n(v);let getSimulationLoader=(e,t)=>{let r=I()(1),loader=async e=>{let r=e.reduce((e,{items:t})=>[...e,t],[]),a=[...r.flat()],i=await t.commerce.checkout.simulation({country:e[0].country,postalCode:e[0].postalCode,items:a}),n=i.items.reduce((e,t)=>{let r=t.requestIndex;return"number"==typeof r&&r<e.length&&(e[r]=t),e},Array(a.length).fill(null)),s=r.reduce((e,t)=>[...e,t.length+e[e.length-1]],[0]);return r.map((e,t)=>({...i,items:n.slice(s[t],s[t+1]).filter(e=>!!e)}))},limited=async e=>r(loader,e);return new(S())(limited,{maxBatchSize:50})};var C=r(85442),b=r.n(C);let sanitizeHtml=(e,t)=>b()(e,t),enhanceSku=(e,t)=>({...e,isVariantOf:function(e){return{...e,description:e.description?sanitizeHtml(e.description):e.description}}(t)});var P=r(90782);let getSkuLoader=({flags:e},t)=>{let loader=async r=>{let a=r.map(e=>e.split("-")[0]),i=r.some(e=>"invisibleItems"===e.split("-")[1]),{products:n}=await t.search.products({query:`sku:${a.join(";")}`,page:0,count:a.length,showInvisibleItems:i,...e?.enableUnavailableItemsOnCart&&{hideUnavailableItems:!1}}),s=n.reduce((e,t)=>{for(let r of t.items)e[r.itemId]=enhanceSku(r,t);return e},{}),o=a.map(e=>s[e]),l=a.filter(e=>!s[e]);if(l.length>0)throw new P.dR(`Search API did not found the following skus: ${l.join(",")}`);return o};return new(S())(loader,{maxBatchSize:99})},$=new Set(["brand","category","department","subcategory","collection","cluster"]),isCollectionPageType=e=>"string"==typeof e.pageType&&$.has(e.pageType.toLowerCase()),getCollectionLoader=(e,t)=>{let r=I()(20),loader=async e=>Promise.all(e.map(e=>r(async()=>{let r=await t.commerce.catalog.portal.pagetype(e);if(isCollectionPageType(r))return r;throw new P.dR(`Catalog returned ${r.pageType} for slug: ${e}. This usually happens when there is more than one category with the same name in the same category tree level.`)})));return new(S())(loader,{batch:!1})},getLoaders=(e,{clients:t})=>{let r=getSkuLoader(e,t),a=getSimulationLoader(e,t),i=getCollectionLoader(e,t),n=getSalesChannelLoader(e,t);return{skuLoader:r,simulationLoader:a,collectionLoader:i,salesChannelLoader:n}},inStock=e=>e.AvailableQuantity>0,price=e=>e.spotPrice??0,sellingPrice=e=>e.Price??0,availability=e=>e?"https://schema.org/InStock":"https://schema.org/OutOfStock",bestOfferFirst=(e,t)=>inStock(e)&&!inStock(t)?-1:!inStock(e)&&inStock(t)?1:price(e)-price(t),inStockOrderFormItem=e=>"available"===e,withTax=(e,t=0,r=1)=>Math.round((e+t/r)*100)/100,getHighPrice=(e,t={includeTaxes:!1})=>{let r=e.filter(inStock),a=r[r.length-1],i=a?price(a):0;return t.includeTaxes?withTax(i,a?.Tax,a?.product?.unitMultiplier):i},getLowPrice=(e,t={includeTaxes:!1})=>{let[r]=e.filter(inStock),a=r?price(r):0;return t.includeTaxes?withTax(a,r?.Tax,r?.product?.unitMultiplier):a},w="\xc1\xc4\xc2\xc0\xc3\xc5Č\xc7ĆĎ\xc9Ě\xcb\xc8\xcaẼĔȆ\xcd\xcc\xce\xcfŇ\xd1\xd3\xd6\xd2\xd4\xd5\xd8ŘŔŠŤ\xdaŮ\xdc\xd9\xdb\xddŸŽ\xe1\xe4\xe2\xe0\xe3\xe5č\xe7ćď\xe9ě\xeb\xe8\xeaẽĕȇ\xed\xec\xee\xefň\xf1\xf3\xf6\xf2\xf4\xf5\xf8\xf0řŕšť\xfaů\xfc\xf9\xfb\xfd\xffž\xfe\xdeĐđ\xdf\xc6a",removeDiacritics=e=>{let t=e.slice(0);for(let e=0;e<w.length;e++)t=t.replace(RegExp(w.charAt(e),"g"),"AAAAAACCCDEEEEEEEEIIIINNOOOOOORRSTUUUUUYYZaaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa".charAt(e));return t},slugifySpecialCharacters=e=>e.replace(/[·/_,:]/,"-");function slugify(e){let t=e.replace(/,/g,""),r=t.replace(/[*+~.()'"!:@&\[\]`/ %$#?{}><=_^]/g,"-"),a=slugifySpecialCharacters(removeDiacritics(r));return a.toLowerCase()}let isBrand=e=>"brand"===e.type||isCollectionPageType(e)&&"brand"===e.pageType.toLowerCase(),isCollection=e=>isCollectionPageType(e)&&"collection"===e.pageType.toLowerCase(),slugifyRoot=e=>isBrand(e)||isCollection(e)?slugify(e.name):isCollectionPageType(e)?new URL(`https://${e.url}`).pathname.slice(1).toLowerCase():new URL(e.url).pathname.slice(1).toLowerCase(),O={id:({id:e})=>e.toString(),slug:e=>slugifyRoot(e),seo:e=>isBrand(e)||isCollectionPageType(e)?{title:e.title??e.name,description:e.metaTagDescription}:{title:e.Title,description:e.MetaTagDescription},type:e=>isBrand(e)?"Brand":isCollectionPageType(e)?e.pageType:0===e.level?"Department":"Category",meta:e=>{let t=slugifyRoot(e);return isBrand(e)?{selectedFacets:[{key:"brand",value:t}]}:isCollection(e)?{selectedFacets:[{key:"productclusterids",value:e.id}]}:{selectedFacets:t.split("/").map((e,t)=>({key:`category-${t+1}`,value:e}))}},breadcrumbList:async(e,t,r)=>{let{loaders:{collectionLoader:a}}=r,i=slugifyRoot(e),n=i.split("/").filter(e=>!!e),s=n.map((e,t)=>n.slice(0,t+1).join("/")),o=await Promise.all(s.map(async e=>{let t=await a.load(e);return{slug:e,...t}}));return{itemListElement:o.map((e,t)=>({item:isCollection(e)?`/${e.slug}`:new URL(`https://${e.url}`).pathname.toLowerCase(),name:e.name,position:t+1})),numberOfItems:o.length}}},k={buy:"whoboughtalsobought",view:"whosawalsosaw",similars:"similars",viewAndBought:"whosawalsobought",accessories:"accessories",suggestions:"suggestions"},transformSelectedFacet=({key:e,value:t})=>{switch(e){case"price":return{key:e,value:t.replace("-to-",":")};case"channel":case"locale":case"buy":case"view":case"similars":case"viewAndBought":case"accessories":case"suggestions":return[];default:return{key:e,value:t}}},parseRange=e=>{let t=e.split(":").map(Number);return 2!==t.length||Number.isNaN(t[0])||Number.isNaN(t[1])?null:t},isCrossSelling=e=>"string"==typeof k[e],findCrossSelling=e=>{let t=e?.filter(e=>isCrossSelling(e.key));if(Array.isArray(t)&&t.length>1)throw new P.oY(`You passed ${t.length} cross selling facets but only one is allowed. Please leave one of the following facet: ${t.map(e=>e.key).join(",")}`);return t?.[0]??null},findSlug=e=>e?.find(e=>"slug"===e.key)?.value??null,findSkuId=e=>e?.find(e=>"id"===e.key)?.value??null,findLocale=e=>e?.find(e=>"locale"===e.key)?.value??null,findChannel=e=>e?.find(e=>"channel"===e.key)?.value??null,min=(e,t)=>{let r=0;for(let a=1;a<e.length;a++)t(e[r],e[a])>0&&(r=a);return e[r]},cancelOrder=async(e,{data:t},{clients:{commerce:r}})=>{if(!t?.orderId)throw new P.oY("Missing orderId");let a=await r.checkout.cancelOrder(t);return{data:a?.data}};function extractRuleForAuthorization(e){if(!e||"pending"!==e.status)return null;for(let t of e.dimensionStatus){if("pending"!==t.status)continue;let r=t.ruleCollection.find(e=>"pending"===e.status&&e.isUserNextAuthorizer);if(r)return{rule:r,orderAuthorizationId:e.id,dimensionId:t.id}}return null}let processOrderAuthorization=async(e,{data:t},{clients:{commerce:r}})=>{let a=await r.oms.processOrderAuthorization(t),i=extractRuleForAuthorization(a),n=!i&&function(e){if(!e||"pending"!==e.status)return!1;let t=e.dimensionStatus.filter(e=>"pending"===e.status).flatMap(e=>e.ruleCollection).filter(e=>"pending"===e.status);return 0!==t.length&&t.every(e=>!e.isUserNextAuthorizer)}(a);return{isPendingForOtherAuthorizer:n,ruleForAuthorization:i}},setPassword=async(e,{data:t},{clients:{commerce:r}})=>{if(!t?.email)throw new P.oY("Missing email");let a=await r.vtexid.setPassword({email:t.email,newPassword:t.newPassword,currentPassword:t.currentPassword,accesskey:t?.accesskey??"",recaptcha:t?.recaptcha??""});return{success:a.success,message:a?.message??""}},subscribeToNewsletter=async(e,{data:t},{clients:{commerce:r}})=>{let a=await r.subscribeToNewsletter(t);return{id:a?.Id}};var F=r(12404),x=r.n(F);let ChannelMarshal=class ChannelMarshal{static parse(e){try{let t=JSON.parse(e);return{seller:t.seller??"",regionId:t.regionId??"",salesChannel:t.salesChannel??"",hasOnlyDefaultSalesChannel:t.hasOnlyDefaultSalesChannel??!0}}catch(e){throw console.error(e),Error("Malformed channel string")}}static stringify(e){return JSON.stringify(e)}};let mutateChannelContext=(e,t)=>{e.storage.channel=ChannelMarshal.parse(t)},mutateLocaleContext=(e,t)=>{e.storage.locale=t};var D=r(6113),N=r.n(D);let md5=e=>N().createHash("md5").update(e).digest("hex"),T={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"};function attachmentToPropertyValue(e){return{name:e.name,value:e.content,valueReference:T.attachment}}function attributeToPropertyValue(e){return{propertyID:e.id,name:e.name,value:e.value,valueReference:{valueReference:T.attribute,visible:e.visible}}}function getPropertyId(e){return md5(`${e.name}:${JSON.stringify(e.value)}:${e.valueReference}`)}let createNewAddress=e=>{let t=e.postalCode,r=e.geoCoordinates,a={addressType:e.addressType||null,postalCode:t||null,city:null,state:null,country:e.country||null,street:null,number:null,neighborhood:null,complement:null,reference:null,geoCoordinates:[]};if(r){let e="object"==typeof r&&"latitude"in r?r.latitude:null,t="object"==typeof r&&"longitude"in r?r.longitude:null;a.geoCoordinates=null!==e&&null!==t?[t,e]:[]}return[a]},getAddressOrderForm=(e,t,r)=>{let a=t.postalCode,i=t.geoCoordinates,n=e?.shippingData?.availableAddresses??[],s=e?.shippingData?.selectedAddresses??[];if(!r&&s.length>0)return[s[0]];if(r&&n.length>0)for(let e of n){if(a&&i){let t=e.postalCode===a||e.geoCoordinates[0]===i.longitude&&e.geoCoordinates[1]===i.latitude;if(t)return[e]}if(a&&!i){let t=e.postalCode===a;if(t)return[e]}if(i&&!a){let t=e.geoCoordinates[0]===i.longitude&&e.geoCoordinates[1]===i.latitude;if(t)return[e]}}return null},shouldUpdateShippingData=(e,t)=>{if(!hasSessionPostalCodeOrGeoCoordinates(t)||!hasItems(e))return{updateShipping:!1,addressChanged:!1};let[r]=e?.shippingData?.selectedAddresses??[];if(checkPostalCode(r,t.postalCode)||checkGeoCoordinates(r,t.geoCoordinates)||checkAddressType(r,t.addressType))return{updateShipping:!0,addressChanged:!0};let{logisticsInfo:a}=e.shippingData;return shouldUpdateDeliveryInfo(a,t)?{updateShipping:!0,addressChanged:!1}:{updateShipping:!1,addressChanged:!1}},hasSessionPostalCodeOrGeoCoordinates=e=>!!e.postalCode||e.geoCoordinates?.latitude&&e.geoCoordinates?.longitude,checkPostalCode=(e,t)=>"string"==typeof t&&e?.postalCode!==t,checkGeoCoordinates=(e,t)=>"number"==typeof t?.latitude&&"number"==typeof t?.longitude&&(e?.geoCoordinates[0]!==t?.longitude||e?.geoCoordinates[1]!==t?.latitude),checkAddressType=(e,t)=>"string"==typeof t&&e?.addressType!==t,hasItems=e=>0!==e.items.length,shouldUpdateDeliveryInfo=(e,t)=>{let r=t?.deliveryMode?.deliveryChannel,a=t?.deliveryMode?.deliveryMethod,{startDate:i,endDate:n}=t?.deliveryMode?.deliveryWindow||{};return e.some(({selectedDeliveryChannel:e,selectedSla:t,slas:s})=>{let o=r&&e!==r,l=a&&t!==a;return s?.some(e=>!!o&&e.deliveryChannel===r||!!l&&e.id===a||i&&n&&e.deliveryChannel===r&&e.id===a&&(!e?.deliveryWindow||e?.deliveryWindow?.startDateUtc!==i||e?.deliveryWindow?.endDateUtc!==n)&&e.availableDeliveryWindows?.some(e=>e?.startDateUtc===i&&e?.endDateUtc===n))})},isAttachment=e=>e.valueReference===T.attachment,getId=e=>[e.itemOffered.sku,e.seller.identifier,e.price<.01?"Gift":void 0,e.itemOffered.additionalProperty?.filter(isAttachment).map(getPropertyId).join("-")].filter(Boolean).join("::"),orderFormItemToOffer=(e,t)=>({listPrice:e.listPrice/100,price:e.sellingPrice/100,quantity:e.quantity,seller:{identifier:e.seller},itemOffered:{sku:e.id,image:[],name:e.name,additionalProperty:e.attachments.map(attachmentToPropertyValue)},index:t}),offerToOrderItemInput=e=>({quantity:e.quantity,seller:e.seller.identifier,id:e.itemOffered.sku,index:e.index,attachments:(e.itemOffered.additionalProperty?.filter(isAttachment)??[]).map(e=>({name:e.name,content:e.value}))}),groupById=e=>e.reduce((e,t)=>{let r=getId(t);return e.has(r)||e.set(r,[]),e.get(r)?.push(t),e},new Map),equals=(e,t)=>{let pick=(e,t)=>({...e,itemOffered:{sku:e.itemOffered.sku},index:t}),r=t.items.map(orderFormItemToOffer).map(pick),a=e.acceptedOffer.map(pick),i=e.orderNumber===t.orderFormId,n=x()(r,a);return i&&n};function hasChildItem(e,t){return e?.some(r=>null!==r.parentItemIndex&&void 0!==r.parentItemIndex&&e[r.parentItemIndex]?.id===t)}function hasParentItem(e,t){return e?.some(e=>e.id===t&&null!==e.parentItemIndex)}let joinItems=e=>{let t=e.items.reduce((t,r,a)=>{let i=hasParentItem(e.items,r.id)||hasChildItem(e.items,r.id)?`${getId(orderFormItemToOffer(r))}::${a}`:getId(orderFormItemToOffer(r));return t[i]||(t[i]=[]),t[i].push(r),t},{});return{...e,items:Object.values(t).map(e=>{let[t]=e,r=e.reduce((e,t)=>e+t.quantity,0),a=e.reduce((e,t)=>e+(t?.priceDefinition?.total??(t?.quantity??0)*(t?.sellingPrice??0)),0);return{...t,quantity:r,sellingPrice:a/r}})}},orderFormToCart=async(e,t,r)=>({order:{orderNumber:e.orderFormId,acceptedOffer:e.items.map(async e=>({...e,product:await t.load(`${e.id}-invisibleItems`)})),shouldSplitItem:r},messages:e.messages.map(({text:e,status:t})=>({text:e,status:t.toUpperCase()}))}),getOrderFormEtag=({items:e})=>md5(JSON.stringify(e)),setOrderFormEtag=async(e,t)=>{try{let r=await t.checkout.setCustomData({id:e.orderFormId,appId:"faststore",key:"cartEtag",value:getOrderFormEtag(e)});return r}catch(e){throw console.error('Error while setting custom data to orderForm.\n Make sure to add the following custom app to the orderForm: \n{"fields":["cartEtag"],"id":"faststore","major":1}.\n More info at: https://developers.vtex.com/vtex-rest-api/docs/customizable-fields-with-checkout-api'),e}},isOrderFormStale=e=>{let t=e.customData?.customApps.find(e=>"faststore"===e.id),r=t?.fields?.cartEtag;if(null==r)return!0;let a=getOrderFormEtag(e);return a!==r},getOrderForm=async(e,{clients:{commerce:t}})=>t.checkout.orderForm({id:e}),clearOrderFormMessages=async(e,{clients:{commerce:t}})=>t.checkout.clearOrderFormMessages({id:e}),updateOrderFormShippingData=async(e,t,{clients:{commerce:r}})=>{if(!t)return e;let{updateShipping:a,addressChanged:i}=shouldUpdateShippingData(e,t);if(a){let a=getAddressOrderForm(e,t,i),n=a||createNewAddress(t),s=!!t.deliveryMode?.deliveryWindow;return s&&await r.checkout.shippingData({id:e.orderFormId,index:e.items.length,deliveryMode:t.deliveryMode,selectedAddresses:n},!1),r.checkout.shippingData({id:e.orderFormId,index:e.items.length,deliveryMode:t.deliveryMode,selectedAddresses:n},!0)}return e},getCookieCheckoutOrderNumber=(e,t)=>{if(!e)return"";let r=(0,a.parse)(e),i=r[t];return i?i.split("=")[1]:""},validateCart=async(e,{cart:{order:t},session:r},a)=>{let i=getCookieCheckoutOrderNumber(a.headers.cookie,"checkout.vtex.com"),n=""!==i?i:t?.orderNumber,{acceptedOffer:s,shouldSplitItem:o}=t,{clients:{commerce:l},loaders:{skuLoader:c}}=a,d=r?.channel,u=r?.locale;d&&mutateChannelContext(a,d),u&&mutateLocaleContext(a,u);let p=await getOrderForm(n,a);0!==p.messages.length&&await clearOrderFormMessages(n,a);let m=isOrderFormStale(p);if(m){let e=await setOrderFormEtag(p,l).then(joinItems);if(n)return orderFormToCart(e,c,o)}let g=groupById(s),f=groupById(p.items.map(orderFormItemToOffer)),h=Array.from(f.entries()),y=Array.from(g.entries()),{itemsToAdd:S,itemsToUpdate:v}=y.reduce((e,[t,r])=>{let a=f.get(t);if(!a)return r.forEach(t=>e.itemsToAdd.push(t)),e;let[i,...n]=a;if(hasParentItem(p.items,i.itemOffered.sku)||hasChildItem(p.items,i.itemOffered.sku))return e.itemsToUpdate.push(i),e;let s=r.reduce((e,t)=>e+t.quantity,0);return e.itemsToUpdate.push({...i,quantity:s}),n.forEach(t=>e.itemsToUpdate.push({...t,quantity:0})),e},{itemsToAdd:[],itemsToUpdate:[]}),I=h.filter(([e])=>!g.has(e)).flatMap(([,e])=>e.map(e=>({...e,quantity:0}))),C=[...S,...v,...I].map(offerToOrderItemInput);if(0===C.length)return null;let b=await l.checkout.updateOrderFormItems({id:p.orderFormId,orderItems:C,shouldSplitItem:o}).then(e=>updateOrderFormShippingData(e,r,a)).then(e=>{if(r?.marketingData){let t={...e.marketingData,...r.marketingData};return l.checkout.marketingData({id:p.orderFormId,marketingData:t})}return e}).then(e=>setOrderFormEtag(e,l)).then(joinItems),P=x()(p.messages,b.messages);return equals(t,b)&&P?null:orderFormToCart(b,c,o)};async function getPreciseLocationData(e,t,r){try{let a=await e.commerce.checkout.address({postalCode:r,country:t}),[i,n]=a.geoCoordinates;return{city:a.city,geoCoordinates:{latitude:n,longitude:i}}}catch(e){throw console.error(`Error while getting geo coordinates for the current postal code (${r}) and country (${t}).
1
+ "use strict";exports.id=9563,exports.ids=[9563],exports.modules={48116:(e,t,r)=>{r.d(t,{Z:()=>a});let a={}},29313:(e,t,r)=>{r.d(t,{Z:()=>a});let a={}},99563:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{h:()=>execute});var i=r(99664),n=r(37886),s=r(84656),o=r(36093),l=r(77397),c=r(45774),d=r(36550),u=r(57343),p=r(71017),m=r.n(p),g=r(57565),f=r(48116),h=r(29313),y=r(17486),S=e([i,n,s,o,l,c,d]);[i,n,s,o,l,c,d]=S.then?(await S)():S;let v=new Map(Object.entries(g)),I=(0,l.E9)(y.e),customFormatError=e=>e instanceof u.GraphQLError&&(0,l.T9)(e.originalError)?e:(console.error(e),new u.GraphQLError(`Sorry, something went wrong. ${e}`)),getEnvelop=async()=>(0,i.envelop)({plugins:[(0,i.useEngine)(u),(0,i.useSchema)(function(){let e=(0,c.loadFilesSync)(m().join(process.cwd(),"@generated"),{extensions:["graphql"]}),t=(0,l.yd)(y.e);return(0,d.makeExecutableSchema)({typeDefs:e,resolvers:[t,h.Z,f.Z]})}()),(0,i.useExtendContext)(I),(0,i.useMaskedErrors)({maskError:customFormatError}),(0,n.useGraphQlJit)(),(0,o.useValidationCache)(),(0,s.useParserCache)()]}),C=getEnvelop(),execute=async(e,t={headers:{}})=>{let{operation:r,variables:a,query:i}=e,{operationHash:n,operationName:s}=r.__meta__,o=i??v.get(n);if(null==o)throw new l.oY(`No query found for operationName ${s} and operationHash ${n}.`);let c=await C,{parse:d,contextFactory:u,execute:p,schema:m}=c(t),g=await u(t),{data:f,errors:h}=await p({schema:m,document:d(o),variableValues:a,contextValue:g,operationName:s});return{data:f,errors:h,extensions:{cookies:g.storage.cookies,cacheControl:g.cacheControl}}};a()}catch(e){a(e)}})},17486:(e,t,r)=>{r.d(t,{e:()=>n});var a=r(43412),i=r.n(a);let n={platform:i().platform,account:i().api.storeId,environment:i().api.environment,subDomainPrefix:i().api.subDomainPrefix??["www"],hideUnavailableItems:i().api.hideUnavailableItems,showSponsored:i().api.showSponsored,simulationBehavior:i().api.simulationBehavior,incrementAddress:i().api.incrementAddress,channel:i().session.channel,locale:i().session.locale,flags:{enableOrderFormSync:!0,enableUnavailableItemsOnCart:i().api?.enableUnavailableItemsOnCart??!1}}},48608:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{Z:()=>s});var i=r(38722),n=e([i]);i=(n.then?(await n)():n)[0];let min=(e,t)=>"number"==typeof e&&"number"==typeof t?e>t?t:e:"number"==typeof e?e:t,minScope=(e,t)=>"string"==typeof e&&"string"==typeof t?"public"===e&&"public"===t?"public":"private":e||t,s={typeDefs:"directive @cacheControl(sMaxAge: Int, staleWhileRevalidate: Int, scope: String) on FIELD_DEFINITION",transformer:e=>(0,i.mapSchema)(e,{[i.MapperKind.OBJECT_FIELD]:t=>{let r=i.getDirective(e,t,"cacheControl")?.[0];if(r){let{sMaxAge:e,staleWhileRevalidate:a,scope:i}=r,n=t.resolve;t.resolve=(t,r,s,o)=>(s.cacheControl={sMaxAge:min(s.cacheControl?.sMaxAge,e),staleWhileRevalidate:min(s.cacheControl?.staleWhileRevalidate,a),scope:minScope(s.cacheControl?.scope,i)},n?.(t,r,s,o))}return t}})};a()}catch(e){a(e)}})},77397:(e,t,r)=>{r.a(e,async(e,a)=>{try{r.d(t,{E9:()=>getContextFactory,T9:()=>o.T9,XD:()=>o.XD,oY:()=>o.oY,yd:()=>getResolvers});var i=r(2147),n=r(33999),s=r(48608),o=r(90782),l=e([n,s]);[n,s]=l.then?(await l)():l;let c={vtex:{getResolvers:i.y,getContextFactory:i.E}};s.Z;let getResolvers=e=>c[e.platform].getResolvers(e),getContextFactory=e=>c[e.platform].getContextFactory(e);a()}catch(e){a(e)}})},90782:(e,t,r)=>{r.d(t,{T9:()=>isFastStoreError,XD:()=>isNotFoundError,dR:()=>NotFoundError,lY:()=>ForbiddenError,oY:()=>BadRequestError});let FastStoreError=class FastStoreError extends Error{extensions;constructor(e,t){super(t),this.extensions=e,this.name="FastStoreError"}};let BadRequestError=class BadRequestError extends FastStoreError{constructor(e){super({status:400,type:"BadRequestError"},e)}};let NotFoundError=class NotFoundError extends FastStoreError{constructor(e){super({status:404,type:"NotFoundError"},e)}};let ForbiddenError=class ForbiddenError extends FastStoreError{constructor(e){super({status:403,type:"ForbiddenError"},e)}};let isFastStoreError=e=>e?.name==="FastStoreError",isNotFoundError=e=>e?.extensions?.type==="NotFoundError"},2147:(e,t,r)=>{r.d(t,{E:()=>getContextFactory,y:()=>getResolvers});var a=r(84802),i=r(73747),n=r.n(i);let s=JSON.parse('{"u2":"@faststore/api","i8":"3.69.0"}'),o=`${s.u2}@${s.i8}`,fetchAPI=async(e,t,r)=>{let a=await n()(e,{...t,headers:{...t?.headers??{},"User-Agent":o}});if(a.ok)return r?.storeCookies&&r.storeCookies(a.headers),204!==a.status?a.json():void 0;console.error(e,t,a);let i=await a.text();throw Error(i)},buildFormData=e=>{let t=new FormData;return Object.keys(e).forEach(r=>{let a=e[r];t.append(r,null==a?"":String(a))}),t},l=/^([^=]+)=([^;]*)/,updatesContextStorageCookies=(e,t)=>{let r=t.match(l);if(r){let a=r[1],i=r[2];e.storage.cookies.set(a,{value:i,setCookie:t})}},setCookie=(e,t)=>{t.getSetCookie().forEach(t=>updatesContextStorageCookies(e,t))},getStoreCookie=e=>t=>setCookie(e,t),getUpdatedCookie=e=>{if(!e.headers?.cookie)return null;let t=Array.from(e.storage.cookies.entries());return 0===t.length?e.headers.cookie:t.reduce((e,[t,{value:r}])=>updatesCookieValueByKey(e,t,r),e.headers.cookie)},getWithCookie=e=>function(t){let r=getUpdatedCookie(e);return r?{...t,cookie:r}:t},getAuthCookie=(e,t)=>{let r=(0,a.parse)(e),i=r[`VtexIdclientAutCookie_${t}`];return i||""},getWithAutCookie=e=>{let t=getWithCookie(e);return function(r,a){let i=t({"content-type":"application/json","X-FORWARDED-HOST":r}),n=getAuthCookie(e?.headers?.cookie??"",a);return i.VtexIdclientAutCookie=n,i}},updatesCookieValueByKey=(e,t,r)=>{let a=RegExp(`(${t})=([^;]*)`),i=e.match(a);return i?e.replace(i[0],`${i[1]}=${r}`):`${e};${t}=${r}`};function parseJwt(e){return e?JSON.parse(Buffer.from(e.split(".")[1],"base64").toString()):null}let c={method:"POST",headers:{"content-type":"application/json"}},VtexCommerce=({account:e,environment:t,incrementAddress:r,subDomainPrefix:i},n)=>{let s=`https://${e}.${t}.com.br`,o=getStoreCookie(n),l=getWithCookie(n),d=getWithAutCookie(n),u=new Headers(n.headers).get("x-forwarded-host")??n.headers?.host??"",p=i&&i.map(e=>e+".").find(e=>u.includes(e))||"",m=u.replace(p,"");return{catalog:{salesChannel:e=>fetchAPI(`${s}/api/catalog_system/pub/saleschannel/${e}`,void 0,{storeCookies:o}),brand:{list:()=>fetchAPI(`${s}/api/catalog_system/pub/brand/list`,void 0,{storeCookies:o})},category:{tree:(e=3)=>fetchAPI(`${s}/api/catalog_system/pub/category/tree/${e}`,void 0,{storeCookies:o})},portal:{pagetype:e=>fetchAPI(`${s}/api/catalog_system/pub/portal/pagetype/${e}`,void 0,{storeCookies:o})},products:{crossselling:({type:e,productId:t,groupByProduct:r=!0})=>{let a=new URLSearchParams({sc:n.storage.channel.salesChannel,groupByProduct:r.toString()});return fetchAPI(`${s}/api/catalog_system/pub/products/crossselling/${e}/${t}?${a}`,void 0,{storeCookies:o})}}},checkout:{simulation:(e,{salesChannel:t}=n.storage.channel)=>{let r=new URLSearchParams({sc:t}),a=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/checkout/pub/orderForms/simulation?${r.toString()}`,{...c,headers:a,body:JSON.stringify(e)},{storeCookies:o})},shippingData:({id:e,index:t,deliveryMode:a,selectedAddresses:i},n)=>{let d=n?{startDateUtc:a?.deliveryWindow?.startDate,endDateUtc:a?.deliveryWindow?.endDate}:null,u={logisticsInfo:Array.from({length:t},(e,t)=>({itemIndex:t,selectedDeliveryChannel:a?.deliveryChannel||null,selectedSla:a?.deliveryMethod||null,deliveryWindow:d})),selectedAddresses:i,clearAddressIfPostalCodeNotFound:r},p=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/checkout/pub/orderForm/${e}/attachments/shippingData`,{...c,headers:p,body:JSON.stringify(u)},{storeCookies:o})},marketingData:({id:e,marketingData:t})=>{let r=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/checkout/pub/orderForm/${e}/attachments/marketingData`,{headers:r,body:JSON.stringify(t),method:"POST"},{storeCookies:o})},orderForm:({id:e,refreshOutdatedData:t=!0,channel:r=n.storage.channel})=>{let{salesChannel:a}=r,i=new URLSearchParams({refreshOutdatedData:t.toString(),sc:a}),d=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/checkout/pub/orderForm/${e}?${i.toString()}`,{...c,headers:d},{storeCookies:o})},clearOrderFormMessages:({id:e})=>{let t=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/checkout/pub/orderForm/${e}/messages/clear`,{...c,headers:t,body:"{}"})},updateOrderFormItems:({id:e,orderItems:t,allowOutdatedData:r="paymentData",salesChannel:a=n.storage.channel.salesChannel,shouldSplitItem:i=!0})=>{let c=new URLSearchParams({allowOutdatedData:r,sc:a}),d=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/checkout/pub/orderForm/${e}/items?${c}`,{headers:d,body:JSON.stringify({orderItems:t,noSplitItem:!i}),method:"PATCH"},{storeCookies:o})},setCustomData:({id:e,appId:t,key:r,value:a})=>{let i=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/checkout/pub/orderForm/${e}/customData/${t}/${r}`,{headers:i,body:JSON.stringify({value:a}),method:"PUT"})},region:async({postalCode:e,geoCoordinates:t,country:r,salesChannel:a})=>{let i=new URLSearchParams({country:r,sc:a??""});e?i.append("postalCode",e):i.append("geoCoordinates",`${t?.longitude};${t?.latitude}`);let n=`${s}/api/checkout/pub/regions/?${i.toString()}`,c=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(n,{headers:c},{storeCookies:o})},address:async({postalCode:e,country:t})=>{let r=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/checkout/pub/postal-code/${t}/${e}`,{headers:r},{storeCookies:o})},cancelOrder:({orderId:e,customerEmail:t,reason:r})=>{let a=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/checkout/pub/orders/${e}/user-cancel-request`,{method:"POST",headers:a,body:JSON.stringify({customerEmail:t,reason:r})},{})},pickupPoints:({geoCoordinates:e})=>{if(!e)throw Error("Missing required parameter for listing pickup points.");let t=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/logistics-shipping/pickuppoints/_search`,{method:"POST",headers:t,body:JSON.stringify({coordinate:e})},{storeCookies:o})}},session:e=>{let t=new URLSearchParams(e);t.set("items","profile.id,profile.email,profile.firstName,profile.lastName,shopper.firstName,shopper.lastName,store.channel,store.countryCode,store.cultureInfo,store.currencyCode,store.currencySymbol,authentication.customerId,authentication.storeUserId,authentication.storeUserEmail,authentication.unitId,authentication.unitName,checkout.regionId,public.postalCode");let r=l({"content-type":"application/json"}),i=a.parse(n?.headers?.cookie??"")?.vtex_session;return fetchAPI(`${s}/api/sessions?${t.toString()}`,{method:i?"PATCH":"POST",headers:r,body:"{}"},{storeCookies:o})},subscribeToNewsletter:e=>fetchAPI(`${s}/api/dataentities/NL/documents/`,{...c,body:JSON.stringify({...e,isNewsletterOptIn:!0}),method:"PATCH"},{storeCookies:o}),profile:{addresses:async t=>{let r=d(m,e);return fetchAPI(`${s}/api/profile-system/pvt/profiles/${t}/addresses`,{headers:r},{storeCookies:o})}},oms:{userOrder:({orderId:t})=>{let r=d(m,e);return fetchAPI(`${s}/api/oms/user/orders/${t}`,{method:"GET",headers:r},{storeCookies:o})},listUserOrders:({page:e,status:t,dateInitial:r,dateFinal:a,text:i,clientEmail:n,perPage:c})=>{let d=new URLSearchParams;if(r){let e=new Date(r).setHours(0,0,0,0);r=new Date(e).toISOString()}if(a){let e=new Date(a).setHours(23,59,59,999);a=new Date(e).toISOString()}i&&d.append("text",i),t&&t.length>0&&d.append("status",t.filter(Boolean).join(",")),r&&a?d.append("creation_date",`creationDate:[${r} TO ${a}]`):r?d.append("creation_date",`creationDate:[${r} TO *]`):a&&d.append("creation_date",`creationDate:[* TO ${a}]`),n&&d.append("clientEmail",n),e&&d.append("page",e.toString()),c&&d.append("per_page",c.toString());let u=l({"content-type":"application/json","X-FORWARDED-HOST":m});return fetchAPI(`${s}/api/oms/user/orders?${d.toString()}`,{method:"GET",headers:u},{storeCookies:o})},getCommercialAuthorizationsByOrderId:({orderId:t})=>{let r=d(m,e);return fetchAPI(`${s}/${e}/commercial-authorizations/order/${t}`,{method:"GET",headers:r},{storeCookies:o})},processOrderAuthorization:async({orderAuthorizationId:t,dimensionId:r,ruleId:a,approved:i})=>{let n=d(m,e);return fetchAPI(`${s}/${e}/commercial-authorizations/${t}/callback`,{method:"POST",headers:n,body:JSON.stringify({params:{ruleId:a,dimensionId:r,score:i?100:0}})},{storeCookies:o})}},units:{getUnitByUserId:({userId:t})=>{let r=d(m,e);return fetchAPI(`${s}/api/units/v1/${t}/unit`,{method:"GET",headers:r},{})},getOrgUnitById:({orgUnitId:t})=>{let r=d(m,e);return fetchAPI(`${s}/api/units/v1/${t}`,{method:"GET",headers:r},{})},getScopesByOrgUnit:({orgUnitId:t})=>{let r=d(m,e);return fetchAPI(`${s}/api/units/v1/${t}/scopes`,{method:"GET",headers:r},{})}},licenseManager:{getUserById:({userId:t})=>{let r=d(m,e);return fetchAPI(`${s}/api/license-manager/users/${t}`,{method:"GET",headers:r},{})},getUserByEmail:({email:t})=>{let r=d(m,e);return fetchAPI(`${s}/api/license-manager/pvt/users/${t}`,{method:"GET",headers:r},{})}},masterData:{getContractById:({contractId:t})=>{let r=d(m,e);return fetchAPI(`${s}/api/dataentities/CL/documents/${t}?_fields=_all`,{method:"GET",headers:r},{})},getShopperNameById:({userId:t})=>{if(!t)throw Error("Missing userId to fetch shopper name");let r=t.replace(/-/g,""),a=d(m,e);return fetchAPI(`${s}/api/dataentities/shopper/search?_where=(userId=${r})&_fields=_all&_schema=v1`,{method:"GET",headers:a},{})}},vtexid:{validate:()=>{let t=d(m,e);return fetchAPI(`${s}/api/vtexid/credential/validate`,{headers:t,body:JSON.stringify({token:t.VtexIdclientAutCookie}),method:"POST"},{storeCookies:o})},setPassword:async({email:t,newPassword:r,currentPassword:a,accesskey:i,recaptcha:n})=>{let l=d(m,e),c=buildFormData({login:t,newPassword:r,currentPassword:a,accesskey:i,recaptcha:n}),u=await fetchAPI(`${s}/api/vtexid/pub/authentication/classic/setpassword?expireSessions=true`,{method:"POST",headers:l,body:c},{storeCookies:o});return"success"===(u?.authStatus??"").toLowerCase()?{success:!0}:{success:!1,message:u?.authStatus??"Unknown error"}}}}},d="trade-policy",u="region-id",p="fuzzy",m="operator",g="pickupPoint",f="shipping",h=new Set([d,u,p,m,g,f]),isFuzzyFacet=e=>"fuzzy"===e.key&&("0"===e.value||"1"===e.value||"auto"===e.value),isOperatorFacet=e=>"operator"===e.key&&("and"===e.value||"or"===e.value),IntelligentSearch=({account:e,environment:t,hideUnavailableItems:r,simulationBehavior:a,showSponsored:i,subDomainPrefix:n},s)=>{let o=`https://${e}.${t}.com.br/api/io`,l=getWithCookie(s),c=new Headers(s.headers).get("x-forwarded-host")??s.headers?.host??"",y=n&&n.map(e=>e+".").find(e=>c.includes(e))||"",S=c.replace(y,""),v=l({"content-type":"application/json","X-FORWARDED-HOST":S}),getPolicyFacet=()=>{let{salesChannel:e}=s.storage.channel;return e?{key:d,value:e}:null},getRegionFacet=()=>{let{regionId:e,seller:t}=s.storage.channel,r=t?Buffer.from(`SW#${t}`).toString("base64"):null,a=r??e;return a?{key:u,value:a}:null},addDefaultFacets=e=>{let t=e.filter(({key:e})=>!h.has(e)),r=e.find(({key:e,value:t})=>e===f&&"all-delivery-methods"!==t)??null,a=e.find(({key:e})=>e===d)??getPolicyFacet(),i=e.find(({key:e})=>e===u)??getRegionFacet();return null!==r&&t.push(r),null!==a&&t.push(a),null!==i&&t.push(i),t},addSearchParamsFacets=(e,t)=>{let r=e.find(({key:e})=>e===p)??null,a=e.find(({key:e})=>e===m)??null,i=e.find(({key:e})=>e===g)??null;r&&isFuzzyFacet(r)&&t.append(p,r.value),a&&isOperatorFacet(a)&&t.append(m,a.value),i&&t.append(g,i.value)},search=({query:e="",page:t,count:n,sort:l="",selectedFacets:c=[],type:d,showInvisibleItems:u,sponsoredCount:p,hideUnavailableItems:m,allowRedirect:g=!1})=>{let f=new URLSearchParams({page:(t+1).toString(),count:0!==n?n.toString():"1",query:e,sort:l,locale:s.storage.locale});addSearchParamsFacets(c,f),u&&f.append("show-invisible-items","true"),void 0!==r&&f.append("hideUnavailableItems",m?.toString()??r.toString()),void 0!==a&&f.append("simulationBehavior",a.toString()),void 0!==i&&f.append("showSponsored",i.toString()),void 0!==p&&f.append("sponsoredCount",p.toString()),void 0!==g&&f.append("allowRedirect",g.toString());let h=addDefaultFacets(c).map(({key:e,value:t})=>`${e}/${t}`).join("/");return fetchAPI(`${o}/_v/api/intelligent-search/${d}/${h}?${f.toString()}`,{headers:v})};return{facets:e=>search({...e,type:"facets"}),products:e=>search({...e,type:"product_search"}),suggestedTerms:e=>{let t=new URLSearchParams({query:e.query?.toString()??"",locale:s.storage.locale});return fetchAPI(`${o}/_v/api/intelligent-search/search_suggestions?${t.toString()}`,{headers:v})},topSearches:()=>{let e=new URLSearchParams({locale:s.storage.locale});return fetchAPI(`${o}/_v/api/intelligent-search/top_searches?${e.toString()}`,{headers:v})},productCount:e=>{let t=new URLSearchParams;return e?.query&&t.append("query",e.query.toString()),fetchAPI(`${o}/_v/api/intelligent-search/catalog_count?${t.toString()}`,{headers:v})}}},getClients=(e,t)=>{let r=IntelligentSearch(e,t),a=VtexCommerce(e,t);return{search:r,commerce:a}};var y=r(66464),S=r.n(y);let getSalesChannelLoader=(e,t)=>{let loader=async e=>Promise.all(e.map(e=>t.commerce.catalog.salesChannel(e)));return new(S())(loader)};var v=r(81786),I=r.n(v);let getSimulationLoader=(e,t)=>{let r=I()(1),loader=async e=>{let r=e.reduce((e,{items:t})=>[...e,t],[]),a=[...r.flat()],i=await t.commerce.checkout.simulation({country:e[0].country,postalCode:e[0].postalCode,items:a}),n=i.items.reduce((e,t)=>{let r=t.requestIndex;return"number"==typeof r&&r<e.length&&(e[r]=t),e},Array(a.length).fill(null)),s=r.reduce((e,t)=>[...e,t.length+e[e.length-1]],[0]);return r.map((e,t)=>({...i,items:n.slice(s[t],s[t+1]).filter(e=>!!e)}))},limited=async e=>r(loader,e);return new(S())(limited,{maxBatchSize:50})};var C=r(85442),b=r.n(C);let sanitizeHtml=(e,t)=>b()(e,t),enhanceSku=(e,t)=>({...e,isVariantOf:function(e){return{...e,description:e.description?sanitizeHtml(e.description):e.description}}(t)});var P=r(90782);let getSkuLoader=({flags:e},t)=>{let loader=async r=>{let a=r.map(e=>e.split("-")[0]),i=r.some(e=>"invisibleItems"===e.split("-")[1]),{products:n}=await t.search.products({query:`sku:${a.join(";")}`,page:0,count:a.length,showInvisibleItems:i,...e?.enableUnavailableItemsOnCart&&{hideUnavailableItems:!1}}),s=n.reduce((e,t)=>{for(let r of t.items)e[r.itemId]=enhanceSku(r,t);return e},{}),o=a.map(e=>s[e]),l=a.filter(e=>!s[e]);if(l.length>0)throw new P.dR(`Search API did not found the following skus: ${l.join(",")}`);return o};return new(S())(loader,{maxBatchSize:99})},$=new Set(["brand","category","department","subcategory","collection","cluster"]),isCollectionPageType=e=>"string"==typeof e.pageType&&$.has(e.pageType.toLowerCase()),getCollectionLoader=(e,t)=>{let r=I()(20),loader=async e=>Promise.all(e.map(e=>r(async()=>{let r=await t.commerce.catalog.portal.pagetype(e);if(isCollectionPageType(r))return r;throw new P.dR(`Catalog returned ${r.pageType} for slug: ${e}. This usually happens when there is more than one category with the same name in the same category tree level.`)})));return new(S())(loader,{batch:!1})},getLoaders=(e,{clients:t})=>{let r=getSkuLoader(e,t),a=getSimulationLoader(e,t),i=getCollectionLoader(e,t),n=getSalesChannelLoader(e,t);return{skuLoader:r,simulationLoader:a,collectionLoader:i,salesChannelLoader:n}},inStock=e=>e.AvailableQuantity>0,price=e=>e.spotPrice??0,sellingPrice=e=>e.Price??0,availability=e=>e?"https://schema.org/InStock":"https://schema.org/OutOfStock",bestOfferFirst=(e,t)=>inStock(e)&&!inStock(t)?-1:!inStock(e)&&inStock(t)?1:price(e)-price(t),inStockOrderFormItem=e=>"available"===e,withTax=(e,t=0,r=1)=>Math.round((e+t/r)*100)/100,getHighPrice=(e,t={includeTaxes:!1})=>{let r=e.filter(inStock),a=r[r.length-1],i=a?price(a):0;return t.includeTaxes?withTax(i,a?.Tax,a?.product?.unitMultiplier):i},getLowPrice=(e,t={includeTaxes:!1})=>{let[r]=e.filter(inStock),a=r?price(r):0;return t.includeTaxes?withTax(a,r?.Tax,r?.product?.unitMultiplier):a},w="\xc1\xc4\xc2\xc0\xc3\xc5Č\xc7ĆĎ\xc9Ě\xcb\xc8\xcaẼĔȆ\xcd\xcc\xce\xcfŇ\xd1\xd3\xd6\xd2\xd4\xd5\xd8ŘŔŠŤ\xdaŮ\xdc\xd9\xdb\xddŸŽ\xe1\xe4\xe2\xe0\xe3\xe5č\xe7ćď\xe9ě\xeb\xe8\xeaẽĕȇ\xed\xec\xee\xefň\xf1\xf3\xf6\xf2\xf4\xf5\xf8\xf0řŕšť\xfaů\xfc\xf9\xfb\xfd\xffž\xfe\xdeĐđ\xdf\xc6a",removeDiacritics=e=>{let t=e.slice(0);for(let e=0;e<w.length;e++)t=t.replace(RegExp(w.charAt(e),"g"),"AAAAAACCCDEEEEEEEEIIIINNOOOOOORRSTUUUUUYYZaaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa".charAt(e));return t},slugifySpecialCharacters=e=>e.replace(/[·/_,:]/,"-");function slugify(e){let t=e.replace(/,/g,""),r=t.replace(/[*+~.()'"!:@&\[\]`/ %$#?{}><=_^]/g,"-"),a=slugifySpecialCharacters(removeDiacritics(r));return a.toLowerCase()}let isBrand=e=>"brand"===e.type||isCollectionPageType(e)&&"brand"===e.pageType.toLowerCase(),isCollection=e=>isCollectionPageType(e)&&"collection"===e.pageType.toLowerCase(),slugifyRoot=e=>isBrand(e)||isCollection(e)?slugify(e.name):isCollectionPageType(e)?new URL(`https://${e.url}`).pathname.slice(1).toLowerCase():new URL(e.url).pathname.slice(1).toLowerCase(),O={id:({id:e})=>e.toString(),slug:e=>slugifyRoot(e),seo:e=>isBrand(e)||isCollectionPageType(e)?{title:e.title??e.name,description:e.metaTagDescription}:{title:e.Title,description:e.MetaTagDescription},type:e=>isBrand(e)?"Brand":isCollectionPageType(e)?e.pageType:0===e.level?"Department":"Category",meta:e=>{let t=slugifyRoot(e);return isBrand(e)?{selectedFacets:[{key:"brand",value:t}]}:isCollection(e)?{selectedFacets:[{key:"productclusterids",value:e.id}]}:{selectedFacets:t.split("/").map((e,t)=>({key:`category-${t+1}`,value:e}))}},breadcrumbList:async(e,t,r)=>{let{loaders:{collectionLoader:a}}=r,i=slugifyRoot(e),n=i.split("/").filter(e=>!!e),s=n.map((e,t)=>n.slice(0,t+1).join("/")),o=await Promise.all(s.map(async e=>{let t=await a.load(e);return{slug:e,...t}}));return{itemListElement:o.map((e,t)=>({item:isCollection(e)?`/${e.slug}`:new URL(`https://${e.url}`).pathname.toLowerCase(),name:e.name,position:t+1})),numberOfItems:o.length}}},k={buy:"whoboughtalsobought",view:"whosawalsosaw",similars:"similars",viewAndBought:"whosawalsobought",accessories:"accessories",suggestions:"suggestions"},transformSelectedFacet=({key:e,value:t})=>{switch(e){case"price":return{key:e,value:t.replace("-to-",":")};case"channel":case"locale":case"buy":case"view":case"similars":case"viewAndBought":case"accessories":case"suggestions":return[];default:return{key:e,value:t}}},parseRange=e=>{let t=e.split(":").map(Number);return 2!==t.length||Number.isNaN(t[0])||Number.isNaN(t[1])?null:t},isCrossSelling=e=>"string"==typeof k[e],findCrossSelling=e=>{let t=e?.filter(e=>isCrossSelling(e.key));if(Array.isArray(t)&&t.length>1)throw new P.oY(`You passed ${t.length} cross selling facets but only one is allowed. Please leave one of the following facet: ${t.map(e=>e.key).join(",")}`);return t?.[0]??null},findSlug=e=>e?.find(e=>"slug"===e.key)?.value??null,findSkuId=e=>e?.find(e=>"id"===e.key)?.value??null,findLocale=e=>e?.find(e=>"locale"===e.key)?.value??null,findChannel=e=>e?.find(e=>"channel"===e.key)?.value??null,min=(e,t)=>{let r=0;for(let a=1;a<e.length;a++)t(e[r],e[a])>0&&(r=a);return e[r]},cancelOrder=async(e,{data:t},{clients:{commerce:r}})=>{if(!t?.orderId)throw new P.oY("Missing orderId");let a=await r.checkout.cancelOrder(t);return{data:a?.data}};function extractRuleForAuthorization(e){if(!e||"pending"!==e.status)return null;for(let t of e.dimensionStatus){if("pending"!==t.status)continue;let r=t.ruleCollection.find(e=>"pending"===e.status&&e.isUserNextAuthorizer);if(r)return{rule:r,orderAuthorizationId:e.id,dimensionId:t.id}}return null}let processOrderAuthorization=async(e,{data:t},{clients:{commerce:r}})=>{let a=await r.oms.processOrderAuthorization(t),i=extractRuleForAuthorization(a),n=!i&&function(e){if(!e||"pending"!==e.status)return!1;let t=e.dimensionStatus.filter(e=>"pending"===e.status).flatMap(e=>e.ruleCollection).filter(e=>"pending"===e.status);return 0!==t.length&&t.every(e=>!e.isUserNextAuthorizer)}(a);return{isPendingForOtherAuthorizer:n,ruleForAuthorization:i}},setPassword=async(e,{data:t},{clients:{commerce:r}})=>{if(!t?.email)throw new P.oY("Missing email");let a=await r.vtexid.setPassword({email:t.email,newPassword:t.newPassword,currentPassword:t.currentPassword,accesskey:t?.accesskey??"",recaptcha:t?.recaptcha??""});return{success:a.success,message:a?.message??""}},subscribeToNewsletter=async(e,{data:t},{clients:{commerce:r}})=>{let a=await r.subscribeToNewsletter(t);return{id:a?.Id}};var F=r(12404),x=r.n(F);let ChannelMarshal=class ChannelMarshal{static parse(e){try{let t=JSON.parse(e);return{seller:t.seller??"",regionId:t.regionId??"",salesChannel:t.salesChannel??"",hasOnlyDefaultSalesChannel:t.hasOnlyDefaultSalesChannel??!0}}catch(e){throw console.error(e),Error("Malformed channel string")}}static stringify(e){return JSON.stringify(e)}};let mutateChannelContext=(e,t)=>{e.storage.channel=ChannelMarshal.parse(t)},mutateLocaleContext=(e,t)=>{e.storage.locale=t};var D=r(6113),N=r.n(D);let md5=e=>N().createHash("md5").update(e).digest("hex"),T={attachment:"ATTACHMENT",specification:"SPECIFICATION",attribute:"ATTRIBUTE"};function attachmentToPropertyValue(e){return{name:e.name,value:e.content,valueReference:T.attachment}}function attributeToPropertyValue(e){return{propertyID:e.id,name:e.name,value:e.value,valueReference:{valueReference:T.attribute,visible:e.visible}}}function getPropertyId(e){return md5(`${e.name}:${JSON.stringify(e.value)}:${e.valueReference}`)}let createNewAddress=e=>{let t=e.postalCode,r=e.geoCoordinates,a={addressType:e.addressType||null,postalCode:t||null,city:null,state:null,country:e.country||null,street:null,number:null,neighborhood:null,complement:null,reference:null,geoCoordinates:[]};if(r){let e="object"==typeof r&&"latitude"in r?r.latitude:null,t="object"==typeof r&&"longitude"in r?r.longitude:null;a.geoCoordinates=null!==e&&null!==t?[t,e]:[]}return[a]},getAddressOrderForm=(e,t,r)=>{let a=t.postalCode,i=t.geoCoordinates,n=e?.shippingData?.availableAddresses??[],s=e?.shippingData?.selectedAddresses??[];if(!r&&s.length>0)return[s[0]];if(r&&n.length>0)for(let e of n){if(a&&i){let t=e.postalCode===a||e.geoCoordinates[0]===i.longitude&&e.geoCoordinates[1]===i.latitude;if(t)return[e]}if(a&&!i){let t=e.postalCode===a;if(t)return[e]}if(i&&!a){let t=e.geoCoordinates[0]===i.longitude&&e.geoCoordinates[1]===i.latitude;if(t)return[e]}}return null},shouldUpdateShippingData=(e,t)=>{if(!hasSessionPostalCodeOrGeoCoordinates(t)||!hasItems(e))return{updateShipping:!1,addressChanged:!1};let[r]=e?.shippingData?.selectedAddresses??[];if(checkPostalCode(r,t.postalCode)||checkGeoCoordinates(r,t.geoCoordinates)||checkAddressType(r,t.addressType))return{updateShipping:!0,addressChanged:!0};let{logisticsInfo:a}=e.shippingData;return shouldUpdateDeliveryInfo(a,t)?{updateShipping:!0,addressChanged:!1}:{updateShipping:!1,addressChanged:!1}},hasSessionPostalCodeOrGeoCoordinates=e=>!!e.postalCode||e.geoCoordinates?.latitude&&e.geoCoordinates?.longitude,checkPostalCode=(e,t)=>"string"==typeof t&&e?.postalCode!==t,checkGeoCoordinates=(e,t)=>"number"==typeof t?.latitude&&"number"==typeof t?.longitude&&(e?.geoCoordinates[0]!==t?.longitude||e?.geoCoordinates[1]!==t?.latitude),checkAddressType=(e,t)=>"string"==typeof t&&e?.addressType!==t,hasItems=e=>0!==e.items.length,shouldUpdateDeliveryInfo=(e,t)=>{let r=t?.deliveryMode?.deliveryChannel,a=t?.deliveryMode?.deliveryMethod,{startDate:i,endDate:n}=t?.deliveryMode?.deliveryWindow||{};return e.some(({selectedDeliveryChannel:e,selectedSla:t,slas:s})=>{let o=r&&e!==r,l=a&&t!==a;return s?.some(e=>!!o&&e.deliveryChannel===r||!!l&&e.id===a||i&&n&&e.deliveryChannel===r&&e.id===a&&(!e?.deliveryWindow||e?.deliveryWindow?.startDateUtc!==i||e?.deliveryWindow?.endDateUtc!==n)&&e.availableDeliveryWindows?.some(e=>e?.startDateUtc===i&&e?.endDateUtc===n))})},isAttachment=e=>e.valueReference===T.attachment,getId=e=>[e.itemOffered.sku,e.seller.identifier,e.price<.01?"Gift":void 0,e.itemOffered.additionalProperty?.filter(isAttachment).map(getPropertyId).join("-")].filter(Boolean).join("::"),orderFormItemToOffer=(e,t)=>({listPrice:e.listPrice/100,price:e.sellingPrice/100,quantity:e.quantity,seller:{identifier:e.seller},itemOffered:{sku:e.id,image:[],name:e.name,additionalProperty:e.attachments.map(attachmentToPropertyValue)},index:t}),offerToOrderItemInput=e=>({quantity:e.quantity,seller:e.seller.identifier,id:e.itemOffered.sku,index:e.index,attachments:(e.itemOffered.additionalProperty?.filter(isAttachment)??[]).map(e=>({name:e.name,content:e.value}))}),groupById=e=>e.reduce((e,t)=>{let r=getId(t);return e.has(r)||e.set(r,[]),e.get(r)?.push(t),e},new Map),equals=(e,t)=>{let pick=(e,t)=>({...e,itemOffered:{sku:e.itemOffered.sku},index:t}),r=t.items.map(orderFormItemToOffer).map(pick),a=e.acceptedOffer.map(pick),i=e.orderNumber===t.orderFormId,n=x()(r,a);return i&&n};function hasChildItem(e,t){return e?.some(r=>null!==r.parentItemIndex&&void 0!==r.parentItemIndex&&e[r.parentItemIndex]?.id===t)}function hasParentItem(e,t){return e?.some(e=>e.id===t&&null!==e.parentItemIndex)}let joinItems=e=>{let t=e.items.reduce((t,r,a)=>{let i=hasParentItem(e.items,r.id)||hasChildItem(e.items,r.id)?`${getId(orderFormItemToOffer(r))}::${a}`:getId(orderFormItemToOffer(r));return t[i]||(t[i]=[]),t[i].push(r),t},{});return{...e,items:Object.values(t).map(e=>{let[t]=e,r=e.reduce((e,t)=>e+t.quantity,0),a=e.reduce((e,t)=>e+(t?.priceDefinition?.total??(t?.quantity??0)*(t?.sellingPrice??0)),0);return{...t,quantity:r,sellingPrice:a/r}})}},orderFormToCart=async(e,t,r)=>({order:{orderNumber:e.orderFormId,acceptedOffer:e.items.map(async e=>({...e,product:await t.load(`${e.id}-invisibleItems`)})),shouldSplitItem:r},messages:e.messages.map(({text:e,status:t})=>({text:e,status:t.toUpperCase()}))}),getOrderFormEtag=({items:e})=>md5(JSON.stringify(e)),setOrderFormEtag=async(e,t)=>{try{let r=await t.checkout.setCustomData({id:e.orderFormId,appId:"faststore",key:"cartEtag",value:getOrderFormEtag(e)});return r}catch(e){throw console.error('Error while setting custom data to orderForm.\n Make sure to add the following custom app to the orderForm: \n{"fields":["cartEtag"],"id":"faststore","major":1}.\n More info at: https://developers.vtex.com/vtex-rest-api/docs/customizable-fields-with-checkout-api'),e}},isOrderFormStale=e=>{let t=e.customData?.customApps.find(e=>"faststore"===e.id),r=t?.fields?.cartEtag;if(null==r)return!0;let a=getOrderFormEtag(e);return a!==r},getOrderForm=async(e,{clients:{commerce:t}})=>t.checkout.orderForm({id:e}),clearOrderFormMessages=async(e,{clients:{commerce:t}})=>t.checkout.clearOrderFormMessages({id:e}),updateOrderFormShippingData=async(e,t,{clients:{commerce:r}})=>{if(!t)return e;let{updateShipping:a,addressChanged:i}=shouldUpdateShippingData(e,t);if(a){let a=getAddressOrderForm(e,t,i),n=a||createNewAddress(t),s=!!t.deliveryMode?.deliveryWindow;return s&&await r.checkout.shippingData({id:e.orderFormId,index:e.items.length,deliveryMode:t.deliveryMode,selectedAddresses:n},!1),r.checkout.shippingData({id:e.orderFormId,index:e.items.length,deliveryMode:t.deliveryMode,selectedAddresses:n},!0)}return e},getCookieCheckoutOrderNumber=(e,t)=>{if(!e)return"";let r=(0,a.parse)(e),i=r[t];return i?i.split("=")[1]:""},validateCart=async(e,{cart:{order:t},session:r},a)=>{let i=getCookieCheckoutOrderNumber(a.headers.cookie,"checkout.vtex.com"),n=""!==i?i:t?.orderNumber,{acceptedOffer:s,shouldSplitItem:o}=t,{clients:{commerce:l},loaders:{skuLoader:c}}=a,d=r?.channel,u=r?.locale;d&&mutateChannelContext(a,d),u&&mutateLocaleContext(a,u);let p=await getOrderForm(n,a);0!==p.messages.length&&await clearOrderFormMessages(n,a);let m=isOrderFormStale(p);if(m){let e=await setOrderFormEtag(p,l).then(joinItems);if(n)return orderFormToCart(e,c,o)}let g=groupById(s),f=groupById(p.items.map(orderFormItemToOffer)),h=Array.from(f.entries()),y=Array.from(g.entries()),{itemsToAdd:S,itemsToUpdate:v}=y.reduce((e,[t,r])=>{let a=f.get(t);if(!a)return r.forEach(t=>e.itemsToAdd.push(t)),e;let[i,...n]=a;if(hasParentItem(p.items,i.itemOffered.sku)||hasChildItem(p.items,i.itemOffered.sku))return e.itemsToUpdate.push(i),e;let s=r.reduce((e,t)=>e+t.quantity,0);return e.itemsToUpdate.push({...i,quantity:s}),n.forEach(t=>e.itemsToUpdate.push({...t,quantity:0})),e},{itemsToAdd:[],itemsToUpdate:[]}),I=h.filter(([e])=>!g.has(e)).flatMap(([,e])=>e.map(e=>({...e,quantity:0}))),C=[...S,...v,...I].map(offerToOrderItemInput);if(0===C.length)return null;let b=await l.checkout.updateOrderFormItems({id:p.orderFormId,orderItems:C,shouldSplitItem:o}).then(e=>updateOrderFormShippingData(e,r,a)).then(e=>{if(r?.marketingData){let t={...e.marketingData,...r.marketingData};return l.checkout.marketingData({id:p.orderFormId,marketingData:t})}return e}).then(e=>setOrderFormEtag(e,l)).then(joinItems),P=x()(p.messages,b.messages);return equals(t,b)&&P?null:orderFormToCart(b,c,o)};async function getPreciseLocationData(e,t,r){try{let a=await e.commerce.checkout.address({postalCode:r,country:t}),[i,n]=a.geoCoordinates;return{city:a.city,geoCoordinates:{latitude:n,longitude:i}}}catch(e){throw console.error(`Error while getting geo coordinates for the current postal code (${r}) and country (${t}).
2
2
  `),e}}let validateSession=async(e,{session:t,search:r},{clients:a,headers:i,account:n})=>{let s;let o=ChannelMarshal.parse(t.channel??""),l=String(t.postalCode??""),c=t.country??"",d=t.city??null,u=t.geoCoordinates??null,p=!d||!u;if(p&&""!==l&&""!==c){let e=await getPreciseLocationData(a,c,l);d=e.city,u=e.geoCoordinates}let m=new URLSearchParams(r),g=m.get("sc")??o.salesChannel;m.set("sc",g),l&&m.set("postalCode",l),c&&m.set("country",c),u&&m.set("geoCoordinates",`${u.longitude},${u.latitude}`);let{marketingData:f}=t,h={utmCampaign:m.get("utm_campaign")??f?.utmCampaign??"",utmMedium:m.get("utm_medium")??f?.utmMedium??"",utmSource:m.get("utm_source")??f?.utmSource??"",utmiCampaign:m.get("utmi_cp")??f?.utmiCampaign??"",utmiPage:m.get("utmi_p")??f?.utmiPage??"",utmiPart:m.get("utmi_pc")??f?.utmiPart??""},y=parseJwt(getAuthCookie(i?.cookie??"",n)),S=y?.isRepresentative,v=y?.customerId,I=y?.unitId,C=await a.commerce.session(m.toString()).catch(()=>null),b=C?.namespaces.profile??null,P=C?.namespaces.shopper??null,$=C?.namespaces.store??null,w=C?.namespaces.authentication??null,O=C?.namespaces.checkout??null,k=C?.namespaces.public??null;if(o.seller&&(l||u)){let e=await a.commerce.checkout.region({postalCode:l,geoCoordinates:u,country:c,salesChannel:g}),t=e?.[0];s=t?.sellers.find(e=>o.seller===e.id)}let F={...t,currency:{code:$?.currencyCode?.value??t.currency.code,symbol:$?.currencySymbol?.value??t.currency.symbol},country:$?.countryCode?.value??c,channel:ChannelMarshal.stringify({salesChannel:$?.channel?.value??o.salesChannel,regionId:O?.regionId?.value??o.regionId,seller:s?.id,hasOnlyDefaultSalesChannel:!$?.channel?.value}),b2b:S?{isRepresentative:S??!1,customerId:w?.customerId?.value??v??"",unitName:w?.unitName?.value??"",unitId:w?.unitId?.value??I??"",firstName:P?.firstName?.value??"",lastName:P?.lastName?.value??"",userName:`${P?.firstName?.value??""} ${P?.lastName?.value??""}`.trim(),userEmail:w?.storeUserEmail.value??"",savedPostalCode:k?.postalCode?.value??""}:null,marketingData:h,person:b?.id?{id:b.id?.value??"",email:b.email?.value??"",givenName:b.firstName?.value??"",familyName:b.lastName?.value??""}:null,geoCoordinates:u,city:d};return x()(t,F)?null:F};var A=r(57343),E=r(36548);let R=new A.GraphQLScalarType({name:"ObjectOrString",description:"A string or the string representation of an object (a stringified object).",parseValue:function(e){return"string"==typeof e?getValueAsObjectOrString(e):null},serialize:function(e){return"object"==typeof e?JSON.stringify(e):"string"==typeof e?e:null},parseLiteral:e=>e.kind===E.Kind.STRING?getValueAsObjectOrString(e.value):null});function getValueAsObjectOrString(e){try{return JSON.parse(e)}catch(t){return e}}let isSearchItem=e=>"Price"in e&&"seller"in e&&"product"in e,isOrderFormItem=e=>"skuName"in e,canonicalFromProduct=({linkText:e})=>`/${e}/p`,enhanceCommercialOffer=({offer:e,seller:t,product:r})=>({...e,product:r,seller:t}),V={imageText:"image",imageUrl:"https://storecomponents.vtexassets.com/assets/faststore/images/image___117a6d3e229a96ad0e0d0876352566e2.svg",imageLabel:"label"},getSlug=(e,t)=>`${e}-${t}`,getPath=(e,t)=>`/${getSlug(e,t)}/p`,nonEmptyArray=e=>Array.isArray(e)&&e.length>0?e:null;function removeTrailingSlashes(e){return e.replace(/^\/+|\/+$/g,"")}let findMainTreeIndex=(e,t)=>{let r=e.findIndex(e=>{let r=removeTrailingSlashes(e).split("/").at(-1);return r===t});return r<0?0:r},M=new Set(["allSpecifications"]),pickBestSku=e=>{let t=e.flatMap(e=>e.sellers.map(t=>({offer:t.commertialOffer,sku:e}))),r=min(t,({offer:e},{offer:t})=>bestOfferFirst(e,t));return r?r.sku:e[0]},isValidSkuId=e=>""!==e&&!Number.isNaN(Number(e)),U={price_desc:"price:desc",price_asc:"price:asc",orders_desc:"orders:desc",name_desc:"name:desc",name_asc:"name:asc",release_desc:"release:desc",discount_desc:"discount:desc",score_desc:""},isRootFacet=(e,t,r)=>t?"category-1"===e.key:!!r&&"brand"===e.key,_=["bd","d","h","m"],isUnit=e=>_.includes(e),q={bd:{0:"Today",1:"In 1 business day",other:"Up to # business days"},d:{0:"Today",1:"In 1 day",other:"Up to # days"},h:{0:"Now",1:"In 1 hour",other:"Up to # hours"},m:{0:"Now",1:"In 1 minute",other:"Up to # minutes"}},getLocalizedEstimates=e=>{let[t,r]=[e.split(/\D+/)[0],e.split(/[0-9]+/)[1]],a=""!==t&&!Number.isNaN(Number(t)),i=isUnit(r);if(!a||!i)return"";let n=2>Number(t)?Number(t):"other";return q[r][n].replace("#",t)??""},L="skuvariation";function findSkuVariantImage(e,t){let r=`${L}${t}`.toLowerCase(),a=e.find(e=>e.imageLabel===r);if(a)return a;let i=e.find(e=>e.imageLabel===L);return i||e[0]}function getActiveSkuVariations(e){let t={};return e.forEach(e=>{t[e.name]=e.values[0]}),t}let z={"pickup-in-point":"Pickup",delivery:"Delivery",pickup:"Pickup","take-away":"Take away","":""},W={StoreCollection:O,StoreAggregateOffer:{highPrice:e=>getHighPrice(e),lowPrice:e=>getLowPrice(e),lowPriceWithTaxes:e=>getLowPrice(e,{includeTaxes:!0}),offerCount:e=>e.length,priceCurrency:async(e,t,r)=>{let{loaders:{salesChannelLoader:a},storage:{channel:i}}=r,n=await a.load(i.salesChannel);return n.CurrencyCode??""},offers:e=>e},StoreProduct:{productID:({itemId:e})=>e,name:({isVariantOf:e,name:t})=>t??e.productName,slug:({isVariantOf:{linkText:e},itemId:t})=>getSlug(e,t),description:({isVariantOf:{description:e}})=>e,seo:({isVariantOf:e})=>({title:e.productTitle||e.productName,description:e.metaTagDescription||e.description,canonical:canonicalFromProduct(e)}),brand:({isVariantOf:{brand:e}})=>({name:e}),unitMultiplier:({unitMultiplier:e})=>e,breadcrumbList:({isVariantOf:{categories:e,productName:t,linkText:r,categoryId:a,categoriesIds:i},itemId:n})=>{let s=findMainTreeIndex(i,a),o=e[s],l=removeTrailingSlashes(o).split("/");return{itemListElement:[...l.map((e,t)=>{let r=`/${l.slice(0,t+1).map(slugify).join("/")}/`;return{name:e,item:r,position:t+1}}),{name:t,item:getPath(r,n),position:l.length+1}],numberOfItems:l.length}},image:({images:e},t)=>{let r=(nonEmptyArray(e)??[V]).map(({imageUrl:e,imageText:t,imageLabel:r})=>({alternateName:t??"",url:e.replace("vteximg.com.br","vtexassets.com"),keywords:r}));if("object"!=typeof t)return r;let{context:a,limit:i}=t,n="generic"!==a;i=(i=i||-1)<=-1?void 0:i;let s=n?r.filter(({keywords:e})=>e===a):r;return(s=0===s.length?r:s).slice(0,i)},sku:({itemId:e})=>e,gtin:({referenceId:e})=>e[0]?.Value??"",review:()=>[],aggregateRating:()=>({}),offers:e=>e.sellers.map(t=>enhanceCommercialOffer({offer:t.commertialOffer,seller:t,product:e})).sort(bestOfferFirst),isVariantOf:e=>e,additionalProperty:({variations:e=[],attachmentsValues:t=[],attributes:r=[]})=>{let a=e.flatMap(({name:e,values:t})=>t.map(t=>({name:e,value:t,valueReference:T.specification}))),i=t.map(attachmentToPropertyValue),n=r.map(attributeToPropertyValue);return[...a,...i,...n]},releaseDate:({isVariantOf:{releaseDate:e}})=>e??"",advertisement:({isVariantOf:{advertisement:e}})=>e},StoreSeo:{title:({title:e})=>e??"",description:({description:e})=>e??"",canonical:({canonical:e})=>e??"",titleTemplate:()=>""},StoreFacet:{__resolveType:({type:e,values:t})=>"TEXT"!==e&&"DELIVERY"!==e?"StoreFacetRange":t&&0!==t.length&&t.every(e=>e.range)?"StoreFacetRange":"StoreFacetBoolean"},StoreFacetBoolean:{key:({key:e})=>e,label:({name:e})=>e,values:({values:e})=>e.sort((e,t)=>e.name.localeCompare(t.name))},StoreFacetRange:{key:({key:e})=>e,label:({name:e})=>e,min:({values:e,key:t},r,{storage:{searchArgs:a}})=>{let i=parseRange(a?.selectedFacets?.find(e=>e.key===t)?.value??""),n=min(e,(e,t)=>e.range.from-t.range.from),s=n?.range?.from??0;return{selected:i?.[0]??s,absolute:s}},max:({values:e,key:t},r,{storage:{searchArgs:a}})=>{let i=parseRange(a?.selectedFacets?.find(e=>e.key===t)?.value??""),n=min(e,(e,t)=>t.range.to-e.range.to),s=n?.range?.to??0;return{selected:i?.[1]??s,absolute:s}}},StoreFacetValueBoolean:{value:({value:e})=>e,label:({name:e})=>e||"unknown",selected:({selected:e})=>e,quantity:({quantity:e})=>e},StoreOffer:{priceCurrency:async(e,t,r)=>{let{loaders:{salesChannelLoader:a},storage:{channel:i}}=r,n=await a.load(i.salesChannel);return n.CurrencyCode??""},priceValidUntil:e=>isSearchItem(e)?e.PriceValidUntil??"":isOrderFormItem(e)?e.priceValidUntil??"":null,itemCondition:()=>"https://schema.org/NewCondition",availability:async e=>isSearchItem(e)?availability(inStock(e)):isOrderFormItem(e)?availability(inStockOrderFormItem(e.availability)):null,seller:(e,t,r)=>isSearchItem(e)?{identifier:r.storage.channel?.seller||e.seller.sellerId||""}:isOrderFormItem(e)?{identifier:e.seller}:null,price:e=>isSearchItem(e)?price(e):isOrderFormItem(e)?e.sellingPrice/100:null,priceWithTaxes:e=>isSearchItem(e)?withTax(price(e),e?.Tax,e.product.unitMultiplier):isOrderFormItem(e)?withTax(e.sellingPrice/100,e.tax/100,e.unitMultiplier):null,sellingPrice:e=>isSearchItem(e)?sellingPrice(e):isOrderFormItem(e)?e.sellingPrice/100:null,listPrice:e=>isSearchItem(e)?e.ListPrice??0:isOrderFormItem(e)?e.listPrice/100:null,listPriceWithTaxes:e=>isSearchItem(e)?withTax(e.ListPrice??0,e?.Tax,e.product.unitMultiplier):isOrderFormItem(e)?withTax(e.listPrice/100,e.tax/100,e.unitMultiplier):null,itemOffered:e=>isSearchItem(e)?e.product:isOrderFormItem(e)?{...e.product,attachmentsValues:e.attachments}:null,quantity:e=>isSearchItem(e)?e.AvailableQuantity??0:isOrderFormItem(e)?e.quantity:null},StoreAggregateRating:{ratingValue:()=>5,reviewCount:()=>0},StoreReview:{reviewRating:()=>({ratingValue:5,bestRating:5}),author:()=>({name:""})},StoreProductGroup:{hasVariant:e=>e.isVariantOf.items.map(t=>enhanceSku(t,e.isVariantOf)),productGroupID:({isVariantOf:e})=>e.productId,name:e=>e.isVariantOf.productName,skuVariants:e=>e,additionalProperty:({isVariantOf:{specificationGroups:e}})=>e.filter(e=>!M.has(e.name)).flatMap(({specifications:e})=>e.flatMap(({name:e,values:t})=>t.map(t=>({name:e,value:t,valueReference:T.specification}))))},StoreSearchResult:{suggestions:async(e,t,r)=>{let{clients:{search:a}}=r,{searchArgs:i}=e;if(!i.query){let e=await a.topSearches();return{terms:e.searches.map(e=>({value:e.term,count:e.count})),products:[]}}let{productSearchPromise:n}=e,[s,o]=await Promise.all([a.suggestedTerms(i),n]),l=o.products.map(e=>{let t=pickBestSku(e.items);return t&&enhanceSku(t,e)}).filter(e=>!!e),{searches:c}=s;return{terms:c.map(e=>({value:e.term,count:e.count})),products:l}},products:async({productSearchPromise:e})=>{let t=await e,r=t.products.map(e=>{let t=pickBestSku(e.items);return t&&enhanceSku(t,e)}).filter(e=>!!e);return{pageInfo:{hasNextPage:t.pagination.after.length>0,hasPreviousPage:t.pagination.before.length>0,startCursor:"0",endCursor:t.recordsFiltered.toString(),totalCount:t.recordsFiltered},edges:r.map((e,t)=>({node:e,cursor:t.toString()}))}},facets:async({searchArgs:e},t,r)=>{let{clients:{search:a}}=r;r.storage.searchArgs=e;let{facets:i=[]}=await a.facets(e),n=!e.query,s=!!e.selectedFacets?.length&&"category-1"===e.selectedFacets[0].key,o=!!e.selectedFacets?.length&&"brand"===e.selectedFacets[0].key,l=i.filter(e=>!n||!isRootFacet(e,s,o));return l},metadata:async({productSearchPromise:e})=>{let t=await e;return{isTermMisspelled:t.correction?.misspelled??!1,logicalOperator:t.operator,fuzzy:t.fuzzy}}},StorePropertyValue:{propertyID:e=>e.propertyID||getPropertyId(e),name:({name:e})=>e,value:({value:e})=>e,valueReference:({valueReference:e})=>e},SkuVariants:{activeVariations:e=>getActiveSkuVariations(e.variations),allVariantsByName:e=>(function(e){let t={};return e?.forEach(e=>{t[e.field.originalName??e.field.name]=e.values.map(e=>e.originalName??e.name)}),t})(e.isVariantOf.skuSpecifications),slugsMap:(e,t)=>(function(e,t,r){let a={};return e.forEach(e=>{let i=e.variations;if(0===i.length)return;let n=`${t}-${i.find(e=>e.name===t)?.values[0]??""}`,s=i.reduce((e,r)=>{let a=r.name===t;return a?e:e+`-${r.name}-${r.values[0]}`},n);a[s]=`${r}-${e.itemId}`}),a})(e.isVariantOf.items,t.dominantVariantName??e.variations[0]?.name,e.isVariantOf.linkText),availableVariations:(e,t)=>{let r=t.dominantVariantName??e.variations[0]?.name,a=getActiveSkuVariations(e.variations),i=a[r],n=function(e,t,r){let a={},i=new Set;return e.forEach(e=>{if(0===e.variations.length)return;let n=e.variations.find(e=>e.name===t),s=n?.values[0]===r;if(!s){let r=`${t}-${n?.values[0]}`;if(!n||i.has(r))return;i.add(r);let s=findSkuVariantImage(e.images,t),o={src:s.imageUrl,alt:s.imageLabel??"",label:`${t}: ${n.values[0]}`,value:n.values[0]};a[n.name]?a[n.name].push(o):a[n.name]=[o];return}e.variations.forEach(t=>{let r=`${t.name}-${t.values[0]}`;if(i.has(r))return;i.add(r);let n=findSkuVariantImage(e.images,t.name),s={src:n.imageUrl,alt:n.imageText??"",label:`${t.name}: ${t.values[0]}`,value:t.values[0]};a[t.name]?a[t.name].push(s):a[t.name]=[s]})}),function(e){for(let t in e){let r=e[t].every(e=>!Number.isNaN(Number(e.value)));r&&e[t].sort((e,t)=>{var r,a;return r=e.value,a=t.value,Number.isNaN(Number(r)-Number(a))?r<a?-1:r>a?1:0:Number(r)-Number(a)})}return e}(a)}(e.isVariantOf.items,r,i);return n},allVariantProducts:e=>e.isVariantOf.items},ShippingSLA:{carrier:e=>e?.friendlyName??e?.name??"",price:e=>e?.price?e.price/100:e?.price,localizedEstimates:e=>e?.shippingEstimate?getLocalizedEstimates(e.shippingEstimate):""},UserOrderResult:{deliveryOptionsData:e=>{let{shippingData:t,items:r}=e,a=t?.logisticsInfo||[],i=t?.selectedAddresses||t?.availableAddresses||[t?.address],n=a.reduce((e,t)=>{let a=t?.selectedSla||"",n=t?.selectedDeliveryChannel||t?.deliveryChannel||"",s=t?.deliveryCompany||"",o=t?.deliveryWindow,l=t?.pickupStoreInfo,c=t?.shippingEstimate||"",d=t?.shippingEstimate?getLocalizedEstimates(t?.shippingEstimate):"",u=t?.shippingEstimateDate||"",p=t?.addressId||"",m=t?.itemIndex??0,g=r?.[m],f=g?.seller||"",h=`${a}|${n}|${s}|${f}|${c}|${u}|${p}|${o?.startDateUtc}|${o?.endDateUtc}`,y=i?.find(e=>e?.addressId===p),S=`${z[n]||""} ${d} ${y?.neighborhood?`to ${y?.neighborhood}`:""}`.trim(),v=(g?.sellingPrice??0)*(g?.quantity??0)+(g?.tax??0);return e[h]||(e[h]={selectedSla:a,deliveryChannel:n,deliveryCompany:s,deliveryWindow:o,shippingEstimate:c,shippingEstimateDate:u,seller:f,friendlyShippingEstimate:d,friendlyDeliveryOptionName:S,address:y,pickupStoreInfo:l,quantityOfDifferentItems:0,total:0,items:[]}),e[h]&&(e[h].items?.push({id:g?.id||"",uniqueId:g?.uniqueId||"",name:g?.name||"",quantity:g?.quantity||0,price:g?.price||0,imageUrl:g?.imageUrl||"",tax:g?.tax||0,total:v}),e[h].quantityOfDifferentItems=(e[h].quantityOfDifferentItems??0)+1,e[h].total=(e[h].total??0)+v),e},{}),s=Object.values(n),o=t?.contactInformation?.[0],l={name:`${o?.firstName??""} ${o?.lastName??""}`.trim()||s?.[0]?.address?.receiverName||"",email:o?.email||"",phone:o?.phone||""};return{deliveryOptions:s,contact:l}},customFields:e=>{let t=e?.customData?.customFields||[];return Object.values(t.reduce((e,t)=>{let r=t?.linkedEntity?.type||"",a=t?.linkedEntity?.id||"",i=`${r}|${a||""}`;return e[i]||(e[i]={type:r,id:a,fields:[]}),e[i].fields.push(...t?.fields||[]),e},{}))||[]}},ObjectOrString:R,Query:{product:async(e,{locator:t},r)=>{let a=findChannel(t),i=findLocale(t),n=findSkuId(t),s=findSlug(t);a&&mutateChannelContext(r,a),i&&mutateLocaleContext(r,i);let{loaders:{skuLoader:o},clients:{commerce:l,search:c}}=r;try{let e=n??s?.split("-").pop()??"";if(!isValidSkuId(e))throw Error("Invalid SkuId");let t=await o.load(e);if(s&&t.isVariantOf.linkText&&!s.startsWith(t.isVariantOf.linkText))throw Error(`Slug was set but the fetched sku does not satisfy the slug condition. slug: ${s}, linkText: ${t.isVariantOf.linkText}`);return t}catch(a){if(null==s)throw new P.oY("Missing slug or id");let e=await l.catalog.portal.pagetype(`${s}/p`);if("Product"!==e.pageType||!e.id)throw new P.dR(`No product found for slug ${s}`);let{products:[t]}=await c.products({page:0,count:1,query:`product:${e.id}`,hideUnavailableItems:!1});if(!t)throw new P.dR(`No product found for id ${e.id}`);let r=pickBestSku(t.items);return enhanceSku(r,t)}},collection:(e,{slug:t},r)=>{let{loaders:{collectionLoader:a}}=r;return a.load(t)},search:async(e,{first:t,after:r,sort:a,term:i,selectedFacets:n,sponsoredCount:s},o)=>{let l=findChannel(n),c=findLocale(n),d=findCrossSelling(n);l&&mutateChannelContext(o,l),c&&mutateLocaleContext(o,c);let u=i;if(d){let e=await o.clients.commerce.catalog.products.crossselling({type:k[d.key],productId:d.value});u=`product:${e.map(e=>e.productId).slice(0,t).join(";")}`}let p=r?Number(r):0,m={page:Math.ceil(p/t)||0,count:t,query:u??void 0,sort:U[a??"score_desc"],selectedFacets:n?.flatMap(transformSelectedFacet)??[],sponsoredCount:s??void 0},g=o.clients.search.products(m);return{searchArgs:m,productSearchPromise:g}},allProducts:async(e,{first:t,after:r},a)=>{let{clients:{search:i}}=a,n=r?Number(r):0,s=await i.products({page:Math.ceil(n/t),count:t}),o=s.products.flatMap(e=>e.items.map(t=>enhanceSku(t,e))).filter(e=>e.sellers.length>0);return{pageInfo:{hasNextPage:s.pagination.after.length>0,hasPreviousPage:s.pagination.before.length>0,startCursor:"0",endCursor:s.recordsFiltered.toString(),totalCount:s.recordsFiltered},edges:o.map((e,t)=>({node:e,cursor:(n+t).toString()}))}},allCollections:async(e,{first:t,after:r},a)=>{let{clients:{commerce:i}}=a,n=r?Number(r):0,[s,o]=await Promise.all([i.catalog.brand.list(),i.catalog.category.tree()]),l=[],dfs=(e,t)=>{for(let r of(l.push({...e,level:t}),e.children))dfs(r,t+1)};for(let e of o)dfs(e,0);let c=[...s.filter(e=>e.isActive).map(e=>({...e,type:"brand"})),...l],d=c.filter(e=>!!O.slug(e,null,a,null));return{pageInfo:{hasNextPage:d.length-n>t,hasPreviousPage:n>0,startCursor:"0",endCursor:(Math.min(t,d.length-n)-1).toString(),totalCount:d.length},edges:d.slice(n,n+t).map((e,t)=>({node:e,cursor:(n+t).toString()}))}},shipping:async(e,{country:t,items:r,postalCode:a},i)=>{let{loaders:{simulationLoader:n},clients:{commerce:s}}=i,[o,l]=await Promise.all([n.load({country:t,items:r,postalCode:a}),s.checkout.address({postalCode:a,country:t})]);return{...o,address:l}},redirect:async(e,{term:t,selectedFacets:r},a)=>{if(!t&&(!r||!r.length))return null;let{redirect:i}=await a.clients.search.products({page:1,count:1,query:t??void 0,selectedFacets:r?.flatMap(transformSelectedFacet)??[],allowRedirect:!0});return{url:i}},sellers:async(e,{postalCode:t,geoCoordinates:r,country:a,salesChannel:i},n)=>{let{clients:{commerce:s}}=n,o=await s.checkout.region({postalCode:t,geoCoordinates:r,country:a,salesChannel:i}),l=o?.[0],{id:c,sellers:d}=l;return{id:c,sellers:d}},profile:async(e,{id:t},r)=>{let{clients:{commerce:a}}=r,i=await a.profile.addresses(t),n=function(e){return e&&0!==Object.keys(e).length?Object.values(e).map(e=>JSON.parse(e)):[]}(i);return{addresses:n}},productCount:async(e,{term:t},r)=>{let{clients:{search:a}}=r,i=await a.productCount({query:t??void 0});return i},userOrder:async(e,{orderId:t},r)=>{let{clients:{commerce:a}}=r;if(!t)throw new P.oY("Missing orderId");try{let e=await a.oms.userOrder({orderId:t});if(!e)throw new P.dR(`No order found for id ${t}`);let r=null;try{let e=await a.oms.getCommercialAuthorizationsByOrderId({orderId:t});r=extractRuleForAuthorization(e)}catch(e){}let i=await a.masterData.getShopperNameById({userId:e.purchaseAgentData?.purchaseAgents?.[0]?.userId??""})??[],n=i[0]??{};return{orderId:e.orderId,totals:e.totals,items:e.items,shippingData:e.shippingData,paymentData:e.paymentData,customData:e.customData,status:e.status,statusDescription:e.statusDescription,allowCancellation:e.allowCancellation,storePreferencesData:e.storePreferencesData,clientProfileData:e.clientProfileData,canProcessOrderAuthorization:("waiting-for-confirmation"===e.status||"waiting-for-authorization"===e.status)&&!!r,ruleForAuthorization:r,shopperName:{firstName:n?.firstName||"",lastName:n?.lastName||""}}}catch(r){let e=JSON.parse(r.message).error;if(e?.message?.toLowerCase()?.includes("order not found"))throw new P.dR(`No order found for id ${t}`);if(e?.message?.toLowerCase()?.includes("acesso negado"))throw new P.lY(`You are forbidden to interact with order with id ${t}`);throw r}},listUserOrders:async(e,t,r)=>{let{clients:{commerce:a}}=r,i=await a.oms.listUserOrders(t);return{list:i.list?.map(e=>({orderId:e.orderId,creationDate:e.creationDate,clientName:e.clientName,items:e.items,totalValue:e.totalValue,status:e.status,statusDescription:e.statusDescription,ShippingEstimatedDate:e.ShippingEstimatedDate,customFields:e.customFields,currencyCode:e.currencyCode})),paging:i.paging}},accountName:async(e,t,r)=>{let{account:a,headers:i,clients:{commerce:n}}=r,s=parseJwt(getAuthCookie(i?.cookie??"",a));if(!s?.userId)return null;if(s?.isRepresentative){let e=await n.session("").catch(()=>null);if(!e)return null;let t=e.namespaces.profile??null;return`${(t?.firstName?.value??"").trim()} ${(t?.lastName?.value??"").trim()}`.trim()||""}let o=await n.licenseManager.getUserById({userId:s?.userId}).catch(()=>null);return o?.name||""},validateUser:async(e,t,r)=>{let{clients:{commerce:a}}=r;try{let e=await a.vtexid.validate();return{isValid:"Success"===e.authStatus}}catch(e){throw new P.lY("You are not allowed to access this resource")}},userDetails:async(e,t,r)=>{let{clients:{commerce:a}}=r,i=await a.session("").catch(()=>null),n=i?.namespaces.shopper??null,s=i?.namespaces.authentication??null;return{name:n?.firstName?.value??"",email:s?.storeUserEmail.value??"",role:["Admin"],orgUnit:s?.unitName?.value??""}},accountProfile:async(e,t,r)=>{let{account:a,headers:i,clients:{commerce:n}}=r,s=parseJwt(getAuthCookie(i?.cookie??"",a));if(!s?.userId)return null;if(s?.isRepresentative){let e=await n.session("").catch(()=>null);if(!e)return null;let t=e.namespaces.profile??null;return{name:`${(t?.firstName?.value??"").trim()} ${(t?.lastName?.value??"").trim()}`.trim()||"",email:t?.email?.value||"",id:t?.id?.value||""}}let o=await n.licenseManager.getUserById({userId:s?.userId}).catch(()=>null);return{name:o?.name||"",email:o?.email||"",id:o?.id||""}},pickupPoints:async(e,{geoCoordinates:t},r)=>{let{clients:{commerce:a}}=r,i=await a.checkout.pickupPoints({geoCoordinates:t});return i}},Mutation:{validateCart:validateCart,validateSession:validateSession,subscribeToNewsletter:subscribeToNewsletter,cancelOrder:cancelOrder,processOrderAuthorization:processOrderAuthorization,setPassword:setPassword}},getContextFactory=e=>t=>(t.storage={channel:ChannelMarshal.parse(e.channel),flags:e.flags??{},locale:e.locale,cookies:new Map},t.clients=getClients(e,t),t.loaders=getLoaders(e,t),t.account=e.account,t),getResolvers=e=>W},33999:(e,t,r)=>{r.a(e,async(e,t)=>{try{var a=r(57343),i=r(45774),n=e([i]);i=(n.then?(await n)():n)[0],(0,i.loadFilesSync)(__dirname,{extensions:[".graphql"]}).map(a.print).join("\n"),t()}catch(e){t(e)}})},57565:e=>{e.exports=JSON.parse('{"47315a3cd26ddd9c7fa963778988464341b8193f":"query ServerAccountPageQuery { accountName }","4b33c5c07f440dc7489e55619dc2211a13786e72":"fragment ServerCollectionPage on Query { collection(slug: $slug) { id } } query ServerCollectionPageQuery($slug: String!) { collection(slug: $slug) { breadcrumbList { itemListElement { item name position } } meta { selectedFacets { key value } } seo { description title } } ...ServerCollectionPage }","46103bee661405bde706d72126fdbf9b0a0c9e6e":"fragment CartProductItem on StoreProduct { additionalProperty { name propertyID value valueReference } brand { name } gtin image { alternateName url } isVariantOf { name productGroupID skuVariants { activeVariations availableVariations slugsMap } } name sku unitMultiplier } fragment ProductDetailsFragment_product on StoreProduct { additionalProperty { name propertyID value valueReference } brand { name } description gtin image { alternateName url } isVariantOf { name productGroupID skuVariants { activeVariations availableVariations slugsMap } } name offers { lowPrice lowPriceWithTaxes offers { availability listPrice listPriceWithTaxes price priceWithTaxes seller { identifier } } } id: productID sku unitMultiplier ...CartProductItem } fragment ServerProduct on Query { product(locator: $locator) { id: productID } } query ServerProductQuery($locator: [IStoreSelectedFacet!]!) { product(locator: $locator) { brand { name } breadcrumbList { itemListElement { item name position } } description gtin image { alternateName url } isVariantOf { productGroupID } name offers { highPrice lowPrice lowPriceWithTaxes offers { availability itemCondition price priceCurrency priceValidUntil seller { identifier } } priceCurrency } id: productID releaseDate seo { canonical description title } sku ...ProductDetailsFragment_product } ...ServerProduct }","a1c862006d31528cb33bae9d21254d49239c2abb":"query ServerOrderDetailsQuery($orderId: String!) { accountName userOrder(orderId: $orderId) { allowCancellation canProcessOrderAuthorization clientProfileData { corporateName email firstName isCorporate lastName phone } customFields { fields { name refId value } id type } deliveryOptionsData { contact { email name phone } deliveryOptions { address { addressId addressType city complement country entityId geoCoordinates neighborhood number postalCode receiverName reference state street versionId } deliveryChannel deliveryCompany deliveryWindow { endDateUtc price startDateUtc } friendlyDeliveryOptionName friendlyShippingEstimate items { id imageUrl name price quantity tax total uniqueId } pickupStoreInfo { additionalInfo address { addressId addressType city complement country entityId geoCoordinates neighborhood number postalCode receiverName reference state street versionId } dockId friendlyName isPickupStore } quantityOfDifferentItems selectedSla seller shippingEstimate shippingEstimateDate total } } orderId paymentData { transactions { isActive payments { bankIssuedInvoiceIdentificationNumber connectorResponses { authId } group id installments lastDigits paymentOrigin paymentSystemName redemptionCode referenceValue tid url value } } } ruleForAuthorization { dimensionId orderAuthorizationId rule { authorizationData { authorizers { authorizationDate email id type } requireAllApprovals } authorizedEmails doId id isUserAuthorized isUserNextAuthorizer name notification priority scoreInterval { accept deny } status timeout trigger { condition { conditionType description expression greatherThan lessThan } effect { description effectType funcPath } } } } shopperName { firstName lastName } status statusDescription storePreferencesData { currencyCode } totals { id name value } } }","ee84ac3f5b58c5e1950a927a42c5c1dd6012fcc4":"query ServerListOrdersQuery($clientEmail: String, $dateFinal: String, $dateInitial: String, $page: Int, $perPage: Int, $status: [String], $text: String) { accountName listUserOrders( page: $page perPage: $perPage status: $status dateInitial: $dateInitial dateFinal: $dateFinal text: $text clientEmail: $clientEmail ) { list { ShippingEstimatedDate clientName creationDate currencyCode customFields { type value } items { description ean id price productId quantity refId seller sellingPrice } orderId status statusDescription totalValue } paging { currentPage pages perPage total } } }","0ed4b5db8fed122d8418195d01fb91b30261d587":"query ServerProfileQuery { accountName accountProfile { email id name } }","9f24767f16e6e05c168336701a6c6c7b6b5dc1c6":"query ServerSecurityQuery { accountName }","522e5feeb80e67cee931bc98eac9d08ea75c75d2":"query ServerUserDetailsQuery { accountName userDetails { email name orgUnit role } }","e2b06da6840614d3c72768e56579b9d3b8e80802":"mutation CancelOrderMutation($data: IUserOrderCancel!) { cancelOrder(data: $data) { data } }","8c25d37c8d6e7c20ab21bb8a4f4e6a2fe320ea8d":"mutation ProcessOrderAuthorizationMutation($data: IProcessOrderAuthorization!) { processOrderAuthorization(data: $data) { isPendingForOtherAuthorizer ruleForAuthorization { dimensionId orderAuthorizationId rule { authorizationData { authorizers { authorizationDate email id type } requireAllApprovals } authorizedEmails doId id isUserAuthorized isUserNextAuthorizer name notification priority scoreInterval { accept deny } status timeout trigger { condition { conditionType description expression greatherThan lessThan } effect { description effectType funcPath } } } } } }","32f99c73c3de958b64d6bece1afe800469f54548":"query ValidateUser { validateUser { isValid } }","c2b3f8bff73ebf6ac79d758c66cabbc21ba9fcc0":"fragment CartItem on StoreOffer { itemOffered { ...CartProductItem } listPrice listPriceWithTaxes price priceWithTaxes quantity seller { identifier } } fragment CartMessage on StoreCartMessage { status text } fragment CartProductItem on StoreProduct { additionalProperty { name propertyID value valueReference } brand { name } gtin image { alternateName url } isVariantOf { name productGroupID skuVariants { activeVariations availableVariations slugsMap } } name sku unitMultiplier } mutation ValidateCartMutation($cart: IStoreCart!, $session: IStoreSession!) { validateCart(cart: $cart, session: $session) { messages { ...CartMessage } order { acceptedOffer { ...CartItem } orderNumber shouldSplitItem } } }","3fa04e88c811fcb5ece7206fd5aa745bdbc143a8":"query ClientPickupPointsQuery($geoCoordinates: IStoreGeoCoordinates) { pickupPoints(geoCoordinates: $geoCoordinates) { pickupPointDistances { address { city number postalCode state street } distance isActive pickupId pickupName } } }","feb7005103a859e2bc8cf2360d568806fd88deba":"mutation SubscribeToNewsletter($data: IPersonNewsletter!) { subscribeToNewsletter(data: $data) { id } }","dc912e7272e3d9f5ced206837df87f544d39d0a5":"query ClientProductCountQuery($term: String) { productCount(term: $term) { total } }","4039e05f01a2fe449e20e8b82170d0ba94b1fbe9":"fragment ProductSKUMatrixSidebarFragment_product on StoreProduct { isVariantOf { name productGroupID skuVariants { activeVariations allVariantProducts { additionalProperty { name propertyID value valueReference } image { alternateName url } name offers { highPrice lowPrice lowPriceWithTaxes offerCount offers { availability itemCondition listPrice listPriceWithTaxes price priceCurrency priceValidUntil priceWithTaxes quantity sellingPrice } priceCurrency } sku } availableVariations slugsMap } } id: productID } query ClientAllVariantProductsQuery($locator: [IStoreSelectedFacet!]!) { product(locator: $locator) { ...ProductSKUMatrixSidebarFragment_product } }","1adc93c70f16173540c50f725ee09a2d67cb85ab":"fragment ClientManyProducts on Query { search( first: $first after: $after sort: $sort term: $term selectedFacets: $selectedFacets sponsoredCount: $sponsoredCount ) { products { pageInfo { totalCount } } } } fragment ProductSummary_product on StoreProduct { additionalProperty { name propertyID value valueReference } advertisement { adId adResponseId } brand { brandName: name } brand { name } gtin image { alternateName url } isVariantOf { name productGroupID skuVariants { activeVariations allVariantsByName availableVariations slugsMap } } name offers { lowPrice lowPriceWithTaxes offers { availability listPrice listPriceWithTaxes price priceWithTaxes quantity seller { identifier } } } id: productID sku slug unitMultiplier } query ClientManyProductsQuery($after: String, $first: Int!, $selectedFacets: [IStoreSelectedFacet!]!, $sort: StoreSort!, $sponsoredCount: Int, $term: String!) { search( first: $first after: $after sort: $sort term: $term selectedFacets: $selectedFacets sponsoredCount: $sponsoredCount ) { products { edges { node { ...ProductSummary_product } } pageInfo { totalCount } } } ...ClientManyProducts }","bfc40da32b60f9404a4adb96b0856e3fbb04b076":"fragment ClientProductGallery on Query { search( first: $first after: $after sort: $sort term: $term selectedFacets: $selectedFacets ) { products { pageInfo { totalCount } } } } fragment Filter_facets on StoreFacet { ... on StoreFacetBoolean { __typename key label values { label quantity selected value } } ... on StoreFacetRange { __typename key label max { absolute selected } min { absolute selected } } } fragment SearchEvent_metadata on SearchMetadata { fuzzy isTermMisspelled logicalOperator } query ClientProductGalleryQuery($after: String!, $first: Int!, $selectedFacets: [IStoreSelectedFacet!]!, $sort: StoreSort!, $term: String!) { redirect(term: $term, selectedFacets: $selectedFacets) { url } search( first: $first after: $after sort: $sort term: $term selectedFacets: $selectedFacets ) { facets { ...Filter_facets } metadata { ...SearchEvent_metadata } products { pageInfo { totalCount } } } ...ClientProductGallery }","7d121ef8d4dc99174e64e4429a9b977b8bbebed8":"fragment CartProductItem on StoreProduct { additionalProperty { name propertyID value valueReference } brand { name } gtin image { alternateName url } isVariantOf { name productGroupID skuVariants { activeVariations availableVariations slugsMap } } name sku unitMultiplier } fragment ClientProduct on Query { product(locator: $locator) { id: productID } } fragment ProductDetailsFragment_product on StoreProduct { additionalProperty { name propertyID value valueReference } brand { name } description gtin image { alternateName url } isVariantOf { name productGroupID skuVariants { activeVariations availableVariations slugsMap } } name offers { lowPrice lowPriceWithTaxes offers { availability listPrice listPriceWithTaxes price priceWithTaxes seller { identifier } } } id: productID sku unitMultiplier ...CartProductItem } query ClientProductQuery($locator: [IStoreSelectedFacet!]!) { product(locator: $locator) { ...ProductDetailsFragment_product } ...ClientProduct }","34ea14c0d4a57ddf9bc11e4be0cd2b5a6506d3d4":"query ClientProfileQuery($id: String!) { profile(id: $id) { addresses { city country geoCoordinate postalCode } } }","b548281d477a173be7b6960434604d69769a97e7":"fragment ClientSearchSuggestions on Query { search(first: 5, term: $term, selectedFacets: $selectedFacets) { suggestions { terms { value } } } } fragment ProductSummary_product on StoreProduct { additionalProperty { name propertyID value valueReference } advertisement { adId adResponseId } brand { brandName: name } brand { name } gtin image { alternateName url } isVariantOf { name productGroupID skuVariants { activeVariations allVariantsByName availableVariations slugsMap } } name offers { lowPrice lowPriceWithTaxes offers { availability listPrice listPriceWithTaxes price priceWithTaxes quantity seller { identifier } } } id: productID sku slug unitMultiplier } fragment SearchEvent_metadata on SearchMetadata { fuzzy isTermMisspelled logicalOperator } query ClientSearchSuggestionsQuery($selectedFacets: [IStoreSelectedFacet!], $term: String!) { search(first: 5, term: $term, selectedFacets: $selectedFacets) { metadata { ...SearchEvent_metadata } products { pageInfo { totalCount } } suggestions { products { ...ProductSummary_product } terms { value } } } ...ClientSearchSuggestions }","e2385b0f11726d0068f96548f57a8dd441c064e3":"fragment ClientTopSearchSuggestions on Query { search(first: 5, term: $term, selectedFacets: $selectedFacets) { suggestions { terms { value } } } } query ClientTopSearchSuggestionsQuery($selectedFacets: [IStoreSelectedFacet!], $term: String!) { search(first: 5, term: $term, selectedFacets: $selectedFacets) { suggestions { terms { value } } } ...ClientTopSearchSuggestions }","259dd10b1c65ce4b20c9181feb7bec85ecb402e6":"mutation ValidateSession($search: String!, $session: IStoreSession!) { validateSession(session: $session, search: $search) { addressType b2b { customerId firstName isRepresentative lastName savedPostalCode unitId unitName userEmail userName } channel city country currency { code symbol } deliveryMode { deliveryChannel deliveryMethod deliveryWindow { endDate startDate } } geoCoordinates { latitude longitude } locale marketingData { utmCampaign utmMedium utmSource utmiCampaign utmiPage utmiPart } person { email familyName givenName id } postalCode } }","c35bad22f67f3eb34fea52bb49efa6b1da6b728d":"fragment ClientShippingSimulation on Query { shipping(items: $items, postalCode: $postalCode, country: $country) { address { city } } } query ClientShippingSimulationQuery($country: String!, $items: [IShippingItem!]!, $postalCode: String!) { shipping(items: $items, postalCode: $postalCode, country: $country) { address { city neighborhood state } logisticsInfo { slas { availableDeliveryWindows { endDateUtc listPrice price startDateUtc } carrier deliveryChannel localizedEstimates price shippingEstimate } } } ...ClientShippingSimulation }","5c2181dde311ca80b72e0cc76ac0855d8aa8b51e":"fragment ClientManyProducts on Query { search( first: $first after: $after sort: $sort term: $term selectedFacets: $selectedFacets sponsoredCount: $sponsoredCount ) { products { pageInfo { totalCount } } } } fragment ProductSummary_product on StoreProduct { additionalProperty { name propertyID value valueReference } advertisement { adId adResponseId } brand { brandName: name } brand { name } gtin image { alternateName url } isVariantOf { name productGroupID skuVariants { activeVariations allVariantsByName availableVariations slugsMap } } name offers { lowPrice lowPriceWithTaxes offers { availability listPrice listPriceWithTaxes price priceWithTaxes quantity seller { identifier } } } id: productID sku slug unitMultiplier } fragment SearchEvent_metadata on SearchMetadata { fuzzy isTermMisspelled logicalOperator } query ServerManyProductsQuery($after: String, $first: Int!, $selectedFacets: [IStoreSelectedFacet!]!, $sort: StoreSort!, $sponsoredCount: Int, $term: String!) { search( first: $first after: $after sort: $sort term: $term selectedFacets: $selectedFacets sponsoredCount: $sponsoredCount ) { metadata { ...SearchEvent_metadata } products { edges { node { ...ProductSummary_product } } pageInfo { totalCount } } } ...ClientManyProducts }"}')}};
@@ -1 +1 @@
1
- self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-c67a75d1b6f99dc8.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:["static/8LqJdo90qttH83UstKDej/_buildManifest.js","static/8LqJdo90qttH83UstKDej/_ssgManifest.js"],rootMainFiles:[],pages:{"/":["static/chunks/webpack-8b6c086380cf1398.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-9fc2b806c0ac0b8d.js","static/css/b1806cbafd0c1f81.css","static/chunks/pages/index-b45c9535696b5ab1.js"],"/404":["static/chunks/webpack-8b6c086380cf1398.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-9fc2b806c0ac0b8d.js","static/css/2980acad3f8e1028.css","static/chunks/pages/404-dca50618ea3e6fb6.js"],"/500":["static/chunks/webpack-8b6c086380cf1398.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-9fc2b806c0ac0b8d.js","static/css/2980acad3f8e1028.css","static/chunks/pages/500-ae6697c7631fb07a.js"],"/[...slug]":["static/chunks/webpack-8b6c086380cf1398.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-9fc2b806c0ac0b8d.js","static/css/92960607d6088082.css","static/chunks/7191-9bdd5f0c18fbd942.js","static/chunks/pages/[...slug]-debd8b208a0e3d02.js"],"/[slug]/p":["static/chunks/webpack-8b6c086380cf1398.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-9fc2b806c0ac0b8d.js","static/chunks/7498-0dc4f9a9ed199d3a.js","static/css/a3ca6a9b63f657be.css","static/css/62a5153ac7061286.css","static/chunks/3166-6af5e854c2f2913a.js","static/css/6831395ff5fd317a.css","static/chunks/pages/[slug]/p-d782ecb21200f200.js"],"/_app":["static/chunks/webpack-8b6c086380cf1398.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/css/0a57ee6c7a57788c.css","static/chunks/pages/_app-728289774860e9d9.js"],"/_error":["static/chunks/webpack-8b6c086380cf1398.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/pages/_error-d820b4586477c368.js"],"/account":["static/chunks/webpack-8b6c086380cf1398.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/pages/account-377dfe7a5276ceca.js"],"/account/403":["static/chunks/webpack-8b6c086380cf1398.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-9fc2b806c0ac0b8d.js","static/css/b7bba8fce075688b.css","static/chunks/pages/account/403-a3d8b31b4e9ee8a6.js"],"/account/404":["static/chunks/webpack-8b6c086380cf1398.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-9fc2b806c0ac0b8d.js","static/css/5347dbc8b71de47d.css","static/chunks/pages/account/404-22b789f04fcdce39.js"],"/account/[...unknown]":["static/chunks/webpack-8b6c086380cf1398.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/pages/account/[...unknown]-aad8638fc7323b61.js"],"/account/orders":["static/chunks/webpack-8b6c086380cf1398.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-9fc2b806c0ac0b8d.js","static/css/3d41485722b4e3f5.css","static/chunks/pages/account/orders-ec040e06c4b516d0.js"],"/account/orders/[id]":["static/chunks/webpack-8b6c086380cf1398.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-9fc2b806c0ac0b8d.js","static/css/ba1d8927d8745656.css","static/chunks/pages/account/orders/[id]-f513624f550cc11e.js"],"/account/profile":["static/chunks/webpack-8b6c086380cf1398.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-9fc2b806c0ac0b8d.js","static/css/831a1f72fe4b2d80.css","static/chunks/pages/account/profile-29f93f4c5a55bd87.js"],"/account/security":["static/chunks/webpack-8b6c086380cf1398.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-9fc2b806c0ac0b8d.js","static/css/32b1696118552960.css","static/chunks/pages/account/security-94874fc477520f74.js"],"/account/user-details":["static/chunks/webpack-8b6c086380cf1398.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-9fc2b806c0ac0b8d.js","static/css/e46393a76c5d93a9.css","static/chunks/pages/account/user-details-143cb45d5080d1d9.js"],"/checkout":["static/chunks/webpack-8b6c086380cf1398.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-9fc2b806c0ac0b8d.js","static/chunks/pages/checkout-b0637ee59b1cdca8.js"],"/login":["static/chunks/webpack-8b6c086380cf1398.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-9fc2b806c0ac0b8d.js","static/css/2980acad3f8e1028.css","static/chunks/pages/login-bae3a4cdaaed110c.js"],"/s":["static/chunks/webpack-8b6c086380cf1398.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-9fc2b806c0ac0b8d.js","static/css/92960607d6088082.css","static/chunks/7191-9bdd5f0c18fbd942.js","static/css/2980acad3f8e1028.css","static/chunks/pages/s-011eedb19dcdccc6.js"]},ampFirstPages:[]};
1
+ self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-c67a75d1b6f99dc8.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:["static/T-feA7OkkJoZOJ4u9O47z/_buildManifest.js","static/T-feA7OkkJoZOJ4u9O47z/_ssgManifest.js"],rootMainFiles:[],pages:{"/":["static/chunks/webpack-b39da7001e937875.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-ed47aa8015d45a84.js","static/css/b1806cbafd0c1f81.css","static/chunks/pages/index-004d6444cfaf59cb.js"],"/404":["static/chunks/webpack-b39da7001e937875.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-ed47aa8015d45a84.js","static/css/2980acad3f8e1028.css","static/chunks/pages/404-cc5de07438cb53b5.js"],"/500":["static/chunks/webpack-b39da7001e937875.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-ed47aa8015d45a84.js","static/css/2980acad3f8e1028.css","static/chunks/pages/500-926ab913425651bc.js"],"/[...slug]":["static/chunks/webpack-b39da7001e937875.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-ed47aa8015d45a84.js","static/css/9bdd3be2a41064c6.css","static/chunks/7191-df87383e8d7c078f.js","static/chunks/pages/[...slug]-b3a9bdfcf0127006.js"],"/[slug]/p":["static/chunks/webpack-b39da7001e937875.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-ed47aa8015d45a84.js","static/chunks/7498-0dc4f9a9ed199d3a.js","static/css/a3ca6a9b63f657be.css","static/css/62a5153ac7061286.css","static/chunks/3166-e2e2d3255aa5f208.js","static/css/6831395ff5fd317a.css","static/chunks/pages/[slug]/p-3c16bf4c43aefc51.js"],"/_app":["static/chunks/webpack-b39da7001e937875.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/css/0a57ee6c7a57788c.css","static/chunks/pages/_app-728289774860e9d9.js"],"/_error":["static/chunks/webpack-b39da7001e937875.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/pages/_error-d820b4586477c368.js"],"/account":["static/chunks/webpack-b39da7001e937875.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/pages/account-377dfe7a5276ceca.js"],"/account/403":["static/chunks/webpack-b39da7001e937875.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-ed47aa8015d45a84.js","static/css/b7bba8fce075688b.css","static/chunks/pages/account/403-b65f508af4df4904.js"],"/account/404":["static/chunks/webpack-b39da7001e937875.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-ed47aa8015d45a84.js","static/css/5347dbc8b71de47d.css","static/chunks/pages/account/404-9a7f4c3464751182.js"],"/account/[...unknown]":["static/chunks/webpack-b39da7001e937875.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/pages/account/[...unknown]-aad8638fc7323b61.js"],"/account/orders":["static/chunks/webpack-b39da7001e937875.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-ed47aa8015d45a84.js","static/css/3d41485722b4e3f5.css","static/chunks/pages/account/orders-ec040e06c4b516d0.js"],"/account/orders/[id]":["static/chunks/webpack-b39da7001e937875.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-ed47aa8015d45a84.js","static/css/ba1d8927d8745656.css","static/chunks/pages/account/orders/[id]-f513624f550cc11e.js"],"/account/profile":["static/chunks/webpack-b39da7001e937875.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-ed47aa8015d45a84.js","static/css/831a1f72fe4b2d80.css","static/chunks/pages/account/profile-29f93f4c5a55bd87.js"],"/account/security":["static/chunks/webpack-b39da7001e937875.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-ed47aa8015d45a84.js","static/css/32b1696118552960.css","static/chunks/pages/account/security-94874fc477520f74.js"],"/account/user-details":["static/chunks/webpack-b39da7001e937875.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-ed47aa8015d45a84.js","static/css/e46393a76c5d93a9.css","static/chunks/pages/account/user-details-143cb45d5080d1d9.js"],"/checkout":["static/chunks/webpack-b39da7001e937875.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-ed47aa8015d45a84.js","static/chunks/pages/checkout-b0637ee59b1cdca8.js"],"/login":["static/chunks/webpack-b39da7001e937875.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-ed47aa8015d45a84.js","static/css/2980acad3f8e1028.css","static/chunks/pages/login-3043634ec00661a8.js"],"/s":["static/chunks/webpack-b39da7001e937875.js","static/chunks/framework-807b0f81cbc129f0.js","static/chunks/main-f658704b53a96ab1.js","static/chunks/6031-18797e7ebff417ab.js","static/css/d26cb0a54378b3d9.css","static/chunks/9173-ed47aa8015d45a84.js","static/css/9bdd3be2a41064c6.css","static/chunks/7191-df87383e8d7c078f.js","static/css/2980acad3f8e1028.css","static/chunks/pages/s-3197dfed5c06ad7b.js"]},ampFirstPages:[]};
@@ -1 +1 @@
1
- self.__REACT_LOADABLE_MANIFEST='{"../../../../node_modules/.pnpm/next@13.5.11_@babel+core@7.26.7_@opentelemetry+api@1.4.1_react-dom@18.3.1_react@18.3.1__react@18.3.1_sass@1.83.4/node_modules/next/dist/client/index.js -> ../pages/_app":{"id":9909,"files":["static/chunks/9909.dcc319593a7c09f1.js"]},"../../../../node_modules/.pnpm/next@13.5.11_@babel+core@7.26.7_@opentelemetry+api@1.4.1_react-dom@18.3.1_react@18.3.1__react@18.3.1_sass@1.83.4/node_modules/next/dist/client/index.js -> ../pages/_error":{"id":3483,"files":["static/chunks/3483.4aa5b8186f9288b8.js"]},"../../../components/dist/esm/molecules/Breadcrumb/BreadcrumbBase.js -> ../Dropdown/Dropdown":{"id":7169,"files":["static/chunks/Dropdown.7fe839c5ffce4687.js"]},"../../../components/dist/esm/molecules/Breadcrumb/BreadcrumbBase.js -> ../Dropdown/DropdownButton":{"id":9570,"files":["static/chunks/DropdownButton.47ba6e75ee7435de.js"]},"../../../components/dist/esm/molecules/Breadcrumb/BreadcrumbBase.js -> ../Dropdown/DropdownItem":{"id":4451,"files":["static/chunks/DropdownItem.0b3c39f881ca0832.js"]},"../../../components/dist/esm/molecules/Breadcrumb/BreadcrumbBase.js -> ../Dropdown/DropdownMenu":{"id":5741,"files":["static/chunks/DropdownMenu.943b2d11ffa50ff6.js"]},"../components/cart/CartItem/CartItem.tsx -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../components/cart/CartSidebar/CartSidebar.tsx -> ../../ui/Gift":{"id":6683,"files":["static/chunks/Gift.f93e4a95caf390e3.js"]},"../components/cart/CartSidebar/CartSidebar.tsx -> ../CartItem":{"id":9550,"files":["static/chunks/CartItem.e010557e686e1009.js"]},"../components/cart/CartSidebar/CartSidebar.tsx -> ../EmptyCart":{"id":6348,"files":["static/chunks/EmptyCart.2fac8149cc511b0d.js"]},"../components/cart/CartSidebar/CartSidebar.tsx -> ../OrderSummary":{"id":6768,"files":["static/chunks/OrderSummary.8092365254225970.js"]},"../components/cart/CartSidebar/CartSidebar.tsx -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../components/cart/CartSidebar/CartSidebar.tsx -> @faststore/ui":{"id":5781,"files":["static/chunks/7498-0dc4f9a9ed199d3a.js","static/chunks/5781.28d03feacead66ad.js","static/chunks/UIToast.a49584c87d3adc17.js"]},"../components/cms/RenderSections.tsx -> ../common/PreviewTag":{"id":2951,"files":["static/css/118f0b6523312556.css","static/chunks/PreviewTag.0b16a5b6ac35ce1c.js"]},"../components/cms/RenderSections.tsx -> ../common/Toast":{"id":2492,"files":["static/css/6e9b83ba680dd4a6.css","static/chunks/Toast.75a18f47eb23b703.js"]},"../components/cms/global/Components.ts -> src/components/cart/CartSidebar":{"id":76,"files":["static/css/b52f8f6500d3439e.css","static/chunks/CartSidebar.55cc31a37ffa6ee6.js"]},"../components/cms/global/Components.ts -> src/components/region/RegionModal":{"id":4600,"files":["static/css/dbbb10bf2f162a58.css","static/chunks/RegionModal.503f063f2e19b936.js"]},"../components/cms/global/Components.ts -> src/components/region/RegionSlider":{"id":5221,"files":["static/css/f93cf36b16950027.css","static/chunks/RegionSlider.00de4571775d04cc.js"]},"../components/cms/global/Components.ts -> src/components/sections/Footer":{"id":9432,"files":["static/css/083dc2a5b0de2439.css","static/chunks/Footer.09dddd47ce6c816f.js"]},"../components/cms/home/Components.ts -> src/components/sections/BannerText/OverriddenDefaultBannerText":{"id":4173,"files":["static/css/5273202f7c5e5ec1.css","static/chunks/BannerText.21f106b180339df1.js"]},"../components/cms/home/Components.ts -> src/components/sections/Newsletter/OverriddenDefaultNewsletter":{"id":7272,"files":["static/chunks/1417.feb3146f627742b7.js","static/css/18e4be87b97035da.css","static/chunks/Newsletter.2c79d1813e9f9c95.js"]},"../components/cms/home/Components.ts -> src/components/sections/ProductShelf/OverriddenDefaultProductShelf":{"id":552,"files":["static/css/a3ca6a9b63f657be.css","static/chunks/ProductShelf.299d0989eea49a79.js"]},"../components/cms/home/Components.ts -> src/components/sections/ProductTiles":{"id":7226,"files":["static/css/4656927d3ebbf5b8.css","static/chunks/ProductTiles.ab99b919f3c0215f.js"]},"../components/cms/plp/Components.ts -> src/components/sections/BannerText/OverriddenDefaultBannerText":{"id":4173,"files":["static/css/5273202f7c5e5ec1.css","static/chunks/BannerText.21f106b180339df1.js"]},"../components/cms/plp/Components.ts -> src/components/sections/Newsletter/OverriddenDefaultNewsletter":{"id":7272,"files":["static/chunks/1417.feb3146f627742b7.js","static/css/18e4be87b97035da.css","static/chunks/Newsletter.2c79d1813e9f9c95.js"]},"../components/cms/plp/Components.ts -> src/components/sections/ProductShelf/OverriddenDefaultProductShelf":{"id":552,"files":["static/css/a3ca6a9b63f657be.css","static/chunks/ProductShelf.299d0989eea49a79.js"]},"../components/cms/plp/Components.ts -> src/components/sections/ProductTiles":{"id":7226,"files":["static/css/4656927d3ebbf5b8.css","static/chunks/ProductTiles.ab99b919f3c0215f.js"]},"../components/cms/search/Components.ts -> src/components/sections/BannerNewsletter/BannerNewsletter":{"id":3143,"files":["static/chunks/1417.feb3146f627742b7.js","static/css/18e4be87b97035da.css","static/css/5273202f7c5e5ec1.css","static/css/865e30903caadb79.css","static/chunks/BannerNewsletter.a9ea51c53885c80f.js"]},"../components/cms/search/Components.ts -> src/components/sections/BannerText/OverriddenDefaultBannerText":{"id":4173,"files":["static/css/5273202f7c5e5ec1.css","static/chunks/BannerText.21f106b180339df1.js"]},"../components/cms/search/Components.ts -> src/components/sections/Newsletter/OverriddenDefaultNewsletter":{"id":7272,"files":["static/chunks/1417.feb3146f627742b7.js","static/css/18e4be87b97035da.css","static/chunks/Newsletter.2c79d1813e9f9c95.js"]},"../components/cms/search/Components.ts -> src/components/sections/ProductShelf/OverriddenDefaultProductShelf":{"id":552,"files":["static/css/a3ca6a9b63f657be.css","static/chunks/ProductShelf.299d0989eea49a79.js"]},"../components/cms/search/Components.ts -> src/components/sections/ProductTiles":{"id":7226,"files":["static/css/4656927d3ebbf5b8.css","static/chunks/ProductTiles.ab99b919f3c0215f.js"]},"../components/common/Toast/Toast.tsx -> @faststore/ui":{"id":5781,"files":["static/chunks/7498-0dc4f9a9ed199d3a.js","static/chunks/5781.28d03feacead66ad.js","static/chunks/UIToast.a49584c87d3adc17.js"]},"../components/navigation/Navbar/Navbar.tsx -> src/components/navigation/NavbarLinks":{"id":6700,"files":["static/chunks/6700.f046aa86e2c83b53.js"]},"../components/navigation/Navbar/Navbar.tsx -> src/components/navigation/NavbarSlider":{"id":4803,"files":["static/css/fd0a7a134ddc3d90.css","static/chunks/4803.412bf2a7e15626a6.js"]},"../components/region/RegionModal/RegionModal.tsx -> @faststore/ui":{"id":5781,"files":["static/chunks/7498-0dc4f9a9ed199d3a.js","static/chunks/5781.28d03feacead66ad.js","static/chunks/UIToast.a49584c87d3adc17.js"]},"../components/region/RegionSlider/RegionSlider.tsx -> @faststore/ui":{"id":5781,"files":["static/chunks/7498-0dc4f9a9ed199d3a.js","static/chunks/5781.28d03feacead66ad.js","static/chunks/7481.3c4ad3642e346232.js"]},"../components/search/Filter/FilterSlider.tsx -> @faststore/ui":{"id":5781,"files":["static/chunks/7498-0dc4f9a9ed199d3a.js","static/chunks/5781.28d03feacead66ad.js","static/chunks/7351.e90a4cc21797c136.js"]},"../components/search/SearchDropdown/SearchDropdown.tsx -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../components/search/SearchInput/SearchInput.tsx -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../components/search/SearchInput/SearchInput.tsx -> @faststore/ui":{"id":5781,"files":["static/chunks/7498-0dc4f9a9ed199d3a.js","static/chunks/5781.28d03feacead66ad.js","static/chunks/UIToast.a49584c87d3adc17.js"]},"../components/search/SearchInput/SearchInput.tsx -> src/components/search/SearchDropdown":{"id":2284,"files":["static/chunks/2284.6dd050e60172189a.js"]},"../components/sections/BannerText/DefaultComponents.ts -> @faststore/ui":{"id":5781,"files":["static/chunks/7498-0dc4f9a9ed199d3a.js","static/chunks/5781.28d03feacead66ad.js","static/chunks/UIBannerText.f4167ceafb96cf67.js"]},"../components/sections/Navbar/DefaultComponents.ts -> @faststore/ui":{"id":5781,"files":["static/chunks/7498-0dc4f9a9ed199d3a.js","static/chunks/5781.28d03feacead66ad.js","static/chunks/UIToast.a49584c87d3adc17.js"]},"../components/sections/Navbar/DefaultComponents.ts -> src/components/ui/Button":{"id":5107,"files":["static/chunks/ButtonSignIn.111c95c4e7e2640f.js"]},"../components/sections/Navbar/DefaultComponents.ts -> src/components/ui/SKUMatrix/SKUMatrixSidebar":{"id":7329,"files":["static/chunks/UISKUMatrixSidebar.8b6fac58c48f999c.js"]},"../components/sections/ProductDetails/ProductDetails.tsx -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../components/sections/ProductGallery/DefaultComponents.ts -> ./EmptyGallery":{"id":5796,"files":["static/chunks/5796.31fc3b14839d2bc0.js"]},"../components/sections/ProductGallery/DefaultComponents.ts -> src/components/product/ProductCard":{"id":3836,"files":["static/chunks/3836.c0487aea7bd0c6f0.js"]},"../components/sections/ProductGallery/DefaultComponents.ts -> src/components/search/Filter/FilterDesktop":{"id":3155,"files":["static/chunks/3155.243c7558a71f0695.js"]},"../components/sections/ProductGallery/DefaultComponents.ts -> src/components/search/Filter/FilterSlider":{"id":83,"files":["static/css/2a4b7072e47636f1.css","static/chunks/83.ee1fdbe283ac65b6.js"]},"../components/sections/ProductShelf/DefaultComponents.ts -> @faststore/ui":{"id":5781,"files":["static/chunks/7498-0dc4f9a9ed199d3a.js","static/chunks/5781.28d03feacead66ad.js","static/chunks/6857.b2c06171638955ea.js"]},"../components/sections/ProductShelf/DefaultComponents.ts -> src/components/product/ProductCard":{"id":3836,"files":["static/chunks/3836.c0487aea7bd0c6f0.js"]},"../components/sections/ProductShelf/DefaultComponents.ts -> src/components/ui/Carousel":{"id":294,"files":["static/chunks/294.d57cdd543091b533.js"]},"../components/templates/ProductListingPage/ProductListing.tsx -> src/components/sections/ScrollToTopButton":{"id":9788,"files":["static/css/936c65069d608087.css","static/chunks/ScrollToTopButton.7acc3be2dcad2695.js"]},"../components/ui/ProductGallery/ProductGallery.tsx -> ./ProductGalleryPage":{"id":3399,"files":["static/chunks/3399.93804fb74f79436c.js"]},"../components/ui/ProductGallery/ProductGallery.tsx -> src/components/skeletons/FilterSkeleton":{"id":6624,"files":["static/chunks/FilterSkeleton.2e156182f33d8116.js"]},"../components/ui/ProductShelf/ProductShelf.tsx -> src/components/skeletons/ProductShelfSkeleton":{"id":4799,"files":["static/chunks/4799.685d618907cf7026.js"]},"../sdk/analytics/hooks/usePageViewEvent.ts -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../sdk/analytics/hooks/useViewItemListEvent.ts -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../sdk/cart/useBuyButton.ts -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../sdk/cart/useRemoveButton.ts -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../sdk/product/useProductGalleryQuery.ts -> @faststore/sdk":{"id":6393,"files":["static/chunks/9399.49b20139636a39f2.js"]},"../sdk/product/useProductLink.ts -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../sdk/search/useSuggestions.ts -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"[...slug].tsx -> src/components/templates/LandingPage":{"id":3802,"files":["static/chunks/7861.3fe27a385fea2fb7.js","static/chunks/1417.feb3146f627742b7.js","static/chunks/353.7f2181843462717d.js","static/css/a3ca6a9b63f657be.css","static/css/18e4be87b97035da.css","static/css/5273202f7c5e5ec1.css","static/css/62a5153ac7061286.css","static/chunks/3166-6af5e854c2f2913a.js","static/css/197e314c5a03eabd.css","static/chunks/6355.57d1a07f50ee6cc9.js"]}}';
1
+ self.__REACT_LOADABLE_MANIFEST='{"../../../../node_modules/.pnpm/next@13.5.11_@babel+core@7.26.7_@opentelemetry+api@1.4.1_react-dom@18.3.1_react@18.3.1__react@18.3.1_sass@1.83.4/node_modules/next/dist/client/index.js -> ../pages/_app":{"id":9909,"files":["static/chunks/9909.dcc319593a7c09f1.js"]},"../../../../node_modules/.pnpm/next@13.5.11_@babel+core@7.26.7_@opentelemetry+api@1.4.1_react-dom@18.3.1_react@18.3.1__react@18.3.1_sass@1.83.4/node_modules/next/dist/client/index.js -> ../pages/_error":{"id":3483,"files":["static/chunks/3483.4aa5b8186f9288b8.js"]},"../../../components/dist/esm/molecules/Breadcrumb/BreadcrumbBase.js -> ../Dropdown/Dropdown":{"id":7169,"files":["static/chunks/Dropdown.7fe839c5ffce4687.js"]},"../../../components/dist/esm/molecules/Breadcrumb/BreadcrumbBase.js -> ../Dropdown/DropdownButton":{"id":9570,"files":["static/chunks/DropdownButton.47ba6e75ee7435de.js"]},"../../../components/dist/esm/molecules/Breadcrumb/BreadcrumbBase.js -> ../Dropdown/DropdownItem":{"id":4451,"files":["static/chunks/DropdownItem.0b3c39f881ca0832.js"]},"../../../components/dist/esm/molecules/Breadcrumb/BreadcrumbBase.js -> ../Dropdown/DropdownMenu":{"id":5741,"files":["static/chunks/DropdownMenu.943b2d11ffa50ff6.js"]},"../components/cart/CartItem/CartItem.tsx -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../components/cart/CartSidebar/CartSidebar.tsx -> ../../ui/Gift":{"id":6683,"files":["static/chunks/Gift.f93e4a95caf390e3.js"]},"../components/cart/CartSidebar/CartSidebar.tsx -> ../CartItem":{"id":9550,"files":["static/chunks/CartItem.e010557e686e1009.js"]},"../components/cart/CartSidebar/CartSidebar.tsx -> ../EmptyCart":{"id":6348,"files":["static/chunks/EmptyCart.2fac8149cc511b0d.js"]},"../components/cart/CartSidebar/CartSidebar.tsx -> ../OrderSummary":{"id":6768,"files":["static/chunks/OrderSummary.8092365254225970.js"]},"../components/cart/CartSidebar/CartSidebar.tsx -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../components/cart/CartSidebar/CartSidebar.tsx -> @faststore/ui":{"id":5781,"files":["static/chunks/7498-0dc4f9a9ed199d3a.js","static/chunks/5781.28d03feacead66ad.js","static/chunks/UIToast.a49584c87d3adc17.js"]},"../components/cms/RenderSections.tsx -> ../common/PreviewTag":{"id":2951,"files":["static/css/118f0b6523312556.css","static/chunks/PreviewTag.0b16a5b6ac35ce1c.js"]},"../components/cms/RenderSections.tsx -> ../common/Toast":{"id":2492,"files":["static/css/6e9b83ba680dd4a6.css","static/chunks/Toast.75a18f47eb23b703.js"]},"../components/cms/global/Components.ts -> src/components/cart/CartSidebar":{"id":76,"files":["static/css/b52f8f6500d3439e.css","static/chunks/CartSidebar.55cc31a37ffa6ee6.js"]},"../components/cms/global/Components.ts -> src/components/region/RegionModal":{"id":4600,"files":["static/css/dbbb10bf2f162a58.css","static/chunks/RegionModal.04b02aafc0836d49.js"]},"../components/cms/global/Components.ts -> src/components/region/RegionSlider":{"id":5221,"files":["static/css/f93cf36b16950027.css","static/chunks/RegionSlider.d063ccee38bdfdb7.js"]},"../components/cms/global/Components.ts -> src/components/sections/Footer":{"id":9432,"files":["static/css/083dc2a5b0de2439.css","static/chunks/Footer.0eb7e5cc7bce8103.js"]},"../components/cms/home/Components.ts -> src/components/sections/BannerText/OverriddenDefaultBannerText":{"id":4173,"files":["static/css/5273202f7c5e5ec1.css","static/chunks/BannerText.681f118e9f149f6c.js"]},"../components/cms/home/Components.ts -> src/components/sections/Newsletter/OverriddenDefaultNewsletter":{"id":7272,"files":["static/chunks/1417.feb3146f627742b7.js","static/css/18e4be87b97035da.css","static/chunks/Newsletter.46c9113fa222890a.js"]},"../components/cms/home/Components.ts -> src/components/sections/ProductShelf/OverriddenDefaultProductShelf":{"id":552,"files":["static/css/a3ca6a9b63f657be.css","static/chunks/ProductShelf.b75a7ab8e313ea07.js"]},"../components/cms/home/Components.ts -> src/components/sections/ProductTiles":{"id":7226,"files":["static/css/4656927d3ebbf5b8.css","static/chunks/ProductTiles.35cd23ada22f5a96.js"]},"../components/cms/plp/Components.ts -> src/components/sections/BannerText/OverriddenDefaultBannerText":{"id":4173,"files":["static/css/5273202f7c5e5ec1.css","static/chunks/BannerText.681f118e9f149f6c.js"]},"../components/cms/plp/Components.ts -> src/components/sections/Newsletter/OverriddenDefaultNewsletter":{"id":7272,"files":["static/chunks/1417.feb3146f627742b7.js","static/css/18e4be87b97035da.css","static/chunks/Newsletter.46c9113fa222890a.js"]},"../components/cms/plp/Components.ts -> src/components/sections/ProductShelf/OverriddenDefaultProductShelf":{"id":552,"files":["static/css/a3ca6a9b63f657be.css","static/chunks/ProductShelf.b75a7ab8e313ea07.js"]},"../components/cms/plp/Components.ts -> src/components/sections/ProductTiles":{"id":7226,"files":["static/css/4656927d3ebbf5b8.css","static/chunks/ProductTiles.35cd23ada22f5a96.js"]},"../components/cms/search/Components.ts -> src/components/sections/BannerNewsletter/BannerNewsletter":{"id":3143,"files":["static/chunks/1417.feb3146f627742b7.js","static/css/18e4be87b97035da.css","static/css/5273202f7c5e5ec1.css","static/css/865e30903caadb79.css","static/chunks/BannerNewsletter.fe0181162c046991.js"]},"../components/cms/search/Components.ts -> src/components/sections/BannerText/OverriddenDefaultBannerText":{"id":4173,"files":["static/css/5273202f7c5e5ec1.css","static/chunks/BannerText.681f118e9f149f6c.js"]},"../components/cms/search/Components.ts -> src/components/sections/Newsletter/OverriddenDefaultNewsletter":{"id":7272,"files":["static/chunks/1417.feb3146f627742b7.js","static/css/18e4be87b97035da.css","static/chunks/Newsletter.46c9113fa222890a.js"]},"../components/cms/search/Components.ts -> src/components/sections/ProductShelf/OverriddenDefaultProductShelf":{"id":552,"files":["static/css/a3ca6a9b63f657be.css","static/chunks/ProductShelf.b75a7ab8e313ea07.js"]},"../components/cms/search/Components.ts -> src/components/sections/ProductTiles":{"id":7226,"files":["static/css/4656927d3ebbf5b8.css","static/chunks/ProductTiles.35cd23ada22f5a96.js"]},"../components/common/Toast/Toast.tsx -> @faststore/ui":{"id":5781,"files":["static/chunks/7498-0dc4f9a9ed199d3a.js","static/chunks/5781.28d03feacead66ad.js","static/chunks/UIToast.a49584c87d3adc17.js"]},"../components/navigation/Navbar/Navbar.tsx -> src/components/navigation/NavbarLinks":{"id":6700,"files":["static/chunks/6700.f046aa86e2c83b53.js"]},"../components/navigation/Navbar/Navbar.tsx -> src/components/navigation/NavbarSlider":{"id":4803,"files":["static/css/fd0a7a134ddc3d90.css","static/chunks/4803.412bf2a7e15626a6.js"]},"../components/region/RegionModal/RegionModal.tsx -> @faststore/ui":{"id":5781,"files":["static/chunks/7498-0dc4f9a9ed199d3a.js","static/chunks/5781.28d03feacead66ad.js","static/chunks/UIToast.a49584c87d3adc17.js"]},"../components/region/RegionSlider/RegionSlider.tsx -> @faststore/ui":{"id":5781,"files":["static/chunks/7498-0dc4f9a9ed199d3a.js","static/chunks/5781.28d03feacead66ad.js","static/chunks/7481.3c4ad3642e346232.js"]},"../components/search/Filter/FilterSlider.tsx -> @faststore/ui":{"id":5781,"files":["static/chunks/7498-0dc4f9a9ed199d3a.js","static/chunks/5781.28d03feacead66ad.js","static/chunks/7351.e90a4cc21797c136.js"]},"../components/search/SearchDropdown/SearchDropdown.tsx -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../components/search/SearchInput/SearchInput.tsx -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../components/search/SearchInput/SearchInput.tsx -> @faststore/ui":{"id":5781,"files":["static/chunks/7498-0dc4f9a9ed199d3a.js","static/chunks/5781.28d03feacead66ad.js","static/chunks/UIToast.a49584c87d3adc17.js"]},"../components/search/SearchInput/SearchInput.tsx -> src/components/search/SearchDropdown":{"id":2284,"files":["static/chunks/2284.6dd050e60172189a.js"]},"../components/sections/BannerText/DefaultComponents.ts -> @faststore/ui":{"id":5781,"files":["static/chunks/7498-0dc4f9a9ed199d3a.js","static/chunks/5781.28d03feacead66ad.js","static/chunks/UIBannerText.f4167ceafb96cf67.js"]},"../components/sections/Navbar/DefaultComponents.ts -> @faststore/ui":{"id":5781,"files":["static/chunks/7498-0dc4f9a9ed199d3a.js","static/chunks/5781.28d03feacead66ad.js","static/chunks/UIToast.a49584c87d3adc17.js"]},"../components/sections/Navbar/DefaultComponents.ts -> src/components/ui/Button":{"id":5107,"files":["static/chunks/ButtonSignIn.111c95c4e7e2640f.js"]},"../components/sections/Navbar/DefaultComponents.ts -> src/components/ui/SKUMatrix/SKUMatrixSidebar":{"id":7329,"files":["static/chunks/UISKUMatrixSidebar.8b6fac58c48f999c.js"]},"../components/sections/ProductDetails/ProductDetails.tsx -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../components/sections/ProductGallery/DefaultComponents.ts -> ./EmptyGallery":{"id":5796,"files":["static/chunks/5796.31fc3b14839d2bc0.js"]},"../components/sections/ProductGallery/DefaultComponents.ts -> src/components/product/ProductCard":{"id":3836,"files":["static/chunks/3836.c0487aea7bd0c6f0.js"]},"../components/sections/ProductGallery/DefaultComponents.ts -> src/components/search/Filter/FilterDesktop":{"id":3155,"files":["static/chunks/3155.243c7558a71f0695.js"]},"../components/sections/ProductGallery/DefaultComponents.ts -> src/components/search/Filter/FilterSlider":{"id":83,"files":["static/css/2a4b7072e47636f1.css","static/chunks/83.ee1fdbe283ac65b6.js"]},"../components/sections/ProductShelf/DefaultComponents.ts -> @faststore/ui":{"id":5781,"files":["static/chunks/7498-0dc4f9a9ed199d3a.js","static/chunks/5781.28d03feacead66ad.js","static/chunks/6857.b2c06171638955ea.js"]},"../components/sections/ProductShelf/DefaultComponents.ts -> src/components/product/ProductCard":{"id":3836,"files":["static/chunks/3836.c0487aea7bd0c6f0.js"]},"../components/sections/ProductShelf/DefaultComponents.ts -> src/components/ui/Carousel":{"id":294,"files":["static/chunks/294.d57cdd543091b533.js"]},"../components/templates/ProductListingPage/ProductListing.tsx -> src/components/sections/ScrollToTopButton":{"id":9788,"files":["static/css/936c65069d608087.css","static/chunks/ScrollToTopButton.7acc3be2dcad2695.js"]},"../components/ui/ProductGallery/ProductGallery.tsx -> ./ProductGalleryPage":{"id":3399,"files":["static/chunks/3399.93804fb74f79436c.js"]},"../components/ui/ProductGallery/ProductGallery.tsx -> src/components/skeletons/FilterSkeleton":{"id":6624,"files":["static/chunks/FilterSkeleton.2e156182f33d8116.js"]},"../components/ui/ProductShelf/ProductShelf.tsx -> src/components/skeletons/ProductShelfSkeleton":{"id":4799,"files":["static/chunks/4799.685d618907cf7026.js"]},"../sdk/analytics/hooks/usePageViewEvent.ts -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../sdk/analytics/hooks/useViewItemListEvent.ts -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../sdk/cart/useBuyButton.ts -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../sdk/cart/useRemoveButton.ts -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../sdk/product/useProductGalleryQuery.ts -> @faststore/sdk":{"id":6393,"files":["static/chunks/9399.49b20139636a39f2.js"]},"../sdk/product/useProductLink.ts -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"../sdk/search/useSuggestions.ts -> @faststore/sdk":{"id":6393,"files":["static/chunks/6393.53e9ea4f29d1bf23.js"]},"[...slug].tsx -> src/components/templates/LandingPage":{"id":3802,"files":["static/chunks/7861.3fe27a385fea2fb7.js","static/chunks/1417.feb3146f627742b7.js","static/chunks/353.7f2181843462717d.js","static/css/a3ca6a9b63f657be.css","static/css/18e4be87b97035da.css","static/css/5273202f7c5e5ec1.css","static/css/62a5153ac7061286.css","static/chunks/3166-e2e2d3255aa5f208.js","static/css/197e314c5a03eabd.css","static/chunks/6355.454b14737c2bf69c.js"]}}';
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=2197,e.ids=[2197,2888,660],e.modules={20463:(e,t,r)=>{r.a(e,async(e,o)=>{try{r.r(t),r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__,getStaticProps:()=>getStaticProps});var s=r(16641),a=r(55551),n=r(7027),i=r(93839),c=r(14194),p=r(76924),l=r(23091),u=r(56272),b=r(10278),g=r(47556),d=r(20997),P=e([n,i]);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}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 o;o=r[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}[n,i]=P.then?(await P)():P;let S=_objectSpread(_objectSpread(_objectSpread({},n.Z),{},{EmptyState:c.C},l.Z),p.Z),getStaticProps=async({previewData:e})=>{let[t,r,o]=(0,a.Tc)(e),[s,n,i,c]=await Promise.all([g.r.getSingleContent({contentType:"404",previewData:e}),t,r,o]),p=(0,b.z)({globalSections:n,globalSectionsHeader:i,globalSectionsFooter:c});return{props:{page:s,globalSections:p}}},__WEBPACK_DEFAULT_EXPORT__=function({page:{sections:e},globalSections:t}){let{sections:r,settings:o}=t??{};return(0,d.jsxs)(d.Fragment,{children:[d.jsx(s.NextSeo,{noindex:!0,nofollow:!0}),d.jsx(u.ZP,{context:{globalSettings:o},children:d.jsx(i.ZP,{sections:e,globalSections:r,components:S})})]})};o()}catch(e){o(e)}})},61744:(e,t,r)=>{r.a(e,async(e,o)=>{try{r.r(t),r.d(t,{config:()=>P,default:()=>u,getServerSideProps:()=>d,getStaticPaths:()=>g,getStaticProps:()=>b,reportWebVitals:()=>S,routeModule:()=>y,unstable_getServerProps:()=>m,unstable_getServerSideProps:()=>j,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>x,unstable_getStaticProps:()=>_});var s=r(21314),a=r(36267),n=r(18400),i=r(42445),c=r(19630),p=r(20463),l=e([p,c]);[p,c]=l.then?(await l)():l;let u=(0,n.l)(p,"default"),b=(0,n.l)(p,"getStaticProps"),g=(0,n.l)(p,"getStaticPaths"),d=(0,n.l)(p,"getServerSideProps"),P=(0,n.l)(p,"config"),S=(0,n.l)(p,"reportWebVitals"),_=(0,n.l)(p,"unstable_getStaticProps"),x=(0,n.l)(p,"unstable_getStaticPaths"),f=(0,n.l)(p,"unstable_getStaticParams"),m=(0,n.l)(p,"unstable_getServerProps"),j=(0,n.l)(p,"unstable_getServerSideProps"),y=new s.PagesRouteModule({definition:{kind:a.x.PAGES,page:"/404",pathname:"/404",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:p});o()}catch(e){o(e)}})},16676:e=>{e.exports=require("@vtex/client-cms")},44339:e=>{e.exports=require("@vtex/client-cp")},56330:e=>{e.exports=require("deepmerge")},12404:e=>{e.exports=require("fast-deep-equal")},16641:e=>{e.exports=require("next-seo")},62785:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},40968:e=>{e.exports=require("next/head")},16689:e=>{e.exports=require("react")},66405:e=>{e.exports=require("react-dom")},19785:e=>{e.exports=require("react-intersection-observer")},20997:e=>{e.exports=require("react/jsx-runtime")},14037:e=>{e.exports=import("@builder.io/partytown/react")},15941:e=>{e.exports=import("swr")},57147:e=>{e.exports=require("fs")},71017:e=>{e.exports=require("path")},12781:e=>{e.exports=require("stream")},59796:e=>{e.exports=require("zlib")}};var t=require("../webpack-runtime.js");t.C(e);var __webpack_exec__=e=>t(t.s=e),r=t.X(0,[7799,4941,6804,9985,1554,5683,4168,9630,2445,948,1780,4194],()=>__webpack_exec__(61744));module.exports=r})();
1
+ "use strict";(()=>{var e={};e.id=2197,e.ids=[2197,2888,660],e.modules={20463:(e,t,r)=>{r.a(e,async(e,o)=>{try{r.r(t),r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__,getStaticProps:()=>getStaticProps});var s=r(16641),a=r(55551),n=r(7027),i=r(93839),c=r(35949),p=r(14194),l=r(76924),u=r(23091),b=r(56272),g=r(10278),d=r(47556),P=r(20997),x=e([n,i]);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}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 o;o=r[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}[n,i]=x.then?(await x)():x;let S=_objectSpread(_objectSpread(_objectSpread({},n.Z),{},{[(0,c.x)(p.C,"EmptyState")]:p.C},u.Z),l.Z),getStaticProps=async({previewData:e})=>{let[t,r,o]=(0,a.Tc)(e),[s,n,i,c]=await Promise.all([d.r.getSingleContent({contentType:"404",previewData:e}),t,r,o]),p=(0,g.z)({globalSections:n,globalSectionsHeader:i,globalSectionsFooter:c});return{props:{page:s,globalSections:p}}},__WEBPACK_DEFAULT_EXPORT__=function({page:{sections:e},globalSections:t}){let{sections:r,settings:o}=t??{};return(0,P.jsxs)(P.Fragment,{children:[P.jsx(s.NextSeo,{noindex:!0,nofollow:!0}),P.jsx(b.ZP,{context:{globalSettings:o},children:P.jsx(i.ZP,{sections:e,globalSections:r,components:S})})]})};o()}catch(e){o(e)}})},61744:(e,t,r)=>{r.a(e,async(e,o)=>{try{r.r(t),r.d(t,{config:()=>P,default:()=>u,getServerSideProps:()=>d,getStaticPaths:()=>g,getStaticProps:()=>b,reportWebVitals:()=>x,routeModule:()=>y,unstable_getServerProps:()=>m,unstable_getServerSideProps:()=>j,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>_,unstable_getStaticProps:()=>S});var s=r(21314),a=r(36267),n=r(18400),i=r(42445),c=r(19630),p=r(20463),l=e([p,c]);[p,c]=l.then?(await l)():l;let u=(0,n.l)(p,"default"),b=(0,n.l)(p,"getStaticProps"),g=(0,n.l)(p,"getStaticPaths"),d=(0,n.l)(p,"getServerSideProps"),P=(0,n.l)(p,"config"),x=(0,n.l)(p,"reportWebVitals"),S=(0,n.l)(p,"unstable_getStaticProps"),_=(0,n.l)(p,"unstable_getStaticPaths"),f=(0,n.l)(p,"unstable_getStaticParams"),m=(0,n.l)(p,"unstable_getServerProps"),j=(0,n.l)(p,"unstable_getServerSideProps"),y=new s.PagesRouteModule({definition:{kind:a.x.PAGES,page:"/404",pathname:"/404",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:p});o()}catch(e){o(e)}})},16676:e=>{e.exports=require("@vtex/client-cms")},44339:e=>{e.exports=require("@vtex/client-cp")},56330:e=>{e.exports=require("deepmerge")},12404:e=>{e.exports=require("fast-deep-equal")},16641:e=>{e.exports=require("next-seo")},62785:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},40968:e=>{e.exports=require("next/head")},16689:e=>{e.exports=require("react")},66405:e=>{e.exports=require("react-dom")},19785:e=>{e.exports=require("react-intersection-observer")},20997:e=>{e.exports=require("react/jsx-runtime")},14037:e=>{e.exports=import("@builder.io/partytown/react")},15941:e=>{e.exports=import("swr")},57147:e=>{e.exports=require("fs")},71017:e=>{e.exports=require("path")},12781:e=>{e.exports=require("stream")},59796:e=>{e.exports=require("zlib")}};var t=require("../webpack-runtime.js");t.C(e);var __webpack_exec__=e=>t(t.s=e),r=t.X(0,[7799,4941,6804,9985,1554,5683,4168,9630,2445,948,1780,4194],()=>__webpack_exec__(61744));module.exports=r})();
@@ -1 +1 @@
1
- "use strict";(()=>{var e={};e.id=8573,e.ids=[8573,2888,660],e.modules={51120:(e,t,r)=>{r.a(e,async(e,o)=>{try{r.r(t),r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__,getStaticProps:()=>getStaticProps});var s=r(16641),a=r(55551),n=r(7027),i=r(93839),c=r(14194),p=r(76924),l=r(23091),u=r(56272),b=r(10278),g=r(47556),d=r(20997),P=e([n,i]);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}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 o;o=r[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}[n,i]=P.then?(await P)():P;let S=_objectSpread(_objectSpread(_objectSpread({},n.Z),{},{EmptyState:c.C},l.Z),p.Z),getStaticProps=async({previewData:e})=>{let[t,r,o]=(0,a.Tc)(e),[s,n,i,c]=await Promise.all([g.r.getSingleContent({contentType:"500",previewData:e}),t,r,o]),p=(0,b.z)({globalSections:n,globalSectionsHeader:i,globalSectionsFooter:c});return{props:{page:s,globalSections:p}}},__WEBPACK_DEFAULT_EXPORT__=function({page:{sections:e},globalSections:t}){let{sections:r,settings:o}=t??{};return(0,d.jsxs)(d.Fragment,{children:[d.jsx(s.NextSeo,{noindex:!0,nofollow:!0}),d.jsx(u.ZP,{context:{globalSettings:o},children:d.jsx(i.ZP,{sections:e,globalSections:r,components:S})})]})};o()}catch(e){o(e)}})},31874:(e,t,r)=>{r.a(e,async(e,o)=>{try{r.r(t),r.d(t,{config:()=>P,default:()=>u,getServerSideProps:()=>d,getStaticPaths:()=>g,getStaticProps:()=>b,reportWebVitals:()=>S,routeModule:()=>y,unstable_getServerProps:()=>m,unstable_getServerSideProps:()=>j,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>x,unstable_getStaticProps:()=>_});var s=r(21314),a=r(36267),n=r(18400),i=r(42445),c=r(19630),p=r(51120),l=e([p,c]);[p,c]=l.then?(await l)():l;let u=(0,n.l)(p,"default"),b=(0,n.l)(p,"getStaticProps"),g=(0,n.l)(p,"getStaticPaths"),d=(0,n.l)(p,"getServerSideProps"),P=(0,n.l)(p,"config"),S=(0,n.l)(p,"reportWebVitals"),_=(0,n.l)(p,"unstable_getStaticProps"),x=(0,n.l)(p,"unstable_getStaticPaths"),f=(0,n.l)(p,"unstable_getStaticParams"),m=(0,n.l)(p,"unstable_getServerProps"),j=(0,n.l)(p,"unstable_getServerSideProps"),y=new s.PagesRouteModule({definition:{kind:a.x.PAGES,page:"/500",pathname:"/500",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:p});o()}catch(e){o(e)}})},16676:e=>{e.exports=require("@vtex/client-cms")},44339:e=>{e.exports=require("@vtex/client-cp")},56330:e=>{e.exports=require("deepmerge")},12404:e=>{e.exports=require("fast-deep-equal")},16641:e=>{e.exports=require("next-seo")},62785:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},40968:e=>{e.exports=require("next/head")},16689:e=>{e.exports=require("react")},66405:e=>{e.exports=require("react-dom")},19785:e=>{e.exports=require("react-intersection-observer")},20997:e=>{e.exports=require("react/jsx-runtime")},14037:e=>{e.exports=import("@builder.io/partytown/react")},15941:e=>{e.exports=import("swr")},57147:e=>{e.exports=require("fs")},71017:e=>{e.exports=require("path")},12781:e=>{e.exports=require("stream")},59796:e=>{e.exports=require("zlib")}};var t=require("../webpack-runtime.js");t.C(e);var __webpack_exec__=e=>t(t.s=e),r=t.X(0,[7799,4941,6804,9985,1554,5683,4168,9630,2445,948,1780,4194],()=>__webpack_exec__(31874));module.exports=r})();
1
+ "use strict";(()=>{var e={};e.id=8573,e.ids=[8573,2888,660],e.modules={51120:(e,t,r)=>{r.a(e,async(e,o)=>{try{r.r(t),r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__,getStaticProps:()=>getStaticProps});var s=r(16641),a=r(55551),n=r(7027),i=r(93839),c=r(35949),p=r(14194),l=r(76924),u=r(23091),b=r(56272),g=r(10278),d=r(47556),P=r(20997),x=e([n,i]);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}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 o;o=r[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}[n,i]=x.then?(await x)():x;let S=_objectSpread(_objectSpread(_objectSpread({},n.Z),{},{[(0,c.x)(p.C,"EmptyState")]:p.C},u.Z),l.Z),getStaticProps=async({previewData:e})=>{let[t,r,o]=(0,a.Tc)(e),[s,n,i,c]=await Promise.all([d.r.getSingleContent({contentType:"500",previewData:e}),t,r,o]),p=(0,g.z)({globalSections:n,globalSectionsHeader:i,globalSectionsFooter:c});return{props:{page:s,globalSections:p}}},__WEBPACK_DEFAULT_EXPORT__=function({page:{sections:e},globalSections:t}){let{sections:r,settings:o}=t??{};return(0,P.jsxs)(P.Fragment,{children:[P.jsx(s.NextSeo,{noindex:!0,nofollow:!0}),P.jsx(b.ZP,{context:{globalSettings:o},children:P.jsx(i.ZP,{sections:e,globalSections:r,components:S})})]})};o()}catch(e){o(e)}})},31874:(e,t,r)=>{r.a(e,async(e,o)=>{try{r.r(t),r.d(t,{config:()=>P,default:()=>u,getServerSideProps:()=>d,getStaticPaths:()=>g,getStaticProps:()=>b,reportWebVitals:()=>x,routeModule:()=>y,unstable_getServerProps:()=>m,unstable_getServerSideProps:()=>j,unstable_getStaticParams:()=>f,unstable_getStaticPaths:()=>_,unstable_getStaticProps:()=>S});var s=r(21314),a=r(36267),n=r(18400),i=r(42445),c=r(19630),p=r(51120),l=e([p,c]);[p,c]=l.then?(await l)():l;let u=(0,n.l)(p,"default"),b=(0,n.l)(p,"getStaticProps"),g=(0,n.l)(p,"getStaticPaths"),d=(0,n.l)(p,"getServerSideProps"),P=(0,n.l)(p,"config"),x=(0,n.l)(p,"reportWebVitals"),S=(0,n.l)(p,"unstable_getStaticProps"),_=(0,n.l)(p,"unstable_getStaticPaths"),f=(0,n.l)(p,"unstable_getStaticParams"),m=(0,n.l)(p,"unstable_getServerProps"),j=(0,n.l)(p,"unstable_getServerSideProps"),y=new s.PagesRouteModule({definition:{kind:a.x.PAGES,page:"/500",pathname:"/500",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:p});o()}catch(e){o(e)}})},16676:e=>{e.exports=require("@vtex/client-cms")},44339:e=>{e.exports=require("@vtex/client-cp")},56330:e=>{e.exports=require("deepmerge")},12404:e=>{e.exports=require("fast-deep-equal")},16641:e=>{e.exports=require("next-seo")},62785:e=>{e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},40968:e=>{e.exports=require("next/head")},16689:e=>{e.exports=require("react")},66405:e=>{e.exports=require("react-dom")},19785:e=>{e.exports=require("react-intersection-observer")},20997:e=>{e.exports=require("react/jsx-runtime")},14037:e=>{e.exports=import("@builder.io/partytown/react")},15941:e=>{e.exports=import("swr")},57147:e=>{e.exports=require("fs")},71017:e=>{e.exports=require("path")},12781:e=>{e.exports=require("stream")},59796:e=>{e.exports=require("zlib")}};var t=require("../webpack-runtime.js");t.C(e);var __webpack_exec__=e=>t(t.s=e),r=t.X(0,[7799,4941,6804,9985,1554,5683,4168,9630,2445,948,1780,4194],()=>__webpack_exec__(31874));module.exports=r})();
@@ -1 +1 @@
1
- (()=>{var e={};e.id=330,e.ids=[330,2888,660],e.modules={20407:(e,t,r)=>{"use strict";r.a(e,async(e,n)=>{try{r.d(t,{Z:()=>h});var s=r(73888),o=r.n(s),a=r(12301),i=r(33882),c=r(33241),l=r(76924),p=r(23091),u=r(7027),d=e([u,c]);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):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,c]=d.then?(await d)():d;let g=o()(async()=>null,{ssr:!1}),b=o()(async()=>null,{ssr:!1}),f=o()(async()=>null,{ssr:!1}),y=o()(async()=>null,{ssr:!1}),j=_objectSpread(_objectSpread(_objectSpread({},u.Z),{},{Breadcrumb:a.j,Hero:i.V,ProductGallery:c.f,BannerText:g,Newsletter:b,ProductShelf:f,ProductTiles:y},p.Z),l.Z),h=j;n()}catch(e){n(e)}})},68060:(e,t,r)=>{"use strict";r.d(t,{Z:()=>sections_Incentives_Incentives});var n=r(94564),s=r(42659),o=r(2614),a=r(20997);let Incentives_Incentives=function({incentives:e,variant:t="horizontal",colored:r=!1,label:i}){return a.jsx("section",{"data-fs-incentives":!0,"data-fs-incentives-colored":r,"data-fs-incentives-variant":t,"aria-label":`Incentives List ${i}`,children:a.jsx(n.Z,{"data-fs-content":"incentives",children:e.map((e,t)=>a.jsx("li",{role:"listitem",children:(0,a.jsxs)(s.Z,{tabIndex:0,children:[a.jsx(o.Z,{"data-fs-incentive-icon":!0,"aria-label":e.alt,name:e.icon,width:32,height:32}),(0,a.jsxs)("section",{"data-fs-incentive-content":!0,children:[a.jsx("p",{"data-fs-incentive-title":!0,children:e.title}),a.jsx("span",{"data-fs-incentive-description":!0,children:e.firstLineText}),e.secondLineText&&a.jsx("span",{"data-fs-incentive-description":!0,children:e.secondLineText})]})]})},String(t)))})})};var i=r(41325),c=r(77318),l=r.n(c);let sections_Incentives_Incentives=function({incentives:e,label:t}){return a.jsx(i.Z,{className:`${l().section} section-incentives layout__section`,children:a.jsx(Incentives_Incentives,{incentives:e,colored:!0,label:t??""})})}},36574:(e,t,r)=>{"use strict";r.a(e,async(e,n)=>{try{r.d(t,{X:()=>getLandingPageBySlug,Z:()=>LandingPage});var s=r(16641),o=r(7027),a=r(93839),i=r(93143),c=r(94173),l=r(53056),p=r(33882),u=r(68060),d=r(15988),g=r(48459),b=r(38342),f=r(76924),y=r(23091),j=r(84680),h=r(56272),O=r(43412),P=r.n(O),m=r(47556),v=r(20997),w=e([o,i,l,d,g,b,a]);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}[o,i,l,d,g,b,a]=w.then?(await w)():w;let S=_objectSpread(_objectSpread(_objectSpread({},o.Z),{},{Hero:p.V,BannerText:c.i,BannerNewsletter:i.Z,CrossSellingShelf:l.Z,Incentives:u.Z,Newsletter:d.O,ProductShelf:g.T,ProductTiles:b.Z},y.Z),f.Z);function LandingPage({page:{sections:e,settings:t},slug:r,serverData:n,globalSections:o,globalSettings:i}){return(0,v.jsxs)(v.Fragment,{children:[v.jsx(s.NextSeo,{title:t?.seo?.title??P().seo.title,description:t?.seo?.description??P().seo?.description,titleTemplate:P().seo?.titleTemplate??P().seo?.title,canonical:t?.seo?.canonical??`${P().storeUrl}/${r}`,openGraph:{type:"website",url:P().storeUrl,title:t?.seo?.title??P().seo.title,description:t?.seo?.description??P().seo.description}}),v.jsx(s.SiteLinksSearchBoxJsonLd,{url:P().storeUrl,potentialActions:[{target:`${P().storeUrl}/s/?q`,queryInput:"search_term_string"}]}),v.jsx(h.ZP,{context:{data:n,globalSettings:i},children:v.jsx(a.ZP,{sections:e,globalSections:o,components:S})})]})}let getLandingPageBySlug=async(e,t)=>{try{if(P().cms.data){let e=JSON.parse(P().cms.data),r=e.landingPage.find(e=>{e.settings?.seo?.slug});if(r){let e=await m.r.getSingleContent({contentType:"landingPage",previewData:t,documentId:r.documentId,versionId:r.versionId,releaseId:r.releaseId,slug:r.settings?.seo?.slug});return e}}let r=await m.r.getSingleContent({contentType:"landingPage",previewData:t,slug:e,filters:t?.contentType!=="landingPage"?{filters:{"settings.seo.slug":`/${e}`}}:void 0});return r}catch(e){if(e instanceof j.Z)return null;throw e}};n()}catch(e){n(e)}})},90095:(e,t,r)=>{"use strict";r.a(e,async(e,n)=>{try{r.d(t,{Z:()=>ProductListing});var s=r(69029),o=r(56330),a=r.n(o),i=r(98132),c=r(73888),l=r.n(c),p=r(20407),u=r(93839),d=r(33339),g=r(16689),b=r(56272),f=r(78593),y=r(47444),j=r(38998),h=r(20306),O=r(20997),P=e([y,f,u,p]);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}[y,f,u,p]=P.then?(await P)():P;let m=l()(()=>r.e(6636).then(r.bind(r,19788)),{loadableGenerated:{modules:["../components/templates/ProductListingPage/ProductListing.tsx -> src/components/sections/ScrollToTopButton"]}}),overwriteMerge=(e,t)=>t;function ProductListing({page:{sections:e,settings:t},data:r,serverManyProductsVariables:n,globalSections:o,globalSettings:c}){let l=(0,d.useRouter)(),{state:P,serializedState:v}=(0,s.R)(),{sort:w,term:S,selectedFacets:x}=P,_=t?.productGallery?.itemsPerPage??i.gK,q=(0,j.j)();(0,g.useEffect)(()=>{(0,h.w)()&&l.isPreview||q(v())},[]);let{data:D}=(0,y.UO)({term:S,sort:w,selectedFacets:x,itemsPerPage:_}),Z={search:r?.search},{pages:E,useGalleryPage:k}=(0,f.Y_)({initialPages:Z,serverManyProductsVariables:n}),L={data:_objectSpread(_objectSpread({},a()(_objectSpread({},r),_objectSpread({},D),{arrayMerge:overwriteMerge})),{},{pages:E}),globalSettings:c};return O.jsx(O.Fragment,{children:O.jsx(b.ZP,{context:L,children:O.jsx(f.Bj.Provider,{value:k,children:O.jsx(u.ZP,{sections:e,globalSections:o,components:p.Z,children:O.jsx(u.wQ,{sectionName:"ScrollToTopButton",children:O.jsx(m,{})})})})})})}n()}catch(e){n(e)}})},98582:(e,t,r)=>{"use strict";r.a(e,async(e,n)=>{try{r.d(t,{Z:()=>ProductListingPage});var s=r(26142),o=r(72339),a=r(86763),i=r(16641),c=r(33339),l=r(16689),p=r(98132),u=r(38998),d=r(43412),g=r.n(d),b=r(90095),f=r(20997),y=e([b]);b=(y.then?(await y)():y)[0];let j=["plp"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):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 useSearchParams=({collection:e,sort:t,serverData:r})=>{let n=[...e?.meta.selectedFacets,{key:"fuzzy",value:r?.search?.metadata?.fuzzy??"auto"},{key:"operator",value:r?.search?.metadata?.logicalOperator??"and"}],{asPath:a}=(0,c.useRouter)(),i=(0,l.useMemo)(()=>{let e=new URL(a,"http://localhost"),r=t&&!e.searchParams.has("sort");r&&e.searchParams.set("sort",t);let i=(0,s.Q)(e);return 0===i.selectedFacets.length&&(i.selectedFacets=n),(0,o.Z)(i).href},[a,n,t]);return(0,l.useMemo)(()=>(0,s.Q)(new URL(i)),[i])};function ProductListingPage({page:e,data:t,serverManyProductsVariables:r,globalSections:n,globalSettings:s}){let{settings:o}=e,l=t.collection,d=(0,c.useRouter)(),y=(0,u.j)(),h=useSearchParams({collection:l,sort:o?.productGallery?.sortBySelection,serverData:t}),{seo:{plp:O}}=g(),P=function(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}(g().seo,j),m=l?.seo.title??P.title,v=O?.titleTemplate??P.titleTemplate,w=l?.seo.description||O?.descriptionTemplate?.replace(/%s/g,()=>m)||P.description,[S]=d.asPath.split("?"),x=`${g().storeUrl}${S}`,_=o?.productGallery?.itemsPerPage??p.gK,q=l?.breadcrumbList.itemListElement??[];return 0!==q.length&&(q=q.map(({item:e,name:t,position:r})=>{let n=g().storeUrl+e;return{name:t,position:r,item:n}})),(0,f.jsxs)(a.z,_objectSpread(_objectSpread({onChange:y,itemsPerPage:_},h),{},{children:[f.jsx(i.NextSeo,{title:m,description:w,titleTemplate:v,canonical:x,openGraph:{type:"website",title:m,description:w}}),f.jsx(i.BreadcrumbJsonLd,{itemListElements:q}),f.jsx(b.Z,{globalSections:n,globalSettings:s,page:e,data:t,serverManyProductsVariables:r})]}))}n()}catch(e){n(e)}})},70515:(e,t,r)=>{"use strict";r.a(e,async(e,n)=>{try{r.r(t),r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__,getStaticPaths:()=>getStaticPaths,getStaticProps:()=>getStaticProps});var s=r(25487),o=r(77397),a=r(43412),i=r.n(a),c=r(99563),l=r(73888),p=r.n(l),u=r(55551),d=r(36574),g=r(98582),b=r(6359),f=r(10278),y=r(47556),j=r(86019),h=r(7853),O=r(20997),P=e([o,g,d,c,h]);[o,g,d,c,h]=P.then?(await P)():P;let m=["globalSections","type"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):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 v=p()(()=>r.e(3029).then(r.bind(r,3029)),{loadableGenerated:{modules:["[...slug].tsx -> src/components/templates/LandingPage"]}}),w=s.sE,getStaticProps=async({params:e,previewData:t})=>{let r=e?.slug.join("/")??"",n=await i().rewrites?.()??[],[s,a,l]=(0,u.Tc)(t),p=(0,d.X)(r,t),g=await p;if(g&&Object.keys(g).length>0){let[e,t,n,o]=await Promise.all([(0,j.V)({pageType:r}),s,a,l]),i=(0,f.z)({globalSections:t,globalSectionsHeader:n,globalSectionsFooter:o});return{props:{page:g,globalSections:i,type:"page",slug:r,serverData:e}}}let[{data:O,errors:P=[]},m,v,S,x]=await Promise.all([(0,c.h)({variables:{slug:r},operation:w}),y.r.getPlpContent({previewData:t,slug:r},n),s,a,l]),[_,q]=await (0,h.L)({itemsPerPage:m?.settings?.productGallery?.itemsPerPage,sort:m?.settings?.productGallery?.sortBySelection,term:"",selectedFacets:O?.collection?.meta.selectedFacets}),D=P.find(o.XD);if(D){if(i().experimental.enableRedirects){let e=await (0,b.s)({pathname:`/${r}`});if(e)return{redirect:e,revalidate:300}}return{notFound:!0}}if(P.length>0)throw console.error(...P),P[0];let Z=(0,f.z)({globalSections:v,globalSectionsHeader:S,globalSectionsFooter:x});return{props:{data:_objectSpread(_objectSpread({},O),_),serverManyProductsVariables:q,page:m,globalSections:Z,type:"plp",key:r}}},getStaticPaths=async()=>({paths:[],fallback:"blocking"}),__WEBPACK_DEFAULT_EXPORT__=function(e){let{globalSections:t,type:r}=e,n=function(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}(e,m),{sections:s,settings:o}=t??{};return(0,O.jsxs)(O.Fragment,{children:["plp"===r&&O.jsx(g.Z,_objectSpread({globalSections:s,globalSettings:o},n)),"page"===r&&O.jsx(v,_objectSpread({globalSections:s,globalSettings:o},n))]})};n()}catch(e){n(e)}})},86019:(e,t,r)=>{"use strict";r.d(t,{V:()=>getDynamicContent});let n={};async function getDynamicContent({pageType:e}){try{let t=n[e];if(!t)return console.warn(`Warning: Dynamic Content not found for the page: ${e}. Refer to the Dynamic Content documentation at https://developers.vtex.com/docs/guides/faststore/dynamic-content-overview for mapping the page and the corresponding data-fetching function.`),null;let{data:r,errors:s=[]}=await t();return s.length>0&&console.error(...s),r}catch(e){return console.error("Error while fetching Dynamic Content:",e),console.warn("Refer to the Dynamic Content documentation at https://developers.vtex.com/docs/guides/faststore/dynamic-content-overview for mapping the page and the corresponding data-fetching function."),null}}},7853:(e,t,r)=>{"use strict";r.a(e,async(e,n)=>{try{r.d(t,{L:()=>fetchServerManyProducts});var s=r(25487),o=r(98132),a=r(99563),i=r(43412),c=r.n(i),l=e([a]);a=(l.then?(await l)():l)[0];let p=["hasOnlyDefaultSalesChannel"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):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 u=s.lZ;async function fetchServerManyProducts({itemsPerPage:e=o.gK,sort:t="score_desc",term:r="",selectedFacets:n=[],sponsoredCount:s=3,filter:i=!0}){let{channel:l,locale:d}=c().session;if(i){let e=JSON.parse(l),{hasOnlyDefaultSalesChannel:t}=e,r=function(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}(e,p);l=JSON.stringify(r)}try{let o={first:e,after:(0*e).toString(),sort:t,term:r,selectedFacets:[...n,{key:"channel",value:l??""},{key:"locale",value:d}],sponsoredCount:s},i=await (0,a.h)({variables:o,operation:u}),c=_objectSpread(_objectSpread({},o),{},{selectedFacets:[...n,{key:"fuzzy",value:i.data.search.metadata?.fuzzy??"auto"},{key:"operator",value:i.data.search.metadata?.logicalOperator??"and"},{key:"channel",value:l??""},{key:"locale",value:d}],sponsoredCount:s});return[i.data,c]}catch(e){console.error(e)}}n()}catch(e){n(e)}})},77318:e=>{e.exports={section:"section_section__jnQ3q"}},94667:(e,t,r)=>{"use strict";r.a(e,async(e,n)=>{try{r.r(t),r.d(t,{config:()=>f,default:()=>u,getServerSideProps:()=>b,getStaticPaths:()=>g,getStaticProps:()=>d,reportWebVitals:()=>y,routeModule:()=>v,unstable_getServerProps:()=>P,unstable_getServerSideProps:()=>m,unstable_getStaticParams:()=>O,unstable_getStaticPaths:()=>h,unstable_getStaticProps:()=>j});var s=r(21314),o=r(36267),a=r(18400),i=r(42445),c=r(19630),l=r(70515),p=e([l,c]);[l,c]=p.then?(await p)():p;let u=(0,a.l)(l,"default"),d=(0,a.l)(l,"getStaticProps"),g=(0,a.l)(l,"getStaticPaths"),b=(0,a.l)(l,"getServerSideProps"),f=(0,a.l)(l,"config"),y=(0,a.l)(l,"reportWebVitals"),j=(0,a.l)(l,"unstable_getStaticProps"),h=(0,a.l)(l,"unstable_getStaticPaths"),O=(0,a.l)(l,"unstable_getStaticParams"),P=(0,a.l)(l,"unstable_getServerProps"),m=(0,a.l)(l,"unstable_getServerSideProps"),v=new s.PagesRouteModule({definition:{kind:o.x.PAGES,page:"/[...slug]",pathname:"/[...slug]",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:l});n()}catch(e){n(e)}})},42659:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(16689),s=r.n(n);let o=(0,n.forwardRef)(function({testId:e="store-incentive",children:t,...r},n){return s().createElement("section",{ref:n,"data-fs-incentive":!0,"data-testid":e,...r},t)}),a=o},16676:e=>{"use strict";e.exports=require("@vtex/client-cms")},44339:e=>{"use strict";e.exports=require("@vtex/client-cp")},84802:e=>{"use strict";e.exports=require("cookie")},56330:e=>{"use strict";e.exports=require("deepmerge")},78641:e=>{"use strict";e.exports=require("draftjs-to-html")},12404:e=>{"use strict";e.exports=require("fast-deep-equal")},57343:e=>{"use strict";e.exports=require("graphql")},36548:e=>{"use strict";e.exports=require("graphql/language")},16641:e=>{"use strict";e.exports=require("next-seo")},62785:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},40968:e=>{"use strict";e.exports=require("next/head")},89261:e=>{"use strict";e.exports=require("postcss")},16689:e=>{"use strict";e.exports=require("react")},66405:e=>{"use strict";e.exports=require("react-dom")},19785:e=>{"use strict";e.exports=require("react-intersection-observer")},20997:e=>{"use strict";e.exports=require("react/jsx-runtime")},14037:e=>{"use strict";e.exports=import("@builder.io/partytown/react")},99664:e=>{"use strict";e.exports=import("@envelop/core")},37886:e=>{"use strict";e.exports=import("@envelop/graphql-jit")},84656:e=>{"use strict";e.exports=import("@envelop/parser-cache")},36093:e=>{"use strict";e.exports=import("@envelop/validation-cache")},45774:e=>{"use strict";e.exports=import("@graphql-tools/load-files")},36550:e=>{"use strict";e.exports=import("@graphql-tools/schema")},38722:e=>{"use strict";e.exports=import("@graphql-tools/utils")},15941:e=>{"use strict";e.exports=import("swr")},14300:e=>{"use strict";e.exports=require("buffer")},6113:e=>{"use strict";e.exports=require("crypto")},57147:e=>{"use strict";e.exports=require("fs")},13685:e=>{"use strict";e.exports=require("http")},95687:e=>{"use strict";e.exports=require("https")},71017:e=>{"use strict";e.exports=require("path")},85477:e=>{"use strict";e.exports=require("punycode")},12781:e=>{"use strict";e.exports=require("stream")},71576:e=>{"use strict";e.exports=require("string_decoder")},57310:e=>{"use strict";e.exports=require("url")},59796:e=>{"use strict";e.exports=require("zlib")}};var t=require("../webpack-runtime.js");t.C(e);var __webpack_exec__=e=>t(t.s=e),r=t.X(0,[7799,4941,6804,9985,1554,5683,8404,1280,4168,9630,2445,948,9563,3922,9088,2295,8737,8640,5607,3882,76,6335,3963,839,2792,8335,2778,3918],()=>__webpack_exec__(94667));module.exports=r})();
1
+ (()=>{var e={};e.id=330,e.ids=[330,2888,660],e.modules={20407:(e,t,r)=>{"use strict";r.a(e,async(e,n)=>{try{r.d(t,{Z:()=>O});var s=r(73888),o=r.n(s),a=r(12301),i=r(33882),c=r(33241),l=r(76924),p=r(23091),u=r(7027),d=r(35949),g=e([u,c]);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):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,c]=g.then?(await g)():g;let b=o()(async()=>null,{ssr:!1}),f=o()(async()=>null,{ssr:!1}),y=o()(async()=>null,{ssr:!1}),j=o()(async()=>null,{ssr:!1}),h=_objectSpread(_objectSpread(_objectSpread({},u.Z),{},{[(0,d.x)(i.V,"Hero")]:i.V,[(0,d.x)(a.j,"Breadcrumb")]:a.j,[(0,d.x)(c.f,"ProductGallery")]:c.f,[(0,d.x)(b,"BannerText")]:b,[(0,d.x)(f,"Newsletter")]:f,[(0,d.x)(y,"ProductShelf")]:y,[(0,d.x)(j,"ProductTiles")]:j},p.Z),l.Z),O=h;n()}catch(e){n(e)}})},68060:(e,t,r)=>{"use strict";r.d(t,{Z:()=>p});var n=r(94564),s=r(42659),o=r(2614),a=r(20997);let Incentives_Incentives=function({incentives:e,variant:t="horizontal",colored:r=!1,label:i}){return a.jsx("section",{"data-fs-incentives":!0,"data-fs-incentives-colored":r,"data-fs-incentives-variant":t,"aria-label":`Incentives List ${i}`,children:a.jsx(n.Z,{"data-fs-content":"incentives",children:e.map((e,t)=>a.jsx("li",{role:"listitem",children:(0,a.jsxs)(s.Z,{tabIndex:0,children:[a.jsx(o.Z,{"data-fs-incentive-icon":!0,"aria-label":e.alt,name:e.icon,width:32,height:32}),(0,a.jsxs)("section",{"data-fs-incentive-content":!0,children:[a.jsx("p",{"data-fs-incentive-title":!0,children:e.title}),a.jsx("span",{"data-fs-incentive-description":!0,children:e.firstLineText}),e.secondLineText&&a.jsx("span",{"data-fs-incentive-description":!0,children:e.secondLineText})]})]})},String(t)))})})};var i=r(41325),c=r(77318),l=r.n(c);function Incentives_Incentives_Incentives({incentives:e,label:t}){return a.jsx(i.Z,{className:`${l().section} section-incentives layout__section`,children:a.jsx(Incentives_Incentives,{incentives:e,colored:!0,label:t??""})})}Incentives_Incentives_Incentives.$componentKey="Incentives";let p=Incentives_Incentives_Incentives},36574:(e,t,r)=>{"use strict";r.a(e,async(e,n)=>{try{r.d(t,{X:()=>getLandingPageBySlug,Z:()=>LandingPage});var s=r(16641),o=r(7027),a=r(93839),i=r(35949),c=r(93143),l=r(94173),p=r(53056),u=r(33882),d=r(68060),g=r(15988),b=r(48459),f=r(38342),y=r(76924),j=r(23091),h=r(84680),O=r(56272),P=r(43412),m=r.n(P),v=r(47556),x=r(20997),w=e([o,c,p,g,b,f,a]);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}[o,c,p,g,b,f,a]=w.then?(await w)():w;let S=_objectSpread(_objectSpread(_objectSpread({},o.Z),{},{[(0,i.x)(u.V,"Hero")]:u.V,[(0,i.x)(l.i,"BannerText")]:l.i,[(0,i.x)(c.Z,"BannerNewsletter")]:c.Z,[(0,i.x)(d.Z,"Incentives")]:d.Z,[(0,i.x)(p.Z,"CrossSellingShelf")]:p.Z,[(0,i.x)(g.O,"Newsletter")]:g.O,[(0,i.x)(b.T,"ProductShelf")]:b.T,[(0,i.x)(f.Z,"ProductTiles")]:f.Z},j.Z),y.Z);function LandingPage({page:{sections:e,settings:t},slug:r,serverData:n,globalSections:o,globalSettings:i}){return(0,x.jsxs)(x.Fragment,{children:[x.jsx(s.NextSeo,{title:t?.seo?.title??m().seo.title,description:t?.seo?.description??m().seo?.description,titleTemplate:m().seo?.titleTemplate??m().seo?.title,canonical:t?.seo?.canonical??`${m().storeUrl}/${r}`,openGraph:{type:"website",url:m().storeUrl,title:t?.seo?.title??m().seo.title,description:t?.seo?.description??m().seo.description}}),x.jsx(s.SiteLinksSearchBoxJsonLd,{url:m().storeUrl,potentialActions:[{target:`${m().storeUrl}/s/?q`,queryInput:"search_term_string"}]}),x.jsx(O.ZP,{context:{data:n,globalSettings:i},children:x.jsx(a.ZP,{sections:e,globalSections:o,components:S})})]})}let getLandingPageBySlug=async(e,t)=>{try{if(m().cms.data){let e=JSON.parse(m().cms.data),r=e.landingPage.find(e=>{e.settings?.seo?.slug});if(r){let e=await v.r.getSingleContent({contentType:"landingPage",previewData:t,documentId:r.documentId,versionId:r.versionId,releaseId:r.releaseId,slug:r.settings?.seo?.slug});return e}}let r=await v.r.getSingleContent({contentType:"landingPage",previewData:t,slug:e,filters:t?.contentType!=="landingPage"?{filters:{"settings.seo.slug":`/${e}`}}:void 0});return r}catch(e){if(e instanceof h.Z)return null;throw e}};n()}catch(e){n(e)}})},90095:(e,t,r)=>{"use strict";r.a(e,async(e,n)=>{try{r.d(t,{Z:()=>ProductListing});var s=r(69029),o=r(56330),a=r.n(o),i=r(98132),c=r(73888),l=r.n(c),p=r(20407),u=r(93839),d=r(33339),g=r(16689),b=r(56272),f=r(78593),y=r(47444),j=r(38998),h=r(20306),O=r(20997),P=e([y,f,u,p]);function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}[y,f,u,p]=P.then?(await P)():P;let m=l()(()=>r.e(6636).then(r.bind(r,19788)),{loadableGenerated:{modules:["../components/templates/ProductListingPage/ProductListing.tsx -> src/components/sections/ScrollToTopButton"]}}),overwriteMerge=(e,t)=>t;function ProductListing({page:{sections:e,settings:t},data:r,serverManyProductsVariables:n,globalSections:o,globalSettings:c}){let l=(0,d.useRouter)(),{state:P,serializedState:v}=(0,s.R)(),{sort:x,term:w,selectedFacets:S}=P,_=t?.productGallery?.itemsPerPage??i.gK,q=(0,j.j)();(0,g.useEffect)(()=>{(0,h.w)()&&l.isPreview||q(v())},[]);let{data:D}=(0,y.UO)({term:w,sort:x,selectedFacets:S,itemsPerPage:_}),Z={search:r?.search},{pages:E,useGalleryPage:T}=(0,f.Y_)({initialPages:Z,serverManyProductsVariables:n}),k={data:_objectSpread(_objectSpread({},a()(_objectSpread({},r),_objectSpread({},D),{arrayMerge:overwriteMerge})),{},{pages:E}),globalSettings:c};return O.jsx(O.Fragment,{children:O.jsx(b.ZP,{context:k,children:O.jsx(f.Bj.Provider,{value:T,children:O.jsx(u.ZP,{sections:e,globalSections:o,components:p.Z,children:O.jsx(u.wQ,{sectionName:"ScrollToTopButton",children:O.jsx(m,{})})})})})})}n()}catch(e){n(e)}})},98582:(e,t,r)=>{"use strict";r.a(e,async(e,n)=>{try{r.d(t,{Z:()=>ProductListingPage});var s=r(26142),o=r(72339),a=r(86763),i=r(16641),c=r(33339),l=r(16689),p=r(98132),u=r(38998),d=r(43412),g=r.n(d),b=r(90095),f=r(20997),y=e([b]);b=(y.then?(await y)():y)[0];let j=["plp"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):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 useSearchParams=({collection:e,sort:t,serverData:r})=>{let n=[...e?.meta.selectedFacets,{key:"fuzzy",value:r?.search?.metadata?.fuzzy??"auto"},{key:"operator",value:r?.search?.metadata?.logicalOperator??"and"}],{asPath:a}=(0,c.useRouter)(),i=(0,l.useMemo)(()=>{let e=new URL(a,"http://localhost"),r=t&&!e.searchParams.has("sort");r&&e.searchParams.set("sort",t);let i=(0,s.Q)(e);return 0===i.selectedFacets.length&&(i.selectedFacets=n),(0,o.Z)(i).href},[a,n,t]);return(0,l.useMemo)(()=>(0,s.Q)(new URL(i)),[i])};function ProductListingPage({page:e,data:t,serverManyProductsVariables:r,globalSections:n,globalSettings:s}){let{settings:o}=e,l=t.collection,d=(0,c.useRouter)(),y=(0,u.j)(),h=useSearchParams({collection:l,sort:o?.productGallery?.sortBySelection,serverData:t}),{seo:{plp:O}}=g(),P=function(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}(g().seo,j),m=l?.seo.title??P.title,v=O?.titleTemplate??P.titleTemplate,x=l?.seo.description||O?.descriptionTemplate?.replace(/%s/g,()=>m)||P.description,[w]=d.asPath.split("?"),S=`${g().storeUrl}${w}`,_=o?.productGallery?.itemsPerPage??p.gK,q=l?.breadcrumbList.itemListElement??[];return 0!==q.length&&(q=q.map(({item:e,name:t,position:r})=>{let n=g().storeUrl+e;return{name:t,position:r,item:n}})),(0,f.jsxs)(a.z,_objectSpread(_objectSpread({onChange:y,itemsPerPage:_},h),{},{children:[f.jsx(i.NextSeo,{title:m,description:x,titleTemplate:v,canonical:S,openGraph:{type:"website",title:m,description:x}}),f.jsx(i.BreadcrumbJsonLd,{itemListElements:q}),f.jsx(b.Z,{globalSections:n,globalSettings:s,page:e,data:t,serverManyProductsVariables:r})]}))}n()}catch(e){n(e)}})},70515:(e,t,r)=>{"use strict";r.a(e,async(e,n)=>{try{r.r(t),r.d(t,{default:()=>__WEBPACK_DEFAULT_EXPORT__,getStaticPaths:()=>getStaticPaths,getStaticProps:()=>getStaticProps});var s=r(25487),o=r(77397),a=r(43412),i=r.n(a),c=r(99563),l=r(73888),p=r.n(l),u=r(55551),d=r(36574),g=r(98582),b=r(6359),f=r(10278),y=r(47556),j=r(86019),h=r(7853),O=r(20997),P=e([o,g,d,c,h]);[o,g,d,c,h]=P.then?(await P)():P;let m=["globalSections","type"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):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 v=p()(()=>r.e(3029).then(r.bind(r,3029)),{loadableGenerated:{modules:["[...slug].tsx -> src/components/templates/LandingPage"]}}),x=s.sE,getStaticProps=async({params:e,previewData:t})=>{let r=e?.slug.join("/")??"",n=await i().rewrites?.()??[],[s,a,l]=(0,u.Tc)(t),p=(0,d.X)(r,t),g=await p;if(g&&Object.keys(g).length>0){let[e,t,n,o]=await Promise.all([(0,j.V)({pageType:r}),s,a,l]),i=(0,f.z)({globalSections:t,globalSectionsHeader:n,globalSectionsFooter:o});return{props:{page:g,globalSections:i,type:"page",slug:r,serverData:e}}}let[{data:O,errors:P=[]},m,v,w,S]=await Promise.all([(0,c.h)({variables:{slug:r},operation:x}),y.r.getPlpContent({previewData:t,slug:r},n),s,a,l]),[_,q]=await (0,h.L)({itemsPerPage:m?.settings?.productGallery?.itemsPerPage,sort:m?.settings?.productGallery?.sortBySelection,term:"",selectedFacets:O?.collection?.meta.selectedFacets}),D=P.find(o.XD);if(D){if(i().experimental.enableRedirects){let e=await (0,b.s)({pathname:`/${r}`});if(e)return{redirect:e,revalidate:300}}return{notFound:!0}}if(P.length>0)throw console.error(...P),P[0];let Z=(0,f.z)({globalSections:v,globalSectionsHeader:w,globalSectionsFooter:S});return{props:{data:_objectSpread(_objectSpread({},O),_),serverManyProductsVariables:q,page:m,globalSections:Z,type:"plp",key:r}}},getStaticPaths=async()=>({paths:[],fallback:"blocking"}),__WEBPACK_DEFAULT_EXPORT__=function(e){let{globalSections:t,type:r}=e,n=function(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}(e,m),{sections:s,settings:o}=t??{};return(0,O.jsxs)(O.Fragment,{children:["plp"===r&&O.jsx(g.Z,_objectSpread({globalSections:s,globalSettings:o},n)),"page"===r&&O.jsx(v,_objectSpread({globalSections:s,globalSettings:o},n))]})};n()}catch(e){n(e)}})},86019:(e,t,r)=>{"use strict";r.d(t,{V:()=>getDynamicContent});let n={};async function getDynamicContent({pageType:e}){try{let t=n[e];if(!t)return console.warn(`Warning: Dynamic Content not found for the page: ${e}. Refer to the Dynamic Content documentation at https://developers.vtex.com/docs/guides/faststore/dynamic-content-overview for mapping the page and the corresponding data-fetching function.`),null;let{data:r,errors:s=[]}=await t();return s.length>0&&console.error(...s),r}catch(e){return console.error("Error while fetching Dynamic Content:",e),console.warn("Refer to the Dynamic Content documentation at https://developers.vtex.com/docs/guides/faststore/dynamic-content-overview for mapping the page and the corresponding data-fetching function."),null}}},7853:(e,t,r)=>{"use strict";r.a(e,async(e,n)=>{try{r.d(t,{L:()=>fetchServerManyProducts});var s=r(25487),o=r(98132),a=r(99563),i=r(43412),c=r.n(i),l=e([a]);a=(l.then?(await l)():l)[0];let p=["hasOnlyDefaultSalesChannel"];function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):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 u=s.lZ;async function fetchServerManyProducts({itemsPerPage:e=o.gK,sort:t="score_desc",term:r="",selectedFacets:n=[],sponsoredCount:s=3,filter:i=!0}){let{channel:l,locale:d}=c().session;if(i){let e=JSON.parse(l),{hasOnlyDefaultSalesChannel:t}=e,r=function(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(s[r]=e[r]);return s}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}(e,p);l=JSON.stringify(r)}try{let o={first:e,after:(0*e).toString(),sort:t,term:r,selectedFacets:[...n,{key:"channel",value:l??""},{key:"locale",value:d}],sponsoredCount:s},i=await (0,a.h)({variables:o,operation:u}),c=_objectSpread(_objectSpread({},o),{},{selectedFacets:[...n,{key:"fuzzy",value:i.data.search.metadata?.fuzzy??"auto"},{key:"operator",value:i.data.search.metadata?.logicalOperator??"and"},{key:"channel",value:l??""},{key:"locale",value:d}],sponsoredCount:s});return[i.data,c]}catch(e){console.error(e)}}n()}catch(e){n(e)}})},77318:e=>{e.exports={section:"section_section__jnQ3q"}},94667:(e,t,r)=>{"use strict";r.a(e,async(e,n)=>{try{r.r(t),r.d(t,{config:()=>f,default:()=>u,getServerSideProps:()=>b,getStaticPaths:()=>g,getStaticProps:()=>d,reportWebVitals:()=>y,routeModule:()=>v,unstable_getServerProps:()=>P,unstable_getServerSideProps:()=>m,unstable_getStaticParams:()=>O,unstable_getStaticPaths:()=>h,unstable_getStaticProps:()=>j});var s=r(21314),o=r(36267),a=r(18400),i=r(42445),c=r(19630),l=r(70515),p=e([l,c]);[l,c]=p.then?(await p)():p;let u=(0,a.l)(l,"default"),d=(0,a.l)(l,"getStaticProps"),g=(0,a.l)(l,"getStaticPaths"),b=(0,a.l)(l,"getServerSideProps"),f=(0,a.l)(l,"config"),y=(0,a.l)(l,"reportWebVitals"),j=(0,a.l)(l,"unstable_getStaticProps"),h=(0,a.l)(l,"unstable_getStaticPaths"),O=(0,a.l)(l,"unstable_getStaticParams"),P=(0,a.l)(l,"unstable_getServerProps"),m=(0,a.l)(l,"unstable_getServerSideProps"),v=new s.PagesRouteModule({definition:{kind:o.x.PAGES,page:"/[...slug]",pathname:"/[...slug]",bundlePath:"",filename:""},components:{App:c.default,Document:i.default},userland:l});n()}catch(e){n(e)}})},42659:(e,t,r)=>{"use strict";r.d(t,{Z:()=>a});var n=r(16689),s=r.n(n);let o=(0,n.forwardRef)(function({testId:e="store-incentive",children:t,...r},n){return s().createElement("section",{ref:n,"data-fs-incentive":!0,"data-testid":e,...r},t)}),a=o},16676:e=>{"use strict";e.exports=require("@vtex/client-cms")},44339:e=>{"use strict";e.exports=require("@vtex/client-cp")},84802:e=>{"use strict";e.exports=require("cookie")},56330:e=>{"use strict";e.exports=require("deepmerge")},78641:e=>{"use strict";e.exports=require("draftjs-to-html")},12404:e=>{"use strict";e.exports=require("fast-deep-equal")},57343:e=>{"use strict";e.exports=require("graphql")},36548:e=>{"use strict";e.exports=require("graphql/language")},16641:e=>{"use strict";e.exports=require("next-seo")},62785:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/pages.runtime.prod.js")},40968:e=>{"use strict";e.exports=require("next/head")},89261:e=>{"use strict";e.exports=require("postcss")},16689:e=>{"use strict";e.exports=require("react")},66405:e=>{"use strict";e.exports=require("react-dom")},19785:e=>{"use strict";e.exports=require("react-intersection-observer")},20997:e=>{"use strict";e.exports=require("react/jsx-runtime")},14037:e=>{"use strict";e.exports=import("@builder.io/partytown/react")},99664:e=>{"use strict";e.exports=import("@envelop/core")},37886:e=>{"use strict";e.exports=import("@envelop/graphql-jit")},84656:e=>{"use strict";e.exports=import("@envelop/parser-cache")},36093:e=>{"use strict";e.exports=import("@envelop/validation-cache")},45774:e=>{"use strict";e.exports=import("@graphql-tools/load-files")},36550:e=>{"use strict";e.exports=import("@graphql-tools/schema")},38722:e=>{"use strict";e.exports=import("@graphql-tools/utils")},15941:e=>{"use strict";e.exports=import("swr")},14300:e=>{"use strict";e.exports=require("buffer")},6113:e=>{"use strict";e.exports=require("crypto")},57147:e=>{"use strict";e.exports=require("fs")},13685:e=>{"use strict";e.exports=require("http")},95687:e=>{"use strict";e.exports=require("https")},71017:e=>{"use strict";e.exports=require("path")},85477:e=>{"use strict";e.exports=require("punycode")},12781:e=>{"use strict";e.exports=require("stream")},71576:e=>{"use strict";e.exports=require("string_decoder")},57310:e=>{"use strict";e.exports=require("url")},59796:e=>{"use strict";e.exports=require("zlib")}};var t=require("../webpack-runtime.js");t.C(e);var __webpack_exec__=e=>t(t.s=e),r=t.X(0,[7799,4941,6804,9985,1554,5683,8404,1280,4168,9630,2445,948,9563,3922,9088,2295,8737,8640,5607,3882,76,6335,3963,839,2792,8335,2778,3918],()=>__webpack_exec__(94667));module.exports=r})();