@shoppexio/storefront 1.0.71 → 1.0.72
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/CHANGELOG.md +4 -0
- package/README.md +0 -40
- package/dist/{chunk-ZVOFFURI.js → chunk-UHEFHGZ3.js} +81 -81
- package/dist/chunk-UHEFHGZ3.js.map +1 -0
- package/dist/customer.cjs +80 -80
- package/dist/customer.cjs.map +1 -1
- package/dist/customer.js +1 -1
- package/dist/index.cjs +99 -292
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -38
- package/dist/index.d.ts +15 -38
- package/dist/index.js +20 -212
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-ZVOFFURI.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -71,7 +71,6 @@ __export(src_exports, {
|
|
|
71
71
|
loyalty: () => loyalty,
|
|
72
72
|
me: () => me,
|
|
73
73
|
mergeSettings: () => mergeSettings,
|
|
74
|
-
mountCheckoutChallenge: () => mountCheckoutChallenge,
|
|
75
74
|
normalizeSearchQuery: () => normalizeSearchQuery,
|
|
76
75
|
normalizeStorefrontCustomFields: () => normalizeStorefrontCustomFields,
|
|
77
76
|
order: () => order,
|
|
@@ -256,7 +255,7 @@ var CartError = class _CartError extends ShoppexError {
|
|
|
256
255
|
}
|
|
257
256
|
};
|
|
258
257
|
|
|
259
|
-
//
|
|
258
|
+
// ../../../../../node_modules/.bun/openapi-fetch@0.17.0/node_modules/openapi-fetch/dist/index.mjs
|
|
260
259
|
var PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
261
260
|
var supportsRequestInitExt = () => {
|
|
262
261
|
return typeof process === "object" && Number.parseInt(process?.versions?.node?.substring(0, 2)) >= 18 && process.versions.undici;
|
|
@@ -749,7 +748,7 @@ function getNavigationMenuTitles(slot) {
|
|
|
749
748
|
}
|
|
750
749
|
var NAVIGATION_MENU_SLOTS = Object.keys(NAVIGATION_MENU_SLOT_CONFIG);
|
|
751
750
|
|
|
752
|
-
//
|
|
751
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
753
752
|
var external_exports = {};
|
|
754
753
|
__export(external_exports, {
|
|
755
754
|
$brand: () => $brand,
|
|
@@ -992,7 +991,7 @@ __export(external_exports, {
|
|
|
992
991
|
xor: () => xor
|
|
993
992
|
});
|
|
994
993
|
|
|
995
|
-
//
|
|
994
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/index.js
|
|
996
995
|
var core_exports2 = {};
|
|
997
996
|
__export(core_exports2, {
|
|
998
997
|
$ZodAny: () => $ZodAny,
|
|
@@ -1271,7 +1270,7 @@ __export(core_exports2, {
|
|
|
1271
1270
|
version: () => version
|
|
1272
1271
|
});
|
|
1273
1272
|
|
|
1274
|
-
//
|
|
1273
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/core.js
|
|
1275
1274
|
var _a;
|
|
1276
1275
|
var NEVER = /* @__PURE__ */ Object.freeze({
|
|
1277
1276
|
status: "aborted"
|
|
@@ -1348,7 +1347,7 @@ function config(newConfig) {
|
|
|
1348
1347
|
return globalConfig;
|
|
1349
1348
|
}
|
|
1350
1349
|
|
|
1351
|
-
//
|
|
1350
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/util.js
|
|
1352
1351
|
var util_exports = {};
|
|
1353
1352
|
__export(util_exports, {
|
|
1354
1353
|
BIGINT_FORMAT_RANGES: () => BIGINT_FORMAT_RANGES,
|
|
@@ -2044,7 +2043,7 @@ var Class = class {
|
|
|
2044
2043
|
}
|
|
2045
2044
|
};
|
|
2046
2045
|
|
|
2047
|
-
//
|
|
2046
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/errors.js
|
|
2048
2047
|
var initializer = (inst, def) => {
|
|
2049
2048
|
inst.name = "$ZodError";
|
|
2050
2049
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -2183,7 +2182,7 @@ function prettifyError(error51) {
|
|
|
2183
2182
|
return lines.join("\n");
|
|
2184
2183
|
}
|
|
2185
2184
|
|
|
2186
|
-
//
|
|
2185
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/parse.js
|
|
2187
2186
|
var _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
2188
2187
|
const ctx = _ctx ? { ..._ctx, async: false } : { async: false };
|
|
2189
2188
|
const result = schema._zod.run({ value, issues: [] }, ctx);
|
|
@@ -2271,7 +2270,7 @@ var _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
2271
2270
|
};
|
|
2272
2271
|
var safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
2273
2272
|
|
|
2274
|
-
//
|
|
2273
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/regexes.js
|
|
2275
2274
|
var regexes_exports = {};
|
|
2276
2275
|
__export(regexes_exports, {
|
|
2277
2276
|
base64: () => base64,
|
|
@@ -2430,7 +2429,7 @@ var sha512_hex = /^[0-9a-fA-F]{128}$/;
|
|
|
2430
2429
|
var sha512_base64 = /* @__PURE__ */ fixedBase64(86, "==");
|
|
2431
2430
|
var sha512_base64url = /* @__PURE__ */ fixedBase64url(86);
|
|
2432
2431
|
|
|
2433
|
-
//
|
|
2432
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/checks.js
|
|
2434
2433
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
2435
2434
|
var _a3;
|
|
2436
2435
|
inst._zod ?? (inst._zod = {});
|
|
@@ -2978,7 +2977,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
|
|
|
2978
2977
|
};
|
|
2979
2978
|
});
|
|
2980
2979
|
|
|
2981
|
-
//
|
|
2980
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/doc.js
|
|
2982
2981
|
var Doc = class {
|
|
2983
2982
|
constructor(args = []) {
|
|
2984
2983
|
this.content = [];
|
|
@@ -3014,14 +3013,14 @@ var Doc = class {
|
|
|
3014
3013
|
}
|
|
3015
3014
|
};
|
|
3016
3015
|
|
|
3017
|
-
//
|
|
3016
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/versions.js
|
|
3018
3017
|
var version = {
|
|
3019
3018
|
major: 4,
|
|
3020
3019
|
minor: 4,
|
|
3021
3020
|
patch: 3
|
|
3022
3021
|
};
|
|
3023
3022
|
|
|
3024
|
-
//
|
|
3023
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/schemas.js
|
|
3025
3024
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
3026
3025
|
var _a3;
|
|
3027
3026
|
inst ?? (inst = {});
|
|
@@ -5114,7 +5113,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
5114
5113
|
}
|
|
5115
5114
|
}
|
|
5116
5115
|
|
|
5117
|
-
//
|
|
5116
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/index.js
|
|
5118
5117
|
var locales_exports = {};
|
|
5119
5118
|
__export(locales_exports, {
|
|
5120
5119
|
ar: () => ar_default,
|
|
@@ -5171,7 +5170,7 @@ __export(locales_exports, {
|
|
|
5171
5170
|
zhTW: () => zh_TW_default
|
|
5172
5171
|
});
|
|
5173
5172
|
|
|
5174
|
-
//
|
|
5173
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ar.js
|
|
5175
5174
|
var error = () => {
|
|
5176
5175
|
const Sizable = {
|
|
5177
5176
|
string: { unit: "\u062D\u0631\u0641", verb: "\u0623\u0646 \u064A\u062D\u0648\u064A" },
|
|
@@ -5278,7 +5277,7 @@ function ar_default() {
|
|
|
5278
5277
|
};
|
|
5279
5278
|
}
|
|
5280
5279
|
|
|
5281
|
-
//
|
|
5280
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/az.js
|
|
5282
5281
|
var error2 = () => {
|
|
5283
5282
|
const Sizable = {
|
|
5284
5283
|
string: { unit: "simvol", verb: "olmal\u0131d\u0131r" },
|
|
@@ -5384,7 +5383,7 @@ function az_default() {
|
|
|
5384
5383
|
};
|
|
5385
5384
|
}
|
|
5386
5385
|
|
|
5387
|
-
//
|
|
5386
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/be.js
|
|
5388
5387
|
function getBelarusianPlural(count, one, few, many) {
|
|
5389
5388
|
const absCount = Math.abs(count);
|
|
5390
5389
|
const lastDigit = absCount % 10;
|
|
@@ -5541,7 +5540,7 @@ function be_default() {
|
|
|
5541
5540
|
};
|
|
5542
5541
|
}
|
|
5543
5542
|
|
|
5544
|
-
//
|
|
5543
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/bg.js
|
|
5545
5544
|
var error4 = () => {
|
|
5546
5545
|
const Sizable = {
|
|
5547
5546
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0430", verb: "\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430" },
|
|
@@ -5662,7 +5661,7 @@ function bg_default() {
|
|
|
5662
5661
|
};
|
|
5663
5662
|
}
|
|
5664
5663
|
|
|
5665
|
-
//
|
|
5664
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ca.js
|
|
5666
5665
|
var error5 = () => {
|
|
5667
5666
|
const Sizable = {
|
|
5668
5667
|
string: { unit: "car\xE0cters", verb: "contenir" },
|
|
@@ -5771,7 +5770,7 @@ function ca_default() {
|
|
|
5771
5770
|
};
|
|
5772
5771
|
}
|
|
5773
5772
|
|
|
5774
|
-
//
|
|
5773
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/cs.js
|
|
5775
5774
|
var error6 = () => {
|
|
5776
5775
|
const Sizable = {
|
|
5777
5776
|
string: { unit: "znak\u016F", verb: "m\xEDt" },
|
|
@@ -5883,7 +5882,7 @@ function cs_default() {
|
|
|
5883
5882
|
};
|
|
5884
5883
|
}
|
|
5885
5884
|
|
|
5886
|
-
//
|
|
5885
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/da.js
|
|
5887
5886
|
var error7 = () => {
|
|
5888
5887
|
const Sizable = {
|
|
5889
5888
|
string: { unit: "tegn", verb: "havde" },
|
|
@@ -5999,7 +5998,7 @@ function da_default() {
|
|
|
5999
5998
|
};
|
|
6000
5999
|
}
|
|
6001
6000
|
|
|
6002
|
-
//
|
|
6001
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/de.js
|
|
6003
6002
|
var error8 = () => {
|
|
6004
6003
|
const Sizable = {
|
|
6005
6004
|
string: { unit: "Zeichen", verb: "zu haben" },
|
|
@@ -6108,7 +6107,7 @@ function de_default() {
|
|
|
6108
6107
|
};
|
|
6109
6108
|
}
|
|
6110
6109
|
|
|
6111
|
-
//
|
|
6110
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/el.js
|
|
6112
6111
|
var error9 = () => {
|
|
6113
6112
|
const Sizable = {
|
|
6114
6113
|
string: { unit: "\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2", verb: "\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9" },
|
|
@@ -6218,7 +6217,7 @@ function el_default() {
|
|
|
6218
6217
|
};
|
|
6219
6218
|
}
|
|
6220
6219
|
|
|
6221
|
-
//
|
|
6220
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/en.js
|
|
6222
6221
|
var error10 = () => {
|
|
6223
6222
|
const Sizable = {
|
|
6224
6223
|
string: { unit: "characters", verb: "to have" },
|
|
@@ -6331,7 +6330,7 @@ function en_default() {
|
|
|
6331
6330
|
};
|
|
6332
6331
|
}
|
|
6333
6332
|
|
|
6334
|
-
//
|
|
6333
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/eo.js
|
|
6335
6334
|
var error11 = () => {
|
|
6336
6335
|
const Sizable = {
|
|
6337
6336
|
string: { unit: "karaktrojn", verb: "havi" },
|
|
@@ -6441,7 +6440,7 @@ function eo_default() {
|
|
|
6441
6440
|
};
|
|
6442
6441
|
}
|
|
6443
6442
|
|
|
6444
|
-
//
|
|
6443
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/es.js
|
|
6445
6444
|
var error12 = () => {
|
|
6446
6445
|
const Sizable = {
|
|
6447
6446
|
string: { unit: "caracteres", verb: "tener" },
|
|
@@ -6574,7 +6573,7 @@ function es_default() {
|
|
|
6574
6573
|
};
|
|
6575
6574
|
}
|
|
6576
6575
|
|
|
6577
|
-
//
|
|
6576
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fa.js
|
|
6578
6577
|
var error13 = () => {
|
|
6579
6578
|
const Sizable = {
|
|
6580
6579
|
string: { unit: "\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631", verb: "\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F" },
|
|
@@ -6689,7 +6688,7 @@ function fa_default() {
|
|
|
6689
6688
|
};
|
|
6690
6689
|
}
|
|
6691
6690
|
|
|
6692
|
-
//
|
|
6691
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fi.js
|
|
6693
6692
|
var error14 = () => {
|
|
6694
6693
|
const Sizable = {
|
|
6695
6694
|
string: { unit: "merkki\xE4", subject: "merkkijonon" },
|
|
@@ -6802,7 +6801,7 @@ function fi_default() {
|
|
|
6802
6801
|
};
|
|
6803
6802
|
}
|
|
6804
6803
|
|
|
6805
|
-
//
|
|
6804
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fr.js
|
|
6806
6805
|
var error15 = () => {
|
|
6807
6806
|
const Sizable = {
|
|
6808
6807
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -6928,7 +6927,7 @@ function fr_default() {
|
|
|
6928
6927
|
};
|
|
6929
6928
|
}
|
|
6930
6929
|
|
|
6931
|
-
//
|
|
6930
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/fr-CA.js
|
|
6932
6931
|
var error16 = () => {
|
|
6933
6932
|
const Sizable = {
|
|
6934
6933
|
string: { unit: "caract\xE8res", verb: "avoir" },
|
|
@@ -7036,7 +7035,7 @@ function fr_CA_default() {
|
|
|
7036
7035
|
};
|
|
7037
7036
|
}
|
|
7038
7037
|
|
|
7039
|
-
//
|
|
7038
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/he.js
|
|
7040
7039
|
var error17 = () => {
|
|
7041
7040
|
const TypeNames = {
|
|
7042
7041
|
string: { label: "\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA", gender: "f" },
|
|
@@ -7231,7 +7230,7 @@ function he_default() {
|
|
|
7231
7230
|
};
|
|
7232
7231
|
}
|
|
7233
7232
|
|
|
7234
|
-
//
|
|
7233
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/hr.js
|
|
7235
7234
|
var error18 = () => {
|
|
7236
7235
|
const Sizable = {
|
|
7237
7236
|
string: { unit: "znakova", verb: "imati" },
|
|
@@ -7354,7 +7353,7 @@ function hr_default() {
|
|
|
7354
7353
|
};
|
|
7355
7354
|
}
|
|
7356
7355
|
|
|
7357
|
-
//
|
|
7356
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/hu.js
|
|
7358
7357
|
var error19 = () => {
|
|
7359
7358
|
const Sizable = {
|
|
7360
7359
|
string: { unit: "karakter", verb: "legyen" },
|
|
@@ -7463,7 +7462,7 @@ function hu_default() {
|
|
|
7463
7462
|
};
|
|
7464
7463
|
}
|
|
7465
7464
|
|
|
7466
|
-
//
|
|
7465
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/hy.js
|
|
7467
7466
|
function getArmenianPlural(count, one, many) {
|
|
7468
7467
|
return Math.abs(count) === 1 ? one : many;
|
|
7469
7468
|
}
|
|
@@ -7611,7 +7610,7 @@ function hy_default() {
|
|
|
7611
7610
|
};
|
|
7612
7611
|
}
|
|
7613
7612
|
|
|
7614
|
-
//
|
|
7613
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/id.js
|
|
7615
7614
|
var error21 = () => {
|
|
7616
7615
|
const Sizable = {
|
|
7617
7616
|
string: { unit: "karakter", verb: "memiliki" },
|
|
@@ -7718,7 +7717,7 @@ function id_default() {
|
|
|
7718
7717
|
};
|
|
7719
7718
|
}
|
|
7720
7719
|
|
|
7721
|
-
//
|
|
7720
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/is.js
|
|
7722
7721
|
var error22 = () => {
|
|
7723
7722
|
const Sizable = {
|
|
7724
7723
|
string: { unit: "stafi", verb: "a\xF0 hafa" },
|
|
@@ -7828,7 +7827,7 @@ function is_default() {
|
|
|
7828
7827
|
};
|
|
7829
7828
|
}
|
|
7830
7829
|
|
|
7831
|
-
//
|
|
7830
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/it.js
|
|
7832
7831
|
var error23 = () => {
|
|
7833
7832
|
const Sizable = {
|
|
7834
7833
|
string: { unit: "caratteri", verb: "avere" },
|
|
@@ -7937,7 +7936,7 @@ function it_default() {
|
|
|
7937
7936
|
};
|
|
7938
7937
|
}
|
|
7939
7938
|
|
|
7940
|
-
//
|
|
7939
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ja.js
|
|
7941
7940
|
var error24 = () => {
|
|
7942
7941
|
const Sizable = {
|
|
7943
7942
|
string: { unit: "\u6587\u5B57", verb: "\u3067\u3042\u308B" },
|
|
@@ -8045,7 +8044,7 @@ function ja_default() {
|
|
|
8045
8044
|
};
|
|
8046
8045
|
}
|
|
8047
8046
|
|
|
8048
|
-
//
|
|
8047
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ka.js
|
|
8049
8048
|
var error25 = () => {
|
|
8050
8049
|
const Sizable = {
|
|
8051
8050
|
string: { unit: "\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD", verb: "\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1" },
|
|
@@ -8158,7 +8157,7 @@ function ka_default() {
|
|
|
8158
8157
|
};
|
|
8159
8158
|
}
|
|
8160
8159
|
|
|
8161
|
-
//
|
|
8160
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/km.js
|
|
8162
8161
|
var error26 = () => {
|
|
8163
8162
|
const Sizable = {
|
|
8164
8163
|
string: { unit: "\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A", verb: "\u1782\u17BD\u179A\u1798\u17B6\u1793" },
|
|
@@ -8269,12 +8268,12 @@ function km_default() {
|
|
|
8269
8268
|
};
|
|
8270
8269
|
}
|
|
8271
8270
|
|
|
8272
|
-
//
|
|
8271
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/kh.js
|
|
8273
8272
|
function kh_default() {
|
|
8274
8273
|
return km_default();
|
|
8275
8274
|
}
|
|
8276
8275
|
|
|
8277
|
-
//
|
|
8276
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ko.js
|
|
8278
8277
|
var error27 = () => {
|
|
8279
8278
|
const Sizable = {
|
|
8280
8279
|
string: { unit: "\uBB38\uC790", verb: "to have" },
|
|
@@ -8386,7 +8385,7 @@ function ko_default() {
|
|
|
8386
8385
|
};
|
|
8387
8386
|
}
|
|
8388
8387
|
|
|
8389
|
-
//
|
|
8388
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/lt.js
|
|
8390
8389
|
var capitalizeFirstCharacter = (text) => {
|
|
8391
8390
|
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
8392
8391
|
};
|
|
@@ -8590,7 +8589,7 @@ function lt_default() {
|
|
|
8590
8589
|
};
|
|
8591
8590
|
}
|
|
8592
8591
|
|
|
8593
|
-
//
|
|
8592
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/mk.js
|
|
8594
8593
|
var error29 = () => {
|
|
8595
8594
|
const Sizable = {
|
|
8596
8595
|
string: { unit: "\u0437\u043D\u0430\u0446\u0438", verb: "\u0434\u0430 \u0438\u043C\u0430\u0430\u0442" },
|
|
@@ -8700,7 +8699,7 @@ function mk_default() {
|
|
|
8700
8699
|
};
|
|
8701
8700
|
}
|
|
8702
8701
|
|
|
8703
|
-
//
|
|
8702
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ms.js
|
|
8704
8703
|
var error30 = () => {
|
|
8705
8704
|
const Sizable = {
|
|
8706
8705
|
string: { unit: "aksara", verb: "mempunyai" },
|
|
@@ -8808,7 +8807,7 @@ function ms_default() {
|
|
|
8808
8807
|
};
|
|
8809
8808
|
}
|
|
8810
8809
|
|
|
8811
|
-
//
|
|
8810
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/nl.js
|
|
8812
8811
|
var error31 = () => {
|
|
8813
8812
|
const Sizable = {
|
|
8814
8813
|
string: { unit: "tekens", verb: "heeft" },
|
|
@@ -8919,7 +8918,7 @@ function nl_default() {
|
|
|
8919
8918
|
};
|
|
8920
8919
|
}
|
|
8921
8920
|
|
|
8922
|
-
//
|
|
8921
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/no.js
|
|
8923
8922
|
var error32 = () => {
|
|
8924
8923
|
const Sizable = {
|
|
8925
8924
|
string: { unit: "tegn", verb: "\xE5 ha" },
|
|
@@ -9028,7 +9027,7 @@ function no_default() {
|
|
|
9028
9027
|
};
|
|
9029
9028
|
}
|
|
9030
9029
|
|
|
9031
|
-
//
|
|
9030
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ota.js
|
|
9032
9031
|
var error33 = () => {
|
|
9033
9032
|
const Sizable = {
|
|
9034
9033
|
string: { unit: "harf", verb: "olmal\u0131d\u0131r" },
|
|
@@ -9138,7 +9137,7 @@ function ota_default() {
|
|
|
9138
9137
|
};
|
|
9139
9138
|
}
|
|
9140
9139
|
|
|
9141
|
-
//
|
|
9140
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ps.js
|
|
9142
9141
|
var error34 = () => {
|
|
9143
9142
|
const Sizable = {
|
|
9144
9143
|
string: { unit: "\u062A\u0648\u06A9\u064A", verb: "\u0648\u0644\u0631\u064A" },
|
|
@@ -9253,7 +9252,7 @@ function ps_default() {
|
|
|
9253
9252
|
};
|
|
9254
9253
|
}
|
|
9255
9254
|
|
|
9256
|
-
//
|
|
9255
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/pl.js
|
|
9257
9256
|
var error35 = () => {
|
|
9258
9257
|
const Sizable = {
|
|
9259
9258
|
string: { unit: "znak\xF3w", verb: "mie\u0107" },
|
|
@@ -9363,7 +9362,7 @@ function pl_default() {
|
|
|
9363
9362
|
};
|
|
9364
9363
|
}
|
|
9365
9364
|
|
|
9366
|
-
//
|
|
9365
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/pt.js
|
|
9367
9366
|
var error36 = () => {
|
|
9368
9367
|
const Sizable = {
|
|
9369
9368
|
string: { unit: "caracteres", verb: "ter" },
|
|
@@ -9472,7 +9471,7 @@ function pt_default() {
|
|
|
9472
9471
|
};
|
|
9473
9472
|
}
|
|
9474
9473
|
|
|
9475
|
-
//
|
|
9474
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ro.js
|
|
9476
9475
|
var error37 = () => {
|
|
9477
9476
|
const Sizable = {
|
|
9478
9477
|
string: { unit: "caractere", verb: "s\u0103 aib\u0103" },
|
|
@@ -9592,7 +9591,7 @@ function ro_default() {
|
|
|
9592
9591
|
};
|
|
9593
9592
|
}
|
|
9594
9593
|
|
|
9595
|
-
//
|
|
9594
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ru.js
|
|
9596
9595
|
function getRussianPlural(count, one, few, many) {
|
|
9597
9596
|
const absCount = Math.abs(count);
|
|
9598
9597
|
const lastDigit = absCount % 10;
|
|
@@ -9749,7 +9748,7 @@ function ru_default() {
|
|
|
9749
9748
|
};
|
|
9750
9749
|
}
|
|
9751
9750
|
|
|
9752
|
-
//
|
|
9751
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/sl.js
|
|
9753
9752
|
var error39 = () => {
|
|
9754
9753
|
const Sizable = {
|
|
9755
9754
|
string: { unit: "znakov", verb: "imeti" },
|
|
@@ -9859,7 +9858,7 @@ function sl_default() {
|
|
|
9859
9858
|
};
|
|
9860
9859
|
}
|
|
9861
9860
|
|
|
9862
|
-
//
|
|
9861
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/sv.js
|
|
9863
9862
|
var error40 = () => {
|
|
9864
9863
|
const Sizable = {
|
|
9865
9864
|
string: { unit: "tecken", verb: "att ha" },
|
|
@@ -9970,7 +9969,7 @@ function sv_default() {
|
|
|
9970
9969
|
};
|
|
9971
9970
|
}
|
|
9972
9971
|
|
|
9973
|
-
//
|
|
9972
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ta.js
|
|
9974
9973
|
var error41 = () => {
|
|
9975
9974
|
const Sizable = {
|
|
9976
9975
|
string: { unit: "\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD", verb: "\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD" },
|
|
@@ -10081,7 +10080,7 @@ function ta_default() {
|
|
|
10081
10080
|
};
|
|
10082
10081
|
}
|
|
10083
10082
|
|
|
10084
|
-
//
|
|
10083
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/th.js
|
|
10085
10084
|
var error42 = () => {
|
|
10086
10085
|
const Sizable = {
|
|
10087
10086
|
string: { unit: "\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", verb: "\u0E04\u0E27\u0E23\u0E21\u0E35" },
|
|
@@ -10192,7 +10191,7 @@ function th_default() {
|
|
|
10192
10191
|
};
|
|
10193
10192
|
}
|
|
10194
10193
|
|
|
10195
|
-
//
|
|
10194
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/tr.js
|
|
10196
10195
|
var error43 = () => {
|
|
10197
10196
|
const Sizable = {
|
|
10198
10197
|
string: { unit: "karakter", verb: "olmal\u0131" },
|
|
@@ -10298,7 +10297,7 @@ function tr_default() {
|
|
|
10298
10297
|
};
|
|
10299
10298
|
}
|
|
10300
10299
|
|
|
10301
|
-
//
|
|
10300
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/uk.js
|
|
10302
10301
|
var error44 = () => {
|
|
10303
10302
|
const Sizable = {
|
|
10304
10303
|
string: { unit: "\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432", verb: "\u043C\u0430\u0442\u0438\u043C\u0435" },
|
|
@@ -10407,12 +10406,12 @@ function uk_default() {
|
|
|
10407
10406
|
};
|
|
10408
10407
|
}
|
|
10409
10408
|
|
|
10410
|
-
//
|
|
10409
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ua.js
|
|
10411
10410
|
function ua_default() {
|
|
10412
10411
|
return uk_default();
|
|
10413
10412
|
}
|
|
10414
10413
|
|
|
10415
|
-
//
|
|
10414
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/ur.js
|
|
10416
10415
|
var error45 = () => {
|
|
10417
10416
|
const Sizable = {
|
|
10418
10417
|
string: { unit: "\u062D\u0631\u0648\u0641", verb: "\u06C1\u0648\u0646\u0627" },
|
|
@@ -10523,7 +10522,7 @@ function ur_default() {
|
|
|
10523
10522
|
};
|
|
10524
10523
|
}
|
|
10525
10524
|
|
|
10526
|
-
//
|
|
10525
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/uz.js
|
|
10527
10526
|
var error46 = () => {
|
|
10528
10527
|
const Sizable = {
|
|
10529
10528
|
string: { unit: "belgi", verb: "bo\u2018lishi kerak" },
|
|
@@ -10634,7 +10633,7 @@ function uz_default() {
|
|
|
10634
10633
|
};
|
|
10635
10634
|
}
|
|
10636
10635
|
|
|
10637
|
-
//
|
|
10636
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/vi.js
|
|
10638
10637
|
var error47 = () => {
|
|
10639
10638
|
const Sizable = {
|
|
10640
10639
|
string: { unit: "k\xFD t\u1EF1", verb: "c\xF3" },
|
|
@@ -10743,7 +10742,7 @@ function vi_default() {
|
|
|
10743
10742
|
};
|
|
10744
10743
|
}
|
|
10745
10744
|
|
|
10746
|
-
//
|
|
10745
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/zh-CN.js
|
|
10747
10746
|
var error48 = () => {
|
|
10748
10747
|
const Sizable = {
|
|
10749
10748
|
string: { unit: "\u5B57\u7B26", verb: "\u5305\u542B" },
|
|
@@ -10853,7 +10852,7 @@ function zh_CN_default() {
|
|
|
10853
10852
|
};
|
|
10854
10853
|
}
|
|
10855
10854
|
|
|
10856
|
-
//
|
|
10855
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/zh-TW.js
|
|
10857
10856
|
var error49 = () => {
|
|
10858
10857
|
const Sizable = {
|
|
10859
10858
|
string: { unit: "\u5B57\u5143", verb: "\u64C1\u6709" },
|
|
@@ -10961,7 +10960,7 @@ function zh_TW_default() {
|
|
|
10961
10960
|
};
|
|
10962
10961
|
}
|
|
10963
10962
|
|
|
10964
|
-
//
|
|
10963
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/locales/yo.js
|
|
10965
10964
|
var error50 = () => {
|
|
10966
10965
|
const Sizable = {
|
|
10967
10966
|
string: { unit: "\xE0mi", verb: "n\xED" },
|
|
@@ -11069,7 +11068,7 @@ function yo_default() {
|
|
|
11069
11068
|
};
|
|
11070
11069
|
}
|
|
11071
11070
|
|
|
11072
|
-
//
|
|
11071
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/registries.js
|
|
11073
11072
|
var _a2;
|
|
11074
11073
|
var $output = /* @__PURE__ */ Symbol("ZodOutput");
|
|
11075
11074
|
var $input = /* @__PURE__ */ Symbol("ZodInput");
|
|
@@ -11119,7 +11118,7 @@ function registry() {
|
|
|
11119
11118
|
(_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
|
|
11120
11119
|
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
11121
11120
|
|
|
11122
|
-
//
|
|
11121
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/api.js
|
|
11123
11122
|
// @__NO_SIDE_EFFECTS__
|
|
11124
11123
|
function _string(Class2, params) {
|
|
11125
11124
|
return new Class2({
|
|
@@ -12158,7 +12157,7 @@ function _stringFormat(Class2, format, fnOrRegex, _params = {}) {
|
|
|
12158
12157
|
return inst;
|
|
12159
12158
|
}
|
|
12160
12159
|
|
|
12161
|
-
//
|
|
12160
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/to-json-schema.js
|
|
12162
12161
|
function initializeContext(params) {
|
|
12163
12162
|
let target = params?.target ?? "draft-2020-12";
|
|
12164
12163
|
if (target === "draft-4")
|
|
@@ -12517,7 +12516,7 @@ var createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params) =
|
|
|
12517
12516
|
return finalize(ctx, schema);
|
|
12518
12517
|
};
|
|
12519
12518
|
|
|
12520
|
-
//
|
|
12519
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema-processors.js
|
|
12521
12520
|
var formatMap = {
|
|
12522
12521
|
guid: "uuid",
|
|
12523
12522
|
url: "uri",
|
|
@@ -13061,7 +13060,7 @@ function toJSONSchema(input, params) {
|
|
|
13061
13060
|
return finalize(ctx, input);
|
|
13062
13061
|
}
|
|
13063
13062
|
|
|
13064
|
-
//
|
|
13063
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema-generator.js
|
|
13065
13064
|
var JSONSchemaGenerator = class {
|
|
13066
13065
|
/** @deprecated Access via ctx instead */
|
|
13067
13066
|
get metadataRegistry() {
|
|
@@ -13136,10 +13135,10 @@ var JSONSchemaGenerator = class {
|
|
|
13136
13135
|
}
|
|
13137
13136
|
};
|
|
13138
13137
|
|
|
13139
|
-
//
|
|
13138
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
|
|
13140
13139
|
var json_schema_exports = {};
|
|
13141
13140
|
|
|
13142
|
-
//
|
|
13141
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
13143
13142
|
var schemas_exports2 = {};
|
|
13144
13143
|
__export(schemas_exports2, {
|
|
13145
13144
|
ZodAny: () => ZodAny,
|
|
@@ -13310,7 +13309,7 @@ __export(schemas_exports2, {
|
|
|
13310
13309
|
xor: () => xor
|
|
13311
13310
|
});
|
|
13312
13311
|
|
|
13313
|
-
//
|
|
13312
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/checks.js
|
|
13314
13313
|
var checks_exports2 = {};
|
|
13315
13314
|
__export(checks_exports2, {
|
|
13316
13315
|
endsWith: () => _endsWith,
|
|
@@ -13344,7 +13343,7 @@ __export(checks_exports2, {
|
|
|
13344
13343
|
uppercase: () => _uppercase
|
|
13345
13344
|
});
|
|
13346
13345
|
|
|
13347
|
-
//
|
|
13346
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/iso.js
|
|
13348
13347
|
var iso_exports = {};
|
|
13349
13348
|
__export(iso_exports, {
|
|
13350
13349
|
ZodISODate: () => ZodISODate,
|
|
@@ -13385,7 +13384,7 @@ function duration2(params) {
|
|
|
13385
13384
|
return _isoDuration(ZodISODuration, params);
|
|
13386
13385
|
}
|
|
13387
13386
|
|
|
13388
|
-
//
|
|
13387
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/errors.js
|
|
13389
13388
|
var initializer2 = (inst, issues) => {
|
|
13390
13389
|
$ZodError.init(inst, issues);
|
|
13391
13390
|
inst.name = "ZodError";
|
|
@@ -13425,7 +13424,7 @@ var ZodRealError = /* @__PURE__ */ $constructor("ZodError", initializer2, {
|
|
|
13425
13424
|
Parent: Error
|
|
13426
13425
|
});
|
|
13427
13426
|
|
|
13428
|
-
//
|
|
13427
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/parse.js
|
|
13429
13428
|
var parse2 = /* @__PURE__ */ _parse(ZodRealError);
|
|
13430
13429
|
var parseAsync2 = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
13431
13430
|
var safeParse2 = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -13439,7 +13438,7 @@ var safeDecode2 = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
13439
13438
|
var safeEncodeAsync2 = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
13440
13439
|
var safeDecodeAsync2 = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
13441
13440
|
|
|
13442
|
-
//
|
|
13441
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/schemas.js
|
|
13443
13442
|
var _installedGroups = /* @__PURE__ */ new WeakMap();
|
|
13444
13443
|
function _installLazyMethods(inst, group, methods) {
|
|
13445
13444
|
const proto = Object.getPrototypeOf(inst);
|
|
@@ -14729,7 +14728,7 @@ function preprocess(fn, schema) {
|
|
|
14729
14728
|
});
|
|
14730
14729
|
}
|
|
14731
14730
|
|
|
14732
|
-
//
|
|
14731
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/compat.js
|
|
14733
14732
|
var ZodIssueCode = {
|
|
14734
14733
|
invalid_type: "invalid_type",
|
|
14735
14734
|
too_big: "too_big",
|
|
@@ -14755,7 +14754,7 @@ var ZodFirstPartyTypeKind;
|
|
|
14755
14754
|
/* @__PURE__ */ (function(ZodFirstPartyTypeKind2) {
|
|
14756
14755
|
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|
|
14757
14756
|
|
|
14758
|
-
//
|
|
14757
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/from-json-schema.js
|
|
14759
14758
|
var z = {
|
|
14760
14759
|
...schemas_exports2,
|
|
14761
14760
|
...checks_exports2,
|
|
@@ -15235,7 +15234,7 @@ function fromJSONSchema(schema, params) {
|
|
|
15235
15234
|
return convertSchema(normalized, ctx);
|
|
15236
15235
|
}
|
|
15237
15236
|
|
|
15238
|
-
//
|
|
15237
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/coerce.js
|
|
15239
15238
|
var coerce_exports = {};
|
|
15240
15239
|
__export(coerce_exports, {
|
|
15241
15240
|
bigint: () => bigint3,
|
|
@@ -15260,7 +15259,7 @@ function date4(params) {
|
|
|
15260
15259
|
return _coercedDate(ZodDate, params);
|
|
15261
15260
|
}
|
|
15262
15261
|
|
|
15263
|
-
//
|
|
15262
|
+
// ../../../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
15264
15263
|
config(en_default());
|
|
15265
15264
|
|
|
15266
15265
|
// ../contracts/src/email-marketing.ts
|
|
@@ -18578,7 +18577,6 @@ async function request(endpoint, options = {}) {
|
|
|
18578
18577
|
for (let attempt = 0; attempt <= retryCount; attempt++) {
|
|
18579
18578
|
let responseReceived = false;
|
|
18580
18579
|
let responseDefinitive = false;
|
|
18581
|
-
let responseChallenge;
|
|
18582
18580
|
try {
|
|
18583
18581
|
const controller = new AbortController();
|
|
18584
18582
|
const timeoutId = setTimeout(() => controller.abort(), timeout);
|
|
@@ -18591,7 +18589,6 @@ async function request(endpoint, options = {}) {
|
|
|
18591
18589
|
responseReceived = true;
|
|
18592
18590
|
clearTimeout(timeoutId);
|
|
18593
18591
|
const payload = await parseResponsePayload(response);
|
|
18594
|
-
responseChallenge = readResponseChallenge(payload.data);
|
|
18595
18592
|
if (!response.ok) {
|
|
18596
18593
|
responseDefinitive = isDefinitiveHttpRefusal(payload.data) && response.status >= 400 && response.status < 500 && response.status !== 408;
|
|
18597
18594
|
const fallbackHttpMessage = response.statusText ? `HTTP ${response.status}: ${response.statusText}` : `HTTP ${response.status}`;
|
|
@@ -18616,8 +18613,7 @@ async function request(endpoint, options = {}) {
|
|
|
18616
18613
|
...mapped,
|
|
18617
18614
|
responseReceived: true,
|
|
18618
18615
|
responseDefinitive: data.status >= 400 && data.status < 500 && data.status !== 408,
|
|
18619
|
-
status: response.status
|
|
18620
|
-
...responseChallenge ? { challenge: responseChallenge } : {}
|
|
18616
|
+
status: response.status
|
|
18621
18617
|
};
|
|
18622
18618
|
} catch (error51) {
|
|
18623
18619
|
let normalizedError = error51 instanceof Error ? error51 : new Error(String(error51));
|
|
@@ -18631,7 +18627,6 @@ async function request(endpoint, options = {}) {
|
|
|
18631
18627
|
isTransport: statusCode === void 0 || statusCode === 408,
|
|
18632
18628
|
responseReceived,
|
|
18633
18629
|
responseDefinitive,
|
|
18634
|
-
...responseChallenge ? { challenge: responseChallenge } : {},
|
|
18635
18630
|
...normalizedError instanceof ApiError ? {
|
|
18636
18631
|
code: normalizedError.code,
|
|
18637
18632
|
...normalizedError.errorParams ? { errorParams: normalizedError.errorParams } : {}
|
|
@@ -18653,7 +18648,6 @@ async function request(endpoint, options = {}) {
|
|
|
18653
18648
|
...lastFailure ? { responseReceived: lastFailure.responseReceived } : {},
|
|
18654
18649
|
...lastFailure?.responseDefinitive ? { responseDefinitive: true } : {},
|
|
18655
18650
|
...lastFailure?.responseReceived && lastFailure.statusCode !== void 0 ? { status: lastFailure.statusCode } : {},
|
|
18656
|
-
...lastFailure?.challenge ? { challenge: lastFailure.challenge } : {},
|
|
18657
18651
|
...lastFailure?.code ? { code: lastFailure.code } : {},
|
|
18658
18652
|
...lastFailure?.errorParams ? { errorParams: lastFailure.errorParams } : {}
|
|
18659
18653
|
};
|
|
@@ -18714,25 +18708,6 @@ async function parseResponsePayload(response) {
|
|
|
18714
18708
|
return { data: null, rawText: null };
|
|
18715
18709
|
}
|
|
18716
18710
|
}
|
|
18717
|
-
function readResponseChallenge(payload) {
|
|
18718
|
-
if (!payload || typeof payload !== "object") {
|
|
18719
|
-
return void 0;
|
|
18720
|
-
}
|
|
18721
|
-
const data = payload.data;
|
|
18722
|
-
if (!data || typeof data !== "object") {
|
|
18723
|
-
return void 0;
|
|
18724
|
-
}
|
|
18725
|
-
const challenge = data.challenge;
|
|
18726
|
-
if (!challenge || typeof challenge !== "object") {
|
|
18727
|
-
return void 0;
|
|
18728
|
-
}
|
|
18729
|
-
const provider = challenge.provider;
|
|
18730
|
-
const siteKey = challenge.site_key;
|
|
18731
|
-
if (provider !== "turnstile" || typeof siteKey !== "string" || !siteKey.trim()) {
|
|
18732
|
-
return void 0;
|
|
18733
|
-
}
|
|
18734
|
-
return { provider, siteKey: siteKey.trim() };
|
|
18735
|
-
}
|
|
18736
18711
|
function isDefinitiveHttpRefusal(payload) {
|
|
18737
18712
|
if (!payload || typeof payload !== "object" || Array.isArray(payload)) {
|
|
18738
18713
|
return false;
|
|
@@ -19934,158 +19909,11 @@ async function quoteCart(coupon, currency) {
|
|
|
19934
19909
|
return response;
|
|
19935
19910
|
}
|
|
19936
19911
|
|
|
19937
|
-
// ../sdk/src/modules/checkout-challenge.ts
|
|
19938
|
-
var TURNSTILE_FRAME_MESSAGE_SOURCE = "shoppex-turnstile";
|
|
19939
|
-
var TURNSTILE_FRAME_MESSAGE_VERSION = 1;
|
|
19940
|
-
var TURNSTILE_FRAME_READY_TIMEOUT_MS = 1e4;
|
|
19941
|
-
function readFrameMessage(value, nonce) {
|
|
19942
|
-
if (!value || typeof value !== "object" || Array.isArray(value)) return null;
|
|
19943
|
-
const record2 = value;
|
|
19944
|
-
if (record2.source !== TURNSTILE_FRAME_MESSAGE_SOURCE || record2.version !== TURNSTILE_FRAME_MESSAGE_VERSION || record2.nonce !== nonce || !["ready", "visible", "hidden", "success", "expired", "timeout", "error"].includes(String(record2.type))) return null;
|
|
19945
|
-
if (record2.type === "success" && (typeof record2.token !== "string" || !record2.token.trim())) {
|
|
19946
|
-
return null;
|
|
19947
|
-
}
|
|
19948
|
-
return {
|
|
19949
|
-
type: record2.type,
|
|
19950
|
-
...typeof record2.token === "string" ? { token: record2.token.trim() } : {}
|
|
19951
|
-
};
|
|
19952
|
-
}
|
|
19953
|
-
var AUTO_CHALLENGE_INVISIBLE_TIMEOUT_MS = 3e4;
|
|
19954
|
-
async function resolveCheckoutChallengeProof(challenge) {
|
|
19955
|
-
if (typeof document === "undefined" || challenge.provider !== "turnstile" || !challenge.siteKey.trim()) {
|
|
19956
|
-
return null;
|
|
19957
|
-
}
|
|
19958
|
-
const host = document.createElement("div");
|
|
19959
|
-
host.setAttribute("data-shoppex-checkout-challenge", "");
|
|
19960
|
-
host.style.position = "fixed";
|
|
19961
|
-
host.style.inset = "0";
|
|
19962
|
-
host.style.display = "none";
|
|
19963
|
-
host.style.alignItems = "center";
|
|
19964
|
-
host.style.justifyContent = "center";
|
|
19965
|
-
host.style.background = "rgba(0, 0, 0, 0.55)";
|
|
19966
|
-
host.style.zIndex = "2147483646";
|
|
19967
|
-
const card = document.createElement("div");
|
|
19968
|
-
card.style.width = "min(340px, 90vw)";
|
|
19969
|
-
card.style.background = "#ffffff";
|
|
19970
|
-
card.style.borderRadius = "12px";
|
|
19971
|
-
card.style.padding = "16px";
|
|
19972
|
-
card.style.boxShadow = "0 12px 40px rgba(0, 0, 0, 0.35)";
|
|
19973
|
-
host.appendChild(card);
|
|
19974
|
-
document.body.appendChild(host);
|
|
19975
|
-
return new Promise((resolve) => {
|
|
19976
|
-
let settled = false;
|
|
19977
|
-
let timeoutId = null;
|
|
19978
|
-
let frame = null;
|
|
19979
|
-
const finish = (token) => {
|
|
19980
|
-
if (settled) return;
|
|
19981
|
-
settled = true;
|
|
19982
|
-
if (timeoutId !== null) window.clearTimeout(timeoutId);
|
|
19983
|
-
frame?.dispose();
|
|
19984
|
-
host.remove();
|
|
19985
|
-
resolve(token);
|
|
19986
|
-
};
|
|
19987
|
-
const armTimeout = () => {
|
|
19988
|
-
timeoutId = window.setTimeout(() => finish(null), AUTO_CHALLENGE_INVISIBLE_TIMEOUT_MS);
|
|
19989
|
-
};
|
|
19990
|
-
try {
|
|
19991
|
-
frame = mountCheckoutChallenge(card, challenge, {
|
|
19992
|
-
onSuccess: (token) => finish(token),
|
|
19993
|
-
// `refresh-expired: auto` renews expired runs on its own; the
|
|
19994
|
-
// invisible-run timeout stays the bound.
|
|
19995
|
-
onExpired: () => {
|
|
19996
|
-
},
|
|
19997
|
-
onUnavailable: () => finish(null),
|
|
19998
|
-
onVisibilityChange: (visible) => {
|
|
19999
|
-
host.style.display = visible ? "flex" : "none";
|
|
20000
|
-
if (visible) {
|
|
20001
|
-
if (timeoutId !== null) {
|
|
20002
|
-
window.clearTimeout(timeoutId);
|
|
20003
|
-
timeoutId = null;
|
|
20004
|
-
}
|
|
20005
|
-
} else if (timeoutId === null && !settled) {
|
|
20006
|
-
armTimeout();
|
|
20007
|
-
}
|
|
20008
|
-
}
|
|
20009
|
-
});
|
|
20010
|
-
} catch {
|
|
20011
|
-
host.remove();
|
|
20012
|
-
resolve(null);
|
|
20013
|
-
return;
|
|
20014
|
-
}
|
|
20015
|
-
armTimeout();
|
|
20016
|
-
});
|
|
20017
|
-
}
|
|
20018
|
-
function mountCheckoutChallenge(container, challenge, callbacks) {
|
|
20019
|
-
if (challenge.provider !== "turnstile" || !challenge.siteKey.trim()) {
|
|
20020
|
-
throw new Error("Checkout challenge is invalid.");
|
|
20021
|
-
}
|
|
20022
|
-
const win = container.ownerDocument.defaultView;
|
|
20023
|
-
if (!win) throw new Error("Checkout challenge requires a browser document.");
|
|
20024
|
-
const checkoutBaseUrl = getConfig().checkoutBaseUrl;
|
|
20025
|
-
const frameUrl = new URL("/turnstile", checkoutBaseUrl);
|
|
20026
|
-
if (frameUrl.protocol !== "https:" && frameUrl.protocol !== "http:") {
|
|
20027
|
-
throw new Error("Checkout base URL must use http or https.");
|
|
20028
|
-
}
|
|
20029
|
-
const nonce = win.crypto.randomUUID();
|
|
20030
|
-
frameUrl.searchParams.set("site_key", challenge.siteKey.trim());
|
|
20031
|
-
frameUrl.searchParams.set("nonce", nonce);
|
|
20032
|
-
const frame = container.ownerDocument.createElement("iframe");
|
|
20033
|
-
frame.src = frameUrl.toString();
|
|
20034
|
-
frame.title = "Checkout verification";
|
|
20035
|
-
frame.referrerPolicy = "no-referrer";
|
|
20036
|
-
frame.style.border = "0";
|
|
20037
|
-
frame.style.width = "100%";
|
|
20038
|
-
frame.style.height = "0";
|
|
20039
|
-
let disposed = false;
|
|
20040
|
-
let ready = false;
|
|
20041
|
-
const readyTimeout = win.setTimeout(() => {
|
|
20042
|
-
if (!disposed && !ready) callbacks.onUnavailable?.();
|
|
20043
|
-
}, TURNSTILE_FRAME_READY_TIMEOUT_MS);
|
|
20044
|
-
const onMessage = (event) => {
|
|
20045
|
-
if (disposed || event.origin !== frameUrl.origin || event.source !== frame.contentWindow) return;
|
|
20046
|
-
const message = readFrameMessage(event.data, nonce);
|
|
20047
|
-
if (!message) return;
|
|
20048
|
-
ready = true;
|
|
20049
|
-
win.clearTimeout(readyTimeout);
|
|
20050
|
-
if (message.type === "visible") {
|
|
20051
|
-
frame.style.height = "72px";
|
|
20052
|
-
callbacks.onVisibilityChange?.(true);
|
|
20053
|
-
}
|
|
20054
|
-
if (message.type === "hidden") {
|
|
20055
|
-
frame.style.height = "0";
|
|
20056
|
-
callbacks.onVisibilityChange?.(false);
|
|
20057
|
-
}
|
|
20058
|
-
if (message.type === "success") {
|
|
20059
|
-
frame.style.height = "0";
|
|
20060
|
-
callbacks.onVisibilityChange?.(false);
|
|
20061
|
-
callbacks.onSuccess(message.token);
|
|
20062
|
-
}
|
|
20063
|
-
if (message.type === "expired" || message.type === "timeout") callbacks.onExpired?.();
|
|
20064
|
-
if (message.type === "error") callbacks.onUnavailable?.();
|
|
20065
|
-
};
|
|
20066
|
-
const onFrameError = () => callbacks.onUnavailable?.();
|
|
20067
|
-
win.addEventListener("message", onMessage);
|
|
20068
|
-
frame.addEventListener("error", onFrameError, { once: true });
|
|
20069
|
-
container.appendChild(frame);
|
|
20070
|
-
return {
|
|
20071
|
-
element: frame,
|
|
20072
|
-
dispose() {
|
|
20073
|
-
if (disposed) return;
|
|
20074
|
-
disposed = true;
|
|
20075
|
-
win.clearTimeout(readyTimeout);
|
|
20076
|
-
win.removeEventListener("message", onMessage);
|
|
20077
|
-
frame.removeEventListener("error", onFrameError);
|
|
20078
|
-
frame.remove();
|
|
20079
|
-
}
|
|
20080
|
-
};
|
|
20081
|
-
}
|
|
20082
|
-
|
|
20083
19912
|
// ../sdk/src/modules/checkout.ts
|
|
20084
19913
|
var CheckoutCreateError = class _CheckoutCreateError extends Error {
|
|
20085
19914
|
constructor(message, options = {}) {
|
|
20086
19915
|
super(message);
|
|
20087
19916
|
this.name = "CheckoutCreateError";
|
|
20088
|
-
this.challenge = options.challenge;
|
|
20089
19917
|
this.code = options.code;
|
|
20090
19918
|
this.status = options.status;
|
|
20091
19919
|
Object.setPrototypeOf(this, _CheckoutCreateError.prototype);
|
|
@@ -20136,7 +19964,7 @@ function acquireCheckoutCreateIdempotency(requestTarget, createIntent) {
|
|
|
20136
19964
|
return attempt;
|
|
20137
19965
|
}
|
|
20138
19966
|
function releaseCheckoutCreateIdempotency(attempt, outcomeDefinitive) {
|
|
20139
|
-
if (outcomeDefinitive && pendingCheckoutCreates.get(attempt.fingerprint) === attempt) {
|
|
19967
|
+
if (outcomeDefinitive && pendingCheckoutCreates.get(attempt.fingerprint)?.key === attempt.key) {
|
|
20140
19968
|
pendingCheckoutCreates.delete(attempt.fingerprint);
|
|
20141
19969
|
}
|
|
20142
19970
|
}
|
|
@@ -20150,7 +19978,13 @@ function resolveCustomerCheckoutRequestTarget(options) {
|
|
|
20150
19978
|
return { endpoint: "/v1/storefront/invoices/from-cart" };
|
|
20151
19979
|
}
|
|
20152
19980
|
function resolveRequestedCheckoutCurrency(options) {
|
|
20153
|
-
|
|
19981
|
+
if (options.currency !== void 0) {
|
|
19982
|
+
return normalizeRequestedCurrency(options.currency);
|
|
19983
|
+
}
|
|
19984
|
+
return getRequestedCurrencyFromLocation() ?? normalizeRequestedCurrency(getConfig().currency);
|
|
19985
|
+
}
|
|
19986
|
+
function getRequestedCheckoutCurrency() {
|
|
19987
|
+
return getRequestedCurrencyFromLocation() ?? normalizeRequestedCurrency(getConfig().currency);
|
|
20154
19988
|
}
|
|
20155
19989
|
function normalizeCheckoutFailureMessage(rawMessage) {
|
|
20156
19990
|
const message = rawMessage?.trim() ?? "";
|
|
@@ -20322,14 +20156,7 @@ function mapCartItemsForApi(items) {
|
|
|
20322
20156
|
}
|
|
20323
20157
|
async function checkout(couponOrOptions, options) {
|
|
20324
20158
|
const resolvedOptions = resolveCheckoutOptions(couponOrOptions, options);
|
|
20325
|
-
|
|
20326
|
-
if (!firstAttempt.success && firstAttempt.challenge?.provider === "turnstile" && !resolvedOptions.turnstileToken && typeof document !== "undefined") {
|
|
20327
|
-
const proof = await resolveCheckoutChallengeProof(firstAttempt.challenge);
|
|
20328
|
-
if (proof) {
|
|
20329
|
-
return performCheckout({ ...resolvedOptions, turnstileToken: proof });
|
|
20330
|
-
}
|
|
20331
|
-
}
|
|
20332
|
-
return firstAttempt;
|
|
20159
|
+
return performCheckout(resolvedOptions);
|
|
20333
20160
|
}
|
|
20334
20161
|
async function performCheckout(resolvedOptions) {
|
|
20335
20162
|
const { autoRedirect = true, email: email3 } = resolvedOptions;
|
|
@@ -20373,16 +20200,12 @@ async function performCheckout(resolvedOptions) {
|
|
|
20373
20200
|
// automatically so the server can refuse an invoice priced above it.
|
|
20374
20201
|
// Undefined when nothing has been quoted this session — the endpoint
|
|
20375
20202
|
// treats that exactly as an older SDK.
|
|
20376
|
-
quote_token: getLatestQuoteToken() ?? void 0
|
|
20377
|
-
};
|
|
20378
|
-
const createCommand = {
|
|
20379
|
-
...createIntent,
|
|
20380
|
-
turnstile_token: resolvedOptions.turnstileToken?.trim() || void 0
|
|
20203
|
+
quote_token: resolvedOptions.quoteToken !== void 0 ? resolvedOptions.quoteToken ?? void 0 : getLatestQuoteToken() ?? void 0
|
|
20381
20204
|
};
|
|
20382
20205
|
const createAttempt = acquireCheckoutCreateIdempotency(checkoutRequestTarget, createIntent);
|
|
20383
20206
|
const response = await post(
|
|
20384
20207
|
checkoutRequestTarget.endpoint,
|
|
20385
|
-
|
|
20208
|
+
createIntent,
|
|
20386
20209
|
{
|
|
20387
20210
|
retries: 0,
|
|
20388
20211
|
baseUrl: checkoutRequestTarget.baseUrl,
|
|
@@ -20402,8 +20225,7 @@ async function performCheckout(resolvedOptions) {
|
|
|
20402
20225
|
// The server's machine-readable refusal, preserved so callers can react
|
|
20403
20226
|
// to e.g. `errors.checkout.price_increased_since_quote` without matching
|
|
20404
20227
|
// localized copy.
|
|
20405
|
-
...response.code ? { code: response.code } : {}
|
|
20406
|
-
...response.challenge ? { challenge: response.challenge } : {}
|
|
20228
|
+
...response.code ? { code: response.code } : {}
|
|
20407
20229
|
};
|
|
20408
20230
|
}
|
|
20409
20231
|
const checkoutData = normalizeCheckoutResponse(response.data, config2.checkoutBaseUrl);
|
|
@@ -20449,17 +20271,7 @@ async function performCheckout(resolvedOptions) {
|
|
|
20449
20271
|
}
|
|
20450
20272
|
async function buildCheckoutUrl(couponOrOptions, options) {
|
|
20451
20273
|
const resolvedOptions = resolveCheckoutOptions(couponOrOptions, options);
|
|
20452
|
-
|
|
20453
|
-
return await performBuildCheckoutUrl(resolvedOptions);
|
|
20454
|
-
} catch (error51) {
|
|
20455
|
-
if (error51 instanceof CheckoutCreateError && error51.challenge?.provider === "turnstile" && !resolvedOptions.turnstileToken && typeof document !== "undefined") {
|
|
20456
|
-
const proof = await resolveCheckoutChallengeProof(error51.challenge);
|
|
20457
|
-
if (proof) {
|
|
20458
|
-
return performBuildCheckoutUrl({ ...resolvedOptions, turnstileToken: proof });
|
|
20459
|
-
}
|
|
20460
|
-
}
|
|
20461
|
-
throw error51;
|
|
20462
|
-
}
|
|
20274
|
+
return performBuildCheckoutUrl(resolvedOptions);
|
|
20463
20275
|
}
|
|
20464
20276
|
async function performBuildCheckoutUrl(resolvedOptions) {
|
|
20465
20277
|
const { email: email3 } = resolvedOptions;
|
|
@@ -20495,16 +20307,12 @@ async function performBuildCheckoutUrl(resolvedOptions) {
|
|
|
20495
20307
|
// token here left a public path on which the server had nothing to check
|
|
20496
20308
|
// the invoice against. Same optional semantics: undefined when nothing
|
|
20497
20309
|
// was quoted this session.
|
|
20498
|
-
quote_token: getLatestQuoteToken() ?? void 0
|
|
20499
|
-
};
|
|
20500
|
-
const createCommand = {
|
|
20501
|
-
...createIntent,
|
|
20502
|
-
turnstile_token: resolvedOptions.turnstileToken?.trim() || void 0
|
|
20310
|
+
quote_token: resolvedOptions.quoteToken !== void 0 ? resolvedOptions.quoteToken ?? void 0 : getLatestQuoteToken() ?? void 0
|
|
20503
20311
|
};
|
|
20504
20312
|
const createAttempt = acquireCheckoutCreateIdempotency(checkoutRequestTarget, createIntent);
|
|
20505
20313
|
const response = await post(
|
|
20506
20314
|
checkoutRequestTarget.endpoint,
|
|
20507
|
-
|
|
20315
|
+
createIntent,
|
|
20508
20316
|
{
|
|
20509
20317
|
retries: 0,
|
|
20510
20318
|
baseUrl: checkoutRequestTarget.baseUrl,
|
|
@@ -20519,7 +20327,6 @@ async function performBuildCheckoutUrl(resolvedOptions) {
|
|
|
20519
20327
|
clearCart();
|
|
20520
20328
|
}
|
|
20521
20329
|
throw new CheckoutCreateError(normalizeCheckoutFailureMessage(response.message), {
|
|
20522
|
-
...response.challenge ? { challenge: response.challenge } : {},
|
|
20523
20330
|
...response.code ? { code: response.code } : {},
|
|
20524
20331
|
...response.status !== void 0 ? { status: response.status } : {}
|
|
20525
20332
|
});
|
|
@@ -21554,12 +21361,13 @@ var shoppex = {
|
|
|
21554
21361
|
getCartStats,
|
|
21555
21362
|
validateCartIntegrity,
|
|
21556
21363
|
quoteCart,
|
|
21364
|
+
getLatestQuoteToken,
|
|
21557
21365
|
resolveCartLineId,
|
|
21558
21366
|
// Checkout
|
|
21559
21367
|
checkout,
|
|
21560
21368
|
buildCheckoutUrl,
|
|
21561
21369
|
buildCheckoutUrlSync,
|
|
21562
|
-
|
|
21370
|
+
getRequestedCheckoutCurrency,
|
|
21563
21371
|
// Affiliates
|
|
21564
21372
|
captureAffiliateFromUrl,
|
|
21565
21373
|
validateAffiliateCode,
|
|
@@ -21708,7 +21516,6 @@ if (typeof window !== "undefined") {
|
|
|
21708
21516
|
loyalty,
|
|
21709
21517
|
me,
|
|
21710
21518
|
mergeSettings,
|
|
21711
|
-
mountCheckoutChallenge,
|
|
21712
21519
|
normalizeSearchQuery,
|
|
21713
21520
|
normalizeStorefrontCustomFields,
|
|
21714
21521
|
order,
|