@scbt-ecom/ui 0.42.5 → 0.44.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/hooks.js +13 -14
- package/dist/hooks.js.map +1 -1
- package/dist/index-DV_MMMPA.js +41785 -0
- package/dist/index-DV_MMMPA.js.map +1 -0
- package/dist/isClient-C9aZtt2Q.js +5 -0
- package/dist/{isClient-D-a29gNu.js.map → isClient-C9aZtt2Q.js.map} +1 -1
- package/dist/shared/ui/formElements/controlled/checkbox/CheckboxControl.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/checkbox/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/dadata/address/DadataAddress.d.ts +5 -4
- package/dist/shared/ui/formElements/controlled/dadata/address/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/dadata/auto/DadataAuto.d.ts +5 -4
- package/dist/shared/ui/formElements/controlled/dadata/auto/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/dadata/country/DadataCountry.d.ts +5 -4
- package/dist/shared/ui/formElements/controlled/dadata/country/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/dadata/fio/DadataFio.d.ts +5 -4
- package/dist/shared/ui/formElements/controlled/dadata/fio/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/dadata/index.d.ts +5 -5
- package/dist/shared/ui/formElements/controlled/dadata/party/DadataOrganization.d.ts +5 -4
- package/dist/shared/ui/formElements/controlled/dadata/party/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/dayPickerControl/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/editor/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/index.d.ts +27 -107
- package/dist/shared/ui/formElements/controlled/input/InputControl.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/input/MaskInputControl.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/input/index.d.ts +2 -2
- package/dist/shared/ui/formElements/controlled/inputCurrency/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/radio/RadioGroupControl.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/radio/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/select/SelectControl.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/select/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/slider/SliderControl.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/slider/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/switch/index.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/uploader/UploaderControl.d.ts +1 -1
- package/dist/shared/ui/formElements/controlled/uploader/index.d.ts +1 -1
- package/dist/shared/ui/index.d.ts +0 -1
- package/dist/shared/ui/phoneView/PhoneView.d.ts +1 -1
- package/dist/shared/validation/dadata/dadata.validators.d.ts +1 -0
- package/dist/{cn-DIfn7EPB.js → typeGuards-yOWv7RXH.js} +130 -106
- package/dist/typeGuards-yOWv7RXH.js.map +1 -0
- package/dist/ui.js +335 -33211
- package/dist/ui.js.map +1 -1
- package/dist/useDebounce-QgEEiWs9.js +1190 -0
- package/dist/useDebounce-QgEEiWs9.js.map +1 -0
- package/dist/{utils-Baa0uHhG.js → utils-DnWHDMk6.js} +125 -125
- package/dist/{utils-Baa0uHhG.js.map → utils-DnWHDMk6.js.map} +1 -1
- package/dist/utils-tailwind.css +11 -0
- package/dist/utils.js +4 -5
- package/dist/utils.js.map +1 -1
- package/dist/validation.js +76 -76
- package/dist/widget.js +456 -297
- package/dist/widget.js.map +1 -1
- package/dist/widgets/fieldMapper/FieldMapper.d.ts +8 -0
- package/dist/widgets/fieldMapper/index.d.ts +2 -0
- package/dist/widgets/fieldMapper/model/types.d.ts +9 -0
- package/dist/widgets/index.d.ts +2 -0
- package/dist/widgets/usefulInfo/UsefulInfo.d.ts +6 -0
- package/dist/widgets/usefulInfo/index.d.ts +1 -0
- package/dist/widgets/usefulInfo/model/index.d.ts +2 -0
- package/dist/widgets/usefulInfo/model/types.d.ts +50 -0
- package/dist/widgets/usefulInfo/model/utils.d.ts +4 -0
- package/dist/widgets/usefulInfo/ui/RenderEntity.d.ts +5 -0
- package/dist/widgets/usefulInfo/ui/Tabs.d.ts +7 -0
- package/dist/widgets/usefulInfo/ui/index.d.ts +2 -0
- package/dist/widgets/usefulInfo/ui/subEntities/documents/Documents.d.ts +2 -0
- package/dist/widgets/usefulInfo/ui/subEntities/documents/index.d.ts +1 -0
- package/dist/widgets/usefulInfo/ui/subEntities/documents/ui/document/Document.d.ts +8 -0
- package/dist/widgets/usefulInfo/ui/subEntities/documents/ui/document/model/utils.d.ts +6 -0
- package/dist/widgets/usefulInfo/ui/subEntities/html/Html.d.ts +2 -0
- package/dist/widgets/usefulInfo/ui/subEntities/html/index.d.ts +1 -0
- package/dist/widgets/usefulInfo/ui/subEntities/index.d.ts +3 -0
- package/dist/widgets/usefulInfo/ui/subEntities/table/Table.d.ts +2 -0
- package/dist/widgets/usefulInfo/ui/subEntities/table/index.d.ts +1 -0
- package/dist/widgets/usefulInfo/ui/subEntities/table/model/utils.d.ts +12 -0
- package/dist/widgets/usefulInfo/ui/subEntities/table/ui/DesktopHeadings.d.ts +7 -0
- package/dist/widgets/usefulInfo/ui/subEntities/table/ui/DesktopRow.d.ts +9 -0
- package/dist/widgets/usefulInfo/ui/subEntities/table/ui/MobileRow.d.ts +13 -0
- package/dist/widgets/usefulInfo/ui/subEntities/table/ui/TableBody.d.ts +9 -0
- package/dist/widgets/usefulInfo/ui/subEntities/table/ui/index.d.ts +3 -0
- package/package.json +2 -1
- package/dist/CustomLink-BrBUFe53.js +0 -8946
- package/dist/CustomLink-BrBUFe53.js.map +0 -1
- package/dist/cn-DIfn7EPB.js.map +0 -1
- package/dist/isClient-D-a29gNu.js +0 -5
- package/dist/shared/ui/document/Document.d.ts +0 -14
- package/dist/typeGuards-B82KZ2oS.js +0 -27
- package/dist/typeGuards-B82KZ2oS.js.map +0 -1
- package/dist/useDebounce-CIcYhLoU.js +0 -1167
- package/dist/useDebounce-CIcYhLoU.js.map +0 -1
- package/dist/useDevice-L83kSsN7.js +0 -28
- package/dist/useDevice-L83kSsN7.js.map +0 -1
- /package/dist/{shared/ui/phoneView → widgets/footer/model}/helpers.d.ts +0 -0
- /package/dist/{shared → widgets/usefulInfo/ui/subEntities/documents}/ui/document/index.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Et = Object.defineProperty;
|
|
2
2
|
var Nt = (n, t, e) => t in n ? Et(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
|
|
3
3
|
var h = (n, t, e) => Nt(n, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { c as Se } from "./
|
|
4
|
+
import { c as Se } from "./typeGuards-yOWv7RXH.js";
|
|
5
5
|
var w;
|
|
6
6
|
(function(n) {
|
|
7
7
|
n.assertEqual = (a) => a;
|
|
@@ -348,7 +348,7 @@ const st = (n, t) => {
|
|
|
348
348
|
}
|
|
349
349
|
};
|
|
350
350
|
};
|
|
351
|
-
function
|
|
351
|
+
function v(n) {
|
|
352
352
|
if (!n)
|
|
353
353
|
return {};
|
|
354
354
|
const { errorMap: t, invalid_type_error: e, required_error: r, description: a } = n;
|
|
@@ -360,7 +360,7 @@ function _(n) {
|
|
|
360
360
|
return i.code === "invalid_enum_value" ? { message: m ?? o.defaultError } : typeof o.data > "u" ? { message: (d = m ?? r) !== null && d !== void 0 ? d : o.defaultError } : i.code !== "invalid_type" ? { message: o.defaultError } : { message: (c = m ?? e) !== null && c !== void 0 ? c : o.defaultError };
|
|
361
361
|
}, description: a };
|
|
362
362
|
}
|
|
363
|
-
class
|
|
363
|
+
class _ {
|
|
364
364
|
get description() {
|
|
365
365
|
return this._def.description;
|
|
366
366
|
}
|
|
@@ -529,7 +529,7 @@ class v {
|
|
|
529
529
|
}
|
|
530
530
|
transform(t) {
|
|
531
531
|
return new L({
|
|
532
|
-
...
|
|
532
|
+
...v(this._def),
|
|
533
533
|
schema: this,
|
|
534
534
|
typeName: y.ZodEffects,
|
|
535
535
|
effect: { type: "transform", transform: t }
|
|
@@ -538,7 +538,7 @@ class v {
|
|
|
538
538
|
default(t) {
|
|
539
539
|
const e = typeof t == "function" ? t : () => t;
|
|
540
540
|
return new Pe({
|
|
541
|
-
...
|
|
541
|
+
...v(this._def),
|
|
542
542
|
innerType: this,
|
|
543
543
|
defaultValue: e,
|
|
544
544
|
typeName: y.ZodDefault
|
|
@@ -548,13 +548,13 @@ class v {
|
|
|
548
548
|
return new Ue({
|
|
549
549
|
typeName: y.ZodBranded,
|
|
550
550
|
type: this,
|
|
551
|
-
...
|
|
551
|
+
...v(this._def)
|
|
552
552
|
});
|
|
553
553
|
}
|
|
554
554
|
catch(t) {
|
|
555
555
|
const e = typeof t == "function" ? t : () => t;
|
|
556
556
|
return new Ce({
|
|
557
|
-
...
|
|
557
|
+
...v(this._def),
|
|
558
558
|
innerType: this,
|
|
559
559
|
catchValue: e,
|
|
560
560
|
typeName: y.ZodCatch
|
|
@@ -611,7 +611,7 @@ function Kt(n, t) {
|
|
|
611
611
|
function er(n, t) {
|
|
612
612
|
return !!((t === "v4" || !t) && qt.test(n) || (t === "v6" || !t) && Bt.test(n));
|
|
613
613
|
}
|
|
614
|
-
class Y extends
|
|
614
|
+
class Y extends _ {
|
|
615
615
|
_parse(t) {
|
|
616
616
|
if (this._def.coerce && (t.data = String(t.data)), this._getType(t) !== f.string) {
|
|
617
617
|
const s = this._getOrReturnCtx(t);
|
|
@@ -995,14 +995,14 @@ Y.create = (n) => {
|
|
|
995
995
|
checks: [],
|
|
996
996
|
typeName: y.ZodString,
|
|
997
997
|
coerce: (t = n == null ? void 0 : n.coerce) !== null && t !== void 0 ? t : !1,
|
|
998
|
-
...
|
|
998
|
+
...v(n)
|
|
999
999
|
});
|
|
1000
1000
|
};
|
|
1001
1001
|
function tr(n, t) {
|
|
1002
1002
|
const e = (n.toString().split(".")[1] || "").length, r = (t.toString().split(".")[1] || "").length, a = e > r ? e : r, s = parseInt(n.toFixed(a).replace(".", "")), i = parseInt(t.toFixed(a).replace(".", ""));
|
|
1003
1003
|
return s % i / Math.pow(10, a);
|
|
1004
1004
|
}
|
|
1005
|
-
class X extends
|
|
1005
|
+
class X extends _ {
|
|
1006
1006
|
constructor() {
|
|
1007
1007
|
super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
|
|
1008
1008
|
}
|
|
@@ -1172,9 +1172,9 @@ X.create = (n) => new X({
|
|
|
1172
1172
|
checks: [],
|
|
1173
1173
|
typeName: y.ZodNumber,
|
|
1174
1174
|
coerce: (n == null ? void 0 : n.coerce) || !1,
|
|
1175
|
-
...
|
|
1175
|
+
...v(n)
|
|
1176
1176
|
});
|
|
1177
|
-
class G extends
|
|
1177
|
+
class G extends _ {
|
|
1178
1178
|
constructor() {
|
|
1179
1179
|
super(...arguments), this.min = this.gte, this.max = this.lte;
|
|
1180
1180
|
}
|
|
@@ -1307,10 +1307,10 @@ G.create = (n) => {
|
|
|
1307
1307
|
checks: [],
|
|
1308
1308
|
typeName: y.ZodBigInt,
|
|
1309
1309
|
coerce: (t = n == null ? void 0 : n.coerce) !== null && t !== void 0 ? t : !1,
|
|
1310
|
-
...
|
|
1310
|
+
...v(n)
|
|
1311
1311
|
});
|
|
1312
1312
|
};
|
|
1313
|
-
class ge extends
|
|
1313
|
+
class ge extends _ {
|
|
1314
1314
|
_parse(t) {
|
|
1315
1315
|
if (this._def.coerce && (t.data = !!t.data), this._getType(t) !== f.boolean) {
|
|
1316
1316
|
const r = this._getOrReturnCtx(t);
|
|
@@ -1326,9 +1326,9 @@ class ge extends v {
|
|
|
1326
1326
|
ge.create = (n) => new ge({
|
|
1327
1327
|
typeName: y.ZodBoolean,
|
|
1328
1328
|
coerce: (n == null ? void 0 : n.coerce) || !1,
|
|
1329
|
-
...
|
|
1329
|
+
...v(n)
|
|
1330
1330
|
});
|
|
1331
|
-
class ne extends
|
|
1331
|
+
class ne extends _ {
|
|
1332
1332
|
_parse(t) {
|
|
1333
1333
|
if (this._def.coerce && (t.data = new Date(t.data)), this._getType(t) !== f.date) {
|
|
1334
1334
|
const s = this._getOrReturnCtx(t);
|
|
@@ -1404,9 +1404,9 @@ ne.create = (n) => new ne({
|
|
|
1404
1404
|
checks: [],
|
|
1405
1405
|
coerce: (n == null ? void 0 : n.coerce) || !1,
|
|
1406
1406
|
typeName: y.ZodDate,
|
|
1407
|
-
...
|
|
1407
|
+
...v(n)
|
|
1408
1408
|
});
|
|
1409
|
-
class Ae extends
|
|
1409
|
+
class Ae extends _ {
|
|
1410
1410
|
_parse(t) {
|
|
1411
1411
|
if (this._getType(t) !== f.symbol) {
|
|
1412
1412
|
const r = this._getOrReturnCtx(t);
|
|
@@ -1421,9 +1421,9 @@ class Ae extends v {
|
|
|
1421
1421
|
}
|
|
1422
1422
|
Ae.create = (n) => new Ae({
|
|
1423
1423
|
typeName: y.ZodSymbol,
|
|
1424
|
-
...
|
|
1424
|
+
...v(n)
|
|
1425
1425
|
});
|
|
1426
|
-
class
|
|
1426
|
+
class ve extends _ {
|
|
1427
1427
|
_parse(t) {
|
|
1428
1428
|
if (this._getType(t) !== f.undefined) {
|
|
1429
1429
|
const r = this._getOrReturnCtx(t);
|
|
@@ -1436,11 +1436,11 @@ class _e extends v {
|
|
|
1436
1436
|
return Z(t.data);
|
|
1437
1437
|
}
|
|
1438
1438
|
}
|
|
1439
|
-
|
|
1439
|
+
ve.create = (n) => new ve({
|
|
1440
1440
|
typeName: y.ZodUndefined,
|
|
1441
|
-
...
|
|
1441
|
+
...v(n)
|
|
1442
1442
|
});
|
|
1443
|
-
class
|
|
1443
|
+
class _e extends _ {
|
|
1444
1444
|
_parse(t) {
|
|
1445
1445
|
if (this._getType(t) !== f.null) {
|
|
1446
1446
|
const r = this._getOrReturnCtx(t);
|
|
@@ -1453,11 +1453,11 @@ class ve extends v {
|
|
|
1453
1453
|
return Z(t.data);
|
|
1454
1454
|
}
|
|
1455
1455
|
}
|
|
1456
|
-
|
|
1456
|
+
_e.create = (n) => new _e({
|
|
1457
1457
|
typeName: y.ZodNull,
|
|
1458
|
-
...
|
|
1458
|
+
...v(n)
|
|
1459
1459
|
});
|
|
1460
|
-
class ue extends
|
|
1460
|
+
class ue extends _ {
|
|
1461
1461
|
constructor() {
|
|
1462
1462
|
super(...arguments), this._any = !0;
|
|
1463
1463
|
}
|
|
@@ -1467,9 +1467,9 @@ class ue extends v {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
ue.create = (n) => new ue({
|
|
1469
1469
|
typeName: y.ZodAny,
|
|
1470
|
-
...
|
|
1470
|
+
...v(n)
|
|
1471
1471
|
});
|
|
1472
|
-
class te extends
|
|
1472
|
+
class te extends _ {
|
|
1473
1473
|
constructor() {
|
|
1474
1474
|
super(...arguments), this._unknown = !0;
|
|
1475
1475
|
}
|
|
@@ -1479,9 +1479,9 @@ class te extends v {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
te.create = (n) => new te({
|
|
1481
1481
|
typeName: y.ZodUnknown,
|
|
1482
|
-
...
|
|
1482
|
+
...v(n)
|
|
1483
1483
|
});
|
|
1484
|
-
class Q extends
|
|
1484
|
+
class Q extends _ {
|
|
1485
1485
|
_parse(t) {
|
|
1486
1486
|
const e = this._getOrReturnCtx(t);
|
|
1487
1487
|
return l(e, {
|
|
@@ -1493,9 +1493,9 @@ class Q extends v {
|
|
|
1493
1493
|
}
|
|
1494
1494
|
Q.create = (n) => new Q({
|
|
1495
1495
|
typeName: y.ZodNever,
|
|
1496
|
-
...
|
|
1496
|
+
...v(n)
|
|
1497
1497
|
});
|
|
1498
|
-
class Re extends
|
|
1498
|
+
class Re extends _ {
|
|
1499
1499
|
_parse(t) {
|
|
1500
1500
|
if (this._getType(t) !== f.undefined) {
|
|
1501
1501
|
const r = this._getOrReturnCtx(t);
|
|
@@ -1510,9 +1510,9 @@ class Re extends v {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
Re.create = (n) => new Re({
|
|
1512
1512
|
typeName: y.ZodVoid,
|
|
1513
|
-
...
|
|
1513
|
+
...v(n)
|
|
1514
1514
|
});
|
|
1515
|
-
class W extends
|
|
1515
|
+
class W extends _ {
|
|
1516
1516
|
_parse(t) {
|
|
1517
1517
|
const { ctx: e, status: r } = this._processInputParams(t), a = this._def;
|
|
1518
1518
|
if (e.parsedType !== f.array)
|
|
@@ -1583,7 +1583,7 @@ W.create = (n, t) => new W({
|
|
|
1583
1583
|
maxLength: null,
|
|
1584
1584
|
exactLength: null,
|
|
1585
1585
|
typeName: y.ZodArray,
|
|
1586
|
-
...
|
|
1586
|
+
...v(t)
|
|
1587
1587
|
});
|
|
1588
1588
|
function se(n) {
|
|
1589
1589
|
if (n instanceof T) {
|
|
@@ -1601,7 +1601,7 @@ function se(n) {
|
|
|
1601
1601
|
type: se(n.element)
|
|
1602
1602
|
}) : n instanceof F ? F.create(se(n.unwrap())) : n instanceof K ? K.create(se(n.unwrap())) : n instanceof q ? q.create(n.items.map((t) => se(t))) : n;
|
|
1603
1603
|
}
|
|
1604
|
-
class T extends
|
|
1604
|
+
class T extends _ {
|
|
1605
1605
|
constructor() {
|
|
1606
1606
|
super(...arguments), this._cached = null, this.nonstrict = this.passthrough, this.augment = this.extend;
|
|
1607
1607
|
}
|
|
@@ -1872,23 +1872,23 @@ T.create = (n, t) => new T({
|
|
|
1872
1872
|
unknownKeys: "strip",
|
|
1873
1873
|
catchall: Q.create(),
|
|
1874
1874
|
typeName: y.ZodObject,
|
|
1875
|
-
...
|
|
1875
|
+
...v(t)
|
|
1876
1876
|
});
|
|
1877
1877
|
T.strictCreate = (n, t) => new T({
|
|
1878
1878
|
shape: () => n,
|
|
1879
1879
|
unknownKeys: "strict",
|
|
1880
1880
|
catchall: Q.create(),
|
|
1881
1881
|
typeName: y.ZodObject,
|
|
1882
|
-
...
|
|
1882
|
+
...v(t)
|
|
1883
1883
|
});
|
|
1884
1884
|
T.lazycreate = (n, t) => new T({
|
|
1885
1885
|
shape: n,
|
|
1886
1886
|
unknownKeys: "strip",
|
|
1887
1887
|
catchall: Q.create(),
|
|
1888
1888
|
typeName: y.ZodObject,
|
|
1889
|
-
...
|
|
1889
|
+
...v(t)
|
|
1890
1890
|
});
|
|
1891
|
-
class we extends
|
|
1891
|
+
class we extends _ {
|
|
1892
1892
|
_parse(t) {
|
|
1893
1893
|
const { ctx: e } = this._processInputParams(t), r = this._def.options;
|
|
1894
1894
|
function a(s) {
|
|
@@ -1959,10 +1959,10 @@ class we extends v {
|
|
|
1959
1959
|
we.create = (n, t) => new we({
|
|
1960
1960
|
options: n,
|
|
1961
1961
|
typeName: y.ZodUnion,
|
|
1962
|
-
...
|
|
1962
|
+
...v(t)
|
|
1963
1963
|
});
|
|
1964
|
-
const B = (n) => n instanceof ke ? B(n.schema) : n instanceof L ? B(n.innerType()) : n instanceof Te ? [n.value] : n instanceof J ? n.options : n instanceof Oe ? w.objectValues(n.enum) : n instanceof Pe ? B(n._def.innerType) : n instanceof
|
|
1965
|
-
class Le extends
|
|
1964
|
+
const B = (n) => n instanceof ke ? B(n.schema) : n instanceof L ? B(n.innerType()) : n instanceof Te ? [n.value] : n instanceof J ? n.options : n instanceof Oe ? w.objectValues(n.enum) : n instanceof Pe ? B(n._def.innerType) : n instanceof ve ? [void 0] : n instanceof _e ? [null] : n instanceof F ? [void 0, ...B(n.unwrap())] : n instanceof K ? [null, ...B(n.unwrap())] : n instanceof Ue || n instanceof Me ? B(n.unwrap()) : n instanceof Ce ? B(n._def.innerType) : [];
|
|
1965
|
+
class Le extends _ {
|
|
1966
1966
|
_parse(t) {
|
|
1967
1967
|
const { ctx: e } = this._processInputParams(t);
|
|
1968
1968
|
if (e.parsedType !== f.object)
|
|
@@ -2020,7 +2020,7 @@ class Le extends v {
|
|
|
2020
2020
|
discriminator: t,
|
|
2021
2021
|
options: e,
|
|
2022
2022
|
optionsMap: a,
|
|
2023
|
-
...
|
|
2023
|
+
...v(r)
|
|
2024
2024
|
});
|
|
2025
2025
|
}
|
|
2026
2026
|
}
|
|
@@ -2050,7 +2050,7 @@ function Be(n, t) {
|
|
|
2050
2050
|
return { valid: !0, data: a };
|
|
2051
2051
|
} else return e === f.date && r === f.date && +n == +t ? { valid: !0, data: n } : { valid: !1 };
|
|
2052
2052
|
}
|
|
2053
|
-
class be extends
|
|
2053
|
+
class be extends _ {
|
|
2054
2054
|
_parse(t) {
|
|
2055
2055
|
const { status: e, ctx: r } = this._processInputParams(t), a = (s, i) => {
|
|
2056
2056
|
if (qe(s) || qe(i))
|
|
@@ -2086,9 +2086,9 @@ be.create = (n, t, e) => new be({
|
|
|
2086
2086
|
left: n,
|
|
2087
2087
|
right: t,
|
|
2088
2088
|
typeName: y.ZodIntersection,
|
|
2089
|
-
...
|
|
2089
|
+
...v(e)
|
|
2090
2090
|
});
|
|
2091
|
-
class q extends
|
|
2091
|
+
class q extends _ {
|
|
2092
2092
|
_parse(t) {
|
|
2093
2093
|
const { status: e, ctx: r } = this._processInputParams(t);
|
|
2094
2094
|
if (r.parsedType !== f.array)
|
|
@@ -2135,10 +2135,10 @@ q.create = (n, t) => {
|
|
|
2135
2135
|
items: n,
|
|
2136
2136
|
typeName: y.ZodTuple,
|
|
2137
2137
|
rest: null,
|
|
2138
|
-
...
|
|
2138
|
+
...v(t)
|
|
2139
2139
|
});
|
|
2140
2140
|
};
|
|
2141
|
-
class xe extends
|
|
2141
|
+
class xe extends _ {
|
|
2142
2142
|
get keySchema() {
|
|
2143
2143
|
return this._def.keyType;
|
|
2144
2144
|
}
|
|
@@ -2166,20 +2166,20 @@ class xe extends v {
|
|
|
2166
2166
|
return this._def.valueType;
|
|
2167
2167
|
}
|
|
2168
2168
|
static create(t, e, r) {
|
|
2169
|
-
return e instanceof
|
|
2169
|
+
return e instanceof _ ? new xe({
|
|
2170
2170
|
keyType: t,
|
|
2171
2171
|
valueType: e,
|
|
2172
2172
|
typeName: y.ZodRecord,
|
|
2173
|
-
...
|
|
2173
|
+
...v(r)
|
|
2174
2174
|
}) : new xe({
|
|
2175
2175
|
keyType: Y.create(),
|
|
2176
2176
|
valueType: t,
|
|
2177
2177
|
typeName: y.ZodRecord,
|
|
2178
|
-
...
|
|
2178
|
+
...v(e)
|
|
2179
2179
|
});
|
|
2180
2180
|
}
|
|
2181
2181
|
}
|
|
2182
|
-
class je extends
|
|
2182
|
+
class je extends _ {
|
|
2183
2183
|
get keySchema() {
|
|
2184
2184
|
return this._def.keyType;
|
|
2185
2185
|
}
|
|
@@ -2225,9 +2225,9 @@ je.create = (n, t, e) => new je({
|
|
|
2225
2225
|
valueType: t,
|
|
2226
2226
|
keyType: n,
|
|
2227
2227
|
typeName: y.ZodMap,
|
|
2228
|
-
...
|
|
2228
|
+
...v(e)
|
|
2229
2229
|
});
|
|
2230
|
-
class ae extends
|
|
2230
|
+
class ae extends _ {
|
|
2231
2231
|
_parse(t) {
|
|
2232
2232
|
const { status: e, ctx: r } = this._processInputParams(t);
|
|
2233
2233
|
if (r.parsedType !== f.set)
|
|
@@ -2289,9 +2289,9 @@ ae.create = (n, t) => new ae({
|
|
|
2289
2289
|
minSize: null,
|
|
2290
2290
|
maxSize: null,
|
|
2291
2291
|
typeName: y.ZodSet,
|
|
2292
|
-
...
|
|
2292
|
+
...v(t)
|
|
2293
2293
|
});
|
|
2294
|
-
class oe extends
|
|
2294
|
+
class oe extends _ {
|
|
2295
2295
|
constructor() {
|
|
2296
2296
|
super(...arguments), this.validate = this.implement;
|
|
2297
2297
|
}
|
|
@@ -2388,11 +2388,11 @@ class oe extends v {
|
|
|
2388
2388
|
args: t || q.create([]).rest(te.create()),
|
|
2389
2389
|
returns: e || te.create(),
|
|
2390
2390
|
typeName: y.ZodFunction,
|
|
2391
|
-
...
|
|
2391
|
+
...v(r)
|
|
2392
2392
|
});
|
|
2393
2393
|
}
|
|
2394
2394
|
}
|
|
2395
|
-
class ke extends
|
|
2395
|
+
class ke extends _ {
|
|
2396
2396
|
get schema() {
|
|
2397
2397
|
return this._def.getter();
|
|
2398
2398
|
}
|
|
@@ -2404,9 +2404,9 @@ class ke extends v {
|
|
|
2404
2404
|
ke.create = (n, t) => new ke({
|
|
2405
2405
|
getter: n,
|
|
2406
2406
|
typeName: y.ZodLazy,
|
|
2407
|
-
...
|
|
2407
|
+
...v(t)
|
|
2408
2408
|
});
|
|
2409
|
-
class Te extends
|
|
2409
|
+
class Te extends _ {
|
|
2410
2410
|
_parse(t) {
|
|
2411
2411
|
if (t.data !== this._def.value) {
|
|
2412
2412
|
const e = this._getOrReturnCtx(t);
|
|
@@ -2425,16 +2425,16 @@ class Te extends v {
|
|
|
2425
2425
|
Te.create = (n, t) => new Te({
|
|
2426
2426
|
value: n,
|
|
2427
2427
|
typeName: y.ZodLiteral,
|
|
2428
|
-
...
|
|
2428
|
+
...v(t)
|
|
2429
2429
|
});
|
|
2430
2430
|
function yt(n, t) {
|
|
2431
2431
|
return new J({
|
|
2432
2432
|
values: n,
|
|
2433
2433
|
typeName: y.ZodEnum,
|
|
2434
|
-
...
|
|
2434
|
+
...v(t)
|
|
2435
2435
|
});
|
|
2436
2436
|
}
|
|
2437
|
-
class J extends
|
|
2437
|
+
class J extends _ {
|
|
2438
2438
|
constructor() {
|
|
2439
2439
|
super(...arguments), me.set(this, void 0);
|
|
2440
2440
|
}
|
|
@@ -2493,7 +2493,7 @@ class J extends v {
|
|
|
2493
2493
|
}
|
|
2494
2494
|
me = /* @__PURE__ */ new WeakMap();
|
|
2495
2495
|
J.create = yt;
|
|
2496
|
-
class Oe extends
|
|
2496
|
+
class Oe extends _ {
|
|
2497
2497
|
constructor() {
|
|
2498
2498
|
super(...arguments), pe.set(this, void 0);
|
|
2499
2499
|
}
|
|
@@ -2525,9 +2525,9 @@ pe = /* @__PURE__ */ new WeakMap();
|
|
|
2525
2525
|
Oe.create = (n, t) => new Oe({
|
|
2526
2526
|
values: n,
|
|
2527
2527
|
typeName: y.ZodNativeEnum,
|
|
2528
|
-
...
|
|
2528
|
+
...v(t)
|
|
2529
2529
|
});
|
|
2530
|
-
class de extends
|
|
2530
|
+
class de extends _ {
|
|
2531
2531
|
unwrap() {
|
|
2532
2532
|
return this._def.type;
|
|
2533
2533
|
}
|
|
@@ -2549,9 +2549,9 @@ class de extends v {
|
|
|
2549
2549
|
de.create = (n, t) => new de({
|
|
2550
2550
|
type: n,
|
|
2551
2551
|
typeName: y.ZodPromise,
|
|
2552
|
-
...
|
|
2552
|
+
...v(t)
|
|
2553
2553
|
});
|
|
2554
|
-
class L extends
|
|
2554
|
+
class L extends _ {
|
|
2555
2555
|
innerType() {
|
|
2556
2556
|
return this._def.schema;
|
|
2557
2557
|
}
|
|
@@ -2632,15 +2632,15 @@ L.create = (n, t, e) => new L({
|
|
|
2632
2632
|
schema: n,
|
|
2633
2633
|
typeName: y.ZodEffects,
|
|
2634
2634
|
effect: t,
|
|
2635
|
-
...
|
|
2635
|
+
...v(e)
|
|
2636
2636
|
});
|
|
2637
2637
|
L.createWithPreprocess = (n, t, e) => new L({
|
|
2638
2638
|
schema: t,
|
|
2639
2639
|
effect: { type: "preprocess", transform: n },
|
|
2640
2640
|
typeName: y.ZodEffects,
|
|
2641
|
-
...
|
|
2641
|
+
...v(e)
|
|
2642
2642
|
});
|
|
2643
|
-
class F extends
|
|
2643
|
+
class F extends _ {
|
|
2644
2644
|
_parse(t) {
|
|
2645
2645
|
return this._getType(t) === f.undefined ? Z(void 0) : this._def.innerType._parse(t);
|
|
2646
2646
|
}
|
|
@@ -2651,9 +2651,9 @@ class F extends v {
|
|
|
2651
2651
|
F.create = (n, t) => new F({
|
|
2652
2652
|
innerType: n,
|
|
2653
2653
|
typeName: y.ZodOptional,
|
|
2654
|
-
...
|
|
2654
|
+
...v(t)
|
|
2655
2655
|
});
|
|
2656
|
-
class K extends
|
|
2656
|
+
class K extends _ {
|
|
2657
2657
|
_parse(t) {
|
|
2658
2658
|
return this._getType(t) === f.null ? Z(null) : this._def.innerType._parse(t);
|
|
2659
2659
|
}
|
|
@@ -2664,9 +2664,9 @@ class K extends v {
|
|
|
2664
2664
|
K.create = (n, t) => new K({
|
|
2665
2665
|
innerType: n,
|
|
2666
2666
|
typeName: y.ZodNullable,
|
|
2667
|
-
...
|
|
2667
|
+
...v(t)
|
|
2668
2668
|
});
|
|
2669
|
-
class Pe extends
|
|
2669
|
+
class Pe extends _ {
|
|
2670
2670
|
_parse(t) {
|
|
2671
2671
|
const { ctx: e } = this._processInputParams(t);
|
|
2672
2672
|
let r = e.data;
|
|
@@ -2684,9 +2684,9 @@ Pe.create = (n, t) => new Pe({
|
|
|
2684
2684
|
innerType: n,
|
|
2685
2685
|
typeName: y.ZodDefault,
|
|
2686
2686
|
defaultValue: typeof t.default == "function" ? t.default : () => t.default,
|
|
2687
|
-
...
|
|
2687
|
+
...v(t)
|
|
2688
2688
|
});
|
|
2689
|
-
class Ce extends
|
|
2689
|
+
class Ce extends _ {
|
|
2690
2690
|
_parse(t) {
|
|
2691
2691
|
const { ctx: e } = this._processInputParams(t), r = {
|
|
2692
2692
|
...e,
|
|
@@ -2727,9 +2727,9 @@ Ce.create = (n, t) => new Ce({
|
|
|
2727
2727
|
innerType: n,
|
|
2728
2728
|
typeName: y.ZodCatch,
|
|
2729
2729
|
catchValue: typeof t.catch == "function" ? t.catch : () => t.catch,
|
|
2730
|
-
...
|
|
2730
|
+
...v(t)
|
|
2731
2731
|
});
|
|
2732
|
-
class Ye extends
|
|
2732
|
+
class Ye extends _ {
|
|
2733
2733
|
_parse(t) {
|
|
2734
2734
|
if (this._getType(t) !== f.nan) {
|
|
2735
2735
|
const r = this._getOrReturnCtx(t);
|
|
@@ -2744,10 +2744,10 @@ class Ye extends v {
|
|
|
2744
2744
|
}
|
|
2745
2745
|
Ye.create = (n) => new Ye({
|
|
2746
2746
|
typeName: y.ZodNaN,
|
|
2747
|
-
...
|
|
2747
|
+
...v(n)
|
|
2748
2748
|
});
|
|
2749
2749
|
const rr = Symbol("zod_brand");
|
|
2750
|
-
class Ue extends
|
|
2750
|
+
class Ue extends _ {
|
|
2751
2751
|
_parse(t) {
|
|
2752
2752
|
const { ctx: e } = this._processInputParams(t), r = e.data;
|
|
2753
2753
|
return this._def.type._parse({
|
|
@@ -2760,7 +2760,7 @@ class Ue extends v {
|
|
|
2760
2760
|
return this._def.type;
|
|
2761
2761
|
}
|
|
2762
2762
|
}
|
|
2763
|
-
class De extends
|
|
2763
|
+
class De extends _ {
|
|
2764
2764
|
_parse(t) {
|
|
2765
2765
|
const { status: e, ctx: r } = this._processInputParams(t);
|
|
2766
2766
|
if (r.common.async)
|
|
@@ -2800,7 +2800,7 @@ class De extends v {
|
|
|
2800
2800
|
});
|
|
2801
2801
|
}
|
|
2802
2802
|
}
|
|
2803
|
-
class Me extends
|
|
2803
|
+
class Me extends _ {
|
|
2804
2804
|
_parse(t) {
|
|
2805
2805
|
const e = this._def.innerType._parse(t), r = (a) => (re(a) && (a.value = Object.freeze(a.value)), a);
|
|
2806
2806
|
return ye(e) ? e.then((a) => r(a)) : r(e);
|
|
@@ -2812,7 +2812,7 @@ class Me extends v {
|
|
|
2812
2812
|
Me.create = (n, t) => new Me({
|
|
2813
2813
|
innerType: n,
|
|
2814
2814
|
typeName: y.ZodReadonly,
|
|
2815
|
-
...
|
|
2815
|
+
...v(t)
|
|
2816
2816
|
});
|
|
2817
2817
|
function gt(n, t = {}, e) {
|
|
2818
2818
|
return n ? ue.create().superRefine((r, a) => {
|
|
@@ -2832,7 +2832,7 @@ var y;
|
|
|
2832
2832
|
})(y || (y = {}));
|
|
2833
2833
|
const ar = (n, t = {
|
|
2834
2834
|
message: `Input not instance of ${n.name}`
|
|
2835
|
-
}) => gt((e) => e instanceof n, t),
|
|
2835
|
+
}) => gt((e) => e instanceof n, t), vt = Y.create, _t = X.create, sr = Ye.create, ir = G.create, wt = ge.create, or = ne.create, cr = Ae.create, ur = ve.create, dr = _e.create, lr = ue.create, fr = te.create, hr = Q.create, mr = Re.create, pr = W.create, yr = T.create, gr = T.strictCreate, vr = we.create, _r = Le.create, wr = be.create, br = q.create, xr = xe.create, kr = je.create, Tr = ae.create, Or = oe.create, Pr = ke.create, Cr = Te.create, Mr = J.create, Dr = Oe.create, Er = de.create, it = L.create, Nr = F.create, Ir = K.create, Zr = L.createWithPreprocess, Ar = De.create, Rr = () => vt().optional(), jr = () => _t().optional(), Yr = () => wt().optional(), Wr = {
|
|
2836
2836
|
string: (n) => Y.create({ ...n, coerce: !0 }),
|
|
2837
2837
|
number: (n) => X.create({ ...n, coerce: !0 }),
|
|
2838
2838
|
boolean: (n) => ge.create({
|
|
@@ -2866,7 +2866,7 @@ var ja = /* @__PURE__ */ Object.freeze({
|
|
|
2866
2866
|
},
|
|
2867
2867
|
ZodParsedType: f,
|
|
2868
2868
|
getParsedType: U,
|
|
2869
|
-
ZodType:
|
|
2869
|
+
ZodType: _,
|
|
2870
2870
|
datetimeRegex: pt,
|
|
2871
2871
|
ZodString: Y,
|
|
2872
2872
|
ZodNumber: X,
|
|
@@ -2874,8 +2874,8 @@ var ja = /* @__PURE__ */ Object.freeze({
|
|
|
2874
2874
|
ZodBoolean: ge,
|
|
2875
2875
|
ZodDate: ne,
|
|
2876
2876
|
ZodSymbol: Ae,
|
|
2877
|
-
ZodUndefined:
|
|
2878
|
-
ZodNull:
|
|
2877
|
+
ZodUndefined: ve,
|
|
2878
|
+
ZodNull: _e,
|
|
2879
2879
|
ZodAny: ue,
|
|
2880
2880
|
ZodUnknown: te,
|
|
2881
2881
|
ZodNever: Q,
|
|
@@ -2907,8 +2907,8 @@ var ja = /* @__PURE__ */ Object.freeze({
|
|
|
2907
2907
|
ZodPipeline: De,
|
|
2908
2908
|
ZodReadonly: Me,
|
|
2909
2909
|
custom: gt,
|
|
2910
|
-
Schema:
|
|
2911
|
-
ZodSchema:
|
|
2910
|
+
Schema: _,
|
|
2911
|
+
ZodSchema: _,
|
|
2912
2912
|
late: nr,
|
|
2913
2913
|
get ZodFirstPartyTypeKind() {
|
|
2914
2914
|
return y;
|
|
@@ -2919,7 +2919,7 @@ var ja = /* @__PURE__ */ Object.freeze({
|
|
|
2919
2919
|
bigint: ir,
|
|
2920
2920
|
boolean: wt,
|
|
2921
2921
|
date: or,
|
|
2922
|
-
discriminatedUnion:
|
|
2922
|
+
discriminatedUnion: _r,
|
|
2923
2923
|
effect: it,
|
|
2924
2924
|
enum: Mr,
|
|
2925
2925
|
function: Or,
|
|
@@ -2933,7 +2933,7 @@ var ja = /* @__PURE__ */ Object.freeze({
|
|
|
2933
2933
|
never: hr,
|
|
2934
2934
|
null: dr,
|
|
2935
2935
|
nullable: Ir,
|
|
2936
|
-
number:
|
|
2936
|
+
number: _t,
|
|
2937
2937
|
object: yr,
|
|
2938
2938
|
oboolean: Yr,
|
|
2939
2939
|
onumber: jr,
|
|
@@ -2945,12 +2945,12 @@ var ja = /* @__PURE__ */ Object.freeze({
|
|
|
2945
2945
|
record: xr,
|
|
2946
2946
|
set: Tr,
|
|
2947
2947
|
strictObject: gr,
|
|
2948
|
-
string:
|
|
2948
|
+
string: vt,
|
|
2949
2949
|
symbol: cr,
|
|
2950
2950
|
transformer: it,
|
|
2951
2951
|
tuple: br,
|
|
2952
2952
|
undefined: ur,
|
|
2953
|
-
union:
|
|
2953
|
+
union: vr,
|
|
2954
2954
|
unknown: fr,
|
|
2955
2955
|
void: mr,
|
|
2956
2956
|
NEVER: Lr,
|
|
@@ -3338,9 +3338,9 @@ const hn = /^(\d+)(th|st|nd|rd)?/i, mn = /\d+/i, pn = {
|
|
|
3338
3338
|
narrow: /^[1234]/i,
|
|
3339
3339
|
abbreviated: /^q[1234]/i,
|
|
3340
3340
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
3341
|
-
}, _n = {
|
|
3342
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
3343
3341
|
}, vn = {
|
|
3342
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
3343
|
+
}, _n = {
|
|
3344
3344
|
narrow: /^[jfmasond]/i,
|
|
3345
3345
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
3346
3346
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
@@ -3410,12 +3410,12 @@ const hn = /^(\d+)(th|st|nd|rd)?/i, mn = /\d+/i, pn = {
|
|
|
3410
3410
|
quarter: he({
|
|
3411
3411
|
matchPatterns: gn,
|
|
3412
3412
|
defaultMatchWidth: "wide",
|
|
3413
|
-
parsePatterns:
|
|
3413
|
+
parsePatterns: vn,
|
|
3414
3414
|
defaultParseWidth: "any",
|
|
3415
3415
|
valueCallback: (n) => n + 1
|
|
3416
3416
|
}),
|
|
3417
3417
|
month: he({
|
|
3418
|
-
matchPatterns:
|
|
3418
|
+
matchPatterns: _n,
|
|
3419
3419
|
defaultMatchWidth: "wide",
|
|
3420
3420
|
parsePatterns: wn,
|
|
3421
3421
|
defaultParseWidth: "any"
|
|
@@ -4830,7 +4830,7 @@ class ga extends x {
|
|
|
4830
4830
|
return e.getHours() >= 12 && a < 12 ? e.setHours(a + 12, 0, 0, 0) : e.setHours(a, 0, 0, 0), e;
|
|
4831
4831
|
}
|
|
4832
4832
|
}
|
|
4833
|
-
class
|
|
4833
|
+
class va extends x {
|
|
4834
4834
|
constructor() {
|
|
4835
4835
|
super(...arguments);
|
|
4836
4836
|
h(this, "priority", 70);
|
|
@@ -4854,7 +4854,7 @@ class _a extends x {
|
|
|
4854
4854
|
return e.setHours(s, 0, 0, 0), e;
|
|
4855
4855
|
}
|
|
4856
4856
|
}
|
|
4857
|
-
class
|
|
4857
|
+
class _a extends x {
|
|
4858
4858
|
constructor() {
|
|
4859
4859
|
super(...arguments);
|
|
4860
4860
|
h(this, "priority", 60);
|
|
@@ -5038,8 +5038,8 @@ const Pa = {
|
|
|
5038
5038
|
h: new pa(),
|
|
5039
5039
|
H: new ya(),
|
|
5040
5040
|
K: new ga(),
|
|
5041
|
-
k: new
|
|
5042
|
-
m: new
|
|
5041
|
+
k: new va(),
|
|
5042
|
+
m: new _a(),
|
|
5043
5043
|
s: new wa(),
|
|
5044
5044
|
S: new ba(),
|
|
5045
5045
|
X: new xa(),
|
|
@@ -5146,35 +5146,35 @@ const $a = "dd.MM.yyyy", Sa = (n, t = "ru-RU") => new Intl.DateTimeFormat(t, {
|
|
|
5146
5146
|
day: "text-center"
|
|
5147
5147
|
};
|
|
5148
5148
|
export {
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5149
|
+
fn as A,
|
|
5150
|
+
Hr as B,
|
|
5151
|
+
le as C,
|
|
5152
5152
|
$a as D,
|
|
5153
|
-
|
|
5154
|
-
|
|
5153
|
+
Va as a,
|
|
5154
|
+
Fa as b,
|
|
5155
5155
|
E as c,
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5156
|
+
za as d,
|
|
5157
|
+
xt as e,
|
|
5158
|
+
Sa as f,
|
|
5159
5159
|
kt as g,
|
|
5160
|
-
|
|
5160
|
+
Ee as h,
|
|
5161
5161
|
Wa as i,
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5162
|
+
Cn as j,
|
|
5163
|
+
Dn as k,
|
|
5164
|
+
zr as l,
|
|
5165
5165
|
Ya as m,
|
|
5166
|
-
|
|
5167
|
-
|
|
5166
|
+
Tt as n,
|
|
5167
|
+
Pn as o,
|
|
5168
5168
|
La as p,
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5169
|
+
ut as q,
|
|
5170
|
+
Rn as r,
|
|
5171
|
+
An as s,
|
|
5172
5172
|
I as t,
|
|
5173
|
-
|
|
5174
|
-
|
|
5173
|
+
ee as u,
|
|
5174
|
+
Fe as v,
|
|
5175
5175
|
dt as w,
|
|
5176
|
-
|
|
5177
|
-
|
|
5176
|
+
fe as x,
|
|
5177
|
+
he as y,
|
|
5178
5178
|
ja as z
|
|
5179
5179
|
};
|
|
5180
|
-
//# sourceMappingURL=utils-
|
|
5180
|
+
//# sourceMappingURL=utils-DnWHDMk6.js.map
|