@useinsider/guido 3.27.0-beta.0dd857f → 3.27.0-beta.1fcb4d9

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 (35) hide show
  1. package/dist/@types/config/schemas.js +3 -3
  2. package/dist/composables/useSave.js +17 -19
  3. package/dist/composables/useSaveValidation.js +252 -134
  4. package/dist/composables/useTranslations.js +9 -14
  5. package/dist/enums/save-validation.js +2 -2
  6. package/dist/node_modules/valibot/dist/index.js +154 -232
  7. package/dist/package.json.js +1 -1
  8. package/dist/src/composables/useSaveValidation.d.ts +2 -2
  9. package/dist/src/enums/save-validation.d.ts +15 -3
  10. package/package.json +1 -1
  11. package/dist/@types/email-be/html-validation.js +0 -28
  12. package/dist/enums/email-be.js +0 -27
  13. package/dist/services/emailBe/errors/ApiError.js +0 -50
  14. package/dist/services/emailBe/errors/handleApiError.js +0 -31
  15. package/dist/services/emailBe/errors/toApiError.js +0 -71
  16. package/dist/services/emailBe/html/HtmlValidationService.js +0 -35
  17. package/dist/services/emailBe/html/index.js +0 -6
  18. package/dist/services/emailBe/http/HttpManager.js +0 -68
  19. package/dist/services/emailBe/http/RetryStack.js +0 -24
  20. package/dist/services/emailBe/http/client.js +0 -61
  21. package/dist/services/emailBe/http/index.js +0 -10
  22. package/dist/services/emailBe/http/transportErrors.js +0 -20
  23. package/dist/src/@types/email-be/html-validation.d.ts +0 -51
  24. package/dist/src/enums/email-be.d.ts +0 -26
  25. package/dist/src/services/emailBe/errors/ApiError.d.ts +0 -40
  26. package/dist/src/services/emailBe/errors/handleApiError.d.ts +0 -11
  27. package/dist/src/services/emailBe/errors/toApiError.d.ts +0 -2
  28. package/dist/src/services/emailBe/html/HtmlValidationService.d.ts +0 -8
  29. package/dist/src/services/emailBe/html/index.d.ts +0 -2
  30. package/dist/src/services/emailBe/http/HttpManager.d.ts +0 -13
  31. package/dist/src/services/emailBe/http/RetryStack.d.ts +0 -6
  32. package/dist/src/services/emailBe/http/client.d.ts +0 -3
  33. package/dist/src/services/emailBe/http/index.d.ts +0 -2
  34. package/dist/src/services/emailBe/http/transportErrors.d.ts +0 -15
  35. package/dist/src/services/emailBe/http/types.d.ts +0 -46
@@ -1,6 +1,6 @@
1
1
  let m;
2
2
  // @__NO_SIDE_EFFECTS__
