@soma-vertical-web/multi-lib 1.0.24 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cms/ContentTypes/Wishlist/WishlistContent.d.ts +3 -0
- package/cms/ContentTypes/Wishlist/WishlistScreening.d.ts +3 -0
- package/cms/index.d.ts +1 -0
- package/cms/server.d.ts +1 -0
- package/contexts/hooks/useOrderform.d.ts +16 -0
- package/data/api/maisCarrinho/Api.d.ts +9 -0
- package/data/api/maisCarrinho/URLGenerator.d.ts +4 -0
- package/data/api/maisCarrinho/encurtador.d.ts +1 -0
- package/data/api/maisCarrinho/utils.d.ts +2 -0
- package/data/api/marketingData/index.d.ts +25 -0
- package/{index-DjjGiBzS.mjs → index-BM8vTUKg.mjs} +745 -672
- package/index-CZjoMPpQ.js +4 -0
- package/index.js +16 -15
- package/index.mjs +5992 -5602
- package/index2.js +2 -2
- package/index2.mjs +471 -486
- package/layout/index.d.ts +6 -0
- package/layout/template/MaisCarrinho/WidgetVendedora.d.ts +8 -0
- package/layout/template/MaisCarrinho/components/ActionButton/ActionButton.d.ts +8 -0
- package/layout/template/MaisCarrinho/components/ActionButton/index.d.ts +1 -0
- package/layout/template/MaisCarrinho/components/SharePanel/SharePanel.d.ts +9 -0
- package/layout/template/MaisCarrinho/components/SharePanel/index.d.ts +1 -0
- package/layout/template/MaisCarrinho/index.d.ts +1 -0
- package/package.json +1 -1
- package/server.d.ts +2 -0
- package/style.css +1 -1
- package/types/cms/ContentTypes/Wishlist/index.d.ts +12 -0
- package/types/layout/templates/MaisCarrinho/index.d.ts +25 -0
- package/index-3re_PcOZ.mjs +0 -2234
- package/index-5ycwc4R2.mjs +0 -2230
- package/index-BngdrDvh.js +0 -4
- package/index-ByLB8d6o.js +0 -4
- package/index-Rwk0NGoh.js +0 -4
package/index2.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import { Utils as
|
|
1
|
+
import { jsx as O, jsxs as pe, Fragment as W } from "react/jsx-runtime";
|
|
2
|
+
import { G as $, z as oe, S as yt, H as T, I as _t, J as Rt, K as It, a as Pt, j as xt, m as St, r as Ct, q as kt, k as Be, n as At, o as Et, l as Ot, D as Tt, C as qt, L as Nt, p as jt, M as $t, N as Ft, O as Lt, P as Dt, e as Ut, Q as Ht } from "./index-BM8vTUKg.mjs";
|
|
3
|
+
import { Utils as se, helpers as le } from "@soma-vertical-web/core-components";
|
|
4
4
|
import * as c from "yup";
|
|
5
|
-
import
|
|
6
|
-
import { decodeJwt as
|
|
7
|
-
const
|
|
5
|
+
import Mt from "sanitize-html";
|
|
6
|
+
import { decodeJwt as Bt } from "jose";
|
|
7
|
+
const zt = async ({
|
|
8
8
|
children: e,
|
|
9
9
|
ClientCartProvider: t,
|
|
10
10
|
...r
|
|
@@ -13,8 +13,8 @@ const Bt = async ({
|
|
|
13
13
|
"mini_cart",
|
|
14
14
|
r
|
|
15
15
|
);
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
},
|
|
16
|
+
return /* @__PURE__ */ O(t, { ...n ? Array.isArray(n) ? { data: n[0] } : { data: n } : {}, children: e });
|
|
17
|
+
}, Gt = ({
|
|
18
18
|
slug: e,
|
|
19
19
|
data: t,
|
|
20
20
|
SectionZone: r,
|
|
@@ -32,31 +32,31 @@ const Bt = async ({
|
|
|
32
32
|
return ((v = (w = u.config) == null ? void 0 : w.responsive) == null ? void 0 : v.deviceType) === "mobile" && ((_ = (y = u.config) == null ? void 0 : y.seo) == null ? void 0 : _.slug) === e;
|
|
33
33
|
}
|
|
34
34
|
), g = d == null ? void 0 : d.config.responsive.gapCustom, s = d == null ? void 0 : d.config.responsive.gapSections;
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
|
|
35
|
+
return /* @__PURE__ */ pe(W, { children: [
|
|
36
|
+
/* @__PURE__ */ O(
|
|
37
|
+
se.Column,
|
|
38
38
|
{
|
|
39
39
|
gap: l && i ? i : n,
|
|
40
|
-
className:
|
|
41
|
-
|
|
40
|
+
className: le.classNameConcat(
|
|
41
|
+
oe["responsive-desktop-flex"],
|
|
42
42
|
"utils-column-modifier"
|
|
43
43
|
),
|
|
44
|
-
children: /* @__PURE__ */
|
|
44
|
+
children: /* @__PURE__ */ O(r, { data: (o == null ? void 0 : o.sections) ?? [], identifyWhoIsFirst: a })
|
|
45
45
|
}
|
|
46
46
|
),
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
|
|
47
|
+
/* @__PURE__ */ O(
|
|
48
|
+
se.Column,
|
|
49
49
|
{
|
|
50
50
|
gap: g && s ? s : n,
|
|
51
|
-
className:
|
|
52
|
-
|
|
51
|
+
className: le.classNameConcat(
|
|
52
|
+
oe["responsive-mobile-flex"],
|
|
53
53
|
"utils-column-modifier"
|
|
54
54
|
),
|
|
55
|
-
children: /* @__PURE__ */
|
|
55
|
+
children: /* @__PURE__ */ O(r, { data: (d == null ? void 0 : d.sections) ?? [], identifyWhoIsFirst: a })
|
|
56
56
|
}
|
|
57
57
|
)
|
|
58
58
|
] });
|
|
59
|
-
},
|
|
59
|
+
}, Vt = async ({
|
|
60
60
|
slug: e,
|
|
61
61
|
SectionZone: t,
|
|
62
62
|
COMMON_PAGE_COLUMN_GAP: r,
|
|
@@ -67,8 +67,8 @@ const Bt = async ({
|
|
|
67
67
|
"common_page",
|
|
68
68
|
a
|
|
69
69
|
);
|
|
70
|
-
return !o || !Array.isArray(o) || o.length === 0 ? null : /* @__PURE__ */
|
|
71
|
-
|
|
70
|
+
return !o || !Array.isArray(o) || o.length === 0 ? null : /* @__PURE__ */ O(
|
|
71
|
+
Gt,
|
|
72
72
|
{
|
|
73
73
|
data: o,
|
|
74
74
|
slug: e,
|
|
@@ -77,7 +77,7 @@ const Bt = async ({
|
|
|
77
77
|
identifyWhoIsFirst: n
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
|
-
},
|
|
80
|
+
}, Wt = async ({
|
|
81
81
|
children: e,
|
|
82
82
|
ClientFlagsAndTagsProvider: t,
|
|
83
83
|
...r
|
|
@@ -86,8 +86,8 @@ const Bt = async ({
|
|
|
86
86
|
"flags_and_tags",
|
|
87
87
|
r
|
|
88
88
|
);
|
|
89
|
-
return !n || !Array.isArray(n) ? null : /* @__PURE__ */
|
|
90
|
-
},
|
|
89
|
+
return !n || !Array.isArray(n) ? null : /* @__PURE__ */ O(t, { data: n[0], children: e });
|
|
90
|
+
}, Qt = async ({
|
|
91
91
|
className: e,
|
|
92
92
|
PAYMENT_FLAGS_DICTIONARY: t,
|
|
93
93
|
PAYMENT_FLAGS: r,
|
|
@@ -99,7 +99,7 @@ const Bt = async ({
|
|
|
99
99
|
hasFooterStamps: d,
|
|
100
100
|
...g
|
|
101
101
|
}) => {
|
|
102
|
-
var v, y, _, p, b, m, h, f,
|
|
102
|
+
var v, y, _, p, b, m, h, f, A, N, I;
|
|
103
103
|
const { data: s } = await $("footer", g), u = Array.isArray(s) && ((v = s[0]) == null ? void 0 : v.type) === "footer" ? s[0] : null, w = {
|
|
104
104
|
...(y = u == null ? void 0 : u.paymentInfo) == null ? void 0 : y.paymentInfo,
|
|
105
105
|
acceptedFlags: Array.isArray(
|
|
@@ -108,7 +108,7 @@ const Bt = async ({
|
|
|
108
108
|
(R) => t[R]
|
|
109
109
|
) : []
|
|
110
110
|
};
|
|
111
|
-
return u ? /* @__PURE__ */
|
|
111
|
+
return u ? /* @__PURE__ */ O(
|
|
112
112
|
l,
|
|
113
113
|
{
|
|
114
114
|
className: e,
|
|
@@ -118,8 +118,8 @@ const Bt = async ({
|
|
|
118
118
|
payments: w,
|
|
119
119
|
hasFooterStamps: d,
|
|
120
120
|
adornment: {
|
|
121
|
-
...(
|
|
122
|
-
bottom: /* @__PURE__ */
|
|
121
|
+
...(A = (f = u.supportInfo) == null ? void 0 : f.supportInfo) != null && A.content ? {
|
|
122
|
+
bottom: /* @__PURE__ */ O(
|
|
123
123
|
i,
|
|
124
124
|
{
|
|
125
125
|
content: (I = (N = u.supportInfo) == null ? void 0 : N.supportInfo) == null ? void 0 : I.content,
|
|
@@ -131,13 +131,13 @@ const Bt = async ({
|
|
|
131
131
|
}
|
|
132
132
|
)
|
|
133
133
|
} : {},
|
|
134
|
-
...u.sections.length ? { top: /* @__PURE__ */
|
|
134
|
+
...u.sections.length ? { top: /* @__PURE__ */ O(o, { data: u.sections }) } : {}
|
|
135
135
|
},
|
|
136
136
|
LEGAL_INFORMATION_TEXT: n,
|
|
137
137
|
ICONS: a
|
|
138
138
|
}
|
|
139
139
|
) : null;
|
|
140
|
-
},
|
|
140
|
+
}, Kt = async ({
|
|
141
141
|
children: e,
|
|
142
142
|
ClientHeaderProvider: t,
|
|
143
143
|
...r
|
|
@@ -147,7 +147,7 @@ const Bt = async ({
|
|
|
147
147
|
"header",
|
|
148
148
|
r
|
|
149
149
|
), a = Array.isArray(n) ? n[0] : void 0;
|
|
150
|
-
return /* @__PURE__ */
|
|
150
|
+
return /* @__PURE__ */ O(
|
|
151
151
|
t,
|
|
152
152
|
{
|
|
153
153
|
headerData: {
|
|
@@ -188,7 +188,7 @@ const Bt = async ({
|
|
|
188
188
|
helpButtonSize: a,
|
|
189
189
|
content: o
|
|
190
190
|
};
|
|
191
|
-
},
|
|
191
|
+
}, Zt = async ({
|
|
192
192
|
HelpButton: e,
|
|
193
193
|
ICONS: t,
|
|
194
194
|
className: r,
|
|
@@ -201,7 +201,7 @@ const Bt = async ({
|
|
|
201
201
|
if (!a || !Array.isArray(a) || a.length === 0)
|
|
202
202
|
return null;
|
|
203
203
|
const o = Xt(a);
|
|
204
|
-
return /* @__PURE__ */
|
|
204
|
+
return /* @__PURE__ */ O(
|
|
205
205
|
e,
|
|
206
206
|
{
|
|
207
207
|
data: o,
|
|
@@ -222,11 +222,11 @@ const Bt = async ({
|
|
|
222
222
|
if (!n || !Array.isArray(n) || n.length === 0)
|
|
223
223
|
return null;
|
|
224
224
|
const [a] = n, o = (a == null ? void 0 : a.sections) || [], l = ((d = a == null ? void 0 : a.content) == null ? void 0 : d.conteúdo) || {}, i = a == null ? void 0 : a.sections;
|
|
225
|
-
return /* @__PURE__ */
|
|
226
|
-
/* @__PURE__ */
|
|
227
|
-
/* @__PURE__ */
|
|
225
|
+
return /* @__PURE__ */ pe(W, { children: [
|
|
226
|
+
/* @__PURE__ */ O(t, { sections: o, content: l }),
|
|
227
|
+
/* @__PURE__ */ O(e, { data: i })
|
|
228
228
|
] });
|
|
229
|
-
},
|
|
229
|
+
}, Yt = async ({
|
|
230
230
|
LPLOJAS_TEMPLATE_RETURN_BUTTON: e,
|
|
231
231
|
ICONS: t,
|
|
232
232
|
entity: r,
|
|
@@ -236,7 +236,7 @@ const Bt = async ({
|
|
|
236
236
|
}) => {
|
|
237
237
|
var g;
|
|
238
238
|
const { data: l } = await $("lp_lojas", o), d = (g = (Array.isArray(l) ? l : [])[0]) == null ? void 0 : g.config.config;
|
|
239
|
-
return /* @__PURE__ */
|
|
239
|
+
return /* @__PURE__ */ O(
|
|
240
240
|
a,
|
|
241
241
|
{
|
|
242
242
|
entity: r,
|
|
@@ -247,7 +247,7 @@ const Bt = async ({
|
|
|
247
247
|
LPLOJAS_TEMPLATE_RETURN_BUTTON: e
|
|
248
248
|
}
|
|
249
249
|
);
|
|
250
|
-
},
|
|
250
|
+
}, er = async ({
|
|
251
251
|
ERROR_TEMPLATE_RETURN_BUTTON: e,
|
|
252
252
|
ErrorTemplate: t,
|
|
253
253
|
...r
|
|
@@ -257,14 +257,14 @@ const Bt = async ({
|
|
|
257
257
|
"notfound_page",
|
|
258
258
|
r
|
|
259
259
|
), a = Array.isArray(n) ? (o = n[0]) == null ? void 0 : o.config.config : null;
|
|
260
|
-
return n && a ? /* @__PURE__ */
|
|
260
|
+
return n && a ? /* @__PURE__ */ O(
|
|
261
261
|
t,
|
|
262
262
|
{
|
|
263
263
|
data: a,
|
|
264
264
|
ERROR_TEMPLATE_RETURN_BUTTON: e
|
|
265
265
|
}
|
|
266
|
-
) : /* @__PURE__ */
|
|
267
|
-
},
|
|
266
|
+
) : /* @__PURE__ */ O(W, {});
|
|
267
|
+
}, tr = async ({
|
|
268
268
|
children: e,
|
|
269
269
|
productId: t,
|
|
270
270
|
COMMON_PAGE_COLUMN_GAP: r,
|
|
@@ -276,7 +276,7 @@ const Bt = async ({
|
|
|
276
276
|
"product_page",
|
|
277
277
|
o
|
|
278
278
|
);
|
|
279
|
-
return !l || !Array.isArray(l) || l.length === 0 ? null : /* @__PURE__ */
|
|
279
|
+
return !l || !Array.isArray(l) || l.length === 0 ? null : /* @__PURE__ */ O(
|
|
280
280
|
a,
|
|
281
281
|
{
|
|
282
282
|
data: l[0],
|
|
@@ -286,9 +286,9 @@ const Bt = async ({
|
|
|
286
286
|
children: e
|
|
287
287
|
}
|
|
288
288
|
);
|
|
289
|
-
},
|
|
289
|
+
}, rr = {
|
|
290
290
|
"column-modifier": "_column-modifier_1tqap_1"
|
|
291
|
-
},
|
|
291
|
+
}, nr = async ({
|
|
292
292
|
className: e,
|
|
293
293
|
children: t,
|
|
294
294
|
slug: r,
|
|
@@ -324,18 +324,18 @@ const Bt = async ({
|
|
|
324
324
|
return ((y = v.config) == null ? void 0 : y.seo.slug) === "default" && ((p = (_ = v.config) == null ? void 0 : _.responsive) == null ? void 0 : p.deviceType) === "mobile";
|
|
325
325
|
}
|
|
326
326
|
), w = Array.isArray(e) ? e : [e];
|
|
327
|
-
return /* @__PURE__ */
|
|
328
|
-
/* @__PURE__ */
|
|
329
|
-
|
|
327
|
+
return /* @__PURE__ */ pe(W, { children: [
|
|
328
|
+
/* @__PURE__ */ O(
|
|
329
|
+
se.Column,
|
|
330
330
|
{
|
|
331
|
-
className:
|
|
332
|
-
|
|
333
|
-
[
|
|
331
|
+
className: le.classNameConcat(
|
|
332
|
+
oe["responsive-desktop-flex"],
|
|
333
|
+
[rr["column-modifier"], ...w]
|
|
334
334
|
),
|
|
335
335
|
style: {
|
|
336
336
|
minHeight: "100vh"
|
|
337
337
|
},
|
|
338
|
-
children: /* @__PURE__ */
|
|
338
|
+
children: /* @__PURE__ */ O(
|
|
339
339
|
o,
|
|
340
340
|
{
|
|
341
341
|
data: d ?? s,
|
|
@@ -347,7 +347,7 @@ const Bt = async ({
|
|
|
347
347
|
)
|
|
348
348
|
}
|
|
349
349
|
),
|
|
350
|
-
/* @__PURE__ */
|
|
350
|
+
/* @__PURE__ */ O(se.Column, { className: le.classNameConcat(oe["responsive-mobile-flex"], e), children: /* @__PURE__ */ O(
|
|
351
351
|
o,
|
|
352
352
|
{
|
|
353
353
|
data: g ?? u,
|
|
@@ -358,7 +358,7 @@ const Bt = async ({
|
|
|
358
358
|
}
|
|
359
359
|
) })
|
|
360
360
|
] });
|
|
361
|
-
},
|
|
361
|
+
}, ar = async ({ slug: e, ...t }) => {
|
|
362
362
|
var l, i, d;
|
|
363
363
|
const { data: r } = await $(
|
|
364
364
|
"redirect_to_search",
|
|
@@ -398,7 +398,7 @@ const Bt = async ({
|
|
|
398
398
|
filters: null,
|
|
399
399
|
sort: null
|
|
400
400
|
};
|
|
401
|
-
},
|
|
401
|
+
}, ir = async ({ slug: e, ...t }) => {
|
|
402
402
|
var l, i, d;
|
|
403
403
|
const { data: r } = await $(
|
|
404
404
|
"redirect_to_search",
|
|
@@ -420,7 +420,7 @@ const Bt = async ({
|
|
|
420
420
|
title: o.pageTitle,
|
|
421
421
|
description: o.pageDescription
|
|
422
422
|
} : null;
|
|
423
|
-
},
|
|
423
|
+
}, or = async ({
|
|
424
424
|
slug: e,
|
|
425
425
|
Politicas: t,
|
|
426
426
|
SectionZone: r,
|
|
@@ -434,8 +434,8 @@ const Bt = async ({
|
|
|
434
434
|
"policy_tab",
|
|
435
435
|
a
|
|
436
436
|
), i = Array.isArray(o) ? o : null, d = Array.isArray(l) ? l : null, g = i ? i[0].sections : null;
|
|
437
|
-
return !i || !d ? null : /* @__PURE__ */
|
|
438
|
-
/* @__PURE__ */
|
|
437
|
+
return !i || !d ? null : /* @__PURE__ */ pe(W, { children: [
|
|
438
|
+
/* @__PURE__ */ O(
|
|
439
439
|
t,
|
|
440
440
|
{
|
|
441
441
|
slug: e,
|
|
@@ -444,9 +444,9 @@ const Bt = async ({
|
|
|
444
444
|
oneTrust: n
|
|
445
445
|
}
|
|
446
446
|
),
|
|
447
|
-
g && /* @__PURE__ */
|
|
447
|
+
g && /* @__PURE__ */ O(r, { data: g })
|
|
448
448
|
] });
|
|
449
|
-
},
|
|
449
|
+
}, sr = async ({
|
|
450
450
|
children: e,
|
|
451
451
|
SectionZone: t,
|
|
452
452
|
className: r,
|
|
@@ -456,16 +456,16 @@ const Bt = async ({
|
|
|
456
456
|
"search_page",
|
|
457
457
|
n
|
|
458
458
|
);
|
|
459
|
-
return Array.isArray(a) && a.length > 0 ? /* @__PURE__ */
|
|
460
|
-
|
|
459
|
+
return Array.isArray(a) && a.length > 0 ? /* @__PURE__ */ O(
|
|
460
|
+
yt,
|
|
461
461
|
{
|
|
462
462
|
data: a,
|
|
463
463
|
SectionZone: t,
|
|
464
464
|
className: r,
|
|
465
465
|
children: e
|
|
466
466
|
}
|
|
467
|
-
) : /* @__PURE__ */
|
|
468
|
-
},
|
|
467
|
+
) : /* @__PURE__ */ O(W, { children: "children" });
|
|
468
|
+
}, lr = async ({
|
|
469
469
|
ClientTipbarContent: e,
|
|
470
470
|
...t
|
|
471
471
|
}) => {
|
|
@@ -473,71 +473,55 @@ const Bt = async ({
|
|
|
473
473
|
"tipbar",
|
|
474
474
|
t
|
|
475
475
|
);
|
|
476
|
-
return /* @__PURE__ */
|
|
477
|
-
},
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
NotFoundContent: Yt
|
|
494
|
-
}, ua = { Components: lr }, O = async (e, t = {}) => {
|
|
495
|
-
const { method: r = "GET", body: n, headers: a = {}, priority: o = "auto", cache: l = "default" } = t;
|
|
496
|
-
return fetch(e, {
|
|
497
|
-
method: r,
|
|
498
|
-
headers: {
|
|
499
|
-
...a,
|
|
500
|
-
Accept: "application/json",
|
|
501
|
-
"Content-Type": "application/json"
|
|
502
|
-
},
|
|
503
|
-
priority: o,
|
|
504
|
-
cache: l,
|
|
505
|
-
...n ? { body: JSON.stringify(n) } : {}
|
|
506
|
-
// not body in get
|
|
507
|
-
}).then((i) => i.json()).catch((i) => {
|
|
508
|
-
console.error("[ERROR FETCH VTEX]", i);
|
|
509
|
-
});
|
|
510
|
-
}, K = /* @__PURE__ */ new Map();
|
|
511
|
-
async function cr(e, t = {}) {
|
|
512
|
-
var r;
|
|
513
|
-
try {
|
|
514
|
-
const { abort: n = !1 } = t, a = new AbortController();
|
|
515
|
-
n && (K.has(e) && ((r = K.get(e)) == null || r.abort(), K.delete(e)), K.set(e, a));
|
|
516
|
-
const o = O(e, {
|
|
517
|
-
...t,
|
|
518
|
-
...n ? { signal: a.signal } : {}
|
|
519
|
-
});
|
|
520
|
-
return n && K.delete(e), o;
|
|
521
|
-
} catch (n) {
|
|
522
|
-
if (n.name === "AbortError") {
|
|
523
|
-
console.log(`[REQUEST CANCELLED]: ${e}`);
|
|
524
|
-
return;
|
|
476
|
+
return /* @__PURE__ */ O(e, { data: r });
|
|
477
|
+
}, cr = async ({
|
|
478
|
+
children: e,
|
|
479
|
+
SectionZone: t,
|
|
480
|
+
WishlistScreening: r,
|
|
481
|
+
...n
|
|
482
|
+
}) => {
|
|
483
|
+
const { data: a } = await $(
|
|
484
|
+
"wishlist_page",
|
|
485
|
+
n
|
|
486
|
+
);
|
|
487
|
+
return /* @__PURE__ */ O(
|
|
488
|
+
r,
|
|
489
|
+
{
|
|
490
|
+
data: Array.isArray(a) ? a : [],
|
|
491
|
+
SectionZone: t,
|
|
492
|
+
children: e
|
|
525
493
|
}
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
494
|
+
);
|
|
495
|
+
}, ur = {
|
|
496
|
+
CommonPageContent: Vt,
|
|
497
|
+
CartContent: zt,
|
|
498
|
+
FlagsAndTagsContent: Wt,
|
|
499
|
+
HeaderContent: Kt,
|
|
500
|
+
TipbarContent: lr,
|
|
501
|
+
FooterContent: Qt,
|
|
502
|
+
PLPContent: nr,
|
|
503
|
+
PDPContent: tr,
|
|
504
|
+
getRedirectData: ar,
|
|
505
|
+
getPLPSynteticMetaData: ir,
|
|
506
|
+
SearchPageContent: sr,
|
|
507
|
+
HelpButtonContent: Zt,
|
|
508
|
+
LPCadastroContent: Jt,
|
|
509
|
+
LPLojasContent: Yt,
|
|
510
|
+
PolicyPageContent: or,
|
|
511
|
+
NotFoundContent: er,
|
|
512
|
+
WishlistContent: cr
|
|
513
|
+
}, da = { Components: ur }, dr = c.object({
|
|
530
514
|
country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
|
|
531
515
|
postalCode: c.string().nullable()
|
|
532
516
|
});
|
|
533
|
-
async function
|
|
517
|
+
async function pr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
534
518
|
if (!t) {
|
|
535
519
|
console.error("[ERROR FETCHING] Body is required");
|
|
536
520
|
return;
|
|
537
521
|
}
|
|
538
|
-
await
|
|
522
|
+
await dr.validate(t);
|
|
539
523
|
const { country: n, postalCode: a } = t;
|
|
540
|
-
return await
|
|
524
|
+
return await T(
|
|
541
525
|
`${e}/api/checkout/pub/postal-code/${n}/${a}`,
|
|
542
526
|
{
|
|
543
527
|
method: "POST",
|
|
@@ -546,12 +530,12 @@ async function dr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
546
530
|
}
|
|
547
531
|
);
|
|
548
532
|
}
|
|
549
|
-
const
|
|
533
|
+
const mr = c.object({
|
|
550
534
|
orderFormId: c.string().nullable(),
|
|
551
535
|
sellerCode: c.string().nullable(),
|
|
552
536
|
sellerName: c.string().nullable()
|
|
553
537
|
});
|
|
554
|
-
async function
|
|
538
|
+
async function ze({
|
|
555
539
|
apiUrl: e,
|
|
556
540
|
body: t,
|
|
557
541
|
fetchOptions: r
|
|
@@ -560,9 +544,9 @@ async function Ge({
|
|
|
560
544
|
console.error("[ERROR FETCHING] Body is required");
|
|
561
545
|
return;
|
|
562
546
|
}
|
|
563
|
-
await
|
|
547
|
+
await mr.validate(t);
|
|
564
548
|
const { orderFormId: n, sellerCode: a, sellerName: o } = t, l = a ? `${a.trim()} - ${o}` : null;
|
|
565
|
-
return
|
|
549
|
+
return T(
|
|
566
550
|
`${e}/api/checkout/pub/orderForm/${n}/attachments/openTextField`,
|
|
567
551
|
{
|
|
568
552
|
method: "POST",
|
|
@@ -573,12 +557,12 @@ async function Ge({
|
|
|
573
557
|
}
|
|
574
558
|
);
|
|
575
559
|
}
|
|
576
|
-
const
|
|
560
|
+
const hr = c.object({
|
|
577
561
|
orderFormId: c.string().nullable(),
|
|
578
562
|
sellerCode: c.string().nullable(),
|
|
579
563
|
marketingData: c.object()
|
|
580
564
|
});
|
|
581
|
-
async function
|
|
565
|
+
async function Ge({
|
|
582
566
|
apiUrl: e,
|
|
583
567
|
body: t,
|
|
584
568
|
extraData: r = {},
|
|
@@ -588,12 +572,12 @@ async function Ve({
|
|
|
588
572
|
console.error("[ERROR FETCHING] Body is required");
|
|
589
573
|
return;
|
|
590
574
|
}
|
|
591
|
-
await
|
|
575
|
+
await hr.validate(t);
|
|
592
576
|
const { orderFormId: a, sellerCode: o, marketingData: l } = t, i = o ? {
|
|
593
577
|
utmCampaign: o ? o.toUpperCase() : "",
|
|
594
578
|
utmiCampaign: o ? `${r.VENDOR_CODE}` : "semcodigo"
|
|
595
579
|
} : {};
|
|
596
|
-
return
|
|
580
|
+
return T(
|
|
597
581
|
`${e}/api/checkout/pub/orderForm/${a}/attachments/marketingData`,
|
|
598
582
|
{
|
|
599
583
|
method: "POST",
|
|
@@ -605,19 +589,19 @@ async function Ve({
|
|
|
605
589
|
}
|
|
606
590
|
);
|
|
607
591
|
}
|
|
608
|
-
const
|
|
592
|
+
const fr = c.object({
|
|
609
593
|
orderFormId: c.string().nullable(),
|
|
610
594
|
sellerCode: c.string().nullable(),
|
|
611
595
|
sellerName: c.string().nullable()
|
|
612
596
|
});
|
|
613
|
-
async function
|
|
597
|
+
async function gr({ apiUrl: e, body: t, fetchOptions: r, extraData: n }) {
|
|
614
598
|
if (!t) {
|
|
615
599
|
console.error("[ERROR FETCHING] Body is required");
|
|
616
600
|
return;
|
|
617
601
|
}
|
|
618
|
-
await
|
|
619
|
-
const a = await
|
|
620
|
-
return
|
|
602
|
+
await fr.validate(t);
|
|
603
|
+
const a = await ze({ apiUrl: e, body: t, fetchOptions: r });
|
|
604
|
+
return Ge({
|
|
621
605
|
apiUrl: e,
|
|
622
606
|
body: {
|
|
623
607
|
...t,
|
|
@@ -627,11 +611,11 @@ async function fr({ apiUrl: e, body: t, fetchOptions: r, extraData: n }) {
|
|
|
627
611
|
fetchOptions: r
|
|
628
612
|
});
|
|
629
613
|
}
|
|
630
|
-
const
|
|
614
|
+
const br = c.object({
|
|
631
615
|
orderFormId: c.string().nullable(),
|
|
632
616
|
coupon: c.string().nullable()
|
|
633
617
|
});
|
|
634
|
-
async function
|
|
618
|
+
async function wr({
|
|
635
619
|
apiUrl: e,
|
|
636
620
|
body: t,
|
|
637
621
|
fetchOptions: r
|
|
@@ -640,9 +624,9 @@ async function br({
|
|
|
640
624
|
console.error("[ERROR FETCHING] Body is required");
|
|
641
625
|
return;
|
|
642
626
|
}
|
|
643
|
-
await
|
|
627
|
+
await br.validate(t);
|
|
644
628
|
const { coupon: n = "", orderFormId: a } = t;
|
|
645
|
-
return
|
|
629
|
+
return T(
|
|
646
630
|
`${e}/api/checkout/pub/orderForm/${a}/coupons`,
|
|
647
631
|
{
|
|
648
632
|
method: "POST",
|
|
@@ -651,12 +635,12 @@ async function br({
|
|
|
651
635
|
}
|
|
652
636
|
);
|
|
653
637
|
}
|
|
654
|
-
const
|
|
638
|
+
const vr = c.object({
|
|
655
639
|
appId: c.string().required("App ID is required"),
|
|
656
640
|
orderFormId: c.string().nullable(),
|
|
657
641
|
key: c.array().of(c.string())
|
|
658
642
|
});
|
|
659
|
-
async function
|
|
643
|
+
async function yr({
|
|
660
644
|
apiUrl: e,
|
|
661
645
|
body: t,
|
|
662
646
|
fetchOptions: r
|
|
@@ -665,9 +649,9 @@ async function vr({
|
|
|
665
649
|
console.error("[ERROR FETCHING] Body is required");
|
|
666
650
|
return;
|
|
667
651
|
}
|
|
668
|
-
await
|
|
652
|
+
await vr.validate(t);
|
|
669
653
|
const { appId: n = "faststore", orderFormId: a, key: o } = t;
|
|
670
|
-
return
|
|
654
|
+
return T(
|
|
671
655
|
`${e}/api/checkout/pub/orderForm/${a}/customData/${n}/${o}`,
|
|
672
656
|
{
|
|
673
657
|
method: "PUT",
|
|
@@ -675,23 +659,23 @@ async function vr({
|
|
|
675
659
|
}
|
|
676
660
|
);
|
|
677
661
|
}
|
|
678
|
-
const
|
|
662
|
+
const _r = c.object().shape({
|
|
679
663
|
name: c.string().required("Attachment name is required"),
|
|
680
664
|
content: c.object().nullable()
|
|
681
665
|
});
|
|
682
|
-
var
|
|
683
|
-
const
|
|
684
|
-
attachments: (
|
|
666
|
+
var He;
|
|
667
|
+
const Rr = c.object().shape({
|
|
668
|
+
attachments: (He = c.array().of(_r)) == null ? void 0 : He.nullable(),
|
|
685
669
|
id: c.string().required("ID of SKU is required"),
|
|
686
670
|
index: c.number().integer().nullable(),
|
|
687
671
|
quantity: c.number().integer().nullable(),
|
|
688
672
|
seller: c.string().required("Seller is required"),
|
|
689
673
|
price: c.number().integer()
|
|
690
|
-
}),
|
|
674
|
+
}), Ir = c.object({
|
|
691
675
|
orderFormId: c.string().required("OrderFormId is required"),
|
|
692
|
-
orderItems: c.array().of(
|
|
676
|
+
orderItems: c.array().of(Rr)
|
|
693
677
|
});
|
|
694
|
-
async function
|
|
678
|
+
async function Pr({
|
|
695
679
|
apiUrl: e,
|
|
696
680
|
body: t,
|
|
697
681
|
fetchOptions: r
|
|
@@ -700,9 +684,9 @@ async function Ir({
|
|
|
700
684
|
console.error("[ERROR FETCHING] Body is required");
|
|
701
685
|
return;
|
|
702
686
|
}
|
|
703
|
-
await
|
|
687
|
+
await Ir.validate(t);
|
|
704
688
|
const { orderFormId: n, orderItems: a } = t;
|
|
705
|
-
return
|
|
689
|
+
return T(
|
|
706
690
|
`${e}/api/checkout/pub/orderForm/${n}/items`,
|
|
707
691
|
{
|
|
708
692
|
method: "POST",
|
|
@@ -711,10 +695,10 @@ async function Ir({
|
|
|
711
695
|
}
|
|
712
696
|
);
|
|
713
697
|
}
|
|
714
|
-
const
|
|
698
|
+
const xr = c.object({
|
|
715
699
|
orderFormId: c.string().nullable()
|
|
716
700
|
});
|
|
717
|
-
async function
|
|
701
|
+
async function Sr({
|
|
718
702
|
apiUrl: e,
|
|
719
703
|
body: t,
|
|
720
704
|
fetchOptions: r
|
|
@@ -723,9 +707,9 @@ async function xr({
|
|
|
723
707
|
console.error("[ERROR FETCHING] Body is required");
|
|
724
708
|
return;
|
|
725
709
|
}
|
|
726
|
-
await
|
|
710
|
+
await xr.validate(t);
|
|
727
711
|
const { orderFormId: n } = t;
|
|
728
|
-
return
|
|
712
|
+
return T(
|
|
729
713
|
`${e}/api/checkout/pub/orderForm/${n}/items/removeAll`,
|
|
730
714
|
{
|
|
731
715
|
method: "POST",
|
|
@@ -733,21 +717,21 @@ async function xr({
|
|
|
733
717
|
}
|
|
734
718
|
);
|
|
735
719
|
}
|
|
736
|
-
const
|
|
720
|
+
const Cr = c.object().shape({
|
|
737
721
|
name: c.string().required("Attachment name is required"),
|
|
738
722
|
content: c.object().nullable()
|
|
739
723
|
});
|
|
740
|
-
var
|
|
741
|
-
const
|
|
742
|
-
attachments: (
|
|
724
|
+
var Me;
|
|
725
|
+
const kr = c.object().shape({
|
|
726
|
+
attachments: (Me = c.array().of(Cr)) == null ? void 0 : Me.nullable(),
|
|
743
727
|
id: c.string().required("ID of SKU is required"),
|
|
744
728
|
index: c.number().integer().nullable(),
|
|
745
729
|
quantity: c.number().integer().nullable(),
|
|
746
730
|
seller: c.string().required("Seller is required"),
|
|
747
731
|
price: c.number().integer()
|
|
748
|
-
}),
|
|
732
|
+
}), Ar = c.object({
|
|
749
733
|
orderFormId: c.string().nullable(),
|
|
750
|
-
orderItems: c.array().of(
|
|
734
|
+
orderItems: c.array().of(kr)
|
|
751
735
|
});
|
|
752
736
|
async function Er({
|
|
753
737
|
apiUrl: e,
|
|
@@ -758,9 +742,9 @@ async function Er({
|
|
|
758
742
|
console.error("[ERROR FETCHING] Body is required");
|
|
759
743
|
return;
|
|
760
744
|
}
|
|
761
|
-
await
|
|
745
|
+
await Ar.validate(t);
|
|
762
746
|
const { orderFormId: n, orderItems: a } = t;
|
|
763
|
-
return
|
|
747
|
+
return T(
|
|
764
748
|
`${e}/api/checkout/pub/orderForm/${n}/items/update`,
|
|
765
749
|
{
|
|
766
750
|
method: "POST",
|
|
@@ -769,10 +753,10 @@ async function Er({
|
|
|
769
753
|
}
|
|
770
754
|
);
|
|
771
755
|
}
|
|
772
|
-
const
|
|
756
|
+
const Or = c.object({
|
|
773
757
|
orderFormId: c.string().nullable()
|
|
774
758
|
});
|
|
775
|
-
async function
|
|
759
|
+
async function Tr({
|
|
776
760
|
apiUrl: e,
|
|
777
761
|
body: t,
|
|
778
762
|
fetchOptions: r
|
|
@@ -781,9 +765,9 @@ async function Or({
|
|
|
781
765
|
console.error("[ERROR FETCHING] Body is required");
|
|
782
766
|
return;
|
|
783
767
|
}
|
|
784
|
-
await
|
|
768
|
+
await Or.validate(t);
|
|
785
769
|
const { orderFormId: n } = t;
|
|
786
|
-
return
|
|
770
|
+
return T(
|
|
787
771
|
`${e}/api/checkout/pub/orderForm/${n}/messages/clear`,
|
|
788
772
|
{
|
|
789
773
|
method: "POST",
|
|
@@ -791,30 +775,30 @@ async function Or({
|
|
|
791
775
|
}
|
|
792
776
|
);
|
|
793
777
|
}
|
|
794
|
-
const
|
|
778
|
+
const qr = c.object({
|
|
795
779
|
id: c.string().nullable(),
|
|
796
780
|
// id offering
|
|
797
781
|
itemIndex: c.number().nullable(),
|
|
798
782
|
orderFormId: c.string().nullable(),
|
|
799
783
|
remove: c.boolean().nullable()
|
|
800
784
|
});
|
|
801
|
-
async function
|
|
785
|
+
async function Nr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
802
786
|
if (!t) {
|
|
803
787
|
console.error("[ERROR FETCHING] Body is required");
|
|
804
788
|
return;
|
|
805
789
|
}
|
|
806
|
-
await
|
|
790
|
+
await qr.validate(t);
|
|
807
791
|
const { itemIndex: n, orderFormId: a, id: o, remove: l } = t, i = l ? `/${o}/remove` : "", d = `${e}/api/checkout/pub/orderForm/${a}/items/${n}/offerings${i}`;
|
|
808
|
-
return
|
|
792
|
+
return T(d, {
|
|
809
793
|
method: "POST",
|
|
810
794
|
body: { id: o },
|
|
811
795
|
...r
|
|
812
796
|
});
|
|
813
797
|
}
|
|
814
|
-
const
|
|
798
|
+
const jr = c.object({
|
|
815
799
|
orderFormId: c.string().nullable()
|
|
816
800
|
});
|
|
817
|
-
async function
|
|
801
|
+
async function $r({
|
|
818
802
|
apiUrl: e,
|
|
819
803
|
body: t,
|
|
820
804
|
fetchOptions: r,
|
|
@@ -825,13 +809,13 @@ async function jr({
|
|
|
825
809
|
console.error("[ERROR FETCHING] Body is required");
|
|
826
810
|
return;
|
|
827
811
|
}
|
|
828
|
-
await
|
|
812
|
+
await jr.validate(t);
|
|
829
813
|
const a = new URLSearchParams({
|
|
830
814
|
refreshOutdatedData: "true"
|
|
831
815
|
}), o = t.orderFormId && ((l = n.orderFormPurchaseId) == null ? void 0 : l.value) !== t.orderFormId ? `${e}/api/checkout/pub/orderForm/${t.orderFormId}?${String(a)}` : `${e}/api/checkout/pub/orderForm`;
|
|
832
|
-
return
|
|
816
|
+
return T(o, { method: "GET", ...r });
|
|
833
817
|
}
|
|
834
|
-
const
|
|
818
|
+
const Fr = c.object({
|
|
835
819
|
orderFormId: c.string().nullable(),
|
|
836
820
|
email: c.string().email().required(),
|
|
837
821
|
firstName: c.string().required(),
|
|
@@ -840,7 +824,7 @@ const $r = c.object({
|
|
|
840
824
|
document: c.string().required(),
|
|
841
825
|
phone: c.string().matches(/^\+\d{1,3}\d{10,11}$/)
|
|
842
826
|
});
|
|
843
|
-
async function
|
|
827
|
+
async function Lr({
|
|
844
828
|
apiUrl: e,
|
|
845
829
|
body: t,
|
|
846
830
|
fetchOptions: r
|
|
@@ -849,9 +833,9 @@ async function Fr({
|
|
|
849
833
|
console.error("[ERROR FETCHING] Body is required");
|
|
850
834
|
return;
|
|
851
835
|
}
|
|
852
|
-
await
|
|
836
|
+
await Fr.validate(t);
|
|
853
837
|
const { orderFormId: n, ...a } = t;
|
|
854
|
-
return
|
|
838
|
+
return T(
|
|
855
839
|
`${e}/api/checkout/pub/orderForm/${n}/attachments/clientProfileData`,
|
|
856
840
|
{
|
|
857
841
|
method: "POST",
|
|
@@ -860,10 +844,10 @@ async function Fr({
|
|
|
860
844
|
}
|
|
861
845
|
);
|
|
862
846
|
}
|
|
863
|
-
const
|
|
847
|
+
const Dr = c.object({
|
|
864
848
|
sellerCode: c.string().nullable()
|
|
865
849
|
});
|
|
866
|
-
async function
|
|
850
|
+
async function Ur({
|
|
867
851
|
apiUrl: e,
|
|
868
852
|
body: t,
|
|
869
853
|
extraData: r,
|
|
@@ -873,9 +857,9 @@ async function Dr({
|
|
|
873
857
|
console.error("[ERROR FETCHING] Body is required");
|
|
874
858
|
return;
|
|
875
859
|
}
|
|
876
|
-
await
|
|
860
|
+
await Dr.validate(t);
|
|
877
861
|
const { sellerCode: a = "" } = t;
|
|
878
|
-
return
|
|
862
|
+
return T(
|
|
879
863
|
`${e}/api/dataentities/${r.ENTITIES}/search?_fields=${r.FIELDS}&${r.FILTER}=${a}`,
|
|
880
864
|
{
|
|
881
865
|
method: "GET",
|
|
@@ -886,12 +870,12 @@ async function Dr({
|
|
|
886
870
|
}
|
|
887
871
|
);
|
|
888
872
|
}
|
|
889
|
-
const
|
|
873
|
+
const Hr = c.object().shape({
|
|
890
874
|
country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
|
|
891
875
|
orderFormId: c.string().nullable(),
|
|
892
876
|
postalCode: c.string().nullable()
|
|
893
877
|
});
|
|
894
|
-
async function
|
|
878
|
+
async function Mr({
|
|
895
879
|
apiUrl: e,
|
|
896
880
|
body: t,
|
|
897
881
|
fetchOptions: r
|
|
@@ -900,7 +884,7 @@ async function Hr({
|
|
|
900
884
|
console.error("[ERROR FETCHING] Body is required");
|
|
901
885
|
return;
|
|
902
886
|
}
|
|
903
|
-
await
|
|
887
|
+
await Hr.validate(t);
|
|
904
888
|
const { country: n, orderFormId: a, postalCode: o } = t, l = o ? {
|
|
905
889
|
address: {
|
|
906
890
|
addressType: "residential",
|
|
@@ -911,7 +895,7 @@ async function Hr({
|
|
|
911
895
|
logisticsInfo: [],
|
|
912
896
|
clearAddressIfPostalCodeNotFound: !0
|
|
913
897
|
};
|
|
914
|
-
return
|
|
898
|
+
return T(
|
|
915
899
|
`${e}/api/checkout/pub/orderForm/${a}/attachments/shippingData`,
|
|
916
900
|
{
|
|
917
901
|
method: "POST",
|
|
@@ -920,7 +904,7 @@ async function Hr({
|
|
|
920
904
|
}
|
|
921
905
|
);
|
|
922
906
|
}
|
|
923
|
-
const
|
|
907
|
+
const Br = c.object().shape({
|
|
924
908
|
orderFormId: c.string().nullable(),
|
|
925
909
|
options: c.array().of(
|
|
926
910
|
c.object().shape({
|
|
@@ -948,14 +932,14 @@ const Mr = c.object().shape({
|
|
|
948
932
|
})
|
|
949
933
|
)
|
|
950
934
|
});
|
|
951
|
-
async function
|
|
935
|
+
async function zr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
952
936
|
if (!t) {
|
|
953
937
|
console.error("[ERROR FETCHING] Body is required");
|
|
954
938
|
return;
|
|
955
939
|
}
|
|
956
|
-
await
|
|
940
|
+
await Br.validate(t);
|
|
957
941
|
const { orderFormId: n, options: a, selectedAddresses: o } = t;
|
|
958
|
-
return
|
|
942
|
+
return T(
|
|
959
943
|
`${e}/api/checkout/pub/orderForm/${n}/attachments/shippingData`,
|
|
960
944
|
{
|
|
961
945
|
method: "POST",
|
|
@@ -968,7 +952,7 @@ async function Br({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
968
952
|
}
|
|
969
953
|
);
|
|
970
954
|
}
|
|
971
|
-
const
|
|
955
|
+
const Gr = c.object({
|
|
972
956
|
country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
|
|
973
957
|
postalCode: c.string().nullable(),
|
|
974
958
|
geoCoordinates: c.object().shape({
|
|
@@ -976,17 +960,17 @@ const zr = c.object({
|
|
|
976
960
|
latitude: c.number().required()
|
|
977
961
|
})
|
|
978
962
|
});
|
|
979
|
-
async function
|
|
963
|
+
async function Vr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
980
964
|
if (!t) {
|
|
981
965
|
console.error("[ERROR FETCHING] Body is required");
|
|
982
966
|
return;
|
|
983
967
|
}
|
|
984
|
-
await
|
|
968
|
+
await Gr.validate(t);
|
|
985
969
|
const { country: n = "", geoCoordinates: a, postalCode: o = "" } = t, l = new URLSearchParams({ country: String(n) });
|
|
986
970
|
return o ? l.append("postalCode", o) : l.append(
|
|
987
971
|
"geoCoordinates",
|
|
988
972
|
`${a == null ? void 0 : a.longitude};${a == null ? void 0 : a.latitude}`
|
|
989
|
-
), await
|
|
973
|
+
), await T(
|
|
990
974
|
`${e}/api/checkout/pub/regions/?${l.toString()}`,
|
|
991
975
|
{
|
|
992
976
|
method: "GET",
|
|
@@ -994,22 +978,22 @@ async function Gr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
994
978
|
}
|
|
995
979
|
);
|
|
996
980
|
}
|
|
997
|
-
const
|
|
981
|
+
const Wr = c.object({
|
|
998
982
|
id: c.string().required("ID of SKU is required"),
|
|
999
983
|
quantity: c.number().integer().required("Quantity of item is required"),
|
|
1000
984
|
seller: c.string()
|
|
1001
|
-
}),
|
|
1002
|
-
items: c.array().of(
|
|
985
|
+
}), Qr = c.object({
|
|
986
|
+
items: c.array().of(Wr),
|
|
1003
987
|
country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
|
|
1004
988
|
postalCode: c.string().nullable(),
|
|
1005
989
|
geoCoordinates: c.array().nullable().of(c.number()).length(2)
|
|
1006
990
|
});
|
|
1007
|
-
async function
|
|
991
|
+
async function Kr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
1008
992
|
if (!t) {
|
|
1009
993
|
console.error("[ERROR FETCHING] Body is required");
|
|
1010
994
|
return;
|
|
1011
995
|
}
|
|
1012
|
-
return await
|
|
996
|
+
return await Qr.validate(t), T(
|
|
1013
997
|
`${e}/api/checkout/pub/orderForms/simulation`,
|
|
1014
998
|
{
|
|
1015
999
|
method: "POST",
|
|
@@ -1020,25 +1004,25 @@ async function Qr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
1020
1004
|
}
|
|
1021
1005
|
const Xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1022
1006
|
__proto__: null,
|
|
1023
|
-
getMasterDataSellerCode:
|
|
1024
|
-
getOrderForm:
|
|
1025
|
-
postOrderFormAddCoupon:
|
|
1026
|
-
postOrderFormAttachClientProfileData:
|
|
1027
|
-
postOrderFormAttachOrderFormData:
|
|
1028
|
-
postOrderFormAttachShippingData:
|
|
1029
|
-
postOrderFormAttachmentsMarketingData:
|
|
1030
|
-
postOrderFormAttachmentsOpenTextField:
|
|
1031
|
-
postOrderFormClearMessages:
|
|
1032
|
-
postOrderFormFreightSimulation:
|
|
1033
|
-
postOrderFormItems:
|
|
1034
|
-
postOrderFormRegion:
|
|
1035
|
-
postOrderFormRemoveAllItems:
|
|
1007
|
+
getMasterDataSellerCode: Ur,
|
|
1008
|
+
getOrderForm: $r,
|
|
1009
|
+
postOrderFormAddCoupon: wr,
|
|
1010
|
+
postOrderFormAttachClientProfileData: Lr,
|
|
1011
|
+
postOrderFormAttachOrderFormData: gr,
|
|
1012
|
+
postOrderFormAttachShippingData: Mr,
|
|
1013
|
+
postOrderFormAttachmentsMarketingData: Ge,
|
|
1014
|
+
postOrderFormAttachmentsOpenTextField: ze,
|
|
1015
|
+
postOrderFormClearMessages: Tr,
|
|
1016
|
+
postOrderFormFreightSimulation: Kr,
|
|
1017
|
+
postOrderFormItems: Pr,
|
|
1018
|
+
postOrderFormRegion: Vr,
|
|
1019
|
+
postOrderFormRemoveAllItems: Sr,
|
|
1036
1020
|
postOrderFormUpdateItems: Er,
|
|
1037
|
-
postOrderFormUpdateShippingData:
|
|
1038
|
-
postOrderformAddress:
|
|
1039
|
-
putOrderFormCustomData:
|
|
1040
|
-
updateOrderFormOffering:
|
|
1041
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1021
|
+
postOrderFormUpdateShippingData: zr,
|
|
1022
|
+
postOrderformAddress: pr,
|
|
1023
|
+
putOrderFormCustomData: yr,
|
|
1024
|
+
updateOrderFormOffering: Nr
|
|
1025
|
+
}, Symbol.toStringTag, { value: "Module" })), Zr = c.object({
|
|
1042
1026
|
skuId: c.string()
|
|
1043
1027
|
});
|
|
1044
1028
|
async function Jr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
@@ -1046,71 +1030,71 @@ async function Jr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
1046
1030
|
console.error("[ERROR FETCHING] Body is required");
|
|
1047
1031
|
return;
|
|
1048
1032
|
}
|
|
1049
|
-
await
|
|
1033
|
+
await Zr.validate(t);
|
|
1050
1034
|
const { skuId: n } = t;
|
|
1051
|
-
return
|
|
1035
|
+
return T(
|
|
1052
1036
|
`${e}/api/catalog/pvt/stockkeepingunitkit?parentSkuId=${n}`,
|
|
1053
1037
|
{
|
|
1054
1038
|
...r
|
|
1055
1039
|
}
|
|
1056
1040
|
);
|
|
1057
1041
|
}
|
|
1058
|
-
const
|
|
1042
|
+
const Yr = c.object({
|
|
1059
1043
|
ids: c.array().of(c.string().required("ID are required")).required("IDs are required")
|
|
1060
1044
|
});
|
|
1061
|
-
async function
|
|
1045
|
+
async function en({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
1062
1046
|
if (!t) {
|
|
1063
1047
|
console.error("[ERROR FETCHING] Body is required");
|
|
1064
1048
|
return;
|
|
1065
1049
|
}
|
|
1066
|
-
await
|
|
1050
|
+
await Yr.validate(t);
|
|
1067
1051
|
const { ids: n } = t;
|
|
1068
|
-
return
|
|
1052
|
+
return T(
|
|
1069
1053
|
`${e}/api/catalog_system/pub/products/search?fq=${n.map((a) => `productId:${a}`).join("&fq=")}`,
|
|
1070
1054
|
{
|
|
1071
1055
|
...r
|
|
1072
1056
|
}
|
|
1073
1057
|
);
|
|
1074
1058
|
}
|
|
1075
|
-
const
|
|
1059
|
+
const tn = c.object({
|
|
1076
1060
|
productId: c.number().required("Product ID is required")
|
|
1077
1061
|
});
|
|
1078
|
-
async function
|
|
1062
|
+
async function rn({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
1079
1063
|
if (!t) {
|
|
1080
1064
|
console.error("[ERROR FETCHING] Body is required");
|
|
1081
1065
|
return;
|
|
1082
1066
|
}
|
|
1083
|
-
await
|
|
1067
|
+
await tn.validate(t);
|
|
1084
1068
|
const { productId: n } = t;
|
|
1085
|
-
return
|
|
1069
|
+
return T(
|
|
1086
1070
|
`${e}/api/catalog_system/pub/products/crossselling/similars/${n.toString()}`,
|
|
1087
1071
|
{
|
|
1088
1072
|
...r
|
|
1089
1073
|
}
|
|
1090
1074
|
);
|
|
1091
1075
|
}
|
|
1092
|
-
async function
|
|
1076
|
+
async function nn({
|
|
1093
1077
|
apiUrl: e,
|
|
1094
1078
|
params: t,
|
|
1095
1079
|
fetchOptions: r
|
|
1096
1080
|
}) {
|
|
1097
|
-
return t != null && t.slug ?
|
|
1081
|
+
return t != null && t.slug ? T(
|
|
1098
1082
|
`${e}/api/catalog_system/pub/portal/pagetype/${t.slug}`,
|
|
1099
1083
|
{
|
|
1100
1084
|
...r
|
|
1101
1085
|
}
|
|
1102
1086
|
) : (console.error("[ERROR FETCHING] slug is required"), null);
|
|
1103
1087
|
}
|
|
1104
|
-
const
|
|
1088
|
+
const an = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1105
1089
|
__proto__: null,
|
|
1106
1090
|
getCatalogKitProducts: Jr,
|
|
1107
|
-
getCatalogPageInfo:
|
|
1108
|
-
getCatalogProducts:
|
|
1109
|
-
getCatalogSimilars:
|
|
1110
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1091
|
+
getCatalogPageInfo: nn,
|
|
1092
|
+
getCatalogProducts: en,
|
|
1093
|
+
getCatalogSimilars: rn
|
|
1094
|
+
}, Symbol.toStringTag, { value: "Module" })), on = c.object({
|
|
1111
1095
|
query: c.string()
|
|
1112
1096
|
});
|
|
1113
|
-
async function
|
|
1097
|
+
async function sn({
|
|
1114
1098
|
apiUrl: e,
|
|
1115
1099
|
body: t,
|
|
1116
1100
|
fetchOptions: r
|
|
@@ -1119,19 +1103,19 @@ async function on({
|
|
|
1119
1103
|
console.error("[ERROR FETCHING] Body is required");
|
|
1120
1104
|
return;
|
|
1121
1105
|
}
|
|
1122
|
-
await
|
|
1106
|
+
await on.validate(t);
|
|
1123
1107
|
const { query: n = "" } = t, a = new URLSearchParams({ query: n });
|
|
1124
|
-
return
|
|
1108
|
+
return T(
|
|
1125
1109
|
`${e}/api/io/_v/api/intelligent-search/autocomplete_suggestions?${a.toString()}`,
|
|
1126
1110
|
{
|
|
1127
1111
|
...r
|
|
1128
1112
|
}
|
|
1129
1113
|
);
|
|
1130
1114
|
}
|
|
1131
|
-
const
|
|
1115
|
+
const ln = (e, t) => Mt(e, t), cn = (e) => ({
|
|
1132
1116
|
...e,
|
|
1133
|
-
description: e.description ?
|
|
1134
|
-
}),
|
|
1117
|
+
description: e.description ? ln(e.description) : e.description
|
|
1118
|
+
}), un = ({
|
|
1135
1119
|
offer: e,
|
|
1136
1120
|
seller: t,
|
|
1137
1121
|
product: r
|
|
@@ -1139,23 +1123,23 @@ const sn = (e, t) => Ht(e, t), ln = (e) => ({
|
|
|
1139
1123
|
...e,
|
|
1140
1124
|
product: r,
|
|
1141
1125
|
seller: t
|
|
1142
|
-
}),
|
|
1126
|
+
}), Ve = (e, t) => ({
|
|
1143
1127
|
...e,
|
|
1144
|
-
isVariantOf:
|
|
1145
|
-
}),
|
|
1128
|
+
isVariantOf: cn(t)
|
|
1129
|
+
}), dn = (e) => e ? "https://schema.org/InStock" : "https://schema.org/OutOfStock", ie = (e) => e.AvailableQuantity > 0, Le = (e) => e.spotPrice ?? 0, pn = (e) => e.Price ?? 0, We = (e, t) => ie(e) && !ie(t) ? -1 : !ie(e) && ie(t) ? 1 : Le(e) - Le(t), mn = (e, t) => {
|
|
1146
1130
|
let r = 0;
|
|
1147
1131
|
for (let n = 1; n < e.length; n++)
|
|
1148
1132
|
t(e[r], e[n]) > 0 && (r = n);
|
|
1149
1133
|
return e[r];
|
|
1150
|
-
},
|
|
1134
|
+
}, Qe = (e) => {
|
|
1151
1135
|
const t = e.flatMap(
|
|
1152
1136
|
(n) => n.sellers.map((a) => ({
|
|
1153
1137
|
offer: a.commertialOffer,
|
|
1154
1138
|
sku: n
|
|
1155
1139
|
}))
|
|
1156
|
-
), r =
|
|
1140
|
+
), r = mn(
|
|
1157
1141
|
t,
|
|
1158
|
-
({ offer: n }, { offer: a }) =>
|
|
1142
|
+
({ offer: n }, { offer: a }) => We(n, a)
|
|
1159
1143
|
);
|
|
1160
1144
|
return r ? r.sku : e[0];
|
|
1161
1145
|
}, Ke = (e) => e.map(
|
|
@@ -1164,49 +1148,49 @@ const sn = (e, t) => Ht(e, t), ln = (e) => ({
|
|
|
1164
1148
|
url: t.replace("vteximg.com.br", "vtexassets.com"),
|
|
1165
1149
|
keywords: n
|
|
1166
1150
|
})
|
|
1167
|
-
),
|
|
1151
|
+
), ce = {
|
|
1168
1152
|
attachment: "ATTACHMENT",
|
|
1169
1153
|
specification: "SPECIFICATION",
|
|
1170
1154
|
attribute: "ATTRIBUTE"
|
|
1171
|
-
},
|
|
1155
|
+
}, hn = (e) => ({
|
|
1172
1156
|
name: e.name,
|
|
1173
1157
|
value: e.content,
|
|
1174
|
-
valueReference:
|
|
1175
|
-
}),
|
|
1158
|
+
valueReference: ce.attachment
|
|
1159
|
+
}), fn = (e) => ({
|
|
1176
1160
|
propertyID: e.id,
|
|
1177
1161
|
name: e.name,
|
|
1178
1162
|
value: e.value,
|
|
1179
1163
|
valueReference: {
|
|
1180
|
-
valueReference:
|
|
1164
|
+
valueReference: ce.attribute,
|
|
1181
1165
|
visible: e.visible
|
|
1182
1166
|
}
|
|
1183
|
-
}),
|
|
1167
|
+
}), ue = (e, t, r) => {
|
|
1184
1168
|
const n = e.flatMap(({ name: l, values: i }) => i ? i.map((d) => ({
|
|
1185
1169
|
name: l,
|
|
1186
1170
|
value: d,
|
|
1187
|
-
valueReference:
|
|
1171
|
+
valueReference: ce.specification
|
|
1188
1172
|
})) : {
|
|
1189
1173
|
name: l,
|
|
1190
1174
|
value: "",
|
|
1191
|
-
valueReference:
|
|
1192
|
-
}), a = Array.isArray(r) ? r.map(
|
|
1175
|
+
valueReference: ce.specification
|
|
1176
|
+
}), a = Array.isArray(r) ? r.map(hn) : [], o = t ? t.map(fn) : [];
|
|
1193
1177
|
return [
|
|
1194
1178
|
...n,
|
|
1195
1179
|
...a,
|
|
1196
1180
|
...o
|
|
1197
1181
|
];
|
|
1198
|
-
},
|
|
1182
|
+
}, De = "ÁÄÂÀÃÅČÇĆĎÉĚËÈÊẼĔȆÍÌÎÏŇÑÓÖÒÔÕØŘŔŠŤÚŮÜÙÛÝŸŽáäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a", gn = "AAAAAACCCDEEEEEEEEIIIINNOOOOOORRSTUUUUUYYZaaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa", bn = (e) => {
|
|
1199
1183
|
let t = e.slice(0);
|
|
1200
|
-
for (let r = 0; r <
|
|
1184
|
+
for (let r = 0; r < De.length; r++)
|
|
1201
1185
|
t = t.replace(
|
|
1202
|
-
new RegExp(
|
|
1203
|
-
|
|
1186
|
+
new RegExp(De.charAt(r), "g"),
|
|
1187
|
+
gn.charAt(r)
|
|
1204
1188
|
);
|
|
1205
1189
|
return t;
|
|
1206
|
-
},
|
|
1190
|
+
}, wn = (e) => e.replace(/[·/_,:]/, "-"), Xe = (e) => {
|
|
1207
1191
|
const r = e.replace(/,/g, "").replace(/[*+~.()'"!:@&\[\]`/ %$#?{}|><=_^]/g, "-");
|
|
1208
|
-
return bn(
|
|
1209
|
-
}, Ze = (e) => `/${e}/p`,
|
|
1192
|
+
return wn(bn(r)).toLowerCase();
|
|
1193
|
+
}, Ze = (e) => `/${e}/p`, Je = (e) => {
|
|
1210
1194
|
const t = Math.max(
|
|
1211
1195
|
...e.map((n) => n.NumberOfInstallments)
|
|
1212
1196
|
), r = e.find(
|
|
@@ -1216,21 +1200,21 @@ const sn = (e, t) => Ht(e, t), ln = (e) => ({
|
|
|
1216
1200
|
count: (r == null ? void 0 : r.NumberOfInstallments) ?? 0,
|
|
1217
1201
|
value: (r == null ? void 0 : r.Value) ?? 0
|
|
1218
1202
|
};
|
|
1219
|
-
},
|
|
1203
|
+
}, Ye = (e, t) => {
|
|
1220
1204
|
const r = {
|
|
1221
1205
|
price: 0,
|
|
1222
1206
|
listPrice: 0,
|
|
1223
1207
|
sellerDefault: !1
|
|
1224
1208
|
}, a = e.map(
|
|
1225
|
-
(o) =>
|
|
1209
|
+
(o) => un({
|
|
1226
1210
|
offer: o.commertialOffer,
|
|
1227
1211
|
seller: o,
|
|
1228
1212
|
product: t
|
|
1229
1213
|
})
|
|
1230
|
-
).sort(
|
|
1214
|
+
).sort(We).map((o) => (o.seller.sellerId === "1" && o.AvailableQuantity > 0 && (r.price = o.Price, r.listPrice = o.ListPrice, r.sellerDefault = !0), {
|
|
1231
1215
|
availability: o.AvailableQuantity > 0,
|
|
1232
1216
|
listPrice: o.ListPrice,
|
|
1233
|
-
price:
|
|
1217
|
+
price: pn(o),
|
|
1234
1218
|
priceValidUntil: o.PriceValidUntil,
|
|
1235
1219
|
priceCurrency: "BRL",
|
|
1236
1220
|
installments: o.Installments,
|
|
@@ -1245,14 +1229,14 @@ const sn = (e, t) => Ht(e, t), ln = (e) => ({
|
|
|
1245
1229
|
highPrice: r.sellerDefault ? r.listPrice : a[0].listPrice,
|
|
1246
1230
|
offers: a
|
|
1247
1231
|
};
|
|
1248
|
-
},
|
|
1232
|
+
}, et = (e) => {
|
|
1249
1233
|
const { attributes: t, itemId: r, name: n, sellers: a, variations: o } = e;
|
|
1250
1234
|
return {
|
|
1251
|
-
additionalProperty:
|
|
1235
|
+
additionalProperty: ue(o, t, []),
|
|
1252
1236
|
name: n,
|
|
1253
1237
|
offers: {
|
|
1254
1238
|
offers: a == null ? void 0 : a.map(({ sellerId: l, commertialOffer: i }) => ({
|
|
1255
|
-
availability:
|
|
1239
|
+
availability: dn(i.AvailableQuantity > 0),
|
|
1256
1240
|
listPrice: i.ListPrice,
|
|
1257
1241
|
price: i.Price,
|
|
1258
1242
|
quantity: i.AvailableQuantity,
|
|
@@ -1264,7 +1248,7 @@ const sn = (e, t) => Ht(e, t), ln = (e) => ({
|
|
|
1264
1248
|
sku: r
|
|
1265
1249
|
// slug: getSlug('', itemId), // getSlug('', itemId) que tipo de slug é esse?
|
|
1266
1250
|
};
|
|
1267
|
-
},
|
|
1251
|
+
}, vn = (e) => {
|
|
1268
1252
|
var R;
|
|
1269
1253
|
const {
|
|
1270
1254
|
attributes: t,
|
|
@@ -1288,7 +1272,7 @@ const sn = (e, t) => Ht(e, t), ln = (e) => ({
|
|
|
1288
1272
|
properties: m,
|
|
1289
1273
|
productId: h,
|
|
1290
1274
|
productReference: f
|
|
1291
|
-
} = n,
|
|
1275
|
+
} = n, A = u.slice().reverse(), N = Ye(i, e.isVariantOf), I = Je(N.offers[0].installments);
|
|
1292
1276
|
return {
|
|
1293
1277
|
sku: o,
|
|
1294
1278
|
gtin: ((R = r == null ? void 0 : r[0]) == null ? void 0 : R.Value) ?? f ?? "",
|
|
@@ -1314,8 +1298,8 @@ const sn = (e, t) => Ht(e, t), ln = (e) => ({
|
|
|
1314
1298
|
availability: { status: N.offers[0].availability },
|
|
1315
1299
|
breadcrumbList: {
|
|
1316
1300
|
itemListElement: [
|
|
1317
|
-
...
|
|
1318
|
-
const F = C.split("/"), D = F[F.length - 2], U = F.map(
|
|
1301
|
+
...A.map((C, j) => {
|
|
1302
|
+
const F = C.split("/"), D = F[F.length - 2], U = F.map(Xe).join("/");
|
|
1319
1303
|
return {
|
|
1320
1304
|
name: D,
|
|
1321
1305
|
item: U,
|
|
@@ -1332,14 +1316,14 @@ const sn = (e, t) => Ht(e, t), ln = (e) => ({
|
|
|
1332
1316
|
},
|
|
1333
1317
|
image: Ke(a),
|
|
1334
1318
|
offers: N,
|
|
1335
|
-
additionalProperty:
|
|
1319
|
+
additionalProperty: ue(g, t, []),
|
|
1336
1320
|
isVariantOf: {
|
|
1337
1321
|
productGroupID: n.productId,
|
|
1338
|
-
hasVariant: n.items.map((C) =>
|
|
1322
|
+
hasVariant: n.items.map((C) => et(C))
|
|
1339
1323
|
},
|
|
1340
1324
|
installments: I
|
|
1341
1325
|
};
|
|
1342
|
-
},
|
|
1326
|
+
}, yn = (e) => {
|
|
1343
1327
|
var I;
|
|
1344
1328
|
const {
|
|
1345
1329
|
attributes: t,
|
|
@@ -1362,7 +1346,7 @@ const sn = (e, t) => Ht(e, t), ln = (e) => ({
|
|
|
1362
1346
|
Coleção: b,
|
|
1363
1347
|
"ID Coleção": m,
|
|
1364
1348
|
productId: h
|
|
1365
|
-
} = n, f = u.slice().reverse(),
|
|
1349
|
+
} = n, f = u.slice().reverse(), A = Ye(i, e.isVariantOf), N = Je(A.offers[0].installments);
|
|
1366
1350
|
return {
|
|
1367
1351
|
sku: o,
|
|
1368
1352
|
gtin: ((I = r[0]) == null ? void 0 : I.Value) ?? "",
|
|
@@ -1387,11 +1371,11 @@ const sn = (e, t) => Ht(e, t), ln = (e) => ({
|
|
|
1387
1371
|
highlights: []
|
|
1388
1372
|
// TODO: add highlights
|
|
1389
1373
|
},
|
|
1390
|
-
availability: { status:
|
|
1374
|
+
availability: { status: A.offers[0].availability },
|
|
1391
1375
|
breadcrumbList: {
|
|
1392
1376
|
itemListElement: [
|
|
1393
1377
|
...f.map((R, C) => {
|
|
1394
|
-
const j = R.split("/"), F = j[j.length - 2], D = j.map(
|
|
1378
|
+
const j = R.split("/"), F = j[j.length - 2], D = j.map(Xe).join("/");
|
|
1395
1379
|
return {
|
|
1396
1380
|
name: F,
|
|
1397
1381
|
item: D,
|
|
@@ -1407,8 +1391,8 @@ const sn = (e, t) => Ht(e, t), ln = (e) => ({
|
|
|
1407
1391
|
numberOfItems: u.length
|
|
1408
1392
|
},
|
|
1409
1393
|
image: Ke(a),
|
|
1410
|
-
offers:
|
|
1411
|
-
additionalProperty:
|
|
1394
|
+
offers: A,
|
|
1395
|
+
additionalProperty: ue(g, t, []),
|
|
1412
1396
|
isVariantOf: {
|
|
1413
1397
|
productGroupID: n.productId,
|
|
1414
1398
|
hasVariant: n.items.map((R) => {
|
|
@@ -1417,8 +1401,8 @@ const sn = (e, t) => Ht(e, t), ln = (e) => ({
|
|
|
1417
1401
|
values: R[F]
|
|
1418
1402
|
}));
|
|
1419
1403
|
return {
|
|
1420
|
-
...
|
|
1421
|
-
additionalProperty:
|
|
1404
|
+
...et(R),
|
|
1405
|
+
additionalProperty: ue(
|
|
1422
1406
|
j,
|
|
1423
1407
|
t,
|
|
1424
1408
|
[]
|
|
@@ -1428,30 +1412,30 @@ const sn = (e, t) => Ht(e, t), ln = (e) => ({
|
|
|
1428
1412
|
},
|
|
1429
1413
|
installments: N
|
|
1430
1414
|
};
|
|
1431
|
-
},
|
|
1415
|
+
}, _n = c.array().of(c.object({
|
|
1432
1416
|
key: c.string().required(),
|
|
1433
1417
|
value: c.string().required()
|
|
1434
1418
|
})).required("Facets are required");
|
|
1435
|
-
async function
|
|
1419
|
+
async function Rn({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
1436
1420
|
if (!t) {
|
|
1437
1421
|
console.error("[ERROR FETCHING] Body is required");
|
|
1438
1422
|
return;
|
|
1439
1423
|
}
|
|
1440
|
-
await
|
|
1424
|
+
await _n.validate(t);
|
|
1441
1425
|
const n = new URLSearchParams({}), a = t.map(({ key: l, value: i }) => `${l}/${i}`).join("/");
|
|
1442
|
-
|
|
1426
|
+
_t(t, n);
|
|
1443
1427
|
const o = `${e}/api/catalog_system/pub/products/crossselling/${a}`;
|
|
1444
|
-
return
|
|
1428
|
+
return T(o, {
|
|
1445
1429
|
cache: "no-store",
|
|
1446
1430
|
...r
|
|
1447
1431
|
}).then((l) => l.map((d) => {
|
|
1448
|
-
const g =
|
|
1449
|
-
return g &&
|
|
1432
|
+
const g = Qe(d.items);
|
|
1433
|
+
return g && Ve(g, d);
|
|
1450
1434
|
}).filter((d) => !!d).map((d) => ({
|
|
1451
|
-
node:
|
|
1435
|
+
node: yn(d)
|
|
1452
1436
|
})));
|
|
1453
1437
|
}
|
|
1454
|
-
const
|
|
1438
|
+
const tt = ({
|
|
1455
1439
|
apiUrl: e,
|
|
1456
1440
|
body: t,
|
|
1457
1441
|
fetchOptions: r,
|
|
@@ -1479,7 +1463,7 @@ const rt = ({
|
|
|
1479
1463
|
});
|
|
1480
1464
|
s !== void 0 && w.append("hideUnavailableItems", s.toString());
|
|
1481
1465
|
const v = d.map((y) => `${y.key}/${y.value}`).join("/") ?? "";
|
|
1482
|
-
return
|
|
1466
|
+
return Rt(
|
|
1483
1467
|
`${e}/api/io/_v/api/intelligent-search/${g}/${v}?${w.toString()}`,
|
|
1484
1468
|
{
|
|
1485
1469
|
headers: {
|
|
@@ -1490,7 +1474,7 @@ const rt = ({
|
|
|
1490
1474
|
}
|
|
1491
1475
|
);
|
|
1492
1476
|
};
|
|
1493
|
-
async function
|
|
1477
|
+
async function In({
|
|
1494
1478
|
body: e,
|
|
1495
1479
|
extraData: t,
|
|
1496
1480
|
...r
|
|
@@ -1499,7 +1483,7 @@ async function Rn({
|
|
|
1499
1483
|
console.error("[ERROR FETCHING] Body is required");
|
|
1500
1484
|
return;
|
|
1501
1485
|
}
|
|
1502
|
-
const n = await
|
|
1486
|
+
const n = await tt({
|
|
1503
1487
|
body: {
|
|
1504
1488
|
...e,
|
|
1505
1489
|
type: "product_search"
|
|
@@ -1507,8 +1491,8 @@ async function Rn({
|
|
|
1507
1491
|
extraData: t,
|
|
1508
1492
|
...r
|
|
1509
1493
|
}), a = (n == null ? void 0 : n.products.map((i) => {
|
|
1510
|
-
const d =
|
|
1511
|
-
return d &&
|
|
1494
|
+
const d = Qe(i.items);
|
|
1495
|
+
return d && Ve(d, i);
|
|
1512
1496
|
}).filter((i) => !!i)) ?? [], { pagination: o, recordsFiltered: l } = n;
|
|
1513
1497
|
return {
|
|
1514
1498
|
data: {
|
|
@@ -1521,18 +1505,18 @@ async function Rn({
|
|
|
1521
1505
|
total: o.count
|
|
1522
1506
|
},
|
|
1523
1507
|
products: a.map((i, d) => ({
|
|
1524
|
-
node:
|
|
1508
|
+
node: vn(i),
|
|
1525
1509
|
cursor: d.toString()
|
|
1526
1510
|
}))
|
|
1527
1511
|
}
|
|
1528
1512
|
};
|
|
1529
1513
|
}
|
|
1530
|
-
async function
|
|
1514
|
+
async function Pn({ body: e, extraData: t, ...r }) {
|
|
1531
1515
|
if (!e) {
|
|
1532
1516
|
console.error("[ERROR FETCHING] Body is required");
|
|
1533
1517
|
return;
|
|
1534
1518
|
}
|
|
1535
|
-
const n = await
|
|
1519
|
+
const n = await tt({
|
|
1536
1520
|
body: {
|
|
1537
1521
|
...e,
|
|
1538
1522
|
type: "facets"
|
|
@@ -1547,36 +1531,36 @@ async function In({ body: e, extraData: t, ...r }) {
|
|
|
1547
1531
|
}
|
|
1548
1532
|
};
|
|
1549
1533
|
}
|
|
1550
|
-
const
|
|
1534
|
+
const xn = c.object({
|
|
1551
1535
|
query: c.string().optional(),
|
|
1552
1536
|
locale: c.string().optional()
|
|
1553
1537
|
});
|
|
1554
|
-
async function
|
|
1538
|
+
async function Sn({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
1555
1539
|
if (!t) {
|
|
1556
1540
|
console.error("[ERROR FETCHING] Body is required");
|
|
1557
1541
|
return;
|
|
1558
1542
|
}
|
|
1559
|
-
await
|
|
1543
|
+
await xn.validate(t);
|
|
1560
1544
|
const { query: n = "", locale: a = "default_locale" } = t, o = new URLSearchParams({ query: n, locale: a });
|
|
1561
|
-
return
|
|
1545
|
+
return T(
|
|
1562
1546
|
`${e}/api/io/_v/api/intelligent-search/search_suggestions?${o.toString()}`,
|
|
1563
1547
|
{
|
|
1564
1548
|
...r
|
|
1565
1549
|
}
|
|
1566
1550
|
);
|
|
1567
1551
|
}
|
|
1568
|
-
async function
|
|
1569
|
-
return
|
|
1552
|
+
async function Cn({ apiUrl: e }) {
|
|
1553
|
+
return T(`${e}/api/io/_v/api/intelligent-search/top_searches`);
|
|
1570
1554
|
}
|
|
1571
|
-
const
|
|
1555
|
+
const kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1572
1556
|
__proto__: null,
|
|
1573
|
-
getSearchAutoCompleteSuggestions:
|
|
1574
|
-
getSearchCrossellingProducts:
|
|
1575
|
-
getSearchFacets:
|
|
1576
|
-
getSearchProducts:
|
|
1577
|
-
getSearchSuggestedTerms:
|
|
1578
|
-
getSearchTopSearchs:
|
|
1579
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1557
|
+
getSearchAutoCompleteSuggestions: sn,
|
|
1558
|
+
getSearchCrossellingProducts: Rn,
|
|
1559
|
+
getSearchFacets: Pn,
|
|
1560
|
+
getSearchProducts: In,
|
|
1561
|
+
getSearchSuggestedTerms: Sn,
|
|
1562
|
+
getSearchTopSearchs: Cn
|
|
1563
|
+
}, Symbol.toStringTag, { value: "Module" })), An = c.object({
|
|
1580
1564
|
masterDataEntity: c.string().nonNullable(),
|
|
1581
1565
|
payload: c.object().shape({}).nullable()
|
|
1582
1566
|
});
|
|
@@ -1589,9 +1573,9 @@ async function En({
|
|
|
1589
1573
|
console.error("[ERROR FETCHING] Body is required");
|
|
1590
1574
|
return;
|
|
1591
1575
|
}
|
|
1592
|
-
await
|
|
1576
|
+
await An.validate(t);
|
|
1593
1577
|
const { masterDataEntity: n, payload: a } = t, o = `${e}/api/dataentities/${n}/documents`;
|
|
1594
|
-
return
|
|
1578
|
+
return T(o, {
|
|
1595
1579
|
method: "POST",
|
|
1596
1580
|
body: {
|
|
1597
1581
|
payload: a
|
|
@@ -1599,21 +1583,21 @@ async function En({
|
|
|
1599
1583
|
...r
|
|
1600
1584
|
});
|
|
1601
1585
|
}
|
|
1602
|
-
const
|
|
1586
|
+
const On = c.object().shape({
|
|
1603
1587
|
_where: c.string().optional(),
|
|
1604
1588
|
_fields: c.string().optional(),
|
|
1605
1589
|
_sort: c.string().optional(),
|
|
1606
1590
|
_from: c.number().integer().min(0).optional(),
|
|
1607
1591
|
_to: c.number().integer().min(0).optional(),
|
|
1608
1592
|
_keyword: c.string().optional()
|
|
1609
|
-
}),
|
|
1593
|
+
}), Tn = c.object({
|
|
1610
1594
|
masterDataEntity: c.string().required(),
|
|
1611
|
-
searchFields:
|
|
1595
|
+
searchFields: On,
|
|
1612
1596
|
headers: c.object().shape({
|
|
1613
1597
|
"REST-Range": c.string().notRequired()
|
|
1614
1598
|
})
|
|
1615
1599
|
});
|
|
1616
|
-
async function
|
|
1600
|
+
async function qn({
|
|
1617
1601
|
apiUrl: e,
|
|
1618
1602
|
body: t,
|
|
1619
1603
|
fetchOptions: r
|
|
@@ -1623,7 +1607,7 @@ async function Tn({
|
|
|
1623
1607
|
return;
|
|
1624
1608
|
}
|
|
1625
1609
|
const n = new URLSearchParams();
|
|
1626
|
-
await
|
|
1610
|
+
await Tn.validate(t);
|
|
1627
1611
|
const { masterDataEntity: a, searchFields: o, headers: l } = t;
|
|
1628
1612
|
o && Object.entries(o).forEach(([g, s]) => {
|
|
1629
1613
|
n.append(g, String(s));
|
|
@@ -1651,12 +1635,12 @@ async function Tn({
|
|
|
1651
1635
|
} while (d);
|
|
1652
1636
|
return i;
|
|
1653
1637
|
}
|
|
1654
|
-
const
|
|
1638
|
+
const Nn = c.object({
|
|
1655
1639
|
dataEntityName: c.string().required(),
|
|
1656
1640
|
id: c.string().required(),
|
|
1657
1641
|
fieldsToBeUpdated: c.object().shape({})
|
|
1658
1642
|
});
|
|
1659
|
-
async function
|
|
1643
|
+
async function jn({
|
|
1660
1644
|
apiUrl: e,
|
|
1661
1645
|
body: t,
|
|
1662
1646
|
fetchOptions: r
|
|
@@ -1665,9 +1649,9 @@ async function Nn({
|
|
|
1665
1649
|
console.error("[ERROR FETCHING] Body is required");
|
|
1666
1650
|
return;
|
|
1667
1651
|
}
|
|
1668
|
-
await
|
|
1652
|
+
await Nn.validate(t);
|
|
1669
1653
|
const { dataEntityName: n, id: a, fieldsToBeUpdated: o } = t, l = `${e}/api/dataentities/${n}/documents/${a}`;
|
|
1670
|
-
return
|
|
1654
|
+
return T(l, {
|
|
1671
1655
|
body: {
|
|
1672
1656
|
fieldsToBeUpdated: o
|
|
1673
1657
|
},
|
|
@@ -1675,20 +1659,20 @@ async function Nn({
|
|
|
1675
1659
|
...r
|
|
1676
1660
|
});
|
|
1677
1661
|
}
|
|
1678
|
-
const
|
|
1662
|
+
const $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1679
1663
|
__proto__: null,
|
|
1680
|
-
getSearchMasterdata:
|
|
1681
|
-
patchUpdateMasterdata:
|
|
1664
|
+
getSearchMasterdata: qn,
|
|
1665
|
+
patchUpdateMasterdata: jn,
|
|
1682
1666
|
postMasterdata: En
|
|
1683
1667
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1684
|
-
async function
|
|
1668
|
+
async function Fn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
|
|
1685
1669
|
const { productIds: a } = e;
|
|
1686
1670
|
if (!a)
|
|
1687
1671
|
return console.error("[ERROR FETCHING] productIds is required"), [];
|
|
1688
1672
|
const { NAME_SPLIT_SYMBOL: o } = r;
|
|
1689
1673
|
if (!o)
|
|
1690
1674
|
return console.error("[ERROR FETCHING] NAME_SPLIT_SYMBOL is required"), [];
|
|
1691
|
-
const l = a.map((s) => typeof s == "string" || typeof s == "number" ? `productId:${s}` : "").join("&fq="), i = await
|
|
1675
|
+
const l = a.map((s) => typeof s == "string" || typeof s == "number" ? `productId:${s}` : "").join("&fq="), i = await T(
|
|
1692
1676
|
`${t}/api/catalog_system/pub/products/search?fq=${l}`,
|
|
1693
1677
|
{
|
|
1694
1678
|
...n
|
|
@@ -1727,10 +1711,10 @@ async function $n({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
|
|
|
1727
1711
|
image: s.items[0].images.map(
|
|
1728
1712
|
({
|
|
1729
1713
|
imageLabel: f,
|
|
1730
|
-
imageUrl:
|
|
1714
|
+
imageUrl: A
|
|
1731
1715
|
}) => ({
|
|
1732
1716
|
alternateName: f,
|
|
1733
|
-
url:
|
|
1717
|
+
url: A,
|
|
1734
1718
|
keywords: f
|
|
1735
1719
|
})
|
|
1736
1720
|
),
|
|
@@ -1761,7 +1745,7 @@ async function $n({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
|
|
|
1761
1745
|
isVariantOf: {
|
|
1762
1746
|
productGroupID: s.productId,
|
|
1763
1747
|
hasVariant: s.items.map((f) => {
|
|
1764
|
-
var
|
|
1748
|
+
var A;
|
|
1765
1749
|
return {
|
|
1766
1750
|
additionalProperty: f == null ? void 0 : f.variations.map(() => {
|
|
1767
1751
|
var N, I, R;
|
|
@@ -1773,7 +1757,7 @@ async function $n({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
|
|
|
1773
1757
|
}),
|
|
1774
1758
|
name: f.name,
|
|
1775
1759
|
offers: {
|
|
1776
|
-
offers: (
|
|
1760
|
+
offers: (A = f.sellers) == null ? void 0 : A.map(
|
|
1777
1761
|
({ commertialOffer: N, sellerId: I }) => ({
|
|
1778
1762
|
availability: "https://schema.org/InStock",
|
|
1779
1763
|
listPrice: N.ListPrice,
|
|
@@ -1796,11 +1780,11 @@ async function $n({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
|
|
|
1796
1780
|
};
|
|
1797
1781
|
});
|
|
1798
1782
|
}
|
|
1799
|
-
const
|
|
1783
|
+
const Ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1800
1784
|
__proto__: null,
|
|
1801
|
-
getWishlistProducts:
|
|
1785
|
+
getWishlistProducts: Fn
|
|
1802
1786
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1803
|
-
var
|
|
1787
|
+
var _e = { exports: {} }, rt = {}, Ie = {}, nt = {}, at = {};
|
|
1804
1788
|
(function(e) {
|
|
1805
1789
|
Object.defineProperty(e, "__esModule", {
|
|
1806
1790
|
value: !0
|
|
@@ -1817,7 +1801,7 @@ var Re = { exports: {} }, nt = {}, Pe = {}, at = {}, it = {};
|
|
|
1817
1801
|
const { pathname: o, query: l, hash: i } = (0, t.parsePath)(n);
|
|
1818
1802
|
return "" + o + a + l + i;
|
|
1819
1803
|
}
|
|
1820
|
-
})(
|
|
1804
|
+
})(at);
|
|
1821
1805
|
(function(e) {
|
|
1822
1806
|
Object.defineProperty(e, "__esModule", {
|
|
1823
1807
|
value: !0
|
|
@@ -1827,13 +1811,13 @@ var Re = { exports: {} }, nt = {}, Pe = {}, at = {}, it = {};
|
|
|
1827
1811
|
return o;
|
|
1828
1812
|
}
|
|
1829
1813
|
});
|
|
1830
|
-
const t = Ct, r = kt, n =
|
|
1814
|
+
const t = Ct, r = kt, n = at, a = St;
|
|
1831
1815
|
function o(l) {
|
|
1832
1816
|
let i = (0, a.addLocale)(l.pathname, l.locale, l.buildId ? void 0 : l.defaultLocale, l.ignorePrefix);
|
|
1833
1817
|
return (l.buildId || !l.trailingSlash) && (i = (0, t.removeTrailingSlash)(i)), l.buildId && (i = (0, n.addPathSuffix)((0, r.addPathPrefix)(i, "/_next/data/" + l.buildId), l.pathname === "/" ? "index.json" : ".json")), i = (0, r.addPathPrefix)(i, l.basePath), !l.buildId && l.trailingSlash ? i.endsWith("/") ? i : (0, n.addPathSuffix)(i, "/") : (0, t.removeTrailingSlash)(i);
|
|
1834
1818
|
}
|
|
1835
|
-
})(
|
|
1836
|
-
var
|
|
1819
|
+
})(nt);
|
|
1820
|
+
var it = {};
|
|
1837
1821
|
(function(e) {
|
|
1838
1822
|
Object.defineProperty(e, "__esModule", {
|
|
1839
1823
|
value: !0
|
|
@@ -1852,8 +1836,8 @@ var ot = {};
|
|
|
1852
1836
|
else return;
|
|
1853
1837
|
return a.toLowerCase();
|
|
1854
1838
|
}
|
|
1855
|
-
})(
|
|
1856
|
-
var
|
|
1839
|
+
})(it);
|
|
1840
|
+
var ot = {}, st = {};
|
|
1857
1841
|
(function(e) {
|
|
1858
1842
|
Object.defineProperty(e, "__esModule", {
|
|
1859
1843
|
value: !0
|
|
@@ -1863,14 +1847,14 @@ var st = {}, lt = {};
|
|
|
1863
1847
|
return r;
|
|
1864
1848
|
}
|
|
1865
1849
|
});
|
|
1866
|
-
const t =
|
|
1850
|
+
const t = Be;
|
|
1867
1851
|
function r(n, a) {
|
|
1868
1852
|
if (!(0, t.pathHasPrefix)(n, a))
|
|
1869
1853
|
return n;
|
|
1870
1854
|
const o = n.slice(a.length);
|
|
1871
1855
|
return o.startsWith("/") ? o : "/" + o;
|
|
1872
1856
|
}
|
|
1873
|
-
})(
|
|
1857
|
+
})(st);
|
|
1874
1858
|
(function(e) {
|
|
1875
1859
|
Object.defineProperty(e, "__esModule", {
|
|
1876
1860
|
value: !0
|
|
@@ -1880,7 +1864,7 @@ var st = {}, lt = {};
|
|
|
1880
1864
|
return a;
|
|
1881
1865
|
}
|
|
1882
1866
|
});
|
|
1883
|
-
const t =
|
|
1867
|
+
const t = At, r = st, n = Be;
|
|
1884
1868
|
function a(o, l) {
|
|
1885
1869
|
var i;
|
|
1886
1870
|
const { basePath: d, i18n: g, trailingSlash: s } = (i = l.nextConfig) != null ? i : {}, u = {
|
|
@@ -1901,7 +1885,7 @@ var st = {}, lt = {};
|
|
|
1901
1885
|
}
|
|
1902
1886
|
return u;
|
|
1903
1887
|
}
|
|
1904
|
-
})(
|
|
1888
|
+
})(ot);
|
|
1905
1889
|
(function(e) {
|
|
1906
1890
|
Object.defineProperty(e, "__esModule", {
|
|
1907
1891
|
value: !0
|
|
@@ -1911,7 +1895,7 @@ var st = {}, lt = {};
|
|
|
1911
1895
|
return d;
|
|
1912
1896
|
}
|
|
1913
1897
|
});
|
|
1914
|
-
const t =
|
|
1898
|
+
const t = Et, r = nt, n = it, a = ot, o = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
|
|
1915
1899
|
function l(g, s) {
|
|
1916
1900
|
return new URL(String(g).replace(o, "localhost"), s && String(s).replace(o, "localhost"));
|
|
1917
1901
|
}
|
|
@@ -2069,8 +2053,8 @@ var st = {}, lt = {};
|
|
|
2069
2053
|
return new d(String(this), this[i].options);
|
|
2070
2054
|
}
|
|
2071
2055
|
}
|
|
2072
|
-
})(
|
|
2073
|
-
var
|
|
2056
|
+
})(Ie);
|
|
2057
|
+
var Pe = {};
|
|
2074
2058
|
(function(e) {
|
|
2075
2059
|
Object.defineProperty(e, "__esModule", {
|
|
2076
2060
|
value: !0
|
|
@@ -2159,8 +2143,8 @@ var xe = {};
|
|
|
2159
2143
|
g(w);
|
|
2160
2144
|
}
|
|
2161
2145
|
}
|
|
2162
|
-
})(
|
|
2163
|
-
var
|
|
2146
|
+
})(Pe);
|
|
2147
|
+
var lt = {};
|
|
2164
2148
|
(function(e) {
|
|
2165
2149
|
Object.defineProperty(e, "__esModule", {
|
|
2166
2150
|
value: !0
|
|
@@ -2204,25 +2188,25 @@ var ct = {};
|
|
|
2204
2188
|
super("The request.ua has been removed in favour of `userAgent` function.\n Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent\n ");
|
|
2205
2189
|
}
|
|
2206
2190
|
}
|
|
2207
|
-
})(
|
|
2208
|
-
var
|
|
2191
|
+
})(lt);
|
|
2192
|
+
var de = {}, xe = Object.defineProperty, Dn = Object.getOwnPropertyDescriptor, Un = Object.getOwnPropertyNames, Hn = Object.prototype.hasOwnProperty, Mn = (e, t) => {
|
|
2209
2193
|
for (var r in t)
|
|
2210
|
-
|
|
2211
|
-
},
|
|
2194
|
+
xe(e, r, { get: t[r], enumerable: !0 });
|
|
2195
|
+
}, Bn = (e, t, r, n) => {
|
|
2212
2196
|
if (t && typeof t == "object" || typeof t == "function")
|
|
2213
|
-
for (let a of
|
|
2214
|
-
!
|
|
2197
|
+
for (let a of Un(t))
|
|
2198
|
+
!Hn.call(e, a) && a !== r && xe(e, a, { get: () => t[a], enumerable: !(n = Dn(t, a)) || n.enumerable });
|
|
2215
2199
|
return e;
|
|
2216
|
-
},
|
|
2217
|
-
|
|
2200
|
+
}, zn = (e) => Bn(xe({}, "__esModule", { value: !0 }), e), ct = {};
|
|
2201
|
+
Mn(ct, {
|
|
2218
2202
|
RequestCookies: () => Jn,
|
|
2219
|
-
ResponseCookies: () =>
|
|
2220
|
-
parseCookie: () =>
|
|
2221
|
-
parseSetCookie: () =>
|
|
2222
|
-
stringifyCookie: () =>
|
|
2203
|
+
ResponseCookies: () => Yn,
|
|
2204
|
+
parseCookie: () => Se,
|
|
2205
|
+
parseSetCookie: () => ut,
|
|
2206
|
+
stringifyCookie: () => X
|
|
2223
2207
|
});
|
|
2224
|
-
var
|
|
2225
|
-
function
|
|
2208
|
+
var Gn = zn(ct);
|
|
2209
|
+
function X(e) {
|
|
2226
2210
|
var t;
|
|
2227
2211
|
const r = [
|
|
2228
2212
|
"path" in e && e.path && `Path=${e.path}`,
|
|
@@ -2237,7 +2221,7 @@ function J(e) {
|
|
|
2237
2221
|
].filter(Boolean), n = `${e.name}=${encodeURIComponent((t = e.value) != null ? t : "")}`;
|
|
2238
2222
|
return r.length === 0 ? n : `${n}; ${r.join("; ")}`;
|
|
2239
2223
|
}
|
|
2240
|
-
function
|
|
2224
|
+
function Se(e) {
|
|
2241
2225
|
const t = /* @__PURE__ */ new Map();
|
|
2242
2226
|
for (const r of e.split(/; */)) {
|
|
2243
2227
|
if (!r)
|
|
@@ -2255,10 +2239,10 @@ function Ce(e) {
|
|
|
2255
2239
|
}
|
|
2256
2240
|
return t;
|
|
2257
2241
|
}
|
|
2258
|
-
function
|
|
2242
|
+
function ut(e) {
|
|
2259
2243
|
if (!e)
|
|
2260
2244
|
return;
|
|
2261
|
-
const [[t, r], ...n] =
|
|
2245
|
+
const [[t, r], ...n] = Se(e), {
|
|
2262
2246
|
domain: a,
|
|
2263
2247
|
expires: o,
|
|
2264
2248
|
httponly: l,
|
|
@@ -2278,28 +2262,28 @@ function dt(e) {
|
|
|
2278
2262
|
...l && { httpOnly: !0 },
|
|
2279
2263
|
...typeof i == "string" && { maxAge: Number(i) },
|
|
2280
2264
|
path: d,
|
|
2281
|
-
...g && { sameSite:
|
|
2265
|
+
...g && { sameSite: Qn(g) },
|
|
2282
2266
|
...s && { secure: !0 },
|
|
2283
2267
|
...w && { priority: Xn(w) },
|
|
2284
2268
|
...u && { partitioned: !0 }
|
|
2285
2269
|
};
|
|
2286
|
-
return
|
|
2270
|
+
return Vn(v);
|
|
2287
2271
|
}
|
|
2288
|
-
function
|
|
2272
|
+
function Vn(e) {
|
|
2289
2273
|
const t = {};
|
|
2290
2274
|
for (const r in e)
|
|
2291
2275
|
e[r] && (t[r] = e[r]);
|
|
2292
2276
|
return t;
|
|
2293
2277
|
}
|
|
2294
|
-
var
|
|
2295
|
-
function
|
|
2296
|
-
return e = e.toLowerCase(),
|
|
2278
|
+
var Wn = ["strict", "lax", "none"];
|
|
2279
|
+
function Qn(e) {
|
|
2280
|
+
return e = e.toLowerCase(), Wn.includes(e) ? e : void 0;
|
|
2297
2281
|
}
|
|
2298
|
-
var
|
|
2282
|
+
var Kn = ["low", "medium", "high"];
|
|
2299
2283
|
function Xn(e) {
|
|
2300
|
-
return e = e.toLowerCase(),
|
|
2284
|
+
return e = e.toLowerCase(), Kn.includes(e) ? e : void 0;
|
|
2301
2285
|
}
|
|
2302
|
-
function
|
|
2286
|
+
function Zn(e) {
|
|
2303
2287
|
if (!e)
|
|
2304
2288
|
return [];
|
|
2305
2289
|
var t = [], r = 0, n, a, o, l, i;
|
|
@@ -2328,7 +2312,7 @@ var Jn = class {
|
|
|
2328
2312
|
this._parsed = /* @__PURE__ */ new Map(), this._headers = e;
|
|
2329
2313
|
const t = e.get("cookie");
|
|
2330
2314
|
if (t) {
|
|
2331
|
-
const r =
|
|
2315
|
+
const r = Se(t);
|
|
2332
2316
|
for (const [n, a] of r)
|
|
2333
2317
|
this._parsed.set(n, { name: n, value: a });
|
|
2334
2318
|
}
|
|
@@ -2361,7 +2345,7 @@ var Jn = class {
|
|
|
2361
2345
|
const [t, r] = e.length === 1 ? [e[0].name, e[0].value] : e, n = this._parsed;
|
|
2362
2346
|
return n.set(t, { name: t, value: r }), this._headers.set(
|
|
2363
2347
|
"cookie",
|
|
2364
|
-
Array.from(n).map(([a, o]) =>
|
|
2348
|
+
Array.from(n).map(([a, o]) => X(o)).join("; ")
|
|
2365
2349
|
), this;
|
|
2366
2350
|
}
|
|
2367
2351
|
/**
|
|
@@ -2371,7 +2355,7 @@ var Jn = class {
|
|
|
2371
2355
|
const t = this._parsed, r = Array.isArray(e) ? e.map((n) => t.delete(n)) : t.delete(e);
|
|
2372
2356
|
return this._headers.set(
|
|
2373
2357
|
"cookie",
|
|
2374
|
-
Array.from(t).map(([n, a]) =>
|
|
2358
|
+
Array.from(t).map(([n, a]) => X(a)).join("; ")
|
|
2375
2359
|
), r;
|
|
2376
2360
|
}
|
|
2377
2361
|
/**
|
|
@@ -2389,14 +2373,14 @@ var Jn = class {
|
|
|
2389
2373
|
toString() {
|
|
2390
2374
|
return [...this._parsed.values()].map((e) => `${e.name}=${encodeURIComponent(e.value)}`).join("; ");
|
|
2391
2375
|
}
|
|
2392
|
-
},
|
|
2376
|
+
}, Yn = class {
|
|
2393
2377
|
constructor(e) {
|
|
2394
2378
|
this._parsed = /* @__PURE__ */ new Map();
|
|
2395
2379
|
var t, r, n;
|
|
2396
2380
|
this._headers = e;
|
|
2397
|
-
const a = (n = (r = (t = e.getSetCookie) == null ? void 0 : t.call(e)) != null ? r : e.get("set-cookie")) != null ? n : [], o = Array.isArray(a) ? a :
|
|
2381
|
+
const a = (n = (r = (t = e.getSetCookie) == null ? void 0 : t.call(e)) != null ? r : e.get("set-cookie")) != null ? n : [], o = Array.isArray(a) ? a : Zn(a);
|
|
2398
2382
|
for (const l of o) {
|
|
2399
|
-
const i =
|
|
2383
|
+
const i = ut(l);
|
|
2400
2384
|
i && this._parsed.set(i.name, i);
|
|
2401
2385
|
}
|
|
2402
2386
|
}
|
|
@@ -2426,7 +2410,7 @@ var Jn = class {
|
|
|
2426
2410
|
*/
|
|
2427
2411
|
set(...e) {
|
|
2428
2412
|
const [t, r, n] = e.length === 1 ? [e[0].name, e[0].value, e[0]] : e, a = this._parsed;
|
|
2429
|
-
return a.set(t,
|
|
2413
|
+
return a.set(t, ta({ name: t, value: r, ...n })), ea(a, this._headers), this;
|
|
2430
2414
|
}
|
|
2431
2415
|
/**
|
|
2432
2416
|
* {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
|
|
@@ -2439,17 +2423,17 @@ var Jn = class {
|
|
|
2439
2423
|
return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
2440
2424
|
}
|
|
2441
2425
|
toString() {
|
|
2442
|
-
return [...this._parsed.values()].map(
|
|
2426
|
+
return [...this._parsed.values()].map(X).join("; ");
|
|
2443
2427
|
}
|
|
2444
2428
|
};
|
|
2445
|
-
function
|
|
2429
|
+
function ea(e, t) {
|
|
2446
2430
|
t.delete("set-cookie");
|
|
2447
2431
|
for (const [, r] of e) {
|
|
2448
|
-
const n =
|
|
2432
|
+
const n = X(r);
|
|
2449
2433
|
t.append("set-cookie", n);
|
|
2450
2434
|
}
|
|
2451
2435
|
}
|
|
2452
|
-
function
|
|
2436
|
+
function ta(e = { name: "", value: "" }) {
|
|
2453
2437
|
return typeof e.expires == "number" && (e.expires = new Date(e.expires)), e.maxAge && (e.expires = new Date(Date.now() + e.maxAge * 1e3)), (e.path === null || e.path === void 0) && (e.path = "/"), e;
|
|
2454
2438
|
}
|
|
2455
2439
|
(function(e) {
|
|
@@ -2473,8 +2457,8 @@ function ea(e = { name: "", value: "" }) {
|
|
|
2473
2457
|
return r.stringifyCookie;
|
|
2474
2458
|
}
|
|
2475
2459
|
});
|
|
2476
|
-
const r =
|
|
2477
|
-
})(
|
|
2460
|
+
const r = Gn;
|
|
2461
|
+
})(de);
|
|
2478
2462
|
(function(e) {
|
|
2479
2463
|
Object.defineProperty(e, "__esModule", {
|
|
2480
2464
|
value: !0
|
|
@@ -2493,7 +2477,7 @@ function ea(e = { name: "", value: "" }) {
|
|
|
2493
2477
|
return i;
|
|
2494
2478
|
}
|
|
2495
2479
|
});
|
|
2496
|
-
const r =
|
|
2480
|
+
const r = Ie, n = Pe, a = lt, o = de, l = Symbol("internal request");
|
|
2497
2481
|
class i extends Request {
|
|
2498
2482
|
constructor(g, s = {}) {
|
|
2499
2483
|
const u = typeof g != "string" && "url" in g ? g.url : String(g);
|
|
@@ -2565,8 +2549,8 @@ function ea(e = { name: "", value: "" }) {
|
|
|
2565
2549
|
return this[l].url;
|
|
2566
2550
|
}
|
|
2567
2551
|
}
|
|
2568
|
-
})(
|
|
2569
|
-
var
|
|
2552
|
+
})(rt);
|
|
2553
|
+
var dt = {}, pt = {};
|
|
2570
2554
|
(function(e) {
|
|
2571
2555
|
Object.defineProperty(e, "__esModule", {
|
|
2572
2556
|
value: !0
|
|
@@ -2591,7 +2575,7 @@ var pt = {}, mt = {};
|
|
|
2591
2575
|
return Reflect.deleteProperty(n, a);
|
|
2592
2576
|
}
|
|
2593
2577
|
}
|
|
2594
|
-
})(
|
|
2578
|
+
})(pt);
|
|
2595
2579
|
(function(e) {
|
|
2596
2580
|
Object.defineProperty(e, "__esModule", {
|
|
2597
2581
|
value: !0
|
|
@@ -2601,7 +2585,7 @@ var pt = {}, mt = {};
|
|
|
2601
2585
|
return g;
|
|
2602
2586
|
}
|
|
2603
2587
|
});
|
|
2604
|
-
const t =
|
|
2588
|
+
const t = de, r = Ie, n = Pe, a = pt, o = de, l = Symbol("internal response"), i = /* @__PURE__ */ new Set([
|
|
2605
2589
|
301,
|
|
2606
2590
|
302,
|
|
2607
2591
|
303,
|
|
@@ -2628,8 +2612,8 @@ var pt = {}, mt = {};
|
|
|
2628
2612
|
case "delete":
|
|
2629
2613
|
case "set":
|
|
2630
2614
|
return (...h) => {
|
|
2631
|
-
const f = Reflect.apply(p[b], p, h),
|
|
2632
|
-
return f instanceof o.ResponseCookies && v.set("x-middleware-set-cookie", f.getAll().map((N) => (0, t.stringifyCookie)(N)).join(",")), d(w,
|
|
2615
|
+
const f = Reflect.apply(p[b], p, h), A = new Headers(v);
|
|
2616
|
+
return f instanceof o.ResponseCookies && v.set("x-middleware-set-cookie", f.getAll().map((N) => (0, t.stringifyCookie)(N)).join(",")), d(w, A), f;
|
|
2633
2617
|
};
|
|
2634
2618
|
default:
|
|
2635
2619
|
return a.ReflectAdapter.get(p, b, m);
|
|
@@ -2692,8 +2676,8 @@ var pt = {}, mt = {};
|
|
|
2692
2676
|
});
|
|
2693
2677
|
}
|
|
2694
2678
|
}
|
|
2695
|
-
})(
|
|
2696
|
-
var
|
|
2679
|
+
})(dt);
|
|
2680
|
+
var mt = {};
|
|
2697
2681
|
(function(e) {
|
|
2698
2682
|
Object.defineProperty(e, "__esModule", {
|
|
2699
2683
|
value: !0
|
|
@@ -2706,85 +2690,85 @@ var ht = {};
|
|
|
2706
2690
|
function t() {
|
|
2707
2691
|
throw new Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead');
|
|
2708
2692
|
}
|
|
2709
|
-
})(
|
|
2710
|
-
var
|
|
2693
|
+
})(mt);
|
|
2694
|
+
var Re = {}, ht = { exports: {} };
|
|
2711
2695
|
(() => {
|
|
2712
2696
|
var e = { 226: function(a, o) {
|
|
2713
2697
|
(function(l, i) {
|
|
2714
|
-
var d = "1.0.35", g = "", s = "?", u = "function", w = "undefined", v = "object", y = "string", _ = "major", p = "model", b = "name", m = "type", h = "vendor", f = "version",
|
|
2698
|
+
var d = "1.0.35", g = "", s = "?", u = "function", w = "undefined", v = "object", y = "string", _ = "major", p = "model", b = "name", m = "type", h = "vendor", f = "version", A = "architecture", N = "console", I = "mobile", R = "tablet", C = "smarttv", j = "wearable", F = "embedded", D = 350, U = "Amazon", B = "Apple", Z = "ASUS", Ce = "BlackBerry", G = "Browser", J = "Chrome", gt = "Edge", Y = "Firefox", ee = "Google", ke = "Huawei", me = "LG", he = "Microsoft", Ae = "Motorola", te = "Opera", fe = "Samsung", Ee = "Sharp", re = "Sony", ge = "Xiaomi", be = "Zebra", Oe = "Facebook", Te = "Chromium OS", qe = "Mac OS", bt = function(S, E) {
|
|
2715
2699
|
var x = {};
|
|
2716
2700
|
for (var q in S)
|
|
2717
|
-
|
|
2701
|
+
E[q] && E[q].length % 2 === 0 ? x[q] = E[q].concat(S[q]) : x[q] = S[q];
|
|
2718
2702
|
return x;
|
|
2719
|
-
},
|
|
2720
|
-
for (var
|
|
2721
|
-
|
|
2722
|
-
return
|
|
2723
|
-
},
|
|
2724
|
-
return typeof S === y ? Q(
|
|
2703
|
+
}, ne = function(S) {
|
|
2704
|
+
for (var E = {}, x = 0; x < S.length; x++)
|
|
2705
|
+
E[S[x].toUpperCase()] = S[x];
|
|
2706
|
+
return E;
|
|
2707
|
+
}, Ne = function(S, E) {
|
|
2708
|
+
return typeof S === y ? Q(E).indexOf(Q(S)) !== -1 : !1;
|
|
2725
2709
|
}, Q = function(S) {
|
|
2726
2710
|
return S.toLowerCase();
|
|
2727
|
-
},
|
|
2711
|
+
}, wt = function(S) {
|
|
2728
2712
|
return typeof S === y ? S.replace(/[^\d\.]/g, g).split(".")[0] : i;
|
|
2729
|
-
},
|
|
2713
|
+
}, we = function(S, E) {
|
|
2730
2714
|
if (typeof S === y)
|
|
2731
|
-
return S = S.replace(/^\s\s*/, g), typeof
|
|
2732
|
-
},
|
|
2733
|
-
for (var x = 0, q, z, H, k, P, M; x <
|
|
2734
|
-
var
|
|
2735
|
-
for (q = z = 0; q <
|
|
2736
|
-
if (P =
|
|
2737
|
-
for (H = 0; H <
|
|
2738
|
-
M = P[++z], k =
|
|
2715
|
+
return S = S.replace(/^\s\s*/, g), typeof E === w ? S : S.substring(0, D);
|
|
2716
|
+
}, K = function(S, E) {
|
|
2717
|
+
for (var x = 0, q, z, H, k, P, M; x < E.length && !P; ) {
|
|
2718
|
+
var ye = E[x], Fe = E[x + 1];
|
|
2719
|
+
for (q = z = 0; q < ye.length && !P && ye[q]; )
|
|
2720
|
+
if (P = ye[q++].exec(S), P)
|
|
2721
|
+
for (H = 0; H < Fe.length; H++)
|
|
2722
|
+
M = P[++z], k = Fe[H], typeof k === v && k.length > 0 ? k.length === 2 ? typeof k[1] == u ? this[k[0]] = k[1].call(this, M) : this[k[0]] = k[1] : k.length === 3 ? typeof k[1] === u && !(k[1].exec && k[1].test) ? this[k[0]] = M ? k[1].call(this, M, k[2]) : i : this[k[0]] = M ? M.replace(k[1], k[2]) : i : k.length === 4 && (this[k[0]] = M ? k[3].call(this, M.replace(k[1], k[2])) : i) : this[k] = M || i;
|
|
2739
2723
|
x += 2;
|
|
2740
2724
|
}
|
|
2741
|
-
},
|
|
2742
|
-
for (var x in
|
|
2743
|
-
if (typeof
|
|
2744
|
-
for (var q = 0; q <
|
|
2745
|
-
if (
|
|
2725
|
+
}, ve = function(S, E) {
|
|
2726
|
+
for (var x in E)
|
|
2727
|
+
if (typeof E[x] === v && E[x].length > 0) {
|
|
2728
|
+
for (var q = 0; q < E[x].length; q++)
|
|
2729
|
+
if (Ne(E[x][q], S))
|
|
2746
2730
|
return x === s ? i : x;
|
|
2747
|
-
} else if (
|
|
2731
|
+
} else if (Ne(E[x], S))
|
|
2748
2732
|
return x === s ? i : x;
|
|
2749
2733
|
return S;
|
|
2750
|
-
}, yt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, $e = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Fe = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [f, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [f, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, f], [/opios[\/ ]+([\w\.]+)/i], [f, [b, re + " Mini"]], [/\bopr\/([\w\.]+)/i], [f, [b, re]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [b, f], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [f, [b, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [f, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [f, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [f, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [f, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [f, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + G], f], [/\bfocus\/([\w\.]+)/i], [f, [b, ee + " Focus"]], [/\bopt\/([\w\.]+)/i], [f, [b, re + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [f, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [f, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [f, [b, re + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [f, [b, "MIUI " + G]], [/fxios\/([-\w\.]+)/i], [f, [b, ee]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + G]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + G], f], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], f], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, f], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, Te], f], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, f], [/\bgsa\/([\w\.]+) .*safari\//i], [f, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [f, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [f, [b, Y + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, Y + " WebView"], f], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [f, [b, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, f], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [f, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [f, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [f, ye, yt]], [/(webkit|khtml)\/([\w\.]+)/i], [b, f], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], f], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [f, [b, ee + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [b, f], [/(cobalt)\/([\w\.]+)/i], [b, [f, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[E, "amd64"]], [/(ia32(?=;))/i], [[E, Q]], [/((?:i[346]|x)86)[;\)]/i], [[E, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[E, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[E, "armhf"]], [/windows (ce|mobile); ppc;/i], [[E, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[E, /ower/, g, Q]], [/(sun4\w)[;\)]/i], [[E, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[E, Q]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [p, [h, ge], [m, R]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [p, [h, ge], [m, I]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [p, [h, B], [m, I]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [p, [h, B], [m, R]], [/(macintosh);/i], [p, [h, B]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [p, [h, Oe], [m, I]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [p, [h, Ee], [m, R]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [p, [h, Ee], [m, I]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[p, /_/g, " "], [h, be], [m, I]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[p, /_/g, " "], [h, be], [m, R]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [p, [h, "OPPO"], [m, I]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [p, [h, "Vivo"], [m, I]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [p, [h, "Realme"], [m, I]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [p, [h, Ae], [m, I]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [p, [h, Ae], [m, R]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [p, [h, he], [m, R]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [p, [h, he], [m, I]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [p, [h, "Lenovo"], [m, R]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[p, /_/g, " "], [h, "Nokia"], [m, I]], [/(pixel c)\b/i], [p, [h, te], [m, R]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [p, [h, te], [m, I]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [p, [h, ne], [m, I]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[p, "Xperia Tablet"], [h, ne], [m, R]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [p, [h, "OnePlus"], [m, I]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [p, [h, U], [m, R]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[p, /(.+)/g, "Fire Phone $1"], [h, U], [m, I]], [/(playbook);[-\w\),; ]+(rim)/i], [p, h, [m, R]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [p, [h, ke], [m, I]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [p, [h, Z], [m, R]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [p, [h, Z], [m, I]], [/(nexus 9)/i], [p, [h, "HTC"], [m, R]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [h, [p, /_/g, " "], [m, I]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [p, [h, "Acer"], [m, R]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [p, [h, "Meizu"], [m, I]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [h, p, [m, I]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [h, p, [m, R]], [/(surface duo)/i], [p, [h, fe], [m, R]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [p, [h, "Fairphone"], [m, I]], [/(u304aa)/i], [p, [h, "AT&T"], [m, I]], [/\bsie-(\w*)/i], [p, [h, "Siemens"], [m, I]], [/\b(rct\w+) b/i], [p, [h, "RCA"], [m, R]], [/\b(venue[\d ]{2,7}) b/i], [p, [h, "Dell"], [m, R]], [/\b(q(?:mv|ta)\w+) b/i], [p, [h, "Verizon"], [m, R]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [p, [h, "Barnes & Noble"], [m, R]], [/\b(tm\d{3}\w+) b/i], [p, [h, "NuVision"], [m, R]], [/\b(k88) b/i], [p, [h, "ZTE"], [m, R]], [/\b(nx\d{3}j) b/i], [p, [h, "ZTE"], [m, I]], [/\b(gen\d{3}) b.+49h/i], [p, [h, "Swiss"], [m, I]], [/\b(zur\d{3}) b/i], [p, [h, "Swiss"], [m, R]], [/\b((zeki)?tb.*\b) b/i], [p, [h, "Zeki"], [m, R]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[h, "Dragon Touch"], p, [m, R]], [/\b(ns-?\w{0,9}) b/i], [p, [h, "Insignia"], [m, R]], [/\b((nxa|next)-?\w{0,9}) b/i], [p, [h, "NextBook"], [m, R]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[h, "Voice"], p, [m, I]], [/\b(lvtel\-)?(v1[12]) b/i], [[h, "LvTel"], p, [m, I]], [/\b(ph-1) /i], [p, [h, "Essential"], [m, I]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [p, [h, "Envizen"], [m, R]], [/\b(trio[-\w\. ]+) b/i], [p, [h, "MachSpeed"], [m, R]], [/\btu_(1491) b/i], [p, [h, "Rotor"], [m, R]], [/(shield[\w ]+) b/i], [p, [h, "Nvidia"], [m, R]], [/(sprint) (\w+)/i], [h, p, [m, I]], [/(kin\.[onetw]{3})/i], [[p, /\./g, " "], [h, fe], [m, I]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [p, [h, we], [m, R]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [p, [h, we], [m, I]], [/smart-tv.+(samsung)/i], [h, [m, C]], [/hbbtv.+maple;(\d+)/i], [[p, /^/, "SmartTV"], [h, ge], [m, C]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[h, he], [m, C]], [/(apple) ?tv/i], [h, [p, B + " TV"], [m, C]], [/crkey/i], [[p, Y + "cast"], [h, te], [m, C]], [/droid.+aft(\w)( bui|\))/i], [p, [h, U], [m, C]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [p, [h, Oe], [m, C]], [/(bravia[\w ]+)( bui|\))/i], [p, [h, ne], [m, C]], [/(mitv-\w{5}) bui/i], [p, [h, be], [m, C]], [/Hbbtv.*(technisat) (.*);/i], [h, p, [m, C]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[h, ve], [p, ve], [m, C]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[m, C]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [h, p, [m, N]], [/droid.+; (shield) bui/i], [p, [h, "Nvidia"], [m, N]], [/(playstation [345portablevi]+)/i], [p, [h, ne], [m, N]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [p, [h, fe], [m, N]], [/((pebble))app/i], [h, p, [m, j]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [p, [h, B], [m, j]], [/droid.+; (glass) \d/i], [p, [h, te], [m, j]], [/droid.+; (wt63?0{2,3})\)/i], [p, [h, we], [m, j]], [/(quest( 2| pro)?)/i], [p, [h, Te], [m, j]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [h, [m, F]], [/(aeobc)\b/i], [p, [h, U], [m, F]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [p, [m, I]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [p, [m, R]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[m, R]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[m, I]], [/(android[-\w\. ]{0,9});.+buil/i], [p, [h, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [f, [b, bt + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [f, [b, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [b, f], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [f, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, f], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [f, ye, $e]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [f, ye, $e]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[f, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, Ne], [f, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [f, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, f], [/\(bb(10);/i], [f, [b, ke]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [f, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [f, [b, ee + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [f, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [f, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [f, [b, Y + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, qe], f], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [b, f], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], f], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, f]] }, L = function(S, A) {
|
|
2751
|
-
if (typeof S === v && (
|
|
2752
|
-
return new L(S,
|
|
2753
|
-
var x = typeof l !== w && l.navigator ? l.navigator : i, q = S || (x && x.userAgent ? x.userAgent : g), z = x && x.userAgentData ? x.userAgentData : i, H =
|
|
2734
|
+
}, vt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, je = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, $e = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [f, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [f, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, f], [/opios[\/ ]+([\w\.]+)/i], [f, [b, te + " Mini"]], [/\bopr\/([\w\.]+)/i], [f, [b, te]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [b, f], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [f, [b, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [f, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [f, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [f, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [f, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [f, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + G], f], [/\bfocus\/([\w\.]+)/i], [f, [b, Y + " Focus"]], [/\bopt\/([\w\.]+)/i], [f, [b, te + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [f, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [f, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [f, [b, te + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [f, [b, "MIUI " + G]], [/fxios\/([-\w\.]+)/i], [f, [b, Y]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + G]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + G], f], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], f], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, f], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, Oe], f], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, f], [/\bgsa\/([\w\.]+) .*safari\//i], [f, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [f, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [f, [b, J + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, J + " WebView"], f], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [f, [b, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, f], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [f, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [f, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [f, ve, vt]], [/(webkit|khtml)\/([\w\.]+)/i], [b, f], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], f], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [f, [b, Y + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [b, f], [/(cobalt)\/([\w\.]+)/i], [b, [f, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[A, "amd64"]], [/(ia32(?=;))/i], [[A, Q]], [/((?:i[346]|x)86)[;\)]/i], [[A, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[A, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[A, "armhf"]], [/windows (ce|mobile); ppc;/i], [[A, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[A, /ower/, g, Q]], [/(sun4\w)[;\)]/i], [[A, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[A, Q]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [p, [h, fe], [m, R]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [p, [h, fe], [m, I]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [p, [h, B], [m, I]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [p, [h, B], [m, R]], [/(macintosh);/i], [p, [h, B]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [p, [h, Ee], [m, I]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [p, [h, ke], [m, R]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [p, [h, ke], [m, I]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[p, /_/g, " "], [h, ge], [m, I]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[p, /_/g, " "], [h, ge], [m, R]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [p, [h, "OPPO"], [m, I]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [p, [h, "Vivo"], [m, I]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [p, [h, "Realme"], [m, I]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [p, [h, Ae], [m, I]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [p, [h, Ae], [m, R]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [p, [h, me], [m, R]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [p, [h, me], [m, I]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [p, [h, "Lenovo"], [m, R]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[p, /_/g, " "], [h, "Nokia"], [m, I]], [/(pixel c)\b/i], [p, [h, ee], [m, R]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [p, [h, ee], [m, I]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [p, [h, re], [m, I]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[p, "Xperia Tablet"], [h, re], [m, R]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [p, [h, "OnePlus"], [m, I]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [p, [h, U], [m, R]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[p, /(.+)/g, "Fire Phone $1"], [h, U], [m, I]], [/(playbook);[-\w\),; ]+(rim)/i], [p, h, [m, R]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [p, [h, Ce], [m, I]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [p, [h, Z], [m, R]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [p, [h, Z], [m, I]], [/(nexus 9)/i], [p, [h, "HTC"], [m, R]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [h, [p, /_/g, " "], [m, I]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [p, [h, "Acer"], [m, R]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [p, [h, "Meizu"], [m, I]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [h, p, [m, I]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [h, p, [m, R]], [/(surface duo)/i], [p, [h, he], [m, R]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [p, [h, "Fairphone"], [m, I]], [/(u304aa)/i], [p, [h, "AT&T"], [m, I]], [/\bsie-(\w*)/i], [p, [h, "Siemens"], [m, I]], [/\b(rct\w+) b/i], [p, [h, "RCA"], [m, R]], [/\b(venue[\d ]{2,7}) b/i], [p, [h, "Dell"], [m, R]], [/\b(q(?:mv|ta)\w+) b/i], [p, [h, "Verizon"], [m, R]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [p, [h, "Barnes & Noble"], [m, R]], [/\b(tm\d{3}\w+) b/i], [p, [h, "NuVision"], [m, R]], [/\b(k88) b/i], [p, [h, "ZTE"], [m, R]], [/\b(nx\d{3}j) b/i], [p, [h, "ZTE"], [m, I]], [/\b(gen\d{3}) b.+49h/i], [p, [h, "Swiss"], [m, I]], [/\b(zur\d{3}) b/i], [p, [h, "Swiss"], [m, R]], [/\b((zeki)?tb.*\b) b/i], [p, [h, "Zeki"], [m, R]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[h, "Dragon Touch"], p, [m, R]], [/\b(ns-?\w{0,9}) b/i], [p, [h, "Insignia"], [m, R]], [/\b((nxa|next)-?\w{0,9}) b/i], [p, [h, "NextBook"], [m, R]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[h, "Voice"], p, [m, I]], [/\b(lvtel\-)?(v1[12]) b/i], [[h, "LvTel"], p, [m, I]], [/\b(ph-1) /i], [p, [h, "Essential"], [m, I]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [p, [h, "Envizen"], [m, R]], [/\b(trio[-\w\. ]+) b/i], [p, [h, "MachSpeed"], [m, R]], [/\btu_(1491) b/i], [p, [h, "Rotor"], [m, R]], [/(shield[\w ]+) b/i], [p, [h, "Nvidia"], [m, R]], [/(sprint) (\w+)/i], [h, p, [m, I]], [/(kin\.[onetw]{3})/i], [[p, /\./g, " "], [h, he], [m, I]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [p, [h, be], [m, R]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [p, [h, be], [m, I]], [/smart-tv.+(samsung)/i], [h, [m, C]], [/hbbtv.+maple;(\d+)/i], [[p, /^/, "SmartTV"], [h, fe], [m, C]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[h, me], [m, C]], [/(apple) ?tv/i], [h, [p, B + " TV"], [m, C]], [/crkey/i], [[p, J + "cast"], [h, ee], [m, C]], [/droid.+aft(\w)( bui|\))/i], [p, [h, U], [m, C]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [p, [h, Ee], [m, C]], [/(bravia[\w ]+)( bui|\))/i], [p, [h, re], [m, C]], [/(mitv-\w{5}) bui/i], [p, [h, ge], [m, C]], [/Hbbtv.*(technisat) (.*);/i], [h, p, [m, C]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[h, we], [p, we], [m, C]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[m, C]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [h, p, [m, N]], [/droid.+; (shield) bui/i], [p, [h, "Nvidia"], [m, N]], [/(playstation [345portablevi]+)/i], [p, [h, re], [m, N]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [p, [h, he], [m, N]], [/((pebble))app/i], [h, p, [m, j]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [p, [h, B], [m, j]], [/droid.+; (glass) \d/i], [p, [h, ee], [m, j]], [/droid.+; (wt63?0{2,3})\)/i], [p, [h, be], [m, j]], [/(quest( 2| pro)?)/i], [p, [h, Oe], [m, j]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [h, [m, F]], [/(aeobc)\b/i], [p, [h, U], [m, F]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [p, [m, I]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [p, [m, R]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[m, R]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[m, I]], [/(android[-\w\. ]{0,9});.+buil/i], [p, [h, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [f, [b, gt + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [f, [b, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [b, f], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [f, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, f], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [f, ve, je]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [f, ve, je]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[f, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, qe], [f, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [f, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, f], [/\(bb(10);/i], [f, [b, Ce]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [f, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [f, [b, Y + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [f, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [f, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [f, [b, J + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, Te], f], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [b, f], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], f], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, f]] }, L = function(S, E) {
|
|
2735
|
+
if (typeof S === v && (E = S, S = i), !(this instanceof L))
|
|
2736
|
+
return new L(S, E).getResult();
|
|
2737
|
+
var x = typeof l !== w && l.navigator ? l.navigator : i, q = S || (x && x.userAgent ? x.userAgent : g), z = x && x.userAgentData ? x.userAgentData : i, H = E ? bt($e, E) : $e, k = x && x.userAgent == q;
|
|
2754
2738
|
return this.getBrowser = function() {
|
|
2755
2739
|
var P = {};
|
|
2756
|
-
return P[b] = i, P[f] = i,
|
|
2740
|
+
return P[b] = i, P[f] = i, K.call(P, q, H.browser), P[_] = wt(P[f]), k && x && x.brave && typeof x.brave.isBrave == u && (P[b] = "Brave"), P;
|
|
2757
2741
|
}, this.getCPU = function() {
|
|
2758
2742
|
var P = {};
|
|
2759
|
-
return P[
|
|
2743
|
+
return P[A] = i, K.call(P, q, H.cpu), P;
|
|
2760
2744
|
}, this.getDevice = function() {
|
|
2761
2745
|
var P = {};
|
|
2762
|
-
return P[h] = i, P[p] = i, P[m] = i,
|
|
2746
|
+
return P[h] = i, P[p] = i, P[m] = i, K.call(P, q, H.device), k && !P[m] && z && z.mobile && (P[m] = I), k && P[p] == "Macintosh" && x && typeof x.standalone !== w && x.maxTouchPoints && x.maxTouchPoints > 2 && (P[p] = "iPad", P[m] = R), P;
|
|
2763
2747
|
}, this.getEngine = function() {
|
|
2764
2748
|
var P = {};
|
|
2765
|
-
return P[b] = i, P[f] = i,
|
|
2749
|
+
return P[b] = i, P[f] = i, K.call(P, q, H.engine), P;
|
|
2766
2750
|
}, this.getOS = function() {
|
|
2767
2751
|
var P = {};
|
|
2768
|
-
return P[b] = i, P[f] = i,
|
|
2752
|
+
return P[b] = i, P[f] = i, K.call(P, q, H.os), k && !P[b] && z && z.platform != "Unknown" && (P[b] = z.platform.replace(/chrome os/i, Te).replace(/macos/i, qe)), P;
|
|
2769
2753
|
}, this.getResult = function() {
|
|
2770
2754
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
2771
2755
|
}, this.getUA = function() {
|
|
2772
2756
|
return q;
|
|
2773
2757
|
}, this.setUA = function(P) {
|
|
2774
|
-
return q = typeof P === y && P.length > D ?
|
|
2758
|
+
return q = typeof P === y && P.length > D ? we(P, D) : P, this;
|
|
2775
2759
|
}, this.setUA(q), this;
|
|
2776
2760
|
};
|
|
2777
|
-
L.VERSION = d, L.BROWSER =
|
|
2761
|
+
L.VERSION = d, L.BROWSER = ne([b, f, _]), L.CPU = ne([A]), L.DEVICE = ne([p, h, m, N, I, C, R, j, F]), L.ENGINE = L.OS = ne([b, f]), typeof o !== w ? (a.exports && (o = a.exports = L), o.UAParser = L) : typeof l !== w && (l.UAParser = L);
|
|
2778
2762
|
var V = typeof l !== w && (l.jQuery || l.Zepto);
|
|
2779
2763
|
if (V && !V.ua) {
|
|
2780
|
-
var
|
|
2781
|
-
V.ua =
|
|
2782
|
-
return
|
|
2764
|
+
var ae = new L();
|
|
2765
|
+
V.ua = ae.getResult(), V.ua.get = function() {
|
|
2766
|
+
return ae.getUA();
|
|
2783
2767
|
}, V.ua.set = function(S) {
|
|
2784
|
-
|
|
2785
|
-
var
|
|
2786
|
-
for (var x in
|
|
2787
|
-
V.ua[x] =
|
|
2768
|
+
ae.setUA(S);
|
|
2769
|
+
var E = ae.getResult();
|
|
2770
|
+
for (var x in E)
|
|
2771
|
+
V.ua[x] = E[x];
|
|
2788
2772
|
};
|
|
2789
2773
|
}
|
|
2790
2774
|
})(typeof window == "object" ? window : this);
|
|
@@ -2803,9 +2787,9 @@ var Ie = {}, ft = { exports: {} };
|
|
|
2803
2787
|
}
|
|
2804
2788
|
typeof r < "u" && (r.ab = __dirname + "/");
|
|
2805
2789
|
var n = r(226);
|
|
2806
|
-
|
|
2790
|
+
ht.exports = n;
|
|
2807
2791
|
})();
|
|
2808
|
-
var
|
|
2792
|
+
var ra = ht.exports;
|
|
2809
2793
|
(function(e) {
|
|
2810
2794
|
Object.defineProperty(e, "__esModule", {
|
|
2811
2795
|
value: !0
|
|
@@ -2827,7 +2811,7 @@ var ta = ft.exports;
|
|
|
2827
2811
|
return o;
|
|
2828
2812
|
}
|
|
2829
2813
|
});
|
|
2830
|
-
const r = /* @__PURE__ */ n(
|
|
2814
|
+
const r = /* @__PURE__ */ n(ra);
|
|
2831
2815
|
function n(i) {
|
|
2832
2816
|
return i && i.__esModule ? i : {
|
|
2833
2817
|
default: i
|
|
@@ -2845,8 +2829,8 @@ var ta = ft.exports;
|
|
|
2845
2829
|
function l({ headers: i }) {
|
|
2846
2830
|
return o(i.get("user-agent") || void 0);
|
|
2847
2831
|
}
|
|
2848
|
-
})(
|
|
2849
|
-
var
|
|
2832
|
+
})(Re);
|
|
2833
|
+
var ft = {};
|
|
2850
2834
|
(function(e) {
|
|
2851
2835
|
Object.defineProperty(e, "__esModule", {
|
|
2852
2836
|
value: !0
|
|
@@ -2860,20 +2844,20 @@ var gt = {};
|
|
|
2860
2844
|
// @ts-expect-error: URLPattern is not available in Node.js
|
|
2861
2845
|
typeof URLPattern > "u" ? void 0 : URLPattern
|
|
2862
2846
|
);
|
|
2863
|
-
})(
|
|
2847
|
+
})(ft);
|
|
2864
2848
|
(function(e, t) {
|
|
2865
2849
|
const r = {
|
|
2866
|
-
NextRequest:
|
|
2867
|
-
NextResponse:
|
|
2868
|
-
ImageResponse:
|
|
2869
|
-
userAgentFromString:
|
|
2870
|
-
userAgent:
|
|
2871
|
-
URLPattern:
|
|
2850
|
+
NextRequest: rt.NextRequest,
|
|
2851
|
+
NextResponse: dt.NextResponse,
|
|
2852
|
+
ImageResponse: mt.ImageResponse,
|
|
2853
|
+
userAgentFromString: Re.userAgentFromString,
|
|
2854
|
+
userAgent: Re.userAgent,
|
|
2855
|
+
URLPattern: ft.URLPattern
|
|
2872
2856
|
};
|
|
2873
2857
|
e.exports = r, t.NextRequest = r.NextRequest, t.NextResponse = r.NextResponse, t.ImageResponse = r.ImageResponse, t.userAgentFromString = r.userAgentFromString, t.userAgent = r.userAgent, t.URLPattern = r.URLPattern;
|
|
2874
|
-
})(
|
|
2875
|
-
var
|
|
2876
|
-
async function
|
|
2858
|
+
})(_e, _e.exports);
|
|
2859
|
+
var Ue = _e.exports;
|
|
2860
|
+
async function na({ apiUrl: e, extraData: t, fetchOptions: r }) {
|
|
2877
2861
|
var I, R;
|
|
2878
2862
|
const n = `${e}/api/dataentities`, a = `${e}/api/io/v1/extrato/get-total`, {
|
|
2879
2863
|
MASTER_DATA_ENTITY: o,
|
|
@@ -2883,11 +2867,11 @@ async function ra({ apiUrl: e, extraData: t, fetchOptions: r }) {
|
|
|
2883
2867
|
cookies: g
|
|
2884
2868
|
} = t, { address: s, client: u } = o, { address: w, client: v } = l, y = ((I = g == null ? void 0 : g.find((C) => (C == null ? void 0 : C.name) === i)) == null ? void 0 : I.value) || "";
|
|
2885
2869
|
if (!y)
|
|
2886
|
-
return
|
|
2870
|
+
return Ue.NextResponse.json(
|
|
2887
2871
|
{ error: "Token not found. Unauthorized" },
|
|
2888
2872
|
{ status: 200 }
|
|
2889
2873
|
);
|
|
2890
|
-
const { sub: _, userId: p } =
|
|
2874
|
+
const { sub: _, userId: p } = Bt(y), b = Object.fromEntries(
|
|
2891
2875
|
Object.entries(d).map(([C, j]) => [C, String(j || "")])
|
|
2892
2876
|
), m = async (C, j, F = !1) => {
|
|
2893
2877
|
try {
|
|
@@ -2906,8 +2890,8 @@ async function ra({ apiUrl: e, extraData: t, fetchOptions: r }) {
|
|
|
2906
2890
|
b
|
|
2907
2891
|
);
|
|
2908
2892
|
if (!(h != null && h.id))
|
|
2909
|
-
return
|
|
2910
|
-
const f = (R = h.document) == null ? void 0 : R.replace(/\D/g, ""),
|
|
2893
|
+
return Ue.NextResponse.json({ sub: _ }, { status: 200 });
|
|
2894
|
+
const f = (R = h.document) == null ? void 0 : R.replace(/\D/g, ""), A = await m(
|
|
2911
2895
|
`/${s}/search?userId=${h.id}&_fields=${w.join(
|
|
2912
2896
|
","
|
|
2913
2897
|
)}&_sort=lastInteractionIn DESC`,
|
|
@@ -2917,42 +2901,43 @@ async function ra({ apiUrl: e, extraData: t, fetchOptions: r }) {
|
|
|
2917
2901
|
b,
|
|
2918
2902
|
!0
|
|
2919
2903
|
) : null;
|
|
2920
|
-
return { ...h, ...
|
|
2904
|
+
return { ...h, ...A, userCredits: N, sub: _, userId: p };
|
|
2921
2905
|
}
|
|
2922
|
-
const
|
|
2906
|
+
const aa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2923
2907
|
__proto__: null,
|
|
2924
|
-
getUserData:
|
|
2925
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2908
|
+
getUserData: na
|
|
2909
|
+
}, Symbol.toStringTag, { value: "Module" })), ia = {
|
|
2926
2910
|
parseSearchState: jt,
|
|
2927
2911
|
convertSearchParams: Nt,
|
|
2928
2912
|
filterNonRootFacets: qt,
|
|
2929
2913
|
filterNonCategorySelected: Tt
|
|
2930
|
-
},
|
|
2914
|
+
}, pa = {
|
|
2931
2915
|
checkout: Xr,
|
|
2932
|
-
catalog:
|
|
2933
|
-
cms:
|
|
2934
|
-
search:
|
|
2935
|
-
masterdata:
|
|
2936
|
-
|
|
2916
|
+
catalog: an,
|
|
2917
|
+
cms: Ft,
|
|
2918
|
+
search: kn,
|
|
2919
|
+
masterdata: $n,
|
|
2920
|
+
marketingdata: $t,
|
|
2921
|
+
user: aa,
|
|
2937
2922
|
wishlist: {
|
|
2938
|
-
...
|
|
2923
|
+
...Ln
|
|
2939
2924
|
}
|
|
2940
|
-
},
|
|
2941
|
-
catalog:
|
|
2942
|
-
search:
|
|
2943
|
-
product:
|
|
2925
|
+
}, ma = {
|
|
2926
|
+
catalog: Ht,
|
|
2927
|
+
search: ia,
|
|
2928
|
+
product: Ut,
|
|
2944
2929
|
cms: {
|
|
2945
|
-
...
|
|
2946
|
-
...
|
|
2930
|
+
...Dt,
|
|
2931
|
+
...Lt
|
|
2947
2932
|
}
|
|
2948
|
-
},
|
|
2933
|
+
}, ha = {
|
|
2949
2934
|
template: {
|
|
2950
2935
|
pdp: {}
|
|
2951
2936
|
}
|
|
2952
2937
|
};
|
|
2953
2938
|
export {
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2939
|
+
pa as serverAPIs,
|
|
2940
|
+
da as serverCMS,
|
|
2941
|
+
ha as serverComponents,
|
|
2942
|
+
ma as serverHelpers
|
|
2958
2943
|
};
|