@soma-vertical-web/multi-lib 1.0.21 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cms/ContentTypes/LPLojas/LPLojaClientWrapper.d.ts +1 -1
- package/cms/ContentTypes/LPLojas/LPLojasContent.d.ts +1 -1
- package/cms/ContentTypes/LPLojas/helpers.d.ts +1 -7
- package/cms/ContentTypes/PolicyPage/PolicyPageContent.d.ts +3 -0
- package/cms/index.d.ts +1 -1
- package/cms/server.d.ts +2 -1
- package/contexts/contexts/lplojas/Context.d.ts +1 -1
- package/contexts/index.d.ts +2 -2
- package/index-D61YFVi9.mjs +2261 -0
- package/index-DyKuIyRP.js +4 -0
- package/index.js +16 -16
- package/index.mjs +7158 -6900
- package/index2.js +2 -2
- package/index2.mjs +949 -999
- package/layout/index.d.ts +6 -4
- package/layout/template/LPLojas/Composite/Details/Details.d.ts +1 -1
- package/layout/template/LPLojas/Composite/Details/Item.d.ts +1 -1
- package/layout/template/LPLojas/Composite/Details/Vendor.d.ts +1 -1
- package/layout/template/LPLojas/Composite/DropDown/DropDown.d.ts +1 -1
- package/layout/template/LPLojas/Composite/Root.d.ts +1 -1
- package/layout/template/LPLojas/index.d.ts +3 -3
- package/layout/template/PDC/Composite/Products/Products.d.ts +1 -1
- package/layout/template/PDC/index.d.ts +1 -1
- package/layout/template/PDP/Composite/Info/MainContent/Similars/index.d.ts +1 -1
- package/layout/template/PDP/index.d.ts +2 -2
- package/layout/template/Politicas/Composite/Banner.d.ts +4 -0
- package/layout/template/Politicas/Composite/Container.d.ts +7 -0
- package/layout/template/Politicas/Composite/OneTrustPolicy.d.ts +14 -0
- package/layout/template/Politicas/Politicas.d.ts +10 -0
- package/package.json +1 -1
- package/server.d.ts +1 -3
- package/style.css +1 -1
- package/types/cms/ContentTypes/LPLojas/index.d.ts +22 -1
- package/types/cms/ContentTypes/PolicyPage/index.d.ts +17 -0
- package/types/cms/Sections/SectionZone/index.d.ts +1 -0
- package/types/contexts/contexts/plp.d.ts +1 -0
- package/types/contexts/hooks/index.d.ts +12 -0
- package/types/layout/team-components/ProductCard/index.d.ts +1 -0
- package/types/layout/team-components/ProductList/index.d.ts +2 -1
- package/types/layout/templates/LPLojas/Details/index.d.ts +18 -0
- package/types/layout/templates/LPLojas/DropDown/index.d.ts +10 -0
- package/types/layout/templates/LPLojas/index.d.ts +18 -0
- package/types/layout/templates/PDP/index.d.ts +1 -2
- package/types/layout/templates/PLP/index.d.ts +1 -0
- package/types/layout/templates/Politicas/index.d.ts +27 -0
package/index2.mjs
CHANGED
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
import { jsx as N, jsxs as
|
|
2
|
-
import { F
|
|
1
|
+
import { jsx as N, jsxs as me, Fragment as J } from "react/jsx-runtime";
|
|
2
|
+
import { F, z as se, S as _t, G as Rt, H as It, a as Pt, j as xt, m as St, r as Ct, q as kt, k as ze, n as Et, o as At, l as Ot, D as Tt, C as qt, I as Nt, p as jt, J as Ft, K as $t, L as Lt, e as Dt, M as Ut } from "./index-D61YFVi9.mjs";
|
|
3
3
|
import { Utils as le, helpers as ce } from "@soma-vertical-web/core-components";
|
|
4
4
|
import * as c from "yup";
|
|
5
|
-
import
|
|
6
|
-
import { decodeJwt as
|
|
7
|
-
const
|
|
5
|
+
import Ht from "sanitize-html";
|
|
6
|
+
import { decodeJwt as Mt } from "jose";
|
|
7
|
+
const Bt = async ({
|
|
8
8
|
children: e,
|
|
9
9
|
ClientCartProvider: t,
|
|
10
10
|
...r
|
|
11
11
|
}) => {
|
|
12
|
-
const { data: n } = await
|
|
12
|
+
const { data: n } = await F(
|
|
13
13
|
"mini_cart",
|
|
14
14
|
r
|
|
15
15
|
);
|
|
16
16
|
return /* @__PURE__ */ N(t, { ...n ? Array.isArray(n) ? { data: n[0] } : { data: n } : {}, children: e });
|
|
17
|
-
},
|
|
17
|
+
}, zt = ({
|
|
18
18
|
slug: e,
|
|
19
19
|
data: t,
|
|
20
20
|
SectionZone: r,
|
|
21
21
|
COMMON_PAGE_COLUMN_GAP: n,
|
|
22
|
-
identifyWhoIsFirst:
|
|
22
|
+
identifyWhoIsFirst: a
|
|
23
23
|
}) => {
|
|
24
|
-
const
|
|
24
|
+
const o = t == null ? void 0 : t.find(
|
|
25
25
|
(u) => {
|
|
26
26
|
var w, v, y, _;
|
|
27
27
|
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
28
|
}
|
|
29
|
-
),
|
|
29
|
+
), l = 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
30
|
(u) => {
|
|
31
31
|
var w, v, y, _;
|
|
32
32
|
return ((v = (w = u.config) == null ? void 0 : w.responsive) == null ? void 0 : v.deviceType) === "mobile" && ((_ = (y = u.config) == null ? void 0 : y.seo) == null ? void 0 : _.slug) === e;
|
|
33
33
|
}
|
|
34
|
-
), g = d == null ? void 0 : d.config.responsive.gapCustom,
|
|
35
|
-
return /* @__PURE__ */
|
|
34
|
+
), g = d == null ? void 0 : d.config.responsive.gapCustom, s = d == null ? void 0 : d.config.responsive.gapSections;
|
|
35
|
+
return /* @__PURE__ */ me(J, { children: [
|
|
36
36
|
/* @__PURE__ */ N(
|
|
37
37
|
le.Column,
|
|
38
38
|
{
|
|
39
|
-
gap:
|
|
39
|
+
gap: l && i ? i : n,
|
|
40
40
|
className: ce.classNameConcat(
|
|
41
41
|
se["responsive-desktop-flex"],
|
|
42
42
|
"utils-column-modifier"
|
|
43
43
|
),
|
|
44
|
-
children: /* @__PURE__ */ N(r, { data: (
|
|
44
|
+
children: /* @__PURE__ */ N(r, { data: (o == null ? void 0 : o.sections) ?? [], identifyWhoIsFirst: a })
|
|
45
45
|
}
|
|
46
46
|
),
|
|
47
47
|
/* @__PURE__ */ N(
|
|
48
48
|
le.Column,
|
|
49
49
|
{
|
|
50
|
-
gap: g &&
|
|
50
|
+
gap: g && s ? s : n,
|
|
51
51
|
className: ce.classNameConcat(
|
|
52
52
|
se["responsive-mobile-flex"],
|
|
53
53
|
"utils-column-modifier"
|
|
54
54
|
),
|
|
55
|
-
children: /* @__PURE__ */ N(r, { data: (d == null ? void 0 : d.sections) ?? [], identifyWhoIsFirst:
|
|
55
|
+
children: /* @__PURE__ */ N(r, { data: (d == null ? void 0 : d.sections) ?? [], identifyWhoIsFirst: a })
|
|
56
56
|
}
|
|
57
57
|
)
|
|
58
58
|
] });
|
|
59
|
-
},
|
|
59
|
+
}, Gt = async ({
|
|
60
60
|
slug: e,
|
|
61
61
|
SectionZone: t,
|
|
62
62
|
COMMON_PAGE_COLUMN_GAP: r,
|
|
63
63
|
identifyWhoIsFirst: n = !1,
|
|
64
|
-
...
|
|
64
|
+
...a
|
|
65
65
|
}) => {
|
|
66
|
-
const { data:
|
|
66
|
+
const { data: o } = await F(
|
|
67
67
|
"common_page",
|
|
68
|
-
|
|
68
|
+
a
|
|
69
69
|
);
|
|
70
|
-
return !
|
|
71
|
-
|
|
70
|
+
return !o || !Array.isArray(o) || o.length === 0 ? null : /* @__PURE__ */ N(
|
|
71
|
+
zt,
|
|
72
72
|
{
|
|
73
|
-
data:
|
|
73
|
+
data: o,
|
|
74
74
|
slug: e,
|
|
75
75
|
SectionZone: t,
|
|
76
76
|
COMMON_PAGE_COLUMN_GAP: r,
|
|
77
77
|
identifyWhoIsFirst: n
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
|
-
},
|
|
80
|
+
}, Vt = async ({
|
|
81
81
|
children: e,
|
|
82
82
|
ClientFlagsAndTagsProvider: t,
|
|
83
83
|
...r
|
|
84
84
|
}) => {
|
|
85
|
-
const { data: n } = await
|
|
85
|
+
const { data: n } = await F(
|
|
86
86
|
"flags_and_tags",
|
|
87
87
|
r
|
|
88
88
|
);
|
|
89
89
|
return !n || !Array.isArray(n) ? null : /* @__PURE__ */ N(t, { data: n[0], children: e });
|
|
90
|
-
},
|
|
90
|
+
}, Wt = async ({
|
|
91
91
|
className: e,
|
|
92
92
|
PAYMENT_FLAGS_DICTIONARY: t,
|
|
93
93
|
PAYMENT_FLAGS: r,
|
|
94
94
|
LEGAL_INFORMATION_TEXT: n,
|
|
95
|
-
ICONS:
|
|
96
|
-
SectionZone:
|
|
97
|
-
Footer:
|
|
98
|
-
FooterSupport:
|
|
95
|
+
ICONS: a,
|
|
96
|
+
SectionZone: o,
|
|
97
|
+
Footer: l,
|
|
98
|
+
FooterSupport: i,
|
|
99
99
|
hasFooterStamps: d,
|
|
100
100
|
...g
|
|
101
101
|
}) => {
|
|
102
102
|
var v, y, _, p, b, m, h, f, E, q, I;
|
|
103
|
-
const { data:
|
|
103
|
+
const { data: s } = await F("footer", g), u = Array.isArray(s) && ((v = s[0]) == null ? void 0 : v.type) === "footer" ? s[0] : null, w = {
|
|
104
104
|
...(y = u == null ? void 0 : u.paymentInfo) == null ? void 0 : y.paymentInfo,
|
|
105
105
|
acceptedFlags: Array.isArray(
|
|
106
106
|
(_ = u == null ? void 0 : u.paymentInfo) == null ? void 0 : _.paymentInfo.acceptedFlags
|
|
@@ -109,7 +109,7 @@ const Gt = async ({
|
|
|
109
109
|
) : []
|
|
110
110
|
};
|
|
111
111
|
return u ? /* @__PURE__ */ N(
|
|
112
|
-
|
|
112
|
+
l,
|
|
113
113
|
{
|
|
114
114
|
className: e,
|
|
115
115
|
data: { ...u },
|
|
@@ -120,55 +120,55 @@ const Gt = async ({
|
|
|
120
120
|
adornment: {
|
|
121
121
|
...(E = (f = u.supportInfo) == null ? void 0 : f.supportInfo) != null && E.content ? {
|
|
122
122
|
bottom: /* @__PURE__ */ N(
|
|
123
|
-
|
|
123
|
+
i,
|
|
124
124
|
{
|
|
125
125
|
content: (I = (q = u.supportInfo) == null ? void 0 : q.supportInfo) == null ? void 0 : I.content,
|
|
126
126
|
CONSTANTS: {
|
|
127
|
-
ICONS:
|
|
127
|
+
ICONS: a,
|
|
128
128
|
PAYMENT_FLAGS: r,
|
|
129
129
|
PAYMENT_FLAGS_DICTIONARY: t
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
)
|
|
133
133
|
} : {},
|
|
134
|
-
...u.sections.length ? { top: /* @__PURE__ */ N(
|
|
134
|
+
...u.sections.length ? { top: /* @__PURE__ */ N(o, { data: u.sections }) } : {}
|
|
135
135
|
},
|
|
136
136
|
LEGAL_INFORMATION_TEXT: n,
|
|
137
|
-
ICONS:
|
|
137
|
+
ICONS: a
|
|
138
138
|
}
|
|
139
139
|
) : null;
|
|
140
|
-
},
|
|
140
|
+
}, Qt = async ({
|
|
141
141
|
children: e,
|
|
142
142
|
ClientHeaderProvider: t,
|
|
143
143
|
...r
|
|
144
144
|
}) => {
|
|
145
|
-
var
|
|
146
|
-
const { data: n } = await
|
|
145
|
+
var o, l, i, d, g, s;
|
|
146
|
+
const { data: n } = await F(
|
|
147
147
|
"header",
|
|
148
148
|
r
|
|
149
|
-
),
|
|
149
|
+
), a = Array.isArray(n) ? n[0] : void 0;
|
|
150
150
|
return /* @__PURE__ */ N(
|
|
151
151
|
t,
|
|
152
152
|
{
|
|
153
153
|
headerData: {
|
|
154
|
-
...((
|
|
155
|
-
subMenus: ((
|
|
156
|
-
categories: ((d = (
|
|
157
|
-
navigationLinks: ((
|
|
154
|
+
...((o = a == null ? void 0 : a.layerConfig) == null ? void 0 : o.config) ?? {},
|
|
155
|
+
subMenus: ((l = a == null ? void 0 : a.sections) == null ? void 0 : l.map((u) => u.data)) ?? [],
|
|
156
|
+
categories: ((d = (i = a == null ? void 0 : a.categories) == null ? void 0 : i.categories) == null ? void 0 : d.items) ?? [],
|
|
157
|
+
navigationLinks: ((s = (g = a == null ? void 0 : a.navigationLinks) == null ? void 0 : g.navigationLinks) == null ? void 0 : s.items) ?? []
|
|
158
158
|
},
|
|
159
159
|
children: e
|
|
160
160
|
}
|
|
161
161
|
);
|
|
162
|
-
},
|
|
163
|
-
var
|
|
164
|
-
const t = (
|
|
162
|
+
}, Xt = (e) => {
|
|
163
|
+
var l, i;
|
|
164
|
+
const t = (i = (l = e[0]) == null ? void 0 : l.items) == null ? void 0 : i.items;
|
|
165
165
|
if ((t == null ? void 0 : t.items.length) === 0 || e.length === 0)
|
|
166
166
|
return {
|
|
167
167
|
iconLabel: "",
|
|
168
168
|
label: "",
|
|
169
169
|
content: []
|
|
170
170
|
};
|
|
171
|
-
const r = t == null ? void 0 : t.iconLabel, n = t == null ? void 0 : t.label,
|
|
171
|
+
const r = t == null ? void 0 : t.iconLabel, n = t == null ? void 0 : t.label, a = t == null ? void 0 : t.helpButtonSize, o = t.items.map(
|
|
172
172
|
(d, g) => ({
|
|
173
173
|
type: d.type,
|
|
174
174
|
id: `${g.toString()}-${d.title.toLowerCase()}`,
|
|
@@ -185,165 +185,165 @@ const Gt = async ({
|
|
|
185
185
|
return {
|
|
186
186
|
iconLabel: r,
|
|
187
187
|
label: n,
|
|
188
|
-
helpButtonSize:
|
|
189
|
-
content:
|
|
188
|
+
helpButtonSize: a,
|
|
189
|
+
content: o
|
|
190
190
|
};
|
|
191
|
-
},
|
|
191
|
+
}, Kt = async ({
|
|
192
192
|
HelpButton: e,
|
|
193
193
|
ICONS: t,
|
|
194
194
|
className: r,
|
|
195
195
|
...n
|
|
196
196
|
}) => {
|
|
197
|
-
const { data:
|
|
197
|
+
const { data: a } = await F(
|
|
198
198
|
"helpbutton",
|
|
199
199
|
n
|
|
200
200
|
);
|
|
201
|
-
if (!
|
|
201
|
+
if (!a || !Array.isArray(a) || a.length === 0)
|
|
202
202
|
return null;
|
|
203
|
-
const
|
|
203
|
+
const o = Xt(a);
|
|
204
204
|
return /* @__PURE__ */ N(
|
|
205
205
|
e,
|
|
206
206
|
{
|
|
207
|
-
data:
|
|
207
|
+
data: o,
|
|
208
208
|
ICONS: t,
|
|
209
209
|
className: r
|
|
210
210
|
}
|
|
211
211
|
);
|
|
212
|
-
},
|
|
212
|
+
}, Jt = async ({
|
|
213
213
|
SectionZone: e,
|
|
214
214
|
LPCadastro: t,
|
|
215
215
|
...r
|
|
216
216
|
}) => {
|
|
217
217
|
var d;
|
|
218
|
-
const { data: n } = await
|
|
218
|
+
const { data: n } = await F(
|
|
219
219
|
"lp_cadastro",
|
|
220
220
|
r
|
|
221
221
|
);
|
|
222
222
|
if (!n || !Array.isArray(n) || n.length === 0)
|
|
223
223
|
return null;
|
|
224
|
-
const [
|
|
225
|
-
return /* @__PURE__ */
|
|
226
|
-
/* @__PURE__ */ N(t, { sections:
|
|
227
|
-
/* @__PURE__ */ N(e, { data:
|
|
224
|
+
const [a] = n, o = (a == null ? void 0 : a.sections) || [], l = ((d = a == null ? void 0 : a.content) == null ? void 0 : d.conteúdo) || {}, i = a == null ? void 0 : a.sections;
|
|
225
|
+
return /* @__PURE__ */ me(J, { children: [
|
|
226
|
+
/* @__PURE__ */ N(t, { sections: o, content: l }),
|
|
227
|
+
/* @__PURE__ */ N(e, { data: i })
|
|
228
228
|
] });
|
|
229
|
-
},
|
|
229
|
+
}, Zt = async ({
|
|
230
230
|
LPLOJAS_TEMPLATE_RETURN_BUTTON: e,
|
|
231
231
|
ICONS: t,
|
|
232
232
|
entity: r,
|
|
233
233
|
showVendor: n,
|
|
234
|
-
LPStoresClientWrapper:
|
|
235
|
-
...
|
|
234
|
+
LPStoresClientWrapper: a,
|
|
235
|
+
...o
|
|
236
236
|
}) => {
|
|
237
237
|
var g;
|
|
238
|
-
const { data:
|
|
238
|
+
const { data: l } = await F("lp_lojas", o), d = (g = (Array.isArray(l) ? l : [])[0]) == null ? void 0 : g.config.config;
|
|
239
239
|
return /* @__PURE__ */ N(
|
|
240
|
-
|
|
240
|
+
a,
|
|
241
241
|
{
|
|
242
242
|
entity: r,
|
|
243
243
|
content: d,
|
|
244
|
-
data:
|
|
244
|
+
data: l,
|
|
245
245
|
showVendor: n,
|
|
246
246
|
ICONS: t,
|
|
247
247
|
LPLOJAS_TEMPLATE_RETURN_BUTTON: e
|
|
248
248
|
}
|
|
249
249
|
);
|
|
250
|
-
},
|
|
250
|
+
}, Yt = async ({
|
|
251
251
|
children: e,
|
|
252
252
|
productId: t,
|
|
253
253
|
COMMON_PAGE_COLUMN_GAP: r,
|
|
254
254
|
SectionZone: n,
|
|
255
|
-
PDPContentProvider:
|
|
256
|
-
...
|
|
255
|
+
PDPContentProvider: a,
|
|
256
|
+
...o
|
|
257
257
|
}) => {
|
|
258
|
-
const { data:
|
|
258
|
+
const { data: l } = await F(
|
|
259
259
|
"product_page",
|
|
260
|
-
|
|
260
|
+
o
|
|
261
261
|
);
|
|
262
|
-
return !
|
|
263
|
-
|
|
262
|
+
return !l || !Array.isArray(l) || l.length === 0 ? null : /* @__PURE__ */ N(
|
|
263
|
+
a,
|
|
264
264
|
{
|
|
265
|
-
data:
|
|
265
|
+
data: l[0],
|
|
266
266
|
productId: t,
|
|
267
267
|
COMMON_PAGE_COLUMN_GAP: r,
|
|
268
268
|
SectionZone: n,
|
|
269
269
|
children: e
|
|
270
270
|
}
|
|
271
271
|
);
|
|
272
|
-
},
|
|
272
|
+
}, er = {
|
|
273
273
|
"column-modifier": "_column-modifier_1tqap_1"
|
|
274
|
-
},
|
|
274
|
+
}, tr = async ({
|
|
275
275
|
className: e,
|
|
276
276
|
children: t,
|
|
277
277
|
slug: r,
|
|
278
278
|
SectionZone: n,
|
|
279
|
-
COMMON_PAGE_COLUMN_GAP_PDC:
|
|
280
|
-
PLPContentProvider:
|
|
281
|
-
...
|
|
279
|
+
COMMON_PAGE_COLUMN_GAP_PDC: a,
|
|
280
|
+
PLPContentProvider: o,
|
|
281
|
+
...l
|
|
282
282
|
}) => {
|
|
283
|
-
const { data:
|
|
283
|
+
const { data: i } = await F(
|
|
284
284
|
"categories_page",
|
|
285
|
-
|
|
285
|
+
l
|
|
286
286
|
);
|
|
287
|
-
if (!
|
|
287
|
+
if (!i || !Array.isArray(i))
|
|
288
288
|
return null;
|
|
289
|
-
const d =
|
|
289
|
+
const d = i.find(
|
|
290
290
|
(v) => {
|
|
291
291
|
var y, _, p;
|
|
292
292
|
return ((y = v.config) == null ? void 0 : y.seo.slug) === r && ((p = (_ = v.config) == null ? void 0 : _.responsive) == null ? void 0 : p.deviceType) === "desktop";
|
|
293
293
|
}
|
|
294
|
-
), g =
|
|
294
|
+
), g = i.find(
|
|
295
295
|
(v) => {
|
|
296
296
|
var y, _, p;
|
|
297
297
|
return ((y = v.config) == null ? void 0 : y.seo.slug) === r && ((p = (_ = v.config) == null ? void 0 : _.responsive) == null ? void 0 : p.deviceType) === "mobile";
|
|
298
298
|
}
|
|
299
|
-
),
|
|
299
|
+
), s = i.find(
|
|
300
300
|
(v) => {
|
|
301
301
|
var y, _, p;
|
|
302
302
|
return ((y = v.config) == null ? void 0 : y.seo.slug) === "default" && ((p = (_ = v.config) == null ? void 0 : _.responsive) == null ? void 0 : p.deviceType) === "desktop";
|
|
303
303
|
}
|
|
304
|
-
), u =
|
|
304
|
+
), u = i.find(
|
|
305
305
|
(v) => {
|
|
306
306
|
var y, _, p;
|
|
307
307
|
return ((y = v.config) == null ? void 0 : y.seo.slug) === "default" && ((p = (_ = v.config) == null ? void 0 : _.responsive) == null ? void 0 : p.deviceType) === "mobile";
|
|
308
308
|
}
|
|
309
309
|
), w = Array.isArray(e) ? e : [e];
|
|
310
|
-
return /* @__PURE__ */
|
|
310
|
+
return /* @__PURE__ */ me(J, { children: [
|
|
311
311
|
/* @__PURE__ */ N(
|
|
312
312
|
le.Column,
|
|
313
313
|
{
|
|
314
314
|
className: ce.classNameConcat(
|
|
315
315
|
se["responsive-desktop-flex"],
|
|
316
|
-
[
|
|
316
|
+
[er["column-modifier"], ...w]
|
|
317
317
|
),
|
|
318
318
|
style: {
|
|
319
319
|
minHeight: "100vh"
|
|
320
320
|
},
|
|
321
321
|
children: /* @__PURE__ */ N(
|
|
322
|
-
|
|
322
|
+
o,
|
|
323
323
|
{
|
|
324
|
-
data: d ??
|
|
324
|
+
data: d ?? s,
|
|
325
325
|
device: "desktop",
|
|
326
326
|
SectionZone: n,
|
|
327
|
-
COMMON_PAGE_COLUMN_GAP_PDC:
|
|
327
|
+
COMMON_PAGE_COLUMN_GAP_PDC: a,
|
|
328
328
|
children: t
|
|
329
329
|
}
|
|
330
330
|
)
|
|
331
331
|
}
|
|
332
332
|
),
|
|
333
333
|
/* @__PURE__ */ N(le.Column, { className: ce.classNameConcat(se["responsive-mobile-flex"], e), children: /* @__PURE__ */ N(
|
|
334
|
-
|
|
334
|
+
o,
|
|
335
335
|
{
|
|
336
336
|
data: g ?? u,
|
|
337
337
|
device: "mobile",
|
|
338
338
|
SectionZone: n,
|
|
339
|
-
COMMON_PAGE_COLUMN_GAP_PDC:
|
|
339
|
+
COMMON_PAGE_COLUMN_GAP_PDC: a,
|
|
340
340
|
children: t
|
|
341
341
|
}
|
|
342
342
|
) })
|
|
343
343
|
] });
|
|
344
|
-
},
|
|
345
|
-
var
|
|
346
|
-
const { data: r } = await
|
|
344
|
+
}, rr = async ({ slug: e, ...t }) => {
|
|
345
|
+
var l, i, d;
|
|
346
|
+
const { data: r } = await F(
|
|
347
347
|
"redirect_to_search",
|
|
348
348
|
t
|
|
349
349
|
);
|
|
@@ -353,26 +353,26 @@ const Gt = async ({
|
|
|
353
353
|
query: null,
|
|
354
354
|
redirect: !1
|
|
355
355
|
};
|
|
356
|
-
const n = ((d = (
|
|
356
|
+
const n = ((d = (i = (l = r[0]) == null ? void 0 : l.redirectToSearch) == null ? void 0 : i.redirectToSearch) == null ? void 0 : d.paths) ?? [];
|
|
357
357
|
if (!!!n.length)
|
|
358
358
|
return {
|
|
359
359
|
slug: e,
|
|
360
360
|
query: null,
|
|
361
361
|
redirect: !1
|
|
362
362
|
};
|
|
363
|
-
const
|
|
363
|
+
const o = n.find(
|
|
364
364
|
(g) => {
|
|
365
|
-
var
|
|
366
|
-
return ((
|
|
365
|
+
var s, u;
|
|
366
|
+
return ((s = g.path) == null ? void 0 : s.replace(/\//g, "-").toLowerCase()) === e.replace(/\//g, "-").toLowerCase() || ((u = g.path) == null ? void 0 : u.replace(/\//g, "-").toLowerCase()) === `/${e}`.replace(/\//g, "-").toLowerCase();
|
|
367
367
|
}
|
|
368
368
|
);
|
|
369
|
-
return
|
|
369
|
+
return o ? {
|
|
370
370
|
slug: e,
|
|
371
|
-
query:
|
|
371
|
+
query: o == null ? void 0 : o.searchQuery,
|
|
372
372
|
redirect: !0,
|
|
373
|
-
collectionId:
|
|
374
|
-
filters:
|
|
375
|
-
sort:
|
|
373
|
+
collectionId: o == null ? void 0 : o.collectionId,
|
|
374
|
+
filters: o == null ? void 0 : o.filters,
|
|
375
|
+
sort: o == null ? void 0 : o.sort
|
|
376
376
|
} : {
|
|
377
377
|
slug: e,
|
|
378
378
|
query: null,
|
|
@@ -381,98 +381,125 @@ const Gt = async ({
|
|
|
381
381
|
filters: null,
|
|
382
382
|
sort: null
|
|
383
383
|
};
|
|
384
|
-
},
|
|
385
|
-
var
|
|
386
|
-
const { data: r } = await
|
|
384
|
+
}, nr = async ({ slug: e, ...t }) => {
|
|
385
|
+
var l, i, d;
|
|
386
|
+
const { data: r } = await F(
|
|
387
387
|
"redirect_to_search",
|
|
388
388
|
t
|
|
389
389
|
);
|
|
390
390
|
if (!r || !Array.isArray(r))
|
|
391
391
|
return null;
|
|
392
|
-
const n = ((d = (
|
|
392
|
+
const n = ((d = (i = (l = r[0]) == null ? void 0 : l.redirectToSearch) == null ? void 0 : i.redirectToSearch) == null ? void 0 : d.paths) ?? [];
|
|
393
393
|
if (!!!n.length)
|
|
394
394
|
return null;
|
|
395
|
-
const
|
|
395
|
+
const o = n.find(
|
|
396
396
|
(g) => {
|
|
397
|
-
var
|
|
398
|
-
return ((
|
|
397
|
+
var s, u;
|
|
398
|
+
return ((s = g.path) == null ? void 0 : s.replace(/\//g, "-").toLowerCase()) === e.replace(/\//g, "-").toLowerCase() || ((u = g.path) == null ? void 0 : u.replace(/\//g, "-").toLowerCase()) === `/${e}`.replace(/\//g, "-").toLowerCase();
|
|
399
399
|
}
|
|
400
400
|
);
|
|
401
|
-
return
|
|
401
|
+
return o ? {
|
|
402
402
|
slug: e,
|
|
403
|
-
title:
|
|
404
|
-
description:
|
|
403
|
+
title: o.pageTitle,
|
|
404
|
+
description: o.pageDescription
|
|
405
405
|
} : null;
|
|
406
406
|
}, ar = async ({
|
|
407
|
+
slug: e,
|
|
408
|
+
Politicas: t,
|
|
409
|
+
SectionZone: r,
|
|
410
|
+
oneTrust: n,
|
|
411
|
+
...a
|
|
412
|
+
}) => {
|
|
413
|
+
const { data: o } = await F(
|
|
414
|
+
"policy_page",
|
|
415
|
+
a
|
|
416
|
+
), { data: l } = await F(
|
|
417
|
+
"policy_tab",
|
|
418
|
+
a
|
|
419
|
+
), i = Array.isArray(o) ? o : null, d = Array.isArray(l) ? l : null, g = i ? i[0].sections : null;
|
|
420
|
+
return !i || !d ? null : /* @__PURE__ */ me(J, { children: [
|
|
421
|
+
/* @__PURE__ */ N(
|
|
422
|
+
t,
|
|
423
|
+
{
|
|
424
|
+
slug: e,
|
|
425
|
+
pageData: i[0],
|
|
426
|
+
tabsData: d,
|
|
427
|
+
oneTrust: n
|
|
428
|
+
}
|
|
429
|
+
),
|
|
430
|
+
g && /* @__PURE__ */ N(r, { data: g })
|
|
431
|
+
] });
|
|
432
|
+
}, ir = async ({
|
|
407
433
|
children: e,
|
|
408
434
|
SectionZone: t,
|
|
409
435
|
className: r,
|
|
410
436
|
...n
|
|
411
437
|
}) => {
|
|
412
|
-
const { data:
|
|
438
|
+
const { data: a } = await F(
|
|
413
439
|
"search_page",
|
|
414
440
|
n
|
|
415
441
|
);
|
|
416
|
-
return Array.isArray(
|
|
417
|
-
|
|
442
|
+
return Array.isArray(a) && a.length > 0 ? /* @__PURE__ */ N(
|
|
443
|
+
_t,
|
|
418
444
|
{
|
|
419
|
-
data:
|
|
445
|
+
data: a,
|
|
420
446
|
SectionZone: t,
|
|
421
447
|
className: r,
|
|
422
448
|
children: e
|
|
423
449
|
}
|
|
424
|
-
) : /* @__PURE__ */ N(
|
|
425
|
-
},
|
|
450
|
+
) : /* @__PURE__ */ N(J, { children: "children" });
|
|
451
|
+
}, or = async ({
|
|
426
452
|
ClientTipbarContent: e,
|
|
427
453
|
...t
|
|
428
454
|
}) => {
|
|
429
|
-
const { data: r } = await
|
|
455
|
+
const { data: r } = await F(
|
|
430
456
|
"tipbar",
|
|
431
457
|
t
|
|
432
458
|
);
|
|
433
459
|
return /* @__PURE__ */ N(e, { data: r });
|
|
434
|
-
},
|
|
435
|
-
CommonPageContent:
|
|
436
|
-
CartContent:
|
|
437
|
-
FlagsAndTagsContent:
|
|
438
|
-
HeaderContent:
|
|
439
|
-
TipbarContent:
|
|
440
|
-
FooterContent:
|
|
441
|
-
PLPContent:
|
|
442
|
-
PDPContent:
|
|
443
|
-
getRedirectData:
|
|
444
|
-
getPLPSynteticMetaData:
|
|
445
|
-
SearchPageContent:
|
|
446
|
-
HelpButtonContent:
|
|
447
|
-
LPCadastroContent:
|
|
448
|
-
LPLojasContent:
|
|
449
|
-
|
|
450
|
-
|
|
460
|
+
}, sr = {
|
|
461
|
+
CommonPageContent: Gt,
|
|
462
|
+
CartContent: Bt,
|
|
463
|
+
FlagsAndTagsContent: Vt,
|
|
464
|
+
HeaderContent: Qt,
|
|
465
|
+
TipbarContent: or,
|
|
466
|
+
FooterContent: Wt,
|
|
467
|
+
PLPContent: tr,
|
|
468
|
+
PDPContent: Yt,
|
|
469
|
+
getRedirectData: rr,
|
|
470
|
+
getPLPSynteticMetaData: nr,
|
|
471
|
+
SearchPageContent: ir,
|
|
472
|
+
HelpButtonContent: Kt,
|
|
473
|
+
LPCadastroContent: Jt,
|
|
474
|
+
LPLojasContent: Zt,
|
|
475
|
+
PolicyPageContent: ar
|
|
476
|
+
}, la = { Components: sr }, O = async (e, t = {}) => {
|
|
477
|
+
const { method: r = "GET", body: n, headers: a = {}, priority: o = "auto", cache: l = "default" } = t;
|
|
451
478
|
return fetch(e, {
|
|
452
479
|
method: r,
|
|
453
480
|
headers: {
|
|
454
|
-
...
|
|
481
|
+
...a,
|
|
455
482
|
Accept: "application/json",
|
|
456
483
|
"Content-Type": "application/json"
|
|
457
484
|
},
|
|
458
|
-
priority:
|
|
459
|
-
cache:
|
|
485
|
+
priority: o,
|
|
486
|
+
cache: l,
|
|
460
487
|
...n ? { body: JSON.stringify(n) } : {}
|
|
461
488
|
// not body in get
|
|
462
|
-
}).then((
|
|
463
|
-
console.error("[ERROR FETCH VTEX]",
|
|
489
|
+
}).then((i) => i.json()).catch((i) => {
|
|
490
|
+
console.error("[ERROR FETCH VTEX]", i);
|
|
464
491
|
});
|
|
465
492
|
}, X = /* @__PURE__ */ new Map();
|
|
466
|
-
async function
|
|
493
|
+
async function lr(e, t = {}) {
|
|
467
494
|
var r;
|
|
468
495
|
try {
|
|
469
|
-
const { abort: n = !1 } = t,
|
|
470
|
-
n && (X.has(e) && ((r = X.get(e)) == null || r.abort(), X.delete(e)), X.set(e,
|
|
471
|
-
const
|
|
496
|
+
const { abort: n = !1 } = t, a = new AbortController();
|
|
497
|
+
n && (X.has(e) && ((r = X.get(e)) == null || r.abort(), X.delete(e)), X.set(e, a));
|
|
498
|
+
const o = O(e, {
|
|
472
499
|
...t,
|
|
473
|
-
...n ? { signal:
|
|
500
|
+
...n ? { signal: a.signal } : {}
|
|
474
501
|
});
|
|
475
|
-
return n && X.delete(e),
|
|
502
|
+
return n && X.delete(e), o;
|
|
476
503
|
} catch (n) {
|
|
477
504
|
if (n.name === "AbortError") {
|
|
478
505
|
console.log(`[REQUEST CANCELLED]: ${e}`);
|
|
@@ -481,19 +508,19 @@ async function cr(e, t = {}) {
|
|
|
481
508
|
throw console.error(`[ERROR API]: ${n.message}`), n;
|
|
482
509
|
}
|
|
483
510
|
}
|
|
484
|
-
const
|
|
511
|
+
const cr = c.object({
|
|
485
512
|
country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
|
|
486
513
|
postalCode: c.string().nullable()
|
|
487
514
|
});
|
|
488
|
-
async function
|
|
515
|
+
async function ur({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
489
516
|
if (!t) {
|
|
490
517
|
console.error("[ERROR FETCHING] Body is required");
|
|
491
518
|
return;
|
|
492
519
|
}
|
|
493
|
-
await
|
|
494
|
-
const { country: n, postalCode:
|
|
495
|
-
return await
|
|
496
|
-
`${e}/api/checkout/pub/postal-code/${n}/${
|
|
520
|
+
await cr.validate(t);
|
|
521
|
+
const { country: n, postalCode: a } = t;
|
|
522
|
+
return await O(
|
|
523
|
+
`${e}/api/checkout/pub/postal-code/${n}/${a}`,
|
|
497
524
|
{
|
|
498
525
|
method: "POST",
|
|
499
526
|
body: t,
|
|
@@ -501,12 +528,12 @@ async function dr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
501
528
|
}
|
|
502
529
|
);
|
|
503
530
|
}
|
|
504
|
-
const
|
|
531
|
+
const dr = c.object({
|
|
505
532
|
orderFormId: c.string().nullable(),
|
|
506
533
|
sellerCode: c.string().nullable(),
|
|
507
534
|
sellerName: c.string().nullable()
|
|
508
535
|
});
|
|
509
|
-
async function
|
|
536
|
+
async function Ge({
|
|
510
537
|
apiUrl: e,
|
|
511
538
|
body: t,
|
|
512
539
|
fetchOptions: r
|
|
@@ -515,25 +542,25 @@ async function We({
|
|
|
515
542
|
console.error("[ERROR FETCHING] Body is required");
|
|
516
543
|
return;
|
|
517
544
|
}
|
|
518
|
-
await
|
|
519
|
-
const { orderFormId: n, sellerCode:
|
|
520
|
-
return
|
|
545
|
+
await dr.validate(t);
|
|
546
|
+
const { orderFormId: n, sellerCode: a, sellerName: o } = t, l = a ? `${a.trim()} - ${o}` : null;
|
|
547
|
+
return O(
|
|
521
548
|
`${e}/api/checkout/pub/orderForm/${n}/attachments/openTextField`,
|
|
522
549
|
{
|
|
523
550
|
method: "POST",
|
|
524
551
|
body: {
|
|
525
|
-
value:
|
|
552
|
+
value: l
|
|
526
553
|
},
|
|
527
554
|
...r
|
|
528
555
|
}
|
|
529
556
|
);
|
|
530
557
|
}
|
|
531
|
-
const
|
|
558
|
+
const pr = c.object({
|
|
532
559
|
orderFormId: c.string().nullable(),
|
|
533
560
|
sellerCode: c.string().nullable(),
|
|
534
561
|
marketingData: c.object()
|
|
535
562
|
});
|
|
536
|
-
async function
|
|
563
|
+
async function Ve({
|
|
537
564
|
apiUrl: e,
|
|
538
565
|
body: t,
|
|
539
566
|
extraData: r = {},
|
|
@@ -543,50 +570,50 @@ async function Qe({
|
|
|
543
570
|
console.error("[ERROR FETCHING] Body is required");
|
|
544
571
|
return;
|
|
545
572
|
}
|
|
546
|
-
await
|
|
547
|
-
const { orderFormId:
|
|
548
|
-
utmCampaign:
|
|
549
|
-
utmiCampaign:
|
|
573
|
+
await pr.validate(t);
|
|
574
|
+
const { orderFormId: a, sellerCode: o, marketingData: l } = t, i = o ? {
|
|
575
|
+
utmCampaign: o ? o.toUpperCase() : "",
|
|
576
|
+
utmiCampaign: o ? `${r.VENDOR_CODE}` : "semcodigo"
|
|
550
577
|
} : {};
|
|
551
|
-
return
|
|
552
|
-
`${e}/api/checkout/pub/orderForm/${
|
|
578
|
+
return O(
|
|
579
|
+
`${e}/api/checkout/pub/orderForm/${a}/attachments/marketingData`,
|
|
553
580
|
{
|
|
554
581
|
method: "POST",
|
|
555
582
|
body: {
|
|
556
|
-
...
|
|
557
|
-
...
|
|
583
|
+
...l,
|
|
584
|
+
...i
|
|
558
585
|
},
|
|
559
586
|
...n
|
|
560
587
|
}
|
|
561
588
|
);
|
|
562
589
|
}
|
|
563
|
-
const
|
|
590
|
+
const mr = c.object({
|
|
564
591
|
orderFormId: c.string().nullable(),
|
|
565
592
|
sellerCode: c.string().nullable(),
|
|
566
593
|
sellerName: c.string().nullable()
|
|
567
594
|
});
|
|
568
|
-
async function
|
|
595
|
+
async function hr({ apiUrl: e, body: t, fetchOptions: r, extraData: n }) {
|
|
569
596
|
if (!t) {
|
|
570
597
|
console.error("[ERROR FETCHING] Body is required");
|
|
571
598
|
return;
|
|
572
599
|
}
|
|
573
|
-
await
|
|
574
|
-
const
|
|
575
|
-
return
|
|
600
|
+
await mr.validate(t);
|
|
601
|
+
const a = await Ge({ apiUrl: e, body: t, fetchOptions: r });
|
|
602
|
+
return Ve({
|
|
576
603
|
apiUrl: e,
|
|
577
604
|
body: {
|
|
578
605
|
...t,
|
|
579
|
-
marketingData:
|
|
606
|
+
marketingData: a == null ? void 0 : a.marketingData
|
|
580
607
|
},
|
|
581
608
|
extraData: n,
|
|
582
609
|
fetchOptions: r
|
|
583
610
|
});
|
|
584
611
|
}
|
|
585
|
-
const
|
|
612
|
+
const fr = c.object({
|
|
586
613
|
orderFormId: c.string().nullable(),
|
|
587
614
|
coupon: c.string().nullable()
|
|
588
615
|
});
|
|
589
|
-
async function
|
|
616
|
+
async function gr({
|
|
590
617
|
apiUrl: e,
|
|
591
618
|
body: t,
|
|
592
619
|
fetchOptions: r
|
|
@@ -595,10 +622,10 @@ async function br({
|
|
|
595
622
|
console.error("[ERROR FETCHING] Body is required");
|
|
596
623
|
return;
|
|
597
624
|
}
|
|
598
|
-
await
|
|
599
|
-
const { coupon: n = "", orderFormId:
|
|
600
|
-
return
|
|
601
|
-
`${e}/api/checkout/pub/orderForm/${
|
|
625
|
+
await fr.validate(t);
|
|
626
|
+
const { coupon: n = "", orderFormId: a } = t;
|
|
627
|
+
return O(
|
|
628
|
+
`${e}/api/checkout/pub/orderForm/${a}/coupons`,
|
|
602
629
|
{
|
|
603
630
|
method: "POST",
|
|
604
631
|
body: { text: n },
|
|
@@ -606,12 +633,12 @@ async function br({
|
|
|
606
633
|
}
|
|
607
634
|
);
|
|
608
635
|
}
|
|
609
|
-
const
|
|
636
|
+
const br = c.object({
|
|
610
637
|
appId: c.string().required("App ID is required"),
|
|
611
638
|
orderFormId: c.string().nullable(),
|
|
612
639
|
key: c.array().of(c.string())
|
|
613
640
|
});
|
|
614
|
-
async function
|
|
641
|
+
async function wr({
|
|
615
642
|
apiUrl: e,
|
|
616
643
|
body: t,
|
|
617
644
|
fetchOptions: r
|
|
@@ -620,33 +647,33 @@ async function vr({
|
|
|
620
647
|
console.error("[ERROR FETCHING] Body is required");
|
|
621
648
|
return;
|
|
622
649
|
}
|
|
623
|
-
await
|
|
624
|
-
const { appId: n = "faststore", orderFormId:
|
|
625
|
-
return
|
|
626
|
-
`${e}/api/checkout/pub/orderForm/${
|
|
650
|
+
await br.validate(t);
|
|
651
|
+
const { appId: n = "faststore", orderFormId: a, key: o } = t;
|
|
652
|
+
return O(
|
|
653
|
+
`${e}/api/checkout/pub/orderForm/${a}/customData/${n}/${o}`,
|
|
627
654
|
{
|
|
628
655
|
method: "PUT",
|
|
629
656
|
...r
|
|
630
657
|
}
|
|
631
658
|
);
|
|
632
659
|
}
|
|
633
|
-
const
|
|
660
|
+
const vr = c.object().shape({
|
|
634
661
|
name: c.string().required("Attachment name is required"),
|
|
635
662
|
content: c.object().nullable()
|
|
636
663
|
});
|
|
637
|
-
var
|
|
638
|
-
const
|
|
639
|
-
attachments: (
|
|
664
|
+
var Me;
|
|
665
|
+
const yr = c.object().shape({
|
|
666
|
+
attachments: (Me = c.array().of(vr)) == null ? void 0 : Me.nullable(),
|
|
640
667
|
id: c.string().required("ID of SKU is required"),
|
|
641
668
|
index: c.number().integer().nullable(),
|
|
642
669
|
quantity: c.number().integer().nullable(),
|
|
643
670
|
seller: c.string().required("Seller is required"),
|
|
644
671
|
price: c.number().integer()
|
|
645
|
-
}),
|
|
672
|
+
}), _r = c.object({
|
|
646
673
|
orderFormId: c.string().required("OrderFormId is required"),
|
|
647
|
-
orderItems: c.array().of(
|
|
674
|
+
orderItems: c.array().of(yr)
|
|
648
675
|
});
|
|
649
|
-
async function
|
|
676
|
+
async function Rr({
|
|
650
677
|
apiUrl: e,
|
|
651
678
|
body: t,
|
|
652
679
|
fetchOptions: r
|
|
@@ -655,21 +682,21 @@ async function Ir({
|
|
|
655
682
|
console.error("[ERROR FETCHING] Body is required");
|
|
656
683
|
return;
|
|
657
684
|
}
|
|
658
|
-
await
|
|
659
|
-
const { orderFormId: n, orderItems:
|
|
660
|
-
return
|
|
685
|
+
await _r.validate(t);
|
|
686
|
+
const { orderFormId: n, orderItems: a } = t;
|
|
687
|
+
return O(
|
|
661
688
|
`${e}/api/checkout/pub/orderForm/${n}/items`,
|
|
662
689
|
{
|
|
663
690
|
method: "POST",
|
|
664
|
-
body: { orderItems:
|
|
691
|
+
body: { orderItems: a },
|
|
665
692
|
...r
|
|
666
693
|
}
|
|
667
694
|
);
|
|
668
695
|
}
|
|
669
|
-
const
|
|
696
|
+
const Ir = c.object({
|
|
670
697
|
orderFormId: c.string().nullable()
|
|
671
698
|
});
|
|
672
|
-
async function
|
|
699
|
+
async function Pr({
|
|
673
700
|
apiUrl: e,
|
|
674
701
|
body: t,
|
|
675
702
|
fetchOptions: r
|
|
@@ -678,9 +705,9 @@ async function Sr({
|
|
|
678
705
|
console.error("[ERROR FETCHING] Body is required");
|
|
679
706
|
return;
|
|
680
707
|
}
|
|
681
|
-
await
|
|
708
|
+
await Ir.validate(t);
|
|
682
709
|
const { orderFormId: n } = t;
|
|
683
|
-
return
|
|
710
|
+
return O(
|
|
684
711
|
`${e}/api/checkout/pub/orderForm/${n}/items/removeAll`,
|
|
685
712
|
{
|
|
686
713
|
method: "POST",
|
|
@@ -688,23 +715,23 @@ async function Sr({
|
|
|
688
715
|
}
|
|
689
716
|
);
|
|
690
717
|
}
|
|
691
|
-
const
|
|
718
|
+
const xr = c.object().shape({
|
|
692
719
|
name: c.string().required("Attachment name is required"),
|
|
693
720
|
content: c.object().nullable()
|
|
694
721
|
});
|
|
695
|
-
var
|
|
696
|
-
const
|
|
697
|
-
attachments: (
|
|
722
|
+
var Be;
|
|
723
|
+
const Sr = c.object().shape({
|
|
724
|
+
attachments: (Be = c.array().of(xr)) == null ? void 0 : Be.nullable(),
|
|
698
725
|
id: c.string().required("ID of SKU is required"),
|
|
699
726
|
index: c.number().integer().nullable(),
|
|
700
727
|
quantity: c.number().integer().nullable(),
|
|
701
728
|
seller: c.string().required("Seller is required"),
|
|
702
729
|
price: c.number().integer()
|
|
703
|
-
}),
|
|
730
|
+
}), Cr = c.object({
|
|
704
731
|
orderFormId: c.string().nullable(),
|
|
705
|
-
orderItems: c.array().of(
|
|
732
|
+
orderItems: c.array().of(Sr)
|
|
706
733
|
});
|
|
707
|
-
async function
|
|
734
|
+
async function kr({
|
|
708
735
|
apiUrl: e,
|
|
709
736
|
body: t,
|
|
710
737
|
fetchOptions: r
|
|
@@ -713,21 +740,21 @@ async function Er({
|
|
|
713
740
|
console.error("[ERROR FETCHING] Body is required");
|
|
714
741
|
return;
|
|
715
742
|
}
|
|
716
|
-
await
|
|
717
|
-
const { orderFormId: n, orderItems:
|
|
718
|
-
return
|
|
743
|
+
await Cr.validate(t);
|
|
744
|
+
const { orderFormId: n, orderItems: a } = t;
|
|
745
|
+
return O(
|
|
719
746
|
`${e}/api/checkout/pub/orderForm/${n}/items/update`,
|
|
720
747
|
{
|
|
721
748
|
method: "POST",
|
|
722
|
-
body: { orderItems:
|
|
749
|
+
body: { orderItems: a },
|
|
723
750
|
...r
|
|
724
751
|
}
|
|
725
752
|
);
|
|
726
753
|
}
|
|
727
|
-
const
|
|
754
|
+
const Er = c.object({
|
|
728
755
|
orderFormId: c.string().nullable()
|
|
729
756
|
});
|
|
730
|
-
async function
|
|
757
|
+
async function Ar({
|
|
731
758
|
apiUrl: e,
|
|
732
759
|
body: t,
|
|
733
760
|
fetchOptions: r
|
|
@@ -736,9 +763,9 @@ async function Tr({
|
|
|
736
763
|
console.error("[ERROR FETCHING] Body is required");
|
|
737
764
|
return;
|
|
738
765
|
}
|
|
739
|
-
await
|
|
766
|
+
await Er.validate(t);
|
|
740
767
|
const { orderFormId: n } = t;
|
|
741
|
-
return
|
|
768
|
+
return O(
|
|
742
769
|
`${e}/api/checkout/pub/orderForm/${n}/messages/clear`,
|
|
743
770
|
{
|
|
744
771
|
method: "POST",
|
|
@@ -753,40 +780,40 @@ const Or = c.object({
|
|
|
753
780
|
orderFormId: c.string().nullable(),
|
|
754
781
|
remove: c.boolean().nullable()
|
|
755
782
|
});
|
|
756
|
-
async function
|
|
783
|
+
async function Tr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
757
784
|
if (!t) {
|
|
758
785
|
console.error("[ERROR FETCHING] Body is required");
|
|
759
786
|
return;
|
|
760
787
|
}
|
|
761
788
|
await Or.validate(t);
|
|
762
|
-
const { itemIndex: n, orderFormId:
|
|
763
|
-
return
|
|
789
|
+
const { itemIndex: n, orderFormId: a, id: o, remove: l } = t, i = l ? `/${o}/remove` : "", d = `${e}/api/checkout/pub/orderForm/${a}/items/${n}/offerings${i}`;
|
|
790
|
+
return O(d, {
|
|
764
791
|
method: "POST",
|
|
765
|
-
body: { id:
|
|
792
|
+
body: { id: o },
|
|
766
793
|
...r
|
|
767
794
|
});
|
|
768
795
|
}
|
|
769
|
-
const
|
|
796
|
+
const qr = c.object({
|
|
770
797
|
orderFormId: c.string().nullable()
|
|
771
798
|
});
|
|
772
|
-
async function
|
|
799
|
+
async function Nr({
|
|
773
800
|
apiUrl: e,
|
|
774
801
|
body: t,
|
|
775
802
|
fetchOptions: r,
|
|
776
803
|
extraData: n
|
|
777
804
|
}) {
|
|
778
|
-
var
|
|
805
|
+
var l;
|
|
779
806
|
if (!t) {
|
|
780
807
|
console.error("[ERROR FETCHING] Body is required");
|
|
781
808
|
return;
|
|
782
809
|
}
|
|
783
|
-
await
|
|
784
|
-
const
|
|
810
|
+
await qr.validate(t);
|
|
811
|
+
const a = new URLSearchParams({
|
|
785
812
|
refreshOutdatedData: "true"
|
|
786
|
-
}),
|
|
787
|
-
return
|
|
813
|
+
}), o = t.orderFormId && ((l = n.orderFormPurchaseId) == null ? void 0 : l.value) !== t.orderFormId ? `${e}/api/checkout/pub/orderForm/${t.orderFormId}?${String(a)}` : `${e}/api/checkout/pub/orderForm`;
|
|
814
|
+
return O(o, { method: "GET", ...r });
|
|
788
815
|
}
|
|
789
|
-
const
|
|
816
|
+
const jr = c.object({
|
|
790
817
|
orderFormId: c.string().nullable(),
|
|
791
818
|
email: c.string().email().required(),
|
|
792
819
|
firstName: c.string().required(),
|
|
@@ -795,7 +822,7 @@ const Fr = c.object({
|
|
|
795
822
|
document: c.string().required(),
|
|
796
823
|
phone: c.string().matches(/^\+\d{1,3}\d{10,11}$/)
|
|
797
824
|
});
|
|
798
|
-
async function
|
|
825
|
+
async function Fr({
|
|
799
826
|
apiUrl: e,
|
|
800
827
|
body: t,
|
|
801
828
|
fetchOptions: r
|
|
@@ -804,21 +831,21 @@ async function $r({
|
|
|
804
831
|
console.error("[ERROR FETCHING] Body is required");
|
|
805
832
|
return;
|
|
806
833
|
}
|
|
807
|
-
await
|
|
808
|
-
const { orderFormId: n, ...
|
|
809
|
-
return
|
|
834
|
+
await jr.validate(t);
|
|
835
|
+
const { orderFormId: n, ...a } = t;
|
|
836
|
+
return O(
|
|
810
837
|
`${e}/api/checkout/pub/orderForm/${n}/attachments/clientProfileData`,
|
|
811
838
|
{
|
|
812
839
|
method: "POST",
|
|
813
|
-
body: { ...
|
|
840
|
+
body: { ...a },
|
|
814
841
|
...r
|
|
815
842
|
}
|
|
816
843
|
);
|
|
817
844
|
}
|
|
818
|
-
const
|
|
845
|
+
const $r = c.object({
|
|
819
846
|
sellerCode: c.string().nullable()
|
|
820
847
|
});
|
|
821
|
-
async function
|
|
848
|
+
async function Lr({
|
|
822
849
|
apiUrl: e,
|
|
823
850
|
body: t,
|
|
824
851
|
extraData: r,
|
|
@@ -828,10 +855,10 @@ async function Dr({
|
|
|
828
855
|
console.error("[ERROR FETCHING] Body is required");
|
|
829
856
|
return;
|
|
830
857
|
}
|
|
831
|
-
await
|
|
832
|
-
const { sellerCode:
|
|
833
|
-
return
|
|
834
|
-
`${e}/api/dataentities/${r.ENTITIES}/search?_fields=${r.FIELDS}&${r.FILTER}=${
|
|
858
|
+
await $r.validate(t);
|
|
859
|
+
const { sellerCode: a = "" } = t;
|
|
860
|
+
return O(
|
|
861
|
+
`${e}/api/dataentities/${r.ENTITIES}/search?_fields=${r.FIELDS}&${r.FILTER}=${a}`,
|
|
835
862
|
{
|
|
836
863
|
method: "GET",
|
|
837
864
|
headers: {
|
|
@@ -841,12 +868,12 @@ async function Dr({
|
|
|
841
868
|
}
|
|
842
869
|
);
|
|
843
870
|
}
|
|
844
|
-
const
|
|
871
|
+
const Dr = c.object().shape({
|
|
845
872
|
country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
|
|
846
873
|
orderFormId: c.string().nullable(),
|
|
847
874
|
postalCode: c.string().nullable()
|
|
848
875
|
});
|
|
849
|
-
async function
|
|
876
|
+
async function Ur({
|
|
850
877
|
apiUrl: e,
|
|
851
878
|
body: t,
|
|
852
879
|
fetchOptions: r
|
|
@@ -855,27 +882,27 @@ async function Hr({
|
|
|
855
882
|
console.error("[ERROR FETCHING] Body is required");
|
|
856
883
|
return;
|
|
857
884
|
}
|
|
858
|
-
await
|
|
859
|
-
const { country: n, orderFormId:
|
|
885
|
+
await Dr.validate(t);
|
|
886
|
+
const { country: n, orderFormId: a, postalCode: o } = t, l = o ? {
|
|
860
887
|
address: {
|
|
861
888
|
addressType: "residential",
|
|
862
|
-
postalCode:
|
|
889
|
+
postalCode: o,
|
|
863
890
|
country: n
|
|
864
891
|
}
|
|
865
892
|
} : {
|
|
866
893
|
logisticsInfo: [],
|
|
867
894
|
clearAddressIfPostalCodeNotFound: !0
|
|
868
895
|
};
|
|
869
|
-
return
|
|
870
|
-
`${e}/api/checkout/pub/orderForm/${
|
|
896
|
+
return O(
|
|
897
|
+
`${e}/api/checkout/pub/orderForm/${a}/attachments/shippingData`,
|
|
871
898
|
{
|
|
872
899
|
method: "POST",
|
|
873
|
-
body:
|
|
900
|
+
body: l,
|
|
874
901
|
...r
|
|
875
902
|
}
|
|
876
903
|
);
|
|
877
904
|
}
|
|
878
|
-
const
|
|
905
|
+
const Hr = c.object().shape({
|
|
879
906
|
orderFormId: c.string().nullable(),
|
|
880
907
|
options: c.array().of(
|
|
881
908
|
c.object().shape({
|
|
@@ -903,27 +930,27 @@ const Mr = c.object().shape({
|
|
|
903
930
|
})
|
|
904
931
|
)
|
|
905
932
|
});
|
|
906
|
-
async function
|
|
933
|
+
async function Mr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
907
934
|
if (!t) {
|
|
908
935
|
console.error("[ERROR FETCHING] Body is required");
|
|
909
936
|
return;
|
|
910
937
|
}
|
|
911
|
-
await
|
|
912
|
-
const { orderFormId: n, options:
|
|
913
|
-
return
|
|
938
|
+
await Hr.validate(t);
|
|
939
|
+
const { orderFormId: n, options: a, selectedAddresses: o } = t;
|
|
940
|
+
return O(
|
|
914
941
|
`${e}/api/checkout/pub/orderForm/${n}/attachments/shippingData`,
|
|
915
942
|
{
|
|
916
943
|
method: "POST",
|
|
917
944
|
body: {
|
|
918
|
-
selectedAddresses:
|
|
945
|
+
selectedAddresses: o,
|
|
919
946
|
clearAddressIfPostalCodeNotFound: !1,
|
|
920
|
-
logisticsInfo:
|
|
947
|
+
logisticsInfo: a
|
|
921
948
|
},
|
|
922
949
|
...r
|
|
923
950
|
}
|
|
924
951
|
);
|
|
925
952
|
}
|
|
926
|
-
const
|
|
953
|
+
const Br = c.object({
|
|
927
954
|
country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
|
|
928
955
|
postalCode: c.string().nullable(),
|
|
929
956
|
geoCoordinates: c.object().shape({
|
|
@@ -931,40 +958,40 @@ const zr = c.object({
|
|
|
931
958
|
latitude: c.number().required()
|
|
932
959
|
})
|
|
933
960
|
});
|
|
934
|
-
async function
|
|
961
|
+
async function zr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
935
962
|
if (!t) {
|
|
936
963
|
console.error("[ERROR FETCHING] Body is required");
|
|
937
964
|
return;
|
|
938
965
|
}
|
|
939
|
-
await
|
|
940
|
-
const { country: n = "", geoCoordinates:
|
|
941
|
-
return
|
|
966
|
+
await Br.validate(t);
|
|
967
|
+
const { country: n = "", geoCoordinates: a, postalCode: o = "" } = t, l = new URLSearchParams({ country: String(n) });
|
|
968
|
+
return o ? l.append("postalCode", o) : l.append(
|
|
942
969
|
"geoCoordinates",
|
|
943
|
-
`${
|
|
944
|
-
), await
|
|
945
|
-
`${e}/api/checkout/pub/regions/?${
|
|
970
|
+
`${a == null ? void 0 : a.longitude};${a == null ? void 0 : a.latitude}`
|
|
971
|
+
), await O(
|
|
972
|
+
`${e}/api/checkout/pub/regions/?${l.toString()}`,
|
|
946
973
|
{
|
|
947
974
|
method: "GET",
|
|
948
975
|
...r
|
|
949
976
|
}
|
|
950
977
|
);
|
|
951
978
|
}
|
|
952
|
-
const
|
|
979
|
+
const Gr = c.object({
|
|
953
980
|
id: c.string().required("ID of SKU is required"),
|
|
954
981
|
quantity: c.number().integer().required("Quantity of item is required"),
|
|
955
982
|
seller: c.string()
|
|
956
|
-
}),
|
|
957
|
-
items: c.array().of(
|
|
983
|
+
}), Vr = c.object({
|
|
984
|
+
items: c.array().of(Gr),
|
|
958
985
|
country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
|
|
959
986
|
postalCode: c.string().nullable(),
|
|
960
987
|
geoCoordinates: c.array().nullable().of(c.number()).length(2)
|
|
961
988
|
});
|
|
962
|
-
async function
|
|
989
|
+
async function Wr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
963
990
|
if (!t) {
|
|
964
991
|
console.error("[ERROR FETCHING] Body is required");
|
|
965
992
|
return;
|
|
966
993
|
}
|
|
967
|
-
return await
|
|
994
|
+
return await Vr.validate(t), O(
|
|
968
995
|
`${e}/api/checkout/pub/orderForms/simulation`,
|
|
969
996
|
{
|
|
970
997
|
method: "POST",
|
|
@@ -973,86 +1000,86 @@ async function Qr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
973
1000
|
}
|
|
974
1001
|
);
|
|
975
1002
|
}
|
|
976
|
-
const
|
|
1003
|
+
const Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
977
1004
|
__proto__: null,
|
|
978
|
-
getMasterDataSellerCode:
|
|
979
|
-
getOrderForm:
|
|
980
|
-
postOrderFormAddCoupon:
|
|
981
|
-
postOrderFormAttachClientProfileData:
|
|
982
|
-
postOrderFormAttachOrderFormData:
|
|
983
|
-
postOrderFormAttachShippingData:
|
|
984
|
-
postOrderFormAttachmentsMarketingData:
|
|
985
|
-
postOrderFormAttachmentsOpenTextField:
|
|
986
|
-
postOrderFormClearMessages:
|
|
987
|
-
postOrderFormFreightSimulation:
|
|
988
|
-
postOrderFormItems:
|
|
989
|
-
postOrderFormRegion:
|
|
990
|
-
postOrderFormRemoveAllItems:
|
|
991
|
-
postOrderFormUpdateItems:
|
|
992
|
-
postOrderFormUpdateShippingData:
|
|
993
|
-
postOrderformAddress:
|
|
994
|
-
putOrderFormCustomData:
|
|
995
|
-
updateOrderFormOffering:
|
|
996
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1005
|
+
getMasterDataSellerCode: Lr,
|
|
1006
|
+
getOrderForm: Nr,
|
|
1007
|
+
postOrderFormAddCoupon: gr,
|
|
1008
|
+
postOrderFormAttachClientProfileData: Fr,
|
|
1009
|
+
postOrderFormAttachOrderFormData: hr,
|
|
1010
|
+
postOrderFormAttachShippingData: Ur,
|
|
1011
|
+
postOrderFormAttachmentsMarketingData: Ve,
|
|
1012
|
+
postOrderFormAttachmentsOpenTextField: Ge,
|
|
1013
|
+
postOrderFormClearMessages: Ar,
|
|
1014
|
+
postOrderFormFreightSimulation: Wr,
|
|
1015
|
+
postOrderFormItems: Rr,
|
|
1016
|
+
postOrderFormRegion: zr,
|
|
1017
|
+
postOrderFormRemoveAllItems: Pr,
|
|
1018
|
+
postOrderFormUpdateItems: kr,
|
|
1019
|
+
postOrderFormUpdateShippingData: Mr,
|
|
1020
|
+
postOrderformAddress: ur,
|
|
1021
|
+
putOrderFormCustomData: wr,
|
|
1022
|
+
updateOrderFormOffering: Tr
|
|
1023
|
+
}, Symbol.toStringTag, { value: "Module" })), Xr = c.object({
|
|
997
1024
|
skuId: c.string()
|
|
998
1025
|
});
|
|
999
|
-
async function
|
|
1026
|
+
async function Kr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
1000
1027
|
if (!t) {
|
|
1001
1028
|
console.error("[ERROR FETCHING] Body is required");
|
|
1002
1029
|
return;
|
|
1003
1030
|
}
|
|
1004
|
-
await
|
|
1031
|
+
await Xr.validate(t);
|
|
1005
1032
|
const { skuId: n } = t;
|
|
1006
|
-
return
|
|
1033
|
+
return O(
|
|
1007
1034
|
`${e}/api/catalog/pvt/stockkeepingunitkit?parentSkuId=${n}`,
|
|
1008
1035
|
{
|
|
1009
1036
|
...r
|
|
1010
1037
|
}
|
|
1011
1038
|
);
|
|
1012
1039
|
}
|
|
1013
|
-
const
|
|
1040
|
+
const Jr = c.object({
|
|
1014
1041
|
ids: c.array().of(c.string().required("ID are required")).required("IDs are required")
|
|
1015
1042
|
});
|
|
1016
|
-
async function
|
|
1043
|
+
async function Zr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
1017
1044
|
if (!t) {
|
|
1018
1045
|
console.error("[ERROR FETCHING] Body is required");
|
|
1019
1046
|
return;
|
|
1020
1047
|
}
|
|
1021
|
-
await
|
|
1048
|
+
await Jr.validate(t);
|
|
1022
1049
|
const { ids: n } = t;
|
|
1023
|
-
return
|
|
1024
|
-
`${e}/api/catalog_system/pub/products/search?fq=${n.map((
|
|
1050
|
+
return O(
|
|
1051
|
+
`${e}/api/catalog_system/pub/products/search?fq=${n.map((a) => `productId:${a}`).join("&fq=")}`,
|
|
1025
1052
|
{
|
|
1026
1053
|
...r
|
|
1027
1054
|
}
|
|
1028
1055
|
);
|
|
1029
1056
|
}
|
|
1030
|
-
const
|
|
1057
|
+
const Yr = c.object({
|
|
1031
1058
|
productId: c.number().required("Product ID is required")
|
|
1032
1059
|
});
|
|
1033
|
-
async function
|
|
1060
|
+
async function en({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
1034
1061
|
if (!t) {
|
|
1035
1062
|
console.error("[ERROR FETCHING] Body is required");
|
|
1036
1063
|
return;
|
|
1037
1064
|
}
|
|
1038
|
-
await
|
|
1065
|
+
await Yr.validate(t);
|
|
1039
1066
|
const { productId: n } = t;
|
|
1040
|
-
return
|
|
1067
|
+
return O(
|
|
1041
1068
|
`${e}/api/catalog_system/pub/products/crossselling/similars/${n.toString()}`,
|
|
1042
1069
|
{
|
|
1043
1070
|
...r
|
|
1044
1071
|
}
|
|
1045
1072
|
);
|
|
1046
1073
|
}
|
|
1047
|
-
const
|
|
1074
|
+
const tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1048
1075
|
__proto__: null,
|
|
1049
|
-
getCatalogKitProducts:
|
|
1050
|
-
getCatalogProducts:
|
|
1051
|
-
getCatalogSimilars:
|
|
1052
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1076
|
+
getCatalogKitProducts: Kr,
|
|
1077
|
+
getCatalogProducts: Zr,
|
|
1078
|
+
getCatalogSimilars: en
|
|
1079
|
+
}, Symbol.toStringTag, { value: "Module" })), rn = c.object({
|
|
1053
1080
|
query: c.string()
|
|
1054
1081
|
});
|
|
1055
|
-
async function
|
|
1082
|
+
async function nn({
|
|
1056
1083
|
apiUrl: e,
|
|
1057
1084
|
body: t,
|
|
1058
1085
|
fetchOptions: r
|
|
@@ -1061,19 +1088,19 @@ async function on({
|
|
|
1061
1088
|
console.error("[ERROR FETCHING] Body is required");
|
|
1062
1089
|
return;
|
|
1063
1090
|
}
|
|
1064
|
-
await
|
|
1065
|
-
const { query: n = "" } = t,
|
|
1066
|
-
return
|
|
1067
|
-
`${e}/api/io/_v/api/intelligent-search/autocomplete_suggestions?${
|
|
1091
|
+
await rn.validate(t);
|
|
1092
|
+
const { query: n = "" } = t, a = new URLSearchParams({ query: n });
|
|
1093
|
+
return O(
|
|
1094
|
+
`${e}/api/io/_v/api/intelligent-search/autocomplete_suggestions?${a.toString()}`,
|
|
1068
1095
|
{
|
|
1069
1096
|
...r
|
|
1070
1097
|
}
|
|
1071
1098
|
);
|
|
1072
1099
|
}
|
|
1073
|
-
const an = (e, t) =>
|
|
1100
|
+
const an = (e, t) => Ht(e, t), on = (e) => ({
|
|
1074
1101
|
...e,
|
|
1075
1102
|
description: e.description ? an(e.description) : e.description
|
|
1076
|
-
}),
|
|
1103
|
+
}), sn = ({
|
|
1077
1104
|
offer: e,
|
|
1078
1105
|
seller: t,
|
|
1079
1106
|
product: r
|
|
@@ -1081,26 +1108,26 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
|
|
|
1081
1108
|
...e,
|
|
1082
1109
|
product: r,
|
|
1083
1110
|
seller: t
|
|
1084
|
-
}),
|
|
1111
|
+
}), We = (e, t) => ({
|
|
1085
1112
|
...e,
|
|
1086
|
-
isVariantOf:
|
|
1087
|
-
}),
|
|
1113
|
+
isVariantOf: on(t)
|
|
1114
|
+
}), ln = (e) => e ? "https://schema.org/InStock" : "https://schema.org/OutOfStock", oe = (e) => e.AvailableQuantity > 0, De = (e) => e.spotPrice ?? 0, cn = (e) => e.Price ?? 0, Qe = (e, t) => oe(e) && !oe(t) ? -1 : !oe(e) && oe(t) ? 1 : De(e) - De(t), un = (e, t) => {
|
|
1088
1115
|
let r = 0;
|
|
1089
1116
|
for (let n = 1; n < e.length; n++)
|
|
1090
1117
|
t(e[r], e[n]) > 0 && (r = n);
|
|
1091
1118
|
return e[r];
|
|
1092
|
-
},
|
|
1119
|
+
}, Xe = (e) => {
|
|
1093
1120
|
const t = e.flatMap(
|
|
1094
|
-
(n) => n.sellers.map((
|
|
1095
|
-
offer:
|
|
1121
|
+
(n) => n.sellers.map((a) => ({
|
|
1122
|
+
offer: a.commertialOffer,
|
|
1096
1123
|
sku: n
|
|
1097
1124
|
}))
|
|
1098
|
-
), r =
|
|
1125
|
+
), r = un(
|
|
1099
1126
|
t,
|
|
1100
|
-
({ offer: n }, { offer:
|
|
1127
|
+
({ offer: n }, { offer: a }) => Qe(n, a)
|
|
1101
1128
|
);
|
|
1102
1129
|
return r ? r.sku : e[0];
|
|
1103
|
-
},
|
|
1130
|
+
}, Ke = (e) => e.map(
|
|
1104
1131
|
({ imageUrl: t, imageText: r, imageLabel: n }) => ({
|
|
1105
1132
|
alternateName: r ?? "",
|
|
1106
1133
|
url: t.replace("vteximg.com.br", "vtexassets.com"),
|
|
@@ -1110,11 +1137,11 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
|
|
|
1110
1137
|
attachment: "ATTACHMENT",
|
|
1111
1138
|
specification: "SPECIFICATION",
|
|
1112
1139
|
attribute: "ATTRIBUTE"
|
|
1113
|
-
},
|
|
1140
|
+
}, dn = (e) => ({
|
|
1114
1141
|
name: e.name,
|
|
1115
1142
|
value: e.content,
|
|
1116
1143
|
valueReference: ue.attachment
|
|
1117
|
-
}),
|
|
1144
|
+
}), pn = (e) => ({
|
|
1118
1145
|
propertyID: e.id,
|
|
1119
1146
|
name: e.name,
|
|
1120
1147
|
value: e.value,
|
|
@@ -1123,32 +1150,32 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
|
|
|
1123
1150
|
visible: e.visible
|
|
1124
1151
|
}
|
|
1125
1152
|
}), de = (e, t, r) => {
|
|
1126
|
-
const n = e.flatMap(({ name:
|
|
1127
|
-
name:
|
|
1153
|
+
const n = e.flatMap(({ name: l, values: i }) => i ? i.map((d) => ({
|
|
1154
|
+
name: l,
|
|
1128
1155
|
value: d,
|
|
1129
1156
|
valueReference: ue.specification
|
|
1130
1157
|
})) : {
|
|
1131
|
-
name:
|
|
1158
|
+
name: l,
|
|
1132
1159
|
value: "",
|
|
1133
1160
|
valueReference: ue.specification
|
|
1134
|
-
}),
|
|
1161
|
+
}), a = Array.isArray(r) ? r.map(dn) : [], o = t ? t.map(pn) : [];
|
|
1135
1162
|
return [
|
|
1136
1163
|
...n,
|
|
1137
|
-
...
|
|
1138
|
-
...
|
|
1164
|
+
...a,
|
|
1165
|
+
...o
|
|
1139
1166
|
];
|
|
1140
|
-
},
|
|
1167
|
+
}, Ue = "ÁÄÂÀÃÅČÇĆĎÉĚËÈÊẼĔȆÍÌÎÏŇÑÓÖÒÔÕØŘŔŠŤÚŮÜÙÛÝŸŽáäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a", mn = "AAAAAACCCDEEEEEEEEIIIINNOOOOOORRSTUUUUUYYZaaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa", hn = (e) => {
|
|
1141
1168
|
let t = e.slice(0);
|
|
1142
|
-
for (let r = 0; r <
|
|
1169
|
+
for (let r = 0; r < Ue.length; r++)
|
|
1143
1170
|
t = t.replace(
|
|
1144
|
-
new RegExp(
|
|
1145
|
-
|
|
1171
|
+
new RegExp(Ue.charAt(r), "g"),
|
|
1172
|
+
mn.charAt(r)
|
|
1146
1173
|
);
|
|
1147
1174
|
return t;
|
|
1148
|
-
},
|
|
1175
|
+
}, fn = (e) => e.replace(/[·/_,:]/, "-"), Je = (e) => {
|
|
1149
1176
|
const r = e.replace(/,/g, "").replace(/[*+~.()'"!:@&\[\]`/ %$#?{}|><=_^]/g, "-");
|
|
1150
|
-
return
|
|
1151
|
-
},
|
|
1177
|
+
return fn(hn(r)).toLowerCase();
|
|
1178
|
+
}, Ze = (e) => `/${e}/p`, Ye = (e) => {
|
|
1152
1179
|
const t = Math.max(
|
|
1153
1180
|
...e.map((n) => n.NumberOfInstallments)
|
|
1154
1181
|
), r = e.find(
|
|
@@ -1158,68 +1185,68 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
|
|
|
1158
1185
|
count: (r == null ? void 0 : r.NumberOfInstallments) ?? 0,
|
|
1159
1186
|
value: (r == null ? void 0 : r.Value) ?? 0
|
|
1160
1187
|
};
|
|
1161
|
-
},
|
|
1188
|
+
}, et = (e, t) => {
|
|
1162
1189
|
const r = {
|
|
1163
1190
|
price: 0,
|
|
1164
1191
|
listPrice: 0,
|
|
1165
1192
|
sellerDefault: !1
|
|
1166
|
-
},
|
|
1167
|
-
(
|
|
1168
|
-
offer:
|
|
1169
|
-
seller:
|
|
1193
|
+
}, a = e.map(
|
|
1194
|
+
(o) => sn({
|
|
1195
|
+
offer: o.commertialOffer,
|
|
1196
|
+
seller: o,
|
|
1170
1197
|
product: t
|
|
1171
1198
|
})
|
|
1172
|
-
).sort(
|
|
1173
|
-
availability:
|
|
1174
|
-
listPrice:
|
|
1175
|
-
price:
|
|
1176
|
-
priceValidUntil:
|
|
1199
|
+
).sort(Qe).map((o) => (o.seller.sellerId === "1" && o.AvailableQuantity > 0 && (r.price = o.Price, r.listPrice = o.ListPrice, r.sellerDefault = !0), {
|
|
1200
|
+
availability: o.AvailableQuantity > 0,
|
|
1201
|
+
listPrice: o.ListPrice,
|
|
1202
|
+
price: cn(o),
|
|
1203
|
+
priceValidUntil: o.PriceValidUntil,
|
|
1177
1204
|
priceCurrency: "BRL",
|
|
1178
|
-
installments:
|
|
1179
|
-
lowPrice:
|
|
1180
|
-
quantity:
|
|
1205
|
+
installments: o.Installments,
|
|
1206
|
+
lowPrice: o.spotPrice,
|
|
1207
|
+
quantity: o.AvailableQuantity,
|
|
1181
1208
|
seller: {
|
|
1182
|
-
identifier:
|
|
1209
|
+
identifier: o.seller.sellerId
|
|
1183
1210
|
}
|
|
1184
1211
|
}));
|
|
1185
1212
|
return {
|
|
1186
|
-
lowPrice: r.sellerDefault ? r.price :
|
|
1187
|
-
highPrice: r.sellerDefault ? r.listPrice :
|
|
1188
|
-
offers:
|
|
1213
|
+
lowPrice: r.sellerDefault ? r.price : a[0].price,
|
|
1214
|
+
highPrice: r.sellerDefault ? r.listPrice : a[0].listPrice,
|
|
1215
|
+
offers: a
|
|
1189
1216
|
};
|
|
1190
|
-
},
|
|
1191
|
-
const { attributes: t, itemId: r, name: n, sellers:
|
|
1217
|
+
}, tt = (e) => {
|
|
1218
|
+
const { attributes: t, itemId: r, name: n, sellers: a, variations: o } = e;
|
|
1192
1219
|
return {
|
|
1193
|
-
additionalProperty: de(
|
|
1220
|
+
additionalProperty: de(o, t, []),
|
|
1194
1221
|
name: n,
|
|
1195
1222
|
offers: {
|
|
1196
|
-
offers:
|
|
1197
|
-
availability:
|
|
1198
|
-
listPrice:
|
|
1199
|
-
price:
|
|
1200
|
-
quantity:
|
|
1223
|
+
offers: a == null ? void 0 : a.map(({ sellerId: l, commertialOffer: i }) => ({
|
|
1224
|
+
availability: ln(i.AvailableQuantity > 0),
|
|
1225
|
+
listPrice: i.ListPrice,
|
|
1226
|
+
price: i.Price,
|
|
1227
|
+
quantity: i.AvailableQuantity,
|
|
1201
1228
|
seller: {
|
|
1202
|
-
identifier:
|
|
1229
|
+
identifier: l
|
|
1203
1230
|
}
|
|
1204
1231
|
}))
|
|
1205
1232
|
},
|
|
1206
1233
|
sku: r
|
|
1207
1234
|
// slug: getSlug('', itemId), // getSlug('', itemId) que tipo de slug é esse?
|
|
1208
1235
|
};
|
|
1209
|
-
},
|
|
1236
|
+
}, gn = (e) => {
|
|
1210
1237
|
var R;
|
|
1211
1238
|
const {
|
|
1212
1239
|
attributes: t,
|
|
1213
1240
|
referenceId: r,
|
|
1214
1241
|
isVariantOf: n,
|
|
1215
|
-
images:
|
|
1216
|
-
itemId:
|
|
1217
|
-
name:
|
|
1218
|
-
sellers:
|
|
1242
|
+
images: a,
|
|
1243
|
+
itemId: o,
|
|
1244
|
+
name: l,
|
|
1245
|
+
sellers: i,
|
|
1219
1246
|
videos: d,
|
|
1220
1247
|
variations: g
|
|
1221
1248
|
} = e, {
|
|
1222
|
-
brand:
|
|
1249
|
+
brand: s,
|
|
1223
1250
|
categories: u,
|
|
1224
1251
|
categoriesIds: w,
|
|
1225
1252
|
description: v,
|
|
@@ -1230,11 +1257,11 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
|
|
|
1230
1257
|
properties: m,
|
|
1231
1258
|
productId: h,
|
|
1232
1259
|
productReference: f
|
|
1233
|
-
} = n, E = u.slice().reverse(), q =
|
|
1260
|
+
} = n, E = u.slice().reverse(), q = et(i, e.isVariantOf), I = Ye(q.offers[0].installments);
|
|
1234
1261
|
return {
|
|
1235
|
-
sku:
|
|
1262
|
+
sku: o,
|
|
1236
1263
|
gtin: ((R = r == null ? void 0 : r[0]) == null ? void 0 : R.Value) ?? f ?? "",
|
|
1237
|
-
name: b ??
|
|
1264
|
+
name: b ?? l,
|
|
1238
1265
|
description: v,
|
|
1239
1266
|
releaseDate: n.releaseDate ?? "",
|
|
1240
1267
|
slug: y,
|
|
@@ -1242,11 +1269,11 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
|
|
|
1242
1269
|
categories: u,
|
|
1243
1270
|
categoriesIds: w,
|
|
1244
1271
|
id: h,
|
|
1245
|
-
brand: { name:
|
|
1272
|
+
brand: { name: s, brandName: s },
|
|
1246
1273
|
seo: {
|
|
1247
1274
|
description: v,
|
|
1248
1275
|
title: b,
|
|
1249
|
-
canonical:
|
|
1276
|
+
canonical: Ze(y)
|
|
1250
1277
|
},
|
|
1251
1278
|
cluster: {
|
|
1252
1279
|
generals: _,
|
|
@@ -1256,8 +1283,8 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
|
|
|
1256
1283
|
availability: { status: q.offers[0].availability },
|
|
1257
1284
|
breadcrumbList: {
|
|
1258
1285
|
itemListElement: [
|
|
1259
|
-
...E.map((
|
|
1260
|
-
const
|
|
1286
|
+
...E.map((C, j) => {
|
|
1287
|
+
const $ = C.split("/"), D = $[$.length - 2], U = $.map(Je).join("/");
|
|
1261
1288
|
return {
|
|
1262
1289
|
name: D,
|
|
1263
1290
|
item: U,
|
|
@@ -1272,29 +1299,29 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
|
|
|
1272
1299
|
],
|
|
1273
1300
|
numberOfItems: u.length
|
|
1274
1301
|
},
|
|
1275
|
-
image:
|
|
1302
|
+
image: Ke(a),
|
|
1276
1303
|
offers: q,
|
|
1277
1304
|
additionalProperty: de(g, t, []),
|
|
1278
1305
|
isVariantOf: {
|
|
1279
1306
|
productGroupID: n.productId,
|
|
1280
|
-
hasVariant: n.items.map((
|
|
1307
|
+
hasVariant: n.items.map((C) => tt(C))
|
|
1281
1308
|
},
|
|
1282
1309
|
installments: I
|
|
1283
1310
|
};
|
|
1284
|
-
},
|
|
1311
|
+
}, bn = (e) => {
|
|
1285
1312
|
var I;
|
|
1286
1313
|
const {
|
|
1287
1314
|
attributes: t,
|
|
1288
1315
|
referenceId: r,
|
|
1289
1316
|
isVariantOf: n,
|
|
1290
|
-
images:
|
|
1291
|
-
itemId:
|
|
1292
|
-
name:
|
|
1293
|
-
sellers:
|
|
1317
|
+
images: a,
|
|
1318
|
+
itemId: o,
|
|
1319
|
+
name: l,
|
|
1320
|
+
sellers: i,
|
|
1294
1321
|
Videos: d,
|
|
1295
1322
|
variations: g
|
|
1296
1323
|
} = e, {
|
|
1297
|
-
brand:
|
|
1324
|
+
brand: s,
|
|
1298
1325
|
categories: u,
|
|
1299
1326
|
categoriesIds: w,
|
|
1300
1327
|
description: v,
|
|
@@ -1304,11 +1331,11 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
|
|
|
1304
1331
|
Coleção: b,
|
|
1305
1332
|
"ID Coleção": m,
|
|
1306
1333
|
productId: h
|
|
1307
|
-
} = n, f = u.slice().reverse(), E =
|
|
1334
|
+
} = n, f = u.slice().reverse(), E = et(i, e.isVariantOf), q = Ye(E.offers[0].installments);
|
|
1308
1335
|
return {
|
|
1309
|
-
sku:
|
|
1336
|
+
sku: o,
|
|
1310
1337
|
gtin: ((I = r[0]) == null ? void 0 : I.Value) ?? "",
|
|
1311
|
-
name: p ??
|
|
1338
|
+
name: p ?? l,
|
|
1312
1339
|
description: v,
|
|
1313
1340
|
releaseDate: n.releaseDate ?? "",
|
|
1314
1341
|
slug: y,
|
|
@@ -1318,11 +1345,11 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
|
|
|
1318
1345
|
collection: b,
|
|
1319
1346
|
collectionId: m,
|
|
1320
1347
|
id: h,
|
|
1321
|
-
brand: { name:
|
|
1348
|
+
brand: { name: s, brandName: s },
|
|
1322
1349
|
seo: {
|
|
1323
1350
|
description: v,
|
|
1324
1351
|
title: p,
|
|
1325
|
-
canonical:
|
|
1352
|
+
canonical: Ze(y)
|
|
1326
1353
|
},
|
|
1327
1354
|
cluster: {
|
|
1328
1355
|
generals: _,
|
|
@@ -1332,12 +1359,12 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
|
|
|
1332
1359
|
availability: { status: E.offers[0].availability },
|
|
1333
1360
|
breadcrumbList: {
|
|
1334
1361
|
itemListElement: [
|
|
1335
|
-
...f.map((R,
|
|
1336
|
-
const j = R.split("/"),
|
|
1362
|
+
...f.map((R, C) => {
|
|
1363
|
+
const j = R.split("/"), $ = j[j.length - 2], D = j.map(Je).join("/");
|
|
1337
1364
|
return {
|
|
1338
|
-
name:
|
|
1365
|
+
name: $,
|
|
1339
1366
|
item: D,
|
|
1340
|
-
position:
|
|
1367
|
+
position: C + 1
|
|
1341
1368
|
};
|
|
1342
1369
|
}),
|
|
1343
1370
|
{
|
|
@@ -1348,18 +1375,18 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
|
|
|
1348
1375
|
],
|
|
1349
1376
|
numberOfItems: u.length
|
|
1350
1377
|
},
|
|
1351
|
-
image:
|
|
1378
|
+
image: Ke(a),
|
|
1352
1379
|
offers: E,
|
|
1353
1380
|
additionalProperty: de(g, t, []),
|
|
1354
1381
|
isVariantOf: {
|
|
1355
1382
|
productGroupID: n.productId,
|
|
1356
1383
|
hasVariant: n.items.map((R) => {
|
|
1357
|
-
const { variations:
|
|
1358
|
-
name:
|
|
1359
|
-
values: R[
|
|
1384
|
+
const { variations: C } = R, j = C.map(($) => ({
|
|
1385
|
+
name: $,
|
|
1386
|
+
values: R[$]
|
|
1360
1387
|
}));
|
|
1361
1388
|
return {
|
|
1362
|
-
...
|
|
1389
|
+
...tt(R),
|
|
1363
1390
|
additionalProperty: de(
|
|
1364
1391
|
j,
|
|
1365
1392
|
t,
|
|
@@ -1370,30 +1397,30 @@ const an = (e, t) => Bt(e, t), sn = (e) => ({
|
|
|
1370
1397
|
},
|
|
1371
1398
|
installments: q
|
|
1372
1399
|
};
|
|
1373
|
-
},
|
|
1400
|
+
}, wn = c.array().of(c.object({
|
|
1374
1401
|
key: c.string().required(),
|
|
1375
1402
|
value: c.string().required()
|
|
1376
1403
|
})).required("Facets are required");
|
|
1377
|
-
async function
|
|
1404
|
+
async function vn({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
1378
1405
|
if (!t) {
|
|
1379
1406
|
console.error("[ERROR FETCHING] Body is required");
|
|
1380
1407
|
return;
|
|
1381
1408
|
}
|
|
1382
|
-
await
|
|
1383
|
-
const n = new URLSearchParams({}),
|
|
1384
|
-
|
|
1385
|
-
const
|
|
1386
|
-
return
|
|
1409
|
+
await wn.validate(t);
|
|
1410
|
+
const n = new URLSearchParams({}), a = t.map(({ key: l, value: i }) => `${l}/${i}`).join("/");
|
|
1411
|
+
Rt(t, n);
|
|
1412
|
+
const o = `${e}/api/catalog_system/pub/products/crossselling/${a}`;
|
|
1413
|
+
return O(o, {
|
|
1387
1414
|
cache: "no-store",
|
|
1388
1415
|
...r
|
|
1389
|
-
}).then((
|
|
1390
|
-
const g =
|
|
1391
|
-
return g &&
|
|
1416
|
+
}).then((l) => l.map((d) => {
|
|
1417
|
+
const g = Xe(d.items);
|
|
1418
|
+
return g && We(g, d);
|
|
1392
1419
|
}).filter((d) => !!d).map((d) => ({
|
|
1393
|
-
node:
|
|
1420
|
+
node: bn(d)
|
|
1394
1421
|
})));
|
|
1395
1422
|
}
|
|
1396
|
-
const
|
|
1423
|
+
const rt = ({
|
|
1397
1424
|
apiUrl: e,
|
|
1398
1425
|
body: t,
|
|
1399
1426
|
fetchOptions: r,
|
|
@@ -1404,24 +1431,24 @@ const it = ({
|
|
|
1404
1431
|
return;
|
|
1405
1432
|
}
|
|
1406
1433
|
const {
|
|
1407
|
-
query:
|
|
1408
|
-
page:
|
|
1409
|
-
count:
|
|
1410
|
-
sort:
|
|
1434
|
+
query: a = "",
|
|
1435
|
+
page: o = 1,
|
|
1436
|
+
count: l,
|
|
1437
|
+
sort: i = "",
|
|
1411
1438
|
facets: d = [],
|
|
1412
1439
|
type: g,
|
|
1413
|
-
hideUnavailableItems:
|
|
1440
|
+
hideUnavailableItems: s = !0,
|
|
1414
1441
|
locale: u = ""
|
|
1415
1442
|
} = t, w = new URLSearchParams({
|
|
1416
|
-
page:
|
|
1417
|
-
count: (
|
|
1418
|
-
query:
|
|
1419
|
-
sort:
|
|
1443
|
+
page: o.toString(),
|
|
1444
|
+
count: (l == null ? void 0 : l.toString()) ?? (n == null ? void 0 : n.ITEMS_PER_PAGE) ?? 24,
|
|
1445
|
+
query: a,
|
|
1446
|
+
sort: i,
|
|
1420
1447
|
locale: u
|
|
1421
1448
|
});
|
|
1422
|
-
|
|
1449
|
+
s !== void 0 && w.append("hideUnavailableItems", s.toString());
|
|
1423
1450
|
const v = d.map((y) => `${y.key}/${y.value}`).join("/") ?? "";
|
|
1424
|
-
return
|
|
1451
|
+
return lr(
|
|
1425
1452
|
`${e}/api/io/_v/api/intelligent-search/${g}/${v}?${w.toString()}`,
|
|
1426
1453
|
{
|
|
1427
1454
|
headers: {
|
|
@@ -1432,48 +1459,48 @@ const it = ({
|
|
|
1432
1459
|
}
|
|
1433
1460
|
);
|
|
1434
1461
|
};
|
|
1435
|
-
async function
|
|
1462
|
+
async function yn({ body: e, extraData: t, ...r }) {
|
|
1436
1463
|
if (!e) {
|
|
1437
1464
|
console.error("[ERROR FETCHING] Body is required");
|
|
1438
1465
|
return;
|
|
1439
1466
|
}
|
|
1440
|
-
const n = await
|
|
1467
|
+
const n = await rt({
|
|
1441
1468
|
body: {
|
|
1442
1469
|
...e,
|
|
1443
1470
|
type: "product_search"
|
|
1444
1471
|
},
|
|
1445
1472
|
extraData: t,
|
|
1446
1473
|
...r
|
|
1447
|
-
}),
|
|
1448
|
-
const d =
|
|
1449
|
-
return d &&
|
|
1450
|
-
}).filter((
|
|
1451
|
-
pagination:
|
|
1452
|
-
recordsFiltered:
|
|
1474
|
+
}), a = (n == null ? void 0 : n.products.map((i) => {
|
|
1475
|
+
const d = Xe(i.items);
|
|
1476
|
+
return d && We(d, i);
|
|
1477
|
+
}).filter((i) => !!i)) ?? [], {
|
|
1478
|
+
pagination: o,
|
|
1479
|
+
recordsFiltered: l
|
|
1453
1480
|
} = n;
|
|
1454
1481
|
return {
|
|
1455
1482
|
data: {
|
|
1456
1483
|
pagination: {
|
|
1457
|
-
nextPage:
|
|
1458
|
-
previousPage:
|
|
1484
|
+
nextPage: o.after.length > 0,
|
|
1485
|
+
previousPage: o.before.length > 0,
|
|
1459
1486
|
startCursor: "0",
|
|
1460
|
-
endCursor:
|
|
1461
|
-
count:
|
|
1462
|
-
total:
|
|
1487
|
+
endCursor: l.toString(),
|
|
1488
|
+
count: l,
|
|
1489
|
+
total: o.count
|
|
1463
1490
|
},
|
|
1464
|
-
products:
|
|
1465
|
-
node:
|
|
1491
|
+
products: a.map((i, d) => ({
|
|
1492
|
+
node: gn(i),
|
|
1466
1493
|
cursor: d.toString()
|
|
1467
1494
|
}))
|
|
1468
1495
|
}
|
|
1469
1496
|
};
|
|
1470
1497
|
}
|
|
1471
|
-
async function
|
|
1498
|
+
async function _n({ body: e, extraData: t, ...r }) {
|
|
1472
1499
|
if (!e) {
|
|
1473
1500
|
console.error("[ERROR FETCHING] Body is required");
|
|
1474
1501
|
return;
|
|
1475
1502
|
}
|
|
1476
|
-
const n = await
|
|
1503
|
+
const n = await rt({
|
|
1477
1504
|
body: {
|
|
1478
1505
|
...e,
|
|
1479
1506
|
type: "facets"
|
|
@@ -1484,44 +1511,44 @@ async function Rn({ body: e, extraData: t, ...r }) {
|
|
|
1484
1511
|
return !n || !n.facets ? (console.error("[ERROR FETCHING] No facets found"), { data: { facets: [] } }) : {
|
|
1485
1512
|
data: {
|
|
1486
1513
|
...n,
|
|
1487
|
-
facets:
|
|
1514
|
+
facets: It(n, e == null ? void 0 : e.selectedFacets, (e == null ? void 0 : e.query) ?? "")
|
|
1488
1515
|
}
|
|
1489
1516
|
};
|
|
1490
1517
|
}
|
|
1491
|
-
const
|
|
1518
|
+
const Rn = c.object({
|
|
1492
1519
|
query: c.string().optional(),
|
|
1493
1520
|
locale: c.string().optional()
|
|
1494
1521
|
});
|
|
1495
|
-
async function
|
|
1522
|
+
async function In({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
1496
1523
|
if (!t) {
|
|
1497
1524
|
console.error("[ERROR FETCHING] Body is required");
|
|
1498
1525
|
return;
|
|
1499
1526
|
}
|
|
1500
|
-
await
|
|
1501
|
-
const { query: n = "", locale:
|
|
1502
|
-
return
|
|
1503
|
-
`${e}/api/io/_v/api/intelligent-search/search_suggestions?${
|
|
1527
|
+
await Rn.validate(t);
|
|
1528
|
+
const { query: n = "", locale: a = "default_locale" } = t, o = new URLSearchParams({ query: n, locale: a });
|
|
1529
|
+
return O(
|
|
1530
|
+
`${e}/api/io/_v/api/intelligent-search/search_suggestions?${o.toString()}`,
|
|
1504
1531
|
{
|
|
1505
1532
|
...r
|
|
1506
1533
|
}
|
|
1507
1534
|
);
|
|
1508
1535
|
}
|
|
1509
|
-
async function
|
|
1510
|
-
return
|
|
1536
|
+
async function Pn({ apiUrl: e }) {
|
|
1537
|
+
return O(`${e}/api/io/_v/api/intelligent-search/top_searches`);
|
|
1511
1538
|
}
|
|
1512
|
-
const
|
|
1539
|
+
const xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1513
1540
|
__proto__: null,
|
|
1514
|
-
getSearchAutoCompleteSuggestions:
|
|
1515
|
-
getSearchCrossellingProducts:
|
|
1516
|
-
getSearchFacets:
|
|
1517
|
-
getSearchProducts:
|
|
1518
|
-
getSearchSuggestedTerms:
|
|
1519
|
-
getSearchTopSearchs:
|
|
1520
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1541
|
+
getSearchAutoCompleteSuggestions: nn,
|
|
1542
|
+
getSearchCrossellingProducts: vn,
|
|
1543
|
+
getSearchFacets: _n,
|
|
1544
|
+
getSearchProducts: yn,
|
|
1545
|
+
getSearchSuggestedTerms: In,
|
|
1546
|
+
getSearchTopSearchs: Pn
|
|
1547
|
+
}, Symbol.toStringTag, { value: "Module" })), Sn = c.object({
|
|
1521
1548
|
masterDataEntity: c.string().nonNullable(),
|
|
1522
1549
|
payload: c.object().shape({}).nullable()
|
|
1523
1550
|
});
|
|
1524
|
-
async function
|
|
1551
|
+
async function Cn({
|
|
1525
1552
|
apiUrl: e,
|
|
1526
1553
|
body: t,
|
|
1527
1554
|
fetchOptions: r
|
|
@@ -1530,31 +1557,31 @@ async function kn({
|
|
|
1530
1557
|
console.error("[ERROR FETCHING] Body is required");
|
|
1531
1558
|
return;
|
|
1532
1559
|
}
|
|
1533
|
-
await
|
|
1534
|
-
const { masterDataEntity: n, payload:
|
|
1535
|
-
return
|
|
1560
|
+
await Sn.validate(t);
|
|
1561
|
+
const { masterDataEntity: n, payload: a } = t, o = `${e}/api/dataentities/${n}/documents`;
|
|
1562
|
+
return O(o, {
|
|
1536
1563
|
method: "POST",
|
|
1537
1564
|
body: {
|
|
1538
|
-
payload:
|
|
1565
|
+
payload: a
|
|
1539
1566
|
},
|
|
1540
1567
|
...r
|
|
1541
1568
|
});
|
|
1542
1569
|
}
|
|
1543
|
-
const
|
|
1570
|
+
const kn = c.object().shape({
|
|
1544
1571
|
_where: c.string().optional(),
|
|
1545
1572
|
_fields: c.string().optional(),
|
|
1546
1573
|
_sort: c.string().optional(),
|
|
1547
1574
|
_from: c.number().integer().min(0).optional(),
|
|
1548
1575
|
_to: c.number().integer().min(0).optional(),
|
|
1549
1576
|
_keyword: c.string().optional()
|
|
1550
|
-
}),
|
|
1577
|
+
}), En = c.object({
|
|
1551
1578
|
masterDataEntity: c.string().required(),
|
|
1552
|
-
searchFields:
|
|
1579
|
+
searchFields: kn,
|
|
1553
1580
|
headers: c.object().shape({
|
|
1554
1581
|
"REST-Range": c.string().notRequired()
|
|
1555
1582
|
})
|
|
1556
1583
|
});
|
|
1557
|
-
async function
|
|
1584
|
+
async function An({
|
|
1558
1585
|
apiUrl: e,
|
|
1559
1586
|
body: t,
|
|
1560
1587
|
fetchOptions: r
|
|
@@ -1564,20 +1591,20 @@ async function Tn({
|
|
|
1564
1591
|
return;
|
|
1565
1592
|
}
|
|
1566
1593
|
const n = new URLSearchParams();
|
|
1567
|
-
await
|
|
1568
|
-
const { masterDataEntity:
|
|
1569
|
-
|
|
1570
|
-
n.append(g, String(
|
|
1571
|
-
}), "_fields" in
|
|
1572
|
-
let
|
|
1594
|
+
await En.validate(t);
|
|
1595
|
+
const { masterDataEntity: a, searchFields: o, headers: l } = t;
|
|
1596
|
+
o && Object.entries(o).forEach(([g, s]) => {
|
|
1597
|
+
n.append(g, String(s));
|
|
1598
|
+
}), "_fields" in o || n == null || n.append("_fields", "_all");
|
|
1599
|
+
let i = [], d = null;
|
|
1573
1600
|
do {
|
|
1574
1601
|
d && n.set("_scroll", d);
|
|
1575
1602
|
const g = await fetch(
|
|
1576
|
-
`${e}/api/dataentities/${
|
|
1603
|
+
`${e}/api/dataentities/${a}/search?${n.toString()}`,
|
|
1577
1604
|
{
|
|
1578
1605
|
method: "GET",
|
|
1579
1606
|
headers: {
|
|
1580
|
-
"REST-Range": (
|
|
1607
|
+
"REST-Range": (l == null ? void 0 : l["REST-Range"]) ?? "resources=0-100",
|
|
1581
1608
|
...r == null ? void 0 : r.headers
|
|
1582
1609
|
},
|
|
1583
1610
|
cache: "no-store"
|
|
@@ -1587,17 +1614,17 @@ async function Tn({
|
|
|
1587
1614
|
throw new Error(
|
|
1588
1615
|
`[MasterData] ${g.status} - ${g.statusText}`
|
|
1589
1616
|
);
|
|
1590
|
-
const
|
|
1591
|
-
|
|
1617
|
+
const s = await g.json();
|
|
1618
|
+
i.push(...s), d = g.headers.get("x-vtex-md-scroll");
|
|
1592
1619
|
} while (d);
|
|
1593
|
-
return
|
|
1620
|
+
return i;
|
|
1594
1621
|
}
|
|
1595
1622
|
const On = c.object({
|
|
1596
1623
|
dataEntityName: c.string().required(),
|
|
1597
1624
|
id: c.string().required(),
|
|
1598
1625
|
fieldsToBeUpdated: c.object().shape({})
|
|
1599
1626
|
});
|
|
1600
|
-
async function
|
|
1627
|
+
async function Tn({
|
|
1601
1628
|
apiUrl: e,
|
|
1602
1629
|
body: t,
|
|
1603
1630
|
fetchOptions: r
|
|
@@ -1607,65 +1634,65 @@ async function qn({
|
|
|
1607
1634
|
return;
|
|
1608
1635
|
}
|
|
1609
1636
|
await On.validate(t);
|
|
1610
|
-
const { dataEntityName: n, id:
|
|
1611
|
-
return
|
|
1637
|
+
const { dataEntityName: n, id: a, fieldsToBeUpdated: o } = t, l = `${e}/api/dataentities/${n}/documents/${a}`;
|
|
1638
|
+
return O(l, {
|
|
1612
1639
|
body: {
|
|
1613
|
-
fieldsToBeUpdated:
|
|
1640
|
+
fieldsToBeUpdated: o
|
|
1614
1641
|
},
|
|
1615
1642
|
method: "PATCH",
|
|
1616
1643
|
...r
|
|
1617
1644
|
});
|
|
1618
1645
|
}
|
|
1619
|
-
const
|
|
1646
|
+
const qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1620
1647
|
__proto__: null,
|
|
1621
|
-
getSearchMasterdata:
|
|
1622
|
-
patchUpdateMasterdata:
|
|
1623
|
-
postMasterdata:
|
|
1648
|
+
getSearchMasterdata: An,
|
|
1649
|
+
patchUpdateMasterdata: Tn,
|
|
1650
|
+
postMasterdata: Cn
|
|
1624
1651
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1625
|
-
async function
|
|
1626
|
-
const { productIds:
|
|
1627
|
-
if (!i)
|
|
1628
|
-
return console.error("[ERROR FETCHING] productIds is required"), [];
|
|
1629
|
-
const { NAME_SPLIT_SYMBOL: a } = r;
|
|
1652
|
+
async function Nn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
|
|
1653
|
+
const { productIds: a } = e;
|
|
1630
1654
|
if (!a)
|
|
1655
|
+
return console.error("[ERROR FETCHING] productIds is required"), [];
|
|
1656
|
+
const { NAME_SPLIT_SYMBOL: o } = r;
|
|
1657
|
+
if (!o)
|
|
1631
1658
|
return console.error("[ERROR FETCHING] NAME_SPLIT_SYMBOL is required"), [];
|
|
1632
|
-
const
|
|
1633
|
-
`${t}/api/catalog_system/pub/products/search?fq=${
|
|
1659
|
+
const l = a.map((s) => typeof s == "string" || typeof s == "number" ? `productId:${s}` : "").join("&fq="), i = await O(
|
|
1660
|
+
`${t}/api/catalog_system/pub/products/search?fq=${l}`,
|
|
1634
1661
|
{
|
|
1635
1662
|
...n
|
|
1636
1663
|
}
|
|
1637
|
-
), d = (
|
|
1638
|
-
return
|
|
1664
|
+
), d = (s) => Object.keys(s).map((u) => ({ id: u, name: s[u] }));
|
|
1665
|
+
return i.map((s, u) => {
|
|
1639
1666
|
var h;
|
|
1640
|
-
const { installments: w, price: v, listPrice: y, sizes: _, allSizesAvailable: p } =
|
|
1667
|
+
const { installments: w, price: v, listPrice: y, sizes: _, allSizesAvailable: p } = Pt({ items: s.items, NAME_SPLIT_SYMBOL: o }), b = p ? !0 : _.some((f) => f.available), m = s.items[0].sellers[0].commertialOffer;
|
|
1641
1668
|
return {
|
|
1642
1669
|
node: {
|
|
1643
|
-
sku:
|
|
1644
|
-
gtin:
|
|
1645
|
-
name:
|
|
1646
|
-
description:
|
|
1647
|
-
releaseDate:
|
|
1648
|
-
slug:
|
|
1649
|
-
categories:
|
|
1650
|
-
categoriesIds:
|
|
1651
|
-
id:
|
|
1670
|
+
sku: s.items[0].itemId,
|
|
1671
|
+
gtin: s.productReference,
|
|
1672
|
+
name: s.productName,
|
|
1673
|
+
description: s.description,
|
|
1674
|
+
releaseDate: s.releaseDate,
|
|
1675
|
+
slug: s.linkText,
|
|
1676
|
+
categories: s.categories,
|
|
1677
|
+
categoriesIds: s.categoriesIds,
|
|
1678
|
+
id: s.items[0].itemId,
|
|
1652
1679
|
brand: {
|
|
1653
|
-
name:
|
|
1654
|
-
brandName:
|
|
1680
|
+
name: s.brand,
|
|
1681
|
+
brandName: s.brand
|
|
1655
1682
|
},
|
|
1656
1683
|
seo: {
|
|
1657
|
-
description:
|
|
1658
|
-
title:
|
|
1659
|
-
canonical: `/${
|
|
1684
|
+
description: s.description,
|
|
1685
|
+
title: s.productName,
|
|
1686
|
+
canonical: `/${s.linkText}/p`
|
|
1660
1687
|
},
|
|
1661
1688
|
cluster: {
|
|
1662
|
-
generals: d(
|
|
1663
|
-
highlights: d(
|
|
1689
|
+
generals: d(s.productClusters),
|
|
1690
|
+
highlights: d(s.clusterHighlights)
|
|
1664
1691
|
},
|
|
1665
1692
|
availability: {
|
|
1666
1693
|
status: b
|
|
1667
1694
|
},
|
|
1668
|
-
image:
|
|
1695
|
+
image: s.items[0].images.map(
|
|
1669
1696
|
({
|
|
1670
1697
|
imageLabel: f,
|
|
1671
1698
|
imageUrl: E
|
|
@@ -1689,19 +1716,19 @@ async function jn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
|
|
|
1689
1716
|
lowPrice: v,
|
|
1690
1717
|
quantity: m.AvailableQuantity,
|
|
1691
1718
|
seller: {
|
|
1692
|
-
identifier:
|
|
1719
|
+
identifier: s.items[0].sellers[0].sellerId
|
|
1693
1720
|
}
|
|
1694
1721
|
}
|
|
1695
1722
|
]
|
|
1696
1723
|
},
|
|
1697
|
-
additionalProperty: (h =
|
|
1698
|
-
name:
|
|
1724
|
+
additionalProperty: (h = s == null ? void 0 : s.skuSpecifications) == null ? void 0 : h.map((f) => ({
|
|
1725
|
+
name: s == null ? void 0 : s.skuSpecifications[0].field.name,
|
|
1699
1726
|
value: f,
|
|
1700
1727
|
valueReference: "SPECIFICATION"
|
|
1701
1728
|
})),
|
|
1702
1729
|
isVariantOf: {
|
|
1703
|
-
productGroupID:
|
|
1704
|
-
hasVariant:
|
|
1730
|
+
productGroupID: s.productId,
|
|
1731
|
+
hasVariant: s.items.map((f) => {
|
|
1705
1732
|
var E;
|
|
1706
1733
|
return {
|
|
1707
1734
|
additionalProperty: f == null ? void 0 : f.variations.map(() => {
|
|
@@ -1737,11 +1764,11 @@ async function jn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
|
|
|
1737
1764
|
};
|
|
1738
1765
|
});
|
|
1739
1766
|
}
|
|
1740
|
-
const
|
|
1767
|
+
const jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1741
1768
|
__proto__: null,
|
|
1742
|
-
getWishlistProducts:
|
|
1769
|
+
getWishlistProducts: Nn
|
|
1743
1770
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1744
|
-
var
|
|
1771
|
+
var Re = { exports: {} }, nt = {}, Pe = {}, at = {}, it = {};
|
|
1745
1772
|
(function(e) {
|
|
1746
1773
|
Object.defineProperty(e, "__esModule", {
|
|
1747
1774
|
value: !0
|
|
@@ -1751,30 +1778,30 @@ var Ie = { exports: {} }, ot = {}, Se = {}, at = {}, st = {};
|
|
|
1751
1778
|
return r;
|
|
1752
1779
|
}
|
|
1753
1780
|
});
|
|
1754
|
-
const t =
|
|
1755
|
-
function r(n,
|
|
1756
|
-
if (!n.startsWith("/") || !
|
|
1781
|
+
const t = xt;
|
|
1782
|
+
function r(n, a) {
|
|
1783
|
+
if (!n.startsWith("/") || !a)
|
|
1757
1784
|
return n;
|
|
1758
|
-
const { pathname:
|
|
1759
|
-
return "" +
|
|
1785
|
+
const { pathname: o, query: l, hash: i } = (0, t.parsePath)(n);
|
|
1786
|
+
return "" + o + a + l + i;
|
|
1760
1787
|
}
|
|
1761
|
-
})(
|
|
1788
|
+
})(it);
|
|
1762
1789
|
(function(e) {
|
|
1763
1790
|
Object.defineProperty(e, "__esModule", {
|
|
1764
1791
|
value: !0
|
|
1765
1792
|
}), Object.defineProperty(e, "formatNextPathnameInfo", {
|
|
1766
1793
|
enumerable: !0,
|
|
1767
1794
|
get: function() {
|
|
1768
|
-
return
|
|
1795
|
+
return o;
|
|
1769
1796
|
}
|
|
1770
1797
|
});
|
|
1771
|
-
const t =
|
|
1772
|
-
function
|
|
1773
|
-
let
|
|
1774
|
-
return (
|
|
1798
|
+
const t = Ct, r = kt, n = it, a = St;
|
|
1799
|
+
function o(l) {
|
|
1800
|
+
let i = (0, a.addLocale)(l.pathname, l.locale, l.buildId ? void 0 : l.defaultLocale, l.ignorePrefix);
|
|
1801
|
+
return (l.buildId || !l.trailingSlash) && (i = (0, t.removeTrailingSlash)(i)), l.buildId && (i = (0, n.addPathSuffix)((0, r.addPathPrefix)(i, "/_next/data/" + l.buildId), l.pathname === "/" ? "index.json" : ".json")), i = (0, r.addPathPrefix)(i, l.basePath), !l.buildId && l.trailingSlash ? i.endsWith("/") ? i : (0, n.addPathSuffix)(i, "/") : (0, t.removeTrailingSlash)(i);
|
|
1775
1802
|
}
|
|
1776
1803
|
})(at);
|
|
1777
|
-
var
|
|
1804
|
+
var ot = {};
|
|
1778
1805
|
(function(e) {
|
|
1779
1806
|
Object.defineProperty(e, "__esModule", {
|
|
1780
1807
|
value: !0
|
|
@@ -1785,16 +1812,16 @@ var lt = {};
|
|
|
1785
1812
|
}
|
|
1786
1813
|
});
|
|
1787
1814
|
function t(r, n) {
|
|
1788
|
-
let
|
|
1815
|
+
let a;
|
|
1789
1816
|
if (n != null && n.host && !Array.isArray(n.host))
|
|
1790
|
-
|
|
1817
|
+
a = n.host.toString().split(":", 1)[0];
|
|
1791
1818
|
else if (r.hostname)
|
|
1792
|
-
|
|
1819
|
+
a = r.hostname;
|
|
1793
1820
|
else return;
|
|
1794
|
-
return
|
|
1821
|
+
return a.toLowerCase();
|
|
1795
1822
|
}
|
|
1796
|
-
})(
|
|
1797
|
-
var
|
|
1823
|
+
})(ot);
|
|
1824
|
+
var st = {}, lt = {};
|
|
1798
1825
|
(function(e) {
|
|
1799
1826
|
Object.defineProperty(e, "__esModule", {
|
|
1800
1827
|
value: !0
|
|
@@ -1804,45 +1831,45 @@ var ct = {}, ut = {};
|
|
|
1804
1831
|
return r;
|
|
1805
1832
|
}
|
|
1806
1833
|
});
|
|
1807
|
-
const t =
|
|
1808
|
-
function r(n,
|
|
1809
|
-
if (!(0, t.pathHasPrefix)(n,
|
|
1834
|
+
const t = ze;
|
|
1835
|
+
function r(n, a) {
|
|
1836
|
+
if (!(0, t.pathHasPrefix)(n, a))
|
|
1810
1837
|
return n;
|
|
1811
|
-
const
|
|
1812
|
-
return
|
|
1838
|
+
const o = n.slice(a.length);
|
|
1839
|
+
return o.startsWith("/") ? o : "/" + o;
|
|
1813
1840
|
}
|
|
1814
|
-
})(
|
|
1841
|
+
})(lt);
|
|
1815
1842
|
(function(e) {
|
|
1816
1843
|
Object.defineProperty(e, "__esModule", {
|
|
1817
1844
|
value: !0
|
|
1818
1845
|
}), Object.defineProperty(e, "getNextPathnameInfo", {
|
|
1819
1846
|
enumerable: !0,
|
|
1820
1847
|
get: function() {
|
|
1821
|
-
return
|
|
1848
|
+
return a;
|
|
1822
1849
|
}
|
|
1823
1850
|
});
|
|
1824
|
-
const t =
|
|
1825
|
-
function
|
|
1826
|
-
var
|
|
1827
|
-
const { basePath: d, i18n: g, trailingSlash:
|
|
1828
|
-
pathname:
|
|
1829
|
-
trailingSlash:
|
|
1851
|
+
const t = Et, r = lt, n = ze;
|
|
1852
|
+
function a(o, l) {
|
|
1853
|
+
var i;
|
|
1854
|
+
const { basePath: d, i18n: g, trailingSlash: s } = (i = l.nextConfig) != null ? i : {}, u = {
|
|
1855
|
+
pathname: o,
|
|
1856
|
+
trailingSlash: o !== "/" ? o.endsWith("/") : s
|
|
1830
1857
|
};
|
|
1831
1858
|
d && (0, n.pathHasPrefix)(u.pathname, d) && (u.pathname = (0, r.removePathPrefix)(u.pathname, d), u.basePath = d);
|
|
1832
1859
|
let w = u.pathname;
|
|
1833
1860
|
if (u.pathname.startsWith("/_next/data/") && u.pathname.endsWith(".json")) {
|
|
1834
1861
|
const y = u.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), _ = y[0];
|
|
1835
|
-
u.buildId = _, w = y[1] !== "index" ? "/" + y.slice(1).join("/") : "/",
|
|
1862
|
+
u.buildId = _, w = y[1] !== "index" ? "/" + y.slice(1).join("/") : "/", l.parseData === !0 && (u.pathname = w);
|
|
1836
1863
|
}
|
|
1837
1864
|
if (g) {
|
|
1838
|
-
let y =
|
|
1865
|
+
let y = l.i18nProvider ? l.i18nProvider.analyze(u.pathname) : (0, t.normalizeLocalePath)(u.pathname, g.locales);
|
|
1839
1866
|
u.locale = y.detectedLocale;
|
|
1840
1867
|
var v;
|
|
1841
|
-
u.pathname = (v = y.pathname) != null ? v : u.pathname, !y.detectedLocale && u.buildId && (y =
|
|
1868
|
+
u.pathname = (v = y.pathname) != null ? v : u.pathname, !y.detectedLocale && u.buildId && (y = l.i18nProvider ? l.i18nProvider.analyze(w) : (0, t.normalizeLocalePath)(w, g.locales), y.detectedLocale && (u.locale = y.detectedLocale));
|
|
1842
1869
|
}
|
|
1843
1870
|
return u;
|
|
1844
1871
|
}
|
|
1845
|
-
})(
|
|
1872
|
+
})(st);
|
|
1846
1873
|
(function(e) {
|
|
1847
1874
|
Object.defineProperty(e, "__esModule", {
|
|
1848
1875
|
value: !0
|
|
@@ -1852,137 +1879,137 @@ var ct = {}, ut = {};
|
|
|
1852
1879
|
return d;
|
|
1853
1880
|
}
|
|
1854
1881
|
});
|
|
1855
|
-
const t =
|
|
1856
|
-
function
|
|
1857
|
-
return new URL(String(g).replace(
|
|
1882
|
+
const t = At, r = at, n = ot, a = st, o = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
|
|
1883
|
+
function l(g, s) {
|
|
1884
|
+
return new URL(String(g).replace(o, "localhost"), s && String(s).replace(o, "localhost"));
|
|
1858
1885
|
}
|
|
1859
|
-
const
|
|
1886
|
+
const i = Symbol("NextURLInternal");
|
|
1860
1887
|
class d {
|
|
1861
|
-
constructor(
|
|
1888
|
+
constructor(s, u, w) {
|
|
1862
1889
|
let v, y;
|
|
1863
|
-
typeof u == "object" && "pathname" in u || typeof u == "string" ? (v = u, y = w || {}) : y = w || u || {}, this[
|
|
1864
|
-
url: s
|
|
1890
|
+
typeof u == "object" && "pathname" in u || typeof u == "string" ? (v = u, y = w || {}) : y = w || u || {}, this[i] = {
|
|
1891
|
+
url: l(s, v ?? y.base),
|
|
1865
1892
|
options: y,
|
|
1866
1893
|
basePath: ""
|
|
1867
1894
|
}, this.analyze();
|
|
1868
1895
|
}
|
|
1869
1896
|
analyze() {
|
|
1870
|
-
var
|
|
1871
|
-
const _ = (0,
|
|
1872
|
-
nextConfig: this[
|
|
1897
|
+
var s, u, w, v, y;
|
|
1898
|
+
const _ = (0, a.getNextPathnameInfo)(this[i].url.pathname, {
|
|
1899
|
+
nextConfig: this[i].options.nextConfig,
|
|
1873
1900
|
parseData: !process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,
|
|
1874
|
-
i18nProvider: this[
|
|
1875
|
-
}), p = (0, n.getHostname)(this[
|
|
1876
|
-
this[
|
|
1877
|
-
const b = ((w = this[
|
|
1878
|
-
this[
|
|
1901
|
+
i18nProvider: this[i].options.i18nProvider
|
|
1902
|
+
}), p = (0, n.getHostname)(this[i].url, this[i].options.headers);
|
|
1903
|
+
this[i].domainLocale = this[i].options.i18nProvider ? this[i].options.i18nProvider.detectDomainLocale(p) : (0, t.detectDomainLocale)((u = this[i].options.nextConfig) == null || (s = u.i18n) == null ? void 0 : s.domains, p);
|
|
1904
|
+
const b = ((w = this[i].domainLocale) == null ? void 0 : w.defaultLocale) || ((y = this[i].options.nextConfig) == null || (v = y.i18n) == null ? void 0 : v.defaultLocale);
|
|
1905
|
+
this[i].url.pathname = _.pathname, this[i].defaultLocale = b, this[i].basePath = _.basePath ?? "", this[i].buildId = _.buildId, this[i].locale = _.locale ?? b, this[i].trailingSlash = _.trailingSlash;
|
|
1879
1906
|
}
|
|
1880
1907
|
formatPathname() {
|
|
1881
1908
|
return (0, r.formatNextPathnameInfo)({
|
|
1882
|
-
basePath: this[
|
|
1883
|
-
buildId: this[
|
|
1884
|
-
defaultLocale: this[
|
|
1885
|
-
locale: this[
|
|
1886
|
-
pathname: this[
|
|
1887
|
-
trailingSlash: this[
|
|
1909
|
+
basePath: this[i].basePath,
|
|
1910
|
+
buildId: this[i].buildId,
|
|
1911
|
+
defaultLocale: this[i].options.forceLocale ? void 0 : this[i].defaultLocale,
|
|
1912
|
+
locale: this[i].locale,
|
|
1913
|
+
pathname: this[i].url.pathname,
|
|
1914
|
+
trailingSlash: this[i].trailingSlash
|
|
1888
1915
|
});
|
|
1889
1916
|
}
|
|
1890
1917
|
formatSearch() {
|
|
1891
|
-
return this[
|
|
1918
|
+
return this[i].url.search;
|
|
1892
1919
|
}
|
|
1893
1920
|
get buildId() {
|
|
1894
|
-
return this[
|
|
1921
|
+
return this[i].buildId;
|
|
1895
1922
|
}
|
|
1896
|
-
set buildId(
|
|
1897
|
-
this[
|
|
1923
|
+
set buildId(s) {
|
|
1924
|
+
this[i].buildId = s;
|
|
1898
1925
|
}
|
|
1899
1926
|
get locale() {
|
|
1900
|
-
return this[
|
|
1927
|
+
return this[i].locale ?? "";
|
|
1901
1928
|
}
|
|
1902
|
-
set locale(
|
|
1929
|
+
set locale(s) {
|
|
1903
1930
|
var u, w;
|
|
1904
|
-
if (!this[
|
|
1905
|
-
throw new TypeError(`The NextURL configuration includes no locale "${
|
|
1906
|
-
this[
|
|
1931
|
+
if (!this[i].locale || !(!((w = this[i].options.nextConfig) == null || (u = w.i18n) == null) && u.locales.includes(s)))
|
|
1932
|
+
throw new TypeError(`The NextURL configuration includes no locale "${s}"`);
|
|
1933
|
+
this[i].locale = s;
|
|
1907
1934
|
}
|
|
1908
1935
|
get defaultLocale() {
|
|
1909
|
-
return this[
|
|
1936
|
+
return this[i].defaultLocale;
|
|
1910
1937
|
}
|
|
1911
1938
|
get domainLocale() {
|
|
1912
|
-
return this[
|
|
1939
|
+
return this[i].domainLocale;
|
|
1913
1940
|
}
|
|
1914
1941
|
get searchParams() {
|
|
1915
|
-
return this[
|
|
1942
|
+
return this[i].url.searchParams;
|
|
1916
1943
|
}
|
|
1917
1944
|
get host() {
|
|
1918
|
-
return this[
|
|
1945
|
+
return this[i].url.host;
|
|
1919
1946
|
}
|
|
1920
|
-
set host(
|
|
1921
|
-
this[
|
|
1947
|
+
set host(s) {
|
|
1948
|
+
this[i].url.host = s;
|
|
1922
1949
|
}
|
|
1923
1950
|
get hostname() {
|
|
1924
|
-
return this[
|
|
1951
|
+
return this[i].url.hostname;
|
|
1925
1952
|
}
|
|
1926
|
-
set hostname(
|
|
1927
|
-
this[
|
|
1953
|
+
set hostname(s) {
|
|
1954
|
+
this[i].url.hostname = s;
|
|
1928
1955
|
}
|
|
1929
1956
|
get port() {
|
|
1930
|
-
return this[
|
|
1957
|
+
return this[i].url.port;
|
|
1931
1958
|
}
|
|
1932
|
-
set port(
|
|
1933
|
-
this[
|
|
1959
|
+
set port(s) {
|
|
1960
|
+
this[i].url.port = s;
|
|
1934
1961
|
}
|
|
1935
1962
|
get protocol() {
|
|
1936
|
-
return this[
|
|
1963
|
+
return this[i].url.protocol;
|
|
1937
1964
|
}
|
|
1938
|
-
set protocol(
|
|
1939
|
-
this[
|
|
1965
|
+
set protocol(s) {
|
|
1966
|
+
this[i].url.protocol = s;
|
|
1940
1967
|
}
|
|
1941
1968
|
get href() {
|
|
1942
|
-
const
|
|
1943
|
-
return `${this.protocol}//${this.host}${
|
|
1969
|
+
const s = this.formatPathname(), u = this.formatSearch();
|
|
1970
|
+
return `${this.protocol}//${this.host}${s}${u}${this.hash}`;
|
|
1944
1971
|
}
|
|
1945
|
-
set href(
|
|
1946
|
-
this[
|
|
1972
|
+
set href(s) {
|
|
1973
|
+
this[i].url = l(s), this.analyze();
|
|
1947
1974
|
}
|
|
1948
1975
|
get origin() {
|
|
1949
|
-
return this[
|
|
1976
|
+
return this[i].url.origin;
|
|
1950
1977
|
}
|
|
1951
1978
|
get pathname() {
|
|
1952
|
-
return this[
|
|
1979
|
+
return this[i].url.pathname;
|
|
1953
1980
|
}
|
|
1954
|
-
set pathname(
|
|
1955
|
-
this[
|
|
1981
|
+
set pathname(s) {
|
|
1982
|
+
this[i].url.pathname = s;
|
|
1956
1983
|
}
|
|
1957
1984
|
get hash() {
|
|
1958
|
-
return this[
|
|
1985
|
+
return this[i].url.hash;
|
|
1959
1986
|
}
|
|
1960
|
-
set hash(
|
|
1961
|
-
this[
|
|
1987
|
+
set hash(s) {
|
|
1988
|
+
this[i].url.hash = s;
|
|
1962
1989
|
}
|
|
1963
1990
|
get search() {
|
|
1964
|
-
return this[
|
|
1991
|
+
return this[i].url.search;
|
|
1965
1992
|
}
|
|
1966
|
-
set search(
|
|
1967
|
-
this[
|
|
1993
|
+
set search(s) {
|
|
1994
|
+
this[i].url.search = s;
|
|
1968
1995
|
}
|
|
1969
1996
|
get password() {
|
|
1970
|
-
return this[
|
|
1997
|
+
return this[i].url.password;
|
|
1971
1998
|
}
|
|
1972
|
-
set password(
|
|
1973
|
-
this[
|
|
1999
|
+
set password(s) {
|
|
2000
|
+
this[i].url.password = s;
|
|
1974
2001
|
}
|
|
1975
2002
|
get username() {
|
|
1976
|
-
return this[
|
|
2003
|
+
return this[i].url.username;
|
|
1977
2004
|
}
|
|
1978
|
-
set username(
|
|
1979
|
-
this[
|
|
2005
|
+
set username(s) {
|
|
2006
|
+
this[i].url.username = s;
|
|
1980
2007
|
}
|
|
1981
2008
|
get basePath() {
|
|
1982
|
-
return this[
|
|
2009
|
+
return this[i].basePath;
|
|
1983
2010
|
}
|
|
1984
|
-
set basePath(
|
|
1985
|
-
this[
|
|
2011
|
+
set basePath(s) {
|
|
2012
|
+
this[i].basePath = s.startsWith("/") ? s : `/${s}`;
|
|
1986
2013
|
}
|
|
1987
2014
|
toString() {
|
|
1988
2015
|
return this.href;
|
|
@@ -2007,19 +2034,19 @@ var ct = {}, ut = {};
|
|
|
2007
2034
|
};
|
|
2008
2035
|
}
|
|
2009
2036
|
clone() {
|
|
2010
|
-
return new d(String(this), this[
|
|
2037
|
+
return new d(String(this), this[i].options);
|
|
2011
2038
|
}
|
|
2012
2039
|
}
|
|
2013
|
-
})(
|
|
2014
|
-
var
|
|
2040
|
+
})(Pe);
|
|
2041
|
+
var xe = {};
|
|
2015
2042
|
(function(e) {
|
|
2016
2043
|
Object.defineProperty(e, "__esModule", {
|
|
2017
2044
|
value: !0
|
|
2018
2045
|
});
|
|
2019
2046
|
function t(d, g) {
|
|
2020
|
-
for (var
|
|
2047
|
+
for (var s in g) Object.defineProperty(d, s, {
|
|
2021
2048
|
enumerable: !0,
|
|
2022
|
-
get: g[
|
|
2049
|
+
get: g[s]
|
|
2023
2050
|
});
|
|
2024
2051
|
}
|
|
2025
2052
|
t(e, {
|
|
@@ -2027,60 +2054,60 @@ var Ce = {};
|
|
|
2027
2054
|
return n;
|
|
2028
2055
|
},
|
|
2029
2056
|
normalizeNextQueryParam: function() {
|
|
2030
|
-
return
|
|
2057
|
+
return i;
|
|
2031
2058
|
},
|
|
2032
2059
|
splitCookiesString: function() {
|
|
2033
|
-
return
|
|
2060
|
+
return a;
|
|
2034
2061
|
},
|
|
2035
2062
|
toNodeOutgoingHttpHeaders: function() {
|
|
2036
|
-
return
|
|
2063
|
+
return o;
|
|
2037
2064
|
},
|
|
2038
2065
|
validateURL: function() {
|
|
2039
|
-
return
|
|
2066
|
+
return l;
|
|
2040
2067
|
}
|
|
2041
2068
|
});
|
|
2042
|
-
const r =
|
|
2069
|
+
const r = Ot;
|
|
2043
2070
|
function n(d) {
|
|
2044
2071
|
const g = new Headers();
|
|
2045
|
-
for (let [
|
|
2072
|
+
for (let [s, u] of Object.entries(d)) {
|
|
2046
2073
|
const w = Array.isArray(u) ? u : [
|
|
2047
2074
|
u
|
|
2048
2075
|
];
|
|
2049
2076
|
for (let v of w)
|
|
2050
|
-
typeof v > "u" || (typeof v == "number" && (v = v.toString()), g.append(
|
|
2077
|
+
typeof v > "u" || (typeof v == "number" && (v = v.toString()), g.append(s, v));
|
|
2051
2078
|
}
|
|
2052
2079
|
return g;
|
|
2053
2080
|
}
|
|
2054
|
-
function
|
|
2055
|
-
var g = [],
|
|
2081
|
+
function a(d) {
|
|
2082
|
+
var g = [], s = 0, u, w, v, y, _;
|
|
2056
2083
|
function p() {
|
|
2057
|
-
for (;
|
|
2058
|
-
|
|
2059
|
-
return
|
|
2084
|
+
for (; s < d.length && /\s/.test(d.charAt(s)); )
|
|
2085
|
+
s += 1;
|
|
2086
|
+
return s < d.length;
|
|
2060
2087
|
}
|
|
2061
2088
|
function b() {
|
|
2062
|
-
return w = d.charAt(
|
|
2063
|
-
}
|
|
2064
|
-
for (;
|
|
2065
|
-
for (u =
|
|
2066
|
-
if (w = d.charAt(
|
|
2067
|
-
for (v =
|
|
2068
|
-
|
|
2069
|
-
|
|
2089
|
+
return w = d.charAt(s), w !== "=" && w !== ";" && w !== ",";
|
|
2090
|
+
}
|
|
2091
|
+
for (; s < d.length; ) {
|
|
2092
|
+
for (u = s, _ = !1; p(); )
|
|
2093
|
+
if (w = d.charAt(s), w === ",") {
|
|
2094
|
+
for (v = s, s += 1, p(), y = s; s < d.length && b(); )
|
|
2095
|
+
s += 1;
|
|
2096
|
+
s < d.length && d.charAt(s) === "=" ? (_ = !0, s = y, g.push(d.substring(u, v)), u = s) : s = v + 1;
|
|
2070
2097
|
} else
|
|
2071
|
-
|
|
2072
|
-
(!_ ||
|
|
2098
|
+
s += 1;
|
|
2099
|
+
(!_ || s >= d.length) && g.push(d.substring(u, d.length));
|
|
2073
2100
|
}
|
|
2074
2101
|
return g;
|
|
2075
2102
|
}
|
|
2076
|
-
function
|
|
2077
|
-
const g = {},
|
|
2103
|
+
function o(d) {
|
|
2104
|
+
const g = {}, s = [];
|
|
2078
2105
|
if (d)
|
|
2079
2106
|
for (const [u, w] of d.entries())
|
|
2080
|
-
u.toLowerCase() === "set-cookie" ? (
|
|
2107
|
+
u.toLowerCase() === "set-cookie" ? (s.push(...a(w)), g[u] = s.length === 1 ? s[0] : s) : g[u] = w;
|
|
2081
2108
|
return g;
|
|
2082
2109
|
}
|
|
2083
|
-
function
|
|
2110
|
+
function l(d) {
|
|
2084
2111
|
try {
|
|
2085
2112
|
return String(new URL(String(d)));
|
|
2086
2113
|
} catch (g) {
|
|
@@ -2089,27 +2116,27 @@ var Ce = {};
|
|
|
2089
2116
|
});
|
|
2090
2117
|
}
|
|
2091
2118
|
}
|
|
2092
|
-
function
|
|
2093
|
-
const
|
|
2119
|
+
function i(d, g) {
|
|
2120
|
+
const s = [
|
|
2094
2121
|
r.NEXT_QUERY_PARAM_PREFIX,
|
|
2095
2122
|
r.NEXT_INTERCEPTION_MARKER_PREFIX
|
|
2096
2123
|
];
|
|
2097
|
-
for (const u of
|
|
2124
|
+
for (const u of s)
|
|
2098
2125
|
if (d !== u && d.startsWith(u)) {
|
|
2099
2126
|
const w = d.substring(u.length);
|
|
2100
2127
|
g(w);
|
|
2101
2128
|
}
|
|
2102
2129
|
}
|
|
2103
|
-
})(
|
|
2104
|
-
var
|
|
2130
|
+
})(xe);
|
|
2131
|
+
var ct = {};
|
|
2105
2132
|
(function(e) {
|
|
2106
2133
|
Object.defineProperty(e, "__esModule", {
|
|
2107
2134
|
value: !0
|
|
2108
2135
|
});
|
|
2109
|
-
function t(
|
|
2110
|
-
for (var
|
|
2136
|
+
function t(o, l) {
|
|
2137
|
+
for (var i in l) Object.defineProperty(o, i, {
|
|
2111
2138
|
enumerable: !0,
|
|
2112
|
-
get:
|
|
2139
|
+
get: l[i]
|
|
2113
2140
|
});
|
|
2114
2141
|
}
|
|
2115
2142
|
t(e, {
|
|
@@ -2120,12 +2147,12 @@ var dt = {};
|
|
|
2120
2147
|
return n;
|
|
2121
2148
|
},
|
|
2122
2149
|
RemovedUAError: function() {
|
|
2123
|
-
return
|
|
2150
|
+
return a;
|
|
2124
2151
|
}
|
|
2125
2152
|
});
|
|
2126
2153
|
class r extends Error {
|
|
2127
|
-
constructor({ page:
|
|
2128
|
-
super(`The middleware "${
|
|
2154
|
+
constructor({ page: l }) {
|
|
2155
|
+
super(`The middleware "${l}" accepts an async API directly with the form:
|
|
2129
2156
|
|
|
2130
2157
|
export function middleware(request, event) {
|
|
2131
2158
|
return NextResponse.redirect('/new-location')
|
|
@@ -2140,30 +2167,30 @@ var dt = {};
|
|
|
2140
2167
|
super("The request.page has been deprecated in favour of `URLPattern`.\n Read more: https://nextjs.org/docs/messages/middleware-request-page\n ");
|
|
2141
2168
|
}
|
|
2142
2169
|
}
|
|
2143
|
-
class
|
|
2170
|
+
class a extends Error {
|
|
2144
2171
|
constructor() {
|
|
2145
2172
|
super("The request.ua has been removed in favour of `userAgent` function.\n Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent\n ");
|
|
2146
2173
|
}
|
|
2147
2174
|
}
|
|
2148
|
-
})(
|
|
2149
|
-
var pe = {},
|
|
2175
|
+
})(ct);
|
|
2176
|
+
var pe = {}, Se = Object.defineProperty, Fn = Object.getOwnPropertyDescriptor, $n = Object.getOwnPropertyNames, Ln = Object.prototype.hasOwnProperty, Dn = (e, t) => {
|
|
2150
2177
|
for (var r in t)
|
|
2151
|
-
|
|
2152
|
-
},
|
|
2178
|
+
Se(e, r, { get: t[r], enumerable: !0 });
|
|
2179
|
+
}, Un = (e, t, r, n) => {
|
|
2153
2180
|
if (t && typeof t == "object" || typeof t == "function")
|
|
2154
|
-
for (let
|
|
2155
|
-
!
|
|
2181
|
+
for (let a of $n(t))
|
|
2182
|
+
!Ln.call(e, a) && a !== r && Se(e, a, { get: () => t[a], enumerable: !(n = Fn(t, a)) || n.enumerable });
|
|
2156
2183
|
return e;
|
|
2157
|
-
},
|
|
2158
|
-
|
|
2159
|
-
RequestCookies: () =>
|
|
2160
|
-
ResponseCookies: () =>
|
|
2161
|
-
parseCookie: () =>
|
|
2162
|
-
parseSetCookie: () =>
|
|
2163
|
-
stringifyCookie: () =>
|
|
2184
|
+
}, Hn = (e) => Un(Se({}, "__esModule", { value: !0 }), e), ut = {};
|
|
2185
|
+
Dn(ut, {
|
|
2186
|
+
RequestCookies: () => Xn,
|
|
2187
|
+
ResponseCookies: () => Kn,
|
|
2188
|
+
parseCookie: () => Ce,
|
|
2189
|
+
parseSetCookie: () => dt,
|
|
2190
|
+
stringifyCookie: () => K
|
|
2164
2191
|
});
|
|
2165
|
-
var
|
|
2166
|
-
function
|
|
2192
|
+
var Mn = Hn(ut);
|
|
2193
|
+
function K(e) {
|
|
2167
2194
|
var t;
|
|
2168
2195
|
const r = [
|
|
2169
2196
|
"path" in e && e.path && `Path=${e.path}`,
|
|
@@ -2178,7 +2205,7 @@ function J(e) {
|
|
|
2178
2205
|
].filter(Boolean), n = `${e.name}=${encodeURIComponent((t = e.value) != null ? t : "")}`;
|
|
2179
2206
|
return r.length === 0 ? n : `${n}; ${r.join("; ")}`;
|
|
2180
2207
|
}
|
|
2181
|
-
function
|
|
2208
|
+
function Ce(e) {
|
|
2182
2209
|
const t = /* @__PURE__ */ new Map();
|
|
2183
2210
|
for (const r of e.split(/; */)) {
|
|
2184
2211
|
if (!r)
|
|
@@ -2188,25 +2215,25 @@ function ke(e) {
|
|
|
2188
2215
|
t.set(r, "true");
|
|
2189
2216
|
continue;
|
|
2190
2217
|
}
|
|
2191
|
-
const [
|
|
2218
|
+
const [a, o] = [r.slice(0, n), r.slice(n + 1)];
|
|
2192
2219
|
try {
|
|
2193
|
-
t.set(
|
|
2220
|
+
t.set(a, decodeURIComponent(o ?? "true"));
|
|
2194
2221
|
} catch {
|
|
2195
2222
|
}
|
|
2196
2223
|
}
|
|
2197
2224
|
return t;
|
|
2198
2225
|
}
|
|
2199
|
-
function
|
|
2226
|
+
function dt(e) {
|
|
2200
2227
|
if (!e)
|
|
2201
2228
|
return;
|
|
2202
|
-
const [[t, r], ...n] =
|
|
2203
|
-
domain:
|
|
2204
|
-
expires:
|
|
2205
|
-
httponly:
|
|
2206
|
-
maxage:
|
|
2229
|
+
const [[t, r], ...n] = Ce(e), {
|
|
2230
|
+
domain: a,
|
|
2231
|
+
expires: o,
|
|
2232
|
+
httponly: l,
|
|
2233
|
+
maxage: i,
|
|
2207
2234
|
path: d,
|
|
2208
2235
|
samesite: g,
|
|
2209
|
-
secure:
|
|
2236
|
+
secure: s,
|
|
2210
2237
|
partitioned: u,
|
|
2211
2238
|
priority: w
|
|
2212
2239
|
} = Object.fromEntries(
|
|
@@ -2214,64 +2241,64 @@ function mt(e) {
|
|
|
2214
2241
|
), v = {
|
|
2215
2242
|
name: t,
|
|
2216
2243
|
value: decodeURIComponent(r),
|
|
2217
|
-
domain:
|
|
2218
|
-
...
|
|
2219
|
-
...
|
|
2220
|
-
...typeof
|
|
2244
|
+
domain: a,
|
|
2245
|
+
...o && { expires: new Date(o) },
|
|
2246
|
+
...l && { httpOnly: !0 },
|
|
2247
|
+
...typeof i == "string" && { maxAge: Number(i) },
|
|
2221
2248
|
path: d,
|
|
2222
|
-
...g && { sameSite:
|
|
2223
|
-
...
|
|
2224
|
-
...w && { priority:
|
|
2249
|
+
...g && { sameSite: Gn(g) },
|
|
2250
|
+
...s && { secure: !0 },
|
|
2251
|
+
...w && { priority: Wn(w) },
|
|
2225
2252
|
...u && { partitioned: !0 }
|
|
2226
2253
|
};
|
|
2227
|
-
return
|
|
2254
|
+
return Bn(v);
|
|
2228
2255
|
}
|
|
2229
|
-
function
|
|
2256
|
+
function Bn(e) {
|
|
2230
2257
|
const t = {};
|
|
2231
2258
|
for (const r in e)
|
|
2232
2259
|
e[r] && (t[r] = e[r]);
|
|
2233
2260
|
return t;
|
|
2234
2261
|
}
|
|
2235
|
-
var
|
|
2236
|
-
function
|
|
2237
|
-
return e = e.toLowerCase(),
|
|
2262
|
+
var zn = ["strict", "lax", "none"];
|
|
2263
|
+
function Gn(e) {
|
|
2264
|
+
return e = e.toLowerCase(), zn.includes(e) ? e : void 0;
|
|
2238
2265
|
}
|
|
2239
|
-
var
|
|
2240
|
-
function
|
|
2241
|
-
return e = e.toLowerCase(),
|
|
2266
|
+
var Vn = ["low", "medium", "high"];
|
|
2267
|
+
function Wn(e) {
|
|
2268
|
+
return e = e.toLowerCase(), Vn.includes(e) ? e : void 0;
|
|
2242
2269
|
}
|
|
2243
|
-
function
|
|
2270
|
+
function Qn(e) {
|
|
2244
2271
|
if (!e)
|
|
2245
2272
|
return [];
|
|
2246
|
-
var t = [], r = 0, n,
|
|
2273
|
+
var t = [], r = 0, n, a, o, l, i;
|
|
2247
2274
|
function d() {
|
|
2248
2275
|
for (; r < e.length && /\s/.test(e.charAt(r)); )
|
|
2249
2276
|
r += 1;
|
|
2250
2277
|
return r < e.length;
|
|
2251
2278
|
}
|
|
2252
2279
|
function g() {
|
|
2253
|
-
return
|
|
2280
|
+
return a = e.charAt(r), a !== "=" && a !== ";" && a !== ",";
|
|
2254
2281
|
}
|
|
2255
2282
|
for (; r < e.length; ) {
|
|
2256
|
-
for (n = r,
|
|
2257
|
-
if (
|
|
2258
|
-
for (
|
|
2283
|
+
for (n = r, i = !1; d(); )
|
|
2284
|
+
if (a = e.charAt(r), a === ",") {
|
|
2285
|
+
for (o = r, r += 1, d(), l = r; r < e.length && g(); )
|
|
2259
2286
|
r += 1;
|
|
2260
|
-
r < e.length && e.charAt(r) === "=" ? (
|
|
2287
|
+
r < e.length && e.charAt(r) === "=" ? (i = !0, r = l, t.push(e.substring(n, o)), n = r) : r = o + 1;
|
|
2261
2288
|
} else
|
|
2262
2289
|
r += 1;
|
|
2263
|
-
(!
|
|
2290
|
+
(!i || r >= e.length) && t.push(e.substring(n, e.length));
|
|
2264
2291
|
}
|
|
2265
2292
|
return t;
|
|
2266
2293
|
}
|
|
2267
|
-
var
|
|
2294
|
+
var Xn = class {
|
|
2268
2295
|
constructor(e) {
|
|
2269
2296
|
this._parsed = /* @__PURE__ */ new Map(), this._headers = e;
|
|
2270
2297
|
const t = e.get("cookie");
|
|
2271
2298
|
if (t) {
|
|
2272
|
-
const r =
|
|
2273
|
-
for (const [n,
|
|
2274
|
-
this._parsed.set(n, { name: n, value:
|
|
2299
|
+
const r = Ce(t);
|
|
2300
|
+
for (const [n, a] of r)
|
|
2301
|
+
this._parsed.set(n, { name: n, value: a });
|
|
2275
2302
|
}
|
|
2276
2303
|
}
|
|
2277
2304
|
[Symbol.iterator]() {
|
|
@@ -2291,9 +2318,9 @@ var Kn = class {
|
|
|
2291
2318
|
var t;
|
|
2292
2319
|
const r = Array.from(this._parsed);
|
|
2293
2320
|
if (!e.length)
|
|
2294
|
-
return r.map(([
|
|
2321
|
+
return r.map(([a, o]) => o);
|
|
2295
2322
|
const n = typeof e[0] == "string" ? e[0] : (t = e[0]) == null ? void 0 : t.name;
|
|
2296
|
-
return r.filter(([
|
|
2323
|
+
return r.filter(([a]) => a === n).map(([a, o]) => o);
|
|
2297
2324
|
}
|
|
2298
2325
|
has(e) {
|
|
2299
2326
|
return this._parsed.has(e);
|
|
@@ -2302,7 +2329,7 @@ var Kn = class {
|
|
|
2302
2329
|
const [t, r] = e.length === 1 ? [e[0].name, e[0].value] : e, n = this._parsed;
|
|
2303
2330
|
return n.set(t, { name: t, value: r }), this._headers.set(
|
|
2304
2331
|
"cookie",
|
|
2305
|
-
Array.from(n).map(([
|
|
2332
|
+
Array.from(n).map(([a, o]) => K(o)).join("; ")
|
|
2306
2333
|
), this;
|
|
2307
2334
|
}
|
|
2308
2335
|
/**
|
|
@@ -2312,7 +2339,7 @@ var Kn = class {
|
|
|
2312
2339
|
const t = this._parsed, r = Array.isArray(e) ? e.map((n) => t.delete(n)) : t.delete(e);
|
|
2313
2340
|
return this._headers.set(
|
|
2314
2341
|
"cookie",
|
|
2315
|
-
Array.from(t).map(([n,
|
|
2342
|
+
Array.from(t).map(([n, a]) => K(a)).join("; ")
|
|
2316
2343
|
), r;
|
|
2317
2344
|
}
|
|
2318
2345
|
/**
|
|
@@ -2330,15 +2357,15 @@ var Kn = class {
|
|
|
2330
2357
|
toString() {
|
|
2331
2358
|
return [...this._parsed.values()].map((e) => `${e.name}=${encodeURIComponent(e.value)}`).join("; ");
|
|
2332
2359
|
}
|
|
2333
|
-
},
|
|
2360
|
+
}, Kn = class {
|
|
2334
2361
|
constructor(e) {
|
|
2335
2362
|
this._parsed = /* @__PURE__ */ new Map();
|
|
2336
2363
|
var t, r, n;
|
|
2337
2364
|
this._headers = e;
|
|
2338
|
-
const
|
|
2339
|
-
for (const
|
|
2340
|
-
const
|
|
2341
|
-
|
|
2365
|
+
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 : Qn(a);
|
|
2366
|
+
for (const l of o) {
|
|
2367
|
+
const i = dt(l);
|
|
2368
|
+
i && this._parsed.set(i.name, i);
|
|
2342
2369
|
}
|
|
2343
2370
|
}
|
|
2344
2371
|
/**
|
|
@@ -2357,7 +2384,7 @@ var Kn = class {
|
|
|
2357
2384
|
if (!e.length)
|
|
2358
2385
|
return r;
|
|
2359
2386
|
const n = typeof e[0] == "string" ? e[0] : (t = e[0]) == null ? void 0 : t.name;
|
|
2360
|
-
return r.filter((
|
|
2387
|
+
return r.filter((a) => a.name === n);
|
|
2361
2388
|
}
|
|
2362
2389
|
has(e) {
|
|
2363
2390
|
return this._parsed.has(e);
|
|
@@ -2366,8 +2393,8 @@ var Kn = class {
|
|
|
2366
2393
|
* {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
|
|
2367
2394
|
*/
|
|
2368
2395
|
set(...e) {
|
|
2369
|
-
const [t, r, n] = e.length === 1 ? [e[0].name, e[0].value, e[0]] : e,
|
|
2370
|
-
return
|
|
2396
|
+
const [t, r, n] = e.length === 1 ? [e[0].name, e[0].value, e[0]] : e, a = this._parsed;
|
|
2397
|
+
return a.set(t, Zn({ name: t, value: r, ...n })), Jn(a, this._headers), this;
|
|
2371
2398
|
}
|
|
2372
2399
|
/**
|
|
2373
2400
|
* {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
|
|
@@ -2380,27 +2407,27 @@ var Kn = class {
|
|
|
2380
2407
|
return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
2381
2408
|
}
|
|
2382
2409
|
toString() {
|
|
2383
|
-
return [...this._parsed.values()].map(
|
|
2410
|
+
return [...this._parsed.values()].map(K).join("; ");
|
|
2384
2411
|
}
|
|
2385
2412
|
};
|
|
2386
|
-
function
|
|
2413
|
+
function Jn(e, t) {
|
|
2387
2414
|
t.delete("set-cookie");
|
|
2388
2415
|
for (const [, r] of e) {
|
|
2389
|
-
const n =
|
|
2416
|
+
const n = K(r);
|
|
2390
2417
|
t.append("set-cookie", n);
|
|
2391
2418
|
}
|
|
2392
2419
|
}
|
|
2393
|
-
function
|
|
2420
|
+
function Zn(e = { name: "", value: "" }) {
|
|
2394
2421
|
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;
|
|
2395
2422
|
}
|
|
2396
2423
|
(function(e) {
|
|
2397
2424
|
Object.defineProperty(e, "__esModule", {
|
|
2398
2425
|
value: !0
|
|
2399
2426
|
});
|
|
2400
|
-
function t(n,
|
|
2401
|
-
for (var
|
|
2427
|
+
function t(n, a) {
|
|
2428
|
+
for (var o in a) Object.defineProperty(n, o, {
|
|
2402
2429
|
enumerable: !0,
|
|
2403
|
-
get:
|
|
2430
|
+
get: a[o]
|
|
2404
2431
|
});
|
|
2405
2432
|
}
|
|
2406
2433
|
t(e, {
|
|
@@ -2414,39 +2441,39 @@ function Yn(e = { name: "", value: "" }) {
|
|
|
2414
2441
|
return r.stringifyCookie;
|
|
2415
2442
|
}
|
|
2416
2443
|
});
|
|
2417
|
-
const r =
|
|
2444
|
+
const r = Mn;
|
|
2418
2445
|
})(pe);
|
|
2419
2446
|
(function(e) {
|
|
2420
2447
|
Object.defineProperty(e, "__esModule", {
|
|
2421
2448
|
value: !0
|
|
2422
2449
|
});
|
|
2423
2450
|
function t(d, g) {
|
|
2424
|
-
for (var
|
|
2451
|
+
for (var s in g) Object.defineProperty(d, s, {
|
|
2425
2452
|
enumerable: !0,
|
|
2426
|
-
get: g[
|
|
2453
|
+
get: g[s]
|
|
2427
2454
|
});
|
|
2428
2455
|
}
|
|
2429
2456
|
t(e, {
|
|
2430
2457
|
INTERNALS: function() {
|
|
2431
|
-
return
|
|
2458
|
+
return l;
|
|
2432
2459
|
},
|
|
2433
2460
|
NextRequest: function() {
|
|
2434
|
-
return
|
|
2461
|
+
return i;
|
|
2435
2462
|
}
|
|
2436
2463
|
});
|
|
2437
|
-
const r =
|
|
2438
|
-
class
|
|
2439
|
-
constructor(g,
|
|
2464
|
+
const r = Pe, n = xe, a = ct, o = pe, l = Symbol("internal request");
|
|
2465
|
+
class i extends Request {
|
|
2466
|
+
constructor(g, s = {}) {
|
|
2440
2467
|
const u = typeof g != "string" && "url" in g ? g.url : String(g);
|
|
2441
|
-
(0, n.validateURL)(u), g instanceof Request ? super(g,
|
|
2468
|
+
(0, n.validateURL)(u), g instanceof Request ? super(g, s) : super(u, s);
|
|
2442
2469
|
const w = new r.NextURL(u, {
|
|
2443
2470
|
headers: (0, n.toNodeOutgoingHttpHeaders)(this.headers),
|
|
2444
|
-
nextConfig:
|
|
2471
|
+
nextConfig: s.nextConfig
|
|
2445
2472
|
});
|
|
2446
|
-
this[
|
|
2447
|
-
cookies: new
|
|
2448
|
-
geo:
|
|
2449
|
-
ip:
|
|
2473
|
+
this[l] = {
|
|
2474
|
+
cookies: new o.RequestCookies(this.headers),
|
|
2475
|
+
geo: s.geo || {},
|
|
2476
|
+
ip: s.ip,
|
|
2450
2477
|
nextUrl: w,
|
|
2451
2478
|
url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ? u : w.toString()
|
|
2452
2479
|
};
|
|
@@ -2475,16 +2502,16 @@ function Yn(e = { name: "", value: "" }) {
|
|
|
2475
2502
|
};
|
|
2476
2503
|
}
|
|
2477
2504
|
get cookies() {
|
|
2478
|
-
return this[
|
|
2505
|
+
return this[l].cookies;
|
|
2479
2506
|
}
|
|
2480
2507
|
get geo() {
|
|
2481
|
-
return this[
|
|
2508
|
+
return this[l].geo;
|
|
2482
2509
|
}
|
|
2483
2510
|
get ip() {
|
|
2484
|
-
return this[
|
|
2511
|
+
return this[l].ip;
|
|
2485
2512
|
}
|
|
2486
2513
|
get nextUrl() {
|
|
2487
|
-
return this[
|
|
2514
|
+
return this[l].nextUrl;
|
|
2488
2515
|
}
|
|
2489
2516
|
/**
|
|
2490
2517
|
* @deprecated
|
|
@@ -2492,7 +2519,7 @@ function Yn(e = { name: "", value: "" }) {
|
|
|
2492
2519
|
* Read more: https://nextjs.org/docs/messages/middleware-request-page
|
|
2493
2520
|
*/
|
|
2494
2521
|
get page() {
|
|
2495
|
-
throw new
|
|
2522
|
+
throw new a.RemovedPageError();
|
|
2496
2523
|
}
|
|
2497
2524
|
/**
|
|
2498
2525
|
* @deprecated
|
|
@@ -2500,14 +2527,14 @@ function Yn(e = { name: "", value: "" }) {
|
|
|
2500
2527
|
* Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent
|
|
2501
2528
|
*/
|
|
2502
2529
|
get ua() {
|
|
2503
|
-
throw new
|
|
2530
|
+
throw new a.RemovedUAError();
|
|
2504
2531
|
}
|
|
2505
2532
|
get url() {
|
|
2506
|
-
return this[
|
|
2533
|
+
return this[l].url;
|
|
2507
2534
|
}
|
|
2508
2535
|
}
|
|
2509
|
-
})(
|
|
2510
|
-
var
|
|
2536
|
+
})(nt);
|
|
2537
|
+
var pt = {}, mt = {};
|
|
2511
2538
|
(function(e) {
|
|
2512
2539
|
Object.defineProperty(e, "__esModule", {
|
|
2513
2540
|
value: !0
|
|
@@ -2518,21 +2545,21 @@ var ht = {}, ft = {};
|
|
|
2518
2545
|
}
|
|
2519
2546
|
});
|
|
2520
2547
|
class t {
|
|
2521
|
-
static get(n,
|
|
2522
|
-
const
|
|
2523
|
-
return typeof
|
|
2548
|
+
static get(n, a, o) {
|
|
2549
|
+
const l = Reflect.get(n, a, o);
|
|
2550
|
+
return typeof l == "function" ? l.bind(n) : l;
|
|
2524
2551
|
}
|
|
2525
|
-
static set(n,
|
|
2526
|
-
return Reflect.set(n,
|
|
2552
|
+
static set(n, a, o, l) {
|
|
2553
|
+
return Reflect.set(n, a, o, l);
|
|
2527
2554
|
}
|
|
2528
|
-
static has(n,
|
|
2529
|
-
return Reflect.has(n,
|
|
2555
|
+
static has(n, a) {
|
|
2556
|
+
return Reflect.has(n, a);
|
|
2530
2557
|
}
|
|
2531
|
-
static deleteProperty(n,
|
|
2532
|
-
return Reflect.deleteProperty(n,
|
|
2558
|
+
static deleteProperty(n, a) {
|
|
2559
|
+
return Reflect.deleteProperty(n, a);
|
|
2533
2560
|
}
|
|
2534
2561
|
}
|
|
2535
|
-
})(
|
|
2562
|
+
})(mt);
|
|
2536
2563
|
(function(e) {
|
|
2537
2564
|
Object.defineProperty(e, "__esModule", {
|
|
2538
2565
|
value: !0
|
|
@@ -2542,20 +2569,20 @@ var ht = {}, ft = {};
|
|
|
2542
2569
|
return g;
|
|
2543
2570
|
}
|
|
2544
2571
|
});
|
|
2545
|
-
const t = pe, r =
|
|
2572
|
+
const t = pe, r = Pe, n = xe, a = mt, o = pe, l = Symbol("internal response"), i = /* @__PURE__ */ new Set([
|
|
2546
2573
|
301,
|
|
2547
2574
|
302,
|
|
2548
2575
|
303,
|
|
2549
2576
|
307,
|
|
2550
2577
|
308
|
|
2551
2578
|
]);
|
|
2552
|
-
function d(
|
|
2579
|
+
function d(s, u) {
|
|
2553
2580
|
var w;
|
|
2554
|
-
if (!(
|
|
2555
|
-
if (!(
|
|
2581
|
+
if (!(s == null || (w = s.request) == null) && w.headers) {
|
|
2582
|
+
if (!(s.request.headers instanceof Headers))
|
|
2556
2583
|
throw new Error("request.headers must be an instance of Headers");
|
|
2557
2584
|
const v = [];
|
|
2558
|
-
for (const [y, _] of
|
|
2585
|
+
for (const [y, _] of s.request.headers)
|
|
2559
2586
|
u.set("x-middleware-request-" + y, _), v.push(y);
|
|
2560
2587
|
u.set("x-middleware-override-headers", v.join(","));
|
|
2561
2588
|
}
|
|
@@ -2563,21 +2590,21 @@ var ht = {}, ft = {};
|
|
|
2563
2590
|
class g extends Response {
|
|
2564
2591
|
constructor(u, w = {}) {
|
|
2565
2592
|
super(u, w);
|
|
2566
|
-
const v = this.headers, y = new
|
|
2593
|
+
const v = this.headers, y = new o.ResponseCookies(v), _ = new Proxy(y, {
|
|
2567
2594
|
get(p, b, m) {
|
|
2568
2595
|
switch (b) {
|
|
2569
2596
|
case "delete":
|
|
2570
2597
|
case "set":
|
|
2571
2598
|
return (...h) => {
|
|
2572
2599
|
const f = Reflect.apply(p[b], p, h), E = new Headers(v);
|
|
2573
|
-
return f instanceof
|
|
2600
|
+
return f instanceof o.ResponseCookies && v.set("x-middleware-set-cookie", f.getAll().map((q) => (0, t.stringifyCookie)(q)).join(",")), d(w, E), f;
|
|
2574
2601
|
};
|
|
2575
2602
|
default:
|
|
2576
|
-
return
|
|
2603
|
+
return a.ReflectAdapter.get(p, b, m);
|
|
2577
2604
|
}
|
|
2578
2605
|
}
|
|
2579
2606
|
});
|
|
2580
|
-
this[
|
|
2607
|
+
this[l] = {
|
|
2581
2608
|
cookies: _,
|
|
2582
2609
|
url: w.url ? new r.NextURL(w.url, {
|
|
2583
2610
|
headers: (0, n.toNodeOutgoingHttpHeaders)(v),
|
|
@@ -2601,7 +2628,7 @@ var ht = {}, ft = {};
|
|
|
2601
2628
|
};
|
|
2602
2629
|
}
|
|
2603
2630
|
get cookies() {
|
|
2604
|
-
return this[
|
|
2631
|
+
return this[l].cookies;
|
|
2605
2632
|
}
|
|
2606
2633
|
static json(u, w) {
|
|
2607
2634
|
const v = Response.json(u, w);
|
|
@@ -2609,7 +2636,7 @@ var ht = {}, ft = {};
|
|
|
2609
2636
|
}
|
|
2610
2637
|
static redirect(u, w) {
|
|
2611
2638
|
const v = typeof w == "number" ? w : (w == null ? void 0 : w.status) ?? 307;
|
|
2612
|
-
if (!
|
|
2639
|
+
if (!i.has(v))
|
|
2613
2640
|
throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');
|
|
2614
2641
|
const y = typeof w == "object" ? w : {}, _ = new Headers(y == null ? void 0 : y.headers);
|
|
2615
2642
|
return _.set("Location", (0, n.validateURL)(u)), new g(null, {
|
|
@@ -2633,8 +2660,8 @@ var ht = {}, ft = {};
|
|
|
2633
2660
|
});
|
|
2634
2661
|
}
|
|
2635
2662
|
}
|
|
2636
|
-
})(
|
|
2637
|
-
var
|
|
2663
|
+
})(pt);
|
|
2664
|
+
var ht = {};
|
|
2638
2665
|
(function(e) {
|
|
2639
2666
|
Object.defineProperty(e, "__esModule", {
|
|
2640
2667
|
value: !0
|
|
@@ -2647,147 +2674,147 @@ var gt = {};
|
|
|
2647
2674
|
function t() {
|
|
2648
2675
|
throw new Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead');
|
|
2649
2676
|
}
|
|
2650
|
-
})(
|
|
2651
|
-
var
|
|
2677
|
+
})(ht);
|
|
2678
|
+
var Ie = {}, ft = { exports: {} };
|
|
2652
2679
|
(() => {
|
|
2653
|
-
var e = { 226: function(
|
|
2654
|
-
(function(
|
|
2655
|
-
var d = "1.0.35", g = "",
|
|
2656
|
-
var
|
|
2657
|
-
for (var
|
|
2658
|
-
A[
|
|
2659
|
-
return
|
|
2660
|
-
},
|
|
2661
|
-
for (var A = {},
|
|
2662
|
-
A[
|
|
2680
|
+
var e = { 226: function(a, o) {
|
|
2681
|
+
(function(l, i) {
|
|
2682
|
+
var d = "1.0.35", g = "", s = "?", u = "function", w = "undefined", v = "object", y = "string", _ = "major", p = "model", b = "name", m = "type", h = "vendor", f = "version", E = "architecture", q = "console", I = "mobile", R = "tablet", C = "smarttv", j = "wearable", $ = "embedded", D = 350, U = "Amazon", B = "Apple", Z = "ASUS", ke = "BlackBerry", G = "Browser", Y = "Chrome", bt = "Edge", ee = "Firefox", te = "Google", Ee = "Huawei", he = "LG", fe = "Microsoft", Ae = "Motorola", re = "Opera", ge = "Samsung", Oe = "Sharp", ne = "Sony", be = "Xiaomi", we = "Zebra", Te = "Facebook", qe = "Chromium OS", Ne = "Mac OS", wt = function(S, A) {
|
|
2683
|
+
var x = {};
|
|
2684
|
+
for (var T in S)
|
|
2685
|
+
A[T] && A[T].length % 2 === 0 ? x[T] = A[T].concat(S[T]) : x[T] = S[T];
|
|
2686
|
+
return x;
|
|
2687
|
+
}, ae = function(S) {
|
|
2688
|
+
for (var A = {}, x = 0; x < S.length; x++)
|
|
2689
|
+
A[S[x].toUpperCase()] = S[x];
|
|
2663
2690
|
return A;
|
|
2664
|
-
},
|
|
2665
|
-
return typeof
|
|
2666
|
-
}, W = function(
|
|
2667
|
-
return
|
|
2668
|
-
},
|
|
2669
|
-
return typeof
|
|
2670
|
-
}, ve = function(
|
|
2671
|
-
if (typeof
|
|
2672
|
-
return
|
|
2673
|
-
}, Q = function(
|
|
2674
|
-
for (var
|
|
2675
|
-
var _e = A[
|
|
2676
|
-
for (
|
|
2677
|
-
if (P = _e[
|
|
2678
|
-
for (H = 0; H <
|
|
2679
|
-
M = P[++z], k =
|
|
2680
|
-
|
|
2691
|
+
}, je = function(S, A) {
|
|
2692
|
+
return typeof S === y ? W(A).indexOf(W(S)) !== -1 : !1;
|
|
2693
|
+
}, W = function(S) {
|
|
2694
|
+
return S.toLowerCase();
|
|
2695
|
+
}, vt = function(S) {
|
|
2696
|
+
return typeof S === y ? S.replace(/[^\d\.]/g, g).split(".")[0] : i;
|
|
2697
|
+
}, ve = function(S, A) {
|
|
2698
|
+
if (typeof S === y)
|
|
2699
|
+
return S = S.replace(/^\s\s*/, g), typeof A === w ? S : S.substring(0, D);
|
|
2700
|
+
}, Q = function(S, A) {
|
|
2701
|
+
for (var x = 0, T, z, H, k, P, M; x < A.length && !P; ) {
|
|
2702
|
+
var _e = A[x], Le = A[x + 1];
|
|
2703
|
+
for (T = z = 0; T < _e.length && !P && _e[T]; )
|
|
2704
|
+
if (P = _e[T++].exec(S), P)
|
|
2705
|
+
for (H = 0; H < Le.length; H++)
|
|
2706
|
+
M = P[++z], k = Le[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;
|
|
2707
|
+
x += 2;
|
|
2681
2708
|
}
|
|
2682
|
-
}, ye = function(
|
|
2683
|
-
for (var
|
|
2684
|
-
if (typeof A[
|
|
2685
|
-
for (var
|
|
2686
|
-
if (
|
|
2687
|
-
return
|
|
2688
|
-
} else if (
|
|
2689
|
-
return
|
|
2690
|
-
return
|
|
2691
|
-
}, It = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, $e = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Le = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [f, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [f, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, f], [/opios[\/ ]+([\w\.]+)/i], [f, [b, re + " Mini"]], [/\bopr\/([\w\.]+)/i], [f, [b, re]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [b, f], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [f, [b, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [f, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [f, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [f, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [f, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [f, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + G], f], [/\bfocus\/([\w\.]+)/i], [f, [b, ee + " Focus"]], [/\bopt\/([\w\.]+)/i], [f, [b, re + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [f, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [f, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [f, [b, re + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [f, [b, "MIUI " + G]], [/fxios\/([-\w\.]+)/i], [f, [b, ee]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + G]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + G], f], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], f], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, f], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, qe], f], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, f], [/\bgsa\/([\w\.]+) .*safari\//i], [f, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [f, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [f, [b, Y + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, Y + " WebView"], f], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [f, [b, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, f], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [f, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [f, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [f, ye, It]], [/(webkit|khtml)\/([\w\.]+)/i], [b, f], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], f], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [f, [b, ee + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [b, f], [/(cobalt)\/([\w\.]+)/i], [b, [f, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[E, "amd64"]], [/(ia32(?=;))/i], [[E, W]], [/((?: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, W]], [/(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, W]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [p, [h, ge], [m, R]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [p, [h, ge], [m, I]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [p, [h, B], [m, I]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [p, [h, B], [m, R]], [/(macintosh);/i], [p, [h, B]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [p, [h, Oe], [m, I]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [p, [h, Ae], [m, R]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [p, [h, Ae], [m, I]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[p, /_/g, " "], [h, be], [m, I]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[p, /_/g, " "], [h, be], [m, R]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [p, [h, "OPPO"], [m, I]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [p, [h, "Vivo"], [m, I]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [p, [h, "Realme"], [m, I]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [p, [h, Te], [m, I]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [p, [h, Te], [m, R]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [p, [h, he], [m, R]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [p, [h, he], [m, I]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [p, [h, "Lenovo"], [m, R]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[p, /_/g, " "], [h, "Nokia"], [m, I]], [/(pixel c)\b/i], [p, [h, te], [m, R]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [p, [h, te], [m, I]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [p, [h, ne], [m, I]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[p, "Xperia Tablet"], [h, ne], [m, R]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [p, [h, "OnePlus"], [m, I]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [p, [h, U], [m, R]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[p, /(.+)/g, "Fire Phone $1"], [h, U], [m, I]], [/(playbook);[-\w\),; ]+(rim)/i], [p, h, [m, R]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [p, [h, Ee], [m, I]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [p, [h, Z], [m, R]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [p, [h, Z], [m, I]], [/(nexus 9)/i], [p, [h, "HTC"], [m, R]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [h, [p, /_/g, " "], [m, I]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [p, [h, "Acer"], [m, R]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [p, [h, "Meizu"], [m, I]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [h, p, [m, I]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [h, p, [m, R]], [/(surface duo)/i], [p, [h, fe], [m, R]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [p, [h, "Fairphone"], [m, I]], [/(u304aa)/i], [p, [h, "AT&T"], [m, I]], [/\bsie-(\w*)/i], [p, [h, "Siemens"], [m, I]], [/\b(rct\w+) b/i], [p, [h, "RCA"], [m, R]], [/\b(venue[\d ]{2,7}) b/i], [p, [h, "Dell"], [m, R]], [/\b(q(?:mv|ta)\w+) b/i], [p, [h, "Verizon"], [m, R]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [p, [h, "Barnes & Noble"], [m, R]], [/\b(tm\d{3}\w+) b/i], [p, [h, "NuVision"], [m, R]], [/\b(k88) b/i], [p, [h, "ZTE"], [m, R]], [/\b(nx\d{3}j) b/i], [p, [h, "ZTE"], [m, I]], [/\b(gen\d{3}) b.+49h/i], [p, [h, "Swiss"], [m, I]], [/\b(zur\d{3}) b/i], [p, [h, "Swiss"], [m, R]], [/\b((zeki)?tb.*\b) b/i], [p, [h, "Zeki"], [m, R]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[h, "Dragon Touch"], p, [m, R]], [/\b(ns-?\w{0,9}) b/i], [p, [h, "Insignia"], [m, R]], [/\b((nxa|next)-?\w{0,9}) b/i], [p, [h, "NextBook"], [m, R]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[h, "Voice"], p, [m, I]], [/\b(lvtel\-)?(v1[12]) b/i], [[h, "LvTel"], p, [m, I]], [/\b(ph-1) /i], [p, [h, "Essential"], [m, I]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [p, [h, "Envizen"], [m, R]], [/\b(trio[-\w\. ]+) b/i], [p, [h, "MachSpeed"], [m, R]], [/\btu_(1491) b/i], [p, [h, "Rotor"], [m, R]], [/(shield[\w ]+) b/i], [p, [h, "Nvidia"], [m, R]], [/(sprint) (\w+)/i], [h, p, [m, I]], [/(kin\.[onetw]{3})/i], [[p, /\./g, " "], [h, fe], [m, I]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [p, [h, we], [m, R]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [p, [h, we], [m, I]], [/smart-tv.+(samsung)/i], [h, [m, x]], [/hbbtv.+maple;(\d+)/i], [[p, /^/, "SmartTV"], [h, ge], [m, x]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[h, he], [m, x]], [/(apple) ?tv/i], [h, [p, B + " TV"], [m, x]], [/crkey/i], [[p, Y + "cast"], [h, te], [m, x]], [/droid.+aft(\w)( bui|\))/i], [p, [h, U], [m, x]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [p, [h, Oe], [m, x]], [/(bravia[\w ]+)( bui|\))/i], [p, [h, ne], [m, x]], [/(mitv-\w{5}) bui/i], [p, [h, be], [m, x]], [/Hbbtv.*(technisat) (.*);/i], [h, p, [m, x]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[h, ve], [p, ve], [m, x]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[m, x]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [h, p, [m, q]], [/droid.+; (shield) bui/i], [p, [h, "Nvidia"], [m, q]], [/(playstation [345portablevi]+)/i], [p, [h, ne], [m, q]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [p, [h, fe], [m, q]], [/((pebble))app/i], [h, p, [m, j]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [p, [h, B], [m, j]], [/droid.+; (glass) \d/i], [p, [h, te], [m, j]], [/droid.+; (wt63?0{2,3})\)/i], [p, [h, we], [m, j]], [/(quest( 2| pro)?)/i], [p, [h, qe], [m, j]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [h, [m, F]], [/(aeobc)\b/i], [p, [h, U], [m, F]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [p, [m, I]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [p, [m, R]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[m, R]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[m, I]], [/(android[-\w\. ]{0,9});.+buil/i], [p, [h, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [f, [b, yt + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [f, [b, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [b, f], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [f, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, f], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [f, ye, $e]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [f, ye, $e]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[f, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, je], [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, Ee]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [f, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [f, [b, ee + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [f, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [f, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [f, [b, Y + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, Ne], 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(C, A) {
|
|
2692
|
-
if (typeof
|
|
2693
|
-
return new L(
|
|
2694
|
-
var
|
|
2709
|
+
}, ye = function(S, A) {
|
|
2710
|
+
for (var x in A)
|
|
2711
|
+
if (typeof A[x] === v && A[x].length > 0) {
|
|
2712
|
+
for (var T = 0; T < A[x].length; T++)
|
|
2713
|
+
if (je(A[x][T], S))
|
|
2714
|
+
return x === s ? i : x;
|
|
2715
|
+
} else if (je(A[x], S))
|
|
2716
|
+
return x === s ? i : x;
|
|
2717
|
+
return S;
|
|
2718
|
+
}, yt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Fe = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, $e = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [f, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [f, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, f], [/opios[\/ ]+([\w\.]+)/i], [f, [b, re + " Mini"]], [/\bopr\/([\w\.]+)/i], [f, [b, re]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [b, f], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [f, [b, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [f, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [f, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [f, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [f, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [f, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + G], f], [/\bfocus\/([\w\.]+)/i], [f, [b, ee + " Focus"]], [/\bopt\/([\w\.]+)/i], [f, [b, re + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [f, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [f, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [f, [b, re + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [f, [b, "MIUI " + G]], [/fxios\/([-\w\.]+)/i], [f, [b, ee]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + G]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + G], f], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], f], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, f], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, Te], f], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, f], [/\bgsa\/([\w\.]+) .*safari\//i], [f, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [f, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [f, [b, Y + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, Y + " WebView"], f], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [f, [b, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, f], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [f, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [f, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [f, ye, yt]], [/(webkit|khtml)\/([\w\.]+)/i], [b, f], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], f], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [f, [b, ee + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [b, f], [/(cobalt)\/([\w\.]+)/i], [b, [f, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[E, "amd64"]], [/(ia32(?=;))/i], [[E, W]], [/((?: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, W]], [/(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, W]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [p, [h, ge], [m, R]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [p, [h, ge], [m, I]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [p, [h, B], [m, I]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [p, [h, B], [m, R]], [/(macintosh);/i], [p, [h, B]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [p, [h, Oe], [m, I]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [p, [h, Ee], [m, R]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [p, [h, Ee], [m, I]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[p, /_/g, " "], [h, be], [m, I]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[p, /_/g, " "], [h, be], [m, R]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [p, [h, "OPPO"], [m, I]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [p, [h, "Vivo"], [m, I]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [p, [h, "Realme"], [m, I]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [p, [h, Ae], [m, I]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [p, [h, Ae], [m, R]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [p, [h, he], [m, R]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [p, [h, he], [m, I]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [p, [h, "Lenovo"], [m, R]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[p, /_/g, " "], [h, "Nokia"], [m, I]], [/(pixel c)\b/i], [p, [h, te], [m, R]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [p, [h, te], [m, I]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [p, [h, ne], [m, I]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[p, "Xperia Tablet"], [h, ne], [m, R]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [p, [h, "OnePlus"], [m, I]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [p, [h, U], [m, R]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[p, /(.+)/g, "Fire Phone $1"], [h, U], [m, I]], [/(playbook);[-\w\),; ]+(rim)/i], [p, h, [m, R]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [p, [h, ke], [m, I]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [p, [h, Z], [m, R]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [p, [h, Z], [m, I]], [/(nexus 9)/i], [p, [h, "HTC"], [m, R]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [h, [p, /_/g, " "], [m, I]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [p, [h, "Acer"], [m, R]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [p, [h, "Meizu"], [m, I]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [h, p, [m, I]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [h, p, [m, R]], [/(surface duo)/i], [p, [h, fe], [m, R]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [p, [h, "Fairphone"], [m, I]], [/(u304aa)/i], [p, [h, "AT&T"], [m, I]], [/\bsie-(\w*)/i], [p, [h, "Siemens"], [m, I]], [/\b(rct\w+) b/i], [p, [h, "RCA"], [m, R]], [/\b(venue[\d ]{2,7}) b/i], [p, [h, "Dell"], [m, R]], [/\b(q(?:mv|ta)\w+) b/i], [p, [h, "Verizon"], [m, R]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [p, [h, "Barnes & Noble"], [m, R]], [/\b(tm\d{3}\w+) b/i], [p, [h, "NuVision"], [m, R]], [/\b(k88) b/i], [p, [h, "ZTE"], [m, R]], [/\b(nx\d{3}j) b/i], [p, [h, "ZTE"], [m, I]], [/\b(gen\d{3}) b.+49h/i], [p, [h, "Swiss"], [m, I]], [/\b(zur\d{3}) b/i], [p, [h, "Swiss"], [m, R]], [/\b((zeki)?tb.*\b) b/i], [p, [h, "Zeki"], [m, R]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[h, "Dragon Touch"], p, [m, R]], [/\b(ns-?\w{0,9}) b/i], [p, [h, "Insignia"], [m, R]], [/\b((nxa|next)-?\w{0,9}) b/i], [p, [h, "NextBook"], [m, R]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[h, "Voice"], p, [m, I]], [/\b(lvtel\-)?(v1[12]) b/i], [[h, "LvTel"], p, [m, I]], [/\b(ph-1) /i], [p, [h, "Essential"], [m, I]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [p, [h, "Envizen"], [m, R]], [/\b(trio[-\w\. ]+) b/i], [p, [h, "MachSpeed"], [m, R]], [/\btu_(1491) b/i], [p, [h, "Rotor"], [m, R]], [/(shield[\w ]+) b/i], [p, [h, "Nvidia"], [m, R]], [/(sprint) (\w+)/i], [h, p, [m, I]], [/(kin\.[onetw]{3})/i], [[p, /\./g, " "], [h, fe], [m, I]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [p, [h, we], [m, R]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [p, [h, we], [m, I]], [/smart-tv.+(samsung)/i], [h, [m, C]], [/hbbtv.+maple;(\d+)/i], [[p, /^/, "SmartTV"], [h, ge], [m, C]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[h, he], [m, C]], [/(apple) ?tv/i], [h, [p, B + " TV"], [m, C]], [/crkey/i], [[p, Y + "cast"], [h, te], [m, C]], [/droid.+aft(\w)( bui|\))/i], [p, [h, U], [m, C]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [p, [h, Oe], [m, C]], [/(bravia[\w ]+)( bui|\))/i], [p, [h, ne], [m, C]], [/(mitv-\w{5}) bui/i], [p, [h, be], [m, C]], [/Hbbtv.*(technisat) (.*);/i], [h, p, [m, C]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[h, ve], [p, ve], [m, C]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[m, C]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [h, p, [m, q]], [/droid.+; (shield) bui/i], [p, [h, "Nvidia"], [m, q]], [/(playstation [345portablevi]+)/i], [p, [h, ne], [m, q]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [p, [h, fe], [m, q]], [/((pebble))app/i], [h, p, [m, j]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [p, [h, B], [m, j]], [/droid.+; (glass) \d/i], [p, [h, te], [m, j]], [/droid.+; (wt63?0{2,3})\)/i], [p, [h, we], [m, j]], [/(quest( 2| pro)?)/i], [p, [h, Te], [m, j]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [h, [m, $]], [/(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, bt + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [f, [b, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [b, f], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [f, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, f], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [f, ye, Fe]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [f, ye, Fe]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[f, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, Ne], [f, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [f, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, f], [/\(bb(10);/i], [f, [b, ke]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [f, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [f, [b, ee + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [f, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [f, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [f, [b, Y + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, qe], f], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [b, f], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], f], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, f]] }, L = function(S, A) {
|
|
2719
|
+
if (typeof S === v && (A = S, S = i), !(this instanceof L))
|
|
2720
|
+
return new L(S, A).getResult();
|
|
2721
|
+
var x = typeof l !== w && l.navigator ? l.navigator : i, T = S || (x && x.userAgent ? x.userAgent : g), z = x && x.userAgentData ? x.userAgentData : i, H = A ? wt($e, A) : $e, k = x && x.userAgent == T;
|
|
2695
2722
|
return this.getBrowser = function() {
|
|
2696
2723
|
var P = {};
|
|
2697
|
-
return P[b] =
|
|
2724
|
+
return P[b] = i, P[f] = i, Q.call(P, T, H.browser), P[_] = vt(P[f]), k && x && x.brave && typeof x.brave.isBrave == u && (P[b] = "Brave"), P;
|
|
2698
2725
|
}, this.getCPU = function() {
|
|
2699
2726
|
var P = {};
|
|
2700
|
-
return P[E] =
|
|
2727
|
+
return P[E] = i, Q.call(P, T, H.cpu), P;
|
|
2701
2728
|
}, this.getDevice = function() {
|
|
2702
2729
|
var P = {};
|
|
2703
|
-
return P[h] =
|
|
2730
|
+
return P[h] = i, P[p] = i, P[m] = i, Q.call(P, T, 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;
|
|
2704
2731
|
}, this.getEngine = function() {
|
|
2705
2732
|
var P = {};
|
|
2706
|
-
return P[b] =
|
|
2733
|
+
return P[b] = i, P[f] = i, Q.call(P, T, H.engine), P;
|
|
2707
2734
|
}, this.getOS = function() {
|
|
2708
2735
|
var P = {};
|
|
2709
|
-
return P[b] =
|
|
2736
|
+
return P[b] = i, P[f] = i, Q.call(P, T, H.os), k && !P[b] && z && z.platform != "Unknown" && (P[b] = z.platform.replace(/chrome os/i, qe).replace(/macos/i, Ne)), P;
|
|
2710
2737
|
}, this.getResult = function() {
|
|
2711
2738
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
2712
2739
|
}, this.getUA = function() {
|
|
2713
|
-
return
|
|
2740
|
+
return T;
|
|
2714
2741
|
}, this.setUA = function(P) {
|
|
2715
|
-
return
|
|
2716
|
-
}, this.setUA(
|
|
2742
|
+
return T = typeof P === y && P.length > D ? ve(P, D) : P, this;
|
|
2743
|
+
}, this.setUA(T), this;
|
|
2717
2744
|
};
|
|
2718
|
-
L.VERSION = d, L.BROWSER =
|
|
2719
|
-
var V = typeof
|
|
2745
|
+
L.VERSION = d, L.BROWSER = ae([b, f, _]), L.CPU = ae([E]), L.DEVICE = ae([p, h, m, q, I, C, R, j, $]), L.ENGINE = L.OS = ae([b, f]), typeof o !== w ? (a.exports && (o = a.exports = L), o.UAParser = L) : typeof l !== w && (l.UAParser = L);
|
|
2746
|
+
var V = typeof l !== w && (l.jQuery || l.Zepto);
|
|
2720
2747
|
if (V && !V.ua) {
|
|
2721
|
-
var
|
|
2722
|
-
V.ua =
|
|
2723
|
-
return
|
|
2724
|
-
}, V.ua.set = function(
|
|
2725
|
-
|
|
2726
|
-
var A =
|
|
2727
|
-
for (var
|
|
2728
|
-
V.ua[
|
|
2748
|
+
var ie = new L();
|
|
2749
|
+
V.ua = ie.getResult(), V.ua.get = function() {
|
|
2750
|
+
return ie.getUA();
|
|
2751
|
+
}, V.ua.set = function(S) {
|
|
2752
|
+
ie.setUA(S);
|
|
2753
|
+
var A = ie.getResult();
|
|
2754
|
+
for (var x in A)
|
|
2755
|
+
V.ua[x] = A[x];
|
|
2729
2756
|
};
|
|
2730
2757
|
}
|
|
2731
2758
|
})(typeof window == "object" ? window : this);
|
|
2732
2759
|
} }, t = {};
|
|
2733
|
-
function r(
|
|
2734
|
-
var
|
|
2735
|
-
if (
|
|
2736
|
-
return
|
|
2737
|
-
var
|
|
2760
|
+
function r(a) {
|
|
2761
|
+
var o = t[a];
|
|
2762
|
+
if (o !== void 0)
|
|
2763
|
+
return o.exports;
|
|
2764
|
+
var l = t[a] = { exports: {} }, i = !0;
|
|
2738
2765
|
try {
|
|
2739
|
-
e[
|
|
2766
|
+
e[a].call(l.exports, l, l.exports, r), i = !1;
|
|
2740
2767
|
} finally {
|
|
2741
|
-
|
|
2768
|
+
i && delete t[a];
|
|
2742
2769
|
}
|
|
2743
|
-
return
|
|
2770
|
+
return l.exports;
|
|
2744
2771
|
}
|
|
2745
2772
|
typeof r < "u" && (r.ab = __dirname + "/");
|
|
2746
2773
|
var n = r(226);
|
|
2747
|
-
|
|
2774
|
+
ft.exports = n;
|
|
2748
2775
|
})();
|
|
2749
|
-
var
|
|
2776
|
+
var Yn = ft.exports;
|
|
2750
2777
|
(function(e) {
|
|
2751
2778
|
Object.defineProperty(e, "__esModule", {
|
|
2752
2779
|
value: !0
|
|
2753
2780
|
});
|
|
2754
|
-
function t(
|
|
2755
|
-
for (var g in d) Object.defineProperty(
|
|
2781
|
+
function t(i, d) {
|
|
2782
|
+
for (var g in d) Object.defineProperty(i, g, {
|
|
2756
2783
|
enumerable: !0,
|
|
2757
2784
|
get: d[g]
|
|
2758
2785
|
});
|
|
2759
2786
|
}
|
|
2760
2787
|
t(e, {
|
|
2761
2788
|
isBot: function() {
|
|
2762
|
-
return
|
|
2789
|
+
return a;
|
|
2763
2790
|
},
|
|
2764
2791
|
userAgent: function() {
|
|
2765
|
-
return
|
|
2792
|
+
return l;
|
|
2766
2793
|
},
|
|
2767
2794
|
userAgentFromString: function() {
|
|
2768
|
-
return
|
|
2795
|
+
return o;
|
|
2769
2796
|
}
|
|
2770
2797
|
});
|
|
2771
|
-
const r = /* @__PURE__ */ n(
|
|
2772
|
-
function n(
|
|
2773
|
-
return
|
|
2774
|
-
default:
|
|
2798
|
+
const r = /* @__PURE__ */ n(Yn);
|
|
2799
|
+
function n(i) {
|
|
2800
|
+
return i && i.__esModule ? i : {
|
|
2801
|
+
default: i
|
|
2775
2802
|
};
|
|
2776
2803
|
}
|
|
2777
|
-
function i
|
|
2778
|
-
return /Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(
|
|
2804
|
+
function a(i) {
|
|
2805
|
+
return /Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(i);
|
|
2779
2806
|
}
|
|
2780
|
-
function
|
|
2807
|
+
function o(i) {
|
|
2781
2808
|
return {
|
|
2782
|
-
...(0, r.default)(
|
|
2783
|
-
isBot:
|
|
2809
|
+
...(0, r.default)(i),
|
|
2810
|
+
isBot: i === void 0 ? !1 : a(i)
|
|
2784
2811
|
};
|
|
2785
2812
|
}
|
|
2786
|
-
function
|
|
2787
|
-
return
|
|
2813
|
+
function l({ headers: i }) {
|
|
2814
|
+
return o(i.get("user-agent") || void 0);
|
|
2788
2815
|
}
|
|
2789
|
-
})(
|
|
2790
|
-
var
|
|
2816
|
+
})(Ie);
|
|
2817
|
+
var gt = {};
|
|
2791
2818
|
(function(e) {
|
|
2792
2819
|
Object.defineProperty(e, "__esModule", {
|
|
2793
2820
|
value: !0
|
|
@@ -2801,38 +2828,38 @@ var wt = {};
|
|
|
2801
2828
|
// @ts-expect-error: URLPattern is not available in Node.js
|
|
2802
2829
|
typeof URLPattern > "u" ? void 0 : URLPattern
|
|
2803
2830
|
);
|
|
2804
|
-
})(
|
|
2831
|
+
})(gt);
|
|
2805
2832
|
(function(e, t) {
|
|
2806
2833
|
const r = {
|
|
2807
|
-
NextRequest:
|
|
2808
|
-
NextResponse:
|
|
2809
|
-
ImageResponse:
|
|
2810
|
-
userAgentFromString:
|
|
2811
|
-
userAgent:
|
|
2812
|
-
URLPattern:
|
|
2834
|
+
NextRequest: nt.NextRequest,
|
|
2835
|
+
NextResponse: pt.NextResponse,
|
|
2836
|
+
ImageResponse: ht.ImageResponse,
|
|
2837
|
+
userAgentFromString: Ie.userAgentFromString,
|
|
2838
|
+
userAgent: Ie.userAgent,
|
|
2839
|
+
URLPattern: gt.URLPattern
|
|
2813
2840
|
};
|
|
2814
2841
|
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;
|
|
2815
|
-
})(
|
|
2816
|
-
var
|
|
2817
|
-
async function
|
|
2842
|
+
})(Re, Re.exports);
|
|
2843
|
+
var He = Re.exports;
|
|
2844
|
+
async function ea({ apiUrl: e, extraData: t, fetchOptions: r }) {
|
|
2818
2845
|
var I, R;
|
|
2819
|
-
const n = `${e}/api/dataentities`,
|
|
2820
|
-
MASTER_DATA_ENTITY:
|
|
2821
|
-
MASTER_DATA_FIELDS:
|
|
2822
|
-
AUTH_TOKEN_COOKIE:
|
|
2846
|
+
const n = `${e}/api/dataentities`, a = `${e}/api/io/v1/extrato/get-total`, {
|
|
2847
|
+
MASTER_DATA_ENTITY: o,
|
|
2848
|
+
MASTER_DATA_FIELDS: l,
|
|
2849
|
+
AUTH_TOKEN_COOKIE: i,
|
|
2823
2850
|
requestHeaders: d,
|
|
2824
2851
|
cookies: g
|
|
2825
|
-
} = t, { address:
|
|
2852
|
+
} = t, { address: s, client: u } = o, { address: w, client: v } = l, y = ((I = g == null ? void 0 : g.find((C) => (C == null ? void 0 : C.name) === i)) == null ? void 0 : I.value) || "";
|
|
2826
2853
|
if (!y)
|
|
2827
|
-
return
|
|
2854
|
+
return He.NextResponse.json(
|
|
2828
2855
|
{ error: "Token not found. Unauthorized" },
|
|
2829
2856
|
{ status: 200 }
|
|
2830
2857
|
);
|
|
2831
|
-
const { sub: _, userId: p } =
|
|
2832
|
-
Object.entries(d).map(([
|
|
2833
|
-
), m = async (
|
|
2858
|
+
const { sub: _, userId: p } = Mt(y), b = Object.fromEntries(
|
|
2859
|
+
Object.entries(d).map(([C, j]) => [C, String(j || "")])
|
|
2860
|
+
), m = async (C, j, $ = !1) => {
|
|
2834
2861
|
try {
|
|
2835
|
-
const U = await fetch(`${
|
|
2862
|
+
const U = await fetch(`${$ ? a : n}${C}`, {
|
|
2836
2863
|
headers: {
|
|
2837
2864
|
...j,
|
|
2838
2865
|
...r == null ? void 0 : r.headers
|
|
@@ -2840,16 +2867,16 @@ async function ti({ apiUrl: e, extraData: t, fetchOptions: r }) {
|
|
|
2840
2867
|
}).then((Z) => Z.json()), B = Array.isArray(U) ? U[0] : U;
|
|
2841
2868
|
return Array.isArray(B) ? B[0] : B;
|
|
2842
2869
|
} catch (D) {
|
|
2843
|
-
return console.error(`Erro no fetch: ${
|
|
2870
|
+
return console.error(`Erro no fetch: ${C}`, D), null;
|
|
2844
2871
|
}
|
|
2845
2872
|
}, h = await m(
|
|
2846
2873
|
`/${u}/search?email=${_}&_fields=${v.join(",")}`,
|
|
2847
2874
|
b
|
|
2848
2875
|
);
|
|
2849
2876
|
if (!(h != null && h.id))
|
|
2850
|
-
return
|
|
2877
|
+
return He.NextResponse.json({ sub: _ }, { status: 200 });
|
|
2851
2878
|
const f = (R = h.document) == null ? void 0 : R.replace(/\D/g, ""), E = await m(
|
|
2852
|
-
`/${
|
|
2879
|
+
`/${s}/search?userId=${h.id}&_fields=${w.join(
|
|
2853
2880
|
","
|
|
2854
2881
|
)}&_sort=lastInteractionIn DESC`,
|
|
2855
2882
|
{ ...b, "REST-Range": "resources=0-1000" }
|
|
@@ -2860,117 +2887,40 @@ async function ti({ apiUrl: e, extraData: t, fetchOptions: r }) {
|
|
|
2860
2887
|
) : null;
|
|
2861
2888
|
return { ...h, ...E, userCredits: q, sub: _, userId: p };
|
|
2862
2889
|
}
|
|
2863
|
-
const
|
|
2864
|
-
__proto__: null,
|
|
2865
|
-
getUserData: ti
|
|
2866
|
-
}, Symbol.toStringTag, { value: "Module" })), ni = (e = "") => e.charAt(0).toUpperCase() + e.slice(1), Be = (e, t = " ") => !e || typeof e == "string" && e.length === 0 ? e : (Array.isArray(e) ? e : e.split("-")).map(ni).join(t), ii = ({ canonical: e, seo: t, slug: r }) => {
|
|
2867
|
-
const n = Array.isArray(r) ? r.join(", ") : r;
|
|
2868
|
-
return {
|
|
2869
|
-
id: 0,
|
|
2870
|
-
Title: `${Array.isArray(r) ? r.map((a) => Be(a)).join(",") : Be(r)} - ${t.title}`,
|
|
2871
|
-
MetaTagDescription: t.description,
|
|
2872
|
-
name: n,
|
|
2873
|
-
hasChildren: !1,
|
|
2874
|
-
url: e,
|
|
2875
|
-
children: []
|
|
2876
|
-
};
|
|
2877
|
-
}, oi = ({ canonical: e, category: t, previousImages: r, seo: n }) => ({
|
|
2878
|
-
category: String(t == null ? void 0 : t.id),
|
|
2879
|
-
title: (t == null ? void 0 : t.Title) ?? n.title,
|
|
2880
|
-
description: (t == null ? void 0 : t.MetaTagDescription) ?? n.description,
|
|
2881
|
-
alternates: { canonical: e },
|
|
2882
|
-
openGraph: {
|
|
2883
|
-
type: "website",
|
|
2884
|
-
title: (t == null ? void 0 : t.Title) ?? n.title,
|
|
2885
|
-
description: (t == null ? void 0 : t.MetaTagDescription) ?? n.description,
|
|
2886
|
-
images: Array.isArray(r) ? [...r] : []
|
|
2887
|
-
}
|
|
2888
|
-
}), ai = ({ items: e, parent: t, apiUrl: r, find: n }) => {
|
|
2889
|
-
const i = e.find(
|
|
2890
|
-
(s) => s.url.replace(r, "") === decodeURIComponent(t.toLowerCase())
|
|
2891
|
-
);
|
|
2892
|
-
return (i == null ? void 0 : i.children.find(
|
|
2893
|
-
(s) => s.name.toLowerCase() === decodeURIComponent(String(n))
|
|
2894
|
-
)) ?? i;
|
|
2895
|
-
}, si = (e) => {
|
|
2896
|
-
e instanceof Error ? (console.error(`[ERROR CATEGORY INFO]: ${e.message}`), console.error(e.stack)) : console.error("[ERROR CATEGORY INFO]: Unknown error", e);
|
|
2897
|
-
}, li = /* @__PURE__ */ new Set([
|
|
2898
|
-
"brand",
|
|
2899
|
-
"category",
|
|
2900
|
-
"department",
|
|
2901
|
-
"subcategory",
|
|
2902
|
-
"collection",
|
|
2903
|
-
"cluster"
|
|
2904
|
-
]), ci = (e) => typeof (e == null ? void 0 : e.pageType) == "string" && li.has(e == null ? void 0 : e.pageType.toLowerCase()), ui = (e) => ({
|
|
2905
|
-
collection: e.Coleção,
|
|
2906
|
-
categoryId: e.categoryId,
|
|
2907
|
-
current_collection: e["Coleção Atual"],
|
|
2908
|
-
items: e.items
|
|
2909
|
-
}), vt = (e, t) => e.reduce((r, n) => {
|
|
2910
|
-
if (n.items.filter(
|
|
2911
|
-
(s) => s.sellers.find((o) => o.commertialOffer.IsAvailable)
|
|
2912
|
-
).length === 0 || (r == null ? void 0 : r.find((s) => (s == null ? void 0 : s.productId) === (n == null ? void 0 : n.productId))) !== void 0)
|
|
2913
|
-
return r;
|
|
2914
|
-
const a = n.items[0].images.find(
|
|
2915
|
-
(s) => t.includes(s.imageLabel)
|
|
2916
|
-
);
|
|
2917
|
-
return r.push({
|
|
2918
|
-
slug: `/${n.linkText}/p`,
|
|
2919
|
-
productId: n == null ? void 0 : n.productId,
|
|
2920
|
-
textureImage: (a == null ? void 0 : a.imageUrl) ?? "",
|
|
2921
|
-
textureAlt: (a == null ? void 0 : a.imageText) ?? ""
|
|
2922
|
-
}), r;
|
|
2923
|
-
}, []), di = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2890
|
+
const ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2924
2891
|
__proto__: null,
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
const o = await fetch(
|
|
2939
|
-
`${t}/api/catalog_system/pub/products/crossselling/similars/${r.toString()}`
|
|
2940
|
-
).then((g) => g.json()), d = vt(o, a);
|
|
2941
|
-
return /* @__PURE__ */ K("div", { className: Re.similars, children: [
|
|
2942
|
-
/* @__PURE__ */ K("div", { className: Re["similars-info"], children: [
|
|
2943
|
-
/* @__PURE__ */ N("span", { className: Re["sections-title"], children: i.product.color_title }),
|
|
2944
|
-
e
|
|
2945
|
-
] }),
|
|
2946
|
-
/* @__PURE__ */ N(n, { productId: r, similars: d, TOGGLE_STYLE_MODIFIER: s })
|
|
2947
|
-
] });
|
|
2948
|
-
}, yi = {
|
|
2949
|
-
checkout: Xr,
|
|
2950
|
-
catalog: rn,
|
|
2951
|
-
cms: Dt,
|
|
2952
|
-
search: Cn,
|
|
2953
|
-
masterdata: Nn,
|
|
2954
|
-
user: ri,
|
|
2892
|
+
getUserData: ea
|
|
2893
|
+
}, Symbol.toStringTag, { value: "Module" })), ra = {
|
|
2894
|
+
parseSearchState: jt,
|
|
2895
|
+
convertSearchParams: Nt,
|
|
2896
|
+
filterNonRootFacets: qt,
|
|
2897
|
+
filterNonCategorySelected: Tt
|
|
2898
|
+
}, ca = {
|
|
2899
|
+
checkout: Qr,
|
|
2900
|
+
catalog: tn,
|
|
2901
|
+
cms: Ft,
|
|
2902
|
+
search: xn,
|
|
2903
|
+
masterdata: qn,
|
|
2904
|
+
user: ta,
|
|
2955
2905
|
wishlist: {
|
|
2956
|
-
...
|
|
2906
|
+
...jn
|
|
2957
2907
|
}
|
|
2958
|
-
},
|
|
2959
|
-
catalog:
|
|
2960
|
-
search:
|
|
2961
|
-
product:
|
|
2908
|
+
}, ua = {
|
|
2909
|
+
catalog: Ut,
|
|
2910
|
+
search: ra,
|
|
2911
|
+
product: Dt,
|
|
2962
2912
|
cms: {
|
|
2963
|
-
...
|
|
2964
|
-
|
|
2913
|
+
...Lt,
|
|
2914
|
+
...$t
|
|
2965
2915
|
}
|
|
2966
|
-
},
|
|
2916
|
+
}, da = {
|
|
2967
2917
|
template: {
|
|
2968
|
-
pdp: {
|
|
2918
|
+
pdp: {}
|
|
2969
2919
|
}
|
|
2970
2920
|
};
|
|
2971
2921
|
export {
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2922
|
+
ca as serverAPIs,
|
|
2923
|
+
la as serverCMS,
|
|
2924
|
+
da as serverComponents,
|
|
2925
|
+
ua as serverHelpers
|
|
2976
2926
|
};
|