@useinsider/guido 3.26.0-beta.61e9df0 → 3.26.0-beta.8251afd

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.
Files changed (64) hide show
  1. package/dist/@types/email-be/html-validation.js +24 -0
  2. package/dist/components/Guido.vue.js +1 -1
  3. package/dist/components/Guido.vue2.js +45 -46
  4. package/dist/components/organisms/onboarding/GenericOnboarding.vue.js +5 -5
  5. package/dist/components/organisms/onboarding/GenericOnboarding.vue2.js +15 -15
  6. package/dist/components/organisms/onboarding/ItemsOnboarding.vue.js +6 -6
  7. package/dist/components/organisms/onboarding/ItemsOnboarding.vue2.js +27 -28
  8. package/dist/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue.js +3 -3
  9. package/dist/components/organisms/onboarding/RecommendationLegacyStrategyOnboarding.vue2.js +27 -42
  10. package/dist/composables/useCustomInterfaceAppearance.js +50 -50
  11. package/dist/composables/useFullStoryBridge.js +9 -10
  12. package/dist/composables/useSave.js +19 -17
  13. package/dist/composables/useSaveValidation.js +142 -249
  14. package/dist/composables/useTranslations.js +14 -9
  15. package/dist/enums/email-be.js +27 -0
  16. package/dist/enums/save-validation.js +1 -1
  17. package/dist/extensions/Blocks/Recommendation/controls/main/strategy.js +40 -52
  18. package/dist/extensions/Blocks/Recommendation/utils/priceFormatter.js +15 -17
  19. package/dist/extensions/Blocks/common-control.js +19 -19
  20. package/dist/extensions/DynamicContent/dynamic-content.js +17 -15
  21. package/dist/guido.css +1 -1
  22. package/dist/node_modules/valibot/dist/index.js +184 -122
  23. package/dist/package.json.js +2 -2
  24. package/dist/services/emailBe/errors/ApiError.js +50 -0
  25. package/dist/services/emailBe/errors/handleApiError.js +31 -0
  26. package/dist/services/emailBe/errors/toApiError.js +71 -0
  27. package/dist/services/emailBe/html/HtmlValidationService.js +35 -0
  28. package/dist/services/emailBe/html/index.js +6 -0
  29. package/dist/services/emailBe/http/HttpManager.js +68 -0
  30. package/dist/services/emailBe/http/RetryStack.js +23 -0
  31. package/dist/services/emailBe/http/client.js +61 -0
  32. package/dist/services/emailBe/http/index.js +10 -0
  33. package/dist/services/emailBe/http/transportErrors.js +20 -0
  34. package/dist/src/@types/email-be/html-validation.d.ts +35 -0
  35. package/dist/src/composables/useSaveValidation.d.ts +2 -2
  36. package/dist/src/enums/email-be.d.ts +26 -0
  37. package/dist/src/enums/save-validation.d.ts +3 -14
  38. package/dist/src/extensions/Blocks/Recommendation/controls/main/strategy.d.ts +0 -2
  39. package/dist/src/extensions/Blocks/_Boilerplate/block.d.ts +11 -0
  40. package/dist/src/extensions/Blocks/_Boilerplate/constants/controlIds.d.ts +7 -0
  41. package/dist/src/extensions/Blocks/_Boilerplate/constants/index.d.ts +10 -0
  42. package/dist/src/extensions/Blocks/_Boilerplate/constants/selectors.d.ts +16 -0
  43. package/dist/src/extensions/Blocks/_Boilerplate/control.d.ts +17 -0
  44. package/dist/src/extensions/Blocks/_Boilerplate/controls/blockBackground/index.d.ts +15 -0
  45. package/dist/src/extensions/Blocks/_Boilerplate/extension.d.ts +2 -0
  46. package/dist/src/extensions/Blocks/_Boilerplate/iconsRegistry.d.ts +4 -0
  47. package/dist/src/extensions/Blocks/_Boilerplate/settingsPanel.d.ts +4 -0
  48. package/dist/src/extensions/Blocks/_Boilerplate/template.d.ts +6 -0
  49. package/dist/src/services/emailBe/errors/ApiError.d.ts +40 -0
  50. package/dist/src/services/emailBe/errors/handleApiError.d.ts +11 -0
  51. package/dist/src/services/emailBe/errors/toApiError.d.ts +2 -0
  52. package/dist/src/services/emailBe/html/HtmlValidationService.d.ts +8 -0
  53. package/dist/src/services/emailBe/html/index.d.ts +2 -0
  54. package/dist/src/services/emailBe/http/HttpManager.d.ts +13 -0
  55. package/dist/src/services/emailBe/http/RetryStack.d.ts +6 -0
  56. package/dist/src/services/emailBe/http/client.d.ts +3 -0
  57. package/dist/src/services/emailBe/http/index.d.ts +2 -0
  58. package/dist/src/services/emailBe/http/transportErrors.d.ts +15 -0
  59. package/dist/src/services/emailBe/http/types.d.ts +46 -0
  60. package/dist/src/stores/onboarding.d.ts +0 -1
  61. package/dist/stores/onboarding.js +1 -4
  62. package/package.json +2 -2
  63. package/dist/src/utils/editorShadowRoot.d.ts +0 -1
  64. package/dist/utils/editorShadowRoot.js +0 -8
