@soma-vertical-web/multi-lib 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contexts/store/pdp.d.ts +24 -6
- package/index.js +11 -11
- package/index.mjs +1024 -999
- package/package.json +1 -1
- package/types/contexts/store/pdp.d.ts +16 -10
- package/types/data/events/index.d.ts +2 -11
package/index.mjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
import Oe, { createContext as Ne, useContext as Ve, useCallback as
|
|
6
|
-
import { create as
|
|
7
|
-
import { get as
|
|
1
|
+
var $n = Object.defineProperty;
|
|
2
|
+
var Un = (t, e, o) => e in t ? $n(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
|
+
var nt = (t, e, o) => Un(t, typeof e != "symbol" ? e + "" : e, o);
|
|
4
|
+
import Bt, { jsx as H, jsxs as he, Fragment as Vt } from "react/jsx-runtime";
|
|
5
|
+
import Oe, { createContext as Ne, useContext as Ve, useCallback as Fn, useEffect as Ae, useRef as ye, useState as Re, useMemo as or } from "react";
|
|
6
|
+
import { create as Ke } from "zustand";
|
|
7
|
+
import { get as ot, set as it } from "idb-keyval";
|
|
8
8
|
import * as be from "yup";
|
|
9
|
-
import { C as
|
|
10
|
-
import { Tooltip as
|
|
11
|
-
import
|
|
12
|
-
import { SizesSmallExtended as
|
|
13
|
-
import
|
|
14
|
-
const
|
|
9
|
+
import { C as zn } from "./server-DvV_v1l2.mjs";
|
|
10
|
+
import { Tooltip as Ut, Icon as ir, TextStructure as ar, Tag as Xn, TextField as sr, Button as Gn, Spinner as Bn, helpers as we, Card as Vn } from "@soma-vertical-web/core-components";
|
|
11
|
+
import ur from "axios";
|
|
12
|
+
import { SizesSmallExtended as Kn, Mode as Wn } from "@soma-vertical-web/foundations";
|
|
13
|
+
import Qn from "react-dom";
|
|
14
|
+
const Kt = Ne(
|
|
15
15
|
{}
|
|
16
|
-
),
|
|
16
|
+
), Yn = ({
|
|
17
17
|
data: t,
|
|
18
18
|
children: e
|
|
19
|
-
}) => /* @__PURE__ */ H(
|
|
20
|
-
const { tags: t } = Ve(
|
|
19
|
+
}) => /* @__PURE__ */ H(Kt.Provider, { value: { tags: t == null ? void 0 : t.config }, children: e }), Jn = () => {
|
|
20
|
+
const { tags: t } = Ve(Kt), e = Fn(
|
|
21
21
|
(o) => {
|
|
22
22
|
var n, i, u, l;
|
|
23
23
|
const a = (i = (n = t == null ? void 0 : t.commercial) == null ? void 0 : n.items) == null ? void 0 : i.find(
|
|
@@ -40,14 +40,14 @@ const Bt = Ne(
|
|
|
40
40
|
[t]
|
|
41
41
|
);
|
|
42
42
|
return { tags: t, getAvailableProductTag: e };
|
|
43
|
-
},
|
|
44
|
-
|
|
43
|
+
}, un = ({ gridScrollBack: t }) => {
|
|
44
|
+
Ae(() => {
|
|
45
45
|
typeof window < "u" && (t != null && t.refer) && sessionStorage.setItem(t == null ? void 0 : t.refer, "true");
|
|
46
46
|
}, []);
|
|
47
|
-
},
|
|
48
|
-
const o =
|
|
49
|
-
return
|
|
50
|
-
|
|
47
|
+
}, Wt = Ne({}), Zn = ({ children: t, gridScrollBack: e }) => {
|
|
48
|
+
const o = ye(null);
|
|
49
|
+
return un({ gridScrollBack: e }), /* @__PURE__ */ H(
|
|
50
|
+
Wt.Provider,
|
|
51
51
|
{
|
|
52
52
|
value: {
|
|
53
53
|
sizesContainerRef: o
|
|
@@ -55,12 +55,12 @@ const Bt = Ne(
|
|
|
55
55
|
children: t
|
|
56
56
|
}
|
|
57
57
|
);
|
|
58
|
-
},
|
|
59
|
-
const t = Ve(
|
|
58
|
+
}, eo = () => {
|
|
59
|
+
const t = Ve(Wt);
|
|
60
60
|
if (t === void 0)
|
|
61
61
|
throw new Error("useContext(PDPContext) must be used within a PDPProvider");
|
|
62
62
|
return t;
|
|
63
|
-
},
|
|
63
|
+
}, Te = {
|
|
64
64
|
selectedSkuInfo: {
|
|
65
65
|
productId: "",
|
|
66
66
|
name: "",
|
|
@@ -71,37 +71,52 @@ const Bt = Ne(
|
|
|
71
71
|
available: !1,
|
|
72
72
|
quantity: 1
|
|
73
73
|
},
|
|
74
|
-
setSelectedSkuInfo: (e) => t((o) => ({
|
|
75
|
-
selectedSkuInfo: {
|
|
76
|
-
...o,
|
|
77
|
-
...e
|
|
78
|
-
}
|
|
79
|
-
}))
|
|
80
|
-
})), Jn = () => an((t) => t.selectedSkuInfo), Zn = () => an((t) => t.setSelectedSkuInfo), sn = Ie((t) => ({
|
|
81
74
|
openLetMeKnow: !1,
|
|
82
|
-
setOpenLetMeKnow: (e) => t({ openLetMeKnow: e })
|
|
83
|
-
})), eo = () => sn((t) => t.openLetMeKnow), to = () => sn((t) => t.setOpenLetMeKnow), un = Ie((t) => ({
|
|
84
|
-
showNotify: !1,
|
|
85
|
-
setShowNotify: (e) => t({ showNotify: e })
|
|
86
|
-
})), ro = () => un((t) => t.showNotify), no = () => un((t) => t.setShowNotify), cn = Ie((t) => ({
|
|
87
|
-
showBottomNavigation: !1,
|
|
88
|
-
setShowBottomNavigation: (e) => t({ showBottomNavigation: e })
|
|
89
|
-
})), oo = () => cn((t) => t.showBottomNavigation), io = () => cn((t) => t.setShowBottomNavigation), ln = Ie((t) => ({
|
|
90
75
|
openMeasurements: !1,
|
|
91
|
-
|
|
92
|
-
|
|
76
|
+
showBottomNavigation: !1,
|
|
77
|
+
showNotify: !1
|
|
78
|
+
}, Qt = /* @__PURE__ */ new Set(), to = () => {
|
|
79
|
+
Qt.forEach((t) => {
|
|
80
|
+
t();
|
|
81
|
+
});
|
|
82
|
+
}, We = (t) => Ke((e) => {
|
|
83
|
+
const o = () => e({ value: t });
|
|
84
|
+
return Qt.add(o), {
|
|
85
|
+
value: t,
|
|
86
|
+
actions: {
|
|
87
|
+
setValue: (a) => e({ value: a }),
|
|
88
|
+
reset: o
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
}), cn = Ke((t) => {
|
|
92
|
+
const e = () => t({ value: Te.selectedSkuInfo });
|
|
93
|
+
return Qt.add(e), {
|
|
94
|
+
value: Te.selectedSkuInfo,
|
|
95
|
+
actions: {
|
|
96
|
+
setValue: (o) => t((a) => ({
|
|
97
|
+
value: {
|
|
98
|
+
...a,
|
|
99
|
+
//persist some values
|
|
100
|
+
...o
|
|
101
|
+
}
|
|
102
|
+
})),
|
|
103
|
+
reset: e
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
}), ro = () => cn((t) => t.value), no = () => cn((t) => t.actions), ln = We(Te.openLetMeKnow), oo = () => ln((t) => t.value), io = () => ln((t) => t.actions), fn = We(Te.showNotify), ao = () => fn((t) => t.value), so = () => fn((t) => t.actions), dn = We(Te.showBottomNavigation), uo = () => dn((t) => t.value), co = () => dn((t) => t.actions), pn = We(Te.openMeasurements), lo = () => pn((t) => t.value), fo = () => pn((t) => t.actions), po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
93
107
|
__proto__: null,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
108
|
+
resetAllPDPStores: to,
|
|
109
|
+
useActionsPDPOpenLetMeKnow: io,
|
|
110
|
+
useActionsPDPOpenMeasurements: fo,
|
|
111
|
+
useActionsPDPSelectedSkuInfo: no,
|
|
112
|
+
useActionsPDPShowBottomNavigation: co,
|
|
113
|
+
useActionsPDPShowNotify: so,
|
|
114
|
+
useGetPDPOpenLetMeKnow: oo,
|
|
115
|
+
useGetPDPOpenMeasurements: lo,
|
|
116
|
+
useGetPDPSelectedSkuInfo: ro,
|
|
117
|
+
useGetPDPShowBottomNavigation: uo,
|
|
118
|
+
useGetPDPShowNotify: ao
|
|
119
|
+
}, Symbol.toStringTag, { value: "Module" })), Pe = Promise.resolve(!1), cr = {
|
|
105
120
|
id: "",
|
|
106
121
|
isOpen: !1,
|
|
107
122
|
items: [],
|
|
@@ -129,7 +144,7 @@ const Bt = Ne(
|
|
|
129
144
|
insertProfileEmail: () => Pe,
|
|
130
145
|
setRecentlyAddedProducts: () => {
|
|
131
146
|
}
|
|
132
|
-
},
|
|
147
|
+
}, _o = (t, e) => {
|
|
133
148
|
if (!t || t.length === 0)
|
|
134
149
|
return [];
|
|
135
150
|
let o = "";
|
|
@@ -139,7 +154,7 @@ const Bt = Ne(
|
|
|
139
154
|
n && (o += (o ? "/" : "") + n, a.push(o));
|
|
140
155
|
}
|
|
141
156
|
return a;
|
|
142
|
-
},
|
|
157
|
+
}, ho = (t) => {
|
|
143
158
|
const {
|
|
144
159
|
availability: e,
|
|
145
160
|
additionalInfo: { brandName: o },
|
|
@@ -156,19 +171,19 @@ const Bt = Ne(
|
|
|
156
171
|
productCategories: _,
|
|
157
172
|
productCategoryIds: h,
|
|
158
173
|
productId: v,
|
|
159
|
-
refId:
|
|
174
|
+
refId: g,
|
|
160
175
|
seller: y,
|
|
161
|
-
referenceId:
|
|
176
|
+
referenceId: A,
|
|
162
177
|
offerings: p,
|
|
163
|
-
productRefId:
|
|
178
|
+
productRefId: m,
|
|
164
179
|
skuName: E,
|
|
165
180
|
sellingPrice: P
|
|
166
181
|
} = t;
|
|
167
182
|
return {
|
|
168
183
|
availability: e,
|
|
169
184
|
bundleItems: a,
|
|
170
|
-
referenceId:
|
|
171
|
-
productRefId:
|
|
185
|
+
referenceId: A,
|
|
186
|
+
productRefId: m,
|
|
172
187
|
id: s,
|
|
173
188
|
ean: n,
|
|
174
189
|
itemOffered: {
|
|
@@ -176,9 +191,9 @@ const Bt = Ne(
|
|
|
176
191
|
brand: {
|
|
177
192
|
name: o
|
|
178
193
|
},
|
|
179
|
-
categories:
|
|
194
|
+
categories: _o(h, _),
|
|
180
195
|
categoriesIds: h,
|
|
181
|
-
gtin:
|
|
196
|
+
gtin: g,
|
|
182
197
|
image: [
|
|
183
198
|
{
|
|
184
199
|
alternateName: "1",
|
|
@@ -202,14 +217,14 @@ const Bt = Ne(
|
|
|
202
217
|
sellingPrice: P,
|
|
203
218
|
seller: y
|
|
204
219
|
};
|
|
205
|
-
},
|
|
220
|
+
}, go = (t, e) => {
|
|
206
221
|
const o = t.map((a) => ({
|
|
207
222
|
id: a.id,
|
|
208
223
|
quantity: a.quantity,
|
|
209
224
|
seller: a.seller
|
|
210
225
|
}));
|
|
211
226
|
return Array.isArray(e) ? [...o, ...e] : [...o, e];
|
|
212
|
-
},
|
|
227
|
+
}, mo = (t, e) => {
|
|
213
228
|
const o = t.find((a) => a.id === e);
|
|
214
229
|
if (o) {
|
|
215
230
|
const a = t.map((s, r) => {
|
|
@@ -227,7 +242,7 @@ const Bt = Ne(
|
|
|
227
242
|
};
|
|
228
243
|
}
|
|
229
244
|
return { updateItems: [], filterItems: [] };
|
|
230
|
-
},
|
|
245
|
+
}, Eo = (t, e, o) => t.filter(
|
|
231
246
|
(a) => a.availability !== "withoutStock" && a.availability !== "https://schema.org/OutOfStock"
|
|
232
247
|
).map(
|
|
233
248
|
(a, s) => {
|
|
@@ -246,7 +261,7 @@ const Bt = Ne(
|
|
|
246
261
|
sku: ((n = a.itemOffered) == null ? void 0 : n.sku) ?? ""
|
|
247
262
|
};
|
|
248
263
|
}
|
|
249
|
-
),
|
|
264
|
+
), yo = (t) => {
|
|
250
265
|
const {
|
|
251
266
|
items: e,
|
|
252
267
|
itemMetadata: o,
|
|
@@ -261,7 +276,7 @@ const Bt = Ne(
|
|
|
261
276
|
return {
|
|
262
277
|
id: r,
|
|
263
278
|
itemMetadata: o,
|
|
264
|
-
items: Array.isArray(e) ? e.map(
|
|
279
|
+
items: Array.isArray(e) ? e.map(ho) : [],
|
|
265
280
|
marketingData: a,
|
|
266
281
|
messages: s,
|
|
267
282
|
openTextField: n,
|
|
@@ -269,10 +284,10 @@ const Bt = Ne(
|
|
|
269
284
|
shippingData: u,
|
|
270
285
|
totalizers: l
|
|
271
286
|
};
|
|
272
|
-
},
|
|
287
|
+
}, vo = (t, e) => {
|
|
273
288
|
const o = t.find((a) => a.id === e);
|
|
274
289
|
return o ? o.availability === "unavailableItemFulfillment" : !1;
|
|
275
|
-
},
|
|
290
|
+
}, Ro = (t, e) => e && Array.isArray(e) && e.find((a) => a.id === t) ? Promise.resolve(t) : Promise.resolve(!1), bo = (t, e) => e ? Promise.resolve(t[e]) : Promise.resolve(!1), Po = async (t) => {
|
|
276
291
|
try {
|
|
277
292
|
const e = await t();
|
|
278
293
|
if (typeof e != "boolean")
|
|
@@ -281,35 +296,36 @@ const Bt = Ne(
|
|
|
281
296
|
console.error(`[Error orderForm]: ${e}`);
|
|
282
297
|
}
|
|
283
298
|
return !1;
|
|
284
|
-
},
|
|
299
|
+
}, Oo = (t, e) => Array.isArray(t) ? t.filter(
|
|
285
300
|
(o) => e == null ? void 0 : e.some((a) => a.id === o.id)
|
|
286
|
-
) : [],
|
|
301
|
+
) : [], So = async (t, e) => t.then((o) => [...o ?? [], ...e ?? []]), Ee = async (t, e, o) => {
|
|
287
302
|
const { priority: a = "auto", body: s } = e;
|
|
288
|
-
return
|
|
303
|
+
return fetch(t, {
|
|
289
304
|
// priority,
|
|
290
305
|
headers: {
|
|
291
306
|
"Content-Type": "application/json"
|
|
292
307
|
},
|
|
308
|
+
priority: a,
|
|
293
309
|
method: "POST",
|
|
294
310
|
body: JSON.stringify(s)
|
|
295
311
|
}).then(async (r) => {
|
|
296
312
|
const n = await r.json();
|
|
297
|
-
return o ? n :
|
|
313
|
+
return o ? n : yo(n);
|
|
298
314
|
});
|
|
299
|
-
},
|
|
315
|
+
}, Co = (t, e, o) => ({
|
|
300
316
|
notifications: [
|
|
301
317
|
...t.notifications,
|
|
302
318
|
{ id: Date.now(), message: e, callback: o }
|
|
303
319
|
]
|
|
304
|
-
}),
|
|
305
|
-
const t = async (c, _) =>
|
|
320
|
+
}), Ao = () => {
|
|
321
|
+
const t = async (c, _) => Ee("/api/checkout/order-form/coupon", {
|
|
306
322
|
body: {
|
|
307
323
|
orderFormId: c,
|
|
308
324
|
coupon: _
|
|
309
325
|
}
|
|
310
326
|
}), e = async (c, _) => {
|
|
311
327
|
if (_) {
|
|
312
|
-
const h = _.includes(" - ") ? _.split(" - ")[0] : _, v = await
|
|
328
|
+
const h = _.includes(" - ") ? _.split(" - ")[0] : _, v = await Ee(
|
|
313
329
|
"/api/checkout/order-form/seller-code",
|
|
314
330
|
{
|
|
315
331
|
body: {
|
|
@@ -319,75 +335,75 @@ const Bt = Ne(
|
|
|
319
335
|
},
|
|
320
336
|
!0
|
|
321
337
|
);
|
|
322
|
-
return
|
|
338
|
+
return Ee("/api/checkout/order-form/attachments", {
|
|
323
339
|
body: {
|
|
324
340
|
orderFormId: c,
|
|
325
341
|
sellerCode: h,
|
|
326
342
|
sellerName: v instanceof Object && "nome" in v ? v == null ? void 0 : v.nome : ""
|
|
327
343
|
}
|
|
328
|
-
}).then((
|
|
329
|
-
...
|
|
344
|
+
}).then((g) => ({
|
|
345
|
+
...g,
|
|
330
346
|
openTextField: {
|
|
331
|
-
...(
|
|
347
|
+
...(g == null ? void 0 : g.openTextField) ?? {},
|
|
332
348
|
statusOk: (v == null ? void 0 : v.status) ?? !1
|
|
333
349
|
}
|
|
334
350
|
}));
|
|
335
351
|
} else
|
|
336
|
-
return
|
|
352
|
+
return Ee("/api/checkout/order-form/attachments", {
|
|
337
353
|
body: {
|
|
338
354
|
orderFormId: c,
|
|
339
355
|
sellerCode: "",
|
|
340
356
|
sellerName: ""
|
|
341
357
|
}
|
|
342
358
|
});
|
|
343
|
-
}, o = async (c, _, h) =>
|
|
359
|
+
}, o = async (c, _, h) => Ee("/api/checkout/order-form/items", {
|
|
344
360
|
body: {
|
|
345
361
|
orderFormId: c,
|
|
346
|
-
orderItems:
|
|
362
|
+
orderItems: go(_, h)
|
|
347
363
|
}
|
|
348
|
-
}), a = async (c, _, h, v) =>
|
|
364
|
+
}), a = async (c, _, h, v) => Ee("/api/checkout/order-form/offerings", {
|
|
349
365
|
body: {
|
|
350
366
|
id: _,
|
|
351
367
|
itemIndex: h,
|
|
352
368
|
orderFormId: c,
|
|
353
369
|
remove: v
|
|
354
370
|
}
|
|
355
|
-
}), s = async (c) =>
|
|
371
|
+
}), s = async (c) => Ee("/api/checkout/order-form/items/remove-all", {
|
|
356
372
|
body: { orderFormId: c }
|
|
357
|
-
}), r = async (c, _ = "low") =>
|
|
373
|
+
}), r = async (c, _ = "low") => Ee("/api/checkout/order-form", {
|
|
358
374
|
priority: _,
|
|
359
375
|
body: { orderFormId: c ?? "" }
|
|
360
|
-
}), n = async (c, _) =>
|
|
376
|
+
}), n = async (c, _) => Ee("/api/checkout/order-form/profile", {
|
|
361
377
|
body: {
|
|
362
378
|
orderFormId: c,
|
|
363
379
|
email: _
|
|
364
380
|
}
|
|
365
381
|
}), i = async (c, _, h) => {
|
|
366
|
-
const v =
|
|
367
|
-
return
|
|
382
|
+
const v = mo(_, h);
|
|
383
|
+
return Ee("/api/checkout/order-form/items/update", {
|
|
368
384
|
body: {
|
|
369
385
|
orderItems: v.updateItems,
|
|
370
386
|
orderFormId: c
|
|
371
387
|
}
|
|
372
388
|
});
|
|
373
|
-
}, u = async (c, _, h) =>
|
|
389
|
+
}, u = async (c, _, h) => Ee("/api/checkout/order-form/shipping", {
|
|
374
390
|
body: {
|
|
375
391
|
orderFormId: c,
|
|
376
392
|
country: h,
|
|
377
393
|
postalCode: _
|
|
378
394
|
}
|
|
379
|
-
}), l = async (c, _, h) =>
|
|
395
|
+
}), l = async (c, _, h) => Ee("/api/checkout/order-form/shipping/update", {
|
|
380
396
|
body: {
|
|
381
397
|
orderFormId: c,
|
|
382
398
|
options: _,
|
|
383
399
|
selectedAddresses: h
|
|
384
400
|
}
|
|
385
401
|
}), f = async (c, _, h, v) => {
|
|
386
|
-
const
|
|
387
|
-
return
|
|
402
|
+
const g = Eo(_, h, v);
|
|
403
|
+
return Ee("/api/checkout/order-form/items/update", {
|
|
388
404
|
body: {
|
|
389
405
|
orderFormId: c,
|
|
390
|
-
orderItems:
|
|
406
|
+
orderItems: g
|
|
391
407
|
}
|
|
392
408
|
});
|
|
393
409
|
};
|
|
@@ -402,29 +418,29 @@ const Bt = Ne(
|
|
|
402
418
|
removeItem: i,
|
|
403
419
|
shipping: u,
|
|
404
420
|
shippingUpdate: l,
|
|
405
|
-
updateItemQuantity: async (c, _, h, v,
|
|
421
|
+
updateItemQuantity: async (c, _, h, v, g) => f(
|
|
406
422
|
c,
|
|
407
423
|
_,
|
|
408
424
|
h,
|
|
409
425
|
v
|
|
410
|
-
).then((y) => y && Array.isArray(y.items) ?
|
|
426
|
+
).then((y) => y && Array.isArray(y.items) ? vo(y.items, h) ? f(
|
|
411
427
|
c,
|
|
412
428
|
_,
|
|
413
429
|
h,
|
|
414
|
-
|
|
430
|
+
g
|
|
415
431
|
) : y : !1)
|
|
416
432
|
};
|
|
417
|
-
},
|
|
418
|
-
const o =
|
|
433
|
+
}, lr = "soma::cart", xe = "soma::options", Ft = Ke((t, e) => {
|
|
434
|
+
const o = Ao(), a = async (s, r, n) => {
|
|
419
435
|
t({ loading: !0 });
|
|
420
|
-
const i = await
|
|
436
|
+
const i = await Po(s);
|
|
421
437
|
if (typeof i != "boolean") {
|
|
422
438
|
t({ ...i });
|
|
423
|
-
const u = await
|
|
424
|
-
|
|
439
|
+
const u = await So(
|
|
440
|
+
ot(xe),
|
|
425
441
|
n
|
|
426
442
|
);
|
|
427
|
-
return
|
|
443
|
+
return it(xe, u), bo(i, r).finally(
|
|
428
444
|
() => t({ loading: !1, options: u })
|
|
429
445
|
);
|
|
430
446
|
}
|
|
@@ -433,10 +449,10 @@ const Bt = Ne(
|
|
|
433
449
|
if (typeof window < "u") {
|
|
434
450
|
const s = async (r) => {
|
|
435
451
|
if (r) {
|
|
436
|
-
const n = await
|
|
437
|
-
(l) =>
|
|
452
|
+
const n = await ot(xe).then(
|
|
453
|
+
(l) => Oo(l, r.items)
|
|
438
454
|
);
|
|
439
|
-
|
|
455
|
+
it(lr, r), it(xe, n), t({ ...r, options: n });
|
|
440
456
|
const i = new URLSearchParams(window.location.search), u = i.get("utm_campaign") || i.get("utmi_campaign") || "";
|
|
441
457
|
u && a(
|
|
442
458
|
() => o.addSellerCode(e().id, u.toUpperCase()),
|
|
@@ -444,11 +460,11 @@ const Bt = Ne(
|
|
|
444
460
|
);
|
|
445
461
|
}
|
|
446
462
|
};
|
|
447
|
-
return
|
|
463
|
+
return ot(lr).then(
|
|
448
464
|
(r) => o.getOrderForm(r ? r.id : "").then(s)
|
|
449
465
|
// create form
|
|
450
466
|
), {
|
|
451
|
-
...
|
|
467
|
+
...cr,
|
|
452
468
|
// coupon
|
|
453
469
|
addCoupon: async (r) => a(
|
|
454
470
|
() => o.addCoupon(e().id, r),
|
|
@@ -478,7 +494,7 @@ const Bt = Ne(
|
|
|
478
494
|
// remove item by quantity = 0
|
|
479
495
|
"items"
|
|
480
496
|
);
|
|
481
|
-
return
|
|
497
|
+
return Ro(r, n);
|
|
482
498
|
},
|
|
483
499
|
// shipping
|
|
484
500
|
shipping: async (r, n = "BR") => a(
|
|
@@ -528,29 +544,29 @@ const Bt = Ne(
|
|
|
528
544
|
setIsOpen: (r) => t({ isOpen: r })
|
|
529
545
|
};
|
|
530
546
|
}
|
|
531
|
-
return
|
|
547
|
+
return cr;
|
|
532
548
|
});
|
|
533
|
-
|
|
549
|
+
Ke((t) => ({
|
|
534
550
|
notifications: [],
|
|
535
551
|
actions: {
|
|
536
552
|
addNotification: (e, o) => t(
|
|
537
|
-
(a) =>
|
|
553
|
+
(a) => Co(a, e, o)
|
|
538
554
|
),
|
|
539
555
|
removeNotification: (e) => t((o) => ({
|
|
540
556
|
notifications: o.notifications.filter((a) => a.id !== e)
|
|
541
557
|
}))
|
|
542
558
|
}
|
|
543
559
|
}));
|
|
544
|
-
const
|
|
545
|
-
const { items: o } =
|
|
546
|
-
return
|
|
560
|
+
const Io = 6e3, wo = Ne({}), To = ({ children: t, ...e }) => {
|
|
561
|
+
const { items: o } = Ft(), [a, s] = Re([]), r = ye(null), n = or(() => Array.isArray(a) && a.length > 0 ? a.map((i) => o.find((u) => u.id === i.id)).filter((i) => i !== void 0) : [], [o, a]);
|
|
562
|
+
return Ae(() => {
|
|
547
563
|
a.length && (clearTimeout(r.current ?? 0), r.current = setTimeout(() => {
|
|
548
564
|
s([]);
|
|
549
|
-
},
|
|
565
|
+
}, Io));
|
|
550
566
|
}, [a]), /* @__PURE__ */ H(
|
|
551
|
-
|
|
567
|
+
wo.Provider,
|
|
552
568
|
{
|
|
553
|
-
value:
|
|
569
|
+
value: or(
|
|
554
570
|
() => ({
|
|
555
571
|
...e,
|
|
556
572
|
setRecentlyAdded: s,
|
|
@@ -562,10 +578,10 @@ const Oo = 6e3, So = Ne({}), Co = ({ children: t, ...e }) => {
|
|
|
562
578
|
}
|
|
563
579
|
);
|
|
564
580
|
};
|
|
565
|
-
class
|
|
581
|
+
class _n {
|
|
566
582
|
constructor() {
|
|
567
|
-
|
|
568
|
-
|
|
583
|
+
nt(this, "events", {});
|
|
584
|
+
nt(this, "prevData", {});
|
|
569
585
|
}
|
|
570
586
|
subscribe(e, o) {
|
|
571
587
|
return this.events[e] || (this.events[e] = []), this.events[e].push(o), () => {
|
|
@@ -578,8 +594,8 @@ class fn {
|
|
|
578
594
|
});
|
|
579
595
|
}
|
|
580
596
|
}
|
|
581
|
-
const
|
|
582
|
-
const [s, r] = Re(!0), n = o === "/", i =
|
|
597
|
+
const Yt = Ne({}), No = ({ children: t, headerConfigs: e, pathname: o, ...a }) => {
|
|
598
|
+
const [s, r] = Re(!0), n = o === "/", i = ye(new _n()), u = (d) => d ? {
|
|
583
599
|
headerVariant: e.home_default_variant,
|
|
584
600
|
bannerVariant: e.home_default_variant,
|
|
585
601
|
position: e.home_default_position
|
|
@@ -587,8 +603,8 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
587
603
|
headerVariant: e.default_variant,
|
|
588
604
|
bannerVariant: e.default_variant,
|
|
589
605
|
position: e.default_position
|
|
590
|
-
}, l = u(n), f =
|
|
591
|
-
return
|
|
606
|
+
}, l = u(n), f = ye(l);
|
|
607
|
+
return Ae(() => {
|
|
592
608
|
const d = () => {
|
|
593
609
|
const c = typeof (window == null ? void 0 : window.navigator) > "u" ? "" : navigator == null ? void 0 : navigator.userAgent, _ = window.innerWidth < 1024 || !!c.match(
|
|
594
610
|
/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i
|
|
@@ -596,7 +612,7 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
596
612
|
s !== _ && r(_);
|
|
597
613
|
};
|
|
598
614
|
return d(), window.addEventListener("resize", d, { passive: !0 }), () => window.removeEventListener("resize", d);
|
|
599
|
-
}, [s]),
|
|
615
|
+
}, [s]), Ae(() => {
|
|
600
616
|
const d = u(n);
|
|
601
617
|
i.current.publish(
|
|
602
618
|
"header:change_variant",
|
|
@@ -606,7 +622,7 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
606
622
|
d.position
|
|
607
623
|
), f.current = d;
|
|
608
624
|
}, [n]), /* @__PURE__ */ H(
|
|
609
|
-
|
|
625
|
+
Yt.Provider,
|
|
610
626
|
{
|
|
611
627
|
value: {
|
|
612
628
|
isMobile: s,
|
|
@@ -616,22 +632,22 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
616
632
|
pathname: o,
|
|
617
633
|
...a
|
|
618
634
|
},
|
|
619
|
-
children: /* @__PURE__ */ H(
|
|
635
|
+
children: /* @__PURE__ */ H(To, { children: t })
|
|
620
636
|
}
|
|
621
637
|
);
|
|
622
|
-
},
|
|
638
|
+
}, Jt = () => Ve(Yt), hn = (t, e = !0) => Intl.NumberFormat("pt-BR", {
|
|
623
639
|
style: "currency",
|
|
624
640
|
currency: "BRL",
|
|
625
641
|
minimumFractionDigits: e ? 2 : 0
|
|
626
|
-
}).format(t),
|
|
642
|
+
}).format(t), gn = ({ valueInCents: t, hasFree: e, freeTaxMessage: o }) => t === 0 ? e ? o : "R$ 0,00" : hn(t / 100), Zt = (t) => {
|
|
627
643
|
const [e, o] = t.split("-");
|
|
628
644
|
return { name: e.trim(), size: o ? o.trim() : "" };
|
|
629
|
-
},
|
|
645
|
+
}, er = (t) => {
|
|
630
646
|
if (!t)
|
|
631
647
|
return {};
|
|
632
648
|
const [e, o] = t.split("-");
|
|
633
649
|
return { color: e == null ? void 0 : e.trim(), size: o == null ? void 0 : o.trim() };
|
|
634
|
-
},
|
|
650
|
+
}, Do = (t) => {
|
|
635
651
|
const e = {
|
|
636
652
|
price: 0,
|
|
637
653
|
listPrice: 0,
|
|
@@ -663,7 +679,7 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
663
679
|
const i = {
|
|
664
680
|
name: n.name,
|
|
665
681
|
sku: n.itemId,
|
|
666
|
-
value: ((l = n.Tamanho) == null ? void 0 : l[0]) ??
|
|
682
|
+
value: ((l = n.Tamanho) == null ? void 0 : l[0]) ?? Zt(n.nameComplete ?? n.name).size,
|
|
667
683
|
available: !1,
|
|
668
684
|
sellerId: "",
|
|
669
685
|
sellerName: "",
|
|
@@ -680,50 +696,52 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
680
696
|
sizes: s,
|
|
681
697
|
allSizesAvailable: a
|
|
682
698
|
};
|
|
683
|
-
},
|
|
699
|
+
}, xo = (t) => t.find((e) => e.imageLabel === "10"), Lo = (t, e) => {
|
|
684
700
|
const o = /\/ids\/(\d+)\//, a = t.match(o);
|
|
685
701
|
return a ? t.replace(
|
|
686
702
|
`/${a[1]}/`,
|
|
687
703
|
`/${a[1]}-${e.width}-${e.height}/`
|
|
688
704
|
) : t;
|
|
689
|
-
},
|
|
705
|
+
}, Mo = (t, e) => {
|
|
690
706
|
const o = /\/ids\/(\d+)-(\d+)-(\d+)\//, a = t.match(o);
|
|
691
707
|
return a ? t.replace(
|
|
692
708
|
`/${a[1]}-${a[2]}-${a[3]}/`,
|
|
693
709
|
`/${a[1]}-${e.width}-${e.height}/`
|
|
694
710
|
) : t;
|
|
695
|
-
},
|
|
711
|
+
}, jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
696
712
|
__proto__: null,
|
|
697
|
-
formatPriceToCurrency:
|
|
698
|
-
freightParsePrice:
|
|
699
|
-
getColorAndSizeFromSkuName:
|
|
700
|
-
getSkuInfos:
|
|
701
|
-
getThumbImage:
|
|
702
|
-
resizingImg:
|
|
703
|
-
splitNameAndSizeFromFullName:
|
|
704
|
-
updatedResizedImg:
|
|
713
|
+
formatPriceToCurrency: hn,
|
|
714
|
+
freightParsePrice: gn,
|
|
715
|
+
getColorAndSizeFromSkuName: er,
|
|
716
|
+
getSkuInfos: Do,
|
|
717
|
+
getThumbImage: xo,
|
|
718
|
+
resizingImg: Lo,
|
|
719
|
+
splitNameAndSizeFromFullName: Zt,
|
|
720
|
+
updatedResizedImg: Mo
|
|
705
721
|
}, Symbol.toStringTag, { value: "Module" })), Ce = ({ event: t, data: e }) => {
|
|
706
722
|
const o = (window == null ? void 0 : window.dataLayer) || [];
|
|
707
723
|
e.ecommerce && o.push({
|
|
708
724
|
ecommerce: null
|
|
709
725
|
}), o.push({ ...t && { event: `custom_${t}` }, ...e });
|
|
710
|
-
},
|
|
726
|
+
}, ge = {
|
|
711
727
|
configs: {
|
|
712
728
|
PLP_FILTERS: [{ key: "", label: "", eventLabel: "", order: 0 }],
|
|
713
729
|
currency: "BRL",
|
|
714
730
|
categoryOff: "bazar",
|
|
715
|
-
storeUrl: "https://www.example.com"
|
|
731
|
+
storeUrl: "https://www.example.com",
|
|
732
|
+
MAIN_IMAGE: "1"
|
|
733
|
+
// Default main image identifier
|
|
716
734
|
},
|
|
717
735
|
productEvents: (t, e) => {
|
|
718
736
|
const { event: o, commonData: a, customData: s, promotionInfo: r, itemList: n, outsideEcommerceData: i } = t, { availableSizes: u, sizes: l, price: f } = a, d = {
|
|
719
737
|
...o === "view_item" ? {
|
|
720
|
-
currency:
|
|
738
|
+
currency: ge.configs.currency,
|
|
721
739
|
value: f,
|
|
722
|
-
grade_disponivel: u ?? (l ?
|
|
740
|
+
grade_disponivel: u ?? (l ? mn(l) : "")
|
|
723
741
|
} : {},
|
|
724
742
|
...o === "add_to_wishlist" || o === "remove_from_wishlist" ? {
|
|
725
743
|
value: f,
|
|
726
|
-
currency:
|
|
744
|
+
currency: ge.configs.currency
|
|
727
745
|
} : {}
|
|
728
746
|
}, c = Le({
|
|
729
747
|
data: a,
|
|
@@ -731,7 +749,8 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
731
749
|
...s,
|
|
732
750
|
...n,
|
|
733
751
|
...r
|
|
734
|
-
}
|
|
752
|
+
},
|
|
753
|
+
configs: ge.configs
|
|
735
754
|
});
|
|
736
755
|
Ce({
|
|
737
756
|
event: o,
|
|
@@ -752,13 +771,17 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
752
771
|
itemList: a,
|
|
753
772
|
outsideEcommerceData: s,
|
|
754
773
|
customData: r
|
|
755
|
-
} = t
|
|
774
|
+
} = t;
|
|
775
|
+
if (e.length === 0)
|
|
776
|
+
return;
|
|
777
|
+
const n = e.map(({ node: i }, u) => Le({
|
|
756
778
|
data: { ...i },
|
|
757
779
|
customData: {
|
|
758
780
|
...o,
|
|
759
781
|
index: u,
|
|
760
782
|
...r != null && r.item_list_name ? { item_list_name: r == null ? void 0 : r.item_list_name } : a
|
|
761
|
-
}
|
|
783
|
+
},
|
|
784
|
+
configs: ge.configs
|
|
762
785
|
}));
|
|
763
786
|
Ce({
|
|
764
787
|
event: "view_item_list",
|
|
@@ -784,33 +807,33 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
784
807
|
} = t;
|
|
785
808
|
let l = 0;
|
|
786
809
|
const f = o.map((d) => {
|
|
787
|
-
var v,
|
|
810
|
+
var v, g, y, A, p, m, E, P, O;
|
|
788
811
|
const c = s == null ? void 0 : s.find(
|
|
789
|
-
(
|
|
812
|
+
(w) => (d.productId ?? d.id) === w.productId
|
|
790
813
|
);
|
|
791
814
|
let _ = { ...n, ...i };
|
|
792
815
|
if (c) {
|
|
793
|
-
const
|
|
816
|
+
const w = yn(), T = vn(w, c);
|
|
794
817
|
T && (_ = {
|
|
795
818
|
..._,
|
|
796
819
|
...T
|
|
797
|
-
}), e === "add_to_cart" && (n || i) &&
|
|
798
|
-
persistedData:
|
|
820
|
+
}), e === "add_to_cart" && (n || i) && zt({
|
|
821
|
+
persistedData: w,
|
|
799
822
|
type: "add",
|
|
800
823
|
sku: (c == null ? void 0 : c.id) ?? (c == null ? void 0 : c.sku),
|
|
801
824
|
newData: {
|
|
802
825
|
promotionInfo: n,
|
|
803
826
|
itemList: i
|
|
804
827
|
}
|
|
805
|
-
}), e === "remove_from_cart" &&
|
|
806
|
-
persistedData:
|
|
828
|
+
}), e === "remove_from_cart" && zt({
|
|
829
|
+
persistedData: w,
|
|
807
830
|
type: "remove",
|
|
808
831
|
sku: (c == null ? void 0 : c.id) ?? (c == null ? void 0 : c.sku)
|
|
809
832
|
});
|
|
810
833
|
}
|
|
811
|
-
l += d.price ?? ((y = (
|
|
812
|
-
const h = (c == null ? void 0 : c.size) ??
|
|
813
|
-
(c == null ? void 0 : c.skuName) ?? (c == null ? void 0 : c.name) ?? ((
|
|
834
|
+
l += d.price ?? ((y = (g = (v = c == null ? void 0 : c.offers) == null ? void 0 : v.offers) == null ? void 0 : g[0]) == null ? void 0 : y.price) ?? 0;
|
|
835
|
+
const h = (c == null ? void 0 : c.size) ?? er(
|
|
836
|
+
(c == null ? void 0 : c.skuName) ?? (c == null ? void 0 : c.name) ?? ((A = d.itemOffered) == null ? void 0 : A.skuName)
|
|
814
837
|
).size;
|
|
815
838
|
return Le({
|
|
816
839
|
data: d,
|
|
@@ -823,8 +846,9 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
823
846
|
item_sku: (c == null ? void 0 : c.id) ?? (c == null ? void 0 : c.sku) ?? ((p = d.itemOffered) == null ? void 0 : p.sku),
|
|
824
847
|
quantity: (a == null ? void 0 : a.quantity) ?? d.quantity ?? 1,
|
|
825
848
|
item_variant2: h,
|
|
826
|
-
seller_id: (c == null ? void 0 : c.sellerId) ?? (c == null ? void 0 : c.seller) ?? ((O = (P = (E = (
|
|
827
|
-
}
|
|
849
|
+
seller_id: (c == null ? void 0 : c.sellerId) ?? (c == null ? void 0 : c.seller) ?? ((O = (P = (E = (m = c == null ? void 0 : c.offers) == null ? void 0 : m.offers) == null ? void 0 : E[0]) == null ? void 0 : P.seller) == null ? void 0 : O.identifier) ?? d.seller
|
|
850
|
+
},
|
|
851
|
+
configs: ge.configs
|
|
828
852
|
});
|
|
829
853
|
});
|
|
830
854
|
Ce({
|
|
@@ -833,7 +857,7 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
833
857
|
...u,
|
|
834
858
|
ecommerce: {
|
|
835
859
|
value: r ?? l,
|
|
836
|
-
currency:
|
|
860
|
+
currency: ge.configs.currency,
|
|
837
861
|
items: f
|
|
838
862
|
}
|
|
839
863
|
}
|
|
@@ -844,7 +868,7 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
844
868
|
const { commonData: e, customData: o, outsideEcommerceData: a } = t, s = {}, r = {};
|
|
845
869
|
Array.isArray(e == null ? void 0 : e.selectedFacets) && ((n = e == null ? void 0 : e.selectedFacets) != null && n.length) && ((e == null ? void 0 : e.selectedFacets).forEach(({ key: i, value: u }) => {
|
|
846
870
|
var d;
|
|
847
|
-
const l = ((d =
|
|
871
|
+
const l = ((d = ge.configs.PLP_FILTERS.find((c) => c.key === i)) == null ? void 0 : d.eventLabel) ?? i, f = (s == null ? void 0 : s[l]) || [];
|
|
848
872
|
l === "price_range" && u.replace(":", "-"), s[l] = [...f, u];
|
|
849
873
|
}), Object.keys(s).forEach((i) => r[i] = s[i].join(", "))), Ce({
|
|
850
874
|
event: "filter",
|
|
@@ -856,37 +880,38 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
856
880
|
});
|
|
857
881
|
},
|
|
858
882
|
viewCartEvent: (t) => {
|
|
859
|
-
var f, d, c, _, h, v,
|
|
883
|
+
var f, d, c, _, h, v, g, y, A, p;
|
|
860
884
|
const { commonData: e, outsideEcommerceData: o } = t, { cartStore: a } = e;
|
|
861
885
|
if (!a)
|
|
862
886
|
return;
|
|
863
|
-
const s = window.localStorage.getItem("persistedCartEventsData"), r = s ? JSON.parse(s) : {}, n = a.items.map((
|
|
864
|
-
const { promotionInfo: E, itemList: P } = r[
|
|
887
|
+
const s = window.localStorage.getItem("persistedCartEventsData"), r = s ? JSON.parse(s) : {}, n = a.items.map((m) => {
|
|
888
|
+
const { promotionInfo: E, itemList: P } = r[m.id] ?? {};
|
|
865
889
|
return Le({
|
|
866
890
|
data: {
|
|
867
|
-
...
|
|
868
|
-
price:
|
|
869
|
-
listPrice:
|
|
891
|
+
...m,
|
|
892
|
+
price: m.price / 100,
|
|
893
|
+
listPrice: m.listPrice / 100
|
|
870
894
|
},
|
|
871
895
|
customData: {
|
|
872
896
|
...E,
|
|
873
897
|
...P,
|
|
874
|
-
item_sku:
|
|
875
|
-
quantity:
|
|
876
|
-
}
|
|
898
|
+
item_sku: m.id ?? m.itemOffered.sku,
|
|
899
|
+
quantity: m.quantity ?? 1
|
|
900
|
+
},
|
|
901
|
+
configs: ge.configs
|
|
877
902
|
});
|
|
878
|
-
}), i = (((f = a.totalizers.find((
|
|
903
|
+
}), i = (((f = a.totalizers.find((m) => m.name === "Total dos Itens")) == null ? void 0 : f.value) ?? 0) / 100, u = (((d = a.totalizers.find((m) => m.name === "Total dos Descontos")) == null ? void 0 : d.value) ?? 0) / 100, l = ((c = a.marketingData) == null ? void 0 : c.utmiCampaign) === "codigodavendedora" ? (_ = a.marketingData) == null ? void 0 : _.utmCampaign : (v = String((h = a.openTextField) == null ? void 0 : h.value)) == null ? void 0 : v.split(" - ")[0];
|
|
879
904
|
Ce({
|
|
880
905
|
event: "view_cart",
|
|
881
906
|
data: {
|
|
882
907
|
...o,
|
|
883
908
|
ecommerce: {
|
|
884
|
-
currency:
|
|
909
|
+
currency: ge.configs.currency,
|
|
885
910
|
value: i + u,
|
|
886
911
|
total_discount: Math.abs(u),
|
|
887
|
-
cep_preenchido: !!((y = (
|
|
912
|
+
cep_preenchido: !!((y = (g = a.shippingData) == null ? void 0 : g.address) != null && y.postalCode),
|
|
888
913
|
...l ? { seller_coupon_name: l } : {},
|
|
889
|
-
...((
|
|
914
|
+
...((A = a.marketingData) == null ? void 0 : A.coupon) && {
|
|
890
915
|
sale_coupon_name: (p = a.marketingData) == null ? void 0 : p.coupon
|
|
891
916
|
},
|
|
892
917
|
subtotal: i,
|
|
@@ -904,28 +929,28 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
904
929
|
}
|
|
905
930
|
});
|
|
906
931
|
}
|
|
907
|
-
},
|
|
932
|
+
}, mn = (t) => t.reduce((e, o) => (o.available && e.push(o.value), e), []).toString(), ko = (t) => {
|
|
908
933
|
const e = t.length;
|
|
909
934
|
return {
|
|
910
935
|
...t && t.length > 0 ? {
|
|
911
|
-
item_category: t[0].includes(
|
|
936
|
+
item_category: t[0].includes(ge.configs.categoryOff) ? "Bazar" : "Coleção",
|
|
912
937
|
...t[1] ? { item_category2: t[1] } : {},
|
|
913
938
|
...e > 2 ? { item_category3: t[e - 1] } : {}
|
|
914
939
|
} : {}
|
|
915
940
|
};
|
|
916
|
-
}, Le = ({ data: t, customData: e }) => ({
|
|
917
|
-
...
|
|
918
|
-
...
|
|
919
|
-
|
|
920
|
-
...
|
|
941
|
+
}, Le = ({ data: t, customData: e, configs: o }) => ({
|
|
942
|
+
...Ho(t, o == null ? void 0 : o.MAIN_IMAGE),
|
|
943
|
+
...qo(t),
|
|
944
|
+
...$o(t),
|
|
945
|
+
...Uo(t),
|
|
921
946
|
...e
|
|
922
|
-
}),
|
|
947
|
+
}), En = () => {
|
|
923
948
|
var t, e;
|
|
924
949
|
return document ? ((e = (t = document.head.querySelector('meta[name="category"]')) == null ? void 0 : t.getAttribute("content")) == null ? void 0 : e.split("_")) ?? [] : [];
|
|
925
|
-
},
|
|
950
|
+
}, yn = () => {
|
|
926
951
|
const t = window.localStorage.getItem("persistedCartEventsData");
|
|
927
952
|
return t ? JSON.parse(t) : null;
|
|
928
|
-
},
|
|
953
|
+
}, vn = (t, e) => t == null ? void 0 : t[e], zt = ({
|
|
929
954
|
persistedData: t,
|
|
930
955
|
type: e,
|
|
931
956
|
sku: o,
|
|
@@ -943,24 +968,24 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
943
968
|
return;
|
|
944
969
|
}
|
|
945
970
|
t && e === "remove" && (delete t[o], window.localStorage.setItem("persistedCartEventsData", JSON.stringify(t)));
|
|
946
|
-
},
|
|
947
|
-
var
|
|
948
|
-
const
|
|
949
|
-
(
|
|
971
|
+
}, Ho = (t, e = "1") => {
|
|
972
|
+
var r, n, i, u, l, f, d, c, _, h, v;
|
|
973
|
+
const o = t.productReference ?? t.gtin ?? t.productRefId, a = t.image ?? ((n = (r = t.items) == null ? void 0 : r[0]) == null ? void 0 : n.images) ?? ((i = t.itemOffered) == null ? void 0 : i.image), s = a == null ? void 0 : a.find(
|
|
974
|
+
(g) => g.alternateName === e || g.imageLabel === e || g.keywords === e
|
|
950
975
|
);
|
|
951
976
|
return {
|
|
952
|
-
item_id: t.productId ?? ((
|
|
953
|
-
item_ref: /_\d$/.test(
|
|
954
|
-
item_name: t.productTitle ?? t.productName ?? t.name ??
|
|
955
|
-
item_brand: ((
|
|
956
|
-
item_url: `${
|
|
957
|
-
item_image: (
|
|
977
|
+
item_id: t.productId ?? ((u = t.isVariantOf) == null ? void 0 : u.productGroupID) ?? ((l = t.isVariationOf) == null ? void 0 : l.productGroupID) ?? ((d = (f = t.itemOffered) == null ? void 0 : f.isVariationOf) == null ? void 0 : d.productGroupID),
|
|
978
|
+
item_ref: /_\d$/.test(o) ? o.slice(0, -2) : o,
|
|
979
|
+
item_name: t.productTitle ?? t.productName ?? t.name ?? Zt((c = t.itemOffered) == null ? void 0 : c.name).name,
|
|
980
|
+
item_brand: ((_ = t.brand) == null ? void 0 : _.brandName) ?? ((h = t.brand) == null ? void 0 : h.name) ?? t.brand ?? ((v = t.itemOffered) == null ? void 0 : v.brand.name),
|
|
981
|
+
item_url: `${ge.configs.storeUrl}${t.linkText}/p`,
|
|
982
|
+
item_image: (s == null ? void 0 : s.url) ?? (s == null ? void 0 : s.imageUrl)
|
|
958
983
|
};
|
|
959
|
-
},
|
|
984
|
+
}, fr = (t) => Array.isArray(t) ? t.reduce((e, o) => (o.length > e.length && (e = o), e), "") : t, qo = (t) => {
|
|
960
985
|
var l, f;
|
|
961
|
-
const { categories: e, categoriesIds: o } = t, a = e ?? ((l = t.itemOffered) == null ? void 0 : l.categories), s = o ?? ((f = t.itemOffered) == null ? void 0 : f.categoriesIds), r =
|
|
986
|
+
const { categories: e, categoriesIds: o } = t, a = e ?? ((l = t.itemOffered) == null ? void 0 : l.categories), s = o ?? ((f = t.itemOffered) == null ? void 0 : f.categoriesIds), r = fr(a), n = fr(s), i = r.slice(1, -1).split("/"), u = n.slice(1, -1).split("/");
|
|
962
987
|
return {
|
|
963
|
-
item_category: i[0].toLowerCase().includes(
|
|
988
|
+
item_category: i[0].toLowerCase().includes(ge.configs.categoryOff) ? "Bazar" : "Coleção",
|
|
964
989
|
...i[1] && { item_category2: i[1] },
|
|
965
990
|
...i.length > 2 && {
|
|
966
991
|
item_category3: i[i.length - 1]
|
|
@@ -970,14 +995,14 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
970
995
|
item_parent_category_id: u[u.length - 2]
|
|
971
996
|
}
|
|
972
997
|
};
|
|
973
|
-
},
|
|
998
|
+
}, $o = (t) => {
|
|
974
999
|
var s, r, n, i, u, l;
|
|
975
|
-
const e = ((s = t.itemOffered) == null ? void 0 : s.skuName) ?? ((i = (n = (r = t.isVariantOf) == null ? void 0 : r.hasVariant) == null ? void 0 : n[0]) == null ? void 0 : i.name) ?? ((l = (u = t.items) == null ? void 0 : u[0]) == null ? void 0 : l.name), { color: o, size: a } =
|
|
1000
|
+
const e = ((s = t.itemOffered) == null ? void 0 : s.skuName) ?? ((i = (n = (r = t.isVariantOf) == null ? void 0 : r.hasVariant) == null ? void 0 : n[0]) == null ? void 0 : i.name) ?? ((l = (u = t.items) == null ? void 0 : u[0]) == null ? void 0 : l.name), { color: o, size: a } = er(e);
|
|
976
1001
|
return {
|
|
977
1002
|
item_variant: o,
|
|
978
1003
|
...t.itemOffered && { item_variant2: a }
|
|
979
1004
|
};
|
|
980
|
-
},
|
|
1005
|
+
}, Uo = (t) => {
|
|
981
1006
|
var u, l;
|
|
982
1007
|
const { price: e, listPrice: o, installments: a } = t, s = e ?? ((u = t.offers) == null ? void 0 : u.lowPrice) ?? 0, r = o ?? ((l = t.offers) == null ? void 0 : l.highPrice) ?? 0, n = r ? r - s : 0, i = n % 1 === 0 ? n : Number(n.toFixed(2));
|
|
983
1008
|
return {
|
|
@@ -990,29 +1015,29 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
990
1015
|
installments: a == null ? void 0 : a.count,
|
|
991
1016
|
installment_value: a == null ? void 0 : a.value
|
|
992
1017
|
},
|
|
993
|
-
item_currency:
|
|
1018
|
+
item_currency: ge.configs.currency
|
|
994
1019
|
};
|
|
995
|
-
},
|
|
996
|
-
const [t, e] =
|
|
1020
|
+
}, Rn = () => {
|
|
1021
|
+
const [t, e] = En(), [o, a] = t.split("-"), s = o.includes("shop") || o.includes("sale") ? o : "";
|
|
997
1022
|
return {
|
|
998
1023
|
page_category: s && a ? a : "",
|
|
999
1024
|
page_departament: s,
|
|
1000
1025
|
id: e,
|
|
1001
1026
|
name: t
|
|
1002
1027
|
};
|
|
1003
|
-
},
|
|
1028
|
+
}, Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1004
1029
|
__proto__: null,
|
|
1005
|
-
eventsFunctions:
|
|
1006
|
-
findDataInPersistedData:
|
|
1007
|
-
getAvailablesSizes:
|
|
1008
|
-
getCategories:
|
|
1009
|
-
getPageCategoryAndDepartmentFromSlug:
|
|
1010
|
-
getPersistedData:
|
|
1011
|
-
getProductListInfoFromHead:
|
|
1030
|
+
eventsFunctions: ge,
|
|
1031
|
+
findDataInPersistedData: vn,
|
|
1032
|
+
getAvailablesSizes: mn,
|
|
1033
|
+
getCategories: ko,
|
|
1034
|
+
getPageCategoryAndDepartmentFromSlug: Rn,
|
|
1035
|
+
getPersistedData: yn,
|
|
1036
|
+
getProductListInfoFromHead: En,
|
|
1012
1037
|
pushDatalayer: Ce,
|
|
1013
|
-
updatePersistedData:
|
|
1014
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1015
|
-
const o =
|
|
1038
|
+
updatePersistedData: zt
|
|
1039
|
+
}, Symbol.toStringTag, { value: "Module" })), tr = Ne({}), zo = ({ children: t, evtFunctionsConfigs: e }) => {
|
|
1040
|
+
const o = ye({}), a = ye(null), s = ye(null), r = ye({}), n = ye({
|
|
1016
1041
|
trigger: !1,
|
|
1017
1042
|
index: 0
|
|
1018
1043
|
}), i = ({
|
|
@@ -1021,11 +1046,11 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
1021
1046
|
callBack: c,
|
|
1022
1047
|
timeout: _ = 100
|
|
1023
1048
|
}) => {
|
|
1024
|
-
window.dataLayer || (window.dataLayer = []),
|
|
1049
|
+
window.dataLayer || (window.dataLayer = []), ge.configs = e;
|
|
1025
1050
|
try {
|
|
1026
|
-
typeof
|
|
1051
|
+
typeof ge[f] == "function" && setTimeout(() => {
|
|
1027
1052
|
var h;
|
|
1028
|
-
d.promotionInfo = o.current, (h = s.current) != null && h.item_list_name && (d.itemList = s.current),
|
|
1053
|
+
d.promotionInfo = o.current, (h = s.current) != null && h.item_list_name && (d.itemList = s.current), ge[f](d, c);
|
|
1029
1054
|
}, _);
|
|
1030
1055
|
} catch (h) {
|
|
1031
1056
|
Ce({
|
|
@@ -1066,7 +1091,7 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
1066
1091
|
});
|
|
1067
1092
|
};
|
|
1068
1093
|
return /* @__PURE__ */ H(
|
|
1069
|
-
|
|
1094
|
+
tr.Provider,
|
|
1070
1095
|
{
|
|
1071
1096
|
value: {
|
|
1072
1097
|
sendDataLayerEvent: i,
|
|
@@ -1081,42 +1106,42 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
1081
1106
|
children: t
|
|
1082
1107
|
}
|
|
1083
1108
|
);
|
|
1084
|
-
},
|
|
1109
|
+
}, Qe = () => Ve(tr), ts = {
|
|
1085
1110
|
contexts: {
|
|
1086
1111
|
pdp: {
|
|
1087
|
-
context:
|
|
1088
|
-
hook:
|
|
1089
|
-
provider:
|
|
1112
|
+
context: Wt,
|
|
1113
|
+
hook: eo,
|
|
1114
|
+
provider: Zn
|
|
1090
1115
|
},
|
|
1091
1116
|
cms: {
|
|
1092
1117
|
FlagsAndTags: {
|
|
1093
|
-
context:
|
|
1094
|
-
provider:
|
|
1095
|
-
hook:
|
|
1118
|
+
context: Kt,
|
|
1119
|
+
provider: Yn,
|
|
1120
|
+
hook: Jn
|
|
1096
1121
|
}
|
|
1097
1122
|
},
|
|
1098
1123
|
global: {
|
|
1099
|
-
context:
|
|
1100
|
-
provider:
|
|
1101
|
-
hook:
|
|
1102
|
-
mediator:
|
|
1124
|
+
context: Yt,
|
|
1125
|
+
provider: No,
|
|
1126
|
+
hook: Jt,
|
|
1127
|
+
mediator: _n
|
|
1103
1128
|
},
|
|
1104
1129
|
events: {
|
|
1105
|
-
context:
|
|
1106
|
-
provider:
|
|
1107
|
-
hook:
|
|
1130
|
+
context: tr,
|
|
1131
|
+
provider: zo,
|
|
1132
|
+
hook: Qe
|
|
1108
1133
|
}
|
|
1109
1134
|
},
|
|
1110
1135
|
hooks: {
|
|
1111
|
-
useBackPDC:
|
|
1136
|
+
useBackPDC: un
|
|
1112
1137
|
},
|
|
1113
1138
|
stores: {
|
|
1114
|
-
pdp:
|
|
1139
|
+
pdp: po
|
|
1115
1140
|
}
|
|
1116
|
-
},
|
|
1141
|
+
}, dr = be.object({
|
|
1117
1142
|
country: be.string().length(3, "Country code must be 3 characters long").required("Country is required"),
|
|
1118
1143
|
postalCode: be.string().nullable()
|
|
1119
|
-
}),
|
|
1144
|
+
}), Xo = [
|
|
1120
1145
|
"allowManualPrice",
|
|
1121
1146
|
"canEditData",
|
|
1122
1147
|
"checkedInPickupPointId",
|
|
@@ -1138,7 +1163,7 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
1138
1163
|
"subscriptionData",
|
|
1139
1164
|
"userProfileId",
|
|
1140
1165
|
"userType"
|
|
1141
|
-
],
|
|
1166
|
+
], Go = (t, e) => (e.forEach((o) => delete t[o]), t), Bo = async (t, e = {}) => {
|
|
1142
1167
|
const { method: o = "GET", body: a, headers: s = {}, skipSanitize: r = !1 } = e;
|
|
1143
1168
|
try {
|
|
1144
1169
|
const n = await fetch(t, {
|
|
@@ -1151,22 +1176,22 @@ const Kt = Ne({}), wo = ({ children: t, headerConfigs: e, pathname: o, ...a }) =
|
|
|
1151
1176
|
...a ? { body: JSON.stringify(a) } : {}
|
|
1152
1177
|
// not body in get
|
|
1153
1178
|
}).then((i) => i.json());
|
|
1154
|
-
return r ? n :
|
|
1179
|
+
return r ? n : Go(n, Xo);
|
|
1155
1180
|
} catch (n) {
|
|
1156
1181
|
throw console.error("[ERROR FETCH ORDER]", n), n;
|
|
1157
1182
|
}
|
|
1158
|
-
},
|
|
1183
|
+
}, Vo = be.object({
|
|
1159
1184
|
id: be.string().required("ID of SKU is required"),
|
|
1160
1185
|
quantity: be.number().integer().required("Quantity of item is required"),
|
|
1161
1186
|
seller: be.string()
|
|
1162
|
-
}),
|
|
1163
|
-
items: be.array().of(
|
|
1164
|
-
country:
|
|
1165
|
-
postalCode:
|
|
1187
|
+
}), Ko = be.object({
|
|
1188
|
+
items: be.array().of(Vo),
|
|
1189
|
+
country: dr.fields.country,
|
|
1190
|
+
postalCode: dr.fields.postalCode,
|
|
1166
1191
|
geoCoordinates: be.array().nullable().of(be.number()).length(2)
|
|
1167
1192
|
});
|
|
1168
|
-
async function
|
|
1169
|
-
return await
|
|
1193
|
+
async function Wo({ apiUrl: t, body: e, options: o }) {
|
|
1194
|
+
return await Ko.validate(e), Bo(
|
|
1170
1195
|
`${t}/api/checkout/pub/orderForms/simulation`,
|
|
1171
1196
|
{
|
|
1172
1197
|
method: "POST",
|
|
@@ -1175,7 +1200,7 @@ async function Go({ apiUrl: t, body: e, options: o }) {
|
|
|
1175
1200
|
}
|
|
1176
1201
|
);
|
|
1177
1202
|
}
|
|
1178
|
-
function
|
|
1203
|
+
function bn(t) {
|
|
1179
1204
|
const o = decodeURIComponent(document.cookie).split(";");
|
|
1180
1205
|
for (const a of o) {
|
|
1181
1206
|
const [s, r] = a.trim().split("=");
|
|
@@ -1183,7 +1208,7 @@ function yn(t) {
|
|
|
1183
1208
|
return r;
|
|
1184
1209
|
}
|
|
1185
1210
|
}
|
|
1186
|
-
function
|
|
1211
|
+
function Pn(t, e, o = {}) {
|
|
1187
1212
|
const s = { ...{
|
|
1188
1213
|
path: "/",
|
|
1189
1214
|
// Set to 1 hour by default
|
|
@@ -1196,8 +1221,8 @@ function vn(t, e, o = {}) {
|
|
|
1196
1221
|
s[n] !== void 0 && (r += `; ${n}`, n === "expires" ? r += `=${s[n].toUTCString()}` : typeof s[n] == "boolean" ? r += `; ${s[n] ? "true" : "false"}` : r += `=${s[n]}`);
|
|
1197
1222
|
document.cookie = r;
|
|
1198
1223
|
}
|
|
1199
|
-
const
|
|
1200
|
-
function
|
|
1224
|
+
const Qo = (t) => t.normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/\s+/g, "-").toLowerCase().trim();
|
|
1225
|
+
function Yo(t, e = 1e3) {
|
|
1201
1226
|
let o = !1;
|
|
1202
1227
|
return (...a) => {
|
|
1203
1228
|
o || (t(...a), o = !0, setTimeout(() => {
|
|
@@ -1205,7 +1230,7 @@ function Vo(t, e = 1e3) {
|
|
|
1205
1230
|
}, e));
|
|
1206
1231
|
};
|
|
1207
1232
|
}
|
|
1208
|
-
function
|
|
1233
|
+
function Jo(t, e = 1e3) {
|
|
1209
1234
|
let o;
|
|
1210
1235
|
return (...a) => {
|
|
1211
1236
|
clearTimeout(o), o = setTimeout(() => {
|
|
@@ -1213,43 +1238,43 @@ function Ko(t, e = 1e3) {
|
|
|
1213
1238
|
}, e);
|
|
1214
1239
|
};
|
|
1215
1240
|
}
|
|
1216
|
-
const
|
|
1241
|
+
const Zo = (t, e) => e.getTime() > t.getTime() ? Math.abs(e.getTime() - t.getTime()) : 0, ei = (t, e) => Math.floor(e === "days" ? t / (1e3 * 60 * 60 * 24) : e === "hours" ? t % (1e3 * 60 * 60 * 24) / (1e3 * 60 * 60) : e === "minutes" ? t % (1e3 * 60 * 60) / (1e3 * 60) : t % (1e3 * 60) / 1e3), ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1217
1242
|
__proto__: null,
|
|
1218
|
-
debounce:
|
|
1219
|
-
getCookie:
|
|
1220
|
-
getDaysHoursMinutesSeconds:
|
|
1221
|
-
getMilliSeconds:
|
|
1222
|
-
removeAccentsAndReplaceSpaces:
|
|
1223
|
-
setCookie:
|
|
1224
|
-
throttle:
|
|
1225
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1226
|
-
events:
|
|
1227
|
-
product:
|
|
1228
|
-
utils:
|
|
1229
|
-
},
|
|
1230
|
-
helpers:
|
|
1243
|
+
debounce: Jo,
|
|
1244
|
+
getCookie: bn,
|
|
1245
|
+
getDaysHoursMinutesSeconds: ei,
|
|
1246
|
+
getMilliSeconds: Zo,
|
|
1247
|
+
removeAccentsAndReplaceSpaces: Qo,
|
|
1248
|
+
setCookie: Pn,
|
|
1249
|
+
throttle: Yo
|
|
1250
|
+
}, Symbol.toStringTag, { value: "Module" })), ri = {
|
|
1251
|
+
events: Fo,
|
|
1252
|
+
product: jo,
|
|
1253
|
+
utils: ti
|
|
1254
|
+
}, rs = {
|
|
1255
|
+
helpers: ri,
|
|
1231
1256
|
api: {
|
|
1232
1257
|
checkout: {
|
|
1233
|
-
freightSimulation:
|
|
1258
|
+
freightSimulation: Wo
|
|
1234
1259
|
}
|
|
1235
1260
|
}
|
|
1236
|
-
},
|
|
1237
|
-
base:
|
|
1238
|
-
configurationSchemaSet:
|
|
1239
|
-
configuration:
|
|
1240
|
-
schema:
|
|
1241
|
-
},
|
|
1261
|
+
}, ni = (t) => t, oi = (t) => t, ii = (t) => t, ai = (t) => t, Ie = {
|
|
1262
|
+
base: ai,
|
|
1263
|
+
configurationSchemaSet: ii,
|
|
1264
|
+
configuration: oi,
|
|
1265
|
+
schema: ni
|
|
1266
|
+
}, si = (t) => t, ui = (t) => ({
|
|
1242
1267
|
...t.uiWidget ? { "ui:widget": t.uiWidget } : {},
|
|
1243
1268
|
...t.uiObjectFieldTemplate ? { "ui:ObjectFieldTemplate": t.uiObjectFieldTemplate } : {}
|
|
1244
1269
|
}), ve = {
|
|
1245
|
-
property:
|
|
1246
|
-
widget:
|
|
1247
|
-
},
|
|
1270
|
+
property: si,
|
|
1271
|
+
widget: ui
|
|
1272
|
+
}, ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1248
1273
|
__proto__: null,
|
|
1249
1274
|
Common: ve,
|
|
1250
|
-
ContentType:
|
|
1275
|
+
ContentType: Ie
|
|
1251
1276
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1252
|
-
function
|
|
1277
|
+
function li(t) {
|
|
1253
1278
|
const e = {
|
|
1254
1279
|
value: ve.property({
|
|
1255
1280
|
type: "string",
|
|
@@ -1278,17 +1303,17 @@ function ai(t) {
|
|
|
1278
1303
|
title: "Cor do Ícone"
|
|
1279
1304
|
})
|
|
1280
1305
|
};
|
|
1281
|
-
return
|
|
1306
|
+
return Ie.base({
|
|
1282
1307
|
id: "flags_and_tags",
|
|
1283
1308
|
name: "Flags And Tags",
|
|
1284
1309
|
scopes: ["flags_and_tags"],
|
|
1285
1310
|
configurationSchemaSets: [
|
|
1286
|
-
|
|
1311
|
+
Ie.configurationSchemaSet({
|
|
1287
1312
|
name: "config",
|
|
1288
1313
|
configurations: [
|
|
1289
1314
|
{
|
|
1290
1315
|
name: "commercial",
|
|
1291
|
-
schema:
|
|
1316
|
+
schema: Ie.schema({
|
|
1292
1317
|
title: "Items - Commercial",
|
|
1293
1318
|
description: "Flags e Tags comerciais em Produtos",
|
|
1294
1319
|
type: "object",
|
|
@@ -1313,7 +1338,7 @@ function ai(t) {
|
|
|
1313
1338
|
},
|
|
1314
1339
|
{
|
|
1315
1340
|
name: "institucional",
|
|
1316
|
-
schema:
|
|
1341
|
+
schema: Ie.schema({
|
|
1317
1342
|
title: "Items - Institucional",
|
|
1318
1343
|
description: "Flags e Tags comerciais em Produtos",
|
|
1319
1344
|
type: "object",
|
|
@@ -1338,7 +1363,7 @@ function ai(t) {
|
|
|
1338
1363
|
},
|
|
1339
1364
|
{
|
|
1340
1365
|
name: "flag_cart",
|
|
1341
|
-
schema:
|
|
1366
|
+
schema: Ie.schema({
|
|
1342
1367
|
title: "Flags Sacola",
|
|
1343
1368
|
description: "Flags da Sacola",
|
|
1344
1369
|
type: "object",
|
|
@@ -1357,7 +1382,7 @@ function ai(t) {
|
|
|
1357
1382
|
},
|
|
1358
1383
|
{
|
|
1359
1384
|
name: "flag_pdp",
|
|
1360
|
-
schema:
|
|
1385
|
+
schema: Ie.schema({
|
|
1361
1386
|
title: "Flag PDP",
|
|
1362
1387
|
description: "Flag Cashback PDP",
|
|
1363
1388
|
type: "object",
|
|
@@ -1369,34 +1394,34 @@ function ai(t) {
|
|
|
1369
1394
|
]
|
|
1370
1395
|
});
|
|
1371
1396
|
}
|
|
1372
|
-
const
|
|
1373
|
-
generateFlagsAndTags:
|
|
1374
|
-
},
|
|
1375
|
-
shippingFreight:
|
|
1376
|
-
shippingFreight__postalCodeGrid:
|
|
1377
|
-
shippingFreight__grid:
|
|
1378
|
-
shippingFreight__grid__title:
|
|
1379
|
-
shippingFreight__grid__remember:
|
|
1380
|
-
postalCodeContainer:
|
|
1381
|
-
deliveryStatusBar__tag:
|
|
1382
|
-
deliveryStatusBarError__tag:
|
|
1383
|
-
deliveryInfo:
|
|
1384
|
-
deliveryInfo__content:
|
|
1385
|
-
deliveryInfo__text:
|
|
1386
|
-
deliveryInfo__title:
|
|
1387
|
-
deliveryInfo__subtitle:
|
|
1388
|
-
deliveryInfo__tooltipIcon:
|
|
1389
|
-
deliveryInfo__tooltip:
|
|
1390
|
-
freightGrid:
|
|
1391
|
-
freightContainer:
|
|
1392
|
-
freightOption__content:
|
|
1393
|
-
freightOption__value:
|
|
1394
|
-
freightOption__title:
|
|
1395
|
-
freightOption__title_item:
|
|
1396
|
-
freightOption__paragraph:
|
|
1397
|
+
const fi = {
|
|
1398
|
+
generateFlagsAndTags: li
|
|
1399
|
+
}, ns = { ContentTypes: fi, Factories: ci, CMSApi: zn }, di = "_shippingFreight_6z8rf_6", pi = "_shippingFreight__postalCodeGrid_6z8rf_10", _i = "_shippingFreight__grid_6z8rf_14", hi = "_shippingFreight__grid__title_6z8rf_18", gi = "_shippingFreight__grid__remember_6z8rf_29", mi = "_postalCodeContainer_6z8rf_44", Ei = "_deliveryStatusBar__tag_6z8rf_49", yi = "_deliveryStatusBarError__tag_6z8rf_66", vi = "_deliveryInfo_6z8rf_74", Ri = "_deliveryInfo__content_6z8rf_78", bi = "_deliveryInfo__text_6z8rf_84", Pi = "_deliveryInfo__title_6z8rf_89", Oi = "_deliveryInfo__subtitle_6z8rf_99", Si = "_deliveryInfo__tooltipIcon_6z8rf_109", Ci = "_deliveryInfo__tooltip_6z8rf_109", Ai = "_freightGrid_6z8rf_148", Ii = "_freightContainer_6z8rf_155", wi = "_freightOption__content_6z8rf_160", Ti = "_freightOption__value_6z8rf_166", Ni = "_freightOption__title_6z8rf_177", Di = "_freightOption__title_item_6z8rf_181", xi = "_freightOption__paragraph_6z8rf_192", re = {
|
|
1400
|
+
shippingFreight: di,
|
|
1401
|
+
shippingFreight__postalCodeGrid: pi,
|
|
1402
|
+
shippingFreight__grid: _i,
|
|
1403
|
+
shippingFreight__grid__title: hi,
|
|
1404
|
+
shippingFreight__grid__remember: gi,
|
|
1405
|
+
postalCodeContainer: mi,
|
|
1406
|
+
deliveryStatusBar__tag: Ei,
|
|
1407
|
+
deliveryStatusBarError__tag: yi,
|
|
1408
|
+
deliveryInfo: vi,
|
|
1409
|
+
deliveryInfo__content: Ri,
|
|
1410
|
+
deliveryInfo__text: bi,
|
|
1411
|
+
deliveryInfo__title: Pi,
|
|
1412
|
+
deliveryInfo__subtitle: Oi,
|
|
1413
|
+
deliveryInfo__tooltipIcon: Si,
|
|
1414
|
+
deliveryInfo__tooltip: Ci,
|
|
1415
|
+
freightGrid: Ai,
|
|
1416
|
+
freightContainer: Ii,
|
|
1417
|
+
freightOption__content: wi,
|
|
1418
|
+
freightOption__value: Ti,
|
|
1419
|
+
freightOption__title: Ni,
|
|
1420
|
+
freightOption__title_item: Di,
|
|
1421
|
+
freightOption__paragraph: xi,
|
|
1397
1422
|
"input-modifier": "_input-modifier_6z8rf_207",
|
|
1398
1423
|
"freight--tooltip": "_freight--tooltip_6z8rf_227"
|
|
1399
|
-
},
|
|
1424
|
+
}, Li = ({
|
|
1400
1425
|
icon: t,
|
|
1401
1426
|
title: e,
|
|
1402
1427
|
subtitle: o,
|
|
@@ -1406,10 +1431,10 @@ const si = {
|
|
|
1406
1431
|
freightConfig: n,
|
|
1407
1432
|
toolTipZIndex: i
|
|
1408
1433
|
}) => {
|
|
1409
|
-
const [u, l] = Re(!1), f =
|
|
1434
|
+
const [u, l] = Re(!1), f = ye(null), d = () => l((c) => !c);
|
|
1410
1435
|
return /* @__PURE__ */ he("div", { className: re.deliveryInfo, ref: f, children: [
|
|
1411
1436
|
/* @__PURE__ */ H(
|
|
1412
|
-
|
|
1437
|
+
Ut.Root,
|
|
1413
1438
|
{
|
|
1414
1439
|
arrow: "bottom",
|
|
1415
1440
|
component: /* @__PURE__ */ H("div", { children: /* @__PURE__ */ H("p", { children: n.messages.select_size_tag }) }),
|
|
@@ -1425,7 +1450,7 @@ const si = {
|
|
|
1425
1450
|
}
|
|
1426
1451
|
),
|
|
1427
1452
|
/* @__PURE__ */ he("div", { className: re.deliveryInfo__content, children: [
|
|
1428
|
-
/* @__PURE__ */ H("div", { className: re.deliveryInfo__icon, children: /* @__PURE__ */ H(
|
|
1453
|
+
/* @__PURE__ */ H("div", { className: re.deliveryInfo__icon, children: /* @__PURE__ */ H(ir, { name: t, size: "medium" }) }),
|
|
1429
1454
|
/* @__PURE__ */ he("div", { className: re.deliveryInfo__text, children: [
|
|
1430
1455
|
/* @__PURE__ */ he("span", { className: re.deliveryInfo__title, children: [
|
|
1431
1456
|
e,
|
|
@@ -1445,7 +1470,7 @@ const si = {
|
|
|
1445
1470
|
"aria-label": "Mostrar descrição",
|
|
1446
1471
|
children: [
|
|
1447
1472
|
/* @__PURE__ */ H("span", { children: /* @__PURE__ */ H(
|
|
1448
|
-
|
|
1473
|
+
ir,
|
|
1449
1474
|
{
|
|
1450
1475
|
name: n.icons.feedback_help,
|
|
1451
1476
|
size: "small"
|
|
@@ -1457,13 +1482,13 @@ const si = {
|
|
|
1457
1482
|
)
|
|
1458
1483
|
] })
|
|
1459
1484
|
] });
|
|
1460
|
-
},
|
|
1485
|
+
}, Mi = ({ value: t, title: e, paragraph: o }) => /* @__PURE__ */ H("div", { className: re.freightOption, children: /* @__PURE__ */ he("div", { className: re.freightOption__content, children: [
|
|
1461
1486
|
/* @__PURE__ */ H("span", { className: re.freightOption__value, children: t }),
|
|
1462
|
-
/* @__PURE__ */ H("span", { className: re.freightOption__title, children: /* @__PURE__ */ H(
|
|
1487
|
+
/* @__PURE__ */ H("span", { className: re.freightOption__title, children: /* @__PURE__ */ H(ar.Root, { children: /* @__PURE__ */ he(ar.DivWrapper, { className: re.footer__item, children: [
|
|
1463
1488
|
/* @__PURE__ */ H("span", { className: re.freightOption__title_item, children: e }),
|
|
1464
1489
|
o && /* @__PURE__ */ H("span", { className: re.freightOption__paragraph, children: o })
|
|
1465
1490
|
] }) }) })
|
|
1466
|
-
] }) }),
|
|
1491
|
+
] }) }), ji = ({ children: t }) => /* @__PURE__ */ H("div", { className: re.freightContainer, children: t }), ki = ({ children: t }) => /* @__PURE__ */ H("div", { className: re.freightGrid, children: t }), Hi = ({ children: t }) => /* @__PURE__ */ H("div", { className: re.postalCodeContainer, children: t }), pr = ({
|
|
1467
1492
|
message: t,
|
|
1468
1493
|
seller: e = "",
|
|
1469
1494
|
size: o = "small",
|
|
@@ -1473,7 +1498,7 @@ const si = {
|
|
|
1473
1498
|
{
|
|
1474
1499
|
className: a ? re.deliveryStatusBarError : re.deliveryStatusBar,
|
|
1475
1500
|
children: /* @__PURE__ */ he(
|
|
1476
|
-
|
|
1501
|
+
Xn,
|
|
1477
1502
|
{
|
|
1478
1503
|
title: t,
|
|
1479
1504
|
className: a ? re.deliveryStatusBarError__tag : re.deliveryStatusBar__tag,
|
|
@@ -1486,10 +1511,10 @@ const si = {
|
|
|
1486
1511
|
}
|
|
1487
1512
|
)
|
|
1488
1513
|
}
|
|
1489
|
-
),
|
|
1514
|
+
), qi = (t) => {
|
|
1490
1515
|
const e = parseInt(t, 10);
|
|
1491
1516
|
return e === 1 ? `${e} dia` : `${e} dias`;
|
|
1492
|
-
},
|
|
1517
|
+
}, $i = (t) => {
|
|
1493
1518
|
var o, a, s;
|
|
1494
1519
|
const e = [];
|
|
1495
1520
|
return (s = (a = (o = t == null ? void 0 : t.logisticsInfo) == null ? void 0 : o[0]) == null ? void 0 : a.slas) == null || s.forEach((r) => {
|
|
@@ -1500,7 +1525,7 @@ const si = {
|
|
|
1500
1525
|
shippingEstimate: r.shippingEstimate
|
|
1501
1526
|
});
|
|
1502
1527
|
}), e;
|
|
1503
|
-
},
|
|
1528
|
+
}, Ui = ({
|
|
1504
1529
|
component: t,
|
|
1505
1530
|
parent: e,
|
|
1506
1531
|
top: o,
|
|
@@ -1511,9 +1536,9 @@ const si = {
|
|
|
1511
1536
|
toolTipZIndex: i = 999,
|
|
1512
1537
|
...u
|
|
1513
1538
|
}) => {
|
|
1514
|
-
const { isMobile: l } =
|
|
1515
|
-
return /* @__PURE__ */ H(
|
|
1516
|
-
|
|
1539
|
+
const { isMobile: l } = Jt();
|
|
1540
|
+
return /* @__PURE__ */ H(Vt, { children: l ? /* @__PURE__ */ H(
|
|
1541
|
+
Ut.Root,
|
|
1517
1542
|
{
|
|
1518
1543
|
arrow: "bottom",
|
|
1519
1544
|
component: /* @__PURE__ */ he("div", { ...u, ref: r, children: [
|
|
@@ -1531,7 +1556,7 @@ const si = {
|
|
|
1531
1556
|
parent: e
|
|
1532
1557
|
}
|
|
1533
1558
|
) : /* @__PURE__ */ H(
|
|
1534
|
-
|
|
1559
|
+
Ut.Root,
|
|
1535
1560
|
{
|
|
1536
1561
|
arrow: "bottom",
|
|
1537
1562
|
component: /* @__PURE__ */ he("div", { ...u, ref: r, children: [
|
|
@@ -1549,7 +1574,7 @@ const si = {
|
|
|
1549
1574
|
parent: e
|
|
1550
1575
|
}
|
|
1551
1576
|
) });
|
|
1552
|
-
},
|
|
1577
|
+
}, Fi = ({
|
|
1553
1578
|
onUpdateFreightItems: t,
|
|
1554
1579
|
sellerId: e,
|
|
1555
1580
|
size: o,
|
|
@@ -1562,13 +1587,13 @@ const si = {
|
|
|
1562
1587
|
toolTipZIndex: l
|
|
1563
1588
|
}) => {
|
|
1564
1589
|
var j, M, te, x;
|
|
1565
|
-
const f =
|
|
1590
|
+
const f = Ft(), d = Ft(($) => $.shipping), [c, _] = Re(), [h, v] = Re(!1), [g, y] = Re(!1), [A, p] = Re(!1), m = (M = (j = f.shippingData) == null ? void 0 : j.address) == null ? void 0 : M.postalCode, E = !(c != null && c.length) && m ? m : c, P = ye(null), O = async ($) => {
|
|
1566
1591
|
const oe = $.target.value.replace(/\D/g, "").slice(0, 8);
|
|
1567
1592
|
oe.length > 5 ? _(oe.replace(/^(\d{5})(\d{1,3})/, "$1-$2")) : _(oe);
|
|
1568
|
-
},
|
|
1593
|
+
}, w = async ($) => {
|
|
1569
1594
|
const G = $.target.value.replace(/\D/g, "");
|
|
1570
1595
|
try {
|
|
1571
|
-
if ((await
|
|
1596
|
+
if ((await ur.get(
|
|
1572
1597
|
`https://viacep.com.br/ws/${G}/json/`
|
|
1573
1598
|
)).data.erro) {
|
|
1574
1599
|
r && r(u.messages.cep_not_found), n(!1), y(!0);
|
|
@@ -1581,12 +1606,12 @@ const si = {
|
|
|
1581
1606
|
}, T = async () => {
|
|
1582
1607
|
v(!0);
|
|
1583
1608
|
try {
|
|
1584
|
-
const $ = await
|
|
1609
|
+
const $ = await ur.post("/api/checkout/simulation", {
|
|
1585
1610
|
items: [{ id: a, quantity: s, seller: e }],
|
|
1586
1611
|
country: "BRA",
|
|
1587
1612
|
postalCode: E
|
|
1588
1613
|
});
|
|
1589
|
-
t(
|
|
1614
|
+
t($i($.data));
|
|
1590
1615
|
} catch ($) {
|
|
1591
1616
|
console.error("Erro ao atualizar o documento:", $);
|
|
1592
1617
|
} finally {
|
|
@@ -1597,30 +1622,30 @@ const si = {
|
|
|
1597
1622
|
p(!0), setTimeout(() => p(!1), 1500);
|
|
1598
1623
|
return;
|
|
1599
1624
|
}
|
|
1600
|
-
await
|
|
1625
|
+
await w({
|
|
1601
1626
|
target: {
|
|
1602
1627
|
value: E
|
|
1603
1628
|
}
|
|
1604
1629
|
}), h || (T(), n(!0));
|
|
1605
1630
|
};
|
|
1606
1631
|
return /* @__PURE__ */ he("div", { ref: P, style: { position: "relative" }, children: [
|
|
1607
|
-
!a &&
|
|
1608
|
-
|
|
1632
|
+
!a && A ? /* @__PURE__ */ H(
|
|
1633
|
+
Ui,
|
|
1609
1634
|
{
|
|
1610
1635
|
component: i,
|
|
1611
|
-
isOpen:
|
|
1636
|
+
isOpen: A,
|
|
1612
1637
|
parent: P.current,
|
|
1613
1638
|
toolTipZIndex: l,
|
|
1614
1639
|
freightConfig: u
|
|
1615
1640
|
}
|
|
1616
|
-
) : /* @__PURE__ */ H(
|
|
1641
|
+
) : /* @__PURE__ */ H(Vt, {}),
|
|
1617
1642
|
/* @__PURE__ */ H("div", { style: { position: "relative" }, children: /* @__PURE__ */ H(
|
|
1618
|
-
|
|
1643
|
+
sr.Structure,
|
|
1619
1644
|
{
|
|
1620
1645
|
title: "structure",
|
|
1621
1646
|
style: { width: "100%" },
|
|
1622
1647
|
input: /* @__PURE__ */ H(
|
|
1623
|
-
|
|
1648
|
+
sr.Input,
|
|
1624
1649
|
{
|
|
1625
1650
|
defaultValue: (x = (te = f.shippingData) == null ? void 0 : te.address) == null ? void 0 : x.postalCode,
|
|
1626
1651
|
label: u.messages.text_input_label,
|
|
@@ -1635,25 +1660,25 @@ const si = {
|
|
|
1635
1660
|
$.key === "Enter" && C();
|
|
1636
1661
|
},
|
|
1637
1662
|
className: re["input-modifier"],
|
|
1638
|
-
feedback:
|
|
1663
|
+
feedback: g ? "error" : "none"
|
|
1639
1664
|
}
|
|
1640
1665
|
),
|
|
1641
|
-
right: /* @__PURE__ */ H(
|
|
1666
|
+
right: /* @__PURE__ */ H(Gn, { onClick: C, size: o, title: "button", children: h ? /* @__PURE__ */ H(Bn, { size: "small", indicatorColor: "#ffffff" }) : u.messages.text_input_btn })
|
|
1642
1667
|
}
|
|
1643
1668
|
) })
|
|
1644
1669
|
] });
|
|
1645
1670
|
};
|
|
1646
|
-
function
|
|
1671
|
+
function On(t) {
|
|
1647
1672
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
1648
1673
|
}
|
|
1649
|
-
var
|
|
1650
|
-
function
|
|
1674
|
+
var Xt = { exports: {} }, Se = {};
|
|
1675
|
+
function zi(t) {
|
|
1651
1676
|
return t && t.__esModule ? t : { default: t };
|
|
1652
1677
|
}
|
|
1653
|
-
Se._ =
|
|
1654
|
-
var Me = { exports: {} },
|
|
1655
|
-
function
|
|
1656
|
-
return
|
|
1678
|
+
Se._ = zi;
|
|
1679
|
+
var Me = { exports: {} }, at = {}, _r;
|
|
1680
|
+
function Sn() {
|
|
1681
|
+
return _r || (_r = 1, function(t) {
|
|
1657
1682
|
Object.defineProperty(t, "__esModule", {
|
|
1658
1683
|
value: !0
|
|
1659
1684
|
});
|
|
@@ -1709,20 +1734,20 @@ function bn() {
|
|
|
1709
1734
|
}
|
|
1710
1735
|
return n;
|
|
1711
1736
|
}
|
|
1712
|
-
}(
|
|
1737
|
+
}(at)), at;
|
|
1713
1738
|
}
|
|
1714
|
-
var
|
|
1715
|
-
function
|
|
1739
|
+
var st = {}, Ye = {};
|
|
1740
|
+
function Cn(t) {
|
|
1716
1741
|
if (typeof WeakMap != "function") return null;
|
|
1717
1742
|
var e = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap();
|
|
1718
|
-
return (
|
|
1743
|
+
return (Cn = function(a) {
|
|
1719
1744
|
return a ? o : e;
|
|
1720
1745
|
})(t);
|
|
1721
1746
|
}
|
|
1722
|
-
function
|
|
1747
|
+
function Xi(t, e) {
|
|
1723
1748
|
if (!e && t && t.__esModule) return t;
|
|
1724
1749
|
if (t === null || typeof t != "object" && typeof t != "function") return { default: t };
|
|
1725
|
-
var o =
|
|
1750
|
+
var o = Cn(e);
|
|
1726
1751
|
if (o && o.has(t)) return o.get(t);
|
|
1727
1752
|
var a = { __proto__: null }, s = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
1728
1753
|
for (var r in t)
|
|
@@ -1732,10 +1757,10 @@ function $i(t, e) {
|
|
|
1732
1757
|
}
|
|
1733
1758
|
return a.default = t, o && o.set(t, a), a;
|
|
1734
1759
|
}
|
|
1735
|
-
|
|
1736
|
-
var
|
|
1737
|
-
function
|
|
1738
|
-
return
|
|
1760
|
+
Ye._ = Xi;
|
|
1761
|
+
var hr;
|
|
1762
|
+
function An() {
|
|
1763
|
+
return hr || (hr = 1, function(t) {
|
|
1739
1764
|
Object.defineProperty(t, "__esModule", {
|
|
1740
1765
|
value: !0
|
|
1741
1766
|
});
|
|
@@ -1756,12 +1781,12 @@ function On() {
|
|
|
1756
1781
|
return n;
|
|
1757
1782
|
}
|
|
1758
1783
|
});
|
|
1759
|
-
const a = /* @__PURE__ */
|
|
1784
|
+
const a = /* @__PURE__ */ Ye._(Sn()), s = /https?|ftp|gopher|file/;
|
|
1760
1785
|
function r(u) {
|
|
1761
1786
|
let { auth: l, hostname: f } = u, d = u.protocol || "", c = u.pathname || "", _ = u.hash || "", h = u.query || "", v = !1;
|
|
1762
1787
|
l = l ? encodeURIComponent(l).replace(/%3A/i, ":") + "@" : "", u.host ? v = l + u.host : f && (v = l + (~f.indexOf(":") ? "[" + f + "]" : f), u.port && (v += ":" + u.port)), h && typeof h == "object" && (h = String(a.urlQueryToSearchParams(h)));
|
|
1763
|
-
let
|
|
1764
|
-
return d && !d.endsWith(":") && (d += ":"), u.slashes || (!d || s.test(d)) && v !== !1 ? (v = "//" + (v || ""), c && c[0] !== "/" && (c = "/" + c)) : v || (v = ""), _ && _[0] !== "#" && (_ = "#" + _),
|
|
1788
|
+
let g = u.search || h && "?" + h || "";
|
|
1789
|
+
return d && !d.endsWith(":") && (d += ":"), u.slashes || (!d || s.test(d)) && v !== !1 ? (v = "//" + (v || ""), c && c[0] !== "/" && (c = "/" + c)) : v || (v = ""), _ && _[0] !== "#" && (_ = "#" + _), g && g[0] !== "?" && (g = "?" + g), c = c.replace(/[?#]/g, encodeURIComponent), g = g.replace("#", "%23"), "" + d + v + c + g + _;
|
|
1765
1790
|
}
|
|
1766
1791
|
const n = [
|
|
1767
1792
|
"auth",
|
|
@@ -1782,11 +1807,11 @@ function On() {
|
|
|
1782
1807
|
n.includes(l) || console.warn("Unknown key passed via urlObject into url.format: " + l);
|
|
1783
1808
|
}), r(u);
|
|
1784
1809
|
}
|
|
1785
|
-
}(
|
|
1810
|
+
}(st)), st;
|
|
1786
1811
|
}
|
|
1787
|
-
var
|
|
1788
|
-
function
|
|
1789
|
-
return
|
|
1812
|
+
var ut = {}, gr;
|
|
1813
|
+
function Gi() {
|
|
1814
|
+
return gr || (gr = 1, function(t) {
|
|
1790
1815
|
Object.defineProperty(t, "__esModule", {
|
|
1791
1816
|
value: !0
|
|
1792
1817
|
}), Object.defineProperty(t, "omit", {
|
|
@@ -1801,16 +1826,16 @@ function Ui() {
|
|
|
1801
1826
|
a.includes(r) || (s[r] = o[r]);
|
|
1802
1827
|
}), s;
|
|
1803
1828
|
}
|
|
1804
|
-
}(
|
|
1829
|
+
}(ut)), ut;
|
|
1805
1830
|
}
|
|
1806
|
-
var
|
|
1807
|
-
function
|
|
1808
|
-
return
|
|
1831
|
+
var ct = {}, mr;
|
|
1832
|
+
function Je() {
|
|
1833
|
+
return mr || (mr = 1, function(t) {
|
|
1809
1834
|
Object.defineProperty(t, "__esModule", {
|
|
1810
1835
|
value: !0
|
|
1811
1836
|
});
|
|
1812
|
-
function e(
|
|
1813
|
-
for (var P in E) Object.defineProperty(
|
|
1837
|
+
function e(m, E) {
|
|
1838
|
+
for (var P in E) Object.defineProperty(m, P, {
|
|
1814
1839
|
enumerable: !0,
|
|
1815
1840
|
get: E[P]
|
|
1816
1841
|
});
|
|
@@ -1820,7 +1845,7 @@ function Qe() {
|
|
|
1820
1845
|
return h;
|
|
1821
1846
|
},
|
|
1822
1847
|
MiddlewareNotFoundError: function() {
|
|
1823
|
-
return
|
|
1848
|
+
return A;
|
|
1824
1849
|
},
|
|
1825
1850
|
MissingStaticPage: function() {
|
|
1826
1851
|
return y;
|
|
@@ -1829,7 +1854,7 @@ function Qe() {
|
|
|
1829
1854
|
return v;
|
|
1830
1855
|
},
|
|
1831
1856
|
PageNotFoundError: function() {
|
|
1832
|
-
return
|
|
1857
|
+
return g;
|
|
1833
1858
|
},
|
|
1834
1859
|
SP: function() {
|
|
1835
1860
|
return c;
|
|
@@ -1876,38 +1901,38 @@ function Qe() {
|
|
|
1876
1901
|
"LCP",
|
|
1877
1902
|
"TTFB"
|
|
1878
1903
|
];
|
|
1879
|
-
function a(
|
|
1904
|
+
function a(m) {
|
|
1880
1905
|
let E = !1, P;
|
|
1881
1906
|
return function() {
|
|
1882
|
-
for (var O = arguments.length,
|
|
1883
|
-
|
|
1884
|
-
return E || (E = !0, P =
|
|
1907
|
+
for (var O = arguments.length, w = new Array(O), T = 0; T < O; T++)
|
|
1908
|
+
w[T] = arguments[T];
|
|
1909
|
+
return E || (E = !0, P = m(...w)), P;
|
|
1885
1910
|
};
|
|
1886
1911
|
}
|
|
1887
|
-
const s = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/, r = (
|
|
1912
|
+
const s = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/, r = (m) => s.test(m);
|
|
1888
1913
|
function n() {
|
|
1889
|
-
const { protocol:
|
|
1890
|
-
return
|
|
1914
|
+
const { protocol: m, hostname: E, port: P } = window.location;
|
|
1915
|
+
return m + "//" + E + (P ? ":" + P : "");
|
|
1891
1916
|
}
|
|
1892
1917
|
function i() {
|
|
1893
|
-
const { href:
|
|
1894
|
-
return
|
|
1918
|
+
const { href: m } = window.location, E = n();
|
|
1919
|
+
return m.substring(E.length);
|
|
1895
1920
|
}
|
|
1896
|
-
function u(
|
|
1897
|
-
return typeof
|
|
1921
|
+
function u(m) {
|
|
1922
|
+
return typeof m == "string" ? m : m.displayName || m.name || "Unknown";
|
|
1898
1923
|
}
|
|
1899
|
-
function l(
|
|
1900
|
-
return
|
|
1924
|
+
function l(m) {
|
|
1925
|
+
return m.finished || m.headersSent;
|
|
1901
1926
|
}
|
|
1902
|
-
function f(
|
|
1903
|
-
const E =
|
|
1927
|
+
function f(m) {
|
|
1928
|
+
const E = m.split("?");
|
|
1904
1929
|
return E[0].replace(/\\/g, "/").replace(/\/\/+/g, "/") + (E[1] ? "?" + E.slice(1).join("?") : "");
|
|
1905
1930
|
}
|
|
1906
|
-
async function d(
|
|
1931
|
+
async function d(m, E) {
|
|
1907
1932
|
if (process.env.NODE_ENV !== "production") {
|
|
1908
1933
|
var P;
|
|
1909
|
-
if ((P =
|
|
1910
|
-
const T = '"' + u(
|
|
1934
|
+
if ((P = m.prototype) != null && P.getInitialProps) {
|
|
1935
|
+
const T = '"' + u(m) + '.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';
|
|
1911
1936
|
throw Object.defineProperty(new Error(T), "__NEXT_ERROR_CODE", {
|
|
1912
1937
|
value: "E394",
|
|
1913
1938
|
enumerable: !1,
|
|
@@ -1916,33 +1941,33 @@ function Qe() {
|
|
|
1916
1941
|
}
|
|
1917
1942
|
}
|
|
1918
1943
|
const O = E.res || E.ctx && E.ctx.res;
|
|
1919
|
-
if (!
|
|
1944
|
+
if (!m.getInitialProps)
|
|
1920
1945
|
return E.ctx && E.Component ? {
|
|
1921
1946
|
pageProps: await d(E.Component, E.ctx)
|
|
1922
1947
|
} : {};
|
|
1923
|
-
const
|
|
1948
|
+
const w = await m.getInitialProps(E);
|
|
1924
1949
|
if (O && l(O))
|
|
1925
|
-
return
|
|
1926
|
-
if (!
|
|
1927
|
-
const T = '"' + u(
|
|
1950
|
+
return w;
|
|
1951
|
+
if (!w) {
|
|
1952
|
+
const T = '"' + u(m) + '.getInitialProps()" should resolve to an object. But found "' + w + '" instead.';
|
|
1928
1953
|
throw Object.defineProperty(new Error(T), "__NEXT_ERROR_CODE", {
|
|
1929
1954
|
value: "E394",
|
|
1930
1955
|
enumerable: !1,
|
|
1931
1956
|
configurable: !0
|
|
1932
1957
|
});
|
|
1933
1958
|
}
|
|
1934
|
-
return process.env.NODE_ENV !== "production" && Object.keys(
|
|
1959
|
+
return process.env.NODE_ENV !== "production" && Object.keys(w).length === 0 && !E.ctx && console.warn("" + u(m) + " returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps"), w;
|
|
1935
1960
|
}
|
|
1936
1961
|
const c = typeof performance < "u", _ = c && [
|
|
1937
1962
|
"mark",
|
|
1938
1963
|
"measure",
|
|
1939
1964
|
"getEntriesByName"
|
|
1940
|
-
].every((
|
|
1965
|
+
].every((m) => typeof performance[m] == "function");
|
|
1941
1966
|
class h extends Error {
|
|
1942
1967
|
}
|
|
1943
1968
|
class v extends Error {
|
|
1944
1969
|
}
|
|
1945
|
-
class
|
|
1970
|
+
class g extends Error {
|
|
1946
1971
|
constructor(E) {
|
|
1947
1972
|
super(), this.code = "ENOENT", this.name = "PageNotFoundError", this.message = "Cannot find module for page: " + E;
|
|
1948
1973
|
}
|
|
@@ -1952,22 +1977,22 @@ function Qe() {
|
|
|
1952
1977
|
super(), this.message = "Failed to load static file for page: " + E + " " + P;
|
|
1953
1978
|
}
|
|
1954
1979
|
}
|
|
1955
|
-
class
|
|
1980
|
+
class A extends Error {
|
|
1956
1981
|
constructor() {
|
|
1957
1982
|
super(), this.code = "ENOENT", this.message = "Cannot find the middleware module";
|
|
1958
1983
|
}
|
|
1959
1984
|
}
|
|
1960
|
-
function p(
|
|
1985
|
+
function p(m) {
|
|
1961
1986
|
return JSON.stringify({
|
|
1962
|
-
message:
|
|
1963
|
-
stack:
|
|
1987
|
+
message: m.message,
|
|
1988
|
+
stack: m.stack
|
|
1964
1989
|
});
|
|
1965
1990
|
}
|
|
1966
|
-
}(
|
|
1991
|
+
}(ct)), ct;
|
|
1967
1992
|
}
|
|
1968
|
-
var je = { exports: {} },
|
|
1969
|
-
function
|
|
1970
|
-
return
|
|
1993
|
+
var je = { exports: {} }, lt = {}, Er;
|
|
1994
|
+
function In() {
|
|
1995
|
+
return Er || (Er = 1, function(t) {
|
|
1971
1996
|
Object.defineProperty(t, "__esModule", {
|
|
1972
1997
|
value: !0
|
|
1973
1998
|
}), Object.defineProperty(t, "removeTrailingSlash", {
|
|
@@ -1979,11 +2004,11 @@ function Sn() {
|
|
|
1979
2004
|
function e(o) {
|
|
1980
2005
|
return o.replace(/\/$/, "") || "/";
|
|
1981
2006
|
}
|
|
1982
|
-
}(
|
|
2007
|
+
}(lt)), lt;
|
|
1983
2008
|
}
|
|
1984
|
-
var
|
|
1985
|
-
function
|
|
1986
|
-
return
|
|
2009
|
+
var ft = {}, yr;
|
|
2010
|
+
function rr() {
|
|
2011
|
+
return yr || (yr = 1, function(t) {
|
|
1987
2012
|
Object.defineProperty(t, "__esModule", {
|
|
1988
2013
|
value: !0
|
|
1989
2014
|
}), Object.defineProperty(t, "parsePath", {
|
|
@@ -2004,11 +2029,11 @@ function Zt() {
|
|
|
2004
2029
|
hash: ""
|
|
2005
2030
|
};
|
|
2006
2031
|
}
|
|
2007
|
-
}(
|
|
2032
|
+
}(ft)), ft;
|
|
2008
2033
|
}
|
|
2009
|
-
var
|
|
2010
|
-
function
|
|
2011
|
-
return
|
|
2034
|
+
var vr;
|
|
2035
|
+
function Ze() {
|
|
2036
|
+
return vr || (vr = 1, function(t, e) {
|
|
2012
2037
|
Object.defineProperty(e, "__esModule", {
|
|
2013
2038
|
value: !0
|
|
2014
2039
|
}), Object.defineProperty(e, "normalizePathTrailingSlash", {
|
|
@@ -2017,7 +2042,7 @@ function Ye() {
|
|
|
2017
2042
|
return s;
|
|
2018
2043
|
}
|
|
2019
2044
|
});
|
|
2020
|
-
const o =
|
|
2045
|
+
const o = In(), a = rr(), s = (r) => {
|
|
2021
2046
|
if (!r.startsWith("/") || process.env.__NEXT_MANUAL_TRAILING_SLASH)
|
|
2022
2047
|
return r;
|
|
2023
2048
|
const { pathname: n, query: i, hash: u } = (0, a.parsePath)(r);
|
|
@@ -2026,9 +2051,9 @@ function Ye() {
|
|
|
2026
2051
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
2027
2052
|
}(je, je.exports)), je.exports;
|
|
2028
2053
|
}
|
|
2029
|
-
var
|
|
2030
|
-
function
|
|
2031
|
-
return
|
|
2054
|
+
var dt = {}, ke = { exports: {} }, pt = {}, Rr;
|
|
2055
|
+
function wn() {
|
|
2056
|
+
return Rr || (Rr = 1, function(t) {
|
|
2032
2057
|
Object.defineProperty(t, "__esModule", {
|
|
2033
2058
|
value: !0
|
|
2034
2059
|
}), Object.defineProperty(t, "pathHasPrefix", {
|
|
@@ -2037,18 +2062,18 @@ function Cn() {
|
|
|
2037
2062
|
return o;
|
|
2038
2063
|
}
|
|
2039
2064
|
});
|
|
2040
|
-
const e =
|
|
2065
|
+
const e = rr();
|
|
2041
2066
|
function o(a, s) {
|
|
2042
2067
|
if (typeof a != "string")
|
|
2043
2068
|
return !1;
|
|
2044
2069
|
const { pathname: r } = (0, e.parsePath)(a);
|
|
2045
2070
|
return r === s || r.startsWith(s + "/");
|
|
2046
2071
|
}
|
|
2047
|
-
}(
|
|
2072
|
+
}(pt)), pt;
|
|
2048
2073
|
}
|
|
2049
|
-
var
|
|
2050
|
-
function
|
|
2051
|
-
return
|
|
2074
|
+
var br;
|
|
2075
|
+
function Bi() {
|
|
2076
|
+
return br || (br = 1, function(t, e) {
|
|
2052
2077
|
Object.defineProperty(e, "__esModule", {
|
|
2053
2078
|
value: !0
|
|
2054
2079
|
}), Object.defineProperty(e, "hasBasePath", {
|
|
@@ -2057,16 +2082,16 @@ function Fi() {
|
|
|
2057
2082
|
return s;
|
|
2058
2083
|
}
|
|
2059
2084
|
});
|
|
2060
|
-
const o =
|
|
2085
|
+
const o = wn(), a = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
2061
2086
|
function s(r) {
|
|
2062
2087
|
return (0, o.pathHasPrefix)(r, a);
|
|
2063
2088
|
}
|
|
2064
2089
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
2065
2090
|
}(ke, ke.exports)), ke.exports;
|
|
2066
2091
|
}
|
|
2067
|
-
var
|
|
2068
|
-
function
|
|
2069
|
-
return
|
|
2092
|
+
var Pr;
|
|
2093
|
+
function Tn() {
|
|
2094
|
+
return Pr || (Pr = 1, function(t) {
|
|
2070
2095
|
Object.defineProperty(t, "__esModule", {
|
|
2071
2096
|
value: !0
|
|
2072
2097
|
}), Object.defineProperty(t, "isLocalURL", {
|
|
@@ -2075,7 +2100,7 @@ function wn() {
|
|
|
2075
2100
|
return a;
|
|
2076
2101
|
}
|
|
2077
2102
|
});
|
|
2078
|
-
const e =
|
|
2103
|
+
const e = Je(), o = Bi();
|
|
2079
2104
|
function a(s) {
|
|
2080
2105
|
if (!(0, e.isAbsoluteUrl)(s)) return !0;
|
|
2081
2106
|
try {
|
|
@@ -2085,11 +2110,11 @@ function wn() {
|
|
|
2085
2110
|
return !1;
|
|
2086
2111
|
}
|
|
2087
2112
|
}
|
|
2088
|
-
}(
|
|
2113
|
+
}(dt)), dt;
|
|
2089
2114
|
}
|
|
2090
|
-
var
|
|
2091
|
-
function
|
|
2092
|
-
return
|
|
2115
|
+
var _t = {}, ht = {}, Or;
|
|
2116
|
+
function Vi() {
|
|
2117
|
+
return Or || (Or = 1, function(t) {
|
|
2093
2118
|
Object.defineProperty(t, "__esModule", {
|
|
2094
2119
|
value: !0
|
|
2095
2120
|
});
|
|
@@ -2235,11 +2260,11 @@ function zi() {
|
|
|
2235
2260
|
}
|
|
2236
2261
|
return a(u).map((f) => r[i[f]]);
|
|
2237
2262
|
}
|
|
2238
|
-
}(
|
|
2263
|
+
}(ht)), ht;
|
|
2239
2264
|
}
|
|
2240
|
-
var
|
|
2241
|
-
function
|
|
2242
|
-
return
|
|
2265
|
+
var gt = {}, mt = {}, Et = {}, yt = {}, Sr;
|
|
2266
|
+
function Ki() {
|
|
2267
|
+
return Sr || (Sr = 1, function(t) {
|
|
2243
2268
|
Object.defineProperty(t, "__esModule", {
|
|
2244
2269
|
value: !0
|
|
2245
2270
|
}), Object.defineProperty(t, "ensureLeadingSlash", {
|
|
@@ -2251,11 +2276,11 @@ function Xi() {
|
|
|
2251
2276
|
function e(o) {
|
|
2252
2277
|
return o.startsWith("/") ? o : "/" + o;
|
|
2253
2278
|
}
|
|
2254
|
-
}(
|
|
2279
|
+
}(yt)), yt;
|
|
2255
2280
|
}
|
|
2256
|
-
var
|
|
2257
|
-
function
|
|
2258
|
-
return
|
|
2281
|
+
var vt = {}, Cr;
|
|
2282
|
+
function Wi() {
|
|
2283
|
+
return Cr || (Cr = 1, function(t) {
|
|
2259
2284
|
Object.defineProperty(t, "__esModule", {
|
|
2260
2285
|
value: !0
|
|
2261
2286
|
});
|
|
@@ -2296,11 +2321,11 @@ function Gi() {
|
|
|
2296
2321
|
return i;
|
|
2297
2322
|
}
|
|
2298
2323
|
const r = "__PAGE__", n = "__DEFAULT__";
|
|
2299
|
-
}(
|
|
2324
|
+
}(vt)), vt;
|
|
2300
2325
|
}
|
|
2301
|
-
var
|
|
2302
|
-
function
|
|
2303
|
-
return
|
|
2326
|
+
var Ar;
|
|
2327
|
+
function Qi() {
|
|
2328
|
+
return Ar || (Ar = 1, function(t) {
|
|
2304
2329
|
Object.defineProperty(t, "__esModule", {
|
|
2305
2330
|
value: !0
|
|
2306
2331
|
});
|
|
@@ -2318,7 +2343,7 @@ function Bi() {
|
|
|
2318
2343
|
return r;
|
|
2319
2344
|
}
|
|
2320
2345
|
});
|
|
2321
|
-
const o =
|
|
2346
|
+
const o = Ki(), a = Wi();
|
|
2322
2347
|
function s(n) {
|
|
2323
2348
|
return (0, o.ensureLeadingSlash)(n.split("/").reduce((i, u, l, f) => !u || (0, a.isGroupSegment)(u) || u[0] === "@" || (u === "page" || u === "route") && l === f.length - 1 ? i : i + "/" + u, ""));
|
|
2324
2349
|
}
|
|
@@ -2329,11 +2354,11 @@ function Bi() {
|
|
|
2329
2354
|
"$1"
|
|
2330
2355
|
);
|
|
2331
2356
|
}
|
|
2332
|
-
}(
|
|
2357
|
+
}(Et)), Et;
|
|
2333
2358
|
}
|
|
2334
|
-
var
|
|
2335
|
-
function
|
|
2336
|
-
return
|
|
2359
|
+
var Ir;
|
|
2360
|
+
function Nn() {
|
|
2361
|
+
return Ir || (Ir = 1, function(t) {
|
|
2337
2362
|
Object.defineProperty(t, "__esModule", {
|
|
2338
2363
|
value: !0
|
|
2339
2364
|
});
|
|
@@ -2354,7 +2379,7 @@ function An() {
|
|
|
2354
2379
|
return s;
|
|
2355
2380
|
}
|
|
2356
2381
|
});
|
|
2357
|
-
const o =
|
|
2382
|
+
const o = Qi(), a = [
|
|
2358
2383
|
"(..)(..)",
|
|
2359
2384
|
"(.)",
|
|
2360
2385
|
"(..)",
|
|
@@ -2414,11 +2439,11 @@ function An() {
|
|
|
2414
2439
|
interceptedRoute: l
|
|
2415
2440
|
};
|
|
2416
2441
|
}
|
|
2417
|
-
}(
|
|
2442
|
+
}(mt)), mt;
|
|
2418
2443
|
}
|
|
2419
|
-
var
|
|
2420
|
-
function
|
|
2421
|
-
return
|
|
2444
|
+
var wr;
|
|
2445
|
+
function Yi() {
|
|
2446
|
+
return wr || (wr = 1, function(t) {
|
|
2422
2447
|
Object.defineProperty(t, "__esModule", {
|
|
2423
2448
|
value: !0
|
|
2424
2449
|
}), Object.defineProperty(t, "isDynamicRoute", {
|
|
@@ -2427,15 +2452,15 @@ function Vi() {
|
|
|
2427
2452
|
return s;
|
|
2428
2453
|
}
|
|
2429
2454
|
});
|
|
2430
|
-
const e =
|
|
2455
|
+
const e = Nn(), o = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/, a = /\/\[[^/]+\](?=\/|$)/;
|
|
2431
2456
|
function s(r, n) {
|
|
2432
2457
|
return n === void 0 && (n = !0), (0, e.isInterceptionRouteAppPath)(r) && (r = (0, e.extractInterceptionRouteInformation)(r).interceptedRoute), n ? a.test(r) : o.test(r);
|
|
2433
2458
|
}
|
|
2434
|
-
}(
|
|
2459
|
+
}(gt)), gt;
|
|
2435
2460
|
}
|
|
2436
|
-
var
|
|
2437
|
-
function
|
|
2438
|
-
return
|
|
2461
|
+
var Tr;
|
|
2462
|
+
function Ji() {
|
|
2463
|
+
return Tr || (Tr = 1, function(t) {
|
|
2439
2464
|
Object.defineProperty(t, "__esModule", {
|
|
2440
2465
|
value: !0
|
|
2441
2466
|
});
|
|
@@ -2456,12 +2481,12 @@ function Ki() {
|
|
|
2456
2481
|
return a.isDynamicRoute;
|
|
2457
2482
|
}
|
|
2458
2483
|
});
|
|
2459
|
-
const o =
|
|
2460
|
-
}(
|
|
2484
|
+
const o = Vi(), a = Yi();
|
|
2485
|
+
}(_t)), _t;
|
|
2461
2486
|
}
|
|
2462
|
-
var
|
|
2463
|
-
function
|
|
2464
|
-
return
|
|
2487
|
+
var Rt = {}, bt = {}, Nr;
|
|
2488
|
+
function Zi() {
|
|
2489
|
+
return Nr || (Nr = 1, function(t) {
|
|
2465
2490
|
Object.defineProperty(t, "__esModule", {
|
|
2466
2491
|
value: !0
|
|
2467
2492
|
}), Object.defineProperty(t, "getRouteMatcher", {
|
|
@@ -2470,7 +2495,7 @@ function Wi() {
|
|
|
2470
2495
|
return o;
|
|
2471
2496
|
}
|
|
2472
2497
|
});
|
|
2473
|
-
const e =
|
|
2498
|
+
const e = Je();
|
|
2474
2499
|
function o(a) {
|
|
2475
2500
|
let { re: s, groups: r } = a;
|
|
2476
2501
|
return (n) => {
|
|
@@ -2494,11 +2519,11 @@ function Wi() {
|
|
|
2494
2519
|
return l;
|
|
2495
2520
|
};
|
|
2496
2521
|
}
|
|
2497
|
-
}(
|
|
2522
|
+
}(bt)), bt;
|
|
2498
2523
|
}
|
|
2499
|
-
var
|
|
2500
|
-
function
|
|
2501
|
-
return
|
|
2524
|
+
var Pt = {}, Ot = {}, Dr;
|
|
2525
|
+
function ea() {
|
|
2526
|
+
return Dr || (Dr = 1, function(t) {
|
|
2502
2527
|
Object.defineProperty(t, "__esModule", {
|
|
2503
2528
|
value: !0
|
|
2504
2529
|
});
|
|
@@ -2534,7 +2559,7 @@ function Qi() {
|
|
|
2534
2559
|
return ue;
|
|
2535
2560
|
},
|
|
2536
2561
|
INFINITE_CACHE: function() {
|
|
2537
|
-
return
|
|
2562
|
+
return w;
|
|
2538
2563
|
},
|
|
2539
2564
|
INSTRUMENTATION_HOOK_FILENAME: function() {
|
|
2540
2565
|
return j;
|
|
@@ -2555,7 +2580,7 @@ function Qi() {
|
|
|
2555
2580
|
return P;
|
|
2556
2581
|
},
|
|
2557
2582
|
NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
|
|
2558
|
-
return
|
|
2583
|
+
return g;
|
|
2559
2584
|
},
|
|
2560
2585
|
NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
|
|
2561
2586
|
return y;
|
|
@@ -2570,7 +2595,7 @@ function Qi() {
|
|
|
2570
2595
|
return p;
|
|
2571
2596
|
},
|
|
2572
2597
|
NEXT_CACHE_TAG_MAX_LENGTH: function() {
|
|
2573
|
-
return
|
|
2598
|
+
return m;
|
|
2574
2599
|
},
|
|
2575
2600
|
NEXT_DATA_SUFFIX: function() {
|
|
2576
2601
|
return c;
|
|
@@ -2585,7 +2610,7 @@ function Qi() {
|
|
|
2585
2610
|
return o;
|
|
2586
2611
|
},
|
|
2587
2612
|
NEXT_RESUME_HEADER: function() {
|
|
2588
|
-
return
|
|
2613
|
+
return A;
|
|
2589
2614
|
},
|
|
2590
2615
|
NON_STANDARD_NODE_ENV: function() {
|
|
2591
2616
|
return S;
|
|
@@ -2666,7 +2691,7 @@ function Qi() {
|
|
|
2666
2691
|
return X;
|
|
2667
2692
|
}
|
|
2668
2693
|
});
|
|
2669
|
-
const o = "nxtP", a = "nxtI", s = "x-matched-path", r = "x-prerender-revalidate", n = "x-prerender-revalidate-if-generated", i = ".prefetch.rsc", u = ".segments", l = ".segment.rsc", f = ".rsc", d = ".action", c = ".json", _ = ".meta", h = ".body", v = "x-next-cache-tags",
|
|
2694
|
+
const o = "nxtP", a = "nxtI", s = "x-matched-path", r = "x-prerender-revalidate", n = "x-prerender-revalidate-if-generated", i = ".prefetch.rsc", u = ".segments", l = ".segment.rsc", f = ".rsc", d = ".action", c = ".json", _ = ".meta", h = ".body", v = "x-next-cache-tags", g = "x-next-revalidated-tags", y = "x-next-revalidate-tag-token", A = "next-resume", p = 128, m = 256, E = 1024, P = "_N_T_", O = 31536e3, w = 4294967294, T = "middleware", C = `(?:src/)?${T}`, j = "instrumentation", M = "private-next-pages", te = "private-dot-next", x = "private-next-root-dir", $ = "private-next-app-dir", G = "private-next-rsc-mod-ref-proxy", oe = "private-next-rsc-action-validate", K = "private-next-rsc-server-reference", B = "private-next-rsc-cache-wrapper", Y = "private-next-rsc-action-encryption", ce = "private-next-rsc-action-client-wrapper", Z = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict", ie = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", k = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", pe = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", W = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", R = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", ee = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", ue = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", V = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", b = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member", S = 'You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env', me = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", N = [
|
|
2670
2695
|
"app",
|
|
2671
2696
|
"pages",
|
|
2672
2697
|
"components",
|
|
@@ -2775,11 +2800,11 @@ function Qi() {
|
|
|
2775
2800
|
metadataRoute: "__next_metadata_route__",
|
|
2776
2801
|
metadataImageMeta: "__next_metadata_image_meta__"
|
|
2777
2802
|
};
|
|
2778
|
-
}(
|
|
2803
|
+
}(Ot)), Ot;
|
|
2779
2804
|
}
|
|
2780
|
-
var
|
|
2781
|
-
function
|
|
2782
|
-
return
|
|
2805
|
+
var St = {}, xr;
|
|
2806
|
+
function ta() {
|
|
2807
|
+
return xr || (xr = 1, function(t) {
|
|
2783
2808
|
Object.defineProperty(t, "__esModule", {
|
|
2784
2809
|
value: !0
|
|
2785
2810
|
}), Object.defineProperty(t, "escapeStringRegexp", {
|
|
@@ -2792,18 +2817,18 @@ function Yi() {
|
|
|
2792
2817
|
function a(s) {
|
|
2793
2818
|
return e.test(s) ? s.replace(o, "\\$&") : s;
|
|
2794
2819
|
}
|
|
2795
|
-
}(
|
|
2820
|
+
}(St)), St;
|
|
2796
2821
|
}
|
|
2797
|
-
var
|
|
2798
|
-
function
|
|
2799
|
-
return
|
|
2822
|
+
var Lr;
|
|
2823
|
+
function ra() {
|
|
2824
|
+
return Lr || (Lr = 1, function(t) {
|
|
2800
2825
|
Object.defineProperty(t, "__esModule", {
|
|
2801
2826
|
value: !0
|
|
2802
2827
|
});
|
|
2803
|
-
function e(
|
|
2804
|
-
for (var
|
|
2828
|
+
function e(g, y) {
|
|
2829
|
+
for (var A in y) Object.defineProperty(g, A, {
|
|
2805
2830
|
enumerable: !0,
|
|
2806
|
-
get: y[
|
|
2831
|
+
get: y[A]
|
|
2807
2832
|
});
|
|
2808
2833
|
}
|
|
2809
2834
|
e(t, {
|
|
@@ -2820,87 +2845,87 @@ function Ji() {
|
|
|
2820
2845
|
return i;
|
|
2821
2846
|
}
|
|
2822
2847
|
});
|
|
2823
|
-
const o =
|
|
2824
|
-
function i(
|
|
2825
|
-
const y =
|
|
2826
|
-
return u(y ? y[2] :
|
|
2848
|
+
const o = ea(), a = Nn(), s = ta(), r = In(), n = /^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;
|
|
2849
|
+
function i(g) {
|
|
2850
|
+
const y = g.match(n);
|
|
2851
|
+
return u(y ? y[2] : g);
|
|
2827
2852
|
}
|
|
2828
|
-
function u(
|
|
2829
|
-
const y =
|
|
2830
|
-
y && (
|
|
2831
|
-
const
|
|
2832
|
-
return
|
|
2833
|
-
key:
|
|
2834
|
-
repeat:
|
|
2853
|
+
function u(g) {
|
|
2854
|
+
const y = g.startsWith("[") && g.endsWith("]");
|
|
2855
|
+
y && (g = g.slice(1, -1));
|
|
2856
|
+
const A = g.startsWith("...");
|
|
2857
|
+
return A && (g = g.slice(3)), {
|
|
2858
|
+
key: g,
|
|
2859
|
+
repeat: A,
|
|
2835
2860
|
optional: y
|
|
2836
2861
|
};
|
|
2837
2862
|
}
|
|
2838
|
-
function l(
|
|
2863
|
+
function l(g, y, A) {
|
|
2839
2864
|
const p = {};
|
|
2840
|
-
let
|
|
2865
|
+
let m = 1;
|
|
2841
2866
|
const E = [];
|
|
2842
|
-
for (const P of (0, r.removeTrailingSlash)(
|
|
2843
|
-
const O = a.INTERCEPTION_ROUTE_MARKERS.find((T) => P.startsWith(T)),
|
|
2844
|
-
if (O &&
|
|
2845
|
-
const { key: T, optional: C, repeat: j } = u(
|
|
2867
|
+
for (const P of (0, r.removeTrailingSlash)(g).slice(1).split("/")) {
|
|
2868
|
+
const O = a.INTERCEPTION_ROUTE_MARKERS.find((T) => P.startsWith(T)), w = P.match(n);
|
|
2869
|
+
if (O && w && w[2]) {
|
|
2870
|
+
const { key: T, optional: C, repeat: j } = u(w[2]);
|
|
2846
2871
|
p[T] = {
|
|
2847
|
-
pos:
|
|
2872
|
+
pos: m++,
|
|
2848
2873
|
repeat: j,
|
|
2849
2874
|
optional: C
|
|
2850
2875
|
}, E.push("/" + (0, s.escapeStringRegexp)(O) + "([^/]+?)");
|
|
2851
|
-
} else if (
|
|
2852
|
-
const { key: T, repeat: C, optional: j } = u(
|
|
2876
|
+
} else if (w && w[2]) {
|
|
2877
|
+
const { key: T, repeat: C, optional: j } = u(w[2]);
|
|
2853
2878
|
p[T] = {
|
|
2854
|
-
pos:
|
|
2879
|
+
pos: m++,
|
|
2855
2880
|
repeat: C,
|
|
2856
2881
|
optional: j
|
|
2857
|
-
},
|
|
2882
|
+
}, A && w[1] && E.push("/" + (0, s.escapeStringRegexp)(w[1]));
|
|
2858
2883
|
let M = C ? j ? "(?:/(.+?))?" : "/(.+?)" : "/([^/]+?)";
|
|
2859
|
-
|
|
2884
|
+
A && w[1] && (M = M.substring(1)), E.push(M);
|
|
2860
2885
|
} else
|
|
2861
2886
|
E.push("/" + (0, s.escapeStringRegexp)(P));
|
|
2862
|
-
y &&
|
|
2887
|
+
y && w && w[3] && E.push((0, s.escapeStringRegexp)(w[3]));
|
|
2863
2888
|
}
|
|
2864
2889
|
return {
|
|
2865
2890
|
parameterizedRoute: E.join(""),
|
|
2866
2891
|
groups: p
|
|
2867
2892
|
};
|
|
2868
2893
|
}
|
|
2869
|
-
function f(
|
|
2870
|
-
let { includeSuffix:
|
|
2871
|
-
const { parameterizedRoute: E, groups: P } = l(
|
|
2894
|
+
function f(g, y) {
|
|
2895
|
+
let { includeSuffix: A = !1, includePrefix: p = !1, excludeOptionalTrailingSlash: m = !1 } = y === void 0 ? {} : y;
|
|
2896
|
+
const { parameterizedRoute: E, groups: P } = l(g, A, p);
|
|
2872
2897
|
let O = E;
|
|
2873
|
-
return
|
|
2898
|
+
return m || (O += "(?:/)?"), {
|
|
2874
2899
|
re: new RegExp("^" + O + "$"),
|
|
2875
2900
|
groups: P
|
|
2876
2901
|
};
|
|
2877
2902
|
}
|
|
2878
2903
|
function d() {
|
|
2879
|
-
let
|
|
2904
|
+
let g = 0;
|
|
2880
2905
|
return () => {
|
|
2881
|
-
let y = "",
|
|
2882
|
-
for (;
|
|
2883
|
-
y += String.fromCharCode(97 + (
|
|
2906
|
+
let y = "", A = ++g;
|
|
2907
|
+
for (; A > 0; )
|
|
2908
|
+
y += String.fromCharCode(97 + (A - 1) % 26), A = Math.floor((A - 1) / 26);
|
|
2884
2909
|
return y;
|
|
2885
2910
|
};
|
|
2886
2911
|
}
|
|
2887
|
-
function c(
|
|
2888
|
-
let { interceptionMarker: y, getSafeRouteKey:
|
|
2889
|
-
const { key: O, optional:
|
|
2912
|
+
function c(g) {
|
|
2913
|
+
let { interceptionMarker: y, getSafeRouteKey: A, segment: p, routeKeys: m, keyPrefix: E, backreferenceDuplicateKeys: P } = g;
|
|
2914
|
+
const { key: O, optional: w, repeat: T } = u(p);
|
|
2890
2915
|
let C = O.replace(/\W/g, "");
|
|
2891
2916
|
E && (C = "" + E + C);
|
|
2892
2917
|
let j = !1;
|
|
2893
|
-
(C.length === 0 || C.length > 30) && (j = !0), isNaN(parseInt(C.slice(0, 1))) || (j = !0), j && (C =
|
|
2894
|
-
const M = C in
|
|
2895
|
-
E ?
|
|
2918
|
+
(C.length === 0 || C.length > 30) && (j = !0), isNaN(parseInt(C.slice(0, 1))) || (j = !0), j && (C = A());
|
|
2919
|
+
const M = C in m;
|
|
2920
|
+
E ? m[C] = "" + E + O : m[C] = O;
|
|
2896
2921
|
const te = y ? (0, s.escapeStringRegexp)(y) : "";
|
|
2897
2922
|
let x;
|
|
2898
|
-
return M && P ? x = "\\k<" + C + ">" : T ? x = "(?<" + C + ">.+?)" : x = "(?<" + C + ">[^/]+?)",
|
|
2923
|
+
return M && P ? x = "\\k<" + C + ">" : T ? x = "(?<" + C + ">.+?)" : x = "(?<" + C + ">[^/]+?)", w ? "(?:/" + te + x + ")?" : "/" + te + x;
|
|
2899
2924
|
}
|
|
2900
|
-
function _(
|
|
2925
|
+
function _(g, y, A, p, m) {
|
|
2901
2926
|
const E = d(), P = {}, O = [];
|
|
2902
|
-
for (const
|
|
2903
|
-
const T = a.INTERCEPTION_ROUTE_MARKERS.some((j) =>
|
|
2927
|
+
for (const w of (0, r.removeTrailingSlash)(g).slice(1).split("/")) {
|
|
2928
|
+
const T = a.INTERCEPTION_ROUTE_MARKERS.some((j) => w.startsWith(j)), C = w.match(n);
|
|
2904
2929
|
if (T && C && C[2])
|
|
2905
2930
|
O.push(c({
|
|
2906
2931
|
getSafeRouteKey: E,
|
|
@@ -2908,7 +2933,7 @@ function Ji() {
|
|
|
2908
2933
|
segment: C[2],
|
|
2909
2934
|
routeKeys: P,
|
|
2910
2935
|
keyPrefix: y ? o.NEXT_INTERCEPTION_MARKER_PREFIX : void 0,
|
|
2911
|
-
backreferenceDuplicateKeys:
|
|
2936
|
+
backreferenceDuplicateKeys: m
|
|
2912
2937
|
}));
|
|
2913
2938
|
else if (C && C[2]) {
|
|
2914
2939
|
p && C[1] && O.push("/" + (0, s.escapeStringRegexp)(C[1]));
|
|
@@ -2917,45 +2942,45 @@ function Ji() {
|
|
|
2917
2942
|
segment: C[2],
|
|
2918
2943
|
routeKeys: P,
|
|
2919
2944
|
keyPrefix: y ? o.NEXT_QUERY_PARAM_PREFIX : void 0,
|
|
2920
|
-
backreferenceDuplicateKeys:
|
|
2945
|
+
backreferenceDuplicateKeys: m
|
|
2921
2946
|
});
|
|
2922
2947
|
p && C[1] && (j = j.substring(1)), O.push(j);
|
|
2923
2948
|
} else
|
|
2924
|
-
O.push("/" + (0, s.escapeStringRegexp)(
|
|
2925
|
-
|
|
2949
|
+
O.push("/" + (0, s.escapeStringRegexp)(w));
|
|
2950
|
+
A && C && C[3] && O.push((0, s.escapeStringRegexp)(C[3]));
|
|
2926
2951
|
}
|
|
2927
2952
|
return {
|
|
2928
2953
|
namedParameterizedRoute: O.join(""),
|
|
2929
2954
|
routeKeys: P
|
|
2930
2955
|
};
|
|
2931
2956
|
}
|
|
2932
|
-
function h(
|
|
2933
|
-
var
|
|
2934
|
-
const E = _(
|
|
2957
|
+
function h(g, y) {
|
|
2958
|
+
var A, p, m;
|
|
2959
|
+
const E = _(g, y.prefixRouteKeys, (A = y.includeSuffix) != null ? A : !1, (p = y.includePrefix) != null ? p : !1, (m = y.backreferenceDuplicateKeys) != null ? m : !1);
|
|
2935
2960
|
let P = E.namedParameterizedRoute;
|
|
2936
2961
|
return y.excludeOptionalTrailingSlash || (P += "(?:/)?"), {
|
|
2937
|
-
...f(
|
|
2962
|
+
...f(g, y),
|
|
2938
2963
|
namedRegex: "^" + P + "$",
|
|
2939
2964
|
routeKeys: E.routeKeys
|
|
2940
2965
|
};
|
|
2941
2966
|
}
|
|
2942
|
-
function v(
|
|
2943
|
-
const { parameterizedRoute:
|
|
2944
|
-
if (
|
|
2967
|
+
function v(g, y) {
|
|
2968
|
+
const { parameterizedRoute: A } = l(g, !1, !1), { catchAll: p = !0 } = y;
|
|
2969
|
+
if (A === "/")
|
|
2945
2970
|
return {
|
|
2946
2971
|
namedRegex: "^/" + (p ? ".*" : "") + "$"
|
|
2947
2972
|
};
|
|
2948
|
-
const { namedParameterizedRoute:
|
|
2973
|
+
const { namedParameterizedRoute: m } = _(g, !1, !1, !1, !1);
|
|
2949
2974
|
let E = p ? "(?:(/.*)?)" : "";
|
|
2950
2975
|
return {
|
|
2951
|
-
namedRegex: "^" +
|
|
2976
|
+
namedRegex: "^" + m + E + "$"
|
|
2952
2977
|
};
|
|
2953
2978
|
}
|
|
2954
|
-
}(
|
|
2979
|
+
}(Pt)), Pt;
|
|
2955
2980
|
}
|
|
2956
|
-
var
|
|
2957
|
-
function
|
|
2958
|
-
return
|
|
2981
|
+
var Mr;
|
|
2982
|
+
function na() {
|
|
2983
|
+
return Mr || (Mr = 1, function(t) {
|
|
2959
2984
|
Object.defineProperty(t, "__esModule", {
|
|
2960
2985
|
value: !0
|
|
2961
2986
|
}), Object.defineProperty(t, "interpolateAs", {
|
|
@@ -2964,7 +2989,7 @@ function Zi() {
|
|
|
2964
2989
|
return a;
|
|
2965
2990
|
}
|
|
2966
2991
|
});
|
|
2967
|
-
const e =
|
|
2992
|
+
const e = Zi(), o = ra();
|
|
2968
2993
|
function a(s, r, n) {
|
|
2969
2994
|
let i = "";
|
|
2970
2995
|
const u = (0, o.getRouteRegex)(s), l = u.groups, f = (
|
|
@@ -2978,11 +3003,11 @@ function Zi() {
|
|
|
2978
3003
|
return d.every((c) => {
|
|
2979
3004
|
let _ = f[c] || "";
|
|
2980
3005
|
const { repeat: h, optional: v } = l[c];
|
|
2981
|
-
let
|
|
2982
|
-
return v && (
|
|
3006
|
+
let g = "[" + (h ? "..." : "") + c + "]";
|
|
3007
|
+
return v && (g = (_ ? "" : "/") + "[" + g + "]"), h && !Array.isArray(_) && (_ = [
|
|
2983
3008
|
_
|
|
2984
3009
|
]), (v || c in f) && // Interpolate group into data URL if present
|
|
2985
|
-
(i = i.replace(
|
|
3010
|
+
(i = i.replace(g, h ? _.map(
|
|
2986
3011
|
// these values should be fully encoded instead of just
|
|
2987
3012
|
// path delimiter escaped since they are being inserted
|
|
2988
3013
|
// into the URL and we expect URL encoded segments
|
|
@@ -2994,11 +3019,11 @@ function Zi() {
|
|
|
2994
3019
|
result: i
|
|
2995
3020
|
};
|
|
2996
3021
|
}
|
|
2997
|
-
}(
|
|
3022
|
+
}(Rt)), Rt;
|
|
2998
3023
|
}
|
|
2999
|
-
var
|
|
3000
|
-
function
|
|
3001
|
-
return
|
|
3024
|
+
var jr;
|
|
3025
|
+
function oa() {
|
|
3026
|
+
return jr || (jr = 1, function(t, e) {
|
|
3002
3027
|
Object.defineProperty(e, "__esModule", {
|
|
3003
3028
|
value: !0
|
|
3004
3029
|
}), Object.defineProperty(e, "resolveHref", {
|
|
@@ -3007,14 +3032,14 @@ function ea() {
|
|
|
3007
3032
|
return f;
|
|
3008
3033
|
}
|
|
3009
3034
|
});
|
|
3010
|
-
const o =
|
|
3035
|
+
const o = Sn(), a = An(), s = Gi(), r = Je(), n = Ze(), i = Tn(), u = Ji(), l = na();
|
|
3011
3036
|
function f(d, c, _) {
|
|
3012
3037
|
let h, v = typeof c == "string" ? c : (0, a.formatWithValidation)(c);
|
|
3013
|
-
const
|
|
3038
|
+
const g = v.match(/^[a-zA-Z]{1,}:\/\//), y = g ? v.slice(g[0].length) : v;
|
|
3014
3039
|
if ((y.split("?", 1)[0] || "").match(/(\/\/|\\)/)) {
|
|
3015
3040
|
console.error("Invalid href '" + v + "' passed to next/router in page: '" + d.pathname + "'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.");
|
|
3016
3041
|
const p = (0, r.normalizeRepeatedSlashes)(y);
|
|
3017
|
-
v = (
|
|
3042
|
+
v = (g ? g[0] : "") + p;
|
|
3018
3043
|
}
|
|
3019
3044
|
if (!(0, i.isLocalURL)(v))
|
|
3020
3045
|
return _ ? [
|
|
@@ -3028,19 +3053,19 @@ function ea() {
|
|
|
3028
3053
|
try {
|
|
3029
3054
|
const p = new URL(v, h);
|
|
3030
3055
|
p.pathname = (0, n.normalizePathTrailingSlash)(p.pathname);
|
|
3031
|
-
let
|
|
3056
|
+
let m = "";
|
|
3032
3057
|
if ((0, u.isDynamicRoute)(p.pathname) && p.searchParams && _) {
|
|
3033
|
-
const P = (0, o.searchParamsToUrlQuery)(p.searchParams), { result: O, params:
|
|
3034
|
-
O && (
|
|
3058
|
+
const P = (0, o.searchParamsToUrlQuery)(p.searchParams), { result: O, params: w } = (0, l.interpolateAs)(p.pathname, p.pathname, P);
|
|
3059
|
+
O && (m = (0, a.formatWithValidation)({
|
|
3035
3060
|
pathname: O,
|
|
3036
3061
|
hash: p.hash,
|
|
3037
|
-
query: (0, s.omit)(P,
|
|
3062
|
+
query: (0, s.omit)(P, w)
|
|
3038
3063
|
}));
|
|
3039
3064
|
}
|
|
3040
3065
|
const E = p.origin === h.origin ? p.href.slice(p.origin.length) : p.href;
|
|
3041
3066
|
return _ ? [
|
|
3042
3067
|
E,
|
|
3043
|
-
|
|
3068
|
+
m || E
|
|
3044
3069
|
] : E;
|
|
3045
3070
|
} catch {
|
|
3046
3071
|
return _ ? [
|
|
@@ -3051,9 +3076,9 @@ function ea() {
|
|
|
3051
3076
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
3052
3077
|
}(Me, Me.exports)), Me.exports;
|
|
3053
3078
|
}
|
|
3054
|
-
var He = { exports: {} },
|
|
3055
|
-
function
|
|
3056
|
-
return
|
|
3079
|
+
var He = { exports: {} }, Ct = {}, At = {}, kr;
|
|
3080
|
+
function Dn() {
|
|
3081
|
+
return kr || (kr = 1, function(t) {
|
|
3057
3082
|
Object.defineProperty(t, "__esModule", {
|
|
3058
3083
|
value: !0
|
|
3059
3084
|
}), Object.defineProperty(t, "addPathPrefix", {
|
|
@@ -3062,18 +3087,18 @@ function In() {
|
|
|
3062
3087
|
return o;
|
|
3063
3088
|
}
|
|
3064
3089
|
});
|
|
3065
|
-
const e =
|
|
3090
|
+
const e = rr();
|
|
3066
3091
|
function o(a, s) {
|
|
3067
3092
|
if (!a.startsWith("/") || !s)
|
|
3068
3093
|
return a;
|
|
3069
3094
|
const { pathname: r, query: n, hash: i } = (0, e.parsePath)(a);
|
|
3070
3095
|
return "" + s + r + n + i;
|
|
3071
3096
|
}
|
|
3072
|
-
}(
|
|
3097
|
+
}(At)), At;
|
|
3073
3098
|
}
|
|
3074
|
-
var
|
|
3075
|
-
function
|
|
3076
|
-
return
|
|
3099
|
+
var Hr;
|
|
3100
|
+
function ia() {
|
|
3101
|
+
return Hr || (Hr = 1, function(t) {
|
|
3077
3102
|
Object.defineProperty(t, "__esModule", {
|
|
3078
3103
|
value: !0
|
|
3079
3104
|
}), Object.defineProperty(t, "addLocale", {
|
|
@@ -3082,17 +3107,17 @@ function ta() {
|
|
|
3082
3107
|
return a;
|
|
3083
3108
|
}
|
|
3084
3109
|
});
|
|
3085
|
-
const e =
|
|
3110
|
+
const e = Dn(), o = wn();
|
|
3086
3111
|
function a(s, r, n, i) {
|
|
3087
3112
|
if (!r || r === n) return s;
|
|
3088
3113
|
const u = s.toLowerCase();
|
|
3089
3114
|
return !i && ((0, o.pathHasPrefix)(u, "/api") || (0, o.pathHasPrefix)(u, "/" + r.toLowerCase())) ? s : (0, e.addPathPrefix)(s, "/" + r);
|
|
3090
3115
|
}
|
|
3091
|
-
}(
|
|
3116
|
+
}(Ct)), Ct;
|
|
3092
3117
|
}
|
|
3093
|
-
var
|
|
3094
|
-
function
|
|
3095
|
-
return
|
|
3118
|
+
var qr;
|
|
3119
|
+
function aa() {
|
|
3120
|
+
return qr || (qr = 1, function(t, e) {
|
|
3096
3121
|
Object.defineProperty(e, "__esModule", {
|
|
3097
3122
|
value: !0
|
|
3098
3123
|
}), Object.defineProperty(e, "addLocale", {
|
|
@@ -3101,17 +3126,17 @@ function ra() {
|
|
|
3101
3126
|
return a;
|
|
3102
3127
|
}
|
|
3103
3128
|
});
|
|
3104
|
-
const o =
|
|
3129
|
+
const o = Ze(), a = function(s) {
|
|
3105
3130
|
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++)
|
|
3106
3131
|
n[i - 1] = arguments[i];
|
|
3107
|
-
return process.env.__NEXT_I18N_SUPPORT ? (0, o.normalizePathTrailingSlash)(
|
|
3132
|
+
return process.env.__NEXT_I18N_SUPPORT ? (0, o.normalizePathTrailingSlash)(ia().addLocale(s, ...n)) : s;
|
|
3108
3133
|
};
|
|
3109
3134
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
3110
3135
|
}(He, He.exports)), He.exports;
|
|
3111
3136
|
}
|
|
3112
|
-
var
|
|
3113
|
-
function
|
|
3114
|
-
return
|
|
3137
|
+
var It = {}, $r;
|
|
3138
|
+
function xn() {
|
|
3139
|
+
return $r || ($r = 1, function(t) {
|
|
3115
3140
|
Object.defineProperty(t, "__esModule", {
|
|
3116
3141
|
value: !0
|
|
3117
3142
|
}), Object.defineProperty(t, "RouterContext", {
|
|
@@ -3122,11 +3147,11 @@ function Tn() {
|
|
|
3122
3147
|
});
|
|
3123
3148
|
const a = (/* @__PURE__ */ Se._(Oe)).default.createContext(null);
|
|
3124
3149
|
process.env.NODE_ENV !== "production" && (a.displayName = "RouterContext");
|
|
3125
|
-
}(
|
|
3150
|
+
}(It)), It;
|
|
3126
3151
|
}
|
|
3127
|
-
var qe = { exports: {} }, $e = { exports: {} },
|
|
3128
|
-
function
|
|
3129
|
-
return
|
|
3152
|
+
var qe = { exports: {} }, $e = { exports: {} }, Ur;
|
|
3153
|
+
function sa() {
|
|
3154
|
+
return Ur || (Ur = 1, function(t, e) {
|
|
3130
3155
|
Object.defineProperty(e, "__esModule", {
|
|
3131
3156
|
value: !0
|
|
3132
3157
|
});
|
|
@@ -3160,9 +3185,9 @@ function na() {
|
|
|
3160
3185
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
3161
3186
|
}($e, $e.exports)), $e.exports;
|
|
3162
3187
|
}
|
|
3163
|
-
var
|
|
3164
|
-
function
|
|
3165
|
-
return
|
|
3188
|
+
var Fr;
|
|
3189
|
+
function ua() {
|
|
3190
|
+
return Fr || (Fr = 1, function(t, e) {
|
|
3166
3191
|
Object.defineProperty(e, "__esModule", {
|
|
3167
3192
|
value: !0
|
|
3168
3193
|
}), Object.defineProperty(e, "useIntersection", {
|
|
@@ -3171,19 +3196,19 @@ function oa() {
|
|
|
3171
3196
|
return l;
|
|
3172
3197
|
}
|
|
3173
3198
|
});
|
|
3174
|
-
const o = Oe, a =
|
|
3199
|
+
const o = Oe, a = sa(), s = typeof IntersectionObserver == "function", r = /* @__PURE__ */ new Map(), n = [];
|
|
3175
3200
|
function i(f) {
|
|
3176
3201
|
const d = {
|
|
3177
3202
|
root: f.root || null,
|
|
3178
3203
|
margin: f.rootMargin || ""
|
|
3179
|
-
}, c = n.find((
|
|
3204
|
+
}, c = n.find((g) => g.root === d.root && g.margin === d.margin);
|
|
3180
3205
|
let _;
|
|
3181
3206
|
if (c && (_ = r.get(c), _))
|
|
3182
3207
|
return _;
|
|
3183
|
-
const h = /* @__PURE__ */ new Map(), v = new IntersectionObserver((
|
|
3184
|
-
|
|
3185
|
-
const
|
|
3186
|
-
|
|
3208
|
+
const h = /* @__PURE__ */ new Map(), v = new IntersectionObserver((g) => {
|
|
3209
|
+
g.forEach((y) => {
|
|
3210
|
+
const A = h.get(y.target), p = y.isIntersecting || y.intersectionRatio > 0;
|
|
3211
|
+
A && p && A(p);
|
|
3187
3212
|
});
|
|
3188
3213
|
}, f);
|
|
3189
3214
|
return _ = {
|
|
@@ -3197,28 +3222,28 @@ function oa() {
|
|
|
3197
3222
|
return v.set(f, d), h.observe(f), function() {
|
|
3198
3223
|
if (v.delete(f), h.unobserve(f), v.size === 0) {
|
|
3199
3224
|
h.disconnect(), r.delete(_);
|
|
3200
|
-
const y = n.findIndex((
|
|
3225
|
+
const y = n.findIndex((A) => A.root === _.root && A.margin === _.margin);
|
|
3201
3226
|
y > -1 && n.splice(y, 1);
|
|
3202
3227
|
}
|
|
3203
3228
|
};
|
|
3204
3229
|
}
|
|
3205
3230
|
function l(f) {
|
|
3206
3231
|
let { rootRef: d, rootMargin: c, disabled: _ } = f;
|
|
3207
|
-
const h = _ || !s, [v,
|
|
3208
|
-
y.current =
|
|
3232
|
+
const h = _ || !s, [v, g] = (0, o.useState)(!1), y = (0, o.useRef)(null), A = (0, o.useCallback)((m) => {
|
|
3233
|
+
y.current = m;
|
|
3209
3234
|
}, []);
|
|
3210
3235
|
(0, o.useEffect)(() => {
|
|
3211
3236
|
if (s) {
|
|
3212
3237
|
if (h || v) return;
|
|
3213
|
-
const
|
|
3214
|
-
if (
|
|
3215
|
-
return u(
|
|
3238
|
+
const m = y.current;
|
|
3239
|
+
if (m && m.tagName)
|
|
3240
|
+
return u(m, (P) => P && g(P), {
|
|
3216
3241
|
root: d == null ? void 0 : d.current,
|
|
3217
3242
|
rootMargin: c
|
|
3218
3243
|
});
|
|
3219
3244
|
} else if (!v) {
|
|
3220
|
-
const
|
|
3221
|
-
return () => (0, a.cancelIdleCallback)(
|
|
3245
|
+
const m = (0, a.requestIdleCallback)(() => g(!0));
|
|
3246
|
+
return () => (0, a.cancelIdleCallback)(m);
|
|
3222
3247
|
}
|
|
3223
3248
|
}, [
|
|
3224
3249
|
h,
|
|
@@ -3228,10 +3253,10 @@ function oa() {
|
|
|
3228
3253
|
y.current
|
|
3229
3254
|
]);
|
|
3230
3255
|
const p = (0, o.useCallback)(() => {
|
|
3231
|
-
|
|
3256
|
+
g(!1);
|
|
3232
3257
|
}, []);
|
|
3233
3258
|
return [
|
|
3234
|
-
|
|
3259
|
+
A,
|
|
3235
3260
|
v,
|
|
3236
3261
|
p
|
|
3237
3262
|
];
|
|
@@ -3239,9 +3264,9 @@ function oa() {
|
|
|
3239
3264
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
3240
3265
|
}(qe, qe.exports)), qe.exports;
|
|
3241
3266
|
}
|
|
3242
|
-
var Ue = { exports: {} }, Fe = { exports: {} }, wt = {},
|
|
3243
|
-
function
|
|
3244
|
-
return
|
|
3267
|
+
var Ue = { exports: {} }, Fe = { exports: {} }, wt = {}, zr;
|
|
3268
|
+
function ca() {
|
|
3269
|
+
return zr || (zr = 1, function(t) {
|
|
3245
3270
|
Object.defineProperty(t, "__esModule", {
|
|
3246
3271
|
value: !0
|
|
3247
3272
|
}), Object.defineProperty(t, "normalizeLocalePath", {
|
|
@@ -3272,9 +3297,9 @@ function ia() {
|
|
|
3272
3297
|
}
|
|
3273
3298
|
}(wt)), wt;
|
|
3274
3299
|
}
|
|
3275
|
-
var
|
|
3276
|
-
function
|
|
3277
|
-
return
|
|
3300
|
+
var Xr;
|
|
3301
|
+
function la() {
|
|
3302
|
+
return Xr || (Xr = 1, function(t, e) {
|
|
3278
3303
|
Object.defineProperty(e, "__esModule", {
|
|
3279
3304
|
value: !0
|
|
3280
3305
|
}), Object.defineProperty(e, "normalizeLocalePath", {
|
|
@@ -3283,16 +3308,16 @@ function aa() {
|
|
|
3283
3308
|
return o;
|
|
3284
3309
|
}
|
|
3285
3310
|
});
|
|
3286
|
-
const o = (a, s) => process.env.__NEXT_I18N_SUPPORT ?
|
|
3311
|
+
const o = (a, s) => process.env.__NEXT_I18N_SUPPORT ? ca().normalizeLocalePath(a, s) : {
|
|
3287
3312
|
pathname: a,
|
|
3288
3313
|
detectedLocale: void 0
|
|
3289
3314
|
};
|
|
3290
3315
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
3291
3316
|
}(Fe, Fe.exports)), Fe.exports;
|
|
3292
3317
|
}
|
|
3293
|
-
var ze = { exports: {} },
|
|
3294
|
-
function
|
|
3295
|
-
return
|
|
3318
|
+
var ze = { exports: {} }, Tt = {}, Gr;
|
|
3319
|
+
function fa() {
|
|
3320
|
+
return Gr || (Gr = 1, function(t) {
|
|
3296
3321
|
Object.defineProperty(t, "__esModule", {
|
|
3297
3322
|
value: !0
|
|
3298
3323
|
}), Object.defineProperty(t, "detectDomainLocale", {
|
|
@@ -3312,11 +3337,11 @@ function sa() {
|
|
|
3312
3337
|
}
|
|
3313
3338
|
}
|
|
3314
3339
|
}
|
|
3315
|
-
}(
|
|
3340
|
+
}(Tt)), Tt;
|
|
3316
3341
|
}
|
|
3317
|
-
var
|
|
3318
|
-
function
|
|
3319
|
-
return
|
|
3342
|
+
var Br;
|
|
3343
|
+
function da() {
|
|
3344
|
+
return Br || (Br = 1, function(t, e) {
|
|
3320
3345
|
Object.defineProperty(e, "__esModule", {
|
|
3321
3346
|
value: !0
|
|
3322
3347
|
}), Object.defineProperty(e, "detectDomainLocale", {
|
|
@@ -3329,14 +3354,14 @@ function ua() {
|
|
|
3329
3354
|
for (var a = arguments.length, s = new Array(a), r = 0; r < a; r++)
|
|
3330
3355
|
s[r] = arguments[r];
|
|
3331
3356
|
if (process.env.__NEXT_I18N_SUPPORT)
|
|
3332
|
-
return
|
|
3357
|
+
return fa().detectDomainLocale(...s);
|
|
3333
3358
|
};
|
|
3334
3359
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
3335
3360
|
}(ze, ze.exports)), ze.exports;
|
|
3336
3361
|
}
|
|
3337
|
-
var
|
|
3338
|
-
function
|
|
3339
|
-
return
|
|
3362
|
+
var Vr;
|
|
3363
|
+
function pa() {
|
|
3364
|
+
return Vr || (Vr = 1, function(t, e) {
|
|
3340
3365
|
Object.defineProperty(e, "__esModule", {
|
|
3341
3366
|
value: !0
|
|
3342
3367
|
}), Object.defineProperty(e, "getDomainLocale", {
|
|
@@ -3345,10 +3370,10 @@ function ca() {
|
|
|
3345
3370
|
return s;
|
|
3346
3371
|
}
|
|
3347
3372
|
});
|
|
3348
|
-
const o =
|
|
3373
|
+
const o = Ze(), a = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
3349
3374
|
function s(r, n, i, u) {
|
|
3350
3375
|
if (process.env.__NEXT_I18N_SUPPORT) {
|
|
3351
|
-
const l =
|
|
3376
|
+
const l = la().normalizeLocalePath, f = da().detectDomainLocale, d = n || l(r, i).detectedLocale, c = f(u, void 0, d);
|
|
3352
3377
|
if (c) {
|
|
3353
3378
|
const _ = "http" + (c.http ? "" : "s") + "://", h = d === c.defaultLocale ? "" : "/" + d;
|
|
3354
3379
|
return "" + _ + c.domain + (0, o.normalizePathTrailingSlash)("" + a + h + r);
|
|
@@ -3360,9 +3385,9 @@ function ca() {
|
|
|
3360
3385
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
3361
3386
|
}(Ue, Ue.exports)), Ue.exports;
|
|
3362
3387
|
}
|
|
3363
|
-
var Xe = { exports: {} },
|
|
3364
|
-
function
|
|
3365
|
-
return
|
|
3388
|
+
var Xe = { exports: {} }, Kr;
|
|
3389
|
+
function _a() {
|
|
3390
|
+
return Kr || (Kr = 1, function(t, e) {
|
|
3366
3391
|
Object.defineProperty(e, "__esModule", {
|
|
3367
3392
|
value: !0
|
|
3368
3393
|
}), Object.defineProperty(e, "addBasePath", {
|
|
@@ -3371,16 +3396,16 @@ function la() {
|
|
|
3371
3396
|
return r;
|
|
3372
3397
|
}
|
|
3373
3398
|
});
|
|
3374
|
-
const o =
|
|
3399
|
+
const o = Dn(), a = Ze(), s = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
3375
3400
|
function r(n, i) {
|
|
3376
3401
|
return (0, a.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !i ? n : (0, o.addPathPrefix)(n, s));
|
|
3377
3402
|
}
|
|
3378
3403
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
3379
3404
|
}(Xe, Xe.exports)), Xe.exports;
|
|
3380
3405
|
}
|
|
3381
|
-
var Ge = { exports: {} },
|
|
3382
|
-
function
|
|
3383
|
-
return
|
|
3406
|
+
var Ge = { exports: {} }, Wr;
|
|
3407
|
+
function Ln() {
|
|
3408
|
+
return Wr || (Wr = 1, function(t, e) {
|
|
3384
3409
|
Object.defineProperty(e, "__esModule", {
|
|
3385
3410
|
value: !0
|
|
3386
3411
|
}), Object.defineProperty(e, "useMergedRef", {
|
|
@@ -3427,40 +3452,40 @@ function Nn() {
|
|
|
3427
3452
|
return E;
|
|
3428
3453
|
}
|
|
3429
3454
|
});
|
|
3430
|
-
const o = Se, a =
|
|
3431
|
-
function
|
|
3455
|
+
const o = Se, a = Bt, s = /* @__PURE__ */ o._(Oe), r = oa(), n = Tn(), i = An(), u = Je(), l = aa(), f = xn(), d = ua(), c = pa(), _ = _a(), h = Ln(), v = /* @__PURE__ */ new Set();
|
|
3456
|
+
function g(P, O, w, T) {
|
|
3432
3457
|
if (!(typeof window > "u") && (0, n.isLocalURL)(O)) {
|
|
3433
3458
|
if (!T.bypassPrefetchedCheck) {
|
|
3434
3459
|
const C = (
|
|
3435
3460
|
// Let the link's locale prop override the default router locale.
|
|
3436
3461
|
typeof T.locale < "u" ? T.locale : "locale" in P ? P.locale : void 0
|
|
3437
|
-
), j = O + "%" +
|
|
3462
|
+
), j = O + "%" + w + "%" + C;
|
|
3438
3463
|
if (v.has(j))
|
|
3439
3464
|
return;
|
|
3440
3465
|
v.add(j);
|
|
3441
3466
|
}
|
|
3442
|
-
P.prefetch(O,
|
|
3467
|
+
P.prefetch(O, w, T).catch((C) => {
|
|
3443
3468
|
if (process.env.NODE_ENV !== "production")
|
|
3444
3469
|
throw C;
|
|
3445
3470
|
});
|
|
3446
3471
|
}
|
|
3447
3472
|
}
|
|
3448
3473
|
function y(P) {
|
|
3449
|
-
const
|
|
3450
|
-
return
|
|
3474
|
+
const w = P.currentTarget.getAttribute("target");
|
|
3475
|
+
return w && w !== "_self" || P.metaKey || P.ctrlKey || P.shiftKey || P.altKey || // triggers resource download
|
|
3451
3476
|
P.nativeEvent && P.nativeEvent.which === 2;
|
|
3452
3477
|
}
|
|
3453
|
-
function
|
|
3478
|
+
function A(P, O, w, T, C, j, M, te) {
|
|
3454
3479
|
const { nodeName: x } = P.currentTarget;
|
|
3455
|
-
if (x.toUpperCase() === "A" && (y(P) || !(0, n.isLocalURL)(
|
|
3480
|
+
if (x.toUpperCase() === "A" && (y(P) || !(0, n.isLocalURL)(w)))
|
|
3456
3481
|
return;
|
|
3457
3482
|
P.preventDefault(), (() => {
|
|
3458
3483
|
const oe = M ?? !0;
|
|
3459
|
-
"beforePopState" in O ? O[C ? "replace" : "push"](
|
|
3484
|
+
"beforePopState" in O ? O[C ? "replace" : "push"](w, T, {
|
|
3460
3485
|
shallow: j,
|
|
3461
3486
|
locale: te,
|
|
3462
3487
|
scroll: oe
|
|
3463
|
-
}) : O[C ? "replace" : "push"](T ||
|
|
3488
|
+
}) : O[C ? "replace" : "push"](T || w, {
|
|
3464
3489
|
scroll: oe
|
|
3465
3490
|
});
|
|
3466
3491
|
})();
|
|
@@ -3468,7 +3493,7 @@ function Nn() {
|
|
|
3468
3493
|
function p(P) {
|
|
3469
3494
|
return typeof P == "string" ? P : (0, i.formatUrl)(P);
|
|
3470
3495
|
}
|
|
3471
|
-
const E = /* @__PURE__ */ s.default.forwardRef(function(O,
|
|
3496
|
+
const E = /* @__PURE__ */ s.default.forwardRef(function(O, w) {
|
|
3472
3497
|
let T;
|
|
3473
3498
|
const { href: C, as: j, children: M, prefetch: te = null, passHref: x, replace: $, shallow: G, scroll: oe, locale: K, onClick: B, onMouseEnter: Y, onTouchStart: ce, legacyBehavior: Z = !1, ...ie } = O;
|
|
3474
3499
|
T = M, Z && (typeof T == "string" || typeof T == "number") && (T = /* @__PURE__ */ (0, a.jsx)("a", {
|
|
@@ -3581,7 +3606,7 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
|
|
|
3581
3606
|
enumerable: !1,
|
|
3582
3607
|
configurable: !0
|
|
3583
3608
|
});
|
|
3584
|
-
const b = Z ? V && typeof V == "object" && V.ref :
|
|
3609
|
+
const b = Z ? V && typeof V == "object" && V.ref : w, [S, me, N] = (0, d.useIntersection)({
|
|
3585
3610
|
rootMargin: "200px"
|
|
3586
3611
|
}), U = s.default.useCallback((X) => {
|
|
3587
3612
|
(ue.current !== R || ee.current !== W) && (N(), ue.current = R, ee.current = W), S(X);
|
|
@@ -3592,7 +3617,7 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
|
|
|
3592
3617
|
S
|
|
3593
3618
|
]), Q = (0, h.useMergedRef)(U, b);
|
|
3594
3619
|
s.default.useEffect(() => {
|
|
3595
|
-
process.env.NODE_ENV === "production" && k && (!me || !pe ||
|
|
3620
|
+
process.env.NODE_ENV === "production" && k && (!me || !pe || g(k, W, R, {
|
|
3596
3621
|
locale: K
|
|
3597
3622
|
}));
|
|
3598
3623
|
}, [
|
|
@@ -3613,10 +3638,10 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
|
|
|
3613
3638
|
enumerable: !1,
|
|
3614
3639
|
configurable: !0
|
|
3615
3640
|
});
|
|
3616
|
-
!Z && typeof B == "function" && B(X), Z && V.props && typeof V.props.onClick == "function" && V.props.onClick(X), k && (X.defaultPrevented ||
|
|
3641
|
+
!Z && typeof B == "function" && B(X), Z && V.props && typeof V.props.onClick == "function" && V.props.onClick(X), k && (X.defaultPrevented || A(X, k, W, R, $, G, oe, K));
|
|
3617
3642
|
},
|
|
3618
3643
|
onMouseEnter(X) {
|
|
3619
|
-
!Z && typeof Y == "function" && Y(X), Z && V.props && typeof V.props.onMouseEnter == "function" && V.props.onMouseEnter(X), k &&
|
|
3644
|
+
!Z && typeof Y == "function" && Y(X), Z && V.props && typeof V.props.onMouseEnter == "function" && V.props.onMouseEnter(X), k && g(k, W, R, {
|
|
3620
3645
|
locale: K,
|
|
3621
3646
|
priority: !0,
|
|
3622
3647
|
// @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
|
|
@@ -3624,7 +3649,7 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
|
|
|
3624
3649
|
});
|
|
3625
3650
|
},
|
|
3626
3651
|
onTouchStart: process.env.__NEXT_LINK_NO_TOUCH_START ? void 0 : function(ne) {
|
|
3627
|
-
!Z && typeof ce == "function" && ce(ne), Z && V.props && typeof V.props.onTouchStart == "function" && V.props.onTouchStart(ne), k &&
|
|
3652
|
+
!Z && typeof ce == "function" && ce(ne), Z && V.props && typeof V.props.onTouchStart == "function" && V.props.onTouchStart(ne), k && g(k, W, R, {
|
|
3628
3653
|
locale: K,
|
|
3629
3654
|
priority: !0,
|
|
3630
3655
|
// @see {https://github.com/vercel/next.js/discussions/40268?sort=top#discussioncomment-3572642}
|
|
@@ -3645,13 +3670,13 @@ Learn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor`
|
|
|
3645
3670
|
});
|
|
3646
3671
|
});
|
|
3647
3672
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
3648
|
-
})(
|
|
3649
|
-
var
|
|
3650
|
-
const
|
|
3651
|
-
link:
|
|
3652
|
-
wrapper:
|
|
3653
|
-
text:
|
|
3654
|
-
},
|
|
3673
|
+
})(Xt, Xt.exports);
|
|
3674
|
+
var ha = Xt.exports, ga = ha;
|
|
3675
|
+
const ma = /* @__PURE__ */ On(ga), Ea = "_link_w24h0_1", ya = "_wrapper_w24h0_98", va = "_text_w24h0_106", Nt = {
|
|
3676
|
+
link: Ea,
|
|
3677
|
+
wrapper: ya,
|
|
3678
|
+
text: va
|
|
3679
|
+
}, Mn = ({
|
|
3655
3680
|
children: t,
|
|
3656
3681
|
adornments: e,
|
|
3657
3682
|
className: o,
|
|
@@ -3664,38 +3689,38 @@ const pa = /* @__PURE__ */ Rn(da), _a = "_link_w24h0_1", ha = "_wrapper_w24h0_98
|
|
|
3664
3689
|
disablePadding: l,
|
|
3665
3690
|
...f
|
|
3666
3691
|
}) => {
|
|
3667
|
-
const d =
|
|
3668
|
-
fieldTypes:
|
|
3692
|
+
const d = we.ValidateProp({
|
|
3693
|
+
fieldTypes: Kn,
|
|
3669
3694
|
property: n,
|
|
3670
3695
|
fallback: "medium"
|
|
3671
|
-
}), c =
|
|
3672
|
-
fieldTypes:
|
|
3696
|
+
}), c = we.ValidateProp({
|
|
3697
|
+
fieldTypes: Wn,
|
|
3673
3698
|
property: r,
|
|
3674
3699
|
fallback: "default"
|
|
3675
3700
|
});
|
|
3676
3701
|
return /* @__PURE__ */ H(
|
|
3677
|
-
|
|
3702
|
+
ma,
|
|
3678
3703
|
{
|
|
3679
3704
|
...f,
|
|
3680
|
-
className:
|
|
3705
|
+
className: we.classNameConcat(Nt.link, o),
|
|
3681
3706
|
href: s && s.length > 0 ? s : "#",
|
|
3682
3707
|
"data-size": d,
|
|
3683
3708
|
"data-variant": c,
|
|
3684
3709
|
title: i || "NextLink",
|
|
3685
3710
|
"data-disable-underline": a ?? !1,
|
|
3686
3711
|
"data-disable-padding": l ?? !0,
|
|
3687
|
-
children: /* @__PURE__ */ he("div", { className:
|
|
3712
|
+
children: /* @__PURE__ */ he("div", { className: Nt.wrapper, onClick: u, children: [
|
|
3688
3713
|
e == null ? void 0 : e.start,
|
|
3689
|
-
/* @__PURE__ */ H("p", { className:
|
|
3714
|
+
/* @__PURE__ */ H("p", { className: Nt.text, "data-size": d, children: t }),
|
|
3690
3715
|
e == null ? void 0 : e.end
|
|
3691
3716
|
] })
|
|
3692
3717
|
}
|
|
3693
3718
|
);
|
|
3694
|
-
},
|
|
3719
|
+
}, Ra = ({ children: t, freightConfig: e }) => /* @__PURE__ */ he("div", { className: re.shippingFreight, children: [
|
|
3695
3720
|
/* @__PURE__ */ he("div", { className: re.shippingFreight__grid, children: [
|
|
3696
3721
|
/* @__PURE__ */ H("span", { className: re.shippingFreight__grid__title, children: e.messages.title }),
|
|
3697
3722
|
/* @__PURE__ */ H("span", { className: re.shippingFreight__grid__remember, children: /* @__PURE__ */ H(
|
|
3698
|
-
|
|
3723
|
+
Mn,
|
|
3699
3724
|
{
|
|
3700
3725
|
href: "https://buscacepinter.correios.com.br/app/endereco/index.php",
|
|
3701
3726
|
passHref: !0,
|
|
@@ -3709,9 +3734,9 @@ const pa = /* @__PURE__ */ Rn(da), _a = "_link_w24h0_1", ha = "_wrapper_w24h0_98
|
|
|
3709
3734
|
) })
|
|
3710
3735
|
] }),
|
|
3711
3736
|
/* @__PURE__ */ H("div", { className: re.shippingFreight__postalCodeGrid, children: t })
|
|
3712
|
-
] }),
|
|
3737
|
+
] }), ba = ({
|
|
3713
3738
|
children: t
|
|
3714
|
-
}) => /* @__PURE__ */ H("div", { className: re.freightContainer, children: t }),
|
|
3739
|
+
}) => /* @__PURE__ */ H("div", { className: re.freightContainer, children: t }), Pa = ({
|
|
3715
3740
|
className: t,
|
|
3716
3741
|
sellerId: e,
|
|
3717
3742
|
skuId: o,
|
|
@@ -3721,42 +3746,42 @@ const pa = /* @__PURE__ */ Rn(da), _a = "_link_w24h0_1", ha = "_wrapper_w24h0_98
|
|
|
3721
3746
|
local: n,
|
|
3722
3747
|
CONSTANTS_PROPS: i
|
|
3723
3748
|
}) => {
|
|
3724
|
-
const { sendDataLayerEvent: u } =
|
|
3749
|
+
const { sendDataLayerEvent: u } = Qe(), [l, f] = Re(""), [d, c] = Re([]), [_, h] = Re(""), [v, g] = Re(!1), y = (p) => f(p), A = (p) => {
|
|
3725
3750
|
c(p), u({
|
|
3726
3751
|
functionKey: "readyEvents",
|
|
3727
3752
|
data: {
|
|
3728
3753
|
event: "search_zipcode",
|
|
3729
3754
|
readyData: {
|
|
3730
|
-
shippings: p.map((
|
|
3731
|
-
shipping_tier:
|
|
3732
|
-
delivery_time:
|
|
3733
|
-
flag_pickup:
|
|
3734
|
-
shipping:
|
|
3755
|
+
shippings: p.map((m) => ({
|
|
3756
|
+
shipping_tier: m.id,
|
|
3757
|
+
delivery_time: m.shippingEstimate.replace("bd", ""),
|
|
3758
|
+
flag_pickup: m.name.toLowerCase().includes("retirada") ? "true" : "false",
|
|
3759
|
+
shipping: m.price,
|
|
3735
3760
|
currency: i.currency || "BRL"
|
|
3736
3761
|
}))
|
|
3737
3762
|
}
|
|
3738
3763
|
}
|
|
3739
3764
|
});
|
|
3740
3765
|
};
|
|
3741
|
-
return /* @__PURE__ */ he(
|
|
3742
|
-
/* @__PURE__ */ he(
|
|
3743
|
-
/* @__PURE__ */ H(
|
|
3744
|
-
|
|
3766
|
+
return /* @__PURE__ */ he(ba, { className: t, children: [
|
|
3767
|
+
/* @__PURE__ */ he(Ra, { freightConfig: i.freightConfig, children: [
|
|
3768
|
+
/* @__PURE__ */ H(Hi, { children: /* @__PURE__ */ H(
|
|
3769
|
+
Fi,
|
|
3745
3770
|
{
|
|
3746
|
-
onUpdateFreightItems:
|
|
3771
|
+
onUpdateFreightItems: A,
|
|
3747
3772
|
skuId: o,
|
|
3748
3773
|
quantity: a,
|
|
3749
3774
|
size: s,
|
|
3750
3775
|
sellerId: e,
|
|
3751
3776
|
local: n,
|
|
3752
3777
|
setError: h,
|
|
3753
|
-
setIsButtonClicked:
|
|
3778
|
+
setIsButtonClicked: g,
|
|
3754
3779
|
freightConfig: i.freightConfig,
|
|
3755
3780
|
toolTipZIndex: i.toolTipZIndex
|
|
3756
3781
|
}
|
|
3757
3782
|
) }),
|
|
3758
|
-
_ ? /* @__PURE__ */ H(
|
|
3759
|
-
|
|
3783
|
+
_ ? /* @__PURE__ */ H(pr, { size: s, message: _, setError: h }) : d.length > 0 && /* @__PURE__ */ H(
|
|
3784
|
+
pr,
|
|
3760
3785
|
{
|
|
3761
3786
|
size: s,
|
|
3762
3787
|
message: i.freightConfig.messages.delivered_by,
|
|
@@ -3764,21 +3789,21 @@ const pa = /* @__PURE__ */ Rn(da), _a = "_link_w24h0_1", ha = "_wrapper_w24h0_98
|
|
|
3764
3789
|
}
|
|
3765
3790
|
)
|
|
3766
3791
|
] }),
|
|
3767
|
-
v && !_ ? d.length > 0 && /* @__PURE__ */ he(
|
|
3768
|
-
/* @__PURE__ */ H(
|
|
3769
|
-
|
|
3792
|
+
v && !_ ? d.length > 0 && /* @__PURE__ */ he(ji, { children: [
|
|
3793
|
+
/* @__PURE__ */ H(ki, { children: d.filter(({ id: p }) => !p.includes("Retirada")).map((p) => /* @__PURE__ */ H(
|
|
3794
|
+
Mi,
|
|
3770
3795
|
{
|
|
3771
3796
|
id: p.id,
|
|
3772
|
-
value:
|
|
3797
|
+
value: gn({ valueInCents: p.price, hasFree: !1, freeTaxMessage: i.freightConfig.messages.free_tax }),
|
|
3773
3798
|
title: p.name,
|
|
3774
|
-
paragraph: `${i.freightConfig.messages.prefix_days}${
|
|
3799
|
+
paragraph: `${i.freightConfig.messages.prefix_days}${qi(p.shippingEstimate)}`,
|
|
3775
3800
|
radioValue: l,
|
|
3776
3801
|
changeValue: y
|
|
3777
3802
|
},
|
|
3778
3803
|
p.id
|
|
3779
3804
|
)) }),
|
|
3780
3805
|
i.deliveryInfoBoxesAllowed ? /* @__PURE__ */ H(
|
|
3781
|
-
|
|
3806
|
+
Li,
|
|
3782
3807
|
{
|
|
3783
3808
|
icon: i.freightConfig.icons.delivery_truck,
|
|
3784
3809
|
packageUnit: i.freightConfig.messages.unit_amout,
|
|
@@ -3789,15 +3814,15 @@ const pa = /* @__PURE__ */ Rn(da), _a = "_link_w24h0_1", ha = "_wrapper_w24h0_98
|
|
|
3789
3814
|
freightConfig: i.freightConfig,
|
|
3790
3815
|
toolTipZIndex: i.toolTipZIndex ?? 999
|
|
3791
3816
|
}
|
|
3792
|
-
) : /* @__PURE__ */ H(
|
|
3817
|
+
) : /* @__PURE__ */ H(Vt, {})
|
|
3793
3818
|
] }) : null
|
|
3794
3819
|
] });
|
|
3795
|
-
},
|
|
3820
|
+
}, Oa = {
|
|
3796
3821
|
"observer-wrapper": "_observer-wrapper_r43gk_1"
|
|
3797
3822
|
};
|
|
3798
|
-
function
|
|
3823
|
+
function Sa(t, e, o) {
|
|
3799
3824
|
const [a, s] = Re(!1), { threshold: r } = o || {};
|
|
3800
|
-
return
|
|
3825
|
+
return Ae(() => {
|
|
3801
3826
|
if (!t.current)
|
|
3802
3827
|
return () => {
|
|
3803
3828
|
};
|
|
@@ -3821,7 +3846,7 @@ function Ra(t, e, o) {
|
|
|
3821
3846
|
};
|
|
3822
3847
|
}, [t]), a;
|
|
3823
3848
|
}
|
|
3824
|
-
const
|
|
3849
|
+
const Ca = ({
|
|
3825
3850
|
children: t,
|
|
3826
3851
|
eventData: e,
|
|
3827
3852
|
observerOptions: o,
|
|
@@ -3830,22 +3855,22 @@ const ba = ({
|
|
|
3830
3855
|
className: r,
|
|
3831
3856
|
...n
|
|
3832
3857
|
}) => {
|
|
3833
|
-
const i =
|
|
3834
|
-
return
|
|
3858
|
+
const i = ye(null), u = Sa(i, s, o), { sendDataLayerEvent: l } = Qe();
|
|
3859
|
+
return Ae(() => {
|
|
3835
3860
|
u && (typeof a == "function" && a(), e && l({ ...e }));
|
|
3836
3861
|
}, [u]), /* @__PURE__ */ H(
|
|
3837
3862
|
"div",
|
|
3838
3863
|
{
|
|
3839
3864
|
...n,
|
|
3840
3865
|
ref: i,
|
|
3841
|
-
className:
|
|
3866
|
+
className: we.classNameConcat(Oa["observer-wrapper"], r),
|
|
3842
3867
|
children: t
|
|
3843
3868
|
}
|
|
3844
3869
|
);
|
|
3845
|
-
},
|
|
3846
|
-
image:
|
|
3870
|
+
}, Aa = "_image_lypfr_1", Ia = {
|
|
3871
|
+
image: Aa
|
|
3847
3872
|
};
|
|
3848
|
-
var
|
|
3873
|
+
var jn = {}, nr = {}, et = {};
|
|
3849
3874
|
(function(t) {
|
|
3850
3875
|
Object.defineProperty(t, "__esModule", {
|
|
3851
3876
|
value: !0
|
|
@@ -3863,8 +3888,8 @@ var xn = {}, er = {}, Je = {};
|
|
|
3863
3888
|
o.has(a) || console.warn(a), o.add(a);
|
|
3864
3889
|
};
|
|
3865
3890
|
}
|
|
3866
|
-
})(
|
|
3867
|
-
var
|
|
3891
|
+
})(et);
|
|
3892
|
+
var kn = {};
|
|
3868
3893
|
(function(t) {
|
|
3869
3894
|
Object.defineProperty(t, "__esModule", {
|
|
3870
3895
|
value: !0
|
|
@@ -3879,8 +3904,8 @@ var Ln = {};
|
|
|
3879
3904
|
const l = 20, f = r ? r * 40 : a, d = n ? n * 40 : s, c = f && d ? "viewBox='0 0 " + f + " " + d + "'" : "", _ = c ? "none" : u === "contain" ? "xMidYMid" : u === "cover" ? "xMidYMid slice" : "none";
|
|
3880
3905
|
return "%3Csvg xmlns='http://www.w3.org/2000/svg' " + c + "%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='" + l + "'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='" + l + "'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='" + _ + "' style='filter: url(%23b);' href='" + i + "'/%3E%3C/svg%3E";
|
|
3881
3906
|
}
|
|
3882
|
-
})(
|
|
3883
|
-
var
|
|
3907
|
+
})(kn);
|
|
3908
|
+
var tt = {};
|
|
3884
3909
|
(function(t) {
|
|
3885
3910
|
Object.defineProperty(t, "__esModule", {
|
|
3886
3911
|
value: !0
|
|
@@ -3943,7 +3968,7 @@ var Ze = {};
|
|
|
3943
3968
|
qualities: void 0,
|
|
3944
3969
|
unoptimized: !1
|
|
3945
3970
|
};
|
|
3946
|
-
})(
|
|
3971
|
+
})(tt);
|
|
3947
3972
|
(function(t) {
|
|
3948
3973
|
Object.defineProperty(t, "__esModule", {
|
|
3949
3974
|
value: !0
|
|
@@ -3953,7 +3978,7 @@ var Ze = {};
|
|
|
3953
3978
|
return _;
|
|
3954
3979
|
}
|
|
3955
3980
|
});
|
|
3956
|
-
const e =
|
|
3981
|
+
const e = et, o = kn, a = tt, s = [
|
|
3957
3982
|
"lazy",
|
|
3958
3983
|
"eager",
|
|
3959
3984
|
void 0
|
|
@@ -3972,21 +3997,21 @@ var Ze = {};
|
|
|
3972
3997
|
function f(h) {
|
|
3973
3998
|
return typeof h > "u" ? h : typeof h == "number" ? Number.isFinite(h) ? h : NaN : typeof h == "string" && /^[0-9]+$/.test(h) ? parseInt(h, 10) : NaN;
|
|
3974
3999
|
}
|
|
3975
|
-
function d(h, v,
|
|
3976
|
-
let { deviceSizes: y, allSizes:
|
|
3977
|
-
if (
|
|
3978
|
-
const
|
|
3979
|
-
for (let P; P =
|
|
4000
|
+
function d(h, v, g) {
|
|
4001
|
+
let { deviceSizes: y, allSizes: A } = h;
|
|
4002
|
+
if (g) {
|
|
4003
|
+
const m = /(^|\s)(1?\d?\d)vw/g, E = [];
|
|
4004
|
+
for (let P; P = m.exec(g); P)
|
|
3980
4005
|
E.push(parseInt(P[2]));
|
|
3981
4006
|
if (E.length) {
|
|
3982
4007
|
const P = Math.min(...E) * 0.01;
|
|
3983
4008
|
return {
|
|
3984
|
-
widths:
|
|
4009
|
+
widths: A.filter((O) => O >= y[0] * P),
|
|
3985
4010
|
kind: "w"
|
|
3986
4011
|
};
|
|
3987
4012
|
}
|
|
3988
4013
|
return {
|
|
3989
|
-
widths:
|
|
4014
|
+
widths: A,
|
|
3990
4015
|
kind: "w"
|
|
3991
4016
|
};
|
|
3992
4017
|
}
|
|
@@ -4008,26 +4033,26 @@ var Ze = {};
|
|
|
4008
4033
|
v,
|
|
4009
4034
|
v * 2
|
|
4010
4035
|
/*, width * 3*/
|
|
4011
|
-
].map((
|
|
4036
|
+
].map((m) => A.find((E) => E >= m) || A[A.length - 1])
|
|
4012
4037
|
)
|
|
4013
4038
|
],
|
|
4014
4039
|
kind: "x"
|
|
4015
4040
|
};
|
|
4016
4041
|
}
|
|
4017
4042
|
function c(h) {
|
|
4018
|
-
let { config: v, src:
|
|
4043
|
+
let { config: v, src: g, unoptimized: y, width: A, quality: p, sizes: m, loader: E } = h;
|
|
4019
4044
|
if (y)
|
|
4020
4045
|
return {
|
|
4021
|
-
src:
|
|
4046
|
+
src: g,
|
|
4022
4047
|
srcSet: void 0,
|
|
4023
4048
|
sizes: void 0
|
|
4024
4049
|
};
|
|
4025
|
-
const { widths: P, kind: O } = d(v,
|
|
4050
|
+
const { widths: P, kind: O } = d(v, A, m), w = P.length - 1;
|
|
4026
4051
|
return {
|
|
4027
|
-
sizes: !
|
|
4052
|
+
sizes: !m && O === "w" ? "100vw" : m,
|
|
4028
4053
|
srcSet: P.map((T, C) => E({
|
|
4029
4054
|
config: v,
|
|
4030
|
-
src:
|
|
4055
|
+
src: g,
|
|
4031
4056
|
quality: p,
|
|
4032
4057
|
width: T
|
|
4033
4058
|
}) + " " + (O === "w" ? T : C + 1) + O).join(", "),
|
|
@@ -4039,14 +4064,14 @@ var Ze = {};
|
|
|
4039
4064
|
// This bug cannot be reproduced in Chrome or Firefox.
|
|
4040
4065
|
src: E({
|
|
4041
4066
|
config: v,
|
|
4042
|
-
src:
|
|
4067
|
+
src: g,
|
|
4043
4068
|
quality: p,
|
|
4044
|
-
width: P[
|
|
4069
|
+
width: P[w]
|
|
4045
4070
|
})
|
|
4046
4071
|
};
|
|
4047
4072
|
}
|
|
4048
4073
|
function _(h, v) {
|
|
4049
|
-
let { src:
|
|
4074
|
+
let { src: g, sizes: y, unoptimized: A = !1, priority: p = !1, loading: m, className: E, quality: P, width: O, height: w, fill: T = !1, style: C, overrideSrc: j, onLoad: M, onLoadingComplete: te, placeholder: x = "empty", blurDataURL: $, fetchPriority: G, decoding: oe = "async", layout: K, objectFit: B, objectPosition: Y, lazyBoundary: ce, lazyRoot: Z, ...ie } = h;
|
|
4050
4075
|
const { imgConf: k, showAltText: pe, blurComplete: W, defaultLoader: R } = v;
|
|
4051
4076
|
let ee, ue = k || a.imageConfigDefault;
|
|
4052
4077
|
if ("allSizes" in ue)
|
|
@@ -4056,11 +4081,11 @@ var Ze = {};
|
|
|
4056
4081
|
const L = [
|
|
4057
4082
|
...ue.deviceSizes,
|
|
4058
4083
|
...ue.imageSizes
|
|
4059
|
-
].sort((J, ae) => J - ae),
|
|
4084
|
+
].sort((J, ae) => J - ae), I = ue.deviceSizes.sort((J, ae) => J - ae), z = (V = ue.qualities) == null ? void 0 : V.sort((J, ae) => J - ae);
|
|
4060
4085
|
ee = {
|
|
4061
4086
|
...ue,
|
|
4062
4087
|
allSizes: L,
|
|
4063
|
-
deviceSizes:
|
|
4088
|
+
deviceSizes: I,
|
|
4064
4089
|
qualities: z
|
|
4065
4090
|
};
|
|
4066
4091
|
}
|
|
@@ -4076,7 +4101,7 @@ Read more: https://nextjs.org/docs/messages/invalid-images-config`), "__NEXT_ERR
|
|
|
4076
4101
|
const S = "__next_img_default" in b;
|
|
4077
4102
|
if (S) {
|
|
4078
4103
|
if (ee.loader === "custom")
|
|
4079
|
-
throw Object.defineProperty(new Error('Image with src "' +
|
|
4104
|
+
throw Object.defineProperty(new Error('Image with src "' + g + `" is missing "loader" prop.
|
|
4080
4105
|
Read more: https://nextjs.org/docs/messages/next-image-missing-loader`), "__NEXT_ERROR_CODE", {
|
|
4081
4106
|
value: "E252",
|
|
4082
4107
|
enumerable: !1,
|
|
@@ -4084,8 +4109,8 @@ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`), "__NEXT
|
|
|
4084
4109
|
});
|
|
4085
4110
|
} else {
|
|
4086
4111
|
const L = b;
|
|
4087
|
-
b = (
|
|
4088
|
-
const { config: z, ...J } =
|
|
4112
|
+
b = (I) => {
|
|
4113
|
+
const { config: z, ...J } = I;
|
|
4089
4114
|
return L(J);
|
|
4090
4115
|
};
|
|
4091
4116
|
}
|
|
@@ -4100,7 +4125,7 @@ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`), "__NEXT
|
|
|
4100
4125
|
width: "100%",
|
|
4101
4126
|
height: "auto"
|
|
4102
4127
|
}
|
|
4103
|
-
},
|
|
4128
|
+
}, I = {
|
|
4104
4129
|
responsive: "100vw",
|
|
4105
4130
|
fill: "100vw"
|
|
4106
4131
|
}, z = L[K];
|
|
@@ -4108,12 +4133,12 @@ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`), "__NEXT
|
|
|
4108
4133
|
...C,
|
|
4109
4134
|
...z
|
|
4110
4135
|
});
|
|
4111
|
-
const J =
|
|
4136
|
+
const J = I[K];
|
|
4112
4137
|
J && !y && (y = J);
|
|
4113
4138
|
}
|
|
4114
|
-
let me = "", N = f(O), U = f(
|
|
4115
|
-
if (i(
|
|
4116
|
-
const L = r(
|
|
4139
|
+
let me = "", N = f(O), U = f(w), Q, le;
|
|
4140
|
+
if (i(g)) {
|
|
4141
|
+
const L = r(g) ? g.default : g;
|
|
4117
4142
|
if (!L.src)
|
|
4118
4143
|
throw Object.defineProperty(new Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received " + JSON.stringify(L)), "__NEXT_ERROR_CODE", {
|
|
4119
4144
|
value: "E460",
|
|
@@ -4130,122 +4155,122 @@ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`), "__NEXT
|
|
|
4130
4155
|
if (!N && !U)
|
|
4131
4156
|
N = L.width, U = L.height;
|
|
4132
4157
|
else if (N && !U) {
|
|
4133
|
-
const
|
|
4134
|
-
U = Math.round(L.height *
|
|
4158
|
+
const I = N / L.width;
|
|
4159
|
+
U = Math.round(L.height * I);
|
|
4135
4160
|
} else if (!N && U) {
|
|
4136
|
-
const
|
|
4137
|
-
N = Math.round(L.width *
|
|
4161
|
+
const I = U / L.height;
|
|
4162
|
+
N = Math.round(L.width * I);
|
|
4138
4163
|
}
|
|
4139
4164
|
}
|
|
4140
4165
|
}
|
|
4141
|
-
|
|
4142
|
-
let X = !p && (
|
|
4143
|
-
(!
|
|
4166
|
+
g = typeof g == "string" ? g : me;
|
|
4167
|
+
let X = !p && (m === "lazy" || typeof m > "u");
|
|
4168
|
+
(!g || g.startsWith("data:") || g.startsWith("blob:")) && (A = !0, X = !1), ee.unoptimized && (A = !0), S && !ee.dangerouslyAllowSVG && g.split("?", 1)[0].endsWith(".svg") && (A = !0);
|
|
4144
4169
|
const ne = f(P);
|
|
4145
4170
|
if (process.env.NODE_ENV !== "production") {
|
|
4146
|
-
if (ee.output === "export" && S && !
|
|
4171
|
+
if (ee.output === "export" && S && !A)
|
|
4147
4172
|
throw Object.defineProperty(new Error("Image Optimization using the default loader is not compatible with `{ output: 'export' }`.\n Possible solutions:\n - Remove `{ output: 'export' }` and run \"next start\" to run server mode including the Image Optimization API.\n - Configure `{ images: { unoptimized: true } }` in `next.config.js` to disable the Image Optimization API.\n Read more: https://nextjs.org/docs/messages/export-image-api"), "__NEXT_ERROR_CODE", {
|
|
4148
4173
|
value: "E500",
|
|
4149
4174
|
enumerable: !1,
|
|
4150
4175
|
configurable: !0
|
|
4151
4176
|
});
|
|
4152
|
-
if (!
|
|
4153
|
-
|
|
4177
|
+
if (!g)
|
|
4178
|
+
A = !0;
|
|
4154
4179
|
else if (T) {
|
|
4155
4180
|
if (O)
|
|
4156
|
-
throw Object.defineProperty(new Error('Image with src "' +
|
|
4181
|
+
throw Object.defineProperty(new Error('Image with src "' + g + '" has both "width" and "fill" properties. Only one should be used.'), "__NEXT_ERROR_CODE", {
|
|
4157
4182
|
value: "E96",
|
|
4158
4183
|
enumerable: !1,
|
|
4159
4184
|
configurable: !0
|
|
4160
4185
|
});
|
|
4161
|
-
if (
|
|
4162
|
-
throw Object.defineProperty(new Error('Image with src "' +
|
|
4186
|
+
if (w)
|
|
4187
|
+
throw Object.defineProperty(new Error('Image with src "' + g + '" has both "height" and "fill" properties. Only one should be used.'), "__NEXT_ERROR_CODE", {
|
|
4163
4188
|
value: "E115",
|
|
4164
4189
|
enumerable: !1,
|
|
4165
4190
|
configurable: !0
|
|
4166
4191
|
});
|
|
4167
4192
|
if (C != null && C.position && C.position !== "absolute")
|
|
4168
|
-
throw Object.defineProperty(new Error('Image with src "' +
|
|
4193
|
+
throw Object.defineProperty(new Error('Image with src "' + g + '" has both "fill" and "style.position" properties. Images with "fill" always use position absolute - it cannot be modified.'), "__NEXT_ERROR_CODE", {
|
|
4169
4194
|
value: "E216",
|
|
4170
4195
|
enumerable: !1,
|
|
4171
4196
|
configurable: !0
|
|
4172
4197
|
});
|
|
4173
4198
|
if (C != null && C.width && C.width !== "100%")
|
|
4174
|
-
throw Object.defineProperty(new Error('Image with src "' +
|
|
4199
|
+
throw Object.defineProperty(new Error('Image with src "' + g + '" has both "fill" and "style.width" properties. Images with "fill" always use width 100% - it cannot be modified.'), "__NEXT_ERROR_CODE", {
|
|
4175
4200
|
value: "E73",
|
|
4176
4201
|
enumerable: !1,
|
|
4177
4202
|
configurable: !0
|
|
4178
4203
|
});
|
|
4179
4204
|
if (C != null && C.height && C.height !== "100%")
|
|
4180
|
-
throw Object.defineProperty(new Error('Image with src "' +
|
|
4205
|
+
throw Object.defineProperty(new Error('Image with src "' + g + '" has both "fill" and "style.height" properties. Images with "fill" always use height 100% - it cannot be modified.'), "__NEXT_ERROR_CODE", {
|
|
4181
4206
|
value: "E404",
|
|
4182
4207
|
enumerable: !1,
|
|
4183
4208
|
configurable: !0
|
|
4184
4209
|
});
|
|
4185
4210
|
} else {
|
|
4186
4211
|
if (typeof N > "u")
|
|
4187
|
-
throw Object.defineProperty(new Error('Image with src "' +
|
|
4212
|
+
throw Object.defineProperty(new Error('Image with src "' + g + '" is missing required "width" property.'), "__NEXT_ERROR_CODE", {
|
|
4188
4213
|
value: "E451",
|
|
4189
4214
|
enumerable: !1,
|
|
4190
4215
|
configurable: !0
|
|
4191
4216
|
});
|
|
4192
4217
|
if (isNaN(N))
|
|
4193
|
-
throw Object.defineProperty(new Error('Image with src "' +
|
|
4218
|
+
throw Object.defineProperty(new Error('Image with src "' + g + '" has invalid "width" property. Expected a numeric value in pixels but received "' + O + '".'), "__NEXT_ERROR_CODE", {
|
|
4194
4219
|
value: "E66",
|
|
4195
4220
|
enumerable: !1,
|
|
4196
4221
|
configurable: !0
|
|
4197
4222
|
});
|
|
4198
4223
|
if (typeof U > "u")
|
|
4199
|
-
throw Object.defineProperty(new Error('Image with src "' +
|
|
4224
|
+
throw Object.defineProperty(new Error('Image with src "' + g + '" is missing required "height" property.'), "__NEXT_ERROR_CODE", {
|
|
4200
4225
|
value: "E397",
|
|
4201
4226
|
enumerable: !1,
|
|
4202
4227
|
configurable: !0
|
|
4203
4228
|
});
|
|
4204
4229
|
if (isNaN(U))
|
|
4205
|
-
throw Object.defineProperty(new Error('Image with src "' +
|
|
4230
|
+
throw Object.defineProperty(new Error('Image with src "' + g + '" has invalid "height" property. Expected a numeric value in pixels but received "' + w + '".'), "__NEXT_ERROR_CODE", {
|
|
4206
4231
|
value: "E444",
|
|
4207
4232
|
enumerable: !1,
|
|
4208
4233
|
configurable: !0
|
|
4209
4234
|
});
|
|
4210
|
-
if (/^[\x00-\x20]/.test(
|
|
4211
|
-
throw Object.defineProperty(new Error('Image with src "' +
|
|
4235
|
+
if (/^[\x00-\x20]/.test(g))
|
|
4236
|
+
throw Object.defineProperty(new Error('Image with src "' + g + '" cannot start with a space or control character. Use src.trimStart() to remove it or encodeURIComponent(src) to keep it.'), "__NEXT_ERROR_CODE", {
|
|
4212
4237
|
value: "E176",
|
|
4213
4238
|
enumerable: !1,
|
|
4214
4239
|
configurable: !0
|
|
4215
4240
|
});
|
|
4216
|
-
if (/[\x00-\x20]$/.test(
|
|
4217
|
-
throw Object.defineProperty(new Error('Image with src "' +
|
|
4241
|
+
if (/[\x00-\x20]$/.test(g))
|
|
4242
|
+
throw Object.defineProperty(new Error('Image with src "' + g + '" cannot end with a space or control character. Use src.trimEnd() to remove it or encodeURIComponent(src) to keep it.'), "__NEXT_ERROR_CODE", {
|
|
4218
4243
|
value: "E21",
|
|
4219
4244
|
enumerable: !1,
|
|
4220
4245
|
configurable: !0
|
|
4221
4246
|
});
|
|
4222
4247
|
}
|
|
4223
|
-
if (!s.includes(
|
|
4224
|
-
throw Object.defineProperty(new Error('Image with src "' +
|
|
4248
|
+
if (!s.includes(m))
|
|
4249
|
+
throw Object.defineProperty(new Error('Image with src "' + g + '" has invalid "loading" property. Provided "' + m + '" should be one of ' + s.map(String).join(",") + "."), "__NEXT_ERROR_CODE", {
|
|
4225
4250
|
value: "E357",
|
|
4226
4251
|
enumerable: !1,
|
|
4227
4252
|
configurable: !0
|
|
4228
4253
|
});
|
|
4229
|
-
if (p &&
|
|
4230
|
-
throw Object.defineProperty(new Error('Image with src "' +
|
|
4254
|
+
if (p && m === "lazy")
|
|
4255
|
+
throw Object.defineProperty(new Error('Image with src "' + g + `" has both "priority" and "loading='lazy'" properties. Only one should be used.`), "__NEXT_ERROR_CODE", {
|
|
4231
4256
|
value: "E218",
|
|
4232
4257
|
enumerable: !1,
|
|
4233
4258
|
configurable: !0
|
|
4234
4259
|
});
|
|
4235
4260
|
if (x !== "empty" && x !== "blur" && !x.startsWith("data:image/"))
|
|
4236
|
-
throw Object.defineProperty(new Error('Image with src "' +
|
|
4261
|
+
throw Object.defineProperty(new Error('Image with src "' + g + '" has invalid "placeholder" property "' + x + '".'), "__NEXT_ERROR_CODE", {
|
|
4237
4262
|
value: "E431",
|
|
4238
4263
|
enumerable: !1,
|
|
4239
4264
|
configurable: !0
|
|
4240
4265
|
});
|
|
4241
|
-
if (x !== "empty" && N && U && N * U < 1600 && (0, e.warnOnce)('Image with src "' +
|
|
4266
|
+
if (x !== "empty" && N && U && N * U < 1600 && (0, e.warnOnce)('Image with src "' + g + '" is smaller than 40x40. Consider removing the "placeholder" property to improve performance.'), x === "blur" && !$) {
|
|
4242
4267
|
const L = [
|
|
4243
4268
|
"jpeg",
|
|
4244
4269
|
"png",
|
|
4245
4270
|
"webp",
|
|
4246
4271
|
"avif"
|
|
4247
4272
|
];
|
|
4248
|
-
throw Object.defineProperty(new Error('Image with src "' +
|
|
4273
|
+
throw Object.defineProperty(new Error('Image with src "' + g + `" has "placeholder='blur'" property but is missing the "blurDataURL" property.
|
|
4249
4274
|
Possible solutions:
|
|
4250
4275
|
- Add a "blurDataURL" property, the contents should be a small Data URL to represent the image
|
|
4251
4276
|
- Change the "src" property to a static import with one of the supported file types: ` + L.join(",") + ` (animated images not supported)
|
|
@@ -4256,36 +4281,36 @@ Read more: https://nextjs.org/docs/messages/next-image-missing-loader`), "__NEXT
|
|
|
4256
4281
|
configurable: !0
|
|
4257
4282
|
});
|
|
4258
4283
|
}
|
|
4259
|
-
if ("ref" in ie && (0, e.warnOnce)('Image with src "' +
|
|
4284
|
+
if ("ref" in ie && (0, e.warnOnce)('Image with src "' + g + '" is using unsupported "ref" property. Consider using the "onLoad" property instead.'), !A && !S) {
|
|
4260
4285
|
const L = b({
|
|
4261
4286
|
config: ee,
|
|
4262
|
-
src:
|
|
4287
|
+
src: g,
|
|
4263
4288
|
width: N || 400,
|
|
4264
4289
|
quality: ne || 75
|
|
4265
4290
|
});
|
|
4266
|
-
let
|
|
4291
|
+
let I;
|
|
4267
4292
|
try {
|
|
4268
|
-
|
|
4293
|
+
I = new URL(L);
|
|
4269
4294
|
} catch {
|
|
4270
4295
|
}
|
|
4271
|
-
(L ===
|
|
4296
|
+
(L === g || I && I.pathname === g && !I.search) && (0, e.warnOnce)('Image with src "' + g + `" has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.
|
|
4272
4297
|
Read more: https://nextjs.org/docs/messages/next-image-missing-loader-width`);
|
|
4273
4298
|
}
|
|
4274
|
-
te && (0, e.warnOnce)('Image with src "' +
|
|
4275
|
-
for (const [L,
|
|
4299
|
+
te && (0, e.warnOnce)('Image with src "' + g + '" is using deprecated "onLoadingComplete" property. Please use the "onLoad" property instead.');
|
|
4300
|
+
for (const [L, I] of Object.entries({
|
|
4276
4301
|
layout: K,
|
|
4277
4302
|
objectFit: B,
|
|
4278
4303
|
objectPosition: Y,
|
|
4279
4304
|
lazyBoundary: ce,
|
|
4280
4305
|
lazyRoot: Z
|
|
4281
4306
|
}))
|
|
4282
|
-
|
|
4307
|
+
I && (0, e.warnOnce)('Image with src "' + g + '" has legacy prop "' + L + `". Did you forget to run the codemod?
|
|
4283
4308
|
Read more: https://nextjs.org/docs/messages/next-image-upgrade-to-13`);
|
|
4284
4309
|
if (typeof window < "u" && !l && window.PerformanceObserver) {
|
|
4285
4310
|
l = new PerformanceObserver((L) => {
|
|
4286
4311
|
for (const z of L.getEntries()) {
|
|
4287
|
-
var
|
|
4288
|
-
const J = (z == null || (
|
|
4312
|
+
var I;
|
|
4313
|
+
const J = (z == null || (I = z.element) == null ? void 0 : I.src) || "", ae = u.get(J);
|
|
4289
4314
|
ae && !ae.priority && ae.placeholder === "empty" && !ae.src.startsWith("data:") && !ae.src.startsWith("blob:") && (0, e.warnOnce)('Image with src "' + ae.src + `" was detected as the Largest Contentful Paint (LCP). Please add the "priority" property if this image is above the fold.
|
|
4290
4315
|
Read more: https://nextjs.org/docs/api-reference/next/image#priority`);
|
|
4291
4316
|
}
|
|
@@ -4329,8 +4354,8 @@ Read more: https://nextjs.org/docs/api-reference/next/image#priority`);
|
|
|
4329
4354
|
process.env.NODE_ENV === "development" && F.backgroundImage && x === "blur" && $ != null && $.startsWith("/") && (F.backgroundImage = 'url("' + $ + '")');
|
|
4330
4355
|
const q = c({
|
|
4331
4356
|
config: ee,
|
|
4332
|
-
src:
|
|
4333
|
-
unoptimized:
|
|
4357
|
+
src: g,
|
|
4358
|
+
unoptimized: A,
|
|
4334
4359
|
width: N,
|
|
4335
4360
|
quality: ne,
|
|
4336
4361
|
sizes: y,
|
|
@@ -4344,7 +4369,7 @@ Read more: https://nextjs.org/docs/api-reference/next/image#priority`);
|
|
|
4344
4369
|
L = new URL(q.src, window.location.href);
|
|
4345
4370
|
}
|
|
4346
4371
|
u.set(L.href, {
|
|
4347
|
-
src:
|
|
4372
|
+
src: g,
|
|
4348
4373
|
priority: p,
|
|
4349
4374
|
placeholder: x
|
|
4350
4375
|
});
|
|
@@ -4352,7 +4377,7 @@ Read more: https://nextjs.org/docs/api-reference/next/image#priority`);
|
|
|
4352
4377
|
return {
|
|
4353
4378
|
props: {
|
|
4354
4379
|
...ie,
|
|
4355
|
-
loading: X ? "lazy" :
|
|
4380
|
+
loading: X ? "lazy" : m,
|
|
4356
4381
|
fetchPriority: G,
|
|
4357
4382
|
width: N,
|
|
4358
4383
|
height: U,
|
|
@@ -4367,17 +4392,17 @@ Read more: https://nextjs.org/docs/api-reference/next/image#priority`);
|
|
|
4367
4392
|
src: j || q.src
|
|
4368
4393
|
},
|
|
4369
4394
|
meta: {
|
|
4370
|
-
unoptimized:
|
|
4395
|
+
unoptimized: A,
|
|
4371
4396
|
priority: p,
|
|
4372
4397
|
placeholder: x,
|
|
4373
4398
|
fill: T
|
|
4374
4399
|
}
|
|
4375
4400
|
};
|
|
4376
4401
|
}
|
|
4377
|
-
})(
|
|
4378
|
-
var
|
|
4379
|
-
function
|
|
4380
|
-
return
|
|
4402
|
+
})(nr);
|
|
4403
|
+
var Gt = { exports: {} }, Be = { exports: {} }, Dt = {}, Qr;
|
|
4404
|
+
function wa() {
|
|
4405
|
+
return Qr || (Qr = 1, function(t) {
|
|
4381
4406
|
Object.defineProperty(t, "__esModule", {
|
|
4382
4407
|
value: !0
|
|
4383
4408
|
}), Object.defineProperty(t, "default", {
|
|
@@ -4413,11 +4438,11 @@ function Sa() {
|
|
|
4413
4438
|
i && i._pendingUpdate && (i._pendingUpdate(), i._pendingUpdate = null);
|
|
4414
4439
|
})), null;
|
|
4415
4440
|
}
|
|
4416
|
-
}(
|
|
4441
|
+
}(Dt)), Dt;
|
|
4417
4442
|
}
|
|
4418
|
-
var
|
|
4419
|
-
function
|
|
4420
|
-
return
|
|
4443
|
+
var xt = {}, Yr;
|
|
4444
|
+
function Ta() {
|
|
4445
|
+
return Yr || (Yr = 1, function(t) {
|
|
4421
4446
|
Object.defineProperty(t, "__esModule", {
|
|
4422
4447
|
value: !0
|
|
4423
4448
|
}), Object.defineProperty(t, "AmpStateContext", {
|
|
@@ -4428,11 +4453,11 @@ function Ca() {
|
|
|
4428
4453
|
});
|
|
4429
4454
|
const a = (/* @__PURE__ */ Se._(Oe)).default.createContext({});
|
|
4430
4455
|
process.env.NODE_ENV !== "production" && (a.displayName = "AmpStateContext");
|
|
4431
|
-
}(
|
|
4456
|
+
}(xt)), xt;
|
|
4432
4457
|
}
|
|
4433
|
-
var
|
|
4434
|
-
function
|
|
4435
|
-
return
|
|
4458
|
+
var Lt = {}, Jr;
|
|
4459
|
+
function Na() {
|
|
4460
|
+
return Jr || (Jr = 1, function(t) {
|
|
4436
4461
|
Object.defineProperty(t, "__esModule", {
|
|
4437
4462
|
value: !0
|
|
4438
4463
|
}), Object.defineProperty(t, "HeadManagerContext", {
|
|
@@ -4443,11 +4468,11 @@ function wa() {
|
|
|
4443
4468
|
});
|
|
4444
4469
|
const a = (/* @__PURE__ */ Se._(Oe)).default.createContext({});
|
|
4445
4470
|
process.env.NODE_ENV !== "production" && (a.displayName = "HeadManagerContext");
|
|
4446
|
-
}(
|
|
4471
|
+
}(Lt)), Lt;
|
|
4447
4472
|
}
|
|
4448
|
-
var
|
|
4449
|
-
function
|
|
4450
|
-
return
|
|
4473
|
+
var Mt = {}, Zr;
|
|
4474
|
+
function Da() {
|
|
4475
|
+
return Zr || (Zr = 1, function(t) {
|
|
4451
4476
|
Object.defineProperty(t, "__esModule", {
|
|
4452
4477
|
value: !0
|
|
4453
4478
|
}), Object.defineProperty(t, "isInAmpMode", {
|
|
@@ -4460,51 +4485,51 @@ function Aa() {
|
|
|
4460
4485
|
let { ampFirst: a = !1, hybrid: s = !1, hasQuery: r = !1 } = o === void 0 ? {} : o;
|
|
4461
4486
|
return a || s && r;
|
|
4462
4487
|
}
|
|
4463
|
-
}(
|
|
4488
|
+
}(Mt)), Mt;
|
|
4464
4489
|
}
|
|
4465
|
-
var
|
|
4466
|
-
function
|
|
4467
|
-
return
|
|
4490
|
+
var en;
|
|
4491
|
+
function xa() {
|
|
4492
|
+
return en || (en = 1, function(t, e) {
|
|
4468
4493
|
"use client";
|
|
4469
4494
|
Object.defineProperty(e, "__esModule", {
|
|
4470
4495
|
value: !0
|
|
4471
4496
|
});
|
|
4472
|
-
function o(p,
|
|
4473
|
-
for (var E in
|
|
4497
|
+
function o(p, m) {
|
|
4498
|
+
for (var E in m) Object.defineProperty(p, E, {
|
|
4474
4499
|
enumerable: !0,
|
|
4475
|
-
get:
|
|
4500
|
+
get: m[E]
|
|
4476
4501
|
});
|
|
4477
4502
|
}
|
|
4478
4503
|
o(e, {
|
|
4479
4504
|
default: function() {
|
|
4480
|
-
return
|
|
4505
|
+
return A;
|
|
4481
4506
|
},
|
|
4482
4507
|
defaultHead: function() {
|
|
4483
4508
|
return c;
|
|
4484
4509
|
}
|
|
4485
4510
|
});
|
|
4486
|
-
const a = Se, s =
|
|
4511
|
+
const a = Se, s = Ye, r = Bt, n = /* @__PURE__ */ s._(Oe), i = /* @__PURE__ */ a._(wa()), u = Ta(), l = Na(), f = Da(), d = et;
|
|
4487
4512
|
function c(p) {
|
|
4488
4513
|
p === void 0 && (p = !1);
|
|
4489
|
-
const
|
|
4514
|
+
const m = [
|
|
4490
4515
|
/* @__PURE__ */ (0, r.jsx)("meta", {
|
|
4491
4516
|
charSet: "utf-8"
|
|
4492
4517
|
}, "charset")
|
|
4493
4518
|
];
|
|
4494
|
-
return p ||
|
|
4519
|
+
return p || m.push(/* @__PURE__ */ (0, r.jsx)("meta", {
|
|
4495
4520
|
name: "viewport",
|
|
4496
4521
|
content: "width=device-width"
|
|
4497
|
-
}, "viewport")),
|
|
4522
|
+
}, "viewport")), m;
|
|
4498
4523
|
}
|
|
4499
|
-
function _(p,
|
|
4500
|
-
return typeof
|
|
4524
|
+
function _(p, m) {
|
|
4525
|
+
return typeof m == "string" || typeof m == "number" ? p : m.type === n.default.Fragment ? p.concat(
|
|
4501
4526
|
// @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]
|
|
4502
|
-
n.default.Children.toArray(
|
|
4527
|
+
n.default.Children.toArray(m.props.children).reduce(
|
|
4503
4528
|
// @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]
|
|
4504
4529
|
(E, P) => typeof P == "string" || typeof P == "number" ? E : E.concat(P),
|
|
4505
4530
|
[]
|
|
4506
4531
|
)
|
|
4507
|
-
) : p.concat(
|
|
4532
|
+
) : p.concat(m);
|
|
4508
4533
|
}
|
|
4509
4534
|
const h = [
|
|
4510
4535
|
"name",
|
|
@@ -4513,39 +4538,39 @@ function Ia() {
|
|
|
4513
4538
|
"itemProp"
|
|
4514
4539
|
];
|
|
4515
4540
|
function v() {
|
|
4516
|
-
const p = /* @__PURE__ */ new Set(),
|
|
4541
|
+
const p = /* @__PURE__ */ new Set(), m = /* @__PURE__ */ new Set(), E = /* @__PURE__ */ new Set(), P = {};
|
|
4517
4542
|
return (O) => {
|
|
4518
|
-
let
|
|
4543
|
+
let w = !0, T = !1;
|
|
4519
4544
|
if (O.key && typeof O.key != "number" && O.key.indexOf("$") > 0) {
|
|
4520
4545
|
T = !0;
|
|
4521
4546
|
const C = O.key.slice(O.key.indexOf("$") + 1);
|
|
4522
|
-
p.has(C) ?
|
|
4547
|
+
p.has(C) ? w = !1 : p.add(C);
|
|
4523
4548
|
}
|
|
4524
4549
|
switch (O.type) {
|
|
4525
4550
|
case "title":
|
|
4526
4551
|
case "base":
|
|
4527
|
-
|
|
4552
|
+
m.has(O.type) ? w = !1 : m.add(O.type);
|
|
4528
4553
|
break;
|
|
4529
4554
|
case "meta":
|
|
4530
4555
|
for (let C = 0, j = h.length; C < j; C++) {
|
|
4531
4556
|
const M = h[C];
|
|
4532
4557
|
if (O.props.hasOwnProperty(M))
|
|
4533
4558
|
if (M === "charSet")
|
|
4534
|
-
E.has(M) ?
|
|
4559
|
+
E.has(M) ? w = !1 : E.add(M);
|
|
4535
4560
|
else {
|
|
4536
4561
|
const te = O.props[M], x = P[M] || /* @__PURE__ */ new Set();
|
|
4537
|
-
(M !== "name" || !T) && x.has(te) ?
|
|
4562
|
+
(M !== "name" || !T) && x.has(te) ? w = !1 : (x.add(te), P[M] = x);
|
|
4538
4563
|
}
|
|
4539
4564
|
}
|
|
4540
4565
|
break;
|
|
4541
4566
|
}
|
|
4542
|
-
return
|
|
4567
|
+
return w;
|
|
4543
4568
|
};
|
|
4544
4569
|
}
|
|
4545
|
-
function
|
|
4546
|
-
const { inAmpMode: E } =
|
|
4570
|
+
function g(p, m) {
|
|
4571
|
+
const { inAmpMode: E } = m;
|
|
4547
4572
|
return p.reduce(_, []).reverse().concat(c(E).reverse()).filter(v()).reverse().map((P, O) => {
|
|
4548
|
-
const
|
|
4573
|
+
const w = P.key || O;
|
|
4549
4574
|
if (process.env.NODE_ENV !== "development" && process.env.__NEXT_OPTIMIZE_FONTS && !E && P.type === "link" && P.props.href && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
|
|
4550
4575
|
[
|
|
4551
4576
|
"https://fonts.googleapis.com/css",
|
|
@@ -4564,27 +4589,27 @@ See more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-comp
|
|
|
4564
4589
|
} else P.type === "link" && P.props.rel === "stylesheet" && (0, d.warnOnce)('Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="' + P.props.href + `"). Use Document instead.
|
|
4565
4590
|
See more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);
|
|
4566
4591
|
return /* @__PURE__ */ n.default.cloneElement(P, {
|
|
4567
|
-
key:
|
|
4592
|
+
key: w
|
|
4568
4593
|
});
|
|
4569
4594
|
});
|
|
4570
4595
|
}
|
|
4571
4596
|
function y(p) {
|
|
4572
|
-
let { children:
|
|
4597
|
+
let { children: m } = p;
|
|
4573
4598
|
const E = (0, n.useContext)(u.AmpStateContext), P = (0, n.useContext)(l.HeadManagerContext);
|
|
4574
4599
|
return /* @__PURE__ */ (0, r.jsx)(i.default, {
|
|
4575
|
-
reduceComponentsToState:
|
|
4600
|
+
reduceComponentsToState: g,
|
|
4576
4601
|
headManager: P,
|
|
4577
4602
|
inAmpMode: (0, f.isInAmpMode)(E),
|
|
4578
|
-
children:
|
|
4603
|
+
children: m
|
|
4579
4604
|
});
|
|
4580
4605
|
}
|
|
4581
|
-
const
|
|
4606
|
+
const A = y;
|
|
4582
4607
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
4583
4608
|
}(Be, Be.exports)), Be.exports;
|
|
4584
4609
|
}
|
|
4585
|
-
var
|
|
4586
|
-
function
|
|
4587
|
-
return
|
|
4610
|
+
var jt = {}, tn;
|
|
4611
|
+
function La() {
|
|
4612
|
+
return tn || (tn = 1, function(t) {
|
|
4588
4613
|
Object.defineProperty(t, "__esModule", {
|
|
4589
4614
|
value: !0
|
|
4590
4615
|
}), Object.defineProperty(t, "ImageConfigContext", {
|
|
@@ -4593,13 +4618,13 @@ function Ta() {
|
|
|
4593
4618
|
return s;
|
|
4594
4619
|
}
|
|
4595
4620
|
});
|
|
4596
|
-
const o = /* @__PURE__ */ Se._(Oe), a =
|
|
4621
|
+
const o = /* @__PURE__ */ Se._(Oe), a = tt, s = o.default.createContext(a.imageConfigDefault);
|
|
4597
4622
|
process.env.NODE_ENV !== "production" && (s.displayName = "ImageConfigContext");
|
|
4598
|
-
}(
|
|
4623
|
+
}(jt)), jt;
|
|
4599
4624
|
}
|
|
4600
|
-
var
|
|
4601
|
-
function
|
|
4602
|
-
return
|
|
4625
|
+
var kt = {}, Ht = {}, qt = { exports: {} }, rn;
|
|
4626
|
+
function Hn() {
|
|
4627
|
+
return rn || (rn = 1, (() => {
|
|
4603
4628
|
var t = { 170: (s, r, n) => {
|
|
4604
4629
|
const i = n(510), u = () => {
|
|
4605
4630
|
if (typeof navigator < "u" && navigator.platform) {
|
|
@@ -4613,16 +4638,16 @@ function Mn() {
|
|
|
4613
4638
|
}
|
|
4614
4639
|
Object.assign(l, i), s.exports = l;
|
|
4615
4640
|
}, 154: (s) => {
|
|
4616
|
-
const r = "\\\\/", n = `[^${r}]`, i = "\\.", u = "\\+", l = "\\?", f = "\\/", d = "(?=.)", c = "[^/]", _ = `(?:${f}|$)`, h = `(?:^|${f})`, v = `${i}{1,2}${_}`,
|
|
4641
|
+
const r = "\\\\/", n = `[^${r}]`, i = "\\.", u = "\\+", l = "\\?", f = "\\/", d = "(?=.)", c = "[^/]", _ = `(?:${f}|$)`, h = `(?:^|${f})`, v = `${i}{1,2}${_}`, g = `(?!${i})`, y = `(?!${h}${v})`, A = `(?!${i}{0,1}${_})`, p = `(?!${v})`, m = `[^.${f}]`, E = `${c}*?`, O = { DOT_LITERAL: i, PLUS_LITERAL: u, QMARK_LITERAL: l, SLASH_LITERAL: f, ONE_CHAR: d, QMARK: c, END_ANCHOR: _, DOTS_SLASH: v, NO_DOT: g, NO_DOTS: y, NO_DOT_SLASH: A, NO_DOTS_SLASH: p, QMARK_NO_DOT: m, STAR: E, START_ANCHOR: h, SEP: "/" }, w = { ...O, SLASH_LITERAL: `[${r}]`, QMARK: n, STAR: `${n}*?`, DOTS_SLASH: `${i}{1,2}(?:[${r}]|$)`, NO_DOT: `(?!${i})`, NO_DOTS: `(?!(?:^|[${r}])${i}{1,2}(?:[${r}]|$))`, NO_DOT_SLASH: `(?!${i}{0,1}(?:[${r}]|$))`, NO_DOTS_SLASH: `(?!${i}{1,2}(?:[${r}]|$))`, QMARK_NO_DOT: `[^.${r}]`, START_ANCHOR: `(?:^|[${r}])`, END_ANCHOR: `(?:[${r}]|$)`, SEP: "\\" }, T = { alnum: "a-zA-Z0-9", alpha: "a-zA-Z", ascii: "\\x00-\\x7F", blank: " \\t", cntrl: "\\x00-\\x1F\\x7F", digit: "0-9", graph: "\\x21-\\x7E", lower: "a-z", print: "\\x20-\\x7E ", punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~", space: " \\t\\r\\n\\v\\f", upper: "A-Z", word: "A-Za-z0-9_", xdigit: "A-Fa-f0-9" };
|
|
4617
4642
|
s.exports = { MAX_LENGTH: 65536, POSIX_REGEX_SOURCE: T, REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g, REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/, REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/, REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g, REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g, REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g, REPLACEMENTS: { "***": "*", "**/**": "**", "**/**/**": "**" }, CHAR_0: 48, CHAR_9: 57, CHAR_UPPERCASE_A: 65, CHAR_LOWERCASE_A: 97, CHAR_UPPERCASE_Z: 90, CHAR_LOWERCASE_Z: 122, CHAR_LEFT_PARENTHESES: 40, CHAR_RIGHT_PARENTHESES: 41, CHAR_ASTERISK: 42, CHAR_AMPERSAND: 38, CHAR_AT: 64, CHAR_BACKWARD_SLASH: 92, CHAR_CARRIAGE_RETURN: 13, CHAR_CIRCUMFLEX_ACCENT: 94, CHAR_COLON: 58, CHAR_COMMA: 44, CHAR_DOT: 46, CHAR_DOUBLE_QUOTE: 34, CHAR_EQUAL: 61, CHAR_EXCLAMATION_MARK: 33, CHAR_FORM_FEED: 12, CHAR_FORWARD_SLASH: 47, CHAR_GRAVE_ACCENT: 96, CHAR_HASH: 35, CHAR_HYPHEN_MINUS: 45, CHAR_LEFT_ANGLE_BRACKET: 60, CHAR_LEFT_CURLY_BRACE: 123, CHAR_LEFT_SQUARE_BRACKET: 91, CHAR_LINE_FEED: 10, CHAR_NO_BREAK_SPACE: 160, CHAR_PERCENT: 37, CHAR_PLUS: 43, CHAR_QUESTION_MARK: 63, CHAR_RIGHT_ANGLE_BRACKET: 62, CHAR_RIGHT_CURLY_BRACE: 125, CHAR_RIGHT_SQUARE_BRACKET: 93, CHAR_SEMICOLON: 59, CHAR_SINGLE_QUOTE: 39, CHAR_SPACE: 32, CHAR_TAB: 9, CHAR_UNDERSCORE: 95, CHAR_VERTICAL_LINE: 124, CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279, extglobChars(C) {
|
|
4618
4643
|
return { "!": { type: "negate", open: "(?:(?!(?:", close: `))${C.STAR})` }, "?": { type: "qmark", open: "(?:", close: ")?" }, "+": { type: "plus", open: "(?:", close: ")+" }, "*": { type: "star", open: "(?:", close: ")*" }, "@": { type: "at", open: "(?:", close: ")" } };
|
|
4619
4644
|
}, globChars(C) {
|
|
4620
|
-
return C === !0 ?
|
|
4645
|
+
return C === !0 ? w : O;
|
|
4621
4646
|
} };
|
|
4622
4647
|
}, 697: (s, r, n) => {
|
|
4623
|
-
const i = n(154), u = n(96), { MAX_LENGTH: l, POSIX_REGEX_SOURCE: f, REGEX_NON_SPECIAL_CHARS: d, REGEX_SPECIAL_CHARS_BACKREF: c, REPLACEMENTS: _ } = i, h = (y,
|
|
4624
|
-
if (typeof
|
|
4625
|
-
return
|
|
4648
|
+
const i = n(154), u = n(96), { MAX_LENGTH: l, POSIX_REGEX_SOURCE: f, REGEX_NON_SPECIAL_CHARS: d, REGEX_SPECIAL_CHARS_BACKREF: c, REPLACEMENTS: _ } = i, h = (y, A) => {
|
|
4649
|
+
if (typeof A.expandRange == "function")
|
|
4650
|
+
return A.expandRange(...y, A);
|
|
4626
4651
|
y.sort();
|
|
4627
4652
|
const p = `[${y.join("-")}]`;
|
|
4628
4653
|
try {
|
|
@@ -4631,15 +4656,15 @@ function Mn() {
|
|
|
4631
4656
|
return y.map((E) => u.escapeRegex(E)).join("..");
|
|
4632
4657
|
}
|
|
4633
4658
|
return p;
|
|
4634
|
-
}, v = (y,
|
|
4659
|
+
}, v = (y, A) => `Missing ${y}: "${A}" - use "\\\\${A}" to match literal characters`, g = (y, A) => {
|
|
4635
4660
|
if (typeof y != "string")
|
|
4636
4661
|
throw new TypeError("Expected a string");
|
|
4637
4662
|
y = _[y] || y;
|
|
4638
|
-
const p = { ...
|
|
4663
|
+
const p = { ...A }, m = typeof p.maxLength == "number" ? Math.min(l, p.maxLength) : l;
|
|
4639
4664
|
let E = y.length;
|
|
4640
|
-
if (E >
|
|
4641
|
-
throw new SyntaxError(`Input length: ${E}, exceeds maximum allowed length: ${
|
|
4642
|
-
const P = { type: "bos", value: "", output: p.prepend || "" }, O = [P],
|
|
4665
|
+
if (E > m)
|
|
4666
|
+
throw new SyntaxError(`Input length: ${E}, exceeds maximum allowed length: ${m}`);
|
|
4667
|
+
const P = { type: "bos", value: "", output: p.prepend || "" }, O = [P], w = p.capture ? "" : "?:", T = i.globChars(p.windows), C = i.extglobChars(T), { DOT_LITERAL: j, PLUS_LITERAL: M, SLASH_LITERAL: te, ONE_CHAR: x, DOTS_SLASH: $, NO_DOT: G, NO_DOT_SLASH: oe, NO_DOTS_SLASH: K, QMARK: B, QMARK_NO_DOT: Y, STAR: ce, START_ANCHOR: Z } = T, ie = (D) => `(${w}(?:(?!${Z}${D.dot ? $ : j}).)*?)`, k = p.dot ? "" : G, pe = p.dot ? B : Y;
|
|
4643
4668
|
let W = p.bash === !0 ? ie(p) : ce;
|
|
4644
4669
|
p.capture && (W = `(${W})`), typeof p.noext == "boolean" && (p.noextglob = p.noext);
|
|
4645
4670
|
const R = { input: y, index: -1, start: 0, dot: p.dot === !0, consumed: "", output: "", prefix: "", backtrack: !1, negated: !1, brackets: 0, braces: 0, parens: 0, quotes: 0, globstar: !1, tokens: O };
|
|
@@ -4661,8 +4686,8 @@ function Mn() {
|
|
|
4661
4686
|
R[D]--, V.pop();
|
|
4662
4687
|
}, F = (D) => {
|
|
4663
4688
|
if (b.type === "globstar") {
|
|
4664
|
-
const L = R.braces > 0 && (D.type === "comma" || D.type === "brace"),
|
|
4665
|
-
D.type !== "slash" && D.type !== "paren" && !L && !
|
|
4689
|
+
const L = R.braces > 0 && (D.type === "comma" || D.type === "brace"), I = D.extglob === !0 || ee.length && (D.type === "pipe" || D.type === "paren");
|
|
4690
|
+
D.type !== "slash" && D.type !== "paren" && !L && !I && (R.output = R.output.slice(0, -b.output.length), b.type = "star", b.value = "*", b.output = W, R.output += b.output);
|
|
4666
4691
|
}
|
|
4667
4692
|
if (ee.length && D.type !== "paren" && (ee[ee.length - 1].inner += D.value), (D.value || D.output) && X(D), b && b.type === "text" && D.type === "text") {
|
|
4668
4693
|
b.output = (b.output || b.value) + D.value, b.value += D.value;
|
|
@@ -4670,16 +4695,16 @@ function Mn() {
|
|
|
4670
4695
|
}
|
|
4671
4696
|
D.prev = b, O.push(D), b = D;
|
|
4672
4697
|
}, q = (D, L) => {
|
|
4673
|
-
const
|
|
4674
|
-
|
|
4675
|
-
const z = (p.capture ? "(" : "") +
|
|
4676
|
-
de("parens"), F({ type: D, value: L, output: R.output ? "" : x }), F({ type: "paren", extglob: !0, value: U(), output: z }), ee.push(
|
|
4698
|
+
const I = { ...C[L], conditions: 1, inner: "" };
|
|
4699
|
+
I.prev = b, I.parens = R.parens, I.output = R.output;
|
|
4700
|
+
const z = (p.capture ? "(" : "") + I.open;
|
|
4701
|
+
de("parens"), F({ type: D, value: L, output: R.output ? "" : x }), F({ type: "paren", extglob: !0, value: U(), output: z }), ee.push(I);
|
|
4677
4702
|
}, se = (D) => {
|
|
4678
|
-
let L = D.close + (p.capture ? ")" : ""),
|
|
4703
|
+
let L = D.close + (p.capture ? ")" : ""), I;
|
|
4679
4704
|
if (D.type === "negate") {
|
|
4680
4705
|
let z = W;
|
|
4681
|
-
if (D.inner && D.inner.length > 1 && D.inner.includes("/") && (z = ie(p)), (z !== W || me() || /^\)+$/.test(Q())) && (L = D.close = `)$))${z}`), D.inner.includes("*") && (
|
|
4682
|
-
const J =
|
|
4706
|
+
if (D.inner && D.inner.length > 1 && D.inner.includes("/") && (z = ie(p)), (z !== W || me() || /^\)+$/.test(Q())) && (L = D.close = `)$))${z}`), D.inner.includes("*") && (I = Q()) && /^\.[^\\/.]+$/.test(I)) {
|
|
4707
|
+
const J = g(I, { ...A, fastpaths: !1 }).output;
|
|
4683
4708
|
L = D.close = `)${J})${z})`;
|
|
4684
4709
|
}
|
|
4685
4710
|
D.prev.type === "bos" && (R.negatedExtglob = !0);
|
|
@@ -4687,17 +4712,17 @@ function Mn() {
|
|
|
4687
4712
|
F({ type: "paren", extglob: !0, value: S, output: L }), fe("parens");
|
|
4688
4713
|
};
|
|
4689
4714
|
if (p.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(y)) {
|
|
4690
|
-
let D = !1, L = y.replace(c, (
|
|
4691
|
-
return D === !0 && (p.unescape === !0 ? L = L.replace(/\\/g, "") : L = L.replace(/\\+/g, (
|
|
4715
|
+
let D = !1, L = y.replace(c, (I, z, J, ae, _e, rt) => ae === "\\" ? (D = !0, I) : ae === "?" ? z ? z + ae + (_e ? B.repeat(_e.length) : "") : rt === 0 ? pe + (_e ? B.repeat(_e.length) : "") : B.repeat(J.length) : ae === "." ? j.repeat(J.length) : ae === "*" ? z ? z + ae + (_e ? W : "") : W : z ? I : `\\${I}`);
|
|
4716
|
+
return D === !0 && (p.unescape === !0 ? L = L.replace(/\\/g, "") : L = L.replace(/\\+/g, (I) => I.length % 2 === 0 ? "\\\\" : I ? "\\" : "")), L === y && p.contains === !0 ? (R.output = y, R) : (R.output = u.wrapOutput(L, R, A), R);
|
|
4692
4717
|
}
|
|
4693
4718
|
for (; !me(); ) {
|
|
4694
4719
|
if (S = U(), S === "\0")
|
|
4695
4720
|
continue;
|
|
4696
4721
|
if (S === "\\") {
|
|
4697
|
-
const
|
|
4698
|
-
if (
|
|
4722
|
+
const I = N();
|
|
4723
|
+
if (I === "/" && p.bash !== !0 || I === "." || I === ";")
|
|
4699
4724
|
continue;
|
|
4700
|
-
if (!
|
|
4725
|
+
if (!I) {
|
|
4701
4726
|
S += "\\", F({ type: "text", value: S });
|
|
4702
4727
|
continue;
|
|
4703
4728
|
}
|
|
@@ -4710,8 +4735,8 @@ function Mn() {
|
|
|
4710
4735
|
}
|
|
4711
4736
|
if (R.brackets > 0 && (S !== "]" || b.value === "[" || b.value === "[^")) {
|
|
4712
4737
|
if (p.posix !== !1 && S === ":") {
|
|
4713
|
-
const
|
|
4714
|
-
if (
|
|
4738
|
+
const I = b.value.slice(1);
|
|
4739
|
+
if (I.includes("[") && (b.posix = !0, I.includes(":"))) {
|
|
4715
4740
|
const z = b.value.lastIndexOf("["), J = b.value.slice(0, z), ae = b.value.slice(z + 2), _e = f[ae];
|
|
4716
4741
|
if (_e) {
|
|
4717
4742
|
b.value = J + _e, R.backtrack = !0, U(), !P.output && O.indexOf(b) === 1 && (P.output = x);
|
|
@@ -4737,8 +4762,8 @@ function Mn() {
|
|
|
4737
4762
|
if (S === ")") {
|
|
4738
4763
|
if (R.parens === 0 && p.strictBrackets === !0)
|
|
4739
4764
|
throw new SyntaxError(v("opening", "("));
|
|
4740
|
-
const
|
|
4741
|
-
if (
|
|
4765
|
+
const I = ee[ee.length - 1];
|
|
4766
|
+
if (I && R.parens === I.parens + 1) {
|
|
4742
4767
|
se(ee.pop());
|
|
4743
4768
|
continue;
|
|
4744
4769
|
}
|
|
@@ -4767,39 +4792,39 @@ function Mn() {
|
|
|
4767
4792
|
continue;
|
|
4768
4793
|
}
|
|
4769
4794
|
fe("brackets");
|
|
4770
|
-
const
|
|
4771
|
-
if (b.posix !== !0 &&
|
|
4795
|
+
const I = b.value.slice(1);
|
|
4796
|
+
if (b.posix !== !0 && I[0] === "^" && !I.includes("/") && (S = `/${S}`), b.value += S, X({ value: S }), p.literalBrackets === !1 || u.hasRegexChars(I))
|
|
4772
4797
|
continue;
|
|
4773
4798
|
const z = u.escapeRegex(b.value);
|
|
4774
4799
|
if (R.output = R.output.slice(0, -b.value.length), p.literalBrackets === !0) {
|
|
4775
4800
|
R.output += z, b.value = z;
|
|
4776
4801
|
continue;
|
|
4777
4802
|
}
|
|
4778
|
-
b.value = `(${
|
|
4803
|
+
b.value = `(${w}${z}|${b.value})`, R.output += b.value;
|
|
4779
4804
|
continue;
|
|
4780
4805
|
}
|
|
4781
4806
|
if (S === "{" && p.nobrace !== !0) {
|
|
4782
4807
|
de("braces");
|
|
4783
|
-
const
|
|
4784
|
-
ue.push(
|
|
4808
|
+
const I = { type: "brace", value: S, output: "(", outputIndex: R.output.length, tokensIndex: R.tokens.length };
|
|
4809
|
+
ue.push(I), F(I);
|
|
4785
4810
|
continue;
|
|
4786
4811
|
}
|
|
4787
4812
|
if (S === "}") {
|
|
4788
|
-
const
|
|
4789
|
-
if (p.nobrace === !0 || !
|
|
4813
|
+
const I = ue[ue.length - 1];
|
|
4814
|
+
if (p.nobrace === !0 || !I) {
|
|
4790
4815
|
F({ type: "text", value: S, output: S });
|
|
4791
4816
|
continue;
|
|
4792
4817
|
}
|
|
4793
4818
|
let z = ")";
|
|
4794
|
-
if (
|
|
4819
|
+
if (I.dots === !0) {
|
|
4795
4820
|
const J = O.slice(), ae = [];
|
|
4796
4821
|
for (let _e = J.length - 1; _e >= 0 && (O.pop(), J[_e].type !== "brace"); _e--)
|
|
4797
4822
|
J[_e].type !== "dots" && ae.unshift(J[_e].value);
|
|
4798
4823
|
z = h(ae, p), R.backtrack = !0;
|
|
4799
4824
|
}
|
|
4800
|
-
if (
|
|
4801
|
-
const J = R.output.slice(0,
|
|
4802
|
-
|
|
4825
|
+
if (I.comma !== !0 && I.dots !== !0) {
|
|
4826
|
+
const J = R.output.slice(0, I.outputIndex), ae = R.tokens.slice(I.tokensIndex);
|
|
4827
|
+
I.value = I.output = "\\{", S = z = "\\}", R.output = J;
|
|
4803
4828
|
for (const _e of ae)
|
|
4804
4829
|
R.output += _e.output || _e.value;
|
|
4805
4830
|
}
|
|
@@ -4811,9 +4836,9 @@ function Mn() {
|
|
|
4811
4836
|
continue;
|
|
4812
4837
|
}
|
|
4813
4838
|
if (S === ",") {
|
|
4814
|
-
let
|
|
4839
|
+
let I = S;
|
|
4815
4840
|
const z = ue[ue.length - 1];
|
|
4816
|
-
z && V[V.length - 1] === "braces" && (z.comma = !0,
|
|
4841
|
+
z && V[V.length - 1] === "braces" && (z.comma = !0, I = "|"), F({ type: "comma", value: S, output: I });
|
|
4817
4842
|
continue;
|
|
4818
4843
|
}
|
|
4819
4844
|
if (S === "/") {
|
|
@@ -4827,8 +4852,8 @@ function Mn() {
|
|
|
4827
4852
|
if (S === ".") {
|
|
4828
4853
|
if (R.braces > 0 && b.type === "dot") {
|
|
4829
4854
|
b.value === "." && (b.output = j);
|
|
4830
|
-
const
|
|
4831
|
-
b.type = "dots", b.output += S, b.value += S,
|
|
4855
|
+
const I = ue[ue.length - 1];
|
|
4856
|
+
b.type = "dots", b.output += S, b.value += S, I.dots = !0;
|
|
4832
4857
|
continue;
|
|
4833
4858
|
}
|
|
4834
4859
|
if (R.braces + R.parens === 0 && b.type !== "bos" && b.type !== "slash") {
|
|
@@ -4892,8 +4917,8 @@ function Mn() {
|
|
|
4892
4917
|
}
|
|
4893
4918
|
if (S !== "*") {
|
|
4894
4919
|
(S === "$" || S === "^") && (S = `\\${S}`);
|
|
4895
|
-
const
|
|
4896
|
-
|
|
4920
|
+
const I = d.exec(Q());
|
|
4921
|
+
I && (S += I[0], R.index += I[0].length), F({ type: "text", value: S });
|
|
4897
4922
|
continue;
|
|
4898
4923
|
}
|
|
4899
4924
|
if (b && (b.type === "globstar" || b.star === !0)) {
|
|
@@ -4910,13 +4935,13 @@ function Mn() {
|
|
|
4910
4935
|
le(S);
|
|
4911
4936
|
continue;
|
|
4912
4937
|
}
|
|
4913
|
-
const
|
|
4938
|
+
const I = b.prev, z = I.prev, J = I.type === "slash" || I.type === "bos", ae = z && (z.type === "star" || z.type === "globstar");
|
|
4914
4939
|
if (p.bash === !0 && (!J || D[0] && D[0] !== "/")) {
|
|
4915
4940
|
F({ type: "star", value: S, output: "" });
|
|
4916
4941
|
continue;
|
|
4917
4942
|
}
|
|
4918
|
-
const _e = R.braces > 0 && (
|
|
4919
|
-
if (!J &&
|
|
4943
|
+
const _e = R.braces > 0 && (I.type === "comma" || I.type === "brace"), rt = ee.length && (I.type === "pipe" || I.type === "paren");
|
|
4944
|
+
if (!J && I.type !== "paren" && !_e && !rt) {
|
|
4920
4945
|
F({ type: "star", value: S, output: "" });
|
|
4921
4946
|
continue;
|
|
4922
4947
|
}
|
|
@@ -4926,20 +4951,20 @@ function Mn() {
|
|
|
4926
4951
|
break;
|
|
4927
4952
|
D = D.slice(3), le("/**", 3);
|
|
4928
4953
|
}
|
|
4929
|
-
if (
|
|
4954
|
+
if (I.type === "bos" && me()) {
|
|
4930
4955
|
b.type = "globstar", b.value += S, b.output = ie(p), R.output = b.output, R.globstar = !0, le(S);
|
|
4931
4956
|
continue;
|
|
4932
4957
|
}
|
|
4933
|
-
if (
|
|
4934
|
-
R.output = R.output.slice(0, -(
|
|
4958
|
+
if (I.type === "slash" && I.prev.type !== "bos" && !ae && me()) {
|
|
4959
|
+
R.output = R.output.slice(0, -(I.output + b.output).length), I.output = `(?:${I.output}`, b.type = "globstar", b.output = ie(p) + (p.strictSlashes ? ")" : "|$)"), b.value += S, R.globstar = !0, R.output += I.output + b.output, le(S);
|
|
4935
4960
|
continue;
|
|
4936
4961
|
}
|
|
4937
|
-
if (
|
|
4962
|
+
if (I.type === "slash" && I.prev.type !== "bos" && D[0] === "/") {
|
|
4938
4963
|
const De = D[1] !== void 0 ? "|$" : "";
|
|
4939
|
-
R.output = R.output.slice(0, -(
|
|
4964
|
+
R.output = R.output.slice(0, -(I.output + b.output).length), I.output = `(?:${I.output}`, b.type = "globstar", b.output = `${ie(p)}${te}|${te}${De})`, b.value += S, R.output += I.output + b.output, R.globstar = !0, le(S + U()), F({ type: "slash", value: "/", output: "" });
|
|
4940
4965
|
continue;
|
|
4941
4966
|
}
|
|
4942
|
-
if (
|
|
4967
|
+
if (I.type === "bos" && D[0] === "/") {
|
|
4943
4968
|
b.type = "globstar", b.value += S, b.output = `(?:^|${te}|${ie(p)}${te})`, R.output = b.output, R.globstar = !0, le(S + U()), F({ type: "slash", value: "/", output: "" });
|
|
4944
4969
|
continue;
|
|
4945
4970
|
}
|
|
@@ -4976,32 +5001,32 @@ function Mn() {
|
|
|
4976
5001
|
}
|
|
4977
5002
|
return R;
|
|
4978
5003
|
};
|
|
4979
|
-
|
|
4980
|
-
const p = { ...
|
|
4981
|
-
if (E >
|
|
4982
|
-
throw new SyntaxError(`Input length: ${E}, exceeds maximum allowed length: ${
|
|
5004
|
+
g.fastpaths = (y, A) => {
|
|
5005
|
+
const p = { ...A }, m = typeof p.maxLength == "number" ? Math.min(l, p.maxLength) : l, E = y.length;
|
|
5006
|
+
if (E > m)
|
|
5007
|
+
throw new SyntaxError(`Input length: ${E}, exceeds maximum allowed length: ${m}`);
|
|
4983
5008
|
y = _[y] || y;
|
|
4984
|
-
const { DOT_LITERAL: P, SLASH_LITERAL: O, ONE_CHAR:
|
|
5009
|
+
const { DOT_LITERAL: P, SLASH_LITERAL: O, ONE_CHAR: w, DOTS_SLASH: T, NO_DOT: C, NO_DOTS: j, NO_DOTS_SLASH: M, STAR: te, START_ANCHOR: x } = i.globChars(p.windows), $ = p.dot ? j : C, G = p.dot ? M : C, oe = p.capture ? "" : "?:", K = { negated: !1, prefix: "" };
|
|
4985
5010
|
let B = p.bash === !0 ? ".*?" : te;
|
|
4986
5011
|
p.capture && (B = `(${B})`);
|
|
4987
5012
|
const Y = (k) => k.noglobstar === !0 ? B : `(${oe}(?:(?!${x}${k.dot ? T : P}).)*?)`, ce = (k) => {
|
|
4988
5013
|
switch (k) {
|
|
4989
5014
|
case "*":
|
|
4990
|
-
return `${$}${
|
|
5015
|
+
return `${$}${w}${B}`;
|
|
4991
5016
|
case ".*":
|
|
4992
|
-
return `${P}${
|
|
5017
|
+
return `${P}${w}${B}`;
|
|
4993
5018
|
case "*.*":
|
|
4994
|
-
return `${$}${B}${P}${
|
|
5019
|
+
return `${$}${B}${P}${w}${B}`;
|
|
4995
5020
|
case "*/*":
|
|
4996
|
-
return `${$}${B}${O}${
|
|
5021
|
+
return `${$}${B}${O}${w}${G}${B}`;
|
|
4997
5022
|
case "**":
|
|
4998
5023
|
return $ + Y(p);
|
|
4999
5024
|
case "**/*":
|
|
5000
|
-
return `(?:${$}${Y(p)}${O})?${G}${
|
|
5025
|
+
return `(?:${$}${Y(p)}${O})?${G}${w}${B}`;
|
|
5001
5026
|
case "**/*.*":
|
|
5002
|
-
return `(?:${$}${Y(p)}${O})?${G}${B}${P}${
|
|
5027
|
+
return `(?:${$}${Y(p)}${O})?${G}${B}${P}${w}${B}`;
|
|
5003
5028
|
case "**/.*":
|
|
5004
|
-
return `(?:${$}${Y(p)}${O})?${P}${
|
|
5029
|
+
return `(?:${$}${Y(p)}${O})?${P}${w}${B}`;
|
|
5005
5030
|
default: {
|
|
5006
5031
|
const pe = /^(.*?)\.(\w+)$/.exec(k);
|
|
5007
5032
|
if (!pe) return;
|
|
@@ -5012,7 +5037,7 @@ function Mn() {
|
|
|
5012
5037
|
}, Z = u.removePrefix(y, K);
|
|
5013
5038
|
let ie = ce(Z);
|
|
5014
5039
|
return ie && p.strictSlashes !== !0 && (ie += `${O}?`), ie;
|
|
5015
|
-
}, s.exports =
|
|
5040
|
+
}, s.exports = g;
|
|
5016
5041
|
}, 510: (s, r, n) => {
|
|
5017
5042
|
const i = n(716), u = n(697), l = n(96), f = n(154), d = (_) => _ && typeof _ == "object" && !Array.isArray(_), c = (_, h, v = !1) => {
|
|
5018
5043
|
if (Array.isArray(_)) {
|
|
@@ -5025,43 +5050,43 @@ function Mn() {
|
|
|
5025
5050
|
return !1;
|
|
5026
5051
|
};
|
|
5027
5052
|
}
|
|
5028
|
-
const
|
|
5029
|
-
if (_ === "" || typeof _ != "string" && !
|
|
5053
|
+
const g = d(_) && _.tokens && _.input;
|
|
5054
|
+
if (_ === "" || typeof _ != "string" && !g)
|
|
5030
5055
|
throw new TypeError("Expected pattern to be a non-empty string");
|
|
5031
|
-
const y = h || {},
|
|
5056
|
+
const y = h || {}, A = y.windows, p = g ? c.compileRe(_, h) : c.makeRe(_, h, !1, !0), m = p.state;
|
|
5032
5057
|
delete p.state;
|
|
5033
5058
|
let E = () => !1;
|
|
5034
5059
|
if (y.ignore) {
|
|
5035
5060
|
const O = { ...h, ignore: null, onMatch: null, onResult: null };
|
|
5036
5061
|
E = c(y.ignore, O, v);
|
|
5037
5062
|
}
|
|
5038
|
-
const P = (O,
|
|
5039
|
-
const { isMatch: T, match: C, output: j } = c.test(O, p, h, { glob: _, posix:
|
|
5040
|
-
return typeof y.onResult == "function" && y.onResult(M), T === !1 ? (M.isMatch = !1,
|
|
5063
|
+
const P = (O, w = !1) => {
|
|
5064
|
+
const { isMatch: T, match: C, output: j } = c.test(O, p, h, { glob: _, posix: A }), M = { glob: _, state: m, regex: p, posix: A, input: O, output: j, match: C, isMatch: T };
|
|
5065
|
+
return typeof y.onResult == "function" && y.onResult(M), T === !1 ? (M.isMatch = !1, w ? M : !1) : E(O) ? (typeof y.onIgnore == "function" && y.onIgnore(M), M.isMatch = !1, w ? M : !1) : (typeof y.onMatch == "function" && y.onMatch(M), w ? M : !0);
|
|
5041
5066
|
};
|
|
5042
|
-
return v && (P.state =
|
|
5067
|
+
return v && (P.state = m), P;
|
|
5043
5068
|
};
|
|
5044
|
-
c.test = (_, h, v, { glob:
|
|
5069
|
+
c.test = (_, h, v, { glob: g, posix: y } = {}) => {
|
|
5045
5070
|
if (typeof _ != "string")
|
|
5046
5071
|
throw new TypeError("Expected input to be a string");
|
|
5047
5072
|
if (_ === "")
|
|
5048
5073
|
return { isMatch: !1, output: "" };
|
|
5049
|
-
const
|
|
5050
|
-
let
|
|
5051
|
-
return
|
|
5052
|
-
}, c.matchBase = (_, h, v) => (h instanceof RegExp ? h : c.makeRe(h, v)).test(l.basename(_)), c.isMatch = (_, h, v) => c(h, v)(_), c.parse = (_, h) => Array.isArray(_) ? _.map((v) => c.parse(v, h)) : u(_, { ...h, fastpaths: !1 }), c.scan = (_, h) => i(_, h), c.compileRe = (_, h, v = !1,
|
|
5074
|
+
const A = v || {}, p = A.format || (y ? l.toPosixSlashes : null);
|
|
5075
|
+
let m = _ === g, E = m && p ? p(_) : _;
|
|
5076
|
+
return m === !1 && (E = p ? p(_) : _, m = E === g), (m === !1 || A.capture === !0) && (A.matchBase === !0 || A.basename === !0 ? m = c.matchBase(_, h, v, y) : m = h.exec(E)), { isMatch: !!m, match: m, output: E };
|
|
5077
|
+
}, c.matchBase = (_, h, v) => (h instanceof RegExp ? h : c.makeRe(h, v)).test(l.basename(_)), c.isMatch = (_, h, v) => c(h, v)(_), c.parse = (_, h) => Array.isArray(_) ? _.map((v) => c.parse(v, h)) : u(_, { ...h, fastpaths: !1 }), c.scan = (_, h) => i(_, h), c.compileRe = (_, h, v = !1, g = !1) => {
|
|
5053
5078
|
if (v === !0)
|
|
5054
5079
|
return _.output;
|
|
5055
|
-
const y = h || {},
|
|
5056
|
-
let
|
|
5057
|
-
_ && _.negated === !0 && (
|
|
5058
|
-
const E = c.toRegex(
|
|
5059
|
-
return
|
|
5060
|
-
}, c.makeRe = (_, h = {}, v = !1,
|
|
5080
|
+
const y = h || {}, A = y.contains ? "" : "^", p = y.contains ? "" : "$";
|
|
5081
|
+
let m = `${A}(?:${_.output})${p}`;
|
|
5082
|
+
_ && _.negated === !0 && (m = `^(?!${m}).*$`);
|
|
5083
|
+
const E = c.toRegex(m, h);
|
|
5084
|
+
return g === !0 && (E.state = _), E;
|
|
5085
|
+
}, c.makeRe = (_, h = {}, v = !1, g = !1) => {
|
|
5061
5086
|
if (!_ || typeof _ != "string")
|
|
5062
5087
|
throw new TypeError("Expected a non-empty string");
|
|
5063
5088
|
let y = { negated: !1, fastpaths: !0 };
|
|
5064
|
-
return h.fastpaths !== !1 && (_[0] === "." || _[0] === "*") && (y.output = u.fastpaths(_, h)), y.output || (y = u(_, h)), c.compileRe(y, h, v,
|
|
5089
|
+
return h.fastpaths !== !1 && (_[0] === "." || _[0] === "*") && (y.output = u.fastpaths(_, h)), y.output || (y = u(_, h)), c.compileRe(y, h, v, g);
|
|
5065
5090
|
}, c.toRegex = (_, h) => {
|
|
5066
5091
|
try {
|
|
5067
5092
|
const v = h || {};
|
|
@@ -5072,7 +5097,7 @@ function Mn() {
|
|
|
5072
5097
|
}
|
|
5073
5098
|
}, c.constants = f, s.exports = c;
|
|
5074
5099
|
}, 716: (s, r, n) => {
|
|
5075
|
-
const i = n(96), { CHAR_ASTERISK: u, CHAR_AT: l, CHAR_BACKWARD_SLASH: f, CHAR_COMMA: d, CHAR_DOT: c, CHAR_EXCLAMATION_MARK: _, CHAR_FORWARD_SLASH: h, CHAR_LEFT_CURLY_BRACE: v, CHAR_LEFT_PARENTHESES:
|
|
5100
|
+
const i = n(96), { CHAR_ASTERISK: u, CHAR_AT: l, CHAR_BACKWARD_SLASH: f, CHAR_COMMA: d, CHAR_DOT: c, CHAR_EXCLAMATION_MARK: _, CHAR_FORWARD_SLASH: h, CHAR_LEFT_CURLY_BRACE: v, CHAR_LEFT_PARENTHESES: g, CHAR_LEFT_SQUARE_BRACKET: y, CHAR_PLUS: A, CHAR_QUESTION_MARK: p, CHAR_RIGHT_CURLY_BRACE: m, CHAR_RIGHT_PARENTHESES: E, CHAR_RIGHT_SQUARE_BRACKET: P } = n(154), O = (C) => C === h || C === f, w = (C) => {
|
|
5076
5101
|
C.isPrefix !== !0 && (C.depth = C.isGlobstar ? 1 / 0 : 1);
|
|
5077
5102
|
}, T = (C, j) => {
|
|
5078
5103
|
const M = j || {}, te = C.length - 1, x = M.parts === !0 || M.scanToEnd === !0, $ = [], G = [], oe = [];
|
|
@@ -5105,7 +5130,7 @@ function Mn() {
|
|
|
5105
5130
|
continue;
|
|
5106
5131
|
break;
|
|
5107
5132
|
}
|
|
5108
|
-
if (N ===
|
|
5133
|
+
if (N === m && (S--, S === 0)) {
|
|
5109
5134
|
R = !1, Z = U.isBrace = !0, b = !0;
|
|
5110
5135
|
break;
|
|
5111
5136
|
}
|
|
@@ -5123,7 +5148,7 @@ function Mn() {
|
|
|
5123
5148
|
ce = B + 1;
|
|
5124
5149
|
continue;
|
|
5125
5150
|
}
|
|
5126
|
-
if (M.noext !== !0 && (N ===
|
|
5151
|
+
if (M.noext !== !0 && (N === A || N === l || N === u || N === p || N === _) === !0 && le() === g) {
|
|
5127
5152
|
if (k = U.isGlob = !0, pe = U.isExtglob = !0, b = !0, N === _ && B === Y && (V = !0), x === !0) {
|
|
5128
5153
|
for (; Q() !== !0 && (N = X()); ) {
|
|
5129
5154
|
if (N === f) {
|
|
@@ -5168,10 +5193,10 @@ function Mn() {
|
|
|
5168
5193
|
ue = U.negated = !0, Y++;
|
|
5169
5194
|
continue;
|
|
5170
5195
|
}
|
|
5171
|
-
if (M.noparen !== !0 && N ===
|
|
5196
|
+
if (M.noparen !== !0 && N === g) {
|
|
5172
5197
|
if (k = U.isGlob = !0, x === !0) {
|
|
5173
5198
|
for (; Q() !== !0 && (N = X()); ) {
|
|
5174
|
-
if (N ===
|
|
5199
|
+
if (N === g) {
|
|
5175
5200
|
ee = U.backslashes = !0, N = X();
|
|
5176
5201
|
continue;
|
|
5177
5202
|
}
|
|
@@ -5197,12 +5222,12 @@ function Mn() {
|
|
|
5197
5222
|
if (M.tokens === !0 && (F.maxDepth = 0, O(N) || G.push(U), F.tokens = G), M.parts === !0 || M.tokens === !0) {
|
|
5198
5223
|
let q;
|
|
5199
5224
|
for (let se = 0; se < $.length; se++) {
|
|
5200
|
-
const D = q ? q + 1 : Y, L = $[se],
|
|
5201
|
-
M.tokens && (se === 0 && Y !== 0 ? (G[se].isPrefix = !0, G[se].value = de) : G[se].value =
|
|
5225
|
+
const D = q ? q + 1 : Y, L = $[se], I = C.slice(D, L);
|
|
5226
|
+
M.tokens && (se === 0 && Y !== 0 ? (G[se].isPrefix = !0, G[se].value = de) : G[se].value = I, w(G[se]), F.maxDepth += G[se].depth), (se !== 0 || I !== "") && oe.push(I), q = L;
|
|
5202
5227
|
}
|
|
5203
5228
|
if (q && q + 1 < C.length) {
|
|
5204
5229
|
const se = C.slice(q + 1);
|
|
5205
|
-
oe.push(se), M.tokens && (G[G.length - 1].value = se,
|
|
5230
|
+
oe.push(se), M.tokens && (G[G.length - 1].value = se, w(G[G.length - 1]), F.maxDepth += G[G.length - 1].depth);
|
|
5206
5231
|
}
|
|
5207
5232
|
F.slashes = $, F.parts = oe;
|
|
5208
5233
|
}
|
|
@@ -5219,8 +5244,8 @@ function Mn() {
|
|
|
5219
5244
|
return _.startsWith("./") && (_ = _.slice(2), c.prefix = "./"), _;
|
|
5220
5245
|
}, r.wrapOutput = (d, c = {}, _ = {}) => {
|
|
5221
5246
|
const h = _.contains ? "" : "^", v = _.contains ? "" : "$";
|
|
5222
|
-
let
|
|
5223
|
-
return c.negated === !0 && (
|
|
5247
|
+
let g = `${h}(?:${d})${v}`;
|
|
5248
|
+
return c.negated === !0 && (g = `(?:^(?!${g}).*$)`), g;
|
|
5224
5249
|
}, r.basename = (d, { windows: c } = {}) => {
|
|
5225
5250
|
const _ = d.split(c ? /[\\/]/ : "/"), h = _[_.length - 1];
|
|
5226
5251
|
return h === "" ? _[_.length - 2] : h;
|
|
@@ -5240,12 +5265,12 @@ function Mn() {
|
|
|
5240
5265
|
}
|
|
5241
5266
|
typeof o < "u" && (o.ab = __dirname + "/");
|
|
5242
5267
|
var a = o(170);
|
|
5243
|
-
|
|
5244
|
-
})()),
|
|
5268
|
+
qt.exports = a;
|
|
5269
|
+
})()), qt.exports;
|
|
5245
5270
|
}
|
|
5246
|
-
var
|
|
5247
|
-
function
|
|
5248
|
-
return
|
|
5271
|
+
var nn;
|
|
5272
|
+
function Ma() {
|
|
5273
|
+
return nn || (nn = 1, function(t) {
|
|
5249
5274
|
Object.defineProperty(t, "__esModule", {
|
|
5250
5275
|
value: !0
|
|
5251
5276
|
});
|
|
@@ -5263,7 +5288,7 @@ function Na() {
|
|
|
5263
5288
|
return a;
|
|
5264
5289
|
}
|
|
5265
5290
|
});
|
|
5266
|
-
const o =
|
|
5291
|
+
const o = Hn();
|
|
5267
5292
|
function a(r, n) {
|
|
5268
5293
|
if (r.search !== void 0 && r.search !== n.search)
|
|
5269
5294
|
return !1;
|
|
@@ -5278,11 +5303,11 @@ function Na() {
|
|
|
5278
5303
|
const i = new URL(n, "http://n");
|
|
5279
5304
|
return r.some((u) => a(u, i));
|
|
5280
5305
|
}
|
|
5281
|
-
}(
|
|
5306
|
+
}(Ht)), Ht;
|
|
5282
5307
|
}
|
|
5283
|
-
var
|
|
5284
|
-
function
|
|
5285
|
-
return
|
|
5308
|
+
var $t = {}, on;
|
|
5309
|
+
function ja() {
|
|
5310
|
+
return on || (on = 1, function(t) {
|
|
5286
5311
|
Object.defineProperty(t, "__esModule", {
|
|
5287
5312
|
value: !0
|
|
5288
5313
|
});
|
|
@@ -5300,7 +5325,7 @@ function Da() {
|
|
|
5300
5325
|
return a;
|
|
5301
5326
|
}
|
|
5302
5327
|
});
|
|
5303
|
-
const o =
|
|
5328
|
+
const o = Hn();
|
|
5304
5329
|
function a(r, n) {
|
|
5305
5330
|
if (r.protocol !== void 0) {
|
|
5306
5331
|
const u = n.protocol.slice(0, -1);
|
|
@@ -5326,11 +5351,11 @@ function Da() {
|
|
|
5326
5351
|
function s(r, n, i) {
|
|
5327
5352
|
return r.some((u) => i.hostname === u) || n.some((u) => a(u, i));
|
|
5328
5353
|
}
|
|
5329
|
-
}(
|
|
5354
|
+
}($t)), $t;
|
|
5330
5355
|
}
|
|
5331
|
-
var
|
|
5332
|
-
function
|
|
5333
|
-
return
|
|
5356
|
+
var an;
|
|
5357
|
+
function qn() {
|
|
5358
|
+
return an || (an = 1, function(t) {
|
|
5334
5359
|
Object.defineProperty(t, "__esModule", {
|
|
5335
5360
|
value: !0
|
|
5336
5361
|
}), Object.defineProperty(t, "default", {
|
|
@@ -5363,7 +5388,7 @@ function jn() {
|
|
|
5363
5388
|
});
|
|
5364
5389
|
if (n.startsWith("/") && r.localPatterns && process.env.NODE_ENV !== "test" && // micromatch isn't compatible with edge runtime
|
|
5365
5390
|
process.env.NEXT_RUNTIME !== "edge") {
|
|
5366
|
-
const { hasLocalMatch: c } =
|
|
5391
|
+
const { hasLocalMatch: c } = Ma();
|
|
5367
5392
|
if (!c(r.localPatterns, n))
|
|
5368
5393
|
throw Object.defineProperty(new Error("Invalid src prop (" + n + ") on `next/image` does not match `images.localPatterns` configured in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns"), "__NEXT_ERROR_CODE", {
|
|
5369
5394
|
value: "E426",
|
|
@@ -5384,7 +5409,7 @@ function jn() {
|
|
|
5384
5409
|
}
|
|
5385
5410
|
if (process.env.NODE_ENV !== "test" && // micromatch isn't compatible with edge runtime
|
|
5386
5411
|
process.env.NEXT_RUNTIME !== "edge") {
|
|
5387
|
-
const { hasRemoteMatch: _ } =
|
|
5412
|
+
const { hasRemoteMatch: _ } = ja();
|
|
5388
5413
|
if (!_(r.domains, r.remotePatterns, c))
|
|
5389
5414
|
throw Object.defineProperty(new Error("Invalid src prop (" + n + ') on `next/image`, hostname "' + c.hostname + '" is not configured under images in your `next.config.js`\nSee more info: https://nextjs.org/docs/messages/next-image-unconfigured-host'), "__NEXT_ERROR_CODE", {
|
|
5390
5415
|
value: "E231",
|
|
@@ -5405,7 +5430,7 @@ function jn() {
|
|
|
5405
5430
|
}
|
|
5406
5431
|
o.__next_img_default = !0;
|
|
5407
5432
|
const a = o;
|
|
5408
|
-
}(
|
|
5433
|
+
}(kt)), kt;
|
|
5409
5434
|
}
|
|
5410
5435
|
(function(t, e) {
|
|
5411
5436
|
"use client";
|
|
@@ -5414,12 +5439,12 @@ function jn() {
|
|
|
5414
5439
|
}), Object.defineProperty(e, "Image", {
|
|
5415
5440
|
enumerable: !0,
|
|
5416
5441
|
get: function() {
|
|
5417
|
-
return
|
|
5442
|
+
return m;
|
|
5418
5443
|
}
|
|
5419
5444
|
});
|
|
5420
|
-
const o = Se, a =
|
|
5445
|
+
const o = Se, a = Ye, s = Bt, r = /* @__PURE__ */ a._(Oe), n = /* @__PURE__ */ o._(Qn), i = /* @__PURE__ */ o._(xa()), u = nr, l = tt, f = La(), d = et, c = xn(), _ = /* @__PURE__ */ o._(qn()), h = Ln(), v = process.env.__NEXT_IMAGE_OPTS;
|
|
5421
5446
|
typeof window > "u" && (globalThis.__NEXT_IMAGE_IMPORTED = !0);
|
|
5422
|
-
function
|
|
5447
|
+
function g(E, P, O, w, T, C, j) {
|
|
5423
5448
|
const M = E == null ? void 0 : E.src;
|
|
5424
5449
|
if (!E || E["data-loaded-src"] === M)
|
|
5425
5450
|
return;
|
|
@@ -5450,7 +5475,7 @@ function jn() {
|
|
|
5450
5475
|
}
|
|
5451
5476
|
});
|
|
5452
5477
|
}
|
|
5453
|
-
if (
|
|
5478
|
+
if (w != null && w.current && w.current(E), process.env.NODE_ENV !== "production") {
|
|
5454
5479
|
const x = new URL(M, "http://n").searchParams.get("url") || M;
|
|
5455
5480
|
if (E.getAttribute("data-nimg") === "fill") {
|
|
5456
5481
|
if (!C && (!j || j === "100vw") && E.getBoundingClientRect().width / window.innerWidth < 0.6 && (j === "100vw" ? (0, d.warnOnce)('Image with src "' + x + '" has "fill" prop and "sizes" prop of "100vw", but image is not rendered at full viewport width. Please adjust "sizes" to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes') : (0, d.warnOnce)('Image with src "' + x + '" has "fill" but is missing "sizes" prop. Please add it to improve page performance. Read more: https://nextjs.org/docs/api-reference/next/image#sizes')), E.parentElement) {
|
|
@@ -5476,10 +5501,10 @@ function jn() {
|
|
|
5476
5501
|
fetchpriority: E
|
|
5477
5502
|
};
|
|
5478
5503
|
}
|
|
5479
|
-
const
|
|
5480
|
-
let { src: O, srcSet:
|
|
5504
|
+
const A = /* @__PURE__ */ (0, r.forwardRef)((E, P) => {
|
|
5505
|
+
let { src: O, srcSet: w, sizes: T, height: C, width: j, decoding: M, className: te, style: x, fetchPriority: $, placeholder: G, loading: oe, unoptimized: K, fill: B, onLoadRef: Y, onLoadingCompleteRef: ce, setBlurComplete: Z, setShowAltText: ie, sizesInput: k, onLoad: pe, onError: W, ...R } = E;
|
|
5481
5506
|
const ee = (0, r.useCallback)((V) => {
|
|
5482
|
-
V && (W && (V.src = V.src), process.env.NODE_ENV !== "production" && (O || console.error('Image is missing required "src" property:', V), V.getAttribute("alt") === null && console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')), V.complete &&
|
|
5507
|
+
V && (W && (V.src = V.src), process.env.NODE_ENV !== "production" && (O || console.error('Image is missing required "src" property:', V), V.getAttribute("alt") === null && console.error('Image is missing required "alt" property. Please add Alternative Text to describe the image for screen readers and search engines.')), V.complete && g(V, G, Y, ce, Z, K, k));
|
|
5483
5508
|
}, [
|
|
5484
5509
|
O,
|
|
5485
5510
|
G,
|
|
@@ -5510,12 +5535,12 @@ function jn() {
|
|
|
5510
5535
|
// and `sizes` are defined.
|
|
5511
5536
|
// This bug cannot be reproduced in Chrome or Firefox.
|
|
5512
5537
|
sizes: T,
|
|
5513
|
-
srcSet:
|
|
5538
|
+
srcSet: w,
|
|
5514
5539
|
src: O,
|
|
5515
5540
|
ref: ue,
|
|
5516
5541
|
onLoad: (V) => {
|
|
5517
5542
|
const b = V.currentTarget;
|
|
5518
|
-
|
|
5543
|
+
g(b, G, Y, ce, Z, K, k);
|
|
5519
5544
|
},
|
|
5520
5545
|
onError: (V) => {
|
|
5521
5546
|
ie(!0), G !== "empty" && Z(!0), W && W(V);
|
|
@@ -5524,7 +5549,7 @@ function jn() {
|
|
|
5524
5549
|
});
|
|
5525
5550
|
function p(E) {
|
|
5526
5551
|
let { isAppRouter: P, imgAttributes: O } = E;
|
|
5527
|
-
const
|
|
5552
|
+
const w = {
|
|
5528
5553
|
as: "image",
|
|
5529
5554
|
imageSrcSet: O.srcSet,
|
|
5530
5555
|
imageSizes: O.sizes,
|
|
@@ -5535,7 +5560,7 @@ function jn() {
|
|
|
5535
5560
|
return P && n.default.preload ? (n.default.preload(
|
|
5536
5561
|
O.src,
|
|
5537
5562
|
// @ts-expect-error TODO: upgrade to `@types/react-dom@18.3.x`
|
|
5538
|
-
|
|
5563
|
+
w
|
|
5539
5564
|
), null) : /* @__PURE__ */ (0, s.jsx)(i.default, {
|
|
5540
5565
|
children: /* @__PURE__ */ (0, s.jsx)("link", {
|
|
5541
5566
|
rel: "preload",
|
|
@@ -5545,12 +5570,12 @@ function jn() {
|
|
|
5545
5570
|
//
|
|
5546
5571
|
// https://html.spec.whatwg.org/multipage/semantics.html#attr-link-imagesrcset
|
|
5547
5572
|
href: O.srcSet ? void 0 : O.src,
|
|
5548
|
-
...
|
|
5573
|
+
...w
|
|
5549
5574
|
}, "__nimg-" + O.src + O.srcSet + O.sizes)
|
|
5550
5575
|
});
|
|
5551
5576
|
}
|
|
5552
|
-
const
|
|
5553
|
-
const
|
|
5577
|
+
const m = /* @__PURE__ */ (0, r.forwardRef)((E, P) => {
|
|
5578
|
+
const w = !(0, r.useContext)(c.RouterContext), T = (0, r.useContext)(f.ImageConfigContext), C = (0, r.useMemo)(() => {
|
|
5554
5579
|
var ce;
|
|
5555
5580
|
const Z = v || T || l.imageConfigDefault, ie = [
|
|
5556
5581
|
...Z.deviceSizes,
|
|
@@ -5584,7 +5609,7 @@ function jn() {
|
|
|
5584
5609
|
});
|
|
5585
5610
|
return /* @__PURE__ */ (0, s.jsxs)(s.Fragment, {
|
|
5586
5611
|
children: [
|
|
5587
|
-
/* @__PURE__ */ (0, s.jsx)(
|
|
5612
|
+
/* @__PURE__ */ (0, s.jsx)(A, {
|
|
5588
5613
|
...B,
|
|
5589
5614
|
unoptimized: Y.unoptimized,
|
|
5590
5615
|
placeholder: Y.placeholder,
|
|
@@ -5597,15 +5622,15 @@ function jn() {
|
|
|
5597
5622
|
ref: P
|
|
5598
5623
|
}),
|
|
5599
5624
|
Y.priority ? /* @__PURE__ */ (0, s.jsx)(p, {
|
|
5600
|
-
isAppRouter:
|
|
5625
|
+
isAppRouter: w,
|
|
5601
5626
|
imgAttributes: B
|
|
5602
5627
|
}) : null
|
|
5603
5628
|
]
|
|
5604
5629
|
});
|
|
5605
5630
|
});
|
|
5606
5631
|
(typeof e.default == "function" || typeof e.default == "object" && e.default !== null) && typeof e.default.__esModule > "u" && (Object.defineProperty(e.default, "__esModule", { value: !0 }), Object.assign(e.default, e), t.exports = e.default);
|
|
5607
|
-
})(
|
|
5608
|
-
var
|
|
5632
|
+
})(Gt, Gt.exports);
|
|
5633
|
+
var ka = Gt.exports;
|
|
5609
5634
|
(function(t) {
|
|
5610
5635
|
Object.defineProperty(t, "__esModule", {
|
|
5611
5636
|
value: !0
|
|
@@ -5624,7 +5649,7 @@ var xa = zt.exports;
|
|
|
5624
5649
|
return n;
|
|
5625
5650
|
}
|
|
5626
5651
|
});
|
|
5627
|
-
const o = Se, a =
|
|
5652
|
+
const o = Se, a = nr, s = ka, r = /* @__PURE__ */ o._(qn());
|
|
5628
5653
|
function n(u) {
|
|
5629
5654
|
const { props: l } = (0, a.getImgProps)(u, {
|
|
5630
5655
|
defaultLoader: r.default,
|
|
@@ -5638,29 +5663,29 @@ var xa = zt.exports;
|
|
|
5638
5663
|
};
|
|
5639
5664
|
}
|
|
5640
5665
|
const i = s.Image;
|
|
5641
|
-
})(
|
|
5642
|
-
var
|
|
5643
|
-
const
|
|
5666
|
+
})(jn);
|
|
5667
|
+
var Ha = jn;
|
|
5668
|
+
const qa = /* @__PURE__ */ On(Ha), $a = ({
|
|
5644
5669
|
alt: t,
|
|
5645
5670
|
className: e,
|
|
5646
5671
|
objectFit: o,
|
|
5647
5672
|
...a
|
|
5648
5673
|
}) => /* @__PURE__ */ H(
|
|
5649
|
-
|
|
5674
|
+
qa,
|
|
5650
5675
|
{
|
|
5651
5676
|
quality: 90,
|
|
5652
5677
|
...a,
|
|
5653
5678
|
alt: t ?? "",
|
|
5654
|
-
className:
|
|
5679
|
+
className: we.classNameConcat(Ia.image, e),
|
|
5655
5680
|
"data-object-fit": o ?? "cover"
|
|
5656
5681
|
}
|
|
5657
|
-
),
|
|
5658
|
-
Image:
|
|
5659
|
-
Video:
|
|
5660
|
-
},
|
|
5682
|
+
), Ua = ({ videoRef: t, ...e }) => /* @__PURE__ */ H("video", { ...e, ref: t, children: /* @__PURE__ */ H("track", { kind: "captions" }) }), Fa = {
|
|
5683
|
+
Image: $a,
|
|
5684
|
+
Video: Ua
|
|
5685
|
+
}, sn = {
|
|
5661
5686
|
"backtotop-btn": "_backtotop-btn_1shb6_1",
|
|
5662
5687
|
"card-modifier": "_card-modifier_1shb6_27"
|
|
5663
|
-
},
|
|
5688
|
+
}, za = ({
|
|
5664
5689
|
children: t,
|
|
5665
5690
|
className: e,
|
|
5666
5691
|
adornment: o,
|
|
@@ -5684,12 +5709,12 @@ const Ma = /* @__PURE__ */ Rn(La), ja = ({
|
|
|
5684
5709
|
window && window.document.body.scrollTo({ ...i });
|
|
5685
5710
|
};
|
|
5686
5711
|
return /* @__PURE__ */ H(
|
|
5687
|
-
|
|
5712
|
+
Vn,
|
|
5688
5713
|
{
|
|
5689
5714
|
...n,
|
|
5690
5715
|
shadow: !0,
|
|
5691
5716
|
padding: "small",
|
|
5692
|
-
className:
|
|
5717
|
+
className: we.classNameConcat(sn["card-modifier"], e),
|
|
5693
5718
|
style: {
|
|
5694
5719
|
...r,
|
|
5695
5720
|
padding: 0
|
|
@@ -5697,7 +5722,7 @@ const Ma = /* @__PURE__ */ Rn(La), ja = ({
|
|
|
5697
5722
|
children: /* @__PURE__ */ he(
|
|
5698
5723
|
"button",
|
|
5699
5724
|
{
|
|
5700
|
-
className:
|
|
5725
|
+
className: sn["backtotop-btn"],
|
|
5701
5726
|
onClick: f,
|
|
5702
5727
|
style: { ...l },
|
|
5703
5728
|
"data-orientation": a,
|
|
@@ -5709,15 +5734,15 @@ const Ma = /* @__PURE__ */ Rn(La), ja = ({
|
|
|
5709
5734
|
)
|
|
5710
5735
|
}
|
|
5711
5736
|
);
|
|
5712
|
-
},
|
|
5713
|
-
const { pathname: o } =
|
|
5737
|
+
}, Xa = ({ page: t, data: e }) => {
|
|
5738
|
+
const { pathname: o } = Jt(), a = ye(null), {
|
|
5714
5739
|
sendDataLayerEvent: s,
|
|
5715
5740
|
currentLocalRef: r,
|
|
5716
5741
|
itemListRef: n,
|
|
5717
5742
|
promotionEventRef: i
|
|
5718
|
-
} =
|
|
5719
|
-
return
|
|
5720
|
-
const u =
|
|
5743
|
+
} = Qe();
|
|
5744
|
+
return Ae(() => {
|
|
5745
|
+
const u = bn("login_event") || "{}", l = JSON.parse(u);
|
|
5721
5746
|
if (l.name || l.method) {
|
|
5722
5747
|
const f = /* @__PURE__ */ new Date(0);
|
|
5723
5748
|
s({
|
|
@@ -5728,9 +5753,9 @@ const Ma = /* @__PURE__ */ Rn(La), ja = ({
|
|
|
5728
5753
|
method: l.method
|
|
5729
5754
|
}
|
|
5730
5755
|
}
|
|
5731
|
-
}),
|
|
5756
|
+
}), Pn("login_event", "", { expires: f });
|
|
5732
5757
|
}
|
|
5733
|
-
}, []),
|
|
5758
|
+
}, []), Ae(() => {
|
|
5734
5759
|
if (a.current === o)
|
|
5735
5760
|
return;
|
|
5736
5761
|
a.current = o;
|
|
@@ -5745,21 +5770,21 @@ const Ma = /* @__PURE__ */ Rn(La), ja = ({
|
|
|
5745
5770
|
break;
|
|
5746
5771
|
}
|
|
5747
5772
|
f.items.forEach(
|
|
5748
|
-
({ itemId:
|
|
5773
|
+
({ itemId: A, sellers: p }) => d[A] = p[0].commertialOffer.AvailableQuantity
|
|
5749
5774
|
), u = {
|
|
5750
5775
|
page_category: "pdp",
|
|
5751
|
-
seller_ids: f.items.map(({ sellers:
|
|
5776
|
+
seller_ids: f.items.map(({ sellers: A }) => A[0].sellerId).join(),
|
|
5752
5777
|
skuStocks: d,
|
|
5753
5778
|
product_reference_id: f.productReference
|
|
5754
5779
|
};
|
|
5755
5780
|
break;
|
|
5756
5781
|
case "PDC":
|
|
5757
|
-
const { page_category: c, page_departament: _, id: h, name: v } =
|
|
5782
|
+
const { page_category: c, page_departament: _, id: h, name: v } = Rn(), g = v, y = h;
|
|
5758
5783
|
u = {
|
|
5759
5784
|
page_category: "lista_produtos",
|
|
5760
5785
|
..._ && { page_departament: _ }
|
|
5761
5786
|
}, n.current = {
|
|
5762
|
-
item_list_name: o === "/search" ? "busca" :
|
|
5787
|
+
item_list_name: o === "/search" ? "busca" : g ?? void 0,
|
|
5763
5788
|
item_list_id: o === "/search" ? void 0 : y ?? void 0
|
|
5764
5789
|
}, _ && s({
|
|
5765
5790
|
functionKey: "readyEvents",
|
|
@@ -5794,17 +5819,17 @@ const Ma = /* @__PURE__ */ Rn(La), ja = ({
|
|
|
5794
5819
|
timeout: 0
|
|
5795
5820
|
});
|
|
5796
5821
|
}, [o]), null;
|
|
5797
|
-
},
|
|
5798
|
-
FreightCalculation:
|
|
5799
|
-
ObserverWrapper:
|
|
5800
|
-
Media:
|
|
5801
|
-
Link:
|
|
5802
|
-
BackToTop:
|
|
5803
|
-
EventCollector:
|
|
5822
|
+
}, os = {
|
|
5823
|
+
FreightCalculation: Pa,
|
|
5824
|
+
ObserverWrapper: Ca,
|
|
5825
|
+
Media: Fa,
|
|
5826
|
+
Link: Mn,
|
|
5827
|
+
BackToTop: za,
|
|
5828
|
+
EventCollector: Xa
|
|
5804
5829
|
};
|
|
5805
5830
|
export {
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5831
|
+
ns as cms,
|
|
5832
|
+
ts as contexts,
|
|
5833
|
+
rs as data,
|
|
5834
|
+
os as layout
|
|
5810
5835
|
};
|