@soma-vertical-web/multi-lib 0.0.23 → 0.0.25
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/cms/ContentTypes/CommonPage/CommonPage.d.ts +3 -0
- package/cms/ContentTypes/CommonPage/DataScreening.d.ts +6 -0
- package/cms/ContentTypes/CommonPage/index.d.ts +2 -0
- package/cms/ContentTypes/FlagsAndTags/index.d.ts +1 -0
- package/cms/ContentTypes/index.d.ts +6 -0
- package/cms/Factories/common.d.ts +7 -0
- package/cms/Factories/contentType.d.ts +9 -0
- package/cms/Factories/index.d.ts +2 -0
- package/cms/Factories/section.d.ts +7 -0
- package/cms/Sections/Banner/Component.d.ts +7 -0
- package/cms/Sections/Banner/Composite/Content.d.ts +4 -0
- package/cms/Sections/Banner/Composite/Slot.d.ts +0 -0
- package/cms/Sections/Banner/adapter.d.ts +32 -0
- package/cms/Sections/Banner/index.d.ts +8 -0
- package/cms/Sections/BennefitsBar/Component.d.ts +3 -0
- package/cms/Sections/BennefitsBar/index.d.ts +8 -0
- package/cms/Sections/TextContent/Component.d.ts +4 -0
- package/cms/Sections/TextContent/Composite/Content.d.ts +6 -0
- package/cms/Sections/TextContent/Composite/ContentWrapper.d.ts +3 -0
- package/cms/Sections/TextContent/adapter.d.ts +3 -0
- package/cms/Sections/TextContent/index.d.ts +5 -0
- package/cms/Sections/_common/Accordion.d.ts +2 -0
- package/cms/Sections/_common/BannerItem.d.ts +5 -0
- package/cms/Sections/_common/TextStructure.d.ts +17 -0
- package/cms/Sections/_common/interfaces.d.ts +8 -0
- package/cms/Sections/index.d.ts +10 -0
- package/cms/helpers/index.d.ts +4 -1
- package/cms/index.d.ts +13 -7
- package/cms/ui/ContentTypes/CommonPage/CommonPage.d.ts +3 -0
- package/cms/ui/ContentTypes/CommonPage/DataScreening.d.ts +6 -0
- package/cms/ui/ContentTypes/CommonPage/index.d.ts +2 -0
- package/cms/ui/ContentTypes/index.d.ts +1 -0
- package/cms/ui/Factories/section.d.ts +7 -0
- package/cms/ui/Sections/Banner/Component.d.ts +7 -0
- package/cms/ui/Sections/Banner/Composite/Content.d.ts +4 -0
- package/cms/ui/Sections/Banner/Composite/Slot.d.ts +0 -0
- package/cms/ui/Sections/Banner/adapter.d.ts +32 -0
- package/cms/ui/Sections/Banner/index.d.ts +8 -0
- package/cms/ui/Sections/TextContent/Component.d.ts +4 -0
- package/cms/ui/Sections/TextContent/Composite/Content.d.ts +3 -0
- package/cms/ui/Sections/TextContent/Composite/ContentWrapper.d.ts +3 -0
- package/cms/ui/Sections/TextContent/adapter.d.ts +3 -0
- package/cms/ui/Sections/TextContent/index.d.ts +8 -0
- package/cms/ui/Sections/_common/Accordion.d.ts +2 -0
- package/cms/ui/Sections/_common/BannerItem.d.ts +5 -0
- package/cms/ui/Sections/_common/TextStructure.d.ts +17 -0
- package/cms/ui/Sections/_common/interfaces.d.ts +8 -0
- package/cms/ui/Sections/index.d.ts +4 -0
- package/data/api/cms/index.d.ts +1 -1
- package/data/helpers/product/generalInfo.d.ts +1 -0
- package/index-BCZReEF1.js +4 -0
- package/index-BI5_UgNN.mjs +3210 -0
- package/index-BaPdEOcD.js +4 -0
- package/index-C7gBx1Sj.js +4 -0
- package/index-CAM8BZOC.mjs +3509 -0
- package/index-CG59Ho-O.mjs +3514 -0
- package/index-CWsS9JhJ.mjs +69 -0
- package/index-CqPFy76Q.mjs +3531 -0
- package/index-DVeRXseR.js +4 -0
- package/index-DXjpbLiy.js +4 -0
- package/index-DmJIk8vB.mjs +3210 -0
- package/index-KIgYoXyH.mjs +3526 -0
- package/index-NWyULgUV.js +4 -0
- package/index-T-_Ys9t7.mjs +3483 -0
- package/index-T1F-4OSy.js +4 -0
- package/index-dgE7GGD0.js +4 -0
- package/index-fnNrOQ41.js +1 -0
- package/index-tKMO8iJa.mjs +3215 -0
- package/index.d.ts +1 -1
- package/index.js +41 -4
- package/index.mjs +8776 -4553
- package/index2.js +1 -1
- package/index2.mjs +97 -34
- package/layout/index.d.ts +11 -10
- package/layout/team-component/Footer/Composite/Devices/Column.Mobile.d.ts +1 -1
- package/layout/team-component/Footer/Composite/Support/index.d.ts +3 -0
- package/layout/team-component/Footer/Composite/Support/item.d.ts +3 -0
- package/layout/team-component/Footer/Footer.d.ts +1 -1
- package/layout/team-component/Footer/index.d.ts +4 -1
- package/layout/team-component/TipBar/Composite/Fields/FieldsScreening.d.ts +1 -1
- package/layout/team-component/TipBar/Composite/Fields/TextContent.d.ts +1 -1
- package/layout/team-component/TipBar/Composite/Root.d.ts +3 -1
- package/layout/team-component/TipBar/index.d.ts +1 -1
- package/layout/utils/DraftJsLinkWrapper/index.d.ts +5 -0
- package/package.json +1 -1
- package/server.d.ts +4 -3
- package/style.css +1 -1
- package/types/cms/ContentTypes/CommonPage/index.d.ts +6 -2
- package/types/cms/ContentTypes/FlagsAndTags/index.d.ts +1 -1
- package/types/cms/ContentTypes/Footer/index.d.ts +31 -1
- package/types/cms/ContentTypes/Header/index.d.ts +1 -1
- package/types/cms/ContentTypes/LookbookPage/index.d.ts +1 -1
- package/types/cms/ContentTypes/Multimarcas/index.d.ts +1 -1
- package/types/cms/ContentTypes/NotFoundPage/index.d.ts +2 -3
- package/types/cms/Sections/Banner/index.d.ts +5 -1
- package/types/cms/Sections/BennefitsBar/index.d.ts +5 -0
- package/types/cms/Sections/TextContent/index.d.ts +9 -2
- package/types/cms/api/index.d.ts +0 -11
- package/types/constants.d.ts +8 -1
- package/types/contexts/contexts/cart/index.d.ts +1 -2
- package/types/contexts/store/cart.d.ts +3 -2
- package/types/data/api/cms/index.d.ts +11 -0
- package/types/data/api/search/product/index.d.ts +1 -1
- package/types/layout/team-components/Footer/index.d.ts +3 -0
- package/types/layout/team-components/Timer/index.d.ts +1 -1
- package/types/layout/team-components/TipBar/index.d.ts +6 -1
- package/types/layout/utils/index.d.ts +6 -0
|
@@ -0,0 +1,3509 @@
|
|
|
1
|
+
var ln = Object.defineProperty;
|
|
2
|
+
var dn = (e, t, r) => t in e ? ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var je = (e, t, r) => dn(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import { jsx as E, jsxs as Q, Fragment as H } from "react/jsx-runtime";
|
|
5
|
+
import Ie, { createContext as Se, useRef as z, useContext as Te, useState as ne, useMemo as lt, useEffect as oe } from "react";
|
|
6
|
+
import { get as qe, set as Me } from "idb-keyval";
|
|
7
|
+
import { create as wr } from "zustand";
|
|
8
|
+
import { SizesSmallExtended as ue, Mode as fn } from "@soma-vertical-web/foundations";
|
|
9
|
+
import { helpers as re, TextStructure as Lt, Utils as Or, Icon as jt, Button as pn, Timer as G, Banner as De } from "@soma-vertical-web/core-components";
|
|
10
|
+
import { TZDate as qt } from "@date-fns/tz";
|
|
11
|
+
import { DefaultDraftBlockRenderMap as mn, convertFromRaw as Ir, CompositeDecorator as hn, EditorState as dt, Editor as Mt } from "draft-js";
|
|
12
|
+
const gn = (e, t) => {
|
|
13
|
+
const [r, n] = e.split(t);
|
|
14
|
+
return { name: r.trim(), size: n ? n.trim() : "" };
|
|
15
|
+
}, Sr = (e, t) => {
|
|
16
|
+
if (!e)
|
|
17
|
+
return {};
|
|
18
|
+
const [r, n] = e.split(t);
|
|
19
|
+
return { color: r == null ? void 0 : r.trim(), size: n == null ? void 0 : n.trim() };
|
|
20
|
+
}, ii = (e, t = "tamanho") => {
|
|
21
|
+
if (e.additionalProperty) {
|
|
22
|
+
const [r] = e.additionalProperty;
|
|
23
|
+
return r != null && r.name ? r.name.toLocaleLowerCase() === t ? r.value : e.name : "";
|
|
24
|
+
}
|
|
25
|
+
return e.name;
|
|
26
|
+
}, ai = (e) => e.replace(/\//g, ""), K = ({ event: e, data: t }) => {
|
|
27
|
+
const r = (window == null ? void 0 : window.dataLayer) || [];
|
|
28
|
+
t.ecommerce && r.push({
|
|
29
|
+
ecommerce: null
|
|
30
|
+
}), r.push({ ...e && { event: `custom_${e}` }, ...t });
|
|
31
|
+
}, C = {
|
|
32
|
+
configs: {
|
|
33
|
+
PLP_FILTERS: [{ key: "", label: "", eventLabel: "", order: 0 }],
|
|
34
|
+
currency: "BRL",
|
|
35
|
+
categoryOff: "bazar",
|
|
36
|
+
storeUrl: "https://www.example.com",
|
|
37
|
+
MAIN_IMAGE: "1",
|
|
38
|
+
// Default main image identifier
|
|
39
|
+
NAME_SPLIT_SYMBOL: "-"
|
|
40
|
+
},
|
|
41
|
+
productEvents: (e, t) => {
|
|
42
|
+
const { event: r, commonData: n, customData: i, promotionInfo: o, itemList: a, outsideEcommerceData: s } = e, { availableSizes: u, sizes: l, price: p } = n, d = {
|
|
43
|
+
...r === "view_item" ? {
|
|
44
|
+
currency: C.configs.currency,
|
|
45
|
+
value: p,
|
|
46
|
+
grade_disponivel: u ?? (l ? Tr(l) : "")
|
|
47
|
+
} : {},
|
|
48
|
+
...r === "add_to_wishlist" || r === "remove_from_wishlist" ? {
|
|
49
|
+
value: p,
|
|
50
|
+
currency: C.configs.currency
|
|
51
|
+
} : {}
|
|
52
|
+
}, c = fe({
|
|
53
|
+
data: n,
|
|
54
|
+
customData: {
|
|
55
|
+
...i,
|
|
56
|
+
...a,
|
|
57
|
+
...o
|
|
58
|
+
},
|
|
59
|
+
configs: C.configs
|
|
60
|
+
});
|
|
61
|
+
K({
|
|
62
|
+
event: r,
|
|
63
|
+
data: {
|
|
64
|
+
...s,
|
|
65
|
+
ecommerce: {
|
|
66
|
+
...a,
|
|
67
|
+
...d,
|
|
68
|
+
items: [c]
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}), typeof t == "function" && t(c, d);
|
|
72
|
+
},
|
|
73
|
+
productListEvent: (e) => {
|
|
74
|
+
const {
|
|
75
|
+
commonData: { products: t },
|
|
76
|
+
promotionInfo: r,
|
|
77
|
+
itemList: n,
|
|
78
|
+
outsideEcommerceData: i,
|
|
79
|
+
customData: o
|
|
80
|
+
} = e;
|
|
81
|
+
if (t.length === 0)
|
|
82
|
+
return;
|
|
83
|
+
const a = t.map(({ node: s }, u) => fe({
|
|
84
|
+
data: { ...s },
|
|
85
|
+
customData: {
|
|
86
|
+
...r,
|
|
87
|
+
index: u,
|
|
88
|
+
...o != null && o.item_list_name ? { item_list_name: o == null ? void 0 : o.item_list_name } : n
|
|
89
|
+
},
|
|
90
|
+
configs: C.configs
|
|
91
|
+
}));
|
|
92
|
+
K({
|
|
93
|
+
event: "view_item_list",
|
|
94
|
+
data: {
|
|
95
|
+
...i,
|
|
96
|
+
ecommerce: {
|
|
97
|
+
...o != null && o.item_list_name ? { item_list_name: o == null ? void 0 : o.item_list_name } : n,
|
|
98
|
+
items: a
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
},
|
|
103
|
+
skuEvents: (e) => {
|
|
104
|
+
const {
|
|
105
|
+
event: t,
|
|
106
|
+
commonData: { products: r },
|
|
107
|
+
customData: n,
|
|
108
|
+
supportData: { selectedSkus: i, price: o },
|
|
109
|
+
//in case of kit price and list price are here
|
|
110
|
+
promotionInfo: a,
|
|
111
|
+
itemList: s,
|
|
112
|
+
outsideEcommerceData: u
|
|
113
|
+
} = e;
|
|
114
|
+
let l = 0;
|
|
115
|
+
const p = r.map((d) => {
|
|
116
|
+
var f, g, _, w, b, h, P, v, R;
|
|
117
|
+
const c = i == null ? void 0 : i.find(
|
|
118
|
+
(I) => (d.productId ?? d.id) === I.productId
|
|
119
|
+
);
|
|
120
|
+
let m = { ...a, ...s };
|
|
121
|
+
if (c) {
|
|
122
|
+
const I = Cr(), N = Ar(I, c);
|
|
123
|
+
N && (m = {
|
|
124
|
+
...m,
|
|
125
|
+
...N
|
|
126
|
+
}), t === "add_to_cart" && (a || s) && ft({
|
|
127
|
+
persistedData: I,
|
|
128
|
+
type: "add",
|
|
129
|
+
sku: (c == null ? void 0 : c.id) ?? (c == null ? void 0 : c.sku),
|
|
130
|
+
newData: {
|
|
131
|
+
promotionInfo: a,
|
|
132
|
+
itemList: s
|
|
133
|
+
}
|
|
134
|
+
}), t === "remove_from_cart" && ft({
|
|
135
|
+
persistedData: I,
|
|
136
|
+
type: "remove",
|
|
137
|
+
sku: (c == null ? void 0 : c.id) ?? (c == null ? void 0 : c.sku)
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
l += d.price ?? ((_ = (g = (f = c == null ? void 0 : c.offers) == null ? void 0 : f.offers) == null ? void 0 : g[0]) == null ? void 0 : _.price) ?? 0;
|
|
141
|
+
const y = (c == null ? void 0 : c.size) ?? Sr(
|
|
142
|
+
(c == null ? void 0 : c.skuName) ?? (c == null ? void 0 : c.name) ?? ((w = d.itemOffered) == null ? void 0 : w.skuName),
|
|
143
|
+
C.configs.NAME_SPLIT_SYMBOL
|
|
144
|
+
).size;
|
|
145
|
+
return fe({
|
|
146
|
+
data: d,
|
|
147
|
+
customData: {
|
|
148
|
+
...n,
|
|
149
|
+
...m ?? {
|
|
150
|
+
...a,
|
|
151
|
+
...s
|
|
152
|
+
},
|
|
153
|
+
item_sku: (c == null ? void 0 : c.id) ?? (c == null ? void 0 : c.sku) ?? ((b = d.itemOffered) == null ? void 0 : b.sku),
|
|
154
|
+
quantity: (n == null ? void 0 : n.quantity) ?? d.quantity ?? 1,
|
|
155
|
+
item_variant2: y,
|
|
156
|
+
seller_id: (c == null ? void 0 : c.sellerId) ?? (c == null ? void 0 : c.seller) ?? ((R = (v = (P = (h = c == null ? void 0 : c.offers) == null ? void 0 : h.offers) == null ? void 0 : P[0]) == null ? void 0 : v.seller) == null ? void 0 : R.identifier) ?? d.seller
|
|
157
|
+
},
|
|
158
|
+
configs: C.configs
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
K({
|
|
162
|
+
event: t,
|
|
163
|
+
data: {
|
|
164
|
+
...u,
|
|
165
|
+
ecommerce: {
|
|
166
|
+
value: o ?? l,
|
|
167
|
+
currency: C.configs.currency,
|
|
168
|
+
items: p
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
},
|
|
173
|
+
filterEvent: (e) => {
|
|
174
|
+
var a;
|
|
175
|
+
const { commonData: t, customData: r, outsideEcommerceData: n } = e, i = {}, o = {};
|
|
176
|
+
Array.isArray(t == null ? void 0 : t.selectedFacets) && ((a = t == null ? void 0 : t.selectedFacets) != null && a.length) && ((t == null ? void 0 : t.selectedFacets).forEach(({ key: s, value: u }) => {
|
|
177
|
+
var d;
|
|
178
|
+
const l = ((d = C.configs.PLP_FILTERS.find((c) => c.key === s)) == null ? void 0 : d.eventLabel) ?? s, p = (i == null ? void 0 : i[l]) || [];
|
|
179
|
+
l === "price_range" && u.replace(":", "-"), i[l] = [...p, u];
|
|
180
|
+
}), Object.keys(i).forEach((s) => o[s] = i[s].join(", "))), K({
|
|
181
|
+
event: "filter",
|
|
182
|
+
data: {
|
|
183
|
+
...n,
|
|
184
|
+
...o,
|
|
185
|
+
...r
|
|
186
|
+
}
|
|
187
|
+
});
|
|
188
|
+
},
|
|
189
|
+
viewCartEvent: (e) => {
|
|
190
|
+
var p, d, c, m, y, f, g, _, w, b;
|
|
191
|
+
const { commonData: t, outsideEcommerceData: r } = e, { cartStore: n } = t;
|
|
192
|
+
if (!n)
|
|
193
|
+
return;
|
|
194
|
+
const i = window.localStorage.getItem("persistedCartEventsData"), o = i ? JSON.parse(i) : {}, a = n.items.map((h) => {
|
|
195
|
+
const { promotionInfo: P, itemList: v } = o[h.id] ?? {};
|
|
196
|
+
return fe({
|
|
197
|
+
data: {
|
|
198
|
+
...h,
|
|
199
|
+
price: h.price / 100,
|
|
200
|
+
listPrice: h.listPrice / 100
|
|
201
|
+
},
|
|
202
|
+
customData: {
|
|
203
|
+
...P,
|
|
204
|
+
...v,
|
|
205
|
+
item_sku: h.id ?? h.itemOffered.sku,
|
|
206
|
+
quantity: h.quantity ?? 1
|
|
207
|
+
},
|
|
208
|
+
configs: C.configs
|
|
209
|
+
});
|
|
210
|
+
}), s = (((p = n.totalizers.find((h) => h.name === "Total dos Itens")) == null ? void 0 : p.value) ?? 0) / 100, u = (((d = n.totalizers.find((h) => h.name === "Total dos Descontos")) == null ? void 0 : d.value) ?? 0) / 100, l = ((c = n.marketingData) == null ? void 0 : c.utmiCampaign) === "codigodavendedora" ? (m = n.marketingData) == null ? void 0 : m.utmCampaign : (f = String((y = n.openTextField) == null ? void 0 : y.value)) == null ? void 0 : f.split(" - ")[0];
|
|
211
|
+
K({
|
|
212
|
+
event: "view_cart",
|
|
213
|
+
data: {
|
|
214
|
+
...r,
|
|
215
|
+
ecommerce: {
|
|
216
|
+
currency: C.configs.currency,
|
|
217
|
+
value: s + u,
|
|
218
|
+
total_discount: Math.abs(u),
|
|
219
|
+
cep_preenchido: !!((_ = (g = n.shippingData) == null ? void 0 : g.address) != null && _.postalCode),
|
|
220
|
+
...l ? { seller_coupon_name: l } : {},
|
|
221
|
+
...((w = n.marketingData) == null ? void 0 : w.coupon) && {
|
|
222
|
+
sale_coupon_name: (b = n.marketingData) == null ? void 0 : b.coupon
|
|
223
|
+
},
|
|
224
|
+
subtotal: s,
|
|
225
|
+
items: a
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
},
|
|
230
|
+
readyEvents: (e) => {
|
|
231
|
+
const { event: t, readyData: r } = e;
|
|
232
|
+
K({
|
|
233
|
+
event: t,
|
|
234
|
+
data: {
|
|
235
|
+
...r
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
}, Tr = (e) => e.reduce((t, r) => (r.available && t.push(r.value), t), []).toString(), yn = (e) => {
|
|
240
|
+
const t = e.length;
|
|
241
|
+
return {
|
|
242
|
+
...e && e.length > 0 ? {
|
|
243
|
+
item_category: e[0].includes(C.configs.categoryOff) ? "Bazar" : "Coleção",
|
|
244
|
+
...e[1] ? { item_category2: e[1] } : {},
|
|
245
|
+
...t > 2 ? { item_category3: e[t - 1] } : {}
|
|
246
|
+
} : {}
|
|
247
|
+
};
|
|
248
|
+
}, fe = ({ data: e, customData: t, configs: r }) => ({
|
|
249
|
+
..._n(e, r == null ? void 0 : r.MAIN_IMAGE),
|
|
250
|
+
...vn(e),
|
|
251
|
+
...bn(e),
|
|
252
|
+
...Pn(e),
|
|
253
|
+
...t
|
|
254
|
+
}), Nr = () => {
|
|
255
|
+
var e, t;
|
|
256
|
+
return document ? ((t = (e = window.document.head.querySelector('meta[name="category"]')) == null ? void 0 : e.getAttribute("content")) == null ? void 0 : t.split("_")) ?? [] : [];
|
|
257
|
+
}, Cr = () => {
|
|
258
|
+
const e = window.localStorage.getItem("persistedCartEventsData");
|
|
259
|
+
return e ? JSON.parse(e) : null;
|
|
260
|
+
}, Ar = (e, t) => e == null ? void 0 : e[t], ft = ({
|
|
261
|
+
persistedData: e,
|
|
262
|
+
type: t,
|
|
263
|
+
sku: r,
|
|
264
|
+
newData: n
|
|
265
|
+
}) => {
|
|
266
|
+
if (!e && t === "add") {
|
|
267
|
+
window.localStorage.setItem("persistedCartEventsData", JSON.stringify({ [r]: n }));
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
if (e && t === "add") {
|
|
271
|
+
window.localStorage.setItem(
|
|
272
|
+
"persistedCartEventsData",
|
|
273
|
+
JSON.stringify({ ...e, [r]: n })
|
|
274
|
+
);
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
e && t === "remove" && (delete e[r], window.localStorage.setItem("persistedCartEventsData", JSON.stringify(e)));
|
|
278
|
+
}, _n = (e, t = "1") => {
|
|
279
|
+
var o, a, s, u, l, p, d, c, m, y, f;
|
|
280
|
+
const r = e.productReference ?? e.gtin ?? e.productRefId, n = e.image ?? ((a = (o = e.items) == null ? void 0 : o[0]) == null ? void 0 : a.images) ?? ((s = e.itemOffered) == null ? void 0 : s.image), i = n == null ? void 0 : n.find(
|
|
281
|
+
(g) => g.alternateName === t || g.imageLabel === t || g.keywords === t
|
|
282
|
+
);
|
|
283
|
+
return {
|
|
284
|
+
item_id: e.productId ?? ((u = e.isVariantOf) == null ? void 0 : u.productGroupID) ?? ((l = e.isVariationOf) == null ? void 0 : l.productGroupID) ?? ((d = (p = e.itemOffered) == null ? void 0 : p.isVariationOf) == null ? void 0 : d.productGroupID),
|
|
285
|
+
item_ref: /_\d$/.test(r) ? r.slice(0, -2) : r,
|
|
286
|
+
item_name: e.productTitle ?? e.productName ?? e.name ?? gn((c = e.itemOffered) == null ? void 0 : c.name, C.configs.NAME_SPLIT_SYMBOL).name,
|
|
287
|
+
item_brand: ((m = e.brand) == null ? void 0 : m.brandName) ?? ((y = e.brand) == null ? void 0 : y.name) ?? e.brand ?? ((f = e.itemOffered) == null ? void 0 : f.brand.name),
|
|
288
|
+
item_url: `${C.configs.storeUrl}${e.linkText}/p`,
|
|
289
|
+
item_image: (i == null ? void 0 : i.url) ?? (i == null ? void 0 : i.imageUrl)
|
|
290
|
+
};
|
|
291
|
+
}, Dt = (e) => Array.isArray(e) ? e.reduce((t, r) => (r.length > t.length && (t = r), t), "") : e, vn = (e) => {
|
|
292
|
+
var l, p;
|
|
293
|
+
const { categories: t, categoriesIds: r } = e, n = t ?? ((l = e.itemOffered) == null ? void 0 : l.categories), i = r ?? ((p = e.itemOffered) == null ? void 0 : p.categoriesIds), o = Dt(n), a = Dt(i), s = o.slice(1, -1).split("/"), u = a.slice(1, -1).split("/");
|
|
294
|
+
return {
|
|
295
|
+
item_category: s[0].toLowerCase().includes(C.configs.categoryOff) ? "Bazar" : "Coleção",
|
|
296
|
+
...s[1] && { item_category2: s[1] },
|
|
297
|
+
...s.length > 2 && {
|
|
298
|
+
item_category3: s[s.length - 1]
|
|
299
|
+
},
|
|
300
|
+
item_category_id: u[u.length - 1],
|
|
301
|
+
...u.length > 1 && {
|
|
302
|
+
item_parent_category_id: u[u.length - 2]
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
}, bn = (e) => {
|
|
306
|
+
var i, o, a, s, u, l;
|
|
307
|
+
const t = ((i = e.itemOffered) == null ? void 0 : i.skuName) ?? ((s = (a = (o = e.isVariantOf) == null ? void 0 : o.hasVariant) == null ? void 0 : a[0]) == null ? void 0 : s.name) ?? ((l = (u = e.items) == null ? void 0 : u[0]) == null ? void 0 : l.name), { color: r, size: n } = Sr(t, C.configs.NAME_SPLIT_SYMBOL);
|
|
308
|
+
return {
|
|
309
|
+
item_variant: r,
|
|
310
|
+
...e.itemOffered && { item_variant2: n }
|
|
311
|
+
};
|
|
312
|
+
}, Pn = (e) => {
|
|
313
|
+
var u, l;
|
|
314
|
+
const { price: t, listPrice: r, installments: n } = e, i = t ?? ((u = e.offers) == null ? void 0 : u.lowPrice) ?? 0, o = r ?? ((l = e.offers) == null ? void 0 : l.highPrice) ?? 0, a = o ? o - i : 0, s = a % 1 === 0 ? a : Number(a.toFixed(2));
|
|
315
|
+
return {
|
|
316
|
+
...t && { price: i ?? o },
|
|
317
|
+
...o && {
|
|
318
|
+
list_price: o,
|
|
319
|
+
discount: s
|
|
320
|
+
},
|
|
321
|
+
...n && {
|
|
322
|
+
installments: n == null ? void 0 : n.count,
|
|
323
|
+
installment_value: n == null ? void 0 : n.value
|
|
324
|
+
},
|
|
325
|
+
item_currency: C.configs.currency
|
|
326
|
+
};
|
|
327
|
+
}, Rn = () => {
|
|
328
|
+
const [e, t] = Nr(), [r, n] = e.split("-"), i = r.includes("shop") || r.includes("sale") ? r : "";
|
|
329
|
+
return {
|
|
330
|
+
page_category: i && n ? n : "",
|
|
331
|
+
page_departament: i,
|
|
332
|
+
id: t,
|
|
333
|
+
name: e
|
|
334
|
+
};
|
|
335
|
+
}, si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
336
|
+
__proto__: null,
|
|
337
|
+
eventsFunctions: C,
|
|
338
|
+
findDataInPersistedData: Ar,
|
|
339
|
+
getAvailablesSizes: Tr,
|
|
340
|
+
getCategories: yn,
|
|
341
|
+
getPageCategoryAndDepartmentFromSlug: Rn,
|
|
342
|
+
getPersistedData: Cr,
|
|
343
|
+
getProductListInfoFromHead: Nr,
|
|
344
|
+
pushDatalayer: K,
|
|
345
|
+
updatePersistedData: ft
|
|
346
|
+
}, Symbol.toStringTag, { value: "Module" })), xr = Se({}), ui = ({ children: e, evtFunctionsConfigs: t }) => {
|
|
347
|
+
const r = z({}), n = z(null), i = z(null), o = z({}), a = z({
|
|
348
|
+
trigger: !1,
|
|
349
|
+
index: 0
|
|
350
|
+
}), s = ({
|
|
351
|
+
functionKey: p,
|
|
352
|
+
data: d,
|
|
353
|
+
callBack: c,
|
|
354
|
+
timeout: m = 100
|
|
355
|
+
}) => {
|
|
356
|
+
window.dataLayer || (window.dataLayer = []), C.configs = t;
|
|
357
|
+
try {
|
|
358
|
+
typeof C[p] == "function" && setTimeout(() => {
|
|
359
|
+
var y;
|
|
360
|
+
d.promotionInfo = r.current, (y = i.current) != null && y.item_list_name && (d.itemList = i.current), C[p](d, c);
|
|
361
|
+
}, m);
|
|
362
|
+
} catch (y) {
|
|
363
|
+
K({
|
|
364
|
+
event: "error_event",
|
|
365
|
+
data: {
|
|
366
|
+
error_message: (y == null ? void 0 : y.message) ?? y
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
}, u = ({ content: p }) => {
|
|
371
|
+
s({
|
|
372
|
+
functionKey: "readyEvents",
|
|
373
|
+
data: {
|
|
374
|
+
event: "select_content",
|
|
375
|
+
readyData: {
|
|
376
|
+
content_type: p.replace("::", ":")
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
}, l = ({
|
|
381
|
+
updatePromotionRef: p,
|
|
382
|
+
promotion: d,
|
|
383
|
+
index: c
|
|
384
|
+
}) => {
|
|
385
|
+
p && (r.current = {
|
|
386
|
+
...d
|
|
387
|
+
}), s({
|
|
388
|
+
functionKey: "readyEvents",
|
|
389
|
+
data: {
|
|
390
|
+
event: "select_promotion",
|
|
391
|
+
readyData: {
|
|
392
|
+
ecommerce: {
|
|
393
|
+
...d,
|
|
394
|
+
...c !== void 0 && { index: c }
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
};
|
|
400
|
+
return /* @__PURE__ */ E(
|
|
401
|
+
xr.Provider,
|
|
402
|
+
{
|
|
403
|
+
value: {
|
|
404
|
+
sendDataLayerEvent: s,
|
|
405
|
+
triggerSelectItemEventRef: a,
|
|
406
|
+
promotionEventRef: r,
|
|
407
|
+
currentLocalRef: n,
|
|
408
|
+
itemListRef: i,
|
|
409
|
+
cartProductsFullDataRef: o,
|
|
410
|
+
handleSelectContent: u,
|
|
411
|
+
handleSelectPromotionEvent: l
|
|
412
|
+
},
|
|
413
|
+
children: e
|
|
414
|
+
}
|
|
415
|
+
);
|
|
416
|
+
}, Lr = () => Te(xr), En = {
|
|
417
|
+
attachment: "ATTACHMENT",
|
|
418
|
+
specification: "SPECIFICATION",
|
|
419
|
+
attribute: "ATTRIBUTE"
|
|
420
|
+
}, k = Promise.resolve(!1), pt = {
|
|
421
|
+
id: "",
|
|
422
|
+
isOpen: !1,
|
|
423
|
+
items: [],
|
|
424
|
+
loading: !1,
|
|
425
|
+
marketingData: null,
|
|
426
|
+
messages: [],
|
|
427
|
+
openTextField: {},
|
|
428
|
+
paymentData: null,
|
|
429
|
+
shippingData: null,
|
|
430
|
+
totalizers: [],
|
|
431
|
+
itemMetadata: [],
|
|
432
|
+
recentlyAddedProducts: [],
|
|
433
|
+
addCoupon: () => k,
|
|
434
|
+
addItem: () => k,
|
|
435
|
+
addSellerCode: () => k,
|
|
436
|
+
emptyCart: () => {
|
|
437
|
+
},
|
|
438
|
+
removeItem: () => k,
|
|
439
|
+
setIsOpen: () => {
|
|
440
|
+
},
|
|
441
|
+
shipping: () => k,
|
|
442
|
+
shippingUpdate: () => k,
|
|
443
|
+
toggleServiceToProduct: () => k,
|
|
444
|
+
updateItemQuantity: () => k,
|
|
445
|
+
insertProfileEmail: () => k,
|
|
446
|
+
setRecentlyAddedProducts: () => {
|
|
447
|
+
}
|
|
448
|
+
}, bt = (e) => e === 0, jr = (e, t) => {
|
|
449
|
+
if (!e || e.length === 0)
|
|
450
|
+
return [];
|
|
451
|
+
let r = "";
|
|
452
|
+
const n = [], i = e.match(/\d+/g) ?? [];
|
|
453
|
+
for (const o of i) {
|
|
454
|
+
const a = t[Number(o)];
|
|
455
|
+
a && (r += (r ? "/" : "") + a, n.push(r));
|
|
456
|
+
}
|
|
457
|
+
return n;
|
|
458
|
+
}, qr = (e) => {
|
|
459
|
+
const {
|
|
460
|
+
availability: t,
|
|
461
|
+
additionalInfo: { brandName: r },
|
|
462
|
+
bundleItems: n,
|
|
463
|
+
id: i,
|
|
464
|
+
detailUrl: o,
|
|
465
|
+
ean: a,
|
|
466
|
+
imageUrl: s,
|
|
467
|
+
name: u,
|
|
468
|
+
listPrice: l,
|
|
469
|
+
quantity: p,
|
|
470
|
+
price: d,
|
|
471
|
+
priceDefinition: c,
|
|
472
|
+
productCategories: m,
|
|
473
|
+
productCategoryIds: y,
|
|
474
|
+
productId: f,
|
|
475
|
+
refId: g,
|
|
476
|
+
seller: _,
|
|
477
|
+
referenceId: w,
|
|
478
|
+
offerings: b,
|
|
479
|
+
productRefId: h,
|
|
480
|
+
skuName: P,
|
|
481
|
+
sellingPrice: v
|
|
482
|
+
} = e;
|
|
483
|
+
return {
|
|
484
|
+
availability: t,
|
|
485
|
+
bundleItems: n,
|
|
486
|
+
referenceId: w,
|
|
487
|
+
productRefId: h,
|
|
488
|
+
id: i,
|
|
489
|
+
ean: a,
|
|
490
|
+
itemOffered: {
|
|
491
|
+
additionalProperty: [],
|
|
492
|
+
brand: {
|
|
493
|
+
name: r
|
|
494
|
+
},
|
|
495
|
+
categories: jr(y, m),
|
|
496
|
+
categoriesIds: y,
|
|
497
|
+
gtin: g,
|
|
498
|
+
image: [
|
|
499
|
+
{
|
|
500
|
+
alternateName: "1",
|
|
501
|
+
url: s
|
|
502
|
+
}
|
|
503
|
+
],
|
|
504
|
+
name: u,
|
|
505
|
+
isVariationOf: {
|
|
506
|
+
name: u,
|
|
507
|
+
productGroupID: f
|
|
508
|
+
},
|
|
509
|
+
sku: i,
|
|
510
|
+
slug: o,
|
|
511
|
+
skuName: P
|
|
512
|
+
},
|
|
513
|
+
listPrice: l,
|
|
514
|
+
quantity: p,
|
|
515
|
+
offerings: b,
|
|
516
|
+
price: d,
|
|
517
|
+
priceDefinition: c,
|
|
518
|
+
sellingPrice: v,
|
|
519
|
+
seller: _
|
|
520
|
+
};
|
|
521
|
+
}, Mr = (e, t) => {
|
|
522
|
+
const r = e.map((n) => ({
|
|
523
|
+
id: n.id,
|
|
524
|
+
quantity: n.quantity,
|
|
525
|
+
seller: n.seller
|
|
526
|
+
}));
|
|
527
|
+
return Array.isArray(t) ? [...r, ...t] : [...r, t];
|
|
528
|
+
}, Dr = (e, t) => {
|
|
529
|
+
const r = e.find((n) => n.id === t);
|
|
530
|
+
if (r) {
|
|
531
|
+
const n = e.map((i, o) => {
|
|
532
|
+
var a, s;
|
|
533
|
+
return {
|
|
534
|
+
id: ((a = i.itemOffered) == null ? void 0 : a.sku) ?? "",
|
|
535
|
+
index: o,
|
|
536
|
+
quantity: (r == null ? void 0 : r.id) === ((s = i.itemOffered) == null ? void 0 : s.sku) ? 0 : i.quantity,
|
|
537
|
+
seller: i.seller ?? ""
|
|
538
|
+
};
|
|
539
|
+
});
|
|
540
|
+
return {
|
|
541
|
+
updateItems: n,
|
|
542
|
+
filterItems: n.filter((i) => i.id !== t)
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
return { updateItems: [], filterItems: [] };
|
|
546
|
+
}, kr = (e, t, r) => e.filter(
|
|
547
|
+
(n) => n.availability !== "withoutStock" && n.availability !== "https://schema.org/OutOfStock"
|
|
548
|
+
).map(
|
|
549
|
+
(n, i) => {
|
|
550
|
+
var o, a;
|
|
551
|
+
return n.id === t ? {
|
|
552
|
+
id: n.id,
|
|
553
|
+
index: i,
|
|
554
|
+
quantity: r,
|
|
555
|
+
seller: n.seller,
|
|
556
|
+
sku: ((o = n.itemOffered) == null ? void 0 : o.sku) ?? ""
|
|
557
|
+
} : {
|
|
558
|
+
id: n.id,
|
|
559
|
+
index: i,
|
|
560
|
+
quantity: n.quantity,
|
|
561
|
+
seller: n.seller,
|
|
562
|
+
sku: ((a = n.itemOffered) == null ? void 0 : a.sku) ?? ""
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
), wn = (e, t) => e.filter((r) => r.availability !== "withoutStock").findIndex(({ id: r }) => r === t), On = (e, t) => {
|
|
566
|
+
var r;
|
|
567
|
+
return Array.isArray(e) ? (((r = e == null ? void 0 : e.find((n) => {
|
|
568
|
+
var i;
|
|
569
|
+
return ((i = n == null ? void 0 : n.id) == null ? void 0 : i.toLowerCase()) === t;
|
|
570
|
+
})) == null ? void 0 : r.value) ?? 0) / 100 : 0;
|
|
571
|
+
}, In = (e) => {
|
|
572
|
+
const t = e.reduce((i, o) => {
|
|
573
|
+
const a = bt(o.price) ? 0 : o.quantity;
|
|
574
|
+
return i + a;
|
|
575
|
+
}, 0), r = e.reduce(
|
|
576
|
+
(i, o) => i + o.price * o.quantity,
|
|
577
|
+
0
|
|
578
|
+
), n = e.reduce(
|
|
579
|
+
(i, o) => i + o.listPrice * o.quantity,
|
|
580
|
+
0
|
|
581
|
+
);
|
|
582
|
+
return {
|
|
583
|
+
totalItems: t,
|
|
584
|
+
total: r,
|
|
585
|
+
subTotal: n
|
|
586
|
+
};
|
|
587
|
+
}, Sn = (e) => Array.isArray(e) ? e.filter((t) => t.availability !== "withoutStock").reduce((t, r) => t + (bt(r == null ? void 0 : r.price) ? 0 : r.quantity), 0) : 0, Ur = (e) => {
|
|
588
|
+
const {
|
|
589
|
+
items: t,
|
|
590
|
+
itemMetadata: r,
|
|
591
|
+
marketingData: n,
|
|
592
|
+
messages: i,
|
|
593
|
+
orderFormId: o,
|
|
594
|
+
openTextField: a,
|
|
595
|
+
paymentData: s,
|
|
596
|
+
shippingData: u,
|
|
597
|
+
totalizers: l
|
|
598
|
+
} = e;
|
|
599
|
+
return {
|
|
600
|
+
id: o,
|
|
601
|
+
itemMetadata: r,
|
|
602
|
+
items: Array.isArray(t) ? t.map(qr) : [],
|
|
603
|
+
marketingData: n,
|
|
604
|
+
messages: i,
|
|
605
|
+
openTextField: a,
|
|
606
|
+
paymentData: s,
|
|
607
|
+
shippingData: u,
|
|
608
|
+
totalizers: l
|
|
609
|
+
};
|
|
610
|
+
}, zr = (e, t) => {
|
|
611
|
+
const r = e.find((n) => n.id === t);
|
|
612
|
+
return r ? r.availability === "unavailableItemFulfillment" : !1;
|
|
613
|
+
}, Tn = (e, t) => {
|
|
614
|
+
const r = e.sku, n = e.isVariantOf.hasVariant.find((i) => i.sku === r);
|
|
615
|
+
return n ? n.name.split(t)[1] : "--";
|
|
616
|
+
}, Nn = (e, t, r = !1) => !e && t !== "" ? { code: 300, value: t, statusOk: r } : e === t ? { code: 200, value: t, statusOk: r } : { code: 400, value: t, statusOk: r }, Cn = (e, t) => {
|
|
617
|
+
const r = /* @__PURE__ */ new Set();
|
|
618
|
+
return [e, ...t].filter(
|
|
619
|
+
(n) => !r.has(n) && r.add(n),
|
|
620
|
+
r
|
|
621
|
+
);
|
|
622
|
+
}, Br = (e, t) => t && Array.isArray(t) && t.find((n) => n.id === e) ? Promise.resolve(e) : Promise.resolve(!1), Vr = (e, t) => t ? Promise.resolve(e[t]) : Promise.resolve(!1), Fr = async (e) => {
|
|
623
|
+
try {
|
|
624
|
+
const t = await e();
|
|
625
|
+
if (typeof t != "boolean")
|
|
626
|
+
return t;
|
|
627
|
+
} catch (t) {
|
|
628
|
+
console.error(`[Error orderForm]: ${t}`);
|
|
629
|
+
}
|
|
630
|
+
return !1;
|
|
631
|
+
}, An = (e, t) => {
|
|
632
|
+
if (t !== -1) {
|
|
633
|
+
const r = Number(e);
|
|
634
|
+
return r ? r + 1 : 1;
|
|
635
|
+
}
|
|
636
|
+
return e ?? 1;
|
|
637
|
+
}, Wr = (e, t) => Array.isArray(e) ? e.filter(
|
|
638
|
+
(r) => t == null ? void 0 : t.some((n) => n.id === r.id)
|
|
639
|
+
) : [], Hr = async (e, t) => e.then((r) => [...r ?? [], ...t ?? []]), j = async (e, t, r) => {
|
|
640
|
+
const { priority: n = "auto", body: i } = t;
|
|
641
|
+
return fetch(e, {
|
|
642
|
+
// priority,
|
|
643
|
+
headers: {
|
|
644
|
+
"Content-Type": "application/json"
|
|
645
|
+
},
|
|
646
|
+
priority: n,
|
|
647
|
+
method: "POST",
|
|
648
|
+
body: JSON.stringify(i)
|
|
649
|
+
}).then(async (o) => {
|
|
650
|
+
const a = await o.json();
|
|
651
|
+
return r ? a : Ur(a);
|
|
652
|
+
});
|
|
653
|
+
}, $r = (e, t, r) => ({
|
|
654
|
+
notifications: [
|
|
655
|
+
...e.notifications,
|
|
656
|
+
{ id: Date.now(), message: t, callback: r }
|
|
657
|
+
]
|
|
658
|
+
}), xn = (e) => [...Array.isArray(e) ? e : [e], "faststore"], ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
659
|
+
__proto__: null,
|
|
660
|
+
VALUE_REFERENCES: En,
|
|
661
|
+
addItemOrder: Mr,
|
|
662
|
+
addNotification: $r,
|
|
663
|
+
createItemOrder: qr,
|
|
664
|
+
fetchCartAPI: j,
|
|
665
|
+
findItemIndex: wn,
|
|
666
|
+
findOptions: Wr,
|
|
667
|
+
findTotalizerValue: On,
|
|
668
|
+
getCategories: jr,
|
|
669
|
+
getCode: Nn,
|
|
670
|
+
getQuantity: An,
|
|
671
|
+
getRemoveId: Br,
|
|
672
|
+
getSize: Tn,
|
|
673
|
+
getTotalItems: Sn,
|
|
674
|
+
getTotalizer: In,
|
|
675
|
+
getValue: Vr,
|
|
676
|
+
initialState: pt,
|
|
677
|
+
isGift: bt,
|
|
678
|
+
marketingTagsBuilder: xn,
|
|
679
|
+
mergeOptionsPromise: Hr,
|
|
680
|
+
orderFormValues: Ur,
|
|
681
|
+
promiseDefault: k,
|
|
682
|
+
removeQuantity: Dr,
|
|
683
|
+
updateItemSellerExternal: zr,
|
|
684
|
+
updateOrderFormPromise: Fr,
|
|
685
|
+
updateQuantity: kr,
|
|
686
|
+
wishlistArray: Cn
|
|
687
|
+
}, Symbol.toStringTag, { value: "Module" })), Ln = () => {
|
|
688
|
+
const e = async (c, m) => j("/api/checkout/order-form/coupon", {
|
|
689
|
+
body: {
|
|
690
|
+
orderFormId: c,
|
|
691
|
+
coupon: m
|
|
692
|
+
}
|
|
693
|
+
}), t = async (c, m) => {
|
|
694
|
+
if (m) {
|
|
695
|
+
const y = m.includes(" - ") ? m.split(" - ")[0] : m, f = await j(
|
|
696
|
+
"/api/checkout/order-form/seller-code",
|
|
697
|
+
{
|
|
698
|
+
body: {
|
|
699
|
+
orderFormId: c,
|
|
700
|
+
sellerCode: y
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
!0
|
|
704
|
+
);
|
|
705
|
+
return j("/api/checkout/order-form/attachments", {
|
|
706
|
+
body: {
|
|
707
|
+
orderFormId: c,
|
|
708
|
+
sellerCode: y,
|
|
709
|
+
sellerName: f instanceof Object && "nome" in f ? f == null ? void 0 : f.nome : ""
|
|
710
|
+
}
|
|
711
|
+
}).then((g) => ({
|
|
712
|
+
...g,
|
|
713
|
+
openTextField: {
|
|
714
|
+
...(g == null ? void 0 : g.openTextField) ?? {},
|
|
715
|
+
statusOk: (f == null ? void 0 : f.status) ?? !1
|
|
716
|
+
}
|
|
717
|
+
}));
|
|
718
|
+
} else
|
|
719
|
+
return j("/api/checkout/order-form/attachments", {
|
|
720
|
+
body: {
|
|
721
|
+
orderFormId: c,
|
|
722
|
+
sellerCode: "",
|
|
723
|
+
sellerName: ""
|
|
724
|
+
}
|
|
725
|
+
});
|
|
726
|
+
}, r = async (c, m, y) => j("/api/checkout/order-form/items", {
|
|
727
|
+
body: {
|
|
728
|
+
orderFormId: c,
|
|
729
|
+
orderItems: Mr(m, y)
|
|
730
|
+
}
|
|
731
|
+
}), n = async (c, m, y, f) => j("/api/checkout/order-form/offerings", {
|
|
732
|
+
body: {
|
|
733
|
+
id: m,
|
|
734
|
+
itemIndex: y,
|
|
735
|
+
orderFormId: c,
|
|
736
|
+
remove: f
|
|
737
|
+
}
|
|
738
|
+
}), i = async (c) => j("/api/checkout/order-form/items/remove-all", {
|
|
739
|
+
body: { orderFormId: c }
|
|
740
|
+
}), o = async (c, m = "low") => j("/api/checkout/order-form", {
|
|
741
|
+
priority: m,
|
|
742
|
+
body: { orderFormId: c ?? "" }
|
|
743
|
+
}), a = async (c, m) => j("/api/checkout/order-form/profile", {
|
|
744
|
+
body: {
|
|
745
|
+
orderFormId: c,
|
|
746
|
+
email: m
|
|
747
|
+
}
|
|
748
|
+
}), s = async (c, m, y) => {
|
|
749
|
+
const f = Dr(m, y);
|
|
750
|
+
return j("/api/checkout/order-form/items/update", {
|
|
751
|
+
body: {
|
|
752
|
+
orderItems: f.updateItems,
|
|
753
|
+
orderFormId: c
|
|
754
|
+
}
|
|
755
|
+
});
|
|
756
|
+
}, u = async (c, m, y) => j("/api/checkout/order-form/shipping", {
|
|
757
|
+
body: {
|
|
758
|
+
orderFormId: c,
|
|
759
|
+
country: y,
|
|
760
|
+
postalCode: m
|
|
761
|
+
}
|
|
762
|
+
}), l = async (c, m, y) => j("/api/checkout/order-form/shipping/update", {
|
|
763
|
+
body: {
|
|
764
|
+
orderFormId: c,
|
|
765
|
+
options: m,
|
|
766
|
+
selectedAddresses: y
|
|
767
|
+
}
|
|
768
|
+
}), p = async (c, m, y, f) => {
|
|
769
|
+
const g = kr(m, y, f);
|
|
770
|
+
return j("/api/checkout/order-form/items/update", {
|
|
771
|
+
body: {
|
|
772
|
+
orderFormId: c,
|
|
773
|
+
orderItems: g
|
|
774
|
+
}
|
|
775
|
+
});
|
|
776
|
+
};
|
|
777
|
+
return {
|
|
778
|
+
addCoupon: e,
|
|
779
|
+
addItem: r,
|
|
780
|
+
addSellerCode: t,
|
|
781
|
+
giftItem: n,
|
|
782
|
+
emptyCart: i,
|
|
783
|
+
getOrderForm: o,
|
|
784
|
+
insertProfileEmail: a,
|
|
785
|
+
removeItem: s,
|
|
786
|
+
shipping: u,
|
|
787
|
+
shippingUpdate: l,
|
|
788
|
+
updateItemQuantity: async (c, m, y, f, g) => p(
|
|
789
|
+
c,
|
|
790
|
+
m,
|
|
791
|
+
y,
|
|
792
|
+
f
|
|
793
|
+
).then((_) => _ && Array.isArray(_.items) ? zr(_.items, y) ? p(
|
|
794
|
+
c,
|
|
795
|
+
m,
|
|
796
|
+
y,
|
|
797
|
+
g
|
|
798
|
+
) : _ : !1)
|
|
799
|
+
};
|
|
800
|
+
}, mt = "soma::cart", se = "soma::options", Pt = wr((e, t) => {
|
|
801
|
+
const r = Ln(), n = async (i, o, a) => {
|
|
802
|
+
e({ loading: !0 });
|
|
803
|
+
const s = await Fr(i);
|
|
804
|
+
if (typeof s != "boolean") {
|
|
805
|
+
e({ ...s });
|
|
806
|
+
const u = await Hr(
|
|
807
|
+
qe(se),
|
|
808
|
+
a
|
|
809
|
+
);
|
|
810
|
+
return Me(se, u), Vr(s, o).finally(
|
|
811
|
+
() => e({ loading: !1, options: u })
|
|
812
|
+
);
|
|
813
|
+
}
|
|
814
|
+
return k;
|
|
815
|
+
};
|
|
816
|
+
if (typeof window < "u") {
|
|
817
|
+
const i = async (o) => {
|
|
818
|
+
if (o) {
|
|
819
|
+
const a = await qe(se).then(
|
|
820
|
+
(l) => Wr(l, o.items)
|
|
821
|
+
);
|
|
822
|
+
Me(mt, o), Me(se, a), e({ ...o, options: a });
|
|
823
|
+
const s = new URLSearchParams(window.location.search), u = s.get("utm_campaign") || s.get("utmi_campaign") || "";
|
|
824
|
+
u && n(
|
|
825
|
+
() => r.addSellerCode(t().id, u.toUpperCase()),
|
|
826
|
+
"openTextField"
|
|
827
|
+
);
|
|
828
|
+
}
|
|
829
|
+
};
|
|
830
|
+
return qe(mt).then(
|
|
831
|
+
(o) => r.getOrderForm(o ? o.id : "").then(i)
|
|
832
|
+
// create form
|
|
833
|
+
), {
|
|
834
|
+
...pt,
|
|
835
|
+
// coupon
|
|
836
|
+
addCoupon: async (o) => n(
|
|
837
|
+
() => r.addCoupon(t().id, o),
|
|
838
|
+
"marketingData"
|
|
839
|
+
),
|
|
840
|
+
// add to cart
|
|
841
|
+
addItem: (o, a) => {
|
|
842
|
+
n(
|
|
843
|
+
() => r.addItem(t().id, t().items, o),
|
|
844
|
+
"items",
|
|
845
|
+
a
|
|
846
|
+
);
|
|
847
|
+
},
|
|
848
|
+
// seller code
|
|
849
|
+
addSellerCode: async (o) => n(
|
|
850
|
+
() => r.addSellerCode(t().id, o),
|
|
851
|
+
"openTextField"
|
|
852
|
+
),
|
|
853
|
+
// empty cart
|
|
854
|
+
emptyCart: () => {
|
|
855
|
+
n(() => r.emptyCart(t().id));
|
|
856
|
+
},
|
|
857
|
+
// remove item
|
|
858
|
+
removeItem: async (o) => {
|
|
859
|
+
const a = await n(
|
|
860
|
+
() => r.removeItem(t().id, t().items, o),
|
|
861
|
+
// remove item by quantity = 0
|
|
862
|
+
"items"
|
|
863
|
+
);
|
|
864
|
+
return Br(o, a);
|
|
865
|
+
},
|
|
866
|
+
// shipping
|
|
867
|
+
shipping: async (o, a = "BR") => n(
|
|
868
|
+
() => r.shipping(t().id, o, a),
|
|
869
|
+
// shipping first selected value,
|
|
870
|
+
"shippingData"
|
|
871
|
+
),
|
|
872
|
+
// shipping update
|
|
873
|
+
shippingUpdate: async (o) => n(
|
|
874
|
+
() => {
|
|
875
|
+
var a;
|
|
876
|
+
return r.shippingUpdate(
|
|
877
|
+
t().id,
|
|
878
|
+
o,
|
|
879
|
+
(a = t().shippingData) == null ? void 0 : a.selectedAddresses
|
|
880
|
+
);
|
|
881
|
+
},
|
|
882
|
+
"shippingData"
|
|
883
|
+
),
|
|
884
|
+
// toggle service product
|
|
885
|
+
toggleServiceToProduct: async (o, a, s) => n(
|
|
886
|
+
() => r.giftItem(t().id, o, a, s),
|
|
887
|
+
"items"
|
|
888
|
+
),
|
|
889
|
+
// update item
|
|
890
|
+
updateItemQuantity: async (o, a, s) => {
|
|
891
|
+
const { id: u, items: l } = t();
|
|
892
|
+
return n(
|
|
893
|
+
() => {
|
|
894
|
+
var p;
|
|
895
|
+
return r.updateItemQuantity(
|
|
896
|
+
u,
|
|
897
|
+
l,
|
|
898
|
+
o,
|
|
899
|
+
a,
|
|
900
|
+
((p = l.find((d) => d.id === o)) == null ? void 0 : p.quantity) ?? 1
|
|
901
|
+
);
|
|
902
|
+
},
|
|
903
|
+
"items",
|
|
904
|
+
s ? [s] : void 0
|
|
905
|
+
);
|
|
906
|
+
},
|
|
907
|
+
insertProfileEmail: async (o) => n(
|
|
908
|
+
() => r.insertProfileEmail(t().id, o),
|
|
909
|
+
"clientProfileData"
|
|
910
|
+
),
|
|
911
|
+
setIsOpen: (o) => e({ isOpen: o })
|
|
912
|
+
};
|
|
913
|
+
}
|
|
914
|
+
return pt;
|
|
915
|
+
}), jn = () => Pt((e) => e), Gr = wr((e) => ({
|
|
916
|
+
notifications: [],
|
|
917
|
+
actions: {
|
|
918
|
+
addNotification: (t, r) => e(
|
|
919
|
+
(n) => $r(n, t, r)
|
|
920
|
+
),
|
|
921
|
+
removeNotification: (t) => e((r) => ({
|
|
922
|
+
notifications: r.notifications.filter((n) => n.id !== t)
|
|
923
|
+
}))
|
|
924
|
+
}
|
|
925
|
+
})), qn = () => Gr(
|
|
926
|
+
(e) => e.notifications
|
|
927
|
+
), Mn = () => Gr(
|
|
928
|
+
(e) => e.actions
|
|
929
|
+
), li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
930
|
+
__proto__: null,
|
|
931
|
+
KEY_INDEXED_OPTIONS: se,
|
|
932
|
+
KEY_INDEXED_STORE: mt,
|
|
933
|
+
useCartStore: Pt,
|
|
934
|
+
useGetCartStoreState: jn,
|
|
935
|
+
useGetNotificationActions: Mn,
|
|
936
|
+
useGetNotificationsStore: qn
|
|
937
|
+
}, Symbol.toStringTag, { value: "Module" })), Dn = 6e3, Kr = Se({}), kn = ({ children: e, ...t }) => {
|
|
938
|
+
const { items: r } = Pt(), [n, i] = ne([]), o = z(null), a = lt(() => Array.isArray(n) && n.length > 0 ? n.map((s) => r.find((u) => u.id === s.id)).filter((s) => s !== void 0) : [], [r, n]);
|
|
939
|
+
return oe(() => {
|
|
940
|
+
n.length && (clearTimeout(o.current ?? 0), o.current = setTimeout(() => {
|
|
941
|
+
i([]);
|
|
942
|
+
}, Dn));
|
|
943
|
+
}, [n]), /* @__PURE__ */ E(
|
|
944
|
+
Kr.Provider,
|
|
945
|
+
{
|
|
946
|
+
value: lt(
|
|
947
|
+
() => ({
|
|
948
|
+
...t,
|
|
949
|
+
setRecentlyAdded: i,
|
|
950
|
+
recentlyAddedProducts: a
|
|
951
|
+
}),
|
|
952
|
+
[t, i, a]
|
|
953
|
+
),
|
|
954
|
+
children: e
|
|
955
|
+
}
|
|
956
|
+
);
|
|
957
|
+
}, di = () => {
|
|
958
|
+
const e = Te(Kr);
|
|
959
|
+
if (e === void 0)
|
|
960
|
+
throw new Error("useUIContext must be used within a UIProvider");
|
|
961
|
+
return e;
|
|
962
|
+
};
|
|
963
|
+
class Un {
|
|
964
|
+
constructor() {
|
|
965
|
+
je(this, "events", {});
|
|
966
|
+
je(this, "prevData", {});
|
|
967
|
+
}
|
|
968
|
+
subscribe(t, r) {
|
|
969
|
+
return this.events[t] || (this.events[t] = []), this.events[t].push(r), () => {
|
|
970
|
+
this.events[t] = this.events[t].filter((n) => n !== r);
|
|
971
|
+
};
|
|
972
|
+
}
|
|
973
|
+
publish(t, r) {
|
|
974
|
+
this.events[t] && this.events[t].forEach((n) => {
|
|
975
|
+
this.prevData[t] = r, n(r);
|
|
976
|
+
});
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
const Qr = Se({}), fi = ({ children: e, headerConfigs: t, pathname: r, ...n }) => {
|
|
980
|
+
const [i, o] = ne(!0), a = r === "/", s = z(new Un()), u = (d) => d ? {
|
|
981
|
+
headerVariant: t.home_default_variant,
|
|
982
|
+
bannerVariant: t.home_default_variant,
|
|
983
|
+
position: t.home_default_position
|
|
984
|
+
} : {
|
|
985
|
+
headerVariant: t.default_variant,
|
|
986
|
+
bannerVariant: t.default_variant,
|
|
987
|
+
position: t.default_position
|
|
988
|
+
}, l = u(a), p = z(l);
|
|
989
|
+
return oe(() => {
|
|
990
|
+
const d = () => {
|
|
991
|
+
const c = typeof (window == null ? void 0 : window.navigator) > "u" ? "" : navigator == null ? void 0 : navigator.userAgent, m = window.innerWidth < 1024 || !!c.match(
|
|
992
|
+
/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i
|
|
993
|
+
);
|
|
994
|
+
i !== m && o(m);
|
|
995
|
+
};
|
|
996
|
+
return d(), window.addEventListener("resize", d, { passive: !0 }), () => window.removeEventListener("resize", d);
|
|
997
|
+
}, [i]), oe(() => {
|
|
998
|
+
const d = u(a);
|
|
999
|
+
s.current.publish(
|
|
1000
|
+
"header:change_variant",
|
|
1001
|
+
d.headerVariant
|
|
1002
|
+
), s.current.publish(
|
|
1003
|
+
"header:change_position",
|
|
1004
|
+
d.position
|
|
1005
|
+
), p.current = d;
|
|
1006
|
+
}, [a]), /* @__PURE__ */ E(
|
|
1007
|
+
Qr.Provider,
|
|
1008
|
+
{
|
|
1009
|
+
value: {
|
|
1010
|
+
isMobile: i,
|
|
1011
|
+
mediatorRef: s,
|
|
1012
|
+
currentHeaderConfigsRef: p,
|
|
1013
|
+
...n
|
|
1014
|
+
},
|
|
1015
|
+
children: /* @__PURE__ */ E(kn, { children: e })
|
|
1016
|
+
}
|
|
1017
|
+
);
|
|
1018
|
+
}, pi = () => Te(Qr), Xr = Se({}), mi = ({ children: e, ...t }) => /* @__PURE__ */ E(
|
|
1019
|
+
Xr.Provider,
|
|
1020
|
+
{
|
|
1021
|
+
value: {
|
|
1022
|
+
...t
|
|
1023
|
+
},
|
|
1024
|
+
children: e
|
|
1025
|
+
}
|
|
1026
|
+
), Yr = () => Te(Xr), zn = (e, t) => t.getTime() > e.getTime() ? Math.abs(t.getTime() - e.getTime()) : 0, pe = (e, t) => Math.floor(t === "days" ? e / (1e3 * 60 * 60 * 24) : t === "hours" ? e % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60) : t === "minutes" ? e % (1e3 * 60 * 60) / (1e3 * 60) : e % (1e3 * 60) / 1e3), Bn = (e) => e, Vn = (e) => ({
|
|
1027
|
+
...e.uiWidget ? { "ui:widget": e.uiWidget } : {},
|
|
1028
|
+
...e.uiObjectFieldTemplate ? { "ui:ObjectFieldTemplate": e.uiObjectFieldTemplate } : {}
|
|
1029
|
+
}), O = {
|
|
1030
|
+
property: Bn,
|
|
1031
|
+
widget: Vn
|
|
1032
|
+
};
|
|
1033
|
+
function Fn(e) {
|
|
1034
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1035
|
+
}
|
|
1036
|
+
var ht = { exports: {} }, ce = {};
|
|
1037
|
+
ce._ = ce._interop_require_default = Wn;
|
|
1038
|
+
function Wn(e) {
|
|
1039
|
+
return e && e.__esModule ? e : { default: e };
|
|
1040
|
+
}
|
|
1041
|
+
var me = { exports: {} }, ke = {}, kt;
|
|
1042
|
+
function Jr() {
|
|
1043
|
+
return kt || (kt = 1, function(e) {
|
|
1044
|
+
Object.defineProperty(e, "__esModule", {
|
|
1045
|
+
value: !0
|
|
1046
|
+
});
|
|
1047
|
+
function t(a, s) {
|
|
1048
|
+
for (var u in s) Object.defineProperty(a, u, {
|
|
1049
|
+
enumerable: !0,
|
|
1050
|
+
get: s[u]
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
t(e, {
|
|
1054
|
+
searchParamsToUrlQuery: function() {
|
|
1055
|
+
return r;
|
|
1056
|
+
},
|
|
1057
|
+
urlQueryToSearchParams: function() {
|
|
1058
|
+
return i;
|
|
1059
|
+
},
|
|
1060
|
+
assign: function() {
|
|
1061
|
+
return o;
|
|
1062
|
+
}
|
|
1063
|
+
});
|
|
1064
|
+
function r(a) {
|
|
1065
|
+
const s = {};
|
|
1066
|
+
return a.forEach((u, l) => {
|
|
1067
|
+
typeof s[l] > "u" ? s[l] = u : Array.isArray(s[l]) ? s[l].push(u) : s[l] = [
|
|
1068
|
+
s[l],
|
|
1069
|
+
u
|
|
1070
|
+
];
|
|
1071
|
+
}), s;
|
|
1072
|
+
}
|
|
1073
|
+
function n(a) {
|
|
1074
|
+
return typeof a == "string" || typeof a == "number" && !isNaN(a) || typeof a == "boolean" ? String(a) : "";
|
|
1075
|
+
}
|
|
1076
|
+
function i(a) {
|
|
1077
|
+
const s = new URLSearchParams();
|
|
1078
|
+
return Object.entries(a).forEach((u) => {
|
|
1079
|
+
let [l, p] = u;
|
|
1080
|
+
Array.isArray(p) ? p.forEach((d) => s.append(l, n(d))) : s.set(l, n(p));
|
|
1081
|
+
}), s;
|
|
1082
|
+
}
|
|
1083
|
+
function o(a) {
|
|
1084
|
+
for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0), l = 1; l < s; l++)
|
|
1085
|
+
u[l - 1] = arguments[l];
|
|
1086
|
+
return u.forEach((p) => {
|
|
1087
|
+
Array.from(p.keys()).forEach((d) => a.delete(d)), p.forEach((d, c) => a.append(c, d));
|
|
1088
|
+
}), a;
|
|
1089
|
+
}
|
|
1090
|
+
}(ke)), ke;
|
|
1091
|
+
}
|
|
1092
|
+
var Ue = {}, gt = {};
|
|
1093
|
+
function Zr(e) {
|
|
1094
|
+
if (typeof WeakMap != "function") return null;
|
|
1095
|
+
var t = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
|
|
1096
|
+
return (Zr = function(n) {
|
|
1097
|
+
return n ? r : t;
|
|
1098
|
+
})(e);
|
|
1099
|
+
}
|
|
1100
|
+
gt._ = gt._interop_require_wildcard = Hn;
|
|
1101
|
+
function Hn(e, t) {
|
|
1102
|
+
if (!t && e && e.__esModule) return e;
|
|
1103
|
+
if (e === null || typeof e != "object" && typeof e != "function") return { default: e };
|
|
1104
|
+
var r = Zr(t);
|
|
1105
|
+
if (r && r.has(e)) return r.get(e);
|
|
1106
|
+
var n = {}, i = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
1107
|
+
for (var o in e)
|
|
1108
|
+
if (o !== "default" && Object.prototype.hasOwnProperty.call(e, o)) {
|
|
1109
|
+
var a = i ? Object.getOwnPropertyDescriptor(e, o) : null;
|
|
1110
|
+
a && (a.get || a.set) ? Object.defineProperty(n, o, a) : n[o] = e[o];
|
|
1111
|
+
}
|
|
1112
|
+
return n.default = e, r && r.set(e, n), n;
|
|
1113
|
+
}
|
|
1114
|
+
var Ut;
|
|
1115
|
+
function en() {
|
|
1116
|
+
return Ut || (Ut = 1, function(e) {
|
|
1117
|
+
Object.defineProperty(e, "__esModule", {
|
|
1118
|
+
value: !0
|
|
1119
|
+
});
|
|
1120
|
+
function t(u, l) {
|
|
1121
|
+
for (var p in l) Object.defineProperty(u, p, {
|
|
1122
|
+
enumerable: !0,
|
|
1123
|
+
get: l[p]
|
|
1124
|
+
});
|
|
1125
|
+
}
|
|
1126
|
+
t(e, {
|
|
1127
|
+
formatUrl: function() {
|
|
1128
|
+
return o;
|
|
1129
|
+
},
|
|
1130
|
+
urlObjectKeys: function() {
|
|
1131
|
+
return a;
|
|
1132
|
+
},
|
|
1133
|
+
formatWithValidation: function() {
|
|
1134
|
+
return s;
|
|
1135
|
+
}
|
|
1136
|
+
});
|
|
1137
|
+
const n = /* @__PURE__ */ gt._(Jr()), i = /https?|ftp|gopher|file/;
|
|
1138
|
+
function o(u) {
|
|
1139
|
+
let { auth: l, hostname: p } = u, d = u.protocol || "", c = u.pathname || "", m = u.hash || "", y = u.query || "", f = !1;
|
|
1140
|
+
l = l ? encodeURIComponent(l).replace(/%3A/i, ":") + "@" : "", u.host ? f = l + u.host : p && (f = l + (~p.indexOf(":") ? "[" + p + "]" : p), u.port && (f += ":" + u.port)), y && typeof y == "object" && (y = String(n.urlQueryToSearchParams(y)));
|
|
1141
|
+
let g = u.search || y && "?" + y || "";
|
|
1142
|
+
return d && !d.endsWith(":") && (d += ":"), u.slashes || (!d || i.test(d)) && f !== !1 ? (f = "//" + (f || ""), c && c[0] !== "/" && (c = "/" + c)) : f || (f = ""), m && m[0] !== "#" && (m = "#" + m), g && g[0] !== "?" && (g = "?" + g), c = c.replace(/[?#]/g, encodeURIComponent), g = g.replace("#", "%23"), "" + d + f + c + g + m;
|
|
1143
|
+
}
|
|
1144
|
+
const a = [
|
|
1145
|
+
"auth",
|
|
1146
|
+
"hash",
|
|
1147
|
+
"host",
|
|
1148
|
+
"hostname",
|
|
1149
|
+
"href",
|
|
1150
|
+
"path",
|
|
1151
|
+
"pathname",
|
|
1152
|
+
"port",
|
|
1153
|
+
"protocol",
|
|
1154
|
+
"query",
|
|
1155
|
+
"search",
|
|
1156
|
+
"slashes"
|
|
1157
|
+
];
|
|
1158
|
+
function s(u) {
|
|
1159
|
+
return process.env.NODE_ENV === "development" && u !== null && typeof u == "object" && Object.keys(u).forEach((l) => {
|
|
1160
|
+
a.includes(l) || console.warn("Unknown key passed via urlObject into url.format: " + l);
|
|
1161
|
+
}), o(u);
|
|
1162
|
+
}
|
|
1163
|
+
}(Ue)), Ue;
|
|
1164
|
+
}
|
|
1165
|
+
var ze = {}, zt;
|
|
1166
|
+
function $n() {
|
|
1167
|
+
return zt || (zt = 1, function(e) {
|
|
1168
|
+
Object.defineProperty(e, "__esModule", {
|
|
1169
|
+
value: !0
|
|
1170
|
+
}), Object.defineProperty(e, "omit", {
|
|
1171
|
+
enumerable: !0,
|
|
1172
|
+
get: function() {
|
|
1173
|
+
return t;
|
|
1174
|
+
}
|
|
1175
|
+
});
|
|
1176
|
+
function t(r, n) {
|
|
1177
|
+
const i = {};
|
|
1178
|
+
return Object.keys(r).forEach((o) => {
|
|
1179
|
+
n.includes(o) || (i[o] = r[o]);
|
|
1180
|
+
}), i;
|
|
1181
|
+
}
|
|
1182
|
+
}(ze)), ze;
|
|
1183
|
+
}
|
|
1184
|
+
var Be = {}, Bt;
|
|
1185
|
+
function Ne() {
|
|
1186
|
+
return Bt || (Bt = 1, function(e) {
|
|
1187
|
+
Object.defineProperty(e, "__esModule", {
|
|
1188
|
+
value: !0
|
|
1189
|
+
});
|
|
1190
|
+
function t(h, P) {
|
|
1191
|
+
for (var v in P) Object.defineProperty(h, v, {
|
|
1192
|
+
enumerable: !0,
|
|
1193
|
+
get: P[v]
|
|
1194
|
+
});
|
|
1195
|
+
}
|
|
1196
|
+
t(e, {
|
|
1197
|
+
WEB_VITALS: function() {
|
|
1198
|
+
return r;
|
|
1199
|
+
},
|
|
1200
|
+
execOnce: function() {
|
|
1201
|
+
return n;
|
|
1202
|
+
},
|
|
1203
|
+
isAbsoluteUrl: function() {
|
|
1204
|
+
return o;
|
|
1205
|
+
},
|
|
1206
|
+
getLocationOrigin: function() {
|
|
1207
|
+
return a;
|
|
1208
|
+
},
|
|
1209
|
+
getURL: function() {
|
|
1210
|
+
return s;
|
|
1211
|
+
},
|
|
1212
|
+
getDisplayName: function() {
|
|
1213
|
+
return u;
|
|
1214
|
+
},
|
|
1215
|
+
isResSent: function() {
|
|
1216
|
+
return l;
|
|
1217
|
+
},
|
|
1218
|
+
normalizeRepeatedSlashes: function() {
|
|
1219
|
+
return p;
|
|
1220
|
+
},
|
|
1221
|
+
loadGetInitialProps: function() {
|
|
1222
|
+
return d;
|
|
1223
|
+
},
|
|
1224
|
+
SP: function() {
|
|
1225
|
+
return c;
|
|
1226
|
+
},
|
|
1227
|
+
ST: function() {
|
|
1228
|
+
return m;
|
|
1229
|
+
},
|
|
1230
|
+
DecodeError: function() {
|
|
1231
|
+
return y;
|
|
1232
|
+
},
|
|
1233
|
+
NormalizeError: function() {
|
|
1234
|
+
return f;
|
|
1235
|
+
},
|
|
1236
|
+
PageNotFoundError: function() {
|
|
1237
|
+
return g;
|
|
1238
|
+
},
|
|
1239
|
+
MissingStaticPage: function() {
|
|
1240
|
+
return _;
|
|
1241
|
+
},
|
|
1242
|
+
MiddlewareNotFoundError: function() {
|
|
1243
|
+
return w;
|
|
1244
|
+
},
|
|
1245
|
+
stringifyError: function() {
|
|
1246
|
+
return b;
|
|
1247
|
+
}
|
|
1248
|
+
});
|
|
1249
|
+
const r = [
|
|
1250
|
+
"CLS",
|
|
1251
|
+
"FCP",
|
|
1252
|
+
"FID",
|
|
1253
|
+
"INP",
|
|
1254
|
+
"LCP",
|
|
1255
|
+
"TTFB"
|
|
1256
|
+
];
|
|
1257
|
+
function n(h) {
|
|
1258
|
+
let P = !1, v;
|
|
1259
|
+
return function() {
|
|
1260
|
+
for (var R = arguments.length, I = new Array(R), N = 0; N < R; N++)
|
|
1261
|
+
I[N] = arguments[N];
|
|
1262
|
+
return P || (P = !0, v = h(...I)), v;
|
|
1263
|
+
};
|
|
1264
|
+
}
|
|
1265
|
+
const i = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/, o = (h) => i.test(h);
|
|
1266
|
+
function a() {
|
|
1267
|
+
const { protocol: h, hostname: P, port: v } = window.location;
|
|
1268
|
+
return h + "//" + P + (v ? ":" + v : "");
|
|
1269
|
+
}
|
|
1270
|
+
function s() {
|
|
1271
|
+
const { href: h } = window.location, P = a();
|
|
1272
|
+
return h.substring(P.length);
|
|
1273
|
+
}
|
|
1274
|
+
function u(h) {
|
|
1275
|
+
return typeof h == "string" ? h : h.displayName || h.name || "Unknown";
|
|
1276
|
+
}
|
|
1277
|
+
function l(h) {
|
|
1278
|
+
return h.finished || h.headersSent;
|
|
1279
|
+
}
|
|
1280
|
+
function p(h) {
|
|
1281
|
+
const P = h.split("?");
|
|
1282
|
+
return P[0].replace(/\\/g, "/").replace(/\/\/+/g, "/") + (P[1] ? "?" + P.slice(1).join("?") : "");
|
|
1283
|
+
}
|
|
1284
|
+
async function d(h, P) {
|
|
1285
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1286
|
+
var v;
|
|
1287
|
+
if ((v = h.prototype) != null && v.getInitialProps) {
|
|
1288
|
+
const N = '"' + u(h) + '.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';
|
|
1289
|
+
throw new Error(N);
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
const R = P.res || P.ctx && P.ctx.res;
|
|
1293
|
+
if (!h.getInitialProps)
|
|
1294
|
+
return P.ctx && P.Component ? {
|
|
1295
|
+
pageProps: await d(P.Component, P.ctx)
|
|
1296
|
+
} : {};
|
|
1297
|
+
const I = await h.getInitialProps(P);
|
|
1298
|
+
if (R && l(R))
|
|
1299
|
+
return I;
|
|
1300
|
+
if (!I) {
|
|
1301
|
+
const N = '"' + u(h) + '.getInitialProps()" should resolve to an object. But found "' + I + '" instead.';
|
|
1302
|
+
throw new Error(N);
|
|
1303
|
+
}
|
|
1304
|
+
return process.env.NODE_ENV !== "production" && Object.keys(I).length === 0 && !P.ctx && console.warn("" + u(h) + " returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"), I;
|
|
1305
|
+
}
|
|
1306
|
+
const c = typeof performance < "u", m = c && [
|
|
1307
|
+
"mark",
|
|
1308
|
+
"measure",
|
|
1309
|
+
"getEntriesByName"
|
|
1310
|
+
].every((h) => typeof performance[h] == "function");
|
|
1311
|
+
class y extends Error {
|
|
1312
|
+
}
|
|
1313
|
+
class f extends Error {
|
|
1314
|
+
}
|
|
1315
|
+
class g extends Error {
|
|
1316
|
+
constructor(P) {
|
|
1317
|
+
super(), this.code = "ENOENT", this.name = "PageNotFoundError", this.message = "Cannot find module for page: " + P;
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
class _ extends Error {
|
|
1321
|
+
constructor(P, v) {
|
|
1322
|
+
super(), this.message = "Failed to load static file for page: " + P + " " + v;
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
class w extends Error {
|
|
1326
|
+
constructor() {
|
|
1327
|
+
super(), this.code = "ENOENT", this.message = "Cannot find the middleware module";
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
function b(h) {
|
|
1331
|
+
return JSON.stringify({
|
|
1332
|
+
message: h.message,
|
|
1333
|
+
stack: h.stack
|
|
1334
|
+
});
|
|
1335
|
+
}
|
|
1336
|
+
}(Be)), Be;
|
|
1337
|
+
}
|
|
1338
|
+
var he = { exports: {} }, Ve = {}, Vt;
|
|
1339
|
+
function tn() {
|
|
1340
|
+
return Vt || (Vt = 1, function(e) {
|
|
1341
|
+
Object.defineProperty(e, "__esModule", {
|
|
1342
|
+
value: !0
|
|
1343
|
+
}), Object.defineProperty(e, "removeTrailingSlash", {
|
|
1344
|
+
enumerable: !0,
|
|
1345
|
+
get: function() {
|
|
1346
|
+
return t;
|
|
1347
|
+
}
|
|
1348
|
+
});
|
|
1349
|
+
function t(r) {
|
|
1350
|
+
return r.replace(/\/$/, "") || "/";
|
|
1351
|
+
}
|
|
1352
|
+
}(Ve)), Ve;
|
|
1353
|
+
}
|
|
1354
|
+
var Fe = {}, Ft;
|
|
1355
|
+
function Rt() {
|
|
1356
|
+
return Ft || (Ft = 1, function(e) {
|
|
1357
|
+
Object.defineProperty(e, "__esModule", {
|
|
1358
|
+
value: !0
|
|
1359
|
+
}), Object.defineProperty(e, "parsePath", {
|
|
1360
|
+
enumerable: !0,
|
|
1361
|
+
get: function() {
|
|
1362
|
+
return t;
|
|
1363
|
+
}
|
|
1364
|
+
});
|
|
1365
|
+
function t(r) {
|
|
1366
|
+
const n = r.indexOf("#"), i = r.indexOf("?"), o = i > -1 && (n < 0 || i < n);
|
|
1367
|
+
return o || n > -1 ? {
|
|
1368
|
+
pathname: r.substring(0, o ? i : n),
|
|
1369
|
+
query: o ? r.substring(i, n > -1 ? n : void 0) : "",
|
|
1370
|
+
hash: n > -1 ? r.slice(n) : ""
|
|
1371
|
+
} : {
|
|
1372
|
+
pathname: r,
|
|
1373
|
+
query: "",
|
|
1374
|
+
hash: ""
|
|
1375
|
+
};
|
|
1376
|
+
}
|
|
1377
|
+
}(Fe)), Fe;
|
|
1378
|
+
}
|
|
1379
|
+
var Wt;
|
|
1380
|
+
function Ce() {
|
|
1381
|
+
return Wt || (Wt = 1, function(e, t) {
|
|
1382
|
+
Object.defineProperty(t, "__esModule", {
|
|
1383
|
+
value: !0
|
|
1384
|
+
}), Object.defineProperty(t, "normalizePathTrailingSlash", {
|
|
1385
|
+
enumerable: !0,
|
|
1386
|
+
get: function() {
|
|
1387
|
+
return i;
|
|
1388
|
+
}
|
|
1389
|
+
});
|
|
1390
|
+
const r = tn(), n = Rt(), i = (o) => {
|
|
1391
|
+
if (!o.startsWith("/") || process.env.__NEXT_MANUAL_TRAILING_SLASH)
|
|
1392
|
+
return o;
|
|
1393
|
+
const { pathname: a, query: s, hash: u } = (0, n.parsePath)(o);
|
|
1394
|
+
return process.env.__NEXT_TRAILING_SLASH ? /\.[^/]+\/?$/.test(a) ? "" + (0, r.removeTrailingSlash)(a) + s + u : a.endsWith("/") ? "" + a + s + u : a + "/" + s + u : "" + (0, r.removeTrailingSlash)(a) + s + u;
|
|
1395
|
+
};
|
|
1396
|
+
(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);
|
|
1397
|
+
}(he, he.exports)), he.exports;
|
|
1398
|
+
}
|
|
1399
|
+
var We = {}, ge = { exports: {} }, He = {}, Ht;
|
|
1400
|
+
function rn() {
|
|
1401
|
+
return Ht || (Ht = 1, function(e) {
|
|
1402
|
+
Object.defineProperty(e, "__esModule", {
|
|
1403
|
+
value: !0
|
|
1404
|
+
}), Object.defineProperty(e, "pathHasPrefix", {
|
|
1405
|
+
enumerable: !0,
|
|
1406
|
+
get: function() {
|
|
1407
|
+
return r;
|
|
1408
|
+
}
|
|
1409
|
+
});
|
|
1410
|
+
const t = Rt();
|
|
1411
|
+
function r(n, i) {
|
|
1412
|
+
if (typeof n != "string")
|
|
1413
|
+
return !1;
|
|
1414
|
+
const { pathname: o } = (0, t.parsePath)(n);
|
|
1415
|
+
return o === i || o.startsWith(i + "/");
|
|
1416
|
+
}
|
|
1417
|
+
}(He)), He;
|
|
1418
|
+
}
|
|
1419
|
+
var $t;
|
|
1420
|
+
function Gn() {
|
|
1421
|
+
return $t || ($t = 1, function(e, t) {
|
|
1422
|
+
Object.defineProperty(t, "__esModule", {
|
|
1423
|
+
value: !0
|
|
1424
|
+
}), Object.defineProperty(t, "hasBasePath", {
|
|
1425
|
+
enumerable: !0,
|
|
1426
|
+
get: function() {
|
|
1427
|
+
return i;
|
|
1428
|
+
}
|
|
1429
|
+
});
|
|
1430
|
+
const r = rn(), n = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
1431
|
+
function i(o) {
|
|
1432
|
+
return (0, r.pathHasPrefix)(o, n);
|
|
1433
|
+
}
|
|
1434
|
+
(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);
|
|
1435
|
+
}(ge, ge.exports)), ge.exports;
|
|
1436
|
+
}
|
|
1437
|
+
var Gt;
|
|
1438
|
+
function nn() {
|
|
1439
|
+
return Gt || (Gt = 1, function(e) {
|
|
1440
|
+
Object.defineProperty(e, "__esModule", {
|
|
1441
|
+
value: !0
|
|
1442
|
+
}), Object.defineProperty(e, "isLocalURL", {
|
|
1443
|
+
enumerable: !0,
|
|
1444
|
+
get: function() {
|
|
1445
|
+
return n;
|
|
1446
|
+
}
|
|
1447
|
+
});
|
|
1448
|
+
const t = Ne(), r = Gn();
|
|
1449
|
+
function n(i) {
|
|
1450
|
+
if (!(0, t.isAbsoluteUrl)(i)) return !0;
|
|
1451
|
+
try {
|
|
1452
|
+
const o = (0, t.getLocationOrigin)(), a = new URL(i, o);
|
|
1453
|
+
return a.origin === o && (0, r.hasBasePath)(a.pathname);
|
|
1454
|
+
} catch {
|
|
1455
|
+
return !1;
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
}(We)), We;
|
|
1459
|
+
}
|
|
1460
|
+
var $e = {}, Ge = {}, Kt;
|
|
1461
|
+
function Kn() {
|
|
1462
|
+
return Kt || (Kt = 1, function(e) {
|
|
1463
|
+
Object.defineProperty(e, "__esModule", {
|
|
1464
|
+
value: !0
|
|
1465
|
+
}), Object.defineProperty(e, "getSortedRoutes", {
|
|
1466
|
+
enumerable: !0,
|
|
1467
|
+
get: function() {
|
|
1468
|
+
return r;
|
|
1469
|
+
}
|
|
1470
|
+
});
|
|
1471
|
+
class t {
|
|
1472
|
+
insert(i) {
|
|
1473
|
+
this._insert(i.split("/").filter(Boolean), [], !1);
|
|
1474
|
+
}
|
|
1475
|
+
smoosh() {
|
|
1476
|
+
return this._smoosh();
|
|
1477
|
+
}
|
|
1478
|
+
_smoosh(i) {
|
|
1479
|
+
i === void 0 && (i = "/");
|
|
1480
|
+
const o = [
|
|
1481
|
+
...this.children.keys()
|
|
1482
|
+
].sort();
|
|
1483
|
+
this.slugName !== null && o.splice(o.indexOf("[]"), 1), this.restSlugName !== null && o.splice(o.indexOf("[...]"), 1), this.optionalRestSlugName !== null && o.splice(o.indexOf("[[...]]"), 1);
|
|
1484
|
+
const a = o.map((s) => this.children.get(s)._smoosh("" + i + s + "/")).reduce((s, u) => [
|
|
1485
|
+
...s,
|
|
1486
|
+
...u
|
|
1487
|
+
], []);
|
|
1488
|
+
if (this.slugName !== null && a.push(...this.children.get("[]")._smoosh(i + "[" + this.slugName + "]/")), !this.placeholder) {
|
|
1489
|
+
const s = i === "/" ? "/" : i.slice(0, -1);
|
|
1490
|
+
if (this.optionalRestSlugName != null)
|
|
1491
|
+
throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("' + s + '" and "' + s + "[[..." + this.optionalRestSlugName + ']]").');
|
|
1492
|
+
a.unshift(s);
|
|
1493
|
+
}
|
|
1494
|
+
return this.restSlugName !== null && a.push(...this.children.get("[...]")._smoosh(i + "[..." + this.restSlugName + "]/")), this.optionalRestSlugName !== null && a.push(...this.children.get("[[...]]")._smoosh(i + "[[..." + this.optionalRestSlugName + "]]/")), a;
|
|
1495
|
+
}
|
|
1496
|
+
_insert(i, o, a) {
|
|
1497
|
+
if (i.length === 0) {
|
|
1498
|
+
this.placeholder = !1;
|
|
1499
|
+
return;
|
|
1500
|
+
}
|
|
1501
|
+
if (a)
|
|
1502
|
+
throw new Error("Catch-all must be the last part of the URL.");
|
|
1503
|
+
let s = i[0];
|
|
1504
|
+
if (s.startsWith("[") && s.endsWith("]")) {
|
|
1505
|
+
let p = function(d, c) {
|
|
1506
|
+
if (d !== null && d !== c)
|
|
1507
|
+
throw new Error("You cannot use different slug names for the same dynamic path ('" + d + "' !== '" + c + "').");
|
|
1508
|
+
o.forEach((m) => {
|
|
1509
|
+
if (m === c)
|
|
1510
|
+
throw new Error('You cannot have the same slug name "' + c + '" repeat within a single dynamic path');
|
|
1511
|
+
if (m.replace(/\W/g, "") === s.replace(/\W/g, ""))
|
|
1512
|
+
throw new Error('You cannot have the slug names "' + m + '" and "' + c + '" differ only by non-word symbols within a single dynamic path');
|
|
1513
|
+
}), o.push(c);
|
|
1514
|
+
}, u = s.slice(1, -1), l = !1;
|
|
1515
|
+
if (u.startsWith("[") && u.endsWith("]") && (u = u.slice(1, -1), l = !0), u.startsWith("...") && (u = u.substring(3), a = !0), u.startsWith("[") || u.endsWith("]"))
|
|
1516
|
+
throw new Error("Segment names may not start or end with extra brackets ('" + u + "').");
|
|
1517
|
+
if (u.startsWith("."))
|
|
1518
|
+
throw new Error("Segment names may not start with erroneous periods ('" + u + "').");
|
|
1519
|
+
if (a)
|
|
1520
|
+
if (l) {
|
|
1521
|
+
if (this.restSlugName != null)
|
|
1522
|
+
throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...' + this.restSlugName + ']" and "' + i[0] + '" ).');
|
|
1523
|
+
p(this.optionalRestSlugName, u), this.optionalRestSlugName = u, s = "[[...]]";
|
|
1524
|
+
} else {
|
|
1525
|
+
if (this.optionalRestSlugName != null)
|
|
1526
|
+
throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...' + this.optionalRestSlugName + ']]" and "' + i[0] + '").');
|
|
1527
|
+
p(this.restSlugName, u), this.restSlugName = u, s = "[...]";
|
|
1528
|
+
}
|
|
1529
|
+
else {
|
|
1530
|
+
if (l)
|
|
1531
|
+
throw new Error('Optional route parameters are not yet supported ("' + i[0] + '").');
|
|
1532
|
+
p(this.slugName, u), this.slugName = u, s = "[]";
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
this.children.has(s) || this.children.set(s, new t()), this.children.get(s)._insert(i.slice(1), o, a);
|
|
1536
|
+
}
|
|
1537
|
+
constructor() {
|
|
1538
|
+
this.placeholder = !0, this.children = /* @__PURE__ */ new Map(), this.slugName = null, this.restSlugName = null, this.optionalRestSlugName = null;
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
function r(n) {
|
|
1542
|
+
const i = new t();
|
|
1543
|
+
return n.forEach((o) => i.insert(o)), i.smoosh();
|
|
1544
|
+
}
|
|
1545
|
+
}(Ge)), Ge;
|
|
1546
|
+
}
|
|
1547
|
+
var Ke = {}, Qt;
|
|
1548
|
+
function Qn() {
|
|
1549
|
+
return Qt || (Qt = 1, function(e) {
|
|
1550
|
+
Object.defineProperty(e, "__esModule", {
|
|
1551
|
+
value: !0
|
|
1552
|
+
}), Object.defineProperty(e, "isDynamicRoute", {
|
|
1553
|
+
enumerable: !0,
|
|
1554
|
+
get: function() {
|
|
1555
|
+
return r;
|
|
1556
|
+
}
|
|
1557
|
+
});
|
|
1558
|
+
const t = /\/\[[^/]+?\](?=\/|$)/;
|
|
1559
|
+
function r(n) {
|
|
1560
|
+
return t.test(n);
|
|
1561
|
+
}
|
|
1562
|
+
}(Ke)), Ke;
|
|
1563
|
+
}
|
|
1564
|
+
var Xt;
|
|
1565
|
+
function Xn() {
|
|
1566
|
+
return Xt || (Xt = 1, function(e) {
|
|
1567
|
+
Object.defineProperty(e, "__esModule", {
|
|
1568
|
+
value: !0
|
|
1569
|
+
});
|
|
1570
|
+
function t(i, o) {
|
|
1571
|
+
for (var a in o) Object.defineProperty(i, a, {
|
|
1572
|
+
enumerable: !0,
|
|
1573
|
+
get: o[a]
|
|
1574
|
+
});
|
|
1575
|
+
}
|
|
1576
|
+
t(e, {
|
|
1577
|
+
getSortedRoutes: function() {
|
|
1578
|
+
return r.getSortedRoutes;
|
|
1579
|
+
},
|
|
1580
|
+
isDynamicRoute: function() {
|
|
1581
|
+
return n.isDynamicRoute;
|
|
1582
|
+
}
|
|
1583
|
+
});
|
|
1584
|
+
const r = Kn(), n = Qn();
|
|
1585
|
+
}($e)), $e;
|
|
1586
|
+
}
|
|
1587
|
+
var Qe = {}, Xe = {}, Yt;
|
|
1588
|
+
function Yn() {
|
|
1589
|
+
return Yt || (Yt = 1, function(e) {
|
|
1590
|
+
Object.defineProperty(e, "__esModule", {
|
|
1591
|
+
value: !0
|
|
1592
|
+
}), Object.defineProperty(e, "getRouteMatcher", {
|
|
1593
|
+
enumerable: !0,
|
|
1594
|
+
get: function() {
|
|
1595
|
+
return r;
|
|
1596
|
+
}
|
|
1597
|
+
});
|
|
1598
|
+
const t = Ne();
|
|
1599
|
+
function r(n) {
|
|
1600
|
+
let { re: i, groups: o } = n;
|
|
1601
|
+
return (a) => {
|
|
1602
|
+
const s = i.exec(a);
|
|
1603
|
+
if (!s)
|
|
1604
|
+
return !1;
|
|
1605
|
+
const u = (p) => {
|
|
1606
|
+
try {
|
|
1607
|
+
return decodeURIComponent(p);
|
|
1608
|
+
} catch {
|
|
1609
|
+
throw new t.DecodeError("failed to decode param");
|
|
1610
|
+
}
|
|
1611
|
+
}, l = {};
|
|
1612
|
+
return Object.keys(o).forEach((p) => {
|
|
1613
|
+
const d = o[p], c = s[d.pos];
|
|
1614
|
+
c !== void 0 && (l[p] = ~c.indexOf("/") ? c.split("/").map((m) => u(m)) : d.repeat ? [
|
|
1615
|
+
u(c)
|
|
1616
|
+
] : u(c));
|
|
1617
|
+
}), l;
|
|
1618
|
+
};
|
|
1619
|
+
}
|
|
1620
|
+
}(Xe)), Xe;
|
|
1621
|
+
}
|
|
1622
|
+
var Ye = {}, Je = {}, Ze = {}, et = {}, Jt;
|
|
1623
|
+
function Jn() {
|
|
1624
|
+
return Jt || (Jt = 1, function(e) {
|
|
1625
|
+
Object.defineProperty(e, "__esModule", {
|
|
1626
|
+
value: !0
|
|
1627
|
+
}), Object.defineProperty(e, "ensureLeadingSlash", {
|
|
1628
|
+
enumerable: !0,
|
|
1629
|
+
get: function() {
|
|
1630
|
+
return t;
|
|
1631
|
+
}
|
|
1632
|
+
});
|
|
1633
|
+
function t(r) {
|
|
1634
|
+
return r.startsWith("/") ? r : "/" + r;
|
|
1635
|
+
}
|
|
1636
|
+
}(et)), et;
|
|
1637
|
+
}
|
|
1638
|
+
var tt = {}, Zt;
|
|
1639
|
+
function Zn() {
|
|
1640
|
+
return Zt || (Zt = 1, function(e) {
|
|
1641
|
+
Object.defineProperty(e, "__esModule", {
|
|
1642
|
+
value: !0
|
|
1643
|
+
}), Object.defineProperty(e, "isGroupSegment", {
|
|
1644
|
+
enumerable: !0,
|
|
1645
|
+
get: function() {
|
|
1646
|
+
return t;
|
|
1647
|
+
}
|
|
1648
|
+
});
|
|
1649
|
+
function t(r) {
|
|
1650
|
+
return r[0] === "(" && r.endsWith(")");
|
|
1651
|
+
}
|
|
1652
|
+
}(tt)), tt;
|
|
1653
|
+
}
|
|
1654
|
+
var er;
|
|
1655
|
+
function eo() {
|
|
1656
|
+
return er || (er = 1, function(e) {
|
|
1657
|
+
Object.defineProperty(e, "__esModule", {
|
|
1658
|
+
value: !0
|
|
1659
|
+
});
|
|
1660
|
+
function t(a, s) {
|
|
1661
|
+
for (var u in s) Object.defineProperty(a, u, {
|
|
1662
|
+
enumerable: !0,
|
|
1663
|
+
get: s[u]
|
|
1664
|
+
});
|
|
1665
|
+
}
|
|
1666
|
+
t(e, {
|
|
1667
|
+
normalizeAppPath: function() {
|
|
1668
|
+
return i;
|
|
1669
|
+
},
|
|
1670
|
+
normalizeRscPath: function() {
|
|
1671
|
+
return o;
|
|
1672
|
+
}
|
|
1673
|
+
});
|
|
1674
|
+
const r = Jn(), n = Zn();
|
|
1675
|
+
function i(a) {
|
|
1676
|
+
return (0, r.ensureLeadingSlash)(a.split("/").reduce((s, u, l, p) => !u || (0, n.isGroupSegment)(u) || u[0] === "@" || (u === "page" || u === "route") && l === p.length - 1 ? s : s + "/" + u, ""));
|
|
1677
|
+
}
|
|
1678
|
+
function o(a, s) {
|
|
1679
|
+
return s ? a.replace(
|
|
1680
|
+
/\.rsc($|\?)/,
|
|
1681
|
+
// $1 ensures `?` is preserved
|
|
1682
|
+
"$1"
|
|
1683
|
+
) : a;
|
|
1684
|
+
}
|
|
1685
|
+
}(Ze)), Ze;
|
|
1686
|
+
}
|
|
1687
|
+
var tr;
|
|
1688
|
+
function to() {
|
|
1689
|
+
return tr || (tr = 1, function(e) {
|
|
1690
|
+
Object.defineProperty(e, "__esModule", {
|
|
1691
|
+
value: !0
|
|
1692
|
+
});
|
|
1693
|
+
function t(a, s) {
|
|
1694
|
+
for (var u in s) Object.defineProperty(a, u, {
|
|
1695
|
+
enumerable: !0,
|
|
1696
|
+
get: s[u]
|
|
1697
|
+
});
|
|
1698
|
+
}
|
|
1699
|
+
t(e, {
|
|
1700
|
+
INTERCEPTION_ROUTE_MARKERS: function() {
|
|
1701
|
+
return n;
|
|
1702
|
+
},
|
|
1703
|
+
isInterceptionRouteAppPath: function() {
|
|
1704
|
+
return i;
|
|
1705
|
+
},
|
|
1706
|
+
extractInterceptionRouteInformation: function() {
|
|
1707
|
+
return o;
|
|
1708
|
+
}
|
|
1709
|
+
});
|
|
1710
|
+
const r = eo(), n = [
|
|
1711
|
+
"(..)(..)",
|
|
1712
|
+
"(.)",
|
|
1713
|
+
"(..)",
|
|
1714
|
+
"(...)"
|
|
1715
|
+
];
|
|
1716
|
+
function i(a) {
|
|
1717
|
+
return a.split("/").find((s) => n.find((u) => s.startsWith(u))) !== void 0;
|
|
1718
|
+
}
|
|
1719
|
+
function o(a) {
|
|
1720
|
+
let s, u, l;
|
|
1721
|
+
for (const p of a.split("/"))
|
|
1722
|
+
if (u = n.find((d) => p.startsWith(d)), u) {
|
|
1723
|
+
[s, l] = a.split(u, 2);
|
|
1724
|
+
break;
|
|
1725
|
+
}
|
|
1726
|
+
if (!s || !u || !l)
|
|
1727
|
+
throw new Error(`Invalid interception route: ${a}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`);
|
|
1728
|
+
switch (s = (0, r.normalizeAppPath)(s), u) {
|
|
1729
|
+
case "(.)":
|
|
1730
|
+
s === "/" ? l = `/${l}` : l = s + "/" + l;
|
|
1731
|
+
break;
|
|
1732
|
+
case "(..)":
|
|
1733
|
+
if (s === "/")
|
|
1734
|
+
throw new Error(`Invalid interception route: ${a}. Cannot use (..) marker at the root level, use (.) instead.`);
|
|
1735
|
+
l = s.split("/").slice(0, -1).concat(l).join("/");
|
|
1736
|
+
break;
|
|
1737
|
+
case "(...)":
|
|
1738
|
+
l = "/" + l;
|
|
1739
|
+
break;
|
|
1740
|
+
case "(..)(..)":
|
|
1741
|
+
const p = s.split("/");
|
|
1742
|
+
if (p.length <= 2)
|
|
1743
|
+
throw new Error(`Invalid interception route: ${a}. Cannot use (..)(..) marker at the root level or one level up.`);
|
|
1744
|
+
l = p.slice(0, -2).concat(l).join("/");
|
|
1745
|
+
break;
|
|
1746
|
+
default:
|
|
1747
|
+
throw new Error("Invariant: unexpected marker");
|
|
1748
|
+
}
|
|
1749
|
+
return {
|
|
1750
|
+
interceptingRoute: s,
|
|
1751
|
+
interceptedRoute: l
|
|
1752
|
+
};
|
|
1753
|
+
}
|
|
1754
|
+
}(Je)), Je;
|
|
1755
|
+
}
|
|
1756
|
+
var rt = {}, rr;
|
|
1757
|
+
function ro() {
|
|
1758
|
+
return rr || (rr = 1, function(e) {
|
|
1759
|
+
Object.defineProperty(e, "__esModule", {
|
|
1760
|
+
value: !0
|
|
1761
|
+
}), Object.defineProperty(e, "escapeStringRegexp", {
|
|
1762
|
+
enumerable: !0,
|
|
1763
|
+
get: function() {
|
|
1764
|
+
return n;
|
|
1765
|
+
}
|
|
1766
|
+
});
|
|
1767
|
+
const t = /[|\\{}()[\]^$+*?.-]/, r = /[|\\{}()[\]^$+*?.-]/g;
|
|
1768
|
+
function n(i) {
|
|
1769
|
+
return t.test(i) ? i.replace(r, "\\$&") : i;
|
|
1770
|
+
}
|
|
1771
|
+
}(rt)), rt;
|
|
1772
|
+
}
|
|
1773
|
+
var nr;
|
|
1774
|
+
function no() {
|
|
1775
|
+
return nr || (nr = 1, function(e) {
|
|
1776
|
+
Object.defineProperty(e, "__esModule", {
|
|
1777
|
+
value: !0
|
|
1778
|
+
});
|
|
1779
|
+
function t(f, g) {
|
|
1780
|
+
for (var _ in g) Object.defineProperty(f, _, {
|
|
1781
|
+
enumerable: !0,
|
|
1782
|
+
get: g[_]
|
|
1783
|
+
});
|
|
1784
|
+
}
|
|
1785
|
+
t(e, {
|
|
1786
|
+
getRouteRegex: function() {
|
|
1787
|
+
return l;
|
|
1788
|
+
},
|
|
1789
|
+
getNamedRouteRegex: function() {
|
|
1790
|
+
return m;
|
|
1791
|
+
},
|
|
1792
|
+
getNamedMiddlewareRegex: function() {
|
|
1793
|
+
return y;
|
|
1794
|
+
}
|
|
1795
|
+
});
|
|
1796
|
+
const r = to(), n = ro(), i = tn(), o = "nxtP", a = "nxtI";
|
|
1797
|
+
function s(f) {
|
|
1798
|
+
const g = f.startsWith("[") && f.endsWith("]");
|
|
1799
|
+
g && (f = f.slice(1, -1));
|
|
1800
|
+
const _ = f.startsWith("...");
|
|
1801
|
+
return _ && (f = f.slice(3)), {
|
|
1802
|
+
key: f,
|
|
1803
|
+
repeat: _,
|
|
1804
|
+
optional: g
|
|
1805
|
+
};
|
|
1806
|
+
}
|
|
1807
|
+
function u(f) {
|
|
1808
|
+
const g = (0, i.removeTrailingSlash)(f).slice(1).split("/"), _ = {};
|
|
1809
|
+
let w = 1;
|
|
1810
|
+
return {
|
|
1811
|
+
parameterizedRoute: g.map((b) => {
|
|
1812
|
+
const h = r.INTERCEPTION_ROUTE_MARKERS.find((v) => b.startsWith(v)), P = b.match(/\[((?:\[.*\])|.+)\]/);
|
|
1813
|
+
if (h && P) {
|
|
1814
|
+
const { key: v, optional: R, repeat: I } = s(P[1]);
|
|
1815
|
+
return _[v] = {
|
|
1816
|
+
pos: w++,
|
|
1817
|
+
repeat: I,
|
|
1818
|
+
optional: R
|
|
1819
|
+
}, "/" + (0, n.escapeStringRegexp)(h) + "([^/]+?)";
|
|
1820
|
+
} else if (P) {
|
|
1821
|
+
const { key: v, repeat: R, optional: I } = s(P[1]);
|
|
1822
|
+
return _[v] = {
|
|
1823
|
+
pos: w++,
|
|
1824
|
+
repeat: R,
|
|
1825
|
+
optional: I
|
|
1826
|
+
}, R ? I ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
|
|
1827
|
+
} else
|
|
1828
|
+
return "/" + (0, n.escapeStringRegexp)(b);
|
|
1829
|
+
}).join(""),
|
|
1830
|
+
groups: _
|
|
1831
|
+
};
|
|
1832
|
+
}
|
|
1833
|
+
function l(f) {
|
|
1834
|
+
const { parameterizedRoute: g, groups: _ } = u(f);
|
|
1835
|
+
return {
|
|
1836
|
+
re: new RegExp("^" + g + "(?:/)?$"),
|
|
1837
|
+
groups: _
|
|
1838
|
+
};
|
|
1839
|
+
}
|
|
1840
|
+
function p() {
|
|
1841
|
+
let f = 0;
|
|
1842
|
+
return () => {
|
|
1843
|
+
let g = "", _ = ++f;
|
|
1844
|
+
for (; _ > 0; )
|
|
1845
|
+
g += String.fromCharCode(97 + (_ - 1) % 26), _ = Math.floor((_ - 1) / 26);
|
|
1846
|
+
return g;
|
|
1847
|
+
};
|
|
1848
|
+
}
|
|
1849
|
+
function d(f) {
|
|
1850
|
+
let { getSafeRouteKey: g, segment: _, routeKeys: w, keyPrefix: b } = f;
|
|
1851
|
+
const { key: h, optional: P, repeat: v } = s(_);
|
|
1852
|
+
let R = h.replace(/\W/g, "");
|
|
1853
|
+
b && (R = "" + b + R);
|
|
1854
|
+
let I = !1;
|
|
1855
|
+
return (R.length === 0 || R.length > 30) && (I = !0), isNaN(parseInt(R.slice(0, 1))) || (I = !0), I && (R = g()), b ? w[R] = "" + b + h : w[R] = "" + h, v ? P ? "(?:/(?<" + R + ">.+?))?" : "/(?<" + R + ">.+?)" : "/(?<" + R + ">[^/]+?)";
|
|
1856
|
+
}
|
|
1857
|
+
function c(f, g) {
|
|
1858
|
+
const _ = (0, i.removeTrailingSlash)(f).slice(1).split("/"), w = p(), b = {};
|
|
1859
|
+
return {
|
|
1860
|
+
namedParameterizedRoute: _.map((h) => {
|
|
1861
|
+
const P = r.INTERCEPTION_ROUTE_MARKERS.some((R) => h.startsWith(R)), v = h.match(/\[((?:\[.*\])|.+)\]/);
|
|
1862
|
+
return P && v ? d({
|
|
1863
|
+
getSafeRouteKey: w,
|
|
1864
|
+
segment: v[1],
|
|
1865
|
+
routeKeys: b,
|
|
1866
|
+
keyPrefix: g ? a : void 0
|
|
1867
|
+
}) : v ? d({
|
|
1868
|
+
getSafeRouteKey: w,
|
|
1869
|
+
segment: v[1],
|
|
1870
|
+
routeKeys: b,
|
|
1871
|
+
keyPrefix: g ? o : void 0
|
|
1872
|
+
}) : "/" + (0, n.escapeStringRegexp)(h);
|
|
1873
|
+
}).join(""),
|
|
1874
|
+
routeKeys: b
|
|
1875
|
+
};
|
|
1876
|
+
}
|
|
1877
|
+
function m(f, g) {
|
|
1878
|
+
const _ = c(f, g);
|
|
1879
|
+
return {
|
|
1880
|
+
...l(f),
|
|
1881
|
+
namedRegex: "^" + _.namedParameterizedRoute + "(?:/)?$",
|
|
1882
|
+
routeKeys: _.routeKeys
|
|
1883
|
+
};
|
|
1884
|
+
}
|
|
1885
|
+
function y(f, g) {
|
|
1886
|
+
const { parameterizedRoute: _ } = u(f), { catchAll: w = !0 } = g;
|
|
1887
|
+
if (_ === "/")
|
|
1888
|
+
return {
|
|
1889
|
+
namedRegex: "^/" + (w ? ".*" : "") + "$"
|
|
1890
|
+
};
|
|
1891
|
+
const { namedParameterizedRoute: b } = c(f, !1);
|
|
1892
|
+
let h = w ? "(?:(/.*)?)" : "";
|
|
1893
|
+
return {
|
|
1894
|
+
namedRegex: "^" + b + h + "$"
|
|
1895
|
+
};
|
|
1896
|
+
}
|
|
1897
|
+
}(Ye)), Ye;
|
|
1898
|
+
}
|
|
1899
|
+
var or;
|
|
1900
|
+
function oo() {
|
|
1901
|
+
return or || (or = 1, function(e) {
|
|
1902
|
+
Object.defineProperty(e, "__esModule", {
|
|
1903
|
+
value: !0
|
|
1904
|
+
}), Object.defineProperty(e, "interpolateAs", {
|
|
1905
|
+
enumerable: !0,
|
|
1906
|
+
get: function() {
|
|
1907
|
+
return n;
|
|
1908
|
+
}
|
|
1909
|
+
});
|
|
1910
|
+
const t = Yn(), r = no();
|
|
1911
|
+
function n(i, o, a) {
|
|
1912
|
+
let s = "";
|
|
1913
|
+
const u = (0, r.getRouteRegex)(i), l = u.groups, p = (
|
|
1914
|
+
// Try to match the dynamic route against the asPath
|
|
1915
|
+
(o !== i ? (0, t.getRouteMatcher)(u)(o) : "") || // Fall back to reading the values from the href
|
|
1916
|
+
// TODO: should this take priority; also need to change in the router.
|
|
1917
|
+
a
|
|
1918
|
+
);
|
|
1919
|
+
s = i;
|
|
1920
|
+
const d = Object.keys(l);
|
|
1921
|
+
return d.every((c) => {
|
|
1922
|
+
let m = p[c] || "";
|
|
1923
|
+
const { repeat: y, optional: f } = l[c];
|
|
1924
|
+
let g = "[" + (y ? "..." : "") + c + "]";
|
|
1925
|
+
return f && (g = (m ? "" : "/") + "[" + g + "]"), y && !Array.isArray(m) && (m = [
|
|
1926
|
+
m
|
|
1927
|
+
]), (f || c in p) && // Interpolate group into data URL if present
|
|
1928
|
+
(s = s.replace(g, y ? m.map(
|
|
1929
|
+
// these values should be fully encoded instead of just
|
|
1930
|
+
// path delimiter escaped since they are being inserted
|
|
1931
|
+
// into the URL and we expect URL encoded segments
|
|
1932
|
+
// when parsing dynamic route params
|
|
1933
|
+
(_) => encodeURIComponent(_)
|
|
1934
|
+
).join("/") : encodeURIComponent(m)) || "/");
|
|
1935
|
+
}) || (s = ""), {
|
|
1936
|
+
params: d,
|
|
1937
|
+
result: s
|
|
1938
|
+
};
|
|
1939
|
+
}
|
|
1940
|
+
}(Qe)), Qe;
|
|
1941
|
+
}
|
|
1942
|
+
var ir;
|
|
1943
|
+
function io() {
|
|
1944
|
+
return ir || (ir = 1, function(e, t) {
|
|
1945
|
+
Object.defineProperty(t, "__esModule", {
|
|
1946
|
+
value: !0
|
|
1947
|
+
}), Object.defineProperty(t, "resolveHref", {
|
|
1948
|
+
enumerable: !0,
|
|
1949
|
+
get: function() {
|
|
1950
|
+
return p;
|
|
1951
|
+
}
|
|
1952
|
+
});
|
|
1953
|
+
const r = Jr(), n = en(), i = $n(), o = Ne(), a = Ce(), s = nn(), u = Xn(), l = oo();
|
|
1954
|
+
function p(d, c, m) {
|
|
1955
|
+
let y, f = typeof c == "string" ? c : (0, n.formatWithValidation)(c);
|
|
1956
|
+
const g = f.match(/^[a-zA-Z]{1,}:\/\//), _ = g ? f.slice(g[0].length) : f;
|
|
1957
|
+
if ((_.split("?")[0] || "").match(/(\/\/|\\)/)) {
|
|
1958
|
+
console.error("Invalid href '" + f + "' passed to next/router in page: '" + d.pathname + "'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");
|
|
1959
|
+
const b = (0, o.normalizeRepeatedSlashes)(_);
|
|
1960
|
+
f = (g ? g[0] : "") + b;
|
|
1961
|
+
}
|
|
1962
|
+
if (!(0, s.isLocalURL)(f))
|
|
1963
|
+
return m ? [
|
|
1964
|
+
f
|
|
1965
|
+
] : f;
|
|
1966
|
+
try {
|
|
1967
|
+
y = new URL(f.startsWith("#") ? d.asPath : d.pathname, "http://n");
|
|
1968
|
+
} catch {
|
|
1969
|
+
y = new URL("/", "http://n");
|
|
1970
|
+
}
|
|
1971
|
+
try {
|
|
1972
|
+
const b = new URL(f, y);
|
|
1973
|
+
b.pathname = (0, a.normalizePathTrailingSlash)(b.pathname);
|
|
1974
|
+
let h = "";
|
|
1975
|
+
if ((0, u.isDynamicRoute)(b.pathname) && b.searchParams && m) {
|
|
1976
|
+
const v = (0, r.searchParamsToUrlQuery)(b.searchParams), { result: R, params: I } = (0, l.interpolateAs)(b.pathname, b.pathname, v);
|
|
1977
|
+
R && (h = (0, n.formatWithValidation)({
|
|
1978
|
+
pathname: R,
|
|
1979
|
+
hash: b.hash,
|
|
1980
|
+
query: (0, i.omit)(v, I)
|
|
1981
|
+
}));
|
|
1982
|
+
}
|
|
1983
|
+
const P = b.origin === y.origin ? b.href.slice(b.origin.length) : b.href;
|
|
1984
|
+
return m ? [
|
|
1985
|
+
P,
|
|
1986
|
+
h || P
|
|
1987
|
+
] : P;
|
|
1988
|
+
} catch {
|
|
1989
|
+
return m ? [
|
|
1990
|
+
f
|
|
1991
|
+
] : f;
|
|
1992
|
+
}
|
|
1993
|
+
}
|
|
1994
|
+
(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);
|
|
1995
|
+
}(me, me.exports)), me.exports;
|
|
1996
|
+
}
|
|
1997
|
+
var ye = { exports: {} }, nt = {}, ot = {}, ar;
|
|
1998
|
+
function on() {
|
|
1999
|
+
return ar || (ar = 1, function(e) {
|
|
2000
|
+
Object.defineProperty(e, "__esModule", {
|
|
2001
|
+
value: !0
|
|
2002
|
+
}), Object.defineProperty(e, "addPathPrefix", {
|
|
2003
|
+
enumerable: !0,
|
|
2004
|
+
get: function() {
|
|
2005
|
+
return r;
|
|
2006
|
+
}
|
|
2007
|
+
});
|
|
2008
|
+
const t = Rt();
|
|
2009
|
+
function r(n, i) {
|
|
2010
|
+
if (!n.startsWith("/") || !i)
|
|
2011
|
+
return n;
|
|
2012
|
+
const { pathname: o, query: a, hash: s } = (0, t.parsePath)(n);
|
|
2013
|
+
return "" + i + o + a + s;
|
|
2014
|
+
}
|
|
2015
|
+
}(ot)), ot;
|
|
2016
|
+
}
|
|
2017
|
+
var sr;
|
|
2018
|
+
function ao() {
|
|
2019
|
+
return sr || (sr = 1, function(e) {
|
|
2020
|
+
Object.defineProperty(e, "__esModule", {
|
|
2021
|
+
value: !0
|
|
2022
|
+
}), Object.defineProperty(e, "addLocale", {
|
|
2023
|
+
enumerable: !0,
|
|
2024
|
+
get: function() {
|
|
2025
|
+
return n;
|
|
2026
|
+
}
|
|
2027
|
+
});
|
|
2028
|
+
const t = on(), r = rn();
|
|
2029
|
+
function n(i, o, a, s) {
|
|
2030
|
+
if (!o || o === a) return i;
|
|
2031
|
+
const u = i.toLowerCase();
|
|
2032
|
+
return !s && ((0, r.pathHasPrefix)(u, "/api") || (0, r.pathHasPrefix)(u, "/" + o.toLowerCase())) ? i : (0, t.addPathPrefix)(i, "/" + o);
|
|
2033
|
+
}
|
|
2034
|
+
}(nt)), nt;
|
|
2035
|
+
}
|
|
2036
|
+
var ur;
|
|
2037
|
+
function so() {
|
|
2038
|
+
return ur || (ur = 1, function(e, t) {
|
|
2039
|
+
Object.defineProperty(t, "__esModule", {
|
|
2040
|
+
value: !0
|
|
2041
|
+
}), Object.defineProperty(t, "addLocale", {
|
|
2042
|
+
enumerable: !0,
|
|
2043
|
+
get: function() {
|
|
2044
|
+
return n;
|
|
2045
|
+
}
|
|
2046
|
+
});
|
|
2047
|
+
const r = Ce(), n = function(i) {
|
|
2048
|
+
for (var o = arguments.length, a = new Array(o > 1 ? o - 1 : 0), s = 1; s < o; s++)
|
|
2049
|
+
a[s - 1] = arguments[s];
|
|
2050
|
+
return process.env.__NEXT_I18N_SUPPORT ? (0, r.normalizePathTrailingSlash)(ao().addLocale(i, ...a)) : i;
|
|
2051
|
+
};
|
|
2052
|
+
(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);
|
|
2053
|
+
}(ye, ye.exports)), ye.exports;
|
|
2054
|
+
}
|
|
2055
|
+
var it = {}, cr;
|
|
2056
|
+
function uo() {
|
|
2057
|
+
return cr || (cr = 1, function(e) {
|
|
2058
|
+
Object.defineProperty(e, "__esModule", {
|
|
2059
|
+
value: !0
|
|
2060
|
+
}), Object.defineProperty(e, "RouterContext", {
|
|
2061
|
+
enumerable: !0,
|
|
2062
|
+
get: function() {
|
|
2063
|
+
return n;
|
|
2064
|
+
}
|
|
2065
|
+
});
|
|
2066
|
+
const n = (/* @__PURE__ */ ce._(Ie)).default.createContext(null);
|
|
2067
|
+
process.env.NODE_ENV !== "production" && (n.displayName = "RouterContext");
|
|
2068
|
+
}(it)), it;
|
|
2069
|
+
}
|
|
2070
|
+
var at = {}, lr;
|
|
2071
|
+
function co() {
|
|
2072
|
+
return lr || (lr = 1, function(e) {
|
|
2073
|
+
"use client";
|
|
2074
|
+
Object.defineProperty(e, "__esModule", {
|
|
2075
|
+
value: !0
|
|
2076
|
+
});
|
|
2077
|
+
function t(l, p) {
|
|
2078
|
+
for (var d in p) Object.defineProperty(l, d, {
|
|
2079
|
+
enumerable: !0,
|
|
2080
|
+
get: p[d]
|
|
2081
|
+
});
|
|
2082
|
+
}
|
|
2083
|
+
t(e, {
|
|
2084
|
+
CacheStates: function() {
|
|
2085
|
+
return i;
|
|
2086
|
+
},
|
|
2087
|
+
AppRouterContext: function() {
|
|
2088
|
+
return o;
|
|
2089
|
+
},
|
|
2090
|
+
LayoutRouterContext: function() {
|
|
2091
|
+
return a;
|
|
2092
|
+
},
|
|
2093
|
+
GlobalLayoutRouterContext: function() {
|
|
2094
|
+
return s;
|
|
2095
|
+
},
|
|
2096
|
+
TemplateContext: function() {
|
|
2097
|
+
return u;
|
|
2098
|
+
}
|
|
2099
|
+
});
|
|
2100
|
+
const n = /* @__PURE__ */ ce._(Ie);
|
|
2101
|
+
var i;
|
|
2102
|
+
(function(l) {
|
|
2103
|
+
l.LAZY_INITIALIZED = "LAZYINITIALIZED", l.DATA_FETCH = "DATAFETCH", l.READY = "READY";
|
|
2104
|
+
})(i || (i = {}));
|
|
2105
|
+
const o = n.default.createContext(null), a = n.default.createContext(null), s = n.default.createContext(null), u = n.default.createContext(null);
|
|
2106
|
+
process.env.NODE_ENV !== "production" && (o.displayName = "AppRouterContext", a.displayName = "LayoutRouterContext", s.displayName = "GlobalLayoutRouterContext", u.displayName = "TemplateContext");
|
|
2107
|
+
}(at)), at;
|
|
2108
|
+
}
|
|
2109
|
+
var _e = { exports: {} }, ve = { exports: {} }, dr;
|
|
2110
|
+
function lo() {
|
|
2111
|
+
return dr || (dr = 1, function(e, t) {
|
|
2112
|
+
Object.defineProperty(t, "__esModule", {
|
|
2113
|
+
value: !0
|
|
2114
|
+
});
|
|
2115
|
+
function r(o, a) {
|
|
2116
|
+
for (var s in a) Object.defineProperty(o, s, {
|
|
2117
|
+
enumerable: !0,
|
|
2118
|
+
get: a[s]
|
|
2119
|
+
});
|
|
2120
|
+
}
|
|
2121
|
+
r(t, {
|
|
2122
|
+
requestIdleCallback: function() {
|
|
2123
|
+
return n;
|
|
2124
|
+
},
|
|
2125
|
+
cancelIdleCallback: function() {
|
|
2126
|
+
return i;
|
|
2127
|
+
}
|
|
2128
|
+
});
|
|
2129
|
+
const n = typeof self < "u" && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(o) {
|
|
2130
|
+
let a = Date.now();
|
|
2131
|
+
return self.setTimeout(function() {
|
|
2132
|
+
o({
|
|
2133
|
+
didTimeout: !1,
|
|
2134
|
+
timeRemaining: function() {
|
|
2135
|
+
return Math.max(0, 50 - (Date.now() - a));
|
|
2136
|
+
}
|
|
2137
|
+
});
|
|
2138
|
+
}, 1);
|
|
2139
|
+
}, i = typeof self < "u" && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(o) {
|
|
2140
|
+
return clearTimeout(o);
|
|
2141
|
+
};
|
|
2142
|
+
(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);
|
|
2143
|
+
}(ve, ve.exports)), ve.exports;
|
|
2144
|
+
}
|
|
2145
|
+
var fr;
|
|
2146
|
+
function fo() {
|
|
2147
|
+
return fr || (fr = 1, function(e, t) {
|
|
2148
|
+
Object.defineProperty(t, "__esModule", {
|
|
2149
|
+
value: !0
|
|
2150
|
+
}), Object.defineProperty(t, "useIntersection", {
|
|
2151
|
+
enumerable: !0,
|
|
2152
|
+
get: function() {
|
|
2153
|
+
return l;
|
|
2154
|
+
}
|
|
2155
|
+
});
|
|
2156
|
+
const r = Ie, n = lo(), i = typeof IntersectionObserver == "function", o = /* @__PURE__ */ new Map(), a = [];
|
|
2157
|
+
function s(p) {
|
|
2158
|
+
const d = {
|
|
2159
|
+
root: p.root || null,
|
|
2160
|
+
margin: p.rootMargin || ""
|
|
2161
|
+
}, c = a.find((g) => g.root === d.root && g.margin === d.margin);
|
|
2162
|
+
let m;
|
|
2163
|
+
if (c && (m = o.get(c), m))
|
|
2164
|
+
return m;
|
|
2165
|
+
const y = /* @__PURE__ */ new Map(), f = new IntersectionObserver((g) => {
|
|
2166
|
+
g.forEach((_) => {
|
|
2167
|
+
const w = y.get(_.target), b = _.isIntersecting || _.intersectionRatio > 0;
|
|
2168
|
+
w && b && w(b);
|
|
2169
|
+
});
|
|
2170
|
+
}, p);
|
|
2171
|
+
return m = {
|
|
2172
|
+
id: d,
|
|
2173
|
+
observer: f,
|
|
2174
|
+
elements: y
|
|
2175
|
+
}, a.push(d), o.set(d, m), m;
|
|
2176
|
+
}
|
|
2177
|
+
function u(p, d, c) {
|
|
2178
|
+
const { id: m, observer: y, elements: f } = s(c);
|
|
2179
|
+
return f.set(p, d), y.observe(p), function() {
|
|
2180
|
+
if (f.delete(p), y.unobserve(p), f.size === 0) {
|
|
2181
|
+
y.disconnect(), o.delete(m);
|
|
2182
|
+
const _ = a.findIndex((w) => w.root === m.root && w.margin === m.margin);
|
|
2183
|
+
_ > -1 && a.splice(_, 1);
|
|
2184
|
+
}
|
|
2185
|
+
};
|
|
2186
|
+
}
|
|
2187
|
+
function l(p) {
|
|
2188
|
+
let { rootRef: d, rootMargin: c, disabled: m } = p;
|
|
2189
|
+
const y = m || !i, [f, g] = (0, r.useState)(!1), _ = (0, r.useRef)(null), w = (0, r.useCallback)((h) => {
|
|
2190
|
+
_.current = h;
|
|
2191
|
+
}, []);
|
|
2192
|
+
(0, r.useEffect)(() => {
|
|
2193
|
+
if (i) {
|
|
2194
|
+
if (y || f) return;
|
|
2195
|
+
const h = _.current;
|
|
2196
|
+
if (h && h.tagName)
|
|
2197
|
+
return u(h, (v) => v && g(v), {
|
|
2198
|
+
root: d == null ? void 0 : d.current,
|
|
2199
|
+
rootMargin: c
|
|
2200
|
+
});
|
|
2201
|
+
} else if (!f) {
|
|
2202
|
+
const h = (0, n.requestIdleCallback)(() => g(!0));
|
|
2203
|
+
return () => (0, n.cancelIdleCallback)(h);
|
|
2204
|
+
}
|
|
2205
|
+
}, [
|
|
2206
|
+
y,
|
|
2207
|
+
c,
|
|
2208
|
+
d,
|
|
2209
|
+
f,
|
|
2210
|
+
_.current
|
|
2211
|
+
]);
|
|
2212
|
+
const b = (0, r.useCallback)(() => {
|
|
2213
|
+
g(!1);
|
|
2214
|
+
}, []);
|
|
2215
|
+
return [
|
|
2216
|
+
w,
|
|
2217
|
+
f,
|
|
2218
|
+
b
|
|
2219
|
+
];
|
|
2220
|
+
}
|
|
2221
|
+
(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);
|
|
2222
|
+
}(_e, _e.exports)), _e.exports;
|
|
2223
|
+
}
|
|
2224
|
+
var be = { exports: {} }, Pe = { exports: {} }, st = {}, pr;
|
|
2225
|
+
function po() {
|
|
2226
|
+
return pr || (pr = 1, function(e) {
|
|
2227
|
+
Object.defineProperty(e, "__esModule", {
|
|
2228
|
+
value: !0
|
|
2229
|
+
}), Object.defineProperty(e, "normalizeLocalePath", {
|
|
2230
|
+
enumerable: !0,
|
|
2231
|
+
get: function() {
|
|
2232
|
+
return t;
|
|
2233
|
+
}
|
|
2234
|
+
});
|
|
2235
|
+
function t(r, n) {
|
|
2236
|
+
let i;
|
|
2237
|
+
const o = r.split("/");
|
|
2238
|
+
return (n || []).some((a) => o[1] && o[1].toLowerCase() === a.toLowerCase() ? (i = a, o.splice(1, 1), r = o.join("/") || "/", !0) : !1), {
|
|
2239
|
+
pathname: r,
|
|
2240
|
+
detectedLocale: i
|
|
2241
|
+
};
|
|
2242
|
+
}
|
|
2243
|
+
}(st)), st;
|
|
2244
|
+
}
|
|
2245
|
+
var mr;
|
|
2246
|
+
function mo() {
|
|
2247
|
+
return mr || (mr = 1, function(e, t) {
|
|
2248
|
+
Object.defineProperty(t, "__esModule", {
|
|
2249
|
+
value: !0
|
|
2250
|
+
}), Object.defineProperty(t, "normalizeLocalePath", {
|
|
2251
|
+
enumerable: !0,
|
|
2252
|
+
get: function() {
|
|
2253
|
+
return r;
|
|
2254
|
+
}
|
|
2255
|
+
});
|
|
2256
|
+
const r = (n, i) => process.env.__NEXT_I18N_SUPPORT ? po().normalizeLocalePath(n, i) : {
|
|
2257
|
+
pathname: n,
|
|
2258
|
+
detectedLocale: void 0
|
|
2259
|
+
};
|
|
2260
|
+
(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);
|
|
2261
|
+
}(Pe, Pe.exports)), Pe.exports;
|
|
2262
|
+
}
|
|
2263
|
+
var Re = { exports: {} }, ut = {}, hr;
|
|
2264
|
+
function ho() {
|
|
2265
|
+
return hr || (hr = 1, function(e) {
|
|
2266
|
+
Object.defineProperty(e, "__esModule", {
|
|
2267
|
+
value: !0
|
|
2268
|
+
}), Object.defineProperty(e, "detectDomainLocale", {
|
|
2269
|
+
enumerable: !0,
|
|
2270
|
+
get: function() {
|
|
2271
|
+
return t;
|
|
2272
|
+
}
|
|
2273
|
+
});
|
|
2274
|
+
function t(r, n, i) {
|
|
2275
|
+
if (r) {
|
|
2276
|
+
i && (i = i.toLowerCase());
|
|
2277
|
+
for (const s of r) {
|
|
2278
|
+
var o, a;
|
|
2279
|
+
const u = (o = s.domain) == null ? void 0 : o.split(":")[0].toLowerCase();
|
|
2280
|
+
if (n === u || i === s.defaultLocale.toLowerCase() || (a = s.locales) != null && a.some((l) => l.toLowerCase() === i))
|
|
2281
|
+
return s;
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
}
|
|
2285
|
+
}(ut)), ut;
|
|
2286
|
+
}
|
|
2287
|
+
var gr;
|
|
2288
|
+
function go() {
|
|
2289
|
+
return gr || (gr = 1, function(e, t) {
|
|
2290
|
+
Object.defineProperty(t, "__esModule", {
|
|
2291
|
+
value: !0
|
|
2292
|
+
}), Object.defineProperty(t, "detectDomainLocale", {
|
|
2293
|
+
enumerable: !0,
|
|
2294
|
+
get: function() {
|
|
2295
|
+
return r;
|
|
2296
|
+
}
|
|
2297
|
+
});
|
|
2298
|
+
const r = function() {
|
|
2299
|
+
for (var n = arguments.length, i = new Array(n), o = 0; o < n; o++)
|
|
2300
|
+
i[o] = arguments[o];
|
|
2301
|
+
if (process.env.__NEXT_I18N_SUPPORT)
|
|
2302
|
+
return ho().detectDomainLocale(...i);
|
|
2303
|
+
};
|
|
2304
|
+
(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);
|
|
2305
|
+
}(Re, Re.exports)), Re.exports;
|
|
2306
|
+
}
|
|
2307
|
+
var yr;
|
|
2308
|
+
function yo() {
|
|
2309
|
+
return yr || (yr = 1, function(e, t) {
|
|
2310
|
+
Object.defineProperty(t, "__esModule", {
|
|
2311
|
+
value: !0
|
|
2312
|
+
}), Object.defineProperty(t, "getDomainLocale", {
|
|
2313
|
+
enumerable: !0,
|
|
2314
|
+
get: function() {
|
|
2315
|
+
return i;
|
|
2316
|
+
}
|
|
2317
|
+
});
|
|
2318
|
+
const r = Ce(), n = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
2319
|
+
function i(o, a, s, u) {
|
|
2320
|
+
if (process.env.__NEXT_I18N_SUPPORT) {
|
|
2321
|
+
const l = mo().normalizeLocalePath, p = go().detectDomainLocale, d = a || l(o, s).detectedLocale, c = p(u, void 0, d);
|
|
2322
|
+
if (c) {
|
|
2323
|
+
const m = "http" + (c.http ? "" : "s") + "://", y = d === c.defaultLocale ? "" : "/" + d;
|
|
2324
|
+
return "" + m + c.domain + (0, r.normalizePathTrailingSlash)("" + n + y + o);
|
|
2325
|
+
}
|
|
2326
|
+
return !1;
|
|
2327
|
+
} else
|
|
2328
|
+
return !1;
|
|
2329
|
+
}
|
|
2330
|
+
(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);
|
|
2331
|
+
}(be, be.exports)), be.exports;
|
|
2332
|
+
}
|
|
2333
|
+
var Ee = { exports: {} }, _r;
|
|
2334
|
+
function _o() {
|
|
2335
|
+
return _r || (_r = 1, function(e, t) {
|
|
2336
|
+
Object.defineProperty(t, "__esModule", {
|
|
2337
|
+
value: !0
|
|
2338
|
+
}), Object.defineProperty(t, "addBasePath", {
|
|
2339
|
+
enumerable: !0,
|
|
2340
|
+
get: function() {
|
|
2341
|
+
return o;
|
|
2342
|
+
}
|
|
2343
|
+
});
|
|
2344
|
+
const r = on(), n = Ce(), i = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
2345
|
+
function o(a, s) {
|
|
2346
|
+
return (0, n.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !s ? a : (0, r.addPathPrefix)(a, i));
|
|
2347
|
+
}
|
|
2348
|
+
(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);
|
|
2349
|
+
}(Ee, Ee.exports)), Ee.exports;
|
|
2350
|
+
}
|
|
2351
|
+
var we = { exports: {} }, vr;
|
|
2352
|
+
function vo() {
|
|
2353
|
+
return vr || (vr = 1, function(e, t) {
|
|
2354
|
+
Object.defineProperty(t, "__esModule", {
|
|
2355
|
+
value: !0
|
|
2356
|
+
});
|
|
2357
|
+
function r(d, c) {
|
|
2358
|
+
for (var m in c) Object.defineProperty(d, m, {
|
|
2359
|
+
enumerable: !0,
|
|
2360
|
+
get: c[m]
|
|
2361
|
+
});
|
|
2362
|
+
}
|
|
2363
|
+
r(t, {
|
|
2364
|
+
PrefetchKind: function() {
|
|
2365
|
+
return p;
|
|
2366
|
+
},
|
|
2367
|
+
ACTION_REFRESH: function() {
|
|
2368
|
+
return n;
|
|
2369
|
+
},
|
|
2370
|
+
ACTION_NAVIGATE: function() {
|
|
2371
|
+
return i;
|
|
2372
|
+
},
|
|
2373
|
+
ACTION_RESTORE: function() {
|
|
2374
|
+
return o;
|
|
2375
|
+
},
|
|
2376
|
+
ACTION_SERVER_PATCH: function() {
|
|
2377
|
+
return a;
|
|
2378
|
+
},
|
|
2379
|
+
ACTION_PREFETCH: function() {
|
|
2380
|
+
return s;
|
|
2381
|
+
},
|
|
2382
|
+
ACTION_FAST_REFRESH: function() {
|
|
2383
|
+
return u;
|
|
2384
|
+
},
|
|
2385
|
+
ACTION_SERVER_ACTION: function() {
|
|
2386
|
+
return l;
|
|
2387
|
+
}
|
|
2388
|
+
});
|
|
2389
|
+
const n = "refresh", i = "navigate", o = "restore", a = "server-patch", s = "prefetch", u = "fast-refresh", l = "server-action";
|
|
2390
|
+
var p;
|
|
2391
|
+
(function(d) {
|
|
2392
|
+
d.AUTO = "auto", d.FULL = "full", d.TEMPORARY = "temporary";
|
|
2393
|
+
})(p || (p = {})), (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);
|
|
2394
|
+
}(we, we.exports)), we.exports;
|
|
2395
|
+
}
|
|
2396
|
+
(function(e, t) {
|
|
2397
|
+
"use client";
|
|
2398
|
+
Object.defineProperty(t, "__esModule", {
|
|
2399
|
+
value: !0
|
|
2400
|
+
}), Object.defineProperty(t, "default", {
|
|
2401
|
+
enumerable: !0,
|
|
2402
|
+
get: function() {
|
|
2403
|
+
return P;
|
|
2404
|
+
}
|
|
2405
|
+
});
|
|
2406
|
+
const n = /* @__PURE__ */ ce._(Ie), i = io(), o = nn(), a = en(), s = Ne(), u = so(), l = uo(), p = co(), d = fo(), c = yo(), m = _o(), y = vo(), f = /* @__PURE__ */ new Set();
|
|
2407
|
+
function g(v, R, I, N, x, M) {
|
|
2408
|
+
if (typeof window > "u" || !M && !(0, o.isLocalURL)(R))
|
|
2409
|
+
return;
|
|
2410
|
+
if (!N.bypassPrefetchedCheck) {
|
|
2411
|
+
const $ = (
|
|
2412
|
+
// Let the link's locale prop override the default router locale.
|
|
2413
|
+
typeof N.locale < "u" ? N.locale : "locale" in v ? v.locale : void 0
|
|
2414
|
+
), X = R + "%" + I + "%" + $;
|
|
2415
|
+
if (f.has(X))
|
|
2416
|
+
return;
|
|
2417
|
+
f.add(X);
|
|
2418
|
+
}
|
|
2419
|
+
const Y = M ? v.prefetch(R, x) : v.prefetch(R, I, N);
|
|
2420
|
+
Promise.resolve(Y).catch(($) => {
|
|
2421
|
+
if (process.env.NODE_ENV !== "production")
|
|
2422
|
+
throw $;
|
|
2423
|
+
});
|
|
2424
|
+
}
|
|
2425
|
+
function _(v) {
|
|
2426
|
+
const I = v.currentTarget.getAttribute("target");
|
|
2427
|
+
return I && I !== "_self" || v.metaKey || v.ctrlKey || v.shiftKey || v.altKey || // triggers resource download
|
|
2428
|
+
v.nativeEvent && v.nativeEvent.which === 2;
|
|
2429
|
+
}
|
|
2430
|
+
function w(v, R, I, N, x, M, Y, $, X, Ae) {
|
|
2431
|
+
const { nodeName: xe } = v.currentTarget;
|
|
2432
|
+
if (xe.toUpperCase() === "A" && (_(v) || // 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.
|
|
2433
|
+
!X && !(0, o.isLocalURL)(I)))
|
|
2434
|
+
return;
|
|
2435
|
+
v.preventDefault();
|
|
2436
|
+
const U = () => {
|
|
2437
|
+
const J = Y ?? !0;
|
|
2438
|
+
"beforePopState" in R ? R[x ? "replace" : "push"](I, N, {
|
|
2439
|
+
shallow: M,
|
|
2440
|
+
locale: $,
|
|
2441
|
+
scroll: J
|
|
2442
|
+
}) : R[x ? "replace" : "push"](N || I, {
|
|
2443
|
+
forceOptimisticNavigation: !Ae,
|
|
2444
|
+
scroll: J
|
|
2445
|
+
});
|
|
2446
|
+
};
|
|
2447
|
+
X ? n.default.startTransition(U) : U();
|
|
2448
|
+
}
|
|
2449
|
+
function b(v) {
|
|
2450
|
+
return typeof v == "string" ? v : (0, a.formatUrl)(v);
|
|
2451
|
+
}
|
|
2452
|
+
const P = /* @__PURE__ */ n.default.forwardRef(function(R, I) {
|
|
2453
|
+
let N;
|
|
2454
|
+
const { href: x, as: M, children: Y, prefetch: $ = null, passHref: X, replace: Ae, shallow: xe, scroll: Ot, locale: U, onClick: J, onMouseEnter: Le, onTouchStart: It, legacyBehavior: D = !1, ...sn } = R;
|
|
2455
|
+
N = Y, D && (typeof N == "string" || typeof N == "number") && (N = /* @__PURE__ */ n.default.createElement("a", null, N));
|
|
2456
|
+
const A = n.default.useContext(l.RouterContext), un = n.default.useContext(p.AppRouterContext), B = A ?? un, V = !A, ie = $ !== !1, le = $ === null ? y.PrefetchKind.AUTO : y.PrefetchKind.FULL;
|
|
2457
|
+
if (process.env.NODE_ENV !== "production") {
|
|
2458
|
+
let S = function(T) {
|
|
2459
|
+
return new Error("Failed prop type: The prop `" + T.key + "` expects a " + T.expected + " in `<Link>`, but got `" + T.actual + "` instead." + (typeof window < "u" ? `
|
|
2460
|
+
Open your browser's console to view the Component stack trace.` : ""));
|
|
2461
|
+
};
|
|
2462
|
+
Object.keys({
|
|
2463
|
+
href: !0
|
|
2464
|
+
}).forEach((T) => {
|
|
2465
|
+
if (T === "href" && (R[T] == null || typeof R[T] != "string" && typeof R[T] != "object"))
|
|
2466
|
+
throw S({
|
|
2467
|
+
key: T,
|
|
2468
|
+
expected: "`string` or `object`",
|
|
2469
|
+
actual: R[T] === null ? "null" : typeof R[T]
|
|
2470
|
+
});
|
|
2471
|
+
}), Object.keys({
|
|
2472
|
+
as: !0,
|
|
2473
|
+
replace: !0,
|
|
2474
|
+
scroll: !0,
|
|
2475
|
+
shallow: !0,
|
|
2476
|
+
passHref: !0,
|
|
2477
|
+
prefetch: !0,
|
|
2478
|
+
locale: !0,
|
|
2479
|
+
onClick: !0,
|
|
2480
|
+
onMouseEnter: !0,
|
|
2481
|
+
onTouchStart: !0,
|
|
2482
|
+
legacyBehavior: !0
|
|
2483
|
+
}).forEach((T) => {
|
|
2484
|
+
const W = typeof R[T];
|
|
2485
|
+
if (T === "as") {
|
|
2486
|
+
if (R[T] && W !== "string" && W !== "object")
|
|
2487
|
+
throw S({
|
|
2488
|
+
key: T,
|
|
2489
|
+
expected: "`string` or `object`",
|
|
2490
|
+
actual: W
|
|
2491
|
+
});
|
|
2492
|
+
} else if (T === "locale") {
|
|
2493
|
+
if (R[T] && W !== "string")
|
|
2494
|
+
throw S({
|
|
2495
|
+
key: T,
|
|
2496
|
+
expected: "`string`",
|
|
2497
|
+
actual: W
|
|
2498
|
+
});
|
|
2499
|
+
} else if (T === "onClick" || T === "onMouseEnter" || T === "onTouchStart") {
|
|
2500
|
+
if (R[T] && W !== "function")
|
|
2501
|
+
throw S({
|
|
2502
|
+
key: T,
|
|
2503
|
+
expected: "`function`",
|
|
2504
|
+
actual: W
|
|
2505
|
+
});
|
|
2506
|
+
} else if ((T === "replace" || T === "scroll" || T === "shallow" || T === "passHref" || T === "prefetch" || T === "legacyBehavior") && R[T] != null && W !== "boolean")
|
|
2507
|
+
throw S({
|
|
2508
|
+
key: T,
|
|
2509
|
+
expected: "`boolean`",
|
|
2510
|
+
actual: W
|
|
2511
|
+
});
|
|
2512
|
+
});
|
|
2513
|
+
const xt = n.default.useRef(!1);
|
|
2514
|
+
R.prefetch && !xt.current && !V && (xt.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"));
|
|
2515
|
+
}
|
|
2516
|
+
if (process.env.NODE_ENV !== "production" && V && !M) {
|
|
2517
|
+
let S;
|
|
2518
|
+
if (typeof x == "string" ? S = x : typeof x == "object" && typeof x.pathname == "string" && (S = x.pathname), S && S.split("/").some((ee) => ee.startsWith("[") && ee.endsWith("]")))
|
|
2519
|
+
throw new Error("Dynamic href `" + S + "` found in <Link> while using the `/app` router, this is not supported. Read more: https://nextjs.org/docs/messages/app-dir-dynamic-href");
|
|
2520
|
+
}
|
|
2521
|
+
const { href: F, as: q } = n.default.useMemo(() => {
|
|
2522
|
+
if (!A) {
|
|
2523
|
+
const ee = b(x);
|
|
2524
|
+
return {
|
|
2525
|
+
href: ee,
|
|
2526
|
+
as: M ? b(M) : ee
|
|
2527
|
+
};
|
|
2528
|
+
}
|
|
2529
|
+
const [S, ae] = (0, i.resolveHref)(A, x, !0);
|
|
2530
|
+
return {
|
|
2531
|
+
href: S,
|
|
2532
|
+
as: M ? (0, i.resolveHref)(A, M) : ae || S
|
|
2533
|
+
};
|
|
2534
|
+
}, [
|
|
2535
|
+
A,
|
|
2536
|
+
x,
|
|
2537
|
+
M
|
|
2538
|
+
]), St = n.default.useRef(F), Tt = n.default.useRef(q);
|
|
2539
|
+
let L;
|
|
2540
|
+
if (D)
|
|
2541
|
+
if (process.env.NODE_ENV === "development") {
|
|
2542
|
+
J && console.warn('"onClick" was passed to <Link> with `href` of `' + x + '` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link'), Le && console.warn('"onMouseEnter" was passed to <Link> with `href` of `' + x + '` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link');
|
|
2543
|
+
try {
|
|
2544
|
+
L = n.default.Children.only(N);
|
|
2545
|
+
} catch {
|
|
2546
|
+
throw N ? new Error("Multiple children were passed to <Link> with `href` of `" + x + "` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children" + (typeof window < "u" ? `
|
|
2547
|
+
Open your browser's console to view the Component stack trace.` : "")) : new Error("No children were passed to <Link> with `href` of `" + x + "` but one child is required https://nextjs.org/docs/messages/link-no-children");
|
|
2548
|
+
}
|
|
2549
|
+
} else
|
|
2550
|
+
L = n.default.Children.only(N);
|
|
2551
|
+
else if (process.env.NODE_ENV === "development" && (N == null ? void 0 : N.type) === "a")
|
|
2552
|
+
throw new Error(`Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.
|
|
2553
|
+
Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`);
|
|
2554
|
+
const Z = D ? L && typeof L == "object" && L.ref : I, [Nt, Ct, At] = (0, d.useIntersection)({
|
|
2555
|
+
rootMargin: "200px"
|
|
2556
|
+
}), cn = n.default.useCallback((S) => {
|
|
2557
|
+
(Tt.current !== q || St.current !== F) && (At(), Tt.current = q, St.current = F), Nt(S), Z && (typeof Z == "function" ? Z(S) : typeof Z == "object" && (Z.current = S));
|
|
2558
|
+
}, [
|
|
2559
|
+
q,
|
|
2560
|
+
Z,
|
|
2561
|
+
F,
|
|
2562
|
+
At,
|
|
2563
|
+
Nt
|
|
2564
|
+
]);
|
|
2565
|
+
n.default.useEffect(() => {
|
|
2566
|
+
process.env.NODE_ENV === "production" && B && (!Ct || !ie || g(B, F, q, {
|
|
2567
|
+
locale: U
|
|
2568
|
+
}, {
|
|
2569
|
+
kind: le
|
|
2570
|
+
}, V));
|
|
2571
|
+
}, [
|
|
2572
|
+
q,
|
|
2573
|
+
F,
|
|
2574
|
+
Ct,
|
|
2575
|
+
U,
|
|
2576
|
+
ie,
|
|
2577
|
+
A == null ? void 0 : A.locale,
|
|
2578
|
+
B,
|
|
2579
|
+
V,
|
|
2580
|
+
le
|
|
2581
|
+
]);
|
|
2582
|
+
const de = {
|
|
2583
|
+
ref: cn,
|
|
2584
|
+
onClick(S) {
|
|
2585
|
+
if (process.env.NODE_ENV !== "production" && !S)
|
|
2586
|
+
throw new Error('Component rendered inside next/link has to pass click event to "onClick" prop.');
|
|
2587
|
+
!D && typeof J == "function" && J(S), D && L.props && typeof L.props.onClick == "function" && L.props.onClick(S), B && (S.defaultPrevented || w(S, B, F, q, Ae, xe, Ot, U, V, ie));
|
|
2588
|
+
},
|
|
2589
|
+
onMouseEnter(S) {
|
|
2590
|
+
!D && typeof Le == "function" && Le(S), D && L.props && typeof L.props.onMouseEnter == "function" && L.props.onMouseEnter(S), B && ((!ie || process.env.NODE_ENV === "development") && V || g(B, F, q, {
|
|
2591
|
+
locale: U,
|
|
2592
|
+
priority: !0,
|
|
2593
|
+
// @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
|
|
2594
|
+
bypassPrefetchedCheck: !0
|
|
2595
|
+
}, {
|
|
2596
|
+
kind: le
|
|
2597
|
+
}, V));
|
|
2598
|
+
},
|
|
2599
|
+
onTouchStart(S) {
|
|
2600
|
+
!D && typeof It == "function" && It(S), D && L.props && typeof L.props.onTouchStart == "function" && L.props.onTouchStart(S), B && (!ie && V || g(B, F, q, {
|
|
2601
|
+
locale: U,
|
|
2602
|
+
priority: !0,
|
|
2603
|
+
// @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
|
|
2604
|
+
bypassPrefetchedCheck: !0
|
|
2605
|
+
}, {
|
|
2606
|
+
kind: le
|
|
2607
|
+
}, V));
|
|
2608
|
+
}
|
|
2609
|
+
};
|
|
2610
|
+
if ((0, s.isAbsoluteUrl)(q))
|
|
2611
|
+
de.href = q;
|
|
2612
|
+
else if (!D || X || L.type === "a" && !("href" in L.props)) {
|
|
2613
|
+
const S = typeof U < "u" ? U : A == null ? void 0 : A.locale, ae = (A == null ? void 0 : A.isLocaleDomain) && (0, c.getDomainLocale)(q, S, A == null ? void 0 : A.locales, A == null ? void 0 : A.domainLocales);
|
|
2614
|
+
de.href = ae || (0, m.addBasePath)((0, u.addLocale)(q, S, A == null ? void 0 : A.defaultLocale));
|
|
2615
|
+
}
|
|
2616
|
+
return D ? /* @__PURE__ */ n.default.cloneElement(L, de) : /* @__PURE__ */ n.default.createElement("a", {
|
|
2617
|
+
...sn,
|
|
2618
|
+
...de
|
|
2619
|
+
}, N);
|
|
2620
|
+
});
|
|
2621
|
+
(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);
|
|
2622
|
+
})(ht, ht.exports);
|
|
2623
|
+
var bo = ht.exports, Po = bo;
|
|
2624
|
+
const Et = /* @__PURE__ */ Fn(Po), Ro = (e) => {
|
|
2625
|
+
const t = e.getBlocksAsArray(), r = [];
|
|
2626
|
+
return t.forEach((n) => {
|
|
2627
|
+
const i = n.getType(), o = n.getText();
|
|
2628
|
+
let a;
|
|
2629
|
+
const s = n.getInlineStyleAt(0).toArray();
|
|
2630
|
+
s.length > 0 && (a = s.map((l) => {
|
|
2631
|
+
switch (l) {
|
|
2632
|
+
case "BOLD":
|
|
2633
|
+
return "font-weight: bold;";
|
|
2634
|
+
case "ITALIC":
|
|
2635
|
+
return "font-style: italic;";
|
|
2636
|
+
case "UNDERLINE":
|
|
2637
|
+
return "text-decoration: underline;";
|
|
2638
|
+
default:
|
|
2639
|
+
return "";
|
|
2640
|
+
}
|
|
2641
|
+
}).join(" "));
|
|
2642
|
+
const u = {
|
|
2643
|
+
type: "p",
|
|
2644
|
+
text: o,
|
|
2645
|
+
...a && { styleText: a }
|
|
2646
|
+
};
|
|
2647
|
+
switch (i) {
|
|
2648
|
+
case "header-one":
|
|
2649
|
+
u.type = "h1";
|
|
2650
|
+
break;
|
|
2651
|
+
case "header-two":
|
|
2652
|
+
u.type = "h2";
|
|
2653
|
+
break;
|
|
2654
|
+
case "header-three":
|
|
2655
|
+
u.type = "h3";
|
|
2656
|
+
break;
|
|
2657
|
+
case "unordered-list-item":
|
|
2658
|
+
u.type = "li";
|
|
2659
|
+
break;
|
|
2660
|
+
case "ordered-list-item":
|
|
2661
|
+
u.type = "li";
|
|
2662
|
+
break;
|
|
2663
|
+
case "blockquote":
|
|
2664
|
+
u.type = "blockquote";
|
|
2665
|
+
break;
|
|
2666
|
+
case "code-block":
|
|
2667
|
+
u.type = "pre";
|
|
2668
|
+
break;
|
|
2669
|
+
default:
|
|
2670
|
+
u.type = "p";
|
|
2671
|
+
}
|
|
2672
|
+
r.push(u);
|
|
2673
|
+
}), r;
|
|
2674
|
+
}, Eo = (e, t, r) => {
|
|
2675
|
+
e.findEntityRanges((n) => {
|
|
2676
|
+
const i = n.getEntity();
|
|
2677
|
+
return i === null ? !1 : r.getEntity(i).getType() === "LINK";
|
|
2678
|
+
}, t);
|
|
2679
|
+
}, yt = (e) => {
|
|
2680
|
+
const t = new hn([
|
|
2681
|
+
{
|
|
2682
|
+
strategy: Eo,
|
|
2683
|
+
component: Et
|
|
2684
|
+
}
|
|
2685
|
+
]), r = Ir(
|
|
2686
|
+
e
|
|
2687
|
+
);
|
|
2688
|
+
return dt.createWithContent(r, t);
|
|
2689
|
+
}, wo = (e) => Ir(e), _t = mn.set(
|
|
2690
|
+
"unstyled",
|
|
2691
|
+
{
|
|
2692
|
+
element: "div",
|
|
2693
|
+
aliasedElements: ["div"]
|
|
2694
|
+
}
|
|
2695
|
+
), hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2696
|
+
__proto__: null,
|
|
2697
|
+
CREATE_CONTENT: yt,
|
|
2698
|
+
EXTENDED_BLOCK_RENDER_MAP: _t,
|
|
2699
|
+
GET_CONTENT_STATE: wo,
|
|
2700
|
+
convertDraftToHTML: Ro
|
|
2701
|
+
}, Symbol.toStringTag, { value: "Module" })), te = (e) => ({
|
|
2702
|
+
centro: "center",
|
|
2703
|
+
esquerda: "start",
|
|
2704
|
+
direita: "end"
|
|
2705
|
+
})[e], Oo = ({ expanded: e, content: t }) => /* @__PURE__ */ Q("details", { open: e, children: [
|
|
2706
|
+
t.textStructureReduced ? /* @__PURE__ */ E("summary", { onClick: (r) => r.preventDefault(), children: /* @__PURE__ */ E(
|
|
2707
|
+
Mt,
|
|
2708
|
+
{
|
|
2709
|
+
editorKey: "draft-editor-1",
|
|
2710
|
+
blockRenderMap: _t,
|
|
2711
|
+
editorState: t != null && t.textStructureReduced ? yt(JSON.parse(t.textStructureReduced)) : dt.createEmpty(),
|
|
2712
|
+
onChange: () => null,
|
|
2713
|
+
readOnly: !0
|
|
2714
|
+
}
|
|
2715
|
+
) }) : /* @__PURE__ */ E(H, {}),
|
|
2716
|
+
t.showTextStructureExpander && t.textStructure ? /* @__PURE__ */ E(H, { children: /* @__PURE__ */ E(
|
|
2717
|
+
Mt,
|
|
2718
|
+
{
|
|
2719
|
+
editorKey: "draft-editor-1",
|
|
2720
|
+
blockRenderMap: _t,
|
|
2721
|
+
editorState: t.textStructure ? yt(JSON.parse(t.textStructure)) : dt.createEmpty(),
|
|
2722
|
+
onChange: () => null,
|
|
2723
|
+
readOnly: !0
|
|
2724
|
+
}
|
|
2725
|
+
) }) : /* @__PURE__ */ E(H, {})
|
|
2726
|
+
] }), Io = {
|
|
2727
|
+
"draftjs-text-modifier": "_draftjs-text-modifier_1itwm_2"
|
|
2728
|
+
}, So = "_textContentWrapper_1bigo_5", To = "_textContentSection_1bigo_13", vt = {
|
|
2729
|
+
"link-modifier": "_link-modifier_1bigo_1",
|
|
2730
|
+
textContentWrapper: So,
|
|
2731
|
+
textContentSection: To
|
|
2732
|
+
}, No = "_link_w24h0_1", Co = "_wrapper_w24h0_98", Ao = "_text_w24h0_106", ct = {
|
|
2733
|
+
link: No,
|
|
2734
|
+
wrapper: Co,
|
|
2735
|
+
text: Ao
|
|
2736
|
+
}, xo = ({
|
|
2737
|
+
children: e,
|
|
2738
|
+
adornments: t,
|
|
2739
|
+
className: r,
|
|
2740
|
+
disableUnderline: n,
|
|
2741
|
+
href: i,
|
|
2742
|
+
mode: o,
|
|
2743
|
+
size: a,
|
|
2744
|
+
title: s,
|
|
2745
|
+
onClick: u,
|
|
2746
|
+
disablePadding: l,
|
|
2747
|
+
...p
|
|
2748
|
+
}) => {
|
|
2749
|
+
const d = re.ValidateProp({
|
|
2750
|
+
fieldTypes: ue,
|
|
2751
|
+
property: a,
|
|
2752
|
+
fallback: "medium"
|
|
2753
|
+
}), c = re.ValidateProp({
|
|
2754
|
+
fieldTypes: fn,
|
|
2755
|
+
property: o,
|
|
2756
|
+
fallback: "default"
|
|
2757
|
+
});
|
|
2758
|
+
return /* @__PURE__ */ E(
|
|
2759
|
+
Et,
|
|
2760
|
+
{
|
|
2761
|
+
...p,
|
|
2762
|
+
className: re.classNameConcat(ct.link, r),
|
|
2763
|
+
href: i && i.length > 0 ? i : "#",
|
|
2764
|
+
"data-size": d,
|
|
2765
|
+
"data-variant": c,
|
|
2766
|
+
title: s || "NextLink",
|
|
2767
|
+
"data-disable-underline": n ?? !1,
|
|
2768
|
+
"data-disable-padding": l ?? !0,
|
|
2769
|
+
children: /* @__PURE__ */ Q("div", { className: ct.wrapper, onClick: u, children: [
|
|
2770
|
+
t == null ? void 0 : t.start,
|
|
2771
|
+
/* @__PURE__ */ E("p", { className: ct.text, "data-size": d, children: e }),
|
|
2772
|
+
t == null ? void 0 : t.end
|
|
2773
|
+
] })
|
|
2774
|
+
}
|
|
2775
|
+
);
|
|
2776
|
+
}, wt = ({
|
|
2777
|
+
data: e
|
|
2778
|
+
}) => {
|
|
2779
|
+
var n;
|
|
2780
|
+
const [t, r] = ne(!1);
|
|
2781
|
+
return /* @__PURE__ */ E(
|
|
2782
|
+
Lt.Root,
|
|
2783
|
+
{
|
|
2784
|
+
layoutProps: {
|
|
2785
|
+
textRow: {
|
|
2786
|
+
alignContent: te(e.textStructureAlignment),
|
|
2787
|
+
alignItems: te(e.textStructureAlignment)
|
|
2788
|
+
},
|
|
2789
|
+
columnWrapper: {
|
|
2790
|
+
alignContent: te(e.textStructureAlignment),
|
|
2791
|
+
alignItems: te(e.textStructureAlignment)
|
|
2792
|
+
}
|
|
2793
|
+
},
|
|
2794
|
+
adornment: {
|
|
2795
|
+
bottom: e.showTextStructureExpander && e.textStructure ? /* @__PURE__ */ E(
|
|
2796
|
+
pn,
|
|
2797
|
+
{
|
|
2798
|
+
variant: "tertiary",
|
|
2799
|
+
adornment: {
|
|
2800
|
+
end: /* @__PURE__ */ E(jt, { name: t ? "arrow-up" : "arrow-down" })
|
|
2801
|
+
},
|
|
2802
|
+
onClick: () => r((i) => !i),
|
|
2803
|
+
size: "small",
|
|
2804
|
+
children: t ? "Ver Menos" : "Ver Mais"
|
|
2805
|
+
}
|
|
2806
|
+
) : /* @__PURE__ */ E(H, {})
|
|
2807
|
+
},
|
|
2808
|
+
children: /* @__PURE__ */ Q(
|
|
2809
|
+
Or.Column,
|
|
2810
|
+
{
|
|
2811
|
+
className: vt.textContentWrapper,
|
|
2812
|
+
style: {
|
|
2813
|
+
alignItems: te(
|
|
2814
|
+
e.textStructureAlignment
|
|
2815
|
+
)
|
|
2816
|
+
},
|
|
2817
|
+
children: [
|
|
2818
|
+
/* @__PURE__ */ E(
|
|
2819
|
+
Lt.DivWrapper,
|
|
2820
|
+
{
|
|
2821
|
+
style: {
|
|
2822
|
+
textAlign: te(
|
|
2823
|
+
e.textStructureAlignment
|
|
2824
|
+
)
|
|
2825
|
+
},
|
|
2826
|
+
mode: e.textStructureMode ?? "default",
|
|
2827
|
+
className: Io["draftjs-text-modifier"],
|
|
2828
|
+
children: e.textStructureReduced ? /* @__PURE__ */ E(Oo, { content: e, expanded: t }) : /* @__PURE__ */ E(H, {})
|
|
2829
|
+
}
|
|
2830
|
+
),
|
|
2831
|
+
e.textStructureButtonLabel ? /* @__PURE__ */ E(
|
|
2832
|
+
xo,
|
|
2833
|
+
{
|
|
2834
|
+
mode: e.textStructureMode ?? "default",
|
|
2835
|
+
href: e.textStructureButtonHref ?? "#",
|
|
2836
|
+
size: e.textStructureButtonSize,
|
|
2837
|
+
className: vt["link-modifier"],
|
|
2838
|
+
adornments: (n = e.textStructureButtonIcon) != null && n.length && e.enableIcon ? { end: /* @__PURE__ */ E(jt, { name: e.textStructureButtonIcon }) } : void 0,
|
|
2839
|
+
children: e.textStructureButtonLabel
|
|
2840
|
+
}
|
|
2841
|
+
) : /* @__PURE__ */ E(H, {})
|
|
2842
|
+
]
|
|
2843
|
+
}
|
|
2844
|
+
)
|
|
2845
|
+
}
|
|
2846
|
+
);
|
|
2847
|
+
}, Lo = (e) => ({
|
|
2848
|
+
centro: {
|
|
2849
|
+
verticalAlignment: "center",
|
|
2850
|
+
horizontalAlignment: "center"
|
|
2851
|
+
},
|
|
2852
|
+
"centro-esquerda": {
|
|
2853
|
+
verticalAlignment: "center",
|
|
2854
|
+
horizontalAlignment: "start"
|
|
2855
|
+
},
|
|
2856
|
+
"centro-direita": {
|
|
2857
|
+
verticalAlignment: "center",
|
|
2858
|
+
horizontalAlignment: "end"
|
|
2859
|
+
},
|
|
2860
|
+
"superior-centro": {
|
|
2861
|
+
verticalAlignment: "start",
|
|
2862
|
+
horizontalAlignment: "center"
|
|
2863
|
+
},
|
|
2864
|
+
"superior-esquerda": {
|
|
2865
|
+
verticalAlignment: "start",
|
|
2866
|
+
horizontalAlignment: "start"
|
|
2867
|
+
},
|
|
2868
|
+
"superior-direita": {
|
|
2869
|
+
verticalAlignment: "start",
|
|
2870
|
+
horizontalAlignment: "end"
|
|
2871
|
+
},
|
|
2872
|
+
"inferior-centro": {
|
|
2873
|
+
verticalAlignment: "end",
|
|
2874
|
+
horizontalAlignment: "center"
|
|
2875
|
+
},
|
|
2876
|
+
"inferior-esquerda": {
|
|
2877
|
+
verticalAlignment: "end",
|
|
2878
|
+
horizontalAlignment: "start"
|
|
2879
|
+
},
|
|
2880
|
+
"inferior-direita": {
|
|
2881
|
+
verticalAlignment: "end",
|
|
2882
|
+
horizontalAlignment: "end"
|
|
2883
|
+
}
|
|
2884
|
+
})[e], br = (e) => ({
|
|
2885
|
+
centro: "center",
|
|
2886
|
+
esquerda: "start",
|
|
2887
|
+
direita: "end"
|
|
2888
|
+
})[e], jo = "_image_lypfr_1", qo = {
|
|
2889
|
+
image: jo
|
|
2890
|
+
}, Mo = ({
|
|
2891
|
+
alt: e,
|
|
2892
|
+
className: t,
|
|
2893
|
+
objectFit: r,
|
|
2894
|
+
...n
|
|
2895
|
+
}) => {
|
|
2896
|
+
const { nextimage: i } = Yr();
|
|
2897
|
+
return /* @__PURE__ */ E(
|
|
2898
|
+
i,
|
|
2899
|
+
{
|
|
2900
|
+
quality: 90,
|
|
2901
|
+
...n,
|
|
2902
|
+
alt: e ?? "",
|
|
2903
|
+
className: re.classNameConcat(qo.image, t),
|
|
2904
|
+
"data-object-fit": r ?? "cover"
|
|
2905
|
+
}
|
|
2906
|
+
);
|
|
2907
|
+
}, Do = ({ videoRef: e, ...t }) => /* @__PURE__ */ E("video", { ...t, ref: e, children: /* @__PURE__ */ E("track", { kind: "captions" }) }), ko = {
|
|
2908
|
+
Image: Mo,
|
|
2909
|
+
Video: Do
|
|
2910
|
+
}, Pr = ({
|
|
2911
|
+
dateEnd: e,
|
|
2912
|
+
dateInit: t,
|
|
2913
|
+
TIME_ZONE: r = "America/Sao_Paulo",
|
|
2914
|
+
...n
|
|
2915
|
+
}) => {
|
|
2916
|
+
const [i, o] = ne(
|
|
2917
|
+
zn(
|
|
2918
|
+
new qt(Date.now(), r),
|
|
2919
|
+
new qt(e, r)
|
|
2920
|
+
)
|
|
2921
|
+
), [a, s] = ne(!1);
|
|
2922
|
+
oe(() => {
|
|
2923
|
+
a || s(!0);
|
|
2924
|
+
const l = setInterval(() => {
|
|
2925
|
+
if (i <= 0) {
|
|
2926
|
+
clearInterval(l);
|
|
2927
|
+
return;
|
|
2928
|
+
}
|
|
2929
|
+
o(i - 1e3);
|
|
2930
|
+
}, 1e3);
|
|
2931
|
+
return () => {
|
|
2932
|
+
clearInterval(l);
|
|
2933
|
+
};
|
|
2934
|
+
}, [i, o, a]);
|
|
2935
|
+
const u = pe(i, "days");
|
|
2936
|
+
return a && i > 0 ? /* @__PURE__ */ Q(G.Root, { ...n, children: [
|
|
2937
|
+
u ? /* @__PURE__ */ Q(H, { children: [
|
|
2938
|
+
/* @__PURE__ */ E(G.Digit, { label: "dias", value: u }),
|
|
2939
|
+
/* @__PURE__ */ E(G.Separator, {})
|
|
2940
|
+
] }) : null,
|
|
2941
|
+
/* @__PURE__ */ E(
|
|
2942
|
+
G.Digit,
|
|
2943
|
+
{
|
|
2944
|
+
label: "horas",
|
|
2945
|
+
value: pe(i, "hours")
|
|
2946
|
+
}
|
|
2947
|
+
),
|
|
2948
|
+
/* @__PURE__ */ E(G.Separator, {}),
|
|
2949
|
+
/* @__PURE__ */ E(
|
|
2950
|
+
G.Digit,
|
|
2951
|
+
{
|
|
2952
|
+
label: "min",
|
|
2953
|
+
value: pe(i, "minutes")
|
|
2954
|
+
}
|
|
2955
|
+
),
|
|
2956
|
+
/* @__PURE__ */ E(G.Separator, {}),
|
|
2957
|
+
/* @__PURE__ */ E(
|
|
2958
|
+
G.Digit,
|
|
2959
|
+
{
|
|
2960
|
+
label: "segs",
|
|
2961
|
+
value: pe(i),
|
|
2962
|
+
suppressHydrationWarning: !0
|
|
2963
|
+
}
|
|
2964
|
+
)
|
|
2965
|
+
] }) : /* @__PURE__ */ E(H, {});
|
|
2966
|
+
}, Rr = {
|
|
2967
|
+
"content-modifier": "_content-modifier_16y4u_5",
|
|
2968
|
+
"banner-image-wrapper-modifier": "_banner-image-wrapper-modifier_16y4u_13"
|
|
2969
|
+
}, Er = ({
|
|
2970
|
+
data: e,
|
|
2971
|
+
videoUrl: t,
|
|
2972
|
+
priority: r,
|
|
2973
|
+
videoRef: n,
|
|
2974
|
+
...i
|
|
2975
|
+
}) => {
|
|
2976
|
+
const {
|
|
2977
|
+
video: o,
|
|
2978
|
+
image: a,
|
|
2979
|
+
imageHref: s,
|
|
2980
|
+
imageOpacity: u,
|
|
2981
|
+
altImage: l,
|
|
2982
|
+
backgroundColor: p,
|
|
2983
|
+
position: d,
|
|
2984
|
+
contentAlignment: c,
|
|
2985
|
+
showTimer: m,
|
|
2986
|
+
contentOrder: y,
|
|
2987
|
+
timerMode: f,
|
|
2988
|
+
timerEnd: g,
|
|
2989
|
+
timerInit: _,
|
|
2990
|
+
textStructure: w,
|
|
2991
|
+
textStructureReduced: b
|
|
2992
|
+
} = e.banner, h = (s == null ? void 0 : s.trim()) || (a == null ? void 0 : a.trim()) || null, { nextimage: P } = Yr();
|
|
2993
|
+
return /* @__PURE__ */ Q(De.Container, { ...i, children: [
|
|
2994
|
+
/* @__PURE__ */ Q(
|
|
2995
|
+
De.ImageWrapper,
|
|
2996
|
+
{
|
|
2997
|
+
className: Rr["banner-image-wrapper-modifier"],
|
|
2998
|
+
style: u ? { background: p } : void 0,
|
|
2999
|
+
children: [
|
|
3000
|
+
o && /* @__PURE__ */ E(
|
|
3001
|
+
ko.Video,
|
|
3002
|
+
{
|
|
3003
|
+
videoRef: n,
|
|
3004
|
+
src: t,
|
|
3005
|
+
autoPlay: r,
|
|
3006
|
+
loop: !0,
|
|
3007
|
+
playsInline: !0,
|
|
3008
|
+
muted: !0
|
|
3009
|
+
}
|
|
3010
|
+
),
|
|
3011
|
+
h && !(o != null && o.length) && /* @__PURE__ */ E(
|
|
3012
|
+
P,
|
|
3013
|
+
{
|
|
3014
|
+
src: h,
|
|
3015
|
+
width: "1920",
|
|
3016
|
+
height: "1080",
|
|
3017
|
+
alt: l ?? a ?? "",
|
|
3018
|
+
...r ? { priority: r } : {},
|
|
3019
|
+
style: u ? { opacity: "0" } : void 0
|
|
3020
|
+
}
|
|
3021
|
+
),
|
|
3022
|
+
!a && !(o != null && o.length) && /* @__PURE__ */ E(
|
|
3023
|
+
"div",
|
|
3024
|
+
{
|
|
3025
|
+
style: {
|
|
3026
|
+
background: p
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
)
|
|
3030
|
+
]
|
|
3031
|
+
}
|
|
3032
|
+
),
|
|
3033
|
+
m || b || w ? /* @__PURE__ */ E(
|
|
3034
|
+
De.Slot,
|
|
3035
|
+
{
|
|
3036
|
+
...Lo(d ?? "centro"),
|
|
3037
|
+
className: Rr["content-modifier"],
|
|
3038
|
+
style: {
|
|
3039
|
+
textAlign: br(
|
|
3040
|
+
c
|
|
3041
|
+
)
|
|
3042
|
+
},
|
|
3043
|
+
children: /* @__PURE__ */ Q(
|
|
3044
|
+
Or.Column,
|
|
3045
|
+
{
|
|
3046
|
+
gap: "16px",
|
|
3047
|
+
alignItems: br(c),
|
|
3048
|
+
children: [
|
|
3049
|
+
m && y === "timer-first" && /* @__PURE__ */ E(
|
|
3050
|
+
Pr,
|
|
3051
|
+
{
|
|
3052
|
+
mode: f ?? "default",
|
|
3053
|
+
size: "small",
|
|
3054
|
+
dateEnd: g ? new Date(g) : /* @__PURE__ */ new Date(),
|
|
3055
|
+
dateInit: _ ? new Date(_) : /* @__PURE__ */ new Date()
|
|
3056
|
+
}
|
|
3057
|
+
),
|
|
3058
|
+
/* @__PURE__ */ E(wt, { data: e.banner }),
|
|
3059
|
+
m && y !== "timer-first" && /* @__PURE__ */ E(
|
|
3060
|
+
Pr,
|
|
3061
|
+
{
|
|
3062
|
+
mode: f ?? "default",
|
|
3063
|
+
size: "small",
|
|
3064
|
+
dateEnd: g ? new Date(g) : /* @__PURE__ */ new Date(),
|
|
3065
|
+
dateInit: _ ? new Date(_) : /* @__PURE__ */ new Date()
|
|
3066
|
+
}
|
|
3067
|
+
)
|
|
3068
|
+
]
|
|
3069
|
+
}
|
|
3070
|
+
)
|
|
3071
|
+
}
|
|
3072
|
+
) : /* @__PURE__ */ E(H, {})
|
|
3073
|
+
] });
|
|
3074
|
+
}, Uo = {
|
|
3075
|
+
"observer-wrapper": "_observer-wrapper_r43gk_1"
|
|
3076
|
+
};
|
|
3077
|
+
function zo(e, t, r) {
|
|
3078
|
+
const [n, i] = ne(!1), { threshold: o } = r || {};
|
|
3079
|
+
return oe(() => {
|
|
3080
|
+
if (!e.current)
|
|
3081
|
+
return () => {
|
|
3082
|
+
};
|
|
3083
|
+
let a = null;
|
|
3084
|
+
const s = new IntersectionObserver(
|
|
3085
|
+
([u]) => {
|
|
3086
|
+
if (r != null && r.delay) {
|
|
3087
|
+
a && clearTimeout(a), a = setTimeout(() => {
|
|
3088
|
+
i(u.isIntersecting), t && u.isIntersecting && s.unobserve(e.current);
|
|
3089
|
+
}, r.delay);
|
|
3090
|
+
return;
|
|
3091
|
+
}
|
|
3092
|
+
i(u.isIntersecting), t && u.isIntersecting && s.unobserve(e.current);
|
|
3093
|
+
},
|
|
3094
|
+
{
|
|
3095
|
+
threshold: o || 1
|
|
3096
|
+
}
|
|
3097
|
+
);
|
|
3098
|
+
return s.observe(e.current), () => {
|
|
3099
|
+
s.disconnect();
|
|
3100
|
+
};
|
|
3101
|
+
}, [e]), n;
|
|
3102
|
+
}
|
|
3103
|
+
const Bo = ({
|
|
3104
|
+
children: e,
|
|
3105
|
+
eventData: t,
|
|
3106
|
+
observerOptions: r,
|
|
3107
|
+
callBackWhenVisible: n,
|
|
3108
|
+
stopOnIntersection: i = !0,
|
|
3109
|
+
className: o,
|
|
3110
|
+
...a
|
|
3111
|
+
}) => {
|
|
3112
|
+
const s = z(null), u = zo(s, i, r), { sendDataLayerEvent: l } = Lr();
|
|
3113
|
+
return oe(() => {
|
|
3114
|
+
u && (typeof n == "function" && n(), t && l({ ...t }));
|
|
3115
|
+
}, [u]), /* @__PURE__ */ E(
|
|
3116
|
+
"div",
|
|
3117
|
+
{
|
|
3118
|
+
...a,
|
|
3119
|
+
ref: s,
|
|
3120
|
+
className: re.classNameConcat(Uo["observer-wrapper"], o),
|
|
3121
|
+
children: e
|
|
3122
|
+
}
|
|
3123
|
+
);
|
|
3124
|
+
}, Vo = ({
|
|
3125
|
+
data: e,
|
|
3126
|
+
className: t,
|
|
3127
|
+
priority: r,
|
|
3128
|
+
creative: n,
|
|
3129
|
+
...i
|
|
3130
|
+
}) => {
|
|
3131
|
+
const { handleSelectPromotionEvent: o, currentLocalRef: a } = Lr(), {
|
|
3132
|
+
banner: { promotion_name: s },
|
|
3133
|
+
index: u,
|
|
3134
|
+
componentIndex: l
|
|
3135
|
+
} = e, p = typeof u == "number" ? `:${u + 1}` : "", d = {
|
|
3136
|
+
creative_name: n,
|
|
3137
|
+
creative_slot: `${n}-${a.current}:${l + 1}${p}`,
|
|
3138
|
+
promotion_id: e.banner.href,
|
|
3139
|
+
promotion_name: s
|
|
3140
|
+
}, c = z(null), m = lt(() => {
|
|
3141
|
+
var f;
|
|
3142
|
+
if ((f = e.banner.video) != null && f.includes("player.vimeo")) {
|
|
3143
|
+
const g = e.banner.video.split("?")[1], _ = g == null ? void 0 : g.split("&"), w = _ == null ? void 0 : _.filter(
|
|
3144
|
+
(h) => h.includes("loc") || h.includes("signature") || h.includes("user_id")
|
|
3145
|
+
), b = w == null ? void 0 : w.join("&");
|
|
3146
|
+
return `${e.banner.video.split("?")[0]}?${b}`;
|
|
3147
|
+
}
|
|
3148
|
+
return e.banner.video;
|
|
3149
|
+
}, [e]), y = () => {
|
|
3150
|
+
var f;
|
|
3151
|
+
(f = c.current) != null && f.paused && c.current.play();
|
|
3152
|
+
};
|
|
3153
|
+
return /* @__PURE__ */ E(
|
|
3154
|
+
Bo,
|
|
3155
|
+
{
|
|
3156
|
+
eventData: {
|
|
3157
|
+
functionKey: "readyEvents",
|
|
3158
|
+
data: {
|
|
3159
|
+
event: "view_promotion",
|
|
3160
|
+
readyData: {
|
|
3161
|
+
ecommerce: {
|
|
3162
|
+
...d,
|
|
3163
|
+
index: u
|
|
3164
|
+
}
|
|
3165
|
+
}
|
|
3166
|
+
}
|
|
3167
|
+
},
|
|
3168
|
+
observerOptions: {
|
|
3169
|
+
delay: 100,
|
|
3170
|
+
...m && { threshold: 0.1 }
|
|
3171
|
+
},
|
|
3172
|
+
...m && { callBackWhenVisible: y },
|
|
3173
|
+
children: e.banner.href ? /* @__PURE__ */ E(
|
|
3174
|
+
Et,
|
|
3175
|
+
{
|
|
3176
|
+
href: e.banner.href,
|
|
3177
|
+
onClick: () => {
|
|
3178
|
+
o({
|
|
3179
|
+
updatePromotionRef: !0,
|
|
3180
|
+
promotion: d,
|
|
3181
|
+
index: u
|
|
3182
|
+
});
|
|
3183
|
+
},
|
|
3184
|
+
children: /* @__PURE__ */ E(
|
|
3185
|
+
Er,
|
|
3186
|
+
{
|
|
3187
|
+
data: e,
|
|
3188
|
+
videoUrl: m,
|
|
3189
|
+
priority: r,
|
|
3190
|
+
videoRef: c,
|
|
3191
|
+
...i
|
|
3192
|
+
}
|
|
3193
|
+
)
|
|
3194
|
+
}
|
|
3195
|
+
) : /* @__PURE__ */ E(
|
|
3196
|
+
Er,
|
|
3197
|
+
{
|
|
3198
|
+
data: e,
|
|
3199
|
+
videoUrl: m,
|
|
3200
|
+
priority: r,
|
|
3201
|
+
videoRef: c,
|
|
3202
|
+
...i
|
|
3203
|
+
}
|
|
3204
|
+
)
|
|
3205
|
+
}
|
|
3206
|
+
);
|
|
3207
|
+
}, Fo = (e) => /* @__PURE__ */ E(Vo, { ...e }), Wo = (e) => e, Ho = (e) => e, Oe = { schema: Wo, base: Ho };
|
|
3208
|
+
function an({ ICONS: e }) {
|
|
3209
|
+
return {
|
|
3210
|
+
borderTop: O.property({
|
|
3211
|
+
title: "Esconder borda superior",
|
|
3212
|
+
type: "boolean"
|
|
3213
|
+
}),
|
|
3214
|
+
textStructure: O.property({
|
|
3215
|
+
title: 'Texto complementar (caso queira o "ver mais")',
|
|
3216
|
+
type: "string",
|
|
3217
|
+
widget: O.widget({
|
|
3218
|
+
uiWidget: "draftjs-rich-text"
|
|
3219
|
+
})
|
|
3220
|
+
}),
|
|
3221
|
+
textStructureReduced: O.property({
|
|
3222
|
+
title: "Texto inicial",
|
|
3223
|
+
type: "string",
|
|
3224
|
+
widget: O.widget({
|
|
3225
|
+
uiWidget: "draftjs-rich-text"
|
|
3226
|
+
})
|
|
3227
|
+
}),
|
|
3228
|
+
textStructureMode: O.property({
|
|
3229
|
+
title: "cor da estrutura de texto",
|
|
3230
|
+
type: "string",
|
|
3231
|
+
enumNames: ["Padrão(preto)", "Invertido(branco)"],
|
|
3232
|
+
enum: ["default", "inverse"]
|
|
3233
|
+
}),
|
|
3234
|
+
textStructureButtonSize: O.property({
|
|
3235
|
+
title: "Tamanho botão estrutura de texto",
|
|
3236
|
+
type: "string",
|
|
3237
|
+
enumNames: ue,
|
|
3238
|
+
enum: ue
|
|
3239
|
+
}),
|
|
3240
|
+
enableIcon: O.property({
|
|
3241
|
+
type: "boolean",
|
|
3242
|
+
title: "Ativar ícone"
|
|
3243
|
+
}),
|
|
3244
|
+
textStructureButtonIcon: O.property({
|
|
3245
|
+
title: "Icone botão estrutura de texto",
|
|
3246
|
+
type: "string",
|
|
3247
|
+
enum: Object.values(e),
|
|
3248
|
+
enumNames: Object.keys(e)
|
|
3249
|
+
}),
|
|
3250
|
+
textStructureButtonLabel: O.property({
|
|
3251
|
+
title: "Label botão estrutura de texto",
|
|
3252
|
+
type: "string"
|
|
3253
|
+
}),
|
|
3254
|
+
textStructureButtonHref: O.property({
|
|
3255
|
+
title: "Url botão estrutura texto",
|
|
3256
|
+
type: "string"
|
|
3257
|
+
}),
|
|
3258
|
+
showTextStructureExpander: O.property({
|
|
3259
|
+
title: 'Mostrar botão "ver mais" (Caso ja tenha um texto reduzido)',
|
|
3260
|
+
type: "boolean"
|
|
3261
|
+
}),
|
|
3262
|
+
textStructureAlignment: O.property({
|
|
3263
|
+
title: "alinhamento do texto",
|
|
3264
|
+
type: "string",
|
|
3265
|
+
enumNames: ["centro", "esquerda", "direita"],
|
|
3266
|
+
enum: ["centro", "esquerda", "direita"]
|
|
3267
|
+
})
|
|
3268
|
+
};
|
|
3269
|
+
}
|
|
3270
|
+
function $o({ ICONS: e }) {
|
|
3271
|
+
return O.property({
|
|
3272
|
+
type: "object",
|
|
3273
|
+
title: "Item",
|
|
3274
|
+
properties: {
|
|
3275
|
+
title: O.property({ type: "object", title: "Item" }),
|
|
3276
|
+
creative_name: O.property({
|
|
3277
|
+
type: "string",
|
|
3278
|
+
title: "creative name ex: carrossel home, ex2: stories"
|
|
3279
|
+
}),
|
|
3280
|
+
creative_slot: O.property({
|
|
3281
|
+
type: "string",
|
|
3282
|
+
title: "creative slot ex: carrossel-home: 1"
|
|
3283
|
+
}),
|
|
3284
|
+
promotion_id: O.property({
|
|
3285
|
+
type: "string",
|
|
3286
|
+
title: "promotion id ex: /animale: ex2: /new-collection?O=OrderByScoreDESC"
|
|
3287
|
+
}),
|
|
3288
|
+
promotion_name: O.property({
|
|
3289
|
+
type: "string",
|
|
3290
|
+
title: "promotion name ex: special-gift-for-you"
|
|
3291
|
+
}),
|
|
3292
|
+
href: O.property({
|
|
3293
|
+
type: "string",
|
|
3294
|
+
title: "Link"
|
|
3295
|
+
}),
|
|
3296
|
+
image: O.property({
|
|
3297
|
+
type: "string",
|
|
3298
|
+
title: "Imagem upload",
|
|
3299
|
+
description: "Upload de imagens ou seleção de imagens já existentes.",
|
|
3300
|
+
widget: O.widget({
|
|
3301
|
+
uiWidget: "media-gallery"
|
|
3302
|
+
})
|
|
3303
|
+
}),
|
|
3304
|
+
imageHref: O.property({
|
|
3305
|
+
type: "string",
|
|
3306
|
+
title: "Imagem via link",
|
|
3307
|
+
description: "Informe um link de imagem apenas se não for usar o upload da VTEX. Os dois não podem ser usados juntos."
|
|
3308
|
+
}),
|
|
3309
|
+
imageOpacity: O.property({
|
|
3310
|
+
title: "Deixar imagem transparente",
|
|
3311
|
+
type: "boolean"
|
|
3312
|
+
}),
|
|
3313
|
+
headerVariant: O.property({
|
|
3314
|
+
title: "cor do header no banner principal (se Banner Carousel na home)",
|
|
3315
|
+
type: "string",
|
|
3316
|
+
enumNames: ["Padrão(preto)", "Invertido(branco)"],
|
|
3317
|
+
enum: ["transparent-black", "transparent-white"]
|
|
3318
|
+
}),
|
|
3319
|
+
video: O.property({
|
|
3320
|
+
type: "string",
|
|
3321
|
+
title: "Video",
|
|
3322
|
+
widget: O.widget({
|
|
3323
|
+
uiWidget: "media-gallery"
|
|
3324
|
+
})
|
|
3325
|
+
}),
|
|
3326
|
+
altImage: O.property({
|
|
3327
|
+
type: "string",
|
|
3328
|
+
title: "Alt Image"
|
|
3329
|
+
}),
|
|
3330
|
+
isHeroBanner: O.property({
|
|
3331
|
+
title: "é hero banner",
|
|
3332
|
+
type: "boolean"
|
|
3333
|
+
}),
|
|
3334
|
+
backgroundColor: O.property({
|
|
3335
|
+
title: "Cor de fundo ex: #ffffff",
|
|
3336
|
+
type: "string"
|
|
3337
|
+
}),
|
|
3338
|
+
position: O.property({
|
|
3339
|
+
title: "Posição do conteudo na imagem",
|
|
3340
|
+
type: "string",
|
|
3341
|
+
enumNames: [
|
|
3342
|
+
"superior-esquerda",
|
|
3343
|
+
"superior-centro",
|
|
3344
|
+
"superior-direita",
|
|
3345
|
+
"centro",
|
|
3346
|
+
"centro-esquerda",
|
|
3347
|
+
"centro-direita",
|
|
3348
|
+
"inferior-esquerda",
|
|
3349
|
+
"inferior-centro",
|
|
3350
|
+
"inferior-direita"
|
|
3351
|
+
],
|
|
3352
|
+
enum: [
|
|
3353
|
+
"superior-esquerda",
|
|
3354
|
+
"superior-centro",
|
|
3355
|
+
"superior-direita",
|
|
3356
|
+
"centro",
|
|
3357
|
+
"centro-esquerda",
|
|
3358
|
+
"centro-direita",
|
|
3359
|
+
"inferior-esquerda",
|
|
3360
|
+
"inferior-centro",
|
|
3361
|
+
"inferior-direita"
|
|
3362
|
+
]
|
|
3363
|
+
}),
|
|
3364
|
+
showTimer: O.property({
|
|
3365
|
+
title: "mostrar relogio",
|
|
3366
|
+
type: "boolean"
|
|
3367
|
+
}),
|
|
3368
|
+
timerInit: O.property({
|
|
3369
|
+
title: "relogio inicio",
|
|
3370
|
+
type: "string",
|
|
3371
|
+
widget: {
|
|
3372
|
+
"ui:widget": "date-time"
|
|
3373
|
+
}
|
|
3374
|
+
}),
|
|
3375
|
+
timerEnd: O.property({
|
|
3376
|
+
title: "relogio Fim",
|
|
3377
|
+
type: "string",
|
|
3378
|
+
widget: {
|
|
3379
|
+
"ui:widget": "date-time"
|
|
3380
|
+
}
|
|
3381
|
+
}),
|
|
3382
|
+
timerMode: O.property({
|
|
3383
|
+
title: "cor do relogio",
|
|
3384
|
+
type: "string",
|
|
3385
|
+
enumNames: ["Padrão(preto)", "Invertido(branco)"],
|
|
3386
|
+
enum: ["default", "inverse"]
|
|
3387
|
+
}),
|
|
3388
|
+
timerSize: O.property({
|
|
3389
|
+
title: "tamanho do relogio",
|
|
3390
|
+
type: "string",
|
|
3391
|
+
enumNames: ue,
|
|
3392
|
+
enum: ue
|
|
3393
|
+
}),
|
|
3394
|
+
contentAlignment: O.property({
|
|
3395
|
+
title: "alinhamento do conteúdo",
|
|
3396
|
+
type: "string",
|
|
3397
|
+
enumNames: ["centro", "esquerda", "direita"],
|
|
3398
|
+
enum: ["centro", "esquerda", "direita"]
|
|
3399
|
+
}),
|
|
3400
|
+
contentOrder: O.property({
|
|
3401
|
+
title: "ordem do conteúdo",
|
|
3402
|
+
type: "string",
|
|
3403
|
+
enumNames: ["relógio primeiro", "estrutura de texto primeiro"],
|
|
3404
|
+
enum: ["timer-first", "text-structure-first"]
|
|
3405
|
+
}),
|
|
3406
|
+
...an({ ICONS: e })
|
|
3407
|
+
}
|
|
3408
|
+
});
|
|
3409
|
+
}
|
|
3410
|
+
function gi({ ICONS: e }) {
|
|
3411
|
+
return Oe.base({
|
|
3412
|
+
name: "Banner",
|
|
3413
|
+
id: "banner",
|
|
3414
|
+
href: "",
|
|
3415
|
+
requiredScopes: [
|
|
3416
|
+
"common_page",
|
|
3417
|
+
"categories_page",
|
|
3418
|
+
"wishlist_page",
|
|
3419
|
+
"search_page",
|
|
3420
|
+
"prehome"
|
|
3421
|
+
],
|
|
3422
|
+
schema: Oe.schema({
|
|
3423
|
+
title: "Banner",
|
|
3424
|
+
description: "Banners Único para pagina",
|
|
3425
|
+
type: "object",
|
|
3426
|
+
properties: {
|
|
3427
|
+
banner: $o({ ICONS: e })
|
|
3428
|
+
}
|
|
3429
|
+
})
|
|
3430
|
+
});
|
|
3431
|
+
}
|
|
3432
|
+
const yi = { Banner: Fo }, Go = ({
|
|
3433
|
+
data: e
|
|
3434
|
+
}) => /* @__PURE__ */ E(
|
|
3435
|
+
"div",
|
|
3436
|
+
{
|
|
3437
|
+
className: re.classNameConcat(vt.textContentSection),
|
|
3438
|
+
style: e.borderTop ? { borderTop: "none" } : void 0,
|
|
3439
|
+
children: /* @__PURE__ */ E(wt, { data: e })
|
|
3440
|
+
}
|
|
3441
|
+
);
|
|
3442
|
+
function _i({ ICONS: e }) {
|
|
3443
|
+
return Oe.base({
|
|
3444
|
+
name: "TextContent",
|
|
3445
|
+
id: "text_content",
|
|
3446
|
+
requiredScopes: [
|
|
3447
|
+
"common_page",
|
|
3448
|
+
"product_page",
|
|
3449
|
+
"categories_page",
|
|
3450
|
+
"wishlist_page",
|
|
3451
|
+
"search_page",
|
|
3452
|
+
"policy_tab"
|
|
3453
|
+
],
|
|
3454
|
+
schema: Oe.schema({
|
|
3455
|
+
title: "TextStructure",
|
|
3456
|
+
description: "Estrutura de texto",
|
|
3457
|
+
type: "object",
|
|
3458
|
+
properties: {
|
|
3459
|
+
...an({ ICONS: e })
|
|
3460
|
+
}
|
|
3461
|
+
})
|
|
3462
|
+
});
|
|
3463
|
+
}
|
|
3464
|
+
const vi = { TextContentSection: Go, TextContent: wt };
|
|
3465
|
+
export {
|
|
3466
|
+
gt as A,
|
|
3467
|
+
Vo as B,
|
|
3468
|
+
O as C,
|
|
3469
|
+
xo as D,
|
|
3470
|
+
ui as E,
|
|
3471
|
+
Oe as F,
|
|
3472
|
+
fi as G,
|
|
3473
|
+
_i as H,
|
|
3474
|
+
gi as I,
|
|
3475
|
+
Et as L,
|
|
3476
|
+
Un as M,
|
|
3477
|
+
mi as N,
|
|
3478
|
+
Bo as O,
|
|
3479
|
+
Fo as S,
|
|
3480
|
+
Pr as T,
|
|
3481
|
+
kn as U,
|
|
3482
|
+
ce as _,
|
|
3483
|
+
ii as a,
|
|
3484
|
+
pi as b,
|
|
3485
|
+
Pt as c,
|
|
3486
|
+
di as d,
|
|
3487
|
+
qn as e,
|
|
3488
|
+
Mn as f,
|
|
3489
|
+
Sr as g,
|
|
3490
|
+
Nn as h,
|
|
3491
|
+
wn as i,
|
|
3492
|
+
An as j,
|
|
3493
|
+
li as k,
|
|
3494
|
+
Yr as l,
|
|
3495
|
+
pe as m,
|
|
3496
|
+
zn as n,
|
|
3497
|
+
si as o,
|
|
3498
|
+
ci as p,
|
|
3499
|
+
hi as q,
|
|
3500
|
+
ai as r,
|
|
3501
|
+
gn as s,
|
|
3502
|
+
vi as t,
|
|
3503
|
+
Lr as u,
|
|
3504
|
+
yi as v,
|
|
3505
|
+
ko as w,
|
|
3506
|
+
Rn as x,
|
|
3507
|
+
Fn as y,
|
|
3508
|
+
lo as z
|
|
3509
|
+
};
|