@kvell-group/ui 1.10.0 → 1.11.1
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/assets/CvvInput.css +1 -0
- package/dist/assets/PasswordInput.css +1 -0
- package/dist/assets/clsx.css +1 -0
- package/dist/clsx-BvFBxcni.js +23 -0
- package/dist/components/Inputs/CardInput/CardInput.d.ts +2 -0
- package/dist/components/Inputs/CardInput/CardInput.js +24 -0
- package/dist/components/{CardInput → Inputs/CardInput}/useCardLogo.js +5 -3
- package/dist/components/Inputs/CvvInput/CvvInput.d.ts +2 -0
- package/dist/components/Inputs/CvvInput/CvvInput.js +16 -0
- package/dist/components/Inputs/CvvInput/index.d.ts +1 -0
- package/dist/components/Inputs/CvvInput/index.js +4 -0
- package/dist/components/Inputs/Input.js +9 -0
- package/dist/components/Inputs/MaskedInput/MaskedInput.d.ts +2 -0
- package/dist/components/{CardInput/CardInput.js → Inputs/MaskedInput/MaskedInput.js} +248 -269
- package/dist/components/Inputs/MaskedInput/index.d.ts +1 -0
- package/dist/components/Inputs/MaskedInput/index.js +4 -0
- package/dist/components/Inputs/PasswordInput/PasswordInput.d.ts +4 -0
- package/dist/components/Inputs/PasswordInput/PasswordInput.js +16 -0
- package/dist/components/Inputs/PasswordInput/index.d.ts +1 -0
- package/dist/components/Inputs/PasswordInput/index.js +4 -0
- package/dist/components/Inputs/types.d.ts +5 -0
- package/dist/components/Inputs/types.js +1 -0
- package/dist/components/theme.js +3 -1
- package/dist/main.d.ts +5 -2
- package/dist/main.js +16 -10
- package/package.json +1 -1
- package/dist/assets/CardInput.css +0 -1
- package/dist/assets/Input.css +0 -1
- package/dist/clsx-OuTLNxxd.js +0 -16
- package/dist/components/CardInput/CardInput.d.ts +0 -145
- package/dist/components/Input/Input.js +0 -11
- /package/dist/components/{CardInput → Inputs/CardInput}/index.d.ts +0 -0
- /package/dist/components/{CardInput → Inputs/CardInput}/index.js +0 -0
- /package/dist/components/{CardInput → Inputs/CardInput}/useCardLogo.d.ts +0 -0
- /package/dist/components/{Input → Inputs}/Input.d.ts +0 -0
- /package/dist/components/{Input → Inputs}/index.d.ts +0 -0
- /package/dist/components/{Input → Inputs}/index.js +0 -0
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { InputBase as re } from "@mantine/core";
|
|
3
|
-
import * as Ot from "react";
|
|
1
|
+
import { jsx as ee } from "react/jsx-runtime";
|
|
4
2
|
import X from "react";
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
import { c as ue } from "../../clsx-OuTLNxxd.js";
|
|
8
|
-
import '../../assets/CardInput.css';function G(a) {
|
|
3
|
+
import { Input as se } from "../Input.js";
|
|
4
|
+
function G(a) {
|
|
9
5
|
return typeof a == "string" || a instanceof String;
|
|
10
6
|
}
|
|
11
|
-
function
|
|
7
|
+
function Bt(a) {
|
|
12
8
|
var t;
|
|
13
9
|
return typeof a == "object" && a != null && (a == null || (t = a.constructor) == null ? void 0 : t.name) === "Object";
|
|
14
10
|
}
|
|
15
|
-
function
|
|
16
|
-
return Array.isArray(t) ?
|
|
11
|
+
function zt(a, t) {
|
|
12
|
+
return Array.isArray(t) ? zt(a, (e, s) => t.includes(s)) : Object.entries(a).reduce((e, s) => {
|
|
17
13
|
let [i, r] = s;
|
|
18
14
|
return t(r, i) && (e[i] = r), e;
|
|
19
15
|
}, {});
|
|
@@ -25,7 +21,7 @@ const m = {
|
|
|
25
21
|
RIGHT: "RIGHT",
|
|
26
22
|
FORCE_RIGHT: "FORCE_RIGHT"
|
|
27
23
|
};
|
|
28
|
-
function
|
|
24
|
+
function ie(a) {
|
|
29
25
|
switch (a) {
|
|
30
26
|
case m.LEFT:
|
|
31
27
|
return m.FORCE_LEFT;
|
|
@@ -63,7 +59,7 @@ function ot(a, t) {
|
|
|
63
59
|
return t.toString() === a.toString();
|
|
64
60
|
return !1;
|
|
65
61
|
}
|
|
66
|
-
class
|
|
62
|
+
class re {
|
|
67
63
|
/** Current input value */
|
|
68
64
|
/** Current cursor position */
|
|
69
65
|
/** Old input value */
|
|
@@ -113,7 +109,7 @@ class le {
|
|
|
113
109
|
function g(a, t) {
|
|
114
110
|
return new g.InputMask(a, t);
|
|
115
111
|
}
|
|
116
|
-
function
|
|
112
|
+
function Ht(a) {
|
|
117
113
|
if (a == null) throw new Error("mask property should be defined");
|
|
118
114
|
return a instanceof RegExp ? g.MaskedRegExp : G(a) ? g.MaskedPattern : a === Date ? g.MaskedDate : a === Number ? g.MaskedNumber : Array.isArray(a) || a === Array ? g.MaskedDynamic : g.Masked && a.prototype instanceof g.Masked ? a : g.Masked && a instanceof g.Masked ? a.constructor : a instanceof Function ? g.MaskedFunction : (console.warn("Mask not found for mask", a), g.Masked);
|
|
119
115
|
}
|
|
@@ -128,18 +124,18 @@ function et(a) {
|
|
|
128
124
|
...e
|
|
129
125
|
} = a instanceof g.Masked ? {
|
|
130
126
|
mask: a
|
|
131
|
-
} :
|
|
127
|
+
} : Bt(a) && a.mask instanceof g.Masked ? a : {};
|
|
132
128
|
if (t) {
|
|
133
129
|
const s = t.mask;
|
|
134
130
|
return {
|
|
135
|
-
...
|
|
131
|
+
...zt(t, (i, r) => !r.startsWith("_")),
|
|
136
132
|
mask: t.constructor,
|
|
137
133
|
_mask: s,
|
|
138
134
|
...e
|
|
139
135
|
};
|
|
140
136
|
}
|
|
141
137
|
}
|
|
142
|
-
return
|
|
138
|
+
return Bt(a) ? {
|
|
143
139
|
...a
|
|
144
140
|
} : {
|
|
145
141
|
mask: a
|
|
@@ -147,7 +143,7 @@ function et(a) {
|
|
|
147
143
|
}
|
|
148
144
|
function K(a) {
|
|
149
145
|
if (g.Masked && a instanceof g.Masked) return a;
|
|
150
|
-
const t = et(a), e =
|
|
146
|
+
const t = et(a), e = Ht(t.mask);
|
|
151
147
|
if (!e) throw new Error("Masked class is not found for provided mask " + t.mask + ", appropriate module needs to be imported manually before creating mask.");
|
|
152
148
|
return t.mask === e && delete t.mask, t._mask && (t.mask = t._mask, delete t._mask), new e(t);
|
|
153
149
|
}
|
|
@@ -191,7 +187,7 @@ class Rt {
|
|
|
191
187
|
/** */
|
|
192
188
|
}
|
|
193
189
|
g.MaskElement = Rt;
|
|
194
|
-
const
|
|
190
|
+
const Ot = 90, ne = 89;
|
|
195
191
|
class ht extends Rt {
|
|
196
192
|
/** HTMLElement to use mask on */
|
|
197
193
|
constructor(t) {
|
|
@@ -210,9 +206,9 @@ class ht extends Rt {
|
|
|
210
206
|
this.input.addEventListener("keydown", this._onKeydown), this.input.addEventListener("input", this._onInput), this.input.addEventListener("beforeinput", this._onBeforeinput), this.input.addEventListener("compositionend", this._onCompositionEnd), this.input.addEventListener("drop", t.drop), this.input.addEventListener("click", t.click), this.input.addEventListener("focus", t.focus), this.input.addEventListener("blur", t.commit), this._handlers = t;
|
|
211
207
|
}
|
|
212
208
|
_onKeydown(t) {
|
|
213
|
-
if (this._handlers.redo && (t.keyCode ===
|
|
209
|
+
if (this._handlers.redo && (t.keyCode === Ot && t.shiftKey && (t.metaKey || t.ctrlKey) || t.keyCode === ne && t.ctrlKey))
|
|
214
210
|
return t.preventDefault(), this._handlers.redo(t);
|
|
215
|
-
if (this._handlers.undo && t.keyCode ===
|
|
211
|
+
if (this._handlers.undo && t.keyCode === Ot && (t.metaKey || t.ctrlKey))
|
|
216
212
|
return t.preventDefault(), this._handlers.undo(t);
|
|
217
213
|
t.isComposing || this._handlers.selectionChange(t);
|
|
218
214
|
}
|
|
@@ -234,7 +230,7 @@ class ht extends Rt {
|
|
|
234
230
|
}
|
|
235
231
|
}
|
|
236
232
|
g.HTMLMaskElement = ht;
|
|
237
|
-
class
|
|
233
|
+
class ae extends ht {
|
|
238
234
|
/** InputElement to use mask on */
|
|
239
235
|
constructor(t) {
|
|
240
236
|
super(t), this.input = t;
|
|
@@ -259,7 +255,7 @@ class pe extends ht {
|
|
|
259
255
|
}
|
|
260
256
|
}
|
|
261
257
|
g.HTMLMaskElement = ht;
|
|
262
|
-
class
|
|
258
|
+
class Kt extends ht {
|
|
263
259
|
/** Returns HTMLElement selection start */
|
|
264
260
|
get _unsafeSelectionStart() {
|
|
265
261
|
const t = this.rootElement, e = t.getSelection && t.getSelection(), s = e && e.anchorOffset, i = e && e.focusOffset;
|
|
@@ -286,7 +282,7 @@ class Wt extends ht {
|
|
|
286
282
|
this.input.textContent = t;
|
|
287
283
|
}
|
|
288
284
|
}
|
|
289
|
-
g.HTMLContenteditableMaskElement =
|
|
285
|
+
g.HTMLContenteditableMaskElement = Kt;
|
|
290
286
|
class pt {
|
|
291
287
|
constructor() {
|
|
292
288
|
this.states = [], this.currentIndex = 0;
|
|
@@ -314,13 +310,13 @@ class pt {
|
|
|
314
310
|
}
|
|
315
311
|
}
|
|
316
312
|
pt.MAX_LENGTH = 100;
|
|
317
|
-
class
|
|
313
|
+
class ue {
|
|
318
314
|
/**
|
|
319
315
|
View element
|
|
320
316
|
*/
|
|
321
317
|
/** Internal {@link Masked} model */
|
|
322
318
|
constructor(t, e) {
|
|
323
|
-
this.el = t instanceof Rt ? t : t.isContentEditable && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" ? new
|
|
319
|
+
this.el = t instanceof Rt ? t : t.isContentEditable && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" ? new Kt(t) : new ae(t), this.masked = K(e), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new pt(), this._saveSelection = this._saveSelection.bind(this), this._onInput = this._onInput.bind(this), this._onChange = this._onChange.bind(this), this._onDrop = this._onDrop.bind(this), this._onFocus = this._onFocus.bind(this), this._onClick = this._onClick.bind(this), this._onUndo = this._onUndo.bind(this), this._onRedo = this._onRedo.bind(this), this.alignCursor = this.alignCursor.bind(this), this.alignCursorFriendly = this.alignCursorFriendly.bind(this), this._bindEvents(), this.updateValue(), this._onChange();
|
|
324
320
|
}
|
|
325
321
|
maskEquals(t) {
|
|
326
322
|
var e;
|
|
@@ -332,7 +328,7 @@ class ce {
|
|
|
332
328
|
}
|
|
333
329
|
set mask(t) {
|
|
334
330
|
if (this.maskEquals(t)) return;
|
|
335
|
-
if (!(t instanceof g.Masked) && this.masked.constructor ===
|
|
331
|
+
if (!(t instanceof g.Masked) && this.masked.constructor === Ht(t)) {
|
|
336
332
|
this.masked.updateOptions({
|
|
337
333
|
mask: t
|
|
338
334
|
});
|
|
@@ -479,7 +475,7 @@ class ce {
|
|
|
479
475
|
/** Handles view input event */
|
|
480
476
|
_onInput(t) {
|
|
481
477
|
this._inputEvent = t, this._abortUpdateCursor();
|
|
482
|
-
const e = new
|
|
478
|
+
const e = new re({
|
|
483
479
|
// new state
|
|
484
480
|
value: this.el.value,
|
|
485
481
|
cursorPos: this.cursorPos,
|
|
@@ -523,7 +519,7 @@ class ce {
|
|
|
523
519
|
this._unbindEvents(), this._listeners.length = 0, delete this.el;
|
|
524
520
|
}
|
|
525
521
|
}
|
|
526
|
-
g.InputMask =
|
|
522
|
+
g.InputMask = ue;
|
|
527
523
|
class E {
|
|
528
524
|
/** Inserted symbols */
|
|
529
525
|
/** Additional offset if any changes occurred before tail */
|
|
@@ -556,7 +552,7 @@ class E {
|
|
|
556
552
|
}
|
|
557
553
|
}
|
|
558
554
|
g.ChangeDetails = E;
|
|
559
|
-
class
|
|
555
|
+
class z {
|
|
560
556
|
/** Tail value as string */
|
|
561
557
|
/** Tail start position */
|
|
562
558
|
/** Start position */
|
|
@@ -696,11 +692,11 @@ class P {
|
|
|
696
692
|
}
|
|
697
693
|
/** Extracts tail in range */
|
|
698
694
|
extractTail(t, e) {
|
|
699
|
-
return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), new
|
|
695
|
+
return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), new z(this.extractInput(t, e), t);
|
|
700
696
|
}
|
|
701
697
|
/** Appends tail */
|
|
702
698
|
appendTail(t) {
|
|
703
|
-
return G(t) && (t = new
|
|
699
|
+
return G(t) && (t = new z(String(t))), t.appendTo(this);
|
|
704
700
|
}
|
|
705
701
|
/** Appends char */
|
|
706
702
|
_appendCharRaw(t, e) {
|
|
@@ -754,7 +750,7 @@ class P {
|
|
|
754
750
|
/** Appends symbols considering flags */
|
|
755
751
|
append(t, e, s) {
|
|
756
752
|
if (!G(t)) throw new Error("value should be string");
|
|
757
|
-
const i = G(s) ? new
|
|
753
|
+
const i = G(s) ? new z(String(s)) : s;
|
|
758
754
|
e != null && e.tail && (e._beforeTailState = this.state);
|
|
759
755
|
let r;
|
|
760
756
|
[t, r] = this.doPrepare(t, e);
|
|
@@ -806,20 +802,20 @@ class P {
|
|
|
806
802
|
});
|
|
807
803
|
const n = t + e, u = this.extractTail(n), l = this.eager === !0 || this.eager === "remove";
|
|
808
804
|
let h;
|
|
809
|
-
l && (i =
|
|
805
|
+
l && (i = ie(i), h = this.extractInput(0, n, {
|
|
810
806
|
raw: !0
|
|
811
807
|
}));
|
|
812
808
|
let v = t;
|
|
813
|
-
const
|
|
814
|
-
if (i !== m.NONE && (v = this.nearestInputPos(t, e > 1 && t !== 0 && !l ? m.NONE : i),
|
|
809
|
+
const k = new E();
|
|
810
|
+
if (i !== m.NONE && (v = this.nearestInputPos(t, e > 1 && t !== 0 && !l ? m.NONE : i), k.tailShift = v - t), k.aggregate(this.remove(v)), l && i !== m.NONE && h === this.rawInputValue)
|
|
815
811
|
if (i === m.FORCE_LEFT) {
|
|
816
812
|
let F;
|
|
817
813
|
for (; h === this.rawInputValue && (F = this.displayValue.length); )
|
|
818
|
-
|
|
814
|
+
k.aggregate(new E({
|
|
819
815
|
tailShift: -1
|
|
820
816
|
})).aggregate(this.remove(F - 1));
|
|
821
817
|
} else i === m.FORCE_RIGHT && u.unshift();
|
|
822
|
-
return
|
|
818
|
+
return k.aggregate(this.append(s, r, u));
|
|
823
819
|
}
|
|
824
820
|
maskEquals(t) {
|
|
825
821
|
return this.mask === t;
|
|
@@ -850,11 +846,11 @@ class J {
|
|
|
850
846
|
}
|
|
851
847
|
extend(t) {
|
|
852
848
|
if (!String(t)) return;
|
|
853
|
-
t = G(t) ? new
|
|
849
|
+
t = G(t) ? new z(String(t)) : t;
|
|
854
850
|
const e = this.chunks[this.chunks.length - 1], s = e && // if stops are same or tail has no stop
|
|
855
851
|
(e.stop === t.stop || t.stop == null) && // if tail chunk goes just after last chunk
|
|
856
852
|
t.from === e.from + e.toString().length;
|
|
857
|
-
if (t instanceof
|
|
853
|
+
if (t instanceof z)
|
|
858
854
|
s ? e.extend(t.toString()) : this.chunks.push(t);
|
|
859
855
|
else if (t instanceof J) {
|
|
860
856
|
if (t.stop == null) {
|
|
@@ -867,7 +863,7 @@ class J {
|
|
|
867
863
|
}
|
|
868
864
|
appendTo(t) {
|
|
869
865
|
if (!(t instanceof g.MaskedPattern))
|
|
870
|
-
return new
|
|
866
|
+
return new z(this.toString()).appendTo(t);
|
|
871
867
|
const e = new E();
|
|
872
868
|
for (let s = 0; s < this.chunks.length; ++s) {
|
|
873
869
|
const i = this.chunks[s], r = t._mapPosToBlock(t.displayValue.length), n = i.stop;
|
|
@@ -902,7 +898,7 @@ class J {
|
|
|
902
898
|
...s
|
|
903
899
|
} = t;
|
|
904
900
|
Object.assign(this, s), this.chunks = e.map((i) => {
|
|
905
|
-
const r = "chunks" in i ? new J() : new
|
|
901
|
+
const r = "chunks" in i ? new J() : new z();
|
|
906
902
|
return r.state = i, r;
|
|
907
903
|
});
|
|
908
904
|
}
|
|
@@ -936,7 +932,7 @@ class J {
|
|
|
936
932
|
return "";
|
|
937
933
|
}
|
|
938
934
|
}
|
|
939
|
-
class
|
|
935
|
+
class oe {
|
|
940
936
|
constructor(t, e) {
|
|
941
937
|
this.masked = t, this._log = [];
|
|
942
938
|
const {
|
|
@@ -1032,7 +1028,7 @@ class de {
|
|
|
1032
1028
|
});
|
|
1033
1029
|
}
|
|
1034
1030
|
}
|
|
1035
|
-
class
|
|
1031
|
+
class Gt {
|
|
1036
1032
|
/** */
|
|
1037
1033
|
/** */
|
|
1038
1034
|
/** */
|
|
@@ -1104,10 +1100,10 @@ class Zt {
|
|
|
1104
1100
|
return this.isFilled || (this._value = t.inserted = this.char), t;
|
|
1105
1101
|
}
|
|
1106
1102
|
extractTail() {
|
|
1107
|
-
return new
|
|
1103
|
+
return new z("");
|
|
1108
1104
|
}
|
|
1109
1105
|
appendTail(t) {
|
|
1110
|
-
return G(t) && (t = new
|
|
1106
|
+
return G(t) && (t = new z(String(t))), t.appendTo(this);
|
|
1111
1107
|
}
|
|
1112
1108
|
append(t, e, s) {
|
|
1113
1109
|
const i = this._appendChar(t[0], e);
|
|
@@ -1255,7 +1251,7 @@ lt.DEFAULT_DEFINITIONS = {
|
|
|
1255
1251
|
// http://stackoverflow.com/a/22075070
|
|
1256
1252
|
"*": /./
|
|
1257
1253
|
};
|
|
1258
|
-
class
|
|
1254
|
+
class le extends P {
|
|
1259
1255
|
/** */
|
|
1260
1256
|
/** Enable characters overwriting */
|
|
1261
1257
|
/** */
|
|
@@ -1269,7 +1265,7 @@ class fe extends P {
|
|
|
1269
1265
|
e && (t.validate = (s) => s.search(e) >= 0), super._update(t);
|
|
1270
1266
|
}
|
|
1271
1267
|
}
|
|
1272
|
-
g.MaskedRegExp =
|
|
1268
|
+
g.MaskedRegExp = le;
|
|
1273
1269
|
class L extends P {
|
|
1274
1270
|
/** */
|
|
1275
1271
|
/** */
|
|
@@ -1303,13 +1299,13 @@ class L extends P {
|
|
|
1303
1299
|
if (this.blocks) {
|
|
1304
1300
|
const h = e.slice(r), v = Object.keys(this.blocks).filter((F) => h.indexOf(F) === 0);
|
|
1305
1301
|
v.sort((F, B) => B.length - F.length);
|
|
1306
|
-
const
|
|
1307
|
-
if (
|
|
1302
|
+
const k = v[0];
|
|
1303
|
+
if (k) {
|
|
1308
1304
|
const {
|
|
1309
1305
|
expose: F,
|
|
1310
1306
|
repeat: B,
|
|
1311
1307
|
...N
|
|
1312
|
-
} = et(this.blocks[
|
|
1308
|
+
} = et(this.blocks[k]), M = {
|
|
1313
1309
|
lazy: this.lazy,
|
|
1314
1310
|
eager: this.eager,
|
|
1315
1311
|
placeholderChar: this.placeholderChar,
|
|
@@ -1323,7 +1319,7 @@ class L extends P {
|
|
|
1323
1319
|
M
|
|
1324
1320
|
/* TODO */
|
|
1325
1321
|
) : K(M);
|
|
1326
|
-
O && (this._blocks.push(O), F && (this.exposeBlock = O), this._maskedBlocks[
|
|
1322
|
+
O && (this._blocks.push(O), F && (this.exposeBlock = O), this._maskedBlocks[k] || (this._maskedBlocks[k] = []), this._maskedBlocks[k].push(this._blocks.length - 1)), r += k.length - 1;
|
|
1327
1323
|
continue;
|
|
1328
1324
|
}
|
|
1329
1325
|
}
|
|
@@ -1352,7 +1348,7 @@ class L extends P {
|
|
|
1352
1348
|
displayChar: this.displayChar,
|
|
1353
1349
|
...et(t[n]),
|
|
1354
1350
|
parent: this
|
|
1355
|
-
}) : new
|
|
1351
|
+
}) : new Gt({
|
|
1356
1352
|
char: n,
|
|
1357
1353
|
eager: this.eager,
|
|
1358
1354
|
isUnmasking: s
|
|
@@ -1532,7 +1528,7 @@ class L extends P {
|
|
|
1532
1528
|
}
|
|
1533
1529
|
nearestInputPos(t, e) {
|
|
1534
1530
|
if (e === void 0 && (e = m.NONE), !this._blocks.length) return 0;
|
|
1535
|
-
const s = new
|
|
1531
|
+
const s = new oe(this, t);
|
|
1536
1532
|
if (e === m.NONE)
|
|
1537
1533
|
return s.pushRightBeforeInput() || (s.popState(), s.pushLeftBeforeInput()) ? s.pos : this.displayValue.length;
|
|
1538
1534
|
if (e === m.LEFT || e === m.FORCE_LEFT) {
|
|
@@ -1577,7 +1573,7 @@ L.DEFAULTS = {
|
|
|
1577
1573
|
L.STOP_CHAR = "`";
|
|
1578
1574
|
L.ESCAPE_CHAR = "\\";
|
|
1579
1575
|
L.InputDefinition = lt;
|
|
1580
|
-
L.FixedDefinition =
|
|
1576
|
+
L.FixedDefinition = Gt;
|
|
1581
1577
|
g.MaskedPattern = L;
|
|
1582
1578
|
class ut extends L {
|
|
1583
1579
|
/**
|
|
@@ -1647,8 +1643,8 @@ class ut extends L {
|
|
|
1647
1643
|
}
|
|
1648
1644
|
}
|
|
1649
1645
|
g.MaskedRange = ut;
|
|
1650
|
-
const
|
|
1651
|
-
class
|
|
1646
|
+
const he = "d{.}`m{.}`Y";
|
|
1647
|
+
class H extends L {
|
|
1652
1648
|
static extractPatternOptions(t) {
|
|
1653
1649
|
const {
|
|
1654
1650
|
mask: e,
|
|
@@ -1666,8 +1662,8 @@ class z extends L {
|
|
|
1666
1662
|
/** Format typed value to string */
|
|
1667
1663
|
/** Parse string to get typed value */
|
|
1668
1664
|
constructor(t) {
|
|
1669
|
-
super(
|
|
1670
|
-
...
|
|
1665
|
+
super(H.extractPatternOptions({
|
|
1666
|
+
...H.DEFAULTS,
|
|
1671
1667
|
...t
|
|
1672
1668
|
}));
|
|
1673
1669
|
}
|
|
@@ -1681,9 +1677,9 @@ class z extends L {
|
|
|
1681
1677
|
blocks: i,
|
|
1682
1678
|
...r
|
|
1683
1679
|
} = {
|
|
1684
|
-
...
|
|
1680
|
+
...H.DEFAULTS,
|
|
1685
1681
|
...t
|
|
1686
|
-
}, n = Object.assign({},
|
|
1682
|
+
}, n = Object.assign({}, H.GET_DEFAULT_BLOCKS());
|
|
1687
1683
|
t.min && (n.Y.from = t.min.getFullYear()), t.max && (n.Y.to = t.max.getFullYear()), t.min && t.max && n.Y.from === n.Y.to && (n.m.from = t.min.getMonth() + 1, n.m.to = t.max.getMonth() + 1, n.m.from === n.m.to && (n.d.from = t.min.getDate(), n.d.to = t.max.getDate())), Object.assign(n, this.blocks, i), super._update({
|
|
1688
1684
|
...r,
|
|
1689
1685
|
mask: G(e) ? e : s,
|
|
@@ -1715,10 +1711,10 @@ class z extends L {
|
|
|
1715
1711
|
return t === Date || super.maskEquals(t);
|
|
1716
1712
|
}
|
|
1717
1713
|
optionsIsChanged(t) {
|
|
1718
|
-
return super.optionsIsChanged(
|
|
1714
|
+
return super.optionsIsChanged(H.extractPatternOptions(t));
|
|
1719
1715
|
}
|
|
1720
1716
|
}
|
|
1721
|
-
|
|
1717
|
+
H.GET_DEFAULT_BLOCKS = () => ({
|
|
1722
1718
|
d: {
|
|
1723
1719
|
mask: ut,
|
|
1724
1720
|
from: 1,
|
|
@@ -1737,10 +1733,10 @@ z.GET_DEFAULT_BLOCKS = () => ({
|
|
|
1737
1733
|
to: 9999
|
|
1738
1734
|
}
|
|
1739
1735
|
});
|
|
1740
|
-
|
|
1736
|
+
H.DEFAULTS = {
|
|
1741
1737
|
...L.DEFAULTS,
|
|
1742
1738
|
mask: Date,
|
|
1743
|
-
pattern:
|
|
1739
|
+
pattern: he,
|
|
1744
1740
|
format: (a, t) => {
|
|
1745
1741
|
if (!a) return "";
|
|
1746
1742
|
const e = String(a.getDate()).padStart(2, "0"), s = String(a.getMonth() + 1).padStart(2, "0"), i = a.getFullYear();
|
|
@@ -1751,7 +1747,7 @@ z.DEFAULTS = {
|
|
|
1751
1747
|
return new Date(i, s - 1, e);
|
|
1752
1748
|
}
|
|
1753
1749
|
};
|
|
1754
|
-
g.MaskedDate =
|
|
1750
|
+
g.MaskedDate = H;
|
|
1755
1751
|
class ct extends P {
|
|
1756
1752
|
constructor(t) {
|
|
1757
1753
|
super({
|
|
@@ -2003,7 +1999,7 @@ class dt extends L {
|
|
|
2003
1999
|
});
|
|
2004
2000
|
}
|
|
2005
2001
|
extractTail(t, e) {
|
|
2006
|
-
return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), new
|
|
2002
|
+
return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), new z("", t);
|
|
2007
2003
|
}
|
|
2008
2004
|
remove(t, e) {
|
|
2009
2005
|
if (t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), t === e) return new E();
|
|
@@ -2023,7 +2019,7 @@ dt.DEFAULTS = {
|
|
|
2023
2019
|
matchValue: (a, t, e) => a.indexOf(t, e) === e
|
|
2024
2020
|
};
|
|
2025
2021
|
g.MaskedEnum = dt;
|
|
2026
|
-
class
|
|
2022
|
+
class pe extends P {
|
|
2027
2023
|
/** */
|
|
2028
2024
|
/** Enable characters overwriting */
|
|
2029
2025
|
/** */
|
|
@@ -2039,8 +2035,8 @@ class ve extends P {
|
|
|
2039
2035
|
});
|
|
2040
2036
|
}
|
|
2041
2037
|
}
|
|
2042
|
-
g.MaskedFunction =
|
|
2043
|
-
var
|
|
2038
|
+
g.MaskedFunction = pe;
|
|
2039
|
+
var Wt;
|
|
2044
2040
|
class U extends P {
|
|
2045
2041
|
/** Single char */
|
|
2046
2042
|
/** Single char */
|
|
@@ -2123,8 +2119,8 @@ class U extends P {
|
|
|
2123
2119
|
rawInserted: l ? "" : t,
|
|
2124
2120
|
skip: l
|
|
2125
2121
|
}) : (this._value = r, h = new E()), this._value = this._insertThousandsSeparators(this._value);
|
|
2126
|
-
const v = e.tail && e._beforeTailState ? e._beforeTailState._value : this._value,
|
|
2127
|
-
return h.tailShift += (
|
|
2122
|
+
const v = e.tail && e._beforeTailState ? e._beforeTailState._value : this._value, k = this._separatorsCountFromSlice(v);
|
|
2123
|
+
return h.tailShift += (k - i) * this.thousandsSeparator.length, h;
|
|
2128
2124
|
}
|
|
2129
2125
|
_findSeparatorAround(t) {
|
|
2130
2126
|
if (this.thousandsSeparator) {
|
|
@@ -2224,7 +2220,7 @@ class U extends P {
|
|
|
2224
2220
|
return (super.typedValueEquals(t) || U.EMPTY_VALUES.includes(t) && U.EMPTY_VALUES.includes(this.typedValue)) && !(t === 0 && this.value === "");
|
|
2225
2221
|
}
|
|
2226
2222
|
}
|
|
2227
|
-
|
|
2223
|
+
Wt = U;
|
|
2228
2224
|
U.UNMASKED_RADIX = ".";
|
|
2229
2225
|
U.EMPTY_VALUES = [...P.EMPTY_VALUES, 0];
|
|
2230
2226
|
U.DEFAULTS = {
|
|
@@ -2232,7 +2228,7 @@ U.DEFAULTS = {
|
|
|
2232
2228
|
mask: Number,
|
|
2233
2229
|
radix: ",",
|
|
2234
2230
|
thousandsSeparator: "",
|
|
2235
|
-
mapToRadix: [
|
|
2231
|
+
mapToRadix: [Wt.UNMASKED_RADIX],
|
|
2236
2232
|
min: Number.MIN_SAFE_INTEGER,
|
|
2237
2233
|
max: Number.MAX_SAFE_INTEGER,
|
|
2238
2234
|
scale: 2,
|
|
@@ -2245,23 +2241,23 @@ U.DEFAULTS = {
|
|
|
2245
2241
|
})
|
|
2246
2242
|
};
|
|
2247
2243
|
g.MaskedNumber = U;
|
|
2248
|
-
const
|
|
2244
|
+
const It = {
|
|
2249
2245
|
MASKED: "value",
|
|
2250
2246
|
UNMASKED: "unmaskedValue",
|
|
2251
2247
|
TYPED: "typedValue"
|
|
2252
2248
|
};
|
|
2253
|
-
function
|
|
2254
|
-
t === void 0 && (t =
|
|
2249
|
+
function Zt(a, t, e) {
|
|
2250
|
+
t === void 0 && (t = It.MASKED), e === void 0 && (e = It.MASKED);
|
|
2255
2251
|
const s = K(a);
|
|
2256
2252
|
return (i) => s.runIsolated((r) => (r[t] = i, r[e]));
|
|
2257
2253
|
}
|
|
2258
|
-
function
|
|
2259
|
-
return
|
|
2254
|
+
function ce(a, t, e, s) {
|
|
2255
|
+
return Zt(t, e, s)(a);
|
|
2260
2256
|
}
|
|
2261
|
-
g.PIPE_TYPE =
|
|
2262
|
-
g.createPipe =
|
|
2263
|
-
g.pipe =
|
|
2264
|
-
class
|
|
2257
|
+
g.PIPE_TYPE = It;
|
|
2258
|
+
g.createPipe = Zt;
|
|
2259
|
+
g.pipe = ce;
|
|
2260
|
+
class de extends L {
|
|
2265
2261
|
get repeatFrom() {
|
|
2266
2262
|
var t;
|
|
2267
2263
|
return (t = Array.isArray(this.repeat) ? this.repeat[0] : this.repeat === 1 / 0 ? 0 : this.repeat) != null ? t : 0;
|
|
@@ -2313,15 +2309,15 @@ class _e extends L {
|
|
|
2313
2309
|
++l
|
|
2314
2310
|
) {
|
|
2315
2311
|
var i, r, n, u;
|
|
2316
|
-
const
|
|
2312
|
+
const k = h._appendChar(t, {
|
|
2317
2313
|
...e,
|
|
2318
2314
|
_beforeTailState: (u = e._beforeTailState) == null || (u = u._blocks) == null ? void 0 : u[l]
|
|
2319
2315
|
});
|
|
2320
|
-
if (
|
|
2316
|
+
if (k.skip && v) {
|
|
2321
2317
|
this._blocks.pop(), this.mask = this.mask.slice(1);
|
|
2322
2318
|
break;
|
|
2323
2319
|
}
|
|
2324
|
-
if (s.aggregate(
|
|
2320
|
+
if (s.aggregate(k), k.consumed) break;
|
|
2325
2321
|
}
|
|
2326
2322
|
return s;
|
|
2327
2323
|
}
|
|
@@ -2354,12 +2350,12 @@ class _e extends L {
|
|
|
2354
2350
|
this._blocks.length = t._blocks.length, this.mask = this.mask.slice(0, this._blocks.length), super.state = t;
|
|
2355
2351
|
}
|
|
2356
2352
|
}
|
|
2357
|
-
g.RepeatBlock =
|
|
2353
|
+
g.RepeatBlock = de;
|
|
2358
2354
|
try {
|
|
2359
2355
|
globalThis.IMask = g;
|
|
2360
2356
|
} catch {
|
|
2361
2357
|
}
|
|
2362
|
-
function
|
|
2358
|
+
function fe(a) {
|
|
2363
2359
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
2364
2360
|
}
|
|
2365
2361
|
var nt = { exports: {} }, at = { exports: {} }, I = {};
|
|
@@ -2371,11 +2367,11 @@ var nt = { exports: {} }, at = { exports: {} }, I = {};
|
|
|
2371
2367
|
* This source code is licensed under the MIT license found in the
|
|
2372
2368
|
* LICENSE file in the root directory of this source tree.
|
|
2373
2369
|
*/
|
|
2374
|
-
var
|
|
2375
|
-
function
|
|
2376
|
-
if (
|
|
2377
|
-
|
|
2378
|
-
var a = typeof Symbol == "function" && Symbol.for, t = a ? Symbol.for("react.element") : 60103, e = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, i = a ? Symbol.for("react.strict_mode") : 60108, r = a ? Symbol.for("react.profiler") : 60114, n = a ? Symbol.for("react.provider") : 60109, u = a ? Symbol.for("react.context") : 60110, l = a ? Symbol.for("react.async_mode") : 60111, h = a ? Symbol.for("react.concurrent_mode") : 60111, v = a ? Symbol.for("react.forward_ref") : 60112,
|
|
2370
|
+
var Dt;
|
|
2371
|
+
function me() {
|
|
2372
|
+
if (Dt) return I;
|
|
2373
|
+
Dt = 1;
|
|
2374
|
+
var a = typeof Symbol == "function" && Symbol.for, t = a ? Symbol.for("react.element") : 60103, e = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, i = a ? Symbol.for("react.strict_mode") : 60108, r = a ? Symbol.for("react.profiler") : 60114, n = a ? Symbol.for("react.provider") : 60109, u = a ? Symbol.for("react.context") : 60110, l = a ? Symbol.for("react.async_mode") : 60111, h = a ? Symbol.for("react.concurrent_mode") : 60111, v = a ? Symbol.for("react.forward_ref") : 60112, k = a ? Symbol.for("react.suspense") : 60113, F = a ? Symbol.for("react.suspense_list") : 60120, B = a ? Symbol.for("react.memo") : 60115, N = a ? Symbol.for("react.lazy") : 60116, M = a ? Symbol.for("react.block") : 60121, O = a ? Symbol.for("react.fundamental") : 60117, $ = a ? Symbol.for("react.responder") : 60118, tt = a ? Symbol.for("react.scope") : 60119;
|
|
2379
2375
|
function V(c) {
|
|
2380
2376
|
if (typeof c == "object" && c !== null) {
|
|
2381
2377
|
var W = c.$$typeof;
|
|
@@ -2387,7 +2383,7 @@ function Ee() {
|
|
|
2387
2383
|
case s:
|
|
2388
2384
|
case r:
|
|
2389
2385
|
case i:
|
|
2390
|
-
case
|
|
2386
|
+
case k:
|
|
2391
2387
|
return c;
|
|
2392
2388
|
default:
|
|
2393
2389
|
switch (c = c && c.$$typeof, c) {
|
|
@@ -2409,7 +2405,7 @@ function Ee() {
|
|
|
2409
2405
|
function D(c) {
|
|
2410
2406
|
return V(c) === h;
|
|
2411
2407
|
}
|
|
2412
|
-
return I.AsyncMode = l, I.ConcurrentMode = h, I.ContextConsumer = u, I.ContextProvider = n, I.Element = t, I.ForwardRef = v, I.Fragment = s, I.Lazy = N, I.Memo = B, I.Portal = e, I.Profiler = r, I.StrictMode = i, I.Suspense =
|
|
2408
|
+
return I.AsyncMode = l, I.ConcurrentMode = h, I.ContextConsumer = u, I.ContextProvider = n, I.Element = t, I.ForwardRef = v, I.Fragment = s, I.Lazy = N, I.Memo = B, I.Portal = e, I.Profiler = r, I.StrictMode = i, I.Suspense = k, I.isAsyncMode = function(c) {
|
|
2413
2409
|
return D(c) || V(c) === l;
|
|
2414
2410
|
}, I.isConcurrentMode = D, I.isContextConsumer = function(c) {
|
|
2415
2411
|
return V(c) === u;
|
|
@@ -2432,12 +2428,12 @@ function Ee() {
|
|
|
2432
2428
|
}, I.isStrictMode = function(c) {
|
|
2433
2429
|
return V(c) === i;
|
|
2434
2430
|
}, I.isSuspense = function(c) {
|
|
2435
|
-
return V(c) ===
|
|
2431
|
+
return V(c) === k;
|
|
2436
2432
|
}, I.isValidElementType = function(c) {
|
|
2437
|
-
return typeof c == "string" || typeof c == "function" || c === s || c === h || c === r || c === i || c ===
|
|
2433
|
+
return typeof c == "string" || typeof c == "function" || c === s || c === h || c === r || c === i || c === k || c === F || typeof c == "object" && c !== null && (c.$$typeof === N || c.$$typeof === B || c.$$typeof === n || c.$$typeof === u || c.$$typeof === v || c.$$typeof === O || c.$$typeof === $ || c.$$typeof === tt || c.$$typeof === M);
|
|
2438
2434
|
}, I.typeOf = V, I;
|
|
2439
2435
|
}
|
|
2440
|
-
var
|
|
2436
|
+
var R = {};
|
|
2441
2437
|
/** @license React v16.13.1
|
|
2442
2438
|
* react-is.development.js
|
|
2443
2439
|
*
|
|
@@ -2446,13 +2442,13 @@ var w = {};
|
|
|
2446
2442
|
* This source code is licensed under the MIT license found in the
|
|
2447
2443
|
* LICENSE file in the root directory of this source tree.
|
|
2448
2444
|
*/
|
|
2449
|
-
var
|
|
2450
|
-
function
|
|
2451
|
-
return
|
|
2452
|
-
var a = typeof Symbol == "function" && Symbol.for, t = a ? Symbol.for("react.element") : 60103, e = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, i = a ? Symbol.for("react.strict_mode") : 60108, r = a ? Symbol.for("react.profiler") : 60114, n = a ? Symbol.for("react.provider") : 60109, u = a ? Symbol.for("react.context") : 60110, l = a ? Symbol.for("react.async_mode") : 60111, h = a ? Symbol.for("react.concurrent_mode") : 60111, v = a ? Symbol.for("react.forward_ref") : 60112,
|
|
2445
|
+
var Vt;
|
|
2446
|
+
function ve() {
|
|
2447
|
+
return Vt || (Vt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2448
|
+
var a = typeof Symbol == "function" && Symbol.for, t = a ? Symbol.for("react.element") : 60103, e = a ? Symbol.for("react.portal") : 60106, s = a ? Symbol.for("react.fragment") : 60107, i = a ? Symbol.for("react.strict_mode") : 60108, r = a ? Symbol.for("react.profiler") : 60114, n = a ? Symbol.for("react.provider") : 60109, u = a ? Symbol.for("react.context") : 60110, l = a ? Symbol.for("react.async_mode") : 60111, h = a ? Symbol.for("react.concurrent_mode") : 60111, v = a ? Symbol.for("react.forward_ref") : 60112, k = a ? Symbol.for("react.suspense") : 60113, F = a ? Symbol.for("react.suspense_list") : 60120, B = a ? Symbol.for("react.memo") : 60115, N = a ? Symbol.for("react.lazy") : 60116, M = a ? Symbol.for("react.block") : 60121, O = a ? Symbol.for("react.fundamental") : 60117, $ = a ? Symbol.for("react.responder") : 60118, tt = a ? Symbol.for("react.scope") : 60119;
|
|
2453
2449
|
function V(p) {
|
|
2454
2450
|
return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2455
|
-
p === s || p === h || p === r || p === i || p ===
|
|
2451
|
+
p === s || p === h || p === r || p === i || p === k || p === F || typeof p == "object" && p !== null && (p.$$typeof === N || p.$$typeof === B || p.$$typeof === n || p.$$typeof === u || p.$$typeof === v || p.$$typeof === O || p.$$typeof === $ || p.$$typeof === tt || p.$$typeof === M);
|
|
2456
2452
|
}
|
|
2457
2453
|
function D(p) {
|
|
2458
2454
|
if (typeof p == "object" && p !== null) {
|
|
@@ -2466,17 +2462,17 @@ function ye() {
|
|
|
2466
2462
|
case s:
|
|
2467
2463
|
case r:
|
|
2468
2464
|
case i:
|
|
2469
|
-
case
|
|
2465
|
+
case k:
|
|
2470
2466
|
return rt;
|
|
2471
2467
|
default:
|
|
2472
|
-
var
|
|
2473
|
-
switch (
|
|
2468
|
+
var Mt = rt && rt.$$typeof;
|
|
2469
|
+
switch (Mt) {
|
|
2474
2470
|
case u:
|
|
2475
2471
|
case v:
|
|
2476
2472
|
case N:
|
|
2477
2473
|
case B:
|
|
2478
2474
|
case n:
|
|
2479
|
-
return
|
|
2475
|
+
return Mt;
|
|
2480
2476
|
default:
|
|
2481
2477
|
return Y;
|
|
2482
2478
|
}
|
|
@@ -2486,7 +2482,7 @@ function ye() {
|
|
|
2486
2482
|
}
|
|
2487
2483
|
}
|
|
2488
2484
|
}
|
|
2489
|
-
var c = l, W = h, ft = u, mt = n, vt = t, gt = v, st = s,
|
|
2485
|
+
var c = l, W = h, ft = u, mt = n, vt = t, gt = v, st = s, kt = N, _t = B, Q = e, Et = r, q = i, Z = k, it = !1;
|
|
2490
2486
|
function yt(p) {
|
|
2491
2487
|
return it || (it = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), o(p) || D(p) === l;
|
|
2492
2488
|
}
|
|
@@ -2502,7 +2498,7 @@ function ye() {
|
|
|
2502
2498
|
function C(p) {
|
|
2503
2499
|
return typeof p == "object" && p !== null && p.$$typeof === t;
|
|
2504
2500
|
}
|
|
2505
|
-
function
|
|
2501
|
+
function _(p) {
|
|
2506
2502
|
return D(p) === v;
|
|
2507
2503
|
}
|
|
2508
2504
|
function S(p) {
|
|
@@ -2517,31 +2513,31 @@ function ye() {
|
|
|
2517
2513
|
function x(p) {
|
|
2518
2514
|
return D(p) === e;
|
|
2519
2515
|
}
|
|
2520
|
-
function
|
|
2516
|
+
function w(p) {
|
|
2521
2517
|
return D(p) === r;
|
|
2522
2518
|
}
|
|
2523
2519
|
function T(p) {
|
|
2524
2520
|
return D(p) === i;
|
|
2525
2521
|
}
|
|
2526
2522
|
function j(p) {
|
|
2527
|
-
return D(p) ===
|
|
2523
|
+
return D(p) === k;
|
|
2528
2524
|
}
|
|
2529
|
-
|
|
2530
|
-
}()),
|
|
2525
|
+
R.AsyncMode = c, R.ConcurrentMode = W, R.ContextConsumer = ft, R.ContextProvider = mt, R.Element = vt, R.ForwardRef = gt, R.Fragment = st, R.Lazy = kt, R.Memo = _t, R.Portal = Q, R.Profiler = Et, R.StrictMode = q, R.Suspense = Z, R.isAsyncMode = yt, R.isConcurrentMode = o, R.isContextConsumer = d, R.isContextProvider = b, R.isElement = C, R.isForwardRef = _, R.isFragment = S, R.isLazy = y, R.isMemo = A, R.isPortal = x, R.isProfiler = w, R.isStrictMode = T, R.isSuspense = j, R.isValidElementType = V, R.typeOf = D;
|
|
2526
|
+
}()), R;
|
|
2531
2527
|
}
|
|
2532
|
-
var
|
|
2533
|
-
function
|
|
2534
|
-
return
|
|
2528
|
+
var Pt;
|
|
2529
|
+
function Xt() {
|
|
2530
|
+
return Pt || (Pt = 1, process.env.NODE_ENV === "production" ? at.exports = me() : at.exports = ve()), at.exports;
|
|
2535
2531
|
}
|
|
2536
2532
|
/*
|
|
2537
2533
|
object-assign
|
|
2538
2534
|
(c) Sindre Sorhus
|
|
2539
2535
|
@license MIT
|
|
2540
2536
|
*/
|
|
2541
|
-
var At,
|
|
2542
|
-
function
|
|
2543
|
-
if (
|
|
2544
|
-
|
|
2537
|
+
var At, Lt;
|
|
2538
|
+
function ge() {
|
|
2539
|
+
if (Lt) return At;
|
|
2540
|
+
Lt = 1;
|
|
2545
2541
|
var a = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, e = Object.prototype.propertyIsEnumerable;
|
|
2546
2542
|
function s(r) {
|
|
2547
2543
|
if (r == null)
|
|
@@ -2573,8 +2569,8 @@ function Ce() {
|
|
|
2573
2569
|
return At = i() ? Object.assign : function(r, n) {
|
|
2574
2570
|
for (var u, l = s(r), h, v = 1; v < arguments.length; v++) {
|
|
2575
2571
|
u = Object(arguments[v]);
|
|
2576
|
-
for (var
|
|
2577
|
-
t.call(u,
|
|
2572
|
+
for (var k in u)
|
|
2573
|
+
t.call(u, k) && (l[k] = u[k]);
|
|
2578
2574
|
if (a) {
|
|
2579
2575
|
h = a(u);
|
|
2580
2576
|
for (var F = 0; F < h.length; F++)
|
|
@@ -2584,25 +2580,25 @@ function Ce() {
|
|
|
2584
2580
|
return l;
|
|
2585
2581
|
}, At;
|
|
2586
2582
|
}
|
|
2587
|
-
var bt,
|
|
2588
|
-
function
|
|
2589
|
-
if (
|
|
2590
|
-
|
|
2583
|
+
var bt, Nt;
|
|
2584
|
+
function wt() {
|
|
2585
|
+
if (Nt) return bt;
|
|
2586
|
+
Nt = 1;
|
|
2591
2587
|
var a = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2592
2588
|
return bt = a, bt;
|
|
2593
2589
|
}
|
|
2594
|
-
var Ft,
|
|
2595
|
-
function
|
|
2596
|
-
return
|
|
2590
|
+
var Ft, jt;
|
|
2591
|
+
function Jt() {
|
|
2592
|
+
return jt || (jt = 1, Ft = Function.call.bind(Object.prototype.hasOwnProperty)), Ft;
|
|
2597
2593
|
}
|
|
2598
|
-
var St,
|
|
2599
|
-
function
|
|
2600
|
-
if (
|
|
2601
|
-
|
|
2594
|
+
var St, Ut;
|
|
2595
|
+
function ke() {
|
|
2596
|
+
if (Ut) return St;
|
|
2597
|
+
Ut = 1;
|
|
2602
2598
|
var a = function() {
|
|
2603
2599
|
};
|
|
2604
2600
|
if (process.env.NODE_ENV !== "production") {
|
|
2605
|
-
var t = /* @__PURE__ */
|
|
2601
|
+
var t = /* @__PURE__ */ wt(), e = {}, s = /* @__PURE__ */ Jt();
|
|
2606
2602
|
a = function(r) {
|
|
2607
2603
|
var n = "Warning: " + r;
|
|
2608
2604
|
typeof console < "u" && console.error(n);
|
|
@@ -2616,7 +2612,7 @@ function Ae() {
|
|
|
2616
2612
|
if (process.env.NODE_ENV !== "production") {
|
|
2617
2613
|
for (var v in r)
|
|
2618
2614
|
if (s(r, v)) {
|
|
2619
|
-
var
|
|
2615
|
+
var k;
|
|
2620
2616
|
try {
|
|
2621
2617
|
if (typeof r[v] != "function") {
|
|
2622
2618
|
var F = Error(
|
|
@@ -2624,17 +2620,17 @@ function Ae() {
|
|
|
2624
2620
|
);
|
|
2625
2621
|
throw F.name = "Invariant Violation", F;
|
|
2626
2622
|
}
|
|
2627
|
-
|
|
2623
|
+
k = r[v](n, v, l, u, null, t);
|
|
2628
2624
|
} catch (N) {
|
|
2629
|
-
|
|
2625
|
+
k = N;
|
|
2630
2626
|
}
|
|
2631
|
-
if (
|
|
2632
|
-
(l || "React class") + ": type specification of " + u + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof
|
|
2633
|
-
),
|
|
2634
|
-
e[
|
|
2627
|
+
if (k && !(k instanceof Error) && a(
|
|
2628
|
+
(l || "React class") + ": type specification of " + u + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof k + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
2629
|
+
), k instanceof Error && !(k.message in e)) {
|
|
2630
|
+
e[k.message] = !0;
|
|
2635
2631
|
var B = h ? h() : "";
|
|
2636
2632
|
a(
|
|
2637
|
-
"Failed " + u + " type: " +
|
|
2633
|
+
"Failed " + u + " type: " + k.message + (B ?? "")
|
|
2638
2634
|
);
|
|
2639
2635
|
}
|
|
2640
2636
|
}
|
|
@@ -2644,11 +2640,11 @@ function Ae() {
|
|
|
2644
2640
|
process.env.NODE_ENV !== "production" && (e = {});
|
|
2645
2641
|
}, St = i, St;
|
|
2646
2642
|
}
|
|
2647
|
-
var xt,
|
|
2648
|
-
function
|
|
2649
|
-
if (
|
|
2650
|
-
|
|
2651
|
-
var a =
|
|
2643
|
+
var xt, $t;
|
|
2644
|
+
function _e() {
|
|
2645
|
+
if ($t) return xt;
|
|
2646
|
+
$t = 1;
|
|
2647
|
+
var a = Xt(), t = ge(), e = /* @__PURE__ */ wt(), s = /* @__PURE__ */ Jt(), i = /* @__PURE__ */ ke(), r = function() {
|
|
2652
2648
|
};
|
|
2653
2649
|
process.env.NODE_ENV !== "production" && (r = function(u) {
|
|
2654
2650
|
var l = "Warning: " + u;
|
|
@@ -2663,20 +2659,20 @@ function be() {
|
|
|
2663
2659
|
}
|
|
2664
2660
|
return xt = function(u, l) {
|
|
2665
2661
|
var h = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
|
|
2666
|
-
function
|
|
2662
|
+
function k(o) {
|
|
2667
2663
|
var d = o && (h && o[h] || o[v]);
|
|
2668
2664
|
if (typeof d == "function")
|
|
2669
2665
|
return d;
|
|
2670
2666
|
}
|
|
2671
2667
|
var F = "<<anonymous>>", B = {
|
|
2672
|
-
array:
|
|
2673
|
-
bigint:
|
|
2674
|
-
bool:
|
|
2675
|
-
func:
|
|
2676
|
-
number:
|
|
2677
|
-
object:
|
|
2678
|
-
string:
|
|
2679
|
-
symbol:
|
|
2668
|
+
array: $("array"),
|
|
2669
|
+
bigint: $("bigint"),
|
|
2670
|
+
bool: $("boolean"),
|
|
2671
|
+
func: $("function"),
|
|
2672
|
+
number: $("number"),
|
|
2673
|
+
object: $("object"),
|
|
2674
|
+
string: $("string"),
|
|
2675
|
+
symbol: $("symbol"),
|
|
2680
2676
|
any: tt(),
|
|
2681
2677
|
arrayOf: V,
|
|
2682
2678
|
element: D(),
|
|
@@ -2686,8 +2682,8 @@ function be() {
|
|
|
2686
2682
|
objectOf: mt,
|
|
2687
2683
|
oneOf: ft,
|
|
2688
2684
|
oneOfType: vt,
|
|
2689
|
-
shape:
|
|
2690
|
-
exact:
|
|
2685
|
+
shape: kt,
|
|
2686
|
+
exact: _t
|
|
2691
2687
|
};
|
|
2692
2688
|
function N(o, d) {
|
|
2693
2689
|
return o === d ? o !== 0 || 1 / o === 1 / d : o !== o && d !== d;
|
|
@@ -2699,7 +2695,7 @@ function be() {
|
|
|
2699
2695
|
function O(o) {
|
|
2700
2696
|
if (process.env.NODE_ENV !== "production")
|
|
2701
2697
|
var d = {}, b = 0;
|
|
2702
|
-
function C(S, y, A, x,
|
|
2698
|
+
function C(S, y, A, x, w, T, j) {
|
|
2703
2699
|
if (x = x || F, T = T || A, j !== e) {
|
|
2704
2700
|
if (l) {
|
|
2705
2701
|
var p = new Error(
|
|
@@ -2714,18 +2710,18 @@ function be() {
|
|
|
2714
2710
|
), d[Y] = !0, b++);
|
|
2715
2711
|
}
|
|
2716
2712
|
}
|
|
2717
|
-
return y[A] == null ? S ? y[A] === null ? new M("The " +
|
|
2713
|
+
return y[A] == null ? S ? y[A] === null ? new M("The " + w + " `" + T + "` is marked as required " + ("in `" + x + "`, but its value is `null`.")) : new M("The " + w + " `" + T + "` is marked as required in " + ("`" + x + "`, but its value is `undefined`.")) : null : o(y, A, x, w, T);
|
|
2718
2714
|
}
|
|
2719
|
-
var
|
|
2720
|
-
return
|
|
2715
|
+
var _ = C.bind(null, !1);
|
|
2716
|
+
return _.isRequired = C.bind(null, !0), _;
|
|
2721
2717
|
}
|
|
2722
|
-
function
|
|
2723
|
-
function d(b, C,
|
|
2724
|
-
var x = b[C],
|
|
2725
|
-
if (
|
|
2718
|
+
function $(o) {
|
|
2719
|
+
function d(b, C, _, S, y, A) {
|
|
2720
|
+
var x = b[C], w = q(x);
|
|
2721
|
+
if (w !== o) {
|
|
2726
2722
|
var T = Z(x);
|
|
2727
2723
|
return new M(
|
|
2728
|
-
"Invalid " + S + " `" + y + "` of type " + ("`" + T + "` supplied to `" +
|
|
2724
|
+
"Invalid " + S + " `" + y + "` of type " + ("`" + T + "` supplied to `" + _ + "`, expected ") + ("`" + o + "`."),
|
|
2729
2725
|
{ expectedType: o }
|
|
2730
2726
|
);
|
|
2731
2727
|
}
|
|
@@ -2737,16 +2733,16 @@ function be() {
|
|
|
2737
2733
|
return O(n);
|
|
2738
2734
|
}
|
|
2739
2735
|
function V(o) {
|
|
2740
|
-
function d(b, C,
|
|
2736
|
+
function d(b, C, _, S, y) {
|
|
2741
2737
|
if (typeof o != "function")
|
|
2742
|
-
return new M("Property `" + y + "` of component `" +
|
|
2738
|
+
return new M("Property `" + y + "` of component `" + _ + "` has invalid PropType notation inside arrayOf.");
|
|
2743
2739
|
var A = b[C];
|
|
2744
2740
|
if (!Array.isArray(A)) {
|
|
2745
|
-
var x =
|
|
2746
|
-
return new M("Invalid " + S + " `" + y + "` of type " + ("`" + x + "` supplied to `" +
|
|
2741
|
+
var x = q(A);
|
|
2742
|
+
return new M("Invalid " + S + " `" + y + "` of type " + ("`" + x + "` supplied to `" + _ + "`, expected an array."));
|
|
2747
2743
|
}
|
|
2748
|
-
for (var
|
|
2749
|
-
var T = o(A,
|
|
2744
|
+
for (var w = 0; w < A.length; w++) {
|
|
2745
|
+
var T = o(A, w, _, S, y + "[" + w + "]", e);
|
|
2750
2746
|
if (T instanceof Error)
|
|
2751
2747
|
return T;
|
|
2752
2748
|
}
|
|
@@ -2755,32 +2751,32 @@ function be() {
|
|
|
2755
2751
|
return O(d);
|
|
2756
2752
|
}
|
|
2757
2753
|
function D() {
|
|
2758
|
-
function o(d, b, C,
|
|
2754
|
+
function o(d, b, C, _, S) {
|
|
2759
2755
|
var y = d[b];
|
|
2760
2756
|
if (!u(y)) {
|
|
2761
|
-
var A =
|
|
2762
|
-
return new M("Invalid " +
|
|
2757
|
+
var A = q(y);
|
|
2758
|
+
return new M("Invalid " + _ + " `" + S + "` of type " + ("`" + A + "` supplied to `" + C + "`, expected a single ReactElement."));
|
|
2763
2759
|
}
|
|
2764
2760
|
return null;
|
|
2765
2761
|
}
|
|
2766
2762
|
return O(o);
|
|
2767
2763
|
}
|
|
2768
2764
|
function c() {
|
|
2769
|
-
function o(d, b, C,
|
|
2765
|
+
function o(d, b, C, _, S) {
|
|
2770
2766
|
var y = d[b];
|
|
2771
2767
|
if (!a.isValidElementType(y)) {
|
|
2772
|
-
var A =
|
|
2773
|
-
return new M("Invalid " +
|
|
2768
|
+
var A = q(y);
|
|
2769
|
+
return new M("Invalid " + _ + " `" + S + "` of type " + ("`" + A + "` supplied to `" + C + "`, expected a single ReactElement type."));
|
|
2774
2770
|
}
|
|
2775
2771
|
return null;
|
|
2776
2772
|
}
|
|
2777
2773
|
return O(o);
|
|
2778
2774
|
}
|
|
2779
2775
|
function W(o) {
|
|
2780
|
-
function d(b, C,
|
|
2776
|
+
function d(b, C, _, S, y) {
|
|
2781
2777
|
if (!(b[C] instanceof o)) {
|
|
2782
2778
|
var A = o.name || F, x = yt(b[C]);
|
|
2783
|
-
return new M("Invalid " + S + " `" + y + "` of type " + ("`" + x + "` supplied to `" +
|
|
2779
|
+
return new M("Invalid " + S + " `" + y + "` of type " + ("`" + x + "` supplied to `" + _ + "`, expected ") + ("instance of `" + A + "`."));
|
|
2784
2780
|
}
|
|
2785
2781
|
return null;
|
|
2786
2782
|
}
|
|
@@ -2791,28 +2787,28 @@ function be() {
|
|
|
2791
2787
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
|
|
2792
2788
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
2793
2789
|
) : r("Invalid argument supplied to oneOf, expected an array.")), n;
|
|
2794
|
-
function d(b, C,
|
|
2790
|
+
function d(b, C, _, S, y) {
|
|
2795
2791
|
for (var A = b[C], x = 0; x < o.length; x++)
|
|
2796
2792
|
if (N(A, o[x]))
|
|
2797
2793
|
return null;
|
|
2798
|
-
var
|
|
2794
|
+
var w = JSON.stringify(o, function(j, p) {
|
|
2799
2795
|
var Y = Z(p);
|
|
2800
2796
|
return Y === "symbol" ? String(p) : p;
|
|
2801
2797
|
});
|
|
2802
|
-
return new M("Invalid " + S + " `" + y + "` of value `" + String(A) + "` " + ("supplied to `" +
|
|
2798
|
+
return new M("Invalid " + S + " `" + y + "` of value `" + String(A) + "` " + ("supplied to `" + _ + "`, expected one of " + w + "."));
|
|
2803
2799
|
}
|
|
2804
2800
|
return O(d);
|
|
2805
2801
|
}
|
|
2806
2802
|
function mt(o) {
|
|
2807
|
-
function d(b, C,
|
|
2803
|
+
function d(b, C, _, S, y) {
|
|
2808
2804
|
if (typeof o != "function")
|
|
2809
|
-
return new M("Property `" + y + "` of component `" +
|
|
2810
|
-
var A = b[C], x =
|
|
2805
|
+
return new M("Property `" + y + "` of component `" + _ + "` has invalid PropType notation inside objectOf.");
|
|
2806
|
+
var A = b[C], x = q(A);
|
|
2811
2807
|
if (x !== "object")
|
|
2812
|
-
return new M("Invalid " + S + " `" + y + "` of type " + ("`" + x + "` supplied to `" +
|
|
2813
|
-
for (var
|
|
2814
|
-
if (s(A,
|
|
2815
|
-
var T = o(A,
|
|
2808
|
+
return new M("Invalid " + S + " `" + y + "` of type " + ("`" + x + "` supplied to `" + _ + "`, expected an object."));
|
|
2809
|
+
for (var w in A)
|
|
2810
|
+
if (s(A, w)) {
|
|
2811
|
+
var T = o(A, w, _, S, y + "." + w, e);
|
|
2816
2812
|
if (T instanceof Error)
|
|
2817
2813
|
return T;
|
|
2818
2814
|
}
|
|
@@ -2830,39 +2826,39 @@ function be() {
|
|
|
2830
2826
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + it(b) + " at index " + d + "."
|
|
2831
2827
|
), n;
|
|
2832
2828
|
}
|
|
2833
|
-
function C(
|
|
2834
|
-
for (var
|
|
2835
|
-
var j = o[T], p = j(
|
|
2829
|
+
function C(_, S, y, A, x) {
|
|
2830
|
+
for (var w = [], T = 0; T < o.length; T++) {
|
|
2831
|
+
var j = o[T], p = j(_, S, y, A, x, e);
|
|
2836
2832
|
if (p == null)
|
|
2837
2833
|
return null;
|
|
2838
|
-
p.data && s(p.data, "expectedType") &&
|
|
2834
|
+
p.data && s(p.data, "expectedType") && w.push(p.data.expectedType);
|
|
2839
2835
|
}
|
|
2840
|
-
var Y =
|
|
2836
|
+
var Y = w.length > 0 ? ", expected one of type [" + w.join(", ") + "]" : "";
|
|
2841
2837
|
return new M("Invalid " + A + " `" + x + "` supplied to " + ("`" + y + "`" + Y + "."));
|
|
2842
2838
|
}
|
|
2843
2839
|
return O(C);
|
|
2844
2840
|
}
|
|
2845
2841
|
function gt() {
|
|
2846
|
-
function o(d, b, C,
|
|
2847
|
-
return Q(d[b]) ? null : new M("Invalid " +
|
|
2842
|
+
function o(d, b, C, _, S) {
|
|
2843
|
+
return Q(d[b]) ? null : new M("Invalid " + _ + " `" + S + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
|
|
2848
2844
|
}
|
|
2849
2845
|
return O(o);
|
|
2850
2846
|
}
|
|
2851
|
-
function st(o, d, b, C,
|
|
2847
|
+
function st(o, d, b, C, _) {
|
|
2852
2848
|
return new M(
|
|
2853
|
-
(o || "React class") + ": " + d + " type `" + b + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" +
|
|
2849
|
+
(o || "React class") + ": " + d + " type `" + b + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + _ + "`."
|
|
2854
2850
|
);
|
|
2855
2851
|
}
|
|
2856
|
-
function
|
|
2857
|
-
function d(b, C,
|
|
2858
|
-
var A = b[C], x =
|
|
2852
|
+
function kt(o) {
|
|
2853
|
+
function d(b, C, _, S, y) {
|
|
2854
|
+
var A = b[C], x = q(A);
|
|
2859
2855
|
if (x !== "object")
|
|
2860
|
-
return new M("Invalid " + S + " `" + y + "` of type `" + x + "` " + ("supplied to `" +
|
|
2861
|
-
for (var
|
|
2862
|
-
var T = o[
|
|
2856
|
+
return new M("Invalid " + S + " `" + y + "` of type `" + x + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
2857
|
+
for (var w in o) {
|
|
2858
|
+
var T = o[w];
|
|
2863
2859
|
if (typeof T != "function")
|
|
2864
|
-
return st(
|
|
2865
|
-
var j = T(A,
|
|
2860
|
+
return st(_, S, y, w, Z(T));
|
|
2861
|
+
var j = T(A, w, _, S, y + "." + w, e);
|
|
2866
2862
|
if (j)
|
|
2867
2863
|
return j;
|
|
2868
2864
|
}
|
|
@@ -2870,22 +2866,22 @@ function be() {
|
|
|
2870
2866
|
}
|
|
2871
2867
|
return O(d);
|
|
2872
2868
|
}
|
|
2873
|
-
function
|
|
2874
|
-
function d(b, C,
|
|
2875
|
-
var A = b[C], x =
|
|
2869
|
+
function _t(o) {
|
|
2870
|
+
function d(b, C, _, S, y) {
|
|
2871
|
+
var A = b[C], x = q(A);
|
|
2876
2872
|
if (x !== "object")
|
|
2877
|
-
return new M("Invalid " + S + " `" + y + "` of type `" + x + "` " + ("supplied to `" +
|
|
2878
|
-
var
|
|
2879
|
-
for (var T in
|
|
2873
|
+
return new M("Invalid " + S + " `" + y + "` of type `" + x + "` " + ("supplied to `" + _ + "`, expected `object`."));
|
|
2874
|
+
var w = t({}, b[C], o);
|
|
2875
|
+
for (var T in w) {
|
|
2880
2876
|
var j = o[T];
|
|
2881
2877
|
if (s(o, T) && typeof j != "function")
|
|
2882
|
-
return st(
|
|
2878
|
+
return st(_, S, y, T, Z(j));
|
|
2883
2879
|
if (!j)
|
|
2884
2880
|
return new M(
|
|
2885
|
-
"Invalid " + S + " `" + y + "` key `" + T + "` supplied to `" +
|
|
2881
|
+
"Invalid " + S + " `" + y + "` key `" + T + "` supplied to `" + _ + "`.\nBad object: " + JSON.stringify(b[C], null, " ") + `
|
|
2886
2882
|
Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
2887
2883
|
);
|
|
2888
|
-
var p = j(A, T,
|
|
2884
|
+
var p = j(A, T, _, S, y + "." + T, e);
|
|
2889
2885
|
if (p)
|
|
2890
2886
|
return p;
|
|
2891
2887
|
}
|
|
@@ -2906,7 +2902,7 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
|
2906
2902
|
return o.every(Q);
|
|
2907
2903
|
if (o === null || u(o))
|
|
2908
2904
|
return !0;
|
|
2909
|
-
var d =
|
|
2905
|
+
var d = k(o);
|
|
2910
2906
|
if (d) {
|
|
2911
2907
|
var b = d.call(o), C;
|
|
2912
2908
|
if (d !== o.entries) {
|
|
@@ -2915,8 +2911,8 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
|
2915
2911
|
return !1;
|
|
2916
2912
|
} else
|
|
2917
2913
|
for (; !(C = b.next()).done; ) {
|
|
2918
|
-
var
|
|
2919
|
-
if (
|
|
2914
|
+
var _ = C.value;
|
|
2915
|
+
if (_ && !Q(_[1]))
|
|
2920
2916
|
return !1;
|
|
2921
2917
|
}
|
|
2922
2918
|
} else
|
|
@@ -2929,14 +2925,14 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
|
2929
2925
|
function Et(o, d) {
|
|
2930
2926
|
return o === "symbol" ? !0 : d ? d["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && d instanceof Symbol : !1;
|
|
2931
2927
|
}
|
|
2932
|
-
function
|
|
2928
|
+
function q(o) {
|
|
2933
2929
|
var d = typeof o;
|
|
2934
2930
|
return Array.isArray(o) ? "array" : o instanceof RegExp ? "object" : Et(d, o) ? "symbol" : d;
|
|
2935
2931
|
}
|
|
2936
2932
|
function Z(o) {
|
|
2937
2933
|
if (typeof o > "u" || o === null)
|
|
2938
2934
|
return "" + o;
|
|
2939
|
-
var d =
|
|
2935
|
+
var d = q(o);
|
|
2940
2936
|
if (d === "object") {
|
|
2941
2937
|
if (o instanceof Date)
|
|
2942
2938
|
return "date";
|
|
@@ -2965,18 +2961,18 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
|
2965
2961
|
return B.checkPropTypes = i, B.resetWarningCache = i.resetWarningCache, B.PropTypes = B, B;
|
|
2966
2962
|
}, xt;
|
|
2967
2963
|
}
|
|
2968
|
-
var Tt,
|
|
2969
|
-
function
|
|
2970
|
-
if (
|
|
2971
|
-
|
|
2972
|
-
var a = /* @__PURE__ */
|
|
2964
|
+
var Tt, qt;
|
|
2965
|
+
function Ee() {
|
|
2966
|
+
if (qt) return Tt;
|
|
2967
|
+
qt = 1;
|
|
2968
|
+
var a = /* @__PURE__ */ wt();
|
|
2973
2969
|
function t() {
|
|
2974
2970
|
}
|
|
2975
2971
|
function e() {
|
|
2976
2972
|
}
|
|
2977
2973
|
return e.resetWarningCache = t, Tt = function() {
|
|
2978
|
-
function s(n, u, l, h, v,
|
|
2979
|
-
if (
|
|
2974
|
+
function s(n, u, l, h, v, k) {
|
|
2975
|
+
if (k !== a) {
|
|
2980
2976
|
var F = new Error(
|
|
2981
2977
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
2982
2978
|
);
|
|
@@ -3013,18 +3009,18 @@ function Fe() {
|
|
|
3013
3009
|
return r.PropTypes = r, r;
|
|
3014
3010
|
}, Tt;
|
|
3015
3011
|
}
|
|
3016
|
-
var
|
|
3017
|
-
function
|
|
3018
|
-
if (
|
|
3019
|
-
if (
|
|
3020
|
-
var a =
|
|
3021
|
-
nt.exports = /* @__PURE__ */
|
|
3012
|
+
var Yt;
|
|
3013
|
+
function ye() {
|
|
3014
|
+
if (Yt) return nt.exports;
|
|
3015
|
+
if (Yt = 1, process.env.NODE_ENV !== "production") {
|
|
3016
|
+
var a = Xt(), t = !0;
|
|
3017
|
+
nt.exports = /* @__PURE__ */ _e()(a.isElement, t);
|
|
3022
3018
|
} else
|
|
3023
|
-
nt.exports = /* @__PURE__ */
|
|
3019
|
+
nt.exports = /* @__PURE__ */ Ee()();
|
|
3024
3020
|
return nt.exports;
|
|
3025
3021
|
}
|
|
3026
|
-
var
|
|
3027
|
-
const f = /* @__PURE__ */
|
|
3022
|
+
var Ce = /* @__PURE__ */ ye();
|
|
3023
|
+
const f = /* @__PURE__ */ fe(Ce), Qt = {
|
|
3028
3024
|
// common
|
|
3029
3025
|
mask: f.oneOfType([f.array, f.func, f.string, f.instanceOf(RegExp), f.oneOf([Date, Number, g.Masked]), f.instanceOf(g.Masked)]),
|
|
3030
3026
|
value: f.any,
|
|
@@ -3071,8 +3067,8 @@ const f = /* @__PURE__ */ ke(xe), ee = {
|
|
|
3071
3067
|
inputRef: f.oneOfType([f.func, f.shape({
|
|
3072
3068
|
current: f.object
|
|
3073
3069
|
})])
|
|
3074
|
-
},
|
|
3075
|
-
function
|
|
3070
|
+
}, te = Object.keys(Qt).filter((a) => a !== "value"), Ae = ["value", "unmask", "onAccept", "onComplete", "inputRef"], be = te.filter((a) => Ae.indexOf(a) < 0);
|
|
3071
|
+
function Fe(a) {
|
|
3076
3072
|
var t;
|
|
3077
3073
|
const e = (t = class extends X.Component {
|
|
3078
3074
|
constructor(r) {
|
|
@@ -3106,7 +3102,7 @@ function we(a) {
|
|
|
3106
3102
|
const {
|
|
3107
3103
|
...n
|
|
3108
3104
|
} = r;
|
|
3109
|
-
return Object.keys(n).filter((u) =>
|
|
3105
|
+
return Object.keys(n).filter((u) => be.indexOf(u) < 0).forEach((u) => {
|
|
3110
3106
|
delete n[u];
|
|
3111
3107
|
}), n;
|
|
3112
3108
|
}
|
|
@@ -3114,7 +3110,7 @@ function we(a) {
|
|
|
3114
3110
|
const {
|
|
3115
3111
|
...n
|
|
3116
3112
|
} = r;
|
|
3117
|
-
return
|
|
3113
|
+
return te.forEach((u) => {
|
|
3118
3114
|
u !== "maxLength" && delete n[u];
|
|
3119
3115
|
}), "defaultValue" in n || (n.defaultValue = r.mask ? "" : n.value), delete n.value, n;
|
|
3120
3116
|
}
|
|
@@ -3137,12 +3133,12 @@ function we(a) {
|
|
|
3137
3133
|
});
|
|
3138
3134
|
}
|
|
3139
3135
|
}, t.displayName = void 0, t.propTypes = void 0, t), s = a.displayName || a.name || "Component";
|
|
3140
|
-
return e.displayName = "IMask(" + s + ")", e.propTypes =
|
|
3136
|
+
return e.displayName = "IMask(" + s + ")", e.propTypes = Qt, X.forwardRef((i, r) => X.createElement(e, {
|
|
3141
3137
|
...i,
|
|
3142
3138
|
ref: r
|
|
3143
3139
|
}));
|
|
3144
3140
|
}
|
|
3145
|
-
const
|
|
3141
|
+
const Se = Fe((a) => {
|
|
3146
3142
|
let {
|
|
3147
3143
|
inputRef: t,
|
|
3148
3144
|
...e
|
|
@@ -3151,33 +3147,16 @@ const Re = we((a) => {
|
|
|
3151
3147
|
...e,
|
|
3152
3148
|
ref: t
|
|
3153
3149
|
});
|
|
3154
|
-
}),
|
|
3150
|
+
}), xe = (a, t) => X.createElement(Se, {
|
|
3155
3151
|
...a,
|
|
3156
3152
|
ref: t
|
|
3157
|
-
}),
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
} })), Pe = ue(ie.input, ne["caption-l-regular"]), Le = re.withProps({
|
|
3165
|
-
leftSection: /* @__PURE__ */ It(Ve, {}),
|
|
3166
|
-
component: Be,
|
|
3167
|
-
mask: "0000 0000 0000 0000",
|
|
3168
|
-
placeholder: "____ ____ ____ ____",
|
|
3169
|
-
classNames: { input: Pe, section: ie.section }
|
|
3170
|
-
}), ze = (a) => {
|
|
3171
|
-
const t = ae(a.value);
|
|
3172
|
-
return /* @__PURE__ */ It(
|
|
3173
|
-
Le,
|
|
3174
|
-
{
|
|
3175
|
-
...a,
|
|
3176
|
-
rightSection: t && /* @__PURE__ */ It(t, {})
|
|
3177
|
-
}
|
|
3178
|
-
);
|
|
3179
|
-
};
|
|
3153
|
+
}), Te = X.forwardRef(xe), Be = (a) => /* @__PURE__ */ ee(
|
|
3154
|
+
se,
|
|
3155
|
+
{
|
|
3156
|
+
component: Te,
|
|
3157
|
+
...a
|
|
3158
|
+
}
|
|
3159
|
+
);
|
|
3180
3160
|
export {
|
|
3181
|
-
|
|
3182
|
-
Le as CardInputBase
|
|
3161
|
+
Be as MaskedInput
|
|
3183
3162
|
};
|