stone-kit 0.0.1029 → 0.0.1030
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/App.js +4 -4
- package/dist/FilterWithSave-BWA01WwU.js +2476 -0
- package/dist/Menu-CeBSiTyP.js +513 -0
- package/dist/{Option-CtwUzW8a.js → Option-DU8cvBnA.js} +1 -1
- package/dist/Router.js +1 -1
- package/dist/components/Button/ui/Button.d.ts +1 -0
- package/dist/components/Button/ui/Button.js +1 -1
- package/dist/components/Button/ui/Button.types.d.ts +1 -0
- package/dist/components/CheckBox/CheckBox.d.ts +1 -0
- package/dist/components/CheckBox/CheckBox.js +1 -1
- package/dist/components/CheckBox/CheckBox.types.d.ts +1 -0
- package/dist/components/CheckBoxNew/CheckBox.types.d.ts +1 -0
- package/dist/components/CheckBoxNew/CheckBoxNew.d.ts +1 -0
- package/dist/components/CheckBoxNew/CheckBoxNew.js +17 -17
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.d.ts +1 -0
- package/dist/components/CheckboxSelect/ui/CheckboxSelect.js +34 -34
- package/dist/components/CommercialLotCard/CommercialLotCard.d.ts +1 -0
- package/dist/components/CommercialLotCard/CommercialLotCard.js +7 -50
- package/dist/components/CommercialLotCard/components/Price/Price.d.ts +1 -0
- package/dist/components/CommercialLotCard/components/Price/Price.js +24 -23
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.d.ts +1 -0
- package/dist/components/CommercialLotCard/components/Snippets/Snippets.js +27 -98
- package/dist/components/CommercialLotCard/components/Tags/Tags.d.ts +1 -0
- package/dist/components/CommercialLotCard/components/Tags/Tags.js +17 -17
- package/dist/components/CommercialLotCard/types/CommercialLotCard.types.d.ts +1 -0
- package/dist/components/CommercialLotCard/types/LotCard.d.ts +1 -0
- package/dist/components/CommercialLotCard/utils/formatPrice.js +2 -1
- package/dist/components/CommercialLotCard/utils/getTagsFeatures.d.ts +2 -1
- package/dist/components/DestinationTab/ui/DestinationTab.d.ts +1 -0
- package/dist/components/DestinationTab/ui/DestinationTab.js +41 -41
- package/dist/components/DestinationTab/ui/DestinationTab.types.d.ts +1 -0
- package/dist/components/FieldInput/ui/FieldInput.d.ts +1 -0
- package/dist/components/FieldInput/ui/FieldInput.types.d.ts +1 -0
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.d.ts +2 -1
- package/dist/components/FilterWithSave/hooks/useFilterWithSave.js +26 -54
- package/dist/components/FilterWithSave/ui/FilterWithSave.d.ts +1 -0
- package/dist/components/FilterWithSave/ui/FilterWithSave.js +7 -323
- package/dist/components/Flex/ui/Flex.d.ts +1 -0
- package/dist/components/Flex/ui/Flex.js +1 -1
- package/dist/components/Flex/ui/Flex.types.d.ts +1 -0
- package/dist/components/FormModal/ui/ModalForm.js +28 -1445
- package/dist/components/GroupedInput/ui/GroupedInputs.d.ts +1 -0
- package/dist/components/GroupedInput/ui/GroupedInputs.js +1 -1
- package/dist/components/GroupedInput/ui/GroupedInputs.types.d.ts +1 -0
- package/dist/components/Input/ui/Input.d.ts +2 -1
- package/dist/components/Input/ui/Input.js +325 -234
- package/dist/components/Logo/ui/Logo.d.ts +1 -0
- package/dist/components/Logo/ui/Logo.js +6 -6
- package/dist/components/LotCard/hooks/useLotCard.d.ts +1 -0
- package/dist/components/LotCard/hooks/useLotCard.js +24 -6
- package/dist/components/LotCard/index.js +2 -2
- package/dist/components/LotCard/ui/LotCard.d.ts +1 -0
- package/dist/components/LotCard/ui/LotCard.js +10 -213
- package/dist/components/LotCard/ui/LotCard.types.d.ts +1 -0
- package/dist/components/LotCard/utils/formatPrice.js +2 -1
- package/dist/components/LotCard/utils/getTagsFeatures.d.ts +2 -1
- package/dist/components/LotCardSkeleton/ui/LotCardSkeleton.js +1 -1
- package/dist/components/MetroLabel/ui/MetroLabel.d.ts +1 -0
- package/dist/components/MetroLabel/ui/MetroLabel.js +16 -16
- package/dist/components/MetroLabel/ui/MetroLabel.types.d.ts +1 -0
- package/dist/components/MetroTag/ui/MetroTag.d.ts +1 -0
- package/dist/components/MetroTag/ui/MetroTag.js +74 -74
- package/dist/components/MetroTag/ui/MetroTag.types.d.ts +1 -0
- package/dist/components/Modal/ui/Modal.d.ts +1 -0
- package/dist/components/Modal/ui/Modal.js +37 -34
- package/dist/components/Modal/ui/Modal.types.d.ts +1 -0
- package/dist/components/ModalSuccess/ModalSuccess.d.ts +1 -0
- package/dist/components/ModalSuccess/ModalSuccess.js +19 -18
- package/dist/components/ModalSuccess/ModalSuccess.types.d.ts +1 -0
- package/dist/components/NewIcon/icons/PinTrans.d.ts +1 -0
- package/dist/components/NewIcon/icons/SmallFilter.d.ts +1 -0
- package/dist/components/NewIcon/ui/NewIcon.d.ts +1 -0
- package/dist/components/NewIcon/ui/NewIcon.js +1 -1
- package/dist/components/NewIcon/ui/NewIcon.types.d.ts +1 -0
- package/dist/components/NewIcon/ui/iconTypes.d.ts +1 -0
- package/dist/components/ProjectCardSkeleton/ui/ProjectCardSkeleton.js +11 -9
- package/dist/components/RoundButton/ui/RoundButton.d.ts +1 -0
- package/dist/components/RoundButton/ui/RoundButton.js +2 -2
- package/dist/components/RoundButton/ui/RoundButton.types.d.ts +1 -0
- package/dist/components/Select/model/selectMode.d.ts +1 -0
- package/dist/components/Select/model/selectMode.js +30 -30
- package/dist/components/Select/ui/Category.d.ts +1 -0
- package/dist/components/Select/ui/Category.js +3 -3
- package/dist/components/Select/ui/Option.d.ts +1 -0
- package/dist/components/Select/ui/Option.js +2 -2
- package/dist/components/Select/ui/Select.d.ts +1 -0
- package/dist/components/Select/ui/Select.js +115 -115
- package/dist/components/SliderNavigation/index.d.ts +1 -0
- package/dist/components/SliderNavigation/ui/SliderNavigation.d.ts +1 -0
- package/dist/components/SliderNavigation/ui/SliderNavigation.js +6 -6
- package/dist/components/SortSelect/hooks/useSortSelect.d.ts +1 -0
- package/dist/components/SortSelect/hooks/useSortSelect.js +2 -2
- package/dist/components/SortSelect/index.js +1 -1
- package/dist/components/SortSelect/ui/SortSelect.d.ts +1 -0
- package/dist/components/SortSelect/ui/SortSelect.js +26 -108
- package/dist/components/SortSelect/ui/SortSelect.types.d.ts +1 -0
- package/dist/components/SummarySelect/ui/SummarySelect.d.ts +1 -0
- package/dist/components/SummarySelect/ui/SummarySelect.js +65 -59
- package/dist/components/Switcher/ui/Switcher.d.ts +1 -0
- package/dist/components/Switcher/ui/Switcher.js +1 -1
- package/dist/components/Switcher/ui/Switcher.types.d.ts +1 -0
- package/dist/components/TabSelect/ui/TabSelect.d.ts +1 -0
- package/dist/components/TabSelect/ui/TabSelect.js +5 -5
- package/dist/components/TabSwitcher/index.js +2 -2
- package/dist/components/TabSwitcher/ui/TabSwitcher.d.ts +1 -0
- package/dist/components/TabSwitcher/ui/TabSwitcher.js +26 -120
- package/dist/components/TabSwitcher/ui/TabSwitcher.types.d.ts +1 -0
- package/dist/components/Tag/ui/Tag.d.ts +1 -0
- package/dist/components/Tag/ui/Tag.js +91 -91
- package/dist/components/Tag/ui/Tag.types.d.ts +1 -0
- package/dist/components/Text/ui/Text.d.ts +1 -0
- package/dist/components/Text/ui/Text.js +1 -1
- package/dist/components/Text/ui/Text.types.d.ts +1 -0
- package/dist/components/TextArea/TextArea.d.ts +1 -0
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/ZoomControls/ui/ZoomControls.d.ts +1 -0
- package/dist/components/ZoomControls/ui/ZoomControls.types.d.ts +1 -0
- package/dist/components/mobileButton/ui/MobileButton.d.ts +1 -0
- package/dist/components/mobileButton/ui/MobileButton.js +1 -1
- package/dist/components/mobileButton/ui/MobileButton.types.d.ts +1 -0
- package/dist/index-DmANy9jd.js +890 -0
- package/dist/{index-BJwl9stn.js → index-DvCs2JPX.js} +9695 -9596
- package/dist/index-rKuIKazb.js +45 -0
- package/dist/layout/Layout.d.ts +1 -0
- package/dist/layout/components/Header/Header.js +71 -48
- package/dist/layout/components/Menu.js +26 -107
- package/dist/main.js +65 -70
- package/dist/pages/ButtonsPage/Buttons.js +61 -44
- package/dist/pages/FormsPage/FormsPage.js +50 -26
- package/dist/pages/IconsPage/IconsPage.js +31 -9
- package/dist/pages/InputPage/InputPage.js +32 -10
- package/dist/pages/LogoPage/LogoPage.js +35 -13
- package/dist/pages/LotsPage/LotsPage.js +17 -18
- package/dist/pages/LotsPage/const.d.ts +1 -0
- package/dist/pages/ModalsPage/ModalPage.js +66 -46
- package/dist/pages/SelectPage/SelectPage.js +58 -58
- package/dist/pages/TabsPage/TabsPage.js +20 -19
- package/dist/pages/TagsPage/TagsPage.js +44 -23
- package/dist/shared/checkLargeOffice.d.ts +1 -0
- package/dist/shared/checkLargeOffice.js +1 -1
- package/dist/shared/mlnRound.js +2 -1
- package/dist/stories/entities/CommercialLotCard/CommercialLotCard.stories.js +2 -2
- package/dist/stories/shared/ui/Button/Button.stories.js +5 -5
- package/dist/stories/shared/ui/CheckBox/CheckBox.stories.js +1 -1
- package/dist/stories/shared/ui/CheckBox/CheckBoxNew.stories.js +1 -1
- package/dist/stories/shared/ui/CheckboxSelect/CheckboxSelect.stories.js +1 -1
- package/dist/stories/shared/ui/DestinationTab/DestinationTab.stories.js +1 -1
- package/dist/stories/shared/ui/FieldInput/FieldInput.stories.js +1 -1
- package/dist/stories/shared/ui/FilterWithSave/FilterWithSave.stories.js +2 -2
- package/dist/stories/shared/ui/FormModal/FormModal.stories.js +8 -8
- package/dist/stories/shared/ui/GroupedInput/GroupedInput.stories.js +1 -1
- package/dist/stories/shared/ui/Logo/Logo.stories.js +1 -1
- package/dist/stories/shared/ui/MobileButton/MobileButton.stories.js +1 -1
- package/dist/stories/shared/ui/Modal/Modal.stories.js +1 -1
- package/dist/stories/shared/ui/ModalSuccess/ModalSuccess.stories.js +1 -1
- package/dist/stories/shared/ui/RoundButton/RoundButton.stories.js +1 -1
- package/dist/stories/shared/ui/Select/Select.stories.js +1 -1
- package/dist/stories/shared/ui/SliderNavigation/SliderNavigation.stories.js +1 -1
- package/dist/stories/shared/ui/SortSelect/SortSelect.stories.js +2 -2
- package/dist/stories/shared/ui/SummarySelect/SummarySelect.stories.js +1 -1
- package/dist/stories/shared/ui/Switcher/Switcher.stories.js +1 -1
- package/dist/stories/shared/ui/TabSelect/TabSelect.stories.js +1 -1
- package/dist/stories/shared/ui/TabSwitcher/TabSwitcher.stories.js +2 -2
- package/dist/stories/shared/ui/Tag/Tag.stories.js +4 -4
- package/dist/stories/shared/ui/ZoomControls/ZoomControls.stories.js +1 -1
- package/dist/style.css +1 -0
- package/dist/useSortSelect-BTCEVMVn.js +80 -0
- package/package.json +1 -1
- package/dist/chunk-4WY6JWTD-BeveLKf_.js +0 -1582
- package/dist/index-YnD2EP-S.js +0 -43
- package/dist/stone-kit.css +0 -1
- package/dist/useLotCard-CYcRSogE.js +0 -186
- package/dist/useSortSelect-Cy3od4ig.js +0 -80
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsx as et, jsxs as Vt, Fragment as
|
|
2
|
-
import J, { forwardRef as
|
|
3
|
-
import { g as
|
|
4
|
-
const
|
|
1
|
+
import { jsx as et, jsxs as Vt, Fragment as re } from "react/jsx-runtime";
|
|
2
|
+
import J, { forwardRef as ne } from "react";
|
|
3
|
+
import { g as ae, c as ue } from "../../../index-rKuIKazb.js";
|
|
4
|
+
const oe = "_inputWrapper_1ln65_10", le = "_inputIMask_1ln65_37", he = "_inputWrapperPost_1ln65_41", pe = "_inputWrapperPre_1ln65_42", ce = "_light_1ln65_58", de = "_gray_1ln65_96", fe = "_dark_1ln65_128", _e = "_transparent_1ln65_169", me = "_inputWrapperError_1ln65_227", ge = "_inputWrapperErrorWithoutBorder_1ln65_241", ke = "_inputWrapperErrorDark_1ln65_252", ve = "_checkBox_1ln65_266", M = {
|
|
5
5
|
"auto-width": "_auto-width_1ln65_1",
|
|
6
6
|
"full-width": "_full-width_1ln65_6",
|
|
7
|
-
inputWrapper:
|
|
8
|
-
inputIMask:
|
|
9
|
-
inputWrapperPost:
|
|
10
|
-
inputWrapperPre:
|
|
11
|
-
light:
|
|
12
|
-
gray:
|
|
13
|
-
dark:
|
|
14
|
-
transparent:
|
|
15
|
-
inputWrapperError:
|
|
16
|
-
inputWrapperErrorWithoutBorder:
|
|
17
|
-
inputWrapperErrorDark:
|
|
18
|
-
checkBox:
|
|
7
|
+
inputWrapper: oe,
|
|
8
|
+
inputIMask: le,
|
|
9
|
+
inputWrapperPost: he,
|
|
10
|
+
inputWrapperPre: pe,
|
|
11
|
+
light: ce,
|
|
12
|
+
gray: de,
|
|
13
|
+
dark: fe,
|
|
14
|
+
transparent: _e,
|
|
15
|
+
inputWrapperError: me,
|
|
16
|
+
inputWrapperErrorWithoutBorder: ge,
|
|
17
|
+
inputWrapperErrorDark: ke,
|
|
18
|
+
checkBox: ve,
|
|
19
19
|
"tiny-size_s": "_tiny-size_s_1ln65_270",
|
|
20
20
|
"small-size_s": "_small-size_s_1ln65_278",
|
|
21
21
|
"medium-size_s": "_medium-size_s_1ln65_286",
|
|
@@ -36,8 +36,8 @@ function Pt(a) {
|
|
|
36
36
|
var t;
|
|
37
37
|
return typeof a == "object" && a != null && (a == null || (t = a.constructor) == null ? void 0 : t.name) === "Object";
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
return Array.isArray(t) ?
|
|
39
|
+
function Kt(a, t) {
|
|
40
|
+
return Array.isArray(t) ? Kt(a, (e, s) => t.includes(s)) : Object.entries(a).reduce((e, s) => {
|
|
41
41
|
let [i, r] = s;
|
|
42
42
|
return t(r, i) && (e[i] = r), e;
|
|
43
43
|
}, {});
|
|
@@ -49,7 +49,7 @@ const _ = {
|
|
|
49
49
|
RIGHT: "RIGHT",
|
|
50
50
|
FORCE_RIGHT: "FORCE_RIGHT"
|
|
51
51
|
};
|
|
52
|
-
function
|
|
52
|
+
function Ee(a) {
|
|
53
53
|
switch (a) {
|
|
54
54
|
case _.LEFT:
|
|
55
55
|
return _.FORCE_LEFT;
|
|
@@ -59,35 +59,48 @@ function ye(a) {
|
|
|
59
59
|
return a;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function At(a) {
|
|
63
63
|
return a.replace(/([.*+?^=!:${}()|[\]/\\])/g, "\\$1");
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
if (t === a)
|
|
65
|
+
function lt(a, t) {
|
|
66
|
+
if (t === a)
|
|
67
|
+
return !0;
|
|
67
68
|
const e = Array.isArray(t), s = Array.isArray(a);
|
|
68
69
|
let i;
|
|
69
70
|
if (e && s) {
|
|
70
|
-
if (t.length != a.length)
|
|
71
|
-
|
|
71
|
+
if (t.length != a.length)
|
|
72
|
+
return !1;
|
|
73
|
+
for (i = 0; i < t.length; i++)
|
|
74
|
+
if (!lt(t[i], a[i]))
|
|
75
|
+
return !1;
|
|
72
76
|
return !0;
|
|
73
77
|
}
|
|
74
|
-
if (e != s)
|
|
78
|
+
if (e != s)
|
|
79
|
+
return !1;
|
|
75
80
|
if (t && a && typeof t == "object" && typeof a == "object") {
|
|
76
81
|
const r = t instanceof Date, n = a instanceof Date;
|
|
77
|
-
if (r && n)
|
|
78
|
-
|
|
82
|
+
if (r && n)
|
|
83
|
+
return t.getTime() == a.getTime();
|
|
84
|
+
if (r != n)
|
|
85
|
+
return !1;
|
|
79
86
|
const u = t instanceof RegExp, o = a instanceof RegExp;
|
|
80
|
-
if (u && o)
|
|
81
|
-
|
|
87
|
+
if (u && o)
|
|
88
|
+
return t.toString() == a.toString();
|
|
89
|
+
if (u != o)
|
|
90
|
+
return !1;
|
|
82
91
|
const h = Object.keys(t);
|
|
83
|
-
for (i = 0; i < h.length; i++)
|
|
84
|
-
|
|
92
|
+
for (i = 0; i < h.length; i++)
|
|
93
|
+
if (!Object.prototype.hasOwnProperty.call(a, h[i]))
|
|
94
|
+
return !1;
|
|
95
|
+
for (i = 0; i < h.length; i++)
|
|
96
|
+
if (!lt(a[h[i]], t[h[i]]))
|
|
97
|
+
return !1;
|
|
85
98
|
return !0;
|
|
86
99
|
} else if (t && a && typeof t == "function" && typeof a == "function")
|
|
87
100
|
return t.toString() === a.toString();
|
|
88
101
|
return !1;
|
|
89
102
|
}
|
|
90
|
-
class
|
|
103
|
+
class ye {
|
|
91
104
|
/** Current input value */
|
|
92
105
|
/** Current cursor position */
|
|
93
106
|
/** Old input value */
|
|
@@ -137,16 +150,19 @@ class Ce {
|
|
|
137
150
|
function k(a, t) {
|
|
138
151
|
return new k.InputMask(a, t);
|
|
139
152
|
}
|
|
140
|
-
function
|
|
141
|
-
if (a == null)
|
|
153
|
+
function Gt(a) {
|
|
154
|
+
if (a == null)
|
|
155
|
+
throw new Error("mask property should be defined");
|
|
142
156
|
return a instanceof RegExp ? k.MaskedRegExp : G(a) ? k.MaskedPattern : a === Date ? k.MaskedDate : a === Number ? k.MaskedNumber : Array.isArray(a) || a === Array ? k.MaskedDynamic : k.Masked && a.prototype instanceof k.Masked ? a : k.Masked && a instanceof k.Masked ? a.constructor : a instanceof Function ? k.MaskedFunction : (console.warn("Mask not found for mask", a), k.Masked);
|
|
143
157
|
}
|
|
144
158
|
function it(a) {
|
|
145
|
-
if (!a)
|
|
159
|
+
if (!a)
|
|
160
|
+
throw new Error("Options in not defined");
|
|
146
161
|
if (k.Masked) {
|
|
147
|
-
if (a.prototype instanceof k.Masked)
|
|
148
|
-
|
|
149
|
-
|
|
162
|
+
if (a.prototype instanceof k.Masked)
|
|
163
|
+
return {
|
|
164
|
+
mask: a
|
|
165
|
+
};
|
|
150
166
|
const {
|
|
151
167
|
mask: t = void 0,
|
|
152
168
|
...e
|
|
@@ -156,7 +172,7 @@ function it(a) {
|
|
|
156
172
|
if (t) {
|
|
157
173
|
const s = t.mask;
|
|
158
174
|
return {
|
|
159
|
-
...
|
|
175
|
+
...Kt(t, (i, r) => !r.startsWith("_")),
|
|
160
176
|
mask: t.constructor,
|
|
161
177
|
_mask: s,
|
|
162
178
|
...e
|
|
@@ -170,9 +186,11 @@ function it(a) {
|
|
|
170
186
|
};
|
|
171
187
|
}
|
|
172
188
|
function K(a) {
|
|
173
|
-
if (k.Masked && a instanceof k.Masked)
|
|
174
|
-
|
|
175
|
-
|
|
189
|
+
if (k.Masked && a instanceof k.Masked)
|
|
190
|
+
return a;
|
|
191
|
+
const t = it(a), e = Gt(t.mask);
|
|
192
|
+
if (!e)
|
|
193
|
+
throw new Error("Masked class is not found for provided mask " + t.mask + ", appropriate module needs to be imported manually before creating mask.");
|
|
176
194
|
return t.mask === e && delete t.mask, t._mask && (t.mask = t._mask, delete t._mask), new e(t);
|
|
177
195
|
}
|
|
178
196
|
k.createMask = K;
|
|
@@ -215,8 +233,8 @@ class Mt {
|
|
|
215
233
|
/** */
|
|
216
234
|
}
|
|
217
235
|
k.MaskElement = Mt;
|
|
218
|
-
const Lt = 90,
|
|
219
|
-
class
|
|
236
|
+
const Lt = 90, Ce = 89;
|
|
237
|
+
class pt extends Mt {
|
|
220
238
|
/** HTMLElement to use mask on */
|
|
221
239
|
constructor(t) {
|
|
222
240
|
super(), this.input = t, this._onKeydown = this._onKeydown.bind(this), this._onInput = this._onInput.bind(this), this._onBeforeinput = this._onBeforeinput.bind(this), this._onCompositionEnd = this._onCompositionEnd.bind(this);
|
|
@@ -234,7 +252,7 @@ class ct extends Mt {
|
|
|
234
252
|
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;
|
|
235
253
|
}
|
|
236
254
|
_onKeydown(t) {
|
|
237
|
-
if (this._handlers.redo && (t.keyCode === Lt && t.shiftKey && (t.metaKey || t.ctrlKey) || t.keyCode ===
|
|
255
|
+
if (this._handlers.redo && (t.keyCode === Lt && t.shiftKey && (t.metaKey || t.ctrlKey) || t.keyCode === Ce && t.ctrlKey))
|
|
238
256
|
return t.preventDefault(), this._handlers.redo(t);
|
|
239
257
|
if (this._handlers.undo && t.keyCode === Lt && (t.metaKey || t.ctrlKey))
|
|
240
258
|
return t.preventDefault(), this._handlers.undo(t);
|
|
@@ -257,8 +275,8 @@ class ct extends Mt {
|
|
|
257
275
|
this.input.removeEventListener("keydown", this._onKeydown), this.input.removeEventListener("input", this._onInput), this.input.removeEventListener("beforeinput", this._onBeforeinput), this.input.removeEventListener("compositionend", this._onCompositionEnd), this.input.removeEventListener("drop", this._handlers.drop), this.input.removeEventListener("click", this._handlers.click), this.input.removeEventListener("focus", this._handlers.focus), this.input.removeEventListener("blur", this._handlers.commit), this._handlers = {};
|
|
258
276
|
}
|
|
259
277
|
}
|
|
260
|
-
k.HTMLMaskElement =
|
|
261
|
-
class
|
|
278
|
+
k.HTMLMaskElement = pt;
|
|
279
|
+
class Ae extends pt {
|
|
262
280
|
/** InputElement to use mask on */
|
|
263
281
|
constructor(t) {
|
|
264
282
|
super(t), this.input = t;
|
|
@@ -282,8 +300,8 @@ class be extends ct {
|
|
|
282
300
|
this.input.value = t;
|
|
283
301
|
}
|
|
284
302
|
}
|
|
285
|
-
k.HTMLMaskElement =
|
|
286
|
-
class
|
|
303
|
+
k.HTMLMaskElement = pt;
|
|
304
|
+
class Zt extends pt {
|
|
287
305
|
/** Returns HTMLElement selection start */
|
|
288
306
|
get _unsafeSelectionStart() {
|
|
289
307
|
const t = this.rootElement, e = t.getSelection && t.getSelection(), s = e && e.anchorOffset, i = e && e.focusOffset;
|
|
@@ -296,7 +314,8 @@ class Xt extends ct {
|
|
|
296
314
|
}
|
|
297
315
|
/** Sets HTMLElement selection */
|
|
298
316
|
_unsafeSelect(t, e) {
|
|
299
|
-
if (!this.rootElement.createRange)
|
|
317
|
+
if (!this.rootElement.createRange)
|
|
318
|
+
return;
|
|
300
319
|
const s = this.rootElement.createRange();
|
|
301
320
|
s.setStart(this.input.firstChild || this.input, t), s.setEnd(this.input.lastChild || this.input, e);
|
|
302
321
|
const i = this.rootElement, r = i.getSelection && i.getSelection();
|
|
@@ -310,8 +329,8 @@ class Xt extends ct {
|
|
|
310
329
|
this.input.textContent = t;
|
|
311
330
|
}
|
|
312
331
|
}
|
|
313
|
-
k.HTMLContenteditableMaskElement =
|
|
314
|
-
class
|
|
332
|
+
k.HTMLContenteditableMaskElement = Zt;
|
|
333
|
+
class ct {
|
|
315
334
|
constructor() {
|
|
316
335
|
this.states = [], this.currentIndex = 0;
|
|
317
336
|
}
|
|
@@ -322,7 +341,7 @@ class dt {
|
|
|
322
341
|
return this.states.length === 0;
|
|
323
342
|
}
|
|
324
343
|
push(t) {
|
|
325
|
-
this.currentIndex < this.states.length - 1 && (this.states.length = this.currentIndex + 1), this.states.push(t), this.states.length >
|
|
344
|
+
this.currentIndex < this.states.length - 1 && (this.states.length = this.currentIndex + 1), this.states.push(t), this.states.length > ct.MAX_LENGTH && this.states.shift(), this.currentIndex = this.states.length - 1;
|
|
326
345
|
}
|
|
327
346
|
go(t) {
|
|
328
347
|
return this.currentIndex = Math.min(Math.max(this.currentIndex + t, 0), this.states.length - 1), this.currentState;
|
|
@@ -337,14 +356,14 @@ class dt {
|
|
|
337
356
|
this.states.length = 0, this.currentIndex = 0;
|
|
338
357
|
}
|
|
339
358
|
}
|
|
340
|
-
|
|
341
|
-
class
|
|
359
|
+
ct.MAX_LENGTH = 100;
|
|
360
|
+
class be {
|
|
342
361
|
/**
|
|
343
362
|
View element
|
|
344
363
|
*/
|
|
345
364
|
/** Internal {@link Masked} model */
|
|
346
365
|
constructor(t, e) {
|
|
347
|
-
this.el = t instanceof Mt ? t : t.isContentEditable && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" ? new
|
|
366
|
+
this.el = t instanceof Mt ? t : t.isContentEditable && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA" ? new Zt(t) : new Ae(t), this.masked = K(e), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new ct(), 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();
|
|
348
367
|
}
|
|
349
368
|
maskEquals(t) {
|
|
350
369
|
var e;
|
|
@@ -355,8 +374,9 @@ class xe {
|
|
|
355
374
|
return this.masked.mask;
|
|
356
375
|
}
|
|
357
376
|
set mask(t) {
|
|
358
|
-
if (this.maskEquals(t))
|
|
359
|
-
|
|
377
|
+
if (this.maskEquals(t))
|
|
378
|
+
return;
|
|
379
|
+
if (!(t instanceof k.Masked) && this.masked.constructor === Gt(t)) {
|
|
360
380
|
this.masked.updateOptions({
|
|
361
381
|
mask: t
|
|
362
382
|
});
|
|
@@ -494,7 +514,8 @@ class xe {
|
|
|
494
514
|
}
|
|
495
515
|
/** Removes custom event listener */
|
|
496
516
|
off(t, e) {
|
|
497
|
-
if (!this._listeners[t])
|
|
517
|
+
if (!this._listeners[t])
|
|
518
|
+
return this;
|
|
498
519
|
if (!e)
|
|
499
520
|
return delete this._listeners[t], this;
|
|
500
521
|
const s = this._listeners[t].indexOf(e);
|
|
@@ -503,7 +524,7 @@ class xe {
|
|
|
503
524
|
/** Handles view input event */
|
|
504
525
|
_onInput(t) {
|
|
505
526
|
this._inputEvent = t, this._abortUpdateCursor();
|
|
506
|
-
const e = new
|
|
527
|
+
const e = new ye({
|
|
507
528
|
// new state
|
|
508
529
|
value: this.el.value,
|
|
509
530
|
cursorPos: this.cursorPos,
|
|
@@ -547,7 +568,7 @@ class xe {
|
|
|
547
568
|
this._unbindEvents(), this._listeners.length = 0, delete this.el;
|
|
548
569
|
}
|
|
549
570
|
}
|
|
550
|
-
k.InputMask =
|
|
571
|
+
k.InputMask = be;
|
|
551
572
|
class E {
|
|
552
573
|
/** Inserted symbols */
|
|
553
574
|
/** Additional offset if any changes occurred before tail */
|
|
@@ -609,12 +630,14 @@ class Y {
|
|
|
609
630
|
Object.assign(this, t);
|
|
610
631
|
}
|
|
611
632
|
unshift(t) {
|
|
612
|
-
if (!this.value.length || t != null && this.from >= t)
|
|
633
|
+
if (!this.value.length || t != null && this.from >= t)
|
|
634
|
+
return "";
|
|
613
635
|
const e = this.value[0];
|
|
614
636
|
return this.value = this.value.slice(1), e;
|
|
615
637
|
}
|
|
616
638
|
shift() {
|
|
617
|
-
if (!this.value.length)
|
|
639
|
+
if (!this.value.length)
|
|
640
|
+
return "";
|
|
618
641
|
const t = this.value[this.value.length - 1];
|
|
619
642
|
return this.value = this.value.slice(0, -1), t;
|
|
620
643
|
}
|
|
@@ -777,14 +800,16 @@ class L {
|
|
|
777
800
|
}
|
|
778
801
|
/** Appends symbols considering flags */
|
|
779
802
|
append(t, e, s) {
|
|
780
|
-
if (!G(t))
|
|
803
|
+
if (!G(t))
|
|
804
|
+
throw new Error("value should be string");
|
|
781
805
|
const i = G(s) ? new Y(String(s)) : s;
|
|
782
806
|
e != null && e.tail && (e._beforeTailState = this.state);
|
|
783
807
|
let r;
|
|
784
808
|
[t, r] = this.doPrepare(t, e);
|
|
785
809
|
for (let n = 0; n < t.length; ++n) {
|
|
786
810
|
const u = this._appendChar(t[n], e, i);
|
|
787
|
-
if (!u.rawInserted && !this.doSkipInvalid(t[n], e, i))
|
|
811
|
+
if (!u.rawInserted && !this.doSkipInvalid(t[n], e, i))
|
|
812
|
+
break;
|
|
788
813
|
r.aggregate(u);
|
|
789
814
|
}
|
|
790
815
|
return (this.eager === !0 || this.eager === "append") && e != null && e.input && t && r.aggregate(this._appendEager()), i != null && (r.tailShift += this.appendTail(i).tailShift), r;
|
|
@@ -794,13 +819,15 @@ class L {
|
|
|
794
819
|
}
|
|
795
820
|
/** Calls function and reapplies current value */
|
|
796
821
|
withValueRefresh(t) {
|
|
797
|
-
if (this._refreshing || !this._initialized)
|
|
822
|
+
if (this._refreshing || !this._initialized)
|
|
823
|
+
return t();
|
|
798
824
|
this._refreshing = !0;
|
|
799
825
|
const e = this.rawInputValue, s = this.value, i = t();
|
|
800
826
|
return this.rawInputValue = e, this.value && this.value !== s && s.indexOf(this.value) === 0 && (this.append(s.slice(this.displayValue.length), {}, ""), this.doCommit()), delete this._refreshing, i;
|
|
801
827
|
}
|
|
802
828
|
runIsolated(t) {
|
|
803
|
-
if (this._isolated || !this._initialized)
|
|
829
|
+
if (this._isolated || !this._initialized)
|
|
830
|
+
return t(this);
|
|
804
831
|
this._isolated = !0;
|
|
805
832
|
const e = this.state, s = t(this);
|
|
806
833
|
return this.state = e, delete this._isolated, s;
|
|
@@ -830,7 +857,7 @@ class L {
|
|
|
830
857
|
});
|
|
831
858
|
const n = t + e, u = this.extractTail(n), o = this.eager === !0 || this.eager === "remove";
|
|
832
859
|
let h;
|
|
833
|
-
o && (i =
|
|
860
|
+
o && (i = Ee(i), h = this.extractInput(0, n, {
|
|
834
861
|
raw: !0
|
|
835
862
|
}));
|
|
836
863
|
let m = t;
|
|
@@ -842,14 +869,15 @@ class L {
|
|
|
842
869
|
g.aggregate(new E({
|
|
843
870
|
tailShift: -1
|
|
844
871
|
})).aggregate(this.remove(y - 1));
|
|
845
|
-
} else
|
|
872
|
+
} else
|
|
873
|
+
i === _.FORCE_RIGHT && u.unshift();
|
|
846
874
|
return g.aggregate(this.append(s, r, u));
|
|
847
875
|
}
|
|
848
876
|
maskEquals(t) {
|
|
849
877
|
return this.mask === t;
|
|
850
878
|
}
|
|
851
879
|
optionsIsChanged(t) {
|
|
852
|
-
return !
|
|
880
|
+
return !lt(this, t);
|
|
853
881
|
}
|
|
854
882
|
typedValueEquals(t) {
|
|
855
883
|
const e = this.typedValue;
|
|
@@ -873,7 +901,8 @@ class Q {
|
|
|
873
901
|
return this.chunks.map(String).join("");
|
|
874
902
|
}
|
|
875
903
|
extend(t) {
|
|
876
|
-
if (!String(t))
|
|
904
|
+
if (!String(t))
|
|
905
|
+
return;
|
|
877
906
|
t = G(t) ? new Y(String(t)) : t;
|
|
878
907
|
const e = this.chunks[this.chunks.length - 1], s = e && // if stops are same or tail has no stop
|
|
879
908
|
(e.stop === t.stop || t.stop == null) && // if tail chunk goes just after last chunk
|
|
@@ -931,36 +960,42 @@ class Q {
|
|
|
931
960
|
});
|
|
932
961
|
}
|
|
933
962
|
unshift(t) {
|
|
934
|
-
if (!this.chunks.length || t != null && this.from >= t)
|
|
963
|
+
if (!this.chunks.length || t != null && this.from >= t)
|
|
964
|
+
return "";
|
|
935
965
|
const e = t != null ? t - this.from : t;
|
|
936
966
|
let s = 0;
|
|
937
967
|
for (; s < this.chunks.length; ) {
|
|
938
968
|
const i = this.chunks[s], r = i.unshift(e);
|
|
939
969
|
if (i.toString()) {
|
|
940
|
-
if (!r)
|
|
970
|
+
if (!r)
|
|
971
|
+
break;
|
|
941
972
|
++s;
|
|
942
973
|
} else
|
|
943
974
|
this.chunks.splice(s, 1);
|
|
944
|
-
if (r)
|
|
975
|
+
if (r)
|
|
976
|
+
return r;
|
|
945
977
|
}
|
|
946
978
|
return "";
|
|
947
979
|
}
|
|
948
980
|
shift() {
|
|
949
|
-
if (!this.chunks.length)
|
|
981
|
+
if (!this.chunks.length)
|
|
982
|
+
return "";
|
|
950
983
|
let t = this.chunks.length - 1;
|
|
951
984
|
for (; 0 <= t; ) {
|
|
952
985
|
const e = this.chunks[t], s = e.shift();
|
|
953
986
|
if (e.toString()) {
|
|
954
|
-
if (!s)
|
|
987
|
+
if (!s)
|
|
988
|
+
break;
|
|
955
989
|
--t;
|
|
956
990
|
} else
|
|
957
991
|
this.chunks.splice(t, 1);
|
|
958
|
-
if (s)
|
|
992
|
+
if (s)
|
|
993
|
+
return s;
|
|
959
994
|
}
|
|
960
995
|
return "";
|
|
961
996
|
}
|
|
962
997
|
}
|
|
963
|
-
class
|
|
998
|
+
class xe {
|
|
964
999
|
constructor(t, e) {
|
|
965
1000
|
this.masked = t, this._log = [];
|
|
966
1001
|
const {
|
|
@@ -1010,13 +1045,15 @@ class Fe {
|
|
|
1010
1045
|
_pushLeft(t) {
|
|
1011
1046
|
for (this.pushState(), this.bindBlock(); 0 <= this.index; --this.index, this.offset = ((e = this.block) == null ? void 0 : e.displayValue.length) || 0) {
|
|
1012
1047
|
var e;
|
|
1013
|
-
if (t())
|
|
1048
|
+
if (t())
|
|
1049
|
+
return this.ok = !0;
|
|
1014
1050
|
}
|
|
1015
1051
|
return this.ok = !1;
|
|
1016
1052
|
}
|
|
1017
1053
|
_pushRight(t) {
|
|
1018
1054
|
for (this.pushState(), this.bindBlock(); this.index < this.masked._blocks.length; ++this.index, this.offset = 0)
|
|
1019
|
-
if (t())
|
|
1055
|
+
if (t())
|
|
1056
|
+
return this.ok = !0;
|
|
1020
1057
|
return this.ok = !1;
|
|
1021
1058
|
}
|
|
1022
1059
|
pushLeftBeforeFilled() {
|
|
@@ -1056,7 +1093,7 @@ class Fe {
|
|
|
1056
1093
|
});
|
|
1057
1094
|
}
|
|
1058
1095
|
}
|
|
1059
|
-
class
|
|
1096
|
+
class Xt {
|
|
1060
1097
|
/** */
|
|
1061
1098
|
/** */
|
|
1062
1099
|
/** */
|
|
@@ -1111,7 +1148,8 @@ class Jt {
|
|
|
1111
1148
|
return !!this._value;
|
|
1112
1149
|
}
|
|
1113
1150
|
_appendChar(t, e) {
|
|
1114
|
-
if (e === void 0 && (e = {}), this.isFilled)
|
|
1151
|
+
if (e === void 0 && (e = {}), this.isFilled)
|
|
1152
|
+
return new E();
|
|
1115
1153
|
const s = this.eager === !0 || this.eager === "append", r = this.char === t && (this.isUnmasking || e.input || e.raw) && (!e.raw || !s) && !e.tail, n = new E({
|
|
1116
1154
|
inserted: this.char,
|
|
1117
1155
|
rawInserted: r ? this.char : ""
|
|
@@ -1152,7 +1190,7 @@ class Jt {
|
|
|
1152
1190
|
return this._appendPlaceholder();
|
|
1153
1191
|
}
|
|
1154
1192
|
}
|
|
1155
|
-
class
|
|
1193
|
+
class ht {
|
|
1156
1194
|
/** */
|
|
1157
1195
|
/** */
|
|
1158
1196
|
/** */
|
|
@@ -1202,7 +1240,8 @@ class pt {
|
|
|
1202
1240
|
return !!this.masked.value || this.isOptional;
|
|
1203
1241
|
}
|
|
1204
1242
|
_appendChar(t, e) {
|
|
1205
|
-
if (e === void 0 && (e = {}), this.isFilled)
|
|
1243
|
+
if (e === void 0 && (e = {}), this.isFilled)
|
|
1244
|
+
return new E();
|
|
1206
1245
|
const s = this.masked.state;
|
|
1207
1246
|
let i = this.masked._appendChar(t, this.currentMaskFlags(e));
|
|
1208
1247
|
return i.inserted && this.doValidate(e) === !1 && (i = new E(), this.masked.state = s), !i.inserted && !this.isOptional && !this.lazy && !e.input && (i.inserted = this.placeholderChar), i.skip = !i.inserted && !this.isOptional, this.isFilled = !!i.inserted, i;
|
|
@@ -1266,20 +1305,20 @@ class pt {
|
|
|
1266
1305
|
var e;
|
|
1267
1306
|
return {
|
|
1268
1307
|
...t,
|
|
1269
|
-
_beforeTailState: (t == null || (e = t._beforeTailState) == null ? void 0 : e.masked) || t
|
|
1308
|
+
_beforeTailState: (t == null || (e = t._beforeTailState) == null ? void 0 : e.masked) || (t == null ? void 0 : t._beforeTailState)
|
|
1270
1309
|
};
|
|
1271
1310
|
}
|
|
1272
1311
|
pad(t) {
|
|
1273
1312
|
return new E();
|
|
1274
1313
|
}
|
|
1275
1314
|
}
|
|
1276
|
-
|
|
1315
|
+
ht.DEFAULT_DEFINITIONS = {
|
|
1277
1316
|
0: /\d/,
|
|
1278
1317
|
a: /[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,
|
|
1279
1318
|
// http://stackoverflow.com/a/22075070
|
|
1280
1319
|
"*": /./
|
|
1281
1320
|
};
|
|
1282
|
-
class
|
|
1321
|
+
class Fe extends L {
|
|
1283
1322
|
/** */
|
|
1284
1323
|
/** Enable characters overwriting */
|
|
1285
1324
|
/** */
|
|
@@ -1293,7 +1332,7 @@ class Se extends L {
|
|
|
1293
1332
|
e && (t.validate = (s) => s.search(e) >= 0), super._update(t);
|
|
1294
1333
|
}
|
|
1295
1334
|
}
|
|
1296
|
-
k.MaskedRegExp =
|
|
1335
|
+
k.MaskedRegExp = Fe;
|
|
1297
1336
|
class N extends L {
|
|
1298
1337
|
/** */
|
|
1299
1338
|
/** */
|
|
@@ -1308,7 +1347,7 @@ class N extends L {
|
|
|
1308
1347
|
super({
|
|
1309
1348
|
...N.DEFAULTS,
|
|
1310
1349
|
...t,
|
|
1311
|
-
definitions: Object.assign({},
|
|
1350
|
+
definitions: Object.assign({}, ht.DEFAULT_DEFINITIONS, t == null ? void 0 : t.definitions)
|
|
1312
1351
|
});
|
|
1313
1352
|
}
|
|
1314
1353
|
updateOptions(t) {
|
|
@@ -1321,7 +1360,8 @@ class N extends L {
|
|
|
1321
1360
|
const t = this.definitions;
|
|
1322
1361
|
this._blocks = [], this.exposeBlock = void 0, this._stops = [], this._maskedBlocks = {};
|
|
1323
1362
|
const e = this.mask;
|
|
1324
|
-
if (!e || !t)
|
|
1363
|
+
if (!e || !t)
|
|
1364
|
+
return;
|
|
1325
1365
|
let s = !1, i = !1;
|
|
1326
1366
|
for (let r = 0; r < e.length; ++r) {
|
|
1327
1367
|
if (this.blocks) {
|
|
@@ -1365,10 +1405,11 @@ class N extends L {
|
|
|
1365
1405
|
continue;
|
|
1366
1406
|
}
|
|
1367
1407
|
if (n === N.ESCAPE_CHAR) {
|
|
1368
|
-
if (++r, n = e[r], !n)
|
|
1408
|
+
if (++r, n = e[r], !n)
|
|
1409
|
+
break;
|
|
1369
1410
|
u = !1;
|
|
1370
1411
|
}
|
|
1371
|
-
const o = u ? new
|
|
1412
|
+
const o = u ? new ht({
|
|
1372
1413
|
isOptional: i,
|
|
1373
1414
|
lazy: this.lazy,
|
|
1374
1415
|
eager: this.eager,
|
|
@@ -1376,7 +1417,7 @@ class N extends L {
|
|
|
1376
1417
|
displayChar: this.displayChar,
|
|
1377
1418
|
...it(t[n]),
|
|
1378
1419
|
parent: this
|
|
1379
|
-
}) : new
|
|
1420
|
+
}) : new Xt({
|
|
1380
1421
|
char: n,
|
|
1381
1422
|
eager: this.eager,
|
|
1382
1423
|
isUnmasking: s
|
|
@@ -1426,7 +1467,8 @@ class N extends L {
|
|
|
1426
1467
|
if (this.exposeBlock) {
|
|
1427
1468
|
const e = this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock)) + this.exposeBlock.displayValue.length);
|
|
1428
1469
|
this.exposeBlock.unmaskedValue = t, this.appendTail(e), this.doCommit();
|
|
1429
|
-
} else
|
|
1470
|
+
} else
|
|
1471
|
+
super.unmaskedValue = t;
|
|
1430
1472
|
}
|
|
1431
1473
|
get value() {
|
|
1432
1474
|
return this.exposeBlock ? this.exposeBlock.value : (
|
|
@@ -1438,7 +1480,8 @@ class N extends L {
|
|
|
1438
1480
|
if (this.exposeBlock) {
|
|
1439
1481
|
const e = this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock)) + this.exposeBlock.displayValue.length);
|
|
1440
1482
|
this.exposeBlock.value = t, this.appendTail(e), this.doCommit();
|
|
1441
|
-
} else
|
|
1483
|
+
} else
|
|
1484
|
+
super.value = t;
|
|
1442
1485
|
}
|
|
1443
1486
|
get typedValue() {
|
|
1444
1487
|
return this.exposeBlock ? this.exposeBlock.typedValue : super.typedValue;
|
|
@@ -1447,7 +1490,8 @@ class N extends L {
|
|
|
1447
1490
|
if (this.exposeBlock) {
|
|
1448
1491
|
const e = this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock)) + this.exposeBlock.displayValue.length);
|
|
1449
1492
|
this.exposeBlock.typedValue = t, this.appendTail(e), this.doCommit();
|
|
1450
|
-
} else
|
|
1493
|
+
} else
|
|
1494
|
+
super.typedValue = t;
|
|
1451
1495
|
}
|
|
1452
1496
|
get displayValue() {
|
|
1453
1497
|
return this._blocks.reduce((t, e) => t += e.displayValue, "");
|
|
@@ -1459,11 +1503,13 @@ class N extends L {
|
|
|
1459
1503
|
var t;
|
|
1460
1504
|
const e = new E();
|
|
1461
1505
|
let s = (t = this._mapPosToBlock(this.displayValue.length)) == null ? void 0 : t.index;
|
|
1462
|
-
if (s == null)
|
|
1506
|
+
if (s == null)
|
|
1507
|
+
return e;
|
|
1463
1508
|
this._blocks[s].isFilled && ++s;
|
|
1464
1509
|
for (let i = s; i < this._blocks.length; ++i) {
|
|
1465
1510
|
const r = this._blocks[i]._appendEager();
|
|
1466
|
-
if (!r.inserted)
|
|
1511
|
+
if (!r.inserted)
|
|
1512
|
+
break;
|
|
1467
1513
|
e.aggregate(r);
|
|
1468
1514
|
}
|
|
1469
1515
|
return e;
|
|
@@ -1471,14 +1517,16 @@ class N extends L {
|
|
|
1471
1517
|
_appendCharRaw(t, e) {
|
|
1472
1518
|
e === void 0 && (e = {});
|
|
1473
1519
|
const s = this._mapPosToBlock(this.displayValue.length), i = new E();
|
|
1474
|
-
if (!s)
|
|
1520
|
+
if (!s)
|
|
1521
|
+
return i;
|
|
1475
1522
|
for (let n = s.index, u; u = this._blocks[n]; ++n) {
|
|
1476
1523
|
var r;
|
|
1477
1524
|
const o = u._appendChar(t, {
|
|
1478
1525
|
...e,
|
|
1479
1526
|
_beforeTailState: (r = e._beforeTailState) == null || (r = r._blocks) == null ? void 0 : r[n]
|
|
1480
1527
|
});
|
|
1481
|
-
if (i.aggregate(o), o.consumed)
|
|
1528
|
+
if (i.aggregate(o), o.consumed)
|
|
1529
|
+
break;
|
|
1482
1530
|
}
|
|
1483
1531
|
return i;
|
|
1484
1532
|
}
|
|
@@ -1491,7 +1539,8 @@ class N extends L {
|
|
|
1491
1539
|
}), s;
|
|
1492
1540
|
}
|
|
1493
1541
|
extractInput(t, e, s) {
|
|
1494
|
-
if (t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), s === void 0 && (s = {}), t === e)
|
|
1542
|
+
if (t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), s === void 0 && (s = {}), t === e)
|
|
1543
|
+
return "";
|
|
1495
1544
|
let i = "";
|
|
1496
1545
|
return this._forEachBlocksInRange(t, e, (r, n, u, o) => {
|
|
1497
1546
|
i += r.extractInput(u, o, s);
|
|
@@ -1501,17 +1550,21 @@ class N extends L {
|
|
|
1501
1550
|
let e;
|
|
1502
1551
|
for (let s = 0; s < this._stops.length; ++s) {
|
|
1503
1552
|
const i = this._stops[s];
|
|
1504
|
-
if (i <= t)
|
|
1505
|
-
|
|
1553
|
+
if (i <= t)
|
|
1554
|
+
e = i;
|
|
1555
|
+
else
|
|
1556
|
+
break;
|
|
1506
1557
|
}
|
|
1507
1558
|
return e;
|
|
1508
1559
|
}
|
|
1509
1560
|
/** Appends placeholder depending on laziness */
|
|
1510
1561
|
_appendPlaceholder(t) {
|
|
1511
1562
|
const e = new E();
|
|
1512
|
-
if (this.lazy && t == null)
|
|
1563
|
+
if (this.lazy && t == null)
|
|
1564
|
+
return e;
|
|
1513
1565
|
const s = this._mapPosToBlock(this.displayValue.length);
|
|
1514
|
-
if (!s)
|
|
1566
|
+
if (!s)
|
|
1567
|
+
return e;
|
|
1515
1568
|
const i = s.index, r = t ?? this._blocks.length;
|
|
1516
1569
|
return this._blocks.slice(i, r).forEach((n) => {
|
|
1517
1570
|
if (!n.lazy || t != null) {
|
|
@@ -1555,17 +1608,20 @@ class N extends L {
|
|
|
1555
1608
|
}), s;
|
|
1556
1609
|
}
|
|
1557
1610
|
nearestInputPos(t, e) {
|
|
1558
|
-
if (e === void 0 && (e = _.NONE), !this._blocks.length)
|
|
1559
|
-
|
|
1611
|
+
if (e === void 0 && (e = _.NONE), !this._blocks.length)
|
|
1612
|
+
return 0;
|
|
1613
|
+
const s = new xe(this, t);
|
|
1560
1614
|
if (e === _.NONE)
|
|
1561
1615
|
return s.pushRightBeforeInput() || (s.popState(), s.pushLeftBeforeInput()) ? s.pos : this.displayValue.length;
|
|
1562
1616
|
if (e === _.LEFT || e === _.FORCE_LEFT) {
|
|
1563
1617
|
if (e === _.LEFT) {
|
|
1564
|
-
if (s.pushRightBeforeFilled(), s.ok && s.pos === t)
|
|
1618
|
+
if (s.pushRightBeforeFilled(), s.ok && s.pos === t)
|
|
1619
|
+
return t;
|
|
1565
1620
|
s.popState();
|
|
1566
1621
|
}
|
|
1567
1622
|
if (s.pushLeftBeforeInput(), s.pushLeftBeforeRequired(), s.pushLeftBeforeFilled(), e === _.LEFT) {
|
|
1568
|
-
if (s.pushRightBeforeInput(), s.pushRightBeforeRequired(), s.ok && s.pos <= t || (s.popState(), s.ok && s.pos <= t))
|
|
1623
|
+
if (s.pushRightBeforeInput(), s.pushRightBeforeRequired(), s.ok && s.pos <= t || (s.popState(), s.ok && s.pos <= t))
|
|
1624
|
+
return s.pos;
|
|
1569
1625
|
s.popState();
|
|
1570
1626
|
}
|
|
1571
1627
|
return s.ok ? s.pos : e === _.FORCE_LEFT ? 0 : (s.popState(), s.ok || (s.popState(), s.ok) ? s.pos : 0);
|
|
@@ -1600,10 +1656,10 @@ N.DEFAULTS = {
|
|
|
1600
1656
|
};
|
|
1601
1657
|
N.STOP_CHAR = "`";
|
|
1602
1658
|
N.ESCAPE_CHAR = "\\";
|
|
1603
|
-
N.InputDefinition =
|
|
1604
|
-
N.FixedDefinition =
|
|
1659
|
+
N.InputDefinition = ht;
|
|
1660
|
+
N.FixedDefinition = Xt;
|
|
1605
1661
|
k.MaskedPattern = N;
|
|
1606
|
-
class
|
|
1662
|
+
class ot extends N {
|
|
1607
1663
|
/**
|
|
1608
1664
|
Optionally sets max length of pattern.
|
|
1609
1665
|
Used when pattern length is longer then `to` param length. Pads zeros at start in this case.
|
|
@@ -1630,7 +1686,8 @@ class lt extends N {
|
|
|
1630
1686
|
this.to = e, this.from = s, this.maxLength = Math.max(String(e).length, i), this.autofix = r;
|
|
1631
1687
|
const u = String(this.from).padStart(this.maxLength, "0"), o = String(this.to).padStart(this.maxLength, "0");
|
|
1632
1688
|
let h = 0;
|
|
1633
|
-
for (; h < o.length && o[h] === u[h]; )
|
|
1689
|
+
for (; h < o.length && o[h] === u[h]; )
|
|
1690
|
+
++h;
|
|
1634
1691
|
n.mask = o.slice(0, h).replace(/0/g, "\\0") + "0".repeat(this.maxLength - h), super._update(n);
|
|
1635
1692
|
}
|
|
1636
1693
|
get isComplete() {
|
|
@@ -1647,19 +1704,22 @@ class lt extends N {
|
|
|
1647
1704
|
return [t, s] = super.doPrepareChar(t.replace(/\D/g, ""), e), t || (s.skip = !this.isComplete), [t, s];
|
|
1648
1705
|
}
|
|
1649
1706
|
_appendCharRaw(t, e) {
|
|
1650
|
-
if (e === void 0 && (e = {}), !this.autofix || this.value.length + 1 > this.maxLength)
|
|
1707
|
+
if (e === void 0 && (e = {}), !this.autofix || this.value.length + 1 > this.maxLength)
|
|
1708
|
+
return super._appendCharRaw(t, e);
|
|
1651
1709
|
const s = String(this.from).padStart(this.maxLength, "0"), i = String(this.to).padStart(this.maxLength, "0"), [r, n] = this.boundaries(this.value + t);
|
|
1652
1710
|
return Number(n) < this.from ? super._appendCharRaw(s[this.value.length], e) : Number(r) > this.to ? !e.tail && this.autofix === "pad" && this.value.length + 1 < this.maxLength ? super._appendCharRaw(s[this.value.length], e).aggregate(this._appendCharRaw(t, e)) : super._appendCharRaw(i[this.value.length], e) : super._appendCharRaw(t, e);
|
|
1653
1711
|
}
|
|
1654
1712
|
doValidate(t) {
|
|
1655
1713
|
const e = this.value;
|
|
1656
|
-
if (e.search(/[^0]/) === -1 && e.length <= this._matchFrom)
|
|
1714
|
+
if (e.search(/[^0]/) === -1 && e.length <= this._matchFrom)
|
|
1715
|
+
return !0;
|
|
1657
1716
|
const [i, r] = this.boundaries(e);
|
|
1658
1717
|
return this.from <= Number(r) && Number(i) <= this.to && super.doValidate(t);
|
|
1659
1718
|
}
|
|
1660
1719
|
pad(t) {
|
|
1661
1720
|
const e = new E();
|
|
1662
|
-
if (this.value.length === this.maxLength)
|
|
1721
|
+
if (this.value.length === this.maxLength)
|
|
1722
|
+
return e;
|
|
1663
1723
|
const s = this.value, i = this.maxLength - this.value.length;
|
|
1664
1724
|
if (i) {
|
|
1665
1725
|
this.reset();
|
|
@@ -1670,8 +1730,8 @@ class lt extends N {
|
|
|
1670
1730
|
return e;
|
|
1671
1731
|
}
|
|
1672
1732
|
}
|
|
1673
|
-
k.MaskedRange =
|
|
1674
|
-
const
|
|
1733
|
+
k.MaskedRange = ot;
|
|
1734
|
+
const Se = "d{.}`m{.}`Y";
|
|
1675
1735
|
class H extends N {
|
|
1676
1736
|
static extractPatternOptions(t) {
|
|
1677
1737
|
const {
|
|
@@ -1744,19 +1804,19 @@ class H extends N {
|
|
|
1744
1804
|
}
|
|
1745
1805
|
H.GET_DEFAULT_BLOCKS = () => ({
|
|
1746
1806
|
d: {
|
|
1747
|
-
mask:
|
|
1807
|
+
mask: ot,
|
|
1748
1808
|
from: 1,
|
|
1749
1809
|
to: 31,
|
|
1750
1810
|
maxLength: 2
|
|
1751
1811
|
},
|
|
1752
1812
|
m: {
|
|
1753
|
-
mask:
|
|
1813
|
+
mask: ot,
|
|
1754
1814
|
from: 1,
|
|
1755
1815
|
to: 12,
|
|
1756
1816
|
maxLength: 2
|
|
1757
1817
|
},
|
|
1758
1818
|
Y: {
|
|
1759
|
-
mask:
|
|
1819
|
+
mask: ot,
|
|
1760
1820
|
from: 1900,
|
|
1761
1821
|
to: 9999
|
|
1762
1822
|
}
|
|
@@ -1764,9 +1824,10 @@ H.GET_DEFAULT_BLOCKS = () => ({
|
|
|
1764
1824
|
H.DEFAULTS = {
|
|
1765
1825
|
...N.DEFAULTS,
|
|
1766
1826
|
mask: Date,
|
|
1767
|
-
pattern:
|
|
1827
|
+
pattern: Se,
|
|
1768
1828
|
format: (a, t) => {
|
|
1769
|
-
if (!a)
|
|
1829
|
+
if (!a)
|
|
1830
|
+
return "";
|
|
1770
1831
|
const e = String(a.getDate()).padStart(2, "0"), s = String(a.getMonth() + 1).padStart(2, "0"), i = a.getFullYear();
|
|
1771
1832
|
return [e, s, i].join(".");
|
|
1772
1833
|
},
|
|
@@ -1776,10 +1837,10 @@ H.DEFAULTS = {
|
|
|
1776
1837
|
}
|
|
1777
1838
|
};
|
|
1778
1839
|
k.MaskedDate = H;
|
|
1779
|
-
class
|
|
1840
|
+
class dt extends L {
|
|
1780
1841
|
constructor(t) {
|
|
1781
1842
|
super({
|
|
1782
|
-
...
|
|
1843
|
+
...dt.DEFAULTS,
|
|
1783
1844
|
...t
|
|
1784
1845
|
}), this.currentMask = void 0;
|
|
1785
1846
|
}
|
|
@@ -1807,7 +1868,7 @@ class ft extends L {
|
|
|
1807
1868
|
}
|
|
1808
1869
|
_applyDispatch(t, e, s) {
|
|
1809
1870
|
t === void 0 && (t = ""), e === void 0 && (e = {}), s === void 0 && (s = "");
|
|
1810
|
-
const i = e.tail && e._beforeTailState != null ? e._beforeTailState._value : this.value, r = this.rawInputValue, n = e.tail && e._beforeTailState != null ? e._beforeTailState._rawInputValue : r, u = r.slice(n.length), o = this.currentMask, h = new E(), m = o
|
|
1871
|
+
const i = e.tail && e._beforeTailState != null ? e._beforeTailState._value : this.value, r = this.rawInputValue, n = e.tail && e._beforeTailState != null ? e._beforeTailState._rawInputValue : r, u = r.slice(n.length), o = this.currentMask, h = new E(), m = o == null ? void 0 : o.state;
|
|
1811
1872
|
return this.currentMask = this.doDispatch(t, {
|
|
1812
1873
|
...e
|
|
1813
1874
|
}, s), this.currentMask && (this.currentMask !== o ? (this.currentMask.reset(), n && (this.currentMask.append(n, {
|
|
@@ -1959,12 +2020,13 @@ class ft extends L {
|
|
|
1959
2020
|
}
|
|
1960
2021
|
maskEquals(t) {
|
|
1961
2022
|
return Array.isArray(t) ? this.compiledMasks.every((e, s) => {
|
|
1962
|
-
if (!t[s])
|
|
2023
|
+
if (!t[s])
|
|
2024
|
+
return;
|
|
1963
2025
|
const {
|
|
1964
2026
|
mask: i,
|
|
1965
2027
|
...r
|
|
1966
2028
|
} = t[s];
|
|
1967
|
-
return
|
|
2029
|
+
return lt(e, r) && e.maskEquals(i);
|
|
1968
2030
|
}) : super.maskEquals(t);
|
|
1969
2031
|
}
|
|
1970
2032
|
typedValueEquals(t) {
|
|
@@ -1972,10 +2034,11 @@ class ft extends L {
|
|
|
1972
2034
|
return !!((e = this.currentMask) != null && e.typedValueEquals(t));
|
|
1973
2035
|
}
|
|
1974
2036
|
}
|
|
1975
|
-
|
|
2037
|
+
dt.DEFAULTS = {
|
|
1976
2038
|
...L.DEFAULTS,
|
|
1977
2039
|
dispatch: (a, t, e, s) => {
|
|
1978
|
-
if (!t.compiledMasks.length)
|
|
2040
|
+
if (!t.compiledMasks.length)
|
|
2041
|
+
return;
|
|
1979
2042
|
const i = t.rawInputValue, r = t.compiledMasks.map((n, u) => {
|
|
1980
2043
|
const o = t.currentMask === n, h = o ? n.displayValue.length : n.nearestInputPos(n.displayValue.length, _.FORCE_LEFT);
|
|
1981
2044
|
return n.rawInputValue !== i ? (n.reset(), n.append(i, {
|
|
@@ -1989,11 +2052,11 @@ ft.DEFAULTS = {
|
|
|
1989
2052
|
return r.sort((n, u) => u.weight - n.weight || u.totalInputPositions - n.totalInputPositions), t.compiledMasks[r[0].index];
|
|
1990
2053
|
}
|
|
1991
2054
|
};
|
|
1992
|
-
k.MaskedDynamic =
|
|
1993
|
-
class
|
|
2055
|
+
k.MaskedDynamic = dt;
|
|
2056
|
+
class ft extends N {
|
|
1994
2057
|
constructor(t) {
|
|
1995
2058
|
super({
|
|
1996
|
-
...
|
|
2059
|
+
...ft.DEFAULTS,
|
|
1997
2060
|
...t
|
|
1998
2061
|
});
|
|
1999
2062
|
}
|
|
@@ -2030,7 +2093,8 @@ class _t extends N {
|
|
|
2030
2093
|
return t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), new Y("", t);
|
|
2031
2094
|
}
|
|
2032
2095
|
remove(t, e) {
|
|
2033
|
-
if (t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), t === e)
|
|
2096
|
+
if (t === void 0 && (t = 0), e === void 0 && (e = this.displayValue.length), t === e)
|
|
2097
|
+
return new E();
|
|
2034
2098
|
const s = Math.min(super.nearestInputPos(0, _.FORCE_RIGHT), this.value.length);
|
|
2035
2099
|
let i;
|
|
2036
2100
|
for (i = t; i >= 0 && !(this.enum.filter((u) => this.matchValue(u, this.value.slice(s, i), s)).length > 1); --i)
|
|
@@ -2042,12 +2106,12 @@ class _t extends N {
|
|
|
2042
2106
|
return this.enum.indexOf(this.value) >= 0;
|
|
2043
2107
|
}
|
|
2044
2108
|
}
|
|
2045
|
-
|
|
2109
|
+
ft.DEFAULTS = {
|
|
2046
2110
|
...N.DEFAULTS,
|
|
2047
2111
|
matchValue: (a, t, e) => a.indexOf(t, e) === e
|
|
2048
2112
|
};
|
|
2049
|
-
k.MaskedEnum =
|
|
2050
|
-
class
|
|
2113
|
+
k.MaskedEnum = ft;
|
|
2114
|
+
class Te extends L {
|
|
2051
2115
|
/** */
|
|
2052
2116
|
/** Enable characters overwriting */
|
|
2053
2117
|
/** */
|
|
@@ -2063,8 +2127,8 @@ class Ie extends L {
|
|
|
2063
2127
|
});
|
|
2064
2128
|
}
|
|
2065
2129
|
}
|
|
2066
|
-
k.MaskedFunction =
|
|
2067
|
-
var
|
|
2130
|
+
k.MaskedFunction = Te;
|
|
2131
|
+
var Jt;
|
|
2068
2132
|
class z extends L {
|
|
2069
2133
|
/** Single char */
|
|
2070
2134
|
/** Single char */
|
|
@@ -2093,8 +2157,8 @@ class z extends L {
|
|
|
2093
2157
|
super._update(t), this._updateRegExps();
|
|
2094
2158
|
}
|
|
2095
2159
|
_updateRegExps() {
|
|
2096
|
-
const t = "^" + (this.allowNegative ? "[+|\\-]?" : ""), e = "\\d*", s = (this.scale ? "(" +
|
|
2097
|
-
this._numberRegExp = new RegExp(t + e + s), this._mapToRadixRegExp = new RegExp("[" + this.mapToRadix.map(
|
|
2160
|
+
const t = "^" + (this.allowNegative ? "[+|\\-]?" : ""), e = "\\d*", s = (this.scale ? "(" + At(this.radix) + "\\d{0," + this.scale + "})?" : "") + "$";
|
|
2161
|
+
this._numberRegExp = new RegExp(t + e + s), this._mapToRadixRegExp = new RegExp("[" + this.mapToRadix.map(At).join("") + "]", "g"), this._thousandsSeparatorRegExp = new RegExp(At(this.thousandsSeparator), "g");
|
|
2098
2162
|
}
|
|
2099
2163
|
_removeThousandsSeparators(t) {
|
|
2100
2164
|
return t.replace(this._thousandsSeparatorRegExp, "");
|
|
@@ -2153,7 +2217,8 @@ class z extends L {
|
|
|
2153
2217
|
_findSeparatorAround(t) {
|
|
2154
2218
|
if (this.thousandsSeparator) {
|
|
2155
2219
|
const e = t - this.thousandsSeparator.length + 1, s = this.value.indexOf(this.thousandsSeparator, e);
|
|
2156
|
-
if (s <= t)
|
|
2220
|
+
if (s <= t)
|
|
2221
|
+
return s;
|
|
2157
2222
|
}
|
|
2158
2223
|
return -1;
|
|
2159
2224
|
}
|
|
@@ -2173,7 +2238,8 @@ class z extends L {
|
|
|
2173
2238
|
});
|
|
2174
2239
|
}
|
|
2175
2240
|
nearestInputPos(t, e) {
|
|
2176
|
-
if (!this.thousandsSeparator)
|
|
2241
|
+
if (!this.thousandsSeparator)
|
|
2242
|
+
return t;
|
|
2177
2243
|
switch (e) {
|
|
2178
2244
|
case _.NONE:
|
|
2179
2245
|
case _.LEFT:
|
|
@@ -2210,7 +2276,8 @@ class z extends L {
|
|
|
2210
2276
|
return e[0] = e[0].replace(/^(\D*)(0*)(\d*)/, (s, i, r, n) => i + n), t.length && !/\d$/.test(e[0]) && (e[0] = e[0] + "0"), e.length > 1 && (e[1] = e[1].replace(/0*$/, ""), e[1].length || (e.length = 1)), this._insertThousandsSeparators(e.join(this.radix));
|
|
2211
2277
|
}
|
|
2212
2278
|
_padFractionalZeros(t) {
|
|
2213
|
-
if (!t)
|
|
2279
|
+
if (!t)
|
|
2280
|
+
return t;
|
|
2214
2281
|
const e = t.split(this.radix);
|
|
2215
2282
|
return e.length < 2 && e.push(""), e[1] = e[1].padEnd(this.scale, "0"), e.join(this.radix);
|
|
2216
2283
|
}
|
|
@@ -2248,7 +2315,7 @@ class z extends L {
|
|
|
2248
2315
|
return (super.typedValueEquals(t) || z.EMPTY_VALUES.includes(t) && z.EMPTY_VALUES.includes(this.typedValue)) && !(t === 0 && this.value === "");
|
|
2249
2316
|
}
|
|
2250
2317
|
}
|
|
2251
|
-
|
|
2318
|
+
Jt = z;
|
|
2252
2319
|
z.UNMASKED_RADIX = ".";
|
|
2253
2320
|
z.EMPTY_VALUES = [...L.EMPTY_VALUES, 0];
|
|
2254
2321
|
z.DEFAULTS = {
|
|
@@ -2256,7 +2323,7 @@ z.DEFAULTS = {
|
|
|
2256
2323
|
mask: Number,
|
|
2257
2324
|
radix: ",",
|
|
2258
2325
|
thousandsSeparator: "",
|
|
2259
|
-
mapToRadix: [
|
|
2326
|
+
mapToRadix: [Jt.UNMASKED_RADIX],
|
|
2260
2327
|
min: Number.MIN_SAFE_INTEGER,
|
|
2261
2328
|
max: Number.MAX_SAFE_INTEGER,
|
|
2262
2329
|
scale: 2,
|
|
@@ -2269,23 +2336,23 @@ z.DEFAULTS = {
|
|
|
2269
2336
|
})
|
|
2270
2337
|
};
|
|
2271
2338
|
k.MaskedNumber = z;
|
|
2272
|
-
const
|
|
2339
|
+
const wt = {
|
|
2273
2340
|
MASKED: "value",
|
|
2274
2341
|
UNMASKED: "unmaskedValue",
|
|
2275
2342
|
TYPED: "typedValue"
|
|
2276
2343
|
};
|
|
2277
|
-
function
|
|
2278
|
-
t === void 0 && (t =
|
|
2344
|
+
function Qt(a, t, e) {
|
|
2345
|
+
t === void 0 && (t = wt.MASKED), e === void 0 && (e = wt.MASKED);
|
|
2279
2346
|
const s = K(a);
|
|
2280
2347
|
return (i) => s.runIsolated((r) => (r[t] = i, r[e]));
|
|
2281
2348
|
}
|
|
2282
|
-
function
|
|
2283
|
-
return
|
|
2349
|
+
function Ie(a, t, e, s) {
|
|
2350
|
+
return Qt(t, e, s)(a);
|
|
2284
2351
|
}
|
|
2285
|
-
k.PIPE_TYPE =
|
|
2286
|
-
k.createPipe =
|
|
2287
|
-
k.pipe =
|
|
2288
|
-
class
|
|
2352
|
+
k.PIPE_TYPE = wt;
|
|
2353
|
+
k.createPipe = Qt;
|
|
2354
|
+
k.pipe = Ie;
|
|
2355
|
+
class Re extends N {
|
|
2289
2356
|
get repeatFrom() {
|
|
2290
2357
|
var t;
|
|
2291
2358
|
return (t = Array.isArray(this.repeat) ? this.repeat[0] : this.repeat === 1 / 0 ? 0 : this.repeat) != null ? t : 0;
|
|
@@ -2322,7 +2389,8 @@ class we extends N {
|
|
|
2322
2389
|
});
|
|
2323
2390
|
}
|
|
2324
2391
|
_allocateBlock(t) {
|
|
2325
|
-
if (t < this._blocks.length)
|
|
2392
|
+
if (t < this._blocks.length)
|
|
2393
|
+
return this._blocks[t];
|
|
2326
2394
|
if (this.repeatTo === 1 / 0 || this._blocks.length < this.repeatTo)
|
|
2327
2395
|
return this._blocks.push(K(this._blockOpts)), this.mask += "m", this._blocks[this._blocks.length - 1];
|
|
2328
2396
|
}
|
|
@@ -2345,7 +2413,8 @@ class we extends N {
|
|
|
2345
2413
|
this._blocks.pop(), this.mask = this.mask.slice(1);
|
|
2346
2414
|
break;
|
|
2347
2415
|
}
|
|
2348
|
-
if (s.aggregate(g), g.consumed)
|
|
2416
|
+
if (s.aggregate(g), g.consumed)
|
|
2417
|
+
break;
|
|
2349
2418
|
}
|
|
2350
2419
|
return s;
|
|
2351
2420
|
}
|
|
@@ -2378,15 +2447,24 @@ class we extends N {
|
|
|
2378
2447
|
this._blocks.length = t._blocks.length, this.mask = this.mask.slice(0, this._blocks.length), super.state = t;
|
|
2379
2448
|
}
|
|
2380
2449
|
}
|
|
2381
|
-
k.RepeatBlock =
|
|
2450
|
+
k.RepeatBlock = Re;
|
|
2382
2451
|
try {
|
|
2383
2452
|
globalThis.IMask = k;
|
|
2384
2453
|
} catch {
|
|
2385
2454
|
}
|
|
2386
|
-
var
|
|
2455
|
+
var Bt = { exports: {} }, ut = { exports: {} }, I = {};
|
|
2456
|
+
/** @license React v16.13.1
|
|
2457
|
+
* react-is.production.min.js
|
|
2458
|
+
*
|
|
2459
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2460
|
+
*
|
|
2461
|
+
* This source code is licensed under the MIT license found in the
|
|
2462
|
+
* LICENSE file in the root directory of this source tree.
|
|
2463
|
+
*/
|
|
2387
2464
|
var Nt;
|
|
2388
|
-
function
|
|
2389
|
-
if (Nt)
|
|
2465
|
+
function we() {
|
|
2466
|
+
if (Nt)
|
|
2467
|
+
return I;
|
|
2390
2468
|
Nt = 1;
|
|
2391
2469
|
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, o = a ? Symbol.for("react.async_mode") : 60111, h = a ? Symbol.for("react.concurrent_mode") : 60111, m = a ? Symbol.for("react.forward_ref") : 60112, g = a ? Symbol.for("react.suspense") : 60113, y = a ? Symbol.for("react.suspense_list") : 60120, O = a ? Symbol.for("react.memo") : 60115, j = a ? Symbol.for("react.lazy") : 60116, B = a ? Symbol.for("react.block") : 60121, D = a ? Symbol.for("react.fundamental") : 60117, $ = a ? Symbol.for("react.responder") : 60118, st = a ? Symbol.for("react.scope") : 60119;
|
|
2392
2470
|
function P(c) {
|
|
@@ -2451,9 +2529,17 @@ function Be() {
|
|
|
2451
2529
|
}, I.typeOf = P, I;
|
|
2452
2530
|
}
|
|
2453
2531
|
var R = {};
|
|
2532
|
+
/** @license React v16.13.1
|
|
2533
|
+
* react-is.development.js
|
|
2534
|
+
*
|
|
2535
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
2536
|
+
*
|
|
2537
|
+
* This source code is licensed under the MIT license found in the
|
|
2538
|
+
* LICENSE file in the root directory of this source tree.
|
|
2539
|
+
*/
|
|
2454
2540
|
var jt;
|
|
2455
|
-
function
|
|
2456
|
-
return jt || (jt = 1, process.env.NODE_ENV !== "production" &&
|
|
2541
|
+
function Be() {
|
|
2542
|
+
return jt || (jt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2457
2543
|
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, o = a ? Symbol.for("react.async_mode") : 60111, h = a ? Symbol.for("react.concurrent_mode") : 60111, m = a ? Symbol.for("react.forward_ref") : 60112, g = a ? Symbol.for("react.suspense") : 60113, y = a ? Symbol.for("react.suspense_list") : 60120, O = a ? Symbol.for("react.memo") : 60115, j = a ? Symbol.for("react.lazy") : 60116, B = a ? Symbol.for("react.block") : 60121, D = a ? Symbol.for("react.fundamental") : 60117, $ = a ? Symbol.for("react.responder") : 60118, st = a ? Symbol.for("react.scope") : 60119;
|
|
2458
2544
|
function P(p) {
|
|
2459
2545
|
return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
@@ -2491,8 +2577,8 @@ function Me() {
|
|
|
2491
2577
|
}
|
|
2492
2578
|
}
|
|
2493
2579
|
}
|
|
2494
|
-
var c = o, Z = h,
|
|
2495
|
-
function
|
|
2580
|
+
var c = o, Z = h, _t = u, mt = n, gt = t, kt = m, rt = s, vt = j, Et = O, tt = e, yt = r, W = i, X = g, nt = !1;
|
|
2581
|
+
function Ct(p) {
|
|
2496
2582
|
return nt || (nt = !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.")), l(p) || V(p) === o;
|
|
2497
2583
|
}
|
|
2498
2584
|
function l(p) {
|
|
@@ -2531,16 +2617,22 @@ function Me() {
|
|
|
2531
2617
|
function U(p) {
|
|
2532
2618
|
return V(p) === g;
|
|
2533
2619
|
}
|
|
2534
|
-
R.AsyncMode = c, R.ConcurrentMode = Z, R.ContextConsumer =
|
|
2535
|
-
}
|
|
2620
|
+
R.AsyncMode = c, R.ConcurrentMode = Z, R.ContextConsumer = _t, R.ContextProvider = mt, R.Element = gt, R.ForwardRef = kt, R.Fragment = rt, R.Lazy = vt, R.Memo = Et, R.Portal = tt, R.Profiler = yt, R.StrictMode = W, R.Suspense = X, R.isAsyncMode = Ct, R.isConcurrentMode = l, R.isContextConsumer = d, R.isContextProvider = x, R.isElement = A, R.isForwardRef = v, R.isFragment = F, R.isLazy = C, R.isMemo = b, R.isPortal = S, R.isProfiler = w, R.isStrictMode = T, R.isSuspense = U, R.isValidElementType = P, R.typeOf = V;
|
|
2621
|
+
}()), R;
|
|
2536
2622
|
}
|
|
2537
2623
|
var Ut;
|
|
2538
|
-
function
|
|
2539
|
-
return Ut || (Ut = 1, process.env.NODE_ENV === "production" ?
|
|
2624
|
+
function te() {
|
|
2625
|
+
return Ut || (Ut = 1, process.env.NODE_ENV === "production" ? ut.exports = we() : ut.exports = Be()), ut.exports;
|
|
2540
2626
|
}
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2627
|
+
/*
|
|
2628
|
+
object-assign
|
|
2629
|
+
(c) Sindre Sorhus
|
|
2630
|
+
@license MIT
|
|
2631
|
+
*/
|
|
2632
|
+
var bt, zt;
|
|
2633
|
+
function Me() {
|
|
2634
|
+
if (zt)
|
|
2635
|
+
return bt;
|
|
2544
2636
|
zt = 1;
|
|
2545
2637
|
var a = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, e = Object.prototype.propertyIsEnumerable;
|
|
2546
2638
|
function s(r) {
|
|
@@ -2570,7 +2662,7 @@ function Oe() {
|
|
|
2570
2662
|
return !1;
|
|
2571
2663
|
}
|
|
2572
2664
|
}
|
|
2573
|
-
return
|
|
2665
|
+
return bt = i() ? Object.assign : function(r, n) {
|
|
2574
2666
|
for (var u, o = s(r), h, m = 1; m < arguments.length; m++) {
|
|
2575
2667
|
u = Object(arguments[m]);
|
|
2576
2668
|
for (var g in u)
|
|
@@ -2582,27 +2674,29 @@ function Oe() {
|
|
|
2582
2674
|
}
|
|
2583
2675
|
}
|
|
2584
2676
|
return o;
|
|
2585
|
-
},
|
|
2677
|
+
}, bt;
|
|
2586
2678
|
}
|
|
2587
|
-
var
|
|
2679
|
+
var xt, $t;
|
|
2588
2680
|
function Ot() {
|
|
2589
|
-
if ($t)
|
|
2681
|
+
if ($t)
|
|
2682
|
+
return xt;
|
|
2590
2683
|
$t = 1;
|
|
2591
2684
|
var a = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
2592
|
-
return
|
|
2685
|
+
return xt = a, xt;
|
|
2593
2686
|
}
|
|
2594
|
-
var
|
|
2595
|
-
function
|
|
2596
|
-
return Wt || (Wt = 1,
|
|
2687
|
+
var Ft, Wt;
|
|
2688
|
+
function ee() {
|
|
2689
|
+
return Wt || (Wt = 1, Ft = Function.call.bind(Object.prototype.hasOwnProperty)), Ft;
|
|
2597
2690
|
}
|
|
2598
|
-
var
|
|
2599
|
-
function
|
|
2600
|
-
if (qt)
|
|
2691
|
+
var St, qt;
|
|
2692
|
+
function Oe() {
|
|
2693
|
+
if (qt)
|
|
2694
|
+
return St;
|
|
2601
2695
|
qt = 1;
|
|
2602
2696
|
var a = function() {
|
|
2603
2697
|
};
|
|
2604
2698
|
if (process.env.NODE_ENV !== "production") {
|
|
2605
|
-
var t =
|
|
2699
|
+
var t = Ot(), e = {}, s = ee();
|
|
2606
2700
|
a = function(r) {
|
|
2607
2701
|
var n = "Warning: " + r;
|
|
2608
2702
|
typeof console < "u" && console.error(n);
|
|
@@ -2642,13 +2736,14 @@ function De() {
|
|
|
2642
2736
|
}
|
|
2643
2737
|
return i.resetWarningCache = function() {
|
|
2644
2738
|
process.env.NODE_ENV !== "production" && (e = {});
|
|
2645
|
-
},
|
|
2739
|
+
}, St = i, St;
|
|
2646
2740
|
}
|
|
2647
|
-
var
|
|
2648
|
-
function
|
|
2649
|
-
if (Yt)
|
|
2741
|
+
var Tt, Yt;
|
|
2742
|
+
function De() {
|
|
2743
|
+
if (Yt)
|
|
2744
|
+
return Tt;
|
|
2650
2745
|
Yt = 1;
|
|
2651
|
-
var a =
|
|
2746
|
+
var a = te(), t = Me(), e = Ot(), s = ee(), i = Oe(), r = function() {
|
|
2652
2747
|
};
|
|
2653
2748
|
process.env.NODE_ENV !== "production" && (r = function(u) {
|
|
2654
2749
|
var o = "Warning: " + u;
|
|
@@ -2661,7 +2756,7 @@ function Ve() {
|
|
|
2661
2756
|
function n() {
|
|
2662
2757
|
return null;
|
|
2663
2758
|
}
|
|
2664
|
-
return
|
|
2759
|
+
return Tt = function(u, o) {
|
|
2665
2760
|
var h = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
|
|
2666
2761
|
function g(l) {
|
|
2667
2762
|
var d = l && (h && l[h] || l[m]);
|
|
@@ -2682,12 +2777,12 @@ function Ve() {
|
|
|
2682
2777
|
element: V(),
|
|
2683
2778
|
elementType: c(),
|
|
2684
2779
|
instanceOf: Z,
|
|
2685
|
-
node:
|
|
2686
|
-
objectOf:
|
|
2687
|
-
oneOf:
|
|
2688
|
-
oneOfType:
|
|
2689
|
-
shape:
|
|
2690
|
-
exact:
|
|
2780
|
+
node: kt(),
|
|
2781
|
+
objectOf: mt,
|
|
2782
|
+
oneOf: _t,
|
|
2783
|
+
oneOfType: gt,
|
|
2784
|
+
shape: vt,
|
|
2785
|
+
exact: Et
|
|
2691
2786
|
};
|
|
2692
2787
|
function j(l, d) {
|
|
2693
2788
|
return l === d ? l !== 0 || 1 / l === 1 / d : l !== l && d !== d;
|
|
@@ -2779,14 +2874,14 @@ function Ve() {
|
|
|
2779
2874
|
function Z(l) {
|
|
2780
2875
|
function d(x, A, v, F, C) {
|
|
2781
2876
|
if (!(x[A] instanceof l)) {
|
|
2782
|
-
var b = l.name || y, S =
|
|
2877
|
+
var b = l.name || y, S = Ct(x[A]);
|
|
2783
2878
|
return new B("Invalid " + F + " `" + C + "` of type " + ("`" + S + "` supplied to `" + v + "`, expected ") + ("instance of `" + b + "`."));
|
|
2784
2879
|
}
|
|
2785
2880
|
return null;
|
|
2786
2881
|
}
|
|
2787
2882
|
return D(d);
|
|
2788
2883
|
}
|
|
2789
|
-
function
|
|
2884
|
+
function _t(l) {
|
|
2790
2885
|
if (!Array.isArray(l))
|
|
2791
2886
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
|
|
2792
2887
|
"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])."
|
|
@@ -2803,7 +2898,7 @@ function Ve() {
|
|
|
2803
2898
|
}
|
|
2804
2899
|
return D(d);
|
|
2805
2900
|
}
|
|
2806
|
-
function
|
|
2901
|
+
function mt(l) {
|
|
2807
2902
|
function d(x, A, v, F, C) {
|
|
2808
2903
|
if (typeof l != "function")
|
|
2809
2904
|
return new B("Property `" + C + "` of component `" + v + "` has invalid PropType notation inside objectOf.");
|
|
@@ -2820,7 +2915,7 @@ function Ve() {
|
|
|
2820
2915
|
}
|
|
2821
2916
|
return D(d);
|
|
2822
2917
|
}
|
|
2823
|
-
function
|
|
2918
|
+
function gt(l) {
|
|
2824
2919
|
if (!Array.isArray(l))
|
|
2825
2920
|
return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), n;
|
|
2826
2921
|
for (var d = 0; d < l.length; d++) {
|
|
@@ -2842,7 +2937,7 @@ function Ve() {
|
|
|
2842
2937
|
}
|
|
2843
2938
|
return D(A);
|
|
2844
2939
|
}
|
|
2845
|
-
function
|
|
2940
|
+
function kt() {
|
|
2846
2941
|
function l(d, x, A, v, F) {
|
|
2847
2942
|
return tt(d[x]) ? null : new B("Invalid " + v + " `" + F + "` supplied to " + ("`" + A + "`, expected a ReactNode."));
|
|
2848
2943
|
}
|
|
@@ -2853,7 +2948,7 @@ function Ve() {
|
|
|
2853
2948
|
(l || "React class") + ": " + d + " type `" + x + "." + A + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + v + "`."
|
|
2854
2949
|
);
|
|
2855
2950
|
}
|
|
2856
|
-
function
|
|
2951
|
+
function vt(l) {
|
|
2857
2952
|
function d(x, A, v, F, C) {
|
|
2858
2953
|
var b = x[A], S = W(b);
|
|
2859
2954
|
if (S !== "object")
|
|
@@ -2870,7 +2965,7 @@ function Ve() {
|
|
|
2870
2965
|
}
|
|
2871
2966
|
return D(d);
|
|
2872
2967
|
}
|
|
2873
|
-
function
|
|
2968
|
+
function Et(l) {
|
|
2874
2969
|
function d(x, A, v, F, C) {
|
|
2875
2970
|
var b = x[A], S = W(b);
|
|
2876
2971
|
if (S !== "object")
|
|
@@ -2926,12 +3021,12 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
2926
3021
|
return !1;
|
|
2927
3022
|
}
|
|
2928
3023
|
}
|
|
2929
|
-
function
|
|
3024
|
+
function yt(l, d) {
|
|
2930
3025
|
return l === "symbol" ? !0 : d ? d["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && d instanceof Symbol : !1;
|
|
2931
3026
|
}
|
|
2932
3027
|
function W(l) {
|
|
2933
3028
|
var d = typeof l;
|
|
2934
|
-
return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" :
|
|
3029
|
+
return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : yt(d, l) ? "symbol" : d;
|
|
2935
3030
|
}
|
|
2936
3031
|
function X(l) {
|
|
2937
3032
|
if (typeof l > "u" || l === null)
|
|
@@ -2959,22 +3054,23 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
2959
3054
|
return d;
|
|
2960
3055
|
}
|
|
2961
3056
|
}
|
|
2962
|
-
function
|
|
3057
|
+
function Ct(l) {
|
|
2963
3058
|
return !l.constructor || !l.constructor.name ? y : l.constructor.name;
|
|
2964
3059
|
}
|
|
2965
3060
|
return O.checkPropTypes = i, O.resetWarningCache = i.resetWarningCache, O.PropTypes = O, O;
|
|
2966
|
-
},
|
|
3061
|
+
}, Tt;
|
|
2967
3062
|
}
|
|
2968
|
-
var
|
|
2969
|
-
function
|
|
2970
|
-
if (Ht)
|
|
3063
|
+
var It, Ht;
|
|
3064
|
+
function Ve() {
|
|
3065
|
+
if (Ht)
|
|
3066
|
+
return It;
|
|
2971
3067
|
Ht = 1;
|
|
2972
|
-
var a =
|
|
3068
|
+
var a = Ot();
|
|
2973
3069
|
function t() {
|
|
2974
3070
|
}
|
|
2975
3071
|
function e() {
|
|
2976
3072
|
}
|
|
2977
|
-
return e.resetWarningCache = t,
|
|
3073
|
+
return e.resetWarningCache = t, It = function() {
|
|
2978
3074
|
function s(n, u, o, h, m, g) {
|
|
2979
3075
|
if (g !== a) {
|
|
2980
3076
|
var y = new Error(
|
|
@@ -3011,20 +3107,15 @@ function Pe() {
|
|
|
3011
3107
|
resetWarningCache: t
|
|
3012
3108
|
};
|
|
3013
3109
|
return r.PropTypes = r, r;
|
|
3014
|
-
},
|
|
3015
|
-
}
|
|
3016
|
-
var Kt;
|
|
3017
|
-
function Le() {
|
|
3018
|
-
if (Kt) return ut.exports;
|
|
3019
|
-
if (Kt = 1, process.env.NODE_ENV !== "production") {
|
|
3020
|
-
var a = ee(), t = !0;
|
|
3021
|
-
ut.exports = /* @__PURE__ */ Ve()(a.isElement, t);
|
|
3022
|
-
} else
|
|
3023
|
-
ut.exports = /* @__PURE__ */ Pe()();
|
|
3024
|
-
return ut.exports;
|
|
3110
|
+
}, It;
|
|
3025
3111
|
}
|
|
3026
|
-
|
|
3027
|
-
|
|
3112
|
+
if (process.env.NODE_ENV !== "production") {
|
|
3113
|
+
var Pe = te(), Le = !0;
|
|
3114
|
+
Bt.exports = De()(Pe.isElement, Le);
|
|
3115
|
+
} else
|
|
3116
|
+
Bt.exports = Ve()();
|
|
3117
|
+
var Ne = Bt.exports;
|
|
3118
|
+
const f = /* @__PURE__ */ ae(Ne), se = {
|
|
3028
3119
|
// common
|
|
3029
3120
|
mask: f.oneOfType([f.array, f.func, f.string, f.instanceOf(RegExp), f.oneOf([Date, Number, k.Masked]), f.instanceOf(k.Masked)]),
|
|
3030
3121
|
value: f.any,
|
|
@@ -3071,7 +3162,7 @@ const f = /* @__PURE__ */ ue(Ne), ie = {
|
|
|
3071
3162
|
inputRef: f.oneOfType([f.func, f.shape({
|
|
3072
3163
|
current: f.object
|
|
3073
3164
|
})])
|
|
3074
|
-
},
|
|
3165
|
+
}, ie = Object.keys(se).filter((a) => a !== "value"), je = ["value", "unmask", "onAccept", "onComplete", "inputRef"], Ue = ie.filter((a) => je.indexOf(a) < 0);
|
|
3075
3166
|
function ze(a) {
|
|
3076
3167
|
var t;
|
|
3077
3168
|
const e = (t = class extends J.Component {
|
|
@@ -3114,7 +3205,7 @@ function ze(a) {
|
|
|
3114
3205
|
const {
|
|
3115
3206
|
...n
|
|
3116
3207
|
} = r;
|
|
3117
|
-
return
|
|
3208
|
+
return ie.forEach((u) => {
|
|
3118
3209
|
u !== "maxLength" && delete n[u];
|
|
3119
3210
|
}), "defaultValue" in n || (n.defaultValue = r.mask ? "" : n.value), delete n.value, n;
|
|
3120
3211
|
}
|
|
@@ -3137,7 +3228,7 @@ function ze(a) {
|
|
|
3137
3228
|
});
|
|
3138
3229
|
}
|
|
3139
3230
|
}, t.displayName = void 0, t.propTypes = void 0, t), s = a.displayName || a.name || "Component";
|
|
3140
|
-
return e.displayName = "IMask(" + s + ")", e.propTypes =
|
|
3231
|
+
return e.displayName = "IMask(" + s + ")", e.propTypes = se, J.forwardRef((i, r) => J.createElement(e, {
|
|
3141
3232
|
...i,
|
|
3142
3233
|
ref: r
|
|
3143
3234
|
}));
|
|
@@ -3154,12 +3245,12 @@ const $e = ze((a) => {
|
|
|
3154
3245
|
}), We = (a, t) => J.createElement($e, {
|
|
3155
3246
|
...a,
|
|
3156
3247
|
ref: t
|
|
3157
|
-
}), qe = J.forwardRef(We),
|
|
3248
|
+
}), qe = J.forwardRef(We), Rt = ue.bind(M), Xe = {
|
|
3158
3249
|
light: "light",
|
|
3159
3250
|
dark: "dark",
|
|
3160
3251
|
gray: "gray",
|
|
3161
3252
|
transparent: "transparent"
|
|
3162
|
-
}, Ye =
|
|
3253
|
+
}, Ye = ne(
|
|
3163
3254
|
({
|
|
3164
3255
|
size_s: a = "large",
|
|
3165
3256
|
size_m: t,
|
|
@@ -3176,7 +3267,7 @@ const $e = ze((a) => {
|
|
|
3176
3267
|
}, y) => h ? /* @__PURE__ */ et(
|
|
3177
3268
|
"div",
|
|
3178
3269
|
{
|
|
3179
|
-
className:
|
|
3270
|
+
className: Rt(
|
|
3180
3271
|
M.inputWrapper,
|
|
3181
3272
|
M[`${a}-size_s`],
|
|
3182
3273
|
M[`${t}-size_m`],
|
|
@@ -3205,11 +3296,11 @@ const $e = ze((a) => {
|
|
|
3205
3296
|
}
|
|
3206
3297
|
)
|
|
3207
3298
|
}
|
|
3208
|
-
) : /* @__PURE__ */ Vt(
|
|
3299
|
+
) : /* @__PURE__ */ Vt(re, { children: [
|
|
3209
3300
|
o !== "checkbox" && /* @__PURE__ */ Vt(
|
|
3210
3301
|
"div",
|
|
3211
3302
|
{
|
|
3212
|
-
className:
|
|
3303
|
+
className: Rt(
|
|
3213
3304
|
M.inputWrapper,
|
|
3214
3305
|
M[`${a}-size_s`],
|
|
3215
3306
|
M[`${t}-size_m`],
|
|
@@ -3240,7 +3331,7 @@ const $e = ze((a) => {
|
|
|
3240
3331
|
o === "checkbox" && /* @__PURE__ */ et(
|
|
3241
3332
|
"input",
|
|
3242
3333
|
{
|
|
3243
|
-
className:
|
|
3334
|
+
className: Rt(M.checkBox),
|
|
3244
3335
|
ref: y,
|
|
3245
3336
|
type: o,
|
|
3246
3337
|
...g
|