@@ -1,6 +1,6 @@
1
1
  let m;
2
2
  // @__NO_SIDE_EFFECTS__
3
- function g(n) {
3
+ function x(n) {
4
4
  return {
5
5
  lang: (n == null ? void 0 : n.lang) ?? (m == null ? void 0 : m.lang),
6
6
  message: n == null ? void 0 : n.message,
@@ -10,7 +10,7 @@ function g(n) {
10
10
  }
11
11
  let E;
12
12
  // @__NO_SIDE_EFFECTS__
13
- function A(n) {
13
+ function I(n) {
14
14
  return E == null ? void 0 : E.get(n);
15
15
  }
16
16
  let j;
@@ -25,27 +25,27 @@ function q(n, r) {
25
25
  return (e = _ == null ? void 0 : _.get(n)) == null ? void 0 : e.get(r);
26
26
  }
27
27
  // @__NO_SIDE_EFFECTS__
28
- function w(n) {
28
+ function D(n) {
29
29
  var e, s;
30
30
  const r = typeof n;
31
31
  return r === "string" ? `"${n}"` : r === "number" || r === "bigint" || r === "boolean" ? `${n}` : r === "object" || r === "function" ? (n && ((s = (e = Object.getPrototypeOf(n)) == null ? void 0 : e.constructor) == null ? void 0 : s.name)) ?? "null" : r;
32
32
  }
33
33
  function f(n, r, e, s, t) {
34
- const l = t && "input" in t ? t.input : e.value, u = (t == null ? void 0 : t.expected) ?? n.expects ?? null, a = (t == null ? void 0 : t.received) ?? /* @__PURE__ */ w(l), i = {
34
+ const l = t && "input" in t ? t.input : e.value, u = (t == null ? void 0 : t.expected) ?? n.expects ?? null, p = (t == null ? void 0 : t.received) ?? /* @__PURE__ */ D(l), i = {
35
35
  kind: n.kind,
36
36
  type: n.type,
37
37
  input: l,
38
38
  expected: u,
39
- received: a,
40
- message: `Invalid ${r}: ${u ? `Expected ${u} but r` : "R"}eceived ${a}`,
39
+ received: p,
40
+ message: `Invalid ${r}: ${u ? `Expected ${u} but r` : "R"}eceived ${p}`,
41
41
  requirement: n.requirement,
42
42
  path: t == null ? void 0 : t.path,
43
43
  issues: t == null ? void 0 : t.issues,
44
44
  lang: s.lang,
45
45
  abortEarly: s.abortEarly,
46
46
  abortPipeEarly: s.abortPipeEarly
47
- }, p = n.kind === "schema", c = (t == null ? void 0 : t.message) ?? n.message ?? /* @__PURE__ */ q(n.reference, i.lang) ?? (p ? /* @__PURE__ */ V(i.lang) : null) ?? s.message ?? /* @__PURE__ */ A(i.lang);
48
- c !== void 0 && (i.message = typeof c == "function" ? c(i) : c), p && (e.typed = !1), e.issues ? e.issues.push(i) : e.issues = [i];
47
+ }, c = n.kind === "schema", a = (t == null ? void 0 : t.message) ?? n.message ?? /* @__PURE__ */ q(n.reference, i.lang) ?? (c ? /* @__PURE__ */ V(i.lang) : null) ?? s.message ?? /* @__PURE__ */ I(i.lang);
48
+ a !== void 0 && (i.message = typeof a == "function" ? a(i) : a), c && (e.typed = !1), e.issues ? e.issues.push(i) : e.issues = [i];
49
49
  }
50
50
  // @__NO_SIDE_EFFECTS__
51
51
  function o(n) {
@@ -53,16 +53,16 @@ function o(n) {
53
53
  version: 1,
54
54
  vendor: "valibot",
55
55
  validate(r) {
56
- return n["~run"]({ value: r }, /* @__PURE__ */ g());
56
+ return n["~run"]({ value: r }, /* @__PURE__ */ x());
57
57
  }
58
58
  };
59
59
  }
60
60
  // @__NO_SIDE_EFFECTS__
61
- function I(n, r) {
61
+ function S(n, r) {
62
62
  return Object.hasOwn(n, r) && r !== "__proto__" && r !== "prototype" && r !== "constructor";
63
63
  }
64
64
  // @__NO_SIDE_EFFECTS__
65
- function D(n, r) {
65
+ function w(n, r) {
66
66
  const e = [...new Set(n)];
67
67
  return e.length > 1 ? `(${e.join(` ${r} `)})` : e[0] ?? "never";
68
68
  }
@@ -165,7 +165,7 @@ function P(n, r, e) {
165
165
  return typeof n.fallback == "function" ? n.fallback(r, e) : n.fallback;
166
166
  }
167
167
  // @__NO_SIDE_EFFECTS__
168
- function se(n, r) {
168
+ function ue(n, r) {
169
169
  return {
170
170
  ...n,
171
171
  fallback: r,
@@ -182,7 +182,7 @@ function se(n, r) {
182
182
  };
183
183
  }
184
184
  // @__NO_SIDE_EFFECTS__
185
- function x(n, r, e) {
185
+ function k(n, r, e) {
186
186
  return typeof n.default == "function" ? n.default(r, e) : n.default;
187
187
  }
188
188
  // @__NO_SIDE_EFFECTS__
@@ -204,17 +204,17 @@ function F(n, r) {
204
204
  if (Array.isArray(t)) {
205
205
  e.typed = !0, e.value = [];
206
206
  for (let u = 0; u < t.length; u++) {
207
- const a = t[u], i = this.item["~run"]({ value: a }, s);
207
+ const p = t[u], i = this.item["~run"]({ value: p }, s);
208
208
  if (i.issues) {
209
- const p = {
209
+ const c = {
210
210
  type: "array",
211
211
  origin: "value",
212
212
  input: t,
213
213
  key: u,
214
- value: a
214
+ value: p
215
215
  };
216
- for (const c of i.issues)
217
- c.path ? c.path.unshift(p) : c.path = [p], (l = e.issues) == null || l.push(c);
216
+ for (const a of i.issues)
217
+ a.path ? a.path.unshift(c) : a.path = [c], (l = e.issues) == null || l.push(a);
218
218
  if (e.issues || (e.issues = i.issues), s.abortEarly) {
219
219
  e.typed = !1;
220
220
  break;
@@ -285,7 +285,7 @@ function J(n, r) {
285
285
  kind: "schema",
286
286
  type: "literal",
287
287
  reference: J,
288
- expects: /* @__PURE__ */ w(n),
288
+ expects: /* @__PURE__ */ D(n),
289
289
  async: !1,
290
290
  literal: n,
291
291
  message: r,
@@ -316,27 +316,27 @@ function Q(n, r) {
316
316
  if (t && typeof t == "object") {
317
317
  e.typed = !0, e.value = {};
318
318
  for (const u in this.entries) {
319
- const a = this.entries[u];
320
- if (u in t || (a.type === "exact_optional" || a.type === "optional" || a.type === "nullish") && a.default !== void 0) {
321
- const i = u in t ? t[u] : /* @__PURE__ */ x(a), p = a["~run"]({ value: i }, s);
322
- if (p.issues) {
323
- const c = {
319
+ const p = this.entries[u];
320
+ if (u in t || (p.type === "exact_optional" || p.type === "optional" || p.type === "nullish") && p.default !== void 0) {
321
+ const i = u in t ? t[u] : /* @__PURE__ */ k(p), c = p["~run"]({ value: i }, s);
322
+ if (c.issues) {
323
+ const a = {
324
324
  type: "object",
325
325
  origin: "value",
326
326
  input: t,
327
327
  key: u,
328
328
  value: i
329
329
  };
330
- for (const y of p.issues)
331
- y.path ? y.path.unshift(c) : y.path = [c], (l = e.issues) == null || l.push(y);
332
- if (e.issues || (e.issues = p.issues), s.abortEarly) {
330
+ for (const y of c.issues)
331
+ y.path ? y.path.unshift(a) : y.path = [a], (l = e.issues) == null || l.push(y);
332
+ if (e.issues || (e.issues = c.issues), s.abortEarly) {
333
333
  e.typed = !1;
334
334
  break;
335
335
  }
336
336
  }
337
- p.typed || (e.typed = !1), e.value[u] = p.value;
338
- } else if (a.fallback !== void 0) e.value[u] = /* @__PURE__ */ P(a);
339
- else if (a.type !== "exact_optional" && a.type !== "optional" && a.type !== "nullish" && (f(this, "key", e, s, {
337
+ c.typed || (e.typed = !1), e.value[u] = c.value;
338
+ } else if (p.fallback !== void 0) e.value[u] = /* @__PURE__ */ P(p);
339
+ else if (p.type !== "exact_optional" && p.type !== "optional" && p.type !== "nullish" && (f(this, "key", e, s, {
340
340
  input: void 0,
341
341
  expected: `"${u}"`,
342
342
  path: [{
@@ -350,7 +350,7 @@ function Q(n, r) {
350
350
  break;
351
351
  }
352
352
  if (!e.issues || !s.abortEarly)
353
- for (const u in t) /* @__PURE__ */ I(t, u) && !(u in this.entries) && (e.value[u] = t[u]);
353
+ for (const u in t) /* @__PURE__ */ S(t, u) && !(u in this.entries) && (e.value[u] = t[u]);
354
354
  } else f(this, "type", e, s);
355
355
  return e;
356
356
  }
@@ -360,8 +360,26 @@ function Q(n, r) {
360
360
  function T(n, r) {
361
361
  return {
362
362
  kind: "schema",
363
- type: "nullish",
363
+ type: "nullable",
364
364
  reference: T,
365
+ expects: `(${n.expects} | null)`,
366
+ async: !1,
367
+ wrapped: n,
368
+ default: r,
369
+ get "~standard"() {
370
+ return /* @__PURE__ */ o(this);
371
+ },
372
+ "~run"(e, s) {
373
+ return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ k(this, e, s)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
374
+ }
375
+ };
376
+ }
377
+ // @__NO_SIDE_EFFECTS__
378
+ function U(n, r) {
379
+ return {
380
+ kind: "schema",
381
+ type: "nullish",
382
+ reference: U,
365
383
  expects: `(${n.expects} | null | undefined)`,
366
384
  async: !1,
367
385
  wrapped: n,
@@ -370,16 +388,16 @@ function T(n, r) {
370
388
  return /* @__PURE__ */ o(this);
371
389
  },
372
390
  "~run"(e, s) {
373
- return (e.value === null || e.value === void 0) && (this.default !== void 0 && (e.value = /* @__PURE__ */ x(this, e, s)), e.value === null || e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
391
+ return (e.value === null || e.value === void 0) && (this.default !== void 0 && (e.value = /* @__PURE__ */ k(this, e, s)), e.value === null || e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
374
392
  }
375
393
  };
376
394
  }
377
395
  // @__NO_SIDE_EFFECTS__
378
- function U(n) {
396
+ function W(n) {
379
397
  return {
380
398
  kind: "schema",
381
399
  type: "number",
382
- reference: U,
400
+ reference: W,
383
401
  expects: "number",
384
402
  async: !1,
385
403
  message: n,
@@ -392,11 +410,11 @@ function U(n) {
392
410
  };
393
411
  }
394
412
  // @__NO_SIDE_EFFECTS__
395
- function W(n, r) {
413
+ function X(n, r) {
396
414
  return {
397
415
  kind: "schema",
398
416
  type: "object",
399
- reference: W,
417
+ reference: X,
400
418
  expects: "Object",
401
419
  async: !1,
402
420
  entries: n,
@@ -410,27 +428,27 @@ function W(n, r) {
410
428
  if (t && typeof t == "object") {
411
429
  e.typed = !0, e.value = {};
412
430
  for (const u in this.entries) {
413
- const a = this.entries[u];
414
- if (u in t || (a.type === "exact_optional" || a.type === "optional" || a.type === "nullish") && a.default !== void 0) {
415
- const i = u in t ? t[u] : /* @__PURE__ */ x(a), p = a["~run"]({ value: i }, s);
416
- if (p.issues) {
417
- const c = {
431
+ const p = this.entries[u];
432
+ if (u in t || (p.type === "exact_optional" || p.type === "optional" || p.type === "nullish") && p.default !== void 0) {
433
+ const i = u in t ? t[u] : /* @__PURE__ */ k(p), c = p["~run"]({ value: i }, s);
434
+ if (c.issues) {
435
+ const a = {
418
436
  type: "object",
419
437
  origin: "value",
420
438
  input: t,
421
439
  key: u,
422
440
  value: i
423
441
  };
424
- for (const y of p.issues)
425
- y.path ? y.path.unshift(c) : y.path = [c], (l = e.issues) == null || l.push(y);
426
- if (e.issues || (e.issues = p.issues), s.abortEarly) {
442
+ for (const y of c.issues)
443
+ y.path ? y.path.unshift(a) : y.path = [a], (l = e.issues) == null || l.push(y);
444
+ if (e.issues || (e.issues = c.issues), s.abortEarly) {
427
445
  e.typed = !1;
428
446
  break;
429
447
  }
430
448
  }
431
- p.typed || (e.typed = !1), e.value[u] = p.value;
432
- } else if (a.fallback !== void 0) e.value[u] = /* @__PURE__ */ P(a);
433
- else if (a.type !== "exact_optional" && a.type !== "optional" && a.type !== "nullish" && (f(this, "key", e, s, {
449
+ c.typed || (e.typed = !1), e.value[u] = c.value;
450
+ } else if (p.fallback !== void 0) e.value[u] = /* @__PURE__ */ P(p);
451
+ else if (p.type !== "exact_optional" && p.type !== "optional" && p.type !== "nullish" && (f(this, "key", e, s, {
434
452
  input: void 0,
435
453
  expected: `"${u}"`,
436
454
  path: [{
@@ -449,11 +467,11 @@ function W(n, r) {
449
467
  };
450
468
  }
451
469
  // @__NO_SIDE_EFFECTS__
452
- function X(n, r) {
470
+ function Y(n, r) {
453
471
  return {
454
472
  kind: "schema",
455
473
  type: "optional",
456
- reference: X,
474
+ reference: Y,
457
475
  expects: `(${n.expects} | undefined)`,
458
476
  async: !1,
459
477
  wrapped: n,
@@ -462,17 +480,17 @@ function X(n, r) {
462
480
  return /* @__PURE__ */ o(this);
463
481
  },
464
482
  "~run"(e, s) {
465
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ x(this, e, s)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
483
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ k(this, e, s)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
466
484
  }
467
485
  };
468
486
  }
469
487
  // @__NO_SIDE_EFFECTS__
470
- function Y(n, r) {
488
+ function Z(n, r) {
471
489
  return {
472
490
  kind: "schema",
473
491
  type: "picklist",
474
- reference: Y,
475
- expects: /* @__PURE__ */ D(n.map(w), "|"),
492
+ reference: Z,
493
+ expects: /* @__PURE__ */ w(n.map(D), "|"),
476
494
  async: !1,
477
495
  options: n,
478
496
  message: r,
@@ -485,11 +503,11 @@ function Y(n, r) {
485
503
  };
486
504
  }
487
505
  // @__NO_SIDE_EFFECTS__
488
- function Z(n, r, e) {
506
+ function $(n, r, e) {
489
507
  return {
490
508
  kind: "schema",
491
509
  type: "record",
492
- reference: Z,
510
+ reference: $,
493
511
  expects: "Object",
494
512
  async: !1,
495
513
  key: n,
@@ -499,44 +517,44 @@ function Z(n, r, e) {
499
517
  return /* @__PURE__ */ o(this);
500
518
  },
501
519
  "~run"(s, t) {
502
- var u, a;
520
+ var u, p;
503
521
  const l = s.value;
504
522
  if (l && typeof l == "object") {
505
523
  s.typed = !0, s.value = {};
506
- for (const i in l) if (/* @__PURE__ */ I(l, i)) {
507
- const p = l[i], c = this.key["~run"]({ value: i }, t);
508
- if (c.issues) {
524
+ for (const i in l) if (/* @__PURE__ */ S(l, i)) {
525
+ const c = l[i], a = this.key["~run"]({ value: i }, t);
526
+ if (a.issues) {
509
527
  const b = {
510
528
  type: "object",
511
529
  origin: "key",
512
530
  input: l,
513
531
  key: i,
514
- value: p
532
+ value: c
515
533
  };
516
- for (const h of c.issues)
534
+ for (const h of a.issues)
517
535
  h.path = [b], (u = s.issues) == null || u.push(h);
518
- if (s.issues || (s.issues = c.issues), t.abortEarly) {
536
+ if (s.issues || (s.issues = a.issues), t.abortEarly) {
519
537
  s.typed = !1;
520
538
  break;
521
539
  }
522
540
  }
523
- const y = this.value["~run"]({ value: p }, t);
541
+ const y = this.value["~run"]({ value: c }, t);
524
542
  if (y.issues) {
525
543
  const b = {
526
544
  type: "object",
527
545
  origin: "value",
528
546
  input: l,
529
547
  key: i,
530
- value: p
548
+ value: c
531
549
  };
532
550
  for (const h of y.issues)
533
- h.path ? h.path.unshift(b) : h.path = [b], (a = s.issues) == null || a.push(h);
551
+ h.path ? h.path.unshift(b) : h.path = [b], (p = s.issues) == null || p.push(h);
534
552
  if (s.issues || (s.issues = y.issues), t.abortEarly) {
535
553
  s.typed = !1;
536
554
  break;
537
555
  }
538
556
  }
539
- (!c.typed || !y.typed) && (s.typed = !1), c.typed && (s.value[c.value] = y.value);
557
+ (!a.typed || !y.typed) && (s.typed = !1), a.typed && (s.value[a.value] = y.value);
540
558
  }
541
559
  } else f(this, "type", s, t);
542
560
  return s;
@@ -544,11 +562,11 @@ function Z(n, r, e) {
544
562
  };
545
563
  }
546
564
  // @__NO_SIDE_EFFECTS__
547
- function $(n) {
565
+ function ee(n) {
548
566
  return {
549
567
  kind: "schema",
550
568
  type: "string",
551
- reference: $,
569
+ reference: ee,
552
570
  expects: "string",
553
571
  async: !1,
554
572
  message: n,
@@ -561,18 +579,60 @@ function $(n) {
561
579
  };
562
580
  }
563
581
  // @__NO_SIDE_EFFECTS__
564
- function S(n) {
582
+ function ne(n, r) {
583
+ return {
584
+ kind: "schema",
585
+ type: "tuple",
586
+ reference: ne,
587
+ expects: "Array",
588
+ async: !1,
589
+ items: n,
590
+ message: r,
591
+ get "~standard"() {
592
+ return /* @__PURE__ */ o(this);
593
+ },
594
+ "~run"(e, s) {
595
+ var l;
596
+ const t = e.value;
597
+ if (Array.isArray(t)) {
598
+ e.typed = !0, e.value = [];
599
+ for (let u = 0; u < this.items.length; u++) {
600
+ const p = t[u], i = this.items[u]["~run"]({ value: p }, s);
601
+ if (i.issues) {
602
+ const c = {
603
+ type: "array",
604
+ origin: "value",
605
+ input: t,
606
+ key: u,
607
+ value: p
608
+ };
609
+ for (const a of i.issues)
610
+ a.path ? a.path.unshift(c) : a.path = [c], (l = e.issues) == null || l.push(a);
611
+ if (e.issues || (e.issues = i.issues), s.abortEarly) {
612
+ e.typed = !1;
613
+ break;
614
+ }
615
+ }
616
+ i.typed || (e.typed = !1), e.value.push(i.value);
617
+ }
618
+ } else f(this, "type", e, s);
619
+ return e;
620
+ }
621
+ };
622
+ }
623
+ // @__NO_SIDE_EFFECTS__
624
+ function A(n) {
565
625
  let r;
566
626
  if (n) for (const e of n) r ? r.push(...e.issues) : r = e.issues;
567
627
  return r;
568
628
  }
569
629
  // @__NO_SIDE_EFFECTS__
570
- function ee(n, r) {
630
+ function re(n, r) {
571
631
  return {
572
632
  kind: "schema",
573
633
  type: "union",
574
- reference: ee,
575
- expects: /* @__PURE__ */ D(n.map((e) => e.expects), "|"),
634
+ reference: re,
635
+ expects: /* @__PURE__ */ w(n.map((e) => e.expects), "|"),
576
636
  async: !1,
577
637
  options: n,
578
638
  message: r,
@@ -581,8 +641,8 @@ function ee(n, r) {
581
641
  },
582
642
  "~run"(e, s) {
583
643
  let t, l, u;
584
- for (const a of this.options) {
585
- const i = a["~run"]({ value: e.value }, s);
644
+ for (const p of this.options) {
645
+ const i = p["~run"]({ value: e.value }, s);
586
646
  if (i.typed) if (i.issues) l ? l.push(i) : l = [i];
587
647
  else {
588
648
  t = i;
@@ -593,21 +653,21 @@ function ee(n, r) {
593
653
  if (t) return t;
594
654
  if (l) {
595
655
  if (l.length === 1) return l[0];
596
- f(this, "type", e, s, { issues: /* @__PURE__ */ S(l) }), e.typed = !0;
656
+ f(this, "type", e, s, { issues: /* @__PURE__ */ A(l) }), e.typed = !0;
597
657
  } else {
598
658
  if ((u == null ? void 0 : u.length) === 1) return u[0];
599
- f(this, "type", e, s, { issues: /* @__PURE__ */ S(u) });
659
+ f(this, "type", e, s, { issues: /* @__PURE__ */ A(u) });
600
660
  }
601
661
  return e;
602
662
  }
603
663
  };
604
664
  }
605
665
  // @__NO_SIDE_EFFECTS__
606
- function ne() {
666
+ function se() {
607
667
  return {
608
668
  kind: "schema",
609
669
  type: "unknown",
610
- reference: ne,
670
+ reference: se,
611
671
  expects: "unknown",
612
672
  async: !1,
613
673
  get "~standard"() {
@@ -619,11 +679,11 @@ function ne() {
619
679
  };
620
680
  }
621
681
  // @__NO_SIDE_EFFECTS__
622
- function re(n, r, e) {
682
+ function te(n, r, e) {
623
683
  return {
624
684
  kind: "schema",
625
685
  type: "variant",
626
- reference: re,
686
+ reference: te,
627
687
  expects: "Object",
628
688
  async: !1,
629
689
  key: n,
@@ -635,22 +695,22 @@ function re(n, r, e) {
635
695
  "~run"(s, t) {
636
696
  const l = s.value;
637
697
  if (l && typeof l == "object") {
638
- let u, a = 0, i = this.key, p = [];
639
- const c = (y, b) => {
698
+ let u, p = 0, i = this.key, c = [];
699
+ const a = (y, b) => {
640
700
  for (const h of y.options) {
641
- if (h.type === "variant") c(h, new Set(b).add(h.key));
701
+ if (h.type === "variant") a(h, new Set(b).add(h.key));
642
702
  else {
643
- let O = !0, k = 0;
703
+ let O = !0, d = 0;
644
704
  for (const v of b) {
645
- const d = h.entries[v];
646
- if (v in l ? d["~run"]({
705
+ const g = h.entries[v];
706
+ if (v in l ? g["~run"]({
647
707
  typed: !1,
648
708
  value: l[v]
649
- }, { abortEarly: !0 }).issues : d.type !== "exact_optional" && d.type !== "optional" && d.type !== "nullish") {
650
- O = !1, i !== v && (a < k || a === k && v in l && !(i in l)) && (a = k, i = v, p = []), i === v && p.push(h.entries[v].expects);
709
+ }, { abortEarly: !0 }).issues : g.type !== "exact_optional" && g.type !== "optional" && g.type !== "nullish") {
710
+ O = !1, i !== v && (p < d || p === d && v in l && !(i in l)) && (p = d, i = v, c = []), i === v && c.push(h.entries[v].expects);
651
711
  break;
652
712
  }
653
- k++;
713
+ d++;
654
714
  }
655
715
  if (O) {
656
716
  const v = h["~run"]({ value: l }, t);
@@ -660,10 +720,10 @@ function re(n, r, e) {
660
720
  if (u && !u.issues) break;
661
721
  }
662
722
  };
663
- if (c(this, /* @__PURE__ */ new Set([this.key])), u) return u;
723
+ if (a(this, /* @__PURE__ */ new Set([this.key])), u) return u;
664
724
  f(this, "type", s, t, {
665
725
  input: l[i],
666
- expected: /* @__PURE__ */ D(p, "|"),
726
+ expected: /* @__PURE__ */ w(c, "|"),
667
727
  path: [{
668
728
  type: "object",
669
729
  origin: "value",
@@ -677,13 +737,13 @@ function re(n, r, e) {
677
737
  }
678
738
  };
679
739
  }
680
- function te(n, r, e) {
681
- const s = n["~run"]({ value: r }, /* @__PURE__ */ g(e));
740
+ function ie(n, r, e) {
741
+ const s = n["~run"]({ value: r }, /* @__PURE__ */ x(e));
682
742
  if (s.issues) throw new K(s.issues);
683
743
  return s.value;
684
744
  }
685
745
  // @__NO_SIDE_EFFECTS__
686
- function ue(...n) {
746
+ function le(...n) {
687
747
  return {
688
748
  ...n[0],
689
749
  pipe: n,
@@ -703,7 +763,7 @@ function ue(...n) {
703
763
  };
704
764
  }
705
765
  // @__NO_SIDE_EFFECTS__
706
- function ie(...n) {
766
+ function pe(...n) {
707
767
  return {
708
768
  ...n[0],
709
769
  pipe: n,
@@ -724,8 +784,8 @@ function ie(...n) {
724
784
  };
725
785
  }
726
786
  // @__NO_SIDE_EFFECTS__
727
- function le(n, r, e) {
728
- const s = n["~run"]({ value: r }, /* @__PURE__ */ g(e));
787
+ function ae(n, r, e) {
788
+ const s = n["~run"]({ value: r }, /* @__PURE__ */ x(e));
729
789
  return {
730
790
  typed: s.typed,
731
791
  success: !s.issues,
@@ -734,8 +794,8 @@ function le(n, r, e) {
734
794
  };
735
795
  }
736
796
  // @__NO_SIDE_EFFECTS__
737
- async function ae(n, r, e) {
738
- const s = await n["~run"]({ value: r }, /* @__PURE__ */ g(e));
797
+ async function ce(n, r, e) {
798
+ const s = await n["~run"]({ value: r }, /* @__PURE__ */ x(e));
739
799
  return {
740
800
  typed: s.typed,
741
801
  success: !s.issues,
@@ -747,18 +807,18 @@ export {
747
807
  K as ValiError,
748
808
  f as _addIssue,
749
809
  o as _getStandardProps,
750
- I as _isValidObjectKey,
751
- D as _joinExpects,
752
- w as _stringify,
810
+ S as _isValidObjectKey,
811
+ w as _joinExpects,
812
+ D as _stringify,
753
813
  F as array,
754
814
  R as boolean,
755
815
  M as checkAsync,
756
816
  B as custom,
757
- se as fallback,
758
- x as getDefault,
817
+ ue as fallback,
818
+ k as getDefault,
759
819
  P as getFallback,
760
- g as getGlobalConfig,
761
- A as getGlobalMessage,
820
+ x as getGlobalConfig,
821
+ I as getGlobalMessage,
762
822
  V as getSchemaMessage,
763
823
  q as getSpecificMessage,
764
824
  H as lazy,
@@ -767,21 +827,23 @@ export {
767
827
  z as maxLength,
768
828
  G as minLength,
769
829
  L as nonEmpty,
770
- T as nullish,
771
- U as number,
772
- W as object,
773
- X as optional,
774
- te as parse,
775
- Y as picklist,
776
- ue as pipe,
777
- ie as pipeAsync,
778
- Z as record,
779
- le as safeParse,
780
- ae as safeParseAsync,
781
- $ as string,
830
+ T as nullable,
831
+ U as nullish,
832
+ W as number,
833
+ X as object,
834
+ Y as optional,
835
+ ie as parse,
836
+ Z as picklist,
837
+ le as pipe,
838
+ pe as pipeAsync,
839
+ $ as record,
840
+ ae as safeParse,
841
+ ce as safeParseAsync,
842
+ ee as string,
782
843
  N as transform,
783
844
  C as trim,
784
- ee as union,
785
- ne as unknown,
786
- re as variant
845
+ ne as tuple,
846
+ re as union,
847
+ se as unknown,
848
+ te as variant
787
849
  };
@@ -1,9 +1,9 @@
1
- const o = "3.26.0-beta.61e9df0", s = { stripo: { version: "2.83.1" } }, e = {
1
+ const o = "3.26.0-beta.8251afd", s = { stripo: { version: "2.83.1" } }, t = {
2
2
  version: o,
3
3
  guido: s
4
4
  };
5
5
  export {
6
- e as default,
6
+ t as default,
7
7
  s as guido,
8
8
  o as version
9
9
  };