@soma-vertical-web/multi-lib 1.0.31 → 1.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contexts/contexts/plp/FilterContext.d.ts +1 -1
- package/contexts/contexts/plp/PLPContext.d.ts +1 -1
- package/contexts/contexts/search/Facets.d.ts +1 -1
- package/contexts/contexts/search/Search.d.ts +1 -1
- package/contexts/hooks/useScrollRestorationInfinite.d.ts +1 -1
- package/contexts/index.d.ts +4 -4
- package/data/api/aviseme/index.d.ts +18 -0
- package/data/api/preview/exit-preview/index.d.ts +13 -0
- package/data/api/preview/index.d.ts +36 -0
- package/data/api/xml/index.d.ts +3 -0
- package/data/helpers/plp/index.d.ts +3 -7
- package/data/helpers/search/facets.d.ts +0 -1
- package/data/helpers/search/index.d.ts +0 -4
- package/data/helpers/search/product/index.d.ts +1 -13
- package/data/helpers/search/search.d.ts +0 -1
- package/data/index.d.ts +0 -2
- package/{index-CIVkR1d_.mjs → index-BM8vTUKg.mjs} +712 -776
- package/index-CZjoMPpQ.js +4 -0
- package/index.js +18 -18
- package/index.mjs +8751 -11007
- package/index2.js +2 -2
- package/index2.mjs +666 -578
- package/layout/index.d.ts +2 -2
- package/layout/template/PDC/Composite/InfiniteScroller/Banners/Banners.d.ts +1 -1
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Card.d.ts +1 -1
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Loader.d.ts +1 -1
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/NextPage.d.ts +1 -4
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Page.d.ts +2 -2
- package/layout/template/PDC/Composite/InfiniteScroller/Page/index.d.ts +3 -10
- package/layout/template/PDC/Composite/Pagination/Pagination.d.ts +1 -1
- package/layout/template/PDC/PDC.d.ts +1 -1
- package/layout/template/PDC/index.d.ts +1 -1
- package/package.json +1 -1
- package/server.d.ts +8 -4
- package/style.css +1 -1
- package/types/contexts/contexts/plp.d.ts +21 -63
- package/types/contexts/contexts/search.d.ts +17 -39
- package/types/contexts/hooks/index.d.ts +2 -0
- package/types/layout/team-components/PLPNavigation/index.d.ts +2 -0
- package/types/layout/templates/PLP/index.d.ts +3 -7
- package/contexts/contexts/search/QueryFacets.d.ts +0 -5
- package/contexts/contexts/search/QueryProducts.d.ts +0 -5
- package/contexts/contexts/search/RootTank.d.ts +0 -9
- package/contexts/store/plp-scroll.d.ts +0 -3
- package/index-BFjIPkXv.js +0 -4
- package/layout/template/PDC/Composite/InfiniteScroller/Filters/Filters.d.ts +0 -11
- package/layout/template/PDC/Composite/InfiniteScroller/Filters/index.d.ts +0 -1
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/AnchorPDP.d.ts +0 -7
- package/layout/template/SearchResult/Composite/Products.d.ts +0 -7
package/index2.mjs
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { jsx as O, jsxs as pe, Fragment as W } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
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 Et, o as At, 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
3
|
import { Utils as se, helpers as le } from "@soma-vertical-web/core-components";
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
import { decodeJwt as
|
|
7
|
-
|
|
4
|
+
import * as l from "yup";
|
|
5
|
+
import Mt from "sanitize-html";
|
|
6
|
+
import { decodeJwt as Bt } from "jose";
|
|
7
|
+
import zt from "axios";
|
|
8
|
+
const Gt = async ({
|
|
8
9
|
children: e,
|
|
9
10
|
ClientCartProvider: t,
|
|
10
11
|
...r
|
|
11
12
|
}) => {
|
|
12
|
-
const { data: n } = await
|
|
13
|
+
const { data: n } = await $(
|
|
13
14
|
"mini_cart",
|
|
14
15
|
r
|
|
15
16
|
);
|
|
16
17
|
return /* @__PURE__ */ O(t, { ...n ? Array.isArray(n) ? { data: n[0] } : { data: n } : {}, children: e });
|
|
17
|
-
},
|
|
18
|
+
}, Vt = ({
|
|
18
19
|
slug: e,
|
|
19
20
|
data: t,
|
|
20
21
|
SectionZone: r,
|
|
@@ -26,7 +27,7 @@ const Ht = async ({
|
|
|
26
27
|
var w, v, y, _;
|
|
27
28
|
return ((v = (w = u.config) == null ? void 0 : w.responsive) == null ? void 0 : v.deviceType) === "desktop" && ((_ = (y = u.config) == null ? void 0 : y.seo) == null ? void 0 : _.slug) === e;
|
|
28
29
|
}
|
|
29
|
-
),
|
|
30
|
+
), c = o == null ? void 0 : o.config.responsive.gapCustom, i = o == null ? void 0 : o.config.responsive.gapSections, d = t == null ? void 0 : t.find(
|
|
30
31
|
(u) => {
|
|
31
32
|
var w, v, y, _;
|
|
32
33
|
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;
|
|
@@ -36,7 +37,7 @@ const Ht = async ({
|
|
|
36
37
|
/* @__PURE__ */ O(
|
|
37
38
|
se.Column,
|
|
38
39
|
{
|
|
39
|
-
gap:
|
|
40
|
+
gap: c && i ? i : n,
|
|
40
41
|
className: le.classNameConcat(
|
|
41
42
|
oe["responsive-desktop-flex"],
|
|
42
43
|
"utils-column-modifier"
|
|
@@ -56,19 +57,19 @@ const Ht = async ({
|
|
|
56
57
|
}
|
|
57
58
|
)
|
|
58
59
|
] });
|
|
59
|
-
},
|
|
60
|
+
}, Wt = async ({
|
|
60
61
|
slug: e,
|
|
61
62
|
SectionZone: t,
|
|
62
63
|
COMMON_PAGE_COLUMN_GAP: r,
|
|
63
64
|
identifyWhoIsFirst: n = !1,
|
|
64
65
|
...a
|
|
65
66
|
}) => {
|
|
66
|
-
const { data: o } = await
|
|
67
|
+
const { data: o } = await $(
|
|
67
68
|
"common_page",
|
|
68
69
|
a
|
|
69
70
|
);
|
|
70
71
|
return !o || !Array.isArray(o) || o.length === 0 ? null : /* @__PURE__ */ O(
|
|
71
|
-
|
|
72
|
+
Vt,
|
|
72
73
|
{
|
|
73
74
|
data: o,
|
|
74
75
|
slug: e,
|
|
@@ -77,30 +78,30 @@ const Ht = async ({
|
|
|
77
78
|
identifyWhoIsFirst: n
|
|
78
79
|
}
|
|
79
80
|
);
|
|
80
|
-
},
|
|
81
|
+
}, Qt = async ({
|
|
81
82
|
children: e,
|
|
82
83
|
ClientFlagsAndTagsProvider: t,
|
|
83
84
|
...r
|
|
84
85
|
}) => {
|
|
85
|
-
const { data: n } = await
|
|
86
|
+
const { data: n } = await $(
|
|
86
87
|
"flags_and_tags",
|
|
87
88
|
r
|
|
88
89
|
);
|
|
89
90
|
return !n || !Array.isArray(n) ? null : /* @__PURE__ */ O(t, { data: n[0], children: e });
|
|
90
|
-
},
|
|
91
|
+
}, Xt = async ({
|
|
91
92
|
className: e,
|
|
92
93
|
PAYMENT_FLAGS_DICTIONARY: t,
|
|
93
94
|
PAYMENT_FLAGS: r,
|
|
94
95
|
LEGAL_INFORMATION_TEXT: n,
|
|
95
96
|
ICONS: a,
|
|
96
97
|
SectionZone: o,
|
|
97
|
-
Footer:
|
|
98
|
+
Footer: c,
|
|
98
99
|
FooterSupport: i,
|
|
99
100
|
hasFooterStamps: d,
|
|
100
101
|
...g
|
|
101
102
|
}) => {
|
|
102
|
-
var v, y, _, p, b, m,
|
|
103
|
-
const { data: s } = await
|
|
103
|
+
var v, y, _, p, b, m, f, h, E, N, I;
|
|
104
|
+
const { data: s } = await $("footer", g), u = Array.isArray(s) && ((v = s[0]) == null ? void 0 : v.type) === "footer" ? s[0] : null, w = {
|
|
104
105
|
...(y = u == null ? void 0 : u.paymentInfo) == null ? void 0 : y.paymentInfo,
|
|
105
106
|
acceptedFlags: Array.isArray(
|
|
106
107
|
(_ = u == null ? void 0 : u.paymentInfo) == null ? void 0 : _.paymentInfo.acceptedFlags
|
|
@@ -109,16 +110,16 @@ const Ht = async ({
|
|
|
109
110
|
) : []
|
|
110
111
|
};
|
|
111
112
|
return u ? /* @__PURE__ */ O(
|
|
112
|
-
|
|
113
|
+
c,
|
|
113
114
|
{
|
|
114
115
|
className: e,
|
|
115
116
|
data: { ...u },
|
|
116
117
|
socialInfo: (b = u.socialMedia) == null ? void 0 : b.socialMedia,
|
|
117
|
-
socialMedias: (
|
|
118
|
+
socialMedias: (f = (m = u.socialMedia) == null ? void 0 : m.socialMedia) == null ? void 0 : f.medias,
|
|
118
119
|
payments: w,
|
|
119
120
|
hasFooterStamps: d,
|
|
120
121
|
adornment: {
|
|
121
|
-
...(
|
|
122
|
+
...(E = (h = u.supportInfo) == null ? void 0 : h.supportInfo) != null && E.content ? {
|
|
122
123
|
bottom: /* @__PURE__ */ O(
|
|
123
124
|
i,
|
|
124
125
|
{
|
|
@@ -137,13 +138,13 @@ const Ht = async ({
|
|
|
137
138
|
ICONS: a
|
|
138
139
|
}
|
|
139
140
|
) : null;
|
|
140
|
-
},
|
|
141
|
+
}, Kt = async ({
|
|
141
142
|
children: e,
|
|
142
143
|
ClientHeaderProvider: t,
|
|
143
144
|
...r
|
|
144
145
|
}) => {
|
|
145
|
-
var o,
|
|
146
|
-
const { data: n } = await
|
|
146
|
+
var o, c, i, d, g, s;
|
|
147
|
+
const { data: n } = await $(
|
|
147
148
|
"header",
|
|
148
149
|
r
|
|
149
150
|
), a = Array.isArray(n) ? n[0] : void 0;
|
|
@@ -152,16 +153,16 @@ const Ht = async ({
|
|
|
152
153
|
{
|
|
153
154
|
headerData: {
|
|
154
155
|
...((o = a == null ? void 0 : a.layerConfig) == null ? void 0 : o.config) ?? {},
|
|
155
|
-
subMenus: ((
|
|
156
|
+
subMenus: ((c = a == null ? void 0 : a.sections) == null ? void 0 : c.map((u) => u.data)) ?? [],
|
|
156
157
|
categories: ((d = (i = a == null ? void 0 : a.categories) == null ? void 0 : i.categories) == null ? void 0 : d.items) ?? [],
|
|
157
158
|
navigationLinks: ((s = (g = a == null ? void 0 : a.navigationLinks) == null ? void 0 : g.navigationLinks) == null ? void 0 : s.items) ?? []
|
|
158
159
|
},
|
|
159
160
|
children: e
|
|
160
161
|
}
|
|
161
162
|
);
|
|
162
|
-
},
|
|
163
|
-
var
|
|
164
|
-
const t = (i = (
|
|
163
|
+
}, Zt = (e) => {
|
|
164
|
+
var c, i;
|
|
165
|
+
const t = (i = (c = e[0]) == null ? void 0 : c.items) == null ? void 0 : i.items;
|
|
165
166
|
if ((t == null ? void 0 : t.items.length) === 0 || e.length === 0)
|
|
166
167
|
return {
|
|
167
168
|
iconLabel: "",
|
|
@@ -188,19 +189,19 @@ const Ht = async ({
|
|
|
188
189
|
helpButtonSize: a,
|
|
189
190
|
content: o
|
|
190
191
|
};
|
|
191
|
-
},
|
|
192
|
+
}, Jt = async ({
|
|
192
193
|
HelpButton: e,
|
|
193
194
|
ICONS: t,
|
|
194
195
|
className: r,
|
|
195
196
|
...n
|
|
196
197
|
}) => {
|
|
197
|
-
const { data: a } = await
|
|
198
|
+
const { data: a } = await $(
|
|
198
199
|
"helpbutton",
|
|
199
200
|
n
|
|
200
201
|
);
|
|
201
202
|
if (!a || !Array.isArray(a) || a.length === 0)
|
|
202
203
|
return null;
|
|
203
|
-
const o =
|
|
204
|
+
const o = Zt(a);
|
|
204
205
|
return /* @__PURE__ */ O(
|
|
205
206
|
e,
|
|
206
207
|
{
|
|
@@ -209,24 +210,24 @@ const Ht = async ({
|
|
|
209
210
|
className: r
|
|
210
211
|
}
|
|
211
212
|
);
|
|
212
|
-
},
|
|
213
|
+
}, Yt = async ({
|
|
213
214
|
SectionZone: e,
|
|
214
215
|
LPCadastro: t,
|
|
215
216
|
...r
|
|
216
217
|
}) => {
|
|
217
218
|
var d;
|
|
218
|
-
const { data: n } = await
|
|
219
|
+
const { data: n } = await $(
|
|
219
220
|
"lp_cadastro",
|
|
220
221
|
r
|
|
221
222
|
);
|
|
222
223
|
if (!n || !Array.isArray(n) || n.length === 0)
|
|
223
224
|
return null;
|
|
224
|
-
const [a] = n, o = (a == null ? void 0 : a.sections) || [],
|
|
225
|
+
const [a] = n, o = (a == null ? void 0 : a.sections) || [], c = ((d = a == null ? void 0 : a.content) == null ? void 0 : d.conteúdo) || {}, i = a == null ? void 0 : a.sections;
|
|
225
226
|
return /* @__PURE__ */ pe(W, { children: [
|
|
226
|
-
/* @__PURE__ */ O(t, { sections: o, content:
|
|
227
|
+
/* @__PURE__ */ O(t, { sections: o, content: c }),
|
|
227
228
|
/* @__PURE__ */ O(e, { data: i })
|
|
228
229
|
] });
|
|
229
|
-
},
|
|
230
|
+
}, er = async ({
|
|
230
231
|
LPLOJAS_TEMPLATE_RETURN_BUTTON: e,
|
|
231
232
|
ICONS: t,
|
|
232
233
|
entity: r,
|
|
@@ -235,25 +236,25 @@ const Ht = async ({
|
|
|
235
236
|
...o
|
|
236
237
|
}) => {
|
|
237
238
|
var g;
|
|
238
|
-
const { data:
|
|
239
|
+
const { data: c } = await $("lp_lojas", o), d = (g = (Array.isArray(c) ? c : [])[0]) == null ? void 0 : g.config.config;
|
|
239
240
|
return /* @__PURE__ */ O(
|
|
240
241
|
a,
|
|
241
242
|
{
|
|
242
243
|
entity: r,
|
|
243
244
|
content: d,
|
|
244
|
-
data:
|
|
245
|
+
data: c,
|
|
245
246
|
showVendor: n,
|
|
246
247
|
ICONS: t,
|
|
247
248
|
LPLOJAS_TEMPLATE_RETURN_BUTTON: e
|
|
248
249
|
}
|
|
249
250
|
);
|
|
250
|
-
},
|
|
251
|
+
}, tr = async ({
|
|
251
252
|
ERROR_TEMPLATE_RETURN_BUTTON: e,
|
|
252
253
|
ErrorTemplate: t,
|
|
253
254
|
...r
|
|
254
255
|
}) => {
|
|
255
256
|
var o;
|
|
256
|
-
const { data: n } = await
|
|
257
|
+
const { data: n } = await $(
|
|
257
258
|
"notfound_page",
|
|
258
259
|
r
|
|
259
260
|
), a = Array.isArray(n) ? (o = n[0]) == null ? void 0 : o.config.config : null;
|
|
@@ -264,7 +265,7 @@ const Ht = async ({
|
|
|
264
265
|
ERROR_TEMPLATE_RETURN_BUTTON: e
|
|
265
266
|
}
|
|
266
267
|
) : /* @__PURE__ */ O(W, {});
|
|
267
|
-
},
|
|
268
|
+
}, rr = async ({
|
|
268
269
|
children: e,
|
|
269
270
|
productId: t,
|
|
270
271
|
COMMON_PAGE_COLUMN_GAP: r,
|
|
@@ -272,34 +273,34 @@ const Ht = async ({
|
|
|
272
273
|
PDPContentProvider: a,
|
|
273
274
|
...o
|
|
274
275
|
}) => {
|
|
275
|
-
const { data:
|
|
276
|
+
const { data: c } = await $(
|
|
276
277
|
"product_page",
|
|
277
278
|
o
|
|
278
279
|
);
|
|
279
|
-
return !
|
|
280
|
+
return !c || !Array.isArray(c) || c.length === 0 ? null : /* @__PURE__ */ O(
|
|
280
281
|
a,
|
|
281
282
|
{
|
|
282
|
-
data:
|
|
283
|
+
data: c[0],
|
|
283
284
|
productId: t,
|
|
284
285
|
COMMON_PAGE_COLUMN_GAP: r,
|
|
285
286
|
SectionZone: n,
|
|
286
287
|
children: e
|
|
287
288
|
}
|
|
288
289
|
);
|
|
289
|
-
},
|
|
290
|
+
}, nr = {
|
|
290
291
|
"column-modifier": "_column-modifier_1tqap_1"
|
|
291
|
-
},
|
|
292
|
+
}, ar = async ({
|
|
292
293
|
className: e,
|
|
293
294
|
children: t,
|
|
294
295
|
slug: r,
|
|
295
296
|
SectionZone: n,
|
|
296
297
|
COMMON_PAGE_COLUMN_GAP_PDC: a,
|
|
297
298
|
PLPContentProvider: o,
|
|
298
|
-
...
|
|
299
|
+
...c
|
|
299
300
|
}) => {
|
|
300
|
-
const { data: i } = await
|
|
301
|
+
const { data: i } = await $(
|
|
301
302
|
"categories_page",
|
|
302
|
-
|
|
303
|
+
c
|
|
303
304
|
);
|
|
304
305
|
if (!i || !Array.isArray(i))
|
|
305
306
|
return null;
|
|
@@ -330,7 +331,7 @@ const Ht = async ({
|
|
|
330
331
|
{
|
|
331
332
|
className: le.classNameConcat(
|
|
332
333
|
oe["responsive-desktop-flex"],
|
|
333
|
-
[
|
|
334
|
+
[nr["column-modifier"], ...w]
|
|
334
335
|
),
|
|
335
336
|
style: {
|
|
336
337
|
minHeight: "100vh"
|
|
@@ -358,9 +359,9 @@ const Ht = async ({
|
|
|
358
359
|
}
|
|
359
360
|
) })
|
|
360
361
|
] });
|
|
361
|
-
},
|
|
362
|
-
var
|
|
363
|
-
const { data: r } = await
|
|
362
|
+
}, ir = async ({ slug: e, ...t }) => {
|
|
363
|
+
var c, i, d;
|
|
364
|
+
const { data: r } = await $(
|
|
364
365
|
"redirect_to_search",
|
|
365
366
|
t
|
|
366
367
|
);
|
|
@@ -370,7 +371,7 @@ const Ht = async ({
|
|
|
370
371
|
query: null,
|
|
371
372
|
redirect: !1
|
|
372
373
|
};
|
|
373
|
-
const n = ((d = (i = (
|
|
374
|
+
const n = ((d = (i = (c = r[0]) == null ? void 0 : c.redirectToSearch) == null ? void 0 : i.redirectToSearch) == null ? void 0 : d.paths) ?? [];
|
|
374
375
|
if (!!!n.length)
|
|
375
376
|
return {
|
|
376
377
|
slug: e,
|
|
@@ -398,15 +399,15 @@ const Ht = async ({
|
|
|
398
399
|
filters: null,
|
|
399
400
|
sort: null
|
|
400
401
|
};
|
|
401
|
-
},
|
|
402
|
-
var
|
|
403
|
-
const { data: r } = await
|
|
402
|
+
}, or = async ({ slug: e, ...t }) => {
|
|
403
|
+
var c, i, d;
|
|
404
|
+
const { data: r } = await $(
|
|
404
405
|
"redirect_to_search",
|
|
405
406
|
t
|
|
406
407
|
);
|
|
407
408
|
if (!r || !Array.isArray(r))
|
|
408
409
|
return null;
|
|
409
|
-
const n = ((d = (i = (
|
|
410
|
+
const n = ((d = (i = (c = r[0]) == null ? void 0 : c.redirectToSearch) == null ? void 0 : i.redirectToSearch) == null ? void 0 : d.paths) ?? [];
|
|
410
411
|
if (!!!n.length)
|
|
411
412
|
return null;
|
|
412
413
|
const o = n.find(
|
|
@@ -420,20 +421,20 @@ const Ht = async ({
|
|
|
420
421
|
title: o.pageTitle,
|
|
421
422
|
description: o.pageDescription
|
|
422
423
|
} : null;
|
|
423
|
-
},
|
|
424
|
+
}, sr = async ({
|
|
424
425
|
slug: e,
|
|
425
426
|
Politicas: t,
|
|
426
427
|
SectionZone: r,
|
|
427
428
|
oneTrust: n,
|
|
428
429
|
...a
|
|
429
430
|
}) => {
|
|
430
|
-
const { data: o } = await
|
|
431
|
+
const { data: o } = await $(
|
|
431
432
|
"policy_page",
|
|
432
433
|
a
|
|
433
|
-
), { data:
|
|
434
|
+
), { data: c } = await $(
|
|
434
435
|
"policy_tab",
|
|
435
436
|
a
|
|
436
|
-
), i = Array.isArray(o) ? o : null, d = Array.isArray(
|
|
437
|
+
), i = Array.isArray(o) ? o : null, d = Array.isArray(c) ? c : null, g = i ? i[0].sections : null;
|
|
437
438
|
return !i || !d ? null : /* @__PURE__ */ pe(W, { children: [
|
|
438
439
|
/* @__PURE__ */ O(
|
|
439
440
|
t,
|
|
@@ -446,13 +447,13 @@ const Ht = async ({
|
|
|
446
447
|
),
|
|
447
448
|
g && /* @__PURE__ */ O(r, { data: g })
|
|
448
449
|
] });
|
|
449
|
-
},
|
|
450
|
+
}, lr = async ({
|
|
450
451
|
children: e,
|
|
451
452
|
SectionZone: t,
|
|
452
453
|
className: r,
|
|
453
454
|
...n
|
|
454
455
|
}) => {
|
|
455
|
-
const { data: a } = await
|
|
456
|
+
const { data: a } = await $(
|
|
456
457
|
"search_page",
|
|
457
458
|
n
|
|
458
459
|
);
|
|
@@ -465,22 +466,22 @@ const Ht = async ({
|
|
|
465
466
|
children: e
|
|
466
467
|
}
|
|
467
468
|
) : /* @__PURE__ */ O(W, { children: "children" });
|
|
468
|
-
},
|
|
469
|
+
}, cr = async ({
|
|
469
470
|
ClientTipbarContent: e,
|
|
470
471
|
...t
|
|
471
472
|
}) => {
|
|
472
|
-
const { data: r } = await
|
|
473
|
+
const { data: r } = await $(
|
|
473
474
|
"tipbar",
|
|
474
475
|
t
|
|
475
476
|
);
|
|
476
477
|
return /* @__PURE__ */ O(e, { data: r });
|
|
477
|
-
},
|
|
478
|
+
}, ur = async ({
|
|
478
479
|
children: e,
|
|
479
480
|
SectionZone: t,
|
|
480
481
|
WishlistScreening: r,
|
|
481
482
|
...n
|
|
482
483
|
}) => {
|
|
483
|
-
const { data: a } = await
|
|
484
|
+
const { data: a } = await $(
|
|
484
485
|
"wishlist_page",
|
|
485
486
|
n
|
|
486
487
|
);
|
|
@@ -492,34 +493,34 @@ const Ht = async ({
|
|
|
492
493
|
children: e
|
|
493
494
|
}
|
|
494
495
|
);
|
|
495
|
-
},
|
|
496
|
-
CommonPageContent:
|
|
497
|
-
CartContent:
|
|
498
|
-
FlagsAndTagsContent:
|
|
499
|
-
HeaderContent:
|
|
500
|
-
TipbarContent:
|
|
501
|
-
FooterContent:
|
|
502
|
-
PLPContent:
|
|
503
|
-
PDPContent:
|
|
504
|
-
getRedirectData:
|
|
505
|
-
getPLPSynteticMetaData:
|
|
506
|
-
SearchPageContent:
|
|
507
|
-
HelpButtonContent:
|
|
508
|
-
LPCadastroContent:
|
|
509
|
-
LPLojasContent:
|
|
510
|
-
PolicyPageContent:
|
|
511
|
-
NotFoundContent:
|
|
512
|
-
WishlistContent:
|
|
513
|
-
},
|
|
514
|
-
country:
|
|
515
|
-
postalCode:
|
|
496
|
+
}, dr = {
|
|
497
|
+
CommonPageContent: Wt,
|
|
498
|
+
CartContent: Gt,
|
|
499
|
+
FlagsAndTagsContent: Qt,
|
|
500
|
+
HeaderContent: Kt,
|
|
501
|
+
TipbarContent: cr,
|
|
502
|
+
FooterContent: Xt,
|
|
503
|
+
PLPContent: ar,
|
|
504
|
+
PDPContent: rr,
|
|
505
|
+
getRedirectData: ir,
|
|
506
|
+
getPLPSynteticMetaData: or,
|
|
507
|
+
SearchPageContent: lr,
|
|
508
|
+
HelpButtonContent: Jt,
|
|
509
|
+
LPCadastroContent: Yt,
|
|
510
|
+
LPLojasContent: er,
|
|
511
|
+
PolicyPageContent: sr,
|
|
512
|
+
NotFoundContent: tr,
|
|
513
|
+
WishlistContent: ur
|
|
514
|
+
}, Ra = { Components: dr }, pr = l.object({
|
|
515
|
+
country: l.string().length(3, "Country code must be 3 characters long").required("Country is required"),
|
|
516
|
+
postalCode: l.string().nullable()
|
|
516
517
|
});
|
|
517
|
-
async function
|
|
518
|
+
async function mr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
518
519
|
if (!t) {
|
|
519
520
|
console.error("[ERROR FETCHING] Body is required");
|
|
520
521
|
return;
|
|
521
522
|
}
|
|
522
|
-
await
|
|
523
|
+
await pr.validate(t);
|
|
523
524
|
const { country: n, postalCode: a } = t;
|
|
524
525
|
return await T(
|
|
525
526
|
`${e}/api/checkout/pub/postal-code/${n}/${a}`,
|
|
@@ -530,10 +531,10 @@ async function cr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
530
531
|
}
|
|
531
532
|
);
|
|
532
533
|
}
|
|
533
|
-
const
|
|
534
|
-
orderFormId:
|
|
535
|
-
sellerCode:
|
|
536
|
-
sellerName:
|
|
534
|
+
const fr = l.object({
|
|
535
|
+
orderFormId: l.string().nullable(),
|
|
536
|
+
sellerCode: l.string().nullable(),
|
|
537
|
+
sellerName: l.string().nullable()
|
|
537
538
|
});
|
|
538
539
|
async function ze({
|
|
539
540
|
apiUrl: e,
|
|
@@ -544,23 +545,23 @@ async function ze({
|
|
|
544
545
|
console.error("[ERROR FETCHING] Body is required");
|
|
545
546
|
return;
|
|
546
547
|
}
|
|
547
|
-
await
|
|
548
|
-
const { orderFormId: n, sellerCode: a, sellerName: o } = t,
|
|
548
|
+
await fr.validate(t);
|
|
549
|
+
const { orderFormId: n, sellerCode: a, sellerName: o } = t, c = a ? `${a.trim()} - ${o}` : null;
|
|
549
550
|
return T(
|
|
550
551
|
`${e}/api/checkout/pub/orderForm/${n}/attachments/openTextField`,
|
|
551
552
|
{
|
|
552
553
|
method: "POST",
|
|
553
554
|
body: {
|
|
554
|
-
value:
|
|
555
|
+
value: c
|
|
555
556
|
},
|
|
556
557
|
...r
|
|
557
558
|
}
|
|
558
559
|
);
|
|
559
560
|
}
|
|
560
|
-
const
|
|
561
|
-
orderFormId:
|
|
562
|
-
sellerCode:
|
|
563
|
-
marketingData:
|
|
561
|
+
const hr = l.object({
|
|
562
|
+
orderFormId: l.string().nullable(),
|
|
563
|
+
sellerCode: l.string().nullable(),
|
|
564
|
+
marketingData: l.object()
|
|
564
565
|
});
|
|
565
566
|
async function Ge({
|
|
566
567
|
apiUrl: e,
|
|
@@ -572,8 +573,8 @@ async function Ge({
|
|
|
572
573
|
console.error("[ERROR FETCHING] Body is required");
|
|
573
574
|
return;
|
|
574
575
|
}
|
|
575
|
-
await
|
|
576
|
-
const { orderFormId: a, sellerCode: o, marketingData:
|
|
576
|
+
await hr.validate(t);
|
|
577
|
+
const { orderFormId: a, sellerCode: o, marketingData: c } = t, i = o ? {
|
|
577
578
|
utmCampaign: o ? o.toUpperCase() : "",
|
|
578
579
|
utmiCampaign: o ? `${r.VENDOR_CODE}` : "semcodigo"
|
|
579
580
|
} : {};
|
|
@@ -582,24 +583,24 @@ async function Ge({
|
|
|
582
583
|
{
|
|
583
584
|
method: "POST",
|
|
584
585
|
body: {
|
|
585
|
-
...
|
|
586
|
+
...c,
|
|
586
587
|
...i
|
|
587
588
|
},
|
|
588
589
|
...n
|
|
589
590
|
}
|
|
590
591
|
);
|
|
591
592
|
}
|
|
592
|
-
const
|
|
593
|
-
orderFormId:
|
|
594
|
-
sellerCode:
|
|
595
|
-
sellerName:
|
|
593
|
+
const gr = l.object({
|
|
594
|
+
orderFormId: l.string().nullable(),
|
|
595
|
+
sellerCode: l.string().nullable(),
|
|
596
|
+
sellerName: l.string().nullable()
|
|
596
597
|
});
|
|
597
|
-
async function
|
|
598
|
+
async function br({ apiUrl: e, body: t, fetchOptions: r, extraData: n }) {
|
|
598
599
|
if (!t) {
|
|
599
600
|
console.error("[ERROR FETCHING] Body is required");
|
|
600
601
|
return;
|
|
601
602
|
}
|
|
602
|
-
await
|
|
603
|
+
await gr.validate(t);
|
|
603
604
|
const a = await ze({ apiUrl: e, body: t, fetchOptions: r });
|
|
604
605
|
return Ge({
|
|
605
606
|
apiUrl: e,
|
|
@@ -611,11 +612,11 @@ async function mr({ apiUrl: e, body: t, fetchOptions: r, extraData: n }) {
|
|
|
611
612
|
fetchOptions: r
|
|
612
613
|
});
|
|
613
614
|
}
|
|
614
|
-
const
|
|
615
|
-
orderFormId:
|
|
616
|
-
coupon:
|
|
615
|
+
const wr = l.object({
|
|
616
|
+
orderFormId: l.string().nullable(),
|
|
617
|
+
coupon: l.string().nullable()
|
|
617
618
|
});
|
|
618
|
-
async function
|
|
619
|
+
async function vr({
|
|
619
620
|
apiUrl: e,
|
|
620
621
|
body: t,
|
|
621
622
|
fetchOptions: r
|
|
@@ -624,7 +625,7 @@ async function fr({
|
|
|
624
625
|
console.error("[ERROR FETCHING] Body is required");
|
|
625
626
|
return;
|
|
626
627
|
}
|
|
627
|
-
await
|
|
628
|
+
await wr.validate(t);
|
|
628
629
|
const { coupon: n = "", orderFormId: a } = t;
|
|
629
630
|
return T(
|
|
630
631
|
`${e}/api/checkout/pub/orderForm/${a}/coupons`,
|
|
@@ -635,12 +636,12 @@ async function fr({
|
|
|
635
636
|
}
|
|
636
637
|
);
|
|
637
638
|
}
|
|
638
|
-
const
|
|
639
|
-
appId:
|
|
640
|
-
orderFormId:
|
|
641
|
-
key:
|
|
639
|
+
const yr = l.object({
|
|
640
|
+
appId: l.string().required("App ID is required"),
|
|
641
|
+
orderFormId: l.string().nullable(),
|
|
642
|
+
key: l.array().of(l.string())
|
|
642
643
|
});
|
|
643
|
-
async function
|
|
644
|
+
async function _r({
|
|
644
645
|
apiUrl: e,
|
|
645
646
|
body: t,
|
|
646
647
|
fetchOptions: r
|
|
@@ -649,7 +650,7 @@ async function br({
|
|
|
649
650
|
console.error("[ERROR FETCHING] Body is required");
|
|
650
651
|
return;
|
|
651
652
|
}
|
|
652
|
-
await
|
|
653
|
+
await yr.validate(t);
|
|
653
654
|
const { appId: n = "faststore", orderFormId: a, key: o } = t;
|
|
654
655
|
return T(
|
|
655
656
|
`${e}/api/checkout/pub/orderForm/${a}/customData/${n}/${o}`,
|
|
@@ -659,23 +660,23 @@ async function br({
|
|
|
659
660
|
}
|
|
660
661
|
);
|
|
661
662
|
}
|
|
662
|
-
const
|
|
663
|
-
name:
|
|
664
|
-
content:
|
|
663
|
+
const Rr = l.object().shape({
|
|
664
|
+
name: l.string().required("Attachment name is required"),
|
|
665
|
+
content: l.object().nullable()
|
|
665
666
|
});
|
|
666
667
|
var He;
|
|
667
|
-
const
|
|
668
|
-
attachments: (He =
|
|
669
|
-
id:
|
|
670
|
-
index:
|
|
671
|
-
quantity:
|
|
672
|
-
seller:
|
|
673
|
-
price:
|
|
674
|
-
}),
|
|
675
|
-
orderFormId:
|
|
676
|
-
orderItems:
|
|
668
|
+
const Ir = l.object().shape({
|
|
669
|
+
attachments: (He = l.array().of(Rr)) == null ? void 0 : He.nullable(),
|
|
670
|
+
id: l.string().required("ID of SKU is required"),
|
|
671
|
+
index: l.number().integer().nullable(),
|
|
672
|
+
quantity: l.number().integer().nullable(),
|
|
673
|
+
seller: l.string().required("Seller is required"),
|
|
674
|
+
price: l.number().integer()
|
|
675
|
+
}), Pr = l.object({
|
|
676
|
+
orderFormId: l.string().required("OrderFormId is required"),
|
|
677
|
+
orderItems: l.array().of(Ir)
|
|
677
678
|
});
|
|
678
|
-
async function
|
|
679
|
+
async function xr({
|
|
679
680
|
apiUrl: e,
|
|
680
681
|
body: t,
|
|
681
682
|
fetchOptions: r
|
|
@@ -684,7 +685,7 @@ async function _r({
|
|
|
684
685
|
console.error("[ERROR FETCHING] Body is required");
|
|
685
686
|
return;
|
|
686
687
|
}
|
|
687
|
-
await
|
|
688
|
+
await Pr.validate(t);
|
|
688
689
|
const { orderFormId: n, orderItems: a } = t;
|
|
689
690
|
return T(
|
|
690
691
|
`${e}/api/checkout/pub/orderForm/${n}/items`,
|
|
@@ -695,10 +696,10 @@ async function _r({
|
|
|
695
696
|
}
|
|
696
697
|
);
|
|
697
698
|
}
|
|
698
|
-
const
|
|
699
|
-
orderFormId:
|
|
699
|
+
const Sr = l.object({
|
|
700
|
+
orderFormId: l.string().nullable()
|
|
700
701
|
});
|
|
701
|
-
async function
|
|
702
|
+
async function Cr({
|
|
702
703
|
apiUrl: e,
|
|
703
704
|
body: t,
|
|
704
705
|
fetchOptions: r
|
|
@@ -707,7 +708,7 @@ async function Ir({
|
|
|
707
708
|
console.error("[ERROR FETCHING] Body is required");
|
|
708
709
|
return;
|
|
709
710
|
}
|
|
710
|
-
await
|
|
711
|
+
await Sr.validate(t);
|
|
711
712
|
const { orderFormId: n } = t;
|
|
712
713
|
return T(
|
|
713
714
|
`${e}/api/checkout/pub/orderForm/${n}/items/removeAll`,
|
|
@@ -717,23 +718,23 @@ async function Ir({
|
|
|
717
718
|
}
|
|
718
719
|
);
|
|
719
720
|
}
|
|
720
|
-
const
|
|
721
|
-
name:
|
|
722
|
-
content:
|
|
721
|
+
const kr = l.object().shape({
|
|
722
|
+
name: l.string().required("Attachment name is required"),
|
|
723
|
+
content: l.object().nullable()
|
|
723
724
|
});
|
|
724
725
|
var Me;
|
|
725
|
-
const
|
|
726
|
-
attachments: (Me =
|
|
727
|
-
id:
|
|
728
|
-
index:
|
|
729
|
-
quantity:
|
|
730
|
-
seller:
|
|
731
|
-
price:
|
|
732
|
-
}),
|
|
733
|
-
orderFormId:
|
|
734
|
-
orderItems:
|
|
726
|
+
const Er = l.object().shape({
|
|
727
|
+
attachments: (Me = l.array().of(kr)) == null ? void 0 : Me.nullable(),
|
|
728
|
+
id: l.string().required("ID of SKU is required"),
|
|
729
|
+
index: l.number().integer().nullable(),
|
|
730
|
+
quantity: l.number().integer().nullable(),
|
|
731
|
+
seller: l.string().required("Seller is required"),
|
|
732
|
+
price: l.number().integer()
|
|
733
|
+
}), Ar = l.object({
|
|
734
|
+
orderFormId: l.string().nullable(),
|
|
735
|
+
orderItems: l.array().of(Er)
|
|
735
736
|
});
|
|
736
|
-
async function
|
|
737
|
+
async function Or({
|
|
737
738
|
apiUrl: e,
|
|
738
739
|
body: t,
|
|
739
740
|
fetchOptions: r
|
|
@@ -742,7 +743,7 @@ async function Cr({
|
|
|
742
743
|
console.error("[ERROR FETCHING] Body is required");
|
|
743
744
|
return;
|
|
744
745
|
}
|
|
745
|
-
await
|
|
746
|
+
await Ar.validate(t);
|
|
746
747
|
const { orderFormId: n, orderItems: a } = t;
|
|
747
748
|
return T(
|
|
748
749
|
`${e}/api/checkout/pub/orderForm/${n}/items/update`,
|
|
@@ -753,10 +754,10 @@ async function Cr({
|
|
|
753
754
|
}
|
|
754
755
|
);
|
|
755
756
|
}
|
|
756
|
-
const
|
|
757
|
-
orderFormId:
|
|
757
|
+
const Tr = l.object({
|
|
758
|
+
orderFormId: l.string().nullable()
|
|
758
759
|
});
|
|
759
|
-
async function
|
|
760
|
+
async function qr({
|
|
760
761
|
apiUrl: e,
|
|
761
762
|
body: t,
|
|
762
763
|
fetchOptions: r
|
|
@@ -765,7 +766,7 @@ async function Ar({
|
|
|
765
766
|
console.error("[ERROR FETCHING] Body is required");
|
|
766
767
|
return;
|
|
767
768
|
}
|
|
768
|
-
await
|
|
769
|
+
await Tr.validate(t);
|
|
769
770
|
const { orderFormId: n } = t;
|
|
770
771
|
return T(
|
|
771
772
|
`${e}/api/checkout/pub/orderForm/${n}/messages/clear`,
|
|
@@ -775,56 +776,56 @@ async function Ar({
|
|
|
775
776
|
}
|
|
776
777
|
);
|
|
777
778
|
}
|
|
778
|
-
const
|
|
779
|
-
id:
|
|
779
|
+
const Nr = l.object({
|
|
780
|
+
id: l.string().nullable(),
|
|
780
781
|
// id offering
|
|
781
|
-
itemIndex:
|
|
782
|
-
orderFormId:
|
|
783
|
-
remove:
|
|
782
|
+
itemIndex: l.number().nullable(),
|
|
783
|
+
orderFormId: l.string().nullable(),
|
|
784
|
+
remove: l.boolean().nullable()
|
|
784
785
|
});
|
|
785
|
-
async function
|
|
786
|
+
async function jr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
786
787
|
if (!t) {
|
|
787
788
|
console.error("[ERROR FETCHING] Body is required");
|
|
788
789
|
return;
|
|
789
790
|
}
|
|
790
|
-
await
|
|
791
|
-
const { itemIndex: n, orderFormId: a, id: o, remove:
|
|
791
|
+
await Nr.validate(t);
|
|
792
|
+
const { itemIndex: n, orderFormId: a, id: o, remove: c } = t, i = c ? `/${o}/remove` : "", d = `${e}/api/checkout/pub/orderForm/${a}/items/${n}/offerings${i}`;
|
|
792
793
|
return T(d, {
|
|
793
794
|
method: "POST",
|
|
794
795
|
body: { id: o },
|
|
795
796
|
...r
|
|
796
797
|
});
|
|
797
798
|
}
|
|
798
|
-
const
|
|
799
|
-
orderFormId:
|
|
799
|
+
const $r = l.object({
|
|
800
|
+
orderFormId: l.string().nullable()
|
|
800
801
|
});
|
|
801
|
-
async function
|
|
802
|
+
async function Fr({
|
|
802
803
|
apiUrl: e,
|
|
803
804
|
body: t,
|
|
804
805
|
fetchOptions: r,
|
|
805
806
|
extraData: n
|
|
806
807
|
}) {
|
|
807
|
-
var
|
|
808
|
+
var c;
|
|
808
809
|
if (!t) {
|
|
809
810
|
console.error("[ERROR FETCHING] Body is required");
|
|
810
811
|
return;
|
|
811
812
|
}
|
|
812
|
-
await
|
|
813
|
+
await $r.validate(t);
|
|
813
814
|
const a = new URLSearchParams({
|
|
814
815
|
refreshOutdatedData: "true"
|
|
815
|
-
}), o = t.orderFormId && ((
|
|
816
|
+
}), o = t.orderFormId && ((c = n.orderFormPurchaseId) == null ? void 0 : c.value) !== t.orderFormId ? `${e}/api/checkout/pub/orderForm/${t.orderFormId}?${String(a)}` : `${e}/api/checkout/pub/orderForm`;
|
|
816
817
|
return T(o, { method: "GET", ...r });
|
|
817
818
|
}
|
|
818
|
-
const
|
|
819
|
-
orderFormId:
|
|
820
|
-
email:
|
|
821
|
-
firstName:
|
|
822
|
-
lastName:
|
|
823
|
-
documentType:
|
|
824
|
-
document:
|
|
825
|
-
phone:
|
|
819
|
+
const Lr = l.object({
|
|
820
|
+
orderFormId: l.string().nullable(),
|
|
821
|
+
email: l.string().email().required(),
|
|
822
|
+
firstName: l.string().required(),
|
|
823
|
+
lastName: l.string().required(),
|
|
824
|
+
documentType: l.string().required(),
|
|
825
|
+
document: l.string().required(),
|
|
826
|
+
phone: l.string().matches(/^\+\d{1,3}\d{10,11}$/)
|
|
826
827
|
});
|
|
827
|
-
async function
|
|
828
|
+
async function Dr({
|
|
828
829
|
apiUrl: e,
|
|
829
830
|
body: t,
|
|
830
831
|
fetchOptions: r
|
|
@@ -833,7 +834,7 @@ async function jr({
|
|
|
833
834
|
console.error("[ERROR FETCHING] Body is required");
|
|
834
835
|
return;
|
|
835
836
|
}
|
|
836
|
-
await
|
|
837
|
+
await Lr.validate(t);
|
|
837
838
|
const { orderFormId: n, ...a } = t;
|
|
838
839
|
return T(
|
|
839
840
|
`${e}/api/checkout/pub/orderForm/${n}/attachments/clientProfileData`,
|
|
@@ -844,10 +845,10 @@ async function jr({
|
|
|
844
845
|
}
|
|
845
846
|
);
|
|
846
847
|
}
|
|
847
|
-
const
|
|
848
|
-
sellerCode:
|
|
848
|
+
const Ur = l.object({
|
|
849
|
+
sellerCode: l.string().nullable()
|
|
849
850
|
});
|
|
850
|
-
async function
|
|
851
|
+
async function Hr({
|
|
851
852
|
apiUrl: e,
|
|
852
853
|
body: t,
|
|
853
854
|
extraData: r,
|
|
@@ -857,7 +858,7 @@ async function $r({
|
|
|
857
858
|
console.error("[ERROR FETCHING] Body is required");
|
|
858
859
|
return;
|
|
859
860
|
}
|
|
860
|
-
await
|
|
861
|
+
await Ur.validate(t);
|
|
861
862
|
const { sellerCode: a = "" } = t;
|
|
862
863
|
return T(
|
|
863
864
|
`${e}/api/dataentities/${r.ENTITIES}/search?_fields=${r.FIELDS}&${r.FILTER}=${a}`,
|
|
@@ -870,12 +871,12 @@ async function $r({
|
|
|
870
871
|
}
|
|
871
872
|
);
|
|
872
873
|
}
|
|
873
|
-
const
|
|
874
|
-
country:
|
|
875
|
-
orderFormId:
|
|
876
|
-
postalCode:
|
|
874
|
+
const Mr = l.object().shape({
|
|
875
|
+
country: l.string().length(3, "Country code must be 3 characters long").required("Country is required"),
|
|
876
|
+
orderFormId: l.string().nullable(),
|
|
877
|
+
postalCode: l.string().nullable()
|
|
877
878
|
});
|
|
878
|
-
async function
|
|
879
|
+
async function Br({
|
|
879
880
|
apiUrl: e,
|
|
880
881
|
body: t,
|
|
881
882
|
fetchOptions: r
|
|
@@ -884,8 +885,8 @@ async function Dr({
|
|
|
884
885
|
console.error("[ERROR FETCHING] Body is required");
|
|
885
886
|
return;
|
|
886
887
|
}
|
|
887
|
-
await
|
|
888
|
-
const { country: n, orderFormId: a, postalCode: o } = t,
|
|
888
|
+
await Mr.validate(t);
|
|
889
|
+
const { country: n, orderFormId: a, postalCode: o } = t, c = o ? {
|
|
889
890
|
address: {
|
|
890
891
|
addressType: "residential",
|
|
891
892
|
postalCode: o,
|
|
@@ -899,45 +900,45 @@ async function Dr({
|
|
|
899
900
|
`${e}/api/checkout/pub/orderForm/${a}/attachments/shippingData`,
|
|
900
901
|
{
|
|
901
902
|
method: "POST",
|
|
902
|
-
body:
|
|
903
|
+
body: c,
|
|
903
904
|
...r
|
|
904
905
|
}
|
|
905
906
|
);
|
|
906
907
|
}
|
|
907
|
-
const
|
|
908
|
-
orderFormId:
|
|
909
|
-
options:
|
|
910
|
-
|
|
911
|
-
itemIndex:
|
|
912
|
-
selectedDeliveryChannel:
|
|
913
|
-
selectedSla:
|
|
908
|
+
const zr = l.object().shape({
|
|
909
|
+
orderFormId: l.string().nullable(),
|
|
910
|
+
options: l.array().of(
|
|
911
|
+
l.object().shape({
|
|
912
|
+
itemIndex: l.number(),
|
|
913
|
+
selectedDeliveryChannel: l.string(),
|
|
914
|
+
selectedSla: l.string()
|
|
914
915
|
})
|
|
915
916
|
),
|
|
916
|
-
selectedAddresses:
|
|
917
|
-
|
|
918
|
-
addressId:
|
|
919
|
-
addressType:
|
|
920
|
-
city:
|
|
921
|
-
complement:
|
|
922
|
-
country:
|
|
923
|
-
geoCoordinates:
|
|
924
|
-
isDisposable:
|
|
925
|
-
neighborhood:
|
|
926
|
-
number:
|
|
927
|
-
postalCode:
|
|
928
|
-
receiverName:
|
|
929
|
-
reference:
|
|
930
|
-
state:
|
|
931
|
-
street:
|
|
917
|
+
selectedAddresses: l.array().of(
|
|
918
|
+
l.object().shape({
|
|
919
|
+
addressId: l.string().required(),
|
|
920
|
+
addressType: l.string().required(),
|
|
921
|
+
city: l.string().nullable(),
|
|
922
|
+
complement: l.string().nullable(),
|
|
923
|
+
country: l.string().required().length(3),
|
|
924
|
+
geoCoordinates: l.array().of(l.number()).required().min(0),
|
|
925
|
+
isDisposable: l.boolean().required(),
|
|
926
|
+
neighborhood: l.string().nullable(),
|
|
927
|
+
number: l.string().nullable(),
|
|
928
|
+
postalCode: l.string().required(),
|
|
929
|
+
receiverName: l.string().nullable(),
|
|
930
|
+
reference: l.string().nullable(),
|
|
931
|
+
state: l.string().nullable(),
|
|
932
|
+
street: l.string().nullable()
|
|
932
933
|
})
|
|
933
934
|
)
|
|
934
935
|
});
|
|
935
|
-
async function
|
|
936
|
+
async function Gr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
936
937
|
if (!t) {
|
|
937
938
|
console.error("[ERROR FETCHING] Body is required");
|
|
938
939
|
return;
|
|
939
940
|
}
|
|
940
|
-
await
|
|
941
|
+
await zr.validate(t);
|
|
941
942
|
const { orderFormId: n, options: a, selectedAddresses: o } = t;
|
|
942
943
|
return T(
|
|
943
944
|
`${e}/api/checkout/pub/orderForm/${n}/attachments/shippingData`,
|
|
@@ -952,48 +953,48 @@ async function Hr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
952
953
|
}
|
|
953
954
|
);
|
|
954
955
|
}
|
|
955
|
-
const
|
|
956
|
-
country:
|
|
957
|
-
postalCode:
|
|
958
|
-
geoCoordinates:
|
|
959
|
-
longitude:
|
|
960
|
-
latitude:
|
|
956
|
+
const Vr = l.object({
|
|
957
|
+
country: l.string().length(3, "Country code must be 3 characters long").required("Country is required"),
|
|
958
|
+
postalCode: l.string().nullable(),
|
|
959
|
+
geoCoordinates: l.object().shape({
|
|
960
|
+
longitude: l.number().required(),
|
|
961
|
+
latitude: l.number().required()
|
|
961
962
|
})
|
|
962
963
|
});
|
|
963
|
-
async function
|
|
964
|
+
async function Wr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
964
965
|
if (!t) {
|
|
965
966
|
console.error("[ERROR FETCHING] Body is required");
|
|
966
967
|
return;
|
|
967
968
|
}
|
|
968
|
-
await
|
|
969
|
-
const { country: n = "", geoCoordinates: a, postalCode: o = "" } = t,
|
|
970
|
-
return o ?
|
|
969
|
+
await Vr.validate(t);
|
|
970
|
+
const { country: n = "", geoCoordinates: a, postalCode: o = "" } = t, c = new URLSearchParams({ country: String(n) });
|
|
971
|
+
return o ? c.append("postalCode", o) : c.append(
|
|
971
972
|
"geoCoordinates",
|
|
972
973
|
`${a == null ? void 0 : a.longitude};${a == null ? void 0 : a.latitude}`
|
|
973
974
|
), await T(
|
|
974
|
-
`${e}/api/checkout/pub/regions/?${
|
|
975
|
+
`${e}/api/checkout/pub/regions/?${c.toString()}`,
|
|
975
976
|
{
|
|
976
977
|
method: "GET",
|
|
977
978
|
...r
|
|
978
979
|
}
|
|
979
980
|
);
|
|
980
981
|
}
|
|
981
|
-
const
|
|
982
|
-
id:
|
|
983
|
-
quantity:
|
|
984
|
-
seller:
|
|
985
|
-
}),
|
|
986
|
-
items:
|
|
987
|
-
country:
|
|
988
|
-
postalCode:
|
|
989
|
-
geoCoordinates:
|
|
982
|
+
const Qr = l.object({
|
|
983
|
+
id: l.string().required("ID of SKU is required"),
|
|
984
|
+
quantity: l.number().integer().required("Quantity of item is required"),
|
|
985
|
+
seller: l.string()
|
|
986
|
+
}), Xr = l.object({
|
|
987
|
+
items: l.array().of(Qr),
|
|
988
|
+
country: l.string().length(3, "Country code must be 3 characters long").required("Country is required"),
|
|
989
|
+
postalCode: l.string().nullable(),
|
|
990
|
+
geoCoordinates: l.array().nullable().of(l.number()).length(2)
|
|
990
991
|
});
|
|
991
|
-
async function
|
|
992
|
+
async function Kr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
992
993
|
if (!t) {
|
|
993
994
|
console.error("[ERROR FETCHING] Body is required");
|
|
994
995
|
return;
|
|
995
996
|
}
|
|
996
|
-
return await
|
|
997
|
+
return await Xr.validate(t), T(
|
|
997
998
|
`${e}/api/checkout/pub/orderForms/simulation`,
|
|
998
999
|
{
|
|
999
1000
|
method: "POST",
|
|
@@ -1002,35 +1003,35 @@ async function Vr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
1002
1003
|
}
|
|
1003
1004
|
);
|
|
1004
1005
|
}
|
|
1005
|
-
const
|
|
1006
|
+
const Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1006
1007
|
__proto__: null,
|
|
1007
|
-
getMasterDataSellerCode:
|
|
1008
|
-
getOrderForm:
|
|
1009
|
-
postOrderFormAddCoupon:
|
|
1010
|
-
postOrderFormAttachClientProfileData:
|
|
1011
|
-
postOrderFormAttachOrderFormData:
|
|
1012
|
-
postOrderFormAttachShippingData:
|
|
1008
|
+
getMasterDataSellerCode: Hr,
|
|
1009
|
+
getOrderForm: Fr,
|
|
1010
|
+
postOrderFormAddCoupon: vr,
|
|
1011
|
+
postOrderFormAttachClientProfileData: Dr,
|
|
1012
|
+
postOrderFormAttachOrderFormData: br,
|
|
1013
|
+
postOrderFormAttachShippingData: Br,
|
|
1013
1014
|
postOrderFormAttachmentsMarketingData: Ge,
|
|
1014
1015
|
postOrderFormAttachmentsOpenTextField: ze,
|
|
1015
|
-
postOrderFormClearMessages:
|
|
1016
|
-
postOrderFormFreightSimulation:
|
|
1017
|
-
postOrderFormItems:
|
|
1018
|
-
postOrderFormRegion:
|
|
1019
|
-
postOrderFormRemoveAllItems:
|
|
1020
|
-
postOrderFormUpdateItems:
|
|
1021
|
-
postOrderFormUpdateShippingData:
|
|
1022
|
-
postOrderformAddress:
|
|
1023
|
-
putOrderFormCustomData:
|
|
1024
|
-
updateOrderFormOffering:
|
|
1025
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1026
|
-
skuId:
|
|
1016
|
+
postOrderFormClearMessages: qr,
|
|
1017
|
+
postOrderFormFreightSimulation: Kr,
|
|
1018
|
+
postOrderFormItems: xr,
|
|
1019
|
+
postOrderFormRegion: Wr,
|
|
1020
|
+
postOrderFormRemoveAllItems: Cr,
|
|
1021
|
+
postOrderFormUpdateItems: Or,
|
|
1022
|
+
postOrderFormUpdateShippingData: Gr,
|
|
1023
|
+
postOrderformAddress: mr,
|
|
1024
|
+
putOrderFormCustomData: _r,
|
|
1025
|
+
updateOrderFormOffering: jr
|
|
1026
|
+
}, Symbol.toStringTag, { value: "Module" })), Jr = l.object({
|
|
1027
|
+
skuId: l.string()
|
|
1027
1028
|
});
|
|
1028
|
-
async function
|
|
1029
|
+
async function Yr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
1029
1030
|
if (!t) {
|
|
1030
1031
|
console.error("[ERROR FETCHING] Body is required");
|
|
1031
1032
|
return;
|
|
1032
1033
|
}
|
|
1033
|
-
await
|
|
1034
|
+
await Jr.validate(t);
|
|
1034
1035
|
const { skuId: n } = t;
|
|
1035
1036
|
return T(
|
|
1036
1037
|
`${e}/api/catalog/pvt/stockkeepingunitkit?parentSkuId=${n}`,
|
|
@@ -1039,15 +1040,15 @@ async function Kr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
1039
1040
|
}
|
|
1040
1041
|
);
|
|
1041
1042
|
}
|
|
1042
|
-
const
|
|
1043
|
-
ids:
|
|
1043
|
+
const en = l.object({
|
|
1044
|
+
ids: l.array().of(l.string().required("ID are required")).required("IDs are required")
|
|
1044
1045
|
});
|
|
1045
|
-
async function
|
|
1046
|
+
async function tn({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
1046
1047
|
if (!t) {
|
|
1047
1048
|
console.error("[ERROR FETCHING] Body is required");
|
|
1048
1049
|
return;
|
|
1049
1050
|
}
|
|
1050
|
-
await
|
|
1051
|
+
await en.validate(t);
|
|
1051
1052
|
const { ids: n } = t;
|
|
1052
1053
|
return T(
|
|
1053
1054
|
`${e}/api/catalog_system/pub/products/search?fq=${n.map((a) => `productId:${a}`).join("&fq=")}`,
|
|
@@ -1056,15 +1057,15 @@ async function Zr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
1056
1057
|
}
|
|
1057
1058
|
);
|
|
1058
1059
|
}
|
|
1059
|
-
const
|
|
1060
|
-
productId:
|
|
1060
|
+
const rn = l.object({
|
|
1061
|
+
productId: l.number().required("Product ID is required")
|
|
1061
1062
|
});
|
|
1062
|
-
async function
|
|
1063
|
+
async function nn({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
1063
1064
|
if (!t) {
|
|
1064
1065
|
console.error("[ERROR FETCHING] Body is required");
|
|
1065
1066
|
return;
|
|
1066
1067
|
}
|
|
1067
|
-
await
|
|
1068
|
+
await rn.validate(t);
|
|
1068
1069
|
const { productId: n } = t;
|
|
1069
1070
|
return T(
|
|
1070
1071
|
`${e}/api/catalog_system/pub/products/crossselling/similars/${n.toString()}`,
|
|
@@ -1073,7 +1074,7 @@ async function Yr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
1073
1074
|
}
|
|
1074
1075
|
);
|
|
1075
1076
|
}
|
|
1076
|
-
async function
|
|
1077
|
+
async function an({
|
|
1077
1078
|
apiUrl: e,
|
|
1078
1079
|
params: t,
|
|
1079
1080
|
fetchOptions: r
|
|
@@ -1085,16 +1086,16 @@ async function en({
|
|
|
1085
1086
|
}
|
|
1086
1087
|
) : (console.error("[ERROR FETCHING] slug is required"), null);
|
|
1087
1088
|
}
|
|
1088
|
-
const
|
|
1089
|
+
const on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1089
1090
|
__proto__: null,
|
|
1090
|
-
getCatalogKitProducts:
|
|
1091
|
-
getCatalogPageInfo:
|
|
1092
|
-
getCatalogProducts:
|
|
1093
|
-
getCatalogSimilars:
|
|
1094
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1095
|
-
query:
|
|
1091
|
+
getCatalogKitProducts: Yr,
|
|
1092
|
+
getCatalogPageInfo: an,
|
|
1093
|
+
getCatalogProducts: tn,
|
|
1094
|
+
getCatalogSimilars: nn
|
|
1095
|
+
}, Symbol.toStringTag, { value: "Module" })), sn = l.object({
|
|
1096
|
+
query: l.string()
|
|
1096
1097
|
});
|
|
1097
|
-
async function
|
|
1098
|
+
async function ln({
|
|
1098
1099
|
apiUrl: e,
|
|
1099
1100
|
body: t,
|
|
1100
1101
|
fetchOptions: r
|
|
@@ -1103,7 +1104,7 @@ async function nn({
|
|
|
1103
1104
|
console.error("[ERROR FETCHING] Body is required");
|
|
1104
1105
|
return;
|
|
1105
1106
|
}
|
|
1106
|
-
await
|
|
1107
|
+
await sn.validate(t);
|
|
1107
1108
|
const { query: n = "" } = t, a = new URLSearchParams({ query: n });
|
|
1108
1109
|
return T(
|
|
1109
1110
|
`${e}/api/io/_v/api/intelligent-search/autocomplete_suggestions?${a.toString()}`,
|
|
@@ -1112,10 +1113,10 @@ async function nn({
|
|
|
1112
1113
|
}
|
|
1113
1114
|
);
|
|
1114
1115
|
}
|
|
1115
|
-
const
|
|
1116
|
+
const cn = (e, t) => Mt(e, t), un = (e) => ({
|
|
1116
1117
|
...e,
|
|
1117
|
-
description: e.description ?
|
|
1118
|
-
}),
|
|
1118
|
+
description: e.description ? cn(e.description) : e.description
|
|
1119
|
+
}), dn = ({
|
|
1119
1120
|
offer: e,
|
|
1120
1121
|
seller: t,
|
|
1121
1122
|
product: r
|
|
@@ -1125,8 +1126,8 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
|
|
|
1125
1126
|
seller: t
|
|
1126
1127
|
}), Ve = (e, t) => ({
|
|
1127
1128
|
...e,
|
|
1128
|
-
isVariantOf:
|
|
1129
|
-
}),
|
|
1129
|
+
isVariantOf: un(t)
|
|
1130
|
+
}), pn = (e) => e ? "https://schema.org/InStock" : "https://schema.org/OutOfStock", ie = (e) => e.AvailableQuantity > 0, Le = (e) => e.spotPrice ?? 0, mn = (e) => e.Price ?? 0, We = (e, t) => ie(e) && !ie(t) ? -1 : !ie(e) && ie(t) ? 1 : Le(e) - Le(t), fn = (e, t) => {
|
|
1130
1131
|
let r = 0;
|
|
1131
1132
|
for (let n = 1; n < e.length; n++)
|
|
1132
1133
|
t(e[r], e[n]) > 0 && (r = n);
|
|
@@ -1137,12 +1138,12 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
|
|
|
1137
1138
|
offer: a.commertialOffer,
|
|
1138
1139
|
sku: n
|
|
1139
1140
|
}))
|
|
1140
|
-
), r =
|
|
1141
|
+
), r = fn(
|
|
1141
1142
|
t,
|
|
1142
1143
|
({ offer: n }, { offer: a }) => We(n, a)
|
|
1143
1144
|
);
|
|
1144
1145
|
return r ? r.sku : e[0];
|
|
1145
|
-
},
|
|
1146
|
+
}, Xe = (e) => e.map(
|
|
1146
1147
|
({ imageUrl: t, imageText: r, imageLabel: n }) => ({
|
|
1147
1148
|
alternateName: r ?? "",
|
|
1148
1149
|
url: t.replace("vteximg.com.br", "vtexassets.com"),
|
|
@@ -1152,11 +1153,11 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
|
|
|
1152
1153
|
attachment: "ATTACHMENT",
|
|
1153
1154
|
specification: "SPECIFICATION",
|
|
1154
1155
|
attribute: "ATTRIBUTE"
|
|
1155
|
-
},
|
|
1156
|
+
}, hn = (e) => ({
|
|
1156
1157
|
name: e.name,
|
|
1157
1158
|
value: e.content,
|
|
1158
1159
|
valueReference: ce.attachment
|
|
1159
|
-
}),
|
|
1160
|
+
}), gn = (e) => ({
|
|
1160
1161
|
propertyID: e.id,
|
|
1161
1162
|
name: e.name,
|
|
1162
1163
|
value: e.value,
|
|
@@ -1165,31 +1166,31 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
|
|
|
1165
1166
|
visible: e.visible
|
|
1166
1167
|
}
|
|
1167
1168
|
}), ue = (e, t, r) => {
|
|
1168
|
-
const n = e.flatMap(({ name:
|
|
1169
|
-
name:
|
|
1169
|
+
const n = e.flatMap(({ name: c, values: i }) => i ? i.map((d) => ({
|
|
1170
|
+
name: c,
|
|
1170
1171
|
value: d,
|
|
1171
1172
|
valueReference: ce.specification
|
|
1172
1173
|
})) : {
|
|
1173
|
-
name:
|
|
1174
|
+
name: c,
|
|
1174
1175
|
value: "",
|
|
1175
1176
|
valueReference: ce.specification
|
|
1176
|
-
}), a = Array.isArray(r) ? r.map(
|
|
1177
|
+
}), a = Array.isArray(r) ? r.map(hn) : [], o = t ? t.map(gn) : [];
|
|
1177
1178
|
return [
|
|
1178
1179
|
...n,
|
|
1179
1180
|
...a,
|
|
1180
1181
|
...o
|
|
1181
1182
|
];
|
|
1182
|
-
}, De = "ÁÄÂÀÃÅČÇĆĎÉĚËÈÊẼĔȆÍÌÎÏŇÑÓÖÒÔÕØŘŔŠŤÚŮÜÙÛÝŸŽáäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a",
|
|
1183
|
+
}, De = "ÁÄÂÀÃÅČÇĆĎÉĚËÈÊẼĔȆÍÌÎÏŇÑÓÖÒÔÕØŘŔŠŤÚŮÜÙÛÝŸŽáäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a", bn = "AAAAAACCCDEEEEEEEEIIIINNOOOOOORRSTUUUUUYYZaaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa", wn = (e) => {
|
|
1183
1184
|
let t = e.slice(0);
|
|
1184
1185
|
for (let r = 0; r < De.length; r++)
|
|
1185
1186
|
t = t.replace(
|
|
1186
1187
|
new RegExp(De.charAt(r), "g"),
|
|
1187
|
-
|
|
1188
|
+
bn.charAt(r)
|
|
1188
1189
|
);
|
|
1189
1190
|
return t;
|
|
1190
|
-
},
|
|
1191
|
+
}, vn = (e) => e.replace(/[·/_,:]/, "-"), Ke = (e) => {
|
|
1191
1192
|
const r = e.replace(/,/g, "").replace(/[*+~.()'"!:@&\[\]`/ %$#?{}|><=_^]/g, "-");
|
|
1192
|
-
return
|
|
1193
|
+
return vn(wn(r)).toLowerCase();
|
|
1193
1194
|
}, Ze = (e) => `/${e}/p`, Je = (e) => {
|
|
1194
1195
|
const t = Math.max(
|
|
1195
1196
|
...e.map((n) => n.NumberOfInstallments)
|
|
@@ -1206,7 +1207,7 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
|
|
|
1206
1207
|
listPrice: 0,
|
|
1207
1208
|
sellerDefault: !1
|
|
1208
1209
|
}, a = e.map(
|
|
1209
|
-
(o) =>
|
|
1210
|
+
(o) => dn({
|
|
1210
1211
|
offer: o.commertialOffer,
|
|
1211
1212
|
seller: o,
|
|
1212
1213
|
product: t
|
|
@@ -1214,7 +1215,7 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
|
|
|
1214
1215
|
).sort(We).map((o) => (o.seller.sellerId === "1" && o.AvailableQuantity > 0 && (r.price = o.Price, r.listPrice = o.ListPrice, r.sellerDefault = !0), {
|
|
1215
1216
|
availability: o.AvailableQuantity > 0,
|
|
1216
1217
|
listPrice: o.ListPrice,
|
|
1217
|
-
price:
|
|
1218
|
+
price: mn(o),
|
|
1218
1219
|
priceValidUntil: o.PriceValidUntil,
|
|
1219
1220
|
priceCurrency: "BRL",
|
|
1220
1221
|
installments: o.Installments,
|
|
@@ -1235,20 +1236,20 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
|
|
|
1235
1236
|
additionalProperty: ue(o, t, []),
|
|
1236
1237
|
name: n,
|
|
1237
1238
|
offers: {
|
|
1238
|
-
offers: a == null ? void 0 : a.map(({ sellerId:
|
|
1239
|
-
availability:
|
|
1239
|
+
offers: a == null ? void 0 : a.map(({ sellerId: c, commertialOffer: i }) => ({
|
|
1240
|
+
availability: pn(i.AvailableQuantity > 0),
|
|
1240
1241
|
listPrice: i.ListPrice,
|
|
1241
1242
|
price: i.Price,
|
|
1242
1243
|
quantity: i.AvailableQuantity,
|
|
1243
1244
|
seller: {
|
|
1244
|
-
identifier:
|
|
1245
|
+
identifier: c
|
|
1245
1246
|
}
|
|
1246
1247
|
}))
|
|
1247
1248
|
},
|
|
1248
1249
|
sku: r
|
|
1249
1250
|
// slug: getSlug('', itemId), // getSlug('', itemId) que tipo de slug é esse?
|
|
1250
1251
|
};
|
|
1251
|
-
},
|
|
1252
|
+
}, yn = (e) => {
|
|
1252
1253
|
var R;
|
|
1253
1254
|
const {
|
|
1254
1255
|
attributes: t,
|
|
@@ -1256,7 +1257,7 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
|
|
|
1256
1257
|
isVariantOf: n,
|
|
1257
1258
|
images: a,
|
|
1258
1259
|
itemId: o,
|
|
1259
|
-
name:
|
|
1260
|
+
name: c,
|
|
1260
1261
|
sellers: i,
|
|
1261
1262
|
videos: d,
|
|
1262
1263
|
variations: g
|
|
@@ -1270,20 +1271,20 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
|
|
|
1270
1271
|
clusterHighlights: p,
|
|
1271
1272
|
productName: b,
|
|
1272
1273
|
properties: m,
|
|
1273
|
-
productId:
|
|
1274
|
-
productReference:
|
|
1275
|
-
} = n,
|
|
1274
|
+
productId: f,
|
|
1275
|
+
productReference: h
|
|
1276
|
+
} = n, E = u.slice().reverse(), N = Ye(i, e.isVariantOf), I = Je(N.offers[0].installments);
|
|
1276
1277
|
return {
|
|
1277
1278
|
sku: o,
|
|
1278
|
-
gtin: ((R = r == null ? void 0 : r[0]) == null ? void 0 : R.Value) ??
|
|
1279
|
-
name: b ??
|
|
1279
|
+
gtin: ((R = r == null ? void 0 : r[0]) == null ? void 0 : R.Value) ?? h ?? "",
|
|
1280
|
+
name: b ?? c,
|
|
1280
1281
|
description: v,
|
|
1281
1282
|
releaseDate: n.releaseDate ?? "",
|
|
1282
1283
|
slug: y,
|
|
1283
1284
|
video: d[0],
|
|
1284
1285
|
categories: u,
|
|
1285
1286
|
categoriesIds: w,
|
|
1286
|
-
id:
|
|
1287
|
+
id: f,
|
|
1287
1288
|
brand: { name: s, brandName: s },
|
|
1288
1289
|
seo: {
|
|
1289
1290
|
description: v,
|
|
@@ -1298,8 +1299,8 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
|
|
|
1298
1299
|
availability: { status: N.offers[0].availability },
|
|
1299
1300
|
breadcrumbList: {
|
|
1300
1301
|
itemListElement: [
|
|
1301
|
-
...
|
|
1302
|
-
const
|
|
1302
|
+
...E.map((C, j) => {
|
|
1303
|
+
const F = C.split("/"), D = F[F.length - 2], U = F.map(Ke).join("/");
|
|
1303
1304
|
return {
|
|
1304
1305
|
name: D,
|
|
1305
1306
|
item: U,
|
|
@@ -1314,7 +1315,7 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
|
|
|
1314
1315
|
],
|
|
1315
1316
|
numberOfItems: u.length
|
|
1316
1317
|
},
|
|
1317
|
-
image:
|
|
1318
|
+
image: Xe(a),
|
|
1318
1319
|
offers: N,
|
|
1319
1320
|
additionalProperty: ue(g, t, []),
|
|
1320
1321
|
isVariantOf: {
|
|
@@ -1323,7 +1324,7 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
|
|
|
1323
1324
|
},
|
|
1324
1325
|
installments: I
|
|
1325
1326
|
};
|
|
1326
|
-
},
|
|
1327
|
+
}, _n = (e) => {
|
|
1327
1328
|
var I;
|
|
1328
1329
|
const {
|
|
1329
1330
|
attributes: t,
|
|
@@ -1331,7 +1332,7 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
|
|
|
1331
1332
|
isVariantOf: n,
|
|
1332
1333
|
images: a,
|
|
1333
1334
|
itemId: o,
|
|
1334
|
-
name:
|
|
1335
|
+
name: c,
|
|
1335
1336
|
sellers: i,
|
|
1336
1337
|
Videos: d,
|
|
1337
1338
|
variations: g
|
|
@@ -1345,12 +1346,12 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
|
|
|
1345
1346
|
productName: p,
|
|
1346
1347
|
Coleção: b,
|
|
1347
1348
|
"ID Coleção": m,
|
|
1348
|
-
productId:
|
|
1349
|
-
} = n,
|
|
1349
|
+
productId: f
|
|
1350
|
+
} = n, h = u.slice().reverse(), E = Ye(i, e.isVariantOf), N = Je(E.offers[0].installments);
|
|
1350
1351
|
return {
|
|
1351
1352
|
sku: o,
|
|
1352
1353
|
gtin: ((I = r[0]) == null ? void 0 : I.Value) ?? "",
|
|
1353
|
-
name: p ??
|
|
1354
|
+
name: p ?? c,
|
|
1354
1355
|
description: v,
|
|
1355
1356
|
releaseDate: n.releaseDate ?? "",
|
|
1356
1357
|
slug: y,
|
|
@@ -1359,7 +1360,7 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
|
|
|
1359
1360
|
categoriesIds: w,
|
|
1360
1361
|
collection: b,
|
|
1361
1362
|
collectionId: m,
|
|
1362
|
-
id:
|
|
1363
|
+
id: f,
|
|
1363
1364
|
brand: { name: s, brandName: s },
|
|
1364
1365
|
seo: {
|
|
1365
1366
|
description: v,
|
|
@@ -1371,13 +1372,13 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
|
|
|
1371
1372
|
highlights: []
|
|
1372
1373
|
// TODO: add highlights
|
|
1373
1374
|
},
|
|
1374
|
-
availability: { status:
|
|
1375
|
+
availability: { status: E.offers[0].availability },
|
|
1375
1376
|
breadcrumbList: {
|
|
1376
1377
|
itemListElement: [
|
|
1377
|
-
...
|
|
1378
|
-
const j = R.split("/"),
|
|
1378
|
+
...h.map((R, C) => {
|
|
1379
|
+
const j = R.split("/"), F = j[j.length - 2], D = j.map(Ke).join("/");
|
|
1379
1380
|
return {
|
|
1380
|
-
name:
|
|
1381
|
+
name: F,
|
|
1381
1382
|
item: D,
|
|
1382
1383
|
position: C + 1
|
|
1383
1384
|
};
|
|
@@ -1390,15 +1391,15 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
|
|
|
1390
1391
|
],
|
|
1391
1392
|
numberOfItems: u.length
|
|
1392
1393
|
},
|
|
1393
|
-
image:
|
|
1394
|
-
offers:
|
|
1394
|
+
image: Xe(a),
|
|
1395
|
+
offers: E,
|
|
1395
1396
|
additionalProperty: ue(g, t, []),
|
|
1396
1397
|
isVariantOf: {
|
|
1397
1398
|
productGroupID: n.productId,
|
|
1398
1399
|
hasVariant: n.items.map((R) => {
|
|
1399
|
-
const { variations: C } = R, j = C.map((
|
|
1400
|
-
name:
|
|
1401
|
-
values: R[
|
|
1400
|
+
const { variations: C } = R, j = C.map((F) => ({
|
|
1401
|
+
name: F,
|
|
1402
|
+
values: R[F]
|
|
1402
1403
|
}));
|
|
1403
1404
|
return {
|
|
1404
1405
|
...et(R),
|
|
@@ -1412,13 +1413,13 @@ const an = (e, t) => Dt(e, t), on = (e) => ({
|
|
|
1412
1413
|
},
|
|
1413
1414
|
installments: N
|
|
1414
1415
|
};
|
|
1415
|
-
},
|
|
1416
|
-
|
|
1417
|
-
key:
|
|
1418
|
-
value:
|
|
1416
|
+
}, Rn = l.array().of(
|
|
1417
|
+
l.object({
|
|
1418
|
+
key: l.string().required(),
|
|
1419
|
+
value: l.string().required()
|
|
1419
1420
|
})
|
|
1420
1421
|
).required("Facets are required");
|
|
1421
|
-
async function
|
|
1422
|
+
async function In({
|
|
1422
1423
|
apiUrl: e,
|
|
1423
1424
|
body: t,
|
|
1424
1425
|
fetchOptions: r
|
|
@@ -1427,18 +1428,18 @@ async function vn({
|
|
|
1427
1428
|
console.error("[ERROR FETCHING] Body is required");
|
|
1428
1429
|
return;
|
|
1429
1430
|
}
|
|
1430
|
-
await
|
|
1431
|
-
const n = new URLSearchParams({}), a = t.map(({ key:
|
|
1431
|
+
await Rn.validate(t);
|
|
1432
|
+
const n = new URLSearchParams({}), a = t.map(({ key: c, value: i }) => `${c}/${i}`).join("/");
|
|
1432
1433
|
_t(t, n);
|
|
1433
1434
|
const o = `${e}/api/catalog_system/pub/products/crossselling/${a}`;
|
|
1434
1435
|
return T(o, {
|
|
1435
1436
|
cache: "no-store",
|
|
1436
1437
|
...r
|
|
1437
|
-
}).then((
|
|
1438
|
+
}).then((c) => c.map((d) => {
|
|
1438
1439
|
const g = Qe(d.items);
|
|
1439
1440
|
return g && Ve(g, d);
|
|
1440
1441
|
}).filter((d) => !!d).map((d) => ({
|
|
1441
|
-
node:
|
|
1442
|
+
node: _n(d)
|
|
1442
1443
|
})));
|
|
1443
1444
|
}
|
|
1444
1445
|
const tt = ({
|
|
@@ -1454,7 +1455,7 @@ const tt = ({
|
|
|
1454
1455
|
const {
|
|
1455
1456
|
query: a = "",
|
|
1456
1457
|
page: o = 1,
|
|
1457
|
-
count:
|
|
1458
|
+
count: c,
|
|
1458
1459
|
sort: i = "",
|
|
1459
1460
|
facets: d = [],
|
|
1460
1461
|
type: g,
|
|
@@ -1462,7 +1463,7 @@ const tt = ({
|
|
|
1462
1463
|
locale: u = ""
|
|
1463
1464
|
} = t, w = new URLSearchParams({
|
|
1464
1465
|
page: o.toString(),
|
|
1465
|
-
count: (
|
|
1466
|
+
count: (c == null ? void 0 : c.toString()) ?? (n == null ? void 0 : n.ITEMS_PER_PAGE) ?? 24,
|
|
1466
1467
|
query: a,
|
|
1467
1468
|
sort: i,
|
|
1468
1469
|
locale: u
|
|
@@ -1480,7 +1481,7 @@ const tt = ({
|
|
|
1480
1481
|
}
|
|
1481
1482
|
);
|
|
1482
1483
|
};
|
|
1483
|
-
async function
|
|
1484
|
+
async function Pn({
|
|
1484
1485
|
body: e,
|
|
1485
1486
|
extraData: t,
|
|
1486
1487
|
...r
|
|
@@ -1499,25 +1500,25 @@ async function yn({
|
|
|
1499
1500
|
}), a = (n == null ? void 0 : n.products.map((i) => {
|
|
1500
1501
|
const d = Qe(i.items);
|
|
1501
1502
|
return d && Ve(d, i);
|
|
1502
|
-
}).filter((i) => !!i)) ?? [], { pagination: o, recordsFiltered:
|
|
1503
|
+
}).filter((i) => !!i)) ?? [], { pagination: o, recordsFiltered: c } = n;
|
|
1503
1504
|
return {
|
|
1504
1505
|
data: {
|
|
1505
1506
|
pagination: {
|
|
1506
1507
|
nextPage: o.after.length > 0,
|
|
1507
1508
|
previousPage: o.before.length > 0,
|
|
1508
1509
|
startCursor: "0",
|
|
1509
|
-
endCursor:
|
|
1510
|
-
count:
|
|
1510
|
+
endCursor: c.toString(),
|
|
1511
|
+
count: c,
|
|
1511
1512
|
total: o.count
|
|
1512
1513
|
},
|
|
1513
1514
|
products: a.map((i, d) => ({
|
|
1514
|
-
node:
|
|
1515
|
+
node: yn(i),
|
|
1515
1516
|
cursor: d.toString()
|
|
1516
1517
|
}))
|
|
1517
1518
|
}
|
|
1518
1519
|
};
|
|
1519
1520
|
}
|
|
1520
|
-
async function
|
|
1521
|
+
async function xn({ body: e, extraData: t, ...r }) {
|
|
1521
1522
|
if (!e) {
|
|
1522
1523
|
console.error("[ERROR FETCHING] Body is required");
|
|
1523
1524
|
return;
|
|
@@ -1537,16 +1538,16 @@ async function _n({ body: e, extraData: t, ...r }) {
|
|
|
1537
1538
|
}
|
|
1538
1539
|
};
|
|
1539
1540
|
}
|
|
1540
|
-
const
|
|
1541
|
-
query:
|
|
1542
|
-
locale:
|
|
1541
|
+
const Sn = l.object({
|
|
1542
|
+
query: l.string().optional(),
|
|
1543
|
+
locale: l.string().optional()
|
|
1543
1544
|
});
|
|
1544
|
-
async function
|
|
1545
|
+
async function Cn({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
1545
1546
|
if (!t) {
|
|
1546
1547
|
console.error("[ERROR FETCHING] Body is required");
|
|
1547
1548
|
return;
|
|
1548
1549
|
}
|
|
1549
|
-
await
|
|
1550
|
+
await Sn.validate(t);
|
|
1550
1551
|
const { query: n = "", locale: a = "default_locale" } = t, o = new URLSearchParams({ query: n, locale: a });
|
|
1551
1552
|
return T(
|
|
1552
1553
|
`${e}/api/io/_v/api/intelligent-search/search_suggestions?${o.toString()}`,
|
|
@@ -1555,22 +1556,22 @@ async function In({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
1555
1556
|
}
|
|
1556
1557
|
);
|
|
1557
1558
|
}
|
|
1558
|
-
async function
|
|
1559
|
+
async function kn({ apiUrl: e }) {
|
|
1559
1560
|
return T(`${e}/api/io/_v/api/intelligent-search/top_searches`);
|
|
1560
1561
|
}
|
|
1561
|
-
const
|
|
1562
|
+
const En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1562
1563
|
__proto__: null,
|
|
1563
|
-
getSearchAutoCompleteSuggestions:
|
|
1564
|
-
getSearchCrossellingProducts:
|
|
1565
|
-
getSearchFacets:
|
|
1566
|
-
getSearchProducts:
|
|
1567
|
-
getSearchSuggestedTerms:
|
|
1568
|
-
getSearchTopSearchs:
|
|
1569
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1570
|
-
masterDataEntity:
|
|
1571
|
-
payload:
|
|
1564
|
+
getSearchAutoCompleteSuggestions: ln,
|
|
1565
|
+
getSearchCrossellingProducts: In,
|
|
1566
|
+
getSearchFacets: xn,
|
|
1567
|
+
getSearchProducts: Pn,
|
|
1568
|
+
getSearchSuggestedTerms: Cn,
|
|
1569
|
+
getSearchTopSearchs: kn
|
|
1570
|
+
}, Symbol.toStringTag, { value: "Module" })), An = l.object({
|
|
1571
|
+
masterDataEntity: l.string().nonNullable(),
|
|
1572
|
+
payload: l.object().shape({}).nullable()
|
|
1572
1573
|
});
|
|
1573
|
-
async function
|
|
1574
|
+
async function On({
|
|
1574
1575
|
apiUrl: e,
|
|
1575
1576
|
body: t,
|
|
1576
1577
|
fetchOptions: r
|
|
@@ -1579,7 +1580,7 @@ async function Cn({
|
|
|
1579
1580
|
console.error("[ERROR FETCHING] Body is required");
|
|
1580
1581
|
return;
|
|
1581
1582
|
}
|
|
1582
|
-
await
|
|
1583
|
+
await An.validate(t);
|
|
1583
1584
|
const { masterDataEntity: n, payload: a } = t, o = `${e}/api/dataentities/${n}/documents`;
|
|
1584
1585
|
return T(o, {
|
|
1585
1586
|
method: "POST",
|
|
@@ -1589,21 +1590,21 @@ async function Cn({
|
|
|
1589
1590
|
...r
|
|
1590
1591
|
});
|
|
1591
1592
|
}
|
|
1592
|
-
const
|
|
1593
|
-
_where:
|
|
1594
|
-
_fields:
|
|
1595
|
-
_sort:
|
|
1596
|
-
_from:
|
|
1597
|
-
_to:
|
|
1598
|
-
_keyword:
|
|
1599
|
-
}),
|
|
1600
|
-
masterDataEntity:
|
|
1601
|
-
searchFields:
|
|
1602
|
-
headers:
|
|
1603
|
-
"REST-Range":
|
|
1593
|
+
const Tn = l.object().shape({
|
|
1594
|
+
_where: l.string().optional(),
|
|
1595
|
+
_fields: l.string().optional(),
|
|
1596
|
+
_sort: l.string().optional(),
|
|
1597
|
+
_from: l.number().integer().min(0).optional(),
|
|
1598
|
+
_to: l.number().integer().min(0).optional(),
|
|
1599
|
+
_keyword: l.string().optional()
|
|
1600
|
+
}), qn = l.object({
|
|
1601
|
+
masterDataEntity: l.string().required(),
|
|
1602
|
+
searchFields: Tn,
|
|
1603
|
+
headers: l.object().shape({
|
|
1604
|
+
"REST-Range": l.string().notRequired()
|
|
1604
1605
|
})
|
|
1605
1606
|
});
|
|
1606
|
-
async function
|
|
1607
|
+
async function Nn({
|
|
1607
1608
|
apiUrl: e,
|
|
1608
1609
|
body: t,
|
|
1609
1610
|
fetchOptions: r
|
|
@@ -1613,8 +1614,8 @@ async function En({
|
|
|
1613
1614
|
return;
|
|
1614
1615
|
}
|
|
1615
1616
|
const n = new URLSearchParams();
|
|
1616
|
-
await
|
|
1617
|
-
const { masterDataEntity: a, searchFields: o, headers:
|
|
1617
|
+
await qn.validate(t);
|
|
1618
|
+
const { masterDataEntity: a, searchFields: o, headers: c } = t;
|
|
1618
1619
|
o && Object.entries(o).forEach(([g, s]) => {
|
|
1619
1620
|
n.append(g, String(s));
|
|
1620
1621
|
}), "_fields" in o || n == null || n.append("_fields", "_all");
|
|
@@ -1626,7 +1627,7 @@ async function En({
|
|
|
1626
1627
|
{
|
|
1627
1628
|
method: "GET",
|
|
1628
1629
|
headers: {
|
|
1629
|
-
"REST-Range": (
|
|
1630
|
+
"REST-Range": (c == null ? void 0 : c["REST-Range"]) ?? "resources=0-100",
|
|
1630
1631
|
...r == null ? void 0 : r.headers
|
|
1631
1632
|
},
|
|
1632
1633
|
cache: "no-store"
|
|
@@ -1641,12 +1642,12 @@ async function En({
|
|
|
1641
1642
|
} while (d);
|
|
1642
1643
|
return i;
|
|
1643
1644
|
}
|
|
1644
|
-
const
|
|
1645
|
-
dataEntityName:
|
|
1646
|
-
id:
|
|
1647
|
-
fieldsToBeUpdated:
|
|
1645
|
+
const jn = l.object({
|
|
1646
|
+
dataEntityName: l.string().required(),
|
|
1647
|
+
id: l.string().required(),
|
|
1648
|
+
fieldsToBeUpdated: l.object().shape({})
|
|
1648
1649
|
});
|
|
1649
|
-
async function
|
|
1650
|
+
async function $n({
|
|
1650
1651
|
apiUrl: e,
|
|
1651
1652
|
body: t,
|
|
1652
1653
|
fetchOptions: r
|
|
@@ -1655,9 +1656,9 @@ async function Tn({
|
|
|
1655
1656
|
console.error("[ERROR FETCHING] Body is required");
|
|
1656
1657
|
return;
|
|
1657
1658
|
}
|
|
1658
|
-
await
|
|
1659
|
-
const { dataEntityName: n, id: a, fieldsToBeUpdated: o } = t,
|
|
1660
|
-
return T(
|
|
1659
|
+
await jn.validate(t);
|
|
1660
|
+
const { dataEntityName: n, id: a, fieldsToBeUpdated: o } = t, c = `${e}/api/dataentities/${n}/documents/${a}`;
|
|
1661
|
+
return T(c, {
|
|
1661
1662
|
body: {
|
|
1662
1663
|
fieldsToBeUpdated: o
|
|
1663
1664
|
},
|
|
@@ -1665,28 +1666,28 @@ async function Tn({
|
|
|
1665
1666
|
...r
|
|
1666
1667
|
});
|
|
1667
1668
|
}
|
|
1668
|
-
const
|
|
1669
|
+
const Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1669
1670
|
__proto__: null,
|
|
1670
|
-
getSearchMasterdata:
|
|
1671
|
-
patchUpdateMasterdata:
|
|
1672
|
-
postMasterdata:
|
|
1671
|
+
getSearchMasterdata: Nn,
|
|
1672
|
+
patchUpdateMasterdata: $n,
|
|
1673
|
+
postMasterdata: On
|
|
1673
1674
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1674
|
-
async function
|
|
1675
|
+
async function Ln({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
|
|
1675
1676
|
const { productIds: a } = e;
|
|
1676
1677
|
if (!a)
|
|
1677
1678
|
return console.error("[ERROR FETCHING] productIds is required"), [];
|
|
1678
1679
|
const { NAME_SPLIT_SYMBOL: o } = r;
|
|
1679
1680
|
if (!o)
|
|
1680
1681
|
return console.error("[ERROR FETCHING] NAME_SPLIT_SYMBOL is required"), [];
|
|
1681
|
-
const
|
|
1682
|
-
`${t}/api/catalog_system/pub/products/search?fq=${
|
|
1682
|
+
const c = a.map((s) => typeof s == "string" || typeof s == "number" ? `productId:${s}` : "").join("&fq="), i = await T(
|
|
1683
|
+
`${t}/api/catalog_system/pub/products/search?fq=${c}`,
|
|
1683
1684
|
{
|
|
1684
1685
|
...n
|
|
1685
1686
|
}
|
|
1686
1687
|
), d = (s) => Object.keys(s).map((u) => ({ id: u, name: s[u] }));
|
|
1687
1688
|
return i.map((s, u) => {
|
|
1688
|
-
var
|
|
1689
|
-
const { installments: w, price: v, listPrice: y, sizes: _, allSizesAvailable: p } = Pt({ items: s.items, NAME_SPLIT_SYMBOL: o }), b = p ? !0 : _.some((
|
|
1689
|
+
var f;
|
|
1690
|
+
const { installments: w, price: v, listPrice: y, sizes: _, allSizesAvailable: p } = Pt({ items: s.items, NAME_SPLIT_SYMBOL: o }), b = p ? !0 : _.some((h) => h.available), m = s.items[0].sellers[0].commertialOffer;
|
|
1690
1691
|
return {
|
|
1691
1692
|
node: {
|
|
1692
1693
|
sku: s.items[0].itemId,
|
|
@@ -1716,12 +1717,12 @@ async function Nn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
|
|
|
1716
1717
|
},
|
|
1717
1718
|
image: s.items[0].images.map(
|
|
1718
1719
|
({
|
|
1719
|
-
imageLabel:
|
|
1720
|
-
imageUrl:
|
|
1720
|
+
imageLabel: h,
|
|
1721
|
+
imageUrl: E
|
|
1721
1722
|
}) => ({
|
|
1722
|
-
alternateName:
|
|
1723
|
-
url:
|
|
1724
|
-
keywords:
|
|
1723
|
+
alternateName: h,
|
|
1724
|
+
url: E,
|
|
1725
|
+
keywords: h
|
|
1725
1726
|
})
|
|
1726
1727
|
),
|
|
1727
1728
|
offers: {
|
|
@@ -1743,27 +1744,27 @@ async function Nn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
|
|
|
1743
1744
|
}
|
|
1744
1745
|
]
|
|
1745
1746
|
},
|
|
1746
|
-
additionalProperty: (
|
|
1747
|
+
additionalProperty: (f = s == null ? void 0 : s.skuSpecifications) == null ? void 0 : f.map((h) => ({
|
|
1747
1748
|
name: s == null ? void 0 : s.skuSpecifications[0].field.name,
|
|
1748
|
-
value:
|
|
1749
|
+
value: h,
|
|
1749
1750
|
valueReference: "SPECIFICATION"
|
|
1750
1751
|
})),
|
|
1751
1752
|
isVariantOf: {
|
|
1752
1753
|
productGroupID: s.productId,
|
|
1753
|
-
hasVariant: s.items.map((
|
|
1754
|
-
var
|
|
1754
|
+
hasVariant: s.items.map((h) => {
|
|
1755
|
+
var E;
|
|
1755
1756
|
return {
|
|
1756
|
-
additionalProperty:
|
|
1757
|
+
additionalProperty: h == null ? void 0 : h.variations.map(() => {
|
|
1757
1758
|
var N, I, R;
|
|
1758
1759
|
return {
|
|
1759
|
-
name: (N =
|
|
1760
|
-
value: (R =
|
|
1760
|
+
name: (N = h == null ? void 0 : h.variations) == null ? void 0 : N[0],
|
|
1761
|
+
value: (R = h == null ? void 0 : h[(I = h == null ? void 0 : h.variations) == null ? void 0 : I[0]]) == null ? void 0 : R[0],
|
|
1761
1762
|
valueReference: "SPECIFICATION"
|
|
1762
1763
|
};
|
|
1763
1764
|
}),
|
|
1764
|
-
name:
|
|
1765
|
+
name: h.name,
|
|
1765
1766
|
offers: {
|
|
1766
|
-
offers: (
|
|
1767
|
+
offers: (E = h.sellers) == null ? void 0 : E.map(
|
|
1767
1768
|
({ commertialOffer: N, sellerId: I }) => ({
|
|
1768
1769
|
availability: "https://schema.org/InStock",
|
|
1769
1770
|
listPrice: N.ListPrice,
|
|
@@ -1775,8 +1776,8 @@ async function Nn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
|
|
|
1775
1776
|
})
|
|
1776
1777
|
)
|
|
1777
1778
|
},
|
|
1778
|
-
sku:
|
|
1779
|
-
slug: `-${
|
|
1779
|
+
sku: h.itemId,
|
|
1780
|
+
slug: `-${h.itemId}`
|
|
1780
1781
|
};
|
|
1781
1782
|
})
|
|
1782
1783
|
},
|
|
@@ -1786,9 +1787,9 @@ async function Nn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
|
|
|
1786
1787
|
};
|
|
1787
1788
|
});
|
|
1788
1789
|
}
|
|
1789
|
-
const
|
|
1790
|
+
const Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1790
1791
|
__proto__: null,
|
|
1791
|
-
getWishlistProducts:
|
|
1792
|
+
getWishlistProducts: Ln
|
|
1792
1793
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1793
1794
|
var _e = { exports: {} }, rt = {}, Ie = {}, nt = {}, at = {};
|
|
1794
1795
|
(function(e) {
|
|
@@ -1804,8 +1805,8 @@ var _e = { exports: {} }, rt = {}, Ie = {}, nt = {}, at = {};
|
|
|
1804
1805
|
function r(n, a) {
|
|
1805
1806
|
if (!n.startsWith("/") || !a)
|
|
1806
1807
|
return n;
|
|
1807
|
-
const { pathname: o, query:
|
|
1808
|
-
return "" + o + a +
|
|
1808
|
+
const { pathname: o, query: c, hash: i } = (0, t.parsePath)(n);
|
|
1809
|
+
return "" + o + a + c + i;
|
|
1809
1810
|
}
|
|
1810
1811
|
})(at);
|
|
1811
1812
|
(function(e) {
|
|
@@ -1818,9 +1819,9 @@ var _e = { exports: {} }, rt = {}, Ie = {}, nt = {}, at = {};
|
|
|
1818
1819
|
}
|
|
1819
1820
|
});
|
|
1820
1821
|
const t = Ct, r = kt, n = at, a = St;
|
|
1821
|
-
function o(
|
|
1822
|
-
let i = (0, a.addLocale)(
|
|
1823
|
-
return (
|
|
1822
|
+
function o(c) {
|
|
1823
|
+
let i = (0, a.addLocale)(c.pathname, c.locale, c.buildId ? void 0 : c.defaultLocale, c.ignorePrefix);
|
|
1824
|
+
return (c.buildId || !c.trailingSlash) && (i = (0, t.removeTrailingSlash)(i)), c.buildId && (i = (0, n.addPathSuffix)((0, r.addPathPrefix)(i, "/_next/data/" + c.buildId), c.pathname === "/" ? "index.json" : ".json")), i = (0, r.addPathPrefix)(i, c.basePath), !c.buildId && c.trailingSlash ? i.endsWith("/") ? i : (0, n.addPathSuffix)(i, "/") : (0, t.removeTrailingSlash)(i);
|
|
1824
1825
|
}
|
|
1825
1826
|
})(nt);
|
|
1826
1827
|
var it = {};
|
|
@@ -1870,10 +1871,10 @@ var ot = {}, st = {};
|
|
|
1870
1871
|
return a;
|
|
1871
1872
|
}
|
|
1872
1873
|
});
|
|
1873
|
-
const t =
|
|
1874
|
-
function a(o,
|
|
1874
|
+
const t = Et, r = st, n = Be;
|
|
1875
|
+
function a(o, c) {
|
|
1875
1876
|
var i;
|
|
1876
|
-
const { basePath: d, i18n: g, trailingSlash: s } = (i =
|
|
1877
|
+
const { basePath: d, i18n: g, trailingSlash: s } = (i = c.nextConfig) != null ? i : {}, u = {
|
|
1877
1878
|
pathname: o,
|
|
1878
1879
|
trailingSlash: o !== "/" ? o.endsWith("/") : s
|
|
1879
1880
|
};
|
|
@@ -1881,13 +1882,13 @@ var ot = {}, st = {};
|
|
|
1881
1882
|
let w = u.pathname;
|
|
1882
1883
|
if (u.pathname.startsWith("/_next/data/") && u.pathname.endsWith(".json")) {
|
|
1883
1884
|
const y = u.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), _ = y[0];
|
|
1884
|
-
u.buildId = _, w = y[1] !== "index" ? "/" + y.slice(1).join("/") : "/",
|
|
1885
|
+
u.buildId = _, w = y[1] !== "index" ? "/" + y.slice(1).join("/") : "/", c.parseData === !0 && (u.pathname = w);
|
|
1885
1886
|
}
|
|
1886
1887
|
if (g) {
|
|
1887
|
-
let y =
|
|
1888
|
+
let y = c.i18nProvider ? c.i18nProvider.analyze(u.pathname) : (0, t.normalizeLocalePath)(u.pathname, g.locales);
|
|
1888
1889
|
u.locale = y.detectedLocale;
|
|
1889
1890
|
var v;
|
|
1890
|
-
u.pathname = (v = y.pathname) != null ? v : u.pathname, !y.detectedLocale && u.buildId && (y =
|
|
1891
|
+
u.pathname = (v = y.pathname) != null ? v : u.pathname, !y.detectedLocale && u.buildId && (y = c.i18nProvider ? c.i18nProvider.analyze(w) : (0, t.normalizeLocalePath)(w, g.locales), y.detectedLocale && (u.locale = y.detectedLocale));
|
|
1891
1892
|
}
|
|
1892
1893
|
return u;
|
|
1893
1894
|
}
|
|
@@ -1901,8 +1902,8 @@ var ot = {}, st = {};
|
|
|
1901
1902
|
return d;
|
|
1902
1903
|
}
|
|
1903
1904
|
});
|
|
1904
|
-
const t =
|
|
1905
|
-
function
|
|
1905
|
+
const t = At, 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)/;
|
|
1906
|
+
function c(g, s) {
|
|
1906
1907
|
return new URL(String(g).replace(o, "localhost"), s && String(s).replace(o, "localhost"));
|
|
1907
1908
|
}
|
|
1908
1909
|
const i = Symbol("NextURLInternal");
|
|
@@ -1910,7 +1911,7 @@ var ot = {}, st = {};
|
|
|
1910
1911
|
constructor(s, u, w) {
|
|
1911
1912
|
let v, y;
|
|
1912
1913
|
typeof u == "object" && "pathname" in u || typeof u == "string" ? (v = u, y = w || {}) : y = w || u || {}, this[i] = {
|
|
1913
|
-
url:
|
|
1914
|
+
url: c(s, v ?? y.base),
|
|
1914
1915
|
options: y,
|
|
1915
1916
|
basePath: ""
|
|
1916
1917
|
}, this.analyze();
|
|
@@ -1992,7 +1993,7 @@ var ot = {}, st = {};
|
|
|
1992
1993
|
return `${this.protocol}//${this.host}${s}${u}${this.hash}`;
|
|
1993
1994
|
}
|
|
1994
1995
|
set href(s) {
|
|
1995
|
-
this[i].url =
|
|
1996
|
+
this[i].url = c(s), this.analyze();
|
|
1996
1997
|
}
|
|
1997
1998
|
get origin() {
|
|
1998
1999
|
return this[i].url.origin;
|
|
@@ -2085,7 +2086,7 @@ var Pe = {};
|
|
|
2085
2086
|
return o;
|
|
2086
2087
|
},
|
|
2087
2088
|
validateURL: function() {
|
|
2088
|
-
return
|
|
2089
|
+
return c;
|
|
2089
2090
|
}
|
|
2090
2091
|
});
|
|
2091
2092
|
const r = Ot;
|
|
@@ -2129,7 +2130,7 @@ var Pe = {};
|
|
|
2129
2130
|
u.toLowerCase() === "set-cookie" ? (s.push(...a(w)), g[u] = s.length === 1 ? s[0] : s) : g[u] = w;
|
|
2130
2131
|
return g;
|
|
2131
2132
|
}
|
|
2132
|
-
function
|
|
2133
|
+
function c(d) {
|
|
2133
2134
|
try {
|
|
2134
2135
|
return String(new URL(String(d)));
|
|
2135
2136
|
} catch (g) {
|
|
@@ -2155,10 +2156,10 @@ var lt = {};
|
|
|
2155
2156
|
Object.defineProperty(e, "__esModule", {
|
|
2156
2157
|
value: !0
|
|
2157
2158
|
});
|
|
2158
|
-
function t(o,
|
|
2159
|
-
for (var i in
|
|
2159
|
+
function t(o, c) {
|
|
2160
|
+
for (var i in c) Object.defineProperty(o, i, {
|
|
2160
2161
|
enumerable: !0,
|
|
2161
|
-
get:
|
|
2162
|
+
get: c[i]
|
|
2162
2163
|
});
|
|
2163
2164
|
}
|
|
2164
2165
|
t(e, {
|
|
@@ -2173,8 +2174,8 @@ var lt = {};
|
|
|
2173
2174
|
}
|
|
2174
2175
|
});
|
|
2175
2176
|
class r extends Error {
|
|
2176
|
-
constructor({ page:
|
|
2177
|
-
super(`The middleware "${
|
|
2177
|
+
constructor({ page: c }) {
|
|
2178
|
+
super(`The middleware "${c}" accepts an async API directly with the form:
|
|
2178
2179
|
|
|
2179
2180
|
export function middleware(request, event) {
|
|
2180
2181
|
return NextResponse.redirect('/new-location')
|
|
@@ -2195,24 +2196,24 @@ var lt = {};
|
|
|
2195
2196
|
}
|
|
2196
2197
|
}
|
|
2197
2198
|
})(lt);
|
|
2198
|
-
var de = {}, xe = Object.defineProperty,
|
|
2199
|
+
var de = {}, xe = Object.defineProperty, Un = Object.getOwnPropertyDescriptor, Hn = Object.getOwnPropertyNames, Mn = Object.prototype.hasOwnProperty, Bn = (e, t) => {
|
|
2199
2200
|
for (var r in t)
|
|
2200
2201
|
xe(e, r, { get: t[r], enumerable: !0 });
|
|
2201
|
-
},
|
|
2202
|
+
}, zn = (e, t, r, n) => {
|
|
2202
2203
|
if (t && typeof t == "object" || typeof t == "function")
|
|
2203
|
-
for (let a of
|
|
2204
|
-
!
|
|
2204
|
+
for (let a of Hn(t))
|
|
2205
|
+
!Mn.call(e, a) && a !== r && xe(e, a, { get: () => t[a], enumerable: !(n = Un(t, a)) || n.enumerable });
|
|
2205
2206
|
return e;
|
|
2206
|
-
},
|
|
2207
|
-
|
|
2208
|
-
RequestCookies: () =>
|
|
2209
|
-
ResponseCookies: () =>
|
|
2207
|
+
}, Gn = (e) => zn(xe({}, "__esModule", { value: !0 }), e), ct = {};
|
|
2208
|
+
Bn(ct, {
|
|
2209
|
+
RequestCookies: () => Yn,
|
|
2210
|
+
ResponseCookies: () => ea,
|
|
2210
2211
|
parseCookie: () => Se,
|
|
2211
2212
|
parseSetCookie: () => ut,
|
|
2212
|
-
stringifyCookie: () =>
|
|
2213
|
+
stringifyCookie: () => K
|
|
2213
2214
|
});
|
|
2214
|
-
var
|
|
2215
|
-
function
|
|
2215
|
+
var Vn = Gn(ct);
|
|
2216
|
+
function K(e) {
|
|
2216
2217
|
var t;
|
|
2217
2218
|
const r = [
|
|
2218
2219
|
"path" in e && e.path && `Path=${e.path}`,
|
|
@@ -2251,7 +2252,7 @@ function ut(e) {
|
|
|
2251
2252
|
const [[t, r], ...n] = Se(e), {
|
|
2252
2253
|
domain: a,
|
|
2253
2254
|
expires: o,
|
|
2254
|
-
httponly:
|
|
2255
|
+
httponly: c,
|
|
2255
2256
|
maxage: i,
|
|
2256
2257
|
path: d,
|
|
2257
2258
|
samesite: g,
|
|
@@ -2265,34 +2266,34 @@ function ut(e) {
|
|
|
2265
2266
|
value: decodeURIComponent(r),
|
|
2266
2267
|
domain: a,
|
|
2267
2268
|
...o && { expires: new Date(o) },
|
|
2268
|
-
...
|
|
2269
|
+
...c && { httpOnly: !0 },
|
|
2269
2270
|
...typeof i == "string" && { maxAge: Number(i) },
|
|
2270
2271
|
path: d,
|
|
2271
|
-
...g && { sameSite:
|
|
2272
|
+
...g && { sameSite: Xn(g) },
|
|
2272
2273
|
...s && { secure: !0 },
|
|
2273
|
-
...w && { priority:
|
|
2274
|
+
...w && { priority: Zn(w) },
|
|
2274
2275
|
...u && { partitioned: !0 }
|
|
2275
2276
|
};
|
|
2276
|
-
return
|
|
2277
|
+
return Wn(v);
|
|
2277
2278
|
}
|
|
2278
|
-
function
|
|
2279
|
+
function Wn(e) {
|
|
2279
2280
|
const t = {};
|
|
2280
2281
|
for (const r in e)
|
|
2281
2282
|
e[r] && (t[r] = e[r]);
|
|
2282
2283
|
return t;
|
|
2283
2284
|
}
|
|
2284
|
-
var
|
|
2285
|
-
function
|
|
2286
|
-
return e = e.toLowerCase(),
|
|
2285
|
+
var Qn = ["strict", "lax", "none"];
|
|
2286
|
+
function Xn(e) {
|
|
2287
|
+
return e = e.toLowerCase(), Qn.includes(e) ? e : void 0;
|
|
2287
2288
|
}
|
|
2288
|
-
var
|
|
2289
|
-
function
|
|
2290
|
-
return e = e.toLowerCase(),
|
|
2289
|
+
var Kn = ["low", "medium", "high"];
|
|
2290
|
+
function Zn(e) {
|
|
2291
|
+
return e = e.toLowerCase(), Kn.includes(e) ? e : void 0;
|
|
2291
2292
|
}
|
|
2292
|
-
function
|
|
2293
|
+
function Jn(e) {
|
|
2293
2294
|
if (!e)
|
|
2294
2295
|
return [];
|
|
2295
|
-
var t = [], r = 0, n, a, o,
|
|
2296
|
+
var t = [], r = 0, n, a, o, c, i;
|
|
2296
2297
|
function d() {
|
|
2297
2298
|
for (; r < e.length && /\s/.test(e.charAt(r)); )
|
|
2298
2299
|
r += 1;
|
|
@@ -2304,16 +2305,16 @@ function Qn(e) {
|
|
|
2304
2305
|
for (; r < e.length; ) {
|
|
2305
2306
|
for (n = r, i = !1; d(); )
|
|
2306
2307
|
if (a = e.charAt(r), a === ",") {
|
|
2307
|
-
for (o = r, r += 1, d(),
|
|
2308
|
+
for (o = r, r += 1, d(), c = r; r < e.length && g(); )
|
|
2308
2309
|
r += 1;
|
|
2309
|
-
r < e.length && e.charAt(r) === "=" ? (i = !0, r =
|
|
2310
|
+
r < e.length && e.charAt(r) === "=" ? (i = !0, r = c, t.push(e.substring(n, o)), n = r) : r = o + 1;
|
|
2310
2311
|
} else
|
|
2311
2312
|
r += 1;
|
|
2312
2313
|
(!i || r >= e.length) && t.push(e.substring(n, e.length));
|
|
2313
2314
|
}
|
|
2314
2315
|
return t;
|
|
2315
2316
|
}
|
|
2316
|
-
var
|
|
2317
|
+
var Yn = class {
|
|
2317
2318
|
constructor(e) {
|
|
2318
2319
|
this._parsed = /* @__PURE__ */ new Map(), this._headers = e;
|
|
2319
2320
|
const t = e.get("cookie");
|
|
@@ -2351,7 +2352,7 @@ var Kn = class {
|
|
|
2351
2352
|
const [t, r] = e.length === 1 ? [e[0].name, e[0].value] : e, n = this._parsed;
|
|
2352
2353
|
return n.set(t, { name: t, value: r }), this._headers.set(
|
|
2353
2354
|
"cookie",
|
|
2354
|
-
Array.from(n).map(([a, o]) =>
|
|
2355
|
+
Array.from(n).map(([a, o]) => K(o)).join("; ")
|
|
2355
2356
|
), this;
|
|
2356
2357
|
}
|
|
2357
2358
|
/**
|
|
@@ -2361,7 +2362,7 @@ var Kn = class {
|
|
|
2361
2362
|
const t = this._parsed, r = Array.isArray(e) ? e.map((n) => t.delete(n)) : t.delete(e);
|
|
2362
2363
|
return this._headers.set(
|
|
2363
2364
|
"cookie",
|
|
2364
|
-
Array.from(t).map(([n, a]) =>
|
|
2365
|
+
Array.from(t).map(([n, a]) => K(a)).join("; ")
|
|
2365
2366
|
), r;
|
|
2366
2367
|
}
|
|
2367
2368
|
/**
|
|
@@ -2379,14 +2380,14 @@ var Kn = class {
|
|
|
2379
2380
|
toString() {
|
|
2380
2381
|
return [...this._parsed.values()].map((e) => `${e.name}=${encodeURIComponent(e.value)}`).join("; ");
|
|
2381
2382
|
}
|
|
2382
|
-
},
|
|
2383
|
+
}, ea = class {
|
|
2383
2384
|
constructor(e) {
|
|
2384
2385
|
this._parsed = /* @__PURE__ */ new Map();
|
|
2385
2386
|
var t, r, n;
|
|
2386
2387
|
this._headers = e;
|
|
2387
|
-
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 :
|
|
2388
|
-
for (const
|
|
2389
|
-
const i = ut(
|
|
2388
|
+
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 : Jn(a);
|
|
2389
|
+
for (const c of o) {
|
|
2390
|
+
const i = ut(c);
|
|
2390
2391
|
i && this._parsed.set(i.name, i);
|
|
2391
2392
|
}
|
|
2392
2393
|
}
|
|
@@ -2416,7 +2417,7 @@ var Kn = class {
|
|
|
2416
2417
|
*/
|
|
2417
2418
|
set(...e) {
|
|
2418
2419
|
const [t, r, n] = e.length === 1 ? [e[0].name, e[0].value, e[0]] : e, a = this._parsed;
|
|
2419
|
-
return a.set(t,
|
|
2420
|
+
return a.set(t, ra({ name: t, value: r, ...n })), ta(a, this._headers), this;
|
|
2420
2421
|
}
|
|
2421
2422
|
/**
|
|
2422
2423
|
* {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
|
|
@@ -2429,17 +2430,17 @@ var Kn = class {
|
|
|
2429
2430
|
return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
2430
2431
|
}
|
|
2431
2432
|
toString() {
|
|
2432
|
-
return [...this._parsed.values()].map(
|
|
2433
|
+
return [...this._parsed.values()].map(K).join("; ");
|
|
2433
2434
|
}
|
|
2434
2435
|
};
|
|
2435
|
-
function
|
|
2436
|
+
function ta(e, t) {
|
|
2436
2437
|
t.delete("set-cookie");
|
|
2437
2438
|
for (const [, r] of e) {
|
|
2438
|
-
const n =
|
|
2439
|
+
const n = K(r);
|
|
2439
2440
|
t.append("set-cookie", n);
|
|
2440
2441
|
}
|
|
2441
2442
|
}
|
|
2442
|
-
function
|
|
2443
|
+
function ra(e = { name: "", value: "" }) {
|
|
2443
2444
|
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;
|
|
2444
2445
|
}
|
|
2445
2446
|
(function(e) {
|
|
@@ -2463,7 +2464,7 @@ function Jn(e = { name: "", value: "" }) {
|
|
|
2463
2464
|
return r.stringifyCookie;
|
|
2464
2465
|
}
|
|
2465
2466
|
});
|
|
2466
|
-
const r =
|
|
2467
|
+
const r = Vn;
|
|
2467
2468
|
})(de);
|
|
2468
2469
|
(function(e) {
|
|
2469
2470
|
Object.defineProperty(e, "__esModule", {
|
|
@@ -2477,13 +2478,13 @@ function Jn(e = { name: "", value: "" }) {
|
|
|
2477
2478
|
}
|
|
2478
2479
|
t(e, {
|
|
2479
2480
|
INTERNALS: function() {
|
|
2480
|
-
return
|
|
2481
|
+
return c;
|
|
2481
2482
|
},
|
|
2482
2483
|
NextRequest: function() {
|
|
2483
2484
|
return i;
|
|
2484
2485
|
}
|
|
2485
2486
|
});
|
|
2486
|
-
const r = Ie, n = Pe, a = lt, o = de,
|
|
2487
|
+
const r = Ie, n = Pe, a = lt, o = de, c = Symbol("internal request");
|
|
2487
2488
|
class i extends Request {
|
|
2488
2489
|
constructor(g, s = {}) {
|
|
2489
2490
|
const u = typeof g != "string" && "url" in g ? g.url : String(g);
|
|
@@ -2492,7 +2493,7 @@ function Jn(e = { name: "", value: "" }) {
|
|
|
2492
2493
|
headers: (0, n.toNodeOutgoingHttpHeaders)(this.headers),
|
|
2493
2494
|
nextConfig: s.nextConfig
|
|
2494
2495
|
});
|
|
2495
|
-
this[
|
|
2496
|
+
this[c] = {
|
|
2496
2497
|
cookies: new o.RequestCookies(this.headers),
|
|
2497
2498
|
geo: s.geo || {},
|
|
2498
2499
|
ip: s.ip,
|
|
@@ -2524,16 +2525,16 @@ function Jn(e = { name: "", value: "" }) {
|
|
|
2524
2525
|
};
|
|
2525
2526
|
}
|
|
2526
2527
|
get cookies() {
|
|
2527
|
-
return this[
|
|
2528
|
+
return this[c].cookies;
|
|
2528
2529
|
}
|
|
2529
2530
|
get geo() {
|
|
2530
|
-
return this[
|
|
2531
|
+
return this[c].geo;
|
|
2531
2532
|
}
|
|
2532
2533
|
get ip() {
|
|
2533
|
-
return this[
|
|
2534
|
+
return this[c].ip;
|
|
2534
2535
|
}
|
|
2535
2536
|
get nextUrl() {
|
|
2536
|
-
return this[
|
|
2537
|
+
return this[c].nextUrl;
|
|
2537
2538
|
}
|
|
2538
2539
|
/**
|
|
2539
2540
|
* @deprecated
|
|
@@ -2552,7 +2553,7 @@ function Jn(e = { name: "", value: "" }) {
|
|
|
2552
2553
|
throw new a.RemovedUAError();
|
|
2553
2554
|
}
|
|
2554
2555
|
get url() {
|
|
2555
|
-
return this[
|
|
2556
|
+
return this[c].url;
|
|
2556
2557
|
}
|
|
2557
2558
|
}
|
|
2558
2559
|
})(rt);
|
|
@@ -2568,11 +2569,11 @@ var dt = {}, pt = {};
|
|
|
2568
2569
|
});
|
|
2569
2570
|
class t {
|
|
2570
2571
|
static get(n, a, o) {
|
|
2571
|
-
const
|
|
2572
|
-
return typeof
|
|
2572
|
+
const c = Reflect.get(n, a, o);
|
|
2573
|
+
return typeof c == "function" ? c.bind(n) : c;
|
|
2573
2574
|
}
|
|
2574
|
-
static set(n, a, o,
|
|
2575
|
-
return Reflect.set(n, a, o,
|
|
2575
|
+
static set(n, a, o, c) {
|
|
2576
|
+
return Reflect.set(n, a, o, c);
|
|
2576
2577
|
}
|
|
2577
2578
|
static has(n, a) {
|
|
2578
2579
|
return Reflect.has(n, a);
|
|
@@ -2591,7 +2592,7 @@ var dt = {}, pt = {};
|
|
|
2591
2592
|
return g;
|
|
2592
2593
|
}
|
|
2593
2594
|
});
|
|
2594
|
-
const t = de, r = Ie, n = Pe, a = pt, o = de,
|
|
2595
|
+
const t = de, r = Ie, n = Pe, a = pt, o = de, c = Symbol("internal response"), i = /* @__PURE__ */ new Set([
|
|
2595
2596
|
301,
|
|
2596
2597
|
302,
|
|
2597
2598
|
303,
|
|
@@ -2617,16 +2618,16 @@ var dt = {}, pt = {};
|
|
|
2617
2618
|
switch (b) {
|
|
2618
2619
|
case "delete":
|
|
2619
2620
|
case "set":
|
|
2620
|
-
return (...
|
|
2621
|
-
const
|
|
2622
|
-
return
|
|
2621
|
+
return (...f) => {
|
|
2622
|
+
const h = Reflect.apply(p[b], p, f), E = new Headers(v);
|
|
2623
|
+
return h instanceof o.ResponseCookies && v.set("x-middleware-set-cookie", h.getAll().map((N) => (0, t.stringifyCookie)(N)).join(",")), d(w, E), h;
|
|
2623
2624
|
};
|
|
2624
2625
|
default:
|
|
2625
2626
|
return a.ReflectAdapter.get(p, b, m);
|
|
2626
2627
|
}
|
|
2627
2628
|
}
|
|
2628
2629
|
});
|
|
2629
|
-
this[
|
|
2630
|
+
this[c] = {
|
|
2630
2631
|
cookies: _,
|
|
2631
2632
|
url: w.url ? new r.NextURL(w.url, {
|
|
2632
2633
|
headers: (0, n.toNodeOutgoingHttpHeaders)(v),
|
|
@@ -2650,7 +2651,7 @@ var dt = {}, pt = {};
|
|
|
2650
2651
|
};
|
|
2651
2652
|
}
|
|
2652
2653
|
get cookies() {
|
|
2653
|
-
return this[
|
|
2654
|
+
return this[c].cookies;
|
|
2654
2655
|
}
|
|
2655
2656
|
static json(u, w) {
|
|
2656
2657
|
const v = Response.json(u, w);
|
|
@@ -2697,65 +2698,65 @@ var mt = {};
|
|
|
2697
2698
|
throw new Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead');
|
|
2698
2699
|
}
|
|
2699
2700
|
})(mt);
|
|
2700
|
-
var Re = {},
|
|
2701
|
+
var Re = {}, ft = { exports: {} };
|
|
2701
2702
|
(() => {
|
|
2702
2703
|
var e = { 226: function(a, o) {
|
|
2703
|
-
(function(
|
|
2704
|
-
var d = "1.0.35", g = "", s = "?", u = "function", w = "undefined", v = "object", y = "string", _ = "major", p = "model", b = "name", m = "type",
|
|
2704
|
+
(function(c, i) {
|
|
2705
|
+
var d = "1.0.35", g = "", s = "?", u = "function", w = "undefined", v = "object", y = "string", _ = "major", p = "model", b = "name", m = "type", f = "vendor", h = "version", E = "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", fe = "Microsoft", Ee = "Motorola", te = "Opera", he = "Samsung", Ae = "Sharp", re = "Sony", ge = "Xiaomi", be = "Zebra", Oe = "Facebook", Te = "Chromium OS", qe = "Mac OS", bt = function(S, A) {
|
|
2705
2706
|
var x = {};
|
|
2706
2707
|
for (var q in S)
|
|
2707
|
-
|
|
2708
|
+
A[q] && A[q].length % 2 === 0 ? x[q] = A[q].concat(S[q]) : x[q] = S[q];
|
|
2708
2709
|
return x;
|
|
2709
2710
|
}, ne = function(S) {
|
|
2710
|
-
for (var
|
|
2711
|
-
|
|
2712
|
-
return
|
|
2713
|
-
}, Ne = function(S,
|
|
2714
|
-
return typeof S === y ? Q(
|
|
2711
|
+
for (var A = {}, x = 0; x < S.length; x++)
|
|
2712
|
+
A[S[x].toUpperCase()] = S[x];
|
|
2713
|
+
return A;
|
|
2714
|
+
}, Ne = function(S, A) {
|
|
2715
|
+
return typeof S === y ? Q(A).indexOf(Q(S)) !== -1 : !1;
|
|
2715
2716
|
}, Q = function(S) {
|
|
2716
2717
|
return S.toLowerCase();
|
|
2717
2718
|
}, wt = function(S) {
|
|
2718
2719
|
return typeof S === y ? S.replace(/[^\d\.]/g, g).split(".")[0] : i;
|
|
2719
|
-
}, we = function(S,
|
|
2720
|
+
}, we = function(S, A) {
|
|
2720
2721
|
if (typeof S === y)
|
|
2721
|
-
return S = S.replace(/^\s\s*/, g), typeof
|
|
2722
|
-
},
|
|
2723
|
-
for (var x = 0, q, z, H, k, P, M; x <
|
|
2724
|
-
var ye =
|
|
2722
|
+
return S = S.replace(/^\s\s*/, g), typeof A === w ? S : S.substring(0, D);
|
|
2723
|
+
}, X = function(S, A) {
|
|
2724
|
+
for (var x = 0, q, z, H, k, P, M; x < A.length && !P; ) {
|
|
2725
|
+
var ye = A[x], Fe = A[x + 1];
|
|
2725
2726
|
for (q = z = 0; q < ye.length && !P && ye[q]; )
|
|
2726
2727
|
if (P = ye[q++].exec(S), P)
|
|
2727
|
-
for (H = 0; H <
|
|
2728
|
-
M = P[++z], k =
|
|
2728
|
+
for (H = 0; H < Fe.length; H++)
|
|
2729
|
+
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;
|
|
2729
2730
|
x += 2;
|
|
2730
2731
|
}
|
|
2731
|
-
}, ve = function(S,
|
|
2732
|
-
for (var x in
|
|
2733
|
-
if (typeof
|
|
2734
|
-
for (var q = 0; q <
|
|
2735
|
-
if (Ne(
|
|
2732
|
+
}, ve = function(S, A) {
|
|
2733
|
+
for (var x in A)
|
|
2734
|
+
if (typeof A[x] === v && A[x].length > 0) {
|
|
2735
|
+
for (var q = 0; q < A[x].length; q++)
|
|
2736
|
+
if (Ne(A[x][q], S))
|
|
2736
2737
|
return x === s ? i : x;
|
|
2737
|
-
} else if (Ne(
|
|
2738
|
+
} else if (Ne(A[x], S))
|
|
2738
2739
|
return x === s ? i : x;
|
|
2739
2740
|
return S;
|
|
2740
|
-
}, 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" }, 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, 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, $]], [/(aeobc)\b/i], [p, [h, U], [m, $]], [/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) {
|
|
2741
|
-
if (typeof S === v && (
|
|
2742
|
-
return new L(S,
|
|
2743
|
-
var x = typeof
|
|
2741
|
+
}, 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], [h, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [h, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, h], [/opios[\/ ]+([\w\.]+)/i], [h, [b, te + " Mini"]], [/\bopr\/([\w\.]+)/i], [h, [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, h], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [h, [b, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [h, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [h, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [h, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [h, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [h, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + G], h], [/\bfocus\/([\w\.]+)/i], [h, [b, Y + " Focus"]], [/\bopt\/([\w\.]+)/i], [h, [b, te + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [h, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [h, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [h, [b, te + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [h, [b, "MIUI " + G]], [/fxios\/([-\w\.]+)/i], [h, [b, Y]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + G]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + G], h], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], h], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, h], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, Oe], h], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, h], [/\bgsa\/([\w\.]+) .*safari\//i], [h, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [h, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [h, [b, J + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, J + " WebView"], h], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [h, [b, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, h], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [h, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [h, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [h, ve, vt]], [/(webkit|khtml)\/([\w\.]+)/i], [b, h], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], h], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [h, [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, h], [/(cobalt)\/([\w\.]+)/i], [b, [h, /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, [f, he], [m, R]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [p, [f, he], [m, I]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [p, [f, B], [m, I]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [p, [f, B], [m, R]], [/(macintosh);/i], [p, [f, B]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [p, [f, Ae], [m, I]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [p, [f, ke], [m, R]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [p, [f, 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, " "], [f, ge], [m, I]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[p, /_/g, " "], [f, 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, [f, "OPPO"], [m, I]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [p, [f, "Vivo"], [m, I]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [p, [f, "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, [f, Ee], [m, I]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [p, [f, Ee], [m, R]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [p, [f, 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, [f, me], [m, I]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [p, [f, "Lenovo"], [m, R]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[p, /_/g, " "], [f, "Nokia"], [m, I]], [/(pixel c)\b/i], [p, [f, ee], [m, R]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [p, [f, 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, [f, re], [m, I]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[p, "Xperia Tablet"], [f, re], [m, R]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [p, [f, "OnePlus"], [m, I]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [p, [f, U], [m, R]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[p, /(.+)/g, "Fire Phone $1"], [f, U], [m, I]], [/(playbook);[-\w\),; ]+(rim)/i], [p, f, [m, R]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [p, [f, Ce], [m, I]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [p, [f, Z], [m, R]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [p, [f, Z], [m, I]], [/(nexus 9)/i], [p, [f, "HTC"], [m, R]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [f, [p, /_/g, " "], [m, I]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [p, [f, "Acer"], [m, R]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [p, [f, "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], [f, 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], [f, p, [m, R]], [/(surface duo)/i], [p, [f, fe], [m, R]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [p, [f, "Fairphone"], [m, I]], [/(u304aa)/i], [p, [f, "AT&T"], [m, I]], [/\bsie-(\w*)/i], [p, [f, "Siemens"], [m, I]], [/\b(rct\w+) b/i], [p, [f, "RCA"], [m, R]], [/\b(venue[\d ]{2,7}) b/i], [p, [f, "Dell"], [m, R]], [/\b(q(?:mv|ta)\w+) b/i], [p, [f, "Verizon"], [m, R]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [p, [f, "Barnes & Noble"], [m, R]], [/\b(tm\d{3}\w+) b/i], [p, [f, "NuVision"], [m, R]], [/\b(k88) b/i], [p, [f, "ZTE"], [m, R]], [/\b(nx\d{3}j) b/i], [p, [f, "ZTE"], [m, I]], [/\b(gen\d{3}) b.+49h/i], [p, [f, "Swiss"], [m, I]], [/\b(zur\d{3}) b/i], [p, [f, "Swiss"], [m, R]], [/\b((zeki)?tb.*\b) b/i], [p, [f, "Zeki"], [m, R]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[f, "Dragon Touch"], p, [m, R]], [/\b(ns-?\w{0,9}) b/i], [p, [f, "Insignia"], [m, R]], [/\b((nxa|next)-?\w{0,9}) b/i], [p, [f, "NextBook"], [m, R]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[f, "Voice"], p, [m, I]], [/\b(lvtel\-)?(v1[12]) b/i], [[f, "LvTel"], p, [m, I]], [/\b(ph-1) /i], [p, [f, "Essential"], [m, I]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [p, [f, "Envizen"], [m, R]], [/\b(trio[-\w\. ]+) b/i], [p, [f, "MachSpeed"], [m, R]], [/\btu_(1491) b/i], [p, [f, "Rotor"], [m, R]], [/(shield[\w ]+) b/i], [p, [f, "Nvidia"], [m, R]], [/(sprint) (\w+)/i], [f, p, [m, I]], [/(kin\.[onetw]{3})/i], [[p, /\./g, " "], [f, fe], [m, I]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [p, [f, be], [m, R]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [p, [f, be], [m, I]], [/smart-tv.+(samsung)/i], [f, [m, C]], [/hbbtv.+maple;(\d+)/i], [[p, /^/, "SmartTV"], [f, he], [m, C]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[f, me], [m, C]], [/(apple) ?tv/i], [f, [p, B + " TV"], [m, C]], [/crkey/i], [[p, J + "cast"], [f, ee], [m, C]], [/droid.+aft(\w)( bui|\))/i], [p, [f, U], [m, C]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [p, [f, Ae], [m, C]], [/(bravia[\w ]+)( bui|\))/i], [p, [f, re], [m, C]], [/(mitv-\w{5}) bui/i], [p, [f, ge], [m, C]], [/Hbbtv.*(technisat) (.*);/i], [f, p, [m, C]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[f, we], [p, we], [m, C]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[m, C]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [f, p, [m, N]], [/droid.+; (shield) bui/i], [p, [f, "Nvidia"], [m, N]], [/(playstation [345portablevi]+)/i], [p, [f, re], [m, N]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [p, [f, fe], [m, N]], [/((pebble))app/i], [f, p, [m, j]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [p, [f, B], [m, j]], [/droid.+; (glass) \d/i], [p, [f, ee], [m, j]], [/droid.+; (wt63?0{2,3})\)/i], [p, [f, be], [m, j]], [/(quest( 2| pro)?)/i], [p, [f, Oe], [m, j]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [f, [m, F]], [/(aeobc)\b/i], [p, [f, 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, [f, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [h, [b, gt + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [h, [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, h], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [h, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, h], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [h, ve, je]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [h, ve, je]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[h, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, qe], [h, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [h, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, h], [/\(bb(10);/i], [h, [b, Ce]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [h, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [h, [b, Y + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [h, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [h, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [h, [b, J + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, Te], h], [/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, h], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], h], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, h]] }, L = function(S, A) {
|
|
2742
|
+
if (typeof S === v && (A = S, S = i), !(this instanceof L))
|
|
2743
|
+
return new L(S, A).getResult();
|
|
2744
|
+
var x = typeof c !== w && c.navigator ? c.navigator : i, q = S || (x && x.userAgent ? x.userAgent : g), z = x && x.userAgentData ? x.userAgentData : i, H = A ? bt($e, A) : $e, k = x && x.userAgent == q;
|
|
2744
2745
|
return this.getBrowser = function() {
|
|
2745
2746
|
var P = {};
|
|
2746
|
-
return P[b] = i, P[
|
|
2747
|
+
return P[b] = i, P[h] = i, X.call(P, q, H.browser), P[_] = wt(P[h]), k && x && x.brave && typeof x.brave.isBrave == u && (P[b] = "Brave"), P;
|
|
2747
2748
|
}, this.getCPU = function() {
|
|
2748
2749
|
var P = {};
|
|
2749
|
-
return P[
|
|
2750
|
+
return P[E] = i, X.call(P, q, H.cpu), P;
|
|
2750
2751
|
}, this.getDevice = function() {
|
|
2751
2752
|
var P = {};
|
|
2752
|
-
return P[
|
|
2753
|
+
return P[f] = i, P[p] = i, P[m] = i, X.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;
|
|
2753
2754
|
}, this.getEngine = function() {
|
|
2754
2755
|
var P = {};
|
|
2755
|
-
return P[b] = i, P[
|
|
2756
|
+
return P[b] = i, P[h] = i, X.call(P, q, H.engine), P;
|
|
2756
2757
|
}, this.getOS = function() {
|
|
2757
2758
|
var P = {};
|
|
2758
|
-
return P[b] = i, P[
|
|
2759
|
+
return P[b] = i, P[h] = i, X.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;
|
|
2759
2760
|
}, this.getResult = function() {
|
|
2760
2761
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
2761
2762
|
}, this.getUA = function() {
|
|
@@ -2764,17 +2765,17 @@ var Re = {}, ht = { exports: {} };
|
|
|
2764
2765
|
return q = typeof P === y && P.length > D ? we(P, D) : P, this;
|
|
2765
2766
|
}, this.setUA(q), this;
|
|
2766
2767
|
};
|
|
2767
|
-
L.VERSION = d, L.BROWSER = ne([b,
|
|
2768
|
-
var V = typeof
|
|
2768
|
+
L.VERSION = d, L.BROWSER = ne([b, h, _]), L.CPU = ne([E]), L.DEVICE = ne([p, f, m, N, I, C, R, j, F]), L.ENGINE = L.OS = ne([b, h]), typeof o !== w ? (a.exports && (o = a.exports = L), o.UAParser = L) : typeof c !== w && (c.UAParser = L);
|
|
2769
|
+
var V = typeof c !== w && (c.jQuery || c.Zepto);
|
|
2769
2770
|
if (V && !V.ua) {
|
|
2770
2771
|
var ae = new L();
|
|
2771
2772
|
V.ua = ae.getResult(), V.ua.get = function() {
|
|
2772
2773
|
return ae.getUA();
|
|
2773
2774
|
}, V.ua.set = function(S) {
|
|
2774
2775
|
ae.setUA(S);
|
|
2775
|
-
var
|
|
2776
|
-
for (var x in
|
|
2777
|
-
V.ua[x] =
|
|
2776
|
+
var A = ae.getResult();
|
|
2777
|
+
for (var x in A)
|
|
2778
|
+
V.ua[x] = A[x];
|
|
2778
2779
|
};
|
|
2779
2780
|
}
|
|
2780
2781
|
})(typeof window == "object" ? window : this);
|
|
@@ -2783,19 +2784,19 @@ var Re = {}, ht = { exports: {} };
|
|
|
2783
2784
|
var o = t[a];
|
|
2784
2785
|
if (o !== void 0)
|
|
2785
2786
|
return o.exports;
|
|
2786
|
-
var
|
|
2787
|
+
var c = t[a] = { exports: {} }, i = !0;
|
|
2787
2788
|
try {
|
|
2788
|
-
e[a].call(
|
|
2789
|
+
e[a].call(c.exports, c, c.exports, r), i = !1;
|
|
2789
2790
|
} finally {
|
|
2790
2791
|
i && delete t[a];
|
|
2791
2792
|
}
|
|
2792
|
-
return
|
|
2793
|
+
return c.exports;
|
|
2793
2794
|
}
|
|
2794
2795
|
typeof r < "u" && (r.ab = __dirname + "/");
|
|
2795
2796
|
var n = r(226);
|
|
2796
|
-
|
|
2797
|
+
ft.exports = n;
|
|
2797
2798
|
})();
|
|
2798
|
-
var
|
|
2799
|
+
var na = ft.exports;
|
|
2799
2800
|
(function(e) {
|
|
2800
2801
|
Object.defineProperty(e, "__esModule", {
|
|
2801
2802
|
value: !0
|
|
@@ -2811,13 +2812,13 @@ var Yn = ht.exports;
|
|
|
2811
2812
|
return a;
|
|
2812
2813
|
},
|
|
2813
2814
|
userAgent: function() {
|
|
2814
|
-
return
|
|
2815
|
+
return c;
|
|
2815
2816
|
},
|
|
2816
2817
|
userAgentFromString: function() {
|
|
2817
2818
|
return o;
|
|
2818
2819
|
}
|
|
2819
2820
|
});
|
|
2820
|
-
const r = /* @__PURE__ */ n(
|
|
2821
|
+
const r = /* @__PURE__ */ n(na);
|
|
2821
2822
|
function n(i) {
|
|
2822
2823
|
return i && i.__esModule ? i : {
|
|
2823
2824
|
default: i
|
|
@@ -2832,11 +2833,11 @@ var Yn = ht.exports;
|
|
|
2832
2833
|
isBot: i === void 0 ? !1 : a(i)
|
|
2833
2834
|
};
|
|
2834
2835
|
}
|
|
2835
|
-
function
|
|
2836
|
+
function c({ headers: i }) {
|
|
2836
2837
|
return o(i.get("user-agent") || void 0);
|
|
2837
2838
|
}
|
|
2838
2839
|
})(Re);
|
|
2839
|
-
var
|
|
2840
|
+
var ht = {};
|
|
2840
2841
|
(function(e) {
|
|
2841
2842
|
Object.defineProperty(e, "__esModule", {
|
|
2842
2843
|
value: !0
|
|
@@ -2850,7 +2851,7 @@ var ft = {};
|
|
|
2850
2851
|
// @ts-expect-error: URLPattern is not available in Node.js
|
|
2851
2852
|
typeof URLPattern > "u" ? void 0 : URLPattern
|
|
2852
2853
|
);
|
|
2853
|
-
})(
|
|
2854
|
+
})(ht);
|
|
2854
2855
|
(function(e, t) {
|
|
2855
2856
|
const r = {
|
|
2856
2857
|
NextRequest: rt.NextRequest,
|
|
@@ -2858,30 +2859,30 @@ var ft = {};
|
|
|
2858
2859
|
ImageResponse: mt.ImageResponse,
|
|
2859
2860
|
userAgentFromString: Re.userAgentFromString,
|
|
2860
2861
|
userAgent: Re.userAgent,
|
|
2861
|
-
URLPattern:
|
|
2862
|
+
URLPattern: ht.URLPattern
|
|
2862
2863
|
};
|
|
2863
2864
|
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;
|
|
2864
2865
|
})(_e, _e.exports);
|
|
2865
2866
|
var Ue = _e.exports;
|
|
2866
|
-
async function
|
|
2867
|
+
async function aa({ apiUrl: e, extraData: t, fetchOptions: r }) {
|
|
2867
2868
|
var I, R;
|
|
2868
2869
|
const n = `${e}/api/dataentities`, a = `${e}/api/io/v1/extrato/get-total`, {
|
|
2869
2870
|
MASTER_DATA_ENTITY: o,
|
|
2870
|
-
MASTER_DATA_FIELDS:
|
|
2871
|
+
MASTER_DATA_FIELDS: c,
|
|
2871
2872
|
AUTH_TOKEN_COOKIE: i,
|
|
2872
2873
|
requestHeaders: d,
|
|
2873
2874
|
cookies: g
|
|
2874
|
-
} = t, { address: s, client: u } = o, { address: w, client: v } =
|
|
2875
|
+
} = t, { address: s, client: u } = o, { address: w, client: v } = c, y = ((I = g == null ? void 0 : g.find((C) => (C == null ? void 0 : C.name) === i)) == null ? void 0 : I.value) || "";
|
|
2875
2876
|
if (!y)
|
|
2876
2877
|
return Ue.NextResponse.json(
|
|
2877
2878
|
{ error: "Token not found. Unauthorized" },
|
|
2878
2879
|
{ status: 200 }
|
|
2879
2880
|
);
|
|
2880
|
-
const { sub: _, userId: p } =
|
|
2881
|
+
const { sub: _, userId: p } = Bt(y), b = Object.fromEntries(
|
|
2881
2882
|
Object.entries(d).map(([C, j]) => [C, String(j || "")])
|
|
2882
|
-
), m = async (C, j,
|
|
2883
|
+
), m = async (C, j, F = !1) => {
|
|
2883
2884
|
try {
|
|
2884
|
-
const U = await fetch(`${
|
|
2885
|
+
const U = await fetch(`${F ? a : n}${C}`, {
|
|
2885
2886
|
headers: {
|
|
2886
2887
|
...j,
|
|
2887
2888
|
...r == null ? void 0 : r.headers
|
|
@@ -2891,54 +2892,141 @@ async function ea({ apiUrl: e, extraData: t, fetchOptions: r }) {
|
|
|
2891
2892
|
} catch (D) {
|
|
2892
2893
|
return console.error(`Erro no fetch: ${C}`, D), null;
|
|
2893
2894
|
}
|
|
2894
|
-
},
|
|
2895
|
+
}, f = await m(
|
|
2895
2896
|
`/${u}/search?email=${_}&_fields=${v.join(",")}`,
|
|
2896
2897
|
b
|
|
2897
2898
|
);
|
|
2898
|
-
if (!(
|
|
2899
|
+
if (!(f != null && f.id))
|
|
2899
2900
|
return Ue.NextResponse.json({ sub: _ }, { status: 200 });
|
|
2900
|
-
const
|
|
2901
|
-
`/${s}/search?userId=${
|
|
2901
|
+
const h = (R = f.document) == null ? void 0 : R.replace(/\D/g, ""), E = await m(
|
|
2902
|
+
`/${s}/search?userId=${f.id}&_fields=${w.join(
|
|
2902
2903
|
","
|
|
2903
2904
|
)}&_sort=lastInteractionIn DESC`,
|
|
2904
2905
|
{ ...b, "REST-Range": "resources=0-1000" }
|
|
2905
|
-
), N =
|
|
2906
|
-
`/${
|
|
2906
|
+
), N = h ? await m(
|
|
2907
|
+
`/${h}?user_code=${f.userId},${_}&per_page=1&page=1`,
|
|
2907
2908
|
b,
|
|
2908
2909
|
!0
|
|
2909
2910
|
) : null;
|
|
2910
|
-
return { ...
|
|
2911
|
+
return { ...f, ...E, userCredits: N, sub: _, userId: p };
|
|
2912
|
+
}
|
|
2913
|
+
const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2914
|
+
__proto__: null,
|
|
2915
|
+
getUserData: aa
|
|
2916
|
+
}, Symbol.toStringTag, { value: "Module" })), oa = {
|
|
2917
|
+
parseSearchState: jt,
|
|
2918
|
+
convertSearchParams: Nt,
|
|
2919
|
+
filterNonRootFacets: qt,
|
|
2920
|
+
filterNonCategorySelected: Tt
|
|
2921
|
+
}, sa = l.object({
|
|
2922
|
+
userName: l.string().optional(),
|
|
2923
|
+
email: l.string().optional(),
|
|
2924
|
+
sku: l.string().optional()
|
|
2925
|
+
});
|
|
2926
|
+
async function la({
|
|
2927
|
+
apiUrl: e,
|
|
2928
|
+
body: t
|
|
2929
|
+
}) {
|
|
2930
|
+
if (!t) {
|
|
2931
|
+
console.error("[ERROR FETCHING] Body is required");
|
|
2932
|
+
return;
|
|
2933
|
+
}
|
|
2934
|
+
await sa.validate(t);
|
|
2935
|
+
const r = `https://${e}.myvtex.com/no-cache/AviseMe.aspx`, n = await fetch(r, {
|
|
2936
|
+
method: "POST",
|
|
2937
|
+
headers: {
|
|
2938
|
+
"Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"
|
|
2939
|
+
},
|
|
2940
|
+
body: `notifymeClientName=${t == null ? void 0 : t.userName}¬ifymeClientEmail=${t == null ? void 0 : t.email}¬ifymeIdSku=${t == null ? void 0 : t.sku}`
|
|
2941
|
+
}), a = await n.text;
|
|
2942
|
+
return {
|
|
2943
|
+
ok: n.ok,
|
|
2944
|
+
status: n.status,
|
|
2945
|
+
text: a
|
|
2946
|
+
};
|
|
2947
|
+
}
|
|
2948
|
+
const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2949
|
+
__proto__: null,
|
|
2950
|
+
aviseMe: la
|
|
2951
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
2952
|
+
function ua({
|
|
2953
|
+
platformCMS: e,
|
|
2954
|
+
request: t
|
|
2955
|
+
}) {
|
|
2956
|
+
const { searchParams: r } = new URL(t.url), n = r.get("url") ?? "/", a = e === "vtex" ? "draft" : r.get("status");
|
|
2957
|
+
return e !== "vtex" && r.get("secret") !== process.env.PREVIEW_SECRET ? { error: !0 } : {
|
|
2958
|
+
url: n,
|
|
2959
|
+
isDraft: a !== "published",
|
|
2960
|
+
previewData: e === "vtex" ? {
|
|
2961
|
+
versionId: r.get("versionId") ?? "",
|
|
2962
|
+
releaseId: r.get("releaseId") ?? "",
|
|
2963
|
+
documentId: r.get("documentId") ?? "",
|
|
2964
|
+
contentType: r.get("contentType") ?? ""
|
|
2965
|
+
} : null
|
|
2966
|
+
};
|
|
2967
|
+
}
|
|
2968
|
+
const da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2969
|
+
__proto__: null,
|
|
2970
|
+
getCMSPreviewData: ua
|
|
2971
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
2972
|
+
function pa(e) {
|
|
2973
|
+
return {
|
|
2974
|
+
redirectTo: e.nextUrl.searchParams.get("redirect") ?? "/",
|
|
2975
|
+
clearCookies: ["cms_preview_data"],
|
|
2976
|
+
disableDraft: !0
|
|
2977
|
+
};
|
|
2978
|
+
}
|
|
2979
|
+
const ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2980
|
+
__proto__: null,
|
|
2981
|
+
getCMSPreviewExitData: pa
|
|
2982
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
2983
|
+
async function fa({ pathname: e }) {
|
|
2984
|
+
return (await zt.get(
|
|
2985
|
+
`https://mariafilo.vtexcommercestable.com.br${e}`,
|
|
2986
|
+
{
|
|
2987
|
+
headers: {
|
|
2988
|
+
"Content-Type": "application/xml"
|
|
2989
|
+
}
|
|
2990
|
+
}
|
|
2991
|
+
)).data.replace(
|
|
2992
|
+
/mariafilo.vtexcommercestable/g,
|
|
2993
|
+
"www.multimarcassoma"
|
|
2994
|
+
);
|
|
2911
2995
|
}
|
|
2912
|
-
const
|
|
2996
|
+
const ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2913
2997
|
__proto__: null,
|
|
2914
|
-
|
|
2915
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2916
|
-
checkout:
|
|
2917
|
-
catalog:
|
|
2918
|
-
cms:
|
|
2919
|
-
search:
|
|
2920
|
-
masterdata:
|
|
2921
|
-
marketingdata:
|
|
2922
|
-
user:
|
|
2998
|
+
getVtexXmlProxyData: fa
|
|
2999
|
+
}, Symbol.toStringTag, { value: "Module" })), Ia = {
|
|
3000
|
+
checkout: Zr,
|
|
3001
|
+
catalog: on,
|
|
3002
|
+
cms: Ft,
|
|
3003
|
+
search: En,
|
|
3004
|
+
masterdata: Fn,
|
|
3005
|
+
marketingdata: $t,
|
|
3006
|
+
user: ia,
|
|
3007
|
+
aviseme: ca,
|
|
3008
|
+
preview: da,
|
|
3009
|
+
exitpreview: ma,
|
|
3010
|
+
vtexXmlProxy: ha,
|
|
2923
3011
|
wishlist: {
|
|
2924
|
-
...
|
|
3012
|
+
...Dn
|
|
2925
3013
|
}
|
|
2926
|
-
},
|
|
2927
|
-
catalog:
|
|
2928
|
-
search:
|
|
2929
|
-
product:
|
|
3014
|
+
}, Pa = {
|
|
3015
|
+
catalog: Ht,
|
|
3016
|
+
search: oa,
|
|
3017
|
+
product: Ut,
|
|
2930
3018
|
cms: {
|
|
2931
|
-
...
|
|
2932
|
-
...
|
|
3019
|
+
...Dt,
|
|
3020
|
+
...Lt
|
|
2933
3021
|
}
|
|
2934
|
-
},
|
|
3022
|
+
}, xa = {
|
|
2935
3023
|
template: {
|
|
2936
3024
|
pdp: {}
|
|
2937
3025
|
}
|
|
2938
3026
|
};
|
|
2939
3027
|
export {
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
3028
|
+
Ia as serverAPIs,
|
|
3029
|
+
Ra as serverCMS,
|
|
3030
|
+
xa as serverComponents,
|
|
3031
|
+
Pa as serverHelpers
|
|
2944
3032
|
};
|