@soma-vertical-web/multi-lib 0.0.18 → 0.0.20
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/contexts/contexts/NextContext.d.ts +0 -2
- package/contexts/index.d.ts +0 -1
- package/index.js +3 -3
- package/index.mjs +435 -435
- package/package.json +1 -1
- package/types/constants.d.ts +1 -0
- package/types/contexts/contexts/next.d.ts +0 -2
- package/types/layout/team-components/ProductCard/index.d.ts +2 -1
package/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ var ti = Object.defineProperty;
|
|
|
2
2
|
var ri = (e, t, r) => t in e ? ti(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var At = (e, t, r) => ri(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
4
|
import { jsx as l, jsxs as I, Fragment as ne } from "react/jsx-runtime";
|
|
5
|
-
import
|
|
5
|
+
import Pe, { createContext as de, useContext as fe, useCallback as re, useEffect as te, useRef as U, useState as Y, useMemo as We, Children as ni, createElement as oi } from "react";
|
|
6
6
|
import { get as Mt, set as xt } from "idb-keyval";
|
|
7
7
|
import { create as et } from "zustand";
|
|
8
8
|
import { helpers as j, Tag as tt, TextStructure as H, ProductInfo as ce, ToggleStyle as Ze, Utils as Et, ToggleSize as Ue, Button as Re, Modal as Fe, Tooltip as It, Badge as mr, Card as zn, Icon as W, Accordion as Lt, Header as J, ComponentList as Oe, Banner as kt, TextField as Wr, Spinner as ai, Carousel as Ee } from "@soma-vertical-web/core-components";
|
|
@@ -11,13 +11,13 @@ import { C as ii } from "./server-DvV_v1l2.mjs";
|
|
|
11
11
|
import si from "react-dom";
|
|
12
12
|
import { SizesSmallExtended as ci, Mode as li } from "@soma-vertical-web/foundations";
|
|
13
13
|
import Br from "axios";
|
|
14
|
-
const
|
|
14
|
+
const Pr = de(
|
|
15
15
|
{}
|
|
16
16
|
), ui = ({
|
|
17
17
|
data: e,
|
|
18
18
|
children: t
|
|
19
|
-
}) => /* @__PURE__ */ l(
|
|
20
|
-
const { tags: e } = fe(
|
|
19
|
+
}) => /* @__PURE__ */ l(Pr.Provider, { value: { tags: e == null ? void 0 : e.config }, children: t }), $n = () => {
|
|
20
|
+
const { tags: e } = fe(Pr), t = re(
|
|
21
21
|
(r) => {
|
|
22
22
|
var i, s, c, u;
|
|
23
23
|
const n = (s = (i = e == null ? void 0 : e.commercial) == null ? void 0 : i.items) == null ? void 0 : s.find(
|
|
@@ -97,10 +97,10 @@ const Nr = de(
|
|
|
97
97
|
r.price = c, r.listPrice = u;
|
|
98
98
|
const f = (d = m == null ? void 0 : m[0]) == null ? void 0 : d.installments;
|
|
99
99
|
if (f) {
|
|
100
|
-
const { count: h, value:
|
|
100
|
+
const { count: h, value: g } = f[f.length - 1];
|
|
101
101
|
r.installments = {
|
|
102
102
|
count: h,
|
|
103
|
-
value:
|
|
103
|
+
value: g / 100
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
};
|
|
@@ -268,7 +268,7 @@ const Nr = de(
|
|
|
268
268
|
} = e;
|
|
269
269
|
let u = 0;
|
|
270
270
|
const m = r.map((f) => {
|
|
271
|
-
var p,
|
|
271
|
+
var p, _, y, S, P, b, v, C, N;
|
|
272
272
|
const d = a == null ? void 0 : a.find(
|
|
273
273
|
(w) => (f.productId ?? f.id) === w.productId
|
|
274
274
|
);
|
|
@@ -292,8 +292,8 @@ const Nr = de(
|
|
|
292
292
|
sku: (d == null ? void 0 : d.id) ?? (d == null ? void 0 : d.sku)
|
|
293
293
|
});
|
|
294
294
|
}
|
|
295
|
-
u += f.price ?? ((y = (
|
|
296
|
-
const
|
|
295
|
+
u += f.price ?? ((y = (_ = (p = d == null ? void 0 : d.offers) == null ? void 0 : p.offers) == null ? void 0 : _[0]) == null ? void 0 : y.price) ?? 0;
|
|
296
|
+
const g = (d == null ? void 0 : d.size) ?? Sr(
|
|
297
297
|
(d == null ? void 0 : d.skuName) ?? (d == null ? void 0 : d.name) ?? ((S = f.itemOffered) == null ? void 0 : S.skuName),
|
|
298
298
|
G.configs.NAME_SPLIT_SYMBOL
|
|
299
299
|
).size;
|
|
@@ -305,10 +305,10 @@ const Nr = de(
|
|
|
305
305
|
...i,
|
|
306
306
|
...s
|
|
307
307
|
},
|
|
308
|
-
item_sku: (d == null ? void 0 : d.id) ?? (d == null ? void 0 : d.sku) ?? ((
|
|
308
|
+
item_sku: (d == null ? void 0 : d.id) ?? (d == null ? void 0 : d.sku) ?? ((P = f.itemOffered) == null ? void 0 : P.sku),
|
|
309
309
|
quantity: (n == null ? void 0 : n.quantity) ?? f.quantity ?? 1,
|
|
310
|
-
item_variant2:
|
|
311
|
-
seller_id: (d == null ? void 0 : d.sellerId) ?? (d == null ? void 0 : d.seller) ?? ((
|
|
310
|
+
item_variant2: g,
|
|
311
|
+
seller_id: (d == null ? void 0 : d.sellerId) ?? (d == null ? void 0 : d.seller) ?? ((N = (C = (v = (b = d == null ? void 0 : d.offers) == null ? void 0 : b.offers) == null ? void 0 : v[0]) == null ? void 0 : C.seller) == null ? void 0 : N.identifier) ?? f.seller
|
|
312
312
|
},
|
|
313
313
|
configs: G.configs
|
|
314
314
|
});
|
|
@@ -342,7 +342,7 @@ const Nr = de(
|
|
|
342
342
|
});
|
|
343
343
|
},
|
|
344
344
|
viewCartEvent: (e) => {
|
|
345
|
-
var m, f, d, h,
|
|
345
|
+
var m, f, d, h, g, p, _, y, S, P;
|
|
346
346
|
const { commonData: t, outsideEcommerceData: r } = e, { cartStore: n } = t;
|
|
347
347
|
if (!n)
|
|
348
348
|
return;
|
|
@@ -362,7 +362,7 @@ const Nr = de(
|
|
|
362
362
|
},
|
|
363
363
|
configs: G.configs
|
|
364
364
|
});
|
|
365
|
-
}), s = (((m = n.totalizers.find((b) => b.name === "Total dos Itens")) == null ? void 0 : m.value) ?? 0) / 100, c = (((f = n.totalizers.find((b) => b.name === "Total dos Descontos")) == null ? void 0 : f.value) ?? 0) / 100, u = ((d = n.marketingData) == null ? void 0 : d.utmiCampaign) === "codigodavendedora" ? (h = n.marketingData) == null ? void 0 : h.utmCampaign : (p = String((
|
|
365
|
+
}), s = (((m = n.totalizers.find((b) => b.name === "Total dos Itens")) == null ? void 0 : m.value) ?? 0) / 100, c = (((f = n.totalizers.find((b) => b.name === "Total dos Descontos")) == null ? void 0 : f.value) ?? 0) / 100, u = ((d = n.marketingData) == null ? void 0 : d.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];
|
|
366
366
|
we({
|
|
367
367
|
event: "view_cart",
|
|
368
368
|
data: {
|
|
@@ -371,10 +371,10 @@ const Nr = de(
|
|
|
371
371
|
currency: G.configs.currency,
|
|
372
372
|
value: s + c,
|
|
373
373
|
total_discount: Math.abs(c),
|
|
374
|
-
cep_preenchido: !!((y = (
|
|
374
|
+
cep_preenchido: !!((y = (_ = n.shippingData) == null ? void 0 : _.address) != null && y.postalCode),
|
|
375
375
|
...u ? { seller_coupon_name: u } : {},
|
|
376
376
|
...((S = n.marketingData) == null ? void 0 : S.coupon) && {
|
|
377
|
-
sale_coupon_name: (
|
|
377
|
+
sale_coupon_name: (P = n.marketingData) == null ? void 0 : P.coupon
|
|
378
378
|
},
|
|
379
379
|
subtotal: s,
|
|
380
380
|
items: i
|
|
@@ -431,15 +431,15 @@ const Nr = de(
|
|
|
431
431
|
}
|
|
432
432
|
e && t === "remove" && (delete e[r], window.localStorage.setItem("persistedCartEventsData", JSON.stringify(e)));
|
|
433
433
|
}, gi = (e, t = "1") => {
|
|
434
|
-
var o, i, s, c, u, m, f, d, h,
|
|
434
|
+
var o, i, s, c, u, m, f, d, h, g, p;
|
|
435
435
|
const r = e.productReference ?? e.gtin ?? e.productRefId, n = e.image ?? ((i = (o = e.items) == null ? void 0 : o[0]) == null ? void 0 : i.images) ?? ((s = e.itemOffered) == null ? void 0 : s.image), a = n == null ? void 0 : n.find(
|
|
436
|
-
(
|
|
436
|
+
(_) => _.alternateName === t || _.imageLabel === t || _.keywords === t
|
|
437
437
|
);
|
|
438
438
|
return {
|
|
439
439
|
item_id: e.productId ?? ((c = e.isVariantOf) == null ? void 0 : c.productGroupID) ?? ((u = e.isVariationOf) == null ? void 0 : u.productGroupID) ?? ((f = (m = e.itemOffered) == null ? void 0 : m.isVariationOf) == null ? void 0 : f.productGroupID),
|
|
440
440
|
item_ref: /_\d$/.test(r) ? r.slice(0, -2) : r,
|
|
441
441
|
item_name: e.productTitle ?? e.productName ?? e.name ?? Ir((d = e.itemOffered) == null ? void 0 : d.name, G.configs.NAME_SPLIT_SYMBOL).name,
|
|
442
|
-
item_brand: ((h = e.brand) == null ? void 0 : h.brandName) ?? ((
|
|
442
|
+
item_brand: ((h = e.brand) == null ? void 0 : h.brandName) ?? ((g = e.brand) == null ? void 0 : g.name) ?? e.brand ?? ((p = e.itemOffered) == null ? void 0 : p.brand.name),
|
|
443
443
|
item_url: `${G.configs.storeUrl}${e.linkText}/p`,
|
|
444
444
|
item_image: (a == null ? void 0 : a.url) ?? (a == null ? void 0 : a.imageUrl)
|
|
445
445
|
};
|
|
@@ -498,7 +498,7 @@ const Nr = de(
|
|
|
498
498
|
getProductListInfoFromHead: eo,
|
|
499
499
|
pushDatalayer: we,
|
|
500
500
|
updatePersistedData: pr
|
|
501
|
-
}, Symbol.toStringTag, { value: "Module" })), oo = de({}),
|
|
501
|
+
}, Symbol.toStringTag, { value: "Module" })), oo = de({}), Ni = ({ children: e, evtFunctionsConfigs: t }) => {
|
|
502
502
|
const r = U({}), n = U(null), a = U(null), o = U({}), i = U({
|
|
503
503
|
trigger: !1,
|
|
504
504
|
index: 0
|
|
@@ -511,14 +511,14 @@ const Nr = de(
|
|
|
511
511
|
window.dataLayer || (window.dataLayer = []), G.configs = t;
|
|
512
512
|
try {
|
|
513
513
|
typeof G[m] == "function" && setTimeout(() => {
|
|
514
|
-
var
|
|
515
|
-
f.promotionInfo = r.current, (
|
|
514
|
+
var g;
|
|
515
|
+
f.promotionInfo = r.current, (g = a.current) != null && g.item_list_name && (f.itemList = a.current), G[m](f, d);
|
|
516
516
|
}, h);
|
|
517
|
-
} catch (
|
|
517
|
+
} catch (g) {
|
|
518
518
|
we({
|
|
519
519
|
event: "error_event",
|
|
520
520
|
data: {
|
|
521
|
-
error_message: (
|
|
521
|
+
error_message: (g == null ? void 0 : g.message) ?? g
|
|
522
522
|
}
|
|
523
523
|
});
|
|
524
524
|
}
|
|
@@ -568,7 +568,7 @@ const Nr = de(
|
|
|
568
568
|
children: e
|
|
569
569
|
}
|
|
570
570
|
);
|
|
571
|
-
}, V = () => fe(oo), ao = de({}),
|
|
571
|
+
}, V = () => fe(oo), ao = de({}), Pi = ({
|
|
572
572
|
children: e,
|
|
573
573
|
productData: t,
|
|
574
574
|
isKit: r,
|
|
@@ -583,14 +583,14 @@ const Nr = de(
|
|
|
583
583
|
items: [{ images: m, Videos: f }],
|
|
584
584
|
description: d,
|
|
585
585
|
["Composição"]: h = "",
|
|
586
|
-
productReference:
|
|
586
|
+
productReference: g,
|
|
587
587
|
categories: [p]
|
|
588
|
-
} = t, { getAvailableProductTag:
|
|
588
|
+
} = t, { getAvailableProductTag: _ } = $n(), y = _(
|
|
589
589
|
Object.entries(t.clusterHighlights).map((E) => ({
|
|
590
590
|
id: E[0],
|
|
591
591
|
name: E[1]
|
|
592
592
|
}))
|
|
593
|
-
), S = p.slice(1, -1).split("/"), { installments:
|
|
593
|
+
), S = p.slice(1, -1).split("/"), { installments: P, price: b, listPrice: v, sizes: C, allSizesAvailable: N } = Bn({ items: u, NAME_SPLIT_SYMBOL: a }), w = Kn(m), T = [
|
|
594
594
|
{
|
|
595
595
|
label: `${n.product.description}`,
|
|
596
596
|
value: "description",
|
|
@@ -607,11 +607,11 @@ const Nr = de(
|
|
|
607
607
|
sizes: C,
|
|
608
608
|
price: b,
|
|
609
609
|
listPrice: v,
|
|
610
|
-
installments:
|
|
610
|
+
installments: P
|
|
611
611
|
},
|
|
612
612
|
customData: {
|
|
613
|
-
installments:
|
|
614
|
-
installment_value: Number(
|
|
613
|
+
installments: P == null ? void 0 : P.count,
|
|
614
|
+
installment_value: Number(P == null ? void 0 : P.value).toFixed(2)
|
|
615
615
|
}
|
|
616
616
|
}), O = ({
|
|
617
617
|
sku: E,
|
|
@@ -654,12 +654,12 @@ const Nr = de(
|
|
|
654
654
|
productData: t,
|
|
655
655
|
productId: s,
|
|
656
656
|
productName: c,
|
|
657
|
-
productReference:
|
|
657
|
+
productReference: g,
|
|
658
658
|
tag: y,
|
|
659
659
|
items: u,
|
|
660
660
|
sizes: C,
|
|
661
|
-
allSizesAvailable:
|
|
662
|
-
installments:
|
|
661
|
+
allSizesAvailable: N,
|
|
662
|
+
installments: P,
|
|
663
663
|
price: b,
|
|
664
664
|
listPrice: v,
|
|
665
665
|
thumbImage: w,
|
|
@@ -738,12 +738,12 @@ const Nr = de(
|
|
|
738
738
|
price: f,
|
|
739
739
|
priceDefinition: d,
|
|
740
740
|
productCategories: h,
|
|
741
|
-
productCategoryIds:
|
|
741
|
+
productCategoryIds: g,
|
|
742
742
|
productId: p,
|
|
743
|
-
refId:
|
|
743
|
+
refId: _,
|
|
744
744
|
seller: y,
|
|
745
745
|
referenceId: S,
|
|
746
|
-
offerings:
|
|
746
|
+
offerings: P,
|
|
747
747
|
productRefId: b,
|
|
748
748
|
skuName: v,
|
|
749
749
|
sellingPrice: C
|
|
@@ -760,9 +760,9 @@ const Nr = de(
|
|
|
760
760
|
brand: {
|
|
761
761
|
name: r
|
|
762
762
|
},
|
|
763
|
-
categories: io(
|
|
764
|
-
categoriesIds:
|
|
765
|
-
gtin:
|
|
763
|
+
categories: io(g, h),
|
|
764
|
+
categoriesIds: g,
|
|
765
|
+
gtin: _,
|
|
766
766
|
image: [
|
|
767
767
|
{
|
|
768
768
|
alternateName: "1",
|
|
@@ -780,7 +780,7 @@ const Nr = de(
|
|
|
780
780
|
},
|
|
781
781
|
listPrice: u,
|
|
782
782
|
quantity: m,
|
|
783
|
-
offerings:
|
|
783
|
+
offerings: P,
|
|
784
784
|
price: f,
|
|
785
785
|
priceDefinition: d,
|
|
786
786
|
sellingPrice: C,
|
|
@@ -960,12 +960,12 @@ const Nr = de(
|
|
|
960
960
|
}
|
|
961
961
|
}), t = async (d, h) => {
|
|
962
962
|
if (h) {
|
|
963
|
-
const
|
|
963
|
+
const g = h.includes(" - ") ? h.split(" - ")[0] : h, p = await oe(
|
|
964
964
|
"/api/checkout/order-form/seller-code",
|
|
965
965
|
{
|
|
966
966
|
body: {
|
|
967
967
|
orderFormId: d,
|
|
968
|
-
sellerCode:
|
|
968
|
+
sellerCode: g
|
|
969
969
|
}
|
|
970
970
|
},
|
|
971
971
|
!0
|
|
@@ -973,13 +973,13 @@ const Nr = de(
|
|
|
973
973
|
return oe("/api/checkout/order-form/attachments", {
|
|
974
974
|
body: {
|
|
975
975
|
orderFormId: d,
|
|
976
|
-
sellerCode:
|
|
976
|
+
sellerCode: g,
|
|
977
977
|
sellerName: p instanceof Object && "nome" in p ? p == null ? void 0 : p.nome : ""
|
|
978
978
|
}
|
|
979
|
-
}).then((
|
|
980
|
-
...
|
|
979
|
+
}).then((_) => ({
|
|
980
|
+
..._,
|
|
981
981
|
openTextField: {
|
|
982
|
-
...(
|
|
982
|
+
...(_ == null ? void 0 : _.openTextField) ?? {},
|
|
983
983
|
statusOk: (p == null ? void 0 : p.status) ?? !1
|
|
984
984
|
}
|
|
985
985
|
}));
|
|
@@ -991,15 +991,15 @@ const Nr = de(
|
|
|
991
991
|
sellerName: ""
|
|
992
992
|
}
|
|
993
993
|
});
|
|
994
|
-
}, r = async (d, h,
|
|
994
|
+
}, r = async (d, h, g) => oe("/api/checkout/order-form/items", {
|
|
995
995
|
body: {
|
|
996
996
|
orderFormId: d,
|
|
997
|
-
orderItems: co(h,
|
|
997
|
+
orderItems: co(h, g)
|
|
998
998
|
}
|
|
999
|
-
}), n = async (d, h,
|
|
999
|
+
}), n = async (d, h, g, p) => oe("/api/checkout/order-form/offerings", {
|
|
1000
1000
|
body: {
|
|
1001
1001
|
id: h,
|
|
1002
|
-
itemIndex:
|
|
1002
|
+
itemIndex: g,
|
|
1003
1003
|
orderFormId: d,
|
|
1004
1004
|
remove: p
|
|
1005
1005
|
}
|
|
@@ -1013,32 +1013,32 @@ const Nr = de(
|
|
|
1013
1013
|
orderFormId: d,
|
|
1014
1014
|
email: h
|
|
1015
1015
|
}
|
|
1016
|
-
}), s = async (d, h,
|
|
1017
|
-
const p = lo(h,
|
|
1016
|
+
}), s = async (d, h, g) => {
|
|
1017
|
+
const p = lo(h, g);
|
|
1018
1018
|
return oe("/api/checkout/order-form/items/update", {
|
|
1019
1019
|
body: {
|
|
1020
1020
|
orderItems: p.updateItems,
|
|
1021
1021
|
orderFormId: d
|
|
1022
1022
|
}
|
|
1023
1023
|
});
|
|
1024
|
-
}, c = async (d, h,
|
|
1024
|
+
}, c = async (d, h, g) => oe("/api/checkout/order-form/shipping", {
|
|
1025
1025
|
body: {
|
|
1026
1026
|
orderFormId: d,
|
|
1027
|
-
country:
|
|
1027
|
+
country: g,
|
|
1028
1028
|
postalCode: h
|
|
1029
1029
|
}
|
|
1030
|
-
}), u = async (d, h,
|
|
1030
|
+
}), u = async (d, h, g) => oe("/api/checkout/order-form/shipping/update", {
|
|
1031
1031
|
body: {
|
|
1032
1032
|
orderFormId: d,
|
|
1033
1033
|
options: h,
|
|
1034
|
-
selectedAddresses:
|
|
1034
|
+
selectedAddresses: g
|
|
1035
1035
|
}
|
|
1036
|
-
}), m = async (d, h,
|
|
1037
|
-
const
|
|
1036
|
+
}), m = async (d, h, g, p) => {
|
|
1037
|
+
const _ = uo(h, g, p);
|
|
1038
1038
|
return oe("/api/checkout/order-form/items/update", {
|
|
1039
1039
|
body: {
|
|
1040
1040
|
orderFormId: d,
|
|
1041
|
-
orderItems:
|
|
1041
|
+
orderItems: _
|
|
1042
1042
|
}
|
|
1043
1043
|
});
|
|
1044
1044
|
};
|
|
@@ -1053,16 +1053,16 @@ const Nr = de(
|
|
|
1053
1053
|
removeItem: s,
|
|
1054
1054
|
shipping: c,
|
|
1055
1055
|
shippingUpdate: u,
|
|
1056
|
-
updateItemQuantity: async (d, h,
|
|
1056
|
+
updateItemQuantity: async (d, h, g, p, _) => m(
|
|
1057
1057
|
d,
|
|
1058
1058
|
h,
|
|
1059
|
-
|
|
1059
|
+
g,
|
|
1060
1060
|
p
|
|
1061
|
-
).then((y) => y && Array.isArray(y.items) ? mo(y.items,
|
|
1061
|
+
).then((y) => y && Array.isArray(y.items) ? mo(y.items, g) ? m(
|
|
1062
1062
|
d,
|
|
1063
1063
|
h,
|
|
1064
|
-
|
|
1065
|
-
|
|
1064
|
+
g,
|
|
1065
|
+
_
|
|
1066
1066
|
) : y : !1)
|
|
1067
1067
|
};
|
|
1068
1068
|
}, gr = "soma::cart", Ye = "soma::options", Be = et((e, t) => {
|
|
@@ -1190,9 +1190,9 @@ const Nr = de(
|
|
|
1190
1190
|
notifications: r.notifications.filter((n) => n.id !== t)
|
|
1191
1191
|
}))
|
|
1192
1192
|
}
|
|
1193
|
-
})),
|
|
1193
|
+
})), No = () => Co(
|
|
1194
1194
|
(e) => e.notifications
|
|
1195
|
-
),
|
|
1195
|
+
), Po = () => Co(
|
|
1196
1196
|
(e) => e.actions
|
|
1197
1197
|
), Li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1198
1198
|
__proto__: null,
|
|
@@ -1200,8 +1200,8 @@ const Nr = de(
|
|
|
1200
1200
|
KEY_INDEXED_STORE: gr,
|
|
1201
1201
|
useCartStore: Be,
|
|
1202
1202
|
useGetCartStoreState: xi,
|
|
1203
|
-
useGetNotificationActions:
|
|
1204
|
-
useGetNotificationsStore:
|
|
1203
|
+
useGetNotificationActions: Po,
|
|
1204
|
+
useGetNotificationsStore: No
|
|
1205
1205
|
}, Symbol.toStringTag, { value: "Module" })), ki = 6e3, Io = de({}), So = ({ children: e, ...t }) => {
|
|
1206
1206
|
const { items: r } = Be(), [n, a] = Y([]), o = U(null), i = We(() => Array.isArray(n) && n.length > 0 ? n.map((s) => r.find((c) => c.id === s.id)).filter((s) => s !== void 0) : [], [r, n]);
|
|
1207
1207
|
return te(() => {
|
|
@@ -1291,7 +1291,7 @@ const wo = de({}), Di = ({ children: e, headerConfigs: t, pathname: r, ...n }) =
|
|
|
1291
1291
|
},
|
|
1292
1292
|
children: e
|
|
1293
1293
|
}
|
|
1294
|
-
),
|
|
1294
|
+
), Ie = () => fe(Oo), ke = (e, t) => et((r) => {
|
|
1295
1295
|
const n = () => r({ value: e });
|
|
1296
1296
|
return t && t instanceof Set && t.add(n), {
|
|
1297
1297
|
value: e,
|
|
@@ -1391,16 +1391,16 @@ const wo = de({}), Di = ({ children: e, headerConfigs: t, pathname: r, ...n }) =
|
|
|
1391
1391
|
return (c = i.current) == null || c.subscribe(
|
|
1392
1392
|
"header:change_variant",
|
|
1393
1393
|
(m) => {
|
|
1394
|
-
var p,
|
|
1394
|
+
var p, _, y;
|
|
1395
1395
|
if (m && s.current && (s.current.bannerVariant = m), !n.current)
|
|
1396
1396
|
return;
|
|
1397
1397
|
const d = document.body.scrollTop > 0, h = n.current.getAttribute(
|
|
1398
1398
|
"data-interactiveVariant"
|
|
1399
|
-
),
|
|
1400
|
-
|
|
1399
|
+
), g = d ? h : m ?? ((p = s.current) == null ? void 0 : p.bannerVariant) ?? "default";
|
|
1400
|
+
g !== ((_ = s.current) == null ? void 0 : _.headerVariant) && (n.current.setAttribute("data-bottomdivider", String(d)), n.current.setAttribute("data-variant", String(g)), (y = i.current) == null || y.publish(
|
|
1401
1401
|
"herobanner:change_controllers_variant",
|
|
1402
|
-
|
|
1403
|
-
), s.current && (s.current.headerVariant =
|
|
1402
|
+
g
|
|
1403
|
+
), s.current && (s.current.headerVariant = g));
|
|
1404
1404
|
}
|
|
1405
1405
|
), (u = i.current) == null || u.subscribe(
|
|
1406
1406
|
"header:change_position",
|
|
@@ -1514,8 +1514,8 @@ const wo = de({}), Di = ({ children: e, headerConfigs: t, pathname: r, ...n }) =
|
|
|
1514
1514
|
"#add-to-cart--tooltip"
|
|
1515
1515
|
);
|
|
1516
1516
|
if (d && h) {
|
|
1517
|
-
const { left:
|
|
1518
|
-
m({ left:
|
|
1517
|
+
const { left: g, top: p } = rs(h, d, r ?? 0);
|
|
1518
|
+
m({ left: g, top: p }), c(!1);
|
|
1519
1519
|
}
|
|
1520
1520
|
}, [r, a]), /* @__PURE__ */ l(
|
|
1521
1521
|
Fo.Provider,
|
|
@@ -1551,16 +1551,16 @@ const wo = de({}), Di = ({ children: e, headerConfigs: t, pathname: r, ...n }) =
|
|
|
1551
1551
|
);
|
|
1552
1552
|
return e;
|
|
1553
1553
|
}, Ho = de({}), ns = ({ children: e, CARTPROVIDER_MESSAGE_PRODUCT_REMOVE: t, ...r }) => {
|
|
1554
|
-
const n = Be(), { setRecentlyAdded: a } = rt(), o =
|
|
1554
|
+
const n = Be(), { setRecentlyAdded: a } = rt(), o = No(), { addNotification: i, removeNotification: s } = Po(), {
|
|
1555
1555
|
addCoupon: c,
|
|
1556
1556
|
addItem: u,
|
|
1557
1557
|
addSellerCode: m,
|
|
1558
1558
|
emptyCart: f,
|
|
1559
1559
|
isOpen: d,
|
|
1560
1560
|
removeItem: h,
|
|
1561
|
-
shipping:
|
|
1561
|
+
shipping: g,
|
|
1562
1562
|
shippingUpdate: p,
|
|
1563
|
-
toggleServiceToProduct:
|
|
1563
|
+
toggleServiceToProduct: _,
|
|
1564
1564
|
updateItemQuantity: y
|
|
1565
1565
|
} = n, S = re(
|
|
1566
1566
|
async (O, R) => (R === "coupon" ? c(O) : m(O)).then((E) => {
|
|
@@ -1574,7 +1574,7 @@ const wo = de({}), Di = ({ children: e, headerConfigs: t, pathname: r, ...n }) =
|
|
|
1574
1574
|
return $e("", "");
|
|
1575
1575
|
}).catch(() => Promise.resolve({ code: 400 })),
|
|
1576
1576
|
[c, m]
|
|
1577
|
-
),
|
|
1577
|
+
), P = re(
|
|
1578
1578
|
(O, R, x) => {
|
|
1579
1579
|
const { id: E } = O;
|
|
1580
1580
|
y(E, R, x);
|
|
@@ -1587,7 +1587,7 @@ const wo = de({}), Di = ({ children: e, headerConfigs: t, pathname: r, ...n }) =
|
|
|
1587
1587
|
const { id: E } = O, L = _r(n.items, E);
|
|
1588
1588
|
if (L !== -1 && !x) {
|
|
1589
1589
|
const q = Number(n.items[L].quantity), $ = n.items[L] ? q + 1 : 1;
|
|
1590
|
-
|
|
1590
|
+
P(O, $, R);
|
|
1591
1591
|
} else
|
|
1592
1592
|
u({
|
|
1593
1593
|
id: E,
|
|
@@ -1596,7 +1596,7 @@ const wo = de({}), Di = ({ children: e, headerConfigs: t, pathname: r, ...n }) =
|
|
|
1596
1596
|
});
|
|
1597
1597
|
d || a((q) => [...q, O]);
|
|
1598
1598
|
},
|
|
1599
|
-
[u,
|
|
1599
|
+
[u, P, n.items, d, a]
|
|
1600
1600
|
), v = re(
|
|
1601
1601
|
(O, R) => {
|
|
1602
1602
|
if (!O || !Array.isArray(O))
|
|
@@ -1619,11 +1619,11 @@ const wo = de({}), Di = ({ children: e, headerConfigs: t, pathname: r, ...n }) =
|
|
|
1619
1619
|
x
|
|
1620
1620
|
), $e(O, O))) : Promise.resolve($e("", "Product id required")),
|
|
1621
1621
|
[i, h]
|
|
1622
|
-
),
|
|
1622
|
+
), N = re(() => {
|
|
1623
1623
|
n.items.length > 0 && f();
|
|
1624
1624
|
}, [f, n.items]), w = re(
|
|
1625
|
-
(O, R = "BRA") =>
|
|
1626
|
-
[
|
|
1625
|
+
(O, R = "BRA") => g(O, R),
|
|
1626
|
+
[g]
|
|
1627
1627
|
), T = re(
|
|
1628
1628
|
(O) => {
|
|
1629
1629
|
O && p(O);
|
|
@@ -1632,9 +1632,9 @@ const wo = de({}), Di = ({ children: e, headerConfigs: t, pathname: r, ...n }) =
|
|
|
1632
1632
|
), A = re(
|
|
1633
1633
|
async (O, R, x) => {
|
|
1634
1634
|
const E = n.items.findIndex((q) => q.id === O);
|
|
1635
|
-
return n.items[E] && E >= 0 ?
|
|
1635
|
+
return n.items[E] && E >= 0 ? _(R, E, x ?? !1) : !1;
|
|
1636
1636
|
},
|
|
1637
|
-
[n.items,
|
|
1637
|
+
[n.items, _]
|
|
1638
1638
|
), z = re(
|
|
1639
1639
|
async (O, R) => y(O, R).then((x) => {
|
|
1640
1640
|
if (Array.isArray(x)) {
|
|
@@ -1657,7 +1657,7 @@ const wo = de({}), Di = ({ children: e, headerConfigs: t, pathname: r, ...n }) =
|
|
|
1657
1657
|
addItemsToCart: v,
|
|
1658
1658
|
cartStore: n,
|
|
1659
1659
|
notifications: o,
|
|
1660
|
-
clearCart:
|
|
1660
|
+
clearCart: N,
|
|
1661
1661
|
addNotification: i,
|
|
1662
1662
|
isOpen: n.isOpen,
|
|
1663
1663
|
removeNotification: s,
|
|
@@ -1674,7 +1674,7 @@ const wo = de({}), Di = ({ children: e, headerConfigs: t, pathname: r, ...n }) =
|
|
|
1674
1674
|
b,
|
|
1675
1675
|
v,
|
|
1676
1676
|
o,
|
|
1677
|
-
|
|
1677
|
+
N,
|
|
1678
1678
|
i,
|
|
1679
1679
|
n,
|
|
1680
1680
|
s,
|
|
@@ -1705,14 +1705,14 @@ const wo = de({}), Di = ({ children: e, headerConfigs: t, pathname: r, ...n }) =
|
|
|
1705
1705
|
},
|
|
1706
1706
|
cms: {
|
|
1707
1707
|
FlagsAndTags: {
|
|
1708
|
-
context:
|
|
1708
|
+
context: Pr,
|
|
1709
1709
|
hook: $n,
|
|
1710
1710
|
provider: ui
|
|
1711
1711
|
}
|
|
1712
1712
|
},
|
|
1713
1713
|
events: {
|
|
1714
1714
|
hook: V,
|
|
1715
|
-
provider:
|
|
1715
|
+
provider: Ni
|
|
1716
1716
|
},
|
|
1717
1717
|
global: {
|
|
1718
1718
|
hook: Ae,
|
|
@@ -1728,7 +1728,7 @@ const wo = de({}), Di = ({ children: e, headerConfigs: t, pathname: r, ...n }) =
|
|
|
1728
1728
|
provider: $o
|
|
1729
1729
|
},
|
|
1730
1730
|
next: {
|
|
1731
|
-
hook:
|
|
1731
|
+
hook: Ie,
|
|
1732
1732
|
provider: qi
|
|
1733
1733
|
},
|
|
1734
1734
|
pdp: {
|
|
@@ -1737,7 +1737,7 @@ const wo = de({}), Di = ({ children: e, headerConfigs: t, pathname: r, ...n }) =
|
|
|
1737
1737
|
},
|
|
1738
1738
|
pdpdata: {
|
|
1739
1739
|
hook: Er,
|
|
1740
|
-
provider:
|
|
1740
|
+
provider: Pi
|
|
1741
1741
|
},
|
|
1742
1742
|
ui: {
|
|
1743
1743
|
hook: rt,
|
|
@@ -1878,12 +1878,12 @@ const ms = (e, t) => t.getTime() > e.getTime() ? Math.abs(t.getTime() - e.getTim
|
|
|
1878
1878
|
configurationSchemaSet: bs,
|
|
1879
1879
|
configuration: vs,
|
|
1880
1880
|
schema: ys
|
|
1881
|
-
},
|
|
1881
|
+
}, Ns = (e) => e, Ps = (e) => ({
|
|
1882
1882
|
...e.uiWidget ? { "ui:widget": e.uiWidget } : {},
|
|
1883
1883
|
...e.uiObjectFieldTemplate ? { "ui:ObjectFieldTemplate": e.uiObjectFieldTemplate } : {}
|
|
1884
1884
|
}), ue = {
|
|
1885
|
-
property:
|
|
1886
|
-
widget:
|
|
1885
|
+
property: Ns,
|
|
1886
|
+
widget: Ps
|
|
1887
1887
|
}, Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1888
1888
|
__proto__: null,
|
|
1889
1889
|
Common: ue,
|
|
@@ -2167,7 +2167,7 @@ const Rs = "_skeleton_12b79_1", Ts = {
|
|
|
2167
2167
|
objectFit: r,
|
|
2168
2168
|
...n
|
|
2169
2169
|
}) => {
|
|
2170
|
-
const { nextimage: a } =
|
|
2170
|
+
const { nextimage: a } = Ie();
|
|
2171
2171
|
return /* @__PURE__ */ l(
|
|
2172
2172
|
a,
|
|
2173
2173
|
{
|
|
@@ -2357,13 +2357,13 @@ const Jo = ({
|
|
|
2357
2357
|
className: e,
|
|
2358
2358
|
...t
|
|
2359
2359
|
}) => {
|
|
2360
|
-
var h,
|
|
2360
|
+
var h, g;
|
|
2361
2361
|
const { isMobile: r, handleClose: n, CONSTANTS: { ADD_TO_CART: a } } = qe(), {
|
|
2362
2362
|
cartStore: { totalizers: o },
|
|
2363
2363
|
setIsOpen: i
|
|
2364
2364
|
} = Ke(), s = (h = o.find(
|
|
2365
2365
|
(p) => p.id === "Discounts"
|
|
2366
|
-
)) == null ? void 0 : h.value, c = ((
|
|
2366
|
+
)) == 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, d = Te(f ?? 0);
|
|
2367
2367
|
return /* @__PURE__ */ I(
|
|
2368
2368
|
"div",
|
|
2369
2369
|
{
|
|
@@ -2579,7 +2579,7 @@ const Kr = {
|
|
|
2579
2579
|
}
|
|
2580
2580
|
);
|
|
2581
2581
|
}, zs = ({ page: e, data: t }) => {
|
|
2582
|
-
const { pathname: r } =
|
|
2582
|
+
const { pathname: r } = Ie(), n = U(null), {
|
|
2583
2583
|
sendDataLayerEvent: a,
|
|
2584
2584
|
currentLocalRef: o,
|
|
2585
2585
|
itemListRef: i,
|
|
@@ -2624,12 +2624,12 @@ const Kr = {
|
|
|
2624
2624
|
break;
|
|
2625
2625
|
}
|
|
2626
2626
|
case "PDC": {
|
|
2627
|
-
const { page_category: m, page_departament: f, id: d, name: h } = no(),
|
|
2627
|
+
const { page_category: m, page_departament: f, id: d, name: h } = no(), g = h, p = d;
|
|
2628
2628
|
c = {
|
|
2629
2629
|
page_category: "lista_produtos",
|
|
2630
2630
|
...f && { page_departament: f }
|
|
2631
2631
|
}, i.current = {
|
|
2632
|
-
item_list_name: r === "/search" ? "busca" :
|
|
2632
|
+
item_list_name: r === "/search" ? "busca" : g ?? void 0,
|
|
2633
2633
|
item_list_id: r === "/search" ? void 0 : p ?? void 0
|
|
2634
2634
|
}, f && a({
|
|
2635
2635
|
functionKey: "readyEvents",
|
|
@@ -2689,7 +2689,7 @@ function Us() {
|
|
|
2689
2689
|
return n;
|
|
2690
2690
|
}
|
|
2691
2691
|
});
|
|
2692
|
-
const n = (/* @__PURE__ */ ge._(
|
|
2692
|
+
const n = (/* @__PURE__ */ ge._(Pe)).default.createContext(null);
|
|
2693
2693
|
process.env.NODE_ENV !== "production" && (n.displayName = "LoadableContext");
|
|
2694
2694
|
}(qt)), qt;
|
|
2695
2695
|
}
|
|
@@ -2704,24 +2704,24 @@ function Hs() {
|
|
|
2704
2704
|
return h;
|
|
2705
2705
|
}
|
|
2706
2706
|
});
|
|
2707
|
-
const r = /* @__PURE__ */ ge._(
|
|
2708
|
-
function a(
|
|
2709
|
-
return
|
|
2707
|
+
const r = /* @__PURE__ */ ge._(Pe), n = Us();
|
|
2708
|
+
function a(g) {
|
|
2709
|
+
return g && g.default ? g.default : g;
|
|
2710
2710
|
}
|
|
2711
2711
|
const o = [], i = [];
|
|
2712
2712
|
let s = !1;
|
|
2713
|
-
function c(
|
|
2714
|
-
let p =
|
|
2713
|
+
function c(g) {
|
|
2714
|
+
let p = g(), _ = {
|
|
2715
2715
|
loading: !0,
|
|
2716
2716
|
loaded: null,
|
|
2717
2717
|
error: null
|
|
2718
2718
|
};
|
|
2719
|
-
return
|
|
2720
|
-
throw
|
|
2721
|
-
}),
|
|
2719
|
+
return _.promise = p.then((y) => (_.loading = !1, _.loaded = y, y)).catch((y) => {
|
|
2720
|
+
throw _.loading = !1, _.error = y, y;
|
|
2721
|
+
}), _;
|
|
2722
2722
|
}
|
|
2723
|
-
function u(
|
|
2724
|
-
let
|
|
2723
|
+
function u(g, p) {
|
|
2724
|
+
let _ = Object.assign({
|
|
2725
2725
|
loader: null,
|
|
2726
2726
|
loading: null,
|
|
2727
2727
|
delay: 200,
|
|
@@ -2731,7 +2731,7 @@ function Hs() {
|
|
|
2731
2731
|
}, p), y = null;
|
|
2732
2732
|
function S() {
|
|
2733
2733
|
if (!y) {
|
|
2734
|
-
const v = new m(
|
|
2734
|
+
const v = new m(g, _);
|
|
2735
2735
|
y = {
|
|
2736
2736
|
getCurrentValue: v.getCurrentValue.bind(v),
|
|
2737
2737
|
subscribe: v.subscribe.bind(v),
|
|
@@ -2742,34 +2742,34 @@ function Hs() {
|
|
|
2742
2742
|
return y.promise();
|
|
2743
2743
|
}
|
|
2744
2744
|
if (typeof window > "u" && o.push(S), !s && typeof window < "u") {
|
|
2745
|
-
const v =
|
|
2745
|
+
const v = _.webpack && typeof Fs.resolveWeak == "function" ? _.webpack() : _.modules;
|
|
2746
2746
|
v && i.push((C) => {
|
|
2747
|
-
for (const
|
|
2748
|
-
if (C.includes(
|
|
2747
|
+
for (const N of v)
|
|
2748
|
+
if (C.includes(N))
|
|
2749
2749
|
return S();
|
|
2750
2750
|
});
|
|
2751
2751
|
}
|
|
2752
|
-
function
|
|
2752
|
+
function P() {
|
|
2753
2753
|
S();
|
|
2754
2754
|
const v = r.default.useContext(n.LoadableContext);
|
|
2755
|
-
v && Array.isArray(
|
|
2755
|
+
v && Array.isArray(_.modules) && _.modules.forEach((C) => {
|
|
2756
2756
|
v(C);
|
|
2757
2757
|
});
|
|
2758
2758
|
}
|
|
2759
2759
|
function b(v, C) {
|
|
2760
|
-
|
|
2761
|
-
const
|
|
2760
|
+
P();
|
|
2761
|
+
const N = r.default.useSyncExternalStore(y.subscribe, y.getCurrentValue, y.getCurrentValue);
|
|
2762
2762
|
return r.default.useImperativeHandle(C, () => ({
|
|
2763
2763
|
retry: y.retry
|
|
2764
|
-
}), []), r.default.useMemo(() =>
|
|
2765
|
-
isLoading:
|
|
2766
|
-
pastDelay:
|
|
2767
|
-
timedOut:
|
|
2768
|
-
error:
|
|
2764
|
+
}), []), r.default.useMemo(() => N.loading || N.error ? /* @__PURE__ */ r.default.createElement(_.loading, {
|
|
2765
|
+
isLoading: N.loading,
|
|
2766
|
+
pastDelay: N.pastDelay,
|
|
2767
|
+
timedOut: N.timedOut,
|
|
2768
|
+
error: N.error,
|
|
2769
2769
|
retry: y.retry
|
|
2770
|
-
}) :
|
|
2770
|
+
}) : N.loaded ? /* @__PURE__ */ r.default.createElement(a(N.loaded), v) : null, [
|
|
2771
2771
|
v,
|
|
2772
|
-
|
|
2772
|
+
N
|
|
2773
2773
|
]);
|
|
2774
2774
|
}
|
|
2775
2775
|
return b.preload = () => S(), b.displayName = "LoadableComponent", /* @__PURE__ */ r.default.forwardRef(b);
|
|
@@ -2783,16 +2783,16 @@ function Hs() {
|
|
|
2783
2783
|
pastDelay: !1,
|
|
2784
2784
|
timedOut: !1
|
|
2785
2785
|
};
|
|
2786
|
-
const { _res: p, _opts:
|
|
2787
|
-
p.loading && (typeof
|
|
2786
|
+
const { _res: p, _opts: _ } = this;
|
|
2787
|
+
p.loading && (typeof _.delay == "number" && (_.delay === 0 ? this._state.pastDelay = !0 : this._delay = setTimeout(() => {
|
|
2788
2788
|
this._update({
|
|
2789
2789
|
pastDelay: !0
|
|
2790
2790
|
});
|
|
2791
|
-
},
|
|
2791
|
+
}, _.delay)), typeof _.timeout == "number" && (this._timeout = setTimeout(() => {
|
|
2792
2792
|
this._update({
|
|
2793
2793
|
timedOut: !0
|
|
2794
2794
|
});
|
|
2795
|
-
},
|
|
2795
|
+
}, _.timeout))), this._res.promise.then(() => {
|
|
2796
2796
|
this._update({}), this._clearTimeouts();
|
|
2797
2797
|
}).catch((y) => {
|
|
2798
2798
|
this._update({}), this._clearTimeouts();
|
|
@@ -2805,7 +2805,7 @@ function Hs() {
|
|
|
2805
2805
|
loaded: this._res.loaded,
|
|
2806
2806
|
loading: this._res.loading,
|
|
2807
2807
|
...p
|
|
2808
|
-
}, this._callbacks.forEach((
|
|
2808
|
+
}, this._callbacks.forEach((_) => _());
|
|
2809
2809
|
}
|
|
2810
2810
|
_clearTimeouts() {
|
|
2811
2811
|
clearTimeout(this._delay), clearTimeout(this._timeout);
|
|
@@ -2818,29 +2818,29 @@ function Hs() {
|
|
|
2818
2818
|
this._callbacks.delete(p);
|
|
2819
2819
|
};
|
|
2820
2820
|
}
|
|
2821
|
-
constructor(p,
|
|
2822
|
-
this._loadFn = p, this._opts =
|
|
2821
|
+
constructor(p, _) {
|
|
2822
|
+
this._loadFn = p, this._opts = _, this._callbacks = /* @__PURE__ */ new Set(), this._delay = null, this._timeout = null, this.retry();
|
|
2823
2823
|
}
|
|
2824
2824
|
}
|
|
2825
|
-
function f(
|
|
2826
|
-
return u(c,
|
|
2825
|
+
function f(g) {
|
|
2826
|
+
return u(c, g);
|
|
2827
2827
|
}
|
|
2828
|
-
function d(
|
|
2829
|
-
let
|
|
2830
|
-
for (;
|
|
2831
|
-
let y =
|
|
2832
|
-
|
|
2828
|
+
function d(g, p) {
|
|
2829
|
+
let _ = [];
|
|
2830
|
+
for (; g.length; ) {
|
|
2831
|
+
let y = g.pop();
|
|
2832
|
+
_.push(y(p));
|
|
2833
2833
|
}
|
|
2834
|
-
return Promise.all(
|
|
2835
|
-
if (
|
|
2836
|
-
return d(
|
|
2834
|
+
return Promise.all(_).then(() => {
|
|
2835
|
+
if (g.length)
|
|
2836
|
+
return d(g, p);
|
|
2837
2837
|
});
|
|
2838
2838
|
}
|
|
2839
|
-
f.preloadAll = () => new Promise((
|
|
2840
|
-
d(o).then(
|
|
2841
|
-
}), f.preloadReady = (
|
|
2842
|
-
const
|
|
2843
|
-
d(i,
|
|
2839
|
+
f.preloadAll = () => new Promise((g, p) => {
|
|
2840
|
+
d(o).then(g, p);
|
|
2841
|
+
}), f.preloadReady = (g) => (g === void 0 && (g = []), new Promise((p) => {
|
|
2842
|
+
const _ = () => (s = !0, p());
|
|
2843
|
+
d(i, g).then(_, _);
|
|
2844
2844
|
})), typeof window < "u" && (window.__NEXT_PRELOADREADY = f.preloadReady);
|
|
2845
2845
|
const h = f;
|
|
2846
2846
|
}(Dt)), Dt;
|
|
@@ -2863,7 +2863,7 @@ function Hs() {
|
|
|
2863
2863
|
return u;
|
|
2864
2864
|
}
|
|
2865
2865
|
});
|
|
2866
|
-
const n = ge, a = /* @__PURE__ */ n._(
|
|
2866
|
+
const n = ge, a = /* @__PURE__ */ n._(Pe), o = /* @__PURE__ */ n._(Hs()), i = typeof window > "u";
|
|
2867
2867
|
function s(m) {
|
|
2868
2868
|
return {
|
|
2869
2869
|
default: (m == null ? void 0 : m.default) || m
|
|
@@ -2883,9 +2883,9 @@ function Hs() {
|
|
|
2883
2883
|
function u(m, f) {
|
|
2884
2884
|
let d = o.default, h = {
|
|
2885
2885
|
// A loading component is not required, so we default it
|
|
2886
|
-
loading: (
|
|
2887
|
-
let { error: y, isLoading: S, pastDelay:
|
|
2888
|
-
if (!
|
|
2886
|
+
loading: (_) => {
|
|
2887
|
+
let { error: y, isLoading: S, pastDelay: P } = _;
|
|
2888
|
+
if (!P) return null;
|
|
2889
2889
|
if (process.env.NODE_ENV !== "production") {
|
|
2890
2890
|
if (S)
|
|
2891
2891
|
return null;
|
|
@@ -2902,7 +2902,7 @@ function Hs() {
|
|
|
2902
2902
|
...h,
|
|
2903
2903
|
...f
|
|
2904
2904
|
};
|
|
2905
|
-
const
|
|
2905
|
+
const g = h.loader, p = () => g != null ? g().then(s) : Promise.resolve(s(() => null));
|
|
2906
2906
|
return h.loadableGenerated && (h = {
|
|
2907
2907
|
...h,
|
|
2908
2908
|
...h.loadableGenerated
|
|
@@ -2948,7 +2948,7 @@ function Gs() {
|
|
|
2948
2948
|
return n;
|
|
2949
2949
|
}
|
|
2950
2950
|
});
|
|
2951
|
-
const n = (/* @__PURE__ */ ge._(
|
|
2951
|
+
const n = (/* @__PURE__ */ ge._(Pe)).default.createContext({});
|
|
2952
2952
|
process.env.NODE_ENV !== "production" && (n.displayName = "HeadManagerContext");
|
|
2953
2953
|
}(jt)), jt;
|
|
2954
2954
|
}
|
|
@@ -2985,10 +2985,10 @@ function Ks() {
|
|
|
2985
2985
|
function a(c) {
|
|
2986
2986
|
let { type: u, props: m } = c;
|
|
2987
2987
|
const f = document.createElement(u);
|
|
2988
|
-
for (const
|
|
2989
|
-
if (!m.hasOwnProperty(
|
|
2990
|
-
const p = n[
|
|
2991
|
-
u === "script" && (p === "async" || p === "defer" || p === "noModule") ? f[p] = !!m[
|
|
2988
|
+
for (const g in m) {
|
|
2989
|
+
if (!m.hasOwnProperty(g) || g === "children" || g === "dangerouslySetInnerHTML" || m[g] === void 0) continue;
|
|
2990
|
+
const p = n[g] || g.toLowerCase();
|
|
2991
|
+
u === "script" && (p === "async" || p === "defer" || p === "noModule") ? f[p] = !!m[g] : f.setAttribute(p, m[g]);
|
|
2992
2992
|
}
|
|
2993
2993
|
const { children: d, dangerouslySetInnerHTML: h } = m;
|
|
2994
2994
|
return h ? f.innerHTML = h.__html || "" : d && (f.textContent = typeof d == "string" ? d : Array.isArray(d) ? d.join("") : ""), f;
|
|
@@ -3017,26 +3017,26 @@ function Ks() {
|
|
|
3017
3017
|
const y = f[p].nextSibling;
|
|
3018
3018
|
(y == null || (h = y.tagName) == null ? void 0 : h.toLowerCase()) === c && d.push(y);
|
|
3019
3019
|
}
|
|
3020
|
-
const
|
|
3021
|
-
for (let
|
|
3022
|
-
const S = d[
|
|
3020
|
+
const g = u.map(a).filter((p) => {
|
|
3021
|
+
for (let _ = 0, y = d.length; _ < y; _++) {
|
|
3022
|
+
const S = d[_];
|
|
3023
3023
|
if (o(S, p))
|
|
3024
|
-
return d.splice(
|
|
3024
|
+
return d.splice(_, 1), !1;
|
|
3025
3025
|
}
|
|
3026
3026
|
return !0;
|
|
3027
3027
|
});
|
|
3028
3028
|
d.forEach((p) => {
|
|
3029
|
-
var
|
|
3029
|
+
var _;
|
|
3030
3030
|
const y = p.previousSibling;
|
|
3031
3031
|
if (y && y.getAttribute("name") === "next-head") {
|
|
3032
3032
|
var S;
|
|
3033
3033
|
(S = p.parentNode) == null || S.removeChild(y);
|
|
3034
3034
|
}
|
|
3035
|
-
(
|
|
3036
|
-
}),
|
|
3037
|
-
var
|
|
3035
|
+
(_ = p.parentNode) == null || _.removeChild(p);
|
|
3036
|
+
}), g.forEach((p) => {
|
|
3037
|
+
var _;
|
|
3038
3038
|
const y = document.createElement("meta");
|
|
3039
|
-
y.name = "next-head", y.content = "1", ((
|
|
3039
|
+
y.name = "next-head", y.content = "1", ((_ = p.tagName) == null ? void 0 : _.toLowerCase()) === "meta" && p.getAttribute("charset") || m.appendChild(y), m.appendChild(p);
|
|
3040
3040
|
});
|
|
3041
3041
|
} : i = (c, u) => {
|
|
3042
3042
|
const m = document.getElementsByTagName("head")[0], f = m.querySelector("meta[name=next-head-count]");
|
|
@@ -3045,22 +3045,22 @@ function Ks() {
|
|
|
3045
3045
|
return;
|
|
3046
3046
|
}
|
|
3047
3047
|
const d = Number(f.content), h = [];
|
|
3048
|
-
for (let
|
|
3049
|
-
var
|
|
3050
|
-
(y == null || (
|
|
3048
|
+
for (let _ = 0, y = f.previousElementSibling; _ < d; _++, y = (y == null ? void 0 : y.previousElementSibling) || null) {
|
|
3049
|
+
var g;
|
|
3050
|
+
(y == null || (g = y.tagName) == null ? void 0 : g.toLowerCase()) === c && h.push(y);
|
|
3051
3051
|
}
|
|
3052
|
-
const p = u.map(a).filter((
|
|
3052
|
+
const p = u.map(a).filter((_) => {
|
|
3053
3053
|
for (let y = 0, S = h.length; y < S; y++) {
|
|
3054
|
-
const
|
|
3055
|
-
if (o(
|
|
3054
|
+
const P = h[y];
|
|
3055
|
+
if (o(P, _))
|
|
3056
3056
|
return h.splice(y, 1), !1;
|
|
3057
3057
|
}
|
|
3058
3058
|
return !0;
|
|
3059
3059
|
});
|
|
3060
|
-
h.forEach((
|
|
3060
|
+
h.forEach((_) => {
|
|
3061
3061
|
var y;
|
|
3062
|
-
return (y =
|
|
3063
|
-
}), p.forEach((
|
|
3062
|
+
return (y = _.parentNode) == null ? void 0 : y.removeChild(_);
|
|
3063
|
+
}), p.forEach((_) => m.insertBefore(_, f)), f.content = (d - h.length + p.length).toString();
|
|
3064
3064
|
};
|
|
3065
3065
|
function s() {
|
|
3066
3066
|
return {
|
|
@@ -3143,9 +3143,9 @@ function aa() {
|
|
|
3143
3143
|
value: !0
|
|
3144
3144
|
});
|
|
3145
3145
|
function r(v, C) {
|
|
3146
|
-
for (var
|
|
3146
|
+
for (var N in C) Object.defineProperty(v, N, {
|
|
3147
3147
|
enumerable: !0,
|
|
3148
|
-
get: C[
|
|
3148
|
+
get: C[N]
|
|
3149
3149
|
});
|
|
3150
3150
|
}
|
|
3151
3151
|
r(t, {
|
|
@@ -3159,7 +3159,7 @@ function aa() {
|
|
|
3159
3159
|
return b;
|
|
3160
3160
|
}
|
|
3161
3161
|
});
|
|
3162
|
-
const n = ge, a = St, o = /* @__PURE__ */ n._(si), i = /* @__PURE__ */ a._(
|
|
3162
|
+
const n = ge, a = St, o = /* @__PURE__ */ n._(si), i = /* @__PURE__ */ a._(Pe), s = Gs(), c = Ks(), u = aa(), m = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Set(), d = [
|
|
3163
3163
|
"onLoad",
|
|
3164
3164
|
"onReady",
|
|
3165
3165
|
"dangerouslySetInnerHTML",
|
|
@@ -3178,14 +3178,14 @@ function aa() {
|
|
|
3178
3178
|
}
|
|
3179
3179
|
if (typeof window < "u") {
|
|
3180
3180
|
let C = document.head;
|
|
3181
|
-
v.forEach((
|
|
3181
|
+
v.forEach((N) => {
|
|
3182
3182
|
let w = document.createElement("link");
|
|
3183
|
-
w.type = "text/css", w.rel = "stylesheet", w.href =
|
|
3183
|
+
w.type = "text/css", w.rel = "stylesheet", w.href = N, C.appendChild(w);
|
|
3184
3184
|
});
|
|
3185
3185
|
}
|
|
3186
|
-
},
|
|
3187
|
-
const { src: C, id:
|
|
3188
|
-
}, onReady: T = null, dangerouslySetInnerHTML: A, children: z = "", strategy: O = "afterInteractive", onError: R, stylesheets: x } = v, E =
|
|
3186
|
+
}, g = (v) => {
|
|
3187
|
+
const { src: C, id: N, onLoad: w = () => {
|
|
3188
|
+
}, onReady: T = null, dangerouslySetInnerHTML: A, children: z = "", strategy: O = "afterInteractive", onError: R, stylesheets: x } = v, E = N || C;
|
|
3189
3189
|
if (E && f.has(E))
|
|
3190
3190
|
return;
|
|
3191
3191
|
if (m.has(C)) {
|
|
@@ -3215,12 +3215,12 @@ function aa() {
|
|
|
3215
3215
|
function p(v) {
|
|
3216
3216
|
const { strategy: C = "afterInteractive" } = v;
|
|
3217
3217
|
C === "lazyOnload" ? window.addEventListener("load", () => {
|
|
3218
|
-
(0, u.requestIdleCallback)(() =>
|
|
3219
|
-
}) :
|
|
3218
|
+
(0, u.requestIdleCallback)(() => g(v));
|
|
3219
|
+
}) : g(v);
|
|
3220
3220
|
}
|
|
3221
|
-
function
|
|
3222
|
-
document.readyState === "complete" ? (0, u.requestIdleCallback)(() =>
|
|
3223
|
-
(0, u.requestIdleCallback)(() =>
|
|
3221
|
+
function _(v) {
|
|
3222
|
+
document.readyState === "complete" ? (0, u.requestIdleCallback)(() => g(v)) : window.addEventListener("load", () => {
|
|
3223
|
+
(0, u.requestIdleCallback)(() => g(v));
|
|
3224
3224
|
});
|
|
3225
3225
|
}
|
|
3226
3226
|
function y() {
|
|
@@ -3228,46 +3228,46 @@ function aa() {
|
|
|
3228
3228
|
...document.querySelectorAll('[data-nscript="beforeInteractive"]'),
|
|
3229
3229
|
...document.querySelectorAll('[data-nscript="beforePageRender"]')
|
|
3230
3230
|
].forEach((C) => {
|
|
3231
|
-
const
|
|
3232
|
-
f.add(
|
|
3231
|
+
const N = C.id || C.getAttribute("src");
|
|
3232
|
+
f.add(N);
|
|
3233
3233
|
});
|
|
3234
3234
|
}
|
|
3235
3235
|
function S(v) {
|
|
3236
3236
|
v.forEach(p), y();
|
|
3237
3237
|
}
|
|
3238
|
-
function
|
|
3239
|
-
const { id: C, src:
|
|
3238
|
+
function P(v) {
|
|
3239
|
+
const { id: C, src: N = "", onLoad: w = () => {
|
|
3240
3240
|
}, onReady: T = null, strategy: A = "afterInteractive", onError: z, stylesheets: O, ...R } = v, { updateScripts: x, scripts: E, getIsSsr: L, appDir: q, nonce: $ } = (0, i.useContext)(s.HeadManagerContext), K = (0, i.useRef)(!1);
|
|
3241
3241
|
(0, i.useEffect)(() => {
|
|
3242
|
-
const ie = C ||
|
|
3242
|
+
const ie = C || N;
|
|
3243
3243
|
K.current || (T && ie && f.has(ie) && T(), K.current = !0);
|
|
3244
3244
|
}, [
|
|
3245
3245
|
T,
|
|
3246
3246
|
C,
|
|
3247
|
-
|
|
3247
|
+
N
|
|
3248
3248
|
]);
|
|
3249
3249
|
const ae = (0, i.useRef)(!1);
|
|
3250
3250
|
if ((0, i.useEffect)(() => {
|
|
3251
|
-
ae.current || (A === "afterInteractive" ?
|
|
3251
|
+
ae.current || (A === "afterInteractive" ? g(v) : A === "lazyOnload" && _(v), ae.current = !0);
|
|
3252
3252
|
}, [
|
|
3253
3253
|
v,
|
|
3254
3254
|
A
|
|
3255
3255
|
]), (A === "beforeInteractive" || A === "worker") && (x ? (E[A] = (E[A] || []).concat([
|
|
3256
3256
|
{
|
|
3257
3257
|
id: C,
|
|
3258
|
-
src:
|
|
3258
|
+
src: N,
|
|
3259
3259
|
onLoad: w,
|
|
3260
3260
|
onReady: T,
|
|
3261
3261
|
onError: z,
|
|
3262
3262
|
...R
|
|
3263
3263
|
}
|
|
3264
|
-
]), x(E)) : L && L() ? f.add(C ||
|
|
3264
|
+
]), x(E)) : L && L() ? f.add(C || N) : L && !L() && g(v)), q) {
|
|
3265
3265
|
if (O && O.forEach((ie) => {
|
|
3266
3266
|
o.default.preinit(ie, {
|
|
3267
3267
|
as: "style"
|
|
3268
3268
|
});
|
|
3269
3269
|
}), A === "beforeInteractive")
|
|
3270
|
-
return
|
|
3270
|
+
return N ? (o.default.preload(N, R.integrity ? {
|
|
3271
3271
|
as: "script",
|
|
3272
3272
|
integrity: R.integrity
|
|
3273
3273
|
} : {
|
|
@@ -3276,7 +3276,7 @@ function aa() {
|
|
|
3276
3276
|
nonce: $,
|
|
3277
3277
|
dangerouslySetInnerHTML: {
|
|
3278
3278
|
__html: "(self.__next_s=self.__next_s||[]).push(" + JSON.stringify([
|
|
3279
|
-
|
|
3279
|
+
N
|
|
3280
3280
|
]) + ")"
|
|
3281
3281
|
}
|
|
3282
3282
|
})) : (R.dangerouslySetInnerHTML && (R.children = R.dangerouslySetInnerHTML.__html, delete R.dangerouslySetInnerHTML), /* @__PURE__ */ i.default.createElement("script", {
|
|
@@ -3290,7 +3290,7 @@ function aa() {
|
|
|
3290
3290
|
]) + ")"
|
|
3291
3291
|
}
|
|
3292
3292
|
}));
|
|
3293
|
-
A === "afterInteractive" &&
|
|
3293
|
+
A === "afterInteractive" && N && o.default.preload(N, R.integrity ? {
|
|
3294
3294
|
as: "script",
|
|
3295
3295
|
integrity: R.integrity
|
|
3296
3296
|
} : {
|
|
@@ -3299,10 +3299,10 @@ function aa() {
|
|
|
3299
3299
|
}
|
|
3300
3300
|
return null;
|
|
3301
3301
|
}
|
|
3302
|
-
Object.defineProperty(
|
|
3302
|
+
Object.defineProperty(P, "__nextScript", {
|
|
3303
3303
|
value: !0
|
|
3304
3304
|
});
|
|
3305
|
-
const b =
|
|
3305
|
+
const b = P;
|
|
3306
3306
|
(typeof t.default == "function" || typeof t.default == "object" && t.default !== null) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), e.exports = t.default);
|
|
3307
3307
|
})(vr, vr.exports);
|
|
3308
3308
|
var Xs = vr.exports, Qs = Xs;
|
|
@@ -3516,10 +3516,10 @@ function sa() {
|
|
|
3516
3516
|
});
|
|
3517
3517
|
const n = /* @__PURE__ */ St._(ia()), a = /https?|ftp|gopher|file/;
|
|
3518
3518
|
function o(c) {
|
|
3519
|
-
let { auth: u, hostname: m } = c, f = c.protocol || "", d = c.pathname || "", h = c.hash || "",
|
|
3520
|
-
u = u ? encodeURIComponent(u).replace(/%3A/i, ":") + "@" : "", c.host ? p = u + c.host : m && (p = u + (~m.indexOf(":") ? "[" + m + "]" : m), c.port && (p += ":" + c.port)),
|
|
3521
|
-
let
|
|
3522
|
-
return f && !f.endsWith(":") && (f += ":"), c.slashes || (!f || a.test(f)) && p !== !1 ? (p = "//" + (p || ""), d && d[0] !== "/" && (d = "/" + d)) : p || (p = ""), h && h[0] !== "#" && (h = "#" + h),
|
|
3519
|
+
let { auth: u, hostname: m } = c, f = c.protocol || "", d = c.pathname || "", h = c.hash || "", g = c.query || "", p = !1;
|
|
3520
|
+
u = u ? encodeURIComponent(u).replace(/%3A/i, ":") + "@" : "", c.host ? p = u + c.host : m && (p = u + (~m.indexOf(":") ? "[" + m + "]" : m), c.port && (p += ":" + c.port)), g && typeof g == "object" && (g = String(n.urlQueryToSearchParams(g)));
|
|
3521
|
+
let _ = c.search || g && "?" + g || "";
|
|
3522
|
+
return f && !f.endsWith(":") && (f += ":"), c.slashes || (!f || a.test(f)) && p !== !1 ? (p = "//" + (p || ""), d && d[0] !== "/" && (d = "/" + d)) : p || (p = ""), h && h[0] !== "#" && (h = "#" + h), _ && _[0] !== "?" && (_ = "?" + _), d = d.replace(/[?#]/g, encodeURIComponent), _ = _.replace("#", "%23"), "" + f + p + d + _ + h;
|
|
3523
3523
|
}
|
|
3524
3524
|
const i = [
|
|
3525
3525
|
"auth",
|
|
@@ -3608,13 +3608,13 @@ function Ot() {
|
|
|
3608
3608
|
return h;
|
|
3609
3609
|
},
|
|
3610
3610
|
DecodeError: function() {
|
|
3611
|
-
return
|
|
3611
|
+
return g;
|
|
3612
3612
|
},
|
|
3613
3613
|
NormalizeError: function() {
|
|
3614
3614
|
return p;
|
|
3615
3615
|
},
|
|
3616
3616
|
PageNotFoundError: function() {
|
|
3617
|
-
return
|
|
3617
|
+
return _;
|
|
3618
3618
|
},
|
|
3619
3619
|
MissingStaticPage: function() {
|
|
3620
3620
|
return y;
|
|
@@ -3623,7 +3623,7 @@ function Ot() {
|
|
|
3623
3623
|
return S;
|
|
3624
3624
|
},
|
|
3625
3625
|
stringifyError: function() {
|
|
3626
|
-
return
|
|
3626
|
+
return P;
|
|
3627
3627
|
}
|
|
3628
3628
|
});
|
|
3629
3629
|
const r = [
|
|
@@ -3637,7 +3637,7 @@ function Ot() {
|
|
|
3637
3637
|
function n(b) {
|
|
3638
3638
|
let v = !1, C;
|
|
3639
3639
|
return function() {
|
|
3640
|
-
for (var
|
|
3640
|
+
for (var N = arguments.length, w = new Array(N), T = 0; T < N; T++)
|
|
3641
3641
|
w[T] = arguments[T];
|
|
3642
3642
|
return v || (v = !0, C = b(...w)), C;
|
|
3643
3643
|
};
|
|
@@ -3669,13 +3669,13 @@ function Ot() {
|
|
|
3669
3669
|
throw new Error(T);
|
|
3670
3670
|
}
|
|
3671
3671
|
}
|
|
3672
|
-
const
|
|
3672
|
+
const N = v.res || v.ctx && v.ctx.res;
|
|
3673
3673
|
if (!b.getInitialProps)
|
|
3674
3674
|
return v.ctx && v.Component ? {
|
|
3675
3675
|
pageProps: await f(v.Component, v.ctx)
|
|
3676
3676
|
} : {};
|
|
3677
3677
|
const w = await b.getInitialProps(v);
|
|
3678
|
-
if (
|
|
3678
|
+
if (N && u(N))
|
|
3679
3679
|
return w;
|
|
3680
3680
|
if (!w) {
|
|
3681
3681
|
const T = '"' + c(b) + '.getInitialProps()" should resolve to an object. But found "' + w + '" instead.';
|
|
@@ -3688,11 +3688,11 @@ function Ot() {
|
|
|
3688
3688
|
"measure",
|
|
3689
3689
|
"getEntriesByName"
|
|
3690
3690
|
].every((b) => typeof performance[b] == "function");
|
|
3691
|
-
class
|
|
3691
|
+
class g extends Error {
|
|
3692
3692
|
}
|
|
3693
3693
|
class p extends Error {
|
|
3694
3694
|
}
|
|
3695
|
-
class
|
|
3695
|
+
class _ extends Error {
|
|
3696
3696
|
constructor(v) {
|
|
3697
3697
|
super(), this.code = "ENOENT", this.name = "PageNotFoundError", this.message = "Cannot find module for page: " + v;
|
|
3698
3698
|
}
|
|
@@ -3707,7 +3707,7 @@ function Ot() {
|
|
|
3707
3707
|
super(), this.code = "ENOENT", this.message = "Cannot find the middleware module";
|
|
3708
3708
|
}
|
|
3709
3709
|
}
|
|
3710
|
-
function
|
|
3710
|
+
function P(b) {
|
|
3711
3711
|
return JSON.stringify({
|
|
3712
3712
|
message: b.message,
|
|
3713
3713
|
stack: b.stack
|
|
@@ -3838,7 +3838,7 @@ function ua() {
|
|
|
3838
3838
|
}(Vt)), Vt;
|
|
3839
3839
|
}
|
|
3840
3840
|
var Kt = {}, Xt = {}, dn;
|
|
3841
|
-
function
|
|
3841
|
+
function Nc() {
|
|
3842
3842
|
return dn || (dn = 1, function(e) {
|
|
3843
3843
|
Object.defineProperty(e, "__esModule", {
|
|
3844
3844
|
value: !0
|
|
@@ -3925,7 +3925,7 @@ function Pc() {
|
|
|
3925
3925
|
}(Xt)), Xt;
|
|
3926
3926
|
}
|
|
3927
3927
|
var Qt = {}, fn;
|
|
3928
|
-
function
|
|
3928
|
+
function Pc() {
|
|
3929
3929
|
return fn || (fn = 1, function(e) {
|
|
3930
3930
|
Object.defineProperty(e, "__esModule", {
|
|
3931
3931
|
value: !0
|
|
@@ -3961,7 +3961,7 @@ function Ic() {
|
|
|
3961
3961
|
return n.isDynamicRoute;
|
|
3962
3962
|
}
|
|
3963
3963
|
});
|
|
3964
|
-
const r =
|
|
3964
|
+
const r = Nc(), n = Pc();
|
|
3965
3965
|
}(Kt)), Kt;
|
|
3966
3966
|
}
|
|
3967
3967
|
var Yt = {}, Zt = {}, pn;
|
|
@@ -4156,10 +4156,10 @@ function Ac() {
|
|
|
4156
4156
|
Object.defineProperty(e, "__esModule", {
|
|
4157
4157
|
value: !0
|
|
4158
4158
|
});
|
|
4159
|
-
function t(p,
|
|
4160
|
-
for (var y in
|
|
4159
|
+
function t(p, _) {
|
|
4160
|
+
for (var y in _) Object.defineProperty(p, y, {
|
|
4161
4161
|
enumerable: !0,
|
|
4162
|
-
get:
|
|
4162
|
+
get: _[y]
|
|
4163
4163
|
});
|
|
4164
4164
|
}
|
|
4165
4165
|
t(e, {
|
|
@@ -4170,108 +4170,108 @@ function Ac() {
|
|
|
4170
4170
|
return h;
|
|
4171
4171
|
},
|
|
4172
4172
|
getNamedMiddlewareRegex: function() {
|
|
4173
|
-
return
|
|
4173
|
+
return g;
|
|
4174
4174
|
}
|
|
4175
4175
|
});
|
|
4176
4176
|
const r = Rc(), n = Tc(), a = ca(), o = "nxtP", i = "nxtI";
|
|
4177
4177
|
function s(p) {
|
|
4178
|
-
const
|
|
4179
|
-
|
|
4178
|
+
const _ = p.startsWith("[") && p.endsWith("]");
|
|
4179
|
+
_ && (p = p.slice(1, -1));
|
|
4180
4180
|
const y = p.startsWith("...");
|
|
4181
4181
|
return y && (p = p.slice(3)), {
|
|
4182
4182
|
key: p,
|
|
4183
4183
|
repeat: y,
|
|
4184
|
-
optional:
|
|
4184
|
+
optional: _
|
|
4185
4185
|
};
|
|
4186
4186
|
}
|
|
4187
4187
|
function c(p) {
|
|
4188
|
-
const
|
|
4188
|
+
const _ = (0, a.removeTrailingSlash)(p).slice(1).split("/"), y = {};
|
|
4189
4189
|
let S = 1;
|
|
4190
4190
|
return {
|
|
4191
|
-
parameterizedRoute:
|
|
4192
|
-
const b = r.INTERCEPTION_ROUTE_MARKERS.find((C) =>
|
|
4191
|
+
parameterizedRoute: _.map((P) => {
|
|
4192
|
+
const b = r.INTERCEPTION_ROUTE_MARKERS.find((C) => P.startsWith(C)), v = P.match(/\[((?:\[.*\])|.+)\]/);
|
|
4193
4193
|
if (b && v) {
|
|
4194
|
-
const { key: C, optional:
|
|
4194
|
+
const { key: C, optional: N, repeat: w } = s(v[1]);
|
|
4195
4195
|
return y[C] = {
|
|
4196
4196
|
pos: S++,
|
|
4197
4197
|
repeat: w,
|
|
4198
|
-
optional:
|
|
4198
|
+
optional: N
|
|
4199
4199
|
}, "/" + (0, n.escapeStringRegexp)(b) + "([^/]+?)";
|
|
4200
4200
|
} else if (v) {
|
|
4201
|
-
const { key: C, repeat:
|
|
4201
|
+
const { key: C, repeat: N, optional: w } = s(v[1]);
|
|
4202
4202
|
return y[C] = {
|
|
4203
4203
|
pos: S++,
|
|
4204
|
-
repeat:
|
|
4204
|
+
repeat: N,
|
|
4205
4205
|
optional: w
|
|
4206
|
-
},
|
|
4206
|
+
}, N ? w ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
|
|
4207
4207
|
} else
|
|
4208
|
-
return "/" + (0, n.escapeStringRegexp)(
|
|
4208
|
+
return "/" + (0, n.escapeStringRegexp)(P);
|
|
4209
4209
|
}).join(""),
|
|
4210
4210
|
groups: y
|
|
4211
4211
|
};
|
|
4212
4212
|
}
|
|
4213
4213
|
function u(p) {
|
|
4214
|
-
const { parameterizedRoute:
|
|
4214
|
+
const { parameterizedRoute: _, groups: y } = c(p);
|
|
4215
4215
|
return {
|
|
4216
|
-
re: new RegExp("^" +
|
|
4216
|
+
re: new RegExp("^" + _ + "(?:/)?$"),
|
|
4217
4217
|
groups: y
|
|
4218
4218
|
};
|
|
4219
4219
|
}
|
|
4220
4220
|
function m() {
|
|
4221
4221
|
let p = 0;
|
|
4222
4222
|
return () => {
|
|
4223
|
-
let
|
|
4223
|
+
let _ = "", y = ++p;
|
|
4224
4224
|
for (; y > 0; )
|
|
4225
|
-
|
|
4226
|
-
return
|
|
4225
|
+
_ += String.fromCharCode(97 + (y - 1) % 26), y = Math.floor((y - 1) / 26);
|
|
4226
|
+
return _;
|
|
4227
4227
|
};
|
|
4228
4228
|
}
|
|
4229
4229
|
function f(p) {
|
|
4230
|
-
let { getSafeRouteKey:
|
|
4230
|
+
let { getSafeRouteKey: _, segment: y, routeKeys: S, keyPrefix: P } = p;
|
|
4231
4231
|
const { key: b, optional: v, repeat: C } = s(y);
|
|
4232
|
-
let
|
|
4233
|
-
|
|
4232
|
+
let N = b.replace(/\W/g, "");
|
|
4233
|
+
P && (N = "" + P + N);
|
|
4234
4234
|
let w = !1;
|
|
4235
|
-
return (
|
|
4235
|
+
return (N.length === 0 || N.length > 30) && (w = !0), isNaN(parseInt(N.slice(0, 1))) || (w = !0), w && (N = _()), P ? S[N] = "" + P + b : S[N] = "" + b, C ? v ? "(?:/(?<" + N + ">.+?))?" : "/(?<" + N + ">.+?)" : "/(?<" + N + ">[^/]+?)";
|
|
4236
4236
|
}
|
|
4237
|
-
function d(p,
|
|
4238
|
-
const y = (0, a.removeTrailingSlash)(p).slice(1).split("/"), S = m(),
|
|
4237
|
+
function d(p, _) {
|
|
4238
|
+
const y = (0, a.removeTrailingSlash)(p).slice(1).split("/"), S = m(), P = {};
|
|
4239
4239
|
return {
|
|
4240
4240
|
namedParameterizedRoute: y.map((b) => {
|
|
4241
|
-
const v = r.INTERCEPTION_ROUTE_MARKERS.some((
|
|
4241
|
+
const v = r.INTERCEPTION_ROUTE_MARKERS.some((N) => b.startsWith(N)), C = b.match(/\[((?:\[.*\])|.+)\]/);
|
|
4242
4242
|
return v && C ? f({
|
|
4243
4243
|
getSafeRouteKey: S,
|
|
4244
4244
|
segment: C[1],
|
|
4245
|
-
routeKeys:
|
|
4246
|
-
keyPrefix:
|
|
4245
|
+
routeKeys: P,
|
|
4246
|
+
keyPrefix: _ ? i : void 0
|
|
4247
4247
|
}) : C ? f({
|
|
4248
4248
|
getSafeRouteKey: S,
|
|
4249
4249
|
segment: C[1],
|
|
4250
|
-
routeKeys:
|
|
4251
|
-
keyPrefix:
|
|
4250
|
+
routeKeys: P,
|
|
4251
|
+
keyPrefix: _ ? o : void 0
|
|
4252
4252
|
}) : "/" + (0, n.escapeStringRegexp)(b);
|
|
4253
4253
|
}).join(""),
|
|
4254
|
-
routeKeys:
|
|
4254
|
+
routeKeys: P
|
|
4255
4255
|
};
|
|
4256
4256
|
}
|
|
4257
|
-
function h(p,
|
|
4258
|
-
const y = d(p,
|
|
4257
|
+
function h(p, _) {
|
|
4258
|
+
const y = d(p, _);
|
|
4259
4259
|
return {
|
|
4260
4260
|
...u(p),
|
|
4261
4261
|
namedRegex: "^" + y.namedParameterizedRoute + "(?:/)?$",
|
|
4262
4262
|
routeKeys: y.routeKeys
|
|
4263
4263
|
};
|
|
4264
4264
|
}
|
|
4265
|
-
function
|
|
4266
|
-
const { parameterizedRoute: y } = c(p), { catchAll: S = !0 } =
|
|
4265
|
+
function g(p, _) {
|
|
4266
|
+
const { parameterizedRoute: y } = c(p), { catchAll: S = !0 } = _;
|
|
4267
4267
|
if (y === "/")
|
|
4268
4268
|
return {
|
|
4269
4269
|
namedRegex: "^/" + (S ? ".*" : "") + "$"
|
|
4270
4270
|
};
|
|
4271
|
-
const { namedParameterizedRoute:
|
|
4271
|
+
const { namedParameterizedRoute: P } = d(p, !1);
|
|
4272
4272
|
let b = S ? "(?:(/.*)?)" : "";
|
|
4273
4273
|
return {
|
|
4274
|
-
namedRegex: "^" +
|
|
4274
|
+
namedRegex: "^" + P + b + "$"
|
|
4275
4275
|
};
|
|
4276
4276
|
}
|
|
4277
4277
|
}(Jt)), Jt;
|
|
@@ -4300,12 +4300,12 @@ function Mc() {
|
|
|
4300
4300
|
const f = Object.keys(u);
|
|
4301
4301
|
return f.every((d) => {
|
|
4302
4302
|
let h = m[d] || "";
|
|
4303
|
-
const { repeat:
|
|
4304
|
-
let
|
|
4305
|
-
return p && (
|
|
4303
|
+
const { repeat: g, optional: p } = u[d];
|
|
4304
|
+
let _ = "[" + (g ? "..." : "") + d + "]";
|
|
4305
|
+
return p && (_ = (h ? "" : "/") + "[" + _ + "]"), g && !Array.isArray(h) && (h = [
|
|
4306
4306
|
h
|
|
4307
4307
|
]), (p || d in m) && // Interpolate group into data URL if present
|
|
4308
|
-
(s = s.replace(
|
|
4308
|
+
(s = s.replace(_, g ? h.map(
|
|
4309
4309
|
// these values should be fully encoded instead of just
|
|
4310
4310
|
// path delimiter escaped since they are being inserted
|
|
4311
4311
|
// into the URL and we expect URL encoded segments
|
|
@@ -4319,9 +4319,9 @@ function Mc() {
|
|
|
4319
4319
|
}
|
|
4320
4320
|
}(Yt)), Yt;
|
|
4321
4321
|
}
|
|
4322
|
-
var
|
|
4322
|
+
var Nn;
|
|
4323
4323
|
function xc() {
|
|
4324
|
-
return
|
|
4324
|
+
return Nn || (Nn = 1, function(e, t) {
|
|
4325
4325
|
Object.defineProperty(t, "__esModule", {
|
|
4326
4326
|
value: !0
|
|
4327
4327
|
}), Object.defineProperty(t, "resolveHref", {
|
|
@@ -4332,35 +4332,35 @@ function xc() {
|
|
|
4332
4332
|
});
|
|
4333
4333
|
const r = ia(), n = sa(), a = bc(), o = Ot(), i = Rt(), s = ua(), c = Ic(), u = Mc();
|
|
4334
4334
|
function m(f, d, h) {
|
|
4335
|
-
let
|
|
4336
|
-
const
|
|
4335
|
+
let g, p = typeof d == "string" ? d : (0, n.formatWithValidation)(d);
|
|
4336
|
+
const _ = p.match(/^[a-zA-Z]{1,}:\/\//), y = _ ? p.slice(_[0].length) : p;
|
|
4337
4337
|
if ((y.split("?")[0] || "").match(/(\/\/|\\)/)) {
|
|
4338
4338
|
console.error("Invalid href '" + p + "' passed to next/router in page: '" + f.pathname + "'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");
|
|
4339
|
-
const
|
|
4340
|
-
p = (
|
|
4339
|
+
const P = (0, o.normalizeRepeatedSlashes)(y);
|
|
4340
|
+
p = (_ ? _[0] : "") + P;
|
|
4341
4341
|
}
|
|
4342
4342
|
if (!(0, s.isLocalURL)(p))
|
|
4343
4343
|
return h ? [
|
|
4344
4344
|
p
|
|
4345
4345
|
] : p;
|
|
4346
4346
|
try {
|
|
4347
|
-
|
|
4347
|
+
g = new URL(p.startsWith("#") ? f.asPath : f.pathname, "http://n");
|
|
4348
4348
|
} catch {
|
|
4349
|
-
|
|
4349
|
+
g = new URL("/", "http://n");
|
|
4350
4350
|
}
|
|
4351
4351
|
try {
|
|
4352
|
-
const
|
|
4353
|
-
|
|
4352
|
+
const P = new URL(p, g);
|
|
4353
|
+
P.pathname = (0, i.normalizePathTrailingSlash)(P.pathname);
|
|
4354
4354
|
let b = "";
|
|
4355
|
-
if ((0, c.isDynamicRoute)(
|
|
4356
|
-
const C = (0, r.searchParamsToUrlQuery)(
|
|
4357
|
-
|
|
4358
|
-
pathname:
|
|
4359
|
-
hash:
|
|
4355
|
+
if ((0, c.isDynamicRoute)(P.pathname) && P.searchParams && h) {
|
|
4356
|
+
const C = (0, r.searchParamsToUrlQuery)(P.searchParams), { result: N, params: w } = (0, u.interpolateAs)(P.pathname, P.pathname, C);
|
|
4357
|
+
N && (b = (0, n.formatWithValidation)({
|
|
4358
|
+
pathname: N,
|
|
4359
|
+
hash: P.hash,
|
|
4360
4360
|
query: (0, a.omit)(C, w)
|
|
4361
4361
|
}));
|
|
4362
4362
|
}
|
|
4363
|
-
const v =
|
|
4363
|
+
const v = P.origin === g.origin ? P.href.slice(P.origin.length) : P.href;
|
|
4364
4364
|
return h ? [
|
|
4365
4365
|
v,
|
|
4366
4366
|
b || v
|
|
@@ -4374,9 +4374,9 @@ function xc() {
|
|
|
4374
4374
|
(typeof t.default == "function" || typeof t.default == "object" && t.default !== null) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), e.exports = t.default);
|
|
4375
4375
|
}(dt, dt.exports)), dt.exports;
|
|
4376
4376
|
}
|
|
4377
|
-
var pt = { exports: {} }, ar = {}, ir = {},
|
|
4377
|
+
var pt = { exports: {} }, ar = {}, ir = {}, Pn;
|
|
4378
4378
|
function da() {
|
|
4379
|
-
return
|
|
4379
|
+
return Pn || (Pn = 1, function(e) {
|
|
4380
4380
|
Object.defineProperty(e, "__esModule", {
|
|
4381
4381
|
value: !0
|
|
4382
4382
|
}), Object.defineProperty(e, "addPathPrefix", {
|
|
@@ -4443,7 +4443,7 @@ function Dc() {
|
|
|
4443
4443
|
return n;
|
|
4444
4444
|
}
|
|
4445
4445
|
});
|
|
4446
|
-
const n = (/* @__PURE__ */ ge._(
|
|
4446
|
+
const n = (/* @__PURE__ */ ge._(Pe)).default.createContext(null);
|
|
4447
4447
|
process.env.NODE_ENV !== "production" && (n.displayName = "RouterContext");
|
|
4448
4448
|
}(sr)), sr;
|
|
4449
4449
|
}
|
|
@@ -4477,7 +4477,7 @@ function qc() {
|
|
|
4477
4477
|
return c;
|
|
4478
4478
|
}
|
|
4479
4479
|
});
|
|
4480
|
-
const n = /* @__PURE__ */ ge._(
|
|
4480
|
+
const n = /* @__PURE__ */ ge._(Pe);
|
|
4481
4481
|
var a;
|
|
4482
4482
|
(function(u) {
|
|
4483
4483
|
u.LAZY_INITIALIZED = "LAZYINITIALIZED", u.DATA_FETCH = "DATAFETCH", u.READY = "READY";
|
|
@@ -4497,32 +4497,32 @@ function jc() {
|
|
|
4497
4497
|
return u;
|
|
4498
4498
|
}
|
|
4499
4499
|
});
|
|
4500
|
-
const r =
|
|
4500
|
+
const r = Pe, n = aa(), a = typeof IntersectionObserver == "function", o = /* @__PURE__ */ new Map(), i = [];
|
|
4501
4501
|
function s(m) {
|
|
4502
4502
|
const f = {
|
|
4503
4503
|
root: m.root || null,
|
|
4504
4504
|
margin: m.rootMargin || ""
|
|
4505
|
-
}, d = i.find((
|
|
4505
|
+
}, d = i.find((_) => _.root === f.root && _.margin === f.margin);
|
|
4506
4506
|
let h;
|
|
4507
4507
|
if (d && (h = o.get(d), h))
|
|
4508
4508
|
return h;
|
|
4509
|
-
const
|
|
4510
|
-
|
|
4511
|
-
const S =
|
|
4512
|
-
S &&
|
|
4509
|
+
const g = /* @__PURE__ */ new Map(), p = new IntersectionObserver((_) => {
|
|
4510
|
+
_.forEach((y) => {
|
|
4511
|
+
const S = g.get(y.target), P = y.isIntersecting || y.intersectionRatio > 0;
|
|
4512
|
+
S && P && S(P);
|
|
4513
4513
|
});
|
|
4514
4514
|
}, m);
|
|
4515
4515
|
return h = {
|
|
4516
4516
|
id: f,
|
|
4517
4517
|
observer: p,
|
|
4518
|
-
elements:
|
|
4518
|
+
elements: g
|
|
4519
4519
|
}, i.push(f), o.set(f, h), h;
|
|
4520
4520
|
}
|
|
4521
4521
|
function c(m, f, d) {
|
|
4522
|
-
const { id: h, observer:
|
|
4523
|
-
return p.set(m, f),
|
|
4524
|
-
if (p.delete(m),
|
|
4525
|
-
|
|
4522
|
+
const { id: h, observer: g, elements: p } = s(d);
|
|
4523
|
+
return p.set(m, f), g.observe(m), function() {
|
|
4524
|
+
if (p.delete(m), g.unobserve(m), p.size === 0) {
|
|
4525
|
+
g.disconnect(), o.delete(h);
|
|
4526
4526
|
const y = i.findIndex((S) => S.root === h.root && S.margin === h.margin);
|
|
4527
4527
|
y > -1 && i.splice(y, 1);
|
|
4528
4528
|
}
|
|
@@ -4530,36 +4530,36 @@ function jc() {
|
|
|
4530
4530
|
}
|
|
4531
4531
|
function u(m) {
|
|
4532
4532
|
let { rootRef: f, rootMargin: d, disabled: h } = m;
|
|
4533
|
-
const
|
|
4533
|
+
const g = h || !a, [p, _] = (0, r.useState)(!1), y = (0, r.useRef)(null), S = (0, r.useCallback)((b) => {
|
|
4534
4534
|
y.current = b;
|
|
4535
4535
|
}, []);
|
|
4536
4536
|
(0, r.useEffect)(() => {
|
|
4537
4537
|
if (a) {
|
|
4538
|
-
if (
|
|
4538
|
+
if (g || p) return;
|
|
4539
4539
|
const b = y.current;
|
|
4540
4540
|
if (b && b.tagName)
|
|
4541
|
-
return c(b, (C) => C &&
|
|
4541
|
+
return c(b, (C) => C && _(C), {
|
|
4542
4542
|
root: f == null ? void 0 : f.current,
|
|
4543
4543
|
rootMargin: d
|
|
4544
4544
|
});
|
|
4545
4545
|
} else if (!p) {
|
|
4546
|
-
const b = (0, n.requestIdleCallback)(() =>
|
|
4546
|
+
const b = (0, n.requestIdleCallback)(() => _(!0));
|
|
4547
4547
|
return () => (0, n.cancelIdleCallback)(b);
|
|
4548
4548
|
}
|
|
4549
4549
|
}, [
|
|
4550
|
-
|
|
4550
|
+
g,
|
|
4551
4551
|
d,
|
|
4552
4552
|
f,
|
|
4553
4553
|
p,
|
|
4554
4554
|
y.current
|
|
4555
4555
|
]);
|
|
4556
|
-
const
|
|
4557
|
-
|
|
4556
|
+
const P = (0, r.useCallback)(() => {
|
|
4557
|
+
_(!1);
|
|
4558
4558
|
}, []);
|
|
4559
4559
|
return [
|
|
4560
4560
|
S,
|
|
4561
4561
|
p,
|
|
4562
|
-
|
|
4562
|
+
P
|
|
4563
4563
|
];
|
|
4564
4564
|
}
|
|
4565
4565
|
(typeof t.default == "function" || typeof t.default == "object" && t.default !== null) && typeof t.default.__esModule > "u" && (Object.defineProperty(t.default, "__esModule", { value: !0 }), Object.assign(t.default, t), e.exports = t.default);
|
|
@@ -4664,8 +4664,8 @@ function Hc() {
|
|
|
4664
4664
|
if (process.env.__NEXT_I18N_SUPPORT) {
|
|
4665
4665
|
const u = $c().normalizeLocalePath, m = Uc().detectDomainLocale, f = i || u(o, s).detectedLocale, d = m(c, void 0, f);
|
|
4666
4666
|
if (d) {
|
|
4667
|
-
const h = "http" + (d.http ? "" : "s") + "://",
|
|
4668
|
-
return "" + h + d.domain + (0, r.normalizePathTrailingSlash)("" + n +
|
|
4667
|
+
const h = "http" + (d.http ? "" : "s") + "://", g = f === d.defaultLocale ? "" : "/" + f;
|
|
4668
|
+
return "" + h + d.domain + (0, r.normalizePathTrailingSlash)("" + n + g + o);
|
|
4669
4669
|
}
|
|
4670
4670
|
return !1;
|
|
4671
4671
|
} else
|
|
@@ -4747,20 +4747,20 @@ function Bc() {
|
|
|
4747
4747
|
return v;
|
|
4748
4748
|
}
|
|
4749
4749
|
});
|
|
4750
|
-
const n = /* @__PURE__ */ ge._(
|
|
4751
|
-
function
|
|
4752
|
-
if (typeof window > "u" || !z && !(0, o.isLocalURL)(
|
|
4750
|
+
const n = /* @__PURE__ */ ge._(Pe), a = xc(), o = ua(), i = sa(), s = Ot(), c = kc(), u = Dc(), m = qc(), f = jc(), d = Hc(), h = Wc(), g = Bc(), p = /* @__PURE__ */ new Set();
|
|
4751
|
+
function _(C, N, w, T, A, z) {
|
|
4752
|
+
if (typeof window > "u" || !z && !(0, o.isLocalURL)(N))
|
|
4753
4753
|
return;
|
|
4754
4754
|
if (!T.bypassPrefetchedCheck) {
|
|
4755
4755
|
const R = (
|
|
4756
4756
|
// Let the link's locale prop override the default router locale.
|
|
4757
4757
|
typeof T.locale < "u" ? T.locale : "locale" in C ? C.locale : void 0
|
|
4758
|
-
), x =
|
|
4758
|
+
), x = N + "%" + w + "%" + R;
|
|
4759
4759
|
if (p.has(x))
|
|
4760
4760
|
return;
|
|
4761
4761
|
p.add(x);
|
|
4762
4762
|
}
|
|
4763
|
-
const O = z ? C.prefetch(
|
|
4763
|
+
const O = z ? C.prefetch(N, A) : C.prefetch(N, w, T);
|
|
4764
4764
|
Promise.resolve(O).catch((R) => {
|
|
4765
4765
|
if (process.env.NODE_ENV !== "production")
|
|
4766
4766
|
throw R;
|
|
@@ -4771,7 +4771,7 @@ function Bc() {
|
|
|
4771
4771
|
return w && w !== "_self" || C.metaKey || C.ctrlKey || C.shiftKey || C.altKey || // triggers resource download
|
|
4772
4772
|
C.nativeEvent && C.nativeEvent.which === 2;
|
|
4773
4773
|
}
|
|
4774
|
-
function S(C,
|
|
4774
|
+
function S(C, N, w, T, A, z, O, R, x, E) {
|
|
4775
4775
|
const { nodeName: L } = C.currentTarget;
|
|
4776
4776
|
if (L.toUpperCase() === "A" && (y(C) || // 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.
|
|
4777
4777
|
!x && !(0, o.isLocalURL)(w)))
|
|
@@ -4779,25 +4779,25 @@ function Bc() {
|
|
|
4779
4779
|
C.preventDefault();
|
|
4780
4780
|
const $ = () => {
|
|
4781
4781
|
const K = O ?? !0;
|
|
4782
|
-
"beforePopState" in
|
|
4782
|
+
"beforePopState" in N ? N[A ? "replace" : "push"](w, T, {
|
|
4783
4783
|
shallow: z,
|
|
4784
4784
|
locale: R,
|
|
4785
4785
|
scroll: K
|
|
4786
|
-
}) :
|
|
4786
|
+
}) : N[A ? "replace" : "push"](T || w, {
|
|
4787
4787
|
forceOptimisticNavigation: !E,
|
|
4788
4788
|
scroll: K
|
|
4789
4789
|
});
|
|
4790
4790
|
};
|
|
4791
4791
|
x ? n.default.startTransition($) : $();
|
|
4792
4792
|
}
|
|
4793
|
-
function
|
|
4793
|
+
function P(C) {
|
|
4794
4794
|
return typeof C == "string" ? C : (0, i.formatUrl)(C);
|
|
4795
4795
|
}
|
|
4796
|
-
const v = /* @__PURE__ */ n.default.forwardRef(function(
|
|
4796
|
+
const v = /* @__PURE__ */ n.default.forwardRef(function(N, w) {
|
|
4797
4797
|
let T;
|
|
4798
|
-
const { href: A, as: z, children: O, prefetch: R = null, passHref: x, replace: E, shallow: L, scroll: q, locale: $, onClick: K, onMouseEnter: ae, onTouchStart: ie, legacyBehavior: pe = !1, ...Za } =
|
|
4798
|
+
const { href: A, as: z, children: O, prefetch: R = null, passHref: x, replace: E, shallow: L, scroll: q, locale: $, onClick: K, onMouseEnter: ae, onTouchStart: ie, legacyBehavior: pe = !1, ...Za } = N;
|
|
4799
4799
|
T = O, pe && (typeof T == "string" || typeof T == "number") && (T = /* @__PURE__ */ n.default.createElement("a", null, T));
|
|
4800
|
-
const X = n.default.useContext(u.RouterContext), Ja = n.default.useContext(m.AppRouterContext),
|
|
4800
|
+
const X = n.default.useContext(u.RouterContext), Ja = n.default.useContext(m.AppRouterContext), ve = X ?? Ja, be = !X, Xe = R !== !1, it = R === null ? g.PrefetchKind.AUTO : g.PrefetchKind.FULL;
|
|
4801
4801
|
if (process.env.NODE_ENV !== "production") {
|
|
4802
4802
|
let M = function(k) {
|
|
4803
4803
|
return new Error("Failed prop type: The prop `" + k.key + "` expects a " + k.expected + " in `<Link>`, but got `" + k.actual + "` instead." + (typeof window < "u" ? `
|
|
@@ -4806,11 +4806,11 @@ Open your browser's console to view the Component stack trace.` : ""));
|
|
|
4806
4806
|
Object.keys({
|
|
4807
4807
|
href: !0
|
|
4808
4808
|
}).forEach((k) => {
|
|
4809
|
-
if (k === "href" && (
|
|
4809
|
+
if (k === "href" && (N[k] == null || typeof N[k] != "string" && typeof N[k] != "object"))
|
|
4810
4810
|
throw M({
|
|
4811
4811
|
key: k,
|
|
4812
4812
|
expected: "`string` or `object`",
|
|
4813
|
-
actual:
|
|
4813
|
+
actual: N[k] === null ? "null" : typeof N[k]
|
|
4814
4814
|
});
|
|
4815
4815
|
}), Object.keys({
|
|
4816
4816
|
as: !0,
|
|
@@ -4825,29 +4825,29 @@ Open your browser's console to view the Component stack trace.` : ""));
|
|
|
4825
4825
|
onTouchStart: !0,
|
|
4826
4826
|
legacyBehavior: !0
|
|
4827
4827
|
}).forEach((k) => {
|
|
4828
|
-
const Ne = typeof
|
|
4828
|
+
const Ne = typeof N[k];
|
|
4829
4829
|
if (k === "as") {
|
|
4830
|
-
if (
|
|
4830
|
+
if (N[k] && Ne !== "string" && Ne !== "object")
|
|
4831
4831
|
throw M({
|
|
4832
4832
|
key: k,
|
|
4833
4833
|
expected: "`string` or `object`",
|
|
4834
4834
|
actual: Ne
|
|
4835
4835
|
});
|
|
4836
4836
|
} else if (k === "locale") {
|
|
4837
|
-
if (
|
|
4837
|
+
if (N[k] && Ne !== "string")
|
|
4838
4838
|
throw M({
|
|
4839
4839
|
key: k,
|
|
4840
4840
|
expected: "`string`",
|
|
4841
4841
|
actual: Ne
|
|
4842
4842
|
});
|
|
4843
4843
|
} else if (k === "onClick" || k === "onMouseEnter" || k === "onTouchStart") {
|
|
4844
|
-
if (
|
|
4844
|
+
if (N[k] && Ne !== "function")
|
|
4845
4845
|
throw M({
|
|
4846
4846
|
key: k,
|
|
4847
4847
|
expected: "`function`",
|
|
4848
4848
|
actual: Ne
|
|
4849
4849
|
});
|
|
4850
|
-
} else if ((k === "replace" || k === "scroll" || k === "shallow" || k === "passHref" || k === "prefetch" || k === "legacyBehavior") &&
|
|
4850
|
+
} else if ((k === "replace" || k === "scroll" || k === "shallow" || k === "passHref" || k === "prefetch" || k === "legacyBehavior") && N[k] != null && Ne !== "boolean")
|
|
4851
4851
|
throw M({
|
|
4852
4852
|
key: k,
|
|
4853
4853
|
expected: "`boolean`",
|
|
@@ -4855,19 +4855,19 @@ Open your browser's console to view the Component stack trace.` : ""));
|
|
|
4855
4855
|
});
|
|
4856
4856
|
});
|
|
4857
4857
|
const Hr = n.default.useRef(!1);
|
|
4858
|
-
|
|
4858
|
+
N.prefetch && !Hr.current && !be && (Hr.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"));
|
|
4859
4859
|
}
|
|
4860
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
4860
|
+
if (process.env.NODE_ENV !== "production" && be && !z) {
|
|
4861
4861
|
let M;
|
|
4862
4862
|
if (typeof A == "string" ? M = A : typeof A == "object" && typeof A.pathname == "string" && (M = A.pathname), M && M.split("/").some((ze) => ze.startsWith("[") && ze.endsWith("]")))
|
|
4863
4863
|
throw new Error("Dynamic href `" + M + "` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href");
|
|
4864
4864
|
}
|
|
4865
|
-
const { href:
|
|
4865
|
+
const { href: Ce, as: se } = n.default.useMemo(() => {
|
|
4866
4866
|
if (!X) {
|
|
4867
|
-
const ze =
|
|
4867
|
+
const ze = P(A);
|
|
4868
4868
|
return {
|
|
4869
4869
|
href: ze,
|
|
4870
|
-
as: z ?
|
|
4870
|
+
as: z ? P(z) : ze
|
|
4871
4871
|
};
|
|
4872
4872
|
}
|
|
4873
4873
|
const [M, Qe] = (0, a.resolveHref)(X, A, !0);
|
|
@@ -4879,7 +4879,7 @@ Open your browser's console to view the Component stack trace.` : ""));
|
|
|
4879
4879
|
X,
|
|
4880
4880
|
A,
|
|
4881
4881
|
z
|
|
4882
|
-
]), jr = n.default.useRef(
|
|
4882
|
+
]), jr = n.default.useRef(Ce), zr = n.default.useRef(se);
|
|
4883
4883
|
let Z;
|
|
4884
4884
|
if (pe)
|
|
4885
4885
|
if (process.env.NODE_ENV === "development") {
|
|
@@ -4898,29 +4898,29 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
|
|
|
4898
4898
|
const je = pe ? Z && typeof Z == "object" && Z.ref : w, [$r, Fr, Ur] = (0, f.useIntersection)({
|
|
4899
4899
|
rootMargin: "200px"
|
|
4900
4900
|
}), ei = n.default.useCallback((M) => {
|
|
4901
|
-
(zr.current !== se || jr.current !==
|
|
4901
|
+
(zr.current !== se || jr.current !== Ce) && (Ur(), zr.current = se, jr.current = Ce), $r(M), je && (typeof je == "function" ? je(M) : typeof je == "object" && (je.current = M));
|
|
4902
4902
|
}, [
|
|
4903
4903
|
se,
|
|
4904
4904
|
je,
|
|
4905
|
-
|
|
4905
|
+
Ce,
|
|
4906
4906
|
Ur,
|
|
4907
4907
|
$r
|
|
4908
4908
|
]);
|
|
4909
4909
|
n.default.useEffect(() => {
|
|
4910
|
-
process.env.NODE_ENV === "production" &&
|
|
4910
|
+
process.env.NODE_ENV === "production" && ve && (!Fr || !Xe || _(ve, Ce, se, {
|
|
4911
4911
|
locale: $
|
|
4912
4912
|
}, {
|
|
4913
4913
|
kind: it
|
|
4914
|
-
},
|
|
4914
|
+
}, be));
|
|
4915
4915
|
}, [
|
|
4916
4916
|
se,
|
|
4917
|
-
|
|
4917
|
+
Ce,
|
|
4918
4918
|
Fr,
|
|
4919
4919
|
$,
|
|
4920
4920
|
Xe,
|
|
4921
4921
|
X == null ? void 0 : X.locale,
|
|
4922
|
+
ve,
|
|
4922
4923
|
be,
|
|
4923
|
-
Ce,
|
|
4924
4924
|
it
|
|
4925
4925
|
]);
|
|
4926
4926
|
const st = {
|
|
@@ -4928,27 +4928,27 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
|
|
|
4928
4928
|
onClick(M) {
|
|
4929
4929
|
if (process.env.NODE_ENV !== "production" && !M)
|
|
4930
4930
|
throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');
|
|
4931
|
-
!pe && typeof K == "function" && K(M), pe && Z.props && typeof Z.props.onClick == "function" && Z.props.onClick(M),
|
|
4931
|
+
!pe && typeof K == "function" && K(M), pe && Z.props && typeof Z.props.onClick == "function" && Z.props.onClick(M), ve && (M.defaultPrevented || S(M, ve, Ce, se, E, L, q, $, be, Xe));
|
|
4932
4932
|
},
|
|
4933
4933
|
onMouseEnter(M) {
|
|
4934
|
-
!pe && typeof ae == "function" && ae(M), pe && Z.props && typeof Z.props.onMouseEnter == "function" && Z.props.onMouseEnter(M),
|
|
4934
|
+
!pe && typeof ae == "function" && ae(M), pe && Z.props && typeof Z.props.onMouseEnter == "function" && Z.props.onMouseEnter(M), ve && ((!Xe || process.env.NODE_ENV === "development") && be || _(ve, Ce, se, {
|
|
4935
4935
|
locale: $,
|
|
4936
4936
|
priority: !0,
|
|
4937
4937
|
// @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
|
|
4938
4938
|
bypassPrefetchedCheck: !0
|
|
4939
4939
|
}, {
|
|
4940
4940
|
kind: it
|
|
4941
|
-
},
|
|
4941
|
+
}, be));
|
|
4942
4942
|
},
|
|
4943
4943
|
onTouchStart(M) {
|
|
4944
|
-
!pe && typeof ie == "function" && ie(M), pe && Z.props && typeof Z.props.onTouchStart == "function" && Z.props.onTouchStart(M),
|
|
4944
|
+
!pe && typeof ie == "function" && ie(M), pe && Z.props && typeof Z.props.onTouchStart == "function" && Z.props.onTouchStart(M), ve && (!Xe && be || _(ve, Ce, se, {
|
|
4945
4945
|
locale: $,
|
|
4946
4946
|
priority: !0,
|
|
4947
4947
|
// @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
|
|
4948
4948
|
bypassPrefetchedCheck: !0
|
|
4949
4949
|
}, {
|
|
4950
4950
|
kind: it
|
|
4951
|
-
},
|
|
4951
|
+
}, be));
|
|
4952
4952
|
}
|
|
4953
4953
|
};
|
|
4954
4954
|
if ((0, s.isAbsoluteUrl)(se))
|
|
@@ -4980,12 +4980,12 @@ const ye = /* @__PURE__ */ Mr(Gc), Ct = ({
|
|
|
4980
4980
|
rowAlignContent: f,
|
|
4981
4981
|
columnAlignContent: d,
|
|
4982
4982
|
columnAlignItems: h,
|
|
4983
|
-
textAlignContent:
|
|
4983
|
+
textAlignContent: g,
|
|
4984
4984
|
textAlignItems: p,
|
|
4985
|
-
...
|
|
4985
|
+
..._
|
|
4986
4986
|
}) => {
|
|
4987
4987
|
let y;
|
|
4988
|
-
const { handleSelectContent: S } = V(), { nextimage:
|
|
4988
|
+
const { handleSelectContent: S } = V(), { nextimage: P } = Ie();
|
|
4989
4989
|
switch (e) {
|
|
4990
4990
|
case "menu":
|
|
4991
4991
|
y = /* @__PURE__ */ l(
|
|
@@ -5016,7 +5016,7 @@ const ye = /* @__PURE__ */ Mr(Gc), Ct = ({
|
|
|
5016
5016
|
F.payment,
|
|
5017
5017
|
F.footer__itemSmallText
|
|
5018
5018
|
),
|
|
5019
|
-
...
|
|
5019
|
+
..._,
|
|
5020
5020
|
children: [
|
|
5021
5021
|
u,
|
|
5022
5022
|
/* @__PURE__ */ I(
|
|
@@ -5029,7 +5029,7 @@ const ye = /* @__PURE__ */ Mr(Gc), Ct = ({
|
|
|
5029
5029
|
children: [
|
|
5030
5030
|
m,
|
|
5031
5031
|
/* @__PURE__ */ l("div", { className: F.footer__iconList, children: o == null ? void 0 : o.map((b, v) => /* @__PURE__ */ l(
|
|
5032
|
-
|
|
5032
|
+
P,
|
|
5033
5033
|
{
|
|
5034
5034
|
alt: b,
|
|
5035
5035
|
src: `/assets/${b}.svg`,
|
|
@@ -5046,7 +5046,7 @@ const ye = /* @__PURE__ */ Mr(Gc), Ct = ({
|
|
|
5046
5046
|
);
|
|
5047
5047
|
break;
|
|
5048
5048
|
case "social-media":
|
|
5049
|
-
y = /* @__PURE__ */ l("div", { className: F.footer__iconContainer, ...
|
|
5049
|
+
y = /* @__PURE__ */ l("div", { className: F.footer__iconContainer, ..._, children: /* @__PURE__ */ l("div", { className: F.footer__iconList, children: i == null ? void 0 : i.map((b, v) => /* @__PURE__ */ l(
|
|
5050
5050
|
ye,
|
|
5051
5051
|
{
|
|
5052
5052
|
prefetch: !1,
|
|
@@ -5066,7 +5066,7 @@ const ye = /* @__PURE__ */ Mr(Gc), Ct = ({
|
|
|
5066
5066
|
)) }) });
|
|
5067
5067
|
break;
|
|
5068
5068
|
default:
|
|
5069
|
-
y = /* @__PURE__ */ l("div", { className: r, ...
|
|
5069
|
+
y = /* @__PURE__ */ l("div", { className: r, ..._, children: t });
|
|
5070
5070
|
}
|
|
5071
5071
|
return /* @__PURE__ */ l(
|
|
5072
5072
|
H.Root,
|
|
@@ -5081,11 +5081,11 @@ const ye = /* @__PURE__ */ Mr(Gc), Ct = ({
|
|
|
5081
5081
|
alignItems: h
|
|
5082
5082
|
}
|
|
5083
5083
|
},
|
|
5084
|
-
...
|
|
5084
|
+
..._,
|
|
5085
5085
|
children: /* @__PURE__ */ l(
|
|
5086
5086
|
H.DivWrapper,
|
|
5087
5087
|
{
|
|
5088
|
-
alignContent:
|
|
5088
|
+
alignContent: g,
|
|
5089
5089
|
alignItems: p,
|
|
5090
5090
|
className: j.classNameConcat(F.footer__item, r),
|
|
5091
5091
|
children: y
|
|
@@ -5108,7 +5108,7 @@ const ye = /* @__PURE__ */ Mr(Gc), Ct = ({
|
|
|
5108
5108
|
children: /* @__PURE__ */ l("span", { children: t })
|
|
5109
5109
|
}
|
|
5110
5110
|
), fa = () => {
|
|
5111
|
-
const { nextimage: e } =
|
|
5111
|
+
const { nextimage: e } = Ie();
|
|
5112
5112
|
return /* @__PURE__ */ l("div", { className: F["footer--stamps"], children: /* @__PURE__ */ l(
|
|
5113
5113
|
e,
|
|
5114
5114
|
{
|
|
@@ -5487,12 +5487,12 @@ const Cr = {
|
|
|
5487
5487
|
...n
|
|
5488
5488
|
}) => {
|
|
5489
5489
|
var c;
|
|
5490
|
-
const { router: a } =
|
|
5490
|
+
const { router: a } = Ie(), { reset: o } = Me(), { handleSelectContent: i } = V(), { CONSTANTS: s } = Q();
|
|
5491
5491
|
return /* @__PURE__ */ I("div", { ...n, className: Cr["menu-categories"], children: [
|
|
5492
5492
|
(c = r == null ? void 0 : r.subCategories) == null ? void 0 : c.map(
|
|
5493
5493
|
(u, m) => {
|
|
5494
|
-
var h,
|
|
5495
|
-
const f = u.listCollapseDesk && !((h = u.see_all) != null && h.link) ? { expandAfterRowsQty: u.rowsToShowDesk } : {}, d = u.listCollapseDesk && !((
|
|
5494
|
+
var h, g, p;
|
|
5495
|
+
const f = u.listCollapseDesk && !((h = u.see_all) != null && h.link) ? { expandAfterRowsQty: u.rowsToShowDesk } : {}, d = u.listCollapseDesk && !((g = u.see_all) != null && g.link) ? {
|
|
5496
5496
|
expansivesAdornments: {
|
|
5497
5497
|
open: s.header.ICONS.add,
|
|
5498
5498
|
close: s.header.ICONS.minus
|
|
@@ -5528,28 +5528,28 @@ const Cr = {
|
|
|
5528
5528
|
...f,
|
|
5529
5529
|
className: Cr["submenu-categories"],
|
|
5530
5530
|
children: u.items.map(
|
|
5531
|
-
(
|
|
5531
|
+
(_, y) => /* @__PURE__ */ l(
|
|
5532
5532
|
Oe.ListItem,
|
|
5533
5533
|
{
|
|
5534
|
-
id: `list-item-${
|
|
5534
|
+
id: `list-item-${_.label}-${y}`,
|
|
5535
5535
|
children: /* @__PURE__ */ l(
|
|
5536
5536
|
at,
|
|
5537
5537
|
{
|
|
5538
|
-
href:
|
|
5538
|
+
href: _.link ?? "#",
|
|
5539
5539
|
size: "x-small",
|
|
5540
|
-
title:
|
|
5540
|
+
title: _.label ?? "",
|
|
5541
5541
|
disableUnderline: !0,
|
|
5542
5542
|
disablePadding: !0,
|
|
5543
5543
|
onClick: () => {
|
|
5544
5544
|
o(), i({
|
|
5545
|
-
content: `menu:${u.label ?? ""}:${
|
|
5545
|
+
content: `menu:${u.label ?? ""}:${_.label ?? ""}:${r.label ?? ""}`
|
|
5546
5546
|
});
|
|
5547
5547
|
},
|
|
5548
|
-
children:
|
|
5548
|
+
children: _.label
|
|
5549
5549
|
}
|
|
5550
5550
|
)
|
|
5551
5551
|
},
|
|
5552
|
-
`list-item-${
|
|
5552
|
+
`list-item-${_.label}-${y}`
|
|
5553
5553
|
)
|
|
5554
5554
|
)
|
|
5555
5555
|
}
|
|
@@ -5560,8 +5560,8 @@ const Cr = {
|
|
|
5560
5560
|
...d,
|
|
5561
5561
|
size: "small",
|
|
5562
5562
|
onClick: () => {
|
|
5563
|
-
var
|
|
5564
|
-
(
|
|
5563
|
+
var _;
|
|
5564
|
+
(_ = u.see_all) != null && _.link && (o(), i({
|
|
5565
5565
|
content: `menu:${u.label ?? ""}:${r.label}`
|
|
5566
5566
|
}), a.push(u.see_all.link));
|
|
5567
5567
|
},
|
|
@@ -5718,7 +5718,7 @@ const nl = "_divider_1lexj_199", B = {
|
|
|
5718
5718
|
divider: nl,
|
|
5719
5719
|
"menu-navigationbar-item": "_menu-navigationbar-item_1lexj_206",
|
|
5720
5720
|
"menu-categories-textstructure-modifier": "_menu-categories-textstructure-modifier_1lexj_210"
|
|
5721
|
-
},
|
|
5721
|
+
}, Na = ({
|
|
5722
5722
|
children: e,
|
|
5723
5723
|
mobileBannerAlt: t,
|
|
5724
5724
|
mobileBannerSrc: r,
|
|
@@ -5759,21 +5759,21 @@ const nl = "_divider_1lexj_199", B = {
|
|
|
5759
5759
|
]
|
|
5760
5760
|
}
|
|
5761
5761
|
) : /* @__PURE__ */ l("h2", { ...o, children: e }) });
|
|
5762
|
-
|
|
5763
|
-
const
|
|
5762
|
+
Na.displayName = "Menu.MenuCategories";
|
|
5763
|
+
const Pa = ({
|
|
5764
5764
|
children: e,
|
|
5765
5765
|
link: t
|
|
5766
5766
|
}) => {
|
|
5767
5767
|
const { reset: r } = De();
|
|
5768
5768
|
return t ? /* @__PURE__ */ l(ye, { href: t ?? "#", onClick: r, children: e }) : e;
|
|
5769
5769
|
};
|
|
5770
|
-
|
|
5770
|
+
Pa.displayName = "Menu.MenuCategoriesWrapper";
|
|
5771
5771
|
const Ia = ({
|
|
5772
5772
|
subcategory: e,
|
|
5773
5773
|
submenuLabel: t
|
|
5774
5774
|
}) => {
|
|
5775
5775
|
var c, u, m;
|
|
5776
|
-
const { router: r } =
|
|
5776
|
+
const { router: r } = Ie(), { reset: n } = De(), { handleSelectContent: a } = V(), { CONSTANTS: o } = Q(), i = e.listCollapseMobile && !((c = e.see_all) != null && c.link) ? { expandAfterRowsQty: e.rowsToShowMobile } : {}, s = e.listCollapseMobile && !((u = e.see_all) != null && u.link) ? {
|
|
5777
5777
|
expansivesAdornments: {
|
|
5778
5778
|
open: o.header.ICONS.add,
|
|
5779
5779
|
close: o.header.ICONS.minus
|
|
@@ -5968,11 +5968,11 @@ const wa = ({ className: e, ...t }) => {
|
|
|
5968
5968
|
(i, s) => {
|
|
5969
5969
|
const c = i.submenuId ? {} : { "data-close": !0 };
|
|
5970
5970
|
return /* @__PURE__ */ l(
|
|
5971
|
-
|
|
5971
|
+
Pa,
|
|
5972
5972
|
{
|
|
5973
5973
|
link: i.submenuId ? null : i.link,
|
|
5974
5974
|
children: /* @__PURE__ */ l(
|
|
5975
|
-
|
|
5975
|
+
Na,
|
|
5976
5976
|
{
|
|
5977
5977
|
onClick: () => {
|
|
5978
5978
|
n(i.submenuId ?? null), o({ content: `menu:${i.label}` });
|
|
@@ -6084,7 +6084,7 @@ const Aa = ({ children: e }) => {
|
|
|
6084
6084
|
Aa.displayName = "Menu.MenuRoot";
|
|
6085
6085
|
const ol = xr(() => Promise.resolve(Aa), {
|
|
6086
6086
|
ssr: !1
|
|
6087
|
-
}),
|
|
6087
|
+
}), Pt = ({ children: e, ...t }) => /* @__PURE__ */ I(ne, { children: [
|
|
6088
6088
|
/* @__PURE__ */ l(Re, { ...t, className: B["menu-navigationbar-item"], children: e }),
|
|
6089
6089
|
/* @__PURE__ */ l(
|
|
6090
6090
|
Et.Divider,
|
|
@@ -6095,9 +6095,9 @@ const ol = xr(() => Promise.resolve(Aa), {
|
|
|
6095
6095
|
}
|
|
6096
6096
|
)
|
|
6097
6097
|
] });
|
|
6098
|
-
|
|
6098
|
+
Pt.displayName = "Menu.NavigationBarItem";
|
|
6099
6099
|
const Ma = () => {
|
|
6100
|
-
const { setIsOpen: e } = Ke(), { reset: t } = De(), { setValue: r } = Tr(), { handleSelectContent: n } = V(), { CONSTANTS: a } = Q(), { router: o } =
|
|
6100
|
+
const { setIsOpen: e } = Ke(), { reset: t } = De(), { setValue: r } = Tr(), { handleSelectContent: n } = V(), { CONSTANTS: a } = Q(), { router: o } = Ie();
|
|
6101
6101
|
return /* @__PURE__ */ I(
|
|
6102
6102
|
zn,
|
|
6103
6103
|
{
|
|
@@ -6109,7 +6109,7 @@ const Ma = () => {
|
|
|
6109
6109
|
},
|
|
6110
6110
|
children: [
|
|
6111
6111
|
/* @__PURE__ */ l(
|
|
6112
|
-
|
|
6112
|
+
Pt,
|
|
6113
6113
|
{
|
|
6114
6114
|
size: "small",
|
|
6115
6115
|
variant: "tertiary",
|
|
@@ -6121,7 +6121,7 @@ const Ma = () => {
|
|
|
6121
6121
|
}
|
|
6122
6122
|
),
|
|
6123
6123
|
/* @__PURE__ */ l(
|
|
6124
|
-
|
|
6124
|
+
Pt,
|
|
6125
6125
|
{
|
|
6126
6126
|
size: "small",
|
|
6127
6127
|
variant: "tertiary",
|
|
@@ -6133,7 +6133,7 @@ const Ma = () => {
|
|
|
6133
6133
|
}
|
|
6134
6134
|
),
|
|
6135
6135
|
/* @__PURE__ */ l(
|
|
6136
|
-
|
|
6136
|
+
Pt,
|
|
6137
6137
|
{
|
|
6138
6138
|
size: "small",
|
|
6139
6139
|
variant: "tertiary",
|
|
@@ -6149,7 +6149,7 @@ const Ma = () => {
|
|
|
6149
6149
|
);
|
|
6150
6150
|
};
|
|
6151
6151
|
Ma.displayName = "Menu.NavigationBar";
|
|
6152
|
-
const
|
|
6152
|
+
const Nt = {
|
|
6153
6153
|
Root: ol,
|
|
6154
6154
|
NavigationBar: Ma,
|
|
6155
6155
|
Header: Ta,
|
|
@@ -6196,10 +6196,10 @@ const Pt = {
|
|
|
6196
6196
|
e,
|
|
6197
6197
|
{
|
|
6198
6198
|
target: r == null ? void 0 : r.current,
|
|
6199
|
-
children: /* @__PURE__ */ I(
|
|
6200
|
-
/* @__PURE__ */ l(
|
|
6201
|
-
/* @__PURE__ */ l(
|
|
6202
|
-
a ? /* @__PURE__ */ l(
|
|
6199
|
+
children: /* @__PURE__ */ I(Nt.Root, { children: [
|
|
6200
|
+
/* @__PURE__ */ l(Nt.Header, {}),
|
|
6201
|
+
/* @__PURE__ */ l(Nt.Body, {}),
|
|
6202
|
+
a ? /* @__PURE__ */ l(Nt.NavigationBar, {}) : /* @__PURE__ */ l(ne, {})
|
|
6203
6203
|
] })
|
|
6204
6204
|
}
|
|
6205
6205
|
) })
|
|
@@ -6267,7 +6267,7 @@ const La = ({ tipBar: e, miniCart: t, UserMenu: r, SearchModal: n }) => {
|
|
|
6267
6267
|
);
|
|
6268
6268
|
};
|
|
6269
6269
|
La.displayName = "Header";
|
|
6270
|
-
const al = "_shippingFreight_6z8rf_6", il = "_shippingFreight__postalCodeGrid_6z8rf_10", sl = "_shippingFreight__grid_6z8rf_14", cl = "_shippingFreight__grid__title_6z8rf_18", ll = "_shippingFreight__grid__remember_6z8rf_29", ul = "_postalCodeContainer_6z8rf_44", dl = "_deliveryStatusBar__tag_6z8rf_49", fl = "_deliveryStatusBarError__tag_6z8rf_66", ml = "_deliveryInfo_6z8rf_74", pl = "_deliveryInfo__content_6z8rf_78", hl = "_deliveryInfo__text_6z8rf_84", _l = "_deliveryInfo__title_6z8rf_89", gl = "_deliveryInfo__subtitle_6z8rf_99", yl = "_deliveryInfo__tooltipIcon_6z8rf_109", vl = "_deliveryInfo__tooltip_6z8rf_109", bl = "_freightGrid_6z8rf_148", Cl = "_freightContainer_6z8rf_155",
|
|
6270
|
+
const al = "_shippingFreight_6z8rf_6", il = "_shippingFreight__postalCodeGrid_6z8rf_10", sl = "_shippingFreight__grid_6z8rf_14", cl = "_shippingFreight__grid__title_6z8rf_18", ll = "_shippingFreight__grid__remember_6z8rf_29", ul = "_postalCodeContainer_6z8rf_44", dl = "_deliveryStatusBar__tag_6z8rf_49", fl = "_deliveryStatusBarError__tag_6z8rf_66", ml = "_deliveryInfo_6z8rf_74", pl = "_deliveryInfo__content_6z8rf_78", hl = "_deliveryInfo__text_6z8rf_84", _l = "_deliveryInfo__title_6z8rf_89", gl = "_deliveryInfo__subtitle_6z8rf_99", yl = "_deliveryInfo__tooltipIcon_6z8rf_109", vl = "_deliveryInfo__tooltip_6z8rf_109", bl = "_freightGrid_6z8rf_148", Cl = "_freightContainer_6z8rf_155", Nl = "_freightOption__content_6z8rf_160", Pl = "_freightOption__value_6z8rf_166", Il = "_freightOption__title_6z8rf_177", Sl = "_freightOption__title_item_6z8rf_181", El = "_freightOption__paragraph_6z8rf_192", D = {
|
|
6271
6271
|
shippingFreight: al,
|
|
6272
6272
|
shippingFreight__postalCodeGrid: il,
|
|
6273
6273
|
shippingFreight__grid: sl,
|
|
@@ -6285,8 +6285,8 @@ const al = "_shippingFreight_6z8rf_6", il = "_shippingFreight__postalCodeGrid_6z
|
|
|
6285
6285
|
deliveryInfo__tooltip: vl,
|
|
6286
6286
|
freightGrid: bl,
|
|
6287
6287
|
freightContainer: Cl,
|
|
6288
|
-
freightOption__content:
|
|
6289
|
-
freightOption__value:
|
|
6288
|
+
freightOption__content: Nl,
|
|
6289
|
+
freightOption__value: Pl,
|
|
6290
6290
|
freightOption__title: Il,
|
|
6291
6291
|
freightOption__title_item: Sl,
|
|
6292
6292
|
freightOption__paragraph: El,
|
|
@@ -6458,7 +6458,7 @@ const al = "_shippingFreight_6z8rf_6", il = "_shippingFreight__postalCodeGrid_6z
|
|
|
6458
6458
|
toolTipZIndex: u
|
|
6459
6459
|
}) => {
|
|
6460
6460
|
var z, O, R, x;
|
|
6461
|
-
const m = Be(), f = Be((E) => E.shipping), [d, h] = Y(), [
|
|
6461
|
+
const m = Be(), f = Be((E) => E.shipping), [d, h] = Y(), [g, p] = Y(!1), [_, y] = Y(!1), [S, P] = Y(!1), b = (O = (z = m.shippingData) == null ? void 0 : z.address) == null ? void 0 : O.postalCode, v = !(d != null && d.length) && b ? b : d, C = U(null), N = async (E) => {
|
|
6462
6462
|
const q = E.target.value.replace(/\D/g, "").slice(0, 8);
|
|
6463
6463
|
q.length > 5 ? h(q.replace(/^(\d{5})(\d{1,3})/, "$1-$2")) : h(q);
|
|
6464
6464
|
}, w = async (E) => {
|
|
@@ -6490,14 +6490,14 @@ const al = "_shippingFreight_6z8rf_6", il = "_shippingFreight__postalCodeGrid_6z
|
|
|
6490
6490
|
}
|
|
6491
6491
|
}, A = async () => {
|
|
6492
6492
|
if (!n) {
|
|
6493
|
-
|
|
6493
|
+
P(!0), setTimeout(() => P(!1), 1500);
|
|
6494
6494
|
return;
|
|
6495
6495
|
}
|
|
6496
6496
|
await w({
|
|
6497
6497
|
target: {
|
|
6498
6498
|
value: v
|
|
6499
6499
|
}
|
|
6500
|
-
}),
|
|
6500
|
+
}), g || (T(), i(!0));
|
|
6501
6501
|
};
|
|
6502
6502
|
return /* @__PURE__ */ I("div", { ref: C, style: { position: "relative" }, children: [
|
|
6503
6503
|
!n && S ? /* @__PURE__ */ l(
|
|
@@ -6523,18 +6523,18 @@ const al = "_shippingFreight_6z8rf_6", il = "_shippingFreight__postalCodeGrid_6z
|
|
|
6523
6523
|
title: "textfield",
|
|
6524
6524
|
value: d,
|
|
6525
6525
|
sizeVariant: r,
|
|
6526
|
-
onMouseOver: () => n ? null :
|
|
6527
|
-
onMouseOut: () => n ? null :
|
|
6526
|
+
onMouseOver: () => n ? null : P(!0),
|
|
6527
|
+
onMouseOut: () => n ? null : P(!1),
|
|
6528
6528
|
mode: "simple",
|
|
6529
|
-
onChange:
|
|
6529
|
+
onChange: N,
|
|
6530
6530
|
onKeyDown: (E) => {
|
|
6531
6531
|
E.key === "Enter" && A();
|
|
6532
6532
|
},
|
|
6533
6533
|
className: D["input-modifier"],
|
|
6534
|
-
feedback:
|
|
6534
|
+
feedback: _ ? "error" : "none"
|
|
6535
6535
|
}
|
|
6536
6536
|
),
|
|
6537
|
-
right: /* @__PURE__ */ l(Re, { onClick: A, size: r, title: "button", children:
|
|
6537
|
+
right: /* @__PURE__ */ l(Re, { onClick: A, size: r, title: "button", children: g ? /* @__PURE__ */ l(ai, { size: "small", indicatorColor: "#ffffff" }) : c.messages.text_input_btn })
|
|
6538
6538
|
}
|
|
6539
6539
|
) })
|
|
6540
6540
|
] });
|
|
@@ -6568,13 +6568,13 @@ const al = "_shippingFreight_6z8rf_6", il = "_shippingFreight__postalCodeGrid_6z
|
|
|
6568
6568
|
local: i,
|
|
6569
6569
|
CONSTANTS_PROPS: s
|
|
6570
6570
|
}) => {
|
|
6571
|
-
const { sendDataLayerEvent: c } = V(), [u, m] = Y(""), [f, d] = Y([]), [h,
|
|
6572
|
-
d(
|
|
6571
|
+
const { sendDataLayerEvent: c } = V(), [u, m] = Y(""), [f, d] = Y([]), [h, g] = Y(""), [p, _] = Y(!1), y = (P) => m(P), S = (P) => {
|
|
6572
|
+
d(P), c({
|
|
6573
6573
|
functionKey: "readyEvents",
|
|
6574
6574
|
data: {
|
|
6575
6575
|
event: "search_zipcode",
|
|
6576
6576
|
readyData: {
|
|
6577
|
-
shippings:
|
|
6577
|
+
shippings: P.map((b) => ({
|
|
6578
6578
|
shipping_tier: b.id,
|
|
6579
6579
|
delivery_time: b.shippingEstimate.replace("bd", ""),
|
|
6580
6580
|
flag_pickup: b.name.toLowerCase().includes("retirada") ? "true" : "false",
|
|
@@ -6596,13 +6596,13 @@ const al = "_shippingFreight_6z8rf_6", il = "_shippingFreight__postalCodeGrid_6z
|
|
|
6596
6596
|
size: a,
|
|
6597
6597
|
sellerId: t,
|
|
6598
6598
|
local: i,
|
|
6599
|
-
setError:
|
|
6600
|
-
setIsButtonClicked:
|
|
6599
|
+
setError: g,
|
|
6600
|
+
setIsButtonClicked: _,
|
|
6601
6601
|
freightConfig: s.freightConfig,
|
|
6602
6602
|
toolTipZIndex: s.toolTipZIndex
|
|
6603
6603
|
}
|
|
6604
6604
|
) }),
|
|
6605
|
-
h ? /* @__PURE__ */ l(qn, { size: a, message: h, setError:
|
|
6605
|
+
h ? /* @__PURE__ */ l(qn, { size: a, message: h, setError: g }) : f.length > 0 && /* @__PURE__ */ l(
|
|
6606
6606
|
qn,
|
|
6607
6607
|
{
|
|
6608
6608
|
size: a,
|
|
@@ -6612,17 +6612,17 @@ const al = "_shippingFreight_6z8rf_6", il = "_shippingFreight__postalCodeGrid_6z
|
|
|
6612
6612
|
)
|
|
6613
6613
|
] }),
|
|
6614
6614
|
p && !h ? f.length > 0 && /* @__PURE__ */ I(Rl, { children: [
|
|
6615
|
-
/* @__PURE__ */ l(Tl, { children: f.filter(({ id:
|
|
6615
|
+
/* @__PURE__ */ l(Tl, { children: f.filter(({ id: P }) => !P.includes("Retirada")).map((P) => /* @__PURE__ */ l(
|
|
6616
6616
|
Ol,
|
|
6617
6617
|
{
|
|
6618
|
-
id:
|
|
6619
|
-
value: Hn({ valueInCents:
|
|
6620
|
-
title:
|
|
6621
|
-
paragraph: `${s.freightConfig.messages.prefix_days}${Ml(
|
|
6618
|
+
id: P.id,
|
|
6619
|
+
value: Hn({ valueInCents: P.price, hasFree: !1, freeTaxMessage: s.freightConfig.messages.free_tax }),
|
|
6620
|
+
title: P.name,
|
|
6621
|
+
paragraph: `${s.freightConfig.messages.prefix_days}${Ml(P.shippingEstimate)}`,
|
|
6622
6622
|
radioValue: u,
|
|
6623
6623
|
changeValue: y
|
|
6624
6624
|
},
|
|
6625
|
-
|
|
6625
|
+
P.id
|
|
6626
6626
|
)) }),
|
|
6627
6627
|
s.deliveryInfoBoxesAllowed ? /* @__PURE__ */ l(
|
|
6628
6628
|
wl,
|
|
@@ -6688,7 +6688,7 @@ const al = "_shippingFreight_6z8rf_6", il = "_shippingFreight__postalCodeGrid_6z
|
|
|
6688
6688
|
}
|
|
6689
6689
|
}
|
|
6690
6690
|
});
|
|
6691
|
-
},
|
|
6691
|
+
}, g = () => {
|
|
6692
6692
|
n && (m.current = {
|
|
6693
6693
|
item_list_name: n
|
|
6694
6694
|
}), f("select_item");
|
|
@@ -6706,7 +6706,7 @@ const al = "_shippingFreight_6z8rf_6", il = "_shippingFreight__postalCodeGrid_6z
|
|
|
6706
6706
|
setSelectedSku: i,
|
|
6707
6707
|
eventDataRef: c,
|
|
6708
6708
|
sendAddToWishlistEvent: d,
|
|
6709
|
-
sendSelectItemEvent:
|
|
6709
|
+
sendSelectItemEvent: g,
|
|
6710
6710
|
sendAddToCartEvent: h
|
|
6711
6711
|
}),
|
|
6712
6712
|
[a, t, s, o]
|
|
@@ -6807,7 +6807,7 @@ const qa = ({
|
|
|
6807
6807
|
},
|
|
6808
6808
|
{
|
|
6809
6809
|
id: s.id,
|
|
6810
|
-
texture: (h = s == null ? void 0 : s.image.find((
|
|
6810
|
+
texture: (h = s == null ? void 0 : s.image.find((g) => g.alternateName === u.TEXTURE_IMAGE)) == null ? void 0 : h.url
|
|
6811
6811
|
}
|
|
6812
6812
|
), c();
|
|
6813
6813
|
}, f = o ? u.BUY_BUTTON_LABELS.add_to_cart : u.BUY_BUTTON_LABELS.select_size;
|
|
@@ -6876,14 +6876,14 @@ const za = ({
|
|
|
6876
6876
|
showVideo: n = !1,
|
|
6877
6877
|
...a
|
|
6878
6878
|
}) => {
|
|
6879
|
-
const {
|
|
6880
|
-
element:
|
|
6881
|
-
index:
|
|
6882
|
-
item: { image:
|
|
6883
|
-
sendSelectItemEvent:
|
|
6884
|
-
order:
|
|
6885
|
-
CONSTANTS:
|
|
6886
|
-
} = me(),
|
|
6879
|
+
const {
|
|
6880
|
+
element: o,
|
|
6881
|
+
index: i,
|
|
6882
|
+
item: { image: s, slug: c, video: u },
|
|
6883
|
+
sendSelectItemEvent: m,
|
|
6884
|
+
order: f,
|
|
6885
|
+
CONSTANTS: d
|
|
6886
|
+
} = me(), h = Yn({ images: s, label: { first: d.MAIN_IMAGE, second: d.SECOND_IMAGE } });
|
|
6887
6887
|
return /* @__PURE__ */ I(
|
|
6888
6888
|
"div",
|
|
6889
6889
|
{
|
|
@@ -6892,28 +6892,28 @@ const za = ({
|
|
|
6892
6892
|
ee["product-card--image"],
|
|
6893
6893
|
e
|
|
6894
6894
|
),
|
|
6895
|
-
ref:
|
|
6895
|
+
ref: o,
|
|
6896
6896
|
style: {
|
|
6897
|
-
aspectRatio:
|
|
6897
|
+
aspectRatio: d.PRODUCT_CARD_IMAGE_ASPECT_RATIO
|
|
6898
6898
|
},
|
|
6899
6899
|
children: [
|
|
6900
6900
|
/* @__PURE__ */ l(
|
|
6901
6901
|
ye,
|
|
6902
6902
|
{
|
|
6903
|
-
href: `/${
|
|
6904
|
-
onClick:
|
|
6903
|
+
href: `/${c}/p`,
|
|
6904
|
+
onClick: m,
|
|
6905
6905
|
onMouseUp: (g) => {
|
|
6906
|
-
g.button === 1 &&
|
|
6906
|
+
g.button === 1 && m(), d.PLP_INFINITE_SCROLL && sessionStorage.setItem(d.PLP_GRID_SCROLL_BACK.order, String(f));
|
|
6907
6907
|
},
|
|
6908
|
-
children: /* @__PURE__ */ l("div", { className: ee["product-card--image--container"], children: Array.isArray(
|
|
6908
|
+
children: /* @__PURE__ */ l("div", { className: ee["product-card--image--container"], children: Array.isArray(h) && h.map(({ url: g, alternateName: p }, _) => /* @__PURE__ */ oi(
|
|
6909
6909
|
Se.Image,
|
|
6910
6910
|
{
|
|
6911
|
-
...
|
|
6912
|
-
style:
|
|
6913
|
-
alt:
|
|
6914
|
-
key:
|
|
6911
|
+
...d.PRODUCT_IMAGE_DIMENSIONS.product_card,
|
|
6912
|
+
style: d.PRODUCT_IMAGE_DIMENSIONS.product_card,
|
|
6913
|
+
alt: p ?? "product image",
|
|
6914
|
+
key: _,
|
|
6915
6915
|
...r && {
|
|
6916
|
-
priority:
|
|
6916
|
+
priority: _ === 0 && i < 4
|
|
6917
6917
|
},
|
|
6918
6918
|
objectFit: "cover",
|
|
6919
6919
|
src: g
|
|
@@ -6921,7 +6921,7 @@ const za = ({
|
|
|
6921
6921
|
)) })
|
|
6922
6922
|
}
|
|
6923
6923
|
),
|
|
6924
|
-
|
|
6924
|
+
d.PLP_SHOW_VIDEO_ON_PRODUCT_CARD && n && u && /* @__PURE__ */ l(He.Video, { url: u, poster: h[0].url }),
|
|
6925
6925
|
t
|
|
6926
6926
|
]
|
|
6927
6927
|
}
|
|
@@ -7052,8 +7052,8 @@ const Ha = ({
|
|
|
7052
7052
|
!u && !c.current.availableSkus.includes(m) && c.current.availableSkus.push(m);
|
|
7053
7053
|
const f = re(
|
|
7054
7054
|
(h) => {
|
|
7055
|
-
const
|
|
7056
|
-
typeof s == "function" && s(
|
|
7055
|
+
const g = r === h ? null : h;
|
|
7056
|
+
typeof s == "function" && s(g), typeof t == "function" && t(g);
|
|
7057
7057
|
},
|
|
7058
7058
|
[t, s, r]
|
|
7059
7059
|
), d = re(() => {
|
|
@@ -7117,7 +7117,7 @@ const Wa = ({
|
|
|
7117
7117
|
);
|
|
7118
7118
|
};
|
|
7119
7119
|
Wa.displayName = "ProductCard.SizeSelector";
|
|
7120
|
-
const
|
|
7120
|
+
const Nr = ({
|
|
7121
7121
|
alt: e = "",
|
|
7122
7122
|
callback: t,
|
|
7123
7123
|
more: r,
|
|
@@ -7161,7 +7161,7 @@ const Pr = ({
|
|
|
7161
7161
|
return /* @__PURE__ */ I("div", { ...o, children: [
|
|
7162
7162
|
e,
|
|
7163
7163
|
Array.isArray(r) && r.slice(0, n).map((c, u) => /* @__PURE__ */ l(
|
|
7164
|
-
|
|
7164
|
+
Nr,
|
|
7165
7165
|
{
|
|
7166
7166
|
callback: (m) => {
|
|
7167
7167
|
s.current.trigger = !0, s.current.index = i, typeof t == "function" && t(m);
|
|
@@ -7173,7 +7173,7 @@ const Pr = ({
|
|
|
7173
7173
|
},
|
|
7174
7174
|
u
|
|
7175
7175
|
)),
|
|
7176
|
-
Array.isArray(r) && (r == null ? void 0 : r.length) > n && /* @__PURE__ */ l(
|
|
7176
|
+
Array.isArray(r) && (r == null ? void 0 : r.length) > n && /* @__PURE__ */ l(Nr, { size: a, total: r.length - n, more: !0 })
|
|
7177
7177
|
] });
|
|
7178
7178
|
}, Ba = ({
|
|
7179
7179
|
callback: e,
|
|
@@ -7197,7 +7197,7 @@ const Pr = ({
|
|
|
7197
7197
|
),
|
|
7198
7198
|
data: r,
|
|
7199
7199
|
size: "x-small",
|
|
7200
|
-
children: c && /* @__PURE__ */ l(
|
|
7200
|
+
children: c && /* @__PURE__ */ l(Nr, { active: !0, size: "x-small", src: c.url })
|
|
7201
7201
|
}
|
|
7202
7202
|
);
|
|
7203
7203
|
};
|
|
@@ -7388,7 +7388,7 @@ const He = {
|
|
|
7388
7388
|
const a = Xn(
|
|
7389
7389
|
e.imageUrl,
|
|
7390
7390
|
n.pdp
|
|
7391
|
-
), { nextimage: o } =
|
|
7391
|
+
), { nextimage: o } = Ie();
|
|
7392
7392
|
return /* @__PURE__ */ l(
|
|
7393
7393
|
o,
|
|
7394
7394
|
{
|