@useinsider/guido 3.11.0-beta.f4ab671 → 3.11.0
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/dist/@types/config/schemas.js +84 -105
- package/dist/components/organisms/header/EditorActions.vue.js +1 -1
- package/dist/components/organisms/header/HeaderWrapper.vue.js +3 -3
- package/dist/components/organisms/header/HeaderWrapper.vue2.js +0 -2
- package/dist/components/organisms/header/version-history/VersionHistory.vue.js +1 -1
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue.js +5 -5
- package/dist/components/organisms/unsubscribe/UnsubscribePageSelection.vue2.js +2 -2
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue.js +3 -3
- package/dist/components/organisms/unsubscribe/UnsubscribeTypeSelection.vue2.js +9 -9
- package/dist/composables/useStripo.js +67 -70
- package/dist/guido.css +1 -1
- package/dist/node_modules/valibot/dist/index.js +112 -148
- package/dist/src/@types/config/schemas.d.ts +0 -32
- package/dist/src/@types/generic.d.ts +0 -18
- package/dist/src/composables/useConfig.d.ts +0 -6
- package/dist/src/composables/useHtmlValidator.test.d.ts +1 -0
- package/dist/src/config/compiler/utils/recommendationIgnoreUtils.test.d.ts +1 -0
- package/dist/src/library.d.ts +1 -1
- package/dist/src/stores/config.d.ts +0 -54
- package/dist/src/utils/genericUtil.d.ts +1 -18
- package/dist/utils/genericUtil.js +21 -42
- package/package.json +1 -10
- package/dist/composables/useModuleDynamicContentRepair.js +0 -37
- package/dist/src/composables/useModuleDynamicContentRepair.d.ts +0 -18
- package/dist/src/utils/dynamicContentConverter.d.ts +0 -27
- package/dist/utils/dynamicContentConverter.js +0 -31
|
@@ -8,10 +8,10 @@ function j(n) {
|
|
|
8
8
|
abortPipeEarly: (n == null ? void 0 : n.abortPipeEarly) ?? (m == null ? void 0 : m.abortPipeEarly)
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
let
|
|
11
|
+
let d;
|
|
12
12
|
// @__NO_SIDE_EFFECTS__
|
|
13
13
|
function A(n) {
|
|
14
|
-
return
|
|
14
|
+
return d == null ? void 0 : d.get(n);
|
|
15
15
|
}
|
|
16
16
|
let x;
|
|
17
17
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -48,7 +48,7 @@ function y(n, s, e, t, r) {
|
|
|
48
48
|
c !== void 0 && (u.message = typeof c == "function" ? c(u) : c), a && (e.typed = !1), e.issues ? e.issues.push(u) : e.issues = [u];
|
|
49
49
|
}
|
|
50
50
|
// @__NO_SIDE_EFFECTS__
|
|
51
|
-
function
|
|
51
|
+
function o(n) {
|
|
52
52
|
return {
|
|
53
53
|
version: 1,
|
|
54
54
|
vendor: "valibot",
|
|
@@ -58,7 +58,7 @@ function f(n) {
|
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
// @__NO_SIDE_EFFECTS__
|
|
61
|
-
function
|
|
61
|
+
function S(n, s) {
|
|
62
62
|
return Object.hasOwn(n, s) && s !== "__proto__" && s !== "prototype" && s !== "constructor";
|
|
63
63
|
}
|
|
64
64
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -97,11 +97,11 @@ function V(n, s) {
|
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
// @__NO_SIDE_EFFECTS__
|
|
100
|
-
function
|
|
100
|
+
function G(n, s) {
|
|
101
101
|
return {
|
|
102
102
|
kind: "validation",
|
|
103
103
|
type: "min_length",
|
|
104
|
-
reference:
|
|
104
|
+
reference: G,
|
|
105
105
|
async: !1,
|
|
106
106
|
expects: `>=${n}`,
|
|
107
107
|
requirement: n,
|
|
@@ -112,11 +112,11 @@ function z(n, s) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
// @__NO_SIDE_EFFECTS__
|
|
115
|
-
function
|
|
115
|
+
function L(n) {
|
|
116
116
|
return {
|
|
117
117
|
kind: "validation",
|
|
118
118
|
type: "non_empty",
|
|
119
|
-
reference:
|
|
119
|
+
reference: L,
|
|
120
120
|
async: !1,
|
|
121
121
|
expects: "!0",
|
|
122
122
|
message: n,
|
|
@@ -126,11 +126,11 @@ function G(n) {
|
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
128
|
// @__NO_SIDE_EFFECTS__
|
|
129
|
-
function
|
|
129
|
+
function N() {
|
|
130
130
|
return {
|
|
131
131
|
kind: "transformation",
|
|
132
132
|
type: "trim",
|
|
133
|
-
reference:
|
|
133
|
+
reference: N,
|
|
134
134
|
async: !1,
|
|
135
135
|
"~run"(n) {
|
|
136
136
|
return n.value = n.value.trim(), n;
|
|
@@ -138,42 +138,25 @@ function L() {
|
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
140
|
// @__NO_SIDE_EFFECTS__
|
|
141
|
-
function
|
|
141
|
+
function I(n, s, e) {
|
|
142
142
|
return typeof n.fallback == "function" ? n.fallback(s, e) : n.fallback;
|
|
143
143
|
}
|
|
144
144
|
// @__NO_SIDE_EFFECTS__
|
|
145
|
-
function
|
|
146
|
-
return {
|
|
147
|
-
...n,
|
|
148
|
-
fallback: s,
|
|
149
|
-
get "~standard"() {
|
|
150
|
-
return /* @__PURE__ */ f(this);
|
|
151
|
-
},
|
|
152
|
-
"~run"(e, t) {
|
|
153
|
-
const r = n["~run"](e, t);
|
|
154
|
-
return r.issues ? {
|
|
155
|
-
typed: !0,
|
|
156
|
-
value: /* @__PURE__ */ P(this, r, t)
|
|
157
|
-
} : r;
|
|
158
|
-
}
|
|
159
|
-
};
|
|
160
|
-
}
|
|
161
|
-
// @__NO_SIDE_EFFECTS__
|
|
162
|
-
function w(n, s, e) {
|
|
145
|
+
function P(n, s, e) {
|
|
163
146
|
return typeof n.default == "function" ? n.default(s, e) : n.default;
|
|
164
147
|
}
|
|
165
148
|
// @__NO_SIDE_EFFECTS__
|
|
166
|
-
function
|
|
149
|
+
function C(n, s) {
|
|
167
150
|
return {
|
|
168
151
|
kind: "schema",
|
|
169
152
|
type: "array",
|
|
170
|
-
reference:
|
|
153
|
+
reference: C,
|
|
171
154
|
expects: "Array",
|
|
172
155
|
async: !1,
|
|
173
156
|
item: n,
|
|
174
157
|
message: s,
|
|
175
158
|
get "~standard"() {
|
|
176
|
-
return /* @__PURE__ */
|
|
159
|
+
return /* @__PURE__ */ o(this);
|
|
177
160
|
},
|
|
178
161
|
"~run"(e, t) {
|
|
179
162
|
var l;
|
|
@@ -205,16 +188,16 @@ function N(n, s) {
|
|
|
205
188
|
};
|
|
206
189
|
}
|
|
207
190
|
// @__NO_SIDE_EFFECTS__
|
|
208
|
-
function
|
|
191
|
+
function F(n) {
|
|
209
192
|
return {
|
|
210
193
|
kind: "schema",
|
|
211
194
|
type: "boolean",
|
|
212
|
-
reference:
|
|
195
|
+
reference: F,
|
|
213
196
|
expects: "boolean",
|
|
214
197
|
async: !1,
|
|
215
198
|
message: n,
|
|
216
199
|
get "~standard"() {
|
|
217
|
-
return /* @__PURE__ */
|
|
200
|
+
return /* @__PURE__ */ o(this);
|
|
218
201
|
},
|
|
219
202
|
"~run"(s, e) {
|
|
220
203
|
return typeof s.value == "boolean" ? s.typed = !0 : y(this, "type", s, e), s;
|
|
@@ -222,17 +205,17 @@ function C(n) {
|
|
|
222
205
|
};
|
|
223
206
|
}
|
|
224
207
|
// @__NO_SIDE_EFFECTS__
|
|
225
|
-
function
|
|
208
|
+
function R(n, s) {
|
|
226
209
|
return {
|
|
227
210
|
kind: "schema",
|
|
228
211
|
type: "custom",
|
|
229
|
-
reference:
|
|
212
|
+
reference: R,
|
|
230
213
|
expects: "unknown",
|
|
231
214
|
async: !1,
|
|
232
215
|
check: n,
|
|
233
216
|
message: s,
|
|
234
217
|
get "~standard"() {
|
|
235
|
-
return /* @__PURE__ */
|
|
218
|
+
return /* @__PURE__ */ o(this);
|
|
236
219
|
},
|
|
237
220
|
"~run"(e, t) {
|
|
238
221
|
return this.check(e.value) ? e.typed = !0 : y(this, "type", e, t), e;
|
|
@@ -240,34 +223,17 @@ function F(n, s) {
|
|
|
240
223
|
};
|
|
241
224
|
}
|
|
242
225
|
// @__NO_SIDE_EFFECTS__
|
|
243
|
-
function
|
|
244
|
-
return {
|
|
245
|
-
kind: "schema",
|
|
246
|
-
type: "lazy",
|
|
247
|
-
reference: R,
|
|
248
|
-
expects: "unknown",
|
|
249
|
-
async: !1,
|
|
250
|
-
getter: n,
|
|
251
|
-
get "~standard"() {
|
|
252
|
-
return /* @__PURE__ */ f(this);
|
|
253
|
-
},
|
|
254
|
-
"~run"(s, e) {
|
|
255
|
-
return this.getter(s.value)["~run"](s, e);
|
|
256
|
-
}
|
|
257
|
-
};
|
|
258
|
-
}
|
|
259
|
-
// @__NO_SIDE_EFFECTS__
|
|
260
|
-
function B(n, s) {
|
|
226
|
+
function z(n, s) {
|
|
261
227
|
return {
|
|
262
228
|
kind: "schema",
|
|
263
229
|
type: "literal",
|
|
264
|
-
reference:
|
|
230
|
+
reference: z,
|
|
265
231
|
expects: /* @__PURE__ */ _(n),
|
|
266
232
|
async: !1,
|
|
267
233
|
literal: n,
|
|
268
234
|
message: s,
|
|
269
235
|
get "~standard"() {
|
|
270
|
-
return /* @__PURE__ */
|
|
236
|
+
return /* @__PURE__ */ o(this);
|
|
271
237
|
},
|
|
272
238
|
"~run"(e, t) {
|
|
273
239
|
return e.value === this.literal ? e.typed = !0 : y(this, "type", e, t), e;
|
|
@@ -275,17 +241,17 @@ function B(n, s) {
|
|
|
275
241
|
};
|
|
276
242
|
}
|
|
277
243
|
// @__NO_SIDE_EFFECTS__
|
|
278
|
-
function
|
|
244
|
+
function B(n, s) {
|
|
279
245
|
return {
|
|
280
246
|
kind: "schema",
|
|
281
247
|
type: "loose_object",
|
|
282
|
-
reference:
|
|
248
|
+
reference: B,
|
|
283
249
|
expects: "Object",
|
|
284
250
|
async: !1,
|
|
285
251
|
entries: n,
|
|
286
252
|
message: s,
|
|
287
253
|
get "~standard"() {
|
|
288
|
-
return /* @__PURE__ */
|
|
254
|
+
return /* @__PURE__ */ o(this);
|
|
289
255
|
},
|
|
290
256
|
"~run"(e, t) {
|
|
291
257
|
var l;
|
|
@@ -295,7 +261,7 @@ function H(n, s) {
|
|
|
295
261
|
for (const i in this.entries) {
|
|
296
262
|
const p = this.entries[i];
|
|
297
263
|
if (i in r || (p.type === "exact_optional" || p.type === "optional" || p.type === "nullish") && p.default !== void 0) {
|
|
298
|
-
const u = i in r ? r[i] : /* @__PURE__ */
|
|
264
|
+
const u = i in r ? r[i] : /* @__PURE__ */ P(p), a = p["~run"]({ value: u }, t);
|
|
299
265
|
if (a.issues) {
|
|
300
266
|
const c = {
|
|
301
267
|
type: "object",
|
|
@@ -304,15 +270,15 @@ function H(n, s) {
|
|
|
304
270
|
key: i,
|
|
305
271
|
value: u
|
|
306
272
|
};
|
|
307
|
-
for (const
|
|
308
|
-
|
|
273
|
+
for (const f of a.issues)
|
|
274
|
+
f.path ? f.path.unshift(c) : f.path = [c], (l = e.issues) == null || l.push(f);
|
|
309
275
|
if (e.issues || (e.issues = a.issues), t.abortEarly) {
|
|
310
276
|
e.typed = !1;
|
|
311
277
|
break;
|
|
312
278
|
}
|
|
313
279
|
}
|
|
314
280
|
a.typed || (e.typed = !1), e.value[i] = a.value;
|
|
315
|
-
} else if (p.fallback !== void 0) e.value[i] = /* @__PURE__ */
|
|
281
|
+
} else if (p.fallback !== void 0) e.value[i] = /* @__PURE__ */ I(p);
|
|
316
282
|
else if (p.type !== "exact_optional" && p.type !== "optional" && p.type !== "nullish" && (y(this, "key", e, t, {
|
|
317
283
|
input: void 0,
|
|
318
284
|
expected: `"${i}"`,
|
|
@@ -327,23 +293,23 @@ function H(n, s) {
|
|
|
327
293
|
break;
|
|
328
294
|
}
|
|
329
295
|
if (!e.issues || !t.abortEarly)
|
|
330
|
-
for (const i in r) /* @__PURE__ */
|
|
296
|
+
for (const i in r) /* @__PURE__ */ S(r, i) && !(i in this.entries) && (e.value[i] = r[i]);
|
|
331
297
|
} else y(this, "type", e, t);
|
|
332
298
|
return e;
|
|
333
299
|
}
|
|
334
300
|
};
|
|
335
301
|
}
|
|
336
302
|
// @__NO_SIDE_EFFECTS__
|
|
337
|
-
function
|
|
303
|
+
function H(n) {
|
|
338
304
|
return {
|
|
339
305
|
kind: "schema",
|
|
340
306
|
type: "number",
|
|
341
|
-
reference:
|
|
307
|
+
reference: H,
|
|
342
308
|
expects: "number",
|
|
343
309
|
async: !1,
|
|
344
310
|
message: n,
|
|
345
311
|
get "~standard"() {
|
|
346
|
-
return /* @__PURE__ */
|
|
312
|
+
return /* @__PURE__ */ o(this);
|
|
347
313
|
},
|
|
348
314
|
"~run"(s, e) {
|
|
349
315
|
return typeof s.value == "number" && !isNaN(s.value) ? s.typed = !0 : y(this, "type", s, e), s;
|
|
@@ -351,17 +317,17 @@ function J(n) {
|
|
|
351
317
|
};
|
|
352
318
|
}
|
|
353
319
|
// @__NO_SIDE_EFFECTS__
|
|
354
|
-
function
|
|
320
|
+
function J(n, s) {
|
|
355
321
|
return {
|
|
356
322
|
kind: "schema",
|
|
357
323
|
type: "object",
|
|
358
|
-
reference:
|
|
324
|
+
reference: J,
|
|
359
325
|
expects: "Object",
|
|
360
326
|
async: !1,
|
|
361
327
|
entries: n,
|
|
362
328
|
message: s,
|
|
363
329
|
get "~standard"() {
|
|
364
|
-
return /* @__PURE__ */
|
|
330
|
+
return /* @__PURE__ */ o(this);
|
|
365
331
|
},
|
|
366
332
|
"~run"(e, t) {
|
|
367
333
|
var l;
|
|
@@ -371,7 +337,7 @@ function Q(n, s) {
|
|
|
371
337
|
for (const i in this.entries) {
|
|
372
338
|
const p = this.entries[i];
|
|
373
339
|
if (i in r || (p.type === "exact_optional" || p.type === "optional" || p.type === "nullish") && p.default !== void 0) {
|
|
374
|
-
const u = i in r ? r[i] : /* @__PURE__ */
|
|
340
|
+
const u = i in r ? r[i] : /* @__PURE__ */ P(p), a = p["~run"]({ value: u }, t);
|
|
375
341
|
if (a.issues) {
|
|
376
342
|
const c = {
|
|
377
343
|
type: "object",
|
|
@@ -380,15 +346,15 @@ function Q(n, s) {
|
|
|
380
346
|
key: i,
|
|
381
347
|
value: u
|
|
382
348
|
};
|
|
383
|
-
for (const
|
|
384
|
-
|
|
349
|
+
for (const f of a.issues)
|
|
350
|
+
f.path ? f.path.unshift(c) : f.path = [c], (l = e.issues) == null || l.push(f);
|
|
385
351
|
if (e.issues || (e.issues = a.issues), t.abortEarly) {
|
|
386
352
|
e.typed = !1;
|
|
387
353
|
break;
|
|
388
354
|
}
|
|
389
355
|
}
|
|
390
356
|
a.typed || (e.typed = !1), e.value[i] = a.value;
|
|
391
|
-
} else if (p.fallback !== void 0) e.value[i] = /* @__PURE__ */
|
|
357
|
+
} else if (p.fallback !== void 0) e.value[i] = /* @__PURE__ */ I(p);
|
|
392
358
|
else if (p.type !== "exact_optional" && p.type !== "optional" && p.type !== "nullish" && (y(this, "key", e, t, {
|
|
393
359
|
input: void 0,
|
|
394
360
|
expected: `"${i}"`,
|
|
@@ -408,35 +374,35 @@ function Q(n, s) {
|
|
|
408
374
|
};
|
|
409
375
|
}
|
|
410
376
|
// @__NO_SIDE_EFFECTS__
|
|
411
|
-
function
|
|
377
|
+
function Q(n, s) {
|
|
412
378
|
return {
|
|
413
379
|
kind: "schema",
|
|
414
380
|
type: "optional",
|
|
415
|
-
reference:
|
|
381
|
+
reference: Q,
|
|
416
382
|
expects: `(${n.expects} | undefined)`,
|
|
417
383
|
async: !1,
|
|
418
384
|
wrapped: n,
|
|
419
385
|
default: s,
|
|
420
386
|
get "~standard"() {
|
|
421
|
-
return /* @__PURE__ */
|
|
387
|
+
return /* @__PURE__ */ o(this);
|
|
422
388
|
},
|
|
423
389
|
"~run"(e, t) {
|
|
424
|
-
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */
|
|
390
|
+
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ P(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
425
391
|
}
|
|
426
392
|
};
|
|
427
393
|
}
|
|
428
394
|
// @__NO_SIDE_EFFECTS__
|
|
429
|
-
function
|
|
395
|
+
function T(n, s) {
|
|
430
396
|
return {
|
|
431
397
|
kind: "schema",
|
|
432
398
|
type: "picklist",
|
|
433
|
-
reference:
|
|
399
|
+
reference: T,
|
|
434
400
|
expects: /* @__PURE__ */ D(n.map(_), "|"),
|
|
435
401
|
async: !1,
|
|
436
402
|
options: n,
|
|
437
403
|
message: s,
|
|
438
404
|
get "~standard"() {
|
|
439
|
-
return /* @__PURE__ */
|
|
405
|
+
return /* @__PURE__ */ o(this);
|
|
440
406
|
},
|
|
441
407
|
"~run"(e, t) {
|
|
442
408
|
return this.options.includes(e.value) ? e.typed = !0 : y(this, "type", e, t), e;
|
|
@@ -444,25 +410,25 @@ function U(n, s) {
|
|
|
444
410
|
};
|
|
445
411
|
}
|
|
446
412
|
// @__NO_SIDE_EFFECTS__
|
|
447
|
-
function
|
|
413
|
+
function U(n, s, e) {
|
|
448
414
|
return {
|
|
449
415
|
kind: "schema",
|
|
450
416
|
type: "record",
|
|
451
|
-
reference:
|
|
417
|
+
reference: U,
|
|
452
418
|
expects: "Object",
|
|
453
419
|
async: !1,
|
|
454
420
|
key: n,
|
|
455
421
|
value: s,
|
|
456
422
|
message: e,
|
|
457
423
|
get "~standard"() {
|
|
458
|
-
return /* @__PURE__ */
|
|
424
|
+
return /* @__PURE__ */ o(this);
|
|
459
425
|
},
|
|
460
426
|
"~run"(t, r) {
|
|
461
427
|
var i, p;
|
|
462
428
|
const l = t.value;
|
|
463
429
|
if (l && typeof l == "object") {
|
|
464
430
|
t.typed = !0, t.value = {};
|
|
465
|
-
for (const u in l) if (/* @__PURE__ */
|
|
431
|
+
for (const u in l) if (/* @__PURE__ */ S(l, u)) {
|
|
466
432
|
const a = l[u], c = this.key["~run"]({ value: u }, r);
|
|
467
433
|
if (c.issues) {
|
|
468
434
|
const b = {
|
|
@@ -479,8 +445,8 @@ function W(n, s, e) {
|
|
|
479
445
|
break;
|
|
480
446
|
}
|
|
481
447
|
}
|
|
482
|
-
const
|
|
483
|
-
if (
|
|
448
|
+
const f = this.value["~run"]({ value: a }, r);
|
|
449
|
+
if (f.issues) {
|
|
484
450
|
const b = {
|
|
485
451
|
type: "object",
|
|
486
452
|
origin: "value",
|
|
@@ -488,14 +454,14 @@ function W(n, s, e) {
|
|
|
488
454
|
key: u,
|
|
489
455
|
value: a
|
|
490
456
|
};
|
|
491
|
-
for (const h of
|
|
457
|
+
for (const h of f.issues)
|
|
492
458
|
h.path ? h.path.unshift(b) : h.path = [b], (p = t.issues) == null || p.push(h);
|
|
493
|
-
if (t.issues || (t.issues =
|
|
459
|
+
if (t.issues || (t.issues = f.issues), r.abortEarly) {
|
|
494
460
|
t.typed = !1;
|
|
495
461
|
break;
|
|
496
462
|
}
|
|
497
463
|
}
|
|
498
|
-
(!c.typed || !
|
|
464
|
+
(!c.typed || !f.typed) && (t.typed = !1), c.typed && (t.value[c.value] = f.value);
|
|
499
465
|
}
|
|
500
466
|
} else y(this, "type", t, r);
|
|
501
467
|
return t;
|
|
@@ -503,16 +469,16 @@ function W(n, s, e) {
|
|
|
503
469
|
};
|
|
504
470
|
}
|
|
505
471
|
// @__NO_SIDE_EFFECTS__
|
|
506
|
-
function
|
|
472
|
+
function W(n) {
|
|
507
473
|
return {
|
|
508
474
|
kind: "schema",
|
|
509
475
|
type: "string",
|
|
510
|
-
reference:
|
|
476
|
+
reference: W,
|
|
511
477
|
expects: "string",
|
|
512
478
|
async: !1,
|
|
513
479
|
message: n,
|
|
514
480
|
get "~standard"() {
|
|
515
|
-
return /* @__PURE__ */
|
|
481
|
+
return /* @__PURE__ */ o(this);
|
|
516
482
|
},
|
|
517
483
|
"~run"(s, e) {
|
|
518
484
|
return typeof s.value == "string" ? s.typed = !0 : y(this, "type", s, e), s;
|
|
@@ -520,23 +486,23 @@ function X(n) {
|
|
|
520
486
|
};
|
|
521
487
|
}
|
|
522
488
|
// @__NO_SIDE_EFFECTS__
|
|
523
|
-
function
|
|
489
|
+
function O(n) {
|
|
524
490
|
let s;
|
|
525
491
|
if (n) for (const e of n) s ? s.push(...e.issues) : s = e.issues;
|
|
526
492
|
return s;
|
|
527
493
|
}
|
|
528
494
|
// @__NO_SIDE_EFFECTS__
|
|
529
|
-
function
|
|
495
|
+
function X(n, s) {
|
|
530
496
|
return {
|
|
531
497
|
kind: "schema",
|
|
532
498
|
type: "union",
|
|
533
|
-
reference:
|
|
499
|
+
reference: X,
|
|
534
500
|
expects: /* @__PURE__ */ D(n.map((e) => e.expects), "|"),
|
|
535
501
|
async: !1,
|
|
536
502
|
options: n,
|
|
537
503
|
message: s,
|
|
538
504
|
get "~standard"() {
|
|
539
|
-
return /* @__PURE__ */
|
|
505
|
+
return /* @__PURE__ */ o(this);
|
|
540
506
|
},
|
|
541
507
|
"~run"(e, t) {
|
|
542
508
|
let r, l, i;
|
|
@@ -552,25 +518,25 @@ function Y(n, s) {
|
|
|
552
518
|
if (r) return r;
|
|
553
519
|
if (l) {
|
|
554
520
|
if (l.length === 1) return l[0];
|
|
555
|
-
y(this, "type", e, t, { issues: /* @__PURE__ */
|
|
521
|
+
y(this, "type", e, t, { issues: /* @__PURE__ */ O(l) }), e.typed = !0;
|
|
556
522
|
} else {
|
|
557
523
|
if ((i == null ? void 0 : i.length) === 1) return i[0];
|
|
558
|
-
y(this, "type", e, t, { issues: /* @__PURE__ */
|
|
524
|
+
y(this, "type", e, t, { issues: /* @__PURE__ */ O(i) });
|
|
559
525
|
}
|
|
560
526
|
return e;
|
|
561
527
|
}
|
|
562
528
|
};
|
|
563
529
|
}
|
|
564
530
|
// @__NO_SIDE_EFFECTS__
|
|
565
|
-
function
|
|
531
|
+
function Y() {
|
|
566
532
|
return {
|
|
567
533
|
kind: "schema",
|
|
568
534
|
type: "unknown",
|
|
569
|
-
reference:
|
|
535
|
+
reference: Y,
|
|
570
536
|
expects: "unknown",
|
|
571
537
|
async: !1,
|
|
572
538
|
get "~standard"() {
|
|
573
|
-
return /* @__PURE__ */
|
|
539
|
+
return /* @__PURE__ */ o(this);
|
|
574
540
|
},
|
|
575
541
|
"~run"(n) {
|
|
576
542
|
return n.typed = !0, n;
|
|
@@ -578,40 +544,40 @@ function Z() {
|
|
|
578
544
|
};
|
|
579
545
|
}
|
|
580
546
|
// @__NO_SIDE_EFFECTS__
|
|
581
|
-
function
|
|
547
|
+
function Z(n, s, e) {
|
|
582
548
|
return {
|
|
583
549
|
kind: "schema",
|
|
584
550
|
type: "variant",
|
|
585
|
-
reference:
|
|
551
|
+
reference: Z,
|
|
586
552
|
expects: "Object",
|
|
587
553
|
async: !1,
|
|
588
554
|
key: n,
|
|
589
555
|
options: s,
|
|
590
556
|
message: e,
|
|
591
557
|
get "~standard"() {
|
|
592
|
-
return /* @__PURE__ */
|
|
558
|
+
return /* @__PURE__ */ o(this);
|
|
593
559
|
},
|
|
594
560
|
"~run"(t, r) {
|
|
595
561
|
const l = t.value;
|
|
596
562
|
if (l && typeof l == "object") {
|
|
597
563
|
let i, p = 0, u = this.key, a = [];
|
|
598
|
-
const c = (
|
|
599
|
-
for (const h of
|
|
564
|
+
const c = (f, b) => {
|
|
565
|
+
for (const h of f.options) {
|
|
600
566
|
if (h.type === "variant") c(h, new Set(b).add(h.key));
|
|
601
567
|
else {
|
|
602
|
-
let
|
|
568
|
+
let w = !0, k = 0;
|
|
603
569
|
for (const v of b) {
|
|
604
|
-
const
|
|
605
|
-
if (v in l ?
|
|
570
|
+
const g = h.entries[v];
|
|
571
|
+
if (v in l ? g["~run"]({
|
|
606
572
|
typed: !1,
|
|
607
573
|
value: l[v]
|
|
608
|
-
}, { abortEarly: !0 }).issues :
|
|
609
|
-
|
|
574
|
+
}, { abortEarly: !0 }).issues : g.type !== "exact_optional" && g.type !== "optional" && g.type !== "nullish") {
|
|
575
|
+
w = !1, u !== v && (p < k || p === k && v in l && !(u in l)) && (p = k, u = v, a = []), u === v && a.push(h.entries[v].expects);
|
|
610
576
|
break;
|
|
611
577
|
}
|
|
612
578
|
k++;
|
|
613
579
|
}
|
|
614
|
-
if (
|
|
580
|
+
if (w) {
|
|
615
581
|
const v = h["~run"]({ value: l }, r);
|
|
616
582
|
(!i || !i.typed && v.typed) && (i = v);
|
|
617
583
|
}
|
|
@@ -637,12 +603,12 @@ function $(n, s, e) {
|
|
|
637
603
|
};
|
|
638
604
|
}
|
|
639
605
|
// @__NO_SIDE_EFFECTS__
|
|
640
|
-
function
|
|
606
|
+
function $(...n) {
|
|
641
607
|
return {
|
|
642
608
|
...n[0],
|
|
643
609
|
pipe: n,
|
|
644
610
|
get "~standard"() {
|
|
645
|
-
return /* @__PURE__ */
|
|
611
|
+
return /* @__PURE__ */ o(this);
|
|
646
612
|
},
|
|
647
613
|
"~run"(s, e) {
|
|
648
614
|
for (const t of n) if (t.kind !== "metadata") {
|
|
@@ -657,13 +623,13 @@ function ne(...n) {
|
|
|
657
623
|
};
|
|
658
624
|
}
|
|
659
625
|
// @__NO_SIDE_EFFECTS__
|
|
660
|
-
function
|
|
626
|
+
function ee(...n) {
|
|
661
627
|
return {
|
|
662
628
|
...n[0],
|
|
663
629
|
pipe: n,
|
|
664
630
|
async: !0,
|
|
665
631
|
get "~standard"() {
|
|
666
|
-
return /* @__PURE__ */
|
|
632
|
+
return /* @__PURE__ */ o(this);
|
|
667
633
|
},
|
|
668
634
|
async "~run"(s, e) {
|
|
669
635
|
for (const t of n) if (t.kind !== "metadata") {
|
|
@@ -678,7 +644,7 @@ function se(...n) {
|
|
|
678
644
|
};
|
|
679
645
|
}
|
|
680
646
|
// @__NO_SIDE_EFFECTS__
|
|
681
|
-
function
|
|
647
|
+
function ne(n, s, e) {
|
|
682
648
|
const t = n["~run"]({ value: s }, /* @__PURE__ */ j(e));
|
|
683
649
|
return {
|
|
684
650
|
typed: t.typed,
|
|
@@ -688,7 +654,7 @@ function te(n, s, e) {
|
|
|
688
654
|
};
|
|
689
655
|
}
|
|
690
656
|
// @__NO_SIDE_EFFECTS__
|
|
691
|
-
async function
|
|
657
|
+
async function se(n, s, e) {
|
|
692
658
|
const t = await n["~run"]({ value: s }, /* @__PURE__ */ j(e));
|
|
693
659
|
return {
|
|
694
660
|
typed: t.typed,
|
|
@@ -699,39 +665,37 @@ async function re(n, s, e) {
|
|
|
699
665
|
}
|
|
700
666
|
export {
|
|
701
667
|
y as _addIssue,
|
|
702
|
-
|
|
703
|
-
|
|
668
|
+
o as _getStandardProps,
|
|
669
|
+
S as _isValidObjectKey,
|
|
704
670
|
D as _joinExpects,
|
|
705
671
|
_ as _stringify,
|
|
706
|
-
|
|
707
|
-
|
|
672
|
+
C as array,
|
|
673
|
+
F as boolean,
|
|
708
674
|
M as checkAsync,
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
P as getFallback,
|
|
675
|
+
R as custom,
|
|
676
|
+
P as getDefault,
|
|
677
|
+
I as getFallback,
|
|
713
678
|
j as getGlobalConfig,
|
|
714
679
|
A as getGlobalMessage,
|
|
715
680
|
q as getSchemaMessage,
|
|
716
681
|
K as getSpecificMessage,
|
|
717
|
-
|
|
718
|
-
B as
|
|
719
|
-
H as looseObject,
|
|
682
|
+
z as literal,
|
|
683
|
+
B as looseObject,
|
|
720
684
|
V as maxLength,
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
685
|
+
G as minLength,
|
|
686
|
+
L as nonEmpty,
|
|
687
|
+
H as number,
|
|
688
|
+
J as object,
|
|
689
|
+
Q as optional,
|
|
690
|
+
T as picklist,
|
|
691
|
+
$ as pipe,
|
|
692
|
+
ee as pipeAsync,
|
|
693
|
+
U as record,
|
|
694
|
+
ne as safeParse,
|
|
695
|
+
se as safeParseAsync,
|
|
696
|
+
W as string,
|
|
697
|
+
N as trim,
|
|
698
|
+
X as union,
|
|
699
|
+
Y as unknown,
|
|
700
|
+
Z as variant
|
|
737
701
|
};
|