@scbt-ecom/ui 0.7.30 → 0.8.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/client.d.ts +1 -1
- package/dist/client.js +26934 -28634
- package/dist/client.js.map +1 -1
- package/dist/hybrid.js +2676 -555
- package/dist/hybrid.js.map +1 -1
- package/dist/shared/constants/api.d.ts +2 -0
- package/dist/shared/ui/ResponsiveContainer.d.ts +2 -1
- package/dist/shared/ui/formElements/CheckboxControl.d.ts +20 -0
- package/dist/shared/ui/formElements/InputControl.d.ts +15 -0
- package/dist/shared/ui/formElements/InputControlMask.d.ts +19 -0
- package/dist/shared/ui/{formControlElements → formElements}/SwitchControl.d.ts +11 -11
- package/dist/shared/ui/formElements/TextareaControl.d.ts +20 -0
- package/dist/shared/ui/{formControlElements → formElements}/comboboxControl/ComboboxControl.d.ts +8 -13
- package/dist/shared/ui/formElements/comboboxControl/index.d.ts +1 -0
- package/dist/shared/ui/formElements/comboboxControl/model/types.d.ts +37 -0
- package/dist/shared/ui/{formControlElements → formElements}/comboboxControl/ui/ComboboxOption.d.ts +1 -1
- package/dist/shared/ui/{formControlElements → formElements}/comboboxControl/ui/DropdownIndicator.d.ts +1 -1
- package/dist/shared/ui/{formControlElements → formElements}/comboboxControl/ui/MultiValueRemove.d.ts +1 -1
- package/dist/shared/ui/formElements/dadataControl/DadataAddress.d.ts +3 -0
- package/dist/shared/ui/formElements/dadataControl/DadataAuto.d.ts +3 -0
- package/dist/shared/ui/formElements/dadataControl/DadataCountry.d.ts +3 -0
- package/dist/shared/ui/formElements/dadataControl/DadataFio.d.ts +3 -0
- package/dist/shared/ui/{formControlElements → formElements}/dadataControl/DadataOrganization.d.ts +1 -1
- package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/AutocompleteDadata.d.ts +26 -0
- package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/index.d.ts +1 -0
- package/dist/shared/ui/{formControlElements → formElements}/dadataControl/autocompleteDadata/model/types.d.ts +0 -1
- package/dist/shared/ui/formElements/dadataControl/autocompleteDadata/ui/ComboboxOptionsCustom.d.ts +8 -0
- package/dist/shared/ui/formElements/dadataControl/index.d.ts +6 -0
- package/dist/shared/ui/formElements/dadataControl/types.d.ts +5 -0
- package/dist/shared/ui/formElements/editorControl/EditorControl.d.ts +19 -0
- package/dist/shared/ui/formElements/editorControl/index.d.ts +1 -0
- package/dist/shared/ui/formElements/editorControl/model/config.d.ts +1 -0
- package/dist/shared/ui/{formControlElements → formElements}/editorControl/ui/Editor.d.ts +2 -2
- package/dist/shared/ui/formElements/index.d.ts +13 -0
- package/dist/shared/ui/{formControlElements → formElements}/inputCurrencyControl/InputCurrencyControl.d.ts +5 -2
- package/dist/shared/ui/formElements/inputCurrencyControl/index.d.ts +1 -0
- package/dist/shared/ui/formElements/model/types.d.ts +7 -0
- package/dist/shared/ui/{formControlElements → formElements/radioControl}/RadioControl.d.ts +11 -5
- package/dist/shared/ui/formElements/radioControl/index.d.ts +1 -0
- package/dist/shared/ui/formElements/radioControl/ui/RadioGroupCustom.d.ts +8 -0
- package/dist/shared/ui/formElements/radioControl/ui/index.d.ts +1 -0
- package/dist/shared/ui/formElements/sliderControl/SliderControl.d.ts +31 -0
- package/dist/shared/ui/formElements/sliderControl/index.d.ts +1 -0
- package/dist/shared/ui/formElements/sliderControl/ui/Slider.d.ts +17 -0
- package/dist/shared/ui/formElements/sliderControl/ui/index.d.ts +1 -0
- package/dist/shared/ui/{formControlElements → formElements}/ui/FieldContainer.d.ts +2 -5
- package/dist/shared/ui/formElements/ui/fieldAttachment/FieldAttachment.d.ts +19 -0
- package/dist/shared/ui/formElements/ui/fieldAttachment/index.d.ts +1 -0
- package/dist/shared/ui/formElements/ui/fieldAttachment/ui/IconSlot.d.ts +6 -0
- package/dist/shared/ui/formElements/ui/fieldAttachment/ui/ValidateSlot.d.ts +7 -0
- package/dist/shared/ui/formElements/ui/fieldAttachment/ui/index.d.ts +2 -0
- package/dist/shared/ui/formElements/ui/fieldWrapper/FieldWrapper.d.ts +15 -0
- package/dist/shared/ui/formElements/ui/fieldWrapper/index.d.ts +1 -0
- package/dist/shared/ui/formElements/ui/fieldWrapper/ui/FieldLabel.d.ts +6 -0
- package/dist/shared/ui/formElements/ui/fieldWrapper/ui/index.d.ts +1 -0
- package/dist/shared/ui/formElements/ui/index.d.ts +4 -0
- package/dist/shared/ui/formElements/uploaderControl/UploaderControl.d.ts +10 -0
- package/dist/shared/ui/formElements/uploaderControl/index.d.ts +1 -0
- package/dist/shared/ui/formElements/uploaderControl/model/types.d.ts +20 -0
- package/dist/shared/ui/{formControlElements/inputControlUploader → formElements/uploaderControl}/ui/File.d.ts +2 -2
- package/dist/shared/ui/{formControlElements/inputControlUploader → formElements/uploaderControl}/ui/Filename.d.ts +2 -2
- package/dist/shared/ui/{formControlElements/inputControlUploader → formElements/uploaderControl}/ui/Files.d.ts +2 -2
- package/dist/shared/ui/{formControlElements/inputControlUploader → formElements/uploaderControl}/ui/Input.d.ts +2 -2
- package/dist/shared/ui/{formControlElements/inputControlUploader → formElements/uploaderControl}/ui/Uploader.d.ts +3 -3
- package/dist/shared/ui/index.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{utils-tailwind-Bxkz2BJY.js → utils-tailwind-D1D1tL_o.js} +2850 -4991
- package/dist/utils-tailwind-D1D1tL_o.js.map +1 -0
- package/package.json +1 -1
- package/dist/shared/ui/formControlElements/CheckboxControl.d.ts +0 -13
- package/dist/shared/ui/formControlElements/InputControlMask.d.ts +0 -10
- package/dist/shared/ui/formControlElements/TextareaControl.d.ts +0 -11
- package/dist/shared/ui/formControlElements/calendarControl/CalendarControl.d.ts +0 -15
- package/dist/shared/ui/formControlElements/calendarControl/hooks/index.d.ts +0 -2
- package/dist/shared/ui/formControlElements/calendarControl/hooks/useCalendar.d.ts +0 -16
- package/dist/shared/ui/formControlElements/calendarControl/hooks/useCalendarDropdowns.d.ts +0 -9
- package/dist/shared/ui/formControlElements/calendarControl/index.d.ts +0 -1
- package/dist/shared/ui/formControlElements/calendarControl/model/helpers.d.ts +0 -24
- package/dist/shared/ui/formControlElements/calendarControl/model/types.d.ts +0 -33
- package/dist/shared/ui/formControlElements/calendarControl/ui/DaysOfMonth.d.ts +0 -10
- package/dist/shared/ui/formControlElements/calendarControl/ui/DaysOfWeek.d.ts +0 -6
- package/dist/shared/ui/formControlElements/calendarControl/ui/Dropdown.d.ts +0 -11
- package/dist/shared/ui/formControlElements/calendarControl/ui/Header.d.ts +0 -14
- package/dist/shared/ui/formControlElements/calendarControl/ui/Navigation.d.ts +0 -9
- package/dist/shared/ui/formControlElements/calendarControl/ui/OptionsList.d.ts +0 -5
- package/dist/shared/ui/formControlElements/calendarControl/ui/index.d.ts +0 -4
- package/dist/shared/ui/formControlElements/comboboxControl/index.d.ts +0 -1
- package/dist/shared/ui/formControlElements/comboboxControl/model/types.d.ts +0 -36
- package/dist/shared/ui/formControlElements/dadataControl/DadataAddress.d.ts +0 -3
- package/dist/shared/ui/formControlElements/dadataControl/DadataAuto.d.ts +0 -3
- package/dist/shared/ui/formControlElements/dadataControl/DadataCountry.d.ts +0 -3
- package/dist/shared/ui/formControlElements/dadataControl/DadataFio.d.ts +0 -3
- package/dist/shared/ui/formControlElements/dadataControl/autocompleteDadata/AutocompleteDadata.d.ts +0 -14
- package/dist/shared/ui/formControlElements/dadataControl/autocompleteDadata/index.d.ts +0 -1
- package/dist/shared/ui/formControlElements/dadataControl/autocompleteDadata/ui/ComboboxOptionsCustom.d.ts +0 -6
- package/dist/shared/ui/formControlElements/dadataControl/index.d.ts +0 -1
- package/dist/shared/ui/formControlElements/dadataControl/types.d.ts +0 -10
- package/dist/shared/ui/formControlElements/editorControl/EditorControl.d.ts +0 -18
- package/dist/shared/ui/formControlElements/editorControl/index.d.ts +0 -1
- package/dist/shared/ui/formControlElements/index.d.ts +0 -14
- package/dist/shared/ui/formControlElements/inputControl/InputControl.d.ts +0 -7
- package/dist/shared/ui/formControlElements/inputControl/index.d.ts +0 -1
- package/dist/shared/ui/formControlElements/inputControl/model/hooks.d.ts +0 -5
- package/dist/shared/ui/formControlElements/inputControlUploader/InputControlUploader.d.ts +0 -10
- package/dist/shared/ui/formControlElements/inputControlUploader/index.d.ts +0 -1
- package/dist/shared/ui/formControlElements/inputControlUploader/model/types.d.ts +0 -20
- package/dist/shared/ui/formControlElements/inputCurrencyControl/index.d.ts +0 -1
- package/dist/shared/ui/formControlElements/inputSliderControl/InputSliderControl.d.ts +0 -21
- package/dist/shared/ui/formControlElements/inputSliderControl/index.d.ts +0 -1
- package/dist/shared/ui/formControlElements/inputSliderControl/ui/SliderControl.d.ts +0 -17
- package/dist/shared/ui/formControlElements/inputSliderControl/ui/index.d.ts +0 -1
- package/dist/shared/ui/formControlElements/model/classes-types.d.ts +0 -18
- package/dist/shared/ui/formControlElements/model/index.d.ts +0 -2
- package/dist/shared/ui/formControlElements/model/message-view-animation.d.ts +0 -22
- package/dist/shared/ui/formControlElements/model/props-types.d.ts +0 -21
- package/dist/shared/ui/formControlElements/ui/FieldAttachment.d.ts +0 -15
- package/dist/shared/ui/formControlElements/ui/FieldWrapper.d.ts +0 -14
- package/dist/shared/ui/formControlElements/ui/Label.d.ts +0 -12
- package/dist/shared/ui/formControlElements/ui/index.d.ts +0 -4
- package/dist/utils-tailwind-Bxkz2BJY.js.map +0 -1
- /package/dist/shared/ui/{formControlElements → formElements}/FormControl.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements → formElements}/comboboxControl/model/selectClassnames.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements → formElements}/comboboxControl/ui/index.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements → formElements}/dadataControl/autocompleteDadata/model/api.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements → formElements}/dadataControl/autocompleteDadata/model/helpers.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements → formElements}/dadataControl/autocompleteDadata/model/useDadata.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements → formElements}/editorControl/model/helper.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements → formElements}/editorControl/model/types.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements → formElements}/editorControl/ui/Toolbar.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements → formElements}/editorControl/ui/commands/SetColor.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements → formElements}/editorControl/ui/commands/SetCoreCommands.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements → formElements}/editorControl/ui/commands/SetHeadings.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements → formElements}/editorControl/ui/commands/SetLink.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements → formElements}/editorControl/ui/commands/index.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements → formElements}/inputCurrencyControl/model/helpers.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements → formElements}/inputCurrencyControl/model/useInputCurrency.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements → formElements}/inputCurrencyControl/ui/MenuTrigger.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements → formElements}/inputCurrencyControl/ui/OptionList.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements → formElements}/inputCurrencyControl/ui/index.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements/inputSliderControl → formElements/sliderControl}/model/helpers/dates/getEndWordMonth.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements/inputSliderControl → formElements/sliderControl}/model/helpers/dates/getYearEnding.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements/inputSliderControl → formElements/sliderControl}/model/helpers/dates/index.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements/inputSliderControl → formElements/sliderControl}/model/helpers/formatNumber.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements/inputSliderControl → formElements/sliderControl}/model/helpers/getInputSliderSuffix.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements/inputSliderControl → formElements/sliderControl}/model/helpers/getStepByVariant.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements/inputSliderControl → formElements/sliderControl}/model/helpers/index.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements/inputSliderControl → formElements/sliderControl}/model/types.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements/inputSliderControl → formElements/sliderControl}/model/useSlider.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements → formElements}/ui/MessageView.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements/inputControlUploader → formElements/uploaderControl}/model/helpers.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements/inputControlUploader → formElements/uploaderControl}/model/hooks/useUploader.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements/inputControlUploader → formElements/uploaderControl}/model/index.d.ts +0 -0
- /package/dist/shared/ui/{formControlElements/inputControlUploader → formElements/uploaderControl}/ui/index.d.ts +0 -0
package/dist/hybrid.js
CHANGED
|
@@ -1,15 +1,2134 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
var Ve = Object.defineProperty;
|
|
2
|
+
var Qe = (a, r, e) => r in a ? Ve(a, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[r] = e;
|
|
3
|
+
var s = (a, r, e) => Qe(a, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { j as i, c as d, H as A, a as D, I as T, L as $e, z as _, g as xe, u as be, P as Ge } from "./utils-tailwind-D1D1tL_o.js";
|
|
5
|
+
import { B as ta, N as ra, i as na } from "./utils-tailwind-D1D1tL_o.js";
|
|
6
|
+
import * as z from "react";
|
|
7
|
+
import { forwardRef as ye } from "react";
|
|
8
|
+
const Mn = (a, r) => JSON.stringify(a) === JSON.stringify(r), In = (a) => a.split("-").map((r) => r.charAt(0).toUpperCase() + r.slice(1).toLowerCase()).join("-"), we = 6048e5, Xe = 6e4, Ue = 36e5, Ze = 1e3, se = Symbol.for("constructDateFrom");
|
|
9
|
+
function v(a, r) {
|
|
10
|
+
return typeof a == "function" ? a(r) : a && typeof a == "object" && se in a ? a[se](r) : a instanceof Date ? new a.constructor(r) : new Date(r);
|
|
11
|
+
}
|
|
12
|
+
function j(a, r) {
|
|
13
|
+
return v(r || a, a);
|
|
14
|
+
}
|
|
15
|
+
function ge(a, r, e) {
|
|
16
|
+
const t = j(a, e == null ? void 0 : e.in);
|
|
17
|
+
return isNaN(r) ? v((e == null ? void 0 : e.in) || a, NaN) : (r && t.setDate(t.getDate() + r), t);
|
|
18
|
+
}
|
|
19
|
+
let Je = {};
|
|
20
|
+
function H() {
|
|
21
|
+
return Je;
|
|
22
|
+
}
|
|
23
|
+
function O(a, r) {
|
|
24
|
+
var u, f, m, b;
|
|
25
|
+
const e = H(), t = (r == null ? void 0 : r.weekStartsOn) ?? ((f = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.options) == null ? void 0 : f.weekStartsOn) ?? e.weekStartsOn ?? ((b = (m = e.locale) == null ? void 0 : m.options) == null ? void 0 : b.weekStartsOn) ?? 0, n = j(a, r == null ? void 0 : r.in), o = n.getDay(), l = (o < t ? 7 : 0) + o - t;
|
|
26
|
+
return n.setDate(n.getDate() - l), n.setHours(0, 0, 0, 0), n;
|
|
27
|
+
}
|
|
28
|
+
function W(a, r) {
|
|
29
|
+
return O(a, { ...r, weekStartsOn: 1 });
|
|
30
|
+
}
|
|
31
|
+
function Ke(a, r) {
|
|
32
|
+
const e = j(a, r == null ? void 0 : r.in), t = e.getFullYear(), n = v(e, 0);
|
|
33
|
+
n.setFullYear(t + 1, 0, 4), n.setHours(0, 0, 0, 0);
|
|
34
|
+
const o = W(n), l = v(e, 0);
|
|
35
|
+
l.setFullYear(t, 0, 4), l.setHours(0, 0, 0, 0);
|
|
36
|
+
const u = W(l);
|
|
37
|
+
return e.getTime() >= o.getTime() ? t + 1 : e.getTime() >= u.getTime() ? t : t - 1;
|
|
38
|
+
}
|
|
39
|
+
function ke(a) {
|
|
40
|
+
const r = j(a), e = new Date(
|
|
41
|
+
Date.UTC(
|
|
42
|
+
r.getFullYear(),
|
|
43
|
+
r.getMonth(),
|
|
44
|
+
r.getDate(),
|
|
45
|
+
r.getHours(),
|
|
46
|
+
r.getMinutes(),
|
|
47
|
+
r.getSeconds(),
|
|
48
|
+
r.getMilliseconds()
|
|
49
|
+
)
|
|
50
|
+
);
|
|
51
|
+
return e.setUTCFullYear(r.getFullYear()), +a - +e;
|
|
52
|
+
}
|
|
53
|
+
function Se(a, r) {
|
|
54
|
+
const e = Ke(a, r), t = v(a, 0);
|
|
55
|
+
return t.setFullYear(e, 0, 4), t.setHours(0, 0, 0, 0), W(t);
|
|
56
|
+
}
|
|
57
|
+
function et(a) {
|
|
58
|
+
return a instanceof Date || typeof a == "object" && Object.prototype.toString.call(a) === "[object Date]";
|
|
59
|
+
}
|
|
60
|
+
function tt(a) {
|
|
61
|
+
return !(!et(a) && typeof a != "number" || isNaN(+j(a)));
|
|
62
|
+
}
|
|
63
|
+
const rt = {
|
|
64
|
+
lessThanXSeconds: {
|
|
65
|
+
one: "less than a second",
|
|
66
|
+
other: "less than {{count}} seconds"
|
|
67
|
+
},
|
|
68
|
+
xSeconds: {
|
|
69
|
+
one: "1 second",
|
|
70
|
+
other: "{{count}} seconds"
|
|
71
|
+
},
|
|
72
|
+
halfAMinute: "half a minute",
|
|
73
|
+
lessThanXMinutes: {
|
|
74
|
+
one: "less than a minute",
|
|
75
|
+
other: "less than {{count}} minutes"
|
|
76
|
+
},
|
|
77
|
+
xMinutes: {
|
|
78
|
+
one: "1 minute",
|
|
79
|
+
other: "{{count}} minutes"
|
|
80
|
+
},
|
|
81
|
+
aboutXHours: {
|
|
82
|
+
one: "about 1 hour",
|
|
83
|
+
other: "about {{count}} hours"
|
|
84
|
+
},
|
|
85
|
+
xHours: {
|
|
86
|
+
one: "1 hour",
|
|
87
|
+
other: "{{count}} hours"
|
|
88
|
+
},
|
|
89
|
+
xDays: {
|
|
90
|
+
one: "1 day",
|
|
91
|
+
other: "{{count}} days"
|
|
92
|
+
},
|
|
93
|
+
aboutXWeeks: {
|
|
94
|
+
one: "about 1 week",
|
|
95
|
+
other: "about {{count}} weeks"
|
|
96
|
+
},
|
|
97
|
+
xWeeks: {
|
|
98
|
+
one: "1 week",
|
|
99
|
+
other: "{{count}} weeks"
|
|
100
|
+
},
|
|
101
|
+
aboutXMonths: {
|
|
102
|
+
one: "about 1 month",
|
|
103
|
+
other: "about {{count}} months"
|
|
104
|
+
},
|
|
105
|
+
xMonths: {
|
|
106
|
+
one: "1 month",
|
|
107
|
+
other: "{{count}} months"
|
|
108
|
+
},
|
|
109
|
+
aboutXYears: {
|
|
110
|
+
one: "about 1 year",
|
|
111
|
+
other: "about {{count}} years"
|
|
112
|
+
},
|
|
113
|
+
xYears: {
|
|
114
|
+
one: "1 year",
|
|
115
|
+
other: "{{count}} years"
|
|
116
|
+
},
|
|
117
|
+
overXYears: {
|
|
118
|
+
one: "over 1 year",
|
|
119
|
+
other: "over {{count}} years"
|
|
120
|
+
},
|
|
121
|
+
almostXYears: {
|
|
122
|
+
one: "almost 1 year",
|
|
123
|
+
other: "almost {{count}} years"
|
|
124
|
+
}
|
|
125
|
+
}, nt = (a, r, e) => {
|
|
126
|
+
let t;
|
|
127
|
+
const n = rt[a];
|
|
128
|
+
return typeof n == "string" ? t = n : r === 1 ? t = n.one : t = n.other.replace("{{count}}", r.toString()), e != null && e.addSuffix ? e.comparison && e.comparison > 0 ? "in " + t : t + " ago" : t;
|
|
129
|
+
};
|
|
130
|
+
function Z(a) {
|
|
131
|
+
return (r = {}) => {
|
|
132
|
+
const e = r.width ? String(r.width) : a.defaultWidth;
|
|
133
|
+
return a.formats[e] || a.formats[a.defaultWidth];
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
const at = {
|
|
137
|
+
full: "EEEE, MMMM do, y",
|
|
138
|
+
long: "MMMM do, y",
|
|
139
|
+
medium: "MMM d, y",
|
|
140
|
+
short: "MM/dd/yyyy"
|
|
141
|
+
}, ot = {
|
|
142
|
+
full: "h:mm:ss a zzzz",
|
|
143
|
+
long: "h:mm:ss a z",
|
|
144
|
+
medium: "h:mm:ss a",
|
|
145
|
+
short: "h:mm a"
|
|
146
|
+
}, it = {
|
|
147
|
+
full: "{{date}} 'at' {{time}}",
|
|
148
|
+
long: "{{date}} 'at' {{time}}",
|
|
149
|
+
medium: "{{date}}, {{time}}",
|
|
150
|
+
short: "{{date}}, {{time}}"
|
|
151
|
+
}, dt = {
|
|
152
|
+
date: Z({
|
|
153
|
+
formats: at,
|
|
154
|
+
defaultWidth: "full"
|
|
155
|
+
}),
|
|
156
|
+
time: Z({
|
|
157
|
+
formats: ot,
|
|
158
|
+
defaultWidth: "full"
|
|
159
|
+
}),
|
|
160
|
+
dateTime: Z({
|
|
161
|
+
formats: it,
|
|
162
|
+
defaultWidth: "full"
|
|
163
|
+
})
|
|
164
|
+
}, lt = {
|
|
165
|
+
lastWeek: "'last' eeee 'at' p",
|
|
166
|
+
yesterday: "'yesterday at' p",
|
|
167
|
+
today: "'today at' p",
|
|
168
|
+
tomorrow: "'tomorrow at' p",
|
|
169
|
+
nextWeek: "eeee 'at' p",
|
|
170
|
+
other: "P"
|
|
171
|
+
}, st = (a, r, e, t) => lt[a];
|
|
172
|
+
function L(a) {
|
|
173
|
+
return (r, e) => {
|
|
174
|
+
const t = e != null && e.context ? String(e.context) : "standalone";
|
|
175
|
+
let n;
|
|
176
|
+
if (t === "formatting" && a.formattingValues) {
|
|
177
|
+
const l = a.defaultFormattingWidth || a.defaultWidth, u = e != null && e.width ? String(e.width) : l;
|
|
178
|
+
n = a.formattingValues[u] || a.formattingValues[l];
|
|
179
|
+
} else {
|
|
180
|
+
const l = a.defaultWidth, u = e != null && e.width ? String(e.width) : a.defaultWidth;
|
|
181
|
+
n = a.values[u] || a.values[l];
|
|
182
|
+
}
|
|
183
|
+
const o = a.argumentCallback ? a.argumentCallback(r) : r;
|
|
184
|
+
return n[o];
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
const ut = {
|
|
188
|
+
narrow: ["B", "A"],
|
|
189
|
+
abbreviated: ["BC", "AD"],
|
|
190
|
+
wide: ["Before Christ", "Anno Domini"]
|
|
191
|
+
}, ct = {
|
|
192
|
+
narrow: ["1", "2", "3", "4"],
|
|
193
|
+
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
194
|
+
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
195
|
+
}, ft = {
|
|
196
|
+
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
197
|
+
abbreviated: [
|
|
198
|
+
"Jan",
|
|
199
|
+
"Feb",
|
|
200
|
+
"Mar",
|
|
201
|
+
"Apr",
|
|
202
|
+
"May",
|
|
203
|
+
"Jun",
|
|
204
|
+
"Jul",
|
|
205
|
+
"Aug",
|
|
206
|
+
"Sep",
|
|
207
|
+
"Oct",
|
|
208
|
+
"Nov",
|
|
209
|
+
"Dec"
|
|
210
|
+
],
|
|
211
|
+
wide: [
|
|
212
|
+
"January",
|
|
213
|
+
"February",
|
|
214
|
+
"March",
|
|
215
|
+
"April",
|
|
216
|
+
"May",
|
|
217
|
+
"June",
|
|
218
|
+
"July",
|
|
219
|
+
"August",
|
|
220
|
+
"September",
|
|
221
|
+
"October",
|
|
222
|
+
"November",
|
|
223
|
+
"December"
|
|
224
|
+
]
|
|
225
|
+
}, mt = {
|
|
226
|
+
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
227
|
+
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
228
|
+
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
229
|
+
wide: [
|
|
230
|
+
"Sunday",
|
|
231
|
+
"Monday",
|
|
232
|
+
"Tuesday",
|
|
233
|
+
"Wednesday",
|
|
234
|
+
"Thursday",
|
|
235
|
+
"Friday",
|
|
236
|
+
"Saturday"
|
|
237
|
+
]
|
|
238
|
+
}, ht = {
|
|
239
|
+
narrow: {
|
|
240
|
+
am: "a",
|
|
241
|
+
pm: "p",
|
|
242
|
+
midnight: "mi",
|
|
243
|
+
noon: "n",
|
|
244
|
+
morning: "morning",
|
|
245
|
+
afternoon: "afternoon",
|
|
246
|
+
evening: "evening",
|
|
247
|
+
night: "night"
|
|
248
|
+
},
|
|
249
|
+
abbreviated: {
|
|
250
|
+
am: "AM",
|
|
251
|
+
pm: "PM",
|
|
252
|
+
midnight: "midnight",
|
|
253
|
+
noon: "noon",
|
|
254
|
+
morning: "morning",
|
|
255
|
+
afternoon: "afternoon",
|
|
256
|
+
evening: "evening",
|
|
257
|
+
night: "night"
|
|
258
|
+
},
|
|
259
|
+
wide: {
|
|
260
|
+
am: "a.m.",
|
|
261
|
+
pm: "p.m.",
|
|
262
|
+
midnight: "midnight",
|
|
263
|
+
noon: "noon",
|
|
264
|
+
morning: "morning",
|
|
265
|
+
afternoon: "afternoon",
|
|
266
|
+
evening: "evening",
|
|
267
|
+
night: "night"
|
|
268
|
+
}
|
|
269
|
+
}, pt = {
|
|
270
|
+
narrow: {
|
|
271
|
+
am: "a",
|
|
272
|
+
pm: "p",
|
|
273
|
+
midnight: "mi",
|
|
274
|
+
noon: "n",
|
|
275
|
+
morning: "in the morning",
|
|
276
|
+
afternoon: "in the afternoon",
|
|
277
|
+
evening: "in the evening",
|
|
278
|
+
night: "at night"
|
|
279
|
+
},
|
|
280
|
+
abbreviated: {
|
|
281
|
+
am: "AM",
|
|
282
|
+
pm: "PM",
|
|
283
|
+
midnight: "midnight",
|
|
284
|
+
noon: "noon",
|
|
285
|
+
morning: "in the morning",
|
|
286
|
+
afternoon: "in the afternoon",
|
|
287
|
+
evening: "in the evening",
|
|
288
|
+
night: "at night"
|
|
289
|
+
},
|
|
290
|
+
wide: {
|
|
291
|
+
am: "a.m.",
|
|
292
|
+
pm: "p.m.",
|
|
293
|
+
midnight: "midnight",
|
|
294
|
+
noon: "noon",
|
|
295
|
+
morning: "in the morning",
|
|
296
|
+
afternoon: "in the afternoon",
|
|
297
|
+
evening: "in the evening",
|
|
298
|
+
night: "at night"
|
|
299
|
+
}
|
|
300
|
+
}, xt = (a, r) => {
|
|
301
|
+
const e = Number(a), t = e % 100;
|
|
302
|
+
if (t > 20 || t < 10)
|
|
303
|
+
switch (t % 10) {
|
|
304
|
+
case 1:
|
|
305
|
+
return e + "st";
|
|
306
|
+
case 2:
|
|
307
|
+
return e + "nd";
|
|
308
|
+
case 3:
|
|
309
|
+
return e + "rd";
|
|
310
|
+
}
|
|
311
|
+
return e + "th";
|
|
312
|
+
}, bt = {
|
|
313
|
+
ordinalNumber: xt,
|
|
314
|
+
era: L({
|
|
315
|
+
values: ut,
|
|
316
|
+
defaultWidth: "wide"
|
|
317
|
+
}),
|
|
318
|
+
quarter: L({
|
|
319
|
+
values: ct,
|
|
320
|
+
defaultWidth: "wide",
|
|
321
|
+
argumentCallback: (a) => a - 1
|
|
322
|
+
}),
|
|
323
|
+
month: L({
|
|
324
|
+
values: ft,
|
|
325
|
+
defaultWidth: "wide"
|
|
326
|
+
}),
|
|
327
|
+
day: L({
|
|
328
|
+
values: mt,
|
|
329
|
+
defaultWidth: "wide"
|
|
330
|
+
}),
|
|
331
|
+
dayPeriod: L({
|
|
332
|
+
values: ht,
|
|
333
|
+
defaultWidth: "wide",
|
|
334
|
+
formattingValues: pt,
|
|
335
|
+
defaultFormattingWidth: "wide"
|
|
336
|
+
})
|
|
337
|
+
};
|
|
338
|
+
function B(a) {
|
|
339
|
+
return (r, e = {}) => {
|
|
340
|
+
const t = e.width, n = t && a.matchPatterns[t] || a.matchPatterns[a.defaultMatchWidth], o = r.match(n);
|
|
341
|
+
if (!o)
|
|
342
|
+
return null;
|
|
343
|
+
const l = o[0], u = t && a.parsePatterns[t] || a.parsePatterns[a.defaultParseWidth], f = Array.isArray(u) ? wt(u, (c) => c.test(l)) : (
|
|
344
|
+
// [TODO] -- I challenge you to fix the type
|
|
345
|
+
yt(u, (c) => c.test(l))
|
|
346
|
+
);
|
|
347
|
+
let m;
|
|
348
|
+
m = a.valueCallback ? a.valueCallback(f) : f, m = e.valueCallback ? (
|
|
349
|
+
// [TODO] -- I challenge you to fix the type
|
|
350
|
+
e.valueCallback(m)
|
|
351
|
+
) : m;
|
|
352
|
+
const b = r.slice(l.length);
|
|
353
|
+
return { value: m, rest: b };
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
function yt(a, r) {
|
|
357
|
+
for (const e in a)
|
|
358
|
+
if (Object.prototype.hasOwnProperty.call(a, e) && r(a[e]))
|
|
359
|
+
return e;
|
|
360
|
+
}
|
|
361
|
+
function wt(a, r) {
|
|
362
|
+
for (let e = 0; e < a.length; e++)
|
|
363
|
+
if (r(a[e]))
|
|
364
|
+
return e;
|
|
365
|
+
}
|
|
366
|
+
function gt(a) {
|
|
367
|
+
return (r, e = {}) => {
|
|
368
|
+
const t = r.match(a.matchPattern);
|
|
369
|
+
if (!t) return null;
|
|
370
|
+
const n = t[0], o = r.match(a.parsePattern);
|
|
371
|
+
if (!o) return null;
|
|
372
|
+
let l = a.valueCallback ? a.valueCallback(o[0]) : o[0];
|
|
373
|
+
l = e.valueCallback ? e.valueCallback(l) : l;
|
|
374
|
+
const u = r.slice(n.length);
|
|
375
|
+
return { value: l, rest: u };
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
const kt = /^(\d+)(th|st|nd|rd)?/i, vt = /\d+/i, jt = {
|
|
379
|
+
narrow: /^(b|a)/i,
|
|
380
|
+
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
381
|
+
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
382
|
+
}, Dt = {
|
|
383
|
+
any: [/^b/i, /^(a|c)/i]
|
|
384
|
+
}, Tt = {
|
|
385
|
+
narrow: /^[1234]/i,
|
|
386
|
+
abbreviated: /^q[1234]/i,
|
|
387
|
+
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
388
|
+
}, Nt = {
|
|
389
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
390
|
+
}, Pt = {
|
|
391
|
+
narrow: /^[jfmasond]/i,
|
|
392
|
+
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
393
|
+
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
394
|
+
}, _t = {
|
|
395
|
+
narrow: [
|
|
396
|
+
/^j/i,
|
|
397
|
+
/^f/i,
|
|
398
|
+
/^m/i,
|
|
399
|
+
/^a/i,
|
|
400
|
+
/^m/i,
|
|
401
|
+
/^j/i,
|
|
402
|
+
/^j/i,
|
|
403
|
+
/^a/i,
|
|
404
|
+
/^s/i,
|
|
405
|
+
/^o/i,
|
|
406
|
+
/^n/i,
|
|
407
|
+
/^d/i
|
|
408
|
+
],
|
|
409
|
+
any: [
|
|
410
|
+
/^ja/i,
|
|
411
|
+
/^f/i,
|
|
412
|
+
/^mar/i,
|
|
413
|
+
/^ap/i,
|
|
414
|
+
/^may/i,
|
|
415
|
+
/^jun/i,
|
|
416
|
+
/^jul/i,
|
|
417
|
+
/^au/i,
|
|
418
|
+
/^s/i,
|
|
419
|
+
/^o/i,
|
|
420
|
+
/^n/i,
|
|
421
|
+
/^d/i
|
|
422
|
+
]
|
|
423
|
+
}, Mt = {
|
|
424
|
+
narrow: /^[smtwf]/i,
|
|
425
|
+
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
426
|
+
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
427
|
+
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
428
|
+
}, It = {
|
|
429
|
+
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
430
|
+
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
431
|
+
}, Et = {
|
|
432
|
+
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
433
|
+
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
434
|
+
}, Ct = {
|
|
435
|
+
any: {
|
|
436
|
+
am: /^a/i,
|
|
437
|
+
pm: /^p/i,
|
|
438
|
+
midnight: /^mi/i,
|
|
439
|
+
noon: /^no/i,
|
|
440
|
+
morning: /morning/i,
|
|
441
|
+
afternoon: /afternoon/i,
|
|
442
|
+
evening: /evening/i,
|
|
443
|
+
night: /night/i
|
|
444
|
+
}
|
|
445
|
+
}, Ot = {
|
|
446
|
+
ordinalNumber: gt({
|
|
447
|
+
matchPattern: kt,
|
|
448
|
+
parsePattern: vt,
|
|
449
|
+
valueCallback: (a) => parseInt(a, 10)
|
|
450
|
+
}),
|
|
451
|
+
era: B({
|
|
452
|
+
matchPatterns: jt,
|
|
453
|
+
defaultMatchWidth: "wide",
|
|
454
|
+
parsePatterns: Dt,
|
|
455
|
+
defaultParseWidth: "any"
|
|
456
|
+
}),
|
|
457
|
+
quarter: B({
|
|
458
|
+
matchPatterns: Tt,
|
|
459
|
+
defaultMatchWidth: "wide",
|
|
460
|
+
parsePatterns: Nt,
|
|
461
|
+
defaultParseWidth: "any",
|
|
462
|
+
valueCallback: (a) => a + 1
|
|
463
|
+
}),
|
|
464
|
+
month: B({
|
|
465
|
+
matchPatterns: Pt,
|
|
466
|
+
defaultMatchWidth: "wide",
|
|
467
|
+
parsePatterns: _t,
|
|
468
|
+
defaultParseWidth: "any"
|
|
469
|
+
}),
|
|
470
|
+
day: B({
|
|
471
|
+
matchPatterns: Mt,
|
|
472
|
+
defaultMatchWidth: "wide",
|
|
473
|
+
parsePatterns: It,
|
|
474
|
+
defaultParseWidth: "any"
|
|
475
|
+
}),
|
|
476
|
+
dayPeriod: B({
|
|
477
|
+
matchPatterns: Et,
|
|
478
|
+
defaultMatchWidth: "any",
|
|
479
|
+
parsePatterns: Ct,
|
|
480
|
+
defaultParseWidth: "any"
|
|
481
|
+
})
|
|
482
|
+
}, Ft = {
|
|
483
|
+
code: "en-US",
|
|
484
|
+
formatDistance: nt,
|
|
485
|
+
formatLong: dt,
|
|
486
|
+
formatRelative: st,
|
|
487
|
+
localize: bt,
|
|
488
|
+
match: Ot,
|
|
489
|
+
options: {
|
|
490
|
+
weekStartsOn: 0,
|
|
491
|
+
firstWeekContainsDate: 1
|
|
492
|
+
}
|
|
493
|
+
};
|
|
494
|
+
function Yt(a, r) {
|
|
495
|
+
const e = j(a, r == null ? void 0 : r.in), t = +W(e) - +Se(e);
|
|
496
|
+
return Math.round(t / we) + 1;
|
|
497
|
+
}
|
|
498
|
+
function ve(a, r) {
|
|
499
|
+
var b, c, N, F;
|
|
500
|
+
const e = j(a, r == null ? void 0 : r.in), t = e.getFullYear(), n = H(), o = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((c = (b = r == null ? void 0 : r.locale) == null ? void 0 : b.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((F = (N = n.locale) == null ? void 0 : N.options) == null ? void 0 : F.firstWeekContainsDate) ?? 1, l = v((r == null ? void 0 : r.in) || a, 0);
|
|
501
|
+
l.setFullYear(t + 1, 0, o), l.setHours(0, 0, 0, 0);
|
|
502
|
+
const u = O(l, r), f = v((r == null ? void 0 : r.in) || a, 0);
|
|
503
|
+
f.setFullYear(t, 0, o), f.setHours(0, 0, 0, 0);
|
|
504
|
+
const m = O(f, r);
|
|
505
|
+
return +e >= +u ? t + 1 : +e >= +m ? t : t - 1;
|
|
506
|
+
}
|
|
507
|
+
function Wt(a, r) {
|
|
508
|
+
var u, f, m, b;
|
|
509
|
+
const e = H(), t = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((f = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.options) == null ? void 0 : f.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((b = (m = e.locale) == null ? void 0 : m.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, n = ve(a, r), o = v((r == null ? void 0 : r.in) || a, 0);
|
|
510
|
+
return o.setFullYear(n, 0, t), o.setHours(0, 0, 0, 0), O(o, r);
|
|
511
|
+
}
|
|
512
|
+
function At(a, r) {
|
|
513
|
+
const e = j(a, r == null ? void 0 : r.in), t = +O(e, r) - +Wt(e, r);
|
|
514
|
+
return Math.round(t / we) + 1;
|
|
515
|
+
}
|
|
516
|
+
const ue = (a, r) => {
|
|
517
|
+
switch (a) {
|
|
518
|
+
case "P":
|
|
519
|
+
return r.date({ width: "short" });
|
|
520
|
+
case "PP":
|
|
521
|
+
return r.date({ width: "medium" });
|
|
522
|
+
case "PPP":
|
|
523
|
+
return r.date({ width: "long" });
|
|
524
|
+
case "PPPP":
|
|
525
|
+
default:
|
|
526
|
+
return r.date({ width: "full" });
|
|
527
|
+
}
|
|
528
|
+
}, je = (a, r) => {
|
|
529
|
+
switch (a) {
|
|
530
|
+
case "p":
|
|
531
|
+
return r.time({ width: "short" });
|
|
532
|
+
case "pp":
|
|
533
|
+
return r.time({ width: "medium" });
|
|
534
|
+
case "ppp":
|
|
535
|
+
return r.time({ width: "long" });
|
|
536
|
+
case "pppp":
|
|
537
|
+
default:
|
|
538
|
+
return r.time({ width: "full" });
|
|
539
|
+
}
|
|
540
|
+
}, Lt = (a, r) => {
|
|
541
|
+
const e = a.match(/(P+)(p+)?/) || [], t = e[1], n = e[2];
|
|
542
|
+
if (!n)
|
|
543
|
+
return ue(a, r);
|
|
544
|
+
let o;
|
|
545
|
+
switch (t) {
|
|
546
|
+
case "P":
|
|
547
|
+
o = r.dateTime({ width: "short" });
|
|
548
|
+
break;
|
|
549
|
+
case "PP":
|
|
550
|
+
o = r.dateTime({ width: "medium" });
|
|
551
|
+
break;
|
|
552
|
+
case "PPP":
|
|
553
|
+
o = r.dateTime({ width: "long" });
|
|
554
|
+
break;
|
|
555
|
+
case "PPPP":
|
|
556
|
+
default:
|
|
557
|
+
o = r.dateTime({ width: "full" });
|
|
558
|
+
break;
|
|
559
|
+
}
|
|
560
|
+
return o.replace("{{date}}", ue(t, r)).replace("{{time}}", je(n, r));
|
|
561
|
+
}, ce = {
|
|
562
|
+
p: je,
|
|
563
|
+
P: Lt
|
|
564
|
+
}, Bt = /^D+$/, Ht = /^Y+$/, Rt = ["D", "DD", "YY", "YYYY"];
|
|
565
|
+
function zt(a) {
|
|
566
|
+
return Bt.test(a);
|
|
567
|
+
}
|
|
568
|
+
function qt(a) {
|
|
569
|
+
return Ht.test(a);
|
|
570
|
+
}
|
|
571
|
+
function fe(a, r, e) {
|
|
572
|
+
const t = Vt(a, r, e);
|
|
573
|
+
if (console.warn(t), Rt.includes(a)) throw new RangeError(t);
|
|
574
|
+
}
|
|
575
|
+
function Vt(a, r, e) {
|
|
576
|
+
const t = a[0] === "Y" ? "years" : "days of the month";
|
|
577
|
+
return `Use \`${a.toLowerCase()}\` instead of \`${a}\` (in \`${r}\`) for formatting ${t} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
578
|
+
}
|
|
579
|
+
function Qt() {
|
|
580
|
+
return Object.assign({}, H());
|
|
581
|
+
}
|
|
582
|
+
function $t(a, r) {
|
|
583
|
+
const e = j(a, r == null ? void 0 : r.in).getDay();
|
|
584
|
+
return e === 0 ? 7 : e;
|
|
585
|
+
}
|
|
586
|
+
function Gt(a, r) {
|
|
587
|
+
const e = Xt(r) ? new r(0) : v(r, 0);
|
|
588
|
+
return e.setFullYear(a.getFullYear(), a.getMonth(), a.getDate()), e.setHours(
|
|
589
|
+
a.getHours(),
|
|
590
|
+
a.getMinutes(),
|
|
591
|
+
a.getSeconds(),
|
|
592
|
+
a.getMilliseconds()
|
|
593
|
+
), e;
|
|
594
|
+
}
|
|
595
|
+
function Xt(a) {
|
|
596
|
+
var r;
|
|
597
|
+
return typeof a == "function" && ((r = a.prototype) == null ? void 0 : r.constructor) === a;
|
|
598
|
+
}
|
|
599
|
+
const Ut = 10;
|
|
600
|
+
class De {
|
|
601
|
+
constructor() {
|
|
602
|
+
s(this, "subPriority", 0);
|
|
603
|
+
}
|
|
604
|
+
validate(r, e) {
|
|
605
|
+
return !0;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
class Zt extends De {
|
|
609
|
+
constructor(r, e, t, n, o) {
|
|
610
|
+
super(), this.value = r, this.validateValue = e, this.setValue = t, this.priority = n, o && (this.subPriority = o);
|
|
611
|
+
}
|
|
612
|
+
validate(r, e) {
|
|
613
|
+
return this.validateValue(r, this.value, e);
|
|
614
|
+
}
|
|
615
|
+
set(r, e, t) {
|
|
616
|
+
return this.setValue(r, e, this.value, t);
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
class Jt extends De {
|
|
620
|
+
constructor(e, t) {
|
|
621
|
+
super();
|
|
622
|
+
s(this, "priority", Ut);
|
|
623
|
+
s(this, "subPriority", -1);
|
|
624
|
+
this.context = e || ((n) => v(t, n));
|
|
625
|
+
}
|
|
626
|
+
set(e, t) {
|
|
627
|
+
return t.timestampIsSet ? e : v(e, Gt(e, this.context));
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
class p {
|
|
631
|
+
run(r, e, t, n) {
|
|
632
|
+
const o = this.parse(r, e, t, n);
|
|
633
|
+
return o ? {
|
|
634
|
+
setter: new Zt(
|
|
635
|
+
o.value,
|
|
636
|
+
this.validate,
|
|
637
|
+
this.set,
|
|
638
|
+
this.priority,
|
|
639
|
+
this.subPriority
|
|
640
|
+
),
|
|
641
|
+
rest: o.rest
|
|
642
|
+
} : null;
|
|
643
|
+
}
|
|
644
|
+
validate(r, e, t) {
|
|
645
|
+
return !0;
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
class Kt extends p {
|
|
649
|
+
constructor() {
|
|
650
|
+
super(...arguments);
|
|
651
|
+
s(this, "priority", 140);
|
|
652
|
+
s(this, "incompatibleTokens", ["R", "u", "t", "T"]);
|
|
653
|
+
}
|
|
654
|
+
parse(e, t, n) {
|
|
655
|
+
switch (t) {
|
|
656
|
+
case "G":
|
|
657
|
+
case "GG":
|
|
658
|
+
case "GGG":
|
|
659
|
+
return n.era(e, { width: "abbreviated" }) || n.era(e, { width: "narrow" });
|
|
660
|
+
case "GGGGG":
|
|
661
|
+
return n.era(e, { width: "narrow" });
|
|
662
|
+
case "GGGG":
|
|
663
|
+
default:
|
|
664
|
+
return n.era(e, { width: "wide" }) || n.era(e, { width: "abbreviated" }) || n.era(e, { width: "narrow" });
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
set(e, t, n) {
|
|
668
|
+
return t.era = n, e.setFullYear(n, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
const g = {
|
|
672
|
+
month: /^(1[0-2]|0?\d)/,
|
|
673
|
+
// 0 to 12
|
|
674
|
+
date: /^(3[0-1]|[0-2]?\d)/,
|
|
675
|
+
// 0 to 31
|
|
676
|
+
dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
|
|
677
|
+
// 0 to 366
|
|
678
|
+
week: /^(5[0-3]|[0-4]?\d)/,
|
|
679
|
+
// 0 to 53
|
|
680
|
+
hour23h: /^(2[0-3]|[0-1]?\d)/,
|
|
681
|
+
// 0 to 23
|
|
682
|
+
hour24h: /^(2[0-4]|[0-1]?\d)/,
|
|
683
|
+
// 0 to 24
|
|
684
|
+
hour11h: /^(1[0-1]|0?\d)/,
|
|
685
|
+
// 0 to 11
|
|
686
|
+
hour12h: /^(1[0-2]|0?\d)/,
|
|
687
|
+
// 0 to 12
|
|
688
|
+
minute: /^[0-5]?\d/,
|
|
689
|
+
// 0 to 59
|
|
690
|
+
second: /^[0-5]?\d/,
|
|
691
|
+
// 0 to 59
|
|
692
|
+
singleDigit: /^\d/,
|
|
693
|
+
// 0 to 9
|
|
694
|
+
twoDigits: /^\d{1,2}/,
|
|
695
|
+
// 0 to 99
|
|
696
|
+
threeDigits: /^\d{1,3}/,
|
|
697
|
+
// 0 to 999
|
|
698
|
+
fourDigits: /^\d{1,4}/,
|
|
699
|
+
// 0 to 9999
|
|
700
|
+
anyDigitsSigned: /^-?\d+/,
|
|
701
|
+
singleDigitSigned: /^-?\d/,
|
|
702
|
+
// 0 to 9, -0 to -9
|
|
703
|
+
twoDigitsSigned: /^-?\d{1,2}/,
|
|
704
|
+
// 0 to 99, -0 to -99
|
|
705
|
+
threeDigitsSigned: /^-?\d{1,3}/,
|
|
706
|
+
// 0 to 999, -0 to -999
|
|
707
|
+
fourDigitsSigned: /^-?\d{1,4}/
|
|
708
|
+
// 0 to 9999, -0 to -9999
|
|
709
|
+
}, M = {
|
|
710
|
+
basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
|
|
711
|
+
basic: /^([+-])(\d{2})(\d{2})|Z/,
|
|
712
|
+
basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
|
|
713
|
+
extended: /^([+-])(\d{2}):(\d{2})|Z/,
|
|
714
|
+
extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
|
|
715
|
+
};
|
|
716
|
+
function k(a, r) {
|
|
717
|
+
return a && {
|
|
718
|
+
value: r(a.value),
|
|
719
|
+
rest: a.rest
|
|
720
|
+
};
|
|
721
|
+
}
|
|
722
|
+
function x(a, r) {
|
|
723
|
+
const e = r.match(a);
|
|
724
|
+
return e ? {
|
|
725
|
+
value: parseInt(e[0], 10),
|
|
726
|
+
rest: r.slice(e[0].length)
|
|
727
|
+
} : null;
|
|
728
|
+
}
|
|
729
|
+
function I(a, r) {
|
|
730
|
+
const e = r.match(a);
|
|
731
|
+
if (!e)
|
|
732
|
+
return null;
|
|
733
|
+
if (e[0] === "Z")
|
|
734
|
+
return {
|
|
735
|
+
value: 0,
|
|
736
|
+
rest: r.slice(1)
|
|
737
|
+
};
|
|
738
|
+
const t = e[1] === "+" ? 1 : -1, n = e[2] ? parseInt(e[2], 10) : 0, o = e[3] ? parseInt(e[3], 10) : 0, l = e[5] ? parseInt(e[5], 10) : 0;
|
|
739
|
+
return {
|
|
740
|
+
value: t * (n * Ue + o * Xe + l * Ze),
|
|
741
|
+
rest: r.slice(e[0].length)
|
|
742
|
+
};
|
|
743
|
+
}
|
|
744
|
+
function Te(a) {
|
|
745
|
+
return x(g.anyDigitsSigned, a);
|
|
746
|
+
}
|
|
747
|
+
function w(a, r) {
|
|
748
|
+
switch (a) {
|
|
749
|
+
case 1:
|
|
750
|
+
return x(g.singleDigit, r);
|
|
751
|
+
case 2:
|
|
752
|
+
return x(g.twoDigits, r);
|
|
753
|
+
case 3:
|
|
754
|
+
return x(g.threeDigits, r);
|
|
755
|
+
case 4:
|
|
756
|
+
return x(g.fourDigits, r);
|
|
757
|
+
default:
|
|
758
|
+
return x(new RegExp("^\\d{1," + a + "}"), r);
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
function V(a, r) {
|
|
762
|
+
switch (a) {
|
|
763
|
+
case 1:
|
|
764
|
+
return x(g.singleDigitSigned, r);
|
|
765
|
+
case 2:
|
|
766
|
+
return x(g.twoDigitsSigned, r);
|
|
767
|
+
case 3:
|
|
768
|
+
return x(g.threeDigitsSigned, r);
|
|
769
|
+
case 4:
|
|
770
|
+
return x(g.fourDigitsSigned, r);
|
|
771
|
+
default:
|
|
772
|
+
return x(new RegExp("^-?\\d{1," + a + "}"), r);
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
function S(a) {
|
|
776
|
+
switch (a) {
|
|
777
|
+
case "morning":
|
|
778
|
+
return 4;
|
|
779
|
+
case "evening":
|
|
780
|
+
return 17;
|
|
781
|
+
case "pm":
|
|
782
|
+
case "noon":
|
|
783
|
+
case "afternoon":
|
|
784
|
+
return 12;
|
|
785
|
+
case "am":
|
|
786
|
+
case "midnight":
|
|
787
|
+
case "night":
|
|
788
|
+
default:
|
|
789
|
+
return 0;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
function Ne(a, r) {
|
|
793
|
+
const e = r > 0, t = e ? r : 1 - r;
|
|
794
|
+
let n;
|
|
795
|
+
if (t <= 50)
|
|
796
|
+
n = a || 100;
|
|
797
|
+
else {
|
|
798
|
+
const o = t + 50, l = Math.trunc(o / 100) * 100, u = a >= o % 100;
|
|
799
|
+
n = a + l - (u ? 100 : 0);
|
|
800
|
+
}
|
|
801
|
+
return e ? n : 1 - n;
|
|
802
|
+
}
|
|
803
|
+
function Pe(a) {
|
|
804
|
+
return a % 400 === 0 || a % 4 === 0 && a % 100 !== 0;
|
|
805
|
+
}
|
|
806
|
+
class St extends p {
|
|
807
|
+
constructor() {
|
|
808
|
+
super(...arguments);
|
|
809
|
+
s(this, "priority", 130);
|
|
810
|
+
s(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
|
|
811
|
+
}
|
|
812
|
+
parse(e, t, n) {
|
|
813
|
+
const o = (l) => ({
|
|
814
|
+
year: l,
|
|
815
|
+
isTwoDigitYear: t === "yy"
|
|
816
|
+
});
|
|
817
|
+
switch (t) {
|
|
818
|
+
case "y":
|
|
819
|
+
return k(w(4, e), o);
|
|
820
|
+
case "yo":
|
|
821
|
+
return k(
|
|
822
|
+
n.ordinalNumber(e, {
|
|
823
|
+
unit: "year"
|
|
824
|
+
}),
|
|
825
|
+
o
|
|
826
|
+
);
|
|
827
|
+
default:
|
|
828
|
+
return k(w(t.length, e), o);
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
validate(e, t) {
|
|
832
|
+
return t.isTwoDigitYear || t.year > 0;
|
|
833
|
+
}
|
|
834
|
+
set(e, t, n) {
|
|
835
|
+
const o = e.getFullYear();
|
|
836
|
+
if (n.isTwoDigitYear) {
|
|
837
|
+
const u = Ne(
|
|
838
|
+
n.year,
|
|
839
|
+
o
|
|
840
|
+
);
|
|
841
|
+
return e.setFullYear(u, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
842
|
+
}
|
|
843
|
+
const l = !("era" in t) || t.era === 1 ? n.year : 1 - n.year;
|
|
844
|
+
return e.setFullYear(l, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
class er extends p {
|
|
848
|
+
constructor() {
|
|
849
|
+
super(...arguments);
|
|
850
|
+
s(this, "priority", 130);
|
|
851
|
+
s(this, "incompatibleTokens", [
|
|
852
|
+
"y",
|
|
853
|
+
"R",
|
|
854
|
+
"u",
|
|
855
|
+
"Q",
|
|
856
|
+
"q",
|
|
857
|
+
"M",
|
|
858
|
+
"L",
|
|
859
|
+
"I",
|
|
860
|
+
"d",
|
|
861
|
+
"D",
|
|
862
|
+
"i",
|
|
863
|
+
"t",
|
|
864
|
+
"T"
|
|
865
|
+
]);
|
|
866
|
+
}
|
|
867
|
+
parse(e, t, n) {
|
|
868
|
+
const o = (l) => ({
|
|
869
|
+
year: l,
|
|
870
|
+
isTwoDigitYear: t === "YY"
|
|
871
|
+
});
|
|
872
|
+
switch (t) {
|
|
873
|
+
case "Y":
|
|
874
|
+
return k(w(4, e), o);
|
|
875
|
+
case "Yo":
|
|
876
|
+
return k(
|
|
877
|
+
n.ordinalNumber(e, {
|
|
878
|
+
unit: "year"
|
|
879
|
+
}),
|
|
880
|
+
o
|
|
881
|
+
);
|
|
882
|
+
default:
|
|
883
|
+
return k(w(t.length, e), o);
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
validate(e, t) {
|
|
887
|
+
return t.isTwoDigitYear || t.year > 0;
|
|
888
|
+
}
|
|
889
|
+
set(e, t, n, o) {
|
|
890
|
+
const l = ve(e, o);
|
|
891
|
+
if (n.isTwoDigitYear) {
|
|
892
|
+
const f = Ne(
|
|
893
|
+
n.year,
|
|
894
|
+
l
|
|
895
|
+
);
|
|
896
|
+
return e.setFullYear(
|
|
897
|
+
f,
|
|
898
|
+
0,
|
|
899
|
+
o.firstWeekContainsDate
|
|
900
|
+
), e.setHours(0, 0, 0, 0), O(e, o);
|
|
901
|
+
}
|
|
902
|
+
const u = !("era" in t) || t.era === 1 ? n.year : 1 - n.year;
|
|
903
|
+
return e.setFullYear(u, 0, o.firstWeekContainsDate), e.setHours(0, 0, 0, 0), O(e, o);
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
class tr extends p {
|
|
907
|
+
constructor() {
|
|
908
|
+
super(...arguments);
|
|
909
|
+
s(this, "priority", 130);
|
|
910
|
+
s(this, "incompatibleTokens", [
|
|
911
|
+
"G",
|
|
912
|
+
"y",
|
|
913
|
+
"Y",
|
|
914
|
+
"u",
|
|
915
|
+
"Q",
|
|
916
|
+
"q",
|
|
917
|
+
"M",
|
|
918
|
+
"L",
|
|
919
|
+
"w",
|
|
920
|
+
"d",
|
|
921
|
+
"D",
|
|
922
|
+
"e",
|
|
923
|
+
"c",
|
|
924
|
+
"t",
|
|
925
|
+
"T"
|
|
926
|
+
]);
|
|
927
|
+
}
|
|
928
|
+
parse(e, t) {
|
|
929
|
+
return V(t === "R" ? 4 : t.length, e);
|
|
930
|
+
}
|
|
931
|
+
set(e, t, n) {
|
|
932
|
+
const o = v(e, 0);
|
|
933
|
+
return o.setFullYear(n, 0, 4), o.setHours(0, 0, 0, 0), W(o);
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
class rr extends p {
|
|
937
|
+
constructor() {
|
|
938
|
+
super(...arguments);
|
|
939
|
+
s(this, "priority", 130);
|
|
940
|
+
s(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
|
|
941
|
+
}
|
|
942
|
+
parse(e, t) {
|
|
943
|
+
return V(t === "u" ? 4 : t.length, e);
|
|
944
|
+
}
|
|
945
|
+
set(e, t, n) {
|
|
946
|
+
return e.setFullYear(n, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
class nr extends p {
|
|
950
|
+
constructor() {
|
|
951
|
+
super(...arguments);
|
|
952
|
+
s(this, "priority", 120);
|
|
953
|
+
s(this, "incompatibleTokens", [
|
|
954
|
+
"Y",
|
|
955
|
+
"R",
|
|
956
|
+
"q",
|
|
957
|
+
"M",
|
|
958
|
+
"L",
|
|
959
|
+
"w",
|
|
960
|
+
"I",
|
|
961
|
+
"d",
|
|
962
|
+
"D",
|
|
963
|
+
"i",
|
|
964
|
+
"e",
|
|
965
|
+
"c",
|
|
966
|
+
"t",
|
|
967
|
+
"T"
|
|
968
|
+
]);
|
|
969
|
+
}
|
|
970
|
+
parse(e, t, n) {
|
|
971
|
+
switch (t) {
|
|
972
|
+
case "Q":
|
|
973
|
+
case "QQ":
|
|
974
|
+
return w(t.length, e);
|
|
975
|
+
case "Qo":
|
|
976
|
+
return n.ordinalNumber(e, { unit: "quarter" });
|
|
977
|
+
case "QQQ":
|
|
978
|
+
return n.quarter(e, {
|
|
979
|
+
width: "abbreviated",
|
|
980
|
+
context: "formatting"
|
|
981
|
+
}) || n.quarter(e, {
|
|
982
|
+
width: "narrow",
|
|
983
|
+
context: "formatting"
|
|
984
|
+
});
|
|
985
|
+
case "QQQQQ":
|
|
986
|
+
return n.quarter(e, {
|
|
987
|
+
width: "narrow",
|
|
988
|
+
context: "formatting"
|
|
989
|
+
});
|
|
990
|
+
case "QQQQ":
|
|
991
|
+
default:
|
|
992
|
+
return n.quarter(e, {
|
|
993
|
+
width: "wide",
|
|
994
|
+
context: "formatting"
|
|
995
|
+
}) || n.quarter(e, {
|
|
996
|
+
width: "abbreviated",
|
|
997
|
+
context: "formatting"
|
|
998
|
+
}) || n.quarter(e, {
|
|
999
|
+
width: "narrow",
|
|
1000
|
+
context: "formatting"
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
validate(e, t) {
|
|
1005
|
+
return t >= 1 && t <= 4;
|
|
1006
|
+
}
|
|
1007
|
+
set(e, t, n) {
|
|
1008
|
+
return e.setMonth((n - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
class ar extends p {
|
|
1012
|
+
constructor() {
|
|
1013
|
+
super(...arguments);
|
|
1014
|
+
s(this, "priority", 120);
|
|
1015
|
+
s(this, "incompatibleTokens", [
|
|
1016
|
+
"Y",
|
|
1017
|
+
"R",
|
|
1018
|
+
"Q",
|
|
1019
|
+
"M",
|
|
1020
|
+
"L",
|
|
1021
|
+
"w",
|
|
1022
|
+
"I",
|
|
1023
|
+
"d",
|
|
1024
|
+
"D",
|
|
1025
|
+
"i",
|
|
1026
|
+
"e",
|
|
1027
|
+
"c",
|
|
1028
|
+
"t",
|
|
1029
|
+
"T"
|
|
1030
|
+
]);
|
|
1031
|
+
}
|
|
1032
|
+
parse(e, t, n) {
|
|
1033
|
+
switch (t) {
|
|
1034
|
+
case "q":
|
|
1035
|
+
case "qq":
|
|
1036
|
+
return w(t.length, e);
|
|
1037
|
+
case "qo":
|
|
1038
|
+
return n.ordinalNumber(e, { unit: "quarter" });
|
|
1039
|
+
case "qqq":
|
|
1040
|
+
return n.quarter(e, {
|
|
1041
|
+
width: "abbreviated",
|
|
1042
|
+
context: "standalone"
|
|
1043
|
+
}) || n.quarter(e, {
|
|
1044
|
+
width: "narrow",
|
|
1045
|
+
context: "standalone"
|
|
1046
|
+
});
|
|
1047
|
+
case "qqqqq":
|
|
1048
|
+
return n.quarter(e, {
|
|
1049
|
+
width: "narrow",
|
|
1050
|
+
context: "standalone"
|
|
1051
|
+
});
|
|
1052
|
+
case "qqqq":
|
|
1053
|
+
default:
|
|
1054
|
+
return n.quarter(e, {
|
|
1055
|
+
width: "wide",
|
|
1056
|
+
context: "standalone"
|
|
1057
|
+
}) || n.quarter(e, {
|
|
1058
|
+
width: "abbreviated",
|
|
1059
|
+
context: "standalone"
|
|
1060
|
+
}) || n.quarter(e, {
|
|
1061
|
+
width: "narrow",
|
|
1062
|
+
context: "standalone"
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
validate(e, t) {
|
|
1067
|
+
return t >= 1 && t <= 4;
|
|
1068
|
+
}
|
|
1069
|
+
set(e, t, n) {
|
|
1070
|
+
return e.setMonth((n - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
class or extends p {
|
|
1074
|
+
constructor() {
|
|
1075
|
+
super(...arguments);
|
|
1076
|
+
s(this, "incompatibleTokens", [
|
|
1077
|
+
"Y",
|
|
1078
|
+
"R",
|
|
1079
|
+
"q",
|
|
1080
|
+
"Q",
|
|
1081
|
+
"L",
|
|
1082
|
+
"w",
|
|
1083
|
+
"I",
|
|
1084
|
+
"D",
|
|
1085
|
+
"i",
|
|
1086
|
+
"e",
|
|
1087
|
+
"c",
|
|
1088
|
+
"t",
|
|
1089
|
+
"T"
|
|
1090
|
+
]);
|
|
1091
|
+
s(this, "priority", 110);
|
|
1092
|
+
}
|
|
1093
|
+
parse(e, t, n) {
|
|
1094
|
+
const o = (l) => l - 1;
|
|
1095
|
+
switch (t) {
|
|
1096
|
+
case "M":
|
|
1097
|
+
return k(
|
|
1098
|
+
x(g.month, e),
|
|
1099
|
+
o
|
|
1100
|
+
);
|
|
1101
|
+
case "MM":
|
|
1102
|
+
return k(w(2, e), o);
|
|
1103
|
+
case "Mo":
|
|
1104
|
+
return k(
|
|
1105
|
+
n.ordinalNumber(e, {
|
|
1106
|
+
unit: "month"
|
|
1107
|
+
}),
|
|
1108
|
+
o
|
|
1109
|
+
);
|
|
1110
|
+
case "MMM":
|
|
1111
|
+
return n.month(e, {
|
|
1112
|
+
width: "abbreviated",
|
|
1113
|
+
context: "formatting"
|
|
1114
|
+
}) || n.month(e, { width: "narrow", context: "formatting" });
|
|
1115
|
+
case "MMMMM":
|
|
1116
|
+
return n.month(e, {
|
|
1117
|
+
width: "narrow",
|
|
1118
|
+
context: "formatting"
|
|
1119
|
+
});
|
|
1120
|
+
case "MMMM":
|
|
1121
|
+
default:
|
|
1122
|
+
return n.month(e, { width: "wide", context: "formatting" }) || n.month(e, {
|
|
1123
|
+
width: "abbreviated",
|
|
1124
|
+
context: "formatting"
|
|
1125
|
+
}) || n.month(e, { width: "narrow", context: "formatting" });
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
validate(e, t) {
|
|
1129
|
+
return t >= 0 && t <= 11;
|
|
1130
|
+
}
|
|
1131
|
+
set(e, t, n) {
|
|
1132
|
+
return e.setMonth(n, 1), e.setHours(0, 0, 0, 0), e;
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
class ir extends p {
|
|
1136
|
+
constructor() {
|
|
1137
|
+
super(...arguments);
|
|
1138
|
+
s(this, "priority", 110);
|
|
1139
|
+
s(this, "incompatibleTokens", [
|
|
1140
|
+
"Y",
|
|
1141
|
+
"R",
|
|
1142
|
+
"q",
|
|
1143
|
+
"Q",
|
|
1144
|
+
"M",
|
|
1145
|
+
"w",
|
|
1146
|
+
"I",
|
|
1147
|
+
"D",
|
|
1148
|
+
"i",
|
|
1149
|
+
"e",
|
|
1150
|
+
"c",
|
|
1151
|
+
"t",
|
|
1152
|
+
"T"
|
|
1153
|
+
]);
|
|
1154
|
+
}
|
|
1155
|
+
parse(e, t, n) {
|
|
1156
|
+
const o = (l) => l - 1;
|
|
1157
|
+
switch (t) {
|
|
1158
|
+
case "L":
|
|
1159
|
+
return k(
|
|
1160
|
+
x(g.month, e),
|
|
1161
|
+
o
|
|
1162
|
+
);
|
|
1163
|
+
case "LL":
|
|
1164
|
+
return k(w(2, e), o);
|
|
1165
|
+
case "Lo":
|
|
1166
|
+
return k(
|
|
1167
|
+
n.ordinalNumber(e, {
|
|
1168
|
+
unit: "month"
|
|
1169
|
+
}),
|
|
1170
|
+
o
|
|
1171
|
+
);
|
|
1172
|
+
case "LLL":
|
|
1173
|
+
return n.month(e, {
|
|
1174
|
+
width: "abbreviated",
|
|
1175
|
+
context: "standalone"
|
|
1176
|
+
}) || n.month(e, { width: "narrow", context: "standalone" });
|
|
1177
|
+
case "LLLLL":
|
|
1178
|
+
return n.month(e, {
|
|
1179
|
+
width: "narrow",
|
|
1180
|
+
context: "standalone"
|
|
1181
|
+
});
|
|
1182
|
+
case "LLLL":
|
|
1183
|
+
default:
|
|
1184
|
+
return n.month(e, { width: "wide", context: "standalone" }) || n.month(e, {
|
|
1185
|
+
width: "abbreviated",
|
|
1186
|
+
context: "standalone"
|
|
1187
|
+
}) || n.month(e, { width: "narrow", context: "standalone" });
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
validate(e, t) {
|
|
1191
|
+
return t >= 0 && t <= 11;
|
|
1192
|
+
}
|
|
1193
|
+
set(e, t, n) {
|
|
1194
|
+
return e.setMonth(n, 1), e.setHours(0, 0, 0, 0), e;
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
function dr(a, r, e) {
|
|
1198
|
+
const t = j(a, e == null ? void 0 : e.in), n = At(t, e) - r;
|
|
1199
|
+
return t.setDate(t.getDate() - n * 7), j(t, e == null ? void 0 : e.in);
|
|
1200
|
+
}
|
|
1201
|
+
class lr extends p {
|
|
1202
|
+
constructor() {
|
|
1203
|
+
super(...arguments);
|
|
1204
|
+
s(this, "priority", 100);
|
|
1205
|
+
s(this, "incompatibleTokens", [
|
|
1206
|
+
"y",
|
|
1207
|
+
"R",
|
|
1208
|
+
"u",
|
|
1209
|
+
"q",
|
|
1210
|
+
"Q",
|
|
1211
|
+
"M",
|
|
1212
|
+
"L",
|
|
1213
|
+
"I",
|
|
1214
|
+
"d",
|
|
1215
|
+
"D",
|
|
1216
|
+
"i",
|
|
1217
|
+
"t",
|
|
1218
|
+
"T"
|
|
1219
|
+
]);
|
|
1220
|
+
}
|
|
1221
|
+
parse(e, t, n) {
|
|
1222
|
+
switch (t) {
|
|
1223
|
+
case "w":
|
|
1224
|
+
return x(g.week, e);
|
|
1225
|
+
case "wo":
|
|
1226
|
+
return n.ordinalNumber(e, { unit: "week" });
|
|
1227
|
+
default:
|
|
1228
|
+
return w(t.length, e);
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
validate(e, t) {
|
|
1232
|
+
return t >= 1 && t <= 53;
|
|
1233
|
+
}
|
|
1234
|
+
set(e, t, n, o) {
|
|
1235
|
+
return O(dr(e, n, o), o);
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
function sr(a, r, e) {
|
|
1239
|
+
const t = j(a, e == null ? void 0 : e.in), n = Yt(t, e) - r;
|
|
1240
|
+
return t.setDate(t.getDate() - n * 7), t;
|
|
1241
|
+
}
|
|
1242
|
+
class ur extends p {
|
|
1243
|
+
constructor() {
|
|
1244
|
+
super(...arguments);
|
|
1245
|
+
s(this, "priority", 100);
|
|
1246
|
+
s(this, "incompatibleTokens", [
|
|
1247
|
+
"y",
|
|
1248
|
+
"Y",
|
|
1249
|
+
"u",
|
|
1250
|
+
"q",
|
|
1251
|
+
"Q",
|
|
1252
|
+
"M",
|
|
1253
|
+
"L",
|
|
1254
|
+
"w",
|
|
1255
|
+
"d",
|
|
1256
|
+
"D",
|
|
1257
|
+
"e",
|
|
1258
|
+
"c",
|
|
1259
|
+
"t",
|
|
1260
|
+
"T"
|
|
1261
|
+
]);
|
|
1262
|
+
}
|
|
1263
|
+
parse(e, t, n) {
|
|
1264
|
+
switch (t) {
|
|
1265
|
+
case "I":
|
|
1266
|
+
return x(g.week, e);
|
|
1267
|
+
case "Io":
|
|
1268
|
+
return n.ordinalNumber(e, { unit: "week" });
|
|
1269
|
+
default:
|
|
1270
|
+
return w(t.length, e);
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
validate(e, t) {
|
|
1274
|
+
return t >= 1 && t <= 53;
|
|
1275
|
+
}
|
|
1276
|
+
set(e, t, n) {
|
|
1277
|
+
return W(sr(e, n));
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
const cr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], fr = [
|
|
1281
|
+
31,
|
|
1282
|
+
29,
|
|
1283
|
+
31,
|
|
1284
|
+
30,
|
|
1285
|
+
31,
|
|
1286
|
+
30,
|
|
1287
|
+
31,
|
|
1288
|
+
31,
|
|
1289
|
+
30,
|
|
1290
|
+
31,
|
|
1291
|
+
30,
|
|
1292
|
+
31
|
|
1293
|
+
];
|
|
1294
|
+
class mr extends p {
|
|
1295
|
+
constructor() {
|
|
1296
|
+
super(...arguments);
|
|
1297
|
+
s(this, "priority", 90);
|
|
1298
|
+
s(this, "subPriority", 1);
|
|
1299
|
+
s(this, "incompatibleTokens", [
|
|
1300
|
+
"Y",
|
|
1301
|
+
"R",
|
|
1302
|
+
"q",
|
|
1303
|
+
"Q",
|
|
1304
|
+
"w",
|
|
1305
|
+
"I",
|
|
1306
|
+
"D",
|
|
1307
|
+
"i",
|
|
1308
|
+
"e",
|
|
1309
|
+
"c",
|
|
1310
|
+
"t",
|
|
1311
|
+
"T"
|
|
1312
|
+
]);
|
|
1313
|
+
}
|
|
1314
|
+
parse(e, t, n) {
|
|
1315
|
+
switch (t) {
|
|
1316
|
+
case "d":
|
|
1317
|
+
return x(g.date, e);
|
|
1318
|
+
case "do":
|
|
1319
|
+
return n.ordinalNumber(e, { unit: "date" });
|
|
1320
|
+
default:
|
|
1321
|
+
return w(t.length, e);
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
validate(e, t) {
|
|
1325
|
+
const n = e.getFullYear(), o = Pe(n), l = e.getMonth();
|
|
1326
|
+
return o ? t >= 1 && t <= fr[l] : t >= 1 && t <= cr[l];
|
|
1327
|
+
}
|
|
1328
|
+
set(e, t, n) {
|
|
1329
|
+
return e.setDate(n), e.setHours(0, 0, 0, 0), e;
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
class hr extends p {
|
|
1333
|
+
constructor() {
|
|
1334
|
+
super(...arguments);
|
|
1335
|
+
s(this, "priority", 90);
|
|
1336
|
+
s(this, "subpriority", 1);
|
|
1337
|
+
s(this, "incompatibleTokens", [
|
|
1338
|
+
"Y",
|
|
1339
|
+
"R",
|
|
1340
|
+
"q",
|
|
1341
|
+
"Q",
|
|
1342
|
+
"M",
|
|
1343
|
+
"L",
|
|
1344
|
+
"w",
|
|
1345
|
+
"I",
|
|
1346
|
+
"d",
|
|
1347
|
+
"E",
|
|
1348
|
+
"i",
|
|
1349
|
+
"e",
|
|
1350
|
+
"c",
|
|
1351
|
+
"t",
|
|
1352
|
+
"T"
|
|
1353
|
+
]);
|
|
1354
|
+
}
|
|
1355
|
+
parse(e, t, n) {
|
|
1356
|
+
switch (t) {
|
|
1357
|
+
case "D":
|
|
1358
|
+
case "DD":
|
|
1359
|
+
return x(g.dayOfYear, e);
|
|
1360
|
+
case "Do":
|
|
1361
|
+
return n.ordinalNumber(e, { unit: "date" });
|
|
1362
|
+
default:
|
|
1363
|
+
return w(t.length, e);
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
validate(e, t) {
|
|
1367
|
+
const n = e.getFullYear();
|
|
1368
|
+
return Pe(n) ? t >= 1 && t <= 366 : t >= 1 && t <= 365;
|
|
1369
|
+
}
|
|
1370
|
+
set(e, t, n) {
|
|
1371
|
+
return e.setMonth(0, n), e.setHours(0, 0, 0, 0), e;
|
|
1372
|
+
}
|
|
1373
|
+
}
|
|
1374
|
+
function ee(a, r, e) {
|
|
1375
|
+
var c, N, F, E;
|
|
1376
|
+
const t = H(), n = (e == null ? void 0 : e.weekStartsOn) ?? ((N = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : N.weekStartsOn) ?? t.weekStartsOn ?? ((E = (F = t.locale) == null ? void 0 : F.options) == null ? void 0 : E.weekStartsOn) ?? 0, o = j(a, e == null ? void 0 : e.in), l = o.getDay(), f = (r % 7 + 7) % 7, m = 7 - n, b = r < 0 || r > 6 ? r - (l + m) % 7 : (f + m) % 7 - (l + m) % 7;
|
|
1377
|
+
return ge(o, b, e);
|
|
1378
|
+
}
|
|
1379
|
+
class pr extends p {
|
|
1380
|
+
constructor() {
|
|
1381
|
+
super(...arguments);
|
|
1382
|
+
s(this, "priority", 90);
|
|
1383
|
+
s(this, "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
|
|
1384
|
+
}
|
|
1385
|
+
parse(e, t, n) {
|
|
1386
|
+
switch (t) {
|
|
1387
|
+
case "E":
|
|
1388
|
+
case "EE":
|
|
1389
|
+
case "EEE":
|
|
1390
|
+
return n.day(e, {
|
|
1391
|
+
width: "abbreviated",
|
|
1392
|
+
context: "formatting"
|
|
1393
|
+
}) || n.day(e, { width: "short", context: "formatting" }) || n.day(e, { width: "narrow", context: "formatting" });
|
|
1394
|
+
case "EEEEE":
|
|
1395
|
+
return n.day(e, {
|
|
1396
|
+
width: "narrow",
|
|
1397
|
+
context: "formatting"
|
|
1398
|
+
});
|
|
1399
|
+
case "EEEEEE":
|
|
1400
|
+
return n.day(e, { width: "short", context: "formatting" }) || n.day(e, { width: "narrow", context: "formatting" });
|
|
1401
|
+
case "EEEE":
|
|
1402
|
+
default:
|
|
1403
|
+
return n.day(e, { width: "wide", context: "formatting" }) || n.day(e, {
|
|
1404
|
+
width: "abbreviated",
|
|
1405
|
+
context: "formatting"
|
|
1406
|
+
}) || n.day(e, { width: "short", context: "formatting" }) || n.day(e, { width: "narrow", context: "formatting" });
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
validate(e, t) {
|
|
1410
|
+
return t >= 0 && t <= 6;
|
|
1411
|
+
}
|
|
1412
|
+
set(e, t, n, o) {
|
|
1413
|
+
return e = ee(e, n, o), e.setHours(0, 0, 0, 0), e;
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
class xr extends p {
|
|
1417
|
+
constructor() {
|
|
1418
|
+
super(...arguments);
|
|
1419
|
+
s(this, "priority", 90);
|
|
1420
|
+
s(this, "incompatibleTokens", [
|
|
1421
|
+
"y",
|
|
1422
|
+
"R",
|
|
1423
|
+
"u",
|
|
1424
|
+
"q",
|
|
1425
|
+
"Q",
|
|
1426
|
+
"M",
|
|
1427
|
+
"L",
|
|
1428
|
+
"I",
|
|
1429
|
+
"d",
|
|
1430
|
+
"D",
|
|
1431
|
+
"E",
|
|
1432
|
+
"i",
|
|
1433
|
+
"c",
|
|
1434
|
+
"t",
|
|
1435
|
+
"T"
|
|
1436
|
+
]);
|
|
1437
|
+
}
|
|
1438
|
+
parse(e, t, n, o) {
|
|
1439
|
+
const l = (u) => {
|
|
1440
|
+
const f = Math.floor((u - 1) / 7) * 7;
|
|
1441
|
+
return (u + o.weekStartsOn + 6) % 7 + f;
|
|
1442
|
+
};
|
|
1443
|
+
switch (t) {
|
|
1444
|
+
case "e":
|
|
1445
|
+
case "ee":
|
|
1446
|
+
return k(w(t.length, e), l);
|
|
1447
|
+
case "eo":
|
|
1448
|
+
return k(
|
|
1449
|
+
n.ordinalNumber(e, {
|
|
1450
|
+
unit: "day"
|
|
1451
|
+
}),
|
|
1452
|
+
l
|
|
1453
|
+
);
|
|
1454
|
+
case "eee":
|
|
1455
|
+
return n.day(e, {
|
|
1456
|
+
width: "abbreviated",
|
|
1457
|
+
context: "formatting"
|
|
1458
|
+
}) || n.day(e, { width: "short", context: "formatting" }) || n.day(e, { width: "narrow", context: "formatting" });
|
|
1459
|
+
case "eeeee":
|
|
1460
|
+
return n.day(e, {
|
|
1461
|
+
width: "narrow",
|
|
1462
|
+
context: "formatting"
|
|
1463
|
+
});
|
|
1464
|
+
case "eeeeee":
|
|
1465
|
+
return n.day(e, { width: "short", context: "formatting" }) || n.day(e, { width: "narrow", context: "formatting" });
|
|
1466
|
+
case "eeee":
|
|
1467
|
+
default:
|
|
1468
|
+
return n.day(e, { width: "wide", context: "formatting" }) || n.day(e, {
|
|
1469
|
+
width: "abbreviated",
|
|
1470
|
+
context: "formatting"
|
|
1471
|
+
}) || n.day(e, { width: "short", context: "formatting" }) || n.day(e, { width: "narrow", context: "formatting" });
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
validate(e, t) {
|
|
1475
|
+
return t >= 0 && t <= 6;
|
|
1476
|
+
}
|
|
1477
|
+
set(e, t, n, o) {
|
|
1478
|
+
return e = ee(e, n, o), e.setHours(0, 0, 0, 0), e;
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
class br extends p {
|
|
1482
|
+
constructor() {
|
|
1483
|
+
super(...arguments);
|
|
1484
|
+
s(this, "priority", 90);
|
|
1485
|
+
s(this, "incompatibleTokens", [
|
|
1486
|
+
"y",
|
|
1487
|
+
"R",
|
|
1488
|
+
"u",
|
|
1489
|
+
"q",
|
|
1490
|
+
"Q",
|
|
1491
|
+
"M",
|
|
1492
|
+
"L",
|
|
1493
|
+
"I",
|
|
1494
|
+
"d",
|
|
1495
|
+
"D",
|
|
1496
|
+
"E",
|
|
1497
|
+
"i",
|
|
1498
|
+
"e",
|
|
1499
|
+
"t",
|
|
1500
|
+
"T"
|
|
1501
|
+
]);
|
|
1502
|
+
}
|
|
1503
|
+
parse(e, t, n, o) {
|
|
1504
|
+
const l = (u) => {
|
|
1505
|
+
const f = Math.floor((u - 1) / 7) * 7;
|
|
1506
|
+
return (u + o.weekStartsOn + 6) % 7 + f;
|
|
1507
|
+
};
|
|
1508
|
+
switch (t) {
|
|
1509
|
+
case "c":
|
|
1510
|
+
case "cc":
|
|
1511
|
+
return k(w(t.length, e), l);
|
|
1512
|
+
case "co":
|
|
1513
|
+
return k(
|
|
1514
|
+
n.ordinalNumber(e, {
|
|
1515
|
+
unit: "day"
|
|
1516
|
+
}),
|
|
1517
|
+
l
|
|
1518
|
+
);
|
|
1519
|
+
case "ccc":
|
|
1520
|
+
return n.day(e, {
|
|
1521
|
+
width: "abbreviated",
|
|
1522
|
+
context: "standalone"
|
|
1523
|
+
}) || n.day(e, { width: "short", context: "standalone" }) || n.day(e, { width: "narrow", context: "standalone" });
|
|
1524
|
+
case "ccccc":
|
|
1525
|
+
return n.day(e, {
|
|
1526
|
+
width: "narrow",
|
|
1527
|
+
context: "standalone"
|
|
1528
|
+
});
|
|
1529
|
+
case "cccccc":
|
|
1530
|
+
return n.day(e, { width: "short", context: "standalone" }) || n.day(e, { width: "narrow", context: "standalone" });
|
|
1531
|
+
case "cccc":
|
|
1532
|
+
default:
|
|
1533
|
+
return n.day(e, { width: "wide", context: "standalone" }) || n.day(e, {
|
|
1534
|
+
width: "abbreviated",
|
|
1535
|
+
context: "standalone"
|
|
1536
|
+
}) || n.day(e, { width: "short", context: "standalone" }) || n.day(e, { width: "narrow", context: "standalone" });
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
validate(e, t) {
|
|
1540
|
+
return t >= 0 && t <= 6;
|
|
1541
|
+
}
|
|
1542
|
+
set(e, t, n, o) {
|
|
1543
|
+
return e = ee(e, n, o), e.setHours(0, 0, 0, 0), e;
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
function yr(a, r, e) {
|
|
1547
|
+
const t = j(a, e == null ? void 0 : e.in), n = $t(t, e), o = r - n;
|
|
1548
|
+
return ge(t, o, e);
|
|
1549
|
+
}
|
|
1550
|
+
class wr extends p {
|
|
1551
|
+
constructor() {
|
|
1552
|
+
super(...arguments);
|
|
1553
|
+
s(this, "priority", 90);
|
|
1554
|
+
s(this, "incompatibleTokens", [
|
|
1555
|
+
"y",
|
|
1556
|
+
"Y",
|
|
1557
|
+
"u",
|
|
1558
|
+
"q",
|
|
1559
|
+
"Q",
|
|
1560
|
+
"M",
|
|
1561
|
+
"L",
|
|
1562
|
+
"w",
|
|
1563
|
+
"d",
|
|
1564
|
+
"D",
|
|
1565
|
+
"E",
|
|
1566
|
+
"e",
|
|
1567
|
+
"c",
|
|
1568
|
+
"t",
|
|
1569
|
+
"T"
|
|
1570
|
+
]);
|
|
1571
|
+
}
|
|
1572
|
+
parse(e, t, n) {
|
|
1573
|
+
const o = (l) => l === 0 ? 7 : l;
|
|
1574
|
+
switch (t) {
|
|
1575
|
+
case "i":
|
|
1576
|
+
case "ii":
|
|
1577
|
+
return w(t.length, e);
|
|
1578
|
+
case "io":
|
|
1579
|
+
return n.ordinalNumber(e, { unit: "day" });
|
|
1580
|
+
case "iii":
|
|
1581
|
+
return k(
|
|
1582
|
+
n.day(e, {
|
|
1583
|
+
width: "abbreviated",
|
|
1584
|
+
context: "formatting"
|
|
1585
|
+
}) || n.day(e, {
|
|
1586
|
+
width: "short",
|
|
1587
|
+
context: "formatting"
|
|
1588
|
+
}) || n.day(e, {
|
|
1589
|
+
width: "narrow",
|
|
1590
|
+
context: "formatting"
|
|
1591
|
+
}),
|
|
1592
|
+
o
|
|
1593
|
+
);
|
|
1594
|
+
case "iiiii":
|
|
1595
|
+
return k(
|
|
1596
|
+
n.day(e, {
|
|
1597
|
+
width: "narrow",
|
|
1598
|
+
context: "formatting"
|
|
1599
|
+
}),
|
|
1600
|
+
o
|
|
1601
|
+
);
|
|
1602
|
+
case "iiiiii":
|
|
1603
|
+
return k(
|
|
1604
|
+
n.day(e, {
|
|
1605
|
+
width: "short",
|
|
1606
|
+
context: "formatting"
|
|
1607
|
+
}) || n.day(e, {
|
|
1608
|
+
width: "narrow",
|
|
1609
|
+
context: "formatting"
|
|
1610
|
+
}),
|
|
1611
|
+
o
|
|
1612
|
+
);
|
|
1613
|
+
case "iiii":
|
|
1614
|
+
default:
|
|
1615
|
+
return k(
|
|
1616
|
+
n.day(e, {
|
|
1617
|
+
width: "wide",
|
|
1618
|
+
context: "formatting"
|
|
1619
|
+
}) || n.day(e, {
|
|
1620
|
+
width: "abbreviated",
|
|
1621
|
+
context: "formatting"
|
|
1622
|
+
}) || n.day(e, {
|
|
1623
|
+
width: "short",
|
|
1624
|
+
context: "formatting"
|
|
1625
|
+
}) || n.day(e, {
|
|
1626
|
+
width: "narrow",
|
|
1627
|
+
context: "formatting"
|
|
1628
|
+
}),
|
|
1629
|
+
o
|
|
1630
|
+
);
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
validate(e, t) {
|
|
1634
|
+
return t >= 1 && t <= 7;
|
|
1635
|
+
}
|
|
1636
|
+
set(e, t, n) {
|
|
1637
|
+
return e = yr(e, n), e.setHours(0, 0, 0, 0), e;
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
class gr extends p {
|
|
1641
|
+
constructor() {
|
|
1642
|
+
super(...arguments);
|
|
1643
|
+
s(this, "priority", 80);
|
|
1644
|
+
s(this, "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]);
|
|
1645
|
+
}
|
|
1646
|
+
parse(e, t, n) {
|
|
1647
|
+
switch (t) {
|
|
1648
|
+
case "a":
|
|
1649
|
+
case "aa":
|
|
1650
|
+
case "aaa":
|
|
1651
|
+
return n.dayPeriod(e, {
|
|
1652
|
+
width: "abbreviated",
|
|
1653
|
+
context: "formatting"
|
|
1654
|
+
}) || n.dayPeriod(e, {
|
|
1655
|
+
width: "narrow",
|
|
1656
|
+
context: "formatting"
|
|
1657
|
+
});
|
|
1658
|
+
case "aaaaa":
|
|
1659
|
+
return n.dayPeriod(e, {
|
|
1660
|
+
width: "narrow",
|
|
1661
|
+
context: "formatting"
|
|
1662
|
+
});
|
|
1663
|
+
case "aaaa":
|
|
1664
|
+
default:
|
|
1665
|
+
return n.dayPeriod(e, {
|
|
1666
|
+
width: "wide",
|
|
1667
|
+
context: "formatting"
|
|
1668
|
+
}) || n.dayPeriod(e, {
|
|
1669
|
+
width: "abbreviated",
|
|
1670
|
+
context: "formatting"
|
|
1671
|
+
}) || n.dayPeriod(e, {
|
|
1672
|
+
width: "narrow",
|
|
1673
|
+
context: "formatting"
|
|
1674
|
+
});
|
|
1675
|
+
}
|
|
1676
|
+
}
|
|
1677
|
+
set(e, t, n) {
|
|
1678
|
+
return e.setHours(S(n), 0, 0, 0), e;
|
|
1679
|
+
}
|
|
1680
|
+
}
|
|
1681
|
+
class kr extends p {
|
|
1682
|
+
constructor() {
|
|
1683
|
+
super(...arguments);
|
|
1684
|
+
s(this, "priority", 80);
|
|
1685
|
+
s(this, "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]);
|
|
1686
|
+
}
|
|
1687
|
+
parse(e, t, n) {
|
|
1688
|
+
switch (t) {
|
|
1689
|
+
case "b":
|
|
1690
|
+
case "bb":
|
|
1691
|
+
case "bbb":
|
|
1692
|
+
return n.dayPeriod(e, {
|
|
1693
|
+
width: "abbreviated",
|
|
1694
|
+
context: "formatting"
|
|
1695
|
+
}) || n.dayPeriod(e, {
|
|
1696
|
+
width: "narrow",
|
|
1697
|
+
context: "formatting"
|
|
1698
|
+
});
|
|
1699
|
+
case "bbbbb":
|
|
1700
|
+
return n.dayPeriod(e, {
|
|
1701
|
+
width: "narrow",
|
|
1702
|
+
context: "formatting"
|
|
1703
|
+
});
|
|
1704
|
+
case "bbbb":
|
|
1705
|
+
default:
|
|
1706
|
+
return n.dayPeriod(e, {
|
|
1707
|
+
width: "wide",
|
|
1708
|
+
context: "formatting"
|
|
1709
|
+
}) || n.dayPeriod(e, {
|
|
1710
|
+
width: "abbreviated",
|
|
1711
|
+
context: "formatting"
|
|
1712
|
+
}) || n.dayPeriod(e, {
|
|
1713
|
+
width: "narrow",
|
|
1714
|
+
context: "formatting"
|
|
1715
|
+
});
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
set(e, t, n) {
|
|
1719
|
+
return e.setHours(S(n), 0, 0, 0), e;
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
class vr extends p {
|
|
1723
|
+
constructor() {
|
|
1724
|
+
super(...arguments);
|
|
1725
|
+
s(this, "priority", 80);
|
|
1726
|
+
s(this, "incompatibleTokens", ["a", "b", "t", "T"]);
|
|
1727
|
+
}
|
|
1728
|
+
parse(e, t, n) {
|
|
1729
|
+
switch (t) {
|
|
1730
|
+
case "B":
|
|
1731
|
+
case "BB":
|
|
1732
|
+
case "BBB":
|
|
1733
|
+
return n.dayPeriod(e, {
|
|
1734
|
+
width: "abbreviated",
|
|
1735
|
+
context: "formatting"
|
|
1736
|
+
}) || n.dayPeriod(e, {
|
|
1737
|
+
width: "narrow",
|
|
1738
|
+
context: "formatting"
|
|
1739
|
+
});
|
|
1740
|
+
case "BBBBB":
|
|
1741
|
+
return n.dayPeriod(e, {
|
|
1742
|
+
width: "narrow",
|
|
1743
|
+
context: "formatting"
|
|
1744
|
+
});
|
|
1745
|
+
case "BBBB":
|
|
1746
|
+
default:
|
|
1747
|
+
return n.dayPeriod(e, {
|
|
1748
|
+
width: "wide",
|
|
1749
|
+
context: "formatting"
|
|
1750
|
+
}) || n.dayPeriod(e, {
|
|
1751
|
+
width: "abbreviated",
|
|
1752
|
+
context: "formatting"
|
|
1753
|
+
}) || n.dayPeriod(e, {
|
|
1754
|
+
width: "narrow",
|
|
1755
|
+
context: "formatting"
|
|
1756
|
+
});
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
set(e, t, n) {
|
|
1760
|
+
return e.setHours(S(n), 0, 0, 0), e;
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
class jr extends p {
|
|
1764
|
+
constructor() {
|
|
1765
|
+
super(...arguments);
|
|
1766
|
+
s(this, "priority", 70);
|
|
1767
|
+
s(this, "incompatibleTokens", ["H", "K", "k", "t", "T"]);
|
|
1768
|
+
}
|
|
1769
|
+
parse(e, t, n) {
|
|
1770
|
+
switch (t) {
|
|
1771
|
+
case "h":
|
|
1772
|
+
return x(g.hour12h, e);
|
|
1773
|
+
case "ho":
|
|
1774
|
+
return n.ordinalNumber(e, { unit: "hour" });
|
|
1775
|
+
default:
|
|
1776
|
+
return w(t.length, e);
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
validate(e, t) {
|
|
1780
|
+
return t >= 1 && t <= 12;
|
|
1781
|
+
}
|
|
1782
|
+
set(e, t, n) {
|
|
1783
|
+
const o = e.getHours() >= 12;
|
|
1784
|
+
return o && n < 12 ? e.setHours(n + 12, 0, 0, 0) : !o && n === 12 ? e.setHours(0, 0, 0, 0) : e.setHours(n, 0, 0, 0), e;
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
class Dr extends p {
|
|
1788
|
+
constructor() {
|
|
1789
|
+
super(...arguments);
|
|
1790
|
+
s(this, "priority", 70);
|
|
1791
|
+
s(this, "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
|
|
1792
|
+
}
|
|
1793
|
+
parse(e, t, n) {
|
|
1794
|
+
switch (t) {
|
|
1795
|
+
case "H":
|
|
1796
|
+
return x(g.hour23h, e);
|
|
1797
|
+
case "Ho":
|
|
1798
|
+
return n.ordinalNumber(e, { unit: "hour" });
|
|
1799
|
+
default:
|
|
1800
|
+
return w(t.length, e);
|
|
1801
|
+
}
|
|
1802
|
+
}
|
|
1803
|
+
validate(e, t) {
|
|
1804
|
+
return t >= 0 && t <= 23;
|
|
1805
|
+
}
|
|
1806
|
+
set(e, t, n) {
|
|
1807
|
+
return e.setHours(n, 0, 0, 0), e;
|
|
1808
|
+
}
|
|
1809
|
+
}
|
|
1810
|
+
class Tr extends p {
|
|
1811
|
+
constructor() {
|
|
1812
|
+
super(...arguments);
|
|
1813
|
+
s(this, "priority", 70);
|
|
1814
|
+
s(this, "incompatibleTokens", ["h", "H", "k", "t", "T"]);
|
|
1815
|
+
}
|
|
1816
|
+
parse(e, t, n) {
|
|
1817
|
+
switch (t) {
|
|
1818
|
+
case "K":
|
|
1819
|
+
return x(g.hour11h, e);
|
|
1820
|
+
case "Ko":
|
|
1821
|
+
return n.ordinalNumber(e, { unit: "hour" });
|
|
1822
|
+
default:
|
|
1823
|
+
return w(t.length, e);
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
validate(e, t) {
|
|
1827
|
+
return t >= 0 && t <= 11;
|
|
1828
|
+
}
|
|
1829
|
+
set(e, t, n) {
|
|
1830
|
+
return e.getHours() >= 12 && n < 12 ? e.setHours(n + 12, 0, 0, 0) : e.setHours(n, 0, 0, 0), e;
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
class Nr extends p {
|
|
1834
|
+
constructor() {
|
|
1835
|
+
super(...arguments);
|
|
1836
|
+
s(this, "priority", 70);
|
|
1837
|
+
s(this, "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
|
|
1838
|
+
}
|
|
1839
|
+
parse(e, t, n) {
|
|
1840
|
+
switch (t) {
|
|
1841
|
+
case "k":
|
|
1842
|
+
return x(g.hour24h, e);
|
|
1843
|
+
case "ko":
|
|
1844
|
+
return n.ordinalNumber(e, { unit: "hour" });
|
|
1845
|
+
default:
|
|
1846
|
+
return w(t.length, e);
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
validate(e, t) {
|
|
1850
|
+
return t >= 1 && t <= 24;
|
|
1851
|
+
}
|
|
1852
|
+
set(e, t, n) {
|
|
1853
|
+
const o = n <= 24 ? n % 24 : n;
|
|
1854
|
+
return e.setHours(o, 0, 0, 0), e;
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
class Pr extends p {
|
|
1858
|
+
constructor() {
|
|
1859
|
+
super(...arguments);
|
|
1860
|
+
s(this, "priority", 60);
|
|
1861
|
+
s(this, "incompatibleTokens", ["t", "T"]);
|
|
1862
|
+
}
|
|
1863
|
+
parse(e, t, n) {
|
|
1864
|
+
switch (t) {
|
|
1865
|
+
case "m":
|
|
1866
|
+
return x(g.minute, e);
|
|
1867
|
+
case "mo":
|
|
1868
|
+
return n.ordinalNumber(e, { unit: "minute" });
|
|
1869
|
+
default:
|
|
1870
|
+
return w(t.length, e);
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
validate(e, t) {
|
|
1874
|
+
return t >= 0 && t <= 59;
|
|
1875
|
+
}
|
|
1876
|
+
set(e, t, n) {
|
|
1877
|
+
return e.setMinutes(n, 0, 0), e;
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
class _r extends p {
|
|
1881
|
+
constructor() {
|
|
1882
|
+
super(...arguments);
|
|
1883
|
+
s(this, "priority", 50);
|
|
1884
|
+
s(this, "incompatibleTokens", ["t", "T"]);
|
|
1885
|
+
}
|
|
1886
|
+
parse(e, t, n) {
|
|
1887
|
+
switch (t) {
|
|
1888
|
+
case "s":
|
|
1889
|
+
return x(g.second, e);
|
|
1890
|
+
case "so":
|
|
1891
|
+
return n.ordinalNumber(e, { unit: "second" });
|
|
1892
|
+
default:
|
|
1893
|
+
return w(t.length, e);
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
validate(e, t) {
|
|
1897
|
+
return t >= 0 && t <= 59;
|
|
1898
|
+
}
|
|
1899
|
+
set(e, t, n) {
|
|
1900
|
+
return e.setSeconds(n, 0), e;
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
class Mr extends p {
|
|
1904
|
+
constructor() {
|
|
1905
|
+
super(...arguments);
|
|
1906
|
+
s(this, "priority", 30);
|
|
1907
|
+
s(this, "incompatibleTokens", ["t", "T"]);
|
|
1908
|
+
}
|
|
1909
|
+
parse(e, t) {
|
|
1910
|
+
const n = (o) => Math.trunc(o * Math.pow(10, -t.length + 3));
|
|
1911
|
+
return k(w(t.length, e), n);
|
|
1912
|
+
}
|
|
1913
|
+
set(e, t, n) {
|
|
1914
|
+
return e.setMilliseconds(n), e;
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
class Ir extends p {
|
|
1918
|
+
constructor() {
|
|
1919
|
+
super(...arguments);
|
|
1920
|
+
s(this, "priority", 10);
|
|
1921
|
+
s(this, "incompatibleTokens", ["t", "T", "x"]);
|
|
1922
|
+
}
|
|
1923
|
+
parse(e, t) {
|
|
1924
|
+
switch (t) {
|
|
1925
|
+
case "X":
|
|
1926
|
+
return I(
|
|
1927
|
+
M.basicOptionalMinutes,
|
|
1928
|
+
e
|
|
1929
|
+
);
|
|
1930
|
+
case "XX":
|
|
1931
|
+
return I(M.basic, e);
|
|
1932
|
+
case "XXXX":
|
|
1933
|
+
return I(
|
|
1934
|
+
M.basicOptionalSeconds,
|
|
1935
|
+
e
|
|
1936
|
+
);
|
|
1937
|
+
case "XXXXX":
|
|
1938
|
+
return I(
|
|
1939
|
+
M.extendedOptionalSeconds,
|
|
1940
|
+
e
|
|
1941
|
+
);
|
|
1942
|
+
case "XXX":
|
|
1943
|
+
default:
|
|
1944
|
+
return I(M.extended, e);
|
|
1945
|
+
}
|
|
1946
|
+
}
|
|
1947
|
+
set(e, t, n) {
|
|
1948
|
+
return t.timestampIsSet ? e : v(
|
|
1949
|
+
e,
|
|
1950
|
+
e.getTime() - ke(e) - n
|
|
1951
|
+
);
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
class Er extends p {
|
|
1955
|
+
constructor() {
|
|
1956
|
+
super(...arguments);
|
|
1957
|
+
s(this, "priority", 10);
|
|
1958
|
+
s(this, "incompatibleTokens", ["t", "T", "X"]);
|
|
1959
|
+
}
|
|
1960
|
+
parse(e, t) {
|
|
1961
|
+
switch (t) {
|
|
1962
|
+
case "x":
|
|
1963
|
+
return I(
|
|
1964
|
+
M.basicOptionalMinutes,
|
|
1965
|
+
e
|
|
1966
|
+
);
|
|
1967
|
+
case "xx":
|
|
1968
|
+
return I(M.basic, e);
|
|
1969
|
+
case "xxxx":
|
|
1970
|
+
return I(
|
|
1971
|
+
M.basicOptionalSeconds,
|
|
1972
|
+
e
|
|
1973
|
+
);
|
|
1974
|
+
case "xxxxx":
|
|
1975
|
+
return I(
|
|
1976
|
+
M.extendedOptionalSeconds,
|
|
1977
|
+
e
|
|
1978
|
+
);
|
|
1979
|
+
case "xxx":
|
|
1980
|
+
default:
|
|
1981
|
+
return I(M.extended, e);
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
set(e, t, n) {
|
|
1985
|
+
return t.timestampIsSet ? e : v(
|
|
1986
|
+
e,
|
|
1987
|
+
e.getTime() - ke(e) - n
|
|
1988
|
+
);
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
class Cr extends p {
|
|
1992
|
+
constructor() {
|
|
1993
|
+
super(...arguments);
|
|
1994
|
+
s(this, "priority", 40);
|
|
1995
|
+
s(this, "incompatibleTokens", "*");
|
|
1996
|
+
}
|
|
1997
|
+
parse(e) {
|
|
1998
|
+
return Te(e);
|
|
1999
|
+
}
|
|
2000
|
+
set(e, t, n) {
|
|
2001
|
+
return [v(e, n * 1e3), { timestampIsSet: !0 }];
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
2004
|
+
class Or extends p {
|
|
2005
|
+
constructor() {
|
|
2006
|
+
super(...arguments);
|
|
2007
|
+
s(this, "priority", 20);
|
|
2008
|
+
s(this, "incompatibleTokens", "*");
|
|
2009
|
+
}
|
|
2010
|
+
parse(e) {
|
|
2011
|
+
return Te(e);
|
|
2012
|
+
}
|
|
2013
|
+
set(e, t, n) {
|
|
2014
|
+
return [v(e, n), { timestampIsSet: !0 }];
|
|
2015
|
+
}
|
|
2016
|
+
}
|
|
2017
|
+
const Fr = {
|
|
2018
|
+
G: new Kt(),
|
|
2019
|
+
y: new St(),
|
|
2020
|
+
Y: new er(),
|
|
2021
|
+
R: new tr(),
|
|
2022
|
+
u: new rr(),
|
|
2023
|
+
Q: new nr(),
|
|
2024
|
+
q: new ar(),
|
|
2025
|
+
M: new or(),
|
|
2026
|
+
L: new ir(),
|
|
2027
|
+
w: new lr(),
|
|
2028
|
+
I: new ur(),
|
|
2029
|
+
d: new mr(),
|
|
2030
|
+
D: new hr(),
|
|
2031
|
+
E: new pr(),
|
|
2032
|
+
e: new xr(),
|
|
2033
|
+
c: new br(),
|
|
2034
|
+
i: new wr(),
|
|
2035
|
+
a: new gr(),
|
|
2036
|
+
b: new kr(),
|
|
2037
|
+
B: new vr(),
|
|
2038
|
+
h: new jr(),
|
|
2039
|
+
H: new Dr(),
|
|
2040
|
+
K: new Tr(),
|
|
2041
|
+
k: new Nr(),
|
|
2042
|
+
m: new Pr(),
|
|
2043
|
+
s: new _r(),
|
|
2044
|
+
S: new Mr(),
|
|
2045
|
+
X: new Ir(),
|
|
2046
|
+
x: new Er(),
|
|
2047
|
+
t: new Cr(),
|
|
2048
|
+
T: new Or()
|
|
2049
|
+
}, Yr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Wr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ar = /^'([^]*?)'?$/, Lr = /''/g, Br = /\S/, Hr = /[a-zA-Z]/;
|
|
2050
|
+
function _e(a, r, e, t) {
|
|
2051
|
+
var re, ne, ae, oe;
|
|
2052
|
+
const n = () => v(e, NaN), o = Qt(), l = o.locale ?? Ft, u = o.firstWeekContainsDate ?? ((ne = (re = o.locale) == null ? void 0 : re.options) == null ? void 0 : ne.firstWeekContainsDate) ?? 1, f = o.weekStartsOn ?? ((oe = (ae = o.locale) == null ? void 0 : ae.options) == null ? void 0 : oe.weekStartsOn) ?? 0;
|
|
2053
|
+
if (!r)
|
|
2054
|
+
return a ? n() : j(e, t == null ? void 0 : t.in);
|
|
2055
|
+
const m = {
|
|
2056
|
+
firstWeekContainsDate: u,
|
|
2057
|
+
weekStartsOn: f,
|
|
2058
|
+
locale: l
|
|
2059
|
+
}, b = [new Jt(t == null ? void 0 : t.in, e)], c = r.match(Wr).map((h) => {
|
|
2060
|
+
const y = h[0];
|
|
2061
|
+
if (y in ce) {
|
|
2062
|
+
const P = ce[y];
|
|
2063
|
+
return P(h, l.formatLong);
|
|
2064
|
+
}
|
|
2065
|
+
return h;
|
|
2066
|
+
}).join("").match(Yr), N = [];
|
|
2067
|
+
for (let h of c) {
|
|
2068
|
+
qt(h) && fe(h, r, a), zt(h) && fe(h, r, a);
|
|
2069
|
+
const y = h[0], P = Fr[y];
|
|
2070
|
+
if (P) {
|
|
2071
|
+
const { incompatibleTokens: ie } = P;
|
|
2072
|
+
if (Array.isArray(ie)) {
|
|
2073
|
+
const de = N.find(
|
|
2074
|
+
(le) => ie.includes(le.token) || le.token === y
|
|
2075
|
+
);
|
|
2076
|
+
if (de)
|
|
2077
|
+
throw new RangeError(
|
|
2078
|
+
`The format string mustn't contain \`${de.fullToken}\` and \`${h}\` at the same time`
|
|
2079
|
+
);
|
|
2080
|
+
} else if (P.incompatibleTokens === "*" && N.length > 0)
|
|
2081
|
+
throw new RangeError(
|
|
2082
|
+
`The format string mustn't contain \`${h}\` and any other token at the same time`
|
|
2083
|
+
);
|
|
2084
|
+
N.push({ token: y, fullToken: h });
|
|
2085
|
+
const U = P.run(
|
|
2086
|
+
a,
|
|
2087
|
+
h,
|
|
2088
|
+
l.match,
|
|
2089
|
+
m
|
|
2090
|
+
);
|
|
2091
|
+
if (!U)
|
|
2092
|
+
return n();
|
|
2093
|
+
b.push(U.setter), a = U.rest;
|
|
2094
|
+
} else {
|
|
2095
|
+
if (y.match(Hr))
|
|
2096
|
+
throw new RangeError(
|
|
2097
|
+
"Format string contains an unescaped latin alphabet character `" + y + "`"
|
|
2098
|
+
);
|
|
2099
|
+
if (h === "''" ? h = "'" : y === "'" && (h = Rr(h)), a.indexOf(h) === 0)
|
|
2100
|
+
a = a.slice(h.length);
|
|
2101
|
+
else
|
|
2102
|
+
return n();
|
|
2103
|
+
}
|
|
2104
|
+
}
|
|
2105
|
+
if (a.length > 0 && Br.test(a))
|
|
2106
|
+
return n();
|
|
2107
|
+
const F = b.map((h) => h.priority).sort((h, y) => y - h).filter((h, y, P) => P.indexOf(h) === y).map(
|
|
2108
|
+
(h) => b.filter((y) => y.priority === h).sort((y, P) => P.subPriority - y.subPriority)
|
|
2109
|
+
).map((h) => h[0]);
|
|
2110
|
+
let E = j(e, t == null ? void 0 : t.in);
|
|
2111
|
+
if (isNaN(+E)) return n();
|
|
2112
|
+
const te = {};
|
|
2113
|
+
for (const h of F) {
|
|
2114
|
+
if (!h.validate(E, m))
|
|
2115
|
+
return n();
|
|
2116
|
+
const y = h.set(E, te, m);
|
|
2117
|
+
Array.isArray(y) ? (E = y[0], Object.assign(te, y[1])) : E = y;
|
|
2118
|
+
}
|
|
2119
|
+
return E;
|
|
2120
|
+
}
|
|
2121
|
+
function Rr(a) {
|
|
2122
|
+
return a.match(Ar)[1].replace(Lr, "'");
|
|
2123
|
+
}
|
|
2124
|
+
const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = ({ children: a, className: r, ...e }) => /* @__PURE__ */ i.jsx("section", { className: d("pb-16 desktop:pb-20", r), ...e, children: a }), Y = ({ children: a, offset: r = !0, className: e, ...t }) => /* @__PURE__ */ i.jsx("div", { className: d("m-auto w-full max-w-[636px] desktop:max-w-[1140px]", { "mobile:px-4": r }, e), ...t, children: a }), zr = D("grid", {
|
|
6
2125
|
variants: {
|
|
7
2126
|
columnCount: {
|
|
8
2127
|
twoColumns: "grid-cols-[repeat(2,minmax(172px,_1fr))] desktop:grid-cols-[repeat(2,minmax(172px,_1fr))]",
|
|
9
2128
|
threeColumns: "grid-cols-[repeat(3,minmax(172px,_1fr))] desktop:grid-cols-[repeat(3,minmax(312px,_1fr))]"
|
|
10
2129
|
}
|
|
11
2130
|
}
|
|
12
|
-
}),
|
|
2131
|
+
}), qr = D("grid", {
|
|
13
2132
|
variants: {
|
|
14
2133
|
columnCount: {
|
|
15
2134
|
twoColumns: "",
|
|
@@ -42,7 +2161,7 @@ const Oe = (o, e) => JSON.stringify(o) === JSON.stringify(e), Se = (o) => o.spli
|
|
|
42
2161
|
class: "grid-cols-[repeat(3,_auto)]"
|
|
43
2162
|
}
|
|
44
2163
|
]
|
|
45
|
-
}),
|
|
2164
|
+
}), Vr = D("grid", {
|
|
46
2165
|
variants: {
|
|
47
2166
|
columnCount: {
|
|
48
2167
|
twoColumns: "",
|
|
@@ -55,7 +2174,7 @@ const Oe = (o, e) => JSON.stringify(o) === JSON.stringify(e), Se = (o) => o.spli
|
|
|
55
2174
|
class: "overflow-x-scroll max-w-[368px] mb-1"
|
|
56
2175
|
}
|
|
57
2176
|
]
|
|
58
|
-
}),
|
|
2177
|
+
}), Qr = D("border-b border-warm-grey-200 py-4 desktop:desk-body-regular-l mob-body-regular-l", {
|
|
59
2178
|
variants: {
|
|
60
2179
|
columnCount: {
|
|
61
2180
|
twoColumns: "",
|
|
@@ -73,65 +2192,65 @@ const Oe = (o, e) => JSON.stringify(o) === JSON.stringify(e), Se = (o) => o.spli
|
|
|
73
2192
|
class: "border-transparent border-0 p-0"
|
|
74
2193
|
}
|
|
75
2194
|
]
|
|
76
|
-
}),
|
|
77
|
-
headTitle:
|
|
78
|
-
tableRows:
|
|
79
|
-
tableHead:
|
|
80
|
-
additionalText:
|
|
2195
|
+
}), Cn = ({
|
|
2196
|
+
headTitle: a,
|
|
2197
|
+
tableRows: r,
|
|
2198
|
+
tableHead: e,
|
|
2199
|
+
additionalText: t,
|
|
81
2200
|
columnCount: n,
|
|
82
|
-
classes:
|
|
2201
|
+
classes: o
|
|
83
2202
|
}) => {
|
|
84
|
-
const l =
|
|
85
|
-
return /* @__PURE__ */
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
/* @__PURE__ */
|
|
2203
|
+
const l = e && e.length > 0 ? "exist" : "notExist";
|
|
2204
|
+
return /* @__PURE__ */ i.jsx(Y, { children: /* @__PURE__ */ i.jsxs("div", { className: d("flex flex-col", o == null ? void 0 : o.tableRootWrapper), children: [
|
|
2205
|
+
/* @__PURE__ */ i.jsx(A, { as: "h3", className: d("mob-title-bold-m pb-6 desktop:desk-title-bold-s", o == null ? void 0 : o.tableHeading), children: a }),
|
|
2206
|
+
/* @__PURE__ */ i.jsxs("div", { className: d(Vr({ columnCount: n }), o == null ? void 0 : o.tableBody), children: [
|
|
2207
|
+
/* @__PURE__ */ i.jsx("ul", { className: d(zr({ columnCount: n }), o == null ? void 0 : o.tableTitlesContainer), children: e == null ? void 0 : e.map((u) => /* @__PURE__ */ i.jsx(
|
|
89
2208
|
"li",
|
|
90
2209
|
{
|
|
91
|
-
className:
|
|
2210
|
+
className: d(
|
|
92
2211
|
"mob-body-regular-l border-b border-warm-grey-200 py-4 desktop:desk-body-regular-l",
|
|
93
|
-
|
|
2212
|
+
o == null ? void 0 : o.tableTitleRow
|
|
94
2213
|
),
|
|
95
2214
|
children: u
|
|
96
2215
|
},
|
|
97
2216
|
u
|
|
98
2217
|
)) }),
|
|
99
|
-
/* @__PURE__ */
|
|
2218
|
+
/* @__PURE__ */ i.jsx("ul", { className: d("mb-4 flex flex-col", o == null ? void 0 : o.tableBodyContainer), children: r.map((u, f) => /* @__PURE__ */ i.jsx("li", { className: d(qr({ columnCount: n, titlesExist: l }), o == null ? void 0 : o.tableBodyRow), children: u.map((m, b) => /* @__PURE__ */ i.jsx("p", { className: d(Qr({ titlesExist: l, columnCount: n }), o == null ? void 0 : o.tableBodyCeil), children: m.text }, b)) }, f)) })
|
|
100
2219
|
] }),
|
|
101
|
-
/* @__PURE__ */
|
|
2220
|
+
/* @__PURE__ */ i.jsx("p", { className: d("mob-body-regular-m desktop:desk-body-regular-l", o == null ? void 0 : o.tableAdditionalText), children: t })
|
|
102
2221
|
] }) });
|
|
103
|
-
},
|
|
2222
|
+
}, On = ({ linksList: a }) => /* @__PURE__ */ i.jsx("div", { "aria-label": "Breadcrumb", className: "flex max-w-[840px] items-center gap-2", children: a.map((r) => /* @__PURE__ */ i.jsx(i.Fragment, { children: "path" in r ? /* @__PURE__ */ i.jsxs(
|
|
104
2223
|
"div",
|
|
105
2224
|
{
|
|
106
|
-
className:
|
|
2225
|
+
className: d(
|
|
107
2226
|
"flex items-center gap-1 rounded-sm border-2 border-solid border-transparent px-1 focus-within:border-primary-focus",
|
|
108
|
-
{ "pointer-events-none !border-transparent":
|
|
2227
|
+
{ "pointer-events-none !border-transparent": r == null ? void 0 : r.isDisabled }
|
|
109
2228
|
),
|
|
110
2229
|
children: [
|
|
111
|
-
/* @__PURE__ */
|
|
2230
|
+
/* @__PURE__ */ i.jsx(
|
|
112
2231
|
"a",
|
|
113
2232
|
{
|
|
114
|
-
href:
|
|
2233
|
+
href: r.path,
|
|
115
2234
|
target: "_blank",
|
|
116
2235
|
rel: "noreferrer",
|
|
117
|
-
className:
|
|
2236
|
+
className: d(
|
|
118
2237
|
"desk-body-regular-m text-color-primary-default outline-none hover:text-color-primary-hover focus:text-color-primary-default",
|
|
119
|
-
{ "!text-color-disabled":
|
|
2238
|
+
{ "!text-color-disabled": r == null ? void 0 : r.isDisabled }
|
|
120
2239
|
),
|
|
121
|
-
children:
|
|
2240
|
+
children: r.label
|
|
122
2241
|
}
|
|
123
2242
|
),
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
|
|
2243
|
+
/* @__PURE__ */ i.jsx(
|
|
2244
|
+
T,
|
|
126
2245
|
{
|
|
127
2246
|
name: "arrows/arrowRight",
|
|
128
|
-
className:
|
|
2247
|
+
className: d("size-4 text-icon-primary-default", { "!text-icon-disabled": r == null ? void 0 : r.isDisabled })
|
|
129
2248
|
}
|
|
130
2249
|
)
|
|
131
2250
|
]
|
|
132
2251
|
}
|
|
133
|
-
) : /* @__PURE__ */
|
|
134
|
-
switch (
|
|
2252
|
+
) : /* @__PURE__ */ i.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: r.label }) })) }), $r = (a) => {
|
|
2253
|
+
switch (a) {
|
|
135
2254
|
case "ghost":
|
|
136
2255
|
case "secondary":
|
|
137
2256
|
return "secondary";
|
|
@@ -139,9 +2258,9 @@ const Oe = (o, e) => JSON.stringify(o) === JSON.stringify(e), Se = (o) => o.spli
|
|
|
139
2258
|
case "negative":
|
|
140
2259
|
return "primary";
|
|
141
2260
|
default:
|
|
142
|
-
return
|
|
2261
|
+
return a;
|
|
143
2262
|
}
|
|
144
|
-
},
|
|
2263
|
+
}, Gr = D(
|
|
145
2264
|
"relative flex items-center justify-center gap-4 cursor-pointer rounded-sm w-max px-4 outline-offset-4 outline-transparent outline-2 desk-body-regular-l transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
|
|
146
2265
|
{
|
|
147
2266
|
variants: {
|
|
@@ -199,36 +2318,36 @@ const Oe = (o, e) => JSON.stringify(o) === JSON.stringify(e), Se = (o) => o.spli
|
|
|
199
2318
|
isFull: !1
|
|
200
2319
|
}
|
|
201
2320
|
}
|
|
202
|
-
),
|
|
2321
|
+
), Q = ye(
|
|
203
2322
|
({
|
|
204
|
-
intent:
|
|
205
|
-
size:
|
|
206
|
-
className:
|
|
207
|
-
children:
|
|
2323
|
+
intent: a,
|
|
2324
|
+
size: r,
|
|
2325
|
+
className: e,
|
|
2326
|
+
children: t,
|
|
208
2327
|
type: n = "button",
|
|
209
|
-
iconLeft:
|
|
2328
|
+
iconLeft: o,
|
|
210
2329
|
iconRight: l,
|
|
211
2330
|
disabled: u = !1,
|
|
212
|
-
isLoading:
|
|
213
|
-
isFull:
|
|
214
|
-
textFormat:
|
|
215
|
-
...
|
|
216
|
-
},
|
|
2331
|
+
isLoading: f = !1,
|
|
2332
|
+
isFull: m = !1,
|
|
2333
|
+
textFormat: b,
|
|
2334
|
+
...c
|
|
2335
|
+
}, N) => /* @__PURE__ */ i.jsx(
|
|
217
2336
|
"button",
|
|
218
2337
|
{
|
|
219
|
-
ref:
|
|
2338
|
+
ref: N,
|
|
220
2339
|
type: n,
|
|
221
|
-
disabled: u ||
|
|
222
|
-
className:
|
|
223
|
-
...
|
|
224
|
-
children:
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
l && /* @__PURE__ */
|
|
2340
|
+
disabled: u || f,
|
|
2341
|
+
className: d(Gr({ intent: a, size: r, textFormat: b, isLoading: f, isFull: m }), e),
|
|
2342
|
+
...c,
|
|
2343
|
+
children: f ? /* @__PURE__ */ i.jsx($e, { size: "sm", intent: $r(a) }) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
2344
|
+
o && /* @__PURE__ */ i.jsx("span", { className: "flex size-5 items-center justify-center", children: o }),
|
|
2345
|
+
t,
|
|
2346
|
+
l && /* @__PURE__ */ i.jsx("span", { className: "flex size-5 items-center justify-center", children: l })
|
|
228
2347
|
] })
|
|
229
2348
|
}
|
|
230
2349
|
)
|
|
231
|
-
),
|
|
2350
|
+
), Xr = D(
|
|
232
2351
|
"group flex items-center justify-center cursor-pointer rounded-full outline-offset-[3px] outline-transparent outline-2 transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
|
|
233
2352
|
{
|
|
234
2353
|
variants: {
|
|
@@ -248,9 +2367,9 @@ const Oe = (o, e) => JSON.stringify(o) === JSON.stringify(e), Se = (o) => o.spli
|
|
|
248
2367
|
size: "lg"
|
|
249
2368
|
}
|
|
250
2369
|
}
|
|
251
|
-
),
|
|
252
|
-
({ size:
|
|
253
|
-
),
|
|
2370
|
+
), Fn = ye(
|
|
2371
|
+
({ size: a, intent: r, children: e, classes: t, type: n = "button", ...o }, l) => /* @__PURE__ */ i.jsx("button", { ref: l, type: n, className: d(Xr({ intent: r, size: a }), t == null ? void 0 : t.button), ...o, children: /* @__PURE__ */ i.jsx("span", { className: d(t == null ? void 0 : t.icon), children: e }) })
|
|
2372
|
+
), Ur = D(
|
|
254
2373
|
"group underline underline-offset-4 outline-none p-[2px] rounded-sm border border-solid border-transparent",
|
|
255
2374
|
{
|
|
256
2375
|
variants: {
|
|
@@ -278,7 +2397,7 @@ const Oe = (o, e) => JSON.stringify(o) === JSON.stringify(e), Se = (o) => o.spli
|
|
|
278
2397
|
size: "sm"
|
|
279
2398
|
}
|
|
280
2399
|
}
|
|
281
|
-
),
|
|
2400
|
+
), Zr = D("size-6", {
|
|
282
2401
|
variants: {
|
|
283
2402
|
intent: {
|
|
284
2403
|
blue: "text-icon-primary-default group-hover:text-icon-primary-hover group-focus:text-icon-primary-default ",
|
|
@@ -293,19 +2412,19 @@ const Oe = (o, e) => JSON.stringify(o) === JSON.stringify(e), Se = (o) => o.spli
|
|
|
293
2412
|
intent: "blue",
|
|
294
2413
|
disabled: !1
|
|
295
2414
|
}
|
|
296
|
-
}),
|
|
297
|
-
Component:
|
|
298
|
-
intent:
|
|
299
|
-
children:
|
|
300
|
-
withIcon:
|
|
2415
|
+
}), Yn = ({
|
|
2416
|
+
Component: a = "a",
|
|
2417
|
+
intent: r,
|
|
2418
|
+
children: e,
|
|
2419
|
+
withIcon: t,
|
|
301
2420
|
disabled: n,
|
|
302
|
-
size:
|
|
2421
|
+
size: o,
|
|
303
2422
|
icon: l = "arrows/arrowLink",
|
|
304
2423
|
...u
|
|
305
|
-
}) => /* @__PURE__ */
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
] }),
|
|
2424
|
+
}) => /* @__PURE__ */ i.jsxs(a, { className: d(Ur({ intent: r, withIcon: t, disabled: n, size: o })), ...u, children: [
|
|
2425
|
+
e,
|
|
2426
|
+
t && /* @__PURE__ */ i.jsx(T, { name: l, className: d(Zr({ intent: r, disabled: n })) })
|
|
2427
|
+
] }), Jr = D("size-8 transition-colors", {
|
|
309
2428
|
variants: {
|
|
310
2429
|
intent: {
|
|
311
2430
|
outline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
|
|
@@ -315,64 +2434,64 @@ const Oe = (o, e) => JSON.stringify(o) === JSON.stringify(e), Se = (o) => o.spli
|
|
|
315
2434
|
defaultVariants: {
|
|
316
2435
|
intent: "outline"
|
|
317
2436
|
}
|
|
318
|
-
}),
|
|
2437
|
+
}), Kr = {
|
|
319
2438
|
filled: "files/documentFilled",
|
|
320
2439
|
outline: "files/documentOutline"
|
|
321
|
-
},
|
|
2440
|
+
}, Wn = ({ text: a, size: r, sizeType: e, href: t, intent: n = "outline" }) => /* @__PURE__ */ i.jsxs(
|
|
322
2441
|
"a",
|
|
323
2442
|
{
|
|
324
|
-
href:
|
|
2443
|
+
href: t,
|
|
325
2444
|
target: "_blank",
|
|
326
2445
|
rel: "noreferrer",
|
|
327
2446
|
tabIndex: 0,
|
|
328
|
-
className:
|
|
329
|
-
"group flex
|
|
2447
|
+
className: d(
|
|
2448
|
+
"group flex cursor-pointer items-center gap-2 rounded-sm p-1 outline outline-2 outline-transparent transition-colors focus-within:outline-primary-focus desktop:max-w-[592px]"
|
|
330
2449
|
),
|
|
331
2450
|
children: [
|
|
332
|
-
/* @__PURE__ */
|
|
333
|
-
/* @__PURE__ */
|
|
334
|
-
/* @__PURE__ */
|
|
335
|
-
/* @__PURE__ */
|
|
336
|
-
|
|
2451
|
+
/* @__PURE__ */ i.jsx(T, { name: Kr[n], className: d(Jr({ intent: n })) }),
|
|
2452
|
+
/* @__PURE__ */ i.jsxs("div", { className: d("flex flex-1 flex-col"), children: [
|
|
2453
|
+
/* @__PURE__ */ i.jsx("p", { className: d("desk-body-medium-l text-color-dark"), children: a }),
|
|
2454
|
+
/* @__PURE__ */ i.jsxs("div", { className: d("desk-body-regular-m text-color-disabled"), children: [
|
|
2455
|
+
r,
|
|
337
2456
|
" ",
|
|
338
|
-
|
|
2457
|
+
e
|
|
339
2458
|
] })
|
|
340
2459
|
] })
|
|
341
2460
|
]
|
|
342
2461
|
}
|
|
343
|
-
),
|
|
344
|
-
/* @__PURE__ */
|
|
345
|
-
/* @__PURE__ */
|
|
346
|
-
] }),
|
|
347
|
-
|
|
348
|
-
/* @__PURE__ */
|
|
349
|
-
/* @__PURE__ */
|
|
2462
|
+
), Ie = ({ phone: a, text: r, classes: e }) => /* @__PURE__ */ i.jsxs("div", { className: d("flex w-max flex-col", e == null ? void 0 : e.wrapper), children: [
|
|
2463
|
+
/* @__PURE__ */ i.jsx("a", { href: `tel:${a}`, className: d("desk-body-regular-s ml-auto text-color-dark", e == null ? void 0 : e.link), children: a }),
|
|
2464
|
+
/* @__PURE__ */ i.jsx("p", { className: d("desk-body-regular-l text-color-tetriary", e == null ? void 0 : e.text), children: r })
|
|
2465
|
+
] }), An = ({ topContent: a, bottomContent: r, progress: e, maxPercent: t = 100, classes: n }) => /* @__PURE__ */ i.jsxs("div", { className: d("flex w-full flex-col", n == null ? void 0 : n.wrapper), children: [
|
|
2466
|
+
a && /* @__PURE__ */ i.jsx("div", { className: d("mb-2 flex justify-between gap-5", n == null ? void 0 : n.topContent), children: a }),
|
|
2467
|
+
/* @__PURE__ */ i.jsxs("div", { className: d("relative h-2 w-[328xp] rounded-md bg-color-blue-grey-100 desktop:w-[524px]", n == null ? void 0 : n.progressBar), children: [
|
|
2468
|
+
/* @__PURE__ */ i.jsx(
|
|
350
2469
|
"div",
|
|
351
2470
|
{
|
|
352
|
-
style: { width: `${
|
|
353
|
-
className:
|
|
2471
|
+
style: { width: `${e}%` },
|
|
2472
|
+
className: d("relative z-10 h-2 rounded-md bg-color-positive transition-all", n == null ? void 0 : n.progress)
|
|
354
2473
|
}
|
|
355
2474
|
),
|
|
356
|
-
/* @__PURE__ */
|
|
2475
|
+
/* @__PURE__ */ i.jsx(
|
|
357
2476
|
"span",
|
|
358
2477
|
{
|
|
359
|
-
style: { maxWidth: `${
|
|
360
|
-
className:
|
|
2478
|
+
style: { maxWidth: `${t}%` },
|
|
2479
|
+
className: d(
|
|
361
2480
|
"progressBar-apply z-1 absolute top-1/2 h-full w-full -translate-y-1/2 animate-progress-loader rounded-md",
|
|
362
2481
|
n == null ? void 0 : n.loader
|
|
363
2482
|
)
|
|
364
2483
|
}
|
|
365
2484
|
)
|
|
366
2485
|
] }),
|
|
367
|
-
|
|
368
|
-
] }),
|
|
369
|
-
main: /* @__PURE__ */
|
|
370
|
-
white: /* @__PURE__ */
|
|
371
|
-
gray: /* @__PURE__ */
|
|
372
|
-
black: /* @__PURE__ */
|
|
373
|
-
business: /* @__PURE__ */
|
|
374
|
-
insurance: /* @__PURE__ */
|
|
375
|
-
},
|
|
2486
|
+
r && /* @__PURE__ */ i.jsx("div", { className: d("mt-2 flex justify-between gap-5", n == null ? void 0 : n.bottomContent), children: r })
|
|
2487
|
+
] }), Ln = ({ className: a }) => /* @__PURE__ */ i.jsx("div", { className: d("skeleton-apply h-full w-full", a) }), Sr = {
|
|
2488
|
+
main: /* @__PURE__ */ i.jsx(T, { name: "brandLogos/logoMain" }),
|
|
2489
|
+
white: /* @__PURE__ */ i.jsx(T, { name: "brandLogos/logoWhite" }),
|
|
2490
|
+
gray: /* @__PURE__ */ i.jsx(T, { name: "brandLogos/logoGray" }),
|
|
2491
|
+
black: /* @__PURE__ */ i.jsx(T, { name: "brandLogos/logoBlack" }),
|
|
2492
|
+
business: /* @__PURE__ */ i.jsx(T, { name: "brandLogos/logoBusiness" }),
|
|
2493
|
+
insurance: /* @__PURE__ */ i.jsx(T, { name: "brandLogos/logoInsurance" })
|
|
2494
|
+
}, en = /^[\u0400-\u04FF\u00CB\u00EB -]+$/, me = /^(?:[^-]+(?:-[^-]+){0,4}|[^-]+)$/, tn = /^[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4}(?:\s+[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4})?$/i, q = {
|
|
376
2495
|
REQUIRED: "Поле обязательно к заполнению",
|
|
377
2496
|
MIN_LENGTH: "Минимальная длина символов должна быть не менее",
|
|
378
2497
|
MAX_LENGTH: "Максимальная длина символов должна быть не более",
|
|
@@ -383,50 +2502,50 @@ const Oe = (o, e) => JSON.stringify(o) === JSON.stringify(e), Se = (o) => o.spli
|
|
|
383
2502
|
INVALID_VALUE: "Поле заполнено некорректно",
|
|
384
2503
|
INVALID_DATE: "Введите корректную дату",
|
|
385
2504
|
FUTURE_DATE_NOT_ALLOWED: "Нельзя выбрать дату позже текущей"
|
|
386
|
-
},
|
|
387
|
-
const
|
|
2505
|
+
}, rn = (a) => {
|
|
2506
|
+
const r = a.trim().replace(/\s+/g, " ").split(" "), [e, t, ...n] = r, o = n == null ? void 0 : n.join(" ");
|
|
388
2507
|
return {
|
|
389
|
-
surname:
|
|
390
|
-
name:
|
|
391
|
-
patronymic:
|
|
2508
|
+
surname: e,
|
|
2509
|
+
name: t,
|
|
2510
|
+
patronymic: o
|
|
392
2511
|
};
|
|
393
|
-
},
|
|
394
|
-
|
|
395
|
-
code:
|
|
2512
|
+
}, Bn = _.string({ invalid_type_error: "Обязательно к заполнению", required_error: "Обязательно к заполнению" }).superRefine((a, r) => {
|
|
2513
|
+
en.test(a) || r.addIssue({
|
|
2514
|
+
code: _.ZodIssueCode.custom,
|
|
396
2515
|
message: "Должна быть только кириллица"
|
|
397
2516
|
});
|
|
398
|
-
const { surname:
|
|
399
|
-
(!
|
|
400
|
-
code:
|
|
2517
|
+
const { surname: e, name: t, patronymic: n } = rn(a);
|
|
2518
|
+
(!e || !t) && r.addIssue({
|
|
2519
|
+
code: _.ZodIssueCode.custom,
|
|
401
2520
|
message: "Введите имя и фамилию"
|
|
402
|
-
}),
|
|
403
|
-
code:
|
|
2521
|
+
}), me.test(t) || r.addIssue({
|
|
2522
|
+
code: _.ZodIssueCode.custom,
|
|
404
2523
|
message: "Неверно введено имя"
|
|
405
|
-
}),
|
|
406
|
-
code:
|
|
2524
|
+
}), me.test(e) || r.addIssue({
|
|
2525
|
+
code: _.ZodIssueCode.custom,
|
|
407
2526
|
message: "Неверно введена фамилия"
|
|
408
|
-
}), n && (
|
|
409
|
-
code:
|
|
2527
|
+
}), n && (tn.test(n) || r.addIssue({
|
|
2528
|
+
code: _.ZodIssueCode.custom,
|
|
410
2529
|
message: "Неверно введено отчество"
|
|
411
2530
|
}));
|
|
412
|
-
}),
|
|
413
|
-
const [
|
|
414
|
-
+n <= 1950 &&
|
|
415
|
-
code:
|
|
416
|
-
message:
|
|
417
|
-
}),
|
|
418
|
-
code:
|
|
419
|
-
message:
|
|
420
|
-
}), (/* @__PURE__ */ new Date()).getTime() < new Date(
|
|
421
|
-
code:
|
|
422
|
-
message:
|
|
2531
|
+
}), Hn = _.string().length(10, { message: q.INVALID_DATE }).superRefine((a, r) => {
|
|
2532
|
+
const [e, t, n] = (a == null ? void 0 : a.split(".")) ?? "", o = _e(`${e}/${t}/${n}`, "dd/MM/yyyy", /* @__PURE__ */ new Date());
|
|
2533
|
+
+n <= 1950 && r.addIssue({
|
|
2534
|
+
code: _.ZodIssueCode.custom,
|
|
2535
|
+
message: q.INVALID_DATE
|
|
2536
|
+
}), tt(o) || r.addIssue({
|
|
2537
|
+
code: _.ZodIssueCode.custom,
|
|
2538
|
+
message: q.INVALID_DATE
|
|
2539
|
+
}), (/* @__PURE__ */ new Date()).getTime() < new Date(o).getTime() && r.addIssue({
|
|
2540
|
+
code: _.ZodIssueCode.custom,
|
|
2541
|
+
message: q.FUTURE_DATE_NOT_ALLOWED
|
|
423
2542
|
});
|
|
424
|
-
}),
|
|
2543
|
+
}), R = {
|
|
425
2544
|
transparent: "transparent",
|
|
426
2545
|
current: "currentColor",
|
|
427
2546
|
inherit: "inherit",
|
|
428
2547
|
initial: "initial"
|
|
429
|
-
},
|
|
2548
|
+
}, $ = {
|
|
430
2549
|
"blue-grey-100": "#f3f4f7",
|
|
431
2550
|
"blue-grey-200": "#eaedf1",
|
|
432
2551
|
"blue-grey-300": "#d4dbe2",
|
|
@@ -454,8 +2573,8 @@ const Oe = (o, e) => JSON.stringify(o) === JSON.stringify(e), Se = (o) => o.spli
|
|
|
454
2573
|
purple: "#5f40bd",
|
|
455
2574
|
"purple-hover": "#52399d",
|
|
456
2575
|
overlay: "#0000004d",
|
|
457
|
-
...
|
|
458
|
-
},
|
|
2576
|
+
...R
|
|
2577
|
+
}, Ee = {
|
|
459
2578
|
dark: "#292929",
|
|
460
2579
|
disabled: "#a9b6c5",
|
|
461
2580
|
footer: "#c3c3c3",
|
|
@@ -469,8 +2588,8 @@ const Oe = (o, e) => JSON.stringify(o) === JSON.stringify(e), Se = (o) => o.spli
|
|
|
469
2588
|
white: "#ffffff",
|
|
470
2589
|
"primary-disabled": "#809bc7",
|
|
471
2590
|
"blue-grey-600": "#94a4b7",
|
|
472
|
-
...
|
|
473
|
-
},
|
|
2591
|
+
...R
|
|
2592
|
+
}, Ce = {
|
|
474
2593
|
"barvcray-200": "#ebeef4",
|
|
475
2594
|
"barvcray-300": "#dde1e8",
|
|
476
2595
|
"greymint-200": "#deecee",
|
|
@@ -483,8 +2602,8 @@ const Oe = (o, e) => JSON.stringify(o) === JSON.stringify(e), Se = (o) => o.spli
|
|
|
483
2602
|
"skyblue-100": "#f4f8fe",
|
|
484
2603
|
"skyblue-200": "#e7f3ff",
|
|
485
2604
|
"skyblue-300": "#d9edff",
|
|
486
|
-
...
|
|
487
|
-
},
|
|
2605
|
+
...R
|
|
2606
|
+
}, C = {
|
|
488
2607
|
"accent-default": "#2477ff",
|
|
489
2608
|
"accent-hover": "#0053da",
|
|
490
2609
|
"blue-grey-100": "#f3f4f7",
|
|
@@ -509,8 +2628,8 @@ const Oe = (o, e) => JSON.stringify(o) === JSON.stringify(e), Se = (o) => o.spli
|
|
|
509
2628
|
white: "#ffffff",
|
|
510
2629
|
"primary-disabled": "#809bc7",
|
|
511
2630
|
footer: "#C3C3C3",
|
|
512
|
-
...
|
|
513
|
-
},
|
|
2631
|
+
...R
|
|
2632
|
+
}, G = {
|
|
514
2633
|
"blue-grey-500": "#a9b6c5",
|
|
515
2634
|
"blue-grey-700": "#69809a",
|
|
516
2635
|
"blue-grey-800": "#5a6e85",
|
|
@@ -528,21 +2647,21 @@ const Oe = (o, e) => JSON.stringify(o) === JSON.stringify(e), Se = (o) => o.spli
|
|
|
528
2647
|
warning: "#f49f00",
|
|
529
2648
|
white: "#ffffff",
|
|
530
2649
|
"primary-disabled": "#809bc7",
|
|
531
|
-
...
|
|
532
|
-
},
|
|
2650
|
+
...R
|
|
2651
|
+
}, Oe = {
|
|
533
2652
|
none: "0",
|
|
534
2653
|
sm: "4px",
|
|
535
2654
|
md: "8px",
|
|
536
2655
|
lg: "16px",
|
|
537
2656
|
full: "9999px"
|
|
538
|
-
},
|
|
2657
|
+
}, Fe = {
|
|
539
2658
|
30: "30deg",
|
|
540
2659
|
45: "45deg",
|
|
541
2660
|
80: "80deg",
|
|
542
2661
|
90: "90deg",
|
|
543
2662
|
110: "110deg",
|
|
544
2663
|
180: "180deg"
|
|
545
|
-
},
|
|
2664
|
+
}, nn = {
|
|
546
2665
|
0: "0",
|
|
547
2666
|
1: "1",
|
|
548
2667
|
10: "10",
|
|
@@ -552,7 +2671,7 @@ const Oe = (o, e) => JSON.stringify(o) === JSON.stringify(e), Se = (o) => o.spli
|
|
|
552
2671
|
250: "250",
|
|
553
2672
|
500: "500",
|
|
554
2673
|
1e3: "1000"
|
|
555
|
-
},
|
|
2674
|
+
}, Ye = {
|
|
556
2675
|
12: "12px",
|
|
557
2676
|
14: "14px",
|
|
558
2677
|
16: "16px",
|
|
@@ -562,7 +2681,7 @@ const Oe = (o, e) => JSON.stringify(o) === JSON.stringify(e), Se = (o) => o.spli
|
|
|
562
2681
|
28: "28px",
|
|
563
2682
|
32: "32px",
|
|
564
2683
|
40: "40px"
|
|
565
|
-
},
|
|
2684
|
+
}, We = {
|
|
566
2685
|
16: "16px",
|
|
567
2686
|
20: "20px",
|
|
568
2687
|
22: "22px",
|
|
@@ -571,7 +2690,7 @@ const Oe = (o, e) => JSON.stringify(o) === JSON.stringify(e), Se = (o) => o.spli
|
|
|
571
2690
|
32: "32px",
|
|
572
2691
|
40: "40px",
|
|
573
2692
|
48: "48px"
|
|
574
|
-
},
|
|
2693
|
+
}, Ae = {
|
|
575
2694
|
/* # Headline */
|
|
576
2695
|
".mob-headline-bold-m": {
|
|
577
2696
|
"@apply font-bold text-28 leading-32": ""
|
|
@@ -630,68 +2749,68 @@ const Oe = (o, e) => JSON.stringify(o) === JSON.stringify(e), Se = (o) => o.spli
|
|
|
630
2749
|
".desk-body-regular-s": {
|
|
631
2750
|
"@apply font-normal text-12 leading-16": ""
|
|
632
2751
|
}
|
|
633
|
-
},
|
|
634
|
-
var
|
|
635
|
-
(function(
|
|
636
|
-
Object.defineProperty(
|
|
2752
|
+
}, Rn = void 0, zn = void 0, qn = "https://urt-web-app1:4032/v1/cache/dadata", Vn = "https://urt-web-app1:4009/constants";
|
|
2753
|
+
var Le = {}, Be = {};
|
|
2754
|
+
(function(a) {
|
|
2755
|
+
Object.defineProperty(a, "__esModule", {
|
|
637
2756
|
value: !0
|
|
638
|
-
}), Object.defineProperty(
|
|
2757
|
+
}), Object.defineProperty(a, "default", {
|
|
639
2758
|
enumerable: !0,
|
|
640
2759
|
get: function() {
|
|
641
|
-
return
|
|
2760
|
+
return e;
|
|
642
2761
|
}
|
|
643
2762
|
});
|
|
644
|
-
function
|
|
2763
|
+
function r(t, n) {
|
|
645
2764
|
return {
|
|
646
|
-
handler:
|
|
2765
|
+
handler: t,
|
|
647
2766
|
config: n
|
|
648
2767
|
};
|
|
649
2768
|
}
|
|
650
|
-
|
|
651
|
-
const
|
|
2769
|
+
r.withOptions = function(t, n = () => ({})) {
|
|
2770
|
+
const o = function(l) {
|
|
652
2771
|
return {
|
|
653
2772
|
__options: l,
|
|
654
|
-
handler:
|
|
2773
|
+
handler: t(l),
|
|
655
2774
|
config: n(l)
|
|
656
2775
|
};
|
|
657
2776
|
};
|
|
658
|
-
return
|
|
2777
|
+
return o.__isOptionsFunction = !0, o.__pluginFunction = t, o.__configFunction = n, o;
|
|
659
2778
|
};
|
|
660
|
-
const
|
|
661
|
-
})(
|
|
662
|
-
(function(
|
|
663
|
-
Object.defineProperty(
|
|
2779
|
+
const e = r;
|
|
2780
|
+
})(Be);
|
|
2781
|
+
(function(a) {
|
|
2782
|
+
Object.defineProperty(a, "__esModule", {
|
|
664
2783
|
value: !0
|
|
665
|
-
}), Object.defineProperty(
|
|
2784
|
+
}), Object.defineProperty(a, "default", {
|
|
666
2785
|
enumerable: !0,
|
|
667
2786
|
get: function() {
|
|
668
|
-
return
|
|
2787
|
+
return t;
|
|
669
2788
|
}
|
|
670
2789
|
});
|
|
671
|
-
const
|
|
672
|
-
function
|
|
2790
|
+
const r = /* @__PURE__ */ e(Be);
|
|
2791
|
+
function e(n) {
|
|
673
2792
|
return n && n.__esModule ? n : {
|
|
674
2793
|
default: n
|
|
675
2794
|
};
|
|
676
2795
|
}
|
|
677
|
-
const
|
|
678
|
-
})(
|
|
679
|
-
let
|
|
680
|
-
var
|
|
681
|
-
const
|
|
682
|
-
function
|
|
2796
|
+
const t = r.default;
|
|
2797
|
+
})(Le);
|
|
2798
|
+
let J = Le;
|
|
2799
|
+
var He = (J.__esModule ? J : { default: J }).default;
|
|
2800
|
+
const X = /* @__PURE__ */ xe(He), an = He;
|
|
2801
|
+
function he(a) {
|
|
683
2802
|
return Object.fromEntries(
|
|
684
|
-
Object.entries(
|
|
2803
|
+
Object.entries(a).filter(([r]) => r !== "DEFAULT")
|
|
685
2804
|
);
|
|
686
2805
|
}
|
|
687
|
-
var
|
|
688
|
-
({ addUtilities:
|
|
689
|
-
|
|
690
|
-
"@keyframes enter":
|
|
691
|
-
"@keyframes exit":
|
|
2806
|
+
var on = an(
|
|
2807
|
+
({ addUtilities: a, matchUtilities: r, theme: e }) => {
|
|
2808
|
+
a({
|
|
2809
|
+
"@keyframes enter": e("keyframes.enter"),
|
|
2810
|
+
"@keyframes exit": e("keyframes.exit"),
|
|
692
2811
|
".animate-in": {
|
|
693
2812
|
animationName: "enter",
|
|
694
|
-
animationDuration:
|
|
2813
|
+
animationDuration: e("animationDuration.DEFAULT"),
|
|
695
2814
|
"--tw-enter-opacity": "initial",
|
|
696
2815
|
"--tw-enter-scale": "initial",
|
|
697
2816
|
"--tw-enter-rotate": "initial",
|
|
@@ -700,94 +2819,94 @@ var ye = ge(
|
|
|
700
2819
|
},
|
|
701
2820
|
".animate-out": {
|
|
702
2821
|
animationName: "exit",
|
|
703
|
-
animationDuration:
|
|
2822
|
+
animationDuration: e("animationDuration.DEFAULT"),
|
|
704
2823
|
"--tw-exit-opacity": "initial",
|
|
705
2824
|
"--tw-exit-scale": "initial",
|
|
706
2825
|
"--tw-exit-rotate": "initial",
|
|
707
2826
|
"--tw-exit-translate-x": "initial",
|
|
708
2827
|
"--tw-exit-translate-y": "initial"
|
|
709
2828
|
}
|
|
710
|
-
}),
|
|
2829
|
+
}), r(
|
|
711
2830
|
{
|
|
712
|
-
"fade-in": (
|
|
713
|
-
"fade-out": (
|
|
2831
|
+
"fade-in": (t) => ({ "--tw-enter-opacity": t }),
|
|
2832
|
+
"fade-out": (t) => ({ "--tw-exit-opacity": t })
|
|
714
2833
|
},
|
|
715
|
-
{ values:
|
|
716
|
-
),
|
|
2834
|
+
{ values: e("animationOpacity") }
|
|
2835
|
+
), r(
|
|
717
2836
|
{
|
|
718
|
-
"zoom-in": (
|
|
719
|
-
"zoom-out": (
|
|
2837
|
+
"zoom-in": (t) => ({ "--tw-enter-scale": t }),
|
|
2838
|
+
"zoom-out": (t) => ({ "--tw-exit-scale": t })
|
|
720
2839
|
},
|
|
721
|
-
{ values:
|
|
722
|
-
),
|
|
2840
|
+
{ values: e("animationScale") }
|
|
2841
|
+
), r(
|
|
723
2842
|
{
|
|
724
|
-
"spin-in": (
|
|
725
|
-
"spin-out": (
|
|
2843
|
+
"spin-in": (t) => ({ "--tw-enter-rotate": t }),
|
|
2844
|
+
"spin-out": (t) => ({ "--tw-exit-rotate": t })
|
|
726
2845
|
},
|
|
727
|
-
{ values:
|
|
728
|
-
),
|
|
2846
|
+
{ values: e("animationRotate") }
|
|
2847
|
+
), r(
|
|
729
2848
|
{
|
|
730
|
-
"slide-in-from-top": (
|
|
731
|
-
"--tw-enter-translate-y": `-${
|
|
2849
|
+
"slide-in-from-top": (t) => ({
|
|
2850
|
+
"--tw-enter-translate-y": `-${t}`
|
|
732
2851
|
}),
|
|
733
|
-
"slide-in-from-bottom": (
|
|
734
|
-
"--tw-enter-translate-y":
|
|
2852
|
+
"slide-in-from-bottom": (t) => ({
|
|
2853
|
+
"--tw-enter-translate-y": t
|
|
735
2854
|
}),
|
|
736
|
-
"slide-in-from-left": (
|
|
737
|
-
"--tw-enter-translate-x": `-${
|
|
2855
|
+
"slide-in-from-left": (t) => ({
|
|
2856
|
+
"--tw-enter-translate-x": `-${t}`
|
|
738
2857
|
}),
|
|
739
|
-
"slide-in-from-right": (
|
|
740
|
-
"--tw-enter-translate-x":
|
|
2858
|
+
"slide-in-from-right": (t) => ({
|
|
2859
|
+
"--tw-enter-translate-x": t
|
|
741
2860
|
}),
|
|
742
|
-
"slide-out-to-top": (
|
|
743
|
-
"--tw-exit-translate-y": `-${
|
|
2861
|
+
"slide-out-to-top": (t) => ({
|
|
2862
|
+
"--tw-exit-translate-y": `-${t}`
|
|
744
2863
|
}),
|
|
745
|
-
"slide-out-to-bottom": (
|
|
746
|
-
"--tw-exit-translate-y":
|
|
2864
|
+
"slide-out-to-bottom": (t) => ({
|
|
2865
|
+
"--tw-exit-translate-y": t
|
|
747
2866
|
}),
|
|
748
|
-
"slide-out-to-left": (
|
|
749
|
-
"--tw-exit-translate-x": `-${
|
|
2867
|
+
"slide-out-to-left": (t) => ({
|
|
2868
|
+
"--tw-exit-translate-x": `-${t}`
|
|
750
2869
|
}),
|
|
751
|
-
"slide-out-to-right": (
|
|
752
|
-
"--tw-exit-translate-x":
|
|
2870
|
+
"slide-out-to-right": (t) => ({
|
|
2871
|
+
"--tw-exit-translate-x": t
|
|
753
2872
|
})
|
|
754
2873
|
},
|
|
755
|
-
{ values:
|
|
756
|
-
),
|
|
757
|
-
{ duration: (
|
|
758
|
-
{ values:
|
|
759
|
-
),
|
|
760
|
-
{ delay: (
|
|
761
|
-
{ values:
|
|
762
|
-
),
|
|
763
|
-
{ ease: (
|
|
764
|
-
{ values:
|
|
765
|
-
),
|
|
2874
|
+
{ values: e("animationTranslate") }
|
|
2875
|
+
), r(
|
|
2876
|
+
{ duration: (t) => ({ animationDuration: t }) },
|
|
2877
|
+
{ values: he(e("animationDuration")) }
|
|
2878
|
+
), r(
|
|
2879
|
+
{ delay: (t) => ({ animationDelay: t }) },
|
|
2880
|
+
{ values: e("animationDelay") }
|
|
2881
|
+
), r(
|
|
2882
|
+
{ ease: (t) => ({ animationTimingFunction: t }) },
|
|
2883
|
+
{ values: he(e("animationTimingFunction")) }
|
|
2884
|
+
), a({
|
|
766
2885
|
".running": { animationPlayState: "running" },
|
|
767
2886
|
".paused": { animationPlayState: "paused" }
|
|
768
|
-
}),
|
|
769
|
-
{ "fill-mode": (
|
|
770
|
-
{ values:
|
|
771
|
-
),
|
|
772
|
-
{ direction: (
|
|
773
|
-
{ values:
|
|
774
|
-
),
|
|
775
|
-
{ repeat: (
|
|
776
|
-
{ values:
|
|
2887
|
+
}), r(
|
|
2888
|
+
{ "fill-mode": (t) => ({ animationFillMode: t }) },
|
|
2889
|
+
{ values: e("animationFillMode") }
|
|
2890
|
+
), r(
|
|
2891
|
+
{ direction: (t) => ({ animationDirection: t }) },
|
|
2892
|
+
{ values: e("animationDirection") }
|
|
2893
|
+
), r(
|
|
2894
|
+
{ repeat: (t) => ({ animationIterationCount: t }) },
|
|
2895
|
+
{ values: e("animationRepeat") }
|
|
777
2896
|
);
|
|
778
2897
|
},
|
|
779
2898
|
{
|
|
780
2899
|
theme: {
|
|
781
2900
|
extend: {
|
|
782
|
-
animationDelay: ({ theme:
|
|
783
|
-
...
|
|
2901
|
+
animationDelay: ({ theme: a }) => ({
|
|
2902
|
+
...a("transitionDelay")
|
|
784
2903
|
}),
|
|
785
|
-
animationDuration: ({ theme:
|
|
2904
|
+
animationDuration: ({ theme: a }) => ({
|
|
786
2905
|
0: "0ms",
|
|
787
|
-
...
|
|
2906
|
+
...a("transitionDuration")
|
|
788
2907
|
}),
|
|
789
|
-
animationTimingFunction: ({ theme:
|
|
790
|
-
...
|
|
2908
|
+
animationTimingFunction: ({ theme: a }) => ({
|
|
2909
|
+
...a("transitionTimingFunction")
|
|
791
2910
|
}),
|
|
792
2911
|
animationFillMode: {
|
|
793
2912
|
none: "none",
|
|
@@ -801,21 +2920,21 @@ var ye = ge(
|
|
|
801
2920
|
alternate: "alternate",
|
|
802
2921
|
"alternate-reverse": "alternate-reverse"
|
|
803
2922
|
},
|
|
804
|
-
animationOpacity: ({ theme:
|
|
2923
|
+
animationOpacity: ({ theme: a }) => ({
|
|
805
2924
|
DEFAULT: 0,
|
|
806
|
-
...
|
|
2925
|
+
...a("opacity")
|
|
807
2926
|
}),
|
|
808
|
-
animationTranslate: ({ theme:
|
|
2927
|
+
animationTranslate: ({ theme: a }) => ({
|
|
809
2928
|
DEFAULT: "100%",
|
|
810
|
-
...
|
|
2929
|
+
...a("translate")
|
|
811
2930
|
}),
|
|
812
|
-
animationScale: ({ theme:
|
|
2931
|
+
animationScale: ({ theme: a }) => ({
|
|
813
2932
|
DEFAULT: 0,
|
|
814
|
-
...
|
|
2933
|
+
...a("scale")
|
|
815
2934
|
}),
|
|
816
|
-
animationRotate: ({ theme:
|
|
2935
|
+
animationRotate: ({ theme: a }) => ({
|
|
817
2936
|
DEFAULT: "30deg",
|
|
818
|
-
...
|
|
2937
|
+
...a("rotate")
|
|
819
2938
|
}),
|
|
820
2939
|
animationRepeat: {
|
|
821
2940
|
0: "0",
|
|
@@ -840,33 +2959,33 @@ var ye = ge(
|
|
|
840
2959
|
}
|
|
841
2960
|
}
|
|
842
2961
|
);
|
|
843
|
-
const
|
|
2962
|
+
const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
844
2963
|
theme: {
|
|
845
2964
|
backgroundColor: {
|
|
846
|
-
color:
|
|
847
|
-
banner:
|
|
848
|
-
icon:
|
|
2965
|
+
color: $,
|
|
2966
|
+
banner: Ce,
|
|
2967
|
+
icon: C
|
|
849
2968
|
},
|
|
850
2969
|
textColor: {
|
|
851
|
-
icon:
|
|
852
|
-
color:
|
|
2970
|
+
icon: C,
|
|
2971
|
+
color: Ee
|
|
853
2972
|
},
|
|
854
|
-
fill:
|
|
855
|
-
stroke:
|
|
856
|
-
borderColor:
|
|
857
|
-
outlineColor:
|
|
858
|
-
borderRadius:
|
|
2973
|
+
fill: C,
|
|
2974
|
+
stroke: C,
|
|
2975
|
+
borderColor: G,
|
|
2976
|
+
outlineColor: G,
|
|
2977
|
+
borderRadius: Oe,
|
|
859
2978
|
fontFamily: { roboto: ["var(--ff-roboto)", "sans-serif"] },
|
|
860
|
-
fontSize:
|
|
861
|
-
lineHeight:
|
|
862
|
-
gradientColorStops:
|
|
2979
|
+
fontSize: Ye,
|
|
2980
|
+
lineHeight: We,
|
|
2981
|
+
gradientColorStops: $,
|
|
863
2982
|
boxShadow: {
|
|
864
2983
|
sm: "0 8px 20px 0 rgba(0, 0, 0, 0.08)",
|
|
865
2984
|
md: "0 12px 20px 0 rgba(0, 33, 87, 0.10)",
|
|
866
2985
|
lg: "0 16px 24px 0 rgba(0, 33, 87, 0.16)"
|
|
867
2986
|
},
|
|
868
2987
|
extend: {
|
|
869
|
-
bgGradientDeg:
|
|
2988
|
+
bgGradientDeg: Fe,
|
|
870
2989
|
width: {
|
|
871
2990
|
"popper-content": "var(--radix-popover-content-available-width)",
|
|
872
2991
|
"popper-trigger": "var(--radix-popover-trigger-width)",
|
|
@@ -910,24 +3029,24 @@ const X = /* @__PURE__ */ A(ye), et = {
|
|
|
910
3029
|
}
|
|
911
3030
|
},
|
|
912
3031
|
plugins: [
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
3032
|
+
Re,
|
|
3033
|
+
X(({ addComponents: a }) => {
|
|
3034
|
+
a(Ae);
|
|
916
3035
|
}),
|
|
917
|
-
|
|
918
|
-
|
|
3036
|
+
X(function({ matchUtilities: a, theme: r }) {
|
|
3037
|
+
a(
|
|
919
3038
|
{
|
|
920
|
-
"bg-deg-gradient": (
|
|
921
|
-
"background-image": `linear-gradient(${
|
|
3039
|
+
"bg-deg-gradient": (e) => ({
|
|
3040
|
+
"background-image": `linear-gradient(${e}, var(--tw-gradient-stops))`
|
|
922
3041
|
})
|
|
923
3042
|
},
|
|
924
3043
|
{
|
|
925
|
-
values: Object.assign(
|
|
3044
|
+
values: Object.assign(r("bgGradientDeg", {}), {})
|
|
926
3045
|
}
|
|
927
3046
|
);
|
|
928
3047
|
})
|
|
929
3048
|
]
|
|
930
|
-
},
|
|
3049
|
+
}, $n = {
|
|
931
3050
|
theme: {
|
|
932
3051
|
extend: {
|
|
933
3052
|
transitionDuration: {
|
|
@@ -967,260 +3086,260 @@ const X = /* @__PURE__ */ A(ye), et = {
|
|
|
967
3086
|
}
|
|
968
3087
|
}
|
|
969
3088
|
}
|
|
970
|
-
},
|
|
3089
|
+
}, Gn = {
|
|
971
3090
|
theme: {
|
|
972
3091
|
screens: {
|
|
973
3092
|
mobile: { max: "1187px" },
|
|
974
3093
|
desktop: "1188px"
|
|
975
3094
|
},
|
|
976
3095
|
backgroundColor: {
|
|
977
|
-
color:
|
|
978
|
-
banner:
|
|
979
|
-
icon:
|
|
3096
|
+
color: $,
|
|
3097
|
+
banner: Ce,
|
|
3098
|
+
icon: C
|
|
980
3099
|
},
|
|
981
3100
|
textColor: {
|
|
982
|
-
icon:
|
|
983
|
-
color:
|
|
3101
|
+
icon: C,
|
|
3102
|
+
color: Ee
|
|
984
3103
|
},
|
|
985
|
-
fill:
|
|
986
|
-
stroke:
|
|
987
|
-
borderColor:
|
|
988
|
-
outlineColor:
|
|
989
|
-
borderRadius:
|
|
3104
|
+
fill: C,
|
|
3105
|
+
stroke: C,
|
|
3106
|
+
borderColor: G,
|
|
3107
|
+
outlineColor: G,
|
|
3108
|
+
borderRadius: Oe,
|
|
990
3109
|
fontFamily: { roboto: ["var(--ff-roboto)", "sans-serif"] },
|
|
991
|
-
fontSize:
|
|
992
|
-
lineHeight:
|
|
993
|
-
gradientColorStops:
|
|
3110
|
+
fontSize: Ye,
|
|
3111
|
+
lineHeight: We,
|
|
3112
|
+
gradientColorStops: $,
|
|
994
3113
|
boxShadow: {
|
|
995
3114
|
sm: "0 8px 20px 0 rgba(0, 0, 0, 0.08)",
|
|
996
3115
|
md: "0 12px 20px 0 rgba(0, 33, 87, 0.10)",
|
|
997
3116
|
lg: "0 16px 24px 0 rgba(0, 33, 87, 0.16)"
|
|
998
3117
|
},
|
|
999
|
-
zIndex:
|
|
3118
|
+
zIndex: nn,
|
|
1000
3119
|
extend: {
|
|
1001
|
-
bgGradientDeg:
|
|
3120
|
+
bgGradientDeg: Fe
|
|
1002
3121
|
}
|
|
1003
3122
|
},
|
|
1004
3123
|
plugins: [
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
3124
|
+
Re,
|
|
3125
|
+
X(({ addComponents: a }) => {
|
|
3126
|
+
a(Ae);
|
|
1008
3127
|
}),
|
|
1009
|
-
|
|
1010
|
-
|
|
3128
|
+
X(function({ matchUtilities: a, theme: r }) {
|
|
3129
|
+
a(
|
|
1011
3130
|
{
|
|
1012
|
-
"bg-deg-gradient": (
|
|
1013
|
-
"background-image": `linear-gradient(${
|
|
3131
|
+
"bg-deg-gradient": (e) => ({
|
|
3132
|
+
"background-image": `linear-gradient(${e}, var(--tw-gradient-stops))`
|
|
1014
3133
|
})
|
|
1015
3134
|
},
|
|
1016
3135
|
{
|
|
1017
|
-
values: Object.assign(
|
|
3136
|
+
values: Object.assign(r("bgGradientDeg", {}), {})
|
|
1018
3137
|
}
|
|
1019
3138
|
);
|
|
1020
3139
|
})
|
|
1021
3140
|
]
|
|
1022
|
-
},
|
|
3141
|
+
}, ze = ({ buttonsConfig: a, classes: r, className: e }) => {
|
|
1023
3142
|
var n;
|
|
1024
|
-
const
|
|
1025
|
-
return /* @__PURE__ */
|
|
3143
|
+
const t = (a == null ? void 0 : a.secondary) && a.secondary.children;
|
|
3144
|
+
return /* @__PURE__ */ i.jsxs(
|
|
1026
3145
|
"div",
|
|
1027
3146
|
{
|
|
1028
3147
|
"data-id": "banner-buttons-group",
|
|
1029
|
-
className:
|
|
3148
|
+
className: d(
|
|
1030
3149
|
"grid-buttons-apply absolute bottom-6 left-1/2 flex w-full -translate-x-1/2 flex-col justify-self-center px-4 desktop:static desktop:left-auto desktop:max-w-full desktop:translate-x-0 desktop:flex-row desktop:justify-normal desktop:px-0",
|
|
1031
|
-
{ "flex items-center gap-4":
|
|
1032
|
-
|
|
1033
|
-
|
|
3150
|
+
{ "flex items-center gap-4": t },
|
|
3151
|
+
r == null ? void 0 : r.group,
|
|
3152
|
+
e
|
|
1034
3153
|
),
|
|
1035
3154
|
children: [
|
|
1036
|
-
/* @__PURE__ */
|
|
1037
|
-
|
|
1038
|
-
|
|
3155
|
+
/* @__PURE__ */ i.jsx(Q, { intent: "primary", ...a.primary, isFull: !0, className: d("desktop:max-w-[216px]", r == null ? void 0 : r.primary), children: a.primary.children }),
|
|
3156
|
+
t && /* @__PURE__ */ i.jsx(
|
|
3157
|
+
Q,
|
|
1039
3158
|
{
|
|
1040
3159
|
intent: "secondary",
|
|
1041
|
-
...
|
|
3160
|
+
...a == null ? void 0 : a.secondary,
|
|
1042
3161
|
isFull: !0,
|
|
1043
|
-
className:
|
|
1044
|
-
children: (n =
|
|
3162
|
+
className: d("desktop:max-w-[216px]", r == null ? void 0 : r.secondary),
|
|
3163
|
+
children: (n = a == null ? void 0 : a.secondary) == null ? void 0 : n.children
|
|
1045
3164
|
}
|
|
1046
3165
|
)
|
|
1047
3166
|
]
|
|
1048
3167
|
}
|
|
1049
3168
|
);
|
|
1050
|
-
},
|
|
3169
|
+
}, qe = ({ advantagesList: a, classes: r }) => /* @__PURE__ */ i.jsx(
|
|
1051
3170
|
"div",
|
|
1052
3171
|
{
|
|
1053
|
-
className:
|
|
3172
|
+
className: d(
|
|
1054
3173
|
"flex w-full max-w-[636px] flex-col gap-8 rounded-md bg-color-white p-6 shadow-sm desktop:w-full desktop:max-w-full desktop:flex-row desktop:items-start desktop:gap-0 desktop:p-0 desktop:py-6",
|
|
1055
|
-
|
|
3174
|
+
r == null ? void 0 : r.advantageWrapper
|
|
1056
3175
|
),
|
|
1057
|
-
children:
|
|
3176
|
+
children: a == null ? void 0 : a.map(({ title: e, description: t }) => /* @__PURE__ */ i.jsxs(
|
|
1058
3177
|
"div",
|
|
1059
3178
|
{
|
|
1060
|
-
className:
|
|
3179
|
+
className: d(
|
|
1061
3180
|
'after:content-[" "] relative flex h-full w-full flex-col gap-2 after:absolute after:-bottom-4 after:left-1/2 after:h-[1px] after:w-full after:-translate-x-1/2 after:bg-color-blue-grey-300 last:after:hidden desktop:w-[285px] desktop:px-8 desktop:after:bottom-auto desktop:after:left-auto desktop:after:right-0 desktop:after:top-1/2 desktop:after:h-10 desktop:after:w-[1px] desktop:after:-translate-y-1/2 desktop:after:translate-x-0',
|
|
1062
|
-
|
|
3181
|
+
r == null ? void 0 : r.advantageItem
|
|
1063
3182
|
),
|
|
1064
3183
|
children: [
|
|
1065
|
-
/* @__PURE__ */
|
|
1066
|
-
/* @__PURE__ */
|
|
3184
|
+
/* @__PURE__ */ i.jsx(A, { as: "h4", className: d("text-color-dark", r == null ? void 0 : r.advantageTitle), children: e }),
|
|
3185
|
+
/* @__PURE__ */ i.jsx("p", { className: d("desk-body-regular-l text-color-secondary", r == null ? void 0 : r.advantageDescription), children: t })
|
|
1067
3186
|
]
|
|
1068
3187
|
},
|
|
1069
|
-
|
|
3188
|
+
e
|
|
1070
3189
|
))
|
|
1071
3190
|
}
|
|
1072
|
-
),
|
|
1073
|
-
headTitle:
|
|
1074
|
-
subtitle:
|
|
1075
|
-
buttonsConfig:
|
|
1076
|
-
advantagesList:
|
|
3191
|
+
), dn = ({
|
|
3192
|
+
headTitle: a,
|
|
3193
|
+
subtitle: r,
|
|
3194
|
+
buttonsConfig: e,
|
|
3195
|
+
advantagesList: t,
|
|
1077
3196
|
classes: n,
|
|
1078
|
-
img:
|
|
3197
|
+
img: o,
|
|
1079
3198
|
imgSets: l
|
|
1080
3199
|
}) => {
|
|
1081
|
-
const { isDesktop: u, isMobile:
|
|
3200
|
+
const { isDesktop: u, isMobile: f } = be(), m = /* @__PURE__ */ i.jsx(
|
|
1082
3201
|
"div",
|
|
1083
3202
|
{
|
|
1084
3203
|
"data-id": "banner-advantages",
|
|
1085
|
-
className:
|
|
3204
|
+
className: d(
|
|
1086
3205
|
"flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
|
|
1087
3206
|
n == null ? void 0 : n.advantageContainer
|
|
1088
3207
|
),
|
|
1089
|
-
children:
|
|
3208
|
+
children: t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ i.jsx(qe, { classes: n, advantagesList: t })
|
|
1090
3209
|
}
|
|
1091
3210
|
);
|
|
1092
|
-
return /* @__PURE__ */
|
|
1093
|
-
/* @__PURE__ */
|
|
1094
|
-
/* @__PURE__ */
|
|
3211
|
+
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
3212
|
+
/* @__PURE__ */ i.jsxs("section", { "data-id": "banner-section", className: d("relative h-[552px] desktop:h-[456px]", n == null ? void 0 : n.section), children: [
|
|
3213
|
+
/* @__PURE__ */ i.jsx(
|
|
1095
3214
|
"div",
|
|
1096
3215
|
{
|
|
1097
3216
|
"data-id": "banner-img-wrapper",
|
|
1098
3217
|
className: "absolute bottom-0 left-0 right-0 top-0 z-[-1] mx-auto h-full max-w-[1920px] desktop:h-[456px]",
|
|
1099
|
-
children: /* @__PURE__ */
|
|
1100
|
-
/* @__PURE__ */
|
|
1101
|
-
/* @__PURE__ */
|
|
1102
|
-
/* @__PURE__ */
|
|
3218
|
+
children: /* @__PURE__ */ i.jsxs("picture", { children: [
|
|
3219
|
+
/* @__PURE__ */ i.jsx("source", { media: "(min-width: 1128px)", srcSet: l == null ? void 0 : l.large, type: "image/avif" }),
|
|
3220
|
+
/* @__PURE__ */ i.jsx("source", { media: "(max-width: 1127px)", srcSet: l == null ? void 0 : l.mob, type: (l == null ? void 0 : l.type) ?? "image/avif" }),
|
|
3221
|
+
/* @__PURE__ */ i.jsx(
|
|
1103
3222
|
"img",
|
|
1104
3223
|
{
|
|
1105
3224
|
"data-id": "banner-image",
|
|
1106
|
-
src:
|
|
3225
|
+
src: o,
|
|
1107
3226
|
alt: "Картинка баннера",
|
|
1108
|
-
className:
|
|
3227
|
+
className: d("h-full w-full object-cover object-center", n == null ? void 0 : n.image)
|
|
1109
3228
|
}
|
|
1110
3229
|
)
|
|
1111
3230
|
] })
|
|
1112
3231
|
}
|
|
1113
3232
|
),
|
|
1114
|
-
/* @__PURE__ */
|
|
1115
|
-
/* @__PURE__ */
|
|
3233
|
+
/* @__PURE__ */ i.jsxs(Y, { "data-id": "banner-container", className: d("h-full", n == null ? void 0 : n.container), children: [
|
|
3234
|
+
/* @__PURE__ */ i.jsx("div", { "data-id": "banner", className: d("flex h-full", n == null ? void 0 : n.wrapper), children: /* @__PURE__ */ i.jsxs(
|
|
1116
3235
|
"div",
|
|
1117
3236
|
{
|
|
1118
3237
|
"data-id": "banner-text-block",
|
|
1119
|
-
className:
|
|
3238
|
+
className: d("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", n == null ? void 0 : n.textBlock),
|
|
1120
3239
|
children: [
|
|
1121
|
-
/* @__PURE__ */
|
|
1122
|
-
/* @__PURE__ */
|
|
1123
|
-
/* @__PURE__ */
|
|
3240
|
+
/* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
3241
|
+
/* @__PURE__ */ i.jsx(A, { "data-id": "banner-title", as: "h1", className: d("text-color-white", n == null ? void 0 : n.title), children: a }),
|
|
3242
|
+
/* @__PURE__ */ i.jsx("p", { "data-id": "banner-subtitle", className: d("desk-body-regular-l text-color-white", n == null ? void 0 : n.subtitle), children: r })
|
|
1124
3243
|
] }),
|
|
1125
|
-
/* @__PURE__ */
|
|
1126
|
-
|
|
3244
|
+
/* @__PURE__ */ i.jsx(
|
|
3245
|
+
ze,
|
|
1127
3246
|
{
|
|
1128
3247
|
className: "self-end desktop:self-center",
|
|
1129
3248
|
"data-id": "banner-buttons-group",
|
|
1130
|
-
buttonsConfig:
|
|
3249
|
+
buttonsConfig: e,
|
|
1131
3250
|
classes: n
|
|
1132
3251
|
}
|
|
1133
3252
|
)
|
|
1134
3253
|
]
|
|
1135
3254
|
}
|
|
1136
3255
|
) }),
|
|
1137
|
-
u &&
|
|
3256
|
+
u && m
|
|
1138
3257
|
] })
|
|
1139
3258
|
] }),
|
|
1140
|
-
|
|
3259
|
+
f && m
|
|
1141
3260
|
] });
|
|
1142
|
-
},
|
|
1143
|
-
headTitle:
|
|
1144
|
-
subtitle:
|
|
1145
|
-
buttonsConfig:
|
|
1146
|
-
advantagesList:
|
|
3261
|
+
}, pe = ({
|
|
3262
|
+
headTitle: a,
|
|
3263
|
+
subtitle: r,
|
|
3264
|
+
buttonsConfig: e,
|
|
3265
|
+
advantagesList: t,
|
|
1147
3266
|
classes: n,
|
|
1148
|
-
img:
|
|
3267
|
+
img: o,
|
|
1149
3268
|
imgSets: l
|
|
1150
3269
|
}) => {
|
|
1151
|
-
const { isDesktop: u, isMobile:
|
|
3270
|
+
const { isDesktop: u, isMobile: f } = be(), m = /* @__PURE__ */ i.jsx(
|
|
1152
3271
|
"div",
|
|
1153
3272
|
{
|
|
1154
3273
|
"data-id": "banner-advantages",
|
|
1155
|
-
className:
|
|
3274
|
+
className: d(
|
|
1156
3275
|
"flex items-center justify-center rounded-md bg-color-blue-grey-100 p-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:p-0",
|
|
1157
3276
|
n == null ? void 0 : n.advantageContainer
|
|
1158
3277
|
),
|
|
1159
|
-
children:
|
|
3278
|
+
children: t && (t == null ? void 0 : t.length) > 0 && /* @__PURE__ */ i.jsx(qe, { classes: n, advantagesList: t })
|
|
1160
3279
|
}
|
|
1161
3280
|
);
|
|
1162
|
-
return /* @__PURE__ */
|
|
1163
|
-
/* @__PURE__ */
|
|
1164
|
-
/* @__PURE__ */
|
|
1165
|
-
/* @__PURE__ */
|
|
1166
|
-
/* @__PURE__ */
|
|
1167
|
-
/* @__PURE__ */
|
|
1168
|
-
/* @__PURE__ */
|
|
3281
|
+
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
3282
|
+
/* @__PURE__ */ i.jsx("section", { "data-id": "banner-section", className: d("bg-banner-skyblue-300 desktop:h-[456px]", n == null ? void 0 : n.section), children: /* @__PURE__ */ i.jsxs(Y, { "data-id": "banner-container", className: d("relative", n == null ? void 0 : n.container), children: [
|
|
3283
|
+
/* @__PURE__ */ i.jsxs("div", { "data-id": "banner", className: d("flex flex-col desktop:flex-row desktop:justify-between", n == null ? void 0 : n.wrapper), children: [
|
|
3284
|
+
/* @__PURE__ */ i.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
|
|
3285
|
+
/* @__PURE__ */ i.jsxs("div", { "data-id": "banner-text-block", className: d("flex flex-col gap-4 pt-6 desktop:pt-0", n == null ? void 0 : n.textBlock), children: [
|
|
3286
|
+
/* @__PURE__ */ i.jsx(A, { "data-id": "banner-title", as: "h1", className: d("text-color-dark", n == null ? void 0 : n.title), children: a }),
|
|
3287
|
+
/* @__PURE__ */ i.jsx("p", { "data-id": "banner-subtitle", className: d("desk-body-regular-l text-color-dark", n == null ? void 0 : n.subtitle), children: r })
|
|
1169
3288
|
] }),
|
|
1170
|
-
/* @__PURE__ */
|
|
3289
|
+
/* @__PURE__ */ i.jsx(ze, { buttonsConfig: e, classes: n })
|
|
1171
3290
|
] }),
|
|
1172
|
-
/* @__PURE__ */
|
|
3291
|
+
/* @__PURE__ */ i.jsx(
|
|
1173
3292
|
"div",
|
|
1174
3293
|
{
|
|
1175
3294
|
"data-id": "banner-image-wrapper",
|
|
1176
|
-
className:
|
|
1177
|
-
children: /* @__PURE__ */
|
|
1178
|
-
/* @__PURE__ */
|
|
1179
|
-
/* @__PURE__ */
|
|
1180
|
-
/* @__PURE__ */
|
|
3295
|
+
className: d("flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]", n == null ? void 0 : n.imageContainer),
|
|
3296
|
+
children: /* @__PURE__ */ i.jsxs("picture", { children: [
|
|
3297
|
+
/* @__PURE__ */ i.jsx("source", { media: "(min-width: 1128px)", srcSet: l == null ? void 0 : l.large }),
|
|
3298
|
+
/* @__PURE__ */ i.jsx("source", { media: "(max-width: 1127px)", srcSet: l == null ? void 0 : l.mob }),
|
|
3299
|
+
/* @__PURE__ */ i.jsx(
|
|
1181
3300
|
"img",
|
|
1182
3301
|
{
|
|
1183
3302
|
"data-id": "banner-image",
|
|
1184
|
-
src:
|
|
3303
|
+
src: o,
|
|
1185
3304
|
alt: "Картинка баннера",
|
|
1186
|
-
className:
|
|
3305
|
+
className: d("h-full object-cover", n == null ? void 0 : n.image)
|
|
1187
3306
|
}
|
|
1188
3307
|
)
|
|
1189
3308
|
] })
|
|
1190
3309
|
}
|
|
1191
3310
|
)
|
|
1192
3311
|
] }),
|
|
1193
|
-
u &&
|
|
3312
|
+
u && m
|
|
1194
3313
|
] }) }),
|
|
1195
|
-
|
|
3314
|
+
f && m
|
|
1196
3315
|
] });
|
|
1197
|
-
},
|
|
1198
|
-
switch (
|
|
3316
|
+
}, Xn = ({ bannerVariant: a, ...r }) => {
|
|
3317
|
+
switch (a) {
|
|
1199
3318
|
case "separateImg":
|
|
1200
|
-
return /* @__PURE__ */
|
|
3319
|
+
return /* @__PURE__ */ i.jsx(pe, { ...r });
|
|
1201
3320
|
case "fullImg":
|
|
1202
|
-
return /* @__PURE__ */
|
|
3321
|
+
return /* @__PURE__ */ i.jsx(dn, { ...r });
|
|
1203
3322
|
default:
|
|
1204
|
-
return /* @__PURE__ */
|
|
3323
|
+
return /* @__PURE__ */ i.jsx(pe, { ...r });
|
|
1205
3324
|
}
|
|
1206
|
-
},
|
|
3325
|
+
}, ln = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1207
3326
|
"© 2004-2024, ПАО «Совкомбанк». Все права защищены. ",
|
|
1208
|
-
/* @__PURE__ */
|
|
3327
|
+
/* @__PURE__ */ i.jsx("br", {}),
|
|
1209
3328
|
" Генеральная лицензия Банка России №963 от 5 декабря 2014 г."
|
|
1210
|
-
] }),
|
|
3329
|
+
] }), sn = `Кредит на бизнес цели, срок 3, 6, 9, 12, 18, 24, 36, 48, 60 мес. Ставка – от 22,9%*. *Точная процентная ставка
|
|
1211
3330
|
устанавливается по соглашению сторон и определяется исходя из платёжеспособности и кредитоспособности клиента, а также
|
|
1212
3331
|
иных индивидуальных особенностей клиента. Сумма 100 000 – 50 000 000 руб. Кредит выдается на карту “Халва”, открытый в
|
|
1213
3332
|
Банке. Банк вправе отказать в предоставлении кредита без объяснения причины, а также запросить дополнительную информацию о
|
|
1214
3333
|
клиенте. Предварительное одобрение не влечет обязательств Банка по выдаче кредита. В некоторых случаях срок рассмотрения
|
|
1215
3334
|
заявки может составлять до 3 рабочих дней. Полный электронный документооборот при наличии открытого р/с в ПАО «Совкомбанк»
|
|
1216
|
-
и действующей ЭЦП. Условия рекламы действительны на 20.02.2024г.`,
|
|
3335
|
+
и действующей ЭЦП. Условия рекламы действительны на 20.02.2024г.`, un = [
|
|
1217
3336
|
{ phone: "8 800 100-00-06", text: "Звонок по России (бесплатно)" },
|
|
1218
3337
|
{ phone: "+7 (495) 988 00 00", text: "Для звонков из-за рубежа (платно)" }
|
|
1219
|
-
],
|
|
3338
|
+
], cn = [
|
|
1220
3339
|
{ iconName: "social/vk", href: "/vk" },
|
|
1221
3340
|
{ iconName: "social/telegram", href: "/tg" },
|
|
1222
3341
|
{ iconName: "social/classmates", href: "/cl" }
|
|
1223
|
-
],
|
|
3342
|
+
], fn = [
|
|
1224
3343
|
{
|
|
1225
3344
|
groupLabel: "Совкомбанк",
|
|
1226
3345
|
links: [
|
|
@@ -1297,87 +3416,87 @@ const X = /* @__PURE__ */ A(ye), et = {
|
|
|
1297
3416
|
{ text: "Офисы и банкоматы", href: "/" }
|
|
1298
3417
|
]
|
|
1299
3418
|
}
|
|
1300
|
-
],
|
|
3419
|
+
], mn = ({ socialsLinks: a, classes: r }) => /* @__PURE__ */ i.jsx("div", { className: d("mt-6 flex items-center gap-2", r == null ? void 0 : r.socialRoot), children: a == null ? void 0 : a.map(({ iconName: e, href: t }) => /* @__PURE__ */ i.jsx(
|
|
1301
3420
|
"a",
|
|
1302
3421
|
{
|
|
1303
|
-
className:
|
|
1304
|
-
href:
|
|
1305
|
-
children: /* @__PURE__ */
|
|
3422
|
+
className: d("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", r == null ? void 0 : r.socialLink),
|
|
3423
|
+
href: t,
|
|
3424
|
+
children: /* @__PURE__ */ i.jsx(T, { name: e, className: d("h-full w-full text-icon-white", r == null ? void 0 : r.socialIcon) })
|
|
1306
3425
|
},
|
|
1307
|
-
|
|
1308
|
-
)) }),
|
|
1309
|
-
|
|
3426
|
+
t
|
|
3427
|
+
)) }), hn = ({ phones: a, classes: r }) => /* @__PURE__ */ i.jsx("div", { className: d("flex flex-col items-end gap-4", r == null ? void 0 : r.phonesRoot), children: a == null ? void 0 : a.map(({ phone: e, text: t }) => /* @__PURE__ */ i.jsx(
|
|
3428
|
+
Ie,
|
|
1310
3429
|
{
|
|
1311
|
-
phone:
|
|
1312
|
-
text:
|
|
3430
|
+
phone: e,
|
|
3431
|
+
text: t,
|
|
1313
3432
|
classes: {
|
|
1314
|
-
wrapper:
|
|
1315
|
-
text:
|
|
1316
|
-
link:
|
|
3433
|
+
wrapper: d(r == null ? void 0 : r.phoneWrapper),
|
|
3434
|
+
text: d("text-color-footer", r == null ? void 0 : r.phoneText),
|
|
3435
|
+
link: d("text-color-white", r == null ? void 0 : r.phoneLink)
|
|
1317
3436
|
}
|
|
1318
3437
|
},
|
|
1319
|
-
|
|
1320
|
-
)) }),
|
|
1321
|
-
/* @__PURE__ */
|
|
1322
|
-
/* @__PURE__ */
|
|
3438
|
+
e
|
|
3439
|
+
)) }), pn = ({ navigationLinks: a, classes: r }) => /* @__PURE__ */ i.jsx("div", { className: d("grid grid-cols-4 gap-10 border-y border-blue-grey-500 py-8 pt-8", r == null ? void 0 : r.navRoot), children: a == null ? void 0 : a.map(({ groupLabel: e, links: t }) => /* @__PURE__ */ i.jsxs("div", { className: d("flex flex-col gap-4", r == null ? void 0 : r.navGroup), children: [
|
|
3440
|
+
/* @__PURE__ */ i.jsx("div", { className: d("desk-body-regular-m font-medium text-color-white", r == null ? void 0 : r.navLabel), children: e }),
|
|
3441
|
+
/* @__PURE__ */ i.jsx("div", { className: d("flex flex-col gap-2", r == null ? void 0 : r.navWrapper), children: t == null ? void 0 : t.map(({ text: n, href: o }) => /* @__PURE__ */ i.jsx(
|
|
1323
3442
|
"a",
|
|
1324
3443
|
{
|
|
1325
|
-
href:
|
|
1326
|
-
className:
|
|
3444
|
+
href: o,
|
|
3445
|
+
className: d(
|
|
1327
3446
|
"desk-body-regular-m cursor-pointer text-color-white transition-colors hover:text-color-footer",
|
|
1328
|
-
|
|
3447
|
+
r == null ? void 0 : r.navLink
|
|
1329
3448
|
),
|
|
1330
3449
|
children: n
|
|
1331
3450
|
},
|
|
1332
3451
|
n
|
|
1333
3452
|
)) })
|
|
1334
|
-
] },
|
|
1335
|
-
const [
|
|
1336
|
-
return
|
|
3453
|
+
] }, e)) }), xn = ({ ligal: a, classes: r }) => {
|
|
3454
|
+
const [e, t] = z.useState(!1), [n, o] = z.useState(!1), l = z.useRef(null);
|
|
3455
|
+
return z.useEffect(() => {
|
|
1337
3456
|
const u = l.current;
|
|
1338
|
-
u &&
|
|
1339
|
-
}, []), /* @__PURE__ */
|
|
1340
|
-
/* @__PURE__ */
|
|
1341
|
-
n && /* @__PURE__ */
|
|
3457
|
+
u && o(u.scrollHeight > u.clientHeight);
|
|
3458
|
+
}, []), /* @__PURE__ */ i.jsxs("div", { className: d("mt-8 flex flex-col gap-4", r == null ? void 0 : r.ligalRoot), children: [
|
|
3459
|
+
/* @__PURE__ */ i.jsx("p", { ref: l, className: d("desk-body-regular-m text-color-footer", { "line-clamp-3": !e }, r == null ? void 0 : r.ligal), children: a }),
|
|
3460
|
+
n && /* @__PURE__ */ i.jsx(
|
|
1342
3461
|
"div",
|
|
1343
3462
|
{
|
|
1344
3463
|
tabIndex: 0,
|
|
1345
3464
|
role: "button",
|
|
1346
|
-
onClick: () =>
|
|
1347
|
-
className:
|
|
3465
|
+
onClick: () => t((u) => !u),
|
|
3466
|
+
className: d(
|
|
1348
3467
|
"desk-body-regular-l w-max cursor-pointer font-medium text-color-footer transition-colors hover:text-color-white",
|
|
1349
|
-
|
|
3468
|
+
r == null ? void 0 : r.ligalButton
|
|
1350
3469
|
),
|
|
1351
3470
|
children: "Подробнее"
|
|
1352
3471
|
}
|
|
1353
3472
|
)
|
|
1354
3473
|
] });
|
|
1355
|
-
},
|
|
1356
|
-
withSocial:
|
|
1357
|
-
withPhones:
|
|
1358
|
-
withNavLinks:
|
|
1359
|
-
withLigal:
|
|
3474
|
+
}, bn = ({ text: a, classes: r }) => /* @__PURE__ */ i.jsx("div", { className: d("desk-body-regular-m text-color-footer", r == null ? void 0 : r.text), children: a }), Un = ({
|
|
3475
|
+
withSocial: a = !0,
|
|
3476
|
+
withPhones: r = !0,
|
|
3477
|
+
withNavLinks: e = !0,
|
|
3478
|
+
withLigal: t = !0,
|
|
1360
3479
|
withCopyright: n = !0,
|
|
1361
|
-
withSiteMap:
|
|
1362
|
-
socialsLinks: l =
|
|
1363
|
-
phones: u =
|
|
1364
|
-
navigationLinks:
|
|
1365
|
-
ligal:
|
|
1366
|
-
copyright:
|
|
1367
|
-
classes:
|
|
1368
|
-
}) => /* @__PURE__ */
|
|
1369
|
-
/* @__PURE__ */
|
|
1370
|
-
/* @__PURE__ */
|
|
1371
|
-
/* @__PURE__ */
|
|
1372
|
-
|
|
3480
|
+
withSiteMap: o = !0,
|
|
3481
|
+
socialsLinks: l = cn,
|
|
3482
|
+
phones: u = un,
|
|
3483
|
+
navigationLinks: f = fn,
|
|
3484
|
+
ligal: m = sn,
|
|
3485
|
+
copyright: b = ln,
|
|
3486
|
+
classes: c
|
|
3487
|
+
}) => /* @__PURE__ */ i.jsx(Me, { className: d("w-full", c == null ? void 0 : c.section), children: /* @__PURE__ */ i.jsx(Y, { className: d(c == null ? void 0 : c.container), children: /* @__PURE__ */ i.jsxs("div", { className: d("bg-color-footer px-4 py-8 desktop:px-6 desktop:py-10", c == null ? void 0 : c.footerRoot), children: [
|
|
3488
|
+
/* @__PURE__ */ i.jsxs("div", { className: d("mb-8 flex items-center justify-between gap-6", c == null ? void 0 : c.footerHead), children: [
|
|
3489
|
+
/* @__PURE__ */ i.jsxs("div", { className: d(c == null ? void 0 : c.footerSocialBlock), children: [
|
|
3490
|
+
/* @__PURE__ */ i.jsx("a", { href: "/", className: d(c == null ? void 0 : c.footerLogo), children: /* @__PURE__ */ i.jsx(T, { name: "brandLogos/logoWhite", className: "h-[32px] w-[194px]" }) }),
|
|
3491
|
+
a && /* @__PURE__ */ i.jsx(mn, { socialsLinks: l, classes: c })
|
|
1373
3492
|
] }),
|
|
1374
|
-
|
|
3493
|
+
r && /* @__PURE__ */ i.jsx(hn, { phones: u, classes: c })
|
|
1375
3494
|
] }),
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
/* @__PURE__ */
|
|
1379
|
-
n && /* @__PURE__ */
|
|
1380
|
-
|
|
3495
|
+
e && /* @__PURE__ */ i.jsx(pn, { navigationLinks: f, classes: c }),
|
|
3496
|
+
t && /* @__PURE__ */ i.jsx(xn, { ligal: m, classes: c }),
|
|
3497
|
+
/* @__PURE__ */ i.jsxs("div", { className: "mt-6 flex items-start justify-between gap-6", children: [
|
|
3498
|
+
n && /* @__PURE__ */ i.jsx(bn, { text: b, classes: c }),
|
|
3499
|
+
o && /* @__PURE__ */ i.jsx(
|
|
1381
3500
|
"a",
|
|
1382
3501
|
{
|
|
1383
3502
|
href: "https://sovcombank.ru/site-map",
|
|
@@ -1388,83 +3507,83 @@ const X = /* @__PURE__ */ A(ye), et = {
|
|
|
1388
3507
|
}
|
|
1389
3508
|
)
|
|
1390
3509
|
] })
|
|
1391
|
-
] }) }) }),
|
|
1392
|
-
var
|
|
1393
|
-
switch (
|
|
3510
|
+
] }) }) }), yn = (a) => {
|
|
3511
|
+
var r, e, t, n;
|
|
3512
|
+
switch (a.variant) {
|
|
1394
3513
|
case "withButton":
|
|
1395
|
-
return /* @__PURE__ */
|
|
3514
|
+
return /* @__PURE__ */ i.jsx(Q, { intent: "secondary", size: "sm", className: (r = a.classes) == null ? void 0 : r.button, children: "Оформить заявку" });
|
|
1396
3515
|
case "withPhone":
|
|
1397
|
-
const { phone:
|
|
1398
|
-
return /* @__PURE__ */
|
|
1399
|
-
|
|
3516
|
+
const { phone: o, phoneText: l } = a;
|
|
3517
|
+
return /* @__PURE__ */ i.jsx(
|
|
3518
|
+
Ie,
|
|
1400
3519
|
{
|
|
1401
|
-
phone:
|
|
3520
|
+
phone: o,
|
|
1402
3521
|
text: l,
|
|
1403
3522
|
classes: {
|
|
1404
|
-
wrapper: (
|
|
1405
|
-
text: (
|
|
1406
|
-
link: (n =
|
|
3523
|
+
wrapper: (e = a.classes) == null ? void 0 : e.phoneWrapper,
|
|
3524
|
+
text: (t = a.classes) == null ? void 0 : t.phoneText,
|
|
3525
|
+
link: (n = a.classes) == null ? void 0 : n.phoneLink
|
|
1407
3526
|
}
|
|
1408
3527
|
}
|
|
1409
3528
|
);
|
|
1410
3529
|
default:
|
|
1411
3530
|
return null;
|
|
1412
3531
|
}
|
|
1413
|
-
},
|
|
1414
|
-
const { logoPath:
|
|
1415
|
-
return /* @__PURE__ */
|
|
1416
|
-
/* @__PURE__ */
|
|
3532
|
+
}, Zn = (a) => {
|
|
3533
|
+
const { logoPath: r = "/", logoType: e = "main", classes: t } = a;
|
|
3534
|
+
return /* @__PURE__ */ i.jsx("header", { className: d("flex h-[72px] items-center justify-center bg-color-white", t == null ? void 0 : t.header), children: /* @__PURE__ */ i.jsx(Y, { className: d(t == null ? void 0 : t.container), children: /* @__PURE__ */ i.jsxs("div", { className: d("flex items-center justify-between gap-5", t == null ? void 0 : t.wrapper), children: [
|
|
3535
|
+
/* @__PURE__ */ i.jsx(
|
|
1417
3536
|
"a",
|
|
1418
3537
|
{
|
|
1419
|
-
href:
|
|
3538
|
+
href: r,
|
|
1420
3539
|
target: "_blank",
|
|
1421
3540
|
rel: "noreferrer",
|
|
1422
|
-
className:
|
|
3541
|
+
className: d(
|
|
1423
3542
|
"flex items-center justify-center [&_svg]:w-[114px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
1424
|
-
|
|
3543
|
+
t == null ? void 0 : t.logo
|
|
1425
3544
|
),
|
|
1426
|
-
children:
|
|
3545
|
+
children: Sr[e]
|
|
1427
3546
|
}
|
|
1428
3547
|
),
|
|
1429
|
-
|
|
3548
|
+
yn(a)
|
|
1430
3549
|
] }) }) });
|
|
1431
|
-
},
|
|
3550
|
+
}, wn = ({ title: a, description: r, index: e, classes: t }) => /* @__PURE__ */ i.jsxs(
|
|
1432
3551
|
"div",
|
|
1433
3552
|
{
|
|
1434
|
-
className:
|
|
3553
|
+
className: d(
|
|
1435
3554
|
"border-color-blue-grey-500 flex w-[328px] max-w-[328px] flex-col gap-6 rounded-md border border-solid p-4 desktop:w-[348px] desktop:max-w-[348px] desktop:border-none desktop:p-0",
|
|
1436
|
-
|
|
3555
|
+
t == null ? void 0 : t.singleStep
|
|
1437
3556
|
),
|
|
1438
3557
|
children: [
|
|
1439
|
-
/* @__PURE__ */
|
|
3558
|
+
/* @__PURE__ */ i.jsx(
|
|
1440
3559
|
"div",
|
|
1441
3560
|
{
|
|
1442
|
-
className:
|
|
3561
|
+
className: d(
|
|
1443
3562
|
"mob-headline-bold-s flex size-10 items-center justify-center rounded-sm bg-color-blue-grey-500 text-color-white desktop:desk-title-bold-l desktop:size-12",
|
|
1444
|
-
|
|
3563
|
+
t == null ? void 0 : t.numeric
|
|
1445
3564
|
),
|
|
1446
|
-
children:
|
|
3565
|
+
children: e
|
|
1447
3566
|
}
|
|
1448
3567
|
),
|
|
1449
|
-
/* @__PURE__ */
|
|
1450
|
-
/* @__PURE__ */
|
|
1451
|
-
/* @__PURE__ */
|
|
3568
|
+
/* @__PURE__ */ i.jsxs("div", { className: d("flex flex-col gap-4", t == null ? void 0 : t.textBlock), children: [
|
|
3569
|
+
/* @__PURE__ */ i.jsx(A, { as: "h4", className: d("text-color-dark", t == null ? void 0 : t.title), children: a }),
|
|
3570
|
+
/* @__PURE__ */ i.jsx("p", { className: d("desk-body-regular-l text-color-tetriary", t == null ? void 0 : t.description), children: r })
|
|
1452
3571
|
] })
|
|
1453
3572
|
]
|
|
1454
3573
|
}
|
|
1455
|
-
),
|
|
1456
|
-
/* @__PURE__ */
|
|
1457
|
-
/* @__PURE__ */
|
|
3574
|
+
), Jn = ({ heading: a, stepsList: r, classes: e }) => /* @__PURE__ */ i.jsx(Me, { children: /* @__PURE__ */ i.jsx(Y, { children: /* @__PURE__ */ i.jsxs("div", { className: d("flex flex-col gap-12", e == null ? void 0 : e.root), children: [
|
|
3575
|
+
/* @__PURE__ */ i.jsx(A, { as: "h2", className: d("text-color-dark", e == null ? void 0 : e.headline), children: a }),
|
|
3576
|
+
/* @__PURE__ */ i.jsx(
|
|
1458
3577
|
"div",
|
|
1459
3578
|
{
|
|
1460
|
-
className:
|
|
3579
|
+
className: d(
|
|
1461
3580
|
"flex flex-col items-start gap-6 desktop:flex-row desktop:items-center desktop:gap-12",
|
|
1462
|
-
|
|
3581
|
+
e == null ? void 0 : e.stepsWrapper
|
|
1463
3582
|
),
|
|
1464
|
-
children:
|
|
3583
|
+
children: r == null ? void 0 : r.map((t, n) => /* @__PURE__ */ i.jsx(wn, { index: n + 1, ...t, classes: e }, t.title))
|
|
1465
3584
|
}
|
|
1466
3585
|
)
|
|
1467
|
-
] }) }) }),
|
|
3586
|
+
] }) }) }), gn = D("", {
|
|
1468
3587
|
variants: {
|
|
1469
3588
|
intent: {
|
|
1470
3589
|
twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
|
|
@@ -1480,7 +3599,7 @@ const X = /* @__PURE__ */ A(ye), et = {
|
|
|
1480
3599
|
defaultVariants: {
|
|
1481
3600
|
intent: "twoItems"
|
|
1482
3601
|
}
|
|
1483
|
-
}),
|
|
3602
|
+
}), kn = D("desktop:max-h-[98px]", {
|
|
1484
3603
|
variants: {
|
|
1485
3604
|
intent: {
|
|
1486
3605
|
twoItems: "",
|
|
@@ -1512,7 +3631,7 @@ const X = /* @__PURE__ */ A(ye), et = {
|
|
|
1512
3631
|
class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
1513
3632
|
}
|
|
1514
3633
|
]
|
|
1515
|
-
}),
|
|
3634
|
+
}), vn = D("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
|
|
1516
3635
|
variants: {
|
|
1517
3636
|
intent: {
|
|
1518
3637
|
twoItems: 'last:border-none relative desktop:first:after:top-1/2 desktop:first:after:-translate-y-1/2 desktop:first:after:right-0 desktop:first:after:content-[""] desktop:first:after:block desktop:first:after:absolute desktop:first:after:w-[1px] desktop:first:after:h-[64px] desktop:first:after:bg-color-blue-grey-500 desktop:ml-8 desktop:pr-8 desktop:first:ml-0 desktop:last:pr-0 desktop:pb-3',
|
|
@@ -1522,7 +3641,7 @@ const X = /* @__PURE__ */ A(ye), et = {
|
|
|
1522
3641
|
defaultVariants: {
|
|
1523
3642
|
intent: "twoItems"
|
|
1524
3643
|
}
|
|
1525
|
-
}),
|
|
3644
|
+
}), jn = D("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
|
|
1526
3645
|
variants: {
|
|
1527
3646
|
intent: {
|
|
1528
3647
|
twoItems: "desktop:h-[232px] desktop:w-[500px]",
|
|
@@ -1548,51 +3667,51 @@ const X = /* @__PURE__ */ A(ye), et = {
|
|
|
1548
3667
|
class: "desktop:h-[272px] desktop:w-[500px]"
|
|
1549
3668
|
}
|
|
1550
3669
|
]
|
|
1551
|
-
}),
|
|
1552
|
-
const { title:
|
|
1553
|
-
return /* @__PURE__ */
|
|
1554
|
-
/* @__PURE__ */
|
|
1555
|
-
/* @__PURE__ */
|
|
1556
|
-
n && /* @__PURE__ */
|
|
3670
|
+
}), Dn = ({ data: a, intent: r }) => {
|
|
3671
|
+
const { title: e, description: t, popoverText: n } = a;
|
|
3672
|
+
return /* @__PURE__ */ i.jsx("li", { className: d(vn({ intent: r })), children: /* @__PURE__ */ i.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
3673
|
+
/* @__PURE__ */ i.jsxs("div", { className: d("mb-2 flex items-center gap-2"), children: [
|
|
3674
|
+
/* @__PURE__ */ i.jsx("h4", { className: d("mob-title-bold-m text-color-dark"), children: e }),
|
|
3675
|
+
n && /* @__PURE__ */ i.jsx(Ge, { triggerElement: /* @__PURE__ */ i.jsx(T, { className: d("size-4 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: n })
|
|
1557
3676
|
] }),
|
|
1558
|
-
/* @__PURE__ */
|
|
3677
|
+
/* @__PURE__ */ i.jsx("p", { className: d("mob-body-regular-l text-color-secondary"), children: t })
|
|
1559
3678
|
] }) });
|
|
1560
|
-
},
|
|
1561
|
-
title:
|
|
1562
|
-
buttonConfig:
|
|
1563
|
-
intent:
|
|
1564
|
-
textContent:
|
|
3679
|
+
}, K = ({ intent: a, title: r, desktopHidden: e = !1, mobileHidden: t = !1 }) => /* @__PURE__ */ i.jsx("h2", { className: d(gn({ intent: a, desktopHidden: e, mobileHidden: t })), children: r }), Tn = ({ textContent: a, intent: r, withButton: e }) => /* @__PURE__ */ i.jsx("ul", { className: d(kn({ intent: r, withButton: e })), children: a == null ? void 0 : a.map((t, n) => /* @__PURE__ */ i.jsx(Dn, { intent: r, data: t }, n)) }), Kn = ({
|
|
3680
|
+
title: a,
|
|
3681
|
+
buttonConfig: r,
|
|
3682
|
+
intent: e = "twoItems",
|
|
3683
|
+
textContent: t,
|
|
1565
3684
|
imageComponent: n,
|
|
1566
|
-
classes:
|
|
3685
|
+
classes: o
|
|
1567
3686
|
}) => {
|
|
1568
|
-
const l = !!
|
|
1569
|
-
return /* @__PURE__ */
|
|
1570
|
-
|
|
1571
|
-
/* @__PURE__ */
|
|
3687
|
+
const l = !!r, u = e === "fourItems", f = e === "twoItems";
|
|
3688
|
+
return /* @__PURE__ */ i.jsx("section", { className: d(o == null ? void 0 : o.section), children: /* @__PURE__ */ i.jsxs(Y, { className: d(o == null ? void 0 : o.mainContainer), children: [
|
|
3689
|
+
f && /* @__PURE__ */ i.jsx(K, { intent: e, title: a }),
|
|
3690
|
+
/* @__PURE__ */ i.jsxs(
|
|
1572
3691
|
"div",
|
|
1573
3692
|
{
|
|
1574
|
-
className:
|
|
3693
|
+
className: d(
|
|
1575
3694
|
"bg-banner-skyblue-100 px-6 pb-8 pt-6 desktop:flex desktop:flex-row-reverse desktop:justify-between desktop:px-0 desktop:py-0 desktop:pl-12",
|
|
1576
|
-
|
|
3695
|
+
o == null ? void 0 : o.contentContainer
|
|
1577
3696
|
),
|
|
1578
3697
|
children: [
|
|
1579
|
-
u && /* @__PURE__ */
|
|
1580
|
-
/* @__PURE__ */
|
|
1581
|
-
/* @__PURE__ */
|
|
3698
|
+
u && /* @__PURE__ */ i.jsx(K, { intent: e, title: a, desktopHidden: !0 }),
|
|
3699
|
+
/* @__PURE__ */ i.jsx("div", { className: d(jn({ intent: e, withButton: l }), o == null ? void 0 : o.imgContainer), children: n }),
|
|
3700
|
+
/* @__PURE__ */ i.jsxs(
|
|
1582
3701
|
"div",
|
|
1583
3702
|
{
|
|
1584
|
-
className:
|
|
3703
|
+
className: d("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", o == null ? void 0 : o.textWithBtnContainer),
|
|
1585
3704
|
children: [
|
|
1586
|
-
u && /* @__PURE__ */
|
|
1587
|
-
/* @__PURE__ */
|
|
1588
|
-
l && /* @__PURE__ */
|
|
1589
|
-
|
|
3705
|
+
u && /* @__PURE__ */ i.jsx(K, { intent: e, title: a, mobileHidden: !0 }),
|
|
3706
|
+
/* @__PURE__ */ i.jsx(Tn, { textContent: t, intent: e, withButton: l }),
|
|
3707
|
+
l && /* @__PURE__ */ i.jsx(
|
|
3708
|
+
Q,
|
|
1590
3709
|
{
|
|
1591
|
-
className:
|
|
3710
|
+
className: d("w-full px-4 desktop:w-max", o == null ? void 0 : o.button),
|
|
1592
3711
|
size: "lg",
|
|
1593
|
-
onClick:
|
|
3712
|
+
onClick: r.onClick,
|
|
1594
3713
|
intent: "secondary",
|
|
1595
|
-
children:
|
|
3714
|
+
children: r.text
|
|
1596
3715
|
}
|
|
1597
3716
|
)
|
|
1598
3717
|
]
|
|
@@ -1604,55 +3723,57 @@ const X = /* @__PURE__ */ A(ye), et = {
|
|
|
1604
3723
|
] }) });
|
|
1605
3724
|
};
|
|
1606
3725
|
export {
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
3726
|
+
qe as Advantages,
|
|
3727
|
+
ta as Badge,
|
|
3728
|
+
Xn as Banner,
|
|
3729
|
+
pe as BannerWithSeparateImg,
|
|
3730
|
+
On as Breadcrumbs,
|
|
3731
|
+
Q as Button,
|
|
3732
|
+
Fn as ButtonIcon,
|
|
3733
|
+
Yn as CustomLink,
|
|
3734
|
+
Rn as DADATA_BASE_CACHE_URL,
|
|
3735
|
+
zn as DADATA_BASE_CONSTANTS_URL,
|
|
3736
|
+
Wn as Document,
|
|
3737
|
+
Un as Footer,
|
|
3738
|
+
A as Heading,
|
|
3739
|
+
T as Icon,
|
|
3740
|
+
$e as Loader,
|
|
3741
|
+
Kn as LongBanner,
|
|
3742
|
+
ra as Notification,
|
|
3743
|
+
Zn as PageHeader,
|
|
3744
|
+
Ie as PhoneView,
|
|
3745
|
+
An as ProgressBar,
|
|
3746
|
+
Y as ResponsiveContainer,
|
|
3747
|
+
me as RgxCheckForHyphen,
|
|
3748
|
+
tn as RgxPatronymic,
|
|
3749
|
+
en as RgxUnicode,
|
|
3750
|
+
Me as Section,
|
|
3751
|
+
Ln as Skeleton,
|
|
3752
|
+
Jn as Stepper,
|
|
3753
|
+
Cn as Table,
|
|
3754
|
+
q as VALIDATION_MESSAGES,
|
|
3755
|
+
qn as VITE_DADATA_BASE_CACHE_URL,
|
|
3756
|
+
Vn as VITE_DADATA_BASE_CONSTANTS_URL,
|
|
3757
|
+
$ as allowedBackgroundColors,
|
|
3758
|
+
Fe as allowedBackgroundDeg,
|
|
3759
|
+
Ce as allowedBannersBackgroundColors,
|
|
3760
|
+
Oe as allowedBorderRadius,
|
|
3761
|
+
Ye as allowedFontSize,
|
|
3762
|
+
C as allowedIconsColors,
|
|
3763
|
+
We as allowedLineHeight,
|
|
3764
|
+
G as allowedStrokeColors,
|
|
3765
|
+
Ee as allowedTextColors,
|
|
3766
|
+
Ae as allowedTextStyles,
|
|
3767
|
+
nn as allowedZIndex,
|
|
3768
|
+
In as capitalize,
|
|
3769
|
+
d as cn,
|
|
3770
|
+
Mn as deepCompare,
|
|
3771
|
+
$n as extendsPreset,
|
|
3772
|
+
En as formatToDate,
|
|
3773
|
+
na as isClient,
|
|
3774
|
+
Gn as resetPreset,
|
|
3775
|
+
Qn as tailwindConfigBase,
|
|
3776
|
+
Hn as zodCalendarValidate,
|
|
3777
|
+
Bn as zodDadataFioValidate
|
|
1657
3778
|
};
|
|
1658
3779
|
//# sourceMappingURL=hybrid.js.map
|