@scbt-ecom/ui 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hybrid.js +366 -359
- package/dist/hybrid.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/hybrid.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
var Ve = Object.defineProperty;
|
|
2
|
-
var Qe = (
|
|
3
|
-
var s = (
|
|
2
|
+
var Qe = (o, r, e) => r in o ? Ve(o, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[r] = e;
|
|
3
|
+
var s = (o, r, e) => Qe(o, typeof r != "symbol" ? r + "" : r, e);
|
|
4
4
|
import { j as i, c as d, H as A, a as D, I as T, L as $e, z as _, g as xe, u as be, P as Ge } from "./utils-tailwind-D1D1tL_o.js";
|
|
5
|
-
import { B as
|
|
5
|
+
import { B as to, N as ro, i as no } from "./utils-tailwind-D1D1tL_o.js";
|
|
6
6
|
import * as z from "react";
|
|
7
7
|
import { forwardRef as ye } from "react";
|
|
8
|
-
const Mn = (
|
|
9
|
-
function v(
|
|
10
|
-
return typeof
|
|
8
|
+
const Mn = (o, r) => JSON.stringify(o) === JSON.stringify(r), In = (o) => o.split("-").map((r) => r.charAt(0).toUpperCase() + r.slice(1).toLowerCase()).join("-"), we = 6048e5, Xe = 6e4, Ue = 36e5, Ze = 1e3, se = Symbol.for("constructDateFrom");
|
|
9
|
+
function v(o, r) {
|
|
10
|
+
return typeof o == "function" ? o(r) : o && typeof o == "object" && se in o ? o[se](r) : o instanceof Date ? new o.constructor(r) : new Date(r);
|
|
11
11
|
}
|
|
12
|
-
function j(
|
|
13
|
-
return v(r ||
|
|
12
|
+
function j(o, r) {
|
|
13
|
+
return v(r || o, o);
|
|
14
14
|
}
|
|
15
|
-
function ge(
|
|
16
|
-
const t = j(
|
|
17
|
-
return isNaN(r) ? v((e == null ? void 0 : e.in) ||
|
|
15
|
+
function ge(o, r, e) {
|
|
16
|
+
const t = j(o, e == null ? void 0 : e.in);
|
|
17
|
+
return isNaN(r) ? v((e == null ? void 0 : e.in) || o, NaN) : (r && t.setDate(t.getDate() + r), t);
|
|
18
18
|
}
|
|
19
19
|
let Je = {};
|
|
20
20
|
function H() {
|
|
21
21
|
return Je;
|
|
22
22
|
}
|
|
23
|
-
function O(
|
|
23
|
+
function O(o, r) {
|
|
24
24
|
var u, f, m, b;
|
|
25
|
-
const e = H(), t = (r == null ? void 0 : r.weekStartsOn) ?? ((f = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.options) == null ? void 0 : f.weekStartsOn) ?? e.weekStartsOn ?? ((b = (m = e.locale) == null ? void 0 : m.options) == null ? void 0 : b.weekStartsOn) ?? 0, n = j(
|
|
25
|
+
const e = H(), t = (r == null ? void 0 : r.weekStartsOn) ?? ((f = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.options) == null ? void 0 : f.weekStartsOn) ?? e.weekStartsOn ?? ((b = (m = e.locale) == null ? void 0 : m.options) == null ? void 0 : b.weekStartsOn) ?? 0, n = j(o, r == null ? void 0 : r.in), a = n.getDay(), l = (a < t ? 7 : 0) + a - t;
|
|
26
26
|
return n.setDate(n.getDate() - l), n.setHours(0, 0, 0, 0), n;
|
|
27
27
|
}
|
|
28
|
-
function W(
|
|
29
|
-
return O(
|
|
28
|
+
function W(o, r) {
|
|
29
|
+
return O(o, { ...r, weekStartsOn: 1 });
|
|
30
30
|
}
|
|
31
|
-
function Ke(
|
|
32
|
-
const e = j(
|
|
31
|
+
function Ke(o, r) {
|
|
32
|
+
const e = j(o, r == null ? void 0 : r.in), t = e.getFullYear(), n = v(e, 0);
|
|
33
33
|
n.setFullYear(t + 1, 0, 4), n.setHours(0, 0, 0, 0);
|
|
34
|
-
const
|
|
34
|
+
const a = W(n), l = v(e, 0);
|
|
35
35
|
l.setFullYear(t, 0, 4), l.setHours(0, 0, 0, 0);
|
|
36
36
|
const u = W(l);
|
|
37
|
-
return e.getTime() >=
|
|
37
|
+
return e.getTime() >= a.getTime() ? t + 1 : e.getTime() >= u.getTime() ? t : t - 1;
|
|
38
38
|
}
|
|
39
|
-
function ke(
|
|
40
|
-
const r = j(
|
|
39
|
+
function ke(o) {
|
|
40
|
+
const r = j(o), e = new Date(
|
|
41
41
|
Date.UTC(
|
|
42
42
|
r.getFullYear(),
|
|
43
43
|
r.getMonth(),
|
|
@@ -48,17 +48,17 @@ function ke(a) {
|
|
|
48
48
|
r.getMilliseconds()
|
|
49
49
|
)
|
|
50
50
|
);
|
|
51
|
-
return e.setUTCFullYear(r.getFullYear()), +
|
|
51
|
+
return e.setUTCFullYear(r.getFullYear()), +o - +e;
|
|
52
52
|
}
|
|
53
|
-
function Se(
|
|
54
|
-
const e = Ke(
|
|
53
|
+
function Se(o, r) {
|
|
54
|
+
const e = Ke(o, r), t = v(o, 0);
|
|
55
55
|
return t.setFullYear(e, 0, 4), t.setHours(0, 0, 0, 0), W(t);
|
|
56
56
|
}
|
|
57
|
-
function et(
|
|
58
|
-
return
|
|
57
|
+
function et(o) {
|
|
58
|
+
return o instanceof Date || typeof o == "object" && Object.prototype.toString.call(o) === "[object Date]";
|
|
59
59
|
}
|
|
60
|
-
function tt(
|
|
61
|
-
return !(!et(
|
|
60
|
+
function tt(o) {
|
|
61
|
+
return !(!et(o) && typeof o != "number" || isNaN(+j(o)));
|
|
62
62
|
}
|
|
63
63
|
const rt = {
|
|
64
64
|
lessThanXSeconds: {
|
|
@@ -122,23 +122,23 @@ const rt = {
|
|
|
122
122
|
one: "almost 1 year",
|
|
123
123
|
other: "almost {{count}} years"
|
|
124
124
|
}
|
|
125
|
-
}, nt = (
|
|
125
|
+
}, nt = (o, r, e) => {
|
|
126
126
|
let t;
|
|
127
|
-
const n = rt[
|
|
127
|
+
const n = rt[o];
|
|
128
128
|
return typeof n == "string" ? t = n : r === 1 ? t = n.one : t = n.other.replace("{{count}}", r.toString()), e != null && e.addSuffix ? e.comparison && e.comparison > 0 ? "in " + t : t + " ago" : t;
|
|
129
129
|
};
|
|
130
|
-
function Z(
|
|
130
|
+
function Z(o) {
|
|
131
131
|
return (r = {}) => {
|
|
132
|
-
const e = r.width ? String(r.width) :
|
|
133
|
-
return
|
|
132
|
+
const e = r.width ? String(r.width) : o.defaultWidth;
|
|
133
|
+
return o.formats[e] || o.formats[o.defaultWidth];
|
|
134
134
|
};
|
|
135
135
|
}
|
|
136
|
-
const
|
|
136
|
+
const ot = {
|
|
137
137
|
full: "EEEE, MMMM do, y",
|
|
138
138
|
long: "MMMM do, y",
|
|
139
139
|
medium: "MMM d, y",
|
|
140
140
|
short: "MM/dd/yyyy"
|
|
141
|
-
},
|
|
141
|
+
}, at = {
|
|
142
142
|
full: "h:mm:ss a zzzz",
|
|
143
143
|
long: "h:mm:ss a z",
|
|
144
144
|
medium: "h:mm:ss a",
|
|
@@ -150,11 +150,11 @@ const at = {
|
|
|
150
150
|
short: "{{date}}, {{time}}"
|
|
151
151
|
}, dt = {
|
|
152
152
|
date: Z({
|
|
153
|
-
formats:
|
|
153
|
+
formats: ot,
|
|
154
154
|
defaultWidth: "full"
|
|
155
155
|
}),
|
|
156
156
|
time: Z({
|
|
157
|
-
formats:
|
|
157
|
+
formats: at,
|
|
158
158
|
defaultWidth: "full"
|
|
159
159
|
}),
|
|
160
160
|
dateTime: Z({
|
|
@@ -168,20 +168,20 @@ const at = {
|
|
|
168
168
|
tomorrow: "'tomorrow at' p",
|
|
169
169
|
nextWeek: "eeee 'at' p",
|
|
170
170
|
other: "P"
|
|
171
|
-
}, st = (
|
|
172
|
-
function L(
|
|
171
|
+
}, st = (o, r, e, t) => lt[o];
|
|
172
|
+
function L(o) {
|
|
173
173
|
return (r, e) => {
|
|
174
174
|
const t = e != null && e.context ? String(e.context) : "standalone";
|
|
175
175
|
let n;
|
|
176
|
-
if (t === "formatting" &&
|
|
177
|
-
const l =
|
|
178
|
-
n =
|
|
176
|
+
if (t === "formatting" && o.formattingValues) {
|
|
177
|
+
const l = o.defaultFormattingWidth || o.defaultWidth, u = e != null && e.width ? String(e.width) : l;
|
|
178
|
+
n = o.formattingValues[u] || o.formattingValues[l];
|
|
179
179
|
} else {
|
|
180
|
-
const l =
|
|
181
|
-
n =
|
|
180
|
+
const l = o.defaultWidth, u = e != null && e.width ? String(e.width) : o.defaultWidth;
|
|
181
|
+
n = o.values[u] || o.values[l];
|
|
182
182
|
}
|
|
183
|
-
const
|
|
184
|
-
return n[
|
|
183
|
+
const a = o.argumentCallback ? o.argumentCallback(r) : r;
|
|
184
|
+
return n[a];
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
187
|
const ut = {
|
|
@@ -297,8 +297,8 @@ const ut = {
|
|
|
297
297
|
evening: "in the evening",
|
|
298
298
|
night: "at night"
|
|
299
299
|
}
|
|
300
|
-
}, xt = (
|
|
301
|
-
const e = Number(
|
|
300
|
+
}, xt = (o, r) => {
|
|
301
|
+
const e = Number(o), t = e % 100;
|
|
302
302
|
if (t > 20 || t < 10)
|
|
303
303
|
switch (t % 10) {
|
|
304
304
|
case 1:
|
|
@@ -318,7 +318,7 @@ const ut = {
|
|
|
318
318
|
quarter: L({
|
|
319
319
|
values: ct,
|
|
320
320
|
defaultWidth: "wide",
|
|
321
|
-
argumentCallback: (
|
|
321
|
+
argumentCallback: (o) => o - 1
|
|
322
322
|
}),
|
|
323
323
|
month: L({
|
|
324
324
|
values: ft,
|
|
@@ -335,17 +335,17 @@ const ut = {
|
|
|
335
335
|
defaultFormattingWidth: "wide"
|
|
336
336
|
})
|
|
337
337
|
};
|
|
338
|
-
function B(
|
|
338
|
+
function B(o) {
|
|
339
339
|
return (r, e = {}) => {
|
|
340
|
-
const t = e.width, n = t &&
|
|
341
|
-
if (!
|
|
340
|
+
const t = e.width, n = t && o.matchPatterns[t] || o.matchPatterns[o.defaultMatchWidth], a = r.match(n);
|
|
341
|
+
if (!a)
|
|
342
342
|
return null;
|
|
343
|
-
const l =
|
|
343
|
+
const l = a[0], u = t && o.parsePatterns[t] || o.parsePatterns[o.defaultParseWidth], f = Array.isArray(u) ? wt(u, (c) => c.test(l)) : (
|
|
344
344
|
// [TODO] -- I challenge you to fix the type
|
|
345
345
|
yt(u, (c) => c.test(l))
|
|
346
346
|
);
|
|
347
347
|
let m;
|
|
348
|
-
m =
|
|
348
|
+
m = o.valueCallback ? o.valueCallback(f) : f, m = e.valueCallback ? (
|
|
349
349
|
// [TODO] -- I challenge you to fix the type
|
|
350
350
|
e.valueCallback(m)
|
|
351
351
|
) : m;
|
|
@@ -353,23 +353,23 @@ function B(a) {
|
|
|
353
353
|
return { value: m, rest: b };
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
function yt(
|
|
357
|
-
for (const e in
|
|
358
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
356
|
+
function yt(o, r) {
|
|
357
|
+
for (const e in o)
|
|
358
|
+
if (Object.prototype.hasOwnProperty.call(o, e) && r(o[e]))
|
|
359
359
|
return e;
|
|
360
360
|
}
|
|
361
|
-
function wt(
|
|
362
|
-
for (let e = 0; e <
|
|
363
|
-
if (r(
|
|
361
|
+
function wt(o, r) {
|
|
362
|
+
for (let e = 0; e < o.length; e++)
|
|
363
|
+
if (r(o[e]))
|
|
364
364
|
return e;
|
|
365
365
|
}
|
|
366
|
-
function gt(
|
|
366
|
+
function gt(o) {
|
|
367
367
|
return (r, e = {}) => {
|
|
368
|
-
const t = r.match(
|
|
368
|
+
const t = r.match(o.matchPattern);
|
|
369
369
|
if (!t) return null;
|
|
370
|
-
const n = t[0],
|
|
371
|
-
if (!
|
|
372
|
-
let l =
|
|
370
|
+
const n = t[0], a = r.match(o.parsePattern);
|
|
371
|
+
if (!a) return null;
|
|
372
|
+
let l = o.valueCallback ? o.valueCallback(a[0]) : a[0];
|
|
373
373
|
l = e.valueCallback ? e.valueCallback(l) : l;
|
|
374
374
|
const u = r.slice(n.length);
|
|
375
375
|
return { value: l, rest: u };
|
|
@@ -446,7 +446,7 @@ const kt = /^(\d+)(th|st|nd|rd)?/i, vt = /\d+/i, jt = {
|
|
|
446
446
|
ordinalNumber: gt({
|
|
447
447
|
matchPattern: kt,
|
|
448
448
|
parsePattern: vt,
|
|
449
|
-
valueCallback: (
|
|
449
|
+
valueCallback: (o) => parseInt(o, 10)
|
|
450
450
|
}),
|
|
451
451
|
era: B({
|
|
452
452
|
matchPatterns: jt,
|
|
@@ -459,7 +459,7 @@ const kt = /^(\d+)(th|st|nd|rd)?/i, vt = /\d+/i, jt = {
|
|
|
459
459
|
defaultMatchWidth: "wide",
|
|
460
460
|
parsePatterns: Nt,
|
|
461
461
|
defaultParseWidth: "any",
|
|
462
|
-
valueCallback: (
|
|
462
|
+
valueCallback: (o) => o + 1
|
|
463
463
|
}),
|
|
464
464
|
month: B({
|
|
465
465
|
matchPatterns: Pt,
|
|
@@ -491,30 +491,30 @@ const kt = /^(\d+)(th|st|nd|rd)?/i, vt = /\d+/i, jt = {
|
|
|
491
491
|
firstWeekContainsDate: 1
|
|
492
492
|
}
|
|
493
493
|
};
|
|
494
|
-
function Yt(
|
|
495
|
-
const e = j(
|
|
494
|
+
function Yt(o, r) {
|
|
495
|
+
const e = j(o, r == null ? void 0 : r.in), t = +W(e) - +Se(e);
|
|
496
496
|
return Math.round(t / we) + 1;
|
|
497
497
|
}
|
|
498
|
-
function ve(
|
|
498
|
+
function ve(o, r) {
|
|
499
499
|
var b, c, N, F;
|
|
500
|
-
const e = j(
|
|
501
|
-
l.setFullYear(t + 1, 0,
|
|
502
|
-
const u = O(l, r), f = v((r == null ? void 0 : r.in) ||
|
|
503
|
-
f.setFullYear(t, 0,
|
|
500
|
+
const e = j(o, r == null ? void 0 : r.in), t = e.getFullYear(), n = H(), a = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((c = (b = r == null ? void 0 : r.locale) == null ? void 0 : b.options) == null ? void 0 : c.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((F = (N = n.locale) == null ? void 0 : N.options) == null ? void 0 : F.firstWeekContainsDate) ?? 1, l = v((r == null ? void 0 : r.in) || o, 0);
|
|
501
|
+
l.setFullYear(t + 1, 0, a), l.setHours(0, 0, 0, 0);
|
|
502
|
+
const u = O(l, r), f = v((r == null ? void 0 : r.in) || o, 0);
|
|
503
|
+
f.setFullYear(t, 0, a), f.setHours(0, 0, 0, 0);
|
|
504
504
|
const m = O(f, r);
|
|
505
505
|
return +e >= +u ? t + 1 : +e >= +m ? t : t - 1;
|
|
506
506
|
}
|
|
507
|
-
function Wt(
|
|
507
|
+
function Wt(o, r) {
|
|
508
508
|
var u, f, m, b;
|
|
509
|
-
const e = H(), t = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((f = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.options) == null ? void 0 : f.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((b = (m = e.locale) == null ? void 0 : m.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, n = ve(
|
|
510
|
-
return
|
|
509
|
+
const e = H(), t = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((f = (u = r == null ? void 0 : r.locale) == null ? void 0 : u.options) == null ? void 0 : f.firstWeekContainsDate) ?? e.firstWeekContainsDate ?? ((b = (m = e.locale) == null ? void 0 : m.options) == null ? void 0 : b.firstWeekContainsDate) ?? 1, n = ve(o, r), a = v((r == null ? void 0 : r.in) || o, 0);
|
|
510
|
+
return a.setFullYear(n, 0, t), a.setHours(0, 0, 0, 0), O(a, r);
|
|
511
511
|
}
|
|
512
|
-
function At(
|
|
513
|
-
const e = j(
|
|
512
|
+
function At(o, r) {
|
|
513
|
+
const e = j(o, r == null ? void 0 : r.in), t = +O(e, r) - +Wt(e, r);
|
|
514
514
|
return Math.round(t / we) + 1;
|
|
515
515
|
}
|
|
516
|
-
const ue = (
|
|
517
|
-
switch (
|
|
516
|
+
const ue = (o, r) => {
|
|
517
|
+
switch (o) {
|
|
518
518
|
case "P":
|
|
519
519
|
return r.date({ width: "short" });
|
|
520
520
|
case "PP":
|
|
@@ -525,8 +525,8 @@ const ue = (a, r) => {
|
|
|
525
525
|
default:
|
|
526
526
|
return r.date({ width: "full" });
|
|
527
527
|
}
|
|
528
|
-
}, je = (
|
|
529
|
-
switch (
|
|
528
|
+
}, je = (o, r) => {
|
|
529
|
+
switch (o) {
|
|
530
530
|
case "p":
|
|
531
531
|
return r.time({ width: "short" });
|
|
532
532
|
case "pp":
|
|
@@ -537,64 +537,64 @@ const ue = (a, r) => {
|
|
|
537
537
|
default:
|
|
538
538
|
return r.time({ width: "full" });
|
|
539
539
|
}
|
|
540
|
-
}, Lt = (
|
|
541
|
-
const e =
|
|
540
|
+
}, Lt = (o, r) => {
|
|
541
|
+
const e = o.match(/(P+)(p+)?/) || [], t = e[1], n = e[2];
|
|
542
542
|
if (!n)
|
|
543
|
-
return ue(
|
|
544
|
-
let
|
|
543
|
+
return ue(o, r);
|
|
544
|
+
let a;
|
|
545
545
|
switch (t) {
|
|
546
546
|
case "P":
|
|
547
|
-
|
|
547
|
+
a = r.dateTime({ width: "short" });
|
|
548
548
|
break;
|
|
549
549
|
case "PP":
|
|
550
|
-
|
|
550
|
+
a = r.dateTime({ width: "medium" });
|
|
551
551
|
break;
|
|
552
552
|
case "PPP":
|
|
553
|
-
|
|
553
|
+
a = r.dateTime({ width: "long" });
|
|
554
554
|
break;
|
|
555
555
|
case "PPPP":
|
|
556
556
|
default:
|
|
557
|
-
|
|
557
|
+
a = r.dateTime({ width: "full" });
|
|
558
558
|
break;
|
|
559
559
|
}
|
|
560
|
-
return
|
|
560
|
+
return a.replace("{{date}}", ue(t, r)).replace("{{time}}", je(n, r));
|
|
561
561
|
}, ce = {
|
|
562
562
|
p: je,
|
|
563
563
|
P: Lt
|
|
564
564
|
}, Bt = /^D+$/, Ht = /^Y+$/, Rt = ["D", "DD", "YY", "YYYY"];
|
|
565
|
-
function zt(
|
|
566
|
-
return Bt.test(
|
|
565
|
+
function zt(o) {
|
|
566
|
+
return Bt.test(o);
|
|
567
567
|
}
|
|
568
|
-
function qt(
|
|
569
|
-
return Ht.test(
|
|
568
|
+
function qt(o) {
|
|
569
|
+
return Ht.test(o);
|
|
570
570
|
}
|
|
571
|
-
function fe(
|
|
572
|
-
const t = Vt(
|
|
573
|
-
if (console.warn(t), Rt.includes(
|
|
571
|
+
function fe(o, r, e) {
|
|
572
|
+
const t = Vt(o, r, e);
|
|
573
|
+
if (console.warn(t), Rt.includes(o)) throw new RangeError(t);
|
|
574
574
|
}
|
|
575
|
-
function Vt(
|
|
576
|
-
const t =
|
|
577
|
-
return `Use \`${
|
|
575
|
+
function Vt(o, r, e) {
|
|
576
|
+
const t = o[0] === "Y" ? "years" : "days of the month";
|
|
577
|
+
return `Use \`${o.toLowerCase()}\` instead of \`${o}\` (in \`${r}\`) for formatting ${t} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
578
578
|
}
|
|
579
579
|
function Qt() {
|
|
580
580
|
return Object.assign({}, H());
|
|
581
581
|
}
|
|
582
|
-
function $t(
|
|
583
|
-
const e = j(
|
|
582
|
+
function $t(o, r) {
|
|
583
|
+
const e = j(o, r == null ? void 0 : r.in).getDay();
|
|
584
584
|
return e === 0 ? 7 : e;
|
|
585
585
|
}
|
|
586
|
-
function Gt(
|
|
586
|
+
function Gt(o, r) {
|
|
587
587
|
const e = Xt(r) ? new r(0) : v(r, 0);
|
|
588
|
-
return e.setFullYear(
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
588
|
+
return e.setFullYear(o.getFullYear(), o.getMonth(), o.getDate()), e.setHours(
|
|
589
|
+
o.getHours(),
|
|
590
|
+
o.getMinutes(),
|
|
591
|
+
o.getSeconds(),
|
|
592
|
+
o.getMilliseconds()
|
|
593
593
|
), e;
|
|
594
594
|
}
|
|
595
|
-
function Xt(
|
|
595
|
+
function Xt(o) {
|
|
596
596
|
var r;
|
|
597
|
-
return typeof
|
|
597
|
+
return typeof o == "function" && ((r = o.prototype) == null ? void 0 : r.constructor) === o;
|
|
598
598
|
}
|
|
599
599
|
const Ut = 10;
|
|
600
600
|
class De {
|
|
@@ -606,8 +606,8 @@ class De {
|
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
class Zt extends De {
|
|
609
|
-
constructor(r, e, t, n,
|
|
610
|
-
super(), this.value = r, this.validateValue = e, this.setValue = t, this.priority = n,
|
|
609
|
+
constructor(r, e, t, n, a) {
|
|
610
|
+
super(), this.value = r, this.validateValue = e, this.setValue = t, this.priority = n, a && (this.subPriority = a);
|
|
611
611
|
}
|
|
612
612
|
validate(r, e) {
|
|
613
613
|
return this.validateValue(r, this.value, e);
|
|
@@ -629,16 +629,16 @@ class Jt extends De {
|
|
|
629
629
|
}
|
|
630
630
|
class p {
|
|
631
631
|
run(r, e, t, n) {
|
|
632
|
-
const
|
|
633
|
-
return
|
|
632
|
+
const a = this.parse(r, e, t, n);
|
|
633
|
+
return a ? {
|
|
634
634
|
setter: new Zt(
|
|
635
|
-
|
|
635
|
+
a.value,
|
|
636
636
|
this.validate,
|
|
637
637
|
this.set,
|
|
638
638
|
this.priority,
|
|
639
639
|
this.subPriority
|
|
640
640
|
),
|
|
641
|
-
rest:
|
|
641
|
+
rest: a.rest
|
|
642
642
|
} : null;
|
|
643
643
|
}
|
|
644
644
|
validate(r, e, t) {
|
|
@@ -713,21 +713,21 @@ const g = {
|
|
|
713
713
|
extended: /^([+-])(\d{2}):(\d{2})|Z/,
|
|
714
714
|
extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
|
|
715
715
|
};
|
|
716
|
-
function k(
|
|
717
|
-
return
|
|
718
|
-
value: r(
|
|
719
|
-
rest:
|
|
716
|
+
function k(o, r) {
|
|
717
|
+
return o && {
|
|
718
|
+
value: r(o.value),
|
|
719
|
+
rest: o.rest
|
|
720
720
|
};
|
|
721
721
|
}
|
|
722
|
-
function x(
|
|
723
|
-
const e = r.match(
|
|
722
|
+
function x(o, r) {
|
|
723
|
+
const e = r.match(o);
|
|
724
724
|
return e ? {
|
|
725
725
|
value: parseInt(e[0], 10),
|
|
726
726
|
rest: r.slice(e[0].length)
|
|
727
727
|
} : null;
|
|
728
728
|
}
|
|
729
|
-
function I(
|
|
730
|
-
const e = r.match(
|
|
729
|
+
function I(o, r) {
|
|
730
|
+
const e = r.match(o);
|
|
731
731
|
if (!e)
|
|
732
732
|
return null;
|
|
733
733
|
if (e[0] === "Z")
|
|
@@ -735,17 +735,17 @@ function I(a, r) {
|
|
|
735
735
|
value: 0,
|
|
736
736
|
rest: r.slice(1)
|
|
737
737
|
};
|
|
738
|
-
const t = e[1] === "+" ? 1 : -1, n = e[2] ? parseInt(e[2], 10) : 0,
|
|
738
|
+
const t = e[1] === "+" ? 1 : -1, n = e[2] ? parseInt(e[2], 10) : 0, a = e[3] ? parseInt(e[3], 10) : 0, l = e[5] ? parseInt(e[5], 10) : 0;
|
|
739
739
|
return {
|
|
740
|
-
value: t * (n * Ue +
|
|
740
|
+
value: t * (n * Ue + a * Xe + l * Ze),
|
|
741
741
|
rest: r.slice(e[0].length)
|
|
742
742
|
};
|
|
743
743
|
}
|
|
744
|
-
function Te(
|
|
745
|
-
return x(g.anyDigitsSigned,
|
|
744
|
+
function Te(o) {
|
|
745
|
+
return x(g.anyDigitsSigned, o);
|
|
746
746
|
}
|
|
747
|
-
function w(
|
|
748
|
-
switch (
|
|
747
|
+
function w(o, r) {
|
|
748
|
+
switch (o) {
|
|
749
749
|
case 1:
|
|
750
750
|
return x(g.singleDigit, r);
|
|
751
751
|
case 2:
|
|
@@ -755,11 +755,11 @@ function w(a, r) {
|
|
|
755
755
|
case 4:
|
|
756
756
|
return x(g.fourDigits, r);
|
|
757
757
|
default:
|
|
758
|
-
return x(new RegExp("^\\d{1," +
|
|
758
|
+
return x(new RegExp("^\\d{1," + o + "}"), r);
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
|
-
function V(
|
|
762
|
-
switch (
|
|
761
|
+
function V(o, r) {
|
|
762
|
+
switch (o) {
|
|
763
763
|
case 1:
|
|
764
764
|
return x(g.singleDigitSigned, r);
|
|
765
765
|
case 2:
|
|
@@ -769,11 +769,11 @@ function V(a, r) {
|
|
|
769
769
|
case 4:
|
|
770
770
|
return x(g.fourDigitsSigned, r);
|
|
771
771
|
default:
|
|
772
|
-
return x(new RegExp("^-?\\d{1," +
|
|
772
|
+
return x(new RegExp("^-?\\d{1," + o + "}"), r);
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
|
-
function S(
|
|
776
|
-
switch (
|
|
775
|
+
function S(o) {
|
|
776
|
+
switch (o) {
|
|
777
777
|
case "morning":
|
|
778
778
|
return 4;
|
|
779
779
|
case "evening":
|
|
@@ -789,19 +789,19 @@ function S(a) {
|
|
|
789
789
|
return 0;
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
|
-
function Ne(
|
|
792
|
+
function Ne(o, r) {
|
|
793
793
|
const e = r > 0, t = e ? r : 1 - r;
|
|
794
794
|
let n;
|
|
795
795
|
if (t <= 50)
|
|
796
|
-
n =
|
|
796
|
+
n = o || 100;
|
|
797
797
|
else {
|
|
798
|
-
const
|
|
799
|
-
n =
|
|
798
|
+
const a = t + 50, l = Math.trunc(a / 100) * 100, u = o >= a % 100;
|
|
799
|
+
n = o + l - (u ? 100 : 0);
|
|
800
800
|
}
|
|
801
801
|
return e ? n : 1 - n;
|
|
802
802
|
}
|
|
803
|
-
function Pe(
|
|
804
|
-
return
|
|
803
|
+
function Pe(o) {
|
|
804
|
+
return o % 400 === 0 || o % 4 === 0 && o % 100 !== 0;
|
|
805
805
|
}
|
|
806
806
|
class St extends p {
|
|
807
807
|
constructor() {
|
|
@@ -810,33 +810,33 @@ class St extends p {
|
|
|
810
810
|
s(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
|
|
811
811
|
}
|
|
812
812
|
parse(e, t, n) {
|
|
813
|
-
const
|
|
813
|
+
const a = (l) => ({
|
|
814
814
|
year: l,
|
|
815
815
|
isTwoDigitYear: t === "yy"
|
|
816
816
|
});
|
|
817
817
|
switch (t) {
|
|
818
818
|
case "y":
|
|
819
|
-
return k(w(4, e),
|
|
819
|
+
return k(w(4, e), a);
|
|
820
820
|
case "yo":
|
|
821
821
|
return k(
|
|
822
822
|
n.ordinalNumber(e, {
|
|
823
823
|
unit: "year"
|
|
824
824
|
}),
|
|
825
|
-
|
|
825
|
+
a
|
|
826
826
|
);
|
|
827
827
|
default:
|
|
828
|
-
return k(w(t.length, e),
|
|
828
|
+
return k(w(t.length, e), a);
|
|
829
829
|
}
|
|
830
830
|
}
|
|
831
831
|
validate(e, t) {
|
|
832
832
|
return t.isTwoDigitYear || t.year > 0;
|
|
833
833
|
}
|
|
834
834
|
set(e, t, n) {
|
|
835
|
-
const
|
|
835
|
+
const a = e.getFullYear();
|
|
836
836
|
if (n.isTwoDigitYear) {
|
|
837
837
|
const u = Ne(
|
|
838
838
|
n.year,
|
|
839
|
-
|
|
839
|
+
a
|
|
840
840
|
);
|
|
841
841
|
return e.setFullYear(u, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
842
842
|
}
|
|
@@ -865,29 +865,29 @@ class er extends p {
|
|
|
865
865
|
]);
|
|
866
866
|
}
|
|
867
867
|
parse(e, t, n) {
|
|
868
|
-
const
|
|
868
|
+
const a = (l) => ({
|
|
869
869
|
year: l,
|
|
870
870
|
isTwoDigitYear: t === "YY"
|
|
871
871
|
});
|
|
872
872
|
switch (t) {
|
|
873
873
|
case "Y":
|
|
874
|
-
return k(w(4, e),
|
|
874
|
+
return k(w(4, e), a);
|
|
875
875
|
case "Yo":
|
|
876
876
|
return k(
|
|
877
877
|
n.ordinalNumber(e, {
|
|
878
878
|
unit: "year"
|
|
879
879
|
}),
|
|
880
|
-
|
|
880
|
+
a
|
|
881
881
|
);
|
|
882
882
|
default:
|
|
883
|
-
return k(w(t.length, e),
|
|
883
|
+
return k(w(t.length, e), a);
|
|
884
884
|
}
|
|
885
885
|
}
|
|
886
886
|
validate(e, t) {
|
|
887
887
|
return t.isTwoDigitYear || t.year > 0;
|
|
888
888
|
}
|
|
889
|
-
set(e, t, n,
|
|
890
|
-
const l = ve(e,
|
|
889
|
+
set(e, t, n, a) {
|
|
890
|
+
const l = ve(e, a);
|
|
891
891
|
if (n.isTwoDigitYear) {
|
|
892
892
|
const f = Ne(
|
|
893
893
|
n.year,
|
|
@@ -896,11 +896,11 @@ class er extends p {
|
|
|
896
896
|
return e.setFullYear(
|
|
897
897
|
f,
|
|
898
898
|
0,
|
|
899
|
-
|
|
900
|
-
), e.setHours(0, 0, 0, 0), O(e,
|
|
899
|
+
a.firstWeekContainsDate
|
|
900
|
+
), e.setHours(0, 0, 0, 0), O(e, a);
|
|
901
901
|
}
|
|
902
902
|
const u = !("era" in t) || t.era === 1 ? n.year : 1 - n.year;
|
|
903
|
-
return e.setFullYear(u, 0,
|
|
903
|
+
return e.setFullYear(u, 0, a.firstWeekContainsDate), e.setHours(0, 0, 0, 0), O(e, a);
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
906
|
class tr extends p {
|
|
@@ -929,8 +929,8 @@ class tr extends p {
|
|
|
929
929
|
return V(t === "R" ? 4 : t.length, e);
|
|
930
930
|
}
|
|
931
931
|
set(e, t, n) {
|
|
932
|
-
const
|
|
933
|
-
return
|
|
932
|
+
const a = v(e, 0);
|
|
933
|
+
return a.setFullYear(n, 0, 4), a.setHours(0, 0, 0, 0), W(a);
|
|
934
934
|
}
|
|
935
935
|
}
|
|
936
936
|
class rr extends p {
|
|
@@ -1008,7 +1008,7 @@ class nr extends p {
|
|
|
1008
1008
|
return e.setMonth((n - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
|
-
class
|
|
1011
|
+
class or extends p {
|
|
1012
1012
|
constructor() {
|
|
1013
1013
|
super(...arguments);
|
|
1014
1014
|
s(this, "priority", 120);
|
|
@@ -1070,7 +1070,7 @@ class ar extends p {
|
|
|
1070
1070
|
return e.setMonth((n - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
1071
1071
|
}
|
|
1072
1072
|
}
|
|
1073
|
-
class
|
|
1073
|
+
class ar extends p {
|
|
1074
1074
|
constructor() {
|
|
1075
1075
|
super(...arguments);
|
|
1076
1076
|
s(this, "incompatibleTokens", [
|
|
@@ -1091,21 +1091,21 @@ class or extends p {
|
|
|
1091
1091
|
s(this, "priority", 110);
|
|
1092
1092
|
}
|
|
1093
1093
|
parse(e, t, n) {
|
|
1094
|
-
const
|
|
1094
|
+
const a = (l) => l - 1;
|
|
1095
1095
|
switch (t) {
|
|
1096
1096
|
case "M":
|
|
1097
1097
|
return k(
|
|
1098
1098
|
x(g.month, e),
|
|
1099
|
-
|
|
1099
|
+
a
|
|
1100
1100
|
);
|
|
1101
1101
|
case "MM":
|
|
1102
|
-
return k(w(2, e),
|
|
1102
|
+
return k(w(2, e), a);
|
|
1103
1103
|
case "Mo":
|
|
1104
1104
|
return k(
|
|
1105
1105
|
n.ordinalNumber(e, {
|
|
1106
1106
|
unit: "month"
|
|
1107
1107
|
}),
|
|
1108
|
-
|
|
1108
|
+
a
|
|
1109
1109
|
);
|
|
1110
1110
|
case "MMM":
|
|
1111
1111
|
return n.month(e, {
|
|
@@ -1153,21 +1153,21 @@ class ir extends p {
|
|
|
1153
1153
|
]);
|
|
1154
1154
|
}
|
|
1155
1155
|
parse(e, t, n) {
|
|
1156
|
-
const
|
|
1156
|
+
const a = (l) => l - 1;
|
|
1157
1157
|
switch (t) {
|
|
1158
1158
|
case "L":
|
|
1159
1159
|
return k(
|
|
1160
1160
|
x(g.month, e),
|
|
1161
|
-
|
|
1161
|
+
a
|
|
1162
1162
|
);
|
|
1163
1163
|
case "LL":
|
|
1164
|
-
return k(w(2, e),
|
|
1164
|
+
return k(w(2, e), a);
|
|
1165
1165
|
case "Lo":
|
|
1166
1166
|
return k(
|
|
1167
1167
|
n.ordinalNumber(e, {
|
|
1168
1168
|
unit: "month"
|
|
1169
1169
|
}),
|
|
1170
|
-
|
|
1170
|
+
a
|
|
1171
1171
|
);
|
|
1172
1172
|
case "LLL":
|
|
1173
1173
|
return n.month(e, {
|
|
@@ -1194,8 +1194,8 @@ class ir extends p {
|
|
|
1194
1194
|
return e.setMonth(n, 1), e.setHours(0, 0, 0, 0), e;
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
|
-
function dr(
|
|
1198
|
-
const t = j(
|
|
1197
|
+
function dr(o, r, e) {
|
|
1198
|
+
const t = j(o, e == null ? void 0 : e.in), n = At(t, e) - r;
|
|
1199
1199
|
return t.setDate(t.getDate() - n * 7), j(t, e == null ? void 0 : e.in);
|
|
1200
1200
|
}
|
|
1201
1201
|
class lr extends p {
|
|
@@ -1231,12 +1231,12 @@ class lr extends p {
|
|
|
1231
1231
|
validate(e, t) {
|
|
1232
1232
|
return t >= 1 && t <= 53;
|
|
1233
1233
|
}
|
|
1234
|
-
set(e, t, n,
|
|
1235
|
-
return O(dr(e, n,
|
|
1234
|
+
set(e, t, n, a) {
|
|
1235
|
+
return O(dr(e, n, a), a);
|
|
1236
1236
|
}
|
|
1237
1237
|
}
|
|
1238
|
-
function sr(
|
|
1239
|
-
const t = j(
|
|
1238
|
+
function sr(o, r, e) {
|
|
1239
|
+
const t = j(o, e == null ? void 0 : e.in), n = Yt(t, e) - r;
|
|
1240
1240
|
return t.setDate(t.getDate() - n * 7), t;
|
|
1241
1241
|
}
|
|
1242
1242
|
class ur extends p {
|
|
@@ -1322,8 +1322,8 @@ class mr extends p {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
}
|
|
1324
1324
|
validate(e, t) {
|
|
1325
|
-
const n = e.getFullYear(),
|
|
1326
|
-
return
|
|
1325
|
+
const n = e.getFullYear(), a = Pe(n), l = e.getMonth();
|
|
1326
|
+
return a ? t >= 1 && t <= fr[l] : t >= 1 && t <= cr[l];
|
|
1327
1327
|
}
|
|
1328
1328
|
set(e, t, n) {
|
|
1329
1329
|
return e.setDate(n), e.setHours(0, 0, 0, 0), e;
|
|
@@ -1371,10 +1371,10 @@ class hr extends p {
|
|
|
1371
1371
|
return e.setMonth(0, n), e.setHours(0, 0, 0, 0), e;
|
|
1372
1372
|
}
|
|
1373
1373
|
}
|
|
1374
|
-
function ee(
|
|
1374
|
+
function ee(o, r, e) {
|
|
1375
1375
|
var c, N, F, E;
|
|
1376
|
-
const t = H(), n = (e == null ? void 0 : e.weekStartsOn) ?? ((N = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : N.weekStartsOn) ?? t.weekStartsOn ?? ((E = (F = t.locale) == null ? void 0 : F.options) == null ? void 0 : E.weekStartsOn) ?? 0,
|
|
1377
|
-
return ge(
|
|
1376
|
+
const t = H(), n = (e == null ? void 0 : e.weekStartsOn) ?? ((N = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : N.weekStartsOn) ?? t.weekStartsOn ?? ((E = (F = t.locale) == null ? void 0 : F.options) == null ? void 0 : E.weekStartsOn) ?? 0, a = j(o, e == null ? void 0 : e.in), l = a.getDay(), f = (r % 7 + 7) % 7, m = 7 - n, b = r < 0 || r > 6 ? r - (l + m) % 7 : (f + m) % 7 - (l + m) % 7;
|
|
1377
|
+
return ge(a, b, e);
|
|
1378
1378
|
}
|
|
1379
1379
|
class pr extends p {
|
|
1380
1380
|
constructor() {
|
|
@@ -1409,8 +1409,8 @@ class pr extends p {
|
|
|
1409
1409
|
validate(e, t) {
|
|
1410
1410
|
return t >= 0 && t <= 6;
|
|
1411
1411
|
}
|
|
1412
|
-
set(e, t, n,
|
|
1413
|
-
return e = ee(e, n,
|
|
1412
|
+
set(e, t, n, a) {
|
|
1413
|
+
return e = ee(e, n, a), e.setHours(0, 0, 0, 0), e;
|
|
1414
1414
|
}
|
|
1415
1415
|
}
|
|
1416
1416
|
class xr extends p {
|
|
@@ -1435,10 +1435,10 @@ class xr extends p {
|
|
|
1435
1435
|
"T"
|
|
1436
1436
|
]);
|
|
1437
1437
|
}
|
|
1438
|
-
parse(e, t, n,
|
|
1438
|
+
parse(e, t, n, a) {
|
|
1439
1439
|
const l = (u) => {
|
|
1440
1440
|
const f = Math.floor((u - 1) / 7) * 7;
|
|
1441
|
-
return (u +
|
|
1441
|
+
return (u + a.weekStartsOn + 6) % 7 + f;
|
|
1442
1442
|
};
|
|
1443
1443
|
switch (t) {
|
|
1444
1444
|
case "e":
|
|
@@ -1474,8 +1474,8 @@ class xr extends p {
|
|
|
1474
1474
|
validate(e, t) {
|
|
1475
1475
|
return t >= 0 && t <= 6;
|
|
1476
1476
|
}
|
|
1477
|
-
set(e, t, n,
|
|
1478
|
-
return e = ee(e, n,
|
|
1477
|
+
set(e, t, n, a) {
|
|
1478
|
+
return e = ee(e, n, a), e.setHours(0, 0, 0, 0), e;
|
|
1479
1479
|
}
|
|
1480
1480
|
}
|
|
1481
1481
|
class br extends p {
|
|
@@ -1500,10 +1500,10 @@ class br extends p {
|
|
|
1500
1500
|
"T"
|
|
1501
1501
|
]);
|
|
1502
1502
|
}
|
|
1503
|
-
parse(e, t, n,
|
|
1503
|
+
parse(e, t, n, a) {
|
|
1504
1504
|
const l = (u) => {
|
|
1505
1505
|
const f = Math.floor((u - 1) / 7) * 7;
|
|
1506
|
-
return (u +
|
|
1506
|
+
return (u + a.weekStartsOn + 6) % 7 + f;
|
|
1507
1507
|
};
|
|
1508
1508
|
switch (t) {
|
|
1509
1509
|
case "c":
|
|
@@ -1539,13 +1539,13 @@ class br extends p {
|
|
|
1539
1539
|
validate(e, t) {
|
|
1540
1540
|
return t >= 0 && t <= 6;
|
|
1541
1541
|
}
|
|
1542
|
-
set(e, t, n,
|
|
1543
|
-
return e = ee(e, n,
|
|
1542
|
+
set(e, t, n, a) {
|
|
1543
|
+
return e = ee(e, n, a), e.setHours(0, 0, 0, 0), e;
|
|
1544
1544
|
}
|
|
1545
1545
|
}
|
|
1546
|
-
function yr(
|
|
1547
|
-
const t = j(
|
|
1548
|
-
return ge(t,
|
|
1546
|
+
function yr(o, r, e) {
|
|
1547
|
+
const t = j(o, e == null ? void 0 : e.in), n = $t(t, e), a = r - n;
|
|
1548
|
+
return ge(t, a, e);
|
|
1549
1549
|
}
|
|
1550
1550
|
class wr extends p {
|
|
1551
1551
|
constructor() {
|
|
@@ -1570,7 +1570,7 @@ class wr extends p {
|
|
|
1570
1570
|
]);
|
|
1571
1571
|
}
|
|
1572
1572
|
parse(e, t, n) {
|
|
1573
|
-
const
|
|
1573
|
+
const a = (l) => l === 0 ? 7 : l;
|
|
1574
1574
|
switch (t) {
|
|
1575
1575
|
case "i":
|
|
1576
1576
|
case "ii":
|
|
@@ -1589,7 +1589,7 @@ class wr extends p {
|
|
|
1589
1589
|
width: "narrow",
|
|
1590
1590
|
context: "formatting"
|
|
1591
1591
|
}),
|
|
1592
|
-
|
|
1592
|
+
a
|
|
1593
1593
|
);
|
|
1594
1594
|
case "iiiii":
|
|
1595
1595
|
return k(
|
|
@@ -1597,7 +1597,7 @@ class wr extends p {
|
|
|
1597
1597
|
width: "narrow",
|
|
1598
1598
|
context: "formatting"
|
|
1599
1599
|
}),
|
|
1600
|
-
|
|
1600
|
+
a
|
|
1601
1601
|
);
|
|
1602
1602
|
case "iiiiii":
|
|
1603
1603
|
return k(
|
|
@@ -1608,7 +1608,7 @@ class wr extends p {
|
|
|
1608
1608
|
width: "narrow",
|
|
1609
1609
|
context: "formatting"
|
|
1610
1610
|
}),
|
|
1611
|
-
|
|
1611
|
+
a
|
|
1612
1612
|
);
|
|
1613
1613
|
case "iiii":
|
|
1614
1614
|
default:
|
|
@@ -1626,7 +1626,7 @@ class wr extends p {
|
|
|
1626
1626
|
width: "narrow",
|
|
1627
1627
|
context: "formatting"
|
|
1628
1628
|
}),
|
|
1629
|
-
|
|
1629
|
+
a
|
|
1630
1630
|
);
|
|
1631
1631
|
}
|
|
1632
1632
|
}
|
|
@@ -1780,8 +1780,8 @@ class jr extends p {
|
|
|
1780
1780
|
return t >= 1 && t <= 12;
|
|
1781
1781
|
}
|
|
1782
1782
|
set(e, t, n) {
|
|
1783
|
-
const
|
|
1784
|
-
return
|
|
1783
|
+
const a = e.getHours() >= 12;
|
|
1784
|
+
return a && n < 12 ? e.setHours(n + 12, 0, 0, 0) : !a && n === 12 ? e.setHours(0, 0, 0, 0) : e.setHours(n, 0, 0, 0), e;
|
|
1785
1785
|
}
|
|
1786
1786
|
}
|
|
1787
1787
|
class Dr extends p {
|
|
@@ -1850,8 +1850,8 @@ class Nr extends p {
|
|
|
1850
1850
|
return t >= 1 && t <= 24;
|
|
1851
1851
|
}
|
|
1852
1852
|
set(e, t, n) {
|
|
1853
|
-
const
|
|
1854
|
-
return e.setHours(
|
|
1853
|
+
const a = n <= 24 ? n % 24 : n;
|
|
1854
|
+
return e.setHours(a, 0, 0, 0), e;
|
|
1855
1855
|
}
|
|
1856
1856
|
}
|
|
1857
1857
|
class Pr extends p {
|
|
@@ -1907,7 +1907,7 @@ class Mr extends p {
|
|
|
1907
1907
|
s(this, "incompatibleTokens", ["t", "T"]);
|
|
1908
1908
|
}
|
|
1909
1909
|
parse(e, t) {
|
|
1910
|
-
const n = (
|
|
1910
|
+
const n = (a) => Math.trunc(a * Math.pow(10, -t.length + 3));
|
|
1911
1911
|
return k(w(t.length, e), n);
|
|
1912
1912
|
}
|
|
1913
1913
|
set(e, t, n) {
|
|
@@ -2021,8 +2021,8 @@ const Fr = {
|
|
|
2021
2021
|
R: new tr(),
|
|
2022
2022
|
u: new rr(),
|
|
2023
2023
|
Q: new nr(),
|
|
2024
|
-
q: new
|
|
2025
|
-
M: new
|
|
2024
|
+
q: new or(),
|
|
2025
|
+
M: new ar(),
|
|
2026
2026
|
L: new ir(),
|
|
2027
2027
|
w: new lr(),
|
|
2028
2028
|
I: new ur(),
|
|
@@ -2047,11 +2047,11 @@ const Fr = {
|
|
|
2047
2047
|
t: new Cr(),
|
|
2048
2048
|
T: new Or()
|
|
2049
2049
|
}, Yr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Wr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ar = /^'([^]*?)'?$/, Lr = /''/g, Br = /\S/, Hr = /[a-zA-Z]/;
|
|
2050
|
-
function _e(
|
|
2051
|
-
var re, ne,
|
|
2052
|
-
const n = () => v(e, NaN),
|
|
2050
|
+
function _e(o, r, e, t) {
|
|
2051
|
+
var re, ne, oe, ae;
|
|
2052
|
+
const n = () => v(e, NaN), a = Qt(), l = a.locale ?? Ft, u = a.firstWeekContainsDate ?? ((ne = (re = a.locale) == null ? void 0 : re.options) == null ? void 0 : ne.firstWeekContainsDate) ?? 1, f = a.weekStartsOn ?? ((ae = (oe = a.locale) == null ? void 0 : oe.options) == null ? void 0 : ae.weekStartsOn) ?? 0;
|
|
2053
2053
|
if (!r)
|
|
2054
|
-
return
|
|
2054
|
+
return o ? n() : j(e, t == null ? void 0 : t.in);
|
|
2055
2055
|
const m = {
|
|
2056
2056
|
firstWeekContainsDate: u,
|
|
2057
2057
|
weekStartsOn: f,
|
|
@@ -2065,7 +2065,7 @@ function _e(a, r, e, t) {
|
|
|
2065
2065
|
return h;
|
|
2066
2066
|
}).join("").match(Yr), N = [];
|
|
2067
2067
|
for (let h of c) {
|
|
2068
|
-
qt(h) && fe(h, r,
|
|
2068
|
+
qt(h) && fe(h, r, o), zt(h) && fe(h, r, o);
|
|
2069
2069
|
const y = h[0], P = Fr[y];
|
|
2070
2070
|
if (P) {
|
|
2071
2071
|
const { incompatibleTokens: ie } = P;
|
|
@@ -2083,26 +2083,26 @@ function _e(a, r, e, t) {
|
|
|
2083
2083
|
);
|
|
2084
2084
|
N.push({ token: y, fullToken: h });
|
|
2085
2085
|
const U = P.run(
|
|
2086
|
-
|
|
2086
|
+
o,
|
|
2087
2087
|
h,
|
|
2088
2088
|
l.match,
|
|
2089
2089
|
m
|
|
2090
2090
|
);
|
|
2091
2091
|
if (!U)
|
|
2092
2092
|
return n();
|
|
2093
|
-
b.push(U.setter),
|
|
2093
|
+
b.push(U.setter), o = U.rest;
|
|
2094
2094
|
} else {
|
|
2095
2095
|
if (y.match(Hr))
|
|
2096
2096
|
throw new RangeError(
|
|
2097
2097
|
"Format string contains an unescaped latin alphabet character `" + y + "`"
|
|
2098
2098
|
);
|
|
2099
|
-
if (h === "''" ? h = "'" : y === "'" && (h = Rr(h)),
|
|
2100
|
-
|
|
2099
|
+
if (h === "''" ? h = "'" : y === "'" && (h = Rr(h)), o.indexOf(h) === 0)
|
|
2100
|
+
o = o.slice(h.length);
|
|
2101
2101
|
else
|
|
2102
2102
|
return n();
|
|
2103
2103
|
}
|
|
2104
2104
|
}
|
|
2105
|
-
if (
|
|
2105
|
+
if (o.length > 0 && Br.test(o))
|
|
2106
2106
|
return n();
|
|
2107
2107
|
const F = b.map((h) => h.priority).sort((h, y) => y - h).filter((h, y, P) => P.indexOf(h) === y).map(
|
|
2108
2108
|
(h) => b.filter((y) => y.priority === h).sort((y, P) => P.subPriority - y.subPriority)
|
|
@@ -2118,10 +2118,10 @@ function _e(a, r, e, t) {
|
|
|
2118
2118
|
}
|
|
2119
2119
|
return E;
|
|
2120
2120
|
}
|
|
2121
|
-
function Rr(
|
|
2122
|
-
return
|
|
2121
|
+
function Rr(o) {
|
|
2122
|
+
return o.match(Ar)[1].replace(Lr, "'");
|
|
2123
2123
|
}
|
|
2124
|
-
const En = (
|
|
2124
|
+
const En = (o, r = "dd.MM.yyyy") => _e(o, r, /* @__PURE__ */ new Date()), Me = ({ children: o, className: r, ...e }) => /* @__PURE__ */ i.jsx("section", { className: d("pb-16 desktop:pb-20", r), ...e, children: o }), Y = ({ children: o, offset: r = !0, className: e, ...t }) => /* @__PURE__ */ i.jsx("div", { className: d("m-auto w-full max-w-[636px] desktop:max-w-[1140px]", { "mobile:px-4": r }, e), ...t, children: o }), zr = D("grid", {
|
|
2125
2125
|
variants: {
|
|
2126
2126
|
columnCount: {
|
|
2127
2127
|
twoColumns: "grid-cols-[repeat(2,minmax(172px,_1fr))] desktop:grid-cols-[repeat(2,minmax(172px,_1fr))]",
|
|
@@ -2193,33 +2193,33 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2193
2193
|
}
|
|
2194
2194
|
]
|
|
2195
2195
|
}), Cn = ({
|
|
2196
|
-
headTitle:
|
|
2196
|
+
headTitle: o,
|
|
2197
2197
|
tableRows: r,
|
|
2198
2198
|
tableHead: e,
|
|
2199
2199
|
additionalText: t,
|
|
2200
2200
|
columnCount: n,
|
|
2201
|
-
classes:
|
|
2201
|
+
classes: a
|
|
2202
2202
|
}) => {
|
|
2203
2203
|
const l = e && e.length > 0 ? "exist" : "notExist";
|
|
2204
|
-
return /* @__PURE__ */ i.jsx(Y, { children: /* @__PURE__ */ i.jsxs("div", { className: d("flex flex-col",
|
|
2205
|
-
/* @__PURE__ */ i.jsx(A, { as: "h3", className: d("mob-title-bold-m pb-6 desktop:desk-title-bold-s",
|
|
2206
|
-
/* @__PURE__ */ i.jsxs("div", { className: d(Vr({ columnCount: n }),
|
|
2207
|
-
/* @__PURE__ */ i.jsx("ul", { className: d(zr({ columnCount: n }),
|
|
2204
|
+
return /* @__PURE__ */ i.jsx(Y, { children: /* @__PURE__ */ i.jsxs("div", { className: d("flex flex-col", a == null ? void 0 : a.tableRootWrapper), children: [
|
|
2205
|
+
/* @__PURE__ */ i.jsx(A, { as: "h3", className: d("mob-title-bold-m pb-6 desktop:desk-title-bold-s", a == null ? void 0 : a.tableHeading), children: o }),
|
|
2206
|
+
/* @__PURE__ */ i.jsxs("div", { className: d(Vr({ columnCount: n }), a == null ? void 0 : a.tableBody), children: [
|
|
2207
|
+
/* @__PURE__ */ i.jsx("ul", { className: d(zr({ columnCount: n }), a == null ? void 0 : a.tableTitlesContainer), children: e == null ? void 0 : e.map((u) => /* @__PURE__ */ i.jsx(
|
|
2208
2208
|
"li",
|
|
2209
2209
|
{
|
|
2210
2210
|
className: d(
|
|
2211
2211
|
"mob-body-regular-l border-b border-warm-grey-200 py-4 desktop:desk-body-regular-l",
|
|
2212
|
-
|
|
2212
|
+
a == null ? void 0 : a.tableTitleRow
|
|
2213
2213
|
),
|
|
2214
2214
|
children: u
|
|
2215
2215
|
},
|
|
2216
2216
|
u
|
|
2217
2217
|
)) }),
|
|
2218
|
-
/* @__PURE__ */ i.jsx("ul", { className: d("mb-4 flex flex-col",
|
|
2218
|
+
/* @__PURE__ */ i.jsx("ul", { className: d("mb-4 flex flex-col", a == null ? void 0 : a.tableBodyContainer), children: r.map((u, f) => /* @__PURE__ */ i.jsx("li", { className: d(qr({ columnCount: n, titlesExist: l }), a == null ? void 0 : a.tableBodyRow), children: u.map((m, b) => /* @__PURE__ */ i.jsx("p", { className: d(Qr({ titlesExist: l, columnCount: n }), a == null ? void 0 : a.tableBodyCeil), children: m.text }, b)) }, f)) })
|
|
2219
2219
|
] }),
|
|
2220
|
-
/* @__PURE__ */ i.jsx("p", { className: d("mob-body-regular-m desktop:desk-body-regular-l",
|
|
2220
|
+
/* @__PURE__ */ i.jsx("p", { className: d("mob-body-regular-m desktop:desk-body-regular-l", a == null ? void 0 : a.tableAdditionalText), children: t })
|
|
2221
2221
|
] }) });
|
|
2222
|
-
}, On = ({ linksList:
|
|
2222
|
+
}, On = ({ linksList: o }) => /* @__PURE__ */ i.jsx("div", { "aria-label": "Breadcrumb", className: "flex max-w-[840px] items-center gap-2", children: o.map((r) => /* @__PURE__ */ i.jsx(i.Fragment, { children: "path" in r ? /* @__PURE__ */ i.jsxs(
|
|
2223
2223
|
"div",
|
|
2224
2224
|
{
|
|
2225
2225
|
className: d(
|
|
@@ -2249,8 +2249,8 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2249
2249
|
)
|
|
2250
2250
|
]
|
|
2251
2251
|
}
|
|
2252
|
-
) : /* @__PURE__ */ i.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: r.label }) })) }), $r = (
|
|
2253
|
-
switch (
|
|
2252
|
+
) : /* @__PURE__ */ i.jsx("div", { "aria-current": "page", className: "desk-body-regular-m text-color-blue-grey-600", children: r.label }) })) }), $r = (o) => {
|
|
2253
|
+
switch (o) {
|
|
2254
2254
|
case "ghost":
|
|
2255
2255
|
case "secondary":
|
|
2256
2256
|
return "secondary";
|
|
@@ -2258,7 +2258,7 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2258
2258
|
case "negative":
|
|
2259
2259
|
return "primary";
|
|
2260
2260
|
default:
|
|
2261
|
-
return
|
|
2261
|
+
return o;
|
|
2262
2262
|
}
|
|
2263
2263
|
}, Gr = D(
|
|
2264
2264
|
"relative flex items-center justify-center gap-4 cursor-pointer rounded-sm w-max px-4 outline-offset-4 outline-transparent outline-2 desk-body-regular-l transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
|
|
@@ -2320,12 +2320,12 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2320
2320
|
}
|
|
2321
2321
|
), Q = ye(
|
|
2322
2322
|
({
|
|
2323
|
-
intent:
|
|
2323
|
+
intent: o,
|
|
2324
2324
|
size: r,
|
|
2325
2325
|
className: e,
|
|
2326
2326
|
children: t,
|
|
2327
2327
|
type: n = "button",
|
|
2328
|
-
iconLeft:
|
|
2328
|
+
iconLeft: a,
|
|
2329
2329
|
iconRight: l,
|
|
2330
2330
|
disabled: u = !1,
|
|
2331
2331
|
isLoading: f = !1,
|
|
@@ -2338,10 +2338,10 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2338
2338
|
ref: N,
|
|
2339
2339
|
type: n,
|
|
2340
2340
|
disabled: u || f,
|
|
2341
|
-
className: d(Gr({ intent:
|
|
2341
|
+
className: d(Gr({ intent: o, size: r, textFormat: b, isLoading: f, isFull: m }), e),
|
|
2342
2342
|
...c,
|
|
2343
|
-
children: f ? /* @__PURE__ */ i.jsx($e, { size: "sm", intent: $r(
|
|
2344
|
-
|
|
2343
|
+
children: f ? /* @__PURE__ */ i.jsx($e, { size: "sm", intent: $r(o) }) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
2344
|
+
a && /* @__PURE__ */ i.jsx("span", { className: "flex size-5 items-center justify-center", children: a }),
|
|
2345
2345
|
t,
|
|
2346
2346
|
l && /* @__PURE__ */ i.jsx("span", { className: "flex size-5 items-center justify-center", children: l })
|
|
2347
2347
|
] })
|
|
@@ -2368,7 +2368,7 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2368
2368
|
}
|
|
2369
2369
|
}
|
|
2370
2370
|
), Fn = ye(
|
|
2371
|
-
({ size:
|
|
2371
|
+
({ size: o, intent: r, children: e, classes: t, type: n = "button", ...a }, l) => /* @__PURE__ */ i.jsx("button", { ref: l, type: n, className: d(Xr({ intent: r, size: o }), t == null ? void 0 : t.button), ...a, children: /* @__PURE__ */ i.jsx("span", { className: d(t == null ? void 0 : t.icon), children: e }) })
|
|
2372
2372
|
), Ur = D(
|
|
2373
2373
|
"group underline underline-offset-4 outline-none p-[2px] rounded-sm border border-solid border-transparent",
|
|
2374
2374
|
{
|
|
@@ -2413,15 +2413,15 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2413
2413
|
disabled: !1
|
|
2414
2414
|
}
|
|
2415
2415
|
}), Yn = ({
|
|
2416
|
-
Component:
|
|
2416
|
+
Component: o = "a",
|
|
2417
2417
|
intent: r,
|
|
2418
2418
|
children: e,
|
|
2419
2419
|
withIcon: t,
|
|
2420
2420
|
disabled: n,
|
|
2421
|
-
size:
|
|
2421
|
+
size: a,
|
|
2422
2422
|
icon: l = "arrows/arrowLink",
|
|
2423
2423
|
...u
|
|
2424
|
-
}) => /* @__PURE__ */ i.jsxs(
|
|
2424
|
+
}) => /* @__PURE__ */ i.jsxs(o, { className: d(Ur({ intent: r, withIcon: t, disabled: n, size: a })), ...u, children: [
|
|
2425
2425
|
e,
|
|
2426
2426
|
t && /* @__PURE__ */ i.jsx(T, { name: l, className: d(Zr({ intent: r, disabled: n })) })
|
|
2427
2427
|
] }), Jr = D("size-8 transition-colors", {
|
|
@@ -2437,7 +2437,7 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2437
2437
|
}), Kr = {
|
|
2438
2438
|
filled: "files/documentFilled",
|
|
2439
2439
|
outline: "files/documentOutline"
|
|
2440
|
-
}, Wn = ({ text:
|
|
2440
|
+
}, Wn = ({ text: o, size: r, sizeType: e, href: t, intent: n = "outline" }) => /* @__PURE__ */ i.jsxs(
|
|
2441
2441
|
"a",
|
|
2442
2442
|
{
|
|
2443
2443
|
href: t,
|
|
@@ -2450,7 +2450,7 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2450
2450
|
children: [
|
|
2451
2451
|
/* @__PURE__ */ i.jsx(T, { name: Kr[n], className: d(Jr({ intent: n })) }),
|
|
2452
2452
|
/* @__PURE__ */ i.jsxs("div", { className: d("flex flex-1 flex-col"), children: [
|
|
2453
|
-
/* @__PURE__ */ i.jsx("p", { className: d("desk-body-medium-l text-color-dark"), children:
|
|
2453
|
+
/* @__PURE__ */ i.jsx("p", { className: d("desk-body-medium-l text-color-dark"), children: o }),
|
|
2454
2454
|
/* @__PURE__ */ i.jsxs("div", { className: d("desk-body-regular-m text-color-disabled"), children: [
|
|
2455
2455
|
r,
|
|
2456
2456
|
" ",
|
|
@@ -2459,11 +2459,18 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2459
2459
|
] })
|
|
2460
2460
|
]
|
|
2461
2461
|
}
|
|
2462
|
-
), Ie = ({ phone:
|
|
2463
|
-
/* @__PURE__ */ i.jsx(
|
|
2462
|
+
), Ie = ({ phone: o, text: r, classes: e }) => /* @__PURE__ */ i.jsxs("div", { className: d("flex w-max flex-col", e == null ? void 0 : e.wrapper), children: [
|
|
2463
|
+
/* @__PURE__ */ i.jsx(
|
|
2464
|
+
"a",
|
|
2465
|
+
{
|
|
2466
|
+
href: `tel:${o}`,
|
|
2467
|
+
className: d("mob-body-medium-l ml-auto text-color-dark desktop:desk-body-medium-l", e == null ? void 0 : e.link),
|
|
2468
|
+
children: o
|
|
2469
|
+
}
|
|
2470
|
+
),
|
|
2464
2471
|
/* @__PURE__ */ i.jsx("p", { className: d("desk-body-regular-l text-color-tetriary", e == null ? void 0 : e.text), children: r })
|
|
2465
|
-
] }), An = ({ topContent:
|
|
2466
|
-
|
|
2472
|
+
] }), An = ({ topContent: o, bottomContent: r, progress: e, maxPercent: t = 100, classes: n }) => /* @__PURE__ */ i.jsxs("div", { className: d("flex w-full flex-col", n == null ? void 0 : n.wrapper), children: [
|
|
2473
|
+
o && /* @__PURE__ */ i.jsx("div", { className: d("mb-2 flex justify-between gap-5", n == null ? void 0 : n.topContent), children: o }),
|
|
2467
2474
|
/* @__PURE__ */ i.jsxs("div", { className: d("relative h-2 w-[328xp] rounded-md bg-color-blue-grey-100 desktop:w-[524px]", n == null ? void 0 : n.progressBar), children: [
|
|
2468
2475
|
/* @__PURE__ */ i.jsx(
|
|
2469
2476
|
"div",
|
|
@@ -2484,7 +2491,7 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2484
2491
|
)
|
|
2485
2492
|
] }),
|
|
2486
2493
|
r && /* @__PURE__ */ i.jsx("div", { className: d("mt-2 flex justify-between gap-5", n == null ? void 0 : n.bottomContent), children: r })
|
|
2487
|
-
] }), Ln = ({ className:
|
|
2494
|
+
] }), Ln = ({ className: o }) => /* @__PURE__ */ i.jsx("div", { className: d("skeleton-apply h-full w-full", o) }), Sr = {
|
|
2488
2495
|
main: /* @__PURE__ */ i.jsx(T, { name: "brandLogos/logoMain" }),
|
|
2489
2496
|
white: /* @__PURE__ */ i.jsx(T, { name: "brandLogos/logoWhite" }),
|
|
2490
2497
|
gray: /* @__PURE__ */ i.jsx(T, { name: "brandLogos/logoGray" }),
|
|
@@ -2502,19 +2509,19 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2502
2509
|
INVALID_VALUE: "Поле заполнено некорректно",
|
|
2503
2510
|
INVALID_DATE: "Введите корректную дату",
|
|
2504
2511
|
FUTURE_DATE_NOT_ALLOWED: "Нельзя выбрать дату позже текущей"
|
|
2505
|
-
}, rn = (
|
|
2506
|
-
const r =
|
|
2512
|
+
}, rn = (o) => {
|
|
2513
|
+
const r = o.trim().replace(/\s+/g, " ").split(" "), [e, t, ...n] = r, a = n == null ? void 0 : n.join(" ");
|
|
2507
2514
|
return {
|
|
2508
2515
|
surname: e,
|
|
2509
2516
|
name: t,
|
|
2510
|
-
patronymic:
|
|
2517
|
+
patronymic: a
|
|
2511
2518
|
};
|
|
2512
|
-
}, Bn = _.string({ invalid_type_error: "Обязательно к заполнению", required_error: "Обязательно к заполнению" }).superRefine((
|
|
2513
|
-
en.test(
|
|
2519
|
+
}, Bn = _.string({ invalid_type_error: "Обязательно к заполнению", required_error: "Обязательно к заполнению" }).superRefine((o, r) => {
|
|
2520
|
+
en.test(o) || r.addIssue({
|
|
2514
2521
|
code: _.ZodIssueCode.custom,
|
|
2515
2522
|
message: "Должна быть только кириллица"
|
|
2516
2523
|
});
|
|
2517
|
-
const { surname: e, name: t, patronymic: n } = rn(
|
|
2524
|
+
const { surname: e, name: t, patronymic: n } = rn(o);
|
|
2518
2525
|
(!e || !t) && r.addIssue({
|
|
2519
2526
|
code: _.ZodIssueCode.custom,
|
|
2520
2527
|
message: "Введите имя и фамилию"
|
|
@@ -2528,15 +2535,15 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2528
2535
|
code: _.ZodIssueCode.custom,
|
|
2529
2536
|
message: "Неверно введено отчество"
|
|
2530
2537
|
}));
|
|
2531
|
-
}), Hn = _.string().length(10, { message: q.INVALID_DATE }).superRefine((
|
|
2532
|
-
const [e, t, n] = (
|
|
2538
|
+
}), Hn = _.string().length(10, { message: q.INVALID_DATE }).superRefine((o, r) => {
|
|
2539
|
+
const [e, t, n] = (o == null ? void 0 : o.split(".")) ?? "", a = _e(`${e}/${t}/${n}`, "dd/MM/yyyy", /* @__PURE__ */ new Date());
|
|
2533
2540
|
+n <= 1950 && r.addIssue({
|
|
2534
2541
|
code: _.ZodIssueCode.custom,
|
|
2535
2542
|
message: q.INVALID_DATE
|
|
2536
|
-
}), tt(
|
|
2543
|
+
}), tt(a) || r.addIssue({
|
|
2537
2544
|
code: _.ZodIssueCode.custom,
|
|
2538
2545
|
message: q.INVALID_DATE
|
|
2539
|
-
}), (/* @__PURE__ */ new Date()).getTime() < new Date(
|
|
2546
|
+
}), (/* @__PURE__ */ new Date()).getTime() < new Date(a).getTime() && r.addIssue({
|
|
2540
2547
|
code: _.ZodIssueCode.custom,
|
|
2541
2548
|
message: q.FUTURE_DATE_NOT_ALLOWED
|
|
2542
2549
|
});
|
|
@@ -2751,10 +2758,10 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2751
2758
|
}
|
|
2752
2759
|
}, Rn = void 0, zn = void 0, qn = "https://urt-web-app1:4032/v1/cache/dadata", Vn = "https://urt-web-app1:4009/constants";
|
|
2753
2760
|
var Le = {}, Be = {};
|
|
2754
|
-
(function(
|
|
2755
|
-
Object.defineProperty(
|
|
2761
|
+
(function(o) {
|
|
2762
|
+
Object.defineProperty(o, "__esModule", {
|
|
2756
2763
|
value: !0
|
|
2757
|
-
}), Object.defineProperty(
|
|
2764
|
+
}), Object.defineProperty(o, "default", {
|
|
2758
2765
|
enumerable: !0,
|
|
2759
2766
|
get: function() {
|
|
2760
2767
|
return e;
|
|
@@ -2767,21 +2774,21 @@ var Le = {}, Be = {};
|
|
|
2767
2774
|
};
|
|
2768
2775
|
}
|
|
2769
2776
|
r.withOptions = function(t, n = () => ({})) {
|
|
2770
|
-
const
|
|
2777
|
+
const a = function(l) {
|
|
2771
2778
|
return {
|
|
2772
2779
|
__options: l,
|
|
2773
2780
|
handler: t(l),
|
|
2774
2781
|
config: n(l)
|
|
2775
2782
|
};
|
|
2776
2783
|
};
|
|
2777
|
-
return
|
|
2784
|
+
return a.__isOptionsFunction = !0, a.__pluginFunction = t, a.__configFunction = n, a;
|
|
2778
2785
|
};
|
|
2779
2786
|
const e = r;
|
|
2780
2787
|
})(Be);
|
|
2781
|
-
(function(
|
|
2782
|
-
Object.defineProperty(
|
|
2788
|
+
(function(o) {
|
|
2789
|
+
Object.defineProperty(o, "__esModule", {
|
|
2783
2790
|
value: !0
|
|
2784
|
-
}), Object.defineProperty(
|
|
2791
|
+
}), Object.defineProperty(o, "default", {
|
|
2785
2792
|
enumerable: !0,
|
|
2786
2793
|
get: function() {
|
|
2787
2794
|
return t;
|
|
@@ -2797,15 +2804,15 @@ var Le = {}, Be = {};
|
|
|
2797
2804
|
})(Le);
|
|
2798
2805
|
let J = Le;
|
|
2799
2806
|
var He = (J.__esModule ? J : { default: J }).default;
|
|
2800
|
-
const X = /* @__PURE__ */ xe(He),
|
|
2801
|
-
function he(
|
|
2807
|
+
const X = /* @__PURE__ */ xe(He), on = He;
|
|
2808
|
+
function he(o) {
|
|
2802
2809
|
return Object.fromEntries(
|
|
2803
|
-
Object.entries(
|
|
2810
|
+
Object.entries(o).filter(([r]) => r !== "DEFAULT")
|
|
2804
2811
|
);
|
|
2805
2812
|
}
|
|
2806
|
-
var
|
|
2807
|
-
({ addUtilities:
|
|
2808
|
-
|
|
2813
|
+
var an = on(
|
|
2814
|
+
({ addUtilities: o, matchUtilities: r, theme: e }) => {
|
|
2815
|
+
o({
|
|
2809
2816
|
"@keyframes enter": e("keyframes.enter"),
|
|
2810
2817
|
"@keyframes exit": e("keyframes.exit"),
|
|
2811
2818
|
".animate-in": {
|
|
@@ -2881,7 +2888,7 @@ var on = an(
|
|
|
2881
2888
|
), r(
|
|
2882
2889
|
{ ease: (t) => ({ animationTimingFunction: t }) },
|
|
2883
2890
|
{ values: he(e("animationTimingFunction")) }
|
|
2884
|
-
),
|
|
2891
|
+
), o({
|
|
2885
2892
|
".running": { animationPlayState: "running" },
|
|
2886
2893
|
".paused": { animationPlayState: "paused" }
|
|
2887
2894
|
}), r(
|
|
@@ -2898,15 +2905,15 @@ var on = an(
|
|
|
2898
2905
|
{
|
|
2899
2906
|
theme: {
|
|
2900
2907
|
extend: {
|
|
2901
|
-
animationDelay: ({ theme:
|
|
2902
|
-
...
|
|
2908
|
+
animationDelay: ({ theme: o }) => ({
|
|
2909
|
+
...o("transitionDelay")
|
|
2903
2910
|
}),
|
|
2904
|
-
animationDuration: ({ theme:
|
|
2911
|
+
animationDuration: ({ theme: o }) => ({
|
|
2905
2912
|
0: "0ms",
|
|
2906
|
-
...
|
|
2913
|
+
...o("transitionDuration")
|
|
2907
2914
|
}),
|
|
2908
|
-
animationTimingFunction: ({ theme:
|
|
2909
|
-
...
|
|
2915
|
+
animationTimingFunction: ({ theme: o }) => ({
|
|
2916
|
+
...o("transitionTimingFunction")
|
|
2910
2917
|
}),
|
|
2911
2918
|
animationFillMode: {
|
|
2912
2919
|
none: "none",
|
|
@@ -2920,21 +2927,21 @@ var on = an(
|
|
|
2920
2927
|
alternate: "alternate",
|
|
2921
2928
|
"alternate-reverse": "alternate-reverse"
|
|
2922
2929
|
},
|
|
2923
|
-
animationOpacity: ({ theme:
|
|
2930
|
+
animationOpacity: ({ theme: o }) => ({
|
|
2924
2931
|
DEFAULT: 0,
|
|
2925
|
-
...
|
|
2932
|
+
...o("opacity")
|
|
2926
2933
|
}),
|
|
2927
|
-
animationTranslate: ({ theme:
|
|
2934
|
+
animationTranslate: ({ theme: o }) => ({
|
|
2928
2935
|
DEFAULT: "100%",
|
|
2929
|
-
...
|
|
2936
|
+
...o("translate")
|
|
2930
2937
|
}),
|
|
2931
|
-
animationScale: ({ theme:
|
|
2938
|
+
animationScale: ({ theme: o }) => ({
|
|
2932
2939
|
DEFAULT: 0,
|
|
2933
|
-
...
|
|
2940
|
+
...o("scale")
|
|
2934
2941
|
}),
|
|
2935
|
-
animationRotate: ({ theme:
|
|
2942
|
+
animationRotate: ({ theme: o }) => ({
|
|
2936
2943
|
DEFAULT: "30deg",
|
|
2937
|
-
...
|
|
2944
|
+
...o("rotate")
|
|
2938
2945
|
}),
|
|
2939
2946
|
animationRepeat: {
|
|
2940
2947
|
0: "0",
|
|
@@ -2959,7 +2966,7 @@ var on = an(
|
|
|
2959
2966
|
}
|
|
2960
2967
|
}
|
|
2961
2968
|
);
|
|
2962
|
-
const Re = /* @__PURE__ */ xe(
|
|
2969
|
+
const Re = /* @__PURE__ */ xe(an), Qn = {
|
|
2963
2970
|
theme: {
|
|
2964
2971
|
backgroundColor: {
|
|
2965
2972
|
color: $,
|
|
@@ -3030,11 +3037,11 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3030
3037
|
},
|
|
3031
3038
|
plugins: [
|
|
3032
3039
|
Re,
|
|
3033
|
-
X(({ addComponents:
|
|
3034
|
-
|
|
3040
|
+
X(({ addComponents: o }) => {
|
|
3041
|
+
o(Ae);
|
|
3035
3042
|
}),
|
|
3036
|
-
X(function({ matchUtilities:
|
|
3037
|
-
|
|
3043
|
+
X(function({ matchUtilities: o, theme: r }) {
|
|
3044
|
+
o(
|
|
3038
3045
|
{
|
|
3039
3046
|
"bg-deg-gradient": (e) => ({
|
|
3040
3047
|
"background-image": `linear-gradient(${e}, var(--tw-gradient-stops))`
|
|
@@ -3122,11 +3129,11 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3122
3129
|
},
|
|
3123
3130
|
plugins: [
|
|
3124
3131
|
Re,
|
|
3125
|
-
X(({ addComponents:
|
|
3126
|
-
|
|
3132
|
+
X(({ addComponents: o }) => {
|
|
3133
|
+
o(Ae);
|
|
3127
3134
|
}),
|
|
3128
|
-
X(function({ matchUtilities:
|
|
3129
|
-
|
|
3135
|
+
X(function({ matchUtilities: o, theme: r }) {
|
|
3136
|
+
o(
|
|
3130
3137
|
{
|
|
3131
3138
|
"bg-deg-gradient": (e) => ({
|
|
3132
3139
|
"background-image": `linear-gradient(${e}, var(--tw-gradient-stops))`
|
|
@@ -3138,9 +3145,9 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3138
3145
|
);
|
|
3139
3146
|
})
|
|
3140
3147
|
]
|
|
3141
|
-
}, ze = ({ buttonsConfig:
|
|
3148
|
+
}, ze = ({ buttonsConfig: o, classes: r, className: e }) => {
|
|
3142
3149
|
var n;
|
|
3143
|
-
const t = (
|
|
3150
|
+
const t = (o == null ? void 0 : o.secondary) && o.secondary.children;
|
|
3144
3151
|
return /* @__PURE__ */ i.jsxs(
|
|
3145
3152
|
"div",
|
|
3146
3153
|
{
|
|
@@ -3152,28 +3159,28 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3152
3159
|
e
|
|
3153
3160
|
),
|
|
3154
3161
|
children: [
|
|
3155
|
-
/* @__PURE__ */ i.jsx(Q, { intent: "primary", ...
|
|
3162
|
+
/* @__PURE__ */ i.jsx(Q, { intent: "primary", ...o.primary, isFull: !0, className: d("desktop:max-w-[216px]", r == null ? void 0 : r.primary), children: o.primary.children }),
|
|
3156
3163
|
t && /* @__PURE__ */ i.jsx(
|
|
3157
3164
|
Q,
|
|
3158
3165
|
{
|
|
3159
3166
|
intent: "secondary",
|
|
3160
|
-
...
|
|
3167
|
+
...o == null ? void 0 : o.secondary,
|
|
3161
3168
|
isFull: !0,
|
|
3162
3169
|
className: d("desktop:max-w-[216px]", r == null ? void 0 : r.secondary),
|
|
3163
|
-
children: (n =
|
|
3170
|
+
children: (n = o == null ? void 0 : o.secondary) == null ? void 0 : n.children
|
|
3164
3171
|
}
|
|
3165
3172
|
)
|
|
3166
3173
|
]
|
|
3167
3174
|
}
|
|
3168
3175
|
);
|
|
3169
|
-
}, qe = ({ advantagesList:
|
|
3176
|
+
}, qe = ({ advantagesList: o, classes: r }) => /* @__PURE__ */ i.jsx(
|
|
3170
3177
|
"div",
|
|
3171
3178
|
{
|
|
3172
3179
|
className: d(
|
|
3173
3180
|
"flex w-full max-w-[636px] flex-col gap-8 rounded-md bg-color-white p-6 shadow-sm desktop:w-full desktop:max-w-full desktop:flex-row desktop:items-start desktop:gap-0 desktop:p-0 desktop:py-6",
|
|
3174
3181
|
r == null ? void 0 : r.advantageWrapper
|
|
3175
3182
|
),
|
|
3176
|
-
children:
|
|
3183
|
+
children: o == null ? void 0 : o.map(({ title: e, description: t }) => /* @__PURE__ */ i.jsxs(
|
|
3177
3184
|
"div",
|
|
3178
3185
|
{
|
|
3179
3186
|
className: d(
|
|
@@ -3189,12 +3196,12 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3189
3196
|
))
|
|
3190
3197
|
}
|
|
3191
3198
|
), dn = ({
|
|
3192
|
-
headTitle:
|
|
3199
|
+
headTitle: o,
|
|
3193
3200
|
subtitle: r,
|
|
3194
3201
|
buttonsConfig: e,
|
|
3195
3202
|
advantagesList: t,
|
|
3196
3203
|
classes: n,
|
|
3197
|
-
img:
|
|
3204
|
+
img: a,
|
|
3198
3205
|
imgSets: l
|
|
3199
3206
|
}) => {
|
|
3200
3207
|
const { isDesktop: u, isMobile: f } = be(), m = /* @__PURE__ */ i.jsx(
|
|
@@ -3222,7 +3229,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3222
3229
|
"img",
|
|
3223
3230
|
{
|
|
3224
3231
|
"data-id": "banner-image",
|
|
3225
|
-
src:
|
|
3232
|
+
src: a,
|
|
3226
3233
|
alt: "Картинка баннера",
|
|
3227
3234
|
className: d("h-full w-full object-cover object-center", n == null ? void 0 : n.image)
|
|
3228
3235
|
}
|
|
@@ -3238,7 +3245,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3238
3245
|
className: d("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", n == null ? void 0 : n.textBlock),
|
|
3239
3246
|
children: [
|
|
3240
3247
|
/* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
3241
|
-
/* @__PURE__ */ i.jsx(A, { "data-id": "banner-title", as: "h1", className: d("text-color-white", n == null ? void 0 : n.title), children:
|
|
3248
|
+
/* @__PURE__ */ i.jsx(A, { "data-id": "banner-title", as: "h1", className: d("text-color-white", n == null ? void 0 : n.title), children: o }),
|
|
3242
3249
|
/* @__PURE__ */ i.jsx("p", { "data-id": "banner-subtitle", className: d("desk-body-regular-l text-color-white", n == null ? void 0 : n.subtitle), children: r })
|
|
3243
3250
|
] }),
|
|
3244
3251
|
/* @__PURE__ */ i.jsx(
|
|
@@ -3259,12 +3266,12 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3259
3266
|
f && m
|
|
3260
3267
|
] });
|
|
3261
3268
|
}, pe = ({
|
|
3262
|
-
headTitle:
|
|
3269
|
+
headTitle: o,
|
|
3263
3270
|
subtitle: r,
|
|
3264
3271
|
buttonsConfig: e,
|
|
3265
3272
|
advantagesList: t,
|
|
3266
3273
|
classes: n,
|
|
3267
|
-
img:
|
|
3274
|
+
img: a,
|
|
3268
3275
|
imgSets: l
|
|
3269
3276
|
}) => {
|
|
3270
3277
|
const { isDesktop: u, isMobile: f } = be(), m = /* @__PURE__ */ i.jsx(
|
|
@@ -3283,7 +3290,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3283
3290
|
/* @__PURE__ */ i.jsxs("div", { "data-id": "banner", className: d("flex flex-col desktop:flex-row desktop:justify-between", n == null ? void 0 : n.wrapper), children: [
|
|
3284
3291
|
/* @__PURE__ */ i.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
|
|
3285
3292
|
/* @__PURE__ */ i.jsxs("div", { "data-id": "banner-text-block", className: d("flex flex-col gap-4 pt-6 desktop:pt-0", n == null ? void 0 : n.textBlock), children: [
|
|
3286
|
-
/* @__PURE__ */ i.jsx(A, { "data-id": "banner-title", as: "h1", className: d("text-color-dark", n == null ? void 0 : n.title), children:
|
|
3293
|
+
/* @__PURE__ */ i.jsx(A, { "data-id": "banner-title", as: "h1", className: d("text-color-dark", n == null ? void 0 : n.title), children: o }),
|
|
3287
3294
|
/* @__PURE__ */ i.jsx("p", { "data-id": "banner-subtitle", className: d("desk-body-regular-l text-color-dark", n == null ? void 0 : n.subtitle), children: r })
|
|
3288
3295
|
] }),
|
|
3289
3296
|
/* @__PURE__ */ i.jsx(ze, { buttonsConfig: e, classes: n })
|
|
@@ -3300,7 +3307,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3300
3307
|
"img",
|
|
3301
3308
|
{
|
|
3302
3309
|
"data-id": "banner-image",
|
|
3303
|
-
src:
|
|
3310
|
+
src: a,
|
|
3304
3311
|
alt: "Картинка баннера",
|
|
3305
3312
|
className: d("h-full object-cover", n == null ? void 0 : n.image)
|
|
3306
3313
|
}
|
|
@@ -3313,8 +3320,8 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3313
3320
|
] }) }),
|
|
3314
3321
|
f && m
|
|
3315
3322
|
] });
|
|
3316
|
-
}, Xn = ({ bannerVariant:
|
|
3317
|
-
switch (
|
|
3323
|
+
}, Xn = ({ bannerVariant: o, ...r }) => {
|
|
3324
|
+
switch (o) {
|
|
3318
3325
|
case "separateImg":
|
|
3319
3326
|
return /* @__PURE__ */ i.jsx(pe, { ...r });
|
|
3320
3327
|
case "fullImg":
|
|
@@ -3416,7 +3423,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3416
3423
|
{ text: "Офисы и банкоматы", href: "/" }
|
|
3417
3424
|
]
|
|
3418
3425
|
}
|
|
3419
|
-
], mn = ({ socialsLinks:
|
|
3426
|
+
], mn = ({ socialsLinks: o, classes: r }) => /* @__PURE__ */ i.jsx("div", { className: d("mt-6 flex items-center gap-2", r == null ? void 0 : r.socialRoot), children: o == null ? void 0 : o.map(({ iconName: e, href: t }) => /* @__PURE__ */ i.jsx(
|
|
3420
3427
|
"a",
|
|
3421
3428
|
{
|
|
3422
3429
|
className: d("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", r == null ? void 0 : r.socialLink),
|
|
@@ -3424,7 +3431,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3424
3431
|
children: /* @__PURE__ */ i.jsx(T, { name: e, className: d("h-full w-full text-icon-white", r == null ? void 0 : r.socialIcon) })
|
|
3425
3432
|
},
|
|
3426
3433
|
t
|
|
3427
|
-
)) }), hn = ({ phones:
|
|
3434
|
+
)) }), hn = ({ phones: o, classes: r }) => /* @__PURE__ */ i.jsx("div", { className: d("flex flex-col items-end gap-4", r == null ? void 0 : r.phonesRoot), children: o == null ? void 0 : o.map(({ phone: e, text: t }) => /* @__PURE__ */ i.jsx(
|
|
3428
3435
|
Ie,
|
|
3429
3436
|
{
|
|
3430
3437
|
phone: e,
|
|
@@ -3436,12 +3443,12 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3436
3443
|
}
|
|
3437
3444
|
},
|
|
3438
3445
|
e
|
|
3439
|
-
)) }), pn = ({ navigationLinks:
|
|
3446
|
+
)) }), pn = ({ navigationLinks: o, classes: r }) => /* @__PURE__ */ i.jsx("div", { className: d("grid grid-cols-4 gap-10 border-y border-blue-grey-500 py-8 pt-8", r == null ? void 0 : r.navRoot), children: o == null ? void 0 : o.map(({ groupLabel: e, links: t }) => /* @__PURE__ */ i.jsxs("div", { className: d("flex flex-col gap-4", r == null ? void 0 : r.navGroup), children: [
|
|
3440
3447
|
/* @__PURE__ */ i.jsx("div", { className: d("desk-body-regular-m font-medium text-color-white", r == null ? void 0 : r.navLabel), children: e }),
|
|
3441
|
-
/* @__PURE__ */ i.jsx("div", { className: d("flex flex-col gap-2", r == null ? void 0 : r.navWrapper), children: t == null ? void 0 : t.map(({ text: n, href:
|
|
3448
|
+
/* @__PURE__ */ i.jsx("div", { className: d("flex flex-col gap-2", r == null ? void 0 : r.navWrapper), children: t == null ? void 0 : t.map(({ text: n, href: a }) => /* @__PURE__ */ i.jsx(
|
|
3442
3449
|
"a",
|
|
3443
3450
|
{
|
|
3444
|
-
href:
|
|
3451
|
+
href: a,
|
|
3445
3452
|
className: d(
|
|
3446
3453
|
"desk-body-regular-m cursor-pointer text-color-white transition-colors hover:text-color-footer",
|
|
3447
3454
|
r == null ? void 0 : r.navLink
|
|
@@ -3450,13 +3457,13 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3450
3457
|
},
|
|
3451
3458
|
n
|
|
3452
3459
|
)) })
|
|
3453
|
-
] }, e)) }), xn = ({ ligal:
|
|
3454
|
-
const [e, t] = z.useState(!1), [n,
|
|
3460
|
+
] }, e)) }), xn = ({ ligal: o, classes: r }) => {
|
|
3461
|
+
const [e, t] = z.useState(!1), [n, a] = z.useState(!1), l = z.useRef(null);
|
|
3455
3462
|
return z.useEffect(() => {
|
|
3456
3463
|
const u = l.current;
|
|
3457
|
-
u &&
|
|
3464
|
+
u && a(u.scrollHeight > u.clientHeight);
|
|
3458
3465
|
}, []), /* @__PURE__ */ i.jsxs("div", { className: d("mt-8 flex flex-col gap-4", r == null ? void 0 : r.ligalRoot), children: [
|
|
3459
|
-
/* @__PURE__ */ i.jsx("p", { ref: l, className: d("desk-body-regular-m text-color-footer", { "line-clamp-3": !e }, r == null ? void 0 : r.ligal), children:
|
|
3466
|
+
/* @__PURE__ */ i.jsx("p", { ref: l, className: d("desk-body-regular-m text-color-footer", { "line-clamp-3": !e }, r == null ? void 0 : r.ligal), children: o }),
|
|
3460
3467
|
n && /* @__PURE__ */ i.jsx(
|
|
3461
3468
|
"div",
|
|
3462
3469
|
{
|
|
@@ -3471,13 +3478,13 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3471
3478
|
}
|
|
3472
3479
|
)
|
|
3473
3480
|
] });
|
|
3474
|
-
}, bn = ({ text:
|
|
3475
|
-
withSocial:
|
|
3481
|
+
}, bn = ({ text: o, classes: r }) => /* @__PURE__ */ i.jsx("div", { className: d("desk-body-regular-m text-color-footer", r == null ? void 0 : r.text), children: o }), Un = ({
|
|
3482
|
+
withSocial: o = !0,
|
|
3476
3483
|
withPhones: r = !0,
|
|
3477
3484
|
withNavLinks: e = !0,
|
|
3478
3485
|
withLigal: t = !0,
|
|
3479
3486
|
withCopyright: n = !0,
|
|
3480
|
-
withSiteMap:
|
|
3487
|
+
withSiteMap: a = !0,
|
|
3481
3488
|
socialsLinks: l = cn,
|
|
3482
3489
|
phones: u = un,
|
|
3483
3490
|
navigationLinks: f = fn,
|
|
@@ -3488,7 +3495,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3488
3495
|
/* @__PURE__ */ i.jsxs("div", { className: d("mb-8 flex items-center justify-between gap-6", c == null ? void 0 : c.footerHead), children: [
|
|
3489
3496
|
/* @__PURE__ */ i.jsxs("div", { className: d(c == null ? void 0 : c.footerSocialBlock), children: [
|
|
3490
3497
|
/* @__PURE__ */ i.jsx("a", { href: "/", className: d(c == null ? void 0 : c.footerLogo), children: /* @__PURE__ */ i.jsx(T, { name: "brandLogos/logoWhite", className: "h-[32px] w-[194px]" }) }),
|
|
3491
|
-
|
|
3498
|
+
o && /* @__PURE__ */ i.jsx(mn, { socialsLinks: l, classes: c })
|
|
3492
3499
|
] }),
|
|
3493
3500
|
r && /* @__PURE__ */ i.jsx(hn, { phones: u, classes: c })
|
|
3494
3501
|
] }),
|
|
@@ -3496,7 +3503,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3496
3503
|
t && /* @__PURE__ */ i.jsx(xn, { ligal: m, classes: c }),
|
|
3497
3504
|
/* @__PURE__ */ i.jsxs("div", { className: "mt-6 flex items-start justify-between gap-6", children: [
|
|
3498
3505
|
n && /* @__PURE__ */ i.jsx(bn, { text: b, classes: c }),
|
|
3499
|
-
|
|
3506
|
+
a && /* @__PURE__ */ i.jsx(
|
|
3500
3507
|
"a",
|
|
3501
3508
|
{
|
|
3502
3509
|
href: "https://sovcombank.ru/site-map",
|
|
@@ -3507,30 +3514,30 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3507
3514
|
}
|
|
3508
3515
|
)
|
|
3509
3516
|
] })
|
|
3510
|
-
] }) }) }), yn = (
|
|
3517
|
+
] }) }) }), yn = (o) => {
|
|
3511
3518
|
var r, e, t, n;
|
|
3512
|
-
switch (
|
|
3519
|
+
switch (o.variant) {
|
|
3513
3520
|
case "withButton":
|
|
3514
|
-
return /* @__PURE__ */ i.jsx(Q, { intent: "secondary", size: "sm", className: (r =
|
|
3521
|
+
return /* @__PURE__ */ i.jsx(Q, { intent: "secondary", size: "sm", className: (r = o.classes) == null ? void 0 : r.button, children: "Оформить заявку" });
|
|
3515
3522
|
case "withPhone":
|
|
3516
|
-
const { phone:
|
|
3523
|
+
const { phone: a, phoneText: l } = o;
|
|
3517
3524
|
return /* @__PURE__ */ i.jsx(
|
|
3518
3525
|
Ie,
|
|
3519
3526
|
{
|
|
3520
|
-
phone:
|
|
3527
|
+
phone: a,
|
|
3521
3528
|
text: l,
|
|
3522
3529
|
classes: {
|
|
3523
|
-
wrapper: (e =
|
|
3524
|
-
text: (t =
|
|
3525
|
-
link: (n =
|
|
3530
|
+
wrapper: (e = o.classes) == null ? void 0 : e.phoneWrapper,
|
|
3531
|
+
text: (t = o.classes) == null ? void 0 : t.phoneText,
|
|
3532
|
+
link: (n = o.classes) == null ? void 0 : n.phoneLink
|
|
3526
3533
|
}
|
|
3527
3534
|
}
|
|
3528
3535
|
);
|
|
3529
3536
|
default:
|
|
3530
3537
|
return null;
|
|
3531
3538
|
}
|
|
3532
|
-
}, Zn = (
|
|
3533
|
-
const { logoPath: r = "/", logoType: e = "main", classes: t } =
|
|
3539
|
+
}, Zn = (o) => {
|
|
3540
|
+
const { logoPath: r = "/", logoType: e = "main", classes: t } = o;
|
|
3534
3541
|
return /* @__PURE__ */ i.jsx("header", { className: d("flex h-[72px] items-center justify-center bg-color-white", t == null ? void 0 : t.header), children: /* @__PURE__ */ i.jsx(Y, { className: d(t == null ? void 0 : t.container), children: /* @__PURE__ */ i.jsxs("div", { className: d("flex items-center justify-between gap-5", t == null ? void 0 : t.wrapper), children: [
|
|
3535
3542
|
/* @__PURE__ */ i.jsx(
|
|
3536
3543
|
"a",
|
|
@@ -3545,9 +3552,9 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3545
3552
|
children: Sr[e]
|
|
3546
3553
|
}
|
|
3547
3554
|
),
|
|
3548
|
-
yn(
|
|
3555
|
+
yn(o)
|
|
3549
3556
|
] }) }) });
|
|
3550
|
-
}, wn = ({ title:
|
|
3557
|
+
}, wn = ({ title: o, description: r, index: e, classes: t }) => /* @__PURE__ */ i.jsxs(
|
|
3551
3558
|
"div",
|
|
3552
3559
|
{
|
|
3553
3560
|
className: d(
|
|
@@ -3566,13 +3573,13 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3566
3573
|
}
|
|
3567
3574
|
),
|
|
3568
3575
|
/* @__PURE__ */ i.jsxs("div", { className: d("flex flex-col gap-4", t == null ? void 0 : t.textBlock), children: [
|
|
3569
|
-
/* @__PURE__ */ i.jsx(A, { as: "h4", className: d("text-color-dark", t == null ? void 0 : t.title), children:
|
|
3576
|
+
/* @__PURE__ */ i.jsx(A, { as: "h4", className: d("text-color-dark", t == null ? void 0 : t.title), children: o }),
|
|
3570
3577
|
/* @__PURE__ */ i.jsx("p", { className: d("desk-body-regular-l text-color-tetriary", t == null ? void 0 : t.description), children: r })
|
|
3571
3578
|
] })
|
|
3572
3579
|
]
|
|
3573
3580
|
}
|
|
3574
|
-
), Jn = ({ heading:
|
|
3575
|
-
/* @__PURE__ */ i.jsx(A, { as: "h2", className: d("text-color-dark", e == null ? void 0 : e.headline), children:
|
|
3581
|
+
), Jn = ({ heading: o, stepsList: r, classes: e }) => /* @__PURE__ */ i.jsx(Me, { children: /* @__PURE__ */ i.jsx(Y, { children: /* @__PURE__ */ i.jsxs("div", { className: d("flex flex-col gap-12", e == null ? void 0 : e.root), children: [
|
|
3582
|
+
/* @__PURE__ */ i.jsx(A, { as: "h2", className: d("text-color-dark", e == null ? void 0 : e.headline), children: o }),
|
|
3576
3583
|
/* @__PURE__ */ i.jsx(
|
|
3577
3584
|
"div",
|
|
3578
3585
|
{
|
|
@@ -3667,8 +3674,8 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3667
3674
|
class: "desktop:h-[272px] desktop:w-[500px]"
|
|
3668
3675
|
}
|
|
3669
3676
|
]
|
|
3670
|
-
}), Dn = ({ data:
|
|
3671
|
-
const { title: e, description: t, popoverText: n } =
|
|
3677
|
+
}), Dn = ({ data: o, intent: r }) => {
|
|
3678
|
+
const { title: e, description: t, popoverText: n } = o;
|
|
3672
3679
|
return /* @__PURE__ */ i.jsx("li", { className: d(vn({ intent: r })), children: /* @__PURE__ */ i.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
3673
3680
|
/* @__PURE__ */ i.jsxs("div", { className: d("mb-2 flex items-center gap-2"), children: [
|
|
3674
3681
|
/* @__PURE__ */ i.jsx("h4", { className: d("mob-title-bold-m text-color-dark"), children: e }),
|
|
@@ -3676,38 +3683,38 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3676
3683
|
] }),
|
|
3677
3684
|
/* @__PURE__ */ i.jsx("p", { className: d("mob-body-regular-l text-color-secondary"), children: t })
|
|
3678
3685
|
] }) });
|
|
3679
|
-
}, K = ({ intent:
|
|
3680
|
-
title:
|
|
3686
|
+
}, K = ({ intent: o, title: r, desktopHidden: e = !1, mobileHidden: t = !1 }) => /* @__PURE__ */ i.jsx("h2", { className: d(gn({ intent: o, desktopHidden: e, mobileHidden: t })), children: r }), Tn = ({ textContent: o, intent: r, withButton: e }) => /* @__PURE__ */ i.jsx("ul", { className: d(kn({ intent: r, withButton: e })), children: o == null ? void 0 : o.map((t, n) => /* @__PURE__ */ i.jsx(Dn, { intent: r, data: t }, n)) }), Kn = ({
|
|
3687
|
+
title: o,
|
|
3681
3688
|
buttonConfig: r,
|
|
3682
3689
|
intent: e = "twoItems",
|
|
3683
3690
|
textContent: t,
|
|
3684
3691
|
imageComponent: n,
|
|
3685
|
-
classes:
|
|
3692
|
+
classes: a
|
|
3686
3693
|
}) => {
|
|
3687
3694
|
const l = !!r, u = e === "fourItems", f = e === "twoItems";
|
|
3688
|
-
return /* @__PURE__ */ i.jsx("section", { className: d(
|
|
3689
|
-
f && /* @__PURE__ */ i.jsx(K, { intent: e, title:
|
|
3695
|
+
return /* @__PURE__ */ i.jsx("section", { className: d(a == null ? void 0 : a.section), children: /* @__PURE__ */ i.jsxs(Y, { className: d(a == null ? void 0 : a.mainContainer), children: [
|
|
3696
|
+
f && /* @__PURE__ */ i.jsx(K, { intent: e, title: o }),
|
|
3690
3697
|
/* @__PURE__ */ i.jsxs(
|
|
3691
3698
|
"div",
|
|
3692
3699
|
{
|
|
3693
3700
|
className: d(
|
|
3694
3701
|
"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",
|
|
3695
|
-
|
|
3702
|
+
a == null ? void 0 : a.contentContainer
|
|
3696
3703
|
),
|
|
3697
3704
|
children: [
|
|
3698
|
-
u && /* @__PURE__ */ i.jsx(K, { intent: e, title:
|
|
3699
|
-
/* @__PURE__ */ i.jsx("div", { className: d(jn({ intent: e, withButton: l }),
|
|
3705
|
+
u && /* @__PURE__ */ i.jsx(K, { intent: e, title: o, desktopHidden: !0 }),
|
|
3706
|
+
/* @__PURE__ */ i.jsx("div", { className: d(jn({ intent: e, withButton: l }), a == null ? void 0 : a.imgContainer), children: n }),
|
|
3700
3707
|
/* @__PURE__ */ i.jsxs(
|
|
3701
3708
|
"div",
|
|
3702
3709
|
{
|
|
3703
|
-
className: d("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10",
|
|
3710
|
+
className: d("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", a == null ? void 0 : a.textWithBtnContainer),
|
|
3704
3711
|
children: [
|
|
3705
|
-
u && /* @__PURE__ */ i.jsx(K, { intent: e, title:
|
|
3712
|
+
u && /* @__PURE__ */ i.jsx(K, { intent: e, title: o, mobileHidden: !0 }),
|
|
3706
3713
|
/* @__PURE__ */ i.jsx(Tn, { textContent: t, intent: e, withButton: l }),
|
|
3707
3714
|
l && /* @__PURE__ */ i.jsx(
|
|
3708
3715
|
Q,
|
|
3709
3716
|
{
|
|
3710
|
-
className: d("w-full px-4 desktop:w-max",
|
|
3717
|
+
className: d("w-full px-4 desktop:w-max", a == null ? void 0 : a.button),
|
|
3711
3718
|
size: "lg",
|
|
3712
3719
|
onClick: r.onClick,
|
|
3713
3720
|
intent: "secondary",
|
|
@@ -3724,7 +3731,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3724
3731
|
};
|
|
3725
3732
|
export {
|
|
3726
3733
|
qe as Advantages,
|
|
3727
|
-
|
|
3734
|
+
to as Badge,
|
|
3728
3735
|
Xn as Banner,
|
|
3729
3736
|
pe as BannerWithSeparateImg,
|
|
3730
3737
|
On as Breadcrumbs,
|
|
@@ -3739,7 +3746,7 @@ export {
|
|
|
3739
3746
|
T as Icon,
|
|
3740
3747
|
$e as Loader,
|
|
3741
3748
|
Kn as LongBanner,
|
|
3742
|
-
|
|
3749
|
+
ro as Notification,
|
|
3743
3750
|
Zn as PageHeader,
|
|
3744
3751
|
Ie as PhoneView,
|
|
3745
3752
|
An as ProgressBar,
|
|
@@ -3770,7 +3777,7 @@ export {
|
|
|
3770
3777
|
Mn as deepCompare,
|
|
3771
3778
|
$n as extendsPreset,
|
|
3772
3779
|
En as formatToDate,
|
|
3773
|
-
|
|
3780
|
+
no as isClient,
|
|
3774
3781
|
Gn as resetPreset,
|
|
3775
3782
|
Qn as tailwindConfigBase,
|
|
3776
3783
|
Hn as zodCalendarValidate,
|