@scbt-ecom/ui 0.13.3 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.js +24058 -16384
- package/dist/client.js.map +1 -1
- package/dist/hybrid.js +433 -2549
- package/dist/hybrid.js.map +1 -1
- package/dist/index-BJGvyDqg.js +11371 -0
- package/dist/index-BJGvyDqg.js.map +1 -0
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/utils.d.ts +3 -0
- package/dist/shared/ui/calendar/Calendar.d.ts +11 -0
- package/dist/shared/ui/calendar/index.d.ts +2 -0
- package/dist/shared/ui/calendar/model/index.d.ts +1 -0
- package/dist/shared/ui/calendar/model/utils.d.ts +34 -0
- package/dist/shared/ui/calendar/ui/Day.d.ts +9 -0
- package/dist/shared/ui/calendar/ui/DayButton.d.ts +8 -0
- package/dist/shared/ui/calendar/ui/Footer.d.ts +6 -0
- package/dist/shared/ui/calendar/ui/MonthCaption.d.ts +10 -0
- package/dist/shared/ui/calendar/ui/Navigation.d.ts +4 -0
- package/dist/shared/ui/calendar/ui/Weekday.d.ts +4 -0
- package/dist/shared/ui/calendar/ui/index.d.ts +7 -0
- package/dist/shared/ui/calendar/ui/model/index.d.ts +2 -0
- package/dist/shared/ui/calendar/ui/model/types.d.ts +9 -0
- package/dist/shared/ui/calendar/ui/model/utils.d.ts +13 -0
- package/dist/shared/ui/calendar/ui/selectDate/SelectDate.d.ts +13 -0
- package/dist/shared/ui/calendar/ui/selectDate/index.d.ts +1 -0
- package/dist/shared/ui/calendar/ui/selectDate/ui/SelectList.d.ts +10 -0
- package/dist/shared/ui/calendar/ui/selectDate/ui/Trigger.d.ts +9 -0
- package/dist/shared/ui/calendar/ui/selectDate/ui/index.d.ts +2 -0
- package/dist/shared/ui/checkbox/Checkbox.d.ts +14 -0
- package/dist/shared/ui/checkbox/index.d.ts +1 -0
- package/dist/shared/ui/formElements/controlled/checkbox/CheckboxControl.d.ts +15 -0
- package/dist/shared/ui/formElements/controlled/checkbox/index.d.ts +1 -0
- package/dist/shared/ui/formElements/controlled/dayPickerControl/dayPickerControl.d.ts +15 -0
- package/dist/shared/ui/formElements/controlled/dayPickerControl/index.d.ts +1 -0
- package/dist/shared/ui/formElements/controlled/dayPickerControl/model/constants.d.ts +4 -0
- package/dist/shared/ui/formElements/controlled/dayPickerControl/model/index.d.ts +2 -0
- package/dist/shared/ui/formElements/controlled/dayPickerControl/model/utils.d.ts +25 -0
- package/dist/shared/ui/formElements/controlled/dayPickerControl/range.d.ts +17 -0
- package/dist/shared/ui/formElements/controlled/dayPickerControl/single.d.ts +13 -0
- package/dist/shared/ui/formElements/controlled/index.d.ts +63 -0
- package/dist/shared/ui/formElements/controlled/input/InputControl.d.ts +13 -0
- package/dist/shared/ui/formElements/controlled/input/MaskInputControl.d.ts +13 -0
- package/dist/shared/ui/formElements/controlled/input/index.d.ts +2 -0
- package/dist/shared/ui/formElements/controlled/select/SelectControl.d.ts +13 -0
- package/dist/shared/ui/formElements/controlled/select/index.d.ts +1 -0
- package/dist/shared/ui/formElements/index.d.ts +1 -0
- package/dist/shared/ui/formElements/uploaderControl/model/hooks/useUploader.d.ts +1 -1
- package/dist/shared/ui/index.d.ts +4 -0
- package/dist/shared/ui/input/Input.d.ts +23 -0
- package/dist/shared/ui/input/MaskInput.d.ts +49 -0
- package/dist/shared/ui/input/index.d.ts +2 -0
- package/dist/shared/ui/input/model/mask/index.d.ts +1 -0
- package/dist/shared/ui/input/model/mask/utils.d.ts +2 -0
- package/dist/shared/ui/select/Select.d.ts +30 -0
- package/dist/shared/ui/select/index.d.ts +2 -0
- package/dist/shared/ui/select/ui/SelectItem.d.ts +24 -0
- package/dist/shared/ui/select/ui/SelectList.d.ts +10 -0
- package/dist/shared/ui/select/ui/control/Control.d.ts +13 -0
- package/dist/shared/ui/select/ui/control/hooks/index.d.ts +1 -0
- package/dist/shared/ui/select/ui/control/hooks/useSelectController.d.ts +20 -0
- package/dist/shared/ui/select/ui/control/index.d.ts +1 -0
- package/dist/shared/ui/select/ui/control/ui/Chip.d.ts +12 -0
- package/dist/shared/ui/select/ui/control/ui/ChipList.d.ts +11 -0
- package/dist/shared/ui/select/ui/control/ui/index.d.ts +1 -0
- package/dist/shared/ui/select/ui/index.d.ts +3 -0
- package/dist/style.css +1 -1
- package/dist/utils-tailwind.css +4 -0
- package/package.json +5 -4
- package/dist/index-CC-TDkSs.js +0 -9172
- package/dist/index-CC-TDkSs.js.map +0 -1
package/dist/hybrid.js
CHANGED
|
@@ -1,48 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return r.length <= 1 ? r[0] || null : function(t) {
|
|
11
|
-
r.forEach((n) => {
|
|
12
|
-
typeof n == "function" ? n(t) : n && (n.current = t);
|
|
1
|
+
import { j as o, c as a, I as m, a as x, R as g, B as I, z as p, p as G, i as U, g as _, H as E, P as W } from "./index-BJGvyDqg.js";
|
|
2
|
+
import { b as Ke, L as Ye, d as et, s as tt } from "./index-BJGvyDqg.js";
|
|
3
|
+
import * as h from "react";
|
|
4
|
+
import { forwardRef as X } from "react";
|
|
5
|
+
const Ee = (r) => r.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()).join("-"), Te = (...r) => {
|
|
6
|
+
const e = r.filter(Boolean);
|
|
7
|
+
return e.length <= 1 ? e[0] || null : function(t) {
|
|
8
|
+
e.forEach((i) => {
|
|
9
|
+
typeof i == "function" ? i(t) : i && (i.current = t);
|
|
13
10
|
});
|
|
14
11
|
};
|
|
15
|
-
},
|
|
12
|
+
}, T = ({ children: r, className: e, ...n }) => /* @__PURE__ */ o.jsx("section", { className: a("pb-16 desktop:pb-20", e), ...n, children: r }), Le = ({ linksList: r }) => /* @__PURE__ */ o.jsx("div", { "aria-label": "Breadcrumb", className: "flex max-w-[840px] items-center gap-2", children: r.map((e) => /* @__PURE__ */ o.jsx(o.Fragment, { children: "path" in e ? /* @__PURE__ */ o.jsxs(
|
|
16
13
|
"div",
|
|
17
14
|
{
|
|
18
|
-
className:
|
|
15
|
+
className: a(
|
|
19
16
|
"flex items-center gap-1 rounded-sm border-2 border-solid border-transparent px-1 focus-within:border-primary-focus",
|
|
20
|
-
{ "pointer-events-none !border-transparent":
|
|
17
|
+
{ "pointer-events-none !border-transparent": e == null ? void 0 : e.isDisabled }
|
|
21
18
|
),
|
|
22
19
|
children: [
|
|
23
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ o.jsx(
|
|
24
21
|
"a",
|
|
25
22
|
{
|
|
26
|
-
href:
|
|
23
|
+
href: e.path,
|
|
27
24
|
target: "_blank",
|
|
28
25
|
rel: "noreferrer",
|
|
29
|
-
className:
|
|
26
|
+
className: a(
|
|
30
27
|
"desk-body-regular-m text-color-primary-default outline-none hover:text-color-primary-hover focus:text-color-primary-default",
|
|
31
|
-
{ "!text-color-disabled":
|
|
28
|
+
{ "!text-color-disabled": e == null ? void 0 : e.isDisabled }
|
|
32
29
|
),
|
|
33
|
-
children:
|
|
30
|
+
children: e.label
|
|
34
31
|
}
|
|
35
32
|
),
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
|
|
33
|
+
/* @__PURE__ */ o.jsx(
|
|
34
|
+
m,
|
|
38
35
|
{
|
|
39
36
|
name: "arrows/arrowRight",
|
|
40
|
-
className:
|
|
37
|
+
className: a("size-4 text-icon-primary-default", { "!text-icon-disabled": e == null ? void 0 : e.isDisabled })
|
|
41
38
|
}
|
|
42
39
|
)
|
|
43
40
|
]
|
|
44
41
|
}
|
|
45
|
-
) : /* @__PURE__ */
|
|
42
|
+
) : /* @__PURE__ */ o.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: e.label }) })) }), q = x(
|
|
46
43
|
"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",
|
|
47
44
|
{
|
|
48
45
|
variants: {
|
|
@@ -62,9 +59,9 @@ const yn = (a) => a.split("-").map((r) => r.charAt(0).toUpperCase() + r.slice(1)
|
|
|
62
59
|
size: "lg"
|
|
63
60
|
}
|
|
64
61
|
}
|
|
65
|
-
),
|
|
66
|
-
({ size:
|
|
67
|
-
),
|
|
62
|
+
), Fe = X(
|
|
63
|
+
({ size: r, intent: e, children: n, classes: t, type: i = "button", ...d }, f) => /* @__PURE__ */ o.jsx("button", { ref: f, type: i, className: a(q({ intent: e, size: r }), t == null ? void 0 : t.button), ...d, children: /* @__PURE__ */ o.jsx("span", { className: a(t == null ? void 0 : t.icon), children: n }) })
|
|
64
|
+
), Q = x(
|
|
68
65
|
"group underline underline-offset-4 outline-none p-[2px] rounded-sm border border-solid border-transparent",
|
|
69
66
|
{
|
|
70
67
|
variants: {
|
|
@@ -92,7 +89,7 @@ const yn = (a) => a.split("-").map((r) => r.charAt(0).toUpperCase() + r.slice(1)
|
|
|
92
89
|
size: "sm"
|
|
93
90
|
}
|
|
94
91
|
}
|
|
95
|
-
),
|
|
92
|
+
), J = x("size-6", {
|
|
96
93
|
variants: {
|
|
97
94
|
intent: {
|
|
98
95
|
blue: "text-icon-primary-default group-hover:text-icon-primary-hover group-focus:text-icon-primary-default ",
|
|
@@ -107,19 +104,19 @@ const yn = (a) => a.split("-").map((r) => r.charAt(0).toUpperCase() + r.slice(1)
|
|
|
107
104
|
intent: "blue",
|
|
108
105
|
disabled: !1
|
|
109
106
|
}
|
|
110
|
-
}),
|
|
111
|
-
Component:
|
|
112
|
-
intent:
|
|
113
|
-
children:
|
|
107
|
+
}), Ae = ({
|
|
108
|
+
Component: r = "a",
|
|
109
|
+
intent: e,
|
|
110
|
+
children: n,
|
|
114
111
|
withIcon: t,
|
|
115
|
-
disabled:
|
|
116
|
-
size:
|
|
117
|
-
icon:
|
|
112
|
+
disabled: i,
|
|
113
|
+
size: d,
|
|
114
|
+
icon: f = "arrows/arrowLink",
|
|
118
115
|
...u
|
|
119
|
-
}) => /* @__PURE__ */
|
|
120
|
-
|
|
121
|
-
t && /* @__PURE__ */
|
|
122
|
-
] }),
|
|
116
|
+
}) => /* @__PURE__ */ o.jsxs(r, { className: a(Q({ intent: e, withIcon: t, disabled: i, size: d })), ...u, children: [
|
|
117
|
+
n,
|
|
118
|
+
t && /* @__PURE__ */ o.jsx(m, { name: f, className: a(J({ intent: e, disabled: i })) })
|
|
119
|
+
] }), K = x("size-8 transition-colors", {
|
|
123
120
|
variants: {
|
|
124
121
|
intent: {
|
|
125
122
|
outline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
|
|
@@ -129,84 +126,84 @@ const yn = (a) => a.split("-").map((r) => r.charAt(0).toUpperCase() + r.slice(1)
|
|
|
129
126
|
defaultVariants: {
|
|
130
127
|
intent: "outline"
|
|
131
128
|
}
|
|
132
|
-
}),
|
|
129
|
+
}), Y = {
|
|
133
130
|
filled: "files/documentFilled",
|
|
134
131
|
outline: "files/documentOutline"
|
|
135
|
-
},
|
|
132
|
+
}, ze = ({ text: r, size: e, sizeType: n, href: t, intent: i = "outline" }) => /* @__PURE__ */ o.jsxs(
|
|
136
133
|
"a",
|
|
137
134
|
{
|
|
138
135
|
href: t,
|
|
139
136
|
target: "_blank",
|
|
140
137
|
rel: "noreferrer",
|
|
141
138
|
tabIndex: 0,
|
|
142
|
-
className:
|
|
139
|
+
className: a(
|
|
143
140
|
"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]"
|
|
144
141
|
),
|
|
145
142
|
children: [
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
-
/* @__PURE__ */
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
-
|
|
143
|
+
/* @__PURE__ */ o.jsx(m, { name: Y[i], className: a(K({ intent: i })) }),
|
|
144
|
+
/* @__PURE__ */ o.jsxs("div", { className: a("flex flex-1 flex-col"), children: [
|
|
145
|
+
/* @__PURE__ */ o.jsx("p", { className: a("desk-body-medium-l text-color-dark"), children: r }),
|
|
146
|
+
/* @__PURE__ */ o.jsxs("div", { className: a("desk-body-regular-m text-color-disabled"), children: [
|
|
147
|
+
e,
|
|
151
148
|
" ",
|
|
152
|
-
|
|
149
|
+
n
|
|
153
150
|
] })
|
|
154
151
|
] })
|
|
155
152
|
]
|
|
156
153
|
}
|
|
157
|
-
),
|
|
158
|
-
/* @__PURE__ */
|
|
154
|
+
), L = ({ phone: r, text: e, classes: n, ...t }) => /* @__PURE__ */ o.jsxs("div", { className: a("flex w-max flex-col", n == null ? void 0 : n.wrapper), ...t, children: [
|
|
155
|
+
/* @__PURE__ */ o.jsx(
|
|
159
156
|
"a",
|
|
160
157
|
{
|
|
161
|
-
href: `tel:${
|
|
162
|
-
className:
|
|
163
|
-
children:
|
|
158
|
+
href: `tel:${r}`,
|
|
159
|
+
className: a("mob-body-medium-l ml-auto text-color-dark desktop:desk-body-medium-l", n == null ? void 0 : n.link),
|
|
160
|
+
children: r
|
|
164
161
|
}
|
|
165
162
|
),
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
] }),
|
|
168
|
-
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ o.jsx("p", { className: a("desk-body-regular-l text-color-tetriary", n == null ? void 0 : n.text), children: e })
|
|
164
|
+
] }), Be = ({ topContent: r, bottomContent: e, progress: n, maxPercent: t = 100, classes: i }) => /* @__PURE__ */ o.jsxs("div", { className: a("flex w-full flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
165
|
+
r && /* @__PURE__ */ o.jsx("div", { className: a("mb-2 flex justify-between gap-5", i == null ? void 0 : i.topContent), children: r }),
|
|
166
|
+
/* @__PURE__ */ o.jsxs("div", { className: a("relative h-2 w-[328xp] rounded-md bg-color-blue-grey-100 desktop:w-[524px]", i == null ? void 0 : i.progressBar), children: [
|
|
167
|
+
/* @__PURE__ */ o.jsx(
|
|
171
168
|
"div",
|
|
172
169
|
{
|
|
173
|
-
style: { width: `${
|
|
174
|
-
className:
|
|
170
|
+
style: { width: `${n}%` },
|
|
171
|
+
className: a("relative z-10 h-2 rounded-md bg-color-positive transition-all", i == null ? void 0 : i.progress)
|
|
175
172
|
}
|
|
176
173
|
),
|
|
177
|
-
/* @__PURE__ */
|
|
174
|
+
/* @__PURE__ */ o.jsx(
|
|
178
175
|
"span",
|
|
179
176
|
{
|
|
180
177
|
style: { maxWidth: `${t}%` },
|
|
181
|
-
className:
|
|
178
|
+
className: a(
|
|
182
179
|
"progressBar-apply z-1 absolute top-1/2 h-full w-full -translate-y-1/2 animate-progress-loader rounded-md",
|
|
183
|
-
|
|
180
|
+
i == null ? void 0 : i.loader
|
|
184
181
|
)
|
|
185
182
|
}
|
|
186
183
|
)
|
|
187
184
|
] }),
|
|
188
|
-
|
|
189
|
-
] }),
|
|
190
|
-
main: /* @__PURE__ */
|
|
191
|
-
white: /* @__PURE__ */
|
|
192
|
-
gray: /* @__PURE__ */
|
|
193
|
-
black: /* @__PURE__ */
|
|
194
|
-
business: /* @__PURE__ */
|
|
195
|
-
insurance: /* @__PURE__ */
|
|
196
|
-
},
|
|
197
|
-
|
|
185
|
+
e && /* @__PURE__ */ o.jsx("div", { className: a("mt-2 flex justify-between gap-5", i == null ? void 0 : i.bottomContent), children: e })
|
|
186
|
+
] }), Se = ({ className: r }) => /* @__PURE__ */ o.jsx("div", { className: a("skeleton-apply h-full w-full", r) }), ee = {
|
|
187
|
+
main: /* @__PURE__ */ o.jsx(m, { name: "brandLogos/logoMain" }),
|
|
188
|
+
white: /* @__PURE__ */ o.jsx(m, { name: "brandLogos/logoWhite" }),
|
|
189
|
+
gray: /* @__PURE__ */ o.jsx(m, { name: "brandLogos/logoGray" }),
|
|
190
|
+
black: /* @__PURE__ */ o.jsx(m, { name: "brandLogos/logoBlack" }),
|
|
191
|
+
business: /* @__PURE__ */ o.jsx(m, { name: "brandLogos/logoBusiness" }),
|
|
192
|
+
insurance: /* @__PURE__ */ o.jsx(m, { name: "brandLogos/logoInsurance" })
|
|
193
|
+
}, Re = ({ isVisible: r, classes: e, children: n, buttonProps: t }) => /* @__PURE__ */ o.jsxs(
|
|
194
|
+
g,
|
|
198
195
|
{
|
|
199
|
-
className:
|
|
196
|
+
className: a(
|
|
200
197
|
"fixed bottom-0 left-1/2 z-[60] w-full max-w-[604px] -translate-x-1/2 translate-y-0 rounded-t-lg bg-color-white px-6 py-4 shadow-[0px_-6px_8px_0px_#2929290A] transition-transform duration-1000 desktop:hidden",
|
|
201
|
-
{ "translate-y-[100%]": !
|
|
202
|
-
|
|
198
|
+
{ "translate-y-[100%]": !r },
|
|
199
|
+
e == null ? void 0 : e.root
|
|
203
200
|
),
|
|
204
201
|
children: [
|
|
205
|
-
|
|
206
|
-
/* @__PURE__ */
|
|
202
|
+
n,
|
|
203
|
+
/* @__PURE__ */ o.jsx(I, { size: "lg", className: a("m-auto w-full", e == null ? void 0 : e.button), ...t, children: "Оформить заявку" })
|
|
207
204
|
]
|
|
208
205
|
}
|
|
209
|
-
),
|
|
206
|
+
), te = /^[\u0400-\u04FF\u00CB\u00EB -]+$/, D = /^(?:[^-]+(?:-[^-]+){0,4}|[^-]+)$/, re = /^[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4}(?:\s+[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4})?$/i, s = {
|
|
210
207
|
REQUIRED: "Поле обязательно к заполнению",
|
|
211
208
|
MIN_LENGTH: "Минимальная длина символов должна быть не менее",
|
|
212
209
|
MAX_LENGTH: "Максимальная длина символов должна быть не более",
|
|
@@ -217,2182 +214,69 @@ const yn = (a) => a.split("-").map((r) => r.charAt(0).toUpperCase() + r.slice(1)
|
|
|
217
214
|
INVALID_VALUE: "Поле заполнено некорректно",
|
|
218
215
|
INVALID_DATE: "Введите корректную дату",
|
|
219
216
|
FUTURE_DATE_NOT_ALLOWED: "Нельзя выбрать дату позже текущей"
|
|
220
|
-
},
|
|
221
|
-
const
|
|
217
|
+
}, oe = (r) => {
|
|
218
|
+
const e = r.trim().replace(/\s+/g, " ").split(" "), [n, t, ...i] = e, d = i == null ? void 0 : i.join(" ");
|
|
222
219
|
return {
|
|
223
|
-
surname:
|
|
220
|
+
surname: n,
|
|
224
221
|
name: t,
|
|
225
|
-
patronymic:
|
|
222
|
+
patronymic: d
|
|
226
223
|
};
|
|
227
|
-
},
|
|
228
|
-
|
|
229
|
-
code:
|
|
224
|
+
}, Pe = p.string({ invalid_type_error: "Обязательно к заполнению", required_error: "Обязательно к заполнению" }).superRefine((r, e) => {
|
|
225
|
+
r === "" && e.addIssue({
|
|
226
|
+
code: p.ZodIssueCode.custom,
|
|
230
227
|
message: "Введите имя и фамилию"
|
|
231
|
-
}),
|
|
232
|
-
code:
|
|
228
|
+
}), te.test(r) || e.addIssue({
|
|
229
|
+
code: p.ZodIssueCode.custom,
|
|
233
230
|
message: "Должна быть только кириллица"
|
|
234
231
|
});
|
|
235
|
-
const { surname:
|
|
236
|
-
(!
|
|
237
|
-
code:
|
|
232
|
+
const { surname: n, name: t, patronymic: i } = oe(r);
|
|
233
|
+
(!n || !t) && e.addIssue({
|
|
234
|
+
code: p.ZodIssueCode.custom,
|
|
238
235
|
message: "Введите имя и фамилию"
|
|
239
|
-
}),
|
|
240
|
-
code:
|
|
236
|
+
}), D.test(t) || e.addIssue({
|
|
237
|
+
code: p.ZodIssueCode.custom,
|
|
241
238
|
message: "Неверно введено имя"
|
|
242
|
-
}),
|
|
243
|
-
code:
|
|
239
|
+
}), D.test(n) || e.addIssue({
|
|
240
|
+
code: p.ZodIssueCode.custom,
|
|
244
241
|
message: "Неверно введена фамилия"
|
|
245
|
-
}),
|
|
246
|
-
code:
|
|
242
|
+
}), i && (re.test(i) || e.addIssue({
|
|
243
|
+
code: p.ZodIssueCode.custom,
|
|
247
244
|
message: "Неверно введено отчество"
|
|
248
245
|
}));
|
|
249
|
-
}),
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
let et = {};
|
|
261
|
-
function A() {
|
|
262
|
-
return et;
|
|
263
|
-
}
|
|
264
|
-
function C(a, r) {
|
|
265
|
-
var u, h, x, k;
|
|
266
|
-
const e = A(), t = (r == null ? void 0 : r.weekStartsOn) ?? ((h = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.options) == null ? void 0 : h.weekStartsOn) ?? e.weekStartsOn ?? ((k = (x = e.locale) == null ? void 0 : x.options) == null ? void 0 : k.weekStartsOn) ?? 0, n = T(a, r == null ? void 0 : r.in), o = n.getDay(), s = (o < t ? 7 : 0) + o - t;
|
|
267
|
-
return n.setDate(n.getDate() - s), n.setHours(0, 0, 0, 0), n;
|
|
268
|
-
}
|
|
269
|
-
function L(a, r) {
|
|
270
|
-
return C(a, { ...r, weekStartsOn: 1 });
|
|
271
|
-
}
|
|
272
|
-
function tt(a, r) {
|
|
273
|
-
const e = T(a, r == null ? void 0 : r.in), t = e.getFullYear(), n = v(e, 0);
|
|
274
|
-
n.setFullYear(t + 1, 0, 4), n.setHours(0, 0, 0, 0);
|
|
275
|
-
const o = L(n), s = v(e, 0);
|
|
276
|
-
s.setFullYear(t, 0, 4), s.setHours(0, 0, 0, 0);
|
|
277
|
-
const u = L(s);
|
|
278
|
-
return e.getTime() >= o.getTime() ? t + 1 : e.getTime() >= u.getTime() ? t : t - 1;
|
|
279
|
-
}
|
|
280
|
-
function ge(a) {
|
|
281
|
-
const r = T(a), e = new Date(
|
|
282
|
-
Date.UTC(
|
|
283
|
-
r.getFullYear(),
|
|
284
|
-
r.getMonth(),
|
|
285
|
-
r.getDate(),
|
|
286
|
-
r.getHours(),
|
|
287
|
-
r.getMinutes(),
|
|
288
|
-
r.getSeconds(),
|
|
289
|
-
r.getMilliseconds()
|
|
290
|
-
)
|
|
291
|
-
);
|
|
292
|
-
return e.setUTCFullYear(r.getFullYear()), +a - +e;
|
|
293
|
-
}
|
|
294
|
-
function rt(a, r) {
|
|
295
|
-
const e = tt(a, r), t = v(a, 0);
|
|
296
|
-
return t.setFullYear(e, 0, 4), t.setHours(0, 0, 0, 0), L(t);
|
|
297
|
-
}
|
|
298
|
-
function nt(a) {
|
|
299
|
-
return a instanceof Date || typeof a == "object" && Object.prototype.toString.call(a) === "[object Date]";
|
|
300
|
-
}
|
|
301
|
-
function at(a) {
|
|
302
|
-
return !(!nt(a) && typeof a != "number" || isNaN(+T(a)));
|
|
303
|
-
}
|
|
304
|
-
const ot = {
|
|
305
|
-
lessThanXSeconds: {
|
|
306
|
-
one: "less than a second",
|
|
307
|
-
other: "less than {{count}} seconds"
|
|
308
|
-
},
|
|
309
|
-
xSeconds: {
|
|
310
|
-
one: "1 second",
|
|
311
|
-
other: "{{count}} seconds"
|
|
312
|
-
},
|
|
313
|
-
halfAMinute: "half a minute",
|
|
314
|
-
lessThanXMinutes: {
|
|
315
|
-
one: "less than a minute",
|
|
316
|
-
other: "less than {{count}} minutes"
|
|
317
|
-
},
|
|
318
|
-
xMinutes: {
|
|
319
|
-
one: "1 minute",
|
|
320
|
-
other: "{{count}} minutes"
|
|
321
|
-
},
|
|
322
|
-
aboutXHours: {
|
|
323
|
-
one: "about 1 hour",
|
|
324
|
-
other: "about {{count}} hours"
|
|
325
|
-
},
|
|
326
|
-
xHours: {
|
|
327
|
-
one: "1 hour",
|
|
328
|
-
other: "{{count}} hours"
|
|
329
|
-
},
|
|
330
|
-
xDays: {
|
|
331
|
-
one: "1 day",
|
|
332
|
-
other: "{{count}} days"
|
|
333
|
-
},
|
|
334
|
-
aboutXWeeks: {
|
|
335
|
-
one: "about 1 week",
|
|
336
|
-
other: "about {{count}} weeks"
|
|
337
|
-
},
|
|
338
|
-
xWeeks: {
|
|
339
|
-
one: "1 week",
|
|
340
|
-
other: "{{count}} weeks"
|
|
341
|
-
},
|
|
342
|
-
aboutXMonths: {
|
|
343
|
-
one: "about 1 month",
|
|
344
|
-
other: "about {{count}} months"
|
|
345
|
-
},
|
|
346
|
-
xMonths: {
|
|
347
|
-
one: "1 month",
|
|
348
|
-
other: "{{count}} months"
|
|
349
|
-
},
|
|
350
|
-
aboutXYears: {
|
|
351
|
-
one: "about 1 year",
|
|
352
|
-
other: "about {{count}} years"
|
|
353
|
-
},
|
|
354
|
-
xYears: {
|
|
355
|
-
one: "1 year",
|
|
356
|
-
other: "{{count}} years"
|
|
357
|
-
},
|
|
358
|
-
overXYears: {
|
|
359
|
-
one: "over 1 year",
|
|
360
|
-
other: "over {{count}} years"
|
|
361
|
-
},
|
|
362
|
-
almostXYears: {
|
|
363
|
-
one: "almost 1 year",
|
|
364
|
-
other: "almost {{count}} years"
|
|
365
|
-
}
|
|
366
|
-
}, it = (a, r, e) => {
|
|
367
|
-
let t;
|
|
368
|
-
const n = ot[a];
|
|
369
|
-
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;
|
|
370
|
-
};
|
|
371
|
-
function X(a) {
|
|
372
|
-
return (r = {}) => {
|
|
373
|
-
const e = r.width ? String(r.width) : a.defaultWidth;
|
|
374
|
-
return a.formats[e] || a.formats[a.defaultWidth];
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
const st = {
|
|
378
|
-
full: "EEEE, MMMM do, y",
|
|
379
|
-
long: "MMMM do, y",
|
|
380
|
-
medium: "MMM d, y",
|
|
381
|
-
short: "MM/dd/yyyy"
|
|
382
|
-
}, dt = {
|
|
383
|
-
full: "h:mm:ss a zzzz",
|
|
384
|
-
long: "h:mm:ss a z",
|
|
385
|
-
medium: "h:mm:ss a",
|
|
386
|
-
short: "h:mm a"
|
|
387
|
-
}, lt = {
|
|
388
|
-
full: "{{date}} 'at' {{time}}",
|
|
389
|
-
long: "{{date}} 'at' {{time}}",
|
|
390
|
-
medium: "{{date}}, {{time}}",
|
|
391
|
-
short: "{{date}}, {{time}}"
|
|
392
|
-
}, ut = {
|
|
393
|
-
date: X({
|
|
394
|
-
formats: st,
|
|
395
|
-
defaultWidth: "full"
|
|
396
|
-
}),
|
|
397
|
-
time: X({
|
|
398
|
-
formats: dt,
|
|
399
|
-
defaultWidth: "full"
|
|
400
|
-
}),
|
|
401
|
-
dateTime: X({
|
|
402
|
-
formats: lt,
|
|
403
|
-
defaultWidth: "full"
|
|
404
|
-
})
|
|
405
|
-
}, ct = {
|
|
406
|
-
lastWeek: "'last' eeee 'at' p",
|
|
407
|
-
yesterday: "'yesterday at' p",
|
|
408
|
-
today: "'today at' p",
|
|
409
|
-
tomorrow: "'tomorrow at' p",
|
|
410
|
-
nextWeek: "eeee 'at' p",
|
|
411
|
-
other: "P"
|
|
412
|
-
}, ft = (a, r, e, t) => ct[a];
|
|
413
|
-
function W(a) {
|
|
414
|
-
return (r, e) => {
|
|
415
|
-
const t = e != null && e.context ? String(e.context) : "standalone";
|
|
416
|
-
let n;
|
|
417
|
-
if (t === "formatting" && a.formattingValues) {
|
|
418
|
-
const s = a.defaultFormattingWidth || a.defaultWidth, u = e != null && e.width ? String(e.width) : s;
|
|
419
|
-
n = a.formattingValues[u] || a.formattingValues[s];
|
|
420
|
-
} else {
|
|
421
|
-
const s = a.defaultWidth, u = e != null && e.width ? String(e.width) : a.defaultWidth;
|
|
422
|
-
n = a.values[u] || a.values[s];
|
|
423
|
-
}
|
|
424
|
-
const o = a.argumentCallback ? a.argumentCallback(r) : r;
|
|
425
|
-
return n[o];
|
|
426
|
-
};
|
|
427
|
-
}
|
|
428
|
-
const mt = {
|
|
429
|
-
narrow: ["B", "A"],
|
|
430
|
-
abbreviated: ["BC", "AD"],
|
|
431
|
-
wide: ["Before Christ", "Anno Domini"]
|
|
432
|
-
}, ht = {
|
|
433
|
-
narrow: ["1", "2", "3", "4"],
|
|
434
|
-
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
435
|
-
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
436
|
-
}, xt = {
|
|
437
|
-
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
438
|
-
abbreviated: [
|
|
439
|
-
"Jan",
|
|
440
|
-
"Feb",
|
|
441
|
-
"Mar",
|
|
442
|
-
"Apr",
|
|
443
|
-
"May",
|
|
444
|
-
"Jun",
|
|
445
|
-
"Jul",
|
|
446
|
-
"Aug",
|
|
447
|
-
"Sep",
|
|
448
|
-
"Oct",
|
|
449
|
-
"Nov",
|
|
450
|
-
"Dec"
|
|
451
|
-
],
|
|
452
|
-
wide: [
|
|
453
|
-
"January",
|
|
454
|
-
"February",
|
|
455
|
-
"March",
|
|
456
|
-
"April",
|
|
457
|
-
"May",
|
|
458
|
-
"June",
|
|
459
|
-
"July",
|
|
460
|
-
"August",
|
|
461
|
-
"September",
|
|
462
|
-
"October",
|
|
463
|
-
"November",
|
|
464
|
-
"December"
|
|
465
|
-
]
|
|
466
|
-
}, pt = {
|
|
467
|
-
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
468
|
-
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
469
|
-
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
470
|
-
wide: [
|
|
471
|
-
"Sunday",
|
|
472
|
-
"Monday",
|
|
473
|
-
"Tuesday",
|
|
474
|
-
"Wednesday",
|
|
475
|
-
"Thursday",
|
|
476
|
-
"Friday",
|
|
477
|
-
"Saturday"
|
|
478
|
-
]
|
|
479
|
-
}, bt = {
|
|
480
|
-
narrow: {
|
|
481
|
-
am: "a",
|
|
482
|
-
pm: "p",
|
|
483
|
-
midnight: "mi",
|
|
484
|
-
noon: "n",
|
|
485
|
-
morning: "morning",
|
|
486
|
-
afternoon: "afternoon",
|
|
487
|
-
evening: "evening",
|
|
488
|
-
night: "night"
|
|
489
|
-
},
|
|
490
|
-
abbreviated: {
|
|
491
|
-
am: "AM",
|
|
492
|
-
pm: "PM",
|
|
493
|
-
midnight: "midnight",
|
|
494
|
-
noon: "noon",
|
|
495
|
-
morning: "morning",
|
|
496
|
-
afternoon: "afternoon",
|
|
497
|
-
evening: "evening",
|
|
498
|
-
night: "night"
|
|
499
|
-
},
|
|
500
|
-
wide: {
|
|
501
|
-
am: "a.m.",
|
|
502
|
-
pm: "p.m.",
|
|
503
|
-
midnight: "midnight",
|
|
504
|
-
noon: "noon",
|
|
505
|
-
morning: "morning",
|
|
506
|
-
afternoon: "afternoon",
|
|
507
|
-
evening: "evening",
|
|
508
|
-
night: "night"
|
|
509
|
-
}
|
|
510
|
-
}, wt = {
|
|
511
|
-
narrow: {
|
|
512
|
-
am: "a",
|
|
513
|
-
pm: "p",
|
|
514
|
-
midnight: "mi",
|
|
515
|
-
noon: "n",
|
|
516
|
-
morning: "in the morning",
|
|
517
|
-
afternoon: "in the afternoon",
|
|
518
|
-
evening: "in the evening",
|
|
519
|
-
night: "at night"
|
|
520
|
-
},
|
|
521
|
-
abbreviated: {
|
|
522
|
-
am: "AM",
|
|
523
|
-
pm: "PM",
|
|
524
|
-
midnight: "midnight",
|
|
525
|
-
noon: "noon",
|
|
526
|
-
morning: "in the morning",
|
|
527
|
-
afternoon: "in the afternoon",
|
|
528
|
-
evening: "in the evening",
|
|
529
|
-
night: "at night"
|
|
530
|
-
},
|
|
531
|
-
wide: {
|
|
532
|
-
am: "a.m.",
|
|
533
|
-
pm: "p.m.",
|
|
534
|
-
midnight: "midnight",
|
|
535
|
-
noon: "noon",
|
|
536
|
-
morning: "in the morning",
|
|
537
|
-
afternoon: "in the afternoon",
|
|
538
|
-
evening: "in the evening",
|
|
539
|
-
night: "at night"
|
|
540
|
-
}
|
|
541
|
-
}, yt = (a, r) => {
|
|
542
|
-
const e = Number(a), t = e % 100;
|
|
543
|
-
if (t > 20 || t < 10)
|
|
544
|
-
switch (t % 10) {
|
|
545
|
-
case 1:
|
|
546
|
-
return e + "st";
|
|
547
|
-
case 2:
|
|
548
|
-
return e + "nd";
|
|
549
|
-
case 3:
|
|
550
|
-
return e + "rd";
|
|
551
|
-
}
|
|
552
|
-
return e + "th";
|
|
553
|
-
}, gt = {
|
|
554
|
-
ordinalNumber: yt,
|
|
555
|
-
era: W({
|
|
556
|
-
values: mt,
|
|
557
|
-
defaultWidth: "wide"
|
|
558
|
-
}),
|
|
559
|
-
quarter: W({
|
|
560
|
-
values: ht,
|
|
561
|
-
defaultWidth: "wide",
|
|
562
|
-
argumentCallback: (a) => a - 1
|
|
563
|
-
}),
|
|
564
|
-
month: W({
|
|
565
|
-
values: xt,
|
|
566
|
-
defaultWidth: "wide"
|
|
567
|
-
}),
|
|
568
|
-
day: W({
|
|
569
|
-
values: pt,
|
|
570
|
-
defaultWidth: "wide"
|
|
571
|
-
}),
|
|
572
|
-
dayPeriod: W({
|
|
573
|
-
values: bt,
|
|
574
|
-
defaultWidth: "wide",
|
|
575
|
-
formattingValues: wt,
|
|
576
|
-
defaultFormattingWidth: "wide"
|
|
577
|
-
})
|
|
578
|
-
};
|
|
579
|
-
function H(a) {
|
|
580
|
-
return (r, e = {}) => {
|
|
581
|
-
const t = e.width, n = t && a.matchPatterns[t] || a.matchPatterns[a.defaultMatchWidth], o = r.match(n);
|
|
582
|
-
if (!o)
|
|
583
|
-
return null;
|
|
584
|
-
const s = o[0], u = t && a.parsePatterns[t] || a.parsePatterns[a.defaultParseWidth], h = Array.isArray(u) ? vt(u, (c) => c.test(s)) : (
|
|
585
|
-
// [TODO] -- I challenge you to fix the type
|
|
586
|
-
kt(u, (c) => c.test(s))
|
|
587
|
-
);
|
|
588
|
-
let x;
|
|
589
|
-
x = a.valueCallback ? a.valueCallback(h) : h, x = e.valueCallback ? (
|
|
590
|
-
// [TODO] -- I challenge you to fix the type
|
|
591
|
-
e.valueCallback(x)
|
|
592
|
-
) : x;
|
|
593
|
-
const k = r.slice(s.length);
|
|
594
|
-
return { value: x, rest: k };
|
|
595
|
-
};
|
|
596
|
-
}
|
|
597
|
-
function kt(a, r) {
|
|
598
|
-
for (const e in a)
|
|
599
|
-
if (Object.prototype.hasOwnProperty.call(a, e) && r(a[e]))
|
|
600
|
-
return e;
|
|
601
|
-
}
|
|
602
|
-
function vt(a, r) {
|
|
603
|
-
for (let e = 0; e < a.length; e++)
|
|
604
|
-
if (r(a[e]))
|
|
605
|
-
return e;
|
|
606
|
-
}
|
|
607
|
-
function Dt(a) {
|
|
608
|
-
return (r, e = {}) => {
|
|
609
|
-
const t = r.match(a.matchPattern);
|
|
610
|
-
if (!t) return null;
|
|
611
|
-
const n = t[0], o = r.match(a.parsePattern);
|
|
612
|
-
if (!o) return null;
|
|
613
|
-
let s = a.valueCallback ? a.valueCallback(o[0]) : o[0];
|
|
614
|
-
s = e.valueCallback ? e.valueCallback(s) : s;
|
|
615
|
-
const u = r.slice(n.length);
|
|
616
|
-
return { value: s, rest: u };
|
|
617
|
-
};
|
|
618
|
-
}
|
|
619
|
-
const Tt = /^(\d+)(th|st|nd|rd)?/i, Pt = /\d+/i, Nt = {
|
|
620
|
-
narrow: /^(b|a)/i,
|
|
621
|
-
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
622
|
-
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
623
|
-
}, jt = {
|
|
624
|
-
any: [/^b/i, /^(a|c)/i]
|
|
625
|
-
}, It = {
|
|
626
|
-
narrow: /^[1234]/i,
|
|
627
|
-
abbreviated: /^q[1234]/i,
|
|
628
|
-
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
629
|
-
}, _t = {
|
|
630
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
631
|
-
}, Mt = {
|
|
632
|
-
narrow: /^[jfmasond]/i,
|
|
633
|
-
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
634
|
-
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
635
|
-
}, Et = {
|
|
636
|
-
narrow: [
|
|
637
|
-
/^j/i,
|
|
638
|
-
/^f/i,
|
|
639
|
-
/^m/i,
|
|
640
|
-
/^a/i,
|
|
641
|
-
/^m/i,
|
|
642
|
-
/^j/i,
|
|
643
|
-
/^j/i,
|
|
644
|
-
/^a/i,
|
|
645
|
-
/^s/i,
|
|
646
|
-
/^o/i,
|
|
647
|
-
/^n/i,
|
|
648
|
-
/^d/i
|
|
649
|
-
],
|
|
650
|
-
any: [
|
|
651
|
-
/^ja/i,
|
|
652
|
-
/^f/i,
|
|
653
|
-
/^mar/i,
|
|
654
|
-
/^ap/i,
|
|
655
|
-
/^may/i,
|
|
656
|
-
/^jun/i,
|
|
657
|
-
/^jul/i,
|
|
658
|
-
/^au/i,
|
|
659
|
-
/^s/i,
|
|
660
|
-
/^o/i,
|
|
661
|
-
/^n/i,
|
|
662
|
-
/^d/i
|
|
663
|
-
]
|
|
664
|
-
}, Ct = {
|
|
665
|
-
narrow: /^[smtwf]/i,
|
|
666
|
-
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
667
|
-
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
668
|
-
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
669
|
-
}, Ot = {
|
|
670
|
-
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
671
|
-
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
672
|
-
}, Ft = {
|
|
673
|
-
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
674
|
-
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
675
|
-
}, Yt = {
|
|
676
|
-
any: {
|
|
677
|
-
am: /^a/i,
|
|
678
|
-
pm: /^p/i,
|
|
679
|
-
midnight: /^mi/i,
|
|
680
|
-
noon: /^no/i,
|
|
681
|
-
morning: /morning/i,
|
|
682
|
-
afternoon: /afternoon/i,
|
|
683
|
-
evening: /evening/i,
|
|
684
|
-
night: /night/i
|
|
685
|
-
}
|
|
686
|
-
}, Lt = {
|
|
687
|
-
ordinalNumber: Dt({
|
|
688
|
-
matchPattern: Tt,
|
|
689
|
-
parsePattern: Pt,
|
|
690
|
-
valueCallback: (a) => parseInt(a, 10)
|
|
691
|
-
}),
|
|
692
|
-
era: H({
|
|
693
|
-
matchPatterns: Nt,
|
|
694
|
-
defaultMatchWidth: "wide",
|
|
695
|
-
parsePatterns: jt,
|
|
696
|
-
defaultParseWidth: "any"
|
|
697
|
-
}),
|
|
698
|
-
quarter: H({
|
|
699
|
-
matchPatterns: It,
|
|
700
|
-
defaultMatchWidth: "wide",
|
|
701
|
-
parsePatterns: _t,
|
|
702
|
-
defaultParseWidth: "any",
|
|
703
|
-
valueCallback: (a) => a + 1
|
|
704
|
-
}),
|
|
705
|
-
month: H({
|
|
706
|
-
matchPatterns: Mt,
|
|
707
|
-
defaultMatchWidth: "wide",
|
|
708
|
-
parsePatterns: Et,
|
|
709
|
-
defaultParseWidth: "any"
|
|
710
|
-
}),
|
|
711
|
-
day: H({
|
|
712
|
-
matchPatterns: Ct,
|
|
713
|
-
defaultMatchWidth: "wide",
|
|
714
|
-
parsePatterns: Ot,
|
|
715
|
-
defaultParseWidth: "any"
|
|
716
|
-
}),
|
|
717
|
-
dayPeriod: H({
|
|
718
|
-
matchPatterns: Ft,
|
|
719
|
-
defaultMatchWidth: "any",
|
|
720
|
-
parsePatterns: Yt,
|
|
721
|
-
defaultParseWidth: "any"
|
|
722
|
-
})
|
|
723
|
-
}, Wt = {
|
|
724
|
-
code: "en-US",
|
|
725
|
-
formatDistance: it,
|
|
726
|
-
formatLong: ut,
|
|
727
|
-
formatRelative: ft,
|
|
728
|
-
localize: gt,
|
|
729
|
-
match: Lt,
|
|
730
|
-
options: {
|
|
731
|
-
weekStartsOn: 0,
|
|
732
|
-
firstWeekContainsDate: 1
|
|
733
|
-
}
|
|
734
|
-
};
|
|
735
|
-
function Ht(a, r) {
|
|
736
|
-
const e = T(a, r == null ? void 0 : r.in), t = +L(e) - +rt(e);
|
|
737
|
-
return Math.round(t / we) + 1;
|
|
738
|
-
}
|
|
739
|
-
function ke(a, r) {
|
|
740
|
-
var k, c, _, F;
|
|
741
|
-
const e = T(a, r == null ? void 0 : r.in), t = e.getFullYear(), n = A(), o = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((c = (k = r == null ? void 0 : r.locale) == null ? void 0 : k.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((F = (_ = n.locale) == null ? void 0 : _.options) == null ? void 0 : F.firstWeekContainsDate) ?? 1, s = v((r == null ? void 0 : r.in) || a, 0);
|
|
742
|
-
s.setFullYear(t + 1, 0, o), s.setHours(0, 0, 0, 0);
|
|
743
|
-
const u = C(s, r), h = v((r == null ? void 0 : r.in) || a, 0);
|
|
744
|
-
h.setFullYear(t, 0, o), h.setHours(0, 0, 0, 0);
|
|
745
|
-
const x = C(h, r);
|
|
746
|
-
return +e >= +u ? t + 1 : +e >= +x ? t : t - 1;
|
|
747
|
-
}
|
|
748
|
-
function Rt(a, r) {
|
|
749
|
-
var u, h, x, k;
|
|
750
|
-
const e = A(), t = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((h = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.options) == null ? void 0 : h.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((k = (x = e.locale) == null ? void 0 : x.options) == null ? void 0 : k.firstWeekContainsDate) ?? 1, n = ke(a, r), o = v((r == null ? void 0 : r.in) || a, 0);
|
|
751
|
-
return o.setFullYear(n, 0, t), o.setHours(0, 0, 0, 0), C(o, r);
|
|
752
|
-
}
|
|
753
|
-
function At(a, r) {
|
|
754
|
-
const e = T(a, r == null ? void 0 : r.in), t = +C(e, r) - +Rt(e, r);
|
|
755
|
-
return Math.round(t / we) + 1;
|
|
756
|
-
}
|
|
757
|
-
const ue = (a, r) => {
|
|
758
|
-
switch (a) {
|
|
759
|
-
case "P":
|
|
760
|
-
return r.date({ width: "short" });
|
|
761
|
-
case "PP":
|
|
762
|
-
return r.date({ width: "medium" });
|
|
763
|
-
case "PPP":
|
|
764
|
-
return r.date({ width: "long" });
|
|
765
|
-
case "PPPP":
|
|
766
|
-
default:
|
|
767
|
-
return r.date({ width: "full" });
|
|
768
|
-
}
|
|
769
|
-
}, ve = (a, r) => {
|
|
770
|
-
switch (a) {
|
|
771
|
-
case "p":
|
|
772
|
-
return r.time({ width: "short" });
|
|
773
|
-
case "pp":
|
|
774
|
-
return r.time({ width: "medium" });
|
|
775
|
-
case "ppp":
|
|
776
|
-
return r.time({ width: "long" });
|
|
777
|
-
case "pppp":
|
|
778
|
-
default:
|
|
779
|
-
return r.time({ width: "full" });
|
|
780
|
-
}
|
|
781
|
-
}, Bt = (a, r) => {
|
|
782
|
-
const e = a.match(/(P+)(p+)?/) || [], t = e[1], n = e[2];
|
|
783
|
-
if (!n)
|
|
784
|
-
return ue(a, r);
|
|
785
|
-
let o;
|
|
786
|
-
switch (t) {
|
|
787
|
-
case "P":
|
|
788
|
-
o = r.dateTime({ width: "short" });
|
|
789
|
-
break;
|
|
790
|
-
case "PP":
|
|
791
|
-
o = r.dateTime({ width: "medium" });
|
|
792
|
-
break;
|
|
793
|
-
case "PPP":
|
|
794
|
-
o = r.dateTime({ width: "long" });
|
|
795
|
-
break;
|
|
796
|
-
case "PPPP":
|
|
797
|
-
default:
|
|
798
|
-
o = r.dateTime({ width: "full" });
|
|
799
|
-
break;
|
|
800
|
-
}
|
|
801
|
-
return o.replace("{{date}}", ue(t, r)).replace("{{time}}", ve(n, r));
|
|
802
|
-
}, ce = {
|
|
803
|
-
p: ve,
|
|
804
|
-
P: Bt
|
|
805
|
-
}, zt = /^D+$/, qt = /^Y+$/, Qt = ["D", "DD", "YY", "YYYY"];
|
|
806
|
-
function $t(a) {
|
|
807
|
-
return zt.test(a);
|
|
808
|
-
}
|
|
809
|
-
function Vt(a) {
|
|
810
|
-
return qt.test(a);
|
|
811
|
-
}
|
|
812
|
-
function fe(a, r, e) {
|
|
813
|
-
const t = Gt(a, r, e);
|
|
814
|
-
if (console.warn(t), Qt.includes(a)) throw new RangeError(t);
|
|
815
|
-
}
|
|
816
|
-
function Gt(a, r, e) {
|
|
817
|
-
const t = a[0] === "Y" ? "years" : "days of the month";
|
|
818
|
-
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`;
|
|
819
|
-
}
|
|
820
|
-
function Xt() {
|
|
821
|
-
return Object.assign({}, A());
|
|
822
|
-
}
|
|
823
|
-
function Zt(a, r) {
|
|
824
|
-
const e = T(a, r == null ? void 0 : r.in).getDay();
|
|
825
|
-
return e === 0 ? 7 : e;
|
|
826
|
-
}
|
|
827
|
-
function Ut(a, r) {
|
|
828
|
-
const e = Jt(r) ? new r(0) : v(r, 0);
|
|
829
|
-
return e.setFullYear(a.getFullYear(), a.getMonth(), a.getDate()), e.setHours(
|
|
830
|
-
a.getHours(),
|
|
831
|
-
a.getMinutes(),
|
|
832
|
-
a.getSeconds(),
|
|
833
|
-
a.getMilliseconds()
|
|
834
|
-
), e;
|
|
835
|
-
}
|
|
836
|
-
function Jt(a) {
|
|
837
|
-
var r;
|
|
838
|
-
return typeof a == "function" && ((r = a.prototype) == null ? void 0 : r.constructor) === a;
|
|
839
|
-
}
|
|
840
|
-
const Kt = 10;
|
|
841
|
-
class De {
|
|
842
|
-
constructor() {
|
|
843
|
-
l(this, "subPriority", 0);
|
|
844
|
-
}
|
|
845
|
-
validate(r, e) {
|
|
846
|
-
return !0;
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
class St extends De {
|
|
850
|
-
constructor(r, e, t, n, o) {
|
|
851
|
-
super(), this.value = r, this.validateValue = e, this.setValue = t, this.priority = n, o && (this.subPriority = o);
|
|
852
|
-
}
|
|
853
|
-
validate(r, e) {
|
|
854
|
-
return this.validateValue(r, this.value, e);
|
|
855
|
-
}
|
|
856
|
-
set(r, e, t) {
|
|
857
|
-
return this.setValue(r, e, this.value, t);
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
class er extends De {
|
|
861
|
-
constructor(e, t) {
|
|
862
|
-
super();
|
|
863
|
-
l(this, "priority", Kt);
|
|
864
|
-
l(this, "subPriority", -1);
|
|
865
|
-
this.context = e || ((n) => v(t, n));
|
|
866
|
-
}
|
|
867
|
-
set(e, t) {
|
|
868
|
-
return t.timestampIsSet ? e : v(e, Ut(e, this.context));
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
class m {
|
|
872
|
-
run(r, e, t, n) {
|
|
873
|
-
const o = this.parse(r, e, t, n);
|
|
874
|
-
return o ? {
|
|
875
|
-
setter: new St(
|
|
876
|
-
o.value,
|
|
877
|
-
this.validate,
|
|
878
|
-
this.set,
|
|
879
|
-
this.priority,
|
|
880
|
-
this.subPriority
|
|
881
|
-
),
|
|
882
|
-
rest: o.rest
|
|
883
|
-
} : null;
|
|
884
|
-
}
|
|
885
|
-
validate(r, e, t) {
|
|
886
|
-
return !0;
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
class tr extends m {
|
|
890
|
-
constructor() {
|
|
891
|
-
super(...arguments);
|
|
892
|
-
l(this, "priority", 140);
|
|
893
|
-
l(this, "incompatibleTokens", ["R", "u", "t", "T"]);
|
|
894
|
-
}
|
|
895
|
-
parse(e, t, n) {
|
|
896
|
-
switch (t) {
|
|
897
|
-
case "G":
|
|
898
|
-
case "GG":
|
|
899
|
-
case "GGG":
|
|
900
|
-
return n.era(e, { width: "abbreviated" }) || n.era(e, { width: "narrow" });
|
|
901
|
-
case "GGGGG":
|
|
902
|
-
return n.era(e, { width: "narrow" });
|
|
903
|
-
case "GGGG":
|
|
904
|
-
default:
|
|
905
|
-
return n.era(e, { width: "wide" }) || n.era(e, { width: "abbreviated" }) || n.era(e, { width: "narrow" });
|
|
906
|
-
}
|
|
907
|
-
}
|
|
908
|
-
set(e, t, n) {
|
|
909
|
-
return t.era = n, e.setFullYear(n, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
const y = {
|
|
913
|
-
month: /^(1[0-2]|0?\d)/,
|
|
914
|
-
// 0 to 12
|
|
915
|
-
date: /^(3[0-1]|[0-2]?\d)/,
|
|
916
|
-
// 0 to 31
|
|
917
|
-
dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
|
|
918
|
-
// 0 to 366
|
|
919
|
-
week: /^(5[0-3]|[0-4]?\d)/,
|
|
920
|
-
// 0 to 53
|
|
921
|
-
hour23h: /^(2[0-3]|[0-1]?\d)/,
|
|
922
|
-
// 0 to 23
|
|
923
|
-
hour24h: /^(2[0-4]|[0-1]?\d)/,
|
|
924
|
-
// 0 to 24
|
|
925
|
-
hour11h: /^(1[0-1]|0?\d)/,
|
|
926
|
-
// 0 to 11
|
|
927
|
-
hour12h: /^(1[0-2]|0?\d)/,
|
|
928
|
-
// 0 to 12
|
|
929
|
-
minute: /^[0-5]?\d/,
|
|
930
|
-
// 0 to 59
|
|
931
|
-
second: /^[0-5]?\d/,
|
|
932
|
-
// 0 to 59
|
|
933
|
-
singleDigit: /^\d/,
|
|
934
|
-
// 0 to 9
|
|
935
|
-
twoDigits: /^\d{1,2}/,
|
|
936
|
-
// 0 to 99
|
|
937
|
-
threeDigits: /^\d{1,3}/,
|
|
938
|
-
// 0 to 999
|
|
939
|
-
fourDigits: /^\d{1,4}/,
|
|
940
|
-
// 0 to 9999
|
|
941
|
-
anyDigitsSigned: /^-?\d+/,
|
|
942
|
-
singleDigitSigned: /^-?\d/,
|
|
943
|
-
// 0 to 9, -0 to -9
|
|
944
|
-
twoDigitsSigned: /^-?\d{1,2}/,
|
|
945
|
-
// 0 to 99, -0 to -99
|
|
946
|
-
threeDigitsSigned: /^-?\d{1,3}/,
|
|
947
|
-
// 0 to 999, -0 to -999
|
|
948
|
-
fourDigitsSigned: /^-?\d{1,4}/
|
|
949
|
-
// 0 to 9999, -0 to -9999
|
|
950
|
-
}, j = {
|
|
951
|
-
basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
|
|
952
|
-
basic: /^([+-])(\d{2})(\d{2})|Z/,
|
|
953
|
-
basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
|
|
954
|
-
extended: /^([+-])(\d{2}):(\d{2})|Z/,
|
|
955
|
-
extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
|
|
956
|
-
};
|
|
957
|
-
function g(a, r) {
|
|
958
|
-
return a && {
|
|
959
|
-
value: r(a.value),
|
|
960
|
-
rest: a.rest
|
|
961
|
-
};
|
|
962
|
-
}
|
|
963
|
-
function p(a, r) {
|
|
964
|
-
const e = r.match(a);
|
|
965
|
-
return e ? {
|
|
966
|
-
value: parseInt(e[0], 10),
|
|
967
|
-
rest: r.slice(e[0].length)
|
|
968
|
-
} : null;
|
|
969
|
-
}
|
|
970
|
-
function I(a, r) {
|
|
971
|
-
const e = r.match(a);
|
|
972
|
-
if (!e)
|
|
973
|
-
return null;
|
|
974
|
-
if (e[0] === "Z")
|
|
975
|
-
return {
|
|
976
|
-
value: 0,
|
|
977
|
-
rest: r.slice(1)
|
|
978
|
-
};
|
|
979
|
-
const t = e[1] === "+" ? 1 : -1, n = e[2] ? parseInt(e[2], 10) : 0, o = e[3] ? parseInt(e[3], 10) : 0, s = e[5] ? parseInt(e[5], 10) : 0;
|
|
980
|
-
return {
|
|
981
|
-
value: t * (n * Ke + o * Je + s * Se),
|
|
982
|
-
rest: r.slice(e[0].length)
|
|
983
|
-
};
|
|
984
|
-
}
|
|
985
|
-
function Te(a) {
|
|
986
|
-
return p(y.anyDigitsSigned, a);
|
|
987
|
-
}
|
|
988
|
-
function w(a, r) {
|
|
989
|
-
switch (a) {
|
|
990
|
-
case 1:
|
|
991
|
-
return p(y.singleDigit, r);
|
|
992
|
-
case 2:
|
|
993
|
-
return p(y.twoDigits, r);
|
|
994
|
-
case 3:
|
|
995
|
-
return p(y.threeDigits, r);
|
|
996
|
-
case 4:
|
|
997
|
-
return p(y.fourDigits, r);
|
|
998
|
-
default:
|
|
999
|
-
return p(new RegExp("^\\d{1," + a + "}"), r);
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
function q(a, r) {
|
|
1003
|
-
switch (a) {
|
|
1004
|
-
case 1:
|
|
1005
|
-
return p(y.singleDigitSigned, r);
|
|
1006
|
-
case 2:
|
|
1007
|
-
return p(y.twoDigitsSigned, r);
|
|
1008
|
-
case 3:
|
|
1009
|
-
return p(y.threeDigitsSigned, r);
|
|
1010
|
-
case 4:
|
|
1011
|
-
return p(y.fourDigitsSigned, r);
|
|
1012
|
-
default:
|
|
1013
|
-
return p(new RegExp("^-?\\d{1," + a + "}"), r);
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
function K(a) {
|
|
1017
|
-
switch (a) {
|
|
1018
|
-
case "morning":
|
|
1019
|
-
return 4;
|
|
1020
|
-
case "evening":
|
|
1021
|
-
return 17;
|
|
1022
|
-
case "pm":
|
|
1023
|
-
case "noon":
|
|
1024
|
-
case "afternoon":
|
|
1025
|
-
return 12;
|
|
1026
|
-
case "am":
|
|
1027
|
-
case "midnight":
|
|
1028
|
-
case "night":
|
|
1029
|
-
default:
|
|
1030
|
-
return 0;
|
|
1031
|
-
}
|
|
1032
|
-
}
|
|
1033
|
-
function Pe(a, r) {
|
|
1034
|
-
const e = r > 0, t = e ? r : 1 - r;
|
|
1035
|
-
let n;
|
|
1036
|
-
if (t <= 50)
|
|
1037
|
-
n = a || 100;
|
|
1038
|
-
else {
|
|
1039
|
-
const o = t + 50, s = Math.trunc(o / 100) * 100, u = a >= o % 100;
|
|
1040
|
-
n = a + s - (u ? 100 : 0);
|
|
1041
|
-
}
|
|
1042
|
-
return e ? n : 1 - n;
|
|
1043
|
-
}
|
|
1044
|
-
function Ne(a) {
|
|
1045
|
-
return a % 400 === 0 || a % 4 === 0 && a % 100 !== 0;
|
|
1046
|
-
}
|
|
1047
|
-
class rr extends m {
|
|
1048
|
-
constructor() {
|
|
1049
|
-
super(...arguments);
|
|
1050
|
-
l(this, "priority", 130);
|
|
1051
|
-
l(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
|
|
1052
|
-
}
|
|
1053
|
-
parse(e, t, n) {
|
|
1054
|
-
const o = (s) => ({
|
|
1055
|
-
year: s,
|
|
1056
|
-
isTwoDigitYear: t === "yy"
|
|
1057
|
-
});
|
|
1058
|
-
switch (t) {
|
|
1059
|
-
case "y":
|
|
1060
|
-
return g(w(4, e), o);
|
|
1061
|
-
case "yo":
|
|
1062
|
-
return g(
|
|
1063
|
-
n.ordinalNumber(e, {
|
|
1064
|
-
unit: "year"
|
|
1065
|
-
}),
|
|
1066
|
-
o
|
|
1067
|
-
);
|
|
1068
|
-
default:
|
|
1069
|
-
return g(w(t.length, e), o);
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
validate(e, t) {
|
|
1073
|
-
return t.isTwoDigitYear || t.year > 0;
|
|
1074
|
-
}
|
|
1075
|
-
set(e, t, n) {
|
|
1076
|
-
const o = e.getFullYear();
|
|
1077
|
-
if (n.isTwoDigitYear) {
|
|
1078
|
-
const u = Pe(
|
|
1079
|
-
n.year,
|
|
1080
|
-
o
|
|
1081
|
-
);
|
|
1082
|
-
return e.setFullYear(u, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
1083
|
-
}
|
|
1084
|
-
const s = !("era" in t) || t.era === 1 ? n.year : 1 - n.year;
|
|
1085
|
-
return e.setFullYear(s, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
class nr extends m {
|
|
1089
|
-
constructor() {
|
|
1090
|
-
super(...arguments);
|
|
1091
|
-
l(this, "priority", 130);
|
|
1092
|
-
l(this, "incompatibleTokens", [
|
|
1093
|
-
"y",
|
|
1094
|
-
"R",
|
|
1095
|
-
"u",
|
|
1096
|
-
"Q",
|
|
1097
|
-
"q",
|
|
1098
|
-
"M",
|
|
1099
|
-
"L",
|
|
1100
|
-
"I",
|
|
1101
|
-
"d",
|
|
1102
|
-
"D",
|
|
1103
|
-
"i",
|
|
1104
|
-
"t",
|
|
1105
|
-
"T"
|
|
1106
|
-
]);
|
|
1107
|
-
}
|
|
1108
|
-
parse(e, t, n) {
|
|
1109
|
-
const o = (s) => ({
|
|
1110
|
-
year: s,
|
|
1111
|
-
isTwoDigitYear: t === "YY"
|
|
1112
|
-
});
|
|
1113
|
-
switch (t) {
|
|
1114
|
-
case "Y":
|
|
1115
|
-
return g(w(4, e), o);
|
|
1116
|
-
case "Yo":
|
|
1117
|
-
return g(
|
|
1118
|
-
n.ordinalNumber(e, {
|
|
1119
|
-
unit: "year"
|
|
1120
|
-
}),
|
|
1121
|
-
o
|
|
1122
|
-
);
|
|
1123
|
-
default:
|
|
1124
|
-
return g(w(t.length, e), o);
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
validate(e, t) {
|
|
1128
|
-
return t.isTwoDigitYear || t.year > 0;
|
|
1129
|
-
}
|
|
1130
|
-
set(e, t, n, o) {
|
|
1131
|
-
const s = ke(e, o);
|
|
1132
|
-
if (n.isTwoDigitYear) {
|
|
1133
|
-
const h = Pe(
|
|
1134
|
-
n.year,
|
|
1135
|
-
s
|
|
1136
|
-
);
|
|
1137
|
-
return e.setFullYear(
|
|
1138
|
-
h,
|
|
1139
|
-
0,
|
|
1140
|
-
o.firstWeekContainsDate
|
|
1141
|
-
), e.setHours(0, 0, 0, 0), C(e, o);
|
|
1142
|
-
}
|
|
1143
|
-
const u = !("era" in t) || t.era === 1 ? n.year : 1 - n.year;
|
|
1144
|
-
return e.setFullYear(u, 0, o.firstWeekContainsDate), e.setHours(0, 0, 0, 0), C(e, o);
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
class ar extends m {
|
|
1148
|
-
constructor() {
|
|
1149
|
-
super(...arguments);
|
|
1150
|
-
l(this, "priority", 130);
|
|
1151
|
-
l(this, "incompatibleTokens", [
|
|
1152
|
-
"G",
|
|
1153
|
-
"y",
|
|
1154
|
-
"Y",
|
|
1155
|
-
"u",
|
|
1156
|
-
"Q",
|
|
1157
|
-
"q",
|
|
1158
|
-
"M",
|
|
1159
|
-
"L",
|
|
1160
|
-
"w",
|
|
1161
|
-
"d",
|
|
1162
|
-
"D",
|
|
1163
|
-
"e",
|
|
1164
|
-
"c",
|
|
1165
|
-
"t",
|
|
1166
|
-
"T"
|
|
1167
|
-
]);
|
|
1168
|
-
}
|
|
1169
|
-
parse(e, t) {
|
|
1170
|
-
return q(t === "R" ? 4 : t.length, e);
|
|
1171
|
-
}
|
|
1172
|
-
set(e, t, n) {
|
|
1173
|
-
const o = v(e, 0);
|
|
1174
|
-
return o.setFullYear(n, 0, 4), o.setHours(0, 0, 0, 0), L(o);
|
|
1175
|
-
}
|
|
1176
|
-
}
|
|
1177
|
-
class or extends m {
|
|
1178
|
-
constructor() {
|
|
1179
|
-
super(...arguments);
|
|
1180
|
-
l(this, "priority", 130);
|
|
1181
|
-
l(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
|
|
1182
|
-
}
|
|
1183
|
-
parse(e, t) {
|
|
1184
|
-
return q(t === "u" ? 4 : t.length, e);
|
|
1185
|
-
}
|
|
1186
|
-
set(e, t, n) {
|
|
1187
|
-
return e.setFullYear(n, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
1188
|
-
}
|
|
1189
|
-
}
|
|
1190
|
-
class ir extends m {
|
|
1191
|
-
constructor() {
|
|
1192
|
-
super(...arguments);
|
|
1193
|
-
l(this, "priority", 120);
|
|
1194
|
-
l(this, "incompatibleTokens", [
|
|
1195
|
-
"Y",
|
|
1196
|
-
"R",
|
|
1197
|
-
"q",
|
|
1198
|
-
"M",
|
|
1199
|
-
"L",
|
|
1200
|
-
"w",
|
|
1201
|
-
"I",
|
|
1202
|
-
"d",
|
|
1203
|
-
"D",
|
|
1204
|
-
"i",
|
|
1205
|
-
"e",
|
|
1206
|
-
"c",
|
|
1207
|
-
"t",
|
|
1208
|
-
"T"
|
|
1209
|
-
]);
|
|
1210
|
-
}
|
|
1211
|
-
parse(e, t, n) {
|
|
1212
|
-
switch (t) {
|
|
1213
|
-
case "Q":
|
|
1214
|
-
case "QQ":
|
|
1215
|
-
return w(t.length, e);
|
|
1216
|
-
case "Qo":
|
|
1217
|
-
return n.ordinalNumber(e, { unit: "quarter" });
|
|
1218
|
-
case "QQQ":
|
|
1219
|
-
return n.quarter(e, {
|
|
1220
|
-
width: "abbreviated",
|
|
1221
|
-
context: "formatting"
|
|
1222
|
-
}) || n.quarter(e, {
|
|
1223
|
-
width: "narrow",
|
|
1224
|
-
context: "formatting"
|
|
1225
|
-
});
|
|
1226
|
-
case "QQQQQ":
|
|
1227
|
-
return n.quarter(e, {
|
|
1228
|
-
width: "narrow",
|
|
1229
|
-
context: "formatting"
|
|
1230
|
-
});
|
|
1231
|
-
case "QQQQ":
|
|
1232
|
-
default:
|
|
1233
|
-
return n.quarter(e, {
|
|
1234
|
-
width: "wide",
|
|
1235
|
-
context: "formatting"
|
|
1236
|
-
}) || n.quarter(e, {
|
|
1237
|
-
width: "abbreviated",
|
|
1238
|
-
context: "formatting"
|
|
1239
|
-
}) || n.quarter(e, {
|
|
1240
|
-
width: "narrow",
|
|
1241
|
-
context: "formatting"
|
|
1242
|
-
});
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
validate(e, t) {
|
|
1246
|
-
return t >= 1 && t <= 4;
|
|
1247
|
-
}
|
|
1248
|
-
set(e, t, n) {
|
|
1249
|
-
return e.setMonth((n - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
class sr extends m {
|
|
1253
|
-
constructor() {
|
|
1254
|
-
super(...arguments);
|
|
1255
|
-
l(this, "priority", 120);
|
|
1256
|
-
l(this, "incompatibleTokens", [
|
|
1257
|
-
"Y",
|
|
1258
|
-
"R",
|
|
1259
|
-
"Q",
|
|
1260
|
-
"M",
|
|
1261
|
-
"L",
|
|
1262
|
-
"w",
|
|
1263
|
-
"I",
|
|
1264
|
-
"d",
|
|
1265
|
-
"D",
|
|
1266
|
-
"i",
|
|
1267
|
-
"e",
|
|
1268
|
-
"c",
|
|
1269
|
-
"t",
|
|
1270
|
-
"T"
|
|
1271
|
-
]);
|
|
1272
|
-
}
|
|
1273
|
-
parse(e, t, n) {
|
|
1274
|
-
switch (t) {
|
|
1275
|
-
case "q":
|
|
1276
|
-
case "qq":
|
|
1277
|
-
return w(t.length, e);
|
|
1278
|
-
case "qo":
|
|
1279
|
-
return n.ordinalNumber(e, { unit: "quarter" });
|
|
1280
|
-
case "qqq":
|
|
1281
|
-
return n.quarter(e, {
|
|
1282
|
-
width: "abbreviated",
|
|
1283
|
-
context: "standalone"
|
|
1284
|
-
}) || n.quarter(e, {
|
|
1285
|
-
width: "narrow",
|
|
1286
|
-
context: "standalone"
|
|
1287
|
-
});
|
|
1288
|
-
case "qqqqq":
|
|
1289
|
-
return n.quarter(e, {
|
|
1290
|
-
width: "narrow",
|
|
1291
|
-
context: "standalone"
|
|
1292
|
-
});
|
|
1293
|
-
case "qqqq":
|
|
1294
|
-
default:
|
|
1295
|
-
return n.quarter(e, {
|
|
1296
|
-
width: "wide",
|
|
1297
|
-
context: "standalone"
|
|
1298
|
-
}) || n.quarter(e, {
|
|
1299
|
-
width: "abbreviated",
|
|
1300
|
-
context: "standalone"
|
|
1301
|
-
}) || n.quarter(e, {
|
|
1302
|
-
width: "narrow",
|
|
1303
|
-
context: "standalone"
|
|
1304
|
-
});
|
|
1305
|
-
}
|
|
1306
|
-
}
|
|
1307
|
-
validate(e, t) {
|
|
1308
|
-
return t >= 1 && t <= 4;
|
|
1309
|
-
}
|
|
1310
|
-
set(e, t, n) {
|
|
1311
|
-
return e.setMonth((n - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
1312
|
-
}
|
|
1313
|
-
}
|
|
1314
|
-
class dr extends m {
|
|
1315
|
-
constructor() {
|
|
1316
|
-
super(...arguments);
|
|
1317
|
-
l(this, "incompatibleTokens", [
|
|
1318
|
-
"Y",
|
|
1319
|
-
"R",
|
|
1320
|
-
"q",
|
|
1321
|
-
"Q",
|
|
1322
|
-
"L",
|
|
1323
|
-
"w",
|
|
1324
|
-
"I",
|
|
1325
|
-
"D",
|
|
1326
|
-
"i",
|
|
1327
|
-
"e",
|
|
1328
|
-
"c",
|
|
1329
|
-
"t",
|
|
1330
|
-
"T"
|
|
1331
|
-
]);
|
|
1332
|
-
l(this, "priority", 110);
|
|
1333
|
-
}
|
|
1334
|
-
parse(e, t, n) {
|
|
1335
|
-
const o = (s) => s - 1;
|
|
1336
|
-
switch (t) {
|
|
1337
|
-
case "M":
|
|
1338
|
-
return g(
|
|
1339
|
-
p(y.month, e),
|
|
1340
|
-
o
|
|
1341
|
-
);
|
|
1342
|
-
case "MM":
|
|
1343
|
-
return g(w(2, e), o);
|
|
1344
|
-
case "Mo":
|
|
1345
|
-
return g(
|
|
1346
|
-
n.ordinalNumber(e, {
|
|
1347
|
-
unit: "month"
|
|
1348
|
-
}),
|
|
1349
|
-
o
|
|
1350
|
-
);
|
|
1351
|
-
case "MMM":
|
|
1352
|
-
return n.month(e, {
|
|
1353
|
-
width: "abbreviated",
|
|
1354
|
-
context: "formatting"
|
|
1355
|
-
}) || n.month(e, { width: "narrow", context: "formatting" });
|
|
1356
|
-
case "MMMMM":
|
|
1357
|
-
return n.month(e, {
|
|
1358
|
-
width: "narrow",
|
|
1359
|
-
context: "formatting"
|
|
1360
|
-
});
|
|
1361
|
-
case "MMMM":
|
|
1362
|
-
default:
|
|
1363
|
-
return n.month(e, { width: "wide", context: "formatting" }) || n.month(e, {
|
|
1364
|
-
width: "abbreviated",
|
|
1365
|
-
context: "formatting"
|
|
1366
|
-
}) || n.month(e, { width: "narrow", context: "formatting" });
|
|
1367
|
-
}
|
|
1368
|
-
}
|
|
1369
|
-
validate(e, t) {
|
|
1370
|
-
return t >= 0 && t <= 11;
|
|
1371
|
-
}
|
|
1372
|
-
set(e, t, n) {
|
|
1373
|
-
return e.setMonth(n, 1), e.setHours(0, 0, 0, 0), e;
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
|
-
class lr extends m {
|
|
1377
|
-
constructor() {
|
|
1378
|
-
super(...arguments);
|
|
1379
|
-
l(this, "priority", 110);
|
|
1380
|
-
l(this, "incompatibleTokens", [
|
|
1381
|
-
"Y",
|
|
1382
|
-
"R",
|
|
1383
|
-
"q",
|
|
1384
|
-
"Q",
|
|
1385
|
-
"M",
|
|
1386
|
-
"w",
|
|
1387
|
-
"I",
|
|
1388
|
-
"D",
|
|
1389
|
-
"i",
|
|
1390
|
-
"e",
|
|
1391
|
-
"c",
|
|
1392
|
-
"t",
|
|
1393
|
-
"T"
|
|
1394
|
-
]);
|
|
1395
|
-
}
|
|
1396
|
-
parse(e, t, n) {
|
|
1397
|
-
const o = (s) => s - 1;
|
|
1398
|
-
switch (t) {
|
|
1399
|
-
case "L":
|
|
1400
|
-
return g(
|
|
1401
|
-
p(y.month, e),
|
|
1402
|
-
o
|
|
1403
|
-
);
|
|
1404
|
-
case "LL":
|
|
1405
|
-
return g(w(2, e), o);
|
|
1406
|
-
case "Lo":
|
|
1407
|
-
return g(
|
|
1408
|
-
n.ordinalNumber(e, {
|
|
1409
|
-
unit: "month"
|
|
1410
|
-
}),
|
|
1411
|
-
o
|
|
1412
|
-
);
|
|
1413
|
-
case "LLL":
|
|
1414
|
-
return n.month(e, {
|
|
1415
|
-
width: "abbreviated",
|
|
1416
|
-
context: "standalone"
|
|
1417
|
-
}) || n.month(e, { width: "narrow", context: "standalone" });
|
|
1418
|
-
case "LLLLL":
|
|
1419
|
-
return n.month(e, {
|
|
1420
|
-
width: "narrow",
|
|
1421
|
-
context: "standalone"
|
|
1422
|
-
});
|
|
1423
|
-
case "LLLL":
|
|
1424
|
-
default:
|
|
1425
|
-
return n.month(e, { width: "wide", context: "standalone" }) || n.month(e, {
|
|
1426
|
-
width: "abbreviated",
|
|
1427
|
-
context: "standalone"
|
|
1428
|
-
}) || n.month(e, { width: "narrow", context: "standalone" });
|
|
1429
|
-
}
|
|
1430
|
-
}
|
|
1431
|
-
validate(e, t) {
|
|
1432
|
-
return t >= 0 && t <= 11;
|
|
1433
|
-
}
|
|
1434
|
-
set(e, t, n) {
|
|
1435
|
-
return e.setMonth(n, 1), e.setHours(0, 0, 0, 0), e;
|
|
1436
|
-
}
|
|
1437
|
-
}
|
|
1438
|
-
function ur(a, r, e) {
|
|
1439
|
-
const t = T(a, e == null ? void 0 : e.in), n = At(t, e) - r;
|
|
1440
|
-
return t.setDate(t.getDate() - n * 7), T(t, e == null ? void 0 : e.in);
|
|
1441
|
-
}
|
|
1442
|
-
class cr extends m {
|
|
1443
|
-
constructor() {
|
|
1444
|
-
super(...arguments);
|
|
1445
|
-
l(this, "priority", 100);
|
|
1446
|
-
l(this, "incompatibleTokens", [
|
|
1447
|
-
"y",
|
|
1448
|
-
"R",
|
|
1449
|
-
"u",
|
|
1450
|
-
"q",
|
|
1451
|
-
"Q",
|
|
1452
|
-
"M",
|
|
1453
|
-
"L",
|
|
1454
|
-
"I",
|
|
1455
|
-
"d",
|
|
1456
|
-
"D",
|
|
1457
|
-
"i",
|
|
1458
|
-
"t",
|
|
1459
|
-
"T"
|
|
1460
|
-
]);
|
|
1461
|
-
}
|
|
1462
|
-
parse(e, t, n) {
|
|
1463
|
-
switch (t) {
|
|
1464
|
-
case "w":
|
|
1465
|
-
return p(y.week, e);
|
|
1466
|
-
case "wo":
|
|
1467
|
-
return n.ordinalNumber(e, { unit: "week" });
|
|
1468
|
-
default:
|
|
1469
|
-
return w(t.length, e);
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
validate(e, t) {
|
|
1473
|
-
return t >= 1 && t <= 53;
|
|
1474
|
-
}
|
|
1475
|
-
set(e, t, n, o) {
|
|
1476
|
-
return C(ur(e, n, o), o);
|
|
1477
|
-
}
|
|
1478
|
-
}
|
|
1479
|
-
function fr(a, r, e) {
|
|
1480
|
-
const t = T(a, e == null ? void 0 : e.in), n = Ht(t, e) - r;
|
|
1481
|
-
return t.setDate(t.getDate() - n * 7), t;
|
|
1482
|
-
}
|
|
1483
|
-
class mr extends m {
|
|
1484
|
-
constructor() {
|
|
1485
|
-
super(...arguments);
|
|
1486
|
-
l(this, "priority", 100);
|
|
1487
|
-
l(this, "incompatibleTokens", [
|
|
1488
|
-
"y",
|
|
1489
|
-
"Y",
|
|
1490
|
-
"u",
|
|
1491
|
-
"q",
|
|
1492
|
-
"Q",
|
|
1493
|
-
"M",
|
|
1494
|
-
"L",
|
|
1495
|
-
"w",
|
|
1496
|
-
"d",
|
|
1497
|
-
"D",
|
|
1498
|
-
"e",
|
|
1499
|
-
"c",
|
|
1500
|
-
"t",
|
|
1501
|
-
"T"
|
|
1502
|
-
]);
|
|
1503
|
-
}
|
|
1504
|
-
parse(e, t, n) {
|
|
1505
|
-
switch (t) {
|
|
1506
|
-
case "I":
|
|
1507
|
-
return p(y.week, e);
|
|
1508
|
-
case "Io":
|
|
1509
|
-
return n.ordinalNumber(e, { unit: "week" });
|
|
1510
|
-
default:
|
|
1511
|
-
return w(t.length, e);
|
|
1512
|
-
}
|
|
1513
|
-
}
|
|
1514
|
-
validate(e, t) {
|
|
1515
|
-
return t >= 1 && t <= 53;
|
|
1516
|
-
}
|
|
1517
|
-
set(e, t, n) {
|
|
1518
|
-
return L(fr(e, n));
|
|
1519
|
-
}
|
|
1520
|
-
}
|
|
1521
|
-
const hr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], xr = [
|
|
1522
|
-
31,
|
|
1523
|
-
29,
|
|
1524
|
-
31,
|
|
1525
|
-
30,
|
|
1526
|
-
31,
|
|
1527
|
-
30,
|
|
1528
|
-
31,
|
|
1529
|
-
31,
|
|
1530
|
-
30,
|
|
1531
|
-
31,
|
|
1532
|
-
30,
|
|
1533
|
-
31
|
|
1534
|
-
];
|
|
1535
|
-
class pr extends m {
|
|
1536
|
-
constructor() {
|
|
1537
|
-
super(...arguments);
|
|
1538
|
-
l(this, "priority", 90);
|
|
1539
|
-
l(this, "subPriority", 1);
|
|
1540
|
-
l(this, "incompatibleTokens", [
|
|
1541
|
-
"Y",
|
|
1542
|
-
"R",
|
|
1543
|
-
"q",
|
|
1544
|
-
"Q",
|
|
1545
|
-
"w",
|
|
1546
|
-
"I",
|
|
1547
|
-
"D",
|
|
1548
|
-
"i",
|
|
1549
|
-
"e",
|
|
1550
|
-
"c",
|
|
1551
|
-
"t",
|
|
1552
|
-
"T"
|
|
1553
|
-
]);
|
|
1554
|
-
}
|
|
1555
|
-
parse(e, t, n) {
|
|
1556
|
-
switch (t) {
|
|
1557
|
-
case "d":
|
|
1558
|
-
return p(y.date, e);
|
|
1559
|
-
case "do":
|
|
1560
|
-
return n.ordinalNumber(e, { unit: "date" });
|
|
1561
|
-
default:
|
|
1562
|
-
return w(t.length, e);
|
|
1563
|
-
}
|
|
1564
|
-
}
|
|
1565
|
-
validate(e, t) {
|
|
1566
|
-
const n = e.getFullYear(), o = Ne(n), s = e.getMonth();
|
|
1567
|
-
return o ? t >= 1 && t <= xr[s] : t >= 1 && t <= hr[s];
|
|
1568
|
-
}
|
|
1569
|
-
set(e, t, n) {
|
|
1570
|
-
return e.setDate(n), e.setHours(0, 0, 0, 0), e;
|
|
1571
|
-
}
|
|
1572
|
-
}
|
|
1573
|
-
class br extends m {
|
|
1574
|
-
constructor() {
|
|
1575
|
-
super(...arguments);
|
|
1576
|
-
l(this, "priority", 90);
|
|
1577
|
-
l(this, "subpriority", 1);
|
|
1578
|
-
l(this, "incompatibleTokens", [
|
|
1579
|
-
"Y",
|
|
1580
|
-
"R",
|
|
1581
|
-
"q",
|
|
1582
|
-
"Q",
|
|
1583
|
-
"M",
|
|
1584
|
-
"L",
|
|
1585
|
-
"w",
|
|
1586
|
-
"I",
|
|
1587
|
-
"d",
|
|
1588
|
-
"E",
|
|
1589
|
-
"i",
|
|
1590
|
-
"e",
|
|
1591
|
-
"c",
|
|
1592
|
-
"t",
|
|
1593
|
-
"T"
|
|
1594
|
-
]);
|
|
1595
|
-
}
|
|
1596
|
-
parse(e, t, n) {
|
|
1597
|
-
switch (t) {
|
|
1598
|
-
case "D":
|
|
1599
|
-
case "DD":
|
|
1600
|
-
return p(y.dayOfYear, e);
|
|
1601
|
-
case "Do":
|
|
1602
|
-
return n.ordinalNumber(e, { unit: "date" });
|
|
1603
|
-
default:
|
|
1604
|
-
return w(t.length, e);
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
validate(e, t) {
|
|
1608
|
-
const n = e.getFullYear();
|
|
1609
|
-
return Ne(n) ? t >= 1 && t <= 366 : t >= 1 && t <= 365;
|
|
1610
|
-
}
|
|
1611
|
-
set(e, t, n) {
|
|
1612
|
-
return e.setMonth(0, n), e.setHours(0, 0, 0, 0), e;
|
|
1613
|
-
}
|
|
1614
|
-
}
|
|
1615
|
-
function S(a, r, e) {
|
|
1616
|
-
var c, _, F, M;
|
|
1617
|
-
const t = A(), n = (e == null ? void 0 : e.weekStartsOn) ?? ((_ = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : _.weekStartsOn) ?? t.weekStartsOn ?? ((M = (F = t.locale) == null ? void 0 : F.options) == null ? void 0 : M.weekStartsOn) ?? 0, o = T(a, e == null ? void 0 : e.in), s = o.getDay(), h = (r % 7 + 7) % 7, x = 7 - n, k = r < 0 || r > 6 ? r - (s + x) % 7 : (h + x) % 7 - (s + x) % 7;
|
|
1618
|
-
return ye(o, k, e);
|
|
1619
|
-
}
|
|
1620
|
-
class wr extends m {
|
|
1621
|
-
constructor() {
|
|
1622
|
-
super(...arguments);
|
|
1623
|
-
l(this, "priority", 90);
|
|
1624
|
-
l(this, "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
|
|
1625
|
-
}
|
|
1626
|
-
parse(e, t, n) {
|
|
1627
|
-
switch (t) {
|
|
1628
|
-
case "E":
|
|
1629
|
-
case "EE":
|
|
1630
|
-
case "EEE":
|
|
1631
|
-
return n.day(e, {
|
|
1632
|
-
width: "abbreviated",
|
|
1633
|
-
context: "formatting"
|
|
1634
|
-
}) || n.day(e, { width: "short", context: "formatting" }) || n.day(e, { width: "narrow", context: "formatting" });
|
|
1635
|
-
case "EEEEE":
|
|
1636
|
-
return n.day(e, {
|
|
1637
|
-
width: "narrow",
|
|
1638
|
-
context: "formatting"
|
|
1639
|
-
});
|
|
1640
|
-
case "EEEEEE":
|
|
1641
|
-
return n.day(e, { width: "short", context: "formatting" }) || n.day(e, { width: "narrow", context: "formatting" });
|
|
1642
|
-
case "EEEE":
|
|
1643
|
-
default:
|
|
1644
|
-
return n.day(e, { width: "wide", context: "formatting" }) || n.day(e, {
|
|
1645
|
-
width: "abbreviated",
|
|
1646
|
-
context: "formatting"
|
|
1647
|
-
}) || n.day(e, { width: "short", context: "formatting" }) || n.day(e, { width: "narrow", context: "formatting" });
|
|
1648
|
-
}
|
|
1649
|
-
}
|
|
1650
|
-
validate(e, t) {
|
|
1651
|
-
return t >= 0 && t <= 6;
|
|
1652
|
-
}
|
|
1653
|
-
set(e, t, n, o) {
|
|
1654
|
-
return e = S(e, n, o), e.setHours(0, 0, 0, 0), e;
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
class yr extends m {
|
|
1658
|
-
constructor() {
|
|
1659
|
-
super(...arguments);
|
|
1660
|
-
l(this, "priority", 90);
|
|
1661
|
-
l(this, "incompatibleTokens", [
|
|
1662
|
-
"y",
|
|
1663
|
-
"R",
|
|
1664
|
-
"u",
|
|
1665
|
-
"q",
|
|
1666
|
-
"Q",
|
|
1667
|
-
"M",
|
|
1668
|
-
"L",
|
|
1669
|
-
"I",
|
|
1670
|
-
"d",
|
|
1671
|
-
"D",
|
|
1672
|
-
"E",
|
|
1673
|
-
"i",
|
|
1674
|
-
"c",
|
|
1675
|
-
"t",
|
|
1676
|
-
"T"
|
|
1677
|
-
]);
|
|
1678
|
-
}
|
|
1679
|
-
parse(e, t, n, o) {
|
|
1680
|
-
const s = (u) => {
|
|
1681
|
-
const h = Math.floor((u - 1) / 7) * 7;
|
|
1682
|
-
return (u + o.weekStartsOn + 6) % 7 + h;
|
|
1683
|
-
};
|
|
1684
|
-
switch (t) {
|
|
1685
|
-
case "e":
|
|
1686
|
-
case "ee":
|
|
1687
|
-
return g(w(t.length, e), s);
|
|
1688
|
-
case "eo":
|
|
1689
|
-
return g(
|
|
1690
|
-
n.ordinalNumber(e, {
|
|
1691
|
-
unit: "day"
|
|
1692
|
-
}),
|
|
1693
|
-
s
|
|
1694
|
-
);
|
|
1695
|
-
case "eee":
|
|
1696
|
-
return n.day(e, {
|
|
1697
|
-
width: "abbreviated",
|
|
1698
|
-
context: "formatting"
|
|
1699
|
-
}) || n.day(e, { width: "short", context: "formatting" }) || n.day(e, { width: "narrow", context: "formatting" });
|
|
1700
|
-
case "eeeee":
|
|
1701
|
-
return n.day(e, {
|
|
1702
|
-
width: "narrow",
|
|
1703
|
-
context: "formatting"
|
|
1704
|
-
});
|
|
1705
|
-
case "eeeeee":
|
|
1706
|
-
return n.day(e, { width: "short", context: "formatting" }) || n.day(e, { width: "narrow", context: "formatting" });
|
|
1707
|
-
case "eeee":
|
|
1708
|
-
default:
|
|
1709
|
-
return n.day(e, { width: "wide", context: "formatting" }) || n.day(e, {
|
|
1710
|
-
width: "abbreviated",
|
|
1711
|
-
context: "formatting"
|
|
1712
|
-
}) || n.day(e, { width: "short", context: "formatting" }) || n.day(e, { width: "narrow", context: "formatting" });
|
|
1713
|
-
}
|
|
1714
|
-
}
|
|
1715
|
-
validate(e, t) {
|
|
1716
|
-
return t >= 0 && t <= 6;
|
|
1717
|
-
}
|
|
1718
|
-
set(e, t, n, o) {
|
|
1719
|
-
return e = S(e, n, o), e.setHours(0, 0, 0, 0), e;
|
|
1720
|
-
}
|
|
1721
|
-
}
|
|
1722
|
-
class gr extends m {
|
|
1723
|
-
constructor() {
|
|
1724
|
-
super(...arguments);
|
|
1725
|
-
l(this, "priority", 90);
|
|
1726
|
-
l(this, "incompatibleTokens", [
|
|
1727
|
-
"y",
|
|
1728
|
-
"R",
|
|
1729
|
-
"u",
|
|
1730
|
-
"q",
|
|
1731
|
-
"Q",
|
|
1732
|
-
"M",
|
|
1733
|
-
"L",
|
|
1734
|
-
"I",
|
|
1735
|
-
"d",
|
|
1736
|
-
"D",
|
|
1737
|
-
"E",
|
|
1738
|
-
"i",
|
|
1739
|
-
"e",
|
|
1740
|
-
"t",
|
|
1741
|
-
"T"
|
|
1742
|
-
]);
|
|
1743
|
-
}
|
|
1744
|
-
parse(e, t, n, o) {
|
|
1745
|
-
const s = (u) => {
|
|
1746
|
-
const h = Math.floor((u - 1) / 7) * 7;
|
|
1747
|
-
return (u + o.weekStartsOn + 6) % 7 + h;
|
|
1748
|
-
};
|
|
1749
|
-
switch (t) {
|
|
1750
|
-
case "c":
|
|
1751
|
-
case "cc":
|
|
1752
|
-
return g(w(t.length, e), s);
|
|
1753
|
-
case "co":
|
|
1754
|
-
return g(
|
|
1755
|
-
n.ordinalNumber(e, {
|
|
1756
|
-
unit: "day"
|
|
1757
|
-
}),
|
|
1758
|
-
s
|
|
1759
|
-
);
|
|
1760
|
-
case "ccc":
|
|
1761
|
-
return n.day(e, {
|
|
1762
|
-
width: "abbreviated",
|
|
1763
|
-
context: "standalone"
|
|
1764
|
-
}) || n.day(e, { width: "short", context: "standalone" }) || n.day(e, { width: "narrow", context: "standalone" });
|
|
1765
|
-
case "ccccc":
|
|
1766
|
-
return n.day(e, {
|
|
1767
|
-
width: "narrow",
|
|
1768
|
-
context: "standalone"
|
|
1769
|
-
});
|
|
1770
|
-
case "cccccc":
|
|
1771
|
-
return n.day(e, { width: "short", context: "standalone" }) || n.day(e, { width: "narrow", context: "standalone" });
|
|
1772
|
-
case "cccc":
|
|
1773
|
-
default:
|
|
1774
|
-
return n.day(e, { width: "wide", context: "standalone" }) || n.day(e, {
|
|
1775
|
-
width: "abbreviated",
|
|
1776
|
-
context: "standalone"
|
|
1777
|
-
}) || n.day(e, { width: "short", context: "standalone" }) || n.day(e, { width: "narrow", context: "standalone" });
|
|
1778
|
-
}
|
|
1779
|
-
}
|
|
1780
|
-
validate(e, t) {
|
|
1781
|
-
return t >= 0 && t <= 6;
|
|
1782
|
-
}
|
|
1783
|
-
set(e, t, n, o) {
|
|
1784
|
-
return e = S(e, n, o), e.setHours(0, 0, 0, 0), e;
|
|
1785
|
-
}
|
|
1786
|
-
}
|
|
1787
|
-
function kr(a, r, e) {
|
|
1788
|
-
const t = T(a, e == null ? void 0 : e.in), n = Zt(t, e), o = r - n;
|
|
1789
|
-
return ye(t, o, e);
|
|
1790
|
-
}
|
|
1791
|
-
class vr extends m {
|
|
1792
|
-
constructor() {
|
|
1793
|
-
super(...arguments);
|
|
1794
|
-
l(this, "priority", 90);
|
|
1795
|
-
l(this, "incompatibleTokens", [
|
|
1796
|
-
"y",
|
|
1797
|
-
"Y",
|
|
1798
|
-
"u",
|
|
1799
|
-
"q",
|
|
1800
|
-
"Q",
|
|
1801
|
-
"M",
|
|
1802
|
-
"L",
|
|
1803
|
-
"w",
|
|
1804
|
-
"d",
|
|
1805
|
-
"D",
|
|
1806
|
-
"E",
|
|
1807
|
-
"e",
|
|
1808
|
-
"c",
|
|
1809
|
-
"t",
|
|
1810
|
-
"T"
|
|
1811
|
-
]);
|
|
1812
|
-
}
|
|
1813
|
-
parse(e, t, n) {
|
|
1814
|
-
const o = (s) => s === 0 ? 7 : s;
|
|
1815
|
-
switch (t) {
|
|
1816
|
-
case "i":
|
|
1817
|
-
case "ii":
|
|
1818
|
-
return w(t.length, e);
|
|
1819
|
-
case "io":
|
|
1820
|
-
return n.ordinalNumber(e, { unit: "day" });
|
|
1821
|
-
case "iii":
|
|
1822
|
-
return g(
|
|
1823
|
-
n.day(e, {
|
|
1824
|
-
width: "abbreviated",
|
|
1825
|
-
context: "formatting"
|
|
1826
|
-
}) || n.day(e, {
|
|
1827
|
-
width: "short",
|
|
1828
|
-
context: "formatting"
|
|
1829
|
-
}) || n.day(e, {
|
|
1830
|
-
width: "narrow",
|
|
1831
|
-
context: "formatting"
|
|
1832
|
-
}),
|
|
1833
|
-
o
|
|
1834
|
-
);
|
|
1835
|
-
case "iiiii":
|
|
1836
|
-
return g(
|
|
1837
|
-
n.day(e, {
|
|
1838
|
-
width: "narrow",
|
|
1839
|
-
context: "formatting"
|
|
1840
|
-
}),
|
|
1841
|
-
o
|
|
1842
|
-
);
|
|
1843
|
-
case "iiiiii":
|
|
1844
|
-
return g(
|
|
1845
|
-
n.day(e, {
|
|
1846
|
-
width: "short",
|
|
1847
|
-
context: "formatting"
|
|
1848
|
-
}) || n.day(e, {
|
|
1849
|
-
width: "narrow",
|
|
1850
|
-
context: "formatting"
|
|
1851
|
-
}),
|
|
1852
|
-
o
|
|
1853
|
-
);
|
|
1854
|
-
case "iiii":
|
|
1855
|
-
default:
|
|
1856
|
-
return g(
|
|
1857
|
-
n.day(e, {
|
|
1858
|
-
width: "wide",
|
|
1859
|
-
context: "formatting"
|
|
1860
|
-
}) || n.day(e, {
|
|
1861
|
-
width: "abbreviated",
|
|
1862
|
-
context: "formatting"
|
|
1863
|
-
}) || n.day(e, {
|
|
1864
|
-
width: "short",
|
|
1865
|
-
context: "formatting"
|
|
1866
|
-
}) || n.day(e, {
|
|
1867
|
-
width: "narrow",
|
|
1868
|
-
context: "formatting"
|
|
1869
|
-
}),
|
|
1870
|
-
o
|
|
1871
|
-
);
|
|
1872
|
-
}
|
|
1873
|
-
}
|
|
1874
|
-
validate(e, t) {
|
|
1875
|
-
return t >= 1 && t <= 7;
|
|
1876
|
-
}
|
|
1877
|
-
set(e, t, n) {
|
|
1878
|
-
return e = kr(e, n), e.setHours(0, 0, 0, 0), e;
|
|
1879
|
-
}
|
|
1880
|
-
}
|
|
1881
|
-
class Dr extends m {
|
|
1882
|
-
constructor() {
|
|
1883
|
-
super(...arguments);
|
|
1884
|
-
l(this, "priority", 80);
|
|
1885
|
-
l(this, "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]);
|
|
1886
|
-
}
|
|
1887
|
-
parse(e, t, n) {
|
|
1888
|
-
switch (t) {
|
|
1889
|
-
case "a":
|
|
1890
|
-
case "aa":
|
|
1891
|
-
case "aaa":
|
|
1892
|
-
return n.dayPeriod(e, {
|
|
1893
|
-
width: "abbreviated",
|
|
1894
|
-
context: "formatting"
|
|
1895
|
-
}) || n.dayPeriod(e, {
|
|
1896
|
-
width: "narrow",
|
|
1897
|
-
context: "formatting"
|
|
1898
|
-
});
|
|
1899
|
-
case "aaaaa":
|
|
1900
|
-
return n.dayPeriod(e, {
|
|
1901
|
-
width: "narrow",
|
|
1902
|
-
context: "formatting"
|
|
1903
|
-
});
|
|
1904
|
-
case "aaaa":
|
|
1905
|
-
default:
|
|
1906
|
-
return n.dayPeriod(e, {
|
|
1907
|
-
width: "wide",
|
|
1908
|
-
context: "formatting"
|
|
1909
|
-
}) || n.dayPeriod(e, {
|
|
1910
|
-
width: "abbreviated",
|
|
1911
|
-
context: "formatting"
|
|
1912
|
-
}) || n.dayPeriod(e, {
|
|
1913
|
-
width: "narrow",
|
|
1914
|
-
context: "formatting"
|
|
1915
|
-
});
|
|
1916
|
-
}
|
|
1917
|
-
}
|
|
1918
|
-
set(e, t, n) {
|
|
1919
|
-
return e.setHours(K(n), 0, 0, 0), e;
|
|
1920
|
-
}
|
|
1921
|
-
}
|
|
1922
|
-
class Tr extends m {
|
|
1923
|
-
constructor() {
|
|
1924
|
-
super(...arguments);
|
|
1925
|
-
l(this, "priority", 80);
|
|
1926
|
-
l(this, "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]);
|
|
1927
|
-
}
|
|
1928
|
-
parse(e, t, n) {
|
|
1929
|
-
switch (t) {
|
|
1930
|
-
case "b":
|
|
1931
|
-
case "bb":
|
|
1932
|
-
case "bbb":
|
|
1933
|
-
return n.dayPeriod(e, {
|
|
1934
|
-
width: "abbreviated",
|
|
1935
|
-
context: "formatting"
|
|
1936
|
-
}) || n.dayPeriod(e, {
|
|
1937
|
-
width: "narrow",
|
|
1938
|
-
context: "formatting"
|
|
1939
|
-
});
|
|
1940
|
-
case "bbbbb":
|
|
1941
|
-
return n.dayPeriod(e, {
|
|
1942
|
-
width: "narrow",
|
|
1943
|
-
context: "formatting"
|
|
1944
|
-
});
|
|
1945
|
-
case "bbbb":
|
|
1946
|
-
default:
|
|
1947
|
-
return n.dayPeriod(e, {
|
|
1948
|
-
width: "wide",
|
|
1949
|
-
context: "formatting"
|
|
1950
|
-
}) || n.dayPeriod(e, {
|
|
1951
|
-
width: "abbreviated",
|
|
1952
|
-
context: "formatting"
|
|
1953
|
-
}) || n.dayPeriod(e, {
|
|
1954
|
-
width: "narrow",
|
|
1955
|
-
context: "formatting"
|
|
1956
|
-
});
|
|
1957
|
-
}
|
|
1958
|
-
}
|
|
1959
|
-
set(e, t, n) {
|
|
1960
|
-
return e.setHours(K(n), 0, 0, 0), e;
|
|
1961
|
-
}
|
|
1962
|
-
}
|
|
1963
|
-
class Pr extends m {
|
|
1964
|
-
constructor() {
|
|
1965
|
-
super(...arguments);
|
|
1966
|
-
l(this, "priority", 80);
|
|
1967
|
-
l(this, "incompatibleTokens", ["a", "b", "t", "T"]);
|
|
1968
|
-
}
|
|
1969
|
-
parse(e, t, n) {
|
|
1970
|
-
switch (t) {
|
|
1971
|
-
case "B":
|
|
1972
|
-
case "BB":
|
|
1973
|
-
case "BBB":
|
|
1974
|
-
return n.dayPeriod(e, {
|
|
1975
|
-
width: "abbreviated",
|
|
1976
|
-
context: "formatting"
|
|
1977
|
-
}) || n.dayPeriod(e, {
|
|
1978
|
-
width: "narrow",
|
|
1979
|
-
context: "formatting"
|
|
1980
|
-
});
|
|
1981
|
-
case "BBBBB":
|
|
1982
|
-
return n.dayPeriod(e, {
|
|
1983
|
-
width: "narrow",
|
|
1984
|
-
context: "formatting"
|
|
1985
|
-
});
|
|
1986
|
-
case "BBBB":
|
|
1987
|
-
default:
|
|
1988
|
-
return n.dayPeriod(e, {
|
|
1989
|
-
width: "wide",
|
|
1990
|
-
context: "formatting"
|
|
1991
|
-
}) || n.dayPeriod(e, {
|
|
1992
|
-
width: "abbreviated",
|
|
1993
|
-
context: "formatting"
|
|
1994
|
-
}) || n.dayPeriod(e, {
|
|
1995
|
-
width: "narrow",
|
|
1996
|
-
context: "formatting"
|
|
1997
|
-
});
|
|
1998
|
-
}
|
|
1999
|
-
}
|
|
2000
|
-
set(e, t, n) {
|
|
2001
|
-
return e.setHours(K(n), 0, 0, 0), e;
|
|
2002
|
-
}
|
|
2003
|
-
}
|
|
2004
|
-
class Nr extends m {
|
|
2005
|
-
constructor() {
|
|
2006
|
-
super(...arguments);
|
|
2007
|
-
l(this, "priority", 70);
|
|
2008
|
-
l(this, "incompatibleTokens", ["H", "K", "k", "t", "T"]);
|
|
2009
|
-
}
|
|
2010
|
-
parse(e, t, n) {
|
|
2011
|
-
switch (t) {
|
|
2012
|
-
case "h":
|
|
2013
|
-
return p(y.hour12h, e);
|
|
2014
|
-
case "ho":
|
|
2015
|
-
return n.ordinalNumber(e, { unit: "hour" });
|
|
2016
|
-
default:
|
|
2017
|
-
return w(t.length, e);
|
|
2018
|
-
}
|
|
2019
|
-
}
|
|
2020
|
-
validate(e, t) {
|
|
2021
|
-
return t >= 1 && t <= 12;
|
|
2022
|
-
}
|
|
2023
|
-
set(e, t, n) {
|
|
2024
|
-
const o = e.getHours() >= 12;
|
|
2025
|
-
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;
|
|
2026
|
-
}
|
|
2027
|
-
}
|
|
2028
|
-
class jr extends m {
|
|
2029
|
-
constructor() {
|
|
2030
|
-
super(...arguments);
|
|
2031
|
-
l(this, "priority", 70);
|
|
2032
|
-
l(this, "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
|
|
2033
|
-
}
|
|
2034
|
-
parse(e, t, n) {
|
|
2035
|
-
switch (t) {
|
|
2036
|
-
case "H":
|
|
2037
|
-
return p(y.hour23h, e);
|
|
2038
|
-
case "Ho":
|
|
2039
|
-
return n.ordinalNumber(e, { unit: "hour" });
|
|
2040
|
-
default:
|
|
2041
|
-
return w(t.length, e);
|
|
2042
|
-
}
|
|
2043
|
-
}
|
|
2044
|
-
validate(e, t) {
|
|
2045
|
-
return t >= 0 && t <= 23;
|
|
2046
|
-
}
|
|
2047
|
-
set(e, t, n) {
|
|
2048
|
-
return e.setHours(n, 0, 0, 0), e;
|
|
2049
|
-
}
|
|
2050
|
-
}
|
|
2051
|
-
class Ir extends m {
|
|
2052
|
-
constructor() {
|
|
2053
|
-
super(...arguments);
|
|
2054
|
-
l(this, "priority", 70);
|
|
2055
|
-
l(this, "incompatibleTokens", ["h", "H", "k", "t", "T"]);
|
|
2056
|
-
}
|
|
2057
|
-
parse(e, t, n) {
|
|
2058
|
-
switch (t) {
|
|
2059
|
-
case "K":
|
|
2060
|
-
return p(y.hour11h, e);
|
|
2061
|
-
case "Ko":
|
|
2062
|
-
return n.ordinalNumber(e, { unit: "hour" });
|
|
2063
|
-
default:
|
|
2064
|
-
return w(t.length, e);
|
|
2065
|
-
}
|
|
2066
|
-
}
|
|
2067
|
-
validate(e, t) {
|
|
2068
|
-
return t >= 0 && t <= 11;
|
|
2069
|
-
}
|
|
2070
|
-
set(e, t, n) {
|
|
2071
|
-
return e.getHours() >= 12 && n < 12 ? e.setHours(n + 12, 0, 0, 0) : e.setHours(n, 0, 0, 0), e;
|
|
2072
|
-
}
|
|
2073
|
-
}
|
|
2074
|
-
class _r extends m {
|
|
2075
|
-
constructor() {
|
|
2076
|
-
super(...arguments);
|
|
2077
|
-
l(this, "priority", 70);
|
|
2078
|
-
l(this, "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
|
|
2079
|
-
}
|
|
2080
|
-
parse(e, t, n) {
|
|
2081
|
-
switch (t) {
|
|
2082
|
-
case "k":
|
|
2083
|
-
return p(y.hour24h, e);
|
|
2084
|
-
case "ko":
|
|
2085
|
-
return n.ordinalNumber(e, { unit: "hour" });
|
|
2086
|
-
default:
|
|
2087
|
-
return w(t.length, e);
|
|
2088
|
-
}
|
|
2089
|
-
}
|
|
2090
|
-
validate(e, t) {
|
|
2091
|
-
return t >= 1 && t <= 24;
|
|
2092
|
-
}
|
|
2093
|
-
set(e, t, n) {
|
|
2094
|
-
const o = n <= 24 ? n % 24 : n;
|
|
2095
|
-
return e.setHours(o, 0, 0, 0), e;
|
|
2096
|
-
}
|
|
2097
|
-
}
|
|
2098
|
-
class Mr extends m {
|
|
2099
|
-
constructor() {
|
|
2100
|
-
super(...arguments);
|
|
2101
|
-
l(this, "priority", 60);
|
|
2102
|
-
l(this, "incompatibleTokens", ["t", "T"]);
|
|
2103
|
-
}
|
|
2104
|
-
parse(e, t, n) {
|
|
2105
|
-
switch (t) {
|
|
2106
|
-
case "m":
|
|
2107
|
-
return p(y.minute, e);
|
|
2108
|
-
case "mo":
|
|
2109
|
-
return n.ordinalNumber(e, { unit: "minute" });
|
|
2110
|
-
default:
|
|
2111
|
-
return w(t.length, e);
|
|
2112
|
-
}
|
|
2113
|
-
}
|
|
2114
|
-
validate(e, t) {
|
|
2115
|
-
return t >= 0 && t <= 59;
|
|
2116
|
-
}
|
|
2117
|
-
set(e, t, n) {
|
|
2118
|
-
return e.setMinutes(n, 0, 0), e;
|
|
2119
|
-
}
|
|
2120
|
-
}
|
|
2121
|
-
class Er extends m {
|
|
2122
|
-
constructor() {
|
|
2123
|
-
super(...arguments);
|
|
2124
|
-
l(this, "priority", 50);
|
|
2125
|
-
l(this, "incompatibleTokens", ["t", "T"]);
|
|
2126
|
-
}
|
|
2127
|
-
parse(e, t, n) {
|
|
2128
|
-
switch (t) {
|
|
2129
|
-
case "s":
|
|
2130
|
-
return p(y.second, e);
|
|
2131
|
-
case "so":
|
|
2132
|
-
return n.ordinalNumber(e, { unit: "second" });
|
|
2133
|
-
default:
|
|
2134
|
-
return w(t.length, e);
|
|
2135
|
-
}
|
|
2136
|
-
}
|
|
2137
|
-
validate(e, t) {
|
|
2138
|
-
return t >= 0 && t <= 59;
|
|
2139
|
-
}
|
|
2140
|
-
set(e, t, n) {
|
|
2141
|
-
return e.setSeconds(n, 0), e;
|
|
2142
|
-
}
|
|
2143
|
-
}
|
|
2144
|
-
class Cr extends m {
|
|
2145
|
-
constructor() {
|
|
2146
|
-
super(...arguments);
|
|
2147
|
-
l(this, "priority", 30);
|
|
2148
|
-
l(this, "incompatibleTokens", ["t", "T"]);
|
|
2149
|
-
}
|
|
2150
|
-
parse(e, t) {
|
|
2151
|
-
const n = (o) => Math.trunc(o * Math.pow(10, -t.length + 3));
|
|
2152
|
-
return g(w(t.length, e), n);
|
|
2153
|
-
}
|
|
2154
|
-
set(e, t, n) {
|
|
2155
|
-
return e.setMilliseconds(n), e;
|
|
2156
|
-
}
|
|
2157
|
-
}
|
|
2158
|
-
class Or extends m {
|
|
2159
|
-
constructor() {
|
|
2160
|
-
super(...arguments);
|
|
2161
|
-
l(this, "priority", 10);
|
|
2162
|
-
l(this, "incompatibleTokens", ["t", "T", "x"]);
|
|
2163
|
-
}
|
|
2164
|
-
parse(e, t) {
|
|
2165
|
-
switch (t) {
|
|
2166
|
-
case "X":
|
|
2167
|
-
return I(
|
|
2168
|
-
j.basicOptionalMinutes,
|
|
2169
|
-
e
|
|
2170
|
-
);
|
|
2171
|
-
case "XX":
|
|
2172
|
-
return I(j.basic, e);
|
|
2173
|
-
case "XXXX":
|
|
2174
|
-
return I(
|
|
2175
|
-
j.basicOptionalSeconds,
|
|
2176
|
-
e
|
|
2177
|
-
);
|
|
2178
|
-
case "XXXXX":
|
|
2179
|
-
return I(
|
|
2180
|
-
j.extendedOptionalSeconds,
|
|
2181
|
-
e
|
|
2182
|
-
);
|
|
2183
|
-
case "XXX":
|
|
2184
|
-
default:
|
|
2185
|
-
return I(j.extended, e);
|
|
2186
|
-
}
|
|
2187
|
-
}
|
|
2188
|
-
set(e, t, n) {
|
|
2189
|
-
return t.timestampIsSet ? e : v(
|
|
2190
|
-
e,
|
|
2191
|
-
e.getTime() - ge(e) - n
|
|
2192
|
-
);
|
|
2193
|
-
}
|
|
2194
|
-
}
|
|
2195
|
-
class Fr extends m {
|
|
2196
|
-
constructor() {
|
|
2197
|
-
super(...arguments);
|
|
2198
|
-
l(this, "priority", 10);
|
|
2199
|
-
l(this, "incompatibleTokens", ["t", "T", "X"]);
|
|
2200
|
-
}
|
|
2201
|
-
parse(e, t) {
|
|
2202
|
-
switch (t) {
|
|
2203
|
-
case "x":
|
|
2204
|
-
return I(
|
|
2205
|
-
j.basicOptionalMinutes,
|
|
2206
|
-
e
|
|
2207
|
-
);
|
|
2208
|
-
case "xx":
|
|
2209
|
-
return I(j.basic, e);
|
|
2210
|
-
case "xxxx":
|
|
2211
|
-
return I(
|
|
2212
|
-
j.basicOptionalSeconds,
|
|
2213
|
-
e
|
|
2214
|
-
);
|
|
2215
|
-
case "xxxxx":
|
|
2216
|
-
return I(
|
|
2217
|
-
j.extendedOptionalSeconds,
|
|
2218
|
-
e
|
|
2219
|
-
);
|
|
2220
|
-
case "xxx":
|
|
2221
|
-
default:
|
|
2222
|
-
return I(j.extended, e);
|
|
2223
|
-
}
|
|
2224
|
-
}
|
|
2225
|
-
set(e, t, n) {
|
|
2226
|
-
return t.timestampIsSet ? e : v(
|
|
2227
|
-
e,
|
|
2228
|
-
e.getTime() - ge(e) - n
|
|
2229
|
-
);
|
|
2230
|
-
}
|
|
2231
|
-
}
|
|
2232
|
-
class Yr extends m {
|
|
2233
|
-
constructor() {
|
|
2234
|
-
super(...arguments);
|
|
2235
|
-
l(this, "priority", 40);
|
|
2236
|
-
l(this, "incompatibleTokens", "*");
|
|
2237
|
-
}
|
|
2238
|
-
parse(e) {
|
|
2239
|
-
return Te(e);
|
|
2240
|
-
}
|
|
2241
|
-
set(e, t, n) {
|
|
2242
|
-
return [v(e, n * 1e3), { timestampIsSet: !0 }];
|
|
2243
|
-
}
|
|
2244
|
-
}
|
|
2245
|
-
class Lr extends m {
|
|
2246
|
-
constructor() {
|
|
2247
|
-
super(...arguments);
|
|
2248
|
-
l(this, "priority", 20);
|
|
2249
|
-
l(this, "incompatibleTokens", "*");
|
|
2250
|
-
}
|
|
2251
|
-
parse(e) {
|
|
2252
|
-
return Te(e);
|
|
2253
|
-
}
|
|
2254
|
-
set(e, t, n) {
|
|
2255
|
-
return [v(e, n), { timestampIsSet: !0 }];
|
|
2256
|
-
}
|
|
2257
|
-
}
|
|
2258
|
-
const Wr = {
|
|
2259
|
-
G: new tr(),
|
|
2260
|
-
y: new rr(),
|
|
2261
|
-
Y: new nr(),
|
|
2262
|
-
R: new ar(),
|
|
2263
|
-
u: new or(),
|
|
2264
|
-
Q: new ir(),
|
|
2265
|
-
q: new sr(),
|
|
2266
|
-
M: new dr(),
|
|
2267
|
-
L: new lr(),
|
|
2268
|
-
w: new cr(),
|
|
2269
|
-
I: new mr(),
|
|
2270
|
-
d: new pr(),
|
|
2271
|
-
D: new br(),
|
|
2272
|
-
E: new wr(),
|
|
2273
|
-
e: new yr(),
|
|
2274
|
-
c: new gr(),
|
|
2275
|
-
i: new vr(),
|
|
2276
|
-
a: new Dr(),
|
|
2277
|
-
b: new Tr(),
|
|
2278
|
-
B: new Pr(),
|
|
2279
|
-
h: new Nr(),
|
|
2280
|
-
H: new jr(),
|
|
2281
|
-
K: new Ir(),
|
|
2282
|
-
k: new _r(),
|
|
2283
|
-
m: new Mr(),
|
|
2284
|
-
s: new Er(),
|
|
2285
|
-
S: new Cr(),
|
|
2286
|
-
X: new Or(),
|
|
2287
|
-
x: new Fr(),
|
|
2288
|
-
t: new Yr(),
|
|
2289
|
-
T: new Lr()
|
|
2290
|
-
}, Hr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Rr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ar = /^'([^]*?)'?$/, Br = /''/g, zr = /\S/, qr = /[a-zA-Z]/;
|
|
2291
|
-
function Qr(a, r, e, t) {
|
|
2292
|
-
var te, re, ne, ae;
|
|
2293
|
-
const n = () => v(e, NaN), o = Xt(), s = o.locale ?? Wt, u = o.firstWeekContainsDate ?? ((re = (te = o.locale) == null ? void 0 : te.options) == null ? void 0 : re.firstWeekContainsDate) ?? 1, h = o.weekStartsOn ?? ((ae = (ne = o.locale) == null ? void 0 : ne.options) == null ? void 0 : ae.weekStartsOn) ?? 0, x = {
|
|
2294
|
-
firstWeekContainsDate: u,
|
|
2295
|
-
weekStartsOn: h,
|
|
2296
|
-
locale: s
|
|
2297
|
-
}, k = [new er(t == null ? void 0 : t.in, e)], c = r.match(Rr).map((f) => {
|
|
2298
|
-
const b = f[0];
|
|
2299
|
-
if (b in ce) {
|
|
2300
|
-
const N = ce[b];
|
|
2301
|
-
return N(f, s.formatLong);
|
|
2302
|
-
}
|
|
2303
|
-
return f;
|
|
2304
|
-
}).join("").match(Hr), _ = [];
|
|
2305
|
-
for (let f of c) {
|
|
2306
|
-
Vt(f) && fe(f, r, a), $t(f) && fe(f, r, a);
|
|
2307
|
-
const b = f[0], N = Wr[b];
|
|
2308
|
-
if (N) {
|
|
2309
|
-
const { incompatibleTokens: oe } = N;
|
|
2310
|
-
if (Array.isArray(oe)) {
|
|
2311
|
-
const ie = _.find(
|
|
2312
|
-
(se) => oe.includes(se.token) || se.token === b
|
|
2313
|
-
);
|
|
2314
|
-
if (ie)
|
|
2315
|
-
throw new RangeError(
|
|
2316
|
-
`The format string mustn't contain \`${ie.fullToken}\` and \`${f}\` at the same time`
|
|
2317
|
-
);
|
|
2318
|
-
} else if (N.incompatibleTokens === "*" && _.length > 0)
|
|
2319
|
-
throw new RangeError(
|
|
2320
|
-
`The format string mustn't contain \`${f}\` and any other token at the same time`
|
|
2321
|
-
);
|
|
2322
|
-
_.push({ token: b, fullToken: f });
|
|
2323
|
-
const G = N.run(
|
|
2324
|
-
a,
|
|
2325
|
-
f,
|
|
2326
|
-
s.match,
|
|
2327
|
-
x
|
|
2328
|
-
);
|
|
2329
|
-
if (!G)
|
|
2330
|
-
return n();
|
|
2331
|
-
k.push(G.setter), a = G.rest;
|
|
2332
|
-
} else {
|
|
2333
|
-
if (b.match(qr))
|
|
2334
|
-
throw new RangeError(
|
|
2335
|
-
"Format string contains an unescaped latin alphabet character `" + b + "`"
|
|
2336
|
-
);
|
|
2337
|
-
if (f === "''" ? f = "'" : b === "'" && (f = $r(f)), a.indexOf(f) === 0)
|
|
2338
|
-
a = a.slice(f.length);
|
|
2339
|
-
else
|
|
2340
|
-
return n();
|
|
2341
|
-
}
|
|
2342
|
-
}
|
|
2343
|
-
if (a.length > 0 && zr.test(a))
|
|
2344
|
-
return n();
|
|
2345
|
-
const F = k.map((f) => f.priority).sort((f, b) => b - f).filter((f, b, N) => N.indexOf(f) === b).map(
|
|
2346
|
-
(f) => k.filter((b) => b.priority === f).sort((b, N) => N.subPriority - b.subPriority)
|
|
2347
|
-
).map((f) => f[0]);
|
|
2348
|
-
let M = T(e, t == null ? void 0 : t.in);
|
|
2349
|
-
if (isNaN(+M)) return n();
|
|
2350
|
-
const ee = {};
|
|
2351
|
-
for (const f of F) {
|
|
2352
|
-
if (!f.validate(M, x))
|
|
2353
|
-
return n();
|
|
2354
|
-
const b = f.set(M, ee, x);
|
|
2355
|
-
Array.isArray(b) ? (M = b[0], Object.assign(ee, b[1])) : M = b;
|
|
2356
|
-
}
|
|
2357
|
-
return M;
|
|
2358
|
-
}
|
|
2359
|
-
function $r(a) {
|
|
2360
|
-
return a.match(Ar)[1].replace(Br, "'");
|
|
2361
|
-
}
|
|
2362
|
-
const _n = D.string().length(10, { message: Y.INVALID_DATE }).superRefine((a, r) => {
|
|
2363
|
-
const [e, t, n] = (a == null ? void 0 : a.split(".")) ?? "", o = Qr(`${e}/${t}/${n}`, "dd/MM/yyyy", /* @__PURE__ */ new Date());
|
|
2364
|
-
+n <= 1950 && r.addIssue({
|
|
2365
|
-
code: D.ZodIssueCode.custom,
|
|
2366
|
-
message: Y.INVALID_DATE
|
|
2367
|
-
}), at(o) || r.addIssue({
|
|
2368
|
-
code: D.ZodIssueCode.custom,
|
|
2369
|
-
message: Y.INVALID_DATE
|
|
2370
|
-
}), (/* @__PURE__ */ new Date()).getTime() < new Date(o).getTime() && r.addIssue({
|
|
2371
|
-
code: D.ZodIssueCode.custom,
|
|
2372
|
-
message: Y.FUTURE_DATE_NOT_ALLOWED
|
|
246
|
+
}), $e = p.string().length(10, { message: s.INVALID_DATE }).superRefine((r, e) => {
|
|
247
|
+
const [n, t, i] = (r == null ? void 0 : r.split(".")) ?? "", d = G(`${n}/${t}/${i}`, "dd/MM/yyyy", /* @__PURE__ */ new Date());
|
|
248
|
+
+i <= 1950 && e.addIssue({
|
|
249
|
+
code: p.ZodIssueCode.custom,
|
|
250
|
+
message: s.INVALID_DATE
|
|
251
|
+
}), U(d) || e.addIssue({
|
|
252
|
+
code: p.ZodIssueCode.custom,
|
|
253
|
+
message: s.INVALID_DATE
|
|
254
|
+
}), (/* @__PURE__ */ new Date()).getTime() < new Date(d).getTime() && e.addIssue({
|
|
255
|
+
code: p.ZodIssueCode.custom,
|
|
256
|
+
message: s.FUTURE_DATE_NOT_ALLOWED
|
|
2373
257
|
});
|
|
2374
|
-
}),
|
|
2375
|
-
const
|
|
2376
|
-
["3", "4", "5", "6", "9"].includes(
|
|
2377
|
-
code:
|
|
258
|
+
}), He = p.string().superRefine((r, e) => {
|
|
259
|
+
const n = r.charAt(0);
|
|
260
|
+
["3", "4", "5", "6", "9"].includes(n) || e.addIssue({
|
|
261
|
+
code: p.ZodIssueCode.custom,
|
|
2378
262
|
message: "Код города/оператора должен начинаться с цифры 3, 4, 5, 6 или 9"
|
|
2379
|
-
}),
|
|
2380
|
-
code:
|
|
263
|
+
}), r.length !== 10 && e.addIssue({
|
|
264
|
+
code: p.ZodIssueCode.custom,
|
|
2381
265
|
message: "Введите номер телефона полностью"
|
|
2382
266
|
});
|
|
2383
|
-
}).transform((
|
|
2384
|
-
|
|
2385
|
-
code:
|
|
267
|
+
}).transform((r) => `7${r}`), Ve = p.coerce.number().min(1e3, `${s.FIX_LENGTH} 4`).max(9999, `${s.FIX_LENGTH} 4`).nullable().superRefine((r, e) => {
|
|
268
|
+
r === null && e.addIssue({
|
|
269
|
+
code: p.ZodIssueCode.invalid_type,
|
|
2386
270
|
expected: "number",
|
|
2387
271
|
received: "null",
|
|
2388
|
-
message: `${
|
|
272
|
+
message: `${s.FIX_LENGTH} 4`
|
|
2389
273
|
});
|
|
2390
|
-
}).default(null),
|
|
274
|
+
}).default(null), b = {
|
|
2391
275
|
transparent: "transparent",
|
|
2392
276
|
current: "currentColor",
|
|
2393
277
|
inherit: "inherit",
|
|
2394
278
|
initial: "initial"
|
|
2395
|
-
},
|
|
279
|
+
}, y = {
|
|
2396
280
|
"blue-grey-100": "#f3f4f7",
|
|
2397
281
|
"blue-grey-200": "#eaedf1",
|
|
2398
282
|
"blue-grey-300": "#d4dbe2",
|
|
@@ -2420,8 +304,8 @@ const _n = D.string().length(10, { message: Y.INVALID_DATE }).superRefine((a, r)
|
|
|
2420
304
|
purple: "#5f40bd",
|
|
2421
305
|
"purple-hover": "#52399d",
|
|
2422
306
|
overlay: "#0000004d",
|
|
2423
|
-
...
|
|
2424
|
-
},
|
|
307
|
+
...b
|
|
308
|
+
}, F = {
|
|
2425
309
|
dark: "#292929",
|
|
2426
310
|
disabled: "#a9b6c5",
|
|
2427
311
|
footer: "#c3c3c3",
|
|
@@ -2435,8 +319,8 @@ const _n = D.string().length(10, { message: Y.INVALID_DATE }).superRefine((a, r)
|
|
|
2435
319
|
white: "#ffffff",
|
|
2436
320
|
"primary-disabled": "#809bc7",
|
|
2437
321
|
"blue-grey-600": "#94a4b7",
|
|
2438
|
-
...
|
|
2439
|
-
},
|
|
322
|
+
...b
|
|
323
|
+
}, A = {
|
|
2440
324
|
"barvcray-200": "#ebeef4",
|
|
2441
325
|
"barvcray-300": "#dde1e8",
|
|
2442
326
|
"greymint-200": "#deecee",
|
|
@@ -2449,8 +333,8 @@ const _n = D.string().length(10, { message: Y.INVALID_DATE }).superRefine((a, r)
|
|
|
2449
333
|
"skyblue-100": "#f4f8fe",
|
|
2450
334
|
"skyblue-200": "#e7f3ff",
|
|
2451
335
|
"skyblue-300": "#d9edff",
|
|
2452
|
-
...
|
|
2453
|
-
},
|
|
336
|
+
...b
|
|
337
|
+
}, c = {
|
|
2454
338
|
"accent-default": "#2477ff",
|
|
2455
339
|
"accent-hover": "#0053da",
|
|
2456
340
|
"blue-grey-100": "#f3f4f7",
|
|
@@ -2475,8 +359,8 @@ const _n = D.string().length(10, { message: Y.INVALID_DATE }).superRefine((a, r)
|
|
|
2475
359
|
white: "#ffffff",
|
|
2476
360
|
"primary-disabled": "#809bc7",
|
|
2477
361
|
footer: "#C3C3C3",
|
|
2478
|
-
...
|
|
2479
|
-
},
|
|
362
|
+
...b
|
|
363
|
+
}, w = {
|
|
2480
364
|
"blue-grey-500": "#a9b6c5",
|
|
2481
365
|
"blue-grey-700": "#69809a",
|
|
2482
366
|
"blue-grey-800": "#5a6e85",
|
|
@@ -2494,21 +378,21 @@ const _n = D.string().length(10, { message: Y.INVALID_DATE }).superRefine((a, r)
|
|
|
2494
378
|
warning: "#f49f00",
|
|
2495
379
|
white: "#ffffff",
|
|
2496
380
|
"primary-disabled": "#809bc7",
|
|
2497
|
-
...
|
|
2498
|
-
},
|
|
381
|
+
...b
|
|
382
|
+
}, z = {
|
|
2499
383
|
none: "0",
|
|
2500
384
|
sm: "4px",
|
|
2501
385
|
md: "8px",
|
|
2502
386
|
lg: "16px",
|
|
2503
387
|
full: "9999px"
|
|
2504
|
-
},
|
|
388
|
+
}, B = {
|
|
2505
389
|
30: "30deg",
|
|
2506
390
|
45: "45deg",
|
|
2507
391
|
80: "80deg",
|
|
2508
392
|
90: "90deg",
|
|
2509
393
|
110: "110deg",
|
|
2510
394
|
180: "180deg"
|
|
2511
|
-
},
|
|
395
|
+
}, ne = {
|
|
2512
396
|
0: "0",
|
|
2513
397
|
1: "1",
|
|
2514
398
|
10: "10",
|
|
@@ -2518,7 +402,7 @@ const _n = D.string().length(10, { message: Y.INVALID_DATE }).superRefine((a, r)
|
|
|
2518
402
|
250: "250",
|
|
2519
403
|
500: "500",
|
|
2520
404
|
1e3: "1000"
|
|
2521
|
-
},
|
|
405
|
+
}, S = {
|
|
2522
406
|
12: "12px",
|
|
2523
407
|
14: "14px",
|
|
2524
408
|
16: "16px",
|
|
@@ -2528,7 +412,7 @@ const _n = D.string().length(10, { message: Y.INVALID_DATE }).superRefine((a, r)
|
|
|
2528
412
|
28: "28px",
|
|
2529
413
|
32: "32px",
|
|
2530
414
|
40: "40px"
|
|
2531
|
-
},
|
|
415
|
+
}, R = {
|
|
2532
416
|
16: "16px",
|
|
2533
417
|
20: "20px",
|
|
2534
418
|
22: "22px",
|
|
@@ -2537,7 +421,7 @@ const _n = D.string().length(10, { message: Y.INVALID_DATE }).superRefine((a, r)
|
|
|
2537
421
|
32: "32px",
|
|
2538
422
|
40: "40px",
|
|
2539
423
|
48: "48px"
|
|
2540
|
-
},
|
|
424
|
+
}, P = {
|
|
2541
425
|
/* # Headline */
|
|
2542
426
|
".mob-headline-bold-m": {
|
|
2543
427
|
"@apply font-bold text-28 leading-32": ""
|
|
@@ -2597,67 +481,67 @@ const _n = D.string().length(10, { message: Y.INVALID_DATE }).superRefine((a, r)
|
|
|
2597
481
|
"@apply font-normal text-12 leading-16": ""
|
|
2598
482
|
}
|
|
2599
483
|
};
|
|
2600
|
-
var
|
|
2601
|
-
(function(
|
|
2602
|
-
Object.defineProperty(
|
|
484
|
+
var $ = {}, H = {};
|
|
485
|
+
(function(r) {
|
|
486
|
+
Object.defineProperty(r, "__esModule", {
|
|
2603
487
|
value: !0
|
|
2604
|
-
}), Object.defineProperty(
|
|
488
|
+
}), Object.defineProperty(r, "default", {
|
|
2605
489
|
enumerable: !0,
|
|
2606
490
|
get: function() {
|
|
2607
|
-
return
|
|
491
|
+
return n;
|
|
2608
492
|
}
|
|
2609
493
|
});
|
|
2610
|
-
function
|
|
494
|
+
function e(t, i) {
|
|
2611
495
|
return {
|
|
2612
496
|
handler: t,
|
|
2613
|
-
config:
|
|
497
|
+
config: i
|
|
2614
498
|
};
|
|
2615
499
|
}
|
|
2616
|
-
|
|
2617
|
-
const
|
|
500
|
+
e.withOptions = function(t, i = () => ({})) {
|
|
501
|
+
const d = function(f) {
|
|
2618
502
|
return {
|
|
2619
|
-
__options:
|
|
2620
|
-
handler: t(
|
|
2621
|
-
config:
|
|
503
|
+
__options: f,
|
|
504
|
+
handler: t(f),
|
|
505
|
+
config: i(f)
|
|
2622
506
|
};
|
|
2623
507
|
};
|
|
2624
|
-
return
|
|
508
|
+
return d.__isOptionsFunction = !0, d.__pluginFunction = t, d.__configFunction = i, d;
|
|
2625
509
|
};
|
|
2626
|
-
const
|
|
2627
|
-
})(
|
|
2628
|
-
(function(
|
|
2629
|
-
Object.defineProperty(
|
|
510
|
+
const n = e;
|
|
511
|
+
})(H);
|
|
512
|
+
(function(r) {
|
|
513
|
+
Object.defineProperty(r, "__esModule", {
|
|
2630
514
|
value: !0
|
|
2631
|
-
}), Object.defineProperty(
|
|
515
|
+
}), Object.defineProperty(r, "default", {
|
|
2632
516
|
enumerable: !0,
|
|
2633
517
|
get: function() {
|
|
2634
518
|
return t;
|
|
2635
519
|
}
|
|
2636
520
|
});
|
|
2637
|
-
const
|
|
2638
|
-
function
|
|
2639
|
-
return
|
|
2640
|
-
default:
|
|
521
|
+
const e = /* @__PURE__ */ n(H);
|
|
522
|
+
function n(i) {
|
|
523
|
+
return i && i.__esModule ? i : {
|
|
524
|
+
default: i
|
|
2641
525
|
};
|
|
2642
526
|
}
|
|
2643
|
-
const t =
|
|
2644
|
-
})(
|
|
2645
|
-
let
|
|
2646
|
-
var
|
|
2647
|
-
const
|
|
2648
|
-
function
|
|
527
|
+
const t = e.default;
|
|
528
|
+
})($);
|
|
529
|
+
let j = $;
|
|
530
|
+
var V = (j.__esModule ? j : { default: j }).default;
|
|
531
|
+
const v = /* @__PURE__ */ _(V), ae = V;
|
|
532
|
+
function C(r) {
|
|
2649
533
|
return Object.fromEntries(
|
|
2650
|
-
Object.entries(
|
|
534
|
+
Object.entries(r).filter(([e]) => e !== "DEFAULT")
|
|
2651
535
|
);
|
|
2652
536
|
}
|
|
2653
|
-
var
|
|
2654
|
-
({ addUtilities:
|
|
2655
|
-
|
|
2656
|
-
"@keyframes enter":
|
|
2657
|
-
"@keyframes exit":
|
|
537
|
+
var ie = ae(
|
|
538
|
+
({ addUtilities: r, matchUtilities: e, theme: n }) => {
|
|
539
|
+
r({
|
|
540
|
+
"@keyframes enter": n("keyframes.enter"),
|
|
541
|
+
"@keyframes exit": n("keyframes.exit"),
|
|
2658
542
|
".animate-in": {
|
|
2659
543
|
animationName: "enter",
|
|
2660
|
-
animationDuration:
|
|
544
|
+
animationDuration: n("animationDuration.DEFAULT"),
|
|
2661
545
|
"--tw-enter-opacity": "initial",
|
|
2662
546
|
"--tw-enter-scale": "initial",
|
|
2663
547
|
"--tw-enter-rotate": "initial",
|
|
@@ -2666,32 +550,32 @@ var Xr = Gr(
|
|
|
2666
550
|
},
|
|
2667
551
|
".animate-out": {
|
|
2668
552
|
animationName: "exit",
|
|
2669
|
-
animationDuration:
|
|
553
|
+
animationDuration: n("animationDuration.DEFAULT"),
|
|
2670
554
|
"--tw-exit-opacity": "initial",
|
|
2671
555
|
"--tw-exit-scale": "initial",
|
|
2672
556
|
"--tw-exit-rotate": "initial",
|
|
2673
557
|
"--tw-exit-translate-x": "initial",
|
|
2674
558
|
"--tw-exit-translate-y": "initial"
|
|
2675
559
|
}
|
|
2676
|
-
}),
|
|
560
|
+
}), e(
|
|
2677
561
|
{
|
|
2678
562
|
"fade-in": (t) => ({ "--tw-enter-opacity": t }),
|
|
2679
563
|
"fade-out": (t) => ({ "--tw-exit-opacity": t })
|
|
2680
564
|
},
|
|
2681
|
-
{ values:
|
|
2682
|
-
),
|
|
565
|
+
{ values: n("animationOpacity") }
|
|
566
|
+
), e(
|
|
2683
567
|
{
|
|
2684
568
|
"zoom-in": (t) => ({ "--tw-enter-scale": t }),
|
|
2685
569
|
"zoom-out": (t) => ({ "--tw-exit-scale": t })
|
|
2686
570
|
},
|
|
2687
|
-
{ values:
|
|
2688
|
-
),
|
|
571
|
+
{ values: n("animationScale") }
|
|
572
|
+
), e(
|
|
2689
573
|
{
|
|
2690
574
|
"spin-in": (t) => ({ "--tw-enter-rotate": t }),
|
|
2691
575
|
"spin-out": (t) => ({ "--tw-exit-rotate": t })
|
|
2692
576
|
},
|
|
2693
|
-
{ values:
|
|
2694
|
-
),
|
|
577
|
+
{ values: n("animationRotate") }
|
|
578
|
+
), e(
|
|
2695
579
|
{
|
|
2696
580
|
"slide-in-from-top": (t) => ({
|
|
2697
581
|
"--tw-enter-translate-y": `-${t}`
|
|
@@ -2718,42 +602,42 @@ var Xr = Gr(
|
|
|
2718
602
|
"--tw-exit-translate-x": t
|
|
2719
603
|
})
|
|
2720
604
|
},
|
|
2721
|
-
{ values:
|
|
2722
|
-
),
|
|
605
|
+
{ values: n("animationTranslate") }
|
|
606
|
+
), e(
|
|
2723
607
|
{ duration: (t) => ({ animationDuration: t }) },
|
|
2724
|
-
{ values:
|
|
2725
|
-
),
|
|
608
|
+
{ values: C(n("animationDuration")) }
|
|
609
|
+
), e(
|
|
2726
610
|
{ delay: (t) => ({ animationDelay: t }) },
|
|
2727
|
-
{ values:
|
|
2728
|
-
),
|
|
611
|
+
{ values: n("animationDelay") }
|
|
612
|
+
), e(
|
|
2729
613
|
{ ease: (t) => ({ animationTimingFunction: t }) },
|
|
2730
|
-
{ values:
|
|
2731
|
-
),
|
|
614
|
+
{ values: C(n("animationTimingFunction")) }
|
|
615
|
+
), r({
|
|
2732
616
|
".running": { animationPlayState: "running" },
|
|
2733
617
|
".paused": { animationPlayState: "paused" }
|
|
2734
|
-
}),
|
|
618
|
+
}), e(
|
|
2735
619
|
{ "fill-mode": (t) => ({ animationFillMode: t }) },
|
|
2736
|
-
{ values:
|
|
2737
|
-
),
|
|
620
|
+
{ values: n("animationFillMode") }
|
|
621
|
+
), e(
|
|
2738
622
|
{ direction: (t) => ({ animationDirection: t }) },
|
|
2739
|
-
{ values:
|
|
2740
|
-
),
|
|
623
|
+
{ values: n("animationDirection") }
|
|
624
|
+
), e(
|
|
2741
625
|
{ repeat: (t) => ({ animationIterationCount: t }) },
|
|
2742
|
-
{ values:
|
|
626
|
+
{ values: n("animationRepeat") }
|
|
2743
627
|
);
|
|
2744
628
|
},
|
|
2745
629
|
{
|
|
2746
630
|
theme: {
|
|
2747
631
|
extend: {
|
|
2748
|
-
animationDelay: ({ theme:
|
|
2749
|
-
...
|
|
632
|
+
animationDelay: ({ theme: r }) => ({
|
|
633
|
+
...r("transitionDelay")
|
|
2750
634
|
}),
|
|
2751
|
-
animationDuration: ({ theme:
|
|
635
|
+
animationDuration: ({ theme: r }) => ({
|
|
2752
636
|
0: "0ms",
|
|
2753
|
-
...
|
|
637
|
+
...r("transitionDuration")
|
|
2754
638
|
}),
|
|
2755
|
-
animationTimingFunction: ({ theme:
|
|
2756
|
-
...
|
|
639
|
+
animationTimingFunction: ({ theme: r }) => ({
|
|
640
|
+
...r("transitionTimingFunction")
|
|
2757
641
|
}),
|
|
2758
642
|
animationFillMode: {
|
|
2759
643
|
none: "none",
|
|
@@ -2767,21 +651,21 @@ var Xr = Gr(
|
|
|
2767
651
|
alternate: "alternate",
|
|
2768
652
|
"alternate-reverse": "alternate-reverse"
|
|
2769
653
|
},
|
|
2770
|
-
animationOpacity: ({ theme:
|
|
654
|
+
animationOpacity: ({ theme: r }) => ({
|
|
2771
655
|
DEFAULT: 0,
|
|
2772
|
-
...
|
|
656
|
+
...r("opacity")
|
|
2773
657
|
}),
|
|
2774
|
-
animationTranslate: ({ theme:
|
|
658
|
+
animationTranslate: ({ theme: r }) => ({
|
|
2775
659
|
DEFAULT: "100%",
|
|
2776
|
-
...
|
|
660
|
+
...r("translate")
|
|
2777
661
|
}),
|
|
2778
|
-
animationScale: ({ theme:
|
|
662
|
+
animationScale: ({ theme: r }) => ({
|
|
2779
663
|
DEFAULT: 0,
|
|
2780
|
-
...
|
|
664
|
+
...r("scale")
|
|
2781
665
|
}),
|
|
2782
|
-
animationRotate: ({ theme:
|
|
666
|
+
animationRotate: ({ theme: r }) => ({
|
|
2783
667
|
DEFAULT: "30deg",
|
|
2784
|
-
...
|
|
668
|
+
...r("rotate")
|
|
2785
669
|
}),
|
|
2786
670
|
animationRepeat: {
|
|
2787
671
|
0: "0",
|
|
@@ -2806,33 +690,33 @@ var Xr = Gr(
|
|
|
2806
690
|
}
|
|
2807
691
|
}
|
|
2808
692
|
);
|
|
2809
|
-
const
|
|
693
|
+
const O = /* @__PURE__ */ _(ie), Oe = {
|
|
2810
694
|
theme: {
|
|
2811
695
|
backgroundColor: {
|
|
2812
|
-
color:
|
|
2813
|
-
banner:
|
|
2814
|
-
icon:
|
|
696
|
+
color: y,
|
|
697
|
+
banner: A,
|
|
698
|
+
icon: c
|
|
2815
699
|
},
|
|
2816
700
|
textColor: {
|
|
2817
|
-
icon:
|
|
2818
|
-
color:
|
|
701
|
+
icon: c,
|
|
702
|
+
color: F
|
|
2819
703
|
},
|
|
2820
|
-
fill:
|
|
2821
|
-
stroke:
|
|
2822
|
-
borderColor:
|
|
2823
|
-
outlineColor:
|
|
2824
|
-
borderRadius:
|
|
704
|
+
fill: c,
|
|
705
|
+
stroke: c,
|
|
706
|
+
borderColor: w,
|
|
707
|
+
outlineColor: w,
|
|
708
|
+
borderRadius: z,
|
|
2825
709
|
fontFamily: { roboto: ["var(--ff-roboto)", "sans-serif"] },
|
|
2826
|
-
fontSize:
|
|
2827
|
-
lineHeight:
|
|
2828
|
-
gradientColorStops:
|
|
710
|
+
fontSize: S,
|
|
711
|
+
lineHeight: R,
|
|
712
|
+
gradientColorStops: y,
|
|
2829
713
|
boxShadow: {
|
|
2830
714
|
sm: "0 8px 20px 0 rgba(0, 0, 0, 0.08)",
|
|
2831
715
|
md: "0 12px 20px 0 rgba(0, 33, 87, 0.10)",
|
|
2832
716
|
lg: "0 16px 24px 0 rgba(0, 33, 87, 0.16)"
|
|
2833
717
|
},
|
|
2834
718
|
extend: {
|
|
2835
|
-
bgGradientDeg:
|
|
719
|
+
bgGradientDeg: B,
|
|
2836
720
|
width: {
|
|
2837
721
|
"popper-content": "var(--radix-popover-content-available-width)",
|
|
2838
722
|
"popper-trigger": "var(--radix-popover-trigger-width)",
|
|
@@ -2886,24 +770,24 @@ const We = /* @__PURE__ */ he(Xr), Cn = {
|
|
|
2886
770
|
}
|
|
2887
771
|
},
|
|
2888
772
|
plugins: [
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
773
|
+
O,
|
|
774
|
+
v(({ addComponents: r }) => {
|
|
775
|
+
r(P);
|
|
2892
776
|
}),
|
|
2893
|
-
|
|
2894
|
-
|
|
777
|
+
v(function({ matchUtilities: r, theme: e }) {
|
|
778
|
+
r(
|
|
2895
779
|
{
|
|
2896
|
-
"bg-deg-gradient": (
|
|
2897
|
-
"background-image": `linear-gradient(${
|
|
780
|
+
"bg-deg-gradient": (n) => ({
|
|
781
|
+
"background-image": `linear-gradient(${n}, var(--tw-gradient-stops))`
|
|
2898
782
|
})
|
|
2899
783
|
},
|
|
2900
784
|
{
|
|
2901
|
-
values: Object.assign(
|
|
785
|
+
values: Object.assign(e("bgGradientDeg", {}), {})
|
|
2902
786
|
}
|
|
2903
787
|
);
|
|
2904
788
|
})
|
|
2905
789
|
]
|
|
2906
|
-
},
|
|
790
|
+
}, Me = {
|
|
2907
791
|
theme: {
|
|
2908
792
|
extend: {
|
|
2909
793
|
transitionDuration: {
|
|
@@ -2943,96 +827,96 @@ const We = /* @__PURE__ */ he(Xr), Cn = {
|
|
|
2943
827
|
}
|
|
2944
828
|
}
|
|
2945
829
|
}
|
|
2946
|
-
},
|
|
830
|
+
}, Ze = {
|
|
2947
831
|
theme: {
|
|
2948
832
|
screens: {
|
|
2949
833
|
mobile: { max: "1187px" },
|
|
2950
834
|
desktop: "1188px"
|
|
2951
835
|
},
|
|
2952
836
|
backgroundColor: {
|
|
2953
|
-
color:
|
|
2954
|
-
banner:
|
|
2955
|
-
icon:
|
|
837
|
+
color: y,
|
|
838
|
+
banner: A,
|
|
839
|
+
icon: c
|
|
2956
840
|
},
|
|
2957
841
|
textColor: {
|
|
2958
|
-
icon:
|
|
2959
|
-
color:
|
|
842
|
+
icon: c,
|
|
843
|
+
color: F
|
|
2960
844
|
},
|
|
2961
|
-
fill:
|
|
2962
|
-
stroke:
|
|
2963
|
-
borderColor:
|
|
2964
|
-
outlineColor:
|
|
2965
|
-
borderRadius:
|
|
845
|
+
fill: c,
|
|
846
|
+
stroke: c,
|
|
847
|
+
borderColor: w,
|
|
848
|
+
outlineColor: w,
|
|
849
|
+
borderRadius: z,
|
|
2966
850
|
fontFamily: { roboto: ["var(--ff-roboto)", "sans-serif"] },
|
|
2967
|
-
fontSize:
|
|
2968
|
-
lineHeight:
|
|
2969
|
-
gradientColorStops:
|
|
851
|
+
fontSize: S,
|
|
852
|
+
lineHeight: R,
|
|
853
|
+
gradientColorStops: y,
|
|
2970
854
|
boxShadow: {
|
|
2971
855
|
sm: "0 8px 20px 0 rgba(0, 0, 0, 0.08)",
|
|
2972
856
|
md: "0 12px 20px 0 rgba(0, 33, 87, 0.10)",
|
|
2973
857
|
lg: "0 16px 24px 0 rgba(0, 33, 87, 0.16)"
|
|
2974
858
|
},
|
|
2975
|
-
zIndex:
|
|
859
|
+
zIndex: ne,
|
|
2976
860
|
extend: {
|
|
2977
|
-
bgGradientDeg:
|
|
861
|
+
bgGradientDeg: B
|
|
2978
862
|
}
|
|
2979
863
|
},
|
|
2980
864
|
plugins: [
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
865
|
+
O,
|
|
866
|
+
v(({ addComponents: r }) => {
|
|
867
|
+
r(P);
|
|
2984
868
|
}),
|
|
2985
|
-
|
|
2986
|
-
|
|
869
|
+
v(function({ matchUtilities: r, theme: e }) {
|
|
870
|
+
r(
|
|
2987
871
|
{
|
|
2988
|
-
"bg-deg-gradient": (
|
|
2989
|
-
"background-image": `linear-gradient(${
|
|
872
|
+
"bg-deg-gradient": (n) => ({
|
|
873
|
+
"background-image": `linear-gradient(${n}, var(--tw-gradient-stops))`
|
|
2990
874
|
})
|
|
2991
875
|
},
|
|
2992
876
|
{
|
|
2993
|
-
values: Object.assign(
|
|
877
|
+
values: Object.assign(e("bgGradientDeg", {}), {})
|
|
2994
878
|
}
|
|
2995
879
|
);
|
|
2996
880
|
})
|
|
2997
881
|
]
|
|
2998
882
|
};
|
|
2999
|
-
class
|
|
3000
|
-
constructor(
|
|
3001
|
-
super("ApiError: " +
|
|
883
|
+
class de extends Error {
|
|
884
|
+
constructor(e) {
|
|
885
|
+
super("ApiError: " + e.status), this.response = e;
|
|
3002
886
|
}
|
|
3003
887
|
}
|
|
3004
|
-
const
|
|
888
|
+
const le = {
|
|
3005
889
|
"Content-Type": "application/json"
|
|
3006
|
-
},
|
|
3007
|
-
const t = (
|
|
890
|
+
}, Ge = async ({ url: r, init: e, baseUrl: n }) => {
|
|
891
|
+
const t = (e == null ? void 0 : e.headers) ?? {}, i = (e == null ? void 0 : e.body) && (e == null ? void 0 : e.body), d = await fetch(`${n}${r}`, {
|
|
3008
892
|
headers: {
|
|
3009
|
-
...
|
|
893
|
+
...le,
|
|
3010
894
|
...t
|
|
3011
895
|
},
|
|
3012
|
-
body:
|
|
3013
|
-
...
|
|
896
|
+
body: i,
|
|
897
|
+
...e
|
|
3014
898
|
});
|
|
3015
|
-
if (!
|
|
3016
|
-
throw new
|
|
3017
|
-
return await
|
|
3018
|
-
},
|
|
899
|
+
if (!d.ok)
|
|
900
|
+
throw new de(d);
|
|
901
|
+
return await d.json();
|
|
902
|
+
}, fe = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3019
903
|
"© 2004-2024, ПАО «Совкомбанк». Все права защищены. ",
|
|
3020
|
-
/* @__PURE__ */
|
|
904
|
+
/* @__PURE__ */ o.jsx("br", {}),
|
|
3021
905
|
" Генеральная лицензия Банка России №963 от 5 декабря 2014 г."
|
|
3022
|
-
] }),
|
|
906
|
+
] }), pe = `Кредит на бизнес цели, срок 3, 6, 9, 12, 18, 24, 36, 48, 60 мес. Ставка – от 22,9%*. *Точная процентная ставка
|
|
3023
907
|
устанавливается по соглашению сторон и определяется исходя из платёжеспособности и кредитоспособности клиента, а также
|
|
3024
908
|
иных индивидуальных особенностей клиента. Сумма 100 000 – 50 000 000 руб. Кредит выдается на карту “Халва”, открытый в
|
|
3025
909
|
Банке. Банк вправе отказать в предоставлении кредита без объяснения причины, а также запросить дополнительную информацию о
|
|
3026
910
|
клиенте. Предварительное одобрение не влечет обязательств Банка по выдаче кредита. В некоторых случаях срок рассмотрения
|
|
3027
911
|
заявки может составлять до 3 рабочих дней. Полный электронный документооборот при наличии открытого р/с в ПАО «Совкомбанк»
|
|
3028
|
-
и действующей ЭЦП. Условия рекламы действительны на 20.02.2024г.`,
|
|
912
|
+
и действующей ЭЦП. Условия рекламы действительны на 20.02.2024г.`, ue = [
|
|
3029
913
|
{ phone: "8 800 100-00-06", text: "Звонок по России (бесплатно)" },
|
|
3030
914
|
{ phone: "+7 (495) 988 00 00", text: "Для звонков из-за рубежа (платно)" }
|
|
3031
|
-
],
|
|
915
|
+
], me = [
|
|
3032
916
|
{ iconName: "social/vk", href: "/vk" },
|
|
3033
917
|
{ iconName: "social/telegram", href: "/tg" },
|
|
3034
918
|
{ iconName: "social/classmates", href: "/cl" }
|
|
3035
|
-
],
|
|
919
|
+
], ce = [
|
|
3036
920
|
{
|
|
3037
921
|
groupLabel: "Совкомбанк",
|
|
3038
922
|
links: [
|
|
@@ -3109,89 +993,89 @@ const Ur = {
|
|
|
3109
993
|
{ text: "Офисы и банкоматы", href: "/" }
|
|
3110
994
|
]
|
|
3111
995
|
}
|
|
3112
|
-
],
|
|
996
|
+
], xe = ({ socialsLinks: r, classes: e }) => /* @__PURE__ */ o.jsx("div", { className: a("mt-6 flex items-center gap-2", e == null ? void 0 : e.socialRoot), children: r == null ? void 0 : r.map(({ iconName: n, href: t }) => /* @__PURE__ */ o.jsx(
|
|
3113
997
|
"a",
|
|
3114
998
|
{
|
|
3115
|
-
className:
|
|
999
|
+
className: a("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", e == null ? void 0 : e.socialLink),
|
|
3116
1000
|
href: t,
|
|
3117
|
-
"aria-label":
|
|
3118
|
-
children: /* @__PURE__ */
|
|
1001
|
+
"aria-label": n.replace("social/", ""),
|
|
1002
|
+
children: /* @__PURE__ */ o.jsx(m, { name: n, className: a("h-full w-full text-icon-white", e == null ? void 0 : e.socialIcon) })
|
|
3119
1003
|
},
|
|
3120
1004
|
t
|
|
3121
|
-
)) }),
|
|
3122
|
-
|
|
1005
|
+
)) }), se = ({ phones: r, classes: e }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col items-end gap-4", e == null ? void 0 : e.phonesRoot), children: r == null ? void 0 : r.map(({ phone: n, text: t }) => /* @__PURE__ */ o.jsx(
|
|
1006
|
+
L,
|
|
3123
1007
|
{
|
|
3124
|
-
phone:
|
|
1008
|
+
phone: n,
|
|
3125
1009
|
text: t,
|
|
3126
1010
|
classes: {
|
|
3127
|
-
wrapper:
|
|
3128
|
-
text:
|
|
3129
|
-
link:
|
|
1011
|
+
wrapper: a(e == null ? void 0 : e.phoneWrapper),
|
|
1012
|
+
text: a("text-color-footer", e == null ? void 0 : e.phoneText),
|
|
1013
|
+
link: a("text-color-white", e == null ? void 0 : e.phoneLink)
|
|
3130
1014
|
}
|
|
3131
1015
|
},
|
|
3132
|
-
|
|
3133
|
-
)) }),
|
|
3134
|
-
/* @__PURE__ */
|
|
3135
|
-
/* @__PURE__ */
|
|
1016
|
+
n
|
|
1017
|
+
)) }), ge = ({ navigationLinks: r, classes: e }) => /* @__PURE__ */ o.jsx("div", { className: a("grid grid-cols-4 gap-10 border-y border-blue-grey-500 py-8 pt-8", e == null ? void 0 : e.navRoot), children: r == null ? void 0 : r.map(({ groupLabel: n, links: t }) => /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4", e == null ? void 0 : e.navGroup), children: [
|
|
1018
|
+
/* @__PURE__ */ o.jsx("div", { className: a("desk-body-regular-m font-medium text-color-white", e == null ? void 0 : e.navLabel), children: n }),
|
|
1019
|
+
/* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-2", e == null ? void 0 : e.navWrapper), children: t == null ? void 0 : t.map(({ text: i, href: d }) => /* @__PURE__ */ o.jsx(
|
|
3136
1020
|
"a",
|
|
3137
1021
|
{
|
|
3138
|
-
href:
|
|
3139
|
-
className:
|
|
1022
|
+
href: d,
|
|
1023
|
+
className: a(
|
|
3140
1024
|
"desk-body-regular-m cursor-pointer text-color-white transition-colors hover:text-color-footer",
|
|
3141
|
-
|
|
1025
|
+
e == null ? void 0 : e.navLink
|
|
3142
1026
|
),
|
|
3143
|
-
"aria-label":
|
|
3144
|
-
children:
|
|
1027
|
+
"aria-label": i,
|
|
1028
|
+
children: i
|
|
3145
1029
|
},
|
|
3146
|
-
|
|
1030
|
+
i
|
|
3147
1031
|
)) })
|
|
3148
|
-
] },
|
|
3149
|
-
const [
|
|
3150
|
-
return
|
|
3151
|
-
const u =
|
|
3152
|
-
u &&
|
|
3153
|
-
}, []), /* @__PURE__ */
|
|
3154
|
-
/* @__PURE__ */
|
|
3155
|
-
|
|
1032
|
+
] }, n)) }), be = ({ ligal: r, classes: e }) => {
|
|
1033
|
+
const [n, t] = h.useState(!1), [i, d] = h.useState(!1), f = h.useRef(null);
|
|
1034
|
+
return h.useEffect(() => {
|
|
1035
|
+
const u = f.current;
|
|
1036
|
+
u && d(u.scrollHeight > u.clientHeight);
|
|
1037
|
+
}, []), /* @__PURE__ */ o.jsxs("div", { className: a("mt-8 flex flex-col gap-4", e == null ? void 0 : e.ligalRoot), children: [
|
|
1038
|
+
/* @__PURE__ */ o.jsx("p", { ref: f, className: a("desk-body-regular-m text-color-footer", { "line-clamp-3": !n }, e == null ? void 0 : e.ligal), children: r }),
|
|
1039
|
+
i && /* @__PURE__ */ o.jsx(
|
|
3156
1040
|
"div",
|
|
3157
1041
|
{
|
|
3158
1042
|
tabIndex: 0,
|
|
3159
1043
|
role: "button",
|
|
3160
1044
|
onClick: () => t((u) => !u),
|
|
3161
|
-
className:
|
|
1045
|
+
className: a(
|
|
3162
1046
|
"desk-body-regular-l w-max cursor-pointer font-medium text-color-footer transition-colors hover:text-color-white",
|
|
3163
|
-
|
|
1047
|
+
e == null ? void 0 : e.ligalButton
|
|
3164
1048
|
),
|
|
3165
1049
|
children: "Подробнее"
|
|
3166
1050
|
}
|
|
3167
1051
|
)
|
|
3168
1052
|
] });
|
|
3169
|
-
},
|
|
3170
|
-
withSocial:
|
|
3171
|
-
withPhones:
|
|
3172
|
-
withNavLinks:
|
|
1053
|
+
}, he = ({ text: r, classes: e }) => /* @__PURE__ */ o.jsx("div", { className: a("desk-body-regular-m text-color-footer", e == null ? void 0 : e.text), children: r }), Ue = ({
|
|
1054
|
+
withSocial: r = !0,
|
|
1055
|
+
withPhones: e = !0,
|
|
1056
|
+
withNavLinks: n = !0,
|
|
3173
1057
|
withLigal: t = !0,
|
|
3174
|
-
withCopyright:
|
|
3175
|
-
withSiteMap:
|
|
3176
|
-
socialsLinks:
|
|
3177
|
-
phones: u =
|
|
3178
|
-
navigationLinks:
|
|
3179
|
-
ligal:
|
|
3180
|
-
copyright:
|
|
3181
|
-
classes:
|
|
3182
|
-
}) => /* @__PURE__ */
|
|
3183
|
-
/* @__PURE__ */
|
|
3184
|
-
/* @__PURE__ */
|
|
3185
|
-
/* @__PURE__ */
|
|
3186
|
-
|
|
1058
|
+
withCopyright: i = !0,
|
|
1059
|
+
withSiteMap: d = !0,
|
|
1060
|
+
socialsLinks: f = me,
|
|
1061
|
+
phones: u = ue,
|
|
1062
|
+
navigationLinks: k = ce,
|
|
1063
|
+
ligal: M = pe,
|
|
1064
|
+
copyright: Z = fe,
|
|
1065
|
+
classes: l
|
|
1066
|
+
}) => /* @__PURE__ */ o.jsx(T, { className: a("w-full", l == null ? void 0 : l.section), children: /* @__PURE__ */ o.jsx(g, { className: a(l == null ? void 0 : l.container), children: /* @__PURE__ */ o.jsxs("div", { className: a("bg-color-footer px-4 py-8 desktop:px-6 desktop:py-10", l == null ? void 0 : l.footerRoot), children: [
|
|
1067
|
+
/* @__PURE__ */ o.jsxs("div", { className: a("mb-8 flex items-center justify-between gap-6", l == null ? void 0 : l.footerHead), children: [
|
|
1068
|
+
/* @__PURE__ */ o.jsxs("div", { className: a(l == null ? void 0 : l.footerSocialBlock), children: [
|
|
1069
|
+
/* @__PURE__ */ o.jsx("a", { "aria-label": "logo", href: "/", className: a(l == null ? void 0 : l.footerLogo), children: /* @__PURE__ */ o.jsx(m, { name: "brandLogos/logoWhite", className: "h-[32px] w-[194px]" }) }),
|
|
1070
|
+
r && /* @__PURE__ */ o.jsx(xe, { socialsLinks: f, classes: l })
|
|
3187
1071
|
] }),
|
|
3188
|
-
|
|
1072
|
+
e && /* @__PURE__ */ o.jsx(se, { phones: u, classes: l })
|
|
3189
1073
|
] }),
|
|
3190
|
-
|
|
3191
|
-
t && /* @__PURE__ */
|
|
3192
|
-
/* @__PURE__ */
|
|
3193
|
-
|
|
3194
|
-
|
|
1074
|
+
n && /* @__PURE__ */ o.jsx(ge, { navigationLinks: k, classes: l }),
|
|
1075
|
+
t && /* @__PURE__ */ o.jsx(be, { ligal: M, classes: l }),
|
|
1076
|
+
/* @__PURE__ */ o.jsxs("div", { className: "mt-6 flex items-start justify-between gap-6", children: [
|
|
1077
|
+
i && /* @__PURE__ */ o.jsx(he, { text: Z, classes: l }),
|
|
1078
|
+
d && /* @__PURE__ */ o.jsx(
|
|
3195
1079
|
"a",
|
|
3196
1080
|
{
|
|
3197
1081
|
href: "https://sovcombank.ru/site-map",
|
|
@@ -3203,72 +1087,72 @@ const Ur = {
|
|
|
3203
1087
|
}
|
|
3204
1088
|
)
|
|
3205
1089
|
] })
|
|
3206
|
-
] }) }) }),
|
|
3207
|
-
switch (
|
|
1090
|
+
] }) }) }), ye = (r) => {
|
|
1091
|
+
switch (r.variant) {
|
|
3208
1092
|
case "withButton":
|
|
3209
|
-
return /* @__PURE__ */
|
|
1093
|
+
return /* @__PURE__ */ o.jsx(I, { intent: "secondary", size: "sm", ...r.buttonProps, children: "Оформить заявку" });
|
|
3210
1094
|
case "withPhone":
|
|
3211
|
-
const { phone:
|
|
3212
|
-
return /* @__PURE__ */
|
|
1095
|
+
const { phone: e, phoneText: n } = r;
|
|
1096
|
+
return /* @__PURE__ */ o.jsx(L, { phone: e, text: n, ...r.phoneProps });
|
|
3213
1097
|
default:
|
|
3214
1098
|
return null;
|
|
3215
1099
|
}
|
|
3216
|
-
},
|
|
3217
|
-
const { logoPath:
|
|
3218
|
-
return /* @__PURE__ */
|
|
3219
|
-
/* @__PURE__ */
|
|
1100
|
+
}, We = (r) => {
|
|
1101
|
+
const { logoPath: e = "/", logoType: n = "main", classes: t } = r;
|
|
1102
|
+
return /* @__PURE__ */ o.jsx("header", { className: a("flex h-[72px] items-center justify-center bg-color-white", t == null ? void 0 : t.header), children: /* @__PURE__ */ o.jsx(g, { className: a(t == null ? void 0 : t.container), children: /* @__PURE__ */ o.jsxs("div", { className: a("flex items-center justify-between gap-5", t == null ? void 0 : t.wrapper), children: [
|
|
1103
|
+
/* @__PURE__ */ o.jsx(
|
|
3220
1104
|
"a",
|
|
3221
1105
|
{
|
|
3222
|
-
href:
|
|
1106
|
+
href: e,
|
|
3223
1107
|
"aria-label": "logo",
|
|
3224
1108
|
target: "_blank",
|
|
3225
1109
|
rel: "noreferrer",
|
|
3226
|
-
className:
|
|
1110
|
+
className: a(
|
|
3227
1111
|
"flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
3228
1112
|
t == null ? void 0 : t.logo
|
|
3229
1113
|
),
|
|
3230
|
-
children:
|
|
1114
|
+
children: ee[n]
|
|
3231
1115
|
}
|
|
3232
1116
|
),
|
|
3233
|
-
|
|
1117
|
+
ye(r)
|
|
3234
1118
|
] }) }) });
|
|
3235
|
-
},
|
|
1119
|
+
}, we = ({ title: r, description: e, index: n, classes: t }) => /* @__PURE__ */ o.jsxs(
|
|
3236
1120
|
"div",
|
|
3237
1121
|
{
|
|
3238
|
-
className:
|
|
1122
|
+
className: a(
|
|
3239
1123
|
"flex w-[328px] max-w-[328px] flex-col gap-6 rounded-md border border-solid border-blue-grey-500 p-4 desktop:w-[348px] desktop:max-w-[348px] desktop:border-none desktop:p-0",
|
|
3240
1124
|
t == null ? void 0 : t.singleStep
|
|
3241
1125
|
),
|
|
3242
1126
|
children: [
|
|
3243
|
-
/* @__PURE__ */
|
|
1127
|
+
/* @__PURE__ */ o.jsx(
|
|
3244
1128
|
"div",
|
|
3245
1129
|
{
|
|
3246
|
-
className:
|
|
1130
|
+
className: a(
|
|
3247
1131
|
"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",
|
|
3248
1132
|
t == null ? void 0 : t.numeric
|
|
3249
1133
|
),
|
|
3250
|
-
children:
|
|
1134
|
+
children: n
|
|
3251
1135
|
}
|
|
3252
1136
|
),
|
|
3253
|
-
/* @__PURE__ */
|
|
3254
|
-
/* @__PURE__ */
|
|
3255
|
-
/* @__PURE__ */
|
|
1137
|
+
/* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4", t == null ? void 0 : t.textBlock), children: [
|
|
1138
|
+
/* @__PURE__ */ o.jsx(E, { as: "h4", className: a("text-color-dark", t == null ? void 0 : t.title), children: r }),
|
|
1139
|
+
/* @__PURE__ */ o.jsx("p", { className: a("desk-body-regular-l text-color-tetriary", t == null ? void 0 : t.description), children: e })
|
|
3256
1140
|
] })
|
|
3257
1141
|
]
|
|
3258
1142
|
}
|
|
3259
|
-
),
|
|
3260
|
-
/* @__PURE__ */
|
|
3261
|
-
/* @__PURE__ */
|
|
1143
|
+
), Xe = ({ heading: r, stepsList: e, classes: n }) => /* @__PURE__ */ o.jsx(T, { children: /* @__PURE__ */ o.jsx(g, { children: /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-12 desktop:items-start", n == null ? void 0 : n.root), children: [
|
|
1144
|
+
/* @__PURE__ */ o.jsx(E, { as: "h2", className: a("text-color-dark", n == null ? void 0 : n.headline), children: r }),
|
|
1145
|
+
/* @__PURE__ */ o.jsx(
|
|
3262
1146
|
"div",
|
|
3263
1147
|
{
|
|
3264
|
-
className:
|
|
1148
|
+
className: a(
|
|
3265
1149
|
"flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-center desktop:gap-12",
|
|
3266
|
-
|
|
1150
|
+
n == null ? void 0 : n.stepsWrapper
|
|
3267
1151
|
),
|
|
3268
|
-
children:
|
|
1152
|
+
children: e == null ? void 0 : e.map((t, i) => /* @__PURE__ */ o.jsx(we, { index: i + 1, ...t, classes: n }, t.title))
|
|
3269
1153
|
}
|
|
3270
1154
|
)
|
|
3271
|
-
] }) }) }),
|
|
1155
|
+
] }) }) }), ve = x("", {
|
|
3272
1156
|
variants: {
|
|
3273
1157
|
intent: {
|
|
3274
1158
|
twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
|
|
@@ -3284,7 +1168,7 @@ const Ur = {
|
|
|
3284
1168
|
defaultVariants: {
|
|
3285
1169
|
intent: "twoItems"
|
|
3286
1170
|
}
|
|
3287
|
-
}),
|
|
1171
|
+
}), ke = x("desktop:max-h-[98px]", {
|
|
3288
1172
|
variants: {
|
|
3289
1173
|
intent: {
|
|
3290
1174
|
twoItems: "",
|
|
@@ -3316,7 +1200,7 @@ const Ur = {
|
|
|
3316
1200
|
class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
3317
1201
|
}
|
|
3318
1202
|
]
|
|
3319
|
-
}),
|
|
1203
|
+
}), je = x("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
|
|
3320
1204
|
variants: {
|
|
3321
1205
|
intent: {
|
|
3322
1206
|
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',
|
|
@@ -3326,7 +1210,7 @@ const Ur = {
|
|
|
3326
1210
|
defaultVariants: {
|
|
3327
1211
|
intent: "twoItems"
|
|
3328
1212
|
}
|
|
3329
|
-
}),
|
|
1213
|
+
}), Ne = x("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
|
|
3330
1214
|
variants: {
|
|
3331
1215
|
intent: {
|
|
3332
1216
|
twoItems: "desktop:h-[232px] desktop:w-[500px]",
|
|
@@ -3352,51 +1236,51 @@ const Ur = {
|
|
|
3352
1236
|
class: "desktop:h-[272px] desktop:w-[500px]"
|
|
3353
1237
|
}
|
|
3354
1238
|
]
|
|
3355
|
-
}),
|
|
3356
|
-
const { title:
|
|
3357
|
-
return /* @__PURE__ */
|
|
3358
|
-
/* @__PURE__ */
|
|
3359
|
-
/* @__PURE__ */
|
|
3360
|
-
|
|
1239
|
+
}), Ie = ({ data: r, intent: e }) => {
|
|
1240
|
+
const { title: n, description: t, popoverText: i } = r;
|
|
1241
|
+
return /* @__PURE__ */ o.jsx("li", { className: a(je({ intent: e })), children: /* @__PURE__ */ o.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
1242
|
+
/* @__PURE__ */ o.jsxs("div", { className: a("mb-2 flex items-center gap-2"), children: [
|
|
1243
|
+
/* @__PURE__ */ o.jsx("h4", { className: a("mob-title-bold-m text-color-dark"), children: n }),
|
|
1244
|
+
i && /* @__PURE__ */ o.jsx(W, { triggerElement: /* @__PURE__ */ o.jsx(m, { className: a("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i })
|
|
3361
1245
|
] }),
|
|
3362
|
-
/* @__PURE__ */
|
|
1246
|
+
/* @__PURE__ */ o.jsx("p", { className: a("mob-body-regular-l text-color-secondary"), children: t })
|
|
3363
1247
|
] }) });
|
|
3364
|
-
},
|
|
3365
|
-
title:
|
|
3366
|
-
buttonConfig:
|
|
3367
|
-
intent:
|
|
1248
|
+
}, N = ({ intent: r, title: e, desktopHidden: n = !1, mobileHidden: t = !1 }) => /* @__PURE__ */ o.jsx("h2", { className: a(ve({ intent: r, desktopHidden: n, mobileHidden: t })), children: e }), De = ({ textContent: r, intent: e, withButton: n }) => /* @__PURE__ */ o.jsx("ul", { className: a(ke({ intent: e, withButton: n })), children: r == null ? void 0 : r.map((t, i) => /* @__PURE__ */ o.jsx(Ie, { intent: e, data: t }, i)) }), qe = ({
|
|
1249
|
+
title: r,
|
|
1250
|
+
buttonConfig: e,
|
|
1251
|
+
intent: n = "twoItems",
|
|
3368
1252
|
textContent: t,
|
|
3369
|
-
imageComponent:
|
|
3370
|
-
classes:
|
|
1253
|
+
imageComponent: i,
|
|
1254
|
+
classes: d
|
|
3371
1255
|
}) => {
|
|
3372
|
-
const
|
|
3373
|
-
return /* @__PURE__ */
|
|
3374
|
-
|
|
3375
|
-
/* @__PURE__ */
|
|
1256
|
+
const f = !!e, u = n === "fourItems", k = n === "twoItems";
|
|
1257
|
+
return /* @__PURE__ */ o.jsx("section", { className: a(d == null ? void 0 : d.section), children: /* @__PURE__ */ o.jsxs(g, { className: a(d == null ? void 0 : d.mainContainer), children: [
|
|
1258
|
+
k && /* @__PURE__ */ o.jsx(N, { intent: n, title: r }),
|
|
1259
|
+
/* @__PURE__ */ o.jsxs(
|
|
3376
1260
|
"div",
|
|
3377
1261
|
{
|
|
3378
|
-
className:
|
|
1262
|
+
className: a(
|
|
3379
1263
|
"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",
|
|
3380
|
-
|
|
1264
|
+
d == null ? void 0 : d.contentContainer
|
|
3381
1265
|
),
|
|
3382
1266
|
children: [
|
|
3383
|
-
u && /* @__PURE__ */
|
|
3384
|
-
/* @__PURE__ */
|
|
3385
|
-
/* @__PURE__ */
|
|
1267
|
+
u && /* @__PURE__ */ o.jsx(N, { intent: n, title: r, desktopHidden: !0 }),
|
|
1268
|
+
/* @__PURE__ */ o.jsx("div", { className: a(Ne({ intent: n, withButton: f }), d == null ? void 0 : d.imgContainer), children: i }),
|
|
1269
|
+
/* @__PURE__ */ o.jsxs(
|
|
3386
1270
|
"div",
|
|
3387
1271
|
{
|
|
3388
|
-
className:
|
|
1272
|
+
className: a("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", d == null ? void 0 : d.textWithBtnContainer),
|
|
3389
1273
|
children: [
|
|
3390
|
-
u && /* @__PURE__ */
|
|
3391
|
-
/* @__PURE__ */
|
|
3392
|
-
|
|
3393
|
-
|
|
1274
|
+
u && /* @__PURE__ */ o.jsx(N, { intent: n, title: r, mobileHidden: !0 }),
|
|
1275
|
+
/* @__PURE__ */ o.jsx(De, { textContent: t, intent: n, withButton: f }),
|
|
1276
|
+
f && /* @__PURE__ */ o.jsx(
|
|
1277
|
+
I,
|
|
3394
1278
|
{
|
|
3395
|
-
className:
|
|
1279
|
+
className: a("w-full px-4 desktop:w-max", d == null ? void 0 : d.button),
|
|
3396
1280
|
size: "lg",
|
|
3397
|
-
onClick:
|
|
1281
|
+
onClick: e.onClick,
|
|
3398
1282
|
intent: "secondary",
|
|
3399
|
-
children:
|
|
1283
|
+
children: e.text
|
|
3400
1284
|
}
|
|
3401
1285
|
)
|
|
3402
1286
|
]
|
|
@@ -3408,55 +1292,55 @@ const Ur = {
|
|
|
3408
1292
|
] }) });
|
|
3409
1293
|
};
|
|
3410
1294
|
export {
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
1295
|
+
de as ApiError,
|
|
1296
|
+
Ke as Badge,
|
|
1297
|
+
Le as Breadcrumbs,
|
|
1298
|
+
I as Button,
|
|
1299
|
+
Fe as ButtonIcon,
|
|
1300
|
+
Ae as CustomLink,
|
|
1301
|
+
ze as Document,
|
|
1302
|
+
Re as FloatButton,
|
|
1303
|
+
Ue as Footer,
|
|
1304
|
+
E as Heading,
|
|
1305
|
+
m as Icon,
|
|
1306
|
+
Ye as Loader,
|
|
1307
|
+
qe as LongBanner,
|
|
1308
|
+
We as PageHeader,
|
|
1309
|
+
L as PhoneView,
|
|
1310
|
+
Be as ProgressBar,
|
|
1311
|
+
g as ResponsiveContainer,
|
|
1312
|
+
D as RgxCheckForHyphen,
|
|
1313
|
+
re as RgxPatronymic,
|
|
1314
|
+
te as RgxUnicode,
|
|
1315
|
+
T as Section,
|
|
1316
|
+
Se as Skeleton,
|
|
1317
|
+
Xe as Stepper,
|
|
1318
|
+
s as VALIDATION_MESSAGES,
|
|
1319
|
+
y as allowedBackgroundColors,
|
|
1320
|
+
B as allowedBackgroundDeg,
|
|
1321
|
+
A as allowedBannersBackgroundColors,
|
|
1322
|
+
z as allowedBorderRadius,
|
|
1323
|
+
S as allowedFontSize,
|
|
1324
|
+
c as allowedIconsColors,
|
|
1325
|
+
R as allowedLineHeight,
|
|
1326
|
+
w as allowedStrokeColors,
|
|
1327
|
+
F as allowedTextColors,
|
|
1328
|
+
P as allowedTextStyles,
|
|
1329
|
+
ne as allowedZIndex,
|
|
1330
|
+
Ge as apiInstance,
|
|
1331
|
+
Ee as capitalize,
|
|
1332
|
+
a as cn,
|
|
1333
|
+
le as defaultHeaders,
|
|
1334
|
+
Me as extendsPreset,
|
|
1335
|
+
oe as formattedDadataFio,
|
|
1336
|
+
et as isClient,
|
|
1337
|
+
Te as mergeRefs,
|
|
1338
|
+
Ze as resetPreset,
|
|
1339
|
+
tt as scrollToElement,
|
|
1340
|
+
Oe as tailwindConfigBase,
|
|
1341
|
+
$e as zodCalendarValidate,
|
|
1342
|
+
Pe as zodDadataFioSchema,
|
|
1343
|
+
Ve as zodOtpCodeSchema,
|
|
1344
|
+
He as zodPhoneSchema
|
|
3461
1345
|
};
|
|
3462
1346
|
//# sourceMappingURL=hybrid.js.map
|