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