3
- function x(n) {
3
+ function g(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 x(n) {
10
10
  }
11
11
  let E;
12
12
  // @__NO_SIDE_EFFECTS__
13
- function I(n) {
13
+ function A(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 D(n) {
28
+ function w(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, p = (t == null ? void 0 : t.received) ?? /* @__PURE__ */ D(l), i = {
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 = {
35
35
  kind: n.kind,
36
36
  type: n.type,
37
37
  input: l,
38
38
  expected: u,
39
- received: p,
40
- message: `Invalid ${r}: ${u ? `Expected ${u} but r` : "R"}eceived ${p}`,
39
+ received: a,
40
+ message: `Invalid ${r}: ${u ? `Expected ${u} but r` : "R"}eceived ${a}`,
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
- }, 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];
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];
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__ */ x());
56
+ return n["~run"]({ value: r }, /* @__PURE__ */ g());
57
57
  }
58
58
  };
59
59
  }
60
60
  // @__NO_SIDE_EFFECTS__
61
- function S(n, r) {
61
+ function I(n, r) {
62
62
  return Object.hasOwn(n, r) && r !== "__proto__" && r !== "prototype" && r !== "constructor";
63
63
  }
64
64
  // @__NO_SIDE_EFFECTS__
65
- function w(n, r) {
65
+ function D(n, r) {
66
66
  const e = [...new Set(n)];
67
67
  return e.length > 1 ? `(${e.join(` ${r} `)})` : e[0] ?? "never";
68
68
  }
@@ -82,21 +82,6 @@ function M(n, r) {
82
82
  kind: "validation",
83
83
  type: "check",
84
84
  reference: M,
85
- async: !1,
86
- expects: null,
87
- requirement: n,
88
- message: r,
89
- "~run"(e, s) {
90
- return e.typed && !this.requirement(e.value) && f(this, "input", e, s), e;
91
- }
92
- };
93
- }
94
- // @__NO_SIDE_EFFECTS__
95
- function z(n, r) {
96
- return {
97
- kind: "validation",
98
- type: "check",
99
- reference: z,
100
85
  async: !0,
101
86
  expects: null,
102
87
  requirement: n,
@@ -107,11 +92,11 @@ function z(n, r) {
107
92
  };
108
93
  }
109
94
  // @__NO_SIDE_EFFECTS__
110
- function G(n, r) {
95
+ function z(n, r) {
111
96
  return {
112
97
  kind: "validation",
113
98
  type: "max_length",
114
- reference: G,
99
+ reference: z,
115
100
  async: !1,
116
101
  expects: `<=${n}`,
117
102
  requirement: n,
@@ -122,11 +107,11 @@ function G(n, r) {
122
107
  };
123
108
  }
124
109
  // @__NO_SIDE_EFFECTS__
125
- function L(n, r) {
110
+ function G(n, r) {
126
111
  return {
127
112
  kind: "validation",
128
113
  type: "min_length",
129
- reference: L,
114
+ reference: G,
130
115
  async: !1,
131
116
  expects: `>=${n}`,
132
117
  requirement: n,
@@ -137,11 +122,11 @@ function L(n, r) {
137
122
  };
138
123
  }
139
124
  // @__NO_SIDE_EFFECTS__
140
- function N(n) {
125
+ function L(n) {
141
126
  return {
142
127
  kind: "validation",
143
128
  type: "non_empty",
144
- reference: N,
129
+ reference: L,
145
130
  async: !1,
146
131
  expects: "!0",
147
132
  message: n,
@@ -151,11 +136,11 @@ function N(n) {
151
136
  };
152
137
  }
153
138
  // @__NO_SIDE_EFFECTS__
154
- function C(n) {
139
+ function N(n) {
155
140
  return {
156
141
  kind: "transformation",
157
142
  type: "transform",
158
- reference: C,
143
+ reference: N,
159
144
  async: !1,
160
145
  operation: n,
161
146
  "~run"(r) {
@@ -164,11 +149,11 @@ function C(n) {
164
149
  };
165
150
  }
166
151
  // @__NO_SIDE_EFFECTS__
167
- function F() {
152
+ function C() {
168
153
  return {
169
154
  kind: "transformation",
170
155
  type: "trim",
171
- reference: F,
156
+ reference: C,
172
157
  async: !1,
173
158
  "~run"(n) {
174
159
  return n.value = n.value.trim(), n;
@@ -180,7 +165,7 @@ function P(n, r, e) {
180
165
  return typeof n.fallback == "function" ? n.fallback(r, e) : n.fallback;
181
166
  }
182
167
  // @__NO_SIDE_EFFECTS__
183
- function ie(n, r) {
168
+ function se(n, r) {
184
169
  return {
185
170
  ...n,
186
171
  fallback: r,
@@ -197,15 +182,15 @@ function ie(n, r) {
197
182
  };
198
183
  }
199
184
  // @__NO_SIDE_EFFECTS__
200
- function k(n, r, e) {
185
+ function x(n, r, e) {
201
186
  return typeof n.default == "function" ? n.default(r, e) : n.default;
202
187
  }
203
188
  // @__NO_SIDE_EFFECTS__
204
- function R(n, r) {
189
+ function F(n, r) {
205
190
  return {
206
191
  kind: "schema",
207
192
  type: "array",
208
- reference: R,
193
+ reference: F,
209
194
  expects: "Array",
210
195
  async: !1,
211
196
  item: n,
@@ -219,17 +204,17 @@ function R(n, r) {
219
204
  if (Array.isArray(t)) {
220
205
  e.typed = !0, e.value = [];
221
206
  for (let u = 0; u < t.length; u++) {
222
- const p = t[u], i = this.item["~run"]({ value: p }, s);
207
+ const a = t[u], i = this.item["~run"]({ value: a }, s);
223
208
  if (i.issues) {
224
- const c = {
209
+ const p = {
225
210
  type: "array",
226
211
  origin: "value",
227
212
  input: t,
228
213
  key: u,
229
- value: p
214
+ value: a
230
215
  };
231
- for (const a of i.issues)
232
- a.path ? a.path.unshift(c) : a.path = [c], (l = e.issues) == null || l.push(a);
216
+ for (const c of i.issues)
217
+ c.path ? c.path.unshift(p) : c.path = [p], (l = e.issues) == null || l.push(c);
233
218
  if (e.issues || (e.issues = i.issues), s.abortEarly) {
234
219
  e.typed = !1;
235
220
  break;
@@ -243,11 +228,11 @@ function R(n, r) {
243
228
  };
244
229
  }
245
230
  // @__NO_SIDE_EFFECTS__
246
- function B(n) {
231
+ function R(n) {
247
232
  return {
248
233
  kind: "schema",
249
234
  type: "boolean",
250
- reference: B,
235
+ reference: R,
251
236
  expects: "boolean",
252
237
  async: !1,
253
238
  message: n,
@@ -260,11 +245,11 @@ function B(n) {
260
245
  };
261
246
  }
262
247
  // @__NO_SIDE_EFFECTS__
263
- function H(n, r) {
248
+ function B(n, r) {
264
249
  return {
265
250
  kind: "schema",
266
251
  type: "custom",
267
- reference: H,
252
+ reference: B,
268
253
  expects: "unknown",
269
254
  async: !1,
270
255
  check: n,
@@ -278,11 +263,11 @@ function H(n, r) {
278
263
  };
279
264
  }
280
265
  // @__NO_SIDE_EFFECTS__
281
- function J(n) {
266
+ function H(n) {
282
267
  return {
283
268
  kind: "schema",
284
269
  type: "lazy",
285
- reference: J,
270
+ reference: H,
286
271
  expects: "unknown",
287
272
  async: !1,
288
273
  getter: n,
@@ -295,12 +280,12 @@ function J(n) {
295
280
  };
296
281
  }
297
282
  // @__NO_SIDE_EFFECTS__
298
- function Q(n, r) {
283
+ function J(n, r) {
299
284
  return {
300
285
  kind: "schema",
301
286
  type: "literal",
302
- reference: Q,
303
- expects: /* @__PURE__ */ D(n),
287
+ reference: J,
288
+ expects: /* @__PURE__ */ w(n),
304
289
  async: !1,
305
290
  literal: n,
306
291
  message: r,
@@ -313,11 +298,11 @@ function Q(n, r) {
313
298
  };
314
299
  }
315
300
  // @__NO_SIDE_EFFECTS__
316
- function T(n, r) {
301
+ function Q(n, r) {
317
302
  return {
318
303
  kind: "schema",
319
304
  type: "loose_object",
320
- reference: T,
305
+ reference: Q,
321
306
  expects: "Object",
322
307
  async: !1,
323
308
  entries: n,
@@ -331,27 +316,27 @@ function T(n, r) {
331
316
  if (t && typeof t == "object") {
332
317
  e.typed = !0, e.value = {};
333
318
  for (const u in this.entries) {
334
- const p = this.entries[u];
335
- if (u in t || (p.type === "exact_optional" || p.type === "optional" || p.type === "nullish") && p.default !== void 0) {
336
- const i = u in t ? t[u] : /* @__PURE__ */ k(p), c = p["~run"]({ value: i }, s);
337
- if (c.issues) {
338
- const a = {
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 = {
339
324
  type: "object",
340
325
  origin: "value",
341
326
  input: t,
342
327
  key: u,
343
328
  value: i
344
329
  };
345
- for (const y of c.issues)
346
- y.path ? y.path.unshift(a) : y.path = [a], (l = e.issues) == null || l.push(y);
347
- if (e.issues || (e.issues = c.issues), s.abortEarly) {
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) {
348
333
  e.typed = !1;
349
334
  break;
350
335
  }
351
336
  }
352
- c.typed || (e.typed = !1), e.value[u] = c.value;
353
- } else if (p.fallback !== void 0) e.value[u] = /* @__PURE__ */ P(p);
354
- else if (p.type !== "exact_optional" && p.type !== "optional" && p.type !== "nullish" && (f(this, "key", e, s, {
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, {
355
340
  input: void 0,
356
341
  expected: `"${u}"`,
357
342
  path: [{
@@ -365,36 +350,18 @@ function T(n, r) {
365
350
  break;
366
351
  }
367
352
  if (!e.issues || !s.abortEarly)
368
- for (const u in t) /* @__PURE__ */ S(t, u) && !(u in this.entries) && (e.value[u] = t[u]);
353
+ for (const u in t) /* @__PURE__ */ I(t, u) && !(u in this.entries) && (e.value[u] = t[u]);
369
354
  } else f(this, "type", e, s);
370
355
  return e;
371
356
  }
372
357
  };
373
358
  }
374
359
  // @__NO_SIDE_EFFECTS__
375
- function U(n, r) {
376
- return {
377
- kind: "schema",
378
- type: "nullable",
379
- reference: U,
380
- expects: `(${n.expects} | null)`,
381
- async: !1,
382
- wrapped: n,
383
- default: r,
384
- get "~standard"() {
385
- return /* @__PURE__ */ o(this);
386
- },
387
- "~run"(e, s) {
388
- 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);
389
- }
390
- };
391
- }
392
- // @__NO_SIDE_EFFECTS__
393
- function W(n, r) {
360
+ function T(n, r) {
394
361
  return {
395
362
  kind: "schema",
396
363
  type: "nullish",
397
- reference: W,
364
+ reference: T,
398
365
  expects: `(${n.expects} | null | undefined)`,
399
366
  async: !1,
400
367
  wrapped: n,
@@ -403,16 +370,16 @@ function W(n, r) {
403
370
  return /* @__PURE__ */ o(this);
404
371
  },
405
372
  "~run"(e, s) {
406
- 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);
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);
407
374
  }
408
375
  };
409
376
  }
410
377
  // @__NO_SIDE_EFFECTS__
411
- function X(n) {
378
+ function U(n) {
412
379
  return {
413
380
  kind: "schema",
414
381
  type: "number",
415
- reference: X,
382
+ reference: U,
416
383
  expects: "number",
417
384
  async: !1,
418
385
  message: n,
@@ -425,11 +392,11 @@ function X(n) {
425
392
  };
426
393
  }
427
394
  // @__NO_SIDE_EFFECTS__
428
- function Y(n, r) {
395
+ function W(n, r) {
429
396
  return {
430
397
  kind: "schema",
431
398
  type: "object",
432
- reference: Y,
399
+ reference: W,
433
400
  expects: "Object",
434
401
  async: !1,
435
402
  entries: n,
@@ -443,27 +410,27 @@ function Y(n, r) {
443
410
  if (t && typeof t == "object") {
444
411
  e.typed = !0, e.value = {};
445
412
  for (const u in this.entries) {
446
- const p = this.entries[u];
447
- if (u in t || (p.type === "exact_optional" || p.type === "optional" || p.type === "nullish") && p.default !== void 0) {
448
- const i = u in t ? t[u] : /* @__PURE__ */ k(p), c = p["~run"]({ value: i }, s);
449
- if (c.issues) {
450
- const a = {
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 = {
451
418
  type: "object",
452
419
  origin: "value",
453
420
  input: t,
454
421
  key: u,
455
422
  value: i
456
423
  };
457
- for (const y of c.issues)
458
- y.path ? y.path.unshift(a) : y.path = [a], (l = e.issues) == null || l.push(y);
459
- if (e.issues || (e.issues = c.issues), s.abortEarly) {
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) {
460
427
  e.typed = !1;
461
428
  break;
462
429
  }
463
430
  }
464
- c.typed || (e.typed = !1), e.value[u] = c.value;
465
- } else if (p.fallback !== void 0) e.value[u] = /* @__PURE__ */ P(p);
466
- else if (p.type !== "exact_optional" && p.type !== "optional" && p.type !== "nullish" && (f(this, "key", e, s, {
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, {
467
434
  input: void 0,
468
435
  expected: `"${u}"`,
469
436
  path: [{
@@ -482,11 +449,11 @@ function Y(n, r) {
482
449
  };
483
450
  }
484
451
  // @__NO_SIDE_EFFECTS__
485
- function Z(n, r) {
452
+ function X(n, r) {
486
453
  return {
487
454
  kind: "schema",
488
455
  type: "optional",
489
- reference: Z,
456
+ reference: X,
490
457
  expects: `(${n.expects} | undefined)`,
491
458
  async: !1,
492
459
  wrapped: n,
@@ -495,17 +462,17 @@ function Z(n, r) {
495
462
  return /* @__PURE__ */ o(this);
496
463
  },
497
464
  "~run"(e, s) {
498
- 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);
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);
499
466
  }
500
467
  };
501
468
  }
502
469
  // @__NO_SIDE_EFFECTS__
503
- function $(n, r) {
470
+ function Y(n, r) {
504
471
  return {
505
472
  kind: "schema",
506
473
  type: "picklist",
507
- reference: $,
508
- expects: /* @__PURE__ */ w(n.map(D), "|"),
474
+ reference: Y,
475
+ expects: /* @__PURE__ */ D(n.map(w), "|"),
509
476
  async: !1,
510
477
  options: n,
511
478
  message: r,
@@ -518,11 +485,11 @@ function $(n, r) {
518
485
  };
519
486
  }
520
487
  // @__NO_SIDE_EFFECTS__
521
- function ee(n, r, e) {
488
+ function Z(n, r, e) {
522
489
  return {
523
490
  kind: "schema",
524
491
  type: "record",
525
- reference: ee,
492
+ reference: Z,
526
493
  expects: "Object",
527
494
  async: !1,
528
495
  key: n,
@@ -532,44 +499,44 @@ function ee(n, r, e) {
532
499
  return /* @__PURE__ */ o(this);
533
500
  },
534
501
  "~run"(s, t) {
535
- var u, p;
502
+ var u, a;
536
503
  const l = s.value;
537
504
  if (l && typeof l == "object") {
538
505
  s.typed = !0, s.value = {};
539
- for (const i in l) if (/* @__PURE__ */ S(l, i)) {
540
- const c = l[i], a = this.key["~run"]({ value: i }, t);
541
- if (a.issues) {
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) {
542
509
  const b = {
543
510
  type: "object",
544
511
  origin: "key",
545
512
  input: l,
546
513
  key: i,
547
- value: c
514
+ value: p
548
515
  };
549
- for (const h of a.issues)
516
+ for (const h of c.issues)
550
517
  h.path = [b], (u = s.issues) == null || u.push(h);
551
- if (s.issues || (s.issues = a.issues), t.abortEarly) {
518
+ if (s.issues || (s.issues = c.issues), t.abortEarly) {
552
519
  s.typed = !1;
553
520
  break;
554
521
  }
555
522
  }
556
- const y = this.value["~run"]({ value: c }, t);
523
+ const y = this.value["~run"]({ value: p }, t);
557
524
  if (y.issues) {
558
525
  const b = {
559
526
  type: "object",
560
527
  origin: "value",
561
528
  input: l,
562
529
  key: i,
563
- value: c
530
+ value: p
564
531
  };
565
532
  for (const h of y.issues)
566
- h.path ? h.path.unshift(b) : h.path = [b], (p = s.issues) == null || p.push(h);
533
+ h.path ? h.path.unshift(b) : h.path = [b], (a = s.issues) == null || a.push(h);
567
534
  if (s.issues || (s.issues = y.issues), t.abortEarly) {
568
535
  s.typed = !1;
569
536
  break;
570
537
  }
571
538
  }
572
- (!a.typed || !y.typed) && (s.typed = !1), a.typed && (s.value[a.value] = y.value);
539
+ (!c.typed || !y.typed) && (s.typed = !1), c.typed && (s.value[c.value] = y.value);
573
540
  }
574
541
  } else f(this, "type", s, t);
575
542
  return s;
@@ -577,11 +544,11 @@ function ee(n, r, e) {
577
544
  };
578
545
  }
579
546
  // @__NO_SIDE_EFFECTS__
580
- function ne(n) {
547
+ function $(n) {
581
548
  return {
582
549
  kind: "schema",
583
550
  type: "string",
584
- reference: ne,
551
+ reference: $,
585
552
  expects: "string",
586
553
  async: !1,
587
554
  message: n,
@@ -594,60 +561,18 @@ function ne(n) {
594
561
  };
595
562
  }
596
563
  // @__NO_SIDE_EFFECTS__
597
- function re(n, r) {
598
- return {
599
- kind: "schema",
600
- type: "tuple",
601
- reference: re,
602
- expects: "Array",
603
- async: !1,
604
- items: n,
605
- message: r,
606
- get "~standard"() {
607
- return /* @__PURE__ */ o(this);
608
- },
609
- "~run"(e, s) {
610
- var l;
611
- const t = e.value;
612
- if (Array.isArray(t)) {
613
- e.typed = !0, e.value = [];
614
- for (let u = 0; u < this.items.length; u++) {
615
- const p = t[u], i = this.items[u]["~run"]({ value: p }, s);
616
- if (i.issues) {
617
- const c = {
618
- type: "array",
619
- origin: "value",
620
- input: t,
621
- key: u,
622
- value: p
623
- };
624
- for (const a of i.issues)
625
- a.path ? a.path.unshift(c) : a.path = [c], (l = e.issues) == null || l.push(a);
626
- if (e.issues || (e.issues = i.issues), s.abortEarly) {
627
- e.typed = !1;
628
- break;
629
- }
630
- }
631
- i.typed || (e.typed = !1), e.value.push(i.value);
632
- }
633
- } else f(this, "type", e, s);
634
- return e;
635
- }
636
- };
637
- }
638
- // @__NO_SIDE_EFFECTS__
639
- function A(n) {
564
+ function S(n) {
640
565
  let r;
641
566
  if (n) for (const e of n) r ? r.push(...e.issues) : r = e.issues;
642
567
  return r;
643
568
  }
644
569
  // @__NO_SIDE_EFFECTS__
645
- function se(n, r) {
570
+ function ee(n, r) {
646
571
  return {
647
572
  kind: "schema",
648
573
  type: "union",
649
- reference: se,
650
- expects: /* @__PURE__ */ w(n.map((e) => e.expects), "|"),
574
+ reference: ee,
575
+ expects: /* @__PURE__ */ D(n.map((e) => e.expects), "|"),
651
576
  async: !1,
652
577
  options: n,
653
578
  message: r,
@@ -656,8 +581,8 @@ function se(n, r) {
656
581
  },
657
582
  "~run"(e, s) {
658
583
  let t, l, u;
659
- for (const p of this.options) {
660
- const i = p["~run"]({ value: e.value }, s);
584
+ for (const a of this.options) {
585
+ const i = a["~run"]({ value: e.value }, s);
661
586
  if (i.typed) if (i.issues) l ? l.push(i) : l = [i];
662
587
  else {
663
588
  t = i;
@@ -668,21 +593,21 @@ function se(n, r) {
668
593
  if (t) return t;
669
594
  if (l) {
670
595
  if (l.length === 1) return l[0];
671
- f(this, "type", e, s, { issues: /* @__PURE__ */ A(l) }), e.typed = !0;
596
+ f(this, "type", e, s, { issues: /* @__PURE__ */ S(l) }), e.typed = !0;
672
597
  } else {
673
598
  if ((u == null ? void 0 : u.length) === 1) return u[0];
674
- f(this, "type", e, s, { issues: /* @__PURE__ */ A(u) });
599
+ f(this, "type", e, s, { issues: /* @__PURE__ */ S(u) });
675
600
  }
676
601
  return e;
677
602
  }
678
603
  };
679
604
  }
680
605
  // @__NO_SIDE_EFFECTS__
681
- function te() {
606
+ function ne() {
682
607
  return {
683
608
  kind: "schema",
684
609
  type: "unknown",
685
- reference: te,
610
+ reference: ne,
686
611
  expects: "unknown",
687
612
  async: !1,
688
613
  get "~standard"() {
@@ -694,11 +619,11 @@ function te() {
694
619
  };
695
620
  }
696
621
  // @__NO_SIDE_EFFECTS__
697
- function ue(n, r, e) {
622
+ function re(n, r, e) {
698
623
  return {
699
624
  kind: "schema",
700
625
  type: "variant",
701
- reference: ue,
626
+ reference: re,
702
627
  expects: "Object",
703
628
  async: !1,
704
629
  key: n,
@@ -710,22 +635,22 @@ function ue(n, r, e) {
710
635
  "~run"(s, t) {
711
636
  const l = s.value;
712
637
  if (l && typeof l == "object") {
713
- let u, p = 0, i = this.key, c = [];
714
- const a = (y, b) => {
638
+ let u, a = 0, i = this.key, p = [];
639
+ const c = (y, b) => {
715
640
  for (const h of y.options) {
716
- if (h.type === "variant") a(h, new Set(b).add(h.key));
641
+ if (h.type === "variant") c(h, new Set(b).add(h.key));
717
642
  else {
718
- let O = !0, g = 0;
643
+ let O = !0, k = 0;
719
644
  for (const v of b) {
720
645
  const d = h.entries[v];
721
646
  if (v in l ? d["~run"]({
722
647
  typed: !1,
723
648
  value: l[v]
724
649
  }, { abortEarly: !0 }).issues : d.type !== "exact_optional" && d.type !== "optional" && d.type !== "nullish") {
725
- O = !1, i !== v && (p < g || p === g && v in l && !(i in l)) && (p = g, i = v, c = []), i === v && c.push(h.entries[v].expects);
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);
726
651
  break;
727
652
  }
728
- g++;
653
+ k++;
729
654
  }
730
655
  if (O) {
731
656
  const v = h["~run"]({ value: l }, t);
@@ -735,10 +660,10 @@ function ue(n, r, e) {
735
660
  if (u && !u.issues) break;
736
661
  }
737
662
  };
738
- if (a(this, /* @__PURE__ */ new Set([this.key])), u) return u;
663
+ if (c(this, /* @__PURE__ */ new Set([this.key])), u) return u;
739
664
  f(this, "type", s, t, {
740
665
  input: l[i],
741
- expected: /* @__PURE__ */ w(c, "|"),
666
+ expected: /* @__PURE__ */ D(p, "|"),
742
667
  path: [{
743
668
  type: "object",
744
669
  origin: "value",
@@ -752,13 +677,13 @@ function ue(n, r, e) {
752
677
  }
753
678
  };
754
679
  }
755
- function le(n, r, e) {
756
- const s = n["~run"]({ value: r }, /* @__PURE__ */ x(e));
680
+ function te(n, r, e) {
681
+ const s = n["~run"]({ value: r }, /* @__PURE__ */ g(e));
757
682
  if (s.issues) throw new K(s.issues);
758
683
  return s.value;
759
684
  }
760
685
  // @__NO_SIDE_EFFECTS__
761
- function pe(...n) {
686
+ function ue(...n) {
762
687
  return {
763
688
  ...n[0],
764
689
  pipe: n,
@@ -778,7 +703,7 @@ function pe(...n) {
778
703
  };
779
704
  }
780
705
  // @__NO_SIDE_EFFECTS__
781
- function ae(...n) {
706
+ function ie(...n) {
782
707
  return {
783
708
  ...n[0],
784
709
  pipe: n,
@@ -799,8 +724,8 @@ function ae(...n) {
799
724
  };
800
725
  }
801
726
  // @__NO_SIDE_EFFECTS__
802
- function ce(n, r, e) {
803
- const s = n["~run"]({ value: r }, /* @__PURE__ */ x(e));
727
+ function le(n, r, e) {
728
+ const s = n["~run"]({ value: r }, /* @__PURE__ */ g(e));
804
729
  return {
805
730
  typed: s.typed,
806
731
  success: !s.issues,
@@ -809,8 +734,8 @@ function ce(n, r, e) {
809
734
  };
810
735
  }
811
736
  // @__NO_SIDE_EFFECTS__
812
- async function fe(n, r, e) {
813
- const s = await n["~run"]({ value: r }, /* @__PURE__ */ x(e));
737
+ async function ae(n, r, e) {
738
+ const s = await n["~run"]({ value: r }, /* @__PURE__ */ g(e));
814
739
  return {
815
740
  typed: s.typed,
816
741
  success: !s.issues,
@@ -822,44 +747,41 @@ export {
822
747
  K as ValiError,
823
748
  f as _addIssue,
824
749
  o as _getStandardProps,
825
- S as _isValidObjectKey,
826
- w as _joinExpects,
827
- D as _stringify,
828
- R as array,
829
- B as boolean,
830
- M as check,
831
- z as checkAsync,
832
- H as custom,
833
- ie as fallback,
834
- k as getDefault,
750
+ I as _isValidObjectKey,
751
+ D as _joinExpects,
752
+ w as _stringify,
753
+ F as array,
754
+ R as boolean,
755
+ M as checkAsync,
756
+ B as custom,
757
+ se as fallback,
758
+ x as getDefault,
835
759
  P as getFallback,
836
- x as getGlobalConfig,
837
- I as getGlobalMessage,
760
+ g as getGlobalConfig,
761
+ A as getGlobalMessage,
838
762
  V as getSchemaMessage,
839
763
  q as getSpecificMessage,
840
- J as lazy,
841
- Q as literal,
842
- T as looseObject,
843
- G as maxLength,
844
- L as minLength,
845
- N as nonEmpty,
846
- U as nullable,
847
- W as nullish,
848
- X as number,
849
- Y as object,
850
- Z as optional,
851
- le as parse,
852
- $ as picklist,
853
- pe as pipe,
854
- ae as pipeAsync,
855
- ee as record,
856
- ce as safeParse,
857
- fe as safeParseAsync,
858
- ne as string,
859
- C as transform,
860
- F as trim,
861
- re as tuple,
862
- se as union,
863
- te as unknown,
864
- ue as variant
764
+ H as lazy,
765
+ J as literal,
766
+ Q as looseObject,
767
+ z as maxLength,
768
+ G as minLength,
769
+ 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,
782
+ N as transform,
783
+ C as trim,
784
+ ee as union,
785
+ ne as unknown,
786
+ re as variant
865
787
  };