@soma-vertical-web/multi-lib 0.0.13 → 0.0.14

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.
package/index.mjs CHANGED
@@ -1,23 +1,23 @@
1
- var _o = Object.defineProperty;
2
- var go = (t, e, r) => e in t ? _o(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var ct = (t, e, r) => go(t, typeof e != "symbol" ? e + "" : e, r);
1
+ var Lo = Object.defineProperty;
2
+ var Do = (t, e, r) => e in t ? Lo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var ct = (t, e, r) => Do(t, typeof e != "symbol" ? e + "" : e, r);
4
4
  import { jsx as m, jsxs as S, Fragment as _e } from "react/jsx-runtime";
5
- import de, { createContext as fe, useContext as pe, useCallback as te, useEffect as J, useRef as G, useState as W, useMemo as Le, Children as yo } from "react";
5
+ import de, { createContext as fe, useContext as pe, useCallback as te, useEffect as J, useRef as G, useState as B, useMemo as Ae, Children as Ao } from "react";
6
6
  import { get as lt, set as ut } from "idb-keyval";
7
7
  import { create as nt } from "zustand";
8
- import * as oe from "yup";
9
- import { C as vo } from "./server-DvV_v1l2.mjs";
10
- import { Tooltip as et, Icon as ye, TextStructure as re, Tag as on, TextField as cr, Button as Je, Spinner as bo, helpers as $, Card as Po, Accordion as dt, ProductInfo as we, ToggleStyle as lr, Utils as Co, ToggleSize as ft, Modal as qe, Badge as Io, Carousel as me } from "@soma-vertical-web/core-components";
11
- import ur from "axios";
12
- import { SizesSmallExtended as wo, Mode as Eo } from "@soma-vertical-web/foundations";
13
- import Ro from "react-dom";
14
- const Kt = fe(
8
+ import * as ie from "yup";
9
+ import { C as xo } from "./server-DvV_v1l2.mjs";
10
+ import { Tooltip as et, Icon as ye, TextStructure as re, Tag as an, TextField as dr, Button as Je, Spinner as Mo, helpers as $, Card as ko, Accordion as dt, ProductInfo as we, ToggleStyle as fr, Utils as qo, ToggleSize as ft, Modal as je, Badge as jo, Carousel as me } from "@soma-vertical-web/core-components";
11
+ import pr from "axios";
12
+ import { SizesSmallExtended as zo, Mode as Fo } from "@soma-vertical-web/foundations";
13
+ import Uo from "react-dom";
14
+ const Xt = fe(
15
15
  {}
16
- ), No = ({
16
+ ), Ho = ({
17
17
  data: t,
18
18
  children: e
19
- }) => /* @__PURE__ */ m(Kt.Provider, { value: { tags: t == null ? void 0 : t.config }, children: e }), an = () => {
20
- const { tags: t } = pe(Kt), e = te(
19
+ }) => /* @__PURE__ */ m(Xt.Provider, { value: { tags: t == null ? void 0 : t.config }, children: e }), sn = () => {
20
+ const { tags: t } = pe(Xt), e = te(
21
21
  (r) => {
22
22
  var a, s, c, u;
23
23
  const n = (s = (a = t == null ? void 0 : t.commercial) == null ? void 0 : a.items) == null ? void 0 : s.find(
@@ -40,14 +40,14 @@ const Kt = fe(
40
40
  [t]
41
41
  );
42
42
  return { tags: t, getAvailableProductTag: e };
43
- }, sn = ({ gridScrollBack: t }) => {
43
+ }, cn = ({ gridScrollBack: t }) => {
44
44
  J(() => {
45
45
  typeof window < "u" && (t != null && t.refer) && sessionStorage.setItem(t == null ? void 0 : t.refer, "true");
46
46
  }, []);
47
- }, cn = fe({}), Oo = ({ children: t, gridScrollBack: e }) => {
47
+ }, ln = fe({}), $o = ({ children: t, gridScrollBack: e }) => {
48
48
  const r = G(null);
49
- return sn({ gridScrollBack: e }), /* @__PURE__ */ m(
50
- cn.Provider,
49
+ return cn({ gridScrollBack: e }), /* @__PURE__ */ m(
50
+ ln.Provider,
51
51
  {
52
52
  value: {
53
53
  sizesContainerRef: r
@@ -55,24 +55,24 @@ const Kt = fe(
55
55
  children: t
56
56
  }
57
57
  );
58
- }, To = () => {
59
- const t = pe(cn);
58
+ }, Vo = () => {
59
+ const t = pe(ln);
60
60
  if (t === void 0)
61
61
  throw new Error("useContext(PDPContext) must be used within a PDPProvider");
62
62
  return t;
63
- }, De = (t, e = !0) => Intl.NumberFormat("pt-BR", {
63
+ }, xe = (t, e = !0) => Intl.NumberFormat("pt-BR", {
64
64
  style: "currency",
65
65
  currency: "BRL",
66
66
  minimumFractionDigits: e ? 2 : 0
67
- }).format(t), ln = ({ valueInCents: t, hasFree: e, freeTaxMessage: r }) => t === 0 ? e ? r : "R$ 0,00" : De(t / 100), Qt = (t) => {
67
+ }).format(t), un = ({ valueInCents: t, hasFree: e, freeTaxMessage: r }) => t === 0 ? e ? r : "R$ 0,00" : xe(t / 100), Zt = (t) => {
68
68
  const [e, r] = t.split("-");
69
69
  return { name: e.trim(), size: r ? r.trim() : "" };
70
- }, Xt = (t) => {
70
+ }, Yt = (t) => {
71
71
  if (!t)
72
72
  return {};
73
73
  const [e, r] = t.split("-");
74
74
  return { color: e == null ? void 0 : e.trim(), size: r == null ? void 0 : r.trim() };
75
- }, un = (t) => {
75
+ }, dn = (t) => {
76
76
  const e = {
77
77
  price: 0,
78
78
  listPrice: 0,
@@ -104,7 +104,7 @@ const Kt = fe(
104
104
  const s = {
105
105
  name: a.name,
106
106
  sku: a.itemId,
107
- value: ((u = a.Tamanho) == null ? void 0 : u[0]) ?? Qt(a.nameComplete ?? a.name).size,
107
+ value: ((u = a.Tamanho) == null ? void 0 : u[0]) ?? Zt(a.nameComplete ?? a.name).size,
108
108
  available: !1,
109
109
  sellerId: "",
110
110
  sellerName: "",
@@ -121,34 +121,34 @@ const Kt = fe(
121
121
  sizes: i,
122
122
  allSizesAvailable: n
123
123
  };
124
- }, dn = (t) => t.find((e) => e.imageLabel === "10"), fn = (t, e) => {
124
+ }, fn = (t) => t.find((e) => e.imageLabel === "10"), pn = (t, e) => {
125
125
  const r = /\/ids\/(\d+)\//, n = t.match(r);
126
126
  return n ? t.replace(
127
127
  `/${n[1]}/`,
128
128
  `/${n[1]}-${e.width}-${e.height}/`
129
129
  ) : t;
130
- }, pn = (t, e) => {
130
+ }, mn = (t, e) => {
131
131
  const r = /\/ids\/(\d+)-(\d+)-(\d+)\//, n = t.match(r);
132
132
  return n ? t.replace(
133
133
  `/${n[1]}-${n[2]}-${n[3]}/`,
134
134
  `/${n[1]}-${e.width}-${e.height}/`
135
135
  ) : t;
136
- }, So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
136
+ }, Wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
137
137
  __proto__: null,
138
- formatPriceToCurrency: De,
139
- freightParsePrice: ln,
140
- getColorAndSizeFromSkuName: Xt,
141
- getSkuInfos: un,
142
- getThumbImage: dn,
143
- resizingImg: fn,
144
- splitNameAndSizeFromFullName: Qt,
145
- updatedResizedImg: pn
138
+ formatPriceToCurrency: xe,
139
+ freightParsePrice: un,
140
+ getColorAndSizeFromSkuName: Yt,
141
+ getSkuInfos: dn,
142
+ getThumbImage: fn,
143
+ resizingImg: pn,
144
+ splitNameAndSizeFromFullName: Zt,
145
+ updatedResizedImg: mn
146
146
  }, Symbol.toStringTag, { value: "Module" })), he = ({ event: t, data: e }) => {
147
147
  const r = (window == null ? void 0 : window.dataLayer) || [];
148
148
  e.ecommerce && r.push({
149
149
  ecommerce: null
150
150
  }), r.push({ ...t && { event: `custom_${t}` }, ...e });
151
- }, B = {
151
+ }, W = {
152
152
  configs: {
153
153
  PLP_FILTERS: [{ key: "", label: "", eventLabel: "", order: 0 }],
154
154
  currency: "BRL",
@@ -160,13 +160,13 @@ const Kt = fe(
160
160
  productEvents: (t, e) => {
161
161
  const { event: r, commonData: n, customData: i, promotionInfo: o, itemList: a, outsideEcommerceData: s } = t, { availableSizes: c, sizes: u, price: d } = n, f = {
162
162
  ...r === "view_item" ? {
163
- currency: B.configs.currency,
163
+ currency: W.configs.currency,
164
164
  value: d,
165
- grade_disponivel: c ?? (u ? mn(u) : "")
165
+ grade_disponivel: c ?? (u ? hn(u) : "")
166
166
  } : {},
167
167
  ...r === "add_to_wishlist" || r === "remove_from_wishlist" ? {
168
168
  value: d,
169
- currency: B.configs.currency
169
+ currency: W.configs.currency
170
170
  } : {}
171
171
  }, l = ze({
172
172
  data: n,
@@ -175,7 +175,7 @@ const Kt = fe(
175
175
  ...a,
176
176
  ...o
177
177
  },
178
- configs: B.configs
178
+ configs: W.configs
179
179
  });
180
180
  he({
181
181
  event: r,
@@ -206,7 +206,7 @@ const Kt = fe(
206
206
  index: c,
207
207
  ...o != null && o.item_list_name ? { item_list_name: o == null ? void 0 : o.item_list_name } : n
208
208
  },
209
- configs: B.configs
209
+ configs: W.configs
210
210
  }));
211
211
  he({
212
212
  event: "view_item_list",
@@ -238,7 +238,7 @@ const Kt = fe(
238
238
  );
239
239
  let h = { ...a, ...s };
240
240
  if (l) {
241
- const E = _n(), T = gn(E, l);
241
+ const E = gn(), T = yn(E, l);
242
242
  T && (h = {
243
243
  ...h,
244
244
  ...T
@@ -257,7 +257,7 @@ const Kt = fe(
257
257
  });
258
258
  }
259
259
  u += f.price ?? ((y = (_ = (p = l == null ? void 0 : l.offers) == null ? void 0 : p.offers) == null ? void 0 : _[0]) == null ? void 0 : y.price) ?? 0;
260
- const g = (l == null ? void 0 : l.size) ?? Xt(
260
+ const g = (l == null ? void 0 : l.size) ?? Yt(
261
261
  (l == null ? void 0 : l.skuName) ?? (l == null ? void 0 : l.name) ?? ((w = f.itemOffered) == null ? void 0 : w.skuName)
262
262
  ).size;
263
263
  return ze({
@@ -273,7 +273,7 @@ const Kt = fe(
273
273
  item_variant2: g,
274
274
  seller_id: (l == null ? void 0 : l.sellerId) ?? (l == null ? void 0 : l.seller) ?? ((C = (P = (v = (b = l == null ? void 0 : l.offers) == null ? void 0 : b.offers) == null ? void 0 : v[0]) == null ? void 0 : P.seller) == null ? void 0 : C.identifier) ?? f.seller
275
275
  },
276
- configs: B.configs
276
+ configs: W.configs
277
277
  });
278
278
  });
279
279
  he({
@@ -282,7 +282,7 @@ const Kt = fe(
282
282
  ...c,
283
283
  ecommerce: {
284
284
  value: o ?? u,
285
- currency: B.configs.currency,
285
+ currency: W.configs.currency,
286
286
  items: d
287
287
  }
288
288
  }
@@ -293,7 +293,7 @@ const Kt = fe(
293
293
  const { commonData: e, customData: r, outsideEcommerceData: n } = t, i = {}, o = {};
294
294
  Array.isArray(e == null ? void 0 : e.selectedFacets) && ((a = e == null ? void 0 : e.selectedFacets) != null && a.length) && ((e == null ? void 0 : e.selectedFacets).forEach(({ key: s, value: c }) => {
295
295
  var f;
296
- const u = ((f = B.configs.PLP_FILTERS.find((l) => l.key === s)) == null ? void 0 : f.eventLabel) ?? s, d = (i == null ? void 0 : i[u]) || [];
296
+ const u = ((f = W.configs.PLP_FILTERS.find((l) => l.key === s)) == null ? void 0 : f.eventLabel) ?? s, d = (i == null ? void 0 : i[u]) || [];
297
297
  u === "price_range" && c.replace(":", "-"), i[u] = [...d, c];
298
298
  }), Object.keys(i).forEach((s) => o[s] = i[s].join(", "))), he({
299
299
  event: "filter",
@@ -323,7 +323,7 @@ const Kt = fe(
323
323
  item_sku: b.id ?? b.itemOffered.sku,
324
324
  quantity: b.quantity ?? 1
325
325
  },
326
- configs: B.configs
326
+ configs: W.configs
327
327
  });
328
328
  }), s = (((d = n.totalizers.find((b) => b.name === "Total dos Itens")) == null ? void 0 : d.value) ?? 0) / 100, c = (((f = n.totalizers.find((b) => b.name === "Total dos Descontos")) == null ? void 0 : f.value) ?? 0) / 100, u = ((l = n.marketingData) == null ? void 0 : l.utmiCampaign) === "codigodavendedora" ? (h = n.marketingData) == null ? void 0 : h.utmCampaign : (p = String((g = n.openTextField) == null ? void 0 : g.value)) == null ? void 0 : p.split(" - ")[0];
329
329
  he({
@@ -331,7 +331,7 @@ const Kt = fe(
331
331
  data: {
332
332
  ...r,
333
333
  ecommerce: {
334
- currency: B.configs.currency,
334
+ currency: W.configs.currency,
335
335
  value: s + c,
336
336
  total_discount: Math.abs(c),
337
337
  cep_preenchido: !!((y = (_ = n.shippingData) == null ? void 0 : _.address) != null && y.postalCode),
@@ -354,28 +354,28 @@ const Kt = fe(
354
354
  }
355
355
  });
356
356
  }
357
- }, mn = (t) => t.reduce((e, r) => (r.available && e.push(r.value), e), []).toString(), Lo = (t) => {
357
+ }, hn = (t) => t.reduce((e, r) => (r.available && e.push(r.value), e), []).toString(), Bo = (t) => {
358
358
  const e = t.length;
359
359
  return {
360
360
  ...t && t.length > 0 ? {
361
- item_category: t[0].includes(B.configs.categoryOff) ? "Bazar" : "Coleção",
361
+ item_category: t[0].includes(W.configs.categoryOff) ? "Bazar" : "Coleção",
362
362
  ...t[1] ? { item_category2: t[1] } : {},
363
363
  ...e > 2 ? { item_category3: t[e - 1] } : {}
364
364
  } : {}
365
365
  };
366
366
  }, ze = ({ data: t, customData: e, configs: r }) => ({
367
- ...Do(t, r == null ? void 0 : r.MAIN_IMAGE),
368
- ...Ao(t),
369
- ...xo(t),
370
- ...Mo(t),
367
+ ...Go(t, r == null ? void 0 : r.MAIN_IMAGE),
368
+ ...Ko(t),
369
+ ...Qo(t),
370
+ ...Xo(t),
371
371
  ...e
372
- }), hn = () => {
372
+ }), _n = () => {
373
373
  var t, e;
374
374
  return document ? ((e = (t = window.document.head.querySelector('meta[name="category"]')) == null ? void 0 : t.getAttribute("content")) == null ? void 0 : e.split("_")) ?? [] : [];
375
- }, _n = () => {
375
+ }, gn = () => {
376
376
  const t = window.localStorage.getItem("persistedCartEventsData");
377
377
  return t ? JSON.parse(t) : null;
378
- }, gn = (t, e) => t == null ? void 0 : t[e], $t = ({
378
+ }, yn = (t, e) => t == null ? void 0 : t[e], $t = ({
379
379
  persistedData: t,
380
380
  type: e,
381
381
  sku: r,
@@ -393,7 +393,7 @@ const Kt = fe(
393
393
  return;
394
394
  }
395
395
  t && e === "remove" && (delete t[r], window.localStorage.setItem("persistedCartEventsData", JSON.stringify(t)));
396
- }, Do = (t, e = "1") => {
396
+ }, Go = (t, e = "1") => {
397
397
  var o, a, s, c, u, d, f, l, h, g, p;
398
398
  const r = t.productReference ?? t.gtin ?? t.productRefId, n = t.image ?? ((a = (o = t.items) == null ? void 0 : o[0]) == null ? void 0 : a.images) ?? ((s = t.itemOffered) == null ? void 0 : s.image), i = n == null ? void 0 : n.find(
399
399
  (_) => _.alternateName === e || _.imageLabel === e || _.keywords === e
@@ -401,16 +401,16 @@ const Kt = fe(
401
401
  return {
402
402
  item_id: t.productId ?? ((c = t.isVariantOf) == null ? void 0 : c.productGroupID) ?? ((u = t.isVariationOf) == null ? void 0 : u.productGroupID) ?? ((f = (d = t.itemOffered) == null ? void 0 : d.isVariationOf) == null ? void 0 : f.productGroupID),
403
403
  item_ref: /_\d$/.test(r) ? r.slice(0, -2) : r,
404
- item_name: t.productTitle ?? t.productName ?? t.name ?? Qt((l = t.itemOffered) == null ? void 0 : l.name).name,
404
+ item_name: t.productTitle ?? t.productName ?? t.name ?? Zt((l = t.itemOffered) == null ? void 0 : l.name).name,
405
405
  item_brand: ((h = t.brand) == null ? void 0 : h.brandName) ?? ((g = t.brand) == null ? void 0 : g.name) ?? t.brand ?? ((p = t.itemOffered) == null ? void 0 : p.brand.name),
406
- item_url: `${B.configs.storeUrl}${t.linkText}/p`,
406
+ item_url: `${W.configs.storeUrl}${t.linkText}/p`,
407
407
  item_image: (i == null ? void 0 : i.url) ?? (i == null ? void 0 : i.imageUrl)
408
408
  };
409
- }, dr = (t) => Array.isArray(t) ? t.reduce((e, r) => (r.length > e.length && (e = r), e), "") : t, Ao = (t) => {
409
+ }, mr = (t) => Array.isArray(t) ? t.reduce((e, r) => (r.length > e.length && (e = r), e), "") : t, Ko = (t) => {
410
410
  var u, d;
411
- const { categories: e, categoriesIds: r } = t, n = e ?? ((u = t.itemOffered) == null ? void 0 : u.categories), i = r ?? ((d = t.itemOffered) == null ? void 0 : d.categoriesIds), o = dr(n), a = dr(i), s = o.slice(1, -1).split("/"), c = a.slice(1, -1).split("/");
411
+ const { categories: e, categoriesIds: r } = t, n = e ?? ((u = t.itemOffered) == null ? void 0 : u.categories), i = r ?? ((d = t.itemOffered) == null ? void 0 : d.categoriesIds), o = mr(n), a = mr(i), s = o.slice(1, -1).split("/"), c = a.slice(1, -1).split("/");
412
412
  return {
413
- item_category: s[0].toLowerCase().includes(B.configs.categoryOff) ? "Bazar" : "Coleção",
413
+ item_category: s[0].toLowerCase().includes(W.configs.categoryOff) ? "Bazar" : "Coleção",
414
414
  ...s[1] && { item_category2: s[1] },
415
415
  ...s.length > 2 && {
416
416
  item_category3: s[s.length - 1]
@@ -420,14 +420,14 @@ const Kt = fe(
420
420
  item_parent_category_id: c[c.length - 2]
421
421
  }
422
422
  };
423
- }, xo = (t) => {
423
+ }, Qo = (t) => {
424
424
  var i, o, a, s, c, u;
425
- const e = ((i = t.itemOffered) == null ? void 0 : i.skuName) ?? ((s = (a = (o = t.isVariantOf) == null ? void 0 : o.hasVariant) == null ? void 0 : a[0]) == null ? void 0 : s.name) ?? ((u = (c = t.items) == null ? void 0 : c[0]) == null ? void 0 : u.name), { color: r, size: n } = Xt(e);
425
+ const e = ((i = t.itemOffered) == null ? void 0 : i.skuName) ?? ((s = (a = (o = t.isVariantOf) == null ? void 0 : o.hasVariant) == null ? void 0 : a[0]) == null ? void 0 : s.name) ?? ((u = (c = t.items) == null ? void 0 : c[0]) == null ? void 0 : u.name), { color: r, size: n } = Yt(e);
426
426
  return {
427
427
  item_variant: r,
428
428
  ...t.itemOffered && { item_variant2: n }
429
429
  };
430
- }, Mo = (t) => {
430
+ }, Xo = (t) => {
431
431
  var c, u;
432
432
  const { price: e, listPrice: r, installments: n } = t, i = e ?? ((c = t.offers) == null ? void 0 : c.lowPrice) ?? 0, o = r ?? ((u = t.offers) == null ? void 0 : u.highPrice) ?? 0, a = o ? o - i : 0, s = a % 1 === 0 ? a : Number(a.toFixed(2));
433
433
  return {
@@ -440,28 +440,28 @@ const Kt = fe(
440
440
  installments: n == null ? void 0 : n.count,
441
441
  installment_value: n == null ? void 0 : n.value
442
442
  },
443
- item_currency: B.configs.currency
443
+ item_currency: W.configs.currency
444
444
  };
445
- }, yn = () => {
446
- const [t, e] = hn(), [r, n] = t.split("-"), i = r.includes("shop") || r.includes("sale") ? r : "";
445
+ }, vn = () => {
446
+ const [t, e] = _n(), [r, n] = t.split("-"), i = r.includes("shop") || r.includes("sale") ? r : "";
447
447
  return {
448
448
  page_category: i && n ? n : "",
449
449
  page_departament: i,
450
450
  id: e,
451
451
  name: t
452
452
  };
453
- }, ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
453
+ }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
454
454
  __proto__: null,
455
- eventsFunctions: B,
456
- findDataInPersistedData: gn,
457
- getAvailablesSizes: mn,
458
- getCategories: Lo,
459
- getPageCategoryAndDepartmentFromSlug: yn,
460
- getPersistedData: _n,
461
- getProductListInfoFromHead: hn,
455
+ eventsFunctions: W,
456
+ findDataInPersistedData: yn,
457
+ getAvailablesSizes: hn,
458
+ getCategories: Bo,
459
+ getPageCategoryAndDepartmentFromSlug: vn,
460
+ getPersistedData: gn,
461
+ getProductListInfoFromHead: _n,
462
462
  pushDatalayer: he,
463
463
  updatePersistedData: $t
464
- }, Symbol.toStringTag, { value: "Module" })), vn = fe({}), jo = ({ children: t, evtFunctionsConfigs: e }) => {
464
+ }, Symbol.toStringTag, { value: "Module" })), bn = fe({}), Yo = ({ children: t, evtFunctionsConfigs: e }) => {
465
465
  const r = G({}), n = G(null), i = G(null), o = G({}), a = G({
466
466
  trigger: !1,
467
467
  index: 0
@@ -471,11 +471,11 @@ const Kt = fe(
471
471
  callBack: l,
472
472
  timeout: h = 100
473
473
  }) => {
474
- window.dataLayer || (window.dataLayer = []), B.configs = e;
474
+ window.dataLayer || (window.dataLayer = []), W.configs = e;
475
475
  try {
476
- typeof B[d] == "function" && setTimeout(() => {
476
+ typeof W[d] == "function" && setTimeout(() => {
477
477
  var g;
478
- f.promotionInfo = r.current, (g = i.current) != null && g.item_list_name && (f.itemList = i.current), B[d](f, l);
478
+ f.promotionInfo = r.current, (g = i.current) != null && g.item_list_name && (f.itemList = i.current), W[d](f, l);
479
479
  }, h);
480
480
  } catch (g) {
481
481
  he({
@@ -516,7 +516,7 @@ const Kt = fe(
516
516
  });
517
517
  };
518
518
  return /* @__PURE__ */ m(
519
- vn.Provider,
519
+ bn.Provider,
520
520
  {
521
521
  value: {
522
522
  sendDataLayerEvent: s,
@@ -531,7 +531,7 @@ const Kt = fe(
531
531
  children: t
532
532
  }
533
533
  );
534
- }, be = () => pe(vn), bn = fe({}), qo = ({
534
+ }, be = () => pe(bn), Pn = fe({}), Jo = ({
535
535
  children: t,
536
536
  productData: e,
537
537
  isKit: r,
@@ -547,12 +547,12 @@ const Kt = fe(
547
547
  ["Composição"]: l = "",
548
548
  productReference: h,
549
549
  categories: [g]
550
- } = e, { getAvailableProductTag: p } = an(), _ = p(
550
+ } = e, { getAvailableProductTag: p } = sn(), _ = p(
551
551
  Object.entries(e.clusterHighlights).map((D) => ({
552
552
  id: D[0],
553
553
  name: D[1]
554
554
  }))
555
- ), y = g.slice(1, -1).split("/"), { installments: w, price: I, listPrice: b, sizes: v, allSizesAvailable: P } = un(c), C = dn(u), E = [
555
+ ), y = g.slice(1, -1).split("/"), { installments: w, price: I, listPrice: b, sizes: v, allSizesAvailable: P } = dn(c), C = fn(u), E = [
556
556
  {
557
557
  label: `${n.product.description}`,
558
558
  value: "description",
@@ -575,16 +575,16 @@ const Kt = fe(
575
575
  installments: w == null ? void 0 : w.count,
576
576
  installment_value: Number(w == null ? void 0 : w.value).toFixed(2)
577
577
  }
578
- }), q = ({
578
+ }), j = ({
579
579
  sku: D,
580
580
  size: N
581
581
  }) => {
582
- const { commonData: j, customData: k } = L();
582
+ const { commonData: q, customData: k } = L();
583
583
  i({
584
584
  functionKey: "productEvents",
585
585
  data: {
586
586
  event: "view_item",
587
- commonData: j,
587
+ commonData: q,
588
588
  customData: {
589
589
  ...k,
590
590
  ...D && { item_sku: D },
@@ -608,9 +608,9 @@ const Kt = fe(
608
608
  }
609
609
  }), o.current.trigger = !1;
610
610
  }
611
- q({});
611
+ j({});
612
612
  }, []), /* @__PURE__ */ m(
613
- bn.Provider,
613
+ Pn.Provider,
614
614
  {
615
615
  value: {
616
616
  productData: e,
@@ -631,19 +631,23 @@ const Kt = fe(
631
631
  breadcrumbList: y,
632
632
  isKit: r,
633
633
  colorName: T,
634
- handleViewItemEvent: q
634
+ handleViewItemEvent: j
635
635
  },
636
636
  children: t
637
637
  }
638
638
  );
639
- }, Yt = () => {
640
- const t = pe(bn);
639
+ }, Jt = () => {
640
+ const t = pe(Pn);
641
641
  if (t === void 0)
642
642
  throw new Error(
643
643
  "useContext(PDPDataContext) must be used within a PDPDataProvider"
644
644
  );
645
645
  return t;
646
- }, ie = Promise.resolve(!1), fr = {
646
+ }, ei = {
647
+ attachment: "ATTACHMENT",
648
+ specification: "SPECIFICATION",
649
+ attribute: "ATTRIBUTE"
650
+ }, oe = Promise.resolve(!1), Vt = {
647
651
  id: "",
648
652
  isOpen: !1,
649
653
  items: [],
@@ -656,22 +660,22 @@ const Kt = fe(
656
660
  totalizers: [],
657
661
  itemMetadata: [],
658
662
  recentlyAddedProducts: [],
659
- addCoupon: () => ie,
660
- addItem: () => ie,
661
- addSellerCode: () => ie,
663
+ addCoupon: () => oe,
664
+ addItem: () => oe,
665
+ addSellerCode: () => oe,
662
666
  emptyCart: () => {
663
667
  },
664
- removeItem: () => ie,
668
+ removeItem: () => oe,
665
669
  setIsOpen: () => {
666
670
  },
667
- shipping: () => ie,
668
- shippingUpdate: () => ie,
669
- toggleServiceToProduct: () => ie,
670
- updateItemQuantity: () => ie,
671
- insertProfileEmail: () => ie,
671
+ shipping: () => oe,
672
+ shippingUpdate: () => oe,
673
+ toggleServiceToProduct: () => oe,
674
+ updateItemQuantity: () => oe,
675
+ insertProfileEmail: () => oe,
672
676
  setRecentlyAddedProducts: () => {
673
677
  }
674
- }, zo = (t, e) => {
678
+ }, er = (t) => t === 0, Cn = (t, e) => {
675
679
  if (!t || t.length === 0)
676
680
  return [];
677
681
  let r = "";
@@ -681,7 +685,7 @@ const Kt = fe(
681
685
  a && (r += (r ? "/" : "") + a, n.push(r));
682
686
  }
683
687
  return n;
684
- }, Fo = (t) => {
688
+ }, In = (t) => {
685
689
  const {
686
690
  availability: e,
687
691
  additionalInfo: { brandName: r },
@@ -718,7 +722,7 @@ const Kt = fe(
718
722
  brand: {
719
723
  name: r
720
724
  },
721
- categories: zo(g, h),
725
+ categories: Cn(g, h),
722
726
  categoriesIds: g,
723
727
  gtin: _,
724
728
  image: [
@@ -744,14 +748,14 @@ const Kt = fe(
744
748
  sellingPrice: P,
745
749
  seller: y
746
750
  };
747
- }, Uo = (t, e) => {
751
+ }, wn = (t, e) => {
748
752
  const r = t.map((n) => ({
749
753
  id: n.id,
750
754
  quantity: n.quantity,
751
755
  seller: n.seller
752
756
  }));
753
757
  return Array.isArray(e) ? [...r, ...e] : [...r, e];
754
- }, Ho = (t, e) => {
758
+ }, En = (t, e) => {
755
759
  const r = t.find((n) => n.id === e);
756
760
  if (r) {
757
761
  const n = t.map((i, o) => {
@@ -769,7 +773,7 @@ const Kt = fe(
769
773
  };
770
774
  }
771
775
  return { updateItems: [], filterItems: [] };
772
- }, $o = (t, e, r) => t.filter(
776
+ }, Rn = (t, e, r) => t.filter(
773
777
  (n) => n.availability !== "withoutStock" && n.availability !== "https://schema.org/OutOfStock"
774
778
  ).map(
775
779
  (n, i) => {
@@ -788,7 +792,29 @@ const Kt = fe(
788
792
  sku: ((a = n.itemOffered) == null ? void 0 : a.sku) ?? ""
789
793
  };
790
794
  }
791
- ), pr = (t, e) => t.filter((r) => r.availability !== "withoutStock").findIndex(({ id: r }) => r === e), Vo = (t) => {
795
+ ), Wt = (t, e) => t.filter((r) => r.availability !== "withoutStock").findIndex(({ id: r }) => r === e), ti = (t, e) => {
796
+ var r;
797
+ return Array.isArray(t) ? (((r = t == null ? void 0 : t.find((n) => {
798
+ var i;
799
+ return ((i = n == null ? void 0 : n.id) == null ? void 0 : i.toLowerCase()) === e;
800
+ })) == null ? void 0 : r.value) ?? 0) / 100 : 0;
801
+ }, ri = (t) => {
802
+ const e = t.reduce((i, o) => {
803
+ const a = er(o.price) ? 0 : o.quantity;
804
+ return i + a;
805
+ }, 0), r = t.reduce(
806
+ (i, o) => i + o.price * o.quantity,
807
+ 0
808
+ ), n = t.reduce(
809
+ (i, o) => i + o.listPrice * o.quantity,
810
+ 0
811
+ );
812
+ return {
813
+ totalItems: e,
814
+ total: r,
815
+ subTotal: n
816
+ };
817
+ }, ni = (t) => Array.isArray(t) ? t.filter((e) => e.availability !== "withoutStock").reduce((e, r) => e + (er(r == null ? void 0 : r.price) ? 0 : r.quantity), 0) : 0, Nn = (t) => {
792
818
  const {
793
819
  items: e,
794
820
  itemMetadata: r,
@@ -803,7 +829,7 @@ const Kt = fe(
803
829
  return {
804
830
  id: o,
805
831
  itemMetadata: r,
806
- items: Array.isArray(e) ? e.map(Fo) : [],
832
+ items: Array.isArray(e) ? e.map(In) : [],
807
833
  marketingData: n,
808
834
  messages: i,
809
835
  openTextField: a,
@@ -811,10 +837,19 @@ const Kt = fe(
811
837
  shippingData: c,
812
838
  totalizers: u
813
839
  };
814
- }, Bo = (t, e) => {
840
+ }, On = (t, e) => {
815
841
  const r = t.find((n) => n.id === e);
816
842
  return r ? r.availability === "unavailableItemFulfillment" : !1;
817
- }, Te = (t, e, r = !1) => !t && e !== "" ? { code: 300, value: e, statusOk: r } : t === e ? { code: 200, value: e, statusOk: r } : { code: 400, value: e, statusOk: r }, Wo = (t, e) => e && Array.isArray(e) && e.find((n) => n.id === t) ? Promise.resolve(t) : Promise.resolve(!1), Go = (t, e) => e ? Promise.resolve(t[e]) : Promise.resolve(!1), Ko = async (t) => {
843
+ }, oi = (t, e) => {
844
+ const r = t.sku, n = t.isVariantOf.hasVariant.find((i) => i.sku === r);
845
+ return n ? n.name.split(e)[1] : "--";
846
+ }, Ee = (t, e, r = !1) => !t && e !== "" ? { code: 300, value: e, statusOk: r } : t === e ? { code: 200, value: e, statusOk: r } : { code: 400, value: e, statusOk: r }, ii = (t, e) => {
847
+ const r = /* @__PURE__ */ new Set();
848
+ return [t, ...e].filter(
849
+ (n) => !r.has(n) && r.add(n),
850
+ r
851
+ );
852
+ }, Tn = (t, e) => e && Array.isArray(e) && e.find((n) => n.id === t) ? Promise.resolve(t) : Promise.resolve(!1), Sn = (t, e) => e ? Promise.resolve(t[e]) : Promise.resolve(!1), Ln = async (t) => {
818
853
  try {
819
854
  const e = await t();
820
855
  if (typeof e != "boolean")
@@ -823,15 +858,15 @@ const Kt = fe(
823
858
  console.error(`[Error orderForm]: ${e}`);
824
859
  }
825
860
  return !1;
826
- }, Qo = (t, e) => {
861
+ }, Dn = (t, e) => {
827
862
  if (e !== -1) {
828
863
  const r = Number(t);
829
864
  return r ? r + 1 : 1;
830
865
  }
831
866
  return t ?? 1;
832
- }, Xo = (t, e) => Array.isArray(t) ? t.filter(
867
+ }, An = (t, e) => Array.isArray(t) ? t.filter(
833
868
  (r) => e == null ? void 0 : e.some((n) => n.id === r.id)
834
- ) : [], Yo = async (t, e) => t.then((r) => [...r ?? [], ...e ?? []]), Z = async (t, e, r) => {
869
+ ) : [], xn = async (t, e) => t.then((r) => [...r ?? [], ...e ?? []]), Q = async (t, e, r) => {
835
870
  const { priority: n = "auto", body: i } = e;
836
871
  return fetch(t, {
837
872
  // priority,
@@ -843,22 +878,51 @@ const Kt = fe(
843
878
  body: JSON.stringify(i)
844
879
  }).then(async (o) => {
845
880
  const a = await o.json();
846
- return r ? a : Vo(a);
881
+ return r ? a : Nn(a);
847
882
  });
848
- }, Zo = (t, e, r) => ({
883
+ }, Mn = (t, e, r) => ({
849
884
  notifications: [
850
885
  ...t.notifications,
851
886
  { id: Date.now(), message: e, callback: r }
852
887
  ]
853
- }), Jo = () => {
854
- const t = async (l, h) => Z("/api/checkout/order-form/coupon", {
888
+ }), ai = (t) => [...Array.isArray(t) ? t : [t], "faststore"], si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
889
+ __proto__: null,
890
+ VALUE_REFERENCES: ei,
891
+ addItemOrder: wn,
892
+ addNotification: Mn,
893
+ createItemOrder: In,
894
+ fetchCartAPI: Q,
895
+ findItemIndex: Wt,
896
+ findOptions: An,
897
+ findTotalizerValue: ti,
898
+ getCategories: Cn,
899
+ getCode: Ee,
900
+ getQuantity: Dn,
901
+ getRemoveId: Tn,
902
+ getSize: oi,
903
+ getTotalItems: ni,
904
+ getTotalizer: ri,
905
+ getValue: Sn,
906
+ initialState: Vt,
907
+ isGift: er,
908
+ marketingTagsBuilder: ai,
909
+ mergeOptionsPromise: xn,
910
+ orderFormValues: Nn,
911
+ promiseDefault: oe,
912
+ removeQuantity: En,
913
+ updateItemSellerExternal: On,
914
+ updateOrderFormPromise: Ln,
915
+ updateQuantity: Rn,
916
+ wishlistArray: ii
917
+ }, Symbol.toStringTag, { value: "Module" })), ci = () => {
918
+ const t = async (l, h) => Q("/api/checkout/order-form/coupon", {
855
919
  body: {
856
920
  orderFormId: l,
857
921
  coupon: h
858
922
  }
859
923
  }), e = async (l, h) => {
860
924
  if (h) {
861
- const g = h.includes(" - ") ? h.split(" - ")[0] : h, p = await Z(
925
+ const g = h.includes(" - ") ? h.split(" - ")[0] : h, p = await Q(
862
926
  "/api/checkout/order-form/seller-code",
863
927
  {
864
928
  body: {
@@ -868,7 +932,7 @@ const Kt = fe(
868
932
  },
869
933
  !0
870
934
  );
871
- return Z("/api/checkout/order-form/attachments", {
935
+ return Q("/api/checkout/order-form/attachments", {
872
936
  body: {
873
937
  orderFormId: l,
874
938
  sellerCode: g,
@@ -882,58 +946,58 @@ const Kt = fe(
882
946
  }
883
947
  }));
884
948
  } else
885
- return Z("/api/checkout/order-form/attachments", {
949
+ return Q("/api/checkout/order-form/attachments", {
886
950
  body: {
887
951
  orderFormId: l,
888
952
  sellerCode: "",
889
953
  sellerName: ""
890
954
  }
891
955
  });
892
- }, r = async (l, h, g) => Z("/api/checkout/order-form/items", {
956
+ }, r = async (l, h, g) => Q("/api/checkout/order-form/items", {
893
957
  body: {
894
958
  orderFormId: l,
895
- orderItems: Uo(h, g)
959
+ orderItems: wn(h, g)
896
960
  }
897
- }), n = async (l, h, g, p) => Z("/api/checkout/order-form/offerings", {
961
+ }), n = async (l, h, g, p) => Q("/api/checkout/order-form/offerings", {
898
962
  body: {
899
963
  id: h,
900
964
  itemIndex: g,
901
965
  orderFormId: l,
902
966
  remove: p
903
967
  }
904
- }), i = async (l) => Z("/api/checkout/order-form/items/remove-all", {
968
+ }), i = async (l) => Q("/api/checkout/order-form/items/remove-all", {
905
969
  body: { orderFormId: l }
906
- }), o = async (l, h = "low") => Z("/api/checkout/order-form", {
970
+ }), o = async (l, h = "low") => Q("/api/checkout/order-form", {
907
971
  priority: h,
908
972
  body: { orderFormId: l ?? "" }
909
- }), a = async (l, h) => Z("/api/checkout/order-form/profile", {
973
+ }), a = async (l, h) => Q("/api/checkout/order-form/profile", {
910
974
  body: {
911
975
  orderFormId: l,
912
976
  email: h
913
977
  }
914
978
  }), s = async (l, h, g) => {
915
- const p = Ho(h, g);
916
- return Z("/api/checkout/order-form/items/update", {
979
+ const p = En(h, g);
980
+ return Q("/api/checkout/order-form/items/update", {
917
981
  body: {
918
982
  orderItems: p.updateItems,
919
983
  orderFormId: l
920
984
  }
921
985
  });
922
- }, c = async (l, h, g) => Z("/api/checkout/order-form/shipping", {
986
+ }, c = async (l, h, g) => Q("/api/checkout/order-form/shipping", {
923
987
  body: {
924
988
  orderFormId: l,
925
989
  country: g,
926
990
  postalCode: h
927
991
  }
928
- }), u = async (l, h, g) => Z("/api/checkout/order-form/shipping/update", {
992
+ }), u = async (l, h, g) => Q("/api/checkout/order-form/shipping/update", {
929
993
  body: {
930
994
  orderFormId: l,
931
995
  options: h,
932
996
  selectedAddresses: g
933
997
  }
934
998
  }), d = async (l, h, g, p) => {
935
- const _ = $o(h, g, p);
936
- return Z("/api/checkout/order-form/items/update", {
999
+ const _ = Rn(h, g, p);
1000
+ return Q("/api/checkout/order-form/items/update", {
937
1001
  body: {
938
1002
  orderFormId: l,
939
1003
  orderItems: _
@@ -956,36 +1020,36 @@ const Kt = fe(
956
1020
  h,
957
1021
  g,
958
1022
  p
959
- ).then((y) => y && Array.isArray(y.items) ? Bo(y.items, g) ? d(
1023
+ ).then((y) => y && Array.isArray(y.items) ? On(y.items, g) ? d(
960
1024
  l,
961
1025
  h,
962
1026
  g,
963
1027
  _
964
1028
  ) : y : !1)
965
1029
  };
966
- }, Vt = "soma::cart", Se = "soma::options", Ae = nt((t, e) => {
967
- const r = Jo(), n = async (i, o, a) => {
1030
+ }, Bt = "soma::cart", De = "soma::options", Re = nt((t, e) => {
1031
+ const r = ci(), n = async (i, o, a) => {
968
1032
  t({ loading: !0 });
969
- const s = await Ko(i);
1033
+ const s = await Ln(i);
970
1034
  if (typeof s != "boolean") {
971
1035
  t({ ...s });
972
- const c = await Yo(
973
- lt(Se),
1036
+ const c = await xn(
1037
+ lt(De),
974
1038
  a
975
1039
  );
976
- return ut(Se, c), Go(s, o).finally(
1040
+ return ut(De, c), Sn(s, o).finally(
977
1041
  () => t({ loading: !1, options: c })
978
1042
  );
979
1043
  }
980
- return ie;
1044
+ return oe;
981
1045
  };
982
1046
  if (typeof window < "u") {
983
1047
  const i = async (o) => {
984
1048
  if (o) {
985
- const a = await lt(Se).then(
986
- (u) => Xo(u, o.items)
1049
+ const a = await lt(De).then(
1050
+ (u) => An(u, o.items)
987
1051
  );
988
- ut(Vt, o), ut(Se, a), t({ ...o, options: a });
1052
+ ut(Bt, o), ut(De, a), t({ ...o, options: a });
989
1053
  const s = new URLSearchParams(window.location.search), c = s.get("utm_campaign") || s.get("utmi_campaign") || "";
990
1054
  c && n(
991
1055
  () => r.addSellerCode(e().id, c.toUpperCase()),
@@ -993,11 +1057,11 @@ const Kt = fe(
993
1057
  );
994
1058
  }
995
1059
  };
996
- return lt(Vt).then(
1060
+ return lt(Bt).then(
997
1061
  (o) => r.getOrderForm(o ? o.id : "").then(i)
998
1062
  // create form
999
1063
  ), {
1000
- ...fr,
1064
+ ...Vt,
1001
1065
  // coupon
1002
1066
  addCoupon: async (o) => n(
1003
1067
  () => r.addCoupon(e().id, o),
@@ -1027,7 +1091,7 @@ const Kt = fe(
1027
1091
  // remove item by quantity = 0
1028
1092
  "items"
1029
1093
  );
1030
- return Wo(o, a);
1094
+ return Tn(o, a);
1031
1095
  },
1032
1096
  // shipping
1033
1097
  shipping: async (o, a = "BR") => n(
@@ -1077,38 +1141,39 @@ const Kt = fe(
1077
1141
  setIsOpen: (o) => t({ isOpen: o })
1078
1142
  };
1079
1143
  }
1080
- return fr;
1081
- }), Pn = nt((t) => ({
1144
+ return Vt;
1145
+ }), li = () => Re((t) => t), kn = nt((t) => ({
1082
1146
  notifications: [],
1083
1147
  actions: {
1084
1148
  addNotification: (e, r) => t(
1085
- (n) => Zo(n, e, r)
1149
+ (n) => Mn(n, e, r)
1086
1150
  ),
1087
1151
  removeNotification: (e) => t((r) => ({
1088
1152
  notifications: r.notifications.filter((n) => n.id !== e)
1089
1153
  }))
1090
1154
  }
1091
- })), Cn = () => Pn(
1155
+ })), qn = () => kn(
1092
1156
  (t) => t.notifications
1093
- ), In = () => Pn(
1157
+ ), jn = () => kn(
1094
1158
  (t) => t.actions
1095
- ), ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1159
+ ), ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1096
1160
  __proto__: null,
1097
- KEY_INDEXED_OPTIONS: Se,
1098
- KEY_INDEXED_STORE: Vt,
1099
- useCartStore: Ae,
1100
- useGetNotificationActions: In,
1101
- useGetNotificationsStore: Cn
1102
- }, Symbol.toStringTag, { value: "Module" })), ti = 6e3, wn = fe({}), En = ({ children: t, ...e }) => {
1103
- const { items: r } = Ae(), [n, i] = W([]), o = G(null), a = Le(() => Array.isArray(n) && n.length > 0 ? n.map((s) => r.find((c) => c.id === s.id)).filter((s) => s !== void 0) : [], [r, n]);
1161
+ KEY_INDEXED_OPTIONS: De,
1162
+ KEY_INDEXED_STORE: Bt,
1163
+ useCartStore: Re,
1164
+ useGetCartStoreState: li,
1165
+ useGetNotificationActions: jn,
1166
+ useGetNotificationsStore: qn
1167
+ }, Symbol.toStringTag, { value: "Module" })), di = 6e3, zn = fe({}), Fn = ({ children: t, ...e }) => {
1168
+ const { items: r } = Re(), [n, i] = B([]), o = G(null), a = Ae(() => Array.isArray(n) && n.length > 0 ? n.map((s) => r.find((c) => c.id === s.id)).filter((s) => s !== void 0) : [], [r, n]);
1104
1169
  return J(() => {
1105
1170
  n.length && (clearTimeout(o.current ?? 0), o.current = setTimeout(() => {
1106
1171
  i([]);
1107
- }, ti));
1172
+ }, di));
1108
1173
  }, [n]), /* @__PURE__ */ m(
1109
- wn.Provider,
1174
+ zn.Provider,
1110
1175
  {
1111
- value: Le(
1176
+ value: Ae(
1112
1177
  () => ({
1113
1178
  ...e,
1114
1179
  setRecentlyAdded: i,
@@ -1119,13 +1184,13 @@ const Kt = fe(
1119
1184
  children: t
1120
1185
  }
1121
1186
  );
1122
- }, xe = () => {
1123
- const t = pe(wn);
1187
+ }, Me = () => {
1188
+ const t = pe(zn);
1124
1189
  if (t === void 0)
1125
1190
  throw new Error("useUIContext must be used within a UIProvider");
1126
1191
  return t;
1127
1192
  };
1128
- class Rn {
1193
+ class Un {
1129
1194
  constructor() {
1130
1195
  ct(this, "events", {});
1131
1196
  ct(this, "prevData", {});
@@ -1141,8 +1206,8 @@ class Rn {
1141
1206
  });
1142
1207
  }
1143
1208
  }
1144
- const Nn = fe({}), ri = ({ children: t, headerConfigs: e, pathname: r, ...n }) => {
1145
- const [i, o] = W(!0), a = r === "/", s = G(new Rn()), c = (f) => f ? {
1209
+ const Hn = fe({}), fi = ({ children: t, headerConfigs: e, pathname: r, ...n }) => {
1210
+ const [i, o] = B(!0), a = r === "/", s = G(new Un()), c = (f) => f ? {
1146
1211
  headerVariant: e.home_default_variant,
1147
1212
  bannerVariant: e.home_default_variant,
1148
1213
  position: e.home_default_position
@@ -1169,7 +1234,7 @@ const Nn = fe({}), ri = ({ children: t, headerConfigs: e, pathname: r, ...n }) =
1169
1234
  f.position
1170
1235
  ), d.current = f;
1171
1236
  }, [a]), /* @__PURE__ */ m(
1172
- Nn.Provider,
1237
+ Hn.Provider,
1173
1238
  {
1174
1239
  value: {
1175
1240
  isMobile: i,
@@ -1177,18 +1242,18 @@ const Nn = fe({}), ri = ({ children: t, headerConfigs: e, pathname: r, ...n }) =
1177
1242
  currentHeaderConfigsRef: d,
1178
1243
  ...n
1179
1244
  },
1180
- children: /* @__PURE__ */ m(En, { children: t })
1245
+ children: /* @__PURE__ */ m(Fn, { children: t })
1181
1246
  }
1182
1247
  );
1183
- }, Pe = () => pe(Nn), On = fe({}), ni = ({ children: t, ...e }) => /* @__PURE__ */ m(
1184
- On.Provider,
1248
+ }, Pe = () => pe(Hn), $n = fe({}), pi = ({ children: t, ...e }) => /* @__PURE__ */ m(
1249
+ $n.Provider,
1185
1250
  {
1186
1251
  value: {
1187
1252
  ...e
1188
1253
  },
1189
1254
  children: t
1190
1255
  }
1191
- ), Re = () => pe(On), Ee = {
1256
+ ), Oe = () => pe($n), Ne = {
1192
1257
  selectedSkuInfo: {
1193
1258
  productId: "",
1194
1259
  name: "",
@@ -1203,23 +1268,23 @@ const Nn = fe({}), ri = ({ children: t, headerConfigs: e, pathname: r, ...n }) =
1203
1268
  openMeasurements: !1,
1204
1269
  showBottomNavigation: !1,
1205
1270
  showNotify: !1
1206
- }, Zt = /* @__PURE__ */ new Set(), oi = () => {
1207
- Zt.forEach((t) => {
1271
+ }, tr = /* @__PURE__ */ new Set(), mi = () => {
1272
+ tr.forEach((t) => {
1208
1273
  t();
1209
1274
  });
1210
1275
  }, ot = (t) => nt((e) => {
1211
1276
  const r = () => e({ value: t });
1212
- return Zt.add(r), {
1277
+ return tr.add(r), {
1213
1278
  value: t,
1214
1279
  actions: {
1215
1280
  setValue: (n) => e({ value: n }),
1216
1281
  reset: r
1217
1282
  }
1218
1283
  };
1219
- }), Tn = nt((t) => {
1220
- const e = () => t({ value: Ee.selectedSkuInfo });
1221
- return Zt.add(e), {
1222
- value: Ee.selectedSkuInfo,
1284
+ }), Vn = nt((t) => {
1285
+ const e = () => t({ value: Ne.selectedSkuInfo });
1286
+ return tr.add(e), {
1287
+ value: Ne.selectedSkuInfo,
1223
1288
  actions: {
1224
1289
  setValue: (r) => t((n) => ({
1225
1290
  value: {
@@ -1231,39 +1296,39 @@ const Nn = fe({}), ri = ({ children: t, headerConfigs: e, pathname: r, ...n }) =
1231
1296
  reset: e
1232
1297
  }
1233
1298
  };
1234
- }), ii = () => Tn((t) => t.value), ai = () => Tn((t) => t.actions), Sn = ot(Ee.openLetMeKnow), si = () => Sn((t) => t.value), ci = () => Sn((t) => t.actions), Ln = ot(Ee.showNotify), li = () => Ln((t) => t.value), ui = () => Ln((t) => t.actions), Dn = ot(Ee.showBottomNavigation), di = () => Dn((t) => t.value), fi = () => Dn((t) => t.actions), An = ot(Ee.openMeasurements), pi = () => An((t) => t.value), mi = () => An((t) => t.actions), hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1299
+ }), hi = () => Vn((t) => t.value), _i = () => Vn((t) => t.actions), Wn = ot(Ne.openLetMeKnow), gi = () => Wn((t) => t.value), yi = () => Wn((t) => t.actions), Bn = ot(Ne.showNotify), vi = () => Bn((t) => t.value), bi = () => Bn((t) => t.actions), Gn = ot(Ne.showBottomNavigation), Pi = () => Gn((t) => t.value), Ci = () => Gn((t) => t.actions), Kn = ot(Ne.openMeasurements), Ii = () => Kn((t) => t.value), wi = () => Kn((t) => t.actions), Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1235
1300
  __proto__: null,
1236
- resetAllPDPStores: oi,
1237
- useActionsPDPOpenLetMeKnow: ci,
1238
- useActionsPDPOpenMeasurements: mi,
1239
- useActionsPDPSelectedSkuInfo: ai,
1240
- useActionsPDPShowBottomNavigation: fi,
1241
- useActionsPDPShowNotify: ui,
1242
- useGetPDPOpenLetMeKnow: si,
1243
- useGetPDPOpenMeasurements: pi,
1244
- useGetPDPSelectedSkuInfo: ii,
1245
- useGetPDPShowBottomNavigation: di,
1246
- useGetPDPShowNotify: li
1247
- }, Symbol.toStringTag, { value: "Module" })), _i = (t) => {
1301
+ resetAllPDPStores: mi,
1302
+ useActionsPDPOpenLetMeKnow: yi,
1303
+ useActionsPDPOpenMeasurements: wi,
1304
+ useActionsPDPSelectedSkuInfo: _i,
1305
+ useActionsPDPShowBottomNavigation: Ci,
1306
+ useActionsPDPShowNotify: bi,
1307
+ useGetPDPOpenLetMeKnow: gi,
1308
+ useGetPDPOpenMeasurements: Ii,
1309
+ useGetPDPSelectedSkuInfo: hi,
1310
+ useGetPDPShowBottomNavigation: Pi,
1311
+ useGetPDPShowNotify: vi
1312
+ }, Symbol.toStringTag, { value: "Module" })), Ri = (t) => {
1248
1313
  if (!t || typeof window > "u")
1249
1314
  return 0;
1250
1315
  const e = window.getComputedStyle(t);
1251
1316
  return parseInt(e.padding, 10);
1252
- }, gi = (t, e, r) => {
1317
+ }, Ni = (t, e, r) => {
1253
1318
  if (!(t instanceof HTMLElement) || !(e instanceof HTMLElement))
1254
1319
  return { left: 0, top: 0 };
1255
- const n = e.getBoundingClientRect(), i = t.getBoundingClientRect(), o = t != null && t.parentElement ? _i(t == null ? void 0 : t.parentElement) : 0;
1320
+ const n = e.getBoundingClientRect(), i = t.getBoundingClientRect(), o = t != null && t.parentElement ? Ri(t == null ? void 0 : t.parentElement) : 0;
1256
1321
  return {
1257
1322
  left: n.left + n.width / 2 - (i.width + o),
1258
1323
  top: n.top + n.height + r
1259
1324
  };
1260
- }, xn = fe({}), Mn = ({
1325
+ }, Qn = fe({}), Xn = ({
1261
1326
  children: t,
1262
1327
  delay: e = 600,
1263
1328
  gap: r = 20,
1264
1329
  ...n
1265
1330
  }) => {
1266
- const [i, o] = W(!1), a = G(null), [s, c] = W(!1), [u, d] = W({ left: 0, top: 0 }), f = te(() => {
1331
+ const [i, o] = B(!1), a = G(null), [s, c] = B(!1), [u, d] = B({ left: 0, top: 0 }), f = te(() => {
1267
1332
  c(!0), typeof window < "u" && (a.current = window.setTimeout(() => {
1268
1333
  o(!1), c(!1);
1269
1334
  }, e));
@@ -1275,13 +1340,13 @@ const Nn = fe({}), ri = ({ children: t, headerConfigs: e, pathname: r, ...n }) =
1275
1340
  "#add-to-cart--tooltip"
1276
1341
  );
1277
1342
  if (l && h) {
1278
- const { left: g, top: p } = gi(h, l, r ?? 0);
1343
+ const { left: g, top: p } = Ni(h, l, r ?? 0);
1279
1344
  d({ left: g, top: p }), c(!1);
1280
1345
  }
1281
1346
  }, [r, i]), /* @__PURE__ */ m(
1282
- xn.Provider,
1347
+ Qn.Provider,
1283
1348
  {
1284
- value: Le(
1349
+ value: Ae(
1285
1350
  () => ({
1286
1351
  ...n,
1287
1352
  ...u,
@@ -1304,15 +1369,15 @@ const Nn = fe({}), ri = ({ children: t, headerConfigs: e, pathname: r, ...n }) =
1304
1369
  children: t
1305
1370
  }
1306
1371
  );
1307
- }, Me = () => {
1308
- const t = pe(xn);
1372
+ }, Te = () => {
1373
+ const t = pe(Qn);
1309
1374
  if (t === void 0)
1310
1375
  throw new Error(
1311
1376
  "useAddToCartContext must be used within a AddToCartProvider"
1312
1377
  );
1313
1378
  return t;
1314
- }, kn = fe({}), yi = ({ children: t, CARTPROVIDER_MESSAGE_PRODUCT_REMOVE: e, ...r }) => {
1315
- const n = Ae(), { setRecentlyAdded: i } = xe(), o = Cn(), { addNotification: a, removeNotification: s } = In(), {
1379
+ }, Zn = fe({}), Oi = ({ children: t, CARTPROVIDER_MESSAGE_PRODUCT_REMOVE: e, ...r }) => {
1380
+ const n = Re(), { setRecentlyAdded: i } = Me(), o = qn(), { addNotification: a, removeNotification: s } = jn(), {
1316
1381
  addCoupon: c,
1317
1382
  addItem: u,
1318
1383
  addSellerCode: d,
@@ -1327,12 +1392,12 @@ const Nn = fe({}), ri = ({ children: t, headerConfigs: e, pathname: r, ...n }) =
1327
1392
  async (R, O) => (O === "coupon" ? c(R) : d(R)).then((N) => {
1328
1393
  if (typeof N != "boolean" && N instanceof Object) {
1329
1394
  if (O === "seller" && "value" in N) {
1330
- const { statusOk: j, value: k } = N, F = String(k ?? "").split(" - ");
1331
- return Te((F == null ? void 0 : F[0]) ?? "", R, !!j);
1395
+ const { statusOk: q, value: k } = N, F = String(k ?? "").split(" - ");
1396
+ return Ee((F == null ? void 0 : F[0]) ?? "", R, !!q);
1332
1397
  }
1333
- return Te(String(N.coupon), R, !0);
1398
+ return Ee(String(N.coupon), R, !0);
1334
1399
  }
1335
- return Te("", "");
1400
+ return Ee("", "");
1336
1401
  }).catch(() => Promise.resolve({ code: 400 })),
1337
1402
  [c, d]
1338
1403
  ), I = te(
@@ -1345,9 +1410,9 @@ const Nn = fe({}), ri = ({ children: t, headerConfigs: e, pathname: r, ...n }) =
1345
1410
  (R, O, D = !1) => {
1346
1411
  if (!R)
1347
1412
  return;
1348
- const { id: N } = R, j = pr(n.items, N);
1349
- if (j !== -1 && !D) {
1350
- const k = Number(n.items[j].quantity), F = n.items[j] ? k + 1 : 1;
1413
+ const { id: N } = R, q = Wt(n.items, N);
1414
+ if (q !== -1 && !D) {
1415
+ const k = Number(n.items[q].quantity), F = n.items[q] ? k + 1 : 1;
1351
1416
  I(R, F, O);
1352
1417
  } else
1353
1418
  u({
@@ -1364,10 +1429,10 @@ const Nn = fe({}), ri = ({ children: t, headerConfigs: e, pathname: r, ...n }) =
1364
1429
  return;
1365
1430
  i((N) => [...N, ...R]);
1366
1431
  const D = R.map((N) => {
1367
- const { id: j, quantity: k, seller: F } = N, U = pr(n.items, j), Q = Qo(k ?? 1, U);
1432
+ const { id: q, quantity: k, seller: F } = N, U = Wt(n.items, q), X = Dn(k ?? 1, U);
1368
1433
  return {
1369
- id: j,
1370
- quantity: Q,
1434
+ id: q,
1435
+ quantity: X,
1371
1436
  seller: F
1372
1437
  };
1373
1438
  });
@@ -1378,7 +1443,7 @@ const Nn = fe({}), ri = ({ children: t, headerConfigs: e, pathname: r, ...n }) =
1378
1443
  async (R, O, D) => R ? h(R).then(() => (a(
1379
1444
  O ?? `${e}`,
1380
1445
  D
1381
- ), Te(R, R))) : Promise.resolve(Te("", "Product id required")),
1446
+ ), Ee(R, R))) : Promise.resolve(Ee("", "Product id required")),
1382
1447
  [a, h]
1383
1448
  ), C = te(() => {
1384
1449
  n.items.length > 0 && f();
@@ -1396,10 +1461,10 @@ const Nn = fe({}), ri = ({ children: t, headerConfigs: e, pathname: r, ...n }) =
1396
1461
  return n.items[N] && N >= 0 ? _(O, N, D ?? !1) : !1;
1397
1462
  },
1398
1463
  [n.items, _]
1399
- ), q = te(
1464
+ ), j = te(
1400
1465
  async (R, O) => y(R, O).then((D) => {
1401
1466
  if (Array.isArray(D)) {
1402
- const N = D.find((j) => j.id === R);
1467
+ const N = D.find((q) => q.id === R);
1403
1468
  if (N && (N == null ? void 0 : N.quantity) < O)
1404
1469
  return String(N.quantity);
1405
1470
  }
@@ -1408,9 +1473,9 @@ const Nn = fe({}), ri = ({ children: t, headerConfigs: e, pathname: r, ...n }) =
1408
1473
  [y]
1409
1474
  );
1410
1475
  return /* @__PURE__ */ m(
1411
- kn.Provider,
1476
+ Zn.Provider,
1412
1477
  {
1413
- value: Le(
1478
+ value: Ae(
1414
1479
  () => ({
1415
1480
  ...r,
1416
1481
  addCouponSeller: w,
@@ -1427,7 +1492,7 @@ const Nn = fe({}), ri = ({ children: t, headerConfigs: e, pathname: r, ...n }) =
1427
1492
  shipping: E,
1428
1493
  shippingUpdateOption: T,
1429
1494
  toggleGiftItemCart: L,
1430
- updateItemQuantity: q
1495
+ updateItemQuantity: j
1431
1496
  }),
1432
1497
  [
1433
1498
  r,
@@ -1443,71 +1508,71 @@ const Nn = fe({}), ri = ({ children: t, headerConfigs: e, pathname: r, ...n }) =
1443
1508
  E,
1444
1509
  T,
1445
1510
  L,
1446
- q
1511
+ j
1447
1512
  ]
1448
1513
  ),
1449
1514
  children: t
1450
1515
  }
1451
1516
  );
1452
- }, Jt = () => {
1453
- const t = pe(kn);
1517
+ }, rr = () => {
1518
+ const t = pe(Zn);
1454
1519
  if (t === void 0)
1455
1520
  throw new Error("useCartContext must be used within a CartProvider");
1456
1521
  return t;
1457
- }, mc = {
1522
+ }, wc = {
1458
1523
  contexts: {
1459
1524
  addToCart: {
1460
- hook: Me,
1461
- provider: Mn
1525
+ hook: Te,
1526
+ provider: Xn
1462
1527
  },
1463
1528
  cart: {
1464
- hook: Jt,
1465
- provider: yi
1529
+ hook: rr,
1530
+ provider: Oi
1466
1531
  },
1467
1532
  cms: {
1468
1533
  FlagsAndTags: {
1469
- context: Kt,
1470
- hook: an,
1471
- provider: No
1534
+ context: Xt,
1535
+ hook: sn,
1536
+ provider: Ho
1472
1537
  }
1473
1538
  },
1474
1539
  events: {
1475
1540
  hook: be,
1476
- provider: jo
1541
+ provider: Yo
1477
1542
  },
1478
1543
  global: {
1479
1544
  hook: Pe,
1480
- provider: ri,
1481
- mediator: Rn
1545
+ provider: fi,
1546
+ mediator: Un
1482
1547
  },
1483
1548
  next: {
1484
- hook: Re,
1485
- provider: ni
1549
+ hook: Oe,
1550
+ provider: pi
1486
1551
  },
1487
1552
  pdp: {
1488
- provider: Oo,
1489
- hook: To
1553
+ provider: $o,
1554
+ hook: Vo
1490
1555
  },
1491
1556
  pdpdata: {
1492
- hook: Yt,
1493
- provider: qo
1557
+ hook: Jt,
1558
+ provider: Jo
1494
1559
  },
1495
1560
  ui: {
1496
- hook: xe,
1497
- provider: En
1561
+ hook: Me,
1562
+ provider: Fn
1498
1563
  }
1499
1564
  },
1500
1565
  hooks: {
1501
- useBackPDC: sn
1566
+ useBackPDC: cn
1502
1567
  },
1503
1568
  stores: {
1504
- pdp: hi,
1505
- cart: ei
1569
+ pdp: Ei,
1570
+ cart: ui
1506
1571
  }
1507
- }, mr = oe.object({
1508
- country: oe.string().length(3, "Country code must be 3 characters long").required("Country is required"),
1509
- postalCode: oe.string().nullable()
1510
- }), vi = [
1572
+ }, hr = ie.object({
1573
+ country: ie.string().length(3, "Country code must be 3 characters long").required("Country is required"),
1574
+ postalCode: ie.string().nullable()
1575
+ }), Ti = [
1511
1576
  "allowManualPrice",
1512
1577
  "canEditData",
1513
1578
  "checkedInPickupPointId",
@@ -1529,7 +1594,7 @@ const Nn = fe({}), ri = ({ children: t, headerConfigs: e, pathname: r, ...n }) =
1529
1594
  "subscriptionData",
1530
1595
  "userProfileId",
1531
1596
  "userType"
1532
- ], bi = (t, e) => (e.forEach((r) => delete t[r]), t), Pi = async (t, e = {}) => {
1597
+ ], Si = (t, e) => (e.forEach((r) => delete t[r]), t), Li = async (t, e = {}) => {
1533
1598
  const { method: r = "GET", body: n, headers: i = {}, skipSanitize: o = !1 } = e;
1534
1599
  try {
1535
1600
  const a = await fetch(t, {
@@ -1542,22 +1607,22 @@ const Nn = fe({}), ri = ({ children: t, headerConfigs: e, pathname: r, ...n }) =
1542
1607
  ...n ? { body: JSON.stringify(n) } : {}
1543
1608
  // not body in get
1544
1609
  }).then((s) => s.json());
1545
- return o ? a : bi(a, vi);
1610
+ return o ? a : Si(a, Ti);
1546
1611
  } catch (a) {
1547
1612
  throw console.error("[ERROR FETCH ORDER]", a), a;
1548
1613
  }
1549
- }, Ci = oe.object({
1550
- id: oe.string().required("ID of SKU is required"),
1551
- quantity: oe.number().integer().required("Quantity of item is required"),
1552
- seller: oe.string()
1553
- }), Ii = oe.object({
1554
- items: oe.array().of(Ci),
1555
- country: mr.fields.country,
1556
- postalCode: mr.fields.postalCode,
1557
- geoCoordinates: oe.array().nullable().of(oe.number()).length(2)
1614
+ }, Di = ie.object({
1615
+ id: ie.string().required("ID of SKU is required"),
1616
+ quantity: ie.number().integer().required("Quantity of item is required"),
1617
+ seller: ie.string()
1618
+ }), Ai = ie.object({
1619
+ items: ie.array().of(Di),
1620
+ country: hr.fields.country,
1621
+ postalCode: hr.fields.postalCode,
1622
+ geoCoordinates: ie.array().nullable().of(ie.number()).length(2)
1558
1623
  });
1559
- async function wi({ apiUrl: t, body: e, options: r }) {
1560
- return await Ii.validate(e), Pi(
1624
+ async function xi({ apiUrl: t, body: e, options: r }) {
1625
+ return await Ai.validate(e), Li(
1561
1626
  `${t}/api/checkout/pub/orderForms/simulation`,
1562
1627
  {
1563
1628
  method: "POST",
@@ -1566,7 +1631,7 @@ async function wi({ apiUrl: t, body: e, options: r }) {
1566
1631
  }
1567
1632
  );
1568
1633
  }
1569
- function jn(t) {
1634
+ function Yn(t) {
1570
1635
  const r = decodeURIComponent(window.document.cookie).split(";");
1571
1636
  for (const n of r) {
1572
1637
  const [i, o] = n.trim().split("=");
@@ -1574,7 +1639,7 @@ function jn(t) {
1574
1639
  return o;
1575
1640
  }
1576
1641
  }
1577
- function qn(t, e, r = {}) {
1642
+ function Jn(t, e, r = {}) {
1578
1643
  const i = { ...{
1579
1644
  path: "/",
1580
1645
  // Set to 1 hour by default
@@ -1587,8 +1652,8 @@ function qn(t, e, r = {}) {
1587
1652
  i[a] !== void 0 && (o += `; ${a}`, a === "expires" ? o += `=${i[a].toUTCString()}` : typeof i[a] == "boolean" ? o += `; ${i[a] ? "true" : "false"}` : o += `=${i[a]}`);
1588
1653
  window.document.cookie = o;
1589
1654
  }
1590
- const Ei = (t) => t.normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/\s+/g, "-").toLowerCase().trim();
1591
- function Ri(t, e = 1e3) {
1655
+ const Mi = (t) => t.normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/\s+/g, "-").toLowerCase().trim();
1656
+ function ki(t, e = 1e3) {
1592
1657
  let r = !1;
1593
1658
  return (...n) => {
1594
1659
  r || (t(...n), r = !0, setTimeout(() => {
@@ -1596,7 +1661,7 @@ function Ri(t, e = 1e3) {
1596
1661
  }, e));
1597
1662
  };
1598
1663
  }
1599
- function Ni(t, e = 1e3) {
1664
+ function qi(t, e = 1e3) {
1600
1665
  let r;
1601
1666
  return (...n) => {
1602
1667
  clearTimeout(r), r = setTimeout(() => {
@@ -1604,43 +1669,44 @@ function Ni(t, e = 1e3) {
1604
1669
  }, e);
1605
1670
  };
1606
1671
  }
1607
- const Oi = (t, e) => e.getTime() > t.getTime() ? Math.abs(e.getTime() - t.getTime()) : 0, Ti = (t, e) => Math.floor(e === "days" ? t / (1e3 * 60 * 60 * 24) : e === "hours" ? t % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60) : e === "minutes" ? t % (1e3 * 60 * 60) / (1e3 * 60) : t % (1e3 * 60) / 1e3), Si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1672
+ const ji = (t, e) => e.getTime() > t.getTime() ? Math.abs(e.getTime() - t.getTime()) : 0, zi = (t, e) => Math.floor(e === "days" ? t / (1e3 * 60 * 60 * 24) : e === "hours" ? t % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60) : e === "minutes" ? t % (1e3 * 60 * 60) / (1e3 * 60) : t % (1e3 * 60) / 1e3), Fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1608
1673
  __proto__: null,
1609
- debounce: Ni,
1610
- getCookie: jn,
1611
- getDaysHoursMinutesSeconds: Ti,
1612
- getMilliSeconds: Oi,
1613
- removeAccentsAndReplaceSpaces: Ei,
1614
- setCookie: qn,
1615
- throttle: Ri
1616
- }, Symbol.toStringTag, { value: "Module" })), Li = {
1617
- events: ko,
1618
- product: So,
1619
- utils: Si
1620
- }, Di = {
1621
- helpers: Li,
1674
+ debounce: qi,
1675
+ getCookie: Yn,
1676
+ getDaysHoursMinutesSeconds: zi,
1677
+ getMilliSeconds: ji,
1678
+ removeAccentsAndReplaceSpaces: Mi,
1679
+ setCookie: Jn,
1680
+ throttle: ki
1681
+ }, Symbol.toStringTag, { value: "Module" })), Ui = {
1682
+ cart: si,
1683
+ events: Zo,
1684
+ product: Wo,
1685
+ utils: Fi
1686
+ }, Hi = {
1687
+ helpers: Ui,
1622
1688
  api: {
1623
1689
  checkout: {
1624
- freightSimulation: wi
1690
+ freightSimulation: xi
1625
1691
  }
1626
1692
  }
1627
- }, Ai = (t) => t, xi = (t) => t, Mi = (t) => t, ki = (t) => t, ge = {
1628
- base: ki,
1629
- configurationSchemaSet: Mi,
1630
- configuration: xi,
1631
- schema: Ai
1632
- }, ji = (t) => t, qi = (t) => ({
1693
+ }, $i = (t) => t, Vi = (t) => t, Wi = (t) => t, Bi = (t) => t, ge = {
1694
+ base: Bi,
1695
+ configurationSchemaSet: Wi,
1696
+ configuration: Vi,
1697
+ schema: $i
1698
+ }, Gi = (t) => t, Ki = (t) => ({
1633
1699
  ...t.uiWidget ? { "ui:widget": t.uiWidget } : {},
1634
1700
  ...t.uiObjectFieldTemplate ? { "ui:ObjectFieldTemplate": t.uiObjectFieldTemplate } : {}
1635
1701
  }), ee = {
1636
- property: ji,
1637
- widget: qi
1638
- }, zi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1702
+ property: Gi,
1703
+ widget: Ki
1704
+ }, Qi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1639
1705
  __proto__: null,
1640
1706
  Common: ee,
1641
1707
  ContentType: ge
1642
1708
  }, Symbol.toStringTag, { value: "Module" }));
1643
- function Fi(t) {
1709
+ function Xi(t) {
1644
1710
  const e = {
1645
1711
  value: ee.property({
1646
1712
  type: "string",
@@ -1760,9 +1826,9 @@ function Fi(t) {
1760
1826
  ]
1761
1827
  });
1762
1828
  }
1763
- const Ui = {
1764
- generateFlagsAndTags: Fi
1765
- }, Hi = (t) => {
1829
+ const Zi = {
1830
+ generateFlagsAndTags: Xi
1831
+ }, Yi = (t) => {
1766
1832
  const e = t.getBlocksAsArray(), r = [];
1767
1833
  return e.forEach((n) => {
1768
1834
  const i = n.getType(), o = n.getText();
@@ -1812,35 +1878,35 @@ const Ui = {
1812
1878
  }
1813
1879
  r.push(c);
1814
1880
  }), r;
1815
- }, $i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1881
+ }, Ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1816
1882
  __proto__: null,
1817
- convertDraftToHTML: Hi
1818
- }, Symbol.toStringTag, { value: "Module" })), hc = { ContentTypes: Ui, Factories: zi, CMSApi: vo, helpers: $i }, Vi = "_shippingFreight_6z8rf_6", Bi = "_shippingFreight__postalCodeGrid_6z8rf_10", Wi = "_shippingFreight__grid_6z8rf_14", Gi = "_shippingFreight__grid__title_6z8rf_18", Ki = "_shippingFreight__grid__remember_6z8rf_29", Qi = "_postalCodeContainer_6z8rf_44", Xi = "_deliveryStatusBar__tag_6z8rf_49", Yi = "_deliveryStatusBarError__tag_6z8rf_66", Zi = "_deliveryInfo_6z8rf_74", Ji = "_deliveryInfo__content_6z8rf_78", ea = "_deliveryInfo__text_6z8rf_84", ta = "_deliveryInfo__title_6z8rf_89", ra = "_deliveryInfo__subtitle_6z8rf_99", na = "_deliveryInfo__tooltipIcon_6z8rf_109", oa = "_deliveryInfo__tooltip_6z8rf_109", ia = "_freightGrid_6z8rf_148", aa = "_freightContainer_6z8rf_155", sa = "_freightOption__content_6z8rf_160", ca = "_freightOption__value_6z8rf_166", la = "_freightOption__title_6z8rf_177", ua = "_freightOption__title_item_6z8rf_181", da = "_freightOption__paragraph_6z8rf_192", M = {
1819
- shippingFreight: Vi,
1820
- shippingFreight__postalCodeGrid: Bi,
1821
- shippingFreight__grid: Wi,
1822
- shippingFreight__grid__title: Gi,
1823
- shippingFreight__grid__remember: Ki,
1824
- postalCodeContainer: Qi,
1825
- deliveryStatusBar__tag: Xi,
1826
- deliveryStatusBarError__tag: Yi,
1827
- deliveryInfo: Zi,
1828
- deliveryInfo__content: Ji,
1829
- deliveryInfo__text: ea,
1830
- deliveryInfo__title: ta,
1831
- deliveryInfo__subtitle: ra,
1832
- deliveryInfo__tooltipIcon: na,
1833
- deliveryInfo__tooltip: oa,
1834
- freightGrid: ia,
1835
- freightContainer: aa,
1836
- freightOption__content: sa,
1837
- freightOption__value: ca,
1838
- freightOption__title: la,
1839
- freightOption__title_item: ua,
1840
- freightOption__paragraph: da,
1883
+ convertDraftToHTML: Yi
1884
+ }, Symbol.toStringTag, { value: "Module" })), Ec = { ContentTypes: Zi, Factories: Qi, CMSApi: xo, helpers: Ji }, ea = "_shippingFreight_6z8rf_6", ta = "_shippingFreight__postalCodeGrid_6z8rf_10", ra = "_shippingFreight__grid_6z8rf_14", na = "_shippingFreight__grid__title_6z8rf_18", oa = "_shippingFreight__grid__remember_6z8rf_29", ia = "_postalCodeContainer_6z8rf_44", aa = "_deliveryStatusBar__tag_6z8rf_49", sa = "_deliveryStatusBarError__tag_6z8rf_66", ca = "_deliveryInfo_6z8rf_74", la = "_deliveryInfo__content_6z8rf_78", ua = "_deliveryInfo__text_6z8rf_84", da = "_deliveryInfo__title_6z8rf_89", fa = "_deliveryInfo__subtitle_6z8rf_99", pa = "_deliveryInfo__tooltipIcon_6z8rf_109", ma = "_deliveryInfo__tooltip_6z8rf_109", ha = "_freightGrid_6z8rf_148", _a = "_freightContainer_6z8rf_155", ga = "_freightOption__content_6z8rf_160", ya = "_freightOption__value_6z8rf_166", va = "_freightOption__title_6z8rf_177", ba = "_freightOption__title_item_6z8rf_181", Pa = "_freightOption__paragraph_6z8rf_192", M = {
1885
+ shippingFreight: ea,
1886
+ shippingFreight__postalCodeGrid: ta,
1887
+ shippingFreight__grid: ra,
1888
+ shippingFreight__grid__title: na,
1889
+ shippingFreight__grid__remember: oa,
1890
+ postalCodeContainer: ia,
1891
+ deliveryStatusBar__tag: aa,
1892
+ deliveryStatusBarError__tag: sa,
1893
+ deliveryInfo: ca,
1894
+ deliveryInfo__content: la,
1895
+ deliveryInfo__text: ua,
1896
+ deliveryInfo__title: da,
1897
+ deliveryInfo__subtitle: fa,
1898
+ deliveryInfo__tooltipIcon: pa,
1899
+ deliveryInfo__tooltip: ma,
1900
+ freightGrid: ha,
1901
+ freightContainer: _a,
1902
+ freightOption__content: ga,
1903
+ freightOption__value: ya,
1904
+ freightOption__title: va,
1905
+ freightOption__title_item: ba,
1906
+ freightOption__paragraph: Pa,
1841
1907
  "input-modifier": "_input-modifier_6z8rf_207",
1842
1908
  "freight--tooltip": "_freight--tooltip_6z8rf_227"
1843
- }, fa = ({
1909
+ }, Ca = ({
1844
1910
  icon: t,
1845
1911
  title: e,
1846
1912
  subtitle: r,
@@ -1850,7 +1916,7 @@ const Ui = {
1850
1916
  freightConfig: a,
1851
1917
  toolTipZIndex: s
1852
1918
  }) => {
1853
- const [c, u] = W(!1), d = G(null), f = () => u((l) => !l);
1919
+ const [c, u] = B(!1), d = G(null), f = () => u((l) => !l);
1854
1920
  return /* @__PURE__ */ S("div", { className: M.deliveryInfo, ref: d, children: [
1855
1921
  /* @__PURE__ */ m(
1856
1922
  et.Root,
@@ -1901,13 +1967,13 @@ const Ui = {
1901
1967
  )
1902
1968
  ] })
1903
1969
  ] });
1904
- }, pa = ({ value: t, title: e, paragraph: r }) => /* @__PURE__ */ m("div", { className: M.freightOption, children: /* @__PURE__ */ S("div", { className: M.freightOption__content, children: [
1970
+ }, Ia = ({ value: t, title: e, paragraph: r }) => /* @__PURE__ */ m("div", { className: M.freightOption, children: /* @__PURE__ */ S("div", { className: M.freightOption__content, children: [
1905
1971
  /* @__PURE__ */ m("span", { className: M.freightOption__value, children: t }),
1906
1972
  /* @__PURE__ */ m("span", { className: M.freightOption__title, children: /* @__PURE__ */ m(re.Root, { children: /* @__PURE__ */ S(re.DivWrapper, { className: M.footer__item, children: [
1907
1973
  /* @__PURE__ */ m("span", { className: M.freightOption__title_item, children: e }),
1908
1974
  r && /* @__PURE__ */ m("span", { className: M.freightOption__paragraph, children: r })
1909
1975
  ] }) }) })
1910
- ] }) }), ma = ({ children: t }) => /* @__PURE__ */ m("div", { className: M.freightContainer, children: t }), ha = ({ children: t }) => /* @__PURE__ */ m("div", { className: M.freightGrid, children: t }), _a = ({ children: t }) => /* @__PURE__ */ m("div", { className: M.postalCodeContainer, children: t }), hr = ({
1976
+ ] }) }), wa = ({ children: t }) => /* @__PURE__ */ m("div", { className: M.freightContainer, children: t }), Ea = ({ children: t }) => /* @__PURE__ */ m("div", { className: M.freightGrid, children: t }), Ra = ({ children: t }) => /* @__PURE__ */ m("div", { className: M.postalCodeContainer, children: t }), _r = ({
1911
1977
  message: t,
1912
1978
  seller: e = "",
1913
1979
  size: r = "small",
@@ -1917,7 +1983,7 @@ const Ui = {
1917
1983
  {
1918
1984
  className: n ? M.deliveryStatusBarError : M.deliveryStatusBar,
1919
1985
  children: /* @__PURE__ */ S(
1920
- on,
1986
+ an,
1921
1987
  {
1922
1988
  title: t,
1923
1989
  className: n ? M.deliveryStatusBarError__tag : M.deliveryStatusBar__tag,
@@ -1930,10 +1996,10 @@ const Ui = {
1930
1996
  }
1931
1997
  )
1932
1998
  }
1933
- ), ga = (t) => {
1999
+ ), Na = (t) => {
1934
2000
  const e = parseInt(t, 10);
1935
2001
  return e === 1 ? `${e} dia` : `${e} dias`;
1936
- }, ya = (t) => {
2002
+ }, Oa = (t) => {
1937
2003
  var r, n, i;
1938
2004
  const e = [];
1939
2005
  return (i = (n = (r = t == null ? void 0 : t.logisticsInfo) == null ? void 0 : r[0]) == null ? void 0 : n.slas) == null || i.forEach((o) => {
@@ -1944,7 +2010,7 @@ const Ui = {
1944
2010
  shippingEstimate: o.shippingEstimate
1945
2011
  });
1946
2012
  }), e;
1947
- }, va = ({
2013
+ }, Ta = ({
1948
2014
  component: t,
1949
2015
  parent: e,
1950
2016
  top: r,
@@ -1993,7 +2059,7 @@ const Ui = {
1993
2059
  parent: e
1994
2060
  }
1995
2061
  ) });
1996
- }, ba = ({
2062
+ }, Sa = ({
1997
2063
  onUpdateFreightItems: t,
1998
2064
  sellerId: e,
1999
2065
  size: r,
@@ -2005,15 +2071,15 @@ const Ui = {
2005
2071
  freightConfig: c,
2006
2072
  toolTipZIndex: u
2007
2073
  }) => {
2008
- var q, R, O, D;
2009
- const d = Ae(), f = Ae((N) => N.shipping), [l, h] = W(), [g, p] = W(!1), [_, y] = W(!1), [w, I] = W(!1), b = (R = (q = d.shippingData) == null ? void 0 : q.address) == null ? void 0 : R.postalCode, v = !(l != null && l.length) && b ? b : l, P = G(null), C = async (N) => {
2074
+ var j, R, O, D;
2075
+ const d = Re(), f = Re((N) => N.shipping), [l, h] = B(), [g, p] = B(!1), [_, y] = B(!1), [w, I] = B(!1), b = (R = (j = d.shippingData) == null ? void 0 : j.address) == null ? void 0 : R.postalCode, v = !(l != null && l.length) && b ? b : l, P = G(null), C = async (N) => {
2010
2076
  const k = N.target.value.replace(/\D/g, "").slice(0, 8);
2011
2077
  k.length > 5 ? h(k.replace(/^(\d{5})(\d{1,3})/, "$1-$2")) : h(k);
2012
2078
  }, E = async (N) => {
2013
- const j = N.target.value.replace(/\D/g, "");
2079
+ const q = N.target.value.replace(/\D/g, "");
2014
2080
  try {
2015
- if ((await ur.get(
2016
- `https://viacep.com.br/ws/${j}/json/`
2081
+ if ((await pr.get(
2082
+ `https://viacep.com.br/ws/${q}/json/`
2017
2083
  )).data.erro) {
2018
2084
  o && o(c.messages.cep_not_found), a(!1), y(!0);
2019
2085
  return;
@@ -2025,12 +2091,12 @@ const Ui = {
2025
2091
  }, T = async () => {
2026
2092
  p(!0);
2027
2093
  try {
2028
- const N = await ur.post("/api/checkout/simulation", {
2094
+ const N = await pr.post("/api/checkout/simulation", {
2029
2095
  items: [{ id: n, quantity: i, seller: e }],
2030
2096
  country: "BRA",
2031
2097
  postalCode: v
2032
2098
  });
2033
- t(ya(N.data));
2099
+ t(Oa(N.data));
2034
2100
  } catch (N) {
2035
2101
  console.error("Erro ao atualizar o documento:", N);
2036
2102
  } finally {
@@ -2049,7 +2115,7 @@ const Ui = {
2049
2115
  };
2050
2116
  return /* @__PURE__ */ S("div", { ref: P, style: { position: "relative" }, children: [
2051
2117
  !n && w ? /* @__PURE__ */ m(
2052
- va,
2118
+ Ta,
2053
2119
  {
2054
2120
  component: s,
2055
2121
  isOpen: w,
@@ -2059,12 +2125,12 @@ const Ui = {
2059
2125
  }
2060
2126
  ) : /* @__PURE__ */ m(_e, {}),
2061
2127
  /* @__PURE__ */ m("div", { style: { position: "relative" }, children: /* @__PURE__ */ m(
2062
- cr.Structure,
2128
+ dr.Structure,
2063
2129
  {
2064
2130
  title: "structure",
2065
2131
  style: { width: "100%" },
2066
2132
  input: /* @__PURE__ */ m(
2067
- cr.Input,
2133
+ dr.Input,
2068
2134
  {
2069
2135
  defaultValue: (D = (O = d.shippingData) == null ? void 0 : O.address) == null ? void 0 : D.postalCode,
2070
2136
  label: c.messages.text_input_label,
@@ -2082,22 +2148,22 @@ const Ui = {
2082
2148
  feedback: _ ? "error" : "none"
2083
2149
  }
2084
2150
  ),
2085
- right: /* @__PURE__ */ m(Je, { onClick: L, size: r, title: "button", children: g ? /* @__PURE__ */ m(bo, { size: "small", indicatorColor: "#ffffff" }) : c.messages.text_input_btn })
2151
+ right: /* @__PURE__ */ m(Je, { onClick: L, size: r, title: "button", children: g ? /* @__PURE__ */ m(Mo, { size: "small", indicatorColor: "#ffffff" }) : c.messages.text_input_btn })
2086
2152
  }
2087
2153
  ) })
2088
2154
  ] });
2089
2155
  };
2090
- function er(t) {
2156
+ function nr(t) {
2091
2157
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
2092
2158
  }
2093
- var Bt = { exports: {} }, ae = {};
2094
- ae._ = ae._interop_require_default = Pa;
2095
- function Pa(t) {
2159
+ var Gt = { exports: {} }, ae = {};
2160
+ ae._ = ae._interop_require_default = La;
2161
+ function La(t) {
2096
2162
  return t && t.__esModule ? t : { default: t };
2097
2163
  }
2098
- var Fe = { exports: {} }, pt = {}, _r;
2099
- function zn() {
2100
- return _r || (_r = 1, function(t) {
2164
+ var Fe = { exports: {} }, pt = {}, gr;
2165
+ function eo() {
2166
+ return gr || (gr = 1, function(t) {
2101
2167
  Object.defineProperty(t, "__esModule", {
2102
2168
  value: !0
2103
2169
  });
@@ -2147,18 +2213,18 @@ function zn() {
2147
2213
  }(pt)), pt;
2148
2214
  }
2149
2215
  var mt = {}, tt = {};
2150
- function Fn(t) {
2216
+ function to(t) {
2151
2217
  if (typeof WeakMap != "function") return null;
2152
2218
  var e = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
2153
- return (Fn = function(n) {
2219
+ return (to = function(n) {
2154
2220
  return n ? r : e;
2155
2221
  })(t);
2156
2222
  }
2157
- tt._ = tt._interop_require_wildcard = Ca;
2158
- function Ca(t, e) {
2223
+ tt._ = tt._interop_require_wildcard = Da;
2224
+ function Da(t, e) {
2159
2225
  if (!e && t && t.__esModule) return t;
2160
2226
  if (t === null || typeof t != "object" && typeof t != "function") return { default: t };
2161
- var r = Fn(e);
2227
+ var r = to(e);
2162
2228
  if (r && r.has(t)) return r.get(t);
2163
2229
  var n = {}, i = Object.defineProperty && Object.getOwnPropertyDescriptor;
2164
2230
  for (var o in t)
@@ -2168,9 +2234,9 @@ function Ca(t, e) {
2168
2234
  }
2169
2235
  return n.default = t, r && r.set(t, n), n;
2170
2236
  }
2171
- var gr;
2172
- function Un() {
2173
- return gr || (gr = 1, function(t) {
2237
+ var yr;
2238
+ function ro() {
2239
+ return yr || (yr = 1, function(t) {
2174
2240
  Object.defineProperty(t, "__esModule", {
2175
2241
  value: !0
2176
2242
  });
@@ -2191,7 +2257,7 @@ function Un() {
2191
2257
  return s;
2192
2258
  }
2193
2259
  });
2194
- const n = /* @__PURE__ */ tt._(zn()), i = /https?|ftp|gopher|file/;
2260
+ const n = /* @__PURE__ */ tt._(eo()), i = /https?|ftp|gopher|file/;
2195
2261
  function o(c) {
2196
2262
  let { auth: u, hostname: d } = c, f = c.protocol || "", l = c.pathname || "", h = c.hash || "", g = c.query || "", p = !1;
2197
2263
  u = u ? encodeURIComponent(u).replace(/%3A/i, ":") + "@" : "", c.host ? p = u + c.host : d && (p = u + (~d.indexOf(":") ? "[" + d + "]" : d), c.port && (p += ":" + c.port)), g && typeof g == "object" && (g = String(n.urlQueryToSearchParams(g)));
@@ -2219,9 +2285,9 @@ function Un() {
2219
2285
  }
2220
2286
  }(mt)), mt;
2221
2287
  }
2222
- var ht = {}, yr;
2223
- function Ia() {
2224
- return yr || (yr = 1, function(t) {
2288
+ var ht = {}, vr;
2289
+ function Aa() {
2290
+ return vr || (vr = 1, function(t) {
2225
2291
  Object.defineProperty(t, "__esModule", {
2226
2292
  value: !0
2227
2293
  }), Object.defineProperty(t, "omit", {
@@ -2238,9 +2304,9 @@ function Ia() {
2238
2304
  }
2239
2305
  }(ht)), ht;
2240
2306
  }
2241
- var _t = {}, vr;
2307
+ var _t = {}, br;
2242
2308
  function it() {
2243
- return vr || (vr = 1, function(t) {
2309
+ return br || (br = 1, function(t) {
2244
2310
  Object.defineProperty(t, "__esModule", {
2245
2311
  value: !0
2246
2312
  });
@@ -2392,9 +2458,9 @@ function it() {
2392
2458
  }
2393
2459
  }(_t)), _t;
2394
2460
  }
2395
- var Ue = { exports: {} }, gt = {}, br;
2396
- function Hn() {
2397
- return br || (br = 1, function(t) {
2461
+ var Ue = { exports: {} }, gt = {}, Pr;
2462
+ function no() {
2463
+ return Pr || (Pr = 1, function(t) {
2398
2464
  Object.defineProperty(t, "__esModule", {
2399
2465
  value: !0
2400
2466
  }), Object.defineProperty(t, "removeTrailingSlash", {
@@ -2408,9 +2474,9 @@ function Hn() {
2408
2474
  }
2409
2475
  }(gt)), gt;
2410
2476
  }
2411
- var yt = {}, Pr;
2412
- function tr() {
2413
- return Pr || (Pr = 1, function(t) {
2477
+ var yt = {}, Cr;
2478
+ function or() {
2479
+ return Cr || (Cr = 1, function(t) {
2414
2480
  Object.defineProperty(t, "__esModule", {
2415
2481
  value: !0
2416
2482
  }), Object.defineProperty(t, "parsePath", {
@@ -2433,9 +2499,9 @@ function tr() {
2433
2499
  }
2434
2500
  }(yt)), yt;
2435
2501
  }
2436
- var Cr;
2502
+ var Ir;
2437
2503
  function at() {
2438
- return Cr || (Cr = 1, function(t, e) {
2504
+ return Ir || (Ir = 1, function(t, e) {
2439
2505
  Object.defineProperty(e, "__esModule", {
2440
2506
  value: !0
2441
2507
  }), Object.defineProperty(e, "normalizePathTrailingSlash", {
@@ -2444,7 +2510,7 @@ function at() {
2444
2510
  return i;
2445
2511
  }
2446
2512
  });
2447
- const r = Hn(), n = tr(), i = (o) => {
2513
+ const r = no(), n = or(), i = (o) => {
2448
2514
  if (!o.startsWith("/") || process.env.__NEXT_MANUAL_TRAILING_SLASH)
2449
2515
  return o;
2450
2516
  const { pathname: a, query: s, hash: c } = (0, n.parsePath)(o);
@@ -2453,9 +2519,9 @@ function at() {
2453
2519
  (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
2454
2520
  }(Ue, Ue.exports)), Ue.exports;
2455
2521
  }
2456
- var vt = {}, He = { exports: {} }, bt = {}, Ir;
2457
- function $n() {
2458
- return Ir || (Ir = 1, function(t) {
2522
+ var vt = {}, He = { exports: {} }, bt = {}, wr;
2523
+ function oo() {
2524
+ return wr || (wr = 1, function(t) {
2459
2525
  Object.defineProperty(t, "__esModule", {
2460
2526
  value: !0
2461
2527
  }), Object.defineProperty(t, "pathHasPrefix", {
@@ -2464,7 +2530,7 @@ function $n() {
2464
2530
  return r;
2465
2531
  }
2466
2532
  });
2467
- const e = tr();
2533
+ const e = or();
2468
2534
  function r(n, i) {
2469
2535
  if (typeof n != "string")
2470
2536
  return !1;
@@ -2473,9 +2539,9 @@ function $n() {
2473
2539
  }
2474
2540
  }(bt)), bt;
2475
2541
  }
2476
- var wr;
2477
- function wa() {
2478
- return wr || (wr = 1, function(t, e) {
2542
+ var Er;
2543
+ function xa() {
2544
+ return Er || (Er = 1, function(t, e) {
2479
2545
  Object.defineProperty(e, "__esModule", {
2480
2546
  value: !0
2481
2547
  }), Object.defineProperty(e, "hasBasePath", {
@@ -2484,16 +2550,16 @@ function wa() {
2484
2550
  return i;
2485
2551
  }
2486
2552
  });
2487
- const r = $n(), n = process.env.__NEXT_ROUTER_BASEPATH || "";
2553
+ const r = oo(), n = process.env.__NEXT_ROUTER_BASEPATH || "";
2488
2554
  function i(o) {
2489
2555
  return (0, r.pathHasPrefix)(o, n);
2490
2556
  }
2491
2557
  (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
2492
2558
  }(He, He.exports)), He.exports;
2493
2559
  }
2494
- var Er;
2495
- function Vn() {
2496
- return Er || (Er = 1, function(t) {
2560
+ var Rr;
2561
+ function io() {
2562
+ return Rr || (Rr = 1, function(t) {
2497
2563
  Object.defineProperty(t, "__esModule", {
2498
2564
  value: !0
2499
2565
  }), Object.defineProperty(t, "isLocalURL", {
@@ -2502,7 +2568,7 @@ function Vn() {
2502
2568
  return n;
2503
2569
  }
2504
2570
  });
2505
- const e = it(), r = wa();
2571
+ const e = it(), r = xa();
2506
2572
  function n(i) {
2507
2573
  if (!(0, e.isAbsoluteUrl)(i)) return !0;
2508
2574
  try {
@@ -2514,9 +2580,9 @@ function Vn() {
2514
2580
  }
2515
2581
  }(vt)), vt;
2516
2582
  }
2517
- var Pt = {}, Ct = {}, Rr;
2518
- function Ea() {
2519
- return Rr || (Rr = 1, function(t) {
2583
+ var Pt = {}, Ct = {}, Nr;
2584
+ function Ma() {
2585
+ return Nr || (Nr = 1, function(t) {
2520
2586
  Object.defineProperty(t, "__esModule", {
2521
2587
  value: !0
2522
2588
  }), Object.defineProperty(t, "getSortedRoutes", {
@@ -2601,9 +2667,9 @@ function Ea() {
2601
2667
  }
2602
2668
  }(Ct)), Ct;
2603
2669
  }
2604
- var It = {}, Nr;
2605
- function Ra() {
2606
- return Nr || (Nr = 1, function(t) {
2670
+ var It = {}, Or;
2671
+ function ka() {
2672
+ return Or || (Or = 1, function(t) {
2607
2673
  Object.defineProperty(t, "__esModule", {
2608
2674
  value: !0
2609
2675
  }), Object.defineProperty(t, "isDynamicRoute", {
@@ -2618,9 +2684,9 @@ function Ra() {
2618
2684
  }
2619
2685
  }(It)), It;
2620
2686
  }
2621
- var Or;
2622
- function Na() {
2623
- return Or || (Or = 1, function(t) {
2687
+ var Tr;
2688
+ function qa() {
2689
+ return Tr || (Tr = 1, function(t) {
2624
2690
  Object.defineProperty(t, "__esModule", {
2625
2691
  value: !0
2626
2692
  });
@@ -2638,12 +2704,12 @@ function Na() {
2638
2704
  return n.isDynamicRoute;
2639
2705
  }
2640
2706
  });
2641
- const r = Ea(), n = Ra();
2707
+ const r = Ma(), n = ka();
2642
2708
  }(Pt)), Pt;
2643
2709
  }
2644
- var wt = {}, Et = {}, Tr;
2645
- function Oa() {
2646
- return Tr || (Tr = 1, function(t) {
2710
+ var wt = {}, Et = {}, Sr;
2711
+ function ja() {
2712
+ return Sr || (Sr = 1, function(t) {
2647
2713
  Object.defineProperty(t, "__esModule", {
2648
2714
  value: !0
2649
2715
  }), Object.defineProperty(t, "getRouteMatcher", {
@@ -2676,9 +2742,9 @@ function Oa() {
2676
2742
  }
2677
2743
  }(Et)), Et;
2678
2744
  }
2679
- var Rt = {}, Nt = {}, Ot = {}, Tt = {}, Sr;
2680
- function Ta() {
2681
- return Sr || (Sr = 1, function(t) {
2745
+ var Rt = {}, Nt = {}, Ot = {}, Tt = {}, Lr;
2746
+ function za() {
2747
+ return Lr || (Lr = 1, function(t) {
2682
2748
  Object.defineProperty(t, "__esModule", {
2683
2749
  value: !0
2684
2750
  }), Object.defineProperty(t, "ensureLeadingSlash", {
@@ -2692,9 +2758,9 @@ function Ta() {
2692
2758
  }
2693
2759
  }(Tt)), Tt;
2694
2760
  }
2695
- var St = {}, Lr;
2696
- function Sa() {
2697
- return Lr || (Lr = 1, function(t) {
2761
+ var St = {}, Dr;
2762
+ function Fa() {
2763
+ return Dr || (Dr = 1, function(t) {
2698
2764
  Object.defineProperty(t, "__esModule", {
2699
2765
  value: !0
2700
2766
  }), Object.defineProperty(t, "isGroupSegment", {
@@ -2708,9 +2774,9 @@ function Sa() {
2708
2774
  }
2709
2775
  }(St)), St;
2710
2776
  }
2711
- var Dr;
2712
- function La() {
2713
- return Dr || (Dr = 1, function(t) {
2777
+ var Ar;
2778
+ function Ua() {
2779
+ return Ar || (Ar = 1, function(t) {
2714
2780
  Object.defineProperty(t, "__esModule", {
2715
2781
  value: !0
2716
2782
  });
@@ -2728,7 +2794,7 @@ function La() {
2728
2794
  return o;
2729
2795
  }
2730
2796
  });
2731
- const r = Ta(), n = Sa();
2797
+ const r = za(), n = Fa();
2732
2798
  function i(a) {
2733
2799
  return (0, r.ensureLeadingSlash)(a.split("/").reduce((s, c, u, d) => !c || (0, n.isGroupSegment)(c) || c[0] === "@" || (c === "page" || c === "route") && u === d.length - 1 ? s : s + "/" + c, ""));
2734
2800
  }
@@ -2741,9 +2807,9 @@ function La() {
2741
2807
  }
2742
2808
  }(Ot)), Ot;
2743
2809
  }
2744
- var Ar;
2745
- function Da() {
2746
- return Ar || (Ar = 1, function(t) {
2810
+ var xr;
2811
+ function Ha() {
2812
+ return xr || (xr = 1, function(t) {
2747
2813
  Object.defineProperty(t, "__esModule", {
2748
2814
  value: !0
2749
2815
  });
@@ -2764,7 +2830,7 @@ function Da() {
2764
2830
  return o;
2765
2831
  }
2766
2832
  });
2767
- const r = La(), n = [
2833
+ const r = Ua(), n = [
2768
2834
  "(..)(..)",
2769
2835
  "(.)",
2770
2836
  "(..)",
@@ -2810,9 +2876,9 @@ function Da() {
2810
2876
  }
2811
2877
  }(Nt)), Nt;
2812
2878
  }
2813
- var Lt = {}, xr;
2814
- function Aa() {
2815
- return xr || (xr = 1, function(t) {
2879
+ var Lt = {}, Mr;
2880
+ function $a() {
2881
+ return Mr || (Mr = 1, function(t) {
2816
2882
  Object.defineProperty(t, "__esModule", {
2817
2883
  value: !0
2818
2884
  }), Object.defineProperty(t, "escapeStringRegexp", {
@@ -2827,9 +2893,9 @@ function Aa() {
2827
2893
  }
2828
2894
  }(Lt)), Lt;
2829
2895
  }
2830
- var Mr;
2831
- function xa() {
2832
- return Mr || (Mr = 1, function(t) {
2896
+ var kr;
2897
+ function Va() {
2898
+ return kr || (kr = 1, function(t) {
2833
2899
  Object.defineProperty(t, "__esModule", {
2834
2900
  value: !0
2835
2901
  });
@@ -2850,7 +2916,7 @@ function xa() {
2850
2916
  return g;
2851
2917
  }
2852
2918
  });
2853
- const r = Da(), n = Aa(), i = Hn(), o = "nxtP", a = "nxtI";
2919
+ const r = Ha(), n = $a(), i = no(), o = "nxtP", a = "nxtI";
2854
2920
  function s(p) {
2855
2921
  const _ = p.startsWith("[") && p.endsWith("]");
2856
2922
  _ && (p = p.slice(1, -1));
@@ -2953,9 +3019,9 @@ function xa() {
2953
3019
  }
2954
3020
  }(Rt)), Rt;
2955
3021
  }
2956
- var kr;
2957
- function Ma() {
2958
- return kr || (kr = 1, function(t) {
3022
+ var qr;
3023
+ function Wa() {
3024
+ return qr || (qr = 1, function(t) {
2959
3025
  Object.defineProperty(t, "__esModule", {
2960
3026
  value: !0
2961
3027
  }), Object.defineProperty(t, "interpolateAs", {
@@ -2964,7 +3030,7 @@ function Ma() {
2964
3030
  return n;
2965
3031
  }
2966
3032
  });
2967
- const e = Oa(), r = xa();
3033
+ const e = ja(), r = Va();
2968
3034
  function n(i, o, a) {
2969
3035
  let s = "";
2970
3036
  const c = (0, r.getRouteRegex)(i), u = c.groups, d = (
@@ -2997,7 +3063,7 @@ function Ma() {
2997
3063
  }(wt)), wt;
2998
3064
  }
2999
3065
  var jr;
3000
- function ka() {
3066
+ function Ba() {
3001
3067
  return jr || (jr = 1, function(t, e) {
3002
3068
  Object.defineProperty(e, "__esModule", {
3003
3069
  value: !0
@@ -3007,7 +3073,7 @@ function ka() {
3007
3073
  return d;
3008
3074
  }
3009
3075
  });
3010
- const r = zn(), n = Un(), i = Ia(), o = it(), a = at(), s = Vn(), c = Na(), u = Ma();
3076
+ const r = eo(), n = ro(), i = Aa(), o = it(), a = at(), s = io(), c = qa(), u = Wa();
3011
3077
  function d(f, l, h) {
3012
3078
  let g, p = typeof l == "string" ? l : (0, n.formatWithValidation)(l);
3013
3079
  const _ = p.match(/^[a-zA-Z]{1,}:\/\//), y = _ ? p.slice(_[0].length) : p;
@@ -3051,9 +3117,9 @@ function ka() {
3051
3117
  (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
3052
3118
  }(Fe, Fe.exports)), Fe.exports;
3053
3119
  }
3054
- var $e = { exports: {} }, Dt = {}, At = {}, qr;
3055
- function Bn() {
3056
- return qr || (qr = 1, function(t) {
3120
+ var $e = { exports: {} }, Dt = {}, At = {}, zr;
3121
+ function ao() {
3122
+ return zr || (zr = 1, function(t) {
3057
3123
  Object.defineProperty(t, "__esModule", {
3058
3124
  value: !0
3059
3125
  }), Object.defineProperty(t, "addPathPrefix", {
@@ -3062,7 +3128,7 @@ function Bn() {
3062
3128
  return r;
3063
3129
  }
3064
3130
  });
3065
- const e = tr();
3131
+ const e = or();
3066
3132
  function r(n, i) {
3067
3133
  if (!n.startsWith("/") || !i)
3068
3134
  return n;
@@ -3071,9 +3137,9 @@ function Bn() {
3071
3137
  }
3072
3138
  }(At)), At;
3073
3139
  }
3074
- var zr;
3075
- function ja() {
3076
- return zr || (zr = 1, function(t) {
3140
+ var Fr;
3141
+ function Ga() {
3142
+ return Fr || (Fr = 1, function(t) {
3077
3143
  Object.defineProperty(t, "__esModule", {
3078
3144
  value: !0
3079
3145
  }), Object.defineProperty(t, "addLocale", {
@@ -3082,7 +3148,7 @@ function ja() {
3082
3148
  return n;
3083
3149
  }
3084
3150
  });
3085
- const e = Bn(), r = $n();
3151
+ const e = ao(), r = oo();
3086
3152
  function n(i, o, a, s) {
3087
3153
  if (!o || o === a) return i;
3088
3154
  const c = i.toLowerCase();
@@ -3090,9 +3156,9 @@ function ja() {
3090
3156
  }
3091
3157
  }(Dt)), Dt;
3092
3158
  }
3093
- var Fr;
3094
- function qa() {
3095
- return Fr || (Fr = 1, function(t, e) {
3159
+ var Ur;
3160
+ function Ka() {
3161
+ return Ur || (Ur = 1, function(t, e) {
3096
3162
  Object.defineProperty(e, "__esModule", {
3097
3163
  value: !0
3098
3164
  }), Object.defineProperty(e, "addLocale", {
@@ -3104,14 +3170,14 @@ function qa() {
3104
3170
  const r = at(), n = function(i) {
3105
3171
  for (var o = arguments.length, a = new Array(o > 1 ? o - 1 : 0), s = 1; s < o; s++)
3106
3172
  a[s - 1] = arguments[s];
3107
- return process.env.__NEXT_I18N_SUPPORT ? (0, r.normalizePathTrailingSlash)(ja().addLocale(i, ...a)) : i;
3173
+ return process.env.__NEXT_I18N_SUPPORT ? (0, r.normalizePathTrailingSlash)(Ga().addLocale(i, ...a)) : i;
3108
3174
  };
3109
3175
  (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
3110
3176
  }($e, $e.exports)), $e.exports;
3111
3177
  }
3112
- var xt = {}, Ur;
3113
- function za() {
3114
- return Ur || (Ur = 1, function(t) {
3178
+ var xt = {}, Hr;
3179
+ function Qa() {
3180
+ return Hr || (Hr = 1, function(t) {
3115
3181
  Object.defineProperty(t, "__esModule", {
3116
3182
  value: !0
3117
3183
  }), Object.defineProperty(t, "RouterContext", {
@@ -3124,9 +3190,9 @@ function za() {
3124
3190
  process.env.NODE_ENV !== "production" && (n.displayName = "RouterContext");
3125
3191
  }(xt)), xt;
3126
3192
  }
3127
- var Mt = {}, Hr;
3128
- function Fa() {
3129
- return Hr || (Hr = 1, function(t) {
3193
+ var Mt = {}, $r;
3194
+ function Xa() {
3195
+ return $r || ($r = 1, function(t) {
3130
3196
  "use client";
3131
3197
  Object.defineProperty(t, "__esModule", {
3132
3198
  value: !0
@@ -3163,9 +3229,9 @@ function Fa() {
3163
3229
  process.env.NODE_ENV !== "production" && (o.displayName = "AppRouterContext", a.displayName = "LayoutRouterContext", s.displayName = "GlobalLayoutRouterContext", c.displayName = "TemplateContext");
3164
3230
  }(Mt)), Mt;
3165
3231
  }
3166
- var Ve = { exports: {} }, Be = { exports: {} }, $r;
3167
- function Wn() {
3168
- return $r || ($r = 1, function(t, e) {
3232
+ var Ve = { exports: {} }, We = { exports: {} }, Vr;
3233
+ function so() {
3234
+ return Vr || (Vr = 1, function(t, e) {
3169
3235
  Object.defineProperty(e, "__esModule", {
3170
3236
  value: !0
3171
3237
  });
@@ -3197,11 +3263,11 @@ function Wn() {
3197
3263
  return clearTimeout(o);
3198
3264
  };
3199
3265
  (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
3200
- }(Be, Be.exports)), Be.exports;
3266
+ }(We, We.exports)), We.exports;
3201
3267
  }
3202
- var Vr;
3203
- function Ua() {
3204
- return Vr || (Vr = 1, function(t, e) {
3268
+ var Wr;
3269
+ function Za() {
3270
+ return Wr || (Wr = 1, function(t, e) {
3205
3271
  Object.defineProperty(e, "__esModule", {
3206
3272
  value: !0
3207
3273
  }), Object.defineProperty(e, "useIntersection", {
@@ -3210,7 +3276,7 @@ function Ua() {
3210
3276
  return u;
3211
3277
  }
3212
3278
  });
3213
- const r = de, n = Wn(), i = typeof IntersectionObserver == "function", o = /* @__PURE__ */ new Map(), a = [];
3279
+ const r = de, n = so(), i = typeof IntersectionObserver == "function", o = /* @__PURE__ */ new Map(), a = [];
3214
3280
  function s(d) {
3215
3281
  const f = {
3216
3282
  root: d.root || null,
@@ -3278,8 +3344,8 @@ function Ua() {
3278
3344
  (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
3279
3345
  }(Ve, Ve.exports)), Ve.exports;
3280
3346
  }
3281
- var We = { exports: {} }, Ge = { exports: {} }, kt = {}, Br;
3282
- function Ha() {
3347
+ var Be = { exports: {} }, Ge = { exports: {} }, kt = {}, Br;
3348
+ function Ya() {
3283
3349
  return Br || (Br = 1, function(t) {
3284
3350
  Object.defineProperty(t, "__esModule", {
3285
3351
  value: !0
@@ -3299,9 +3365,9 @@ function Ha() {
3299
3365
  }
3300
3366
  }(kt)), kt;
3301
3367
  }
3302
- var Wr;
3303
- function $a() {
3304
- return Wr || (Wr = 1, function(t, e) {
3368
+ var Gr;
3369
+ function Ja() {
3370
+ return Gr || (Gr = 1, function(t, e) {
3305
3371
  Object.defineProperty(e, "__esModule", {
3306
3372
  value: !0
3307
3373
  }), Object.defineProperty(e, "normalizeLocalePath", {
@@ -3310,16 +3376,16 @@ function $a() {
3310
3376
  return r;
3311
3377
  }
3312
3378
  });
3313
- const r = (n, i) => process.env.__NEXT_I18N_SUPPORT ? Ha().normalizeLocalePath(n, i) : {
3379
+ const r = (n, i) => process.env.__NEXT_I18N_SUPPORT ? Ya().normalizeLocalePath(n, i) : {
3314
3380
  pathname: n,
3315
3381
  detectedLocale: void 0
3316
3382
  };
3317
3383
  (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
3318
3384
  }(Ge, Ge.exports)), Ge.exports;
3319
3385
  }
3320
- var Ke = { exports: {} }, jt = {}, Gr;
3321
- function Va() {
3322
- return Gr || (Gr = 1, function(t) {
3386
+ var Ke = { exports: {} }, qt = {}, Kr;
3387
+ function es() {
3388
+ return Kr || (Kr = 1, function(t) {
3323
3389
  Object.defineProperty(t, "__esModule", {
3324
3390
  value: !0
3325
3391
  }), Object.defineProperty(t, "detectDomainLocale", {
@@ -3339,11 +3405,11 @@ function Va() {
3339
3405
  }
3340
3406
  }
3341
3407
  }
3342
- }(jt)), jt;
3408
+ }(qt)), qt;
3343
3409
  }
3344
- var Kr;
3345
- function Ba() {
3346
- return Kr || (Kr = 1, function(t, e) {
3410
+ var Qr;
3411
+ function ts() {
3412
+ return Qr || (Qr = 1, function(t, e) {
3347
3413
  Object.defineProperty(e, "__esModule", {
3348
3414
  value: !0
3349
3415
  }), Object.defineProperty(e, "detectDomainLocale", {
@@ -3356,14 +3422,14 @@ function Ba() {
3356
3422
  for (var n = arguments.length, i = new Array(n), o = 0; o < n; o++)
3357
3423
  i[o] = arguments[o];
3358
3424
  if (process.env.__NEXT_I18N_SUPPORT)
3359
- return Va().detectDomainLocale(...i);
3425
+ return es().detectDomainLocale(...i);
3360
3426
  };
3361
3427
  (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
3362
3428
  }(Ke, Ke.exports)), Ke.exports;
3363
3429
  }
3364
- var Qr;
3365
- function Wa() {
3366
- return Qr || (Qr = 1, function(t, e) {
3430
+ var Xr;
3431
+ function rs() {
3432
+ return Xr || (Xr = 1, function(t, e) {
3367
3433
  Object.defineProperty(e, "__esModule", {
3368
3434
  value: !0
3369
3435
  }), Object.defineProperty(e, "getDomainLocale", {
@@ -3375,7 +3441,7 @@ function Wa() {
3375
3441
  const r = at(), n = process.env.__NEXT_ROUTER_BASEPATH || "";
3376
3442
  function i(o, a, s, c) {
3377
3443
  if (process.env.__NEXT_I18N_SUPPORT) {
3378
- const u = $a().normalizeLocalePath, d = Ba().detectDomainLocale, f = a || u(o, s).detectedLocale, l = d(c, void 0, f);
3444
+ const u = Ja().normalizeLocalePath, d = ts().detectDomainLocale, f = a || u(o, s).detectedLocale, l = d(c, void 0, f);
3379
3445
  if (l) {
3380
3446
  const h = "http" + (l.http ? "" : "s") + "://", g = f === l.defaultLocale ? "" : "/" + f;
3381
3447
  return "" + h + l.domain + (0, r.normalizePathTrailingSlash)("" + n + g + o);
@@ -3385,11 +3451,11 @@ function Wa() {
3385
3451
  return !1;
3386
3452
  }
3387
3453
  (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
3388
- }(We, We.exports)), We.exports;
3454
+ }(Be, Be.exports)), Be.exports;
3389
3455
  }
3390
- var Qe = { exports: {} }, Xr;
3391
- function Ga() {
3392
- return Xr || (Xr = 1, function(t, e) {
3456
+ var Qe = { exports: {} }, Zr;
3457
+ function ns() {
3458
+ return Zr || (Zr = 1, function(t, e) {
3393
3459
  Object.defineProperty(e, "__esModule", {
3394
3460
  value: !0
3395
3461
  }), Object.defineProperty(e, "addBasePath", {
@@ -3398,7 +3464,7 @@ function Ga() {
3398
3464
  return o;
3399
3465
  }
3400
3466
  });
3401
- const r = Bn(), n = at(), i = process.env.__NEXT_ROUTER_BASEPATH || "";
3467
+ const r = ao(), n = at(), i = process.env.__NEXT_ROUTER_BASEPATH || "";
3402
3468
  function o(a, s) {
3403
3469
  return (0, n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !s ? a : (0, r.addPathPrefix)(a, i));
3404
3470
  }
@@ -3406,7 +3472,7 @@ function Ga() {
3406
3472
  }(Qe, Qe.exports)), Qe.exports;
3407
3473
  }
3408
3474
  var Xe = { exports: {} }, Yr;
3409
- function Ka() {
3475
+ function os() {
3410
3476
  return Yr || (Yr = 1, function(t, e) {
3411
3477
  Object.defineProperty(e, "__esModule", {
3412
3478
  value: !0
@@ -3460,9 +3526,9 @@ function Ka() {
3460
3526
  return v;
3461
3527
  }
3462
3528
  });
3463
- const n = /* @__PURE__ */ ae._(de), i = ka(), o = Vn(), a = Un(), s = it(), c = qa(), u = za(), d = Fa(), f = Ua(), l = Wa(), h = Ga(), g = Ka(), p = /* @__PURE__ */ new Set();
3464
- function _(P, C, E, T, L, q) {
3465
- if (typeof window > "u" || !q && !(0, o.isLocalURL)(C))
3529
+ const n = /* @__PURE__ */ ae._(de), i = Ba(), o = io(), a = ro(), s = it(), c = Ka(), u = Qa(), d = Xa(), f = Za(), l = rs(), h = ns(), g = os(), p = /* @__PURE__ */ new Set();
3530
+ function _(P, C, E, T, L, j) {
3531
+ if (typeof window > "u" || !j && !(0, o.isLocalURL)(C))
3466
3532
  return;
3467
3533
  if (!T.bypassPrefetchedCheck) {
3468
3534
  const O = (
@@ -3473,7 +3539,7 @@ function Ka() {
3473
3539
  return;
3474
3540
  p.add(D);
3475
3541
  }
3476
- const R = q ? P.prefetch(C, L) : P.prefetch(C, E, T);
3542
+ const R = j ? P.prefetch(C, L) : P.prefetch(C, E, T);
3477
3543
  Promise.resolve(R).catch((O) => {
3478
3544
  if (process.env.NODE_ENV !== "production")
3479
3545
  throw O;
@@ -3484,16 +3550,16 @@ function Ka() {
3484
3550
  return E && E !== "_self" || P.metaKey || P.ctrlKey || P.shiftKey || P.altKey || // triggers resource download
3485
3551
  P.nativeEvent && P.nativeEvent.which === 2;
3486
3552
  }
3487
- function w(P, C, E, T, L, q, R, O, D, N) {
3488
- const { nodeName: j } = P.currentTarget;
3489
- if (j.toUpperCase() === "A" && (y(P) || // app-router supports external urls out of the box so it shouldn't short-circuit here as support for e.g. `replace` is added in the app-router.
3553
+ function w(P, C, E, T, L, j, R, O, D, N) {
3554
+ const { nodeName: q } = P.currentTarget;
3555
+ if (q.toUpperCase() === "A" && (y(P) || // app-router supports external urls out of the box so it shouldn't short-circuit here as support for e.g. `replace` is added in the app-router.
3490
3556
  !D && !(0, o.isLocalURL)(E)))
3491
3557
  return;
3492
3558
  P.preventDefault();
3493
3559
  const F = () => {
3494
3560
  const U = R ?? !0;
3495
3561
  "beforePopState" in C ? C[L ? "replace" : "push"](E, T, {
3496
- shallow: q,
3562
+ shallow: j,
3497
3563
  locale: O,
3498
3564
  scroll: U
3499
3565
  }) : C[L ? "replace" : "push"](T || E, {
@@ -3508,9 +3574,9 @@ function Ka() {
3508
3574
  }
3509
3575
  const v = /* @__PURE__ */ n.default.forwardRef(function(C, E) {
3510
3576
  let T;
3511
- const { href: L, as: q, children: R, prefetch: O = null, passHref: D, replace: N, shallow: j, scroll: k, locale: F, onClick: U, onMouseEnter: Q, onTouchStart: X, legacyBehavior: ne = !1, ...po } = C;
3577
+ const { href: L, as: j, children: R, prefetch: O = null, passHref: D, replace: N, shallow: q, scroll: k, locale: F, onClick: U, onMouseEnter: X, onTouchStart: Z, legacyBehavior: ne = !1, ...Oo } = C;
3512
3578
  T = R, ne && (typeof T == "string" || typeof T == "number") && (T = /* @__PURE__ */ n.default.createElement("a", null, T));
3513
- const H = n.default.useContext(u.RouterContext), mo = n.default.useContext(d.AppRouterContext), se = H ?? mo, ce = !H, Ne = O !== !1, ke = O === null ? g.PrefetchKind.AUTO : g.PrefetchKind.FULL;
3579
+ const H = n.default.useContext(u.RouterContext), To = n.default.useContext(d.AppRouterContext), se = H ?? To, ce = !H, Se = O !== !1, ke = O === null ? g.PrefetchKind.AUTO : g.PrefetchKind.FULL;
3514
3580
  if (process.env.NODE_ENV !== "production") {
3515
3581
  let A = function(x) {
3516
3582
  return new Error("Failed prop type: The prop `" + x.key + "` expects a " + x.expected + " in `<Link>`, but got `" + x.actual + "` instead." + (typeof window < "u" ? `
@@ -3567,10 +3633,10 @@ Open your browser's console to view the Component stack trace.` : ""));
3567
3633
  actual: ue
3568
3634
  });
3569
3635
  });
3570
- const sr = n.default.useRef(!1);
3571
- C.prefetch && !sr.current && !ce && (sr.current = !0, console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"));
3636
+ const ur = n.default.useRef(!1);
3637
+ C.prefetch && !ur.current && !ce && (ur.current = !0, console.warn("Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated"));
3572
3638
  }
3573
- if (process.env.NODE_ENV !== "production" && ce && !q) {
3639
+ if (process.env.NODE_ENV !== "production" && ce && !j) {
3574
3640
  let A;
3575
3641
  if (typeof L == "string" ? A = L : typeof L == "object" && typeof L.pathname == "string" && (A = L.pathname), A && A.split("/").some((Ie) => Ie.startsWith("[") && Ie.endsWith("]")))
3576
3642
  throw new Error("Dynamic href `" + A + "` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href");
@@ -3580,23 +3646,23 @@ Open your browser's console to view the Component stack trace.` : ""));
3580
3646
  const Ie = I(L);
3581
3647
  return {
3582
3648
  href: Ie,
3583
- as: q ? I(q) : Ie
3649
+ as: j ? I(j) : Ie
3584
3650
  };
3585
3651
  }
3586
- const [A, Oe] = (0, i.resolveHref)(H, L, !0);
3652
+ const [A, Le] = (0, i.resolveHref)(H, L, !0);
3587
3653
  return {
3588
3654
  href: A,
3589
- as: q ? (0, i.resolveHref)(H, q) : Oe || A
3655
+ as: j ? (0, i.resolveHref)(H, j) : Le || A
3590
3656
  };
3591
3657
  }, [
3592
3658
  H,
3593
3659
  L,
3594
- q
3595
- ]), rr = n.default.useRef(le), nr = n.default.useRef(Y);
3660
+ j
3661
+ ]), ir = n.default.useRef(le), ar = n.default.useRef(Y);
3596
3662
  let V;
3597
3663
  if (ne)
3598
3664
  if (process.env.NODE_ENV === "development") {
3599
- U && console.warn('"onClick" was passed to <Link> with `href` of `' + L + '` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'), Q && console.warn('"onMouseEnter" was passed to <Link> with `href` of `' + L + '` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');
3665
+ U && console.warn('"onClick" was passed to <Link> with `href` of `' + L + '` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'), X && console.warn('"onMouseEnter" was passed to <Link> with `href` of `' + L + '` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');
3600
3666
  try {
3601
3667
  V = n.default.Children.only(T);
3602
3668
  } catch {
@@ -3608,19 +3674,19 @@ Open your browser's console to view the Component stack trace.` : "")) : new Err
3608
3674
  else if (process.env.NODE_ENV === "development" && (T == null ? void 0 : T.type) === "a")
3609
3675
  throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
3610
3676
  Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);
3611
- const Ce = ne ? V && typeof V == "object" && V.ref : E, [or, ir, ar] = (0, f.useIntersection)({
3677
+ const Ce = ne ? V && typeof V == "object" && V.ref : E, [sr, cr, lr] = (0, f.useIntersection)({
3612
3678
  rootMargin: "200px"
3613
- }), ho = n.default.useCallback((A) => {
3614
- (nr.current !== Y || rr.current !== le) && (ar(), nr.current = Y, rr.current = le), or(A), Ce && (typeof Ce == "function" ? Ce(A) : typeof Ce == "object" && (Ce.current = A));
3679
+ }), So = n.default.useCallback((A) => {
3680
+ (ar.current !== Y || ir.current !== le) && (lr(), ar.current = Y, ir.current = le), sr(A), Ce && (typeof Ce == "function" ? Ce(A) : typeof Ce == "object" && (Ce.current = A));
3615
3681
  }, [
3616
3682
  Y,
3617
3683
  Ce,
3618
3684
  le,
3619
- ar,
3620
- or
3685
+ lr,
3686
+ sr
3621
3687
  ]);
3622
3688
  n.default.useEffect(() => {
3623
- process.env.NODE_ENV === "production" && se && (!ir || !Ne || _(se, le, Y, {
3689
+ process.env.NODE_ENV === "production" && se && (!cr || !Se || _(se, le, Y, {
3624
3690
  locale: F
3625
3691
  }, {
3626
3692
  kind: ke
@@ -3628,23 +3694,23 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
3628
3694
  }, [
3629
3695
  Y,
3630
3696
  le,
3631
- ir,
3697
+ cr,
3632
3698
  F,
3633
- Ne,
3699
+ Se,
3634
3700
  H == null ? void 0 : H.locale,
3635
3701
  se,
3636
3702
  ce,
3637
3703
  ke
3638
3704
  ]);
3639
- const je = {
3640
- ref: ho,
3705
+ const qe = {
3706
+ ref: So,
3641
3707
  onClick(A) {
3642
3708
  if (process.env.NODE_ENV !== "production" && !A)
3643
3709
  throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');
3644
- !ne && typeof U == "function" && U(A), ne && V.props && typeof V.props.onClick == "function" && V.props.onClick(A), se && (A.defaultPrevented || w(A, se, le, Y, N, j, k, F, ce, Ne));
3710
+ !ne && typeof U == "function" && U(A), ne && V.props && typeof V.props.onClick == "function" && V.props.onClick(A), se && (A.defaultPrevented || w(A, se, le, Y, N, q, k, F, ce, Se));
3645
3711
  },
3646
3712
  onMouseEnter(A) {
3647
- !ne && typeof Q == "function" && Q(A), ne && V.props && typeof V.props.onMouseEnter == "function" && V.props.onMouseEnter(A), se && ((!Ne || process.env.NODE_ENV === "development") && ce || _(se, le, Y, {
3713
+ !ne && typeof X == "function" && X(A), ne && V.props && typeof V.props.onMouseEnter == "function" && V.props.onMouseEnter(A), se && ((!Se || process.env.NODE_ENV === "development") && ce || _(se, le, Y, {
3648
3714
  locale: F,
3649
3715
  priority: !0,
3650
3716
  // @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
@@ -3654,7 +3720,7 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
3654
3720
  }, ce));
3655
3721
  },
3656
3722
  onTouchStart(A) {
3657
- !ne && typeof X == "function" && X(A), ne && V.props && typeof V.props.onTouchStart == "function" && V.props.onTouchStart(A), se && (!Ne && ce || _(se, le, Y, {
3723
+ !ne && typeof Z == "function" && Z(A), ne && V.props && typeof V.props.onTouchStart == "function" && V.props.onTouchStart(A), se && (!Se && ce || _(se, le, Y, {
3658
3724
  locale: F,
3659
3725
  priority: !0,
3660
3726
  // @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
@@ -3665,24 +3731,24 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
3665
3731
  }
3666
3732
  };
3667
3733
  if ((0, s.isAbsoluteUrl)(Y))
3668
- je.href = Y;
3734
+ qe.href = Y;
3669
3735
  else if (!ne || D || V.type === "a" && !("href" in V.props)) {
3670
- const A = typeof F < "u" ? F : H == null ? void 0 : H.locale, Oe = (H == null ? void 0 : H.isLocaleDomain) && (0, l.getDomainLocale)(Y, A, H == null ? void 0 : H.locales, H == null ? void 0 : H.domainLocales);
3671
- je.href = Oe || (0, h.addBasePath)((0, c.addLocale)(Y, A, H == null ? void 0 : H.defaultLocale));
3736
+ const A = typeof F < "u" ? F : H == null ? void 0 : H.locale, Le = (H == null ? void 0 : H.isLocaleDomain) && (0, l.getDomainLocale)(Y, A, H == null ? void 0 : H.locales, H == null ? void 0 : H.domainLocales);
3737
+ qe.href = Le || (0, h.addBasePath)((0, c.addLocale)(Y, A, H == null ? void 0 : H.defaultLocale));
3672
3738
  }
3673
- return ne ? /* @__PURE__ */ n.default.cloneElement(V, je) : /* @__PURE__ */ n.default.createElement("a", {
3674
- ...po,
3675
- ...je
3739
+ return ne ? /* @__PURE__ */ n.default.cloneElement(V, qe) : /* @__PURE__ */ n.default.createElement("a", {
3740
+ ...Oo,
3741
+ ...qe
3676
3742
  }, T);
3677
3743
  });
3678
3744
  (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
3679
- })(Bt, Bt.exports);
3680
- var Qa = Bt.exports, Xa = Qa;
3681
- const rt = /* @__PURE__ */ er(Xa), Ya = "_link_w24h0_1", Za = "_wrapper_w24h0_98", Ja = "_text_w24h0_106", qt = {
3682
- link: Ya,
3683
- wrapper: Za,
3684
- text: Ja
3685
- }, Gn = ({
3745
+ })(Gt, Gt.exports);
3746
+ var is = Gt.exports, as = is;
3747
+ const rt = /* @__PURE__ */ nr(as), ss = "_link_w24h0_1", cs = "_wrapper_w24h0_98", ls = "_text_w24h0_106", jt = {
3748
+ link: ss,
3749
+ wrapper: cs,
3750
+ text: ls
3751
+ }, co = ({
3686
3752
  children: t,
3687
3753
  adornments: e,
3688
3754
  className: r,
@@ -3696,11 +3762,11 @@ const rt = /* @__PURE__ */ er(Xa), Ya = "_link_w24h0_1", Za = "_wrapper_w24h0_98
3696
3762
  ...d
3697
3763
  }) => {
3698
3764
  const f = $.ValidateProp({
3699
- fieldTypes: wo,
3765
+ fieldTypes: zo,
3700
3766
  property: a,
3701
3767
  fallback: "medium"
3702
3768
  }), l = $.ValidateProp({
3703
- fieldTypes: Eo,
3769
+ fieldTypes: Fo,
3704
3770
  property: o,
3705
3771
  fallback: "default"
3706
3772
  });
@@ -3708,25 +3774,25 @@ const rt = /* @__PURE__ */ er(Xa), Ya = "_link_w24h0_1", Za = "_wrapper_w24h0_98
3708
3774
  rt,
3709
3775
  {
3710
3776
  ...d,
3711
- className: $.classNameConcat(qt.link, r),
3777
+ className: $.classNameConcat(jt.link, r),
3712
3778
  href: i && i.length > 0 ? i : "#",
3713
3779
  "data-size": f,
3714
3780
  "data-variant": l,
3715
3781
  title: s || "NextLink",
3716
3782
  "data-disable-underline": n ?? !1,
3717
3783
  "data-disable-padding": u ?? !0,
3718
- children: /* @__PURE__ */ S("div", { className: qt.wrapper, onClick: c, children: [
3784
+ children: /* @__PURE__ */ S("div", { className: jt.wrapper, onClick: c, children: [
3719
3785
  e == null ? void 0 : e.start,
3720
- /* @__PURE__ */ m("p", { className: qt.text, "data-size": f, children: t }),
3786
+ /* @__PURE__ */ m("p", { className: jt.text, "data-size": f, children: t }),
3721
3787
  e == null ? void 0 : e.end
3722
3788
  ] })
3723
3789
  }
3724
3790
  );
3725
- }, es = ({ children: t, freightConfig: e }) => /* @__PURE__ */ S("div", { className: M.shippingFreight, children: [
3791
+ }, us = ({ children: t, freightConfig: e }) => /* @__PURE__ */ S("div", { className: M.shippingFreight, children: [
3726
3792
  /* @__PURE__ */ S("div", { className: M.shippingFreight__grid, children: [
3727
3793
  /* @__PURE__ */ m("span", { className: M.shippingFreight__grid__title, children: e.messages.title }),
3728
3794
  /* @__PURE__ */ m("span", { className: M.shippingFreight__grid__remember, children: /* @__PURE__ */ m(
3729
- Gn,
3795
+ co,
3730
3796
  {
3731
3797
  href: "https://buscacepinter.correios.com.br/app/endereco/index.php",
3732
3798
  passHref: !0,
@@ -3740,9 +3806,9 @@ const rt = /* @__PURE__ */ er(Xa), Ya = "_link_w24h0_1", Za = "_wrapper_w24h0_98
3740
3806
  ) })
3741
3807
  ] }),
3742
3808
  /* @__PURE__ */ m("div", { className: M.shippingFreight__postalCodeGrid, children: t })
3743
- ] }), ts = ({
3809
+ ] }), ds = ({
3744
3810
  children: t
3745
- }) => /* @__PURE__ */ m("div", { className: M.freightContainer, children: t }), rs = ({
3811
+ }) => /* @__PURE__ */ m("div", { className: M.freightContainer, children: t }), fs = ({
3746
3812
  className: t,
3747
3813
  sellerId: e,
3748
3814
  skuId: r,
@@ -3752,7 +3818,7 @@ const rt = /* @__PURE__ */ er(Xa), Ya = "_link_w24h0_1", Za = "_wrapper_w24h0_98
3752
3818
  local: a,
3753
3819
  CONSTANTS_PROPS: s
3754
3820
  }) => {
3755
- const { sendDataLayerEvent: c } = be(), [u, d] = W(""), [f, l] = W([]), [h, g] = W(""), [p, _] = W(!1), y = (I) => d(I), w = (I) => {
3821
+ const { sendDataLayerEvent: c } = be(), [u, d] = B(""), [f, l] = B([]), [h, g] = B(""), [p, _] = B(!1), y = (I) => d(I), w = (I) => {
3756
3822
  l(I), c({
3757
3823
  functionKey: "readyEvents",
3758
3824
  data: {
@@ -3769,10 +3835,10 @@ const rt = /* @__PURE__ */ er(Xa), Ya = "_link_w24h0_1", Za = "_wrapper_w24h0_98
3769
3835
  }
3770
3836
  });
3771
3837
  };
3772
- return /* @__PURE__ */ S(ts, { className: t, children: [
3773
- /* @__PURE__ */ S(es, { freightConfig: s.freightConfig, children: [
3774
- /* @__PURE__ */ m(_a, { children: /* @__PURE__ */ m(
3775
- ba,
3838
+ return /* @__PURE__ */ S(ds, { className: t, children: [
3839
+ /* @__PURE__ */ S(us, { freightConfig: s.freightConfig, children: [
3840
+ /* @__PURE__ */ m(Ra, { children: /* @__PURE__ */ m(
3841
+ Sa,
3776
3842
  {
3777
3843
  onUpdateFreightItems: w,
3778
3844
  skuId: r,
@@ -3786,8 +3852,8 @@ const rt = /* @__PURE__ */ er(Xa), Ya = "_link_w24h0_1", Za = "_wrapper_w24h0_98
3786
3852
  toolTipZIndex: s.toolTipZIndex
3787
3853
  }
3788
3854
  ) }),
3789
- h ? /* @__PURE__ */ m(hr, { size: i, message: h, setError: g }) : f.length > 0 && /* @__PURE__ */ m(
3790
- hr,
3855
+ h ? /* @__PURE__ */ m(_r, { size: i, message: h, setError: g }) : f.length > 0 && /* @__PURE__ */ m(
3856
+ _r,
3791
3857
  {
3792
3858
  size: i,
3793
3859
  message: s.freightConfig.messages.delivered_by,
@@ -3795,21 +3861,21 @@ const rt = /* @__PURE__ */ er(Xa), Ya = "_link_w24h0_1", Za = "_wrapper_w24h0_98
3795
3861
  }
3796
3862
  )
3797
3863
  ] }),
3798
- p && !h ? f.length > 0 && /* @__PURE__ */ S(ma, { children: [
3799
- /* @__PURE__ */ m(ha, { children: f.filter(({ id: I }) => !I.includes("Retirada")).map((I) => /* @__PURE__ */ m(
3800
- pa,
3864
+ p && !h ? f.length > 0 && /* @__PURE__ */ S(wa, { children: [
3865
+ /* @__PURE__ */ m(Ea, { children: f.filter(({ id: I }) => !I.includes("Retirada")).map((I) => /* @__PURE__ */ m(
3866
+ Ia,
3801
3867
  {
3802
3868
  id: I.id,
3803
- value: ln({ valueInCents: I.price, hasFree: !1, freeTaxMessage: s.freightConfig.messages.free_tax }),
3869
+ value: un({ valueInCents: I.price, hasFree: !1, freeTaxMessage: s.freightConfig.messages.free_tax }),
3804
3870
  title: I.name,
3805
- paragraph: `${s.freightConfig.messages.prefix_days}${ga(I.shippingEstimate)}`,
3871
+ paragraph: `${s.freightConfig.messages.prefix_days}${Na(I.shippingEstimate)}`,
3806
3872
  radioValue: u,
3807
3873
  changeValue: y
3808
3874
  },
3809
3875
  I.id
3810
3876
  )) }),
3811
3877
  s.deliveryInfoBoxesAllowed ? /* @__PURE__ */ m(
3812
- fa,
3878
+ Ca,
3813
3879
  {
3814
3880
  icon: s.freightConfig.icons.delivery_truck,
3815
3881
  packageUnit: s.freightConfig.messages.unit_amout,
@@ -3823,11 +3889,11 @@ const rt = /* @__PURE__ */ er(Xa), Ya = "_link_w24h0_1", Za = "_wrapper_w24h0_98
3823
3889
  ) : /* @__PURE__ */ m(_e, {})
3824
3890
  ] }) : null
3825
3891
  ] });
3826
- }, ns = {
3892
+ }, ps = {
3827
3893
  "observer-wrapper": "_observer-wrapper_r43gk_1"
3828
3894
  };
3829
- function os(t, e, r) {
3830
- const [n, i] = W(!1), { threshold: o } = r || {};
3895
+ function ms(t, e, r) {
3896
+ const [n, i] = B(!1), { threshold: o } = r || {};
3831
3897
  return J(() => {
3832
3898
  if (!t.current)
3833
3899
  return () => {
@@ -3852,7 +3918,7 @@ function os(t, e, r) {
3852
3918
  };
3853
3919
  }, [t]), n;
3854
3920
  }
3855
- const is = ({
3921
+ const hs = ({
3856
3922
  children: t,
3857
3923
  eventData: e,
3858
3924
  observerOptions: r,
@@ -3861,7 +3927,7 @@ const is = ({
3861
3927
  className: o,
3862
3928
  ...a
3863
3929
  }) => {
3864
- const s = G(null), c = os(s, i, r), { sendDataLayerEvent: u } = be();
3930
+ const s = G(null), c = ms(s, i, r), { sendDataLayerEvent: u } = be();
3865
3931
  return J(() => {
3866
3932
  c && (typeof n == "function" && n(), e && u({ ...e }));
3867
3933
  }, [c]), /* @__PURE__ */ m(
@@ -3869,36 +3935,36 @@ const is = ({
3869
3935
  {
3870
3936
  ...a,
3871
3937
  ref: s,
3872
- className: $.classNameConcat(ns["observer-wrapper"], o),
3938
+ className: $.classNameConcat(ps["observer-wrapper"], o),
3873
3939
  children: t
3874
3940
  }
3875
3941
  );
3876
- }, as = "_image_lypfr_1", ss = {
3877
- image: as
3878
- }, cs = ({
3942
+ }, _s = "_image_lypfr_1", gs = {
3943
+ image: _s
3944
+ }, ys = ({
3879
3945
  alt: t,
3880
3946
  className: e,
3881
3947
  objectFit: r,
3882
3948
  ...n
3883
3949
  }) => {
3884
- const { nextimage: i } = Re();
3950
+ const { nextimage: i } = Oe();
3885
3951
  return /* @__PURE__ */ m(
3886
3952
  i,
3887
3953
  {
3888
3954
  quality: 90,
3889
3955
  ...n,
3890
3956
  alt: t ?? "",
3891
- className: $.classNameConcat(ss.image, e),
3957
+ className: $.classNameConcat(gs.image, e),
3892
3958
  "data-object-fit": r ?? "cover"
3893
3959
  }
3894
3960
  );
3895
- }, ls = ({ videoRef: t, ...e }) => /* @__PURE__ */ m("video", { ...e, ref: t, children: /* @__PURE__ */ m("track", { kind: "captions" }) }), st = {
3896
- Image: cs,
3897
- Video: ls
3898
- }, Zr = {
3961
+ }, vs = ({ videoRef: t, ...e }) => /* @__PURE__ */ m("video", { ...e, ref: t, children: /* @__PURE__ */ m("track", { kind: "captions" }) }), st = {
3962
+ Image: ys,
3963
+ Video: vs
3964
+ }, Jr = {
3899
3965
  "backtotop-btn": "_backtotop-btn_1shb6_1",
3900
3966
  "card-modifier": "_card-modifier_1shb6_27"
3901
- }, us = ({
3967
+ }, bs = ({
3902
3968
  children: t,
3903
3969
  className: e,
3904
3970
  adornment: r,
@@ -3922,12 +3988,12 @@ const is = ({
3922
3988
  window && window.document.body.scrollTo({ ...s });
3923
3989
  };
3924
3990
  return /* @__PURE__ */ m(
3925
- Po,
3991
+ ko,
3926
3992
  {
3927
3993
  ...a,
3928
3994
  shadow: !0,
3929
3995
  padding: "small",
3930
- className: $.classNameConcat(Zr["card-modifier"], e),
3996
+ className: $.classNameConcat(Jr["card-modifier"], e),
3931
3997
  style: {
3932
3998
  ...o,
3933
3999
  padding: 0
@@ -3935,7 +4001,7 @@ const is = ({
3935
4001
  children: /* @__PURE__ */ S(
3936
4002
  "button",
3937
4003
  {
3938
- className: Zr["backtotop-btn"],
4004
+ className: Jr["backtotop-btn"],
3939
4005
  onClick: d,
3940
4006
  style: { ...u },
3941
4007
  "data-orientation": n,
@@ -3947,15 +4013,15 @@ const is = ({
3947
4013
  )
3948
4014
  }
3949
4015
  );
3950
- }, ds = ({ page: t, data: e }) => {
3951
- const { pathname: r } = Re(), n = G(null), {
4016
+ }, Ps = ({ page: t, data: e }) => {
4017
+ const { pathname: r } = Oe(), n = G(null), {
3952
4018
  sendDataLayerEvent: i,
3953
4019
  currentLocalRef: o,
3954
4020
  itemListRef: a,
3955
4021
  promotionEventRef: s
3956
4022
  } = be();
3957
4023
  return J(() => {
3958
- const c = jn("login_event") || "{}", u = JSON.parse(c);
4024
+ const c = Yn("login_event") || "{}", u = JSON.parse(c);
3959
4025
  if (u.name || u.method) {
3960
4026
  const d = /* @__PURE__ */ new Date(0);
3961
4027
  i({
@@ -3966,7 +4032,7 @@ const is = ({
3966
4032
  method: u.method
3967
4033
  }
3968
4034
  }
3969
- }), qn("login_event", "", { expires: d });
4035
+ }), Jn("login_event", "", { expires: d });
3970
4036
  }
3971
4037
  }, []), J(() => {
3972
4038
  if (n.current === r)
@@ -3992,7 +4058,7 @@ const is = ({
3992
4058
  };
3993
4059
  break;
3994
4060
  case "PDC":
3995
- const { page_category: l, page_departament: h, id: g, name: p } = yn(), _ = p, y = g;
4061
+ const { page_category: l, page_departament: h, id: g, name: p } = vn(), _ = p, y = g;
3996
4062
  c = {
3997
4063
  page_category: "lista_produtos",
3998
4064
  ...h && { page_departament: h }
@@ -4032,32 +4098,32 @@ const is = ({
4032
4098
  timeout: 0
4033
4099
  });
4034
4100
  }, [r]), null;
4035
- }, fs = ({
4101
+ }, Cs = ({
4036
4102
  children: t,
4037
4103
  href: e,
4038
4104
  ...r
4039
- }) => e && e !== "#" ? /* @__PURE__ */ m(rt, { href: e.startsWith("/") ? e : `/${e}`, ...r, children: t }) : t, ps = "_footer__bottom_1otu7_1", ms = "_footer__wrapper_1otu7_9", hs = "_footer__main_1otu7_41", _s = "_footer__legalInformation_1otu7_48", gs = "_footer__column_1otu7_70", ys = "_footer__columnContent_1otu7_80", vs = "_footer__item_1otu7_84", bs = "_footer__itemLink_1otu7_100", Ps = "_footer__columnTitle_1otu7_115", Cs = "_footer__columnTitleIcon_1otu7_127", Is = "_footer__iconList_1otu7_140", ws = "_footer__itemSmallText_1otu7_150", Es = "_payment_1otu7_161", Rs = "_footer__iconContainer_1otu7_166", Ns = "_footer__iconListSubHeader_1otu7_171", Os = "_accordionWrapper_1otu7_193", Ts = "_accordionHeader_1otu7_197", Ss = "_accordionTextWrapper_1otu7_201", z = {
4040
- footer__bottom: ps,
4041
- footer__wrapper: ms,
4042
- footer__main: hs,
4043
- footer__legalInformation: _s,
4044
- footer__column: gs,
4045
- footer__columnContent: ys,
4046
- footer__item: vs,
4047
- footer__itemLink: bs,
4048
- footer__columnTitle: Ps,
4049
- footer__columnTitleIcon: Cs,
4050
- footer__iconList: Is,
4051
- footer__itemSmallText: ws,
4052
- payment: Es,
4053
- footer__iconContainer: Rs,
4054
- footer__iconListSubHeader: Ns,
4055
- accordionWrapper: Os,
4056
- accordionHeader: Ts,
4057
- accordionTextWrapper: Ss,
4105
+ }) => e && e !== "#" ? /* @__PURE__ */ m(rt, { href: e.startsWith("/") ? e : `/${e}`, ...r, children: t }) : t, Is = "_footer__bottom_1otu7_1", ws = "_footer__wrapper_1otu7_9", Es = "_footer__main_1otu7_41", Rs = "_footer__legalInformation_1otu7_48", Ns = "_footer__column_1otu7_70", Os = "_footer__columnContent_1otu7_80", Ts = "_footer__item_1otu7_84", Ss = "_footer__itemLink_1otu7_100", Ls = "_footer__columnTitle_1otu7_115", Ds = "_footer__columnTitleIcon_1otu7_127", As = "_footer__iconList_1otu7_140", xs = "_footer__itemSmallText_1otu7_150", Ms = "_payment_1otu7_161", ks = "_footer__iconContainer_1otu7_166", qs = "_footer__iconListSubHeader_1otu7_171", js = "_accordionWrapper_1otu7_193", zs = "_accordionHeader_1otu7_197", Fs = "_accordionTextWrapper_1otu7_201", z = {
4106
+ footer__bottom: Is,
4107
+ footer__wrapper: ws,
4108
+ footer__main: Es,
4109
+ footer__legalInformation: Rs,
4110
+ footer__column: Ns,
4111
+ footer__columnContent: Os,
4112
+ footer__item: Ts,
4113
+ footer__itemLink: Ss,
4114
+ footer__columnTitle: Ls,
4115
+ footer__columnTitleIcon: Ds,
4116
+ footer__iconList: As,
4117
+ footer__itemSmallText: xs,
4118
+ payment: Ms,
4119
+ footer__iconContainer: ks,
4120
+ footer__iconListSubHeader: qs,
4121
+ accordionWrapper: js,
4122
+ accordionHeader: zs,
4123
+ accordionTextWrapper: Fs,
4058
4124
  "footer--stamps": "_footer--stamps_1otu7_240",
4059
4125
  "footer--stamps--company": "_footer--stamps--company_1otu7_247"
4060
- }, Ls = ({
4126
+ }, Us = ({
4061
4127
  name: t,
4062
4128
  nameIcon: e,
4063
4129
  maxWidth: r,
@@ -4109,7 +4175,7 @@ const is = ({
4109
4175
  }
4110
4176
  )
4111
4177
  }
4112
- ), Ds = ({
4178
+ ), Hs = ({
4113
4179
  name: t,
4114
4180
  nameIcon: e,
4115
4181
  maxWidth: r,
@@ -4154,8 +4220,8 @@ const is = ({
4154
4220
  }
4155
4221
  ), zt = (t) => {
4156
4222
  const { isMobile: e } = Pe();
4157
- return e ? /* @__PURE__ */ m(Ds, { ...t }) : /* @__PURE__ */ m(Ls, { ...t });
4158
- }, Ye = ({
4223
+ return e ? /* @__PURE__ */ m(Hs, { ...t }) : /* @__PURE__ */ m(Us, { ...t });
4224
+ }, Ze = ({
4159
4225
  type: t,
4160
4226
  children: e,
4161
4227
  className: r,
@@ -4175,7 +4241,7 @@ const is = ({
4175
4241
  ..._
4176
4242
  }) => {
4177
4243
  let y;
4178
- const { handleSelectContent: w } = be(), { nextimage: I } = Re();
4244
+ const { handleSelectContent: w } = be(), { nextimage: I } = Oe();
4179
4245
  switch (t) {
4180
4246
  case "menu":
4181
4247
  y = /* @__PURE__ */ m(
@@ -4283,7 +4349,7 @@ const is = ({
4283
4349
  )
4284
4350
  }
4285
4351
  );
4286
- }, As = ({
4352
+ }, $s = ({
4287
4353
  className: t,
4288
4354
  text: e,
4289
4355
  ...r
@@ -4297,8 +4363,8 @@ const is = ({
4297
4363
  ),
4298
4364
  children: /* @__PURE__ */ m("span", { children: e })
4299
4365
  }
4300
- ), Kn = () => {
4301
- const { nextimage: t } = Re();
4366
+ ), lo = () => {
4367
+ const { nextimage: t } = Oe();
4302
4368
  return /* @__PURE__ */ m("div", { className: z["footer--stamps"], children: /* @__PURE__ */ m(
4303
4369
  t,
4304
4370
  {
@@ -4310,15 +4376,15 @@ const is = ({
4310
4376
  }
4311
4377
  ) });
4312
4378
  };
4313
- Kn.displayName = "Footer.Stamps";
4314
- const Qn = ({
4379
+ lo.displayName = "Footer.Stamps";
4380
+ const uo = ({
4315
4381
  children: t,
4316
4382
  legalTextSlot: e,
4317
4383
  adornment: r,
4318
4384
  className: n,
4319
4385
  ...i
4320
4386
  }) => {
4321
- const { isMobile: o } = Pe(), a = yo.toArray(t).filter(Boolean), s = a.length;
4387
+ const { isMobile: o } = Pe(), a = Ao.toArray(t).filter(Boolean), s = a.length;
4322
4388
  return /* @__PURE__ */ S("div", { className: z.footer__main, children: [
4323
4389
  (r == null ? void 0 : r.top) && /* @__PURE__ */ m("div", { className: z.footer__top, children: r == null ? void 0 : r.top }),
4324
4390
  s > 0 && /* @__PURE__ */ m(
@@ -4343,8 +4409,8 @@ const Qn = ({
4343
4409
  e && /* @__PURE__ */ m("div", { className: z.footer__legalText, children: e })
4344
4410
  ] });
4345
4411
  };
4346
- Qn.displayName = "Footer.Wrapper";
4347
- const Xn = ({
4412
+ uo.displayName = "Footer.Wrapper";
4413
+ const fo = ({
4348
4414
  data: {
4349
4415
  links: { links: t }
4350
4416
  },
@@ -4356,10 +4422,10 @@ const Xn = ({
4356
4422
  }) => {
4357
4423
  var a;
4358
4424
  return /* @__PURE__ */ S(
4359
- Qn,
4425
+ uo,
4360
4426
  {
4361
4427
  adornment: i,
4362
- legalTextSlot: /* @__PURE__ */ m(As, { text: o }),
4428
+ legalTextSlot: /* @__PURE__ */ m($s, { text: o }),
4363
4429
  children: [
4364
4430
  Array.isArray(t.column) && t.column.map((s, c) => /* @__PURE__ */ m(
4365
4431
  zt,
@@ -4368,7 +4434,7 @@ const Xn = ({
4368
4434
  name: s.name,
4369
4435
  nameIcon: s.nameIcon,
4370
4436
  children: s.items.map((u, d) => /* @__PURE__ */ m(
4371
- Ye,
4437
+ Ze,
4372
4438
  {
4373
4439
  type: "menu",
4374
4440
  link: u.link,
@@ -4389,7 +4455,7 @@ const Xn = ({
4389
4455
  nameIcon: e == null ? void 0 : e.titleIcon,
4390
4456
  maxWidth: 150,
4391
4457
  children: /* @__PURE__ */ m(
4392
- Ye,
4458
+ Ze,
4393
4459
  {
4394
4460
  type: "payment",
4395
4461
  paymentDisclaimer: e == null ? void 0 : e.text,
@@ -4401,22 +4467,22 @@ const Xn = ({
4401
4467
  }
4402
4468
  ),
4403
4469
  /* @__PURE__ */ S(zt, { id: "social-media-column", name: r == null ? void 0 : r.title, children: [
4404
- /* @__PURE__ */ m(Ye, { children: r == null ? void 0 : r.subTitle }),
4405
- /* @__PURE__ */ m(Ye, { type: "social-media", iconSize: 24, iconLink: n }),
4406
- /* @__PURE__ */ m(Kn, {})
4470
+ /* @__PURE__ */ m(Ze, { children: r == null ? void 0 : r.subTitle }),
4471
+ /* @__PURE__ */ m(Ze, { type: "social-media", iconSize: 24, iconLink: n }),
4472
+ /* @__PURE__ */ m(lo, {})
4407
4473
  ] })
4408
4474
  ]
4409
4475
  }
4410
4476
  );
4411
4477
  };
4412
- Xn.displayName = "Footer";
4413
- var Wt = { exports: {} };
4414
- function xs(t) {
4478
+ fo.displayName = "Footer";
4479
+ var Kt = { exports: {} };
4480
+ function Vs(t) {
4415
4481
  throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4416
4482
  }
4417
- var Ft = {}, Ut = {}, Jr;
4418
- function Ms() {
4419
- return Jr || (Jr = 1, function(t) {
4483
+ var Ft = {}, Ut = {}, en;
4484
+ function Ws() {
4485
+ return en || (en = 1, function(t) {
4420
4486
  "use client";
4421
4487
  Object.defineProperty(t, "__esModule", {
4422
4488
  value: !0
@@ -4430,9 +4496,9 @@ function Ms() {
4430
4496
  process.env.NODE_ENV !== "production" && (n.displayName = "LoadableContext");
4431
4497
  }(Ut)), Ut;
4432
4498
  }
4433
- var en;
4434
- function ks() {
4435
- return en || (en = 1, function(t) {
4499
+ var tn;
4500
+ function Bs() {
4501
+ return tn || (tn = 1, function(t) {
4436
4502
  Object.defineProperty(t, "__esModule", {
4437
4503
  value: !0
4438
4504
  }), Object.defineProperty(t, "default", {
@@ -4441,7 +4507,7 @@ function ks() {
4441
4507
  return h;
4442
4508
  }
4443
4509
  });
4444
- const r = /* @__PURE__ */ ae._(de), n = Ms();
4510
+ const r = /* @__PURE__ */ ae._(de), n = Ws();
4445
4511
  function i(g) {
4446
4512
  return g && g.default ? g.default : g;
4447
4513
  }
@@ -4479,7 +4545,7 @@ function ks() {
4479
4545
  return y.promise();
4480
4546
  }
4481
4547
  if (typeof window > "u" && o.push(w), !s && typeof window < "u") {
4482
- const v = _.webpack && typeof xs.resolveWeak == "function" ? _.webpack() : _.modules;
4548
+ const v = _.webpack && typeof Vs.resolveWeak == "function" ? _.webpack() : _.modules;
4483
4549
  v && a.push((P) => {
4484
4550
  for (const C of v)
4485
4551
  if (P.includes(C))
@@ -4600,7 +4666,7 @@ function ks() {
4600
4666
  return u;
4601
4667
  }
4602
4668
  });
4603
- const n = ae, i = /* @__PURE__ */ n._(de), o = /* @__PURE__ */ n._(ks()), a = typeof window > "u";
4669
+ const n = ae, i = /* @__PURE__ */ n._(de), o = /* @__PURE__ */ n._(Bs()), a = typeof window > "u";
4604
4670
  function s(d) {
4605
4671
  return {
4606
4672
  default: (d == null ? void 0 : d.default) || d
@@ -4649,12 +4715,12 @@ function ks() {
4649
4715
  });
4650
4716
  }
4651
4717
  (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
4652
- })(Wt, Wt.exports);
4653
- var js = Wt.exports, qs = js;
4654
- const zs = /* @__PURE__ */ er(qs);
4655
- var Gt = { exports: {} }, Ht = {}, tn;
4656
- function Fs() {
4657
- return tn || (tn = 1, function(t) {
4718
+ })(Kt, Kt.exports);
4719
+ var Gs = Kt.exports, Ks = Gs;
4720
+ const Qs = /* @__PURE__ */ nr(Ks);
4721
+ var Qt = { exports: {} }, Ht = {}, rn;
4722
+ function Xs() {
4723
+ return rn || (rn = 1, function(t) {
4658
4724
  Object.defineProperty(t, "__esModule", {
4659
4725
  value: !0
4660
4726
  }), Object.defineProperty(t, "HeadManagerContext", {
@@ -4667,9 +4733,9 @@ function Fs() {
4667
4733
  process.env.NODE_ENV !== "production" && (n.displayName = "HeadManagerContext");
4668
4734
  }(Ht)), Ht;
4669
4735
  }
4670
- var Ze = { exports: {} }, rn;
4671
- function Us() {
4672
- return rn || (rn = 1, function(t, e) {
4736
+ var Ye = { exports: {} }, nn;
4737
+ function Zs() {
4738
+ return nn || (nn = 1, function(t, e) {
4673
4739
  Object.defineProperty(e, "__esModule", {
4674
4740
  value: !0
4675
4741
  });
@@ -4814,7 +4880,7 @@ function Us() {
4814
4880
  };
4815
4881
  }
4816
4882
  (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
4817
- }(Ze, Ze.exports)), Ze.exports;
4883
+ }(Ye, Ye.exports)), Ye.exports;
4818
4884
  }
4819
4885
  (function(t, e) {
4820
4886
  "use client";
@@ -4838,7 +4904,7 @@ function Us() {
4838
4904
  return b;
4839
4905
  }
4840
4906
  });
4841
- const n = ae, i = tt, o = /* @__PURE__ */ n._(Ro), a = /* @__PURE__ */ i._(de), s = Fs(), c = Us(), u = Wn(), d = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Set(), l = [
4907
+ const n = ae, i = tt, o = /* @__PURE__ */ n._(Uo), a = /* @__PURE__ */ i._(de), s = Xs(), c = Zs(), u = so(), d = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Set(), l = [
4842
4908
  "onLoad",
4843
4909
  "onReady",
4844
4910
  "dangerouslySetInnerHTML",
@@ -4864,30 +4930,30 @@ function Us() {
4864
4930
  }
4865
4931
  }, g = (v) => {
4866
4932
  const { src: P, id: C, onLoad: E = () => {
4867
- }, onReady: T = null, dangerouslySetInnerHTML: L, children: q = "", strategy: R = "afterInteractive", onError: O, stylesheets: D } = v, N = C || P;
4933
+ }, onReady: T = null, dangerouslySetInnerHTML: L, children: j = "", strategy: R = "afterInteractive", onError: O, stylesheets: D } = v, N = C || P;
4868
4934
  if (N && f.has(N))
4869
4935
  return;
4870
4936
  if (d.has(P)) {
4871
4937
  f.add(N), d.get(P).then(E, O);
4872
4938
  return;
4873
4939
  }
4874
- const j = () => {
4940
+ const q = () => {
4875
4941
  T && T(), f.add(N);
4876
- }, k = document.createElement("script"), F = new Promise((U, Q) => {
4877
- k.addEventListener("load", function(X) {
4878
- U(), E && E.call(this, X), j();
4879
- }), k.addEventListener("error", function(X) {
4880
- Q(X);
4942
+ }, k = document.createElement("script"), F = new Promise((U, X) => {
4943
+ k.addEventListener("load", function(Z) {
4944
+ U(), E && E.call(this, Z), q();
4945
+ }), k.addEventListener("error", function(Z) {
4946
+ X(Z);
4881
4947
  });
4882
4948
  }).catch(function(U) {
4883
4949
  O && O(U);
4884
4950
  });
4885
- L ? (k.innerHTML = L.__html || "", j()) : q ? (k.textContent = typeof q == "string" ? q : Array.isArray(q) ? q.join("") : "", j()) : P && (k.src = P, d.set(P, F));
4886
- for (const [U, Q] of Object.entries(v)) {
4887
- if (Q === void 0 || l.includes(U))
4951
+ L ? (k.innerHTML = L.__html || "", q()) : j ? (k.textContent = typeof j == "string" ? j : Array.isArray(j) ? j.join("") : "", q()) : P && (k.src = P, d.set(P, F));
4952
+ for (const [U, X] of Object.entries(v)) {
4953
+ if (X === void 0 || l.includes(U))
4888
4954
  continue;
4889
- const X = c.DOMAttributeNames[U] || U.toLowerCase();
4890
- k.setAttribute(X, Q);
4955
+ const Z = c.DOMAttributeNames[U] || U.toLowerCase();
4956
+ k.setAttribute(Z, X);
4891
4957
  }
4892
4958
  R === "worker" && k.setAttribute("type", "text/partytown"), k.setAttribute("data-nscript", R), D && h(D), document.body.appendChild(k);
4893
4959
  };
@@ -4916,18 +4982,18 @@ function Us() {
4916
4982
  }
4917
4983
  function I(v) {
4918
4984
  const { id: P, src: C = "", onLoad: E = () => {
4919
- }, onReady: T = null, strategy: L = "afterInteractive", onError: q, stylesheets: R, ...O } = v, { updateScripts: D, scripts: N, getIsSsr: j, appDir: k, nonce: F } = (0, a.useContext)(s.HeadManagerContext), U = (0, a.useRef)(!1);
4985
+ }, onReady: T = null, strategy: L = "afterInteractive", onError: j, stylesheets: R, ...O } = v, { updateScripts: D, scripts: N, getIsSsr: q, appDir: k, nonce: F } = (0, a.useContext)(s.HeadManagerContext), U = (0, a.useRef)(!1);
4920
4986
  (0, a.useEffect)(() => {
4921
- const X = P || C;
4922
- U.current || (T && X && f.has(X) && T(), U.current = !0);
4987
+ const Z = P || C;
4988
+ U.current || (T && Z && f.has(Z) && T(), U.current = !0);
4923
4989
  }, [
4924
4990
  T,
4925
4991
  P,
4926
4992
  C
4927
4993
  ]);
4928
- const Q = (0, a.useRef)(!1);
4994
+ const X = (0, a.useRef)(!1);
4929
4995
  if ((0, a.useEffect)(() => {
4930
- Q.current || (L === "afterInteractive" ? g(v) : L === "lazyOnload" && _(v), Q.current = !0);
4996
+ X.current || (L === "afterInteractive" ? g(v) : L === "lazyOnload" && _(v), X.current = !0);
4931
4997
  }, [
4932
4998
  v,
4933
4999
  L
@@ -4937,12 +5003,12 @@ function Us() {
4937
5003
  src: C,
4938
5004
  onLoad: E,
4939
5005
  onReady: T,
4940
- onError: q,
5006
+ onError: j,
4941
5007
  ...O
4942
5008
  }
4943
- ]), D(N)) : j && j() ? f.add(P || C) : j && !j() && g(v)), k) {
4944
- if (R && R.forEach((X) => {
4945
- o.default.preinit(X, {
5009
+ ]), D(N)) : q && q() ? f.add(P || C) : q && !q() && g(v)), k) {
5010
+ if (R && R.forEach((Z) => {
5011
+ o.default.preinit(Z, {
4946
5012
  as: "style"
4947
5013
  });
4948
5014
  }), L === "beforeInteractive")
@@ -4983,11 +5049,11 @@ function Us() {
4983
5049
  });
4984
5050
  const b = I;
4985
5051
  (typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
4986
- })(Gt, Gt.exports);
4987
- var Hs = Gt.exports, $s = Hs;
4988
- const Vs = /* @__PURE__ */ er($s), Bs = ({ children: t, ONE_TRUST: e }) => /* @__PURE__ */ S(_e, { children: [
5052
+ })(Qt, Qt.exports);
5053
+ var Ys = Qt.exports, Js = Ys;
5054
+ const ec = /* @__PURE__ */ nr(Js), tc = ({ children: t, ONE_TRUST: e }) => /* @__PURE__ */ S(_e, { children: [
4989
5055
  /* @__PURE__ */ m(
4990
- Vs,
5056
+ ec,
4991
5057
  {
4992
5058
  src: "https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",
4993
5059
  defer: !0,
@@ -4997,7 +5063,7 @@ const Vs = /* @__PURE__ */ er($s), Bs = ({ children: t, ONE_TRUST: e }) => /* @_
4997
5063
  }
4998
5064
  ),
4999
5065
  t
5000
- ] }), Ws = zs(() => Promise.resolve(Bs), {
5066
+ ] }), rc = Qs(() => Promise.resolve(tc), {
5001
5067
  ssr: !1
5002
5068
  }), K = {
5003
5069
  "add-to-cart--card": "_add-to-cart--card_4v41y_1",
@@ -5013,7 +5079,7 @@ const Vs = /* @__PURE__ */ er($s), Bs = ({ children: t, ONE_TRUST: e }) => /* @_
5013
5079
  "add-to-cart--items": "_add-to-cart--items_4v41y_148",
5014
5080
  "add-to-cart--tooltip": "_add-to-cart--tooltip_4v41y_198",
5015
5081
  "add-to-cart__modal": "_add-to-cart__modal_4v41y_211"
5016
- }, Yn = ({ brand: t, className: e, name: r, ...n }) => /* @__PURE__ */ S(
5082
+ }, po = ({ brand: t, className: e, name: r, ...n }) => /* @__PURE__ */ S(
5017
5083
  "div",
5018
5084
  {
5019
5085
  ...n,
@@ -5023,7 +5089,7 @@ const Vs = /* @__PURE__ */ er($s), Bs = ({ children: t, ONE_TRUST: e }) => /* @_
5023
5089
  ),
5024
5090
  children: [
5025
5091
  /* @__PURE__ */ m(
5026
- on,
5092
+ an,
5027
5093
  {
5028
5094
  style: { textTransform: "uppercase" },
5029
5095
  size: "small",
@@ -5043,8 +5109,8 @@ const Vs = /* @__PURE__ */ er($s), Bs = ({ children: t, ONE_TRUST: e }) => /* @_
5043
5109
  ]
5044
5110
  }
5045
5111
  );
5046
- Yn.displayName = "AddToCart.Card.Name";
5047
- const Zn = ({
5112
+ po.displayName = "AddToCart.Card.Name";
5113
+ const mo = ({
5048
5114
  className: t,
5049
5115
  listPrice: e,
5050
5116
  price: r,
@@ -5052,7 +5118,7 @@ const Zn = ({
5052
5118
  productId: i,
5053
5119
  ...o
5054
5120
  }) => {
5055
- const a = De(r / 100), s = De(e / 100);
5121
+ const a = xe(r / 100), s = xe(e / 100);
5056
5122
  return /* @__PURE__ */ m(
5057
5123
  "div",
5058
5124
  {
@@ -5092,17 +5158,17 @@ const Zn = ({
5092
5158
  }
5093
5159
  );
5094
5160
  };
5095
- Zn.displayName = "AddToCart.Card.PriceQuantity";
5096
- const Gs = "_skeleton_12b79_1", Ks = {
5097
- skeleton: Gs
5098
- }, Qs = ({ style: t }) => /* @__PURE__ */ m("div", { style: t, className: Ks.skeleton }), Jn = ({
5161
+ mo.displayName = "AddToCart.Card.PriceQuantity";
5162
+ const nc = "_skeleton_12b79_1", oc = {
5163
+ skeleton: nc
5164
+ }, ic = ({ style: t }) => /* @__PURE__ */ m("div", { style: t, className: oc.skeleton }), ho = ({
5099
5165
  className: t,
5100
5166
  productGroupID: e,
5101
5167
  size: r,
5102
5168
  texture: n,
5103
5169
  ...i
5104
5170
  }) => {
5105
- const o = "", [a, s] = W(n ?? "");
5171
+ const { CONSTANTS: { TEXTURE_IMAGE: o } } = Te(), [a, s] = B(n ?? "");
5106
5172
  return J(() => {
5107
5173
  a || fetch("/api/catalog/product/info", {
5108
5174
  method: "POST",
@@ -5130,7 +5196,7 @@ const Gs = "_skeleton_12b79_1", Ks = {
5130
5196
  t
5131
5197
  ),
5132
5198
  children: [
5133
- /* @__PURE__ */ m(lr.Wrapper, { size: "x-small", className: K["add-to-cart--card--style"], children: /* @__PURE__ */ m(lr.Texture, { children: a ? /* @__PURE__ */ m(
5199
+ /* @__PURE__ */ m(fr.Wrapper, { size: "x-small", className: K["add-to-cart--card--style"], children: /* @__PURE__ */ m(fr.Texture, { children: a ? /* @__PURE__ */ m(
5134
5200
  st.Image,
5135
5201
  {
5136
5202
  alt: "",
@@ -5139,9 +5205,9 @@ const Gs = "_skeleton_12b79_1", Ks = {
5139
5205
  height: 164,
5140
5206
  className: K["add-to-cart--card--style"]
5141
5207
  }
5142
- ) : /* @__PURE__ */ m(Qs, {}) }) }),
5208
+ ) : /* @__PURE__ */ m(ic, {}) }) }),
5143
5209
  /* @__PURE__ */ m(
5144
- Co.Divider,
5210
+ qo.Divider,
5145
5211
  {
5146
5212
  direction: "vertical",
5147
5213
  size: "medium",
@@ -5156,8 +5222,8 @@ const Gs = "_skeleton_12b79_1", Ks = {
5156
5222
  }
5157
5223
  );
5158
5224
  };
5159
- Jn.displayName = "AddToCart.Card.StyleSize";
5160
- const { helpers: Xs } = Di, eo = ({ className: t, item: e, texture: r, ...n }) => {
5225
+ ho.displayName = "AddToCart.Card.StyleSize";
5226
+ const { helpers: ac } = Hi, _o = ({ className: t, item: e, texture: r, ...n }) => {
5161
5227
  const {
5162
5228
  itemOffered: {
5163
5229
  name: i,
@@ -5168,7 +5234,7 @@ const { helpers: Xs } = Di, eo = ({ className: t, item: e, texture: r, ...n }) =
5168
5234
  quantity: c,
5169
5235
  price: u,
5170
5236
  sellingPrice: d
5171
- } = e, { size: f } = Xs.product.getColorAndSizeFromSkuName(a);
5237
+ } = e, { size: f } = ac.product.getColorAndSizeFromSkuName(a);
5172
5238
  return /* @__PURE__ */ S(
5173
5239
  "div",
5174
5240
  {
@@ -5178,9 +5244,9 @@ const { helpers: Xs } = Di, eo = ({ className: t, item: e, texture: r, ...n }) =
5178
5244
  t
5179
5245
  ),
5180
5246
  children: [
5181
- /* @__PURE__ */ m(Yn, { brand: o.name, name: i }),
5247
+ /* @__PURE__ */ m(po, { brand: o.name, name: i }),
5182
5248
  /* @__PURE__ */ m(
5183
- Zn,
5249
+ mo,
5184
5250
  {
5185
5251
  price: u,
5186
5252
  listPrice: d,
@@ -5189,7 +5255,7 @@ const { helpers: Xs } = Di, eo = ({ className: t, item: e, texture: r, ...n }) =
5189
5255
  }
5190
5256
  ),
5191
5257
  /* @__PURE__ */ m(
5192
- Jn,
5258
+ ho,
5193
5259
  {
5194
5260
  size: f,
5195
5261
  texture: r,
@@ -5200,8 +5266,8 @@ const { helpers: Xs } = Di, eo = ({ className: t, item: e, texture: r, ...n }) =
5200
5266
  }
5201
5267
  );
5202
5268
  };
5203
- eo.displayName = "AddToCart.Card.Content";
5204
- const to = ({ image: t, thumbnail: e = !1 }) => /* @__PURE__ */ m(
5269
+ _o.displayName = "AddToCart.Card.Content";
5270
+ const go = ({ image: t, thumbnail: e = !1 }) => /* @__PURE__ */ m(
5205
5271
  st.Image,
5206
5272
  {
5207
5273
  alt: t.alternateName ?? "image",
@@ -5211,13 +5277,13 @@ const to = ({ image: t, thumbnail: e = !1 }) => /* @__PURE__ */ m(
5211
5277
  width: e ? 152 : 94
5212
5278
  }
5213
5279
  );
5214
- to.displayName = "AddToCart.Card";
5215
- const ro = ({ className: t, item: e, texture: r, thumbnail: n, ...i }) => {
5280
+ go.displayName = "AddToCart.Card";
5281
+ const yo = ({ className: t, item: e, texture: r, thumbnail: n, ...i }) => {
5216
5282
  const {
5217
5283
  itemOffered: {
5218
5284
  image: [o]
5219
5285
  }
5220
- } = e, a = pn(o.url, {
5286
+ } = e, a = mn(o.url, {
5221
5287
  width: 200,
5222
5288
  height: 300
5223
5289
  });
@@ -5231,7 +5297,7 @@ const ro = ({ className: t, item: e, texture: r, thumbnail: n, ...i }) => {
5231
5297
  ),
5232
5298
  children: [
5233
5299
  /* @__PURE__ */ m(
5234
- to,
5300
+ go,
5235
5301
  {
5236
5302
  image: {
5237
5303
  alternateName: o.alternateName || "Produto",
@@ -5240,13 +5306,13 @@ const ro = ({ className: t, item: e, texture: r, thumbnail: n, ...i }) => {
5240
5306
  thumbnail: n
5241
5307
  }
5242
5308
  ),
5243
- !n && /* @__PURE__ */ m(eo, { item: e, texture: r })
5309
+ !n && /* @__PURE__ */ m(_o, { item: e, texture: r })
5244
5310
  ]
5245
5311
  }
5246
5312
  );
5247
5313
  };
5248
- ro.displayName = "AddToCart.Card";
5249
- const no = ({
5314
+ yo.displayName = "AddToCart.Card";
5315
+ const vo = ({
5250
5316
  className: t,
5251
5317
  children: e,
5252
5318
  title: r,
@@ -5266,23 +5332,18 @@ const no = ({
5266
5332
  ]
5267
5333
  }
5268
5334
  );
5269
- no.displayName = "AddToCart.Layout.Content";
5270
- const oo = ({
5335
+ vo.displayName = "AddToCart.Layout.Content";
5336
+ const bo = ({
5271
5337
  className: t,
5272
5338
  ...e
5273
5339
  }) => {
5274
5340
  var h, g;
5275
- const r = {
5276
- footer: {
5277
- bag: "View Bag",
5278
- keep_buying: "Keep Shopping"
5279
- }
5280
- }, { isMobile: n, handleClose: i } = Me(), {
5341
+ const { isMobile: r, handleClose: n, CONSTANTS: { ADD_TO_CART: i } } = Te(), {
5281
5342
  cartStore: { totalizers: o },
5282
5343
  setIsOpen: a
5283
- } = Jt(), s = (h = o.find(
5344
+ } = rr(), s = (h = o.find(
5284
5345
  (p) => p.id === "Discounts"
5285
- )) == null ? void 0 : h.value, c = ((g = o.find((p) => p.id === "Items")) == null ? void 0 : g.value) ?? 0, u = o.find((p) => p.id === "Shipping"), f = (c - Math.abs(s ?? 0) + ((u == null ? void 0 : u.value) ?? 0)) / 100, l = De(f ?? 0);
5346
+ )) == null ? void 0 : h.value, c = ((g = o.find((p) => p.id === "Items")) == null ? void 0 : g.value) ?? 0, u = o.find((p) => p.id === "Shipping"), f = (c - Math.abs(s ?? 0) + ((u == null ? void 0 : u.value) ?? 0)) / 100, l = xe(f ?? 0);
5286
5347
  return /* @__PURE__ */ S(
5287
5348
  "div",
5288
5349
  {
@@ -5303,16 +5364,16 @@ const oo = ({
5303
5364
  variant: "primary",
5304
5365
  "data-close": !0,
5305
5366
  onClick: () => a(!0),
5306
- children: r.footer.bag
5367
+ children: i.footer.bag
5307
5368
  }
5308
5369
  ),
5309
- n ? /* @__PURE__ */ m(Je, { "data-close": !0, size: "medium", variant: "tertiary", children: r.footer.keep_buying }) : /* @__PURE__ */ m(Je, { onClick: () => i(), size: "medium", variant: "tertiary", children: r.footer.keep_buying })
5370
+ r ? /* @__PURE__ */ m(Je, { "data-close": !0, size: "medium", variant: "tertiary", children: i.footer.keep_buying }) : /* @__PURE__ */ m(Je, { onClick: () => n(), size: "medium", variant: "tertiary", children: i.footer.keep_buying })
5310
5371
  ]
5311
5372
  }
5312
5373
  );
5313
5374
  };
5314
- oo.displayName = "AddToCart.Layout.Footer";
5315
- const io = ({
5375
+ bo.displayName = "AddToCart.Layout.Footer";
5376
+ const Po = ({
5316
5377
  children: t,
5317
5378
  className: e,
5318
5379
  thumbnail: r = !1,
@@ -5320,7 +5381,7 @@ const io = ({
5320
5381
  }) => {
5321
5382
  const {
5322
5383
  cartStore: { options: i }
5323
- } = Jt(), { recentlyAddedProducts: o } = xe(), a = o.length > 3 ? 4 : o.length;
5384
+ } = rr(), { recentlyAddedProducts: o } = Me(), a = o.length > 3 ? 4 : o.length;
5324
5385
  return /* @__PURE__ */ S(
5325
5386
  "div",
5326
5387
  {
@@ -5348,11 +5409,11 @@ const io = ({
5348
5409
  }
5349
5410
  );
5350
5411
  };
5351
- io.displayName = "AddToCart.Layout.Items";
5352
- const ao = ({ children: t, Z_INDEX_WAR: e }) => {
5353
- const { isOpen: r, setIsOpen: n } = Me(), { isMobile: i } = Pe();
5412
+ Po.displayName = "AddToCart.Layout.Items";
5413
+ const Co = ({ children: t, Z_INDEX_WAR: e }) => {
5414
+ const { isOpen: r, setIsOpen: n } = Te(), { isMobile: i } = Pe();
5354
5415
  return /* @__PURE__ */ S(
5355
- qe.Root,
5416
+ je.Root,
5356
5417
  {
5357
5418
  "data-modal": "add-to-cart--modal",
5358
5419
  className: K["add-to-cart__modal"],
@@ -5362,42 +5423,42 @@ const ao = ({ children: t, Z_INDEX_WAR: e }) => {
5362
5423
  variant: "sideBottom",
5363
5424
  style: { zIndex: e.modal },
5364
5425
  children: [
5365
- /* @__PURE__ */ m(qe.Header, { navigation: "top", children: /* @__PURE__ */ m(qe.Controls, { navigation: "top", isMobile: !0 }) }),
5366
- /* @__PURE__ */ m(qe.Body, { children: t })
5426
+ /* @__PURE__ */ m(je.Header, { navigation: "top", children: /* @__PURE__ */ m(je.Controls, { navigation: "top", isMobile: !0 }) }),
5427
+ /* @__PURE__ */ m(je.Body, { children: t })
5367
5428
  ]
5368
5429
  }
5369
5430
  );
5370
5431
  };
5371
- ao.displayName = "AddToCart.Modal";
5372
- const Ys = ({ children: t }) => {
5373
- const { count: e, handleClose: r, setIsOpen: n } = Me(), i = G(e);
5432
+ Co.displayName = "AddToCart.Modal";
5433
+ const sc = ({ children: t }) => {
5434
+ const { count: e, handleClose: r, setIsOpen: n } = Te(), i = G(e);
5374
5435
  return J(() => {
5375
5436
  e > i.current && n(!0), e < i.current && i.current >= 1 && r(), i.current = e;
5376
5437
  }, [e, r, n]), /* @__PURE__ */ m(_e, { children: t });
5377
- }, so = ({ children: t, component: e, Z_INDEX_WAR: r, ...n }) => {
5378
- const { recentlyAddedProducts: i } = xe(), { isMobile: o } = Pe(), a = i.length > 3 ? 4 : i.length;
5438
+ }, Io = ({ children: t, component: e, CONSTANTS: r, ...n }) => {
5439
+ const { recentlyAddedProducts: i } = Me(), { isMobile: o } = Pe(), a = i.length > 3 ? 4 : i.length;
5379
5440
  return /* @__PURE__ */ m(
5380
- Mn,
5441
+ Xn,
5381
5442
  {
5382
5443
  ...n,
5383
5444
  count: a,
5384
5445
  isMobile: o,
5385
- Z_INDEX_WAR: r,
5386
- children: /* @__PURE__ */ m(Ys, { children: o ? /* @__PURE__ */ S(_e, { children: [
5387
- /* @__PURE__ */ m(ve.Modal, { Z_INDEX_WAR: r, children: e }),
5446
+ CONSTANTS: r,
5447
+ children: /* @__PURE__ */ m(sc, { children: o ? /* @__PURE__ */ S(_e, { children: [
5448
+ /* @__PURE__ */ m(ve.Modal, { Z_INDEX_WAR: r.Z_INDEX_WAR, children: e }),
5388
5449
  t
5389
- ] }) : /* @__PURE__ */ m(ve.Tooltip, { component: e, style: { width: 350 }, Z_INDEX_WAR: r, children: t }) })
5450
+ ] }) : /* @__PURE__ */ m(ve.Tooltip, { component: e, style: { width: 350 }, Z_INDEX_WAR: r.Z_INDEX_WAR, children: t }) })
5390
5451
  }
5391
5452
  );
5392
5453
  };
5393
- so.displayName = "AddToCart.Root";
5394
- const co = ({
5454
+ Io.displayName = "AddToCart.Root";
5455
+ const wo = ({
5395
5456
  children: t,
5396
5457
  component: e,
5397
5458
  Z_INDEX_WAR: r,
5398
5459
  ...n
5399
5460
  }) => {
5400
- const { contentRef: i, left: o, isLeaving: a, target: s, isOpen: c, top: u } = Me();
5461
+ const { contentRef: i, left: o, isLeaving: a, target: s, isOpen: c, top: u } = Te();
5401
5462
  return /* @__PURE__ */ m(
5402
5463
  et.Root,
5403
5464
  {
@@ -5416,24 +5477,24 @@ const co = ({
5416
5477
  }
5417
5478
  );
5418
5479
  };
5419
- co.displayName = "AddToCart.Tooltip";
5480
+ wo.displayName = "AddToCart.Tooltip";
5420
5481
  const ve = {
5421
- Card: ro,
5422
- Content: no,
5423
- Footer: oo,
5424
- Items: io,
5425
- Modal: ao,
5426
- Root: so,
5427
- Tooltip: co
5428
- }, lo = ({ title: t, ...e }) => {
5429
- const { recentlyAddedProducts: r } = xe(), { isMobile: n } = Pe(), i = r.length > 3 ? 4 : r.length, o = r.length > (i ?? 1), a = r.length > 1;
5482
+ Card: yo,
5483
+ Content: vo,
5484
+ Footer: bo,
5485
+ Items: Po,
5486
+ Modal: Co,
5487
+ Root: Io,
5488
+ Tooltip: wo
5489
+ }, Eo = ({ title: t, ...e }) => {
5490
+ const { recentlyAddedProducts: r } = Me(), { isMobile: n } = Pe(), i = r.length > 3 ? 4 : r.length, o = r.length > (i ?? 1), a = r.length > 1;
5430
5491
  return /* @__PURE__ */ m(
5431
5492
  ve.Root,
5432
5493
  {
5433
5494
  isMobile: n,
5434
5495
  count: r.length,
5435
5496
  component: /* @__PURE__ */ m(ve.Content, { title: t, children: /* @__PURE__ */ m(ve.Items, { thumbnail: a, children: o && /* @__PURE__ */ m(
5436
- Io.Count,
5497
+ jo.Count,
5437
5498
  {
5438
5499
  count: r.length - i,
5439
5500
  size: "medium",
@@ -5444,17 +5505,17 @@ const ve = {
5444
5505
  }
5445
5506
  );
5446
5507
  };
5447
- lo.displayName = "AddToCart";
5448
- const nn = ({
5508
+ Eo.displayName = "AddToCart";
5509
+ const on = ({
5449
5510
  image: t,
5450
5511
  index: e,
5451
5512
  handleZoom: r,
5452
5513
  PRODUCT_IMAGE_DIMENSIONS: n
5453
5514
  }) => {
5454
- const i = fn(
5515
+ const i = pn(
5455
5516
  t.imageUrl,
5456
5517
  n.pdp
5457
- ), { nextimage: o } = Re();
5518
+ ), { nextimage: o } = Oe();
5458
5519
  return /* @__PURE__ */ m(
5459
5520
  o,
5460
5521
  {
@@ -5469,7 +5530,7 @@ const nn = ({
5469
5530
  },
5470
5531
  e
5471
5532
  );
5472
- }, Zs = ({
5533
+ }, cc = ({
5473
5534
  video: t,
5474
5535
  productName: e,
5475
5536
  poster: r
@@ -5496,9 +5557,9 @@ const nn = ({
5496
5557
  poster: r
5497
5558
  }
5498
5559
  );
5499
- }, Js = {
5560
+ }, lc = {
5500
5561
  "gallery-carousel-modifier": "_gallery-carousel-modifier_1pjec_92"
5501
- }, uo = ({
5562
+ }, Ro = ({
5502
5563
  images: t,
5503
5564
  video: e,
5504
5565
  handleZoom: r,
@@ -5518,7 +5579,7 @@ const nn = ({
5518
5579
  innerRef: (f) => {
5519
5580
  o(f);
5520
5581
  },
5521
- className: Js["gallery-carousel-modifier"],
5582
+ className: lc["gallery-carousel-modifier"],
5522
5583
  children: [
5523
5584
  /* @__PURE__ */ m(
5524
5585
  me.Controller,
@@ -5538,9 +5599,9 @@ const nn = ({
5538
5599
  }
5539
5600
  ),
5540
5601
  /* @__PURE__ */ S(me.Body, { children: [
5541
- /* @__PURE__ */ m(me.Item, { style: c, children: /* @__PURE__ */ m(nn, { image: t[0], index: 0, handleZoom: r, PRODUCT_IMAGE_DIMENSIONS: i }) }, "PDP_gallery_0"),
5602
+ /* @__PURE__ */ m(me.Item, { style: c, children: /* @__PURE__ */ m(on, { image: t[0], index: 0, handleZoom: r, PRODUCT_IMAGE_DIMENSIONS: i }) }, "PDP_gallery_0"),
5542
5603
  e && /* @__PURE__ */ m(me.Item, { style: c, children: /* @__PURE__ */ m(
5543
- Zs,
5604
+ cc,
5544
5605
  {
5545
5606
  video: e,
5546
5607
  productName: n,
@@ -5548,7 +5609,7 @@ const nn = ({
5548
5609
  }
5549
5610
  ) }, "PDP_gallery_video"),
5550
5611
  t.map((f, l) => l === 0 ? null : /* @__PURE__ */ m(me.Item, { style: c, children: /* @__PURE__ */ m(
5551
- nn,
5612
+ on,
5552
5613
  {
5553
5614
  image: f,
5554
5615
  index: l,
@@ -5561,16 +5622,16 @@ const nn = ({
5561
5622
  }
5562
5623
  );
5563
5624
  };
5564
- uo.displayName = "PDP.Carousel";
5565
- const ec = ({ productImgs: t, PRODUCT_IMAGE_DIMENSIONS: e }) => {
5566
- const { video: r, productName: n } = Yt(), [i, o] = W({
5625
+ Ro.displayName = "PDP.Carousel";
5626
+ const uc = ({ productImgs: t, PRODUCT_IMAGE_DIMENSIONS: e }) => {
5627
+ const { video: r, productName: n } = Jt(), [i, o] = B({
5567
5628
  show: !1,
5568
5629
  initialIndex: 0
5569
5630
  });
5570
5631
  return J(() => (i.show ? document.body.classList.add("no-scroll") : document.body.classList.remove("no-scroll"), () => {
5571
5632
  document.body.classList.remove("no-scroll");
5572
5633
  }), [i]), /* @__PURE__ */ m(_e, { children: /* @__PURE__ */ m(
5573
- uo,
5634
+ Ro,
5574
5635
  {
5575
5636
  images: t,
5576
5637
  video: r,
@@ -5581,39 +5642,39 @@ const ec = ({ productImgs: t, PRODUCT_IMAGE_DIMENSIONS: e }) => {
5581
5642
  PRODUCT_IMAGE_DIMENSIONS: e
5582
5643
  }
5583
5644
  ) });
5584
- }, fo = ({ TEXTURE_IMAGE: t, PRODUCT_IMAGE_DIMENSIONS: e }) => {
5585
- const { images: r } = Yt(), n = Le(() => {
5645
+ }, No = ({ TEXTURE_IMAGE: t, PRODUCT_IMAGE_DIMENSIONS: e }) => {
5646
+ const { images: r } = Jt(), n = Ae(() => {
5586
5647
  const i = r.filter((o) => o.imageLabel !== t);
5587
5648
  return i.length > 0 ? i : r;
5588
5649
  }, []);
5589
- return /* @__PURE__ */ m(ec, { productImgs: n, PRODUCT_IMAGE_DIMENSIONS: e });
5650
+ return /* @__PURE__ */ m(uc, { productImgs: n, PRODUCT_IMAGE_DIMENSIONS: e });
5590
5651
  };
5591
- fo.displayName = "PDP.Gallery";
5592
- const tc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5652
+ No.displayName = "PDP.Gallery";
5653
+ const dc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5593
5654
  __proto__: null,
5594
- Gallery: fo
5595
- }, Symbol.toStringTag, { value: "Module" })), _c = {
5655
+ Gallery: No
5656
+ }, Symbol.toStringTag, { value: "Module" })), Rc = {
5596
5657
  teamComponents: {
5597
- AddToCart: lo,
5598
- BackToTop: us,
5599
- Footer: Xn,
5600
- FreightCalculation: rs,
5601
- Link: Gn,
5658
+ AddToCart: Eo,
5659
+ BackToTop: bs,
5660
+ Footer: fo,
5661
+ FreightCalculation: fs,
5662
+ Link: co,
5602
5663
  Media: st
5603
5664
  },
5604
5665
  template: {
5605
- pdp: tc
5666
+ pdp: dc
5606
5667
  },
5607
5668
  utils: {
5608
- EventCollector: ds,
5609
- ExternalScripts: Ws,
5610
- LinkOrNotLink: fs,
5611
- ObserverWrapper: is
5669
+ EventCollector: Ps,
5670
+ ExternalScripts: rc,
5671
+ LinkOrNotLink: Cs,
5672
+ ObserverWrapper: hs
5612
5673
  }
5613
5674
  };
5614
5675
  export {
5615
- hc as cms,
5616
- mc as contexts,
5617
- Di as data,
5618
- _c as layout
5676
+ Ec as cms,
5677
+ wc as contexts,
5678
+ Hi as data,
5679
+ Rc as layout
5619
5680
  };