@soma-vertical-web/multi-lib 1.0.30 → 1.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contexts/contexts/plp/FilterContext.d.ts +1 -1
- package/contexts/contexts/plp/PLPContext.d.ts +1 -1
- package/contexts/contexts/search/Facets.d.ts +1 -1
- package/contexts/contexts/search/QueryFacets.d.ts +5 -0
- package/contexts/contexts/search/QueryProducts.d.ts +5 -0
- package/contexts/contexts/search/RootTank.d.ts +9 -0
- package/contexts/contexts/search/Search.d.ts +1 -1
- package/contexts/hooks/useScrollRestorationInfinite.d.ts +1 -1
- package/contexts/index.d.ts +4 -4
- package/contexts/store/plp-scroll.d.ts +3 -0
- package/data/helpers/plp/index.d.ts +7 -3
- package/data/helpers/search/facets.d.ts +1 -0
- package/data/helpers/search/index.d.ts +4 -0
- package/data/helpers/search/product/index.d.ts +13 -1
- package/data/helpers/search/search.d.ts +1 -0
- package/data/index.d.ts +2 -0
- package/index-BFjIPkXv.js +4 -0
- package/{index-BM8vTUKg.mjs → index-CIVkR1d_.mjs} +776 -712
- package/index.js +18 -18
- package/index.mjs +11006 -8750
- package/index2.js +2 -2
- package/index2.mjs +281 -286
- package/layout/index.d.ts +2 -2
- package/layout/template/PDC/Composite/InfiniteScroller/Banners/Banners.d.ts +1 -1
- package/layout/template/PDC/Composite/InfiniteScroller/Filters/Filters.d.ts +11 -0
- package/layout/template/PDC/Composite/InfiniteScroller/Filters/index.d.ts +1 -0
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/AnchorPDP.d.ts +7 -0
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Card.d.ts +1 -1
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Loader.d.ts +1 -1
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/NextPage.d.ts +4 -1
- package/layout/template/PDC/Composite/InfiniteScroller/Page/Page.d.ts +2 -2
- package/layout/template/PDC/Composite/InfiniteScroller/Page/index.d.ts +10 -3
- package/layout/template/PDC/Composite/Pagination/Pagination.d.ts +1 -1
- package/layout/template/PDC/PDC.d.ts +1 -1
- package/layout/template/PDC/index.d.ts +1 -1
- package/layout/template/SearchResult/Composite/Products.d.ts +7 -0
- package/package.json +1 -1
- package/server.d.ts +4 -0
- package/style.css +1 -1
- package/types/contexts/contexts/plp.d.ts +63 -21
- package/types/contexts/contexts/search.d.ts +39 -17
- package/types/contexts/hooks/index.d.ts +0 -2
- package/types/layout/team-components/PLPNavigation/index.d.ts +0 -2
- package/types/layout/templates/PLP/index.d.ts +7 -3
- package/index-CZjoMPpQ.js +0 -4
package/index2.mjs
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { jsx as O, jsxs as pe, Fragment as W } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { I as F, A as oe, S as yt, J as T, K as _t, L as Rt, M as It, a as Pt, k as xt, n as St, r as Ct, t as kt, l as Be, o as At, q as Et, m as Ot, N as Tt, O as qt, P as Nt, Q as jt, p as Ft, R as $t, T as Lt } from "./index-CIVkR1d_.mjs";
|
|
3
3
|
import { Utils as se, helpers as le } from "@soma-vertical-web/core-components";
|
|
4
4
|
import * as c from "yup";
|
|
5
|
-
import
|
|
6
|
-
import { decodeJwt as
|
|
7
|
-
const
|
|
5
|
+
import Dt from "sanitize-html";
|
|
6
|
+
import { decodeJwt as Ut } from "jose";
|
|
7
|
+
const Ht = 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__ */ O(t, { ...n ? Array.isArray(n) ? { data: n[0] } : { data: n } : {}, children: e });
|
|
17
|
-
},
|
|
17
|
+
}, Mt = ({
|
|
18
18
|
slug: e,
|
|
19
19
|
data: t,
|
|
20
20
|
SectionZone: r,
|
|
@@ -56,19 +56,19 @@ const zt = async ({
|
|
|
56
56
|
}
|
|
57
57
|
)
|
|
58
58
|
] });
|
|
59
|
-
},
|
|
59
|
+
}, Bt = 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: o } = await
|
|
66
|
+
const { data: o } = await F(
|
|
67
67
|
"common_page",
|
|
68
68
|
a
|
|
69
69
|
);
|
|
70
70
|
return !o || !Array.isArray(o) || o.length === 0 ? null : /* @__PURE__ */ O(
|
|
71
|
-
|
|
71
|
+
Mt,
|
|
72
72
|
{
|
|
73
73
|
data: o,
|
|
74
74
|
slug: e,
|
|
@@ -77,17 +77,17 @@ const zt = async ({
|
|
|
77
77
|
identifyWhoIsFirst: n
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
|
-
},
|
|
80
|
+
}, zt = 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__ */ O(t, { data: n[0], children: e });
|
|
90
|
-
},
|
|
90
|
+
}, Gt = async ({
|
|
91
91
|
className: e,
|
|
92
92
|
PAYMENT_FLAGS_DICTIONARY: t,
|
|
93
93
|
PAYMENT_FLAGS: r,
|
|
@@ -100,7 +100,7 @@ const zt = async ({
|
|
|
100
100
|
...g
|
|
101
101
|
}) => {
|
|
102
102
|
var v, y, _, p, b, m, h, f, A, N, I;
|
|
103
|
-
const { data: s } = await
|
|
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
|
|
@@ -137,13 +137,13 @@ const zt = async ({
|
|
|
137
137
|
ICONS: a
|
|
138
138
|
}
|
|
139
139
|
) : null;
|
|
140
|
-
},
|
|
140
|
+
}, Vt = async ({
|
|
141
141
|
children: e,
|
|
142
142
|
ClientHeaderProvider: t,
|
|
143
143
|
...r
|
|
144
144
|
}) => {
|
|
145
145
|
var o, l, i, d, g, s;
|
|
146
|
-
const { data: n } = await
|
|
146
|
+
const { data: n } = await F(
|
|
147
147
|
"header",
|
|
148
148
|
r
|
|
149
149
|
), a = Array.isArray(n) ? n[0] : void 0;
|
|
@@ -159,7 +159,7 @@ const zt = async ({
|
|
|
159
159
|
children: e
|
|
160
160
|
}
|
|
161
161
|
);
|
|
162
|
-
},
|
|
162
|
+
}, Wt = (e) => {
|
|
163
163
|
var l, i;
|
|
164
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)
|
|
@@ -188,19 +188,19 @@ const zt = async ({
|
|
|
188
188
|
helpButtonSize: a,
|
|
189
189
|
content: o
|
|
190
190
|
};
|
|
191
|
-
},
|
|
191
|
+
}, Qt = async ({
|
|
192
192
|
HelpButton: e,
|
|
193
193
|
ICONS: t,
|
|
194
194
|
className: r,
|
|
195
195
|
...n
|
|
196
196
|
}) => {
|
|
197
|
-
const { data: a } = await
|
|
197
|
+
const { data: a } = await F(
|
|
198
198
|
"helpbutton",
|
|
199
199
|
n
|
|
200
200
|
);
|
|
201
201
|
if (!a || !Array.isArray(a) || a.length === 0)
|
|
202
202
|
return null;
|
|
203
|
-
const o =
|
|
203
|
+
const o = Wt(a);
|
|
204
204
|
return /* @__PURE__ */ O(
|
|
205
205
|
e,
|
|
206
206
|
{
|
|
@@ -209,13 +209,13 @@ const zt = async ({
|
|
|
209
209
|
className: r
|
|
210
210
|
}
|
|
211
211
|
);
|
|
212
|
-
},
|
|
212
|
+
}, Kt = 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
|
);
|
|
@@ -226,7 +226,7 @@ const zt = async ({
|
|
|
226
226
|
/* @__PURE__ */ O(t, { sections: o, content: l }),
|
|
227
227
|
/* @__PURE__ */ O(e, { data: i })
|
|
228
228
|
] });
|
|
229
|
-
},
|
|
229
|
+
}, Xt = async ({
|
|
230
230
|
LPLOJAS_TEMPLATE_RETURN_BUTTON: e,
|
|
231
231
|
ICONS: t,
|
|
232
232
|
entity: r,
|
|
@@ -235,7 +235,7 @@ const zt = async ({
|
|
|
235
235
|
...o
|
|
236
236
|
}) => {
|
|
237
237
|
var g;
|
|
238
|
-
const { data: l } = await
|
|
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__ */ O(
|
|
240
240
|
a,
|
|
241
241
|
{
|
|
@@ -247,13 +247,13 @@ const zt = async ({
|
|
|
247
247
|
LPLOJAS_TEMPLATE_RETURN_BUTTON: e
|
|
248
248
|
}
|
|
249
249
|
);
|
|
250
|
-
},
|
|
250
|
+
}, Zt = async ({
|
|
251
251
|
ERROR_TEMPLATE_RETURN_BUTTON: e,
|
|
252
252
|
ErrorTemplate: t,
|
|
253
253
|
...r
|
|
254
254
|
}) => {
|
|
255
255
|
var o;
|
|
256
|
-
const { data: n } = await
|
|
256
|
+
const { data: n } = await F(
|
|
257
257
|
"notfound_page",
|
|
258
258
|
r
|
|
259
259
|
), a = Array.isArray(n) ? (o = n[0]) == null ? void 0 : o.config.config : null;
|
|
@@ -264,7 +264,7 @@ const zt = async ({
|
|
|
264
264
|
ERROR_TEMPLATE_RETURN_BUTTON: e
|
|
265
265
|
}
|
|
266
266
|
) : /* @__PURE__ */ O(W, {});
|
|
267
|
-
},
|
|
267
|
+
}, Jt = async ({
|
|
268
268
|
children: e,
|
|
269
269
|
productId: t,
|
|
270
270
|
COMMON_PAGE_COLUMN_GAP: r,
|
|
@@ -272,7 +272,7 @@ const zt = async ({
|
|
|
272
272
|
PDPContentProvider: a,
|
|
273
273
|
...o
|
|
274
274
|
}) => {
|
|
275
|
-
const { data: l } = await
|
|
275
|
+
const { data: l } = await F(
|
|
276
276
|
"product_page",
|
|
277
277
|
o
|
|
278
278
|
);
|
|
@@ -286,9 +286,9 @@ const zt = async ({
|
|
|
286
286
|
children: e
|
|
287
287
|
}
|
|
288
288
|
);
|
|
289
|
-
},
|
|
289
|
+
}, Yt = {
|
|
290
290
|
"column-modifier": "_column-modifier_1tqap_1"
|
|
291
|
-
},
|
|
291
|
+
}, er = async ({
|
|
292
292
|
className: e,
|
|
293
293
|
children: t,
|
|
294
294
|
slug: r,
|
|
@@ -297,7 +297,7 @@ const zt = async ({
|
|
|
297
297
|
PLPContentProvider: o,
|
|
298
298
|
...l
|
|
299
299
|
}) => {
|
|
300
|
-
const { data: i } = await
|
|
300
|
+
const { data: i } = await F(
|
|
301
301
|
"categories_page",
|
|
302
302
|
l
|
|
303
303
|
);
|
|
@@ -330,7 +330,7 @@ const zt = async ({
|
|
|
330
330
|
{
|
|
331
331
|
className: le.classNameConcat(
|
|
332
332
|
oe["responsive-desktop-flex"],
|
|
333
|
-
[
|
|
333
|
+
[Yt["column-modifier"], ...w]
|
|
334
334
|
),
|
|
335
335
|
style: {
|
|
336
336
|
minHeight: "100vh"
|
|
@@ -358,9 +358,9 @@ const zt = async ({
|
|
|
358
358
|
}
|
|
359
359
|
) })
|
|
360
360
|
] });
|
|
361
|
-
},
|
|
361
|
+
}, tr = async ({ slug: e, ...t }) => {
|
|
362
362
|
var l, i, d;
|
|
363
|
-
const { data: r } = await
|
|
363
|
+
const { data: r } = await F(
|
|
364
364
|
"redirect_to_search",
|
|
365
365
|
t
|
|
366
366
|
);
|
|
@@ -398,9 +398,9 @@ const zt = async ({
|
|
|
398
398
|
filters: null,
|
|
399
399
|
sort: null
|
|
400
400
|
};
|
|
401
|
-
},
|
|
401
|
+
}, rr = async ({ slug: e, ...t }) => {
|
|
402
402
|
var l, i, d;
|
|
403
|
-
const { data: r } = await
|
|
403
|
+
const { data: r } = await F(
|
|
404
404
|
"redirect_to_search",
|
|
405
405
|
t
|
|
406
406
|
);
|
|
@@ -420,17 +420,17 @@ const zt = async ({
|
|
|
420
420
|
title: o.pageTitle,
|
|
421
421
|
description: o.pageDescription
|
|
422
422
|
} : null;
|
|
423
|
-
},
|
|
423
|
+
}, nr = async ({
|
|
424
424
|
slug: e,
|
|
425
425
|
Politicas: t,
|
|
426
426
|
SectionZone: r,
|
|
427
427
|
oneTrust: n,
|
|
428
428
|
...a
|
|
429
429
|
}) => {
|
|
430
|
-
const { data: o } = await
|
|
430
|
+
const { data: o } = await F(
|
|
431
431
|
"policy_page",
|
|
432
432
|
a
|
|
433
|
-
), { data: l } = await
|
|
433
|
+
), { data: l } = await F(
|
|
434
434
|
"policy_tab",
|
|
435
435
|
a
|
|
436
436
|
), i = Array.isArray(o) ? o : null, d = Array.isArray(l) ? l : null, g = i ? i[0].sections : null;
|
|
@@ -446,13 +446,13 @@ const zt = async ({
|
|
|
446
446
|
),
|
|
447
447
|
g && /* @__PURE__ */ O(r, { data: g })
|
|
448
448
|
] });
|
|
449
|
-
},
|
|
449
|
+
}, ar = async ({
|
|
450
450
|
children: e,
|
|
451
451
|
SectionZone: t,
|
|
452
452
|
className: r,
|
|
453
453
|
...n
|
|
454
454
|
}) => {
|
|
455
|
-
const { data: a } = await
|
|
455
|
+
const { data: a } = await F(
|
|
456
456
|
"search_page",
|
|
457
457
|
n
|
|
458
458
|
);
|
|
@@ -465,22 +465,22 @@ const zt = async ({
|
|
|
465
465
|
children: e
|
|
466
466
|
}
|
|
467
467
|
) : /* @__PURE__ */ O(W, { children: "children" });
|
|
468
|
-
},
|
|
468
|
+
}, ir = async ({
|
|
469
469
|
ClientTipbarContent: e,
|
|
470
470
|
...t
|
|
471
471
|
}) => {
|
|
472
|
-
const { data: r } = await
|
|
472
|
+
const { data: r } = await F(
|
|
473
473
|
"tipbar",
|
|
474
474
|
t
|
|
475
475
|
);
|
|
476
476
|
return /* @__PURE__ */ O(e, { data: r });
|
|
477
|
-
},
|
|
477
|
+
}, or = async ({
|
|
478
478
|
children: e,
|
|
479
479
|
SectionZone: t,
|
|
480
480
|
WishlistScreening: r,
|
|
481
481
|
...n
|
|
482
482
|
}) => {
|
|
483
|
-
const { data: a } = await
|
|
483
|
+
const { data: a } = await F(
|
|
484
484
|
"wishlist_page",
|
|
485
485
|
n
|
|
486
486
|
);
|
|
@@ -492,34 +492,34 @@ const zt = async ({
|
|
|
492
492
|
children: e
|
|
493
493
|
}
|
|
494
494
|
);
|
|
495
|
-
},
|
|
496
|
-
CommonPageContent:
|
|
497
|
-
CartContent:
|
|
498
|
-
FlagsAndTagsContent:
|
|
499
|
-
HeaderContent:
|
|
500
|
-
TipbarContent:
|
|
501
|
-
FooterContent:
|
|
502
|
-
PLPContent:
|
|
503
|
-
PDPContent:
|
|
504
|
-
getRedirectData:
|
|
505
|
-
getPLPSynteticMetaData:
|
|
506
|
-
SearchPageContent:
|
|
507
|
-
HelpButtonContent:
|
|
508
|
-
LPCadastroContent:
|
|
509
|
-
LPLojasContent:
|
|
510
|
-
PolicyPageContent:
|
|
511
|
-
NotFoundContent:
|
|
512
|
-
WishlistContent:
|
|
513
|
-
},
|
|
495
|
+
}, sr = {
|
|
496
|
+
CommonPageContent: Bt,
|
|
497
|
+
CartContent: Ht,
|
|
498
|
+
FlagsAndTagsContent: zt,
|
|
499
|
+
HeaderContent: Vt,
|
|
500
|
+
TipbarContent: ir,
|
|
501
|
+
FooterContent: Gt,
|
|
502
|
+
PLPContent: er,
|
|
503
|
+
PDPContent: Jt,
|
|
504
|
+
getRedirectData: tr,
|
|
505
|
+
getPLPSynteticMetaData: rr,
|
|
506
|
+
SearchPageContent: ar,
|
|
507
|
+
HelpButtonContent: Qt,
|
|
508
|
+
LPCadastroContent: Kt,
|
|
509
|
+
LPLojasContent: Xt,
|
|
510
|
+
PolicyPageContent: nr,
|
|
511
|
+
NotFoundContent: Zt,
|
|
512
|
+
WishlistContent: or
|
|
513
|
+
}, sa = { Components: sr }, lr = c.object({
|
|
514
514
|
country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
|
|
515
515
|
postalCode: c.string().nullable()
|
|
516
516
|
});
|
|
517
|
-
async function
|
|
517
|
+
async function cr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
518
518
|
if (!t) {
|
|
519
519
|
console.error("[ERROR FETCHING] Body is required");
|
|
520
520
|
return;
|
|
521
521
|
}
|
|
522
|
-
await
|
|
522
|
+
await lr.validate(t);
|
|
523
523
|
const { country: n, postalCode: a } = t;
|
|
524
524
|
return await T(
|
|
525
525
|
`${e}/api/checkout/pub/postal-code/${n}/${a}`,
|
|
@@ -530,7 +530,7 @@ async function pr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
530
530
|
}
|
|
531
531
|
);
|
|
532
532
|
}
|
|
533
|
-
const
|
|
533
|
+
const ur = c.object({
|
|
534
534
|
orderFormId: c.string().nullable(),
|
|
535
535
|
sellerCode: c.string().nullable(),
|
|
536
536
|
sellerName: c.string().nullable()
|
|
@@ -544,7 +544,7 @@ async function ze({
|
|
|
544
544
|
console.error("[ERROR FETCHING] Body is required");
|
|
545
545
|
return;
|
|
546
546
|
}
|
|
547
|
-
await
|
|
547
|
+
await ur.validate(t);
|
|
548
548
|
const { orderFormId: n, sellerCode: a, sellerName: o } = t, l = a ? `${a.trim()} - ${o}` : null;
|
|
549
549
|
return T(
|
|
550
550
|
`${e}/api/checkout/pub/orderForm/${n}/attachments/openTextField`,
|
|
@@ -557,7 +557,7 @@ async function ze({
|
|
|
557
557
|
}
|
|
558
558
|
);
|
|
559
559
|
}
|
|
560
|
-
const
|
|
560
|
+
const dr = c.object({
|
|
561
561
|
orderFormId: c.string().nullable(),
|
|
562
562
|
sellerCode: c.string().nullable(),
|
|
563
563
|
marketingData: c.object()
|
|
@@ -572,7 +572,7 @@ async function Ge({
|
|
|
572
572
|
console.error("[ERROR FETCHING] Body is required");
|
|
573
573
|
return;
|
|
574
574
|
}
|
|
575
|
-
await
|
|
575
|
+
await dr.validate(t);
|
|
576
576
|
const { orderFormId: a, sellerCode: o, marketingData: l } = t, i = o ? {
|
|
577
577
|
utmCampaign: o ? o.toUpperCase() : "",
|
|
578
578
|
utmiCampaign: o ? `${r.VENDOR_CODE}` : "semcodigo"
|
|
@@ -589,17 +589,17 @@ async function Ge({
|
|
|
589
589
|
}
|
|
590
590
|
);
|
|
591
591
|
}
|
|
592
|
-
const
|
|
592
|
+
const pr = c.object({
|
|
593
593
|
orderFormId: c.string().nullable(),
|
|
594
594
|
sellerCode: c.string().nullable(),
|
|
595
595
|
sellerName: c.string().nullable()
|
|
596
596
|
});
|
|
597
|
-
async function
|
|
597
|
+
async function mr({ apiUrl: e, body: t, fetchOptions: r, extraData: n }) {
|
|
598
598
|
if (!t) {
|
|
599
599
|
console.error("[ERROR FETCHING] Body is required");
|
|
600
600
|
return;
|
|
601
601
|
}
|
|
602
|
-
await
|
|
602
|
+
await pr.validate(t);
|
|
603
603
|
const a = await ze({ apiUrl: e, body: t, fetchOptions: r });
|
|
604
604
|
return Ge({
|
|
605
605
|
apiUrl: e,
|
|
@@ -611,11 +611,11 @@ async function gr({ apiUrl: e, body: t, fetchOptions: r, extraData: n }) {
|
|
|
611
611
|
fetchOptions: r
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
|
-
const
|
|
614
|
+
const hr = c.object({
|
|
615
615
|
orderFormId: c.string().nullable(),
|
|
616
616
|
coupon: c.string().nullable()
|
|
617
617
|
});
|
|
618
|
-
async function
|
|
618
|
+
async function fr({
|
|
619
619
|
apiUrl: e,
|
|
620
620
|
body: t,
|
|
621
621
|
fetchOptions: r
|
|
@@ -624,7 +624,7 @@ async function wr({
|
|
|
624
624
|
console.error("[ERROR FETCHING] Body is required");
|
|
625
625
|
return;
|
|
626
626
|
}
|
|
627
|
-
await
|
|
627
|
+
await hr.validate(t);
|
|
628
628
|
const { coupon: n = "", orderFormId: a } = t;
|
|
629
629
|
return T(
|
|
630
630
|
`${e}/api/checkout/pub/orderForm/${a}/coupons`,
|
|
@@ -635,12 +635,12 @@ async function wr({
|
|
|
635
635
|
}
|
|
636
636
|
);
|
|
637
637
|
}
|
|
638
|
-
const
|
|
638
|
+
const gr = c.object({
|
|
639
639
|
appId: c.string().required("App ID is required"),
|
|
640
640
|
orderFormId: c.string().nullable(),
|
|
641
641
|
key: c.array().of(c.string())
|
|
642
642
|
});
|
|
643
|
-
async function
|
|
643
|
+
async function br({
|
|
644
644
|
apiUrl: e,
|
|
645
645
|
body: t,
|
|
646
646
|
fetchOptions: r
|
|
@@ -649,7 +649,7 @@ async function yr({
|
|
|
649
649
|
console.error("[ERROR FETCHING] Body is required");
|
|
650
650
|
return;
|
|
651
651
|
}
|
|
652
|
-
await
|
|
652
|
+
await gr.validate(t);
|
|
653
653
|
const { appId: n = "faststore", orderFormId: a, key: o } = t;
|
|
654
654
|
return T(
|
|
655
655
|
`${e}/api/checkout/pub/orderForm/${a}/customData/${n}/${o}`,
|
|
@@ -659,23 +659,23 @@ async function yr({
|
|
|
659
659
|
}
|
|
660
660
|
);
|
|
661
661
|
}
|
|
662
|
-
const
|
|
662
|
+
const wr = c.object().shape({
|
|
663
663
|
name: c.string().required("Attachment name is required"),
|
|
664
664
|
content: c.object().nullable()
|
|
665
665
|
});
|
|
666
666
|
var He;
|
|
667
|
-
const
|
|
668
|
-
attachments: (He = c.array().of(
|
|
667
|
+
const vr = c.object().shape({
|
|
668
|
+
attachments: (He = c.array().of(wr)) == null ? void 0 : He.nullable(),
|
|
669
669
|
id: c.string().required("ID of SKU is required"),
|
|
670
670
|
index: c.number().integer().nullable(),
|
|
671
671
|
quantity: c.number().integer().nullable(),
|
|
672
672
|
seller: c.string().required("Seller is required"),
|
|
673
673
|
price: c.number().integer()
|
|
674
|
-
}),
|
|
674
|
+
}), yr = c.object({
|
|
675
675
|
orderFormId: c.string().required("OrderFormId is required"),
|
|
676
|
-
orderItems: c.array().of(
|
|
676
|
+
orderItems: c.array().of(vr)
|
|
677
677
|
});
|
|
678
|
-
async function
|
|
678
|
+
async function _r({
|
|
679
679
|
apiUrl: e,
|
|
680
680
|
body: t,
|
|
681
681
|
fetchOptions: r
|
|
@@ -684,7 +684,7 @@ async function Pr({
|
|
|
684
684
|
console.error("[ERROR FETCHING] Body is required");
|
|
685
685
|
return;
|
|
686
686
|
}
|
|
687
|
-
await
|
|
687
|
+
await yr.validate(t);
|
|
688
688
|
const { orderFormId: n, orderItems: a } = t;
|
|
689
689
|
return T(
|
|
690
690
|
`${e}/api/checkout/pub/orderForm/${n}/items`,
|
|
@@ -695,10 +695,10 @@ async function Pr({
|
|
|
695
695
|
}
|
|
696
696
|
);
|
|
697
697
|
}
|
|
698
|
-
const
|
|
698
|
+
const Rr = c.object({
|
|
699
699
|
orderFormId: c.string().nullable()
|
|
700
700
|
});
|
|
701
|
-
async function
|
|
701
|
+
async function Ir({
|
|
702
702
|
apiUrl: e,
|
|
703
703
|
body: t,
|
|
704
704
|
fetchOptions: r
|
|
@@ -707,7 +707,7 @@ async function Sr({
|
|
|
707
707
|
console.error("[ERROR FETCHING] Body is required");
|
|
708
708
|
return;
|
|
709
709
|
}
|
|
710
|
-
await
|
|
710
|
+
await Rr.validate(t);
|
|
711
711
|
const { orderFormId: n } = t;
|
|
712
712
|
return T(
|
|
713
713
|
`${e}/api/checkout/pub/orderForm/${n}/items/removeAll`,
|
|
@@ -717,23 +717,23 @@ async function Sr({
|
|
|
717
717
|
}
|
|
718
718
|
);
|
|
719
719
|
}
|
|
720
|
-
const
|
|
720
|
+
const Pr = c.object().shape({
|
|
721
721
|
name: c.string().required("Attachment name is required"),
|
|
722
722
|
content: c.object().nullable()
|
|
723
723
|
});
|
|
724
724
|
var Me;
|
|
725
|
-
const
|
|
726
|
-
attachments: (Me = c.array().of(
|
|
725
|
+
const xr = c.object().shape({
|
|
726
|
+
attachments: (Me = c.array().of(Pr)) == null ? void 0 : Me.nullable(),
|
|
727
727
|
id: c.string().required("ID of SKU is required"),
|
|
728
728
|
index: c.number().integer().nullable(),
|
|
729
729
|
quantity: c.number().integer().nullable(),
|
|
730
730
|
seller: c.string().required("Seller is required"),
|
|
731
731
|
price: c.number().integer()
|
|
732
|
-
}),
|
|
732
|
+
}), Sr = c.object({
|
|
733
733
|
orderFormId: c.string().nullable(),
|
|
734
|
-
orderItems: c.array().of(
|
|
734
|
+
orderItems: c.array().of(xr)
|
|
735
735
|
});
|
|
736
|
-
async function
|
|
736
|
+
async function Cr({
|
|
737
737
|
apiUrl: e,
|
|
738
738
|
body: t,
|
|
739
739
|
fetchOptions: r
|
|
@@ -742,7 +742,7 @@ async function Er({
|
|
|
742
742
|
console.error("[ERROR FETCHING] Body is required");
|
|
743
743
|
return;
|
|
744
744
|
}
|
|
745
|
-
await
|
|
745
|
+
await Sr.validate(t);
|
|
746
746
|
const { orderFormId: n, orderItems: a } = t;
|
|
747
747
|
return T(
|
|
748
748
|
`${e}/api/checkout/pub/orderForm/${n}/items/update`,
|
|
@@ -753,10 +753,10 @@ async function Er({
|
|
|
753
753
|
}
|
|
754
754
|
);
|
|
755
755
|
}
|
|
756
|
-
const
|
|
756
|
+
const kr = c.object({
|
|
757
757
|
orderFormId: c.string().nullable()
|
|
758
758
|
});
|
|
759
|
-
async function
|
|
759
|
+
async function Ar({
|
|
760
760
|
apiUrl: e,
|
|
761
761
|
body: t,
|
|
762
762
|
fetchOptions: r
|
|
@@ -765,7 +765,7 @@ async function Tr({
|
|
|
765
765
|
console.error("[ERROR FETCHING] Body is required");
|
|
766
766
|
return;
|
|
767
767
|
}
|
|
768
|
-
await
|
|
768
|
+
await kr.validate(t);
|
|
769
769
|
const { orderFormId: n } = t;
|
|
770
770
|
return T(
|
|
771
771
|
`${e}/api/checkout/pub/orderForm/${n}/messages/clear`,
|
|
@@ -775,19 +775,19 @@ async function Tr({
|
|
|
775
775
|
}
|
|
776
776
|
);
|
|
777
777
|
}
|
|
778
|
-
const
|
|
778
|
+
const Er = c.object({
|
|
779
779
|
id: c.string().nullable(),
|
|
780
780
|
// id offering
|
|
781
781
|
itemIndex: c.number().nullable(),
|
|
782
782
|
orderFormId: c.string().nullable(),
|
|
783
783
|
remove: c.boolean().nullable()
|
|
784
784
|
});
|
|
785
|
-
async function
|
|
785
|
+
async function Or({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
786
786
|
if (!t) {
|
|
787
787
|
console.error("[ERROR FETCHING] Body is required");
|
|
788
788
|
return;
|
|
789
789
|
}
|
|
790
|
-
await
|
|
790
|
+
await Er.validate(t);
|
|
791
791
|
const { itemIndex: n, orderFormId: a, id: o, remove: l } = t, i = l ? `/${o}/remove` : "", d = `${e}/api/checkout/pub/orderForm/${a}/items/${n}/offerings${i}`;
|
|
792
792
|
return T(d, {
|
|
793
793
|
method: "POST",
|
|
@@ -795,10 +795,10 @@ async function Nr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
795
795
|
...r
|
|
796
796
|
});
|
|
797
797
|
}
|
|
798
|
-
const
|
|
798
|
+
const Tr = c.object({
|
|
799
799
|
orderFormId: c.string().nullable()
|
|
800
800
|
});
|
|
801
|
-
async function
|
|
801
|
+
async function qr({
|
|
802
802
|
apiUrl: e,
|
|
803
803
|
body: t,
|
|
804
804
|
fetchOptions: r,
|
|
@@ -809,13 +809,13 @@ async function $r({
|
|
|
809
809
|
console.error("[ERROR FETCHING] Body is required");
|
|
810
810
|
return;
|
|
811
811
|
}
|
|
812
|
-
await
|
|
812
|
+
await Tr.validate(t);
|
|
813
813
|
const a = new URLSearchParams({
|
|
814
814
|
refreshOutdatedData: "true"
|
|
815
815
|
}), o = t.orderFormId && ((l = n.orderFormPurchaseId) == null ? void 0 : l.value) !== t.orderFormId ? `${e}/api/checkout/pub/orderForm/${t.orderFormId}?${String(a)}` : `${e}/api/checkout/pub/orderForm`;
|
|
816
816
|
return T(o, { method: "GET", ...r });
|
|
817
817
|
}
|
|
818
|
-
const
|
|
818
|
+
const Nr = c.object({
|
|
819
819
|
orderFormId: c.string().nullable(),
|
|
820
820
|
email: c.string().email().required(),
|
|
821
821
|
firstName: c.string().required(),
|
|
@@ -824,7 +824,7 @@ const Fr = c.object({
|
|
|
824
824
|
document: c.string().required(),
|
|
825
825
|
phone: c.string().matches(/^\+\d{1,3}\d{10,11}$/)
|
|
826
826
|
});
|
|
827
|
-
async function
|
|
827
|
+
async function jr({
|
|
828
828
|
apiUrl: e,
|
|
829
829
|
body: t,
|
|
830
830
|
fetchOptions: r
|
|
@@ -833,7 +833,7 @@ async function Lr({
|
|
|
833
833
|
console.error("[ERROR FETCHING] Body is required");
|
|
834
834
|
return;
|
|
835
835
|
}
|
|
836
|
-
await
|
|
836
|
+
await Nr.validate(t);
|
|
837
837
|
const { orderFormId: n, ...a } = t;
|
|
838
838
|
return T(
|
|
839
839
|
`${e}/api/checkout/pub/orderForm/${n}/attachments/clientProfileData`,
|
|
@@ -844,10 +844,10 @@ async function Lr({
|
|
|
844
844
|
}
|
|
845
845
|
);
|
|
846
846
|
}
|
|
847
|
-
const
|
|
847
|
+
const Fr = c.object({
|
|
848
848
|
sellerCode: c.string().nullable()
|
|
849
849
|
});
|
|
850
|
-
async function
|
|
850
|
+
async function $r({
|
|
851
851
|
apiUrl: e,
|
|
852
852
|
body: t,
|
|
853
853
|
extraData: r,
|
|
@@ -857,7 +857,7 @@ async function Ur({
|
|
|
857
857
|
console.error("[ERROR FETCHING] Body is required");
|
|
858
858
|
return;
|
|
859
859
|
}
|
|
860
|
-
await
|
|
860
|
+
await Fr.validate(t);
|
|
861
861
|
const { sellerCode: a = "" } = t;
|
|
862
862
|
return T(
|
|
863
863
|
`${e}/api/dataentities/${r.ENTITIES}/search?_fields=${r.FIELDS}&${r.FILTER}=${a}`,
|
|
@@ -870,12 +870,12 @@ async function Ur({
|
|
|
870
870
|
}
|
|
871
871
|
);
|
|
872
872
|
}
|
|
873
|
-
const
|
|
873
|
+
const Lr = c.object().shape({
|
|
874
874
|
country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
|
|
875
875
|
orderFormId: c.string().nullable(),
|
|
876
876
|
postalCode: c.string().nullable()
|
|
877
877
|
});
|
|
878
|
-
async function
|
|
878
|
+
async function Dr({
|
|
879
879
|
apiUrl: e,
|
|
880
880
|
body: t,
|
|
881
881
|
fetchOptions: r
|
|
@@ -884,7 +884,7 @@ async function Mr({
|
|
|
884
884
|
console.error("[ERROR FETCHING] Body is required");
|
|
885
885
|
return;
|
|
886
886
|
}
|
|
887
|
-
await
|
|
887
|
+
await Lr.validate(t);
|
|
888
888
|
const { country: n, orderFormId: a, postalCode: o } = t, l = o ? {
|
|
889
889
|
address: {
|
|
890
890
|
addressType: "residential",
|
|
@@ -904,7 +904,7 @@ async function Mr({
|
|
|
904
904
|
}
|
|
905
905
|
);
|
|
906
906
|
}
|
|
907
|
-
const
|
|
907
|
+
const Ur = c.object().shape({
|
|
908
908
|
orderFormId: c.string().nullable(),
|
|
909
909
|
options: c.array().of(
|
|
910
910
|
c.object().shape({
|
|
@@ -932,12 +932,12 @@ const Br = c.object().shape({
|
|
|
932
932
|
})
|
|
933
933
|
)
|
|
934
934
|
});
|
|
935
|
-
async function
|
|
935
|
+
async function Hr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
936
936
|
if (!t) {
|
|
937
937
|
console.error("[ERROR FETCHING] Body is required");
|
|
938
938
|
return;
|
|
939
939
|
}
|
|
940
|
-
await
|
|
940
|
+
await Ur.validate(t);
|
|
941
941
|
const { orderFormId: n, options: a, selectedAddresses: o } = t;
|
|
942
942
|
return T(
|
|
943
943
|
`${e}/api/checkout/pub/orderForm/${n}/attachments/shippingData`,
|
|
@@ -952,7 +952,7 @@ async function zr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
952
952
|
}
|
|
953
953
|
);
|
|
954
954
|
}
|
|
955
|
-
const
|
|
955
|
+
const Mr = c.object({
|
|
956
956
|
country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
|
|
957
957
|
postalCode: c.string().nullable(),
|
|
958
958
|
geoCoordinates: c.object().shape({
|
|
@@ -960,12 +960,12 @@ const Gr = c.object({
|
|
|
960
960
|
latitude: c.number().required()
|
|
961
961
|
})
|
|
962
962
|
});
|
|
963
|
-
async function
|
|
963
|
+
async function Br({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
964
964
|
if (!t) {
|
|
965
965
|
console.error("[ERROR FETCHING] Body is required");
|
|
966
966
|
return;
|
|
967
967
|
}
|
|
968
|
-
await
|
|
968
|
+
await Mr.validate(t);
|
|
969
969
|
const { country: n = "", geoCoordinates: a, postalCode: o = "" } = t, l = new URLSearchParams({ country: String(n) });
|
|
970
970
|
return o ? l.append("postalCode", o) : l.append(
|
|
971
971
|
"geoCoordinates",
|
|
@@ -978,22 +978,22 @@ async function Vr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
978
978
|
}
|
|
979
979
|
);
|
|
980
980
|
}
|
|
981
|
-
const
|
|
981
|
+
const zr = c.object({
|
|
982
982
|
id: c.string().required("ID of SKU is required"),
|
|
983
983
|
quantity: c.number().integer().required("Quantity of item is required"),
|
|
984
984
|
seller: c.string()
|
|
985
|
-
}),
|
|
986
|
-
items: c.array().of(
|
|
985
|
+
}), Gr = c.object({
|
|
986
|
+
items: c.array().of(zr),
|
|
987
987
|
country: c.string().length(3, "Country code must be 3 characters long").required("Country is required"),
|
|
988
988
|
postalCode: c.string().nullable(),
|
|
989
989
|
geoCoordinates: c.array().nullable().of(c.number()).length(2)
|
|
990
990
|
});
|
|
991
|
-
async function
|
|
991
|
+
async function Vr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
992
992
|
if (!t) {
|
|
993
993
|
console.error("[ERROR FETCHING] Body is required");
|
|
994
994
|
return;
|
|
995
995
|
}
|
|
996
|
-
return await
|
|
996
|
+
return await Gr.validate(t), T(
|
|
997
997
|
`${e}/api/checkout/pub/orderForms/simulation`,
|
|
998
998
|
{
|
|
999
999
|
method: "POST",
|
|
@@ -1002,35 +1002,35 @@ async function Kr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
1002
1002
|
}
|
|
1003
1003
|
);
|
|
1004
1004
|
}
|
|
1005
|
-
const
|
|
1005
|
+
const Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1006
1006
|
__proto__: null,
|
|
1007
|
-
getMasterDataSellerCode:
|
|
1008
|
-
getOrderForm:
|
|
1009
|
-
postOrderFormAddCoupon:
|
|
1010
|
-
postOrderFormAttachClientProfileData:
|
|
1011
|
-
postOrderFormAttachOrderFormData:
|
|
1012
|
-
postOrderFormAttachShippingData:
|
|
1007
|
+
getMasterDataSellerCode: $r,
|
|
1008
|
+
getOrderForm: qr,
|
|
1009
|
+
postOrderFormAddCoupon: fr,
|
|
1010
|
+
postOrderFormAttachClientProfileData: jr,
|
|
1011
|
+
postOrderFormAttachOrderFormData: mr,
|
|
1012
|
+
postOrderFormAttachShippingData: Dr,
|
|
1013
1013
|
postOrderFormAttachmentsMarketingData: Ge,
|
|
1014
1014
|
postOrderFormAttachmentsOpenTextField: ze,
|
|
1015
|
-
postOrderFormClearMessages:
|
|
1016
|
-
postOrderFormFreightSimulation:
|
|
1017
|
-
postOrderFormItems:
|
|
1018
|
-
postOrderFormRegion:
|
|
1019
|
-
postOrderFormRemoveAllItems:
|
|
1020
|
-
postOrderFormUpdateItems:
|
|
1021
|
-
postOrderFormUpdateShippingData:
|
|
1022
|
-
postOrderformAddress:
|
|
1023
|
-
putOrderFormCustomData:
|
|
1024
|
-
updateOrderFormOffering:
|
|
1025
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1015
|
+
postOrderFormClearMessages: Ar,
|
|
1016
|
+
postOrderFormFreightSimulation: Vr,
|
|
1017
|
+
postOrderFormItems: _r,
|
|
1018
|
+
postOrderFormRegion: Br,
|
|
1019
|
+
postOrderFormRemoveAllItems: Ir,
|
|
1020
|
+
postOrderFormUpdateItems: Cr,
|
|
1021
|
+
postOrderFormUpdateShippingData: Hr,
|
|
1022
|
+
postOrderformAddress: cr,
|
|
1023
|
+
putOrderFormCustomData: br,
|
|
1024
|
+
updateOrderFormOffering: Or
|
|
1025
|
+
}, Symbol.toStringTag, { value: "Module" })), Qr = c.object({
|
|
1026
1026
|
skuId: c.string()
|
|
1027
1027
|
});
|
|
1028
|
-
async function
|
|
1028
|
+
async function Kr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
1029
1029
|
if (!t) {
|
|
1030
1030
|
console.error("[ERROR FETCHING] Body is required");
|
|
1031
1031
|
return;
|
|
1032
1032
|
}
|
|
1033
|
-
await
|
|
1033
|
+
await Qr.validate(t);
|
|
1034
1034
|
const { skuId: n } = t;
|
|
1035
1035
|
return T(
|
|
1036
1036
|
`${e}/api/catalog/pvt/stockkeepingunitkit?parentSkuId=${n}`,
|
|
@@ -1039,15 +1039,15 @@ async function Jr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
1039
1039
|
}
|
|
1040
1040
|
);
|
|
1041
1041
|
}
|
|
1042
|
-
const
|
|
1042
|
+
const Xr = c.object({
|
|
1043
1043
|
ids: c.array().of(c.string().required("ID are required")).required("IDs are required")
|
|
1044
1044
|
});
|
|
1045
|
-
async function
|
|
1045
|
+
async function Zr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
1046
1046
|
if (!t) {
|
|
1047
1047
|
console.error("[ERROR FETCHING] Body is required");
|
|
1048
1048
|
return;
|
|
1049
1049
|
}
|
|
1050
|
-
await
|
|
1050
|
+
await Xr.validate(t);
|
|
1051
1051
|
const { ids: n } = t;
|
|
1052
1052
|
return T(
|
|
1053
1053
|
`${e}/api/catalog_system/pub/products/search?fq=${n.map((a) => `productId:${a}`).join("&fq=")}`,
|
|
@@ -1056,15 +1056,15 @@ async function en({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
1056
1056
|
}
|
|
1057
1057
|
);
|
|
1058
1058
|
}
|
|
1059
|
-
const
|
|
1059
|
+
const Jr = c.object({
|
|
1060
1060
|
productId: c.number().required("Product ID is required")
|
|
1061
1061
|
});
|
|
1062
|
-
async function
|
|
1062
|
+
async function Yr({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
1063
1063
|
if (!t) {
|
|
1064
1064
|
console.error("[ERROR FETCHING] Body is required");
|
|
1065
1065
|
return;
|
|
1066
1066
|
}
|
|
1067
|
-
await
|
|
1067
|
+
await Jr.validate(t);
|
|
1068
1068
|
const { productId: n } = t;
|
|
1069
1069
|
return T(
|
|
1070
1070
|
`${e}/api/catalog_system/pub/products/crossselling/similars/${n.toString()}`,
|
|
@@ -1073,7 +1073,7 @@ async function rn({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
1073
1073
|
}
|
|
1074
1074
|
);
|
|
1075
1075
|
}
|
|
1076
|
-
async function
|
|
1076
|
+
async function en({
|
|
1077
1077
|
apiUrl: e,
|
|
1078
1078
|
params: t,
|
|
1079
1079
|
fetchOptions: r
|
|
@@ -1085,16 +1085,16 @@ async function nn({
|
|
|
1085
1085
|
}
|
|
1086
1086
|
) : (console.error("[ERROR FETCHING] slug is required"), null);
|
|
1087
1087
|
}
|
|
1088
|
-
const
|
|
1088
|
+
const tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1089
1089
|
__proto__: null,
|
|
1090
|
-
getCatalogKitProducts:
|
|
1091
|
-
getCatalogPageInfo:
|
|
1092
|
-
getCatalogProducts:
|
|
1093
|
-
getCatalogSimilars:
|
|
1094
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1090
|
+
getCatalogKitProducts: Kr,
|
|
1091
|
+
getCatalogPageInfo: en,
|
|
1092
|
+
getCatalogProducts: Zr,
|
|
1093
|
+
getCatalogSimilars: Yr
|
|
1094
|
+
}, Symbol.toStringTag, { value: "Module" })), rn = c.object({
|
|
1095
1095
|
query: c.string()
|
|
1096
1096
|
});
|
|
1097
|
-
async function
|
|
1097
|
+
async function nn({
|
|
1098
1098
|
apiUrl: e,
|
|
1099
1099
|
body: t,
|
|
1100
1100
|
fetchOptions: r
|
|
@@ -1103,7 +1103,7 @@ async function sn({
|
|
|
1103
1103
|
console.error("[ERROR FETCHING] Body is required");
|
|
1104
1104
|
return;
|
|
1105
1105
|
}
|
|
1106
|
-
await
|
|
1106
|
+
await rn.validate(t);
|
|
1107
1107
|
const { query: n = "" } = t, a = new URLSearchParams({ query: n });
|
|
1108
1108
|
return T(
|
|
1109
1109
|
`${e}/api/io/_v/api/intelligent-search/autocomplete_suggestions?${a.toString()}`,
|
|
@@ -1112,10 +1112,10 @@ async function sn({
|
|
|
1112
1112
|
}
|
|
1113
1113
|
);
|
|
1114
1114
|
}
|
|
1115
|
-
const
|
|
1115
|
+
const an = (e, t) => Dt(e, t), on = (e) => ({
|
|
1116
1116
|
...e,
|
|
1117
|
-
description: e.description ?
|
|
1118
|
-
}),
|
|
1117
|
+
description: e.description ? an(e.description) : e.description
|
|
1118
|
+
}), sn = ({
|
|
1119
1119
|
offer: e,
|
|
1120
1120
|
seller: t,
|
|
1121
1121
|
product: r
|
|
@@ -1125,8 +1125,8 @@ const ln = (e, t) => Mt(e, t), cn = (e) => ({
|
|
|
1125
1125
|
seller: t
|
|
1126
1126
|
}), Ve = (e, t) => ({
|
|
1127
1127
|
...e,
|
|
1128
|
-
isVariantOf:
|
|
1129
|
-
}),
|
|
1128
|
+
isVariantOf: on(t)
|
|
1129
|
+
}), ln = (e) => e ? "https://schema.org/InStock" : "https://schema.org/OutOfStock", ie = (e) => e.AvailableQuantity > 0, Le = (e) => e.spotPrice ?? 0, cn = (e) => e.Price ?? 0, We = (e, t) => ie(e) && !ie(t) ? -1 : !ie(e) && ie(t) ? 1 : Le(e) - Le(t), un = (e, t) => {
|
|
1130
1130
|
let r = 0;
|
|
1131
1131
|
for (let n = 1; n < e.length; n++)
|
|
1132
1132
|
t(e[r], e[n]) > 0 && (r = n);
|
|
@@ -1137,7 +1137,7 @@ const ln = (e, t) => Mt(e, t), cn = (e) => ({
|
|
|
1137
1137
|
offer: a.commertialOffer,
|
|
1138
1138
|
sku: n
|
|
1139
1139
|
}))
|
|
1140
|
-
), r =
|
|
1140
|
+
), r = un(
|
|
1141
1141
|
t,
|
|
1142
1142
|
({ offer: n }, { offer: a }) => We(n, a)
|
|
1143
1143
|
);
|
|
@@ -1152,11 +1152,11 @@ const ln = (e, t) => Mt(e, t), cn = (e) => ({
|
|
|
1152
1152
|
attachment: "ATTACHMENT",
|
|
1153
1153
|
specification: "SPECIFICATION",
|
|
1154
1154
|
attribute: "ATTRIBUTE"
|
|
1155
|
-
},
|
|
1155
|
+
}, dn = (e) => ({
|
|
1156
1156
|
name: e.name,
|
|
1157
1157
|
value: e.content,
|
|
1158
1158
|
valueReference: ce.attachment
|
|
1159
|
-
}),
|
|
1159
|
+
}), pn = (e) => ({
|
|
1160
1160
|
propertyID: e.id,
|
|
1161
1161
|
name: e.name,
|
|
1162
1162
|
value: e.value,
|
|
@@ -1173,23 +1173,23 @@ const ln = (e, t) => Mt(e, t), cn = (e) => ({
|
|
|
1173
1173
|
name: l,
|
|
1174
1174
|
value: "",
|
|
1175
1175
|
valueReference: ce.specification
|
|
1176
|
-
}), a = Array.isArray(r) ? r.map(
|
|
1176
|
+
}), a = Array.isArray(r) ? r.map(dn) : [], o = t ? t.map(pn) : [];
|
|
1177
1177
|
return [
|
|
1178
1178
|
...n,
|
|
1179
1179
|
...a,
|
|
1180
1180
|
...o
|
|
1181
1181
|
];
|
|
1182
|
-
}, De = "ÁÄÂÀÃÅČÇĆĎÉĚËÈÊẼĔȆÍÌÎÏŇÑÓÖÒÔÕØŘŔŠŤÚŮÜÙÛÝŸŽáäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a",
|
|
1182
|
+
}, De = "ÁÄÂÀÃÅČÇĆĎÉĚËÈÊẼĔȆÍÌÎÏŇÑÓÖÒÔÕØŘŔŠŤÚŮÜÙÛÝŸŽáäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a", mn = "AAAAAACCCDEEEEEEEEIIIINNOOOOOORRSTUUUUUYYZaaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa", hn = (e) => {
|
|
1183
1183
|
let t = e.slice(0);
|
|
1184
1184
|
for (let r = 0; r < De.length; r++)
|
|
1185
1185
|
t = t.replace(
|
|
1186
1186
|
new RegExp(De.charAt(r), "g"),
|
|
1187
|
-
|
|
1187
|
+
mn.charAt(r)
|
|
1188
1188
|
);
|
|
1189
1189
|
return t;
|
|
1190
|
-
},
|
|
1190
|
+
}, fn = (e) => e.replace(/[·/_,:]/, "-"), Xe = (e) => {
|
|
1191
1191
|
const r = e.replace(/,/g, "").replace(/[*+~.()'"!:@&\[\]`/ %$#?{}|><=_^]/g, "-");
|
|
1192
|
-
return
|
|
1192
|
+
return fn(hn(r)).toLowerCase();
|
|
1193
1193
|
}, Ze = (e) => `/${e}/p`, Je = (e) => {
|
|
1194
1194
|
const t = Math.max(
|
|
1195
1195
|
...e.map((n) => n.NumberOfInstallments)
|
|
@@ -1206,7 +1206,7 @@ const ln = (e, t) => Mt(e, t), cn = (e) => ({
|
|
|
1206
1206
|
listPrice: 0,
|
|
1207
1207
|
sellerDefault: !1
|
|
1208
1208
|
}, a = e.map(
|
|
1209
|
-
(o) =>
|
|
1209
|
+
(o) => sn({
|
|
1210
1210
|
offer: o.commertialOffer,
|
|
1211
1211
|
seller: o,
|
|
1212
1212
|
product: t
|
|
@@ -1214,7 +1214,7 @@ const ln = (e, t) => Mt(e, t), cn = (e) => ({
|
|
|
1214
1214
|
).sort(We).map((o) => (o.seller.sellerId === "1" && o.AvailableQuantity > 0 && (r.price = o.Price, r.listPrice = o.ListPrice, r.sellerDefault = !0), {
|
|
1215
1215
|
availability: o.AvailableQuantity > 0,
|
|
1216
1216
|
listPrice: o.ListPrice,
|
|
1217
|
-
price:
|
|
1217
|
+
price: cn(o),
|
|
1218
1218
|
priceValidUntil: o.PriceValidUntil,
|
|
1219
1219
|
priceCurrency: "BRL",
|
|
1220
1220
|
installments: o.Installments,
|
|
@@ -1236,7 +1236,7 @@ const ln = (e, t) => Mt(e, t), cn = (e) => ({
|
|
|
1236
1236
|
name: n,
|
|
1237
1237
|
offers: {
|
|
1238
1238
|
offers: a == null ? void 0 : a.map(({ sellerId: l, commertialOffer: i }) => ({
|
|
1239
|
-
availability:
|
|
1239
|
+
availability: ln(i.AvailableQuantity > 0),
|
|
1240
1240
|
listPrice: i.ListPrice,
|
|
1241
1241
|
price: i.Price,
|
|
1242
1242
|
quantity: i.AvailableQuantity,
|
|
@@ -1248,7 +1248,7 @@ const ln = (e, t) => Mt(e, t), cn = (e) => ({
|
|
|
1248
1248
|
sku: r
|
|
1249
1249
|
// slug: getSlug('', itemId), // getSlug('', itemId) que tipo de slug é esse?
|
|
1250
1250
|
};
|
|
1251
|
-
},
|
|
1251
|
+
}, gn = (e) => {
|
|
1252
1252
|
var R;
|
|
1253
1253
|
const {
|
|
1254
1254
|
attributes: t,
|
|
@@ -1299,7 +1299,7 @@ const ln = (e, t) => Mt(e, t), cn = (e) => ({
|
|
|
1299
1299
|
breadcrumbList: {
|
|
1300
1300
|
itemListElement: [
|
|
1301
1301
|
...A.map((C, j) => {
|
|
1302
|
-
const
|
|
1302
|
+
const $ = C.split("/"), D = $[$.length - 2], U = $.map(Xe).join("/");
|
|
1303
1303
|
return {
|
|
1304
1304
|
name: D,
|
|
1305
1305
|
item: U,
|
|
@@ -1323,7 +1323,7 @@ const ln = (e, t) => Mt(e, t), cn = (e) => ({
|
|
|
1323
1323
|
},
|
|
1324
1324
|
installments: I
|
|
1325
1325
|
};
|
|
1326
|
-
},
|
|
1326
|
+
}, bn = (e) => {
|
|
1327
1327
|
var I;
|
|
1328
1328
|
const {
|
|
1329
1329
|
attributes: t,
|
|
@@ -1375,9 +1375,9 @@ const ln = (e, t) => Mt(e, t), cn = (e) => ({
|
|
|
1375
1375
|
breadcrumbList: {
|
|
1376
1376
|
itemListElement: [
|
|
1377
1377
|
...f.map((R, C) => {
|
|
1378
|
-
const j = R.split("/"),
|
|
1378
|
+
const j = R.split("/"), $ = j[j.length - 2], D = j.map(Xe).join("/");
|
|
1379
1379
|
return {
|
|
1380
|
-
name:
|
|
1380
|
+
name: $,
|
|
1381
1381
|
item: D,
|
|
1382
1382
|
position: C + 1
|
|
1383
1383
|
};
|
|
@@ -1396,9 +1396,9 @@ const ln = (e, t) => Mt(e, t), cn = (e) => ({
|
|
|
1396
1396
|
isVariantOf: {
|
|
1397
1397
|
productGroupID: n.productId,
|
|
1398
1398
|
hasVariant: n.items.map((R) => {
|
|
1399
|
-
const { variations: C } = R, j = C.map((
|
|
1400
|
-
name:
|
|
1401
|
-
values: R[
|
|
1399
|
+
const { variations: C } = R, j = C.map(($) => ({
|
|
1400
|
+
name: $,
|
|
1401
|
+
values: R[$]
|
|
1402
1402
|
}));
|
|
1403
1403
|
return {
|
|
1404
1404
|
...et(R),
|
|
@@ -1412,13 +1412,13 @@ const ln = (e, t) => Mt(e, t), cn = (e) => ({
|
|
|
1412
1412
|
},
|
|
1413
1413
|
installments: N
|
|
1414
1414
|
};
|
|
1415
|
-
},
|
|
1415
|
+
}, wn = c.array().of(
|
|
1416
1416
|
c.object({
|
|
1417
1417
|
key: c.string().required(),
|
|
1418
1418
|
value: c.string().required()
|
|
1419
1419
|
})
|
|
1420
1420
|
).required("Facets are required");
|
|
1421
|
-
async function
|
|
1421
|
+
async function vn({
|
|
1422
1422
|
apiUrl: e,
|
|
1423
1423
|
body: t,
|
|
1424
1424
|
fetchOptions: r
|
|
@@ -1427,7 +1427,7 @@ async function Rn({
|
|
|
1427
1427
|
console.error("[ERROR FETCHING] Body is required");
|
|
1428
1428
|
return;
|
|
1429
1429
|
}
|
|
1430
|
-
await
|
|
1430
|
+
await wn.validate(t);
|
|
1431
1431
|
const n = new URLSearchParams({}), a = t.map(({ key: l, value: i }) => `${l}/${i}`).join("/");
|
|
1432
1432
|
_t(t, n);
|
|
1433
1433
|
const o = `${e}/api/catalog_system/pub/products/crossselling/${a}`;
|
|
@@ -1438,7 +1438,7 @@ async function Rn({
|
|
|
1438
1438
|
const g = Qe(d.items);
|
|
1439
1439
|
return g && Ve(g, d);
|
|
1440
1440
|
}).filter((d) => !!d).map((d) => ({
|
|
1441
|
-
node:
|
|
1441
|
+
node: bn(d)
|
|
1442
1442
|
})));
|
|
1443
1443
|
}
|
|
1444
1444
|
const tt = ({
|
|
@@ -1480,7 +1480,7 @@ const tt = ({
|
|
|
1480
1480
|
}
|
|
1481
1481
|
);
|
|
1482
1482
|
};
|
|
1483
|
-
async function
|
|
1483
|
+
async function yn({
|
|
1484
1484
|
body: e,
|
|
1485
1485
|
extraData: t,
|
|
1486
1486
|
...r
|
|
@@ -1511,13 +1511,13 @@ async function In({
|
|
|
1511
1511
|
total: o.count
|
|
1512
1512
|
},
|
|
1513
1513
|
products: a.map((i, d) => ({
|
|
1514
|
-
node:
|
|
1514
|
+
node: gn(i),
|
|
1515
1515
|
cursor: d.toString()
|
|
1516
1516
|
}))
|
|
1517
1517
|
}
|
|
1518
1518
|
};
|
|
1519
1519
|
}
|
|
1520
|
-
async function
|
|
1520
|
+
async function _n({ body: e, extraData: t, ...r }) {
|
|
1521
1521
|
if (!e) {
|
|
1522
1522
|
console.error("[ERROR FETCHING] Body is required");
|
|
1523
1523
|
return;
|
|
@@ -1537,16 +1537,16 @@ async function Pn({ body: e, extraData: t, ...r }) {
|
|
|
1537
1537
|
}
|
|
1538
1538
|
};
|
|
1539
1539
|
}
|
|
1540
|
-
const
|
|
1540
|
+
const Rn = c.object({
|
|
1541
1541
|
query: c.string().optional(),
|
|
1542
1542
|
locale: c.string().optional()
|
|
1543
1543
|
});
|
|
1544
|
-
async function
|
|
1544
|
+
async function In({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
1545
1545
|
if (!t) {
|
|
1546
1546
|
console.error("[ERROR FETCHING] Body is required");
|
|
1547
1547
|
return;
|
|
1548
1548
|
}
|
|
1549
|
-
await
|
|
1549
|
+
await Rn.validate(t);
|
|
1550
1550
|
const { query: n = "", locale: a = "default_locale" } = t, o = new URLSearchParams({ query: n, locale: a });
|
|
1551
1551
|
return T(
|
|
1552
1552
|
`${e}/api/io/_v/api/intelligent-search/search_suggestions?${o.toString()}`,
|
|
@@ -1555,22 +1555,22 @@ async function Sn({ apiUrl: e, body: t, fetchOptions: r }) {
|
|
|
1555
1555
|
}
|
|
1556
1556
|
);
|
|
1557
1557
|
}
|
|
1558
|
-
async function
|
|
1558
|
+
async function Pn({ apiUrl: e }) {
|
|
1559
1559
|
return T(`${e}/api/io/_v/api/intelligent-search/top_searches`);
|
|
1560
1560
|
}
|
|
1561
|
-
const
|
|
1561
|
+
const xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1562
1562
|
__proto__: null,
|
|
1563
|
-
getSearchAutoCompleteSuggestions:
|
|
1564
|
-
getSearchCrossellingProducts:
|
|
1565
|
-
getSearchFacets:
|
|
1566
|
-
getSearchProducts:
|
|
1567
|
-
getSearchSuggestedTerms:
|
|
1568
|
-
getSearchTopSearchs:
|
|
1569
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1563
|
+
getSearchAutoCompleteSuggestions: nn,
|
|
1564
|
+
getSearchCrossellingProducts: vn,
|
|
1565
|
+
getSearchFacets: _n,
|
|
1566
|
+
getSearchProducts: yn,
|
|
1567
|
+
getSearchSuggestedTerms: In,
|
|
1568
|
+
getSearchTopSearchs: Pn
|
|
1569
|
+
}, Symbol.toStringTag, { value: "Module" })), Sn = c.object({
|
|
1570
1570
|
masterDataEntity: c.string().nonNullable(),
|
|
1571
1571
|
payload: c.object().shape({}).nullable()
|
|
1572
1572
|
});
|
|
1573
|
-
async function
|
|
1573
|
+
async function Cn({
|
|
1574
1574
|
apiUrl: e,
|
|
1575
1575
|
body: t,
|
|
1576
1576
|
fetchOptions: r
|
|
@@ -1579,7 +1579,7 @@ async function En({
|
|
|
1579
1579
|
console.error("[ERROR FETCHING] Body is required");
|
|
1580
1580
|
return;
|
|
1581
1581
|
}
|
|
1582
|
-
await
|
|
1582
|
+
await Sn.validate(t);
|
|
1583
1583
|
const { masterDataEntity: n, payload: a } = t, o = `${e}/api/dataentities/${n}/documents`;
|
|
1584
1584
|
return T(o, {
|
|
1585
1585
|
method: "POST",
|
|
@@ -1589,21 +1589,21 @@ async function En({
|
|
|
1589
1589
|
...r
|
|
1590
1590
|
});
|
|
1591
1591
|
}
|
|
1592
|
-
const
|
|
1592
|
+
const kn = c.object().shape({
|
|
1593
1593
|
_where: c.string().optional(),
|
|
1594
1594
|
_fields: c.string().optional(),
|
|
1595
1595
|
_sort: c.string().optional(),
|
|
1596
1596
|
_from: c.number().integer().min(0).optional(),
|
|
1597
1597
|
_to: c.number().integer().min(0).optional(),
|
|
1598
1598
|
_keyword: c.string().optional()
|
|
1599
|
-
}),
|
|
1599
|
+
}), An = c.object({
|
|
1600
1600
|
masterDataEntity: c.string().required(),
|
|
1601
|
-
searchFields:
|
|
1601
|
+
searchFields: kn,
|
|
1602
1602
|
headers: c.object().shape({
|
|
1603
1603
|
"REST-Range": c.string().notRequired()
|
|
1604
1604
|
})
|
|
1605
1605
|
});
|
|
1606
|
-
async function
|
|
1606
|
+
async function En({
|
|
1607
1607
|
apiUrl: e,
|
|
1608
1608
|
body: t,
|
|
1609
1609
|
fetchOptions: r
|
|
@@ -1613,7 +1613,7 @@ async function qn({
|
|
|
1613
1613
|
return;
|
|
1614
1614
|
}
|
|
1615
1615
|
const n = new URLSearchParams();
|
|
1616
|
-
await
|
|
1616
|
+
await An.validate(t);
|
|
1617
1617
|
const { masterDataEntity: a, searchFields: o, headers: l } = t;
|
|
1618
1618
|
o && Object.entries(o).forEach(([g, s]) => {
|
|
1619
1619
|
n.append(g, String(s));
|
|
@@ -1641,12 +1641,12 @@ async function qn({
|
|
|
1641
1641
|
} while (d);
|
|
1642
1642
|
return i;
|
|
1643
1643
|
}
|
|
1644
|
-
const
|
|
1644
|
+
const On = c.object({
|
|
1645
1645
|
dataEntityName: c.string().required(),
|
|
1646
1646
|
id: c.string().required(),
|
|
1647
1647
|
fieldsToBeUpdated: c.object().shape({})
|
|
1648
1648
|
});
|
|
1649
|
-
async function
|
|
1649
|
+
async function Tn({
|
|
1650
1650
|
apiUrl: e,
|
|
1651
1651
|
body: t,
|
|
1652
1652
|
fetchOptions: r
|
|
@@ -1655,7 +1655,7 @@ async function jn({
|
|
|
1655
1655
|
console.error("[ERROR FETCHING] Body is required");
|
|
1656
1656
|
return;
|
|
1657
1657
|
}
|
|
1658
|
-
await
|
|
1658
|
+
await On.validate(t);
|
|
1659
1659
|
const { dataEntityName: n, id: a, fieldsToBeUpdated: o } = t, l = `${e}/api/dataentities/${n}/documents/${a}`;
|
|
1660
1660
|
return T(l, {
|
|
1661
1661
|
body: {
|
|
@@ -1665,13 +1665,13 @@ async function jn({
|
|
|
1665
1665
|
...r
|
|
1666
1666
|
});
|
|
1667
1667
|
}
|
|
1668
|
-
const
|
|
1668
|
+
const qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1669
1669
|
__proto__: null,
|
|
1670
|
-
getSearchMasterdata:
|
|
1671
|
-
patchUpdateMasterdata:
|
|
1672
|
-
postMasterdata:
|
|
1670
|
+
getSearchMasterdata: En,
|
|
1671
|
+
patchUpdateMasterdata: Tn,
|
|
1672
|
+
postMasterdata: Cn
|
|
1673
1673
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1674
|
-
async function
|
|
1674
|
+
async function Nn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
|
|
1675
1675
|
const { productIds: a } = e;
|
|
1676
1676
|
if (!a)
|
|
1677
1677
|
return console.error("[ERROR FETCHING] productIds is required"), [];
|
|
@@ -1786,9 +1786,9 @@ async function Fn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
|
|
|
1786
1786
|
};
|
|
1787
1787
|
});
|
|
1788
1788
|
}
|
|
1789
|
-
const
|
|
1789
|
+
const jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1790
1790
|
__proto__: null,
|
|
1791
|
-
getWishlistProducts:
|
|
1791
|
+
getWishlistProducts: Nn
|
|
1792
1792
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1793
1793
|
var _e = { exports: {} }, rt = {}, Ie = {}, nt = {}, at = {};
|
|
1794
1794
|
(function(e) {
|
|
@@ -2195,23 +2195,23 @@ var lt = {};
|
|
|
2195
2195
|
}
|
|
2196
2196
|
}
|
|
2197
2197
|
})(lt);
|
|
2198
|
-
var de = {}, xe = Object.defineProperty,
|
|
2198
|
+
var de = {}, xe = Object.defineProperty, Fn = Object.getOwnPropertyDescriptor, $n = Object.getOwnPropertyNames, Ln = Object.prototype.hasOwnProperty, Dn = (e, t) => {
|
|
2199
2199
|
for (var r in t)
|
|
2200
2200
|
xe(e, r, { get: t[r], enumerable: !0 });
|
|
2201
|
-
},
|
|
2201
|
+
}, Un = (e, t, r, n) => {
|
|
2202
2202
|
if (t && typeof t == "object" || typeof t == "function")
|
|
2203
|
-
for (let a of
|
|
2204
|
-
!
|
|
2203
|
+
for (let a of $n(t))
|
|
2204
|
+
!Ln.call(e, a) && a !== r && xe(e, a, { get: () => t[a], enumerable: !(n = Fn(t, a)) || n.enumerable });
|
|
2205
2205
|
return e;
|
|
2206
|
-
},
|
|
2207
|
-
|
|
2208
|
-
RequestCookies: () =>
|
|
2209
|
-
ResponseCookies: () =>
|
|
2206
|
+
}, Hn = (e) => Un(xe({}, "__esModule", { value: !0 }), e), ct = {};
|
|
2207
|
+
Dn(ct, {
|
|
2208
|
+
RequestCookies: () => Kn,
|
|
2209
|
+
ResponseCookies: () => Xn,
|
|
2210
2210
|
parseCookie: () => Se,
|
|
2211
2211
|
parseSetCookie: () => ut,
|
|
2212
2212
|
stringifyCookie: () => X
|
|
2213
2213
|
});
|
|
2214
|
-
var
|
|
2214
|
+
var Mn = Hn(ct);
|
|
2215
2215
|
function X(e) {
|
|
2216
2216
|
var t;
|
|
2217
2217
|
const r = [
|
|
@@ -2268,28 +2268,28 @@ function ut(e) {
|
|
|
2268
2268
|
...l && { httpOnly: !0 },
|
|
2269
2269
|
...typeof i == "string" && { maxAge: Number(i) },
|
|
2270
2270
|
path: d,
|
|
2271
|
-
...g && { sameSite:
|
|
2271
|
+
...g && { sameSite: Gn(g) },
|
|
2272
2272
|
...s && { secure: !0 },
|
|
2273
|
-
...w && { priority:
|
|
2273
|
+
...w && { priority: Wn(w) },
|
|
2274
2274
|
...u && { partitioned: !0 }
|
|
2275
2275
|
};
|
|
2276
|
-
return
|
|
2276
|
+
return Bn(v);
|
|
2277
2277
|
}
|
|
2278
|
-
function
|
|
2278
|
+
function Bn(e) {
|
|
2279
2279
|
const t = {};
|
|
2280
2280
|
for (const r in e)
|
|
2281
2281
|
e[r] && (t[r] = e[r]);
|
|
2282
2282
|
return t;
|
|
2283
2283
|
}
|
|
2284
|
-
var
|
|
2285
|
-
function
|
|
2286
|
-
return e = e.toLowerCase(),
|
|
2284
|
+
var zn = ["strict", "lax", "none"];
|
|
2285
|
+
function Gn(e) {
|
|
2286
|
+
return e = e.toLowerCase(), zn.includes(e) ? e : void 0;
|
|
2287
2287
|
}
|
|
2288
|
-
var
|
|
2289
|
-
function
|
|
2290
|
-
return e = e.toLowerCase(),
|
|
2288
|
+
var Vn = ["low", "medium", "high"];
|
|
2289
|
+
function Wn(e) {
|
|
2290
|
+
return e = e.toLowerCase(), Vn.includes(e) ? e : void 0;
|
|
2291
2291
|
}
|
|
2292
|
-
function
|
|
2292
|
+
function Qn(e) {
|
|
2293
2293
|
if (!e)
|
|
2294
2294
|
return [];
|
|
2295
2295
|
var t = [], r = 0, n, a, o, l, i;
|
|
@@ -2313,7 +2313,7 @@ function Zn(e) {
|
|
|
2313
2313
|
}
|
|
2314
2314
|
return t;
|
|
2315
2315
|
}
|
|
2316
|
-
var
|
|
2316
|
+
var Kn = class {
|
|
2317
2317
|
constructor(e) {
|
|
2318
2318
|
this._parsed = /* @__PURE__ */ new Map(), this._headers = e;
|
|
2319
2319
|
const t = e.get("cookie");
|
|
@@ -2379,12 +2379,12 @@ var Jn = class {
|
|
|
2379
2379
|
toString() {
|
|
2380
2380
|
return [...this._parsed.values()].map((e) => `${e.name}=${encodeURIComponent(e.value)}`).join("; ");
|
|
2381
2381
|
}
|
|
2382
|
-
},
|
|
2382
|
+
}, Xn = class {
|
|
2383
2383
|
constructor(e) {
|
|
2384
2384
|
this._parsed = /* @__PURE__ */ new Map();
|
|
2385
2385
|
var t, r, n;
|
|
2386
2386
|
this._headers = e;
|
|
2387
|
-
const a = (n = (r = (t = e.getSetCookie) == null ? void 0 : t.call(e)) != null ? r : e.get("set-cookie")) != null ? n : [], o = Array.isArray(a) ? a :
|
|
2387
|
+
const a = (n = (r = (t = e.getSetCookie) == null ? void 0 : t.call(e)) != null ? r : e.get("set-cookie")) != null ? n : [], o = Array.isArray(a) ? a : Qn(a);
|
|
2388
2388
|
for (const l of o) {
|
|
2389
2389
|
const i = ut(l);
|
|
2390
2390
|
i && this._parsed.set(i.name, i);
|
|
@@ -2416,7 +2416,7 @@ var Jn = class {
|
|
|
2416
2416
|
*/
|
|
2417
2417
|
set(...e) {
|
|
2418
2418
|
const [t, r, n] = e.length === 1 ? [e[0].name, e[0].value, e[0]] : e, a = this._parsed;
|
|
2419
|
-
return a.set(t,
|
|
2419
|
+
return a.set(t, Jn({ name: t, value: r, ...n })), Zn(a, this._headers), this;
|
|
2420
2420
|
}
|
|
2421
2421
|
/**
|
|
2422
2422
|
* {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
|
|
@@ -2432,14 +2432,14 @@ var Jn = class {
|
|
|
2432
2432
|
return [...this._parsed.values()].map(X).join("; ");
|
|
2433
2433
|
}
|
|
2434
2434
|
};
|
|
2435
|
-
function
|
|
2435
|
+
function Zn(e, t) {
|
|
2436
2436
|
t.delete("set-cookie");
|
|
2437
2437
|
for (const [, r] of e) {
|
|
2438
2438
|
const n = X(r);
|
|
2439
2439
|
t.append("set-cookie", n);
|
|
2440
2440
|
}
|
|
2441
2441
|
}
|
|
2442
|
-
function
|
|
2442
|
+
function Jn(e = { name: "", value: "" }) {
|
|
2443
2443
|
return typeof e.expires == "number" && (e.expires = new Date(e.expires)), e.maxAge && (e.expires = new Date(Date.now() + e.maxAge * 1e3)), (e.path === null || e.path === void 0) && (e.path = "/"), e;
|
|
2444
2444
|
}
|
|
2445
2445
|
(function(e) {
|
|
@@ -2463,7 +2463,7 @@ function ta(e = { name: "", value: "" }) {
|
|
|
2463
2463
|
return r.stringifyCookie;
|
|
2464
2464
|
}
|
|
2465
2465
|
});
|
|
2466
|
-
const r =
|
|
2466
|
+
const r = Mn;
|
|
2467
2467
|
})(de);
|
|
2468
2468
|
(function(e) {
|
|
2469
2469
|
Object.defineProperty(e, "__esModule", {
|
|
@@ -2701,7 +2701,7 @@ var Re = {}, ht = { exports: {} };
|
|
|
2701
2701
|
(() => {
|
|
2702
2702
|
var e = { 226: function(a, o) {
|
|
2703
2703
|
(function(l, i) {
|
|
2704
|
-
var d = "1.0.35", g = "", s = "?", u = "function", w = "undefined", v = "object", y = "string", _ = "major", p = "model", b = "name", m = "type", h = "vendor", f = "version", A = "architecture", N = "console", I = "mobile", R = "tablet", C = "smarttv", j = "wearable",
|
|
2704
|
+
var d = "1.0.35", g = "", s = "?", u = "function", w = "undefined", v = "object", y = "string", _ = "major", p = "model", b = "name", m = "type", h = "vendor", f = "version", A = "architecture", N = "console", I = "mobile", R = "tablet", C = "smarttv", j = "wearable", $ = "embedded", D = 350, U = "Amazon", B = "Apple", Z = "ASUS", Ce = "BlackBerry", G = "Browser", J = "Chrome", gt = "Edge", Y = "Firefox", ee = "Google", ke = "Huawei", me = "LG", he = "Microsoft", Ae = "Motorola", te = "Opera", fe = "Samsung", Ee = "Sharp", re = "Sony", ge = "Xiaomi", be = "Zebra", Oe = "Facebook", Te = "Chromium OS", qe = "Mac OS", bt = function(S, E) {
|
|
2705
2705
|
var x = {};
|
|
2706
2706
|
for (var q in S)
|
|
2707
2707
|
E[q] && E[q].length % 2 === 0 ? x[q] = E[q].concat(S[q]) : x[q] = S[q];
|
|
@@ -2721,11 +2721,11 @@ var Re = {}, ht = { exports: {} };
|
|
|
2721
2721
|
return S = S.replace(/^\s\s*/, g), typeof E === w ? S : S.substring(0, D);
|
|
2722
2722
|
}, K = function(S, E) {
|
|
2723
2723
|
for (var x = 0, q, z, H, k, P, M; x < E.length && !P; ) {
|
|
2724
|
-
var ye = E[x],
|
|
2724
|
+
var ye = E[x], $e = E[x + 1];
|
|
2725
2725
|
for (q = z = 0; q < ye.length && !P && ye[q]; )
|
|
2726
2726
|
if (P = ye[q++].exec(S), P)
|
|
2727
|
-
for (H = 0; H <
|
|
2728
|
-
M = P[++z], k =
|
|
2727
|
+
for (H = 0; H < $e.length; H++)
|
|
2728
|
+
M = P[++z], k = $e[H], typeof k === v && k.length > 0 ? k.length === 2 ? typeof k[1] == u ? this[k[0]] = k[1].call(this, M) : this[k[0]] = k[1] : k.length === 3 ? typeof k[1] === u && !(k[1].exec && k[1].test) ? this[k[0]] = M ? k[1].call(this, M, k[2]) : i : this[k[0]] = M ? M.replace(k[1], k[2]) : i : k.length === 4 && (this[k[0]] = M ? k[3].call(this, M.replace(k[1], k[2])) : i) : this[k] = M || i;
|
|
2729
2729
|
x += 2;
|
|
2730
2730
|
}
|
|
2731
2731
|
}, ve = function(S, E) {
|
|
@@ -2737,10 +2737,10 @@ var Re = {}, ht = { exports: {} };
|
|
|
2737
2737
|
} else if (Ne(E[x], S))
|
|
2738
2738
|
return x === s ? i : x;
|
|
2739
2739
|
return S;
|
|
2740
|
-
}, vt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, je = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, $e = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [f, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [f, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, f], [/opios[\/ ]+([\w\.]+)/i], [f, [b, te + " Mini"]], [/\bopr\/([\w\.]+)/i], [f, [b, te]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [b, f], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [f, [b, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [f, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [f, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [f, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [f, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [f, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + G], f], [/\bfocus\/([\w\.]+)/i], [f, [b, Y + " Focus"]], [/\bopt\/([\w\.]+)/i], [f, [b, te + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [f, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [f, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [f, [b, te + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [f, [b, "MIUI " + G]], [/fxios\/([-\w\.]+)/i], [f, [b, Y]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + G]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + G], f], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], f], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, f], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, Oe], f], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, f], [/\bgsa\/([\w\.]+) .*safari\//i], [f, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [f, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [f, [b, J + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, J + " WebView"], f], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [f, [b, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, f], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [f, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [f, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [f, ve, vt]], [/(webkit|khtml)\/([\w\.]+)/i], [b, f], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], f], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [f, [b, Y + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [b, f], [/(cobalt)\/([\w\.]+)/i], [b, [f, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[A, "amd64"]], [/(ia32(?=;))/i], [[A, Q]], [/((?:i[346]|x)86)[;\)]/i], [[A, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[A, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[A, "armhf"]], [/windows (ce|mobile); ppc;/i], [[A, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[A, /ower/, g, Q]], [/(sun4\w)[;\)]/i], [[A, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[A, Q]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [p, [h, fe], [m, R]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [p, [h, fe], [m, I]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [p, [h, B], [m, I]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [p, [h, B], [m, R]], [/(macintosh);/i], [p, [h, B]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [p, [h, Ee], [m, I]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [p, [h, ke], [m, R]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [p, [h, ke], [m, I]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[p, /_/g, " "], [h, ge], [m, I]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[p, /_/g, " "], [h, ge], [m, R]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [p, [h, "OPPO"], [m, I]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [p, [h, "Vivo"], [m, I]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [p, [h, "Realme"], [m, I]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [p, [h, Ae], [m, I]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [p, [h, Ae], [m, R]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [p, [h, me], [m, R]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [p, [h, me], [m, I]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [p, [h, "Lenovo"], [m, R]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[p, /_/g, " "], [h, "Nokia"], [m, I]], [/(pixel c)\b/i], [p, [h, ee], [m, R]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [p, [h, ee], [m, I]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [p, [h, re], [m, I]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[p, "Xperia Tablet"], [h, re], [m, R]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [p, [h, "OnePlus"], [m, I]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [p, [h, U], [m, R]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[p, /(.+)/g, "Fire Phone $1"], [h, U], [m, I]], [/(playbook);[-\w\),; ]+(rim)/i], [p, h, [m, R]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [p, [h, Ce], [m, I]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [p, [h, Z], [m, R]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [p, [h, Z], [m, I]], [/(nexus 9)/i], [p, [h, "HTC"], [m, R]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [h, [p, /_/g, " "], [m, I]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [p, [h, "Acer"], [m, R]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [p, [h, "Meizu"], [m, I]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [h, p, [m, I]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [h, p, [m, R]], [/(surface duo)/i], [p, [h, he], [m, R]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [p, [h, "Fairphone"], [m, I]], [/(u304aa)/i], [p, [h, "AT&T"], [m, I]], [/\bsie-(\w*)/i], [p, [h, "Siemens"], [m, I]], [/\b(rct\w+) b/i], [p, [h, "RCA"], [m, R]], [/\b(venue[\d ]{2,7}) b/i], [p, [h, "Dell"], [m, R]], [/\b(q(?:mv|ta)\w+) b/i], [p, [h, "Verizon"], [m, R]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [p, [h, "Barnes & Noble"], [m, R]], [/\b(tm\d{3}\w+) b/i], [p, [h, "NuVision"], [m, R]], [/\b(k88) b/i], [p, [h, "ZTE"], [m, R]], [/\b(nx\d{3}j) b/i], [p, [h, "ZTE"], [m, I]], [/\b(gen\d{3}) b.+49h/i], [p, [h, "Swiss"], [m, I]], [/\b(zur\d{3}) b/i], [p, [h, "Swiss"], [m, R]], [/\b((zeki)?tb.*\b) b/i], [p, [h, "Zeki"], [m, R]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[h, "Dragon Touch"], p, [m, R]], [/\b(ns-?\w{0,9}) b/i], [p, [h, "Insignia"], [m, R]], [/\b((nxa|next)-?\w{0,9}) b/i], [p, [h, "NextBook"], [m, R]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[h, "Voice"], p, [m, I]], [/\b(lvtel\-)?(v1[12]) b/i], [[h, "LvTel"], p, [m, I]], [/\b(ph-1) /i], [p, [h, "Essential"], [m, I]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [p, [h, "Envizen"], [m, R]], [/\b(trio[-\w\. ]+) b/i], [p, [h, "MachSpeed"], [m, R]], [/\btu_(1491) b/i], [p, [h, "Rotor"], [m, R]], [/(shield[\w ]+) b/i], [p, [h, "Nvidia"], [m, R]], [/(sprint) (\w+)/i], [h, p, [m, I]], [/(kin\.[onetw]{3})/i], [[p, /\./g, " "], [h, he], [m, I]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [p, [h, be], [m, R]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [p, [h, be], [m, I]], [/smart-tv.+(samsung)/i], [h, [m, C]], [/hbbtv.+maple;(\d+)/i], [[p, /^/, "SmartTV"], [h, fe], [m, C]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[h, me], [m, C]], [/(apple) ?tv/i], [h, [p, B + " TV"], [m, C]], [/crkey/i], [[p, J + "cast"], [h, ee], [m, C]], [/droid.+aft(\w)( bui|\))/i], [p, [h, U], [m, C]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [p, [h, Ee], [m, C]], [/(bravia[\w ]+)( bui|\))/i], [p, [h, re], [m, C]], [/(mitv-\w{5}) bui/i], [p, [h, ge], [m, C]], [/Hbbtv.*(technisat) (.*);/i], [h, p, [m, C]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[h, we], [p, we], [m, C]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[m, C]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [h, p, [m, N]], [/droid.+; (shield) bui/i], [p, [h, "Nvidia"], [m, N]], [/(playstation [345portablevi]+)/i], [p, [h, re], [m, N]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [p, [h, he], [m, N]], [/((pebble))app/i], [h, p, [m, j]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [p, [h, B], [m, j]], [/droid.+; (glass) \d/i], [p, [h, ee], [m, j]], [/droid.+; (wt63?0{2,3})\)/i], [p, [h, be], [m, j]], [/(quest( 2| pro)?)/i], [p, [h, Oe], [m, j]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [h, [m, F]], [/(aeobc)\b/i], [p, [h, U], [m, F]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [p, [m, I]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [p, [m, R]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[m, R]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[m, I]], [/(android[-\w\. ]{0,9});.+buil/i], [p, [h, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [f, [b, gt + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [f, [b, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [b, f], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [f, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, f], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [f, ve, je]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [f, ve, je]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[f, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, qe], [f, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [f, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, f], [/\(bb(10);/i], [f, [b, Ce]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [f, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [f, [b, Y + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [f, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [f, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [f, [b, J + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, Te], f], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [b, f], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], f], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, f]] }, L = function(S, E) {
|
|
2740
|
+
}, vt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, je = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Fe = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [f, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [f, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, f], [/opios[\/ ]+([\w\.]+)/i], [f, [b, te + " Mini"]], [/\bopr\/([\w\.]+)/i], [f, [b, te]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [b, f], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [f, [b, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [f, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [f, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [f, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [f, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [f, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + G], f], [/\bfocus\/([\w\.]+)/i], [f, [b, Y + " Focus"]], [/\bopt\/([\w\.]+)/i], [f, [b, te + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [f, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [f, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [f, [b, te + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [f, [b, "MIUI " + G]], [/fxios\/([-\w\.]+)/i], [f, [b, Y]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + G]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + G], f], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], f], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, f], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, Oe], f], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, f], [/\bgsa\/([\w\.]+) .*safari\//i], [f, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [f, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [f, [b, J + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, J + " WebView"], f], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [f, [b, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, f], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [f, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [f, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [f, ve, vt]], [/(webkit|khtml)\/([\w\.]+)/i], [b, f], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], f], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [f, [b, Y + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [b, f], [/(cobalt)\/([\w\.]+)/i], [b, [f, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[A, "amd64"]], [/(ia32(?=;))/i], [[A, Q]], [/((?:i[346]|x)86)[;\)]/i], [[A, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[A, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[A, "armhf"]], [/windows (ce|mobile); ppc;/i], [[A, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[A, /ower/, g, Q]], [/(sun4\w)[;\)]/i], [[A, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[A, Q]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [p, [h, fe], [m, R]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [p, [h, fe], [m, I]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [p, [h, B], [m, I]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [p, [h, B], [m, R]], [/(macintosh);/i], [p, [h, B]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [p, [h, Ee], [m, I]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [p, [h, ke], [m, R]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [p, [h, ke], [m, I]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[p, /_/g, " "], [h, ge], [m, I]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[p, /_/g, " "], [h, ge], [m, R]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [p, [h, "OPPO"], [m, I]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [p, [h, "Vivo"], [m, I]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [p, [h, "Realme"], [m, I]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [p, [h, Ae], [m, I]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [p, [h, Ae], [m, R]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [p, [h, me], [m, R]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [p, [h, me], [m, I]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [p, [h, "Lenovo"], [m, R]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[p, /_/g, " "], [h, "Nokia"], [m, I]], [/(pixel c)\b/i], [p, [h, ee], [m, R]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [p, [h, ee], [m, I]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [p, [h, re], [m, I]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[p, "Xperia Tablet"], [h, re], [m, R]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [p, [h, "OnePlus"], [m, I]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [p, [h, U], [m, R]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[p, /(.+)/g, "Fire Phone $1"], [h, U], [m, I]], [/(playbook);[-\w\),; ]+(rim)/i], [p, h, [m, R]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [p, [h, Ce], [m, I]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [p, [h, Z], [m, R]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [p, [h, Z], [m, I]], [/(nexus 9)/i], [p, [h, "HTC"], [m, R]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [h, [p, /_/g, " "], [m, I]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [p, [h, "Acer"], [m, R]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [p, [h, "Meizu"], [m, I]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [h, p, [m, I]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [h, p, [m, R]], [/(surface duo)/i], [p, [h, he], [m, R]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [p, [h, "Fairphone"], [m, I]], [/(u304aa)/i], [p, [h, "AT&T"], [m, I]], [/\bsie-(\w*)/i], [p, [h, "Siemens"], [m, I]], [/\b(rct\w+) b/i], [p, [h, "RCA"], [m, R]], [/\b(venue[\d ]{2,7}) b/i], [p, [h, "Dell"], [m, R]], [/\b(q(?:mv|ta)\w+) b/i], [p, [h, "Verizon"], [m, R]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [p, [h, "Barnes & Noble"], [m, R]], [/\b(tm\d{3}\w+) b/i], [p, [h, "NuVision"], [m, R]], [/\b(k88) b/i], [p, [h, "ZTE"], [m, R]], [/\b(nx\d{3}j) b/i], [p, [h, "ZTE"], [m, I]], [/\b(gen\d{3}) b.+49h/i], [p, [h, "Swiss"], [m, I]], [/\b(zur\d{3}) b/i], [p, [h, "Swiss"], [m, R]], [/\b((zeki)?tb.*\b) b/i], [p, [h, "Zeki"], [m, R]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[h, "Dragon Touch"], p, [m, R]], [/\b(ns-?\w{0,9}) b/i], [p, [h, "Insignia"], [m, R]], [/\b((nxa|next)-?\w{0,9}) b/i], [p, [h, "NextBook"], [m, R]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[h, "Voice"], p, [m, I]], [/\b(lvtel\-)?(v1[12]) b/i], [[h, "LvTel"], p, [m, I]], [/\b(ph-1) /i], [p, [h, "Essential"], [m, I]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [p, [h, "Envizen"], [m, R]], [/\b(trio[-\w\. ]+) b/i], [p, [h, "MachSpeed"], [m, R]], [/\btu_(1491) b/i], [p, [h, "Rotor"], [m, R]], [/(shield[\w ]+) b/i], [p, [h, "Nvidia"], [m, R]], [/(sprint) (\w+)/i], [h, p, [m, I]], [/(kin\.[onetw]{3})/i], [[p, /\./g, " "], [h, he], [m, I]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [p, [h, be], [m, R]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [p, [h, be], [m, I]], [/smart-tv.+(samsung)/i], [h, [m, C]], [/hbbtv.+maple;(\d+)/i], [[p, /^/, "SmartTV"], [h, fe], [m, C]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[h, me], [m, C]], [/(apple) ?tv/i], [h, [p, B + " TV"], [m, C]], [/crkey/i], [[p, J + "cast"], [h, ee], [m, C]], [/droid.+aft(\w)( bui|\))/i], [p, [h, U], [m, C]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [p, [h, Ee], [m, C]], [/(bravia[\w ]+)( bui|\))/i], [p, [h, re], [m, C]], [/(mitv-\w{5}) bui/i], [p, [h, ge], [m, C]], [/Hbbtv.*(technisat) (.*);/i], [h, p, [m, C]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[h, we], [p, we], [m, C]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[m, C]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [h, p, [m, N]], [/droid.+; (shield) bui/i], [p, [h, "Nvidia"], [m, N]], [/(playstation [345portablevi]+)/i], [p, [h, re], [m, N]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [p, [h, he], [m, N]], [/((pebble))app/i], [h, p, [m, j]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [p, [h, B], [m, j]], [/droid.+; (glass) \d/i], [p, [h, ee], [m, j]], [/droid.+; (wt63?0{2,3})\)/i], [p, [h, be], [m, j]], [/(quest( 2| pro)?)/i], [p, [h, Oe], [m, j]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [h, [m, $]], [/(aeobc)\b/i], [p, [h, U], [m, $]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [p, [m, I]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [p, [m, R]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[m, R]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[m, I]], [/(android[-\w\. ]{0,9});.+buil/i], [p, [h, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [f, [b, gt + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [f, [b, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [b, f], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [f, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, f], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [f, ve, je]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [f, ve, je]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[f, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, qe], [f, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [f, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, f], [/\(bb(10);/i], [f, [b, Ce]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [f, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [f, [b, Y + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [f, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [f, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [f, [b, J + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, Te], f], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [b, f], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], f], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, f]] }, L = function(S, E) {
|
|
2741
2741
|
if (typeof S === v && (E = S, S = i), !(this instanceof L))
|
|
2742
2742
|
return new L(S, E).getResult();
|
|
2743
|
-
var x = typeof l !== w && l.navigator ? l.navigator : i, q = S || (x && x.userAgent ? x.userAgent : g), z = x && x.userAgentData ? x.userAgentData : i, H = E ? bt(
|
|
2743
|
+
var x = typeof l !== w && l.navigator ? l.navigator : i, q = S || (x && x.userAgent ? x.userAgent : g), z = x && x.userAgentData ? x.userAgentData : i, H = E ? bt(Fe, E) : Fe, k = x && x.userAgent == q;
|
|
2744
2744
|
return this.getBrowser = function() {
|
|
2745
2745
|
var P = {};
|
|
2746
2746
|
return P[b] = i, P[f] = i, K.call(P, q, H.browser), P[_] = wt(P[f]), k && x && x.brave && typeof x.brave.isBrave == u && (P[b] = "Brave"), P;
|
|
@@ -2764,7 +2764,7 @@ var Re = {}, ht = { exports: {} };
|
|
|
2764
2764
|
return q = typeof P === y && P.length > D ? we(P, D) : P, this;
|
|
2765
2765
|
}, this.setUA(q), this;
|
|
2766
2766
|
};
|
|
2767
|
-
L.VERSION = d, L.BROWSER = ne([b, f, _]), L.CPU = ne([A]), L.DEVICE = ne([p, h, m, N, I, C, R, j,
|
|
2767
|
+
L.VERSION = d, L.BROWSER = ne([b, f, _]), L.CPU = ne([A]), L.DEVICE = ne([p, h, m, N, I, C, R, j, $]), L.ENGINE = L.OS = ne([b, f]), typeof o !== w ? (a.exports && (o = a.exports = L), o.UAParser = L) : typeof l !== w && (l.UAParser = L);
|
|
2768
2768
|
var V = typeof l !== w && (l.jQuery || l.Zepto);
|
|
2769
2769
|
if (V && !V.ua) {
|
|
2770
2770
|
var ae = new L();
|
|
@@ -2795,7 +2795,7 @@ var Re = {}, ht = { exports: {} };
|
|
|
2795
2795
|
var n = r(226);
|
|
2796
2796
|
ht.exports = n;
|
|
2797
2797
|
})();
|
|
2798
|
-
var
|
|
2798
|
+
var Yn = ht.exports;
|
|
2799
2799
|
(function(e) {
|
|
2800
2800
|
Object.defineProperty(e, "__esModule", {
|
|
2801
2801
|
value: !0
|
|
@@ -2817,7 +2817,7 @@ var ra = ht.exports;
|
|
|
2817
2817
|
return o;
|
|
2818
2818
|
}
|
|
2819
2819
|
});
|
|
2820
|
-
const r = /* @__PURE__ */ n(
|
|
2820
|
+
const r = /* @__PURE__ */ n(Yn);
|
|
2821
2821
|
function n(i) {
|
|
2822
2822
|
return i && i.__esModule ? i : {
|
|
2823
2823
|
default: i
|
|
@@ -2863,7 +2863,7 @@ var ft = {};
|
|
|
2863
2863
|
e.exports = r, t.NextRequest = r.NextRequest, t.NextResponse = r.NextResponse, t.ImageResponse = r.ImageResponse, t.userAgentFromString = r.userAgentFromString, t.userAgent = r.userAgent, t.URLPattern = r.URLPattern;
|
|
2864
2864
|
})(_e, _e.exports);
|
|
2865
2865
|
var Ue = _e.exports;
|
|
2866
|
-
async function
|
|
2866
|
+
async function ea({ apiUrl: e, extraData: t, fetchOptions: r }) {
|
|
2867
2867
|
var I, R;
|
|
2868
2868
|
const n = `${e}/api/dataentities`, a = `${e}/api/io/v1/extrato/get-total`, {
|
|
2869
2869
|
MASTER_DATA_ENTITY: o,
|
|
@@ -2877,11 +2877,11 @@ async function na({ apiUrl: e, extraData: t, fetchOptions: r }) {
|
|
|
2877
2877
|
{ error: "Token not found. Unauthorized" },
|
|
2878
2878
|
{ status: 200 }
|
|
2879
2879
|
);
|
|
2880
|
-
const { sub: _, userId: p } =
|
|
2880
|
+
const { sub: _, userId: p } = Ut(y), b = Object.fromEntries(
|
|
2881
2881
|
Object.entries(d).map(([C, j]) => [C, String(j || "")])
|
|
2882
|
-
), m = async (C, j,
|
|
2882
|
+
), m = async (C, j, $ = !1) => {
|
|
2883
2883
|
try {
|
|
2884
|
-
const U = await fetch(`${
|
|
2884
|
+
const U = await fetch(`${$ ? a : n}${C}`, {
|
|
2885
2885
|
headers: {
|
|
2886
2886
|
...j,
|
|
2887
2887
|
...r == null ? void 0 : r.headers
|
|
@@ -2909,41 +2909,36 @@ async function na({ apiUrl: e, extraData: t, fetchOptions: r }) {
|
|
|
2909
2909
|
) : null;
|
|
2910
2910
|
return { ...h, ...A, userCredits: N, sub: _, userId: p };
|
|
2911
2911
|
}
|
|
2912
|
-
const
|
|
2912
|
+
const ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2913
2913
|
__proto__: null,
|
|
2914
|
-
getUserData:
|
|
2915
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
cms: Ft,
|
|
2924
|
-
search: kn,
|
|
2925
|
-
masterdata: $n,
|
|
2926
|
-
marketingdata: $t,
|
|
2927
|
-
user: aa,
|
|
2914
|
+
getUserData: ea
|
|
2915
|
+
}, Symbol.toStringTag, { value: "Module" })), la = {
|
|
2916
|
+
checkout: Wr,
|
|
2917
|
+
catalog: tn,
|
|
2918
|
+
cms: qt,
|
|
2919
|
+
search: xn,
|
|
2920
|
+
masterdata: qn,
|
|
2921
|
+
marketingdata: Tt,
|
|
2922
|
+
user: ta,
|
|
2928
2923
|
wishlist: {
|
|
2929
|
-
...
|
|
2924
|
+
...jn
|
|
2930
2925
|
}
|
|
2931
|
-
},
|
|
2932
|
-
catalog:
|
|
2933
|
-
search:
|
|
2934
|
-
product:
|
|
2926
|
+
}, ca = {
|
|
2927
|
+
catalog: Lt,
|
|
2928
|
+
search: $t,
|
|
2929
|
+
product: Ft,
|
|
2935
2930
|
cms: {
|
|
2936
|
-
...
|
|
2937
|
-
...
|
|
2931
|
+
...jt,
|
|
2932
|
+
...Nt
|
|
2938
2933
|
}
|
|
2939
|
-
},
|
|
2934
|
+
}, ua = {
|
|
2940
2935
|
template: {
|
|
2941
2936
|
pdp: {}
|
|
2942
2937
|
}
|
|
2943
2938
|
};
|
|
2944
2939
|
export {
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2940
|
+
la as serverAPIs,
|
|
2941
|
+
sa as serverCMS,
|
|
2942
|
+
ua as serverComponents,
|
|
2943
|
+
ca as serverHelpers
|
|
2949
2944
|
};
|