@scbt-ecom/ui 0.9.0 → 0.9.2
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 +2196 -2181
- package/dist/client.js.map +1 -1
- package/dist/hybrid.js +525 -507
- package/dist/hybrid.js.map +1 -1
- package/dist/shared/ui/formElements/index.d.ts +1 -1
- package/dist/shared/ui/formElements/inputControlMask/InputControlMask.d.ts +29 -0
- package/dist/shared/ui/formElements/inputControlMask/index.d.ts +1 -0
- package/dist/shared/ui/formElements/inputControlMask/model/useInputControlMask.d.ts +28 -0
- package/dist/shared/validation/zodValidation/dadataFio.d.ts +6 -1
- package/dist/shared/validation/zodValidation/index.d.ts +1 -0
- package/dist/shared/validation/zodValidation/phone.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/shared/ui/formElements/InputControlMask.d.ts +0 -19
package/dist/hybrid.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
var Ve = Object.defineProperty;
|
|
2
|
-
var Qe = (
|
|
3
|
-
var s = (
|
|
4
|
-
import { j as i, c as d, H as
|
|
5
|
-
import { B as
|
|
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
|
+
import { j as i, c as d, H as W, a as T, I as N, L as $e, z as D, g as xe, u as be, P as Ge } from "./utils-tailwind-D1D1tL_o.js";
|
|
5
|
+
import { B as ro, N as no, i as oo } from "./utils-tailwind-D1D1tL_o.js";
|
|
6
6
|
import * as z from "react";
|
|
7
7
|
import { forwardRef as ye } from "react";
|
|
8
|
-
const
|
|
9
|
-
function v(
|
|
10
|
-
return typeof
|
|
8
|
+
const In = (o, r) => JSON.stringify(o) === JSON.stringify(r), Mn = (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
|
|
29
|
-
return O(
|
|
28
|
+
function A(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 = A(n), l = v(e, 0);
|
|
35
35
|
l.setFullYear(t, 0, 4), l.setHours(0, 0, 0, 0);
|
|
36
|
-
const u =
|
|
37
|
-
return e.getTime() >=
|
|
36
|
+
const u = A(l);
|
|
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(
|
|
55
|
-
return t.setFullYear(e, 0, 4), t.setHours(0, 0, 0, 0),
|
|
53
|
+
function Se(o, r) {
|
|
54
|
+
const e = Ke(o, r), t = v(o, 0);
|
|
55
|
+
return t.setFullYear(e, 0, 4), t.setHours(0, 0, 0, 0), A(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 };
|
|
@@ -420,18 +420,18 @@ const kt = /^(\d+)(th|st|nd|rd)?/i, vt = /\d+/i, jt = {
|
|
|
420
420
|
/^n/i,
|
|
421
421
|
/^d/i
|
|
422
422
|
]
|
|
423
|
-
},
|
|
423
|
+
}, It = {
|
|
424
424
|
narrow: /^[smtwf]/i,
|
|
425
425
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
426
426
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
427
427
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
428
|
-
},
|
|
428
|
+
}, Mt = {
|
|
429
429
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
430
430
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
431
|
-
},
|
|
431
|
+
}, Ct = {
|
|
432
432
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
433
433
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
434
|
-
},
|
|
434
|
+
}, Et = {
|
|
435
435
|
any: {
|
|
436
436
|
am: /^a/i,
|
|
437
437
|
pm: /^p/i,
|
|
@@ -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,
|
|
@@ -468,15 +468,15 @@ const kt = /^(\d+)(th|st|nd|rd)?/i, vt = /\d+/i, jt = {
|
|
|
468
468
|
defaultParseWidth: "any"
|
|
469
469
|
}),
|
|
470
470
|
day: B({
|
|
471
|
-
matchPatterns:
|
|
471
|
+
matchPatterns: It,
|
|
472
472
|
defaultMatchWidth: "wide",
|
|
473
|
-
parsePatterns:
|
|
473
|
+
parsePatterns: Mt,
|
|
474
474
|
defaultParseWidth: "any"
|
|
475
475
|
}),
|
|
476
476
|
dayPeriod: B({
|
|
477
|
-
matchPatterns:
|
|
477
|
+
matchPatterns: Ct,
|
|
478
478
|
defaultMatchWidth: "any",
|
|
479
|
-
parsePatterns:
|
|
479
|
+
parsePatterns: Et,
|
|
480
480
|
defaultParseWidth: "any"
|
|
481
481
|
})
|
|
482
482
|
}, Ft = {
|
|
@@ -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 = +A(e) - +Se(e);
|
|
496
496
|
return Math.round(t / we) + 1;
|
|
497
497
|
}
|
|
498
|
-
function ve(
|
|
499
|
-
var b, c,
|
|
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,
|
|
498
|
+
function ve(o, r) {
|
|
499
|
+
var b, c, P, F;
|
|
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 = (P = n.locale) == null ? void 0 : P.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
|
|
507
|
+
function At(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
|
|
513
|
-
const e = j(
|
|
512
|
+
function Wt(o, r) {
|
|
513
|
+
const e = j(o, r == null ? void 0 : r.in), t = +O(e, r) - +At(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) {
|
|
@@ -706,28 +706,28 @@ const g = {
|
|
|
706
706
|
// 0 to 999, -0 to -999
|
|
707
707
|
fourDigitsSigned: /^-?\d{1,4}/
|
|
708
708
|
// 0 to 9999, -0 to -9999
|
|
709
|
-
},
|
|
709
|
+
}, I = {
|
|
710
710
|
basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
|
|
711
711
|
basic: /^([+-])(\d{2})(\d{2})|Z/,
|
|
712
712
|
basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
|
|
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
|
|
730
|
-
const e = r.match(
|
|
729
|
+
function M(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), A(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 = Wt(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 {
|
|
@@ -1274,7 +1274,7 @@ class ur extends p {
|
|
|
1274
1274
|
return t >= 1 && t <= 53;
|
|
1275
1275
|
}
|
|
1276
1276
|
set(e, t, n) {
|
|
1277
|
-
return
|
|
1277
|
+
return A(sr(e, n));
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
1280
|
const cr = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], fr = [
|
|
@@ -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(
|
|
1375
|
-
var c,
|
|
1376
|
-
const t = H(), n = (e == null ? void 0 : e.weekStartsOn) ?? ((
|
|
1377
|
-
return ge(
|
|
1374
|
+
function ee(o, r, e) {
|
|
1375
|
+
var c, P, F, C;
|
|
1376
|
+
const t = H(), n = (e == null ? void 0 : e.weekStartsOn) ?? ((P = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : P.weekStartsOn) ?? t.weekStartsOn ?? ((C = (F = t.locale) == null ? void 0 : F.options) == null ? void 0 : C.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 {
|
|
@@ -1900,21 +1900,21 @@ class _r extends p {
|
|
|
1900
1900
|
return e.setSeconds(n, 0), e;
|
|
1901
1901
|
}
|
|
1902
1902
|
}
|
|
1903
|
-
class
|
|
1903
|
+
class Ir extends p {
|
|
1904
1904
|
constructor() {
|
|
1905
1905
|
super(...arguments);
|
|
1906
1906
|
s(this, "priority", 30);
|
|
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) {
|
|
1914
1914
|
return e.setMilliseconds(n), e;
|
|
1915
1915
|
}
|
|
1916
1916
|
}
|
|
1917
|
-
class
|
|
1917
|
+
class Mr extends p {
|
|
1918
1918
|
constructor() {
|
|
1919
1919
|
super(...arguments);
|
|
1920
1920
|
s(this, "priority", 10);
|
|
@@ -1923,25 +1923,25 @@ class Ir extends p {
|
|
|
1923
1923
|
parse(e, t) {
|
|
1924
1924
|
switch (t) {
|
|
1925
1925
|
case "X":
|
|
1926
|
-
return
|
|
1927
|
-
|
|
1926
|
+
return M(
|
|
1927
|
+
I.basicOptionalMinutes,
|
|
1928
1928
|
e
|
|
1929
1929
|
);
|
|
1930
1930
|
case "XX":
|
|
1931
|
-
return I
|
|
1931
|
+
return M(I.basic, e);
|
|
1932
1932
|
case "XXXX":
|
|
1933
|
-
return
|
|
1934
|
-
|
|
1933
|
+
return M(
|
|
1934
|
+
I.basicOptionalSeconds,
|
|
1935
1935
|
e
|
|
1936
1936
|
);
|
|
1937
1937
|
case "XXXXX":
|
|
1938
|
-
return
|
|
1939
|
-
|
|
1938
|
+
return M(
|
|
1939
|
+
I.extendedOptionalSeconds,
|
|
1940
1940
|
e
|
|
1941
1941
|
);
|
|
1942
1942
|
case "XXX":
|
|
1943
1943
|
default:
|
|
1944
|
-
return I
|
|
1944
|
+
return M(I.extended, e);
|
|
1945
1945
|
}
|
|
1946
1946
|
}
|
|
1947
1947
|
set(e, t, n) {
|
|
@@ -1951,7 +1951,7 @@ class Ir extends p {
|
|
|
1951
1951
|
);
|
|
1952
1952
|
}
|
|
1953
1953
|
}
|
|
1954
|
-
class
|
|
1954
|
+
class Cr extends p {
|
|
1955
1955
|
constructor() {
|
|
1956
1956
|
super(...arguments);
|
|
1957
1957
|
s(this, "priority", 10);
|
|
@@ -1960,25 +1960,25 @@ class Er extends p {
|
|
|
1960
1960
|
parse(e, t) {
|
|
1961
1961
|
switch (t) {
|
|
1962
1962
|
case "x":
|
|
1963
|
-
return
|
|
1964
|
-
|
|
1963
|
+
return M(
|
|
1964
|
+
I.basicOptionalMinutes,
|
|
1965
1965
|
e
|
|
1966
1966
|
);
|
|
1967
1967
|
case "xx":
|
|
1968
|
-
return I
|
|
1968
|
+
return M(I.basic, e);
|
|
1969
1969
|
case "xxxx":
|
|
1970
|
-
return
|
|
1971
|
-
|
|
1970
|
+
return M(
|
|
1971
|
+
I.basicOptionalSeconds,
|
|
1972
1972
|
e
|
|
1973
1973
|
);
|
|
1974
1974
|
case "xxxxx":
|
|
1975
|
-
return
|
|
1976
|
-
|
|
1975
|
+
return M(
|
|
1976
|
+
I.extendedOptionalSeconds,
|
|
1977
1977
|
e
|
|
1978
1978
|
);
|
|
1979
1979
|
case "xxx":
|
|
1980
1980
|
default:
|
|
1981
|
-
return I
|
|
1981
|
+
return M(I.extended, e);
|
|
1982
1982
|
}
|
|
1983
1983
|
}
|
|
1984
1984
|
set(e, t, n) {
|
|
@@ -1988,7 +1988,7 @@ class Er extends p {
|
|
|
1988
1988
|
);
|
|
1989
1989
|
}
|
|
1990
1990
|
}
|
|
1991
|
-
class
|
|
1991
|
+
class Er extends p {
|
|
1992
1992
|
constructor() {
|
|
1993
1993
|
super(...arguments);
|
|
1994
1994
|
s(this, "priority", 40);
|
|
@@ -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(),
|
|
@@ -2041,94 +2041,94 @@ const Fr = {
|
|
|
2041
2041
|
k: new Nr(),
|
|
2042
2042
|
m: new Pr(),
|
|
2043
2043
|
s: new _r(),
|
|
2044
|
-
S: new
|
|
2045
|
-
X: new
|
|
2046
|
-
x: new
|
|
2047
|
-
t: new
|
|
2044
|
+
S: new Ir(),
|
|
2045
|
+
X: new Mr(),
|
|
2046
|
+
x: new Cr(),
|
|
2047
|
+
t: new Er(),
|
|
2048
2048
|
T: new Or()
|
|
2049
|
-
}, Yr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,
|
|
2050
|
-
function _e(
|
|
2051
|
-
var re, ne,
|
|
2052
|
-
const n = () => v(e, NaN),
|
|
2049
|
+
}, Yr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Ar = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Wr = /^'([^]*?)'?$/, Lr = /''/g, Br = /\S/, Hr = /[a-zA-Z]/;
|
|
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,
|
|
2058
2058
|
locale: l
|
|
2059
|
-
}, b = [new Jt(t == null ? void 0 : t.in, e)], c = r.match(
|
|
2059
|
+
}, b = [new Jt(t == null ? void 0 : t.in, e)], c = r.match(Ar).map((h) => {
|
|
2060
2060
|
const y = h[0];
|
|
2061
2061
|
if (y in ce) {
|
|
2062
|
-
const
|
|
2063
|
-
return
|
|
2062
|
+
const _ = ce[y];
|
|
2063
|
+
return _(h, l.formatLong);
|
|
2064
2064
|
}
|
|
2065
2065
|
return h;
|
|
2066
|
-
}).join("").match(Yr),
|
|
2066
|
+
}).join("").match(Yr), P = [];
|
|
2067
2067
|
for (let h of c) {
|
|
2068
|
-
qt(h) && fe(h, r,
|
|
2069
|
-
const y = h[0],
|
|
2070
|
-
if (
|
|
2071
|
-
const { incompatibleTokens: ie } =
|
|
2068
|
+
qt(h) && fe(h, r, o), zt(h) && fe(h, r, o);
|
|
2069
|
+
const y = h[0], _ = Fr[y];
|
|
2070
|
+
if (_) {
|
|
2071
|
+
const { incompatibleTokens: ie } = _;
|
|
2072
2072
|
if (Array.isArray(ie)) {
|
|
2073
|
-
const de =
|
|
2073
|
+
const de = P.find(
|
|
2074
2074
|
(le) => ie.includes(le.token) || le.token === y
|
|
2075
2075
|
);
|
|
2076
2076
|
if (de)
|
|
2077
2077
|
throw new RangeError(
|
|
2078
2078
|
`The format string mustn't contain \`${de.fullToken}\` and \`${h}\` at the same time`
|
|
2079
2079
|
);
|
|
2080
|
-
} else if (
|
|
2080
|
+
} else if (_.incompatibleTokens === "*" && P.length > 0)
|
|
2081
2081
|
throw new RangeError(
|
|
2082
2082
|
`The format string mustn't contain \`${h}\` and any other token at the same time`
|
|
2083
2083
|
);
|
|
2084
|
-
|
|
2085
|
-
const U =
|
|
2086
|
-
|
|
2084
|
+
P.push({ token: y, fullToken: h });
|
|
2085
|
+
const U = _.run(
|
|
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
|
-
const F = b.map((h) => h.priority).sort((h, y) => y - h).filter((h, y,
|
|
2108
|
-
(h) => b.filter((y) => y.priority === h).sort((y,
|
|
2107
|
+
const F = b.map((h) => h.priority).sort((h, y) => y - h).filter((h, y, _) => _.indexOf(h) === y).map(
|
|
2108
|
+
(h) => b.filter((y) => y.priority === h).sort((y, _) => _.subPriority - y.subPriority)
|
|
2109
2109
|
).map((h) => h[0]);
|
|
2110
|
-
let
|
|
2111
|
-
if (isNaN(+
|
|
2110
|
+
let C = j(e, t == null ? void 0 : t.in);
|
|
2111
|
+
if (isNaN(+C)) return n();
|
|
2112
2112
|
const te = {};
|
|
2113
2113
|
for (const h of F) {
|
|
2114
|
-
if (!h.validate(
|
|
2114
|
+
if (!h.validate(C, m))
|
|
2115
2115
|
return n();
|
|
2116
|
-
const y = h.set(
|
|
2117
|
-
Array.isArray(y) ? (
|
|
2116
|
+
const y = h.set(C, te, m);
|
|
2117
|
+
Array.isArray(y) ? (C = y[0], Object.assign(te, y[1])) : C = y;
|
|
2118
2118
|
}
|
|
2119
|
-
return
|
|
2119
|
+
return C;
|
|
2120
2120
|
}
|
|
2121
|
-
function Rr(
|
|
2122
|
-
return
|
|
2121
|
+
function Rr(o) {
|
|
2122
|
+
return o.match(Wr)[1].replace(Lr, "'");
|
|
2123
2123
|
}
|
|
2124
|
-
const
|
|
2124
|
+
const Cn = (o, r = "dd.MM.yyyy") => _e(o, r, /* @__PURE__ */ new Date()), Ie = ({ 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 = T("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))]",
|
|
2128
2128
|
threeColumns: "grid-cols-[repeat(3,minmax(172px,_1fr))] desktop:grid-cols-[repeat(3,minmax(312px,_1fr))]"
|
|
2129
2129
|
}
|
|
2130
2130
|
}
|
|
2131
|
-
}), qr =
|
|
2131
|
+
}), qr = T("grid", {
|
|
2132
2132
|
variants: {
|
|
2133
2133
|
columnCount: {
|
|
2134
2134
|
twoColumns: "",
|
|
@@ -2161,7 +2161,7 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2161
2161
|
class: "grid-cols-[repeat(3,_auto)]"
|
|
2162
2162
|
}
|
|
2163
2163
|
]
|
|
2164
|
-
}), Vr =
|
|
2164
|
+
}), Vr = T("grid", {
|
|
2165
2165
|
variants: {
|
|
2166
2166
|
columnCount: {
|
|
2167
2167
|
twoColumns: "",
|
|
@@ -2174,7 +2174,7 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2174
2174
|
class: "overflow-x-scroll max-w-[368px] mb-1"
|
|
2175
2175
|
}
|
|
2176
2176
|
]
|
|
2177
|
-
}), Qr =
|
|
2177
|
+
}), Qr = T("border-b border-warm-grey-200 py-4 desktop:desk-body-regular-l mob-body-regular-l", {
|
|
2178
2178
|
variants: {
|
|
2179
2179
|
columnCount: {
|
|
2180
2180
|
twoColumns: "",
|
|
@@ -2192,34 +2192,34 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2192
2192
|
class: "border-transparent border-0 p-0"
|
|
2193
2193
|
}
|
|
2194
2194
|
]
|
|
2195
|
-
}),
|
|
2196
|
-
headTitle:
|
|
2195
|
+
}), En = ({
|
|
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(
|
|
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(W, { 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(
|
|
@@ -2241,7 +2241,7 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2241
2241
|
}
|
|
2242
2242
|
),
|
|
2243
2243
|
/* @__PURE__ */ i.jsx(
|
|
2244
|
-
|
|
2244
|
+
N,
|
|
2245
2245
|
{
|
|
2246
2246
|
name: "arrows/arrowRight",
|
|
2247
2247
|
className: d("size-4 text-icon-primary-default", { "!text-icon-disabled": r == null ? void 0 : r.isDisabled })
|
|
@@ -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,9 +2258,9 @@ 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
|
-
}, Gr =
|
|
2263
|
+
}, Gr = T(
|
|
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",
|
|
2265
2265
|
{
|
|
2266
2266
|
variants: {
|
|
@@ -2320,34 +2320,34 @@ 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,
|
|
2332
2332
|
isFull: m = !1,
|
|
2333
2333
|
textFormat: b,
|
|
2334
2334
|
...c
|
|
2335
|
-
},
|
|
2335
|
+
}, P) => /* @__PURE__ */ i.jsx(
|
|
2336
2336
|
"button",
|
|
2337
2337
|
{
|
|
2338
|
-
ref:
|
|
2338
|
+
ref: P,
|
|
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
|
] })
|
|
2348
2348
|
}
|
|
2349
2349
|
)
|
|
2350
|
-
), Xr =
|
|
2350
|
+
), Xr = T(
|
|
2351
2351
|
"group flex items-center justify-center cursor-pointer rounded-full outline-offset-[3px] outline-transparent outline-2 transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
|
|
2352
2352
|
{
|
|
2353
2353
|
variants: {
|
|
@@ -2368,8 +2368,8 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2368
2368
|
}
|
|
2369
2369
|
}
|
|
2370
2370
|
), Fn = ye(
|
|
2371
|
-
({ size:
|
|
2372
|
-
), Ur =
|
|
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
|
+
), Ur = T(
|
|
2373
2373
|
"group underline underline-offset-4 outline-none p-[2px] rounded-sm border border-solid border-transparent",
|
|
2374
2374
|
{
|
|
2375
2375
|
variants: {
|
|
@@ -2397,7 +2397,7 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2397
2397
|
size: "sm"
|
|
2398
2398
|
}
|
|
2399
2399
|
}
|
|
2400
|
-
), Zr =
|
|
2400
|
+
), Zr = T("size-6", {
|
|
2401
2401
|
variants: {
|
|
2402
2402
|
intent: {
|
|
2403
2403
|
blue: "text-icon-primary-default group-hover:text-icon-primary-hover group-focus:text-icon-primary-default ",
|
|
@@ -2413,18 +2413,18 @@ 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
|
-
t && /* @__PURE__ */ i.jsx(
|
|
2427
|
-
] }), Jr =
|
|
2426
|
+
t && /* @__PURE__ */ i.jsx(N, { name: l, className: d(Zr({ intent: r, disabled: n })) })
|
|
2427
|
+
] }), Jr = T("size-8 transition-colors", {
|
|
2428
2428
|
variants: {
|
|
2429
2429
|
intent: {
|
|
2430
2430
|
outline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
|
|
@@ -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
|
-
},
|
|
2440
|
+
}, An = ({ text: o, size: r, sizeType: e, href: t, intent: n = "outline" }) => /* @__PURE__ */ i.jsxs(
|
|
2441
2441
|
"a",
|
|
2442
2442
|
{
|
|
2443
2443
|
href: t,
|
|
@@ -2448,9 +2448,9 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2448
2448
|
"group flex cursor-pointer items-center gap-2 rounded-sm p-1 outline outline-2 outline-transparent transition-colors focus-within:outline-primary-focus desktop:max-w-[592px]"
|
|
2449
2449
|
),
|
|
2450
2450
|
children: [
|
|
2451
|
-
/* @__PURE__ */ i.jsx(
|
|
2451
|
+
/* @__PURE__ */ i.jsx(N, { 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
|
-
),
|
|
2463
|
-
/* @__PURE__ */ i.jsx(
|
|
2462
|
+
), Me = ({ 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
|
-
] }),
|
|
2466
|
-
|
|
2472
|
+
] }), Wn = ({ 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,13 +2491,13 @@ 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:
|
|
2488
|
-
main: /* @__PURE__ */ i.jsx(
|
|
2489
|
-
white: /* @__PURE__ */ i.jsx(
|
|
2490
|
-
gray: /* @__PURE__ */ i.jsx(
|
|
2491
|
-
black: /* @__PURE__ */ i.jsx(
|
|
2492
|
-
business: /* @__PURE__ */ i.jsx(
|
|
2493
|
-
insurance: /* @__PURE__ */ i.jsx(
|
|
2494
|
+
] }), Ln = ({ className: o }) => /* @__PURE__ */ i.jsx("div", { className: d("skeleton-apply h-full w-full", o) }), Sr = {
|
|
2495
|
+
main: /* @__PURE__ */ i.jsx(N, { name: "brandLogos/logoMain" }),
|
|
2496
|
+
white: /* @__PURE__ */ i.jsx(N, { name: "brandLogos/logoWhite" }),
|
|
2497
|
+
gray: /* @__PURE__ */ i.jsx(N, { name: "brandLogos/logoGray" }),
|
|
2498
|
+
black: /* @__PURE__ */ i.jsx(N, { name: "brandLogos/logoBlack" }),
|
|
2499
|
+
business: /* @__PURE__ */ i.jsx(N, { name: "brandLogos/logoBusiness" }),
|
|
2500
|
+
insurance: /* @__PURE__ */ i.jsx(N, { name: "brandLogos/logoInsurance" })
|
|
2494
2501
|
}, en = /^[\u0400-\u04FF\u00CB\u00EB -]+$/, me = /^(?:[^-]+(?:-[^-]+){0,4}|[^-]+)$/, tn = /^[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4}(?:\s+[a-zA-Zа-яА-ЯёЁ]+(?:\s*-\s*[a-zA-Zа-яА-ЯёЁ]+){0,4})?$/i, q = {
|
|
2495
2502
|
REQUIRED: "Поле обязательно к заполнению",
|
|
2496
2503
|
MIN_LENGTH: "Минимальная длина символов должна быть не менее",
|
|
@@ -2502,44 +2509,53 @@ 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 =
|
|
2513
|
-
en.test(
|
|
2514
|
-
code:
|
|
2519
|
+
}, Bn = D.string({ invalid_type_error: "Обязательно к заполнению", required_error: "Обязательно к заполнению" }).superRefine((o, r) => {
|
|
2520
|
+
en.test(o) || r.addIssue({
|
|
2521
|
+
code: D.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
|
-
code:
|
|
2526
|
+
code: D.ZodIssueCode.custom,
|
|
2520
2527
|
message: "Введите имя и фамилию"
|
|
2521
2528
|
}), me.test(t) || r.addIssue({
|
|
2522
|
-
code:
|
|
2529
|
+
code: D.ZodIssueCode.custom,
|
|
2523
2530
|
message: "Неверно введено имя"
|
|
2524
2531
|
}), me.test(e) || r.addIssue({
|
|
2525
|
-
code:
|
|
2532
|
+
code: D.ZodIssueCode.custom,
|
|
2526
2533
|
message: "Неверно введена фамилия"
|
|
2527
2534
|
}), n && (tn.test(n) || r.addIssue({
|
|
2528
|
-
code:
|
|
2535
|
+
code: D.ZodIssueCode.custom,
|
|
2529
2536
|
message: "Неверно введено отчество"
|
|
2530
2537
|
}));
|
|
2531
|
-
}), Hn =
|
|
2532
|
-
const [e, t, n] = (
|
|
2538
|
+
}), Hn = D.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
|
-
code:
|
|
2541
|
+
code: D.ZodIssueCode.custom,
|
|
2535
2542
|
message: q.INVALID_DATE
|
|
2536
|
-
}), tt(
|
|
2537
|
-
code:
|
|
2543
|
+
}), tt(a) || r.addIssue({
|
|
2544
|
+
code: D.ZodIssueCode.custom,
|
|
2538
2545
|
message: q.INVALID_DATE
|
|
2539
|
-
}), (/* @__PURE__ */ new Date()).getTime() < new Date(
|
|
2540
|
-
code:
|
|
2546
|
+
}), (/* @__PURE__ */ new Date()).getTime() < new Date(a).getTime() && r.addIssue({
|
|
2547
|
+
code: D.ZodIssueCode.custom,
|
|
2541
2548
|
message: q.FUTURE_DATE_NOT_ALLOWED
|
|
2542
2549
|
});
|
|
2550
|
+
}), Rn = D.string().superRefine((o, r) => {
|
|
2551
|
+
const e = o.charAt(1);
|
|
2552
|
+
["3", "4", "5", "6", "9"].includes(e) || r.addIssue({
|
|
2553
|
+
code: D.ZodIssueCode.custom,
|
|
2554
|
+
message: "Код города/оператора должен начинаться с цифры 3, 4, 5, 6 или 9"
|
|
2555
|
+
}), o.length !== 10 && r.addIssue({
|
|
2556
|
+
code: D.ZodIssueCode.custom,
|
|
2557
|
+
message: "Введите номер телефона полностью"
|
|
2558
|
+
});
|
|
2543
2559
|
}), R = {
|
|
2544
2560
|
transparent: "transparent",
|
|
2545
2561
|
current: "currentColor",
|
|
@@ -2574,7 +2590,7 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2574
2590
|
"purple-hover": "#52399d",
|
|
2575
2591
|
overlay: "#0000004d",
|
|
2576
2592
|
...R
|
|
2577
|
-
},
|
|
2593
|
+
}, Ce = {
|
|
2578
2594
|
dark: "#292929",
|
|
2579
2595
|
disabled: "#a9b6c5",
|
|
2580
2596
|
footer: "#c3c3c3",
|
|
@@ -2589,7 +2605,7 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2589
2605
|
"primary-disabled": "#809bc7",
|
|
2590
2606
|
"blue-grey-600": "#94a4b7",
|
|
2591
2607
|
...R
|
|
2592
|
-
},
|
|
2608
|
+
}, Ee = {
|
|
2593
2609
|
"barvcray-200": "#ebeef4",
|
|
2594
2610
|
"barvcray-300": "#dde1e8",
|
|
2595
2611
|
"greymint-200": "#deecee",
|
|
@@ -2603,7 +2619,7 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2603
2619
|
"skyblue-200": "#e7f3ff",
|
|
2604
2620
|
"skyblue-300": "#d9edff",
|
|
2605
2621
|
...R
|
|
2606
|
-
},
|
|
2622
|
+
}, E = {
|
|
2607
2623
|
"accent-default": "#2477ff",
|
|
2608
2624
|
"accent-hover": "#0053da",
|
|
2609
2625
|
"blue-grey-100": "#f3f4f7",
|
|
@@ -2681,7 +2697,7 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2681
2697
|
28: "28px",
|
|
2682
2698
|
32: "32px",
|
|
2683
2699
|
40: "40px"
|
|
2684
|
-
},
|
|
2700
|
+
}, Ae = {
|
|
2685
2701
|
16: "16px",
|
|
2686
2702
|
20: "20px",
|
|
2687
2703
|
22: "22px",
|
|
@@ -2690,7 +2706,7 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2690
2706
|
32: "32px",
|
|
2691
2707
|
40: "40px",
|
|
2692
2708
|
48: "48px"
|
|
2693
|
-
},
|
|
2709
|
+
}, We = {
|
|
2694
2710
|
/* # Headline */
|
|
2695
2711
|
".mob-headline-bold-m": {
|
|
2696
2712
|
"@apply font-bold text-28 leading-32": ""
|
|
@@ -2749,12 +2765,12 @@ const En = (a, r = "dd.MM.yyyy") => _e(a, r, /* @__PURE__ */ new Date()), Me = (
|
|
|
2749
2765
|
".desk-body-regular-s": {
|
|
2750
2766
|
"@apply font-normal text-12 leading-16": ""
|
|
2751
2767
|
}
|
|
2752
|
-
},
|
|
2768
|
+
}, zn = void 0, qn = void 0, Vn = "https://urt-web-app1:4032/v1/cache/dadata", Qn = "https://urt-web-app1:4009/constants";
|
|
2753
2769
|
var Le = {}, Be = {};
|
|
2754
|
-
(function(
|
|
2755
|
-
Object.defineProperty(
|
|
2770
|
+
(function(o) {
|
|
2771
|
+
Object.defineProperty(o, "__esModule", {
|
|
2756
2772
|
value: !0
|
|
2757
|
-
}), Object.defineProperty(
|
|
2773
|
+
}), Object.defineProperty(o, "default", {
|
|
2758
2774
|
enumerable: !0,
|
|
2759
2775
|
get: function() {
|
|
2760
2776
|
return e;
|
|
@@ -2767,21 +2783,21 @@ var Le = {}, Be = {};
|
|
|
2767
2783
|
};
|
|
2768
2784
|
}
|
|
2769
2785
|
r.withOptions = function(t, n = () => ({})) {
|
|
2770
|
-
const
|
|
2786
|
+
const a = function(l) {
|
|
2771
2787
|
return {
|
|
2772
2788
|
__options: l,
|
|
2773
2789
|
handler: t(l),
|
|
2774
2790
|
config: n(l)
|
|
2775
2791
|
};
|
|
2776
2792
|
};
|
|
2777
|
-
return
|
|
2793
|
+
return a.__isOptionsFunction = !0, a.__pluginFunction = t, a.__configFunction = n, a;
|
|
2778
2794
|
};
|
|
2779
2795
|
const e = r;
|
|
2780
2796
|
})(Be);
|
|
2781
|
-
(function(
|
|
2782
|
-
Object.defineProperty(
|
|
2797
|
+
(function(o) {
|
|
2798
|
+
Object.defineProperty(o, "__esModule", {
|
|
2783
2799
|
value: !0
|
|
2784
|
-
}), Object.defineProperty(
|
|
2800
|
+
}), Object.defineProperty(o, "default", {
|
|
2785
2801
|
enumerable: !0,
|
|
2786
2802
|
get: function() {
|
|
2787
2803
|
return t;
|
|
@@ -2797,15 +2813,15 @@ var Le = {}, Be = {};
|
|
|
2797
2813
|
})(Le);
|
|
2798
2814
|
let J = Le;
|
|
2799
2815
|
var He = (J.__esModule ? J : { default: J }).default;
|
|
2800
|
-
const X = /* @__PURE__ */ xe(He),
|
|
2801
|
-
function he(
|
|
2816
|
+
const X = /* @__PURE__ */ xe(He), on = He;
|
|
2817
|
+
function he(o) {
|
|
2802
2818
|
return Object.fromEntries(
|
|
2803
|
-
Object.entries(
|
|
2819
|
+
Object.entries(o).filter(([r]) => r !== "DEFAULT")
|
|
2804
2820
|
);
|
|
2805
2821
|
}
|
|
2806
|
-
var
|
|
2807
|
-
({ addUtilities:
|
|
2808
|
-
|
|
2822
|
+
var an = on(
|
|
2823
|
+
({ addUtilities: o, matchUtilities: r, theme: e }) => {
|
|
2824
|
+
o({
|
|
2809
2825
|
"@keyframes enter": e("keyframes.enter"),
|
|
2810
2826
|
"@keyframes exit": e("keyframes.exit"),
|
|
2811
2827
|
".animate-in": {
|
|
@@ -2881,7 +2897,7 @@ var on = an(
|
|
|
2881
2897
|
), r(
|
|
2882
2898
|
{ ease: (t) => ({ animationTimingFunction: t }) },
|
|
2883
2899
|
{ values: he(e("animationTimingFunction")) }
|
|
2884
|
-
),
|
|
2900
|
+
), o({
|
|
2885
2901
|
".running": { animationPlayState: "running" },
|
|
2886
2902
|
".paused": { animationPlayState: "paused" }
|
|
2887
2903
|
}), r(
|
|
@@ -2898,15 +2914,15 @@ var on = an(
|
|
|
2898
2914
|
{
|
|
2899
2915
|
theme: {
|
|
2900
2916
|
extend: {
|
|
2901
|
-
animationDelay: ({ theme:
|
|
2902
|
-
...
|
|
2917
|
+
animationDelay: ({ theme: o }) => ({
|
|
2918
|
+
...o("transitionDelay")
|
|
2903
2919
|
}),
|
|
2904
|
-
animationDuration: ({ theme:
|
|
2920
|
+
animationDuration: ({ theme: o }) => ({
|
|
2905
2921
|
0: "0ms",
|
|
2906
|
-
...
|
|
2922
|
+
...o("transitionDuration")
|
|
2907
2923
|
}),
|
|
2908
|
-
animationTimingFunction: ({ theme:
|
|
2909
|
-
...
|
|
2924
|
+
animationTimingFunction: ({ theme: o }) => ({
|
|
2925
|
+
...o("transitionTimingFunction")
|
|
2910
2926
|
}),
|
|
2911
2927
|
animationFillMode: {
|
|
2912
2928
|
none: "none",
|
|
@@ -2920,21 +2936,21 @@ var on = an(
|
|
|
2920
2936
|
alternate: "alternate",
|
|
2921
2937
|
"alternate-reverse": "alternate-reverse"
|
|
2922
2938
|
},
|
|
2923
|
-
animationOpacity: ({ theme:
|
|
2939
|
+
animationOpacity: ({ theme: o }) => ({
|
|
2924
2940
|
DEFAULT: 0,
|
|
2925
|
-
...
|
|
2941
|
+
...o("opacity")
|
|
2926
2942
|
}),
|
|
2927
|
-
animationTranslate: ({ theme:
|
|
2943
|
+
animationTranslate: ({ theme: o }) => ({
|
|
2928
2944
|
DEFAULT: "100%",
|
|
2929
|
-
...
|
|
2945
|
+
...o("translate")
|
|
2930
2946
|
}),
|
|
2931
|
-
animationScale: ({ theme:
|
|
2947
|
+
animationScale: ({ theme: o }) => ({
|
|
2932
2948
|
DEFAULT: 0,
|
|
2933
|
-
...
|
|
2949
|
+
...o("scale")
|
|
2934
2950
|
}),
|
|
2935
|
-
animationRotate: ({ theme:
|
|
2951
|
+
animationRotate: ({ theme: o }) => ({
|
|
2936
2952
|
DEFAULT: "30deg",
|
|
2937
|
-
...
|
|
2953
|
+
...o("rotate")
|
|
2938
2954
|
}),
|
|
2939
2955
|
animationRepeat: {
|
|
2940
2956
|
0: "0",
|
|
@@ -2959,25 +2975,25 @@ var on = an(
|
|
|
2959
2975
|
}
|
|
2960
2976
|
}
|
|
2961
2977
|
);
|
|
2962
|
-
const Re = /* @__PURE__ */ xe(
|
|
2978
|
+
const Re = /* @__PURE__ */ xe(an), $n = {
|
|
2963
2979
|
theme: {
|
|
2964
2980
|
backgroundColor: {
|
|
2965
2981
|
color: $,
|
|
2966
|
-
banner:
|
|
2967
|
-
icon:
|
|
2982
|
+
banner: Ee,
|
|
2983
|
+
icon: E
|
|
2968
2984
|
},
|
|
2969
2985
|
textColor: {
|
|
2970
|
-
icon:
|
|
2971
|
-
color:
|
|
2986
|
+
icon: E,
|
|
2987
|
+
color: Ce
|
|
2972
2988
|
},
|
|
2973
|
-
fill:
|
|
2974
|
-
stroke:
|
|
2989
|
+
fill: E,
|
|
2990
|
+
stroke: E,
|
|
2975
2991
|
borderColor: G,
|
|
2976
2992
|
outlineColor: G,
|
|
2977
2993
|
borderRadius: Oe,
|
|
2978
2994
|
fontFamily: { roboto: ["var(--ff-roboto)", "sans-serif"] },
|
|
2979
2995
|
fontSize: Ye,
|
|
2980
|
-
lineHeight:
|
|
2996
|
+
lineHeight: Ae,
|
|
2981
2997
|
gradientColorStops: $,
|
|
2982
2998
|
boxShadow: {
|
|
2983
2999
|
sm: "0 8px 20px 0 rgba(0, 0, 0, 0.08)",
|
|
@@ -3030,11 +3046,11 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3030
3046
|
},
|
|
3031
3047
|
plugins: [
|
|
3032
3048
|
Re,
|
|
3033
|
-
X(({ addComponents:
|
|
3034
|
-
|
|
3049
|
+
X(({ addComponents: o }) => {
|
|
3050
|
+
o(We);
|
|
3035
3051
|
}),
|
|
3036
|
-
X(function({ matchUtilities:
|
|
3037
|
-
|
|
3052
|
+
X(function({ matchUtilities: o, theme: r }) {
|
|
3053
|
+
o(
|
|
3038
3054
|
{
|
|
3039
3055
|
"bg-deg-gradient": (e) => ({
|
|
3040
3056
|
"background-image": `linear-gradient(${e}, var(--tw-gradient-stops))`
|
|
@@ -3046,7 +3062,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3046
3062
|
);
|
|
3047
3063
|
})
|
|
3048
3064
|
]
|
|
3049
|
-
},
|
|
3065
|
+
}, Gn = {
|
|
3050
3066
|
theme: {
|
|
3051
3067
|
extend: {
|
|
3052
3068
|
transitionDuration: {
|
|
@@ -3086,7 +3102,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3086
3102
|
}
|
|
3087
3103
|
}
|
|
3088
3104
|
}
|
|
3089
|
-
},
|
|
3105
|
+
}, Xn = {
|
|
3090
3106
|
theme: {
|
|
3091
3107
|
screens: {
|
|
3092
3108
|
mobile: { max: "1187px" },
|
|
@@ -3094,21 +3110,21 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3094
3110
|
},
|
|
3095
3111
|
backgroundColor: {
|
|
3096
3112
|
color: $,
|
|
3097
|
-
banner:
|
|
3098
|
-
icon:
|
|
3113
|
+
banner: Ee,
|
|
3114
|
+
icon: E
|
|
3099
3115
|
},
|
|
3100
3116
|
textColor: {
|
|
3101
|
-
icon:
|
|
3102
|
-
color:
|
|
3117
|
+
icon: E,
|
|
3118
|
+
color: Ce
|
|
3103
3119
|
},
|
|
3104
|
-
fill:
|
|
3105
|
-
stroke:
|
|
3120
|
+
fill: E,
|
|
3121
|
+
stroke: E,
|
|
3106
3122
|
borderColor: G,
|
|
3107
3123
|
outlineColor: G,
|
|
3108
3124
|
borderRadius: Oe,
|
|
3109
3125
|
fontFamily: { roboto: ["var(--ff-roboto)", "sans-serif"] },
|
|
3110
3126
|
fontSize: Ye,
|
|
3111
|
-
lineHeight:
|
|
3127
|
+
lineHeight: Ae,
|
|
3112
3128
|
gradientColorStops: $,
|
|
3113
3129
|
boxShadow: {
|
|
3114
3130
|
sm: "0 8px 20px 0 rgba(0, 0, 0, 0.08)",
|
|
@@ -3122,11 +3138,11 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3122
3138
|
},
|
|
3123
3139
|
plugins: [
|
|
3124
3140
|
Re,
|
|
3125
|
-
X(({ addComponents:
|
|
3126
|
-
|
|
3141
|
+
X(({ addComponents: o }) => {
|
|
3142
|
+
o(We);
|
|
3127
3143
|
}),
|
|
3128
|
-
X(function({ matchUtilities:
|
|
3129
|
-
|
|
3144
|
+
X(function({ matchUtilities: o, theme: r }) {
|
|
3145
|
+
o(
|
|
3130
3146
|
{
|
|
3131
3147
|
"bg-deg-gradient": (e) => ({
|
|
3132
3148
|
"background-image": `linear-gradient(${e}, var(--tw-gradient-stops))`
|
|
@@ -3138,9 +3154,9 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3138
3154
|
);
|
|
3139
3155
|
})
|
|
3140
3156
|
]
|
|
3141
|
-
}, ze = ({ buttonsConfig:
|
|
3157
|
+
}, ze = ({ buttonsConfig: o, classes: r, className: e }) => {
|
|
3142
3158
|
var n;
|
|
3143
|
-
const t = (
|
|
3159
|
+
const t = (o == null ? void 0 : o.secondary) && o.secondary.children;
|
|
3144
3160
|
return /* @__PURE__ */ i.jsxs(
|
|
3145
3161
|
"div",
|
|
3146
3162
|
{
|
|
@@ -3152,28 +3168,28 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3152
3168
|
e
|
|
3153
3169
|
),
|
|
3154
3170
|
children: [
|
|
3155
|
-
/* @__PURE__ */ i.jsx(Q, { intent: "primary", ...
|
|
3171
|
+
/* @__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
3172
|
t && /* @__PURE__ */ i.jsx(
|
|
3157
3173
|
Q,
|
|
3158
3174
|
{
|
|
3159
3175
|
intent: "secondary",
|
|
3160
|
-
...
|
|
3176
|
+
...o == null ? void 0 : o.secondary,
|
|
3161
3177
|
isFull: !0,
|
|
3162
3178
|
className: d("desktop:max-w-[216px]", r == null ? void 0 : r.secondary),
|
|
3163
|
-
children: (n =
|
|
3179
|
+
children: (n = o == null ? void 0 : o.secondary) == null ? void 0 : n.children
|
|
3164
3180
|
}
|
|
3165
3181
|
)
|
|
3166
3182
|
]
|
|
3167
3183
|
}
|
|
3168
3184
|
);
|
|
3169
|
-
}, qe = ({ advantagesList:
|
|
3185
|
+
}, qe = ({ advantagesList: o, classes: r }) => /* @__PURE__ */ i.jsx(
|
|
3170
3186
|
"div",
|
|
3171
3187
|
{
|
|
3172
3188
|
className: d(
|
|
3173
3189
|
"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
3190
|
r == null ? void 0 : r.advantageWrapper
|
|
3175
3191
|
),
|
|
3176
|
-
children:
|
|
3192
|
+
children: o == null ? void 0 : o.map(({ title: e, description: t }) => /* @__PURE__ */ i.jsxs(
|
|
3177
3193
|
"div",
|
|
3178
3194
|
{
|
|
3179
3195
|
className: d(
|
|
@@ -3181,7 +3197,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3181
3197
|
r == null ? void 0 : r.advantageItem
|
|
3182
3198
|
),
|
|
3183
3199
|
children: [
|
|
3184
|
-
/* @__PURE__ */ i.jsx(
|
|
3200
|
+
/* @__PURE__ */ i.jsx(W, { as: "h4", className: d("text-color-dark", r == null ? void 0 : r.advantageTitle), children: e }),
|
|
3185
3201
|
/* @__PURE__ */ i.jsx("p", { className: d("desk-body-regular-l text-color-secondary", r == null ? void 0 : r.advantageDescription), children: t })
|
|
3186
3202
|
]
|
|
3187
3203
|
},
|
|
@@ -3189,12 +3205,12 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3189
3205
|
))
|
|
3190
3206
|
}
|
|
3191
3207
|
), dn = ({
|
|
3192
|
-
headTitle:
|
|
3208
|
+
headTitle: o,
|
|
3193
3209
|
subtitle: r,
|
|
3194
3210
|
buttonsConfig: e,
|
|
3195
3211
|
advantagesList: t,
|
|
3196
3212
|
classes: n,
|
|
3197
|
-
img:
|
|
3213
|
+
img: a,
|
|
3198
3214
|
imgSets: l
|
|
3199
3215
|
}) => {
|
|
3200
3216
|
const { isDesktop: u, isMobile: f } = be(), m = /* @__PURE__ */ i.jsx(
|
|
@@ -3222,7 +3238,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3222
3238
|
"img",
|
|
3223
3239
|
{
|
|
3224
3240
|
"data-id": "banner-image",
|
|
3225
|
-
src:
|
|
3241
|
+
src: a,
|
|
3226
3242
|
alt: "Картинка баннера",
|
|
3227
3243
|
className: d("h-full w-full object-cover object-center", n == null ? void 0 : n.image)
|
|
3228
3244
|
}
|
|
@@ -3238,7 +3254,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3238
3254
|
className: d("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", n == null ? void 0 : n.textBlock),
|
|
3239
3255
|
children: [
|
|
3240
3256
|
/* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
3241
|
-
/* @__PURE__ */ i.jsx(
|
|
3257
|
+
/* @__PURE__ */ i.jsx(W, { "data-id": "banner-title", as: "h1", className: d("text-color-white", n == null ? void 0 : n.title), children: o }),
|
|
3242
3258
|
/* @__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
3259
|
] }),
|
|
3244
3260
|
/* @__PURE__ */ i.jsx(
|
|
@@ -3259,12 +3275,12 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3259
3275
|
f && m
|
|
3260
3276
|
] });
|
|
3261
3277
|
}, pe = ({
|
|
3262
|
-
headTitle:
|
|
3278
|
+
headTitle: o,
|
|
3263
3279
|
subtitle: r,
|
|
3264
3280
|
buttonsConfig: e,
|
|
3265
3281
|
advantagesList: t,
|
|
3266
3282
|
classes: n,
|
|
3267
|
-
img:
|
|
3283
|
+
img: a,
|
|
3268
3284
|
imgSets: l
|
|
3269
3285
|
}) => {
|
|
3270
3286
|
const { isDesktop: u, isMobile: f } = be(), m = /* @__PURE__ */ i.jsx(
|
|
@@ -3283,7 +3299,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3283
3299
|
/* @__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
3300
|
/* @__PURE__ */ i.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
|
|
3285
3301
|
/* @__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(
|
|
3302
|
+
/* @__PURE__ */ i.jsx(W, { "data-id": "banner-title", as: "h1", className: d("text-color-dark", n == null ? void 0 : n.title), children: o }),
|
|
3287
3303
|
/* @__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
3304
|
] }),
|
|
3289
3305
|
/* @__PURE__ */ i.jsx(ze, { buttonsConfig: e, classes: n })
|
|
@@ -3300,7 +3316,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3300
3316
|
"img",
|
|
3301
3317
|
{
|
|
3302
3318
|
"data-id": "banner-image",
|
|
3303
|
-
src:
|
|
3319
|
+
src: a,
|
|
3304
3320
|
alt: "Картинка баннера",
|
|
3305
3321
|
className: d("h-full object-cover", n == null ? void 0 : n.image)
|
|
3306
3322
|
}
|
|
@@ -3313,8 +3329,8 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3313
3329
|
] }) }),
|
|
3314
3330
|
f && m
|
|
3315
3331
|
] });
|
|
3316
|
-
},
|
|
3317
|
-
switch (
|
|
3332
|
+
}, Un = ({ bannerVariant: o, ...r }) => {
|
|
3333
|
+
switch (o) {
|
|
3318
3334
|
case "separateImg":
|
|
3319
3335
|
return /* @__PURE__ */ i.jsx(pe, { ...r });
|
|
3320
3336
|
case "fullImg":
|
|
@@ -3416,16 +3432,16 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3416
3432
|
{ text: "Офисы и банкоматы", href: "/" }
|
|
3417
3433
|
]
|
|
3418
3434
|
}
|
|
3419
|
-
], mn = ({ socialsLinks:
|
|
3435
|
+
], 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
3436
|
"a",
|
|
3421
3437
|
{
|
|
3422
3438
|
className: d("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", r == null ? void 0 : r.socialLink),
|
|
3423
3439
|
href: t,
|
|
3424
|
-
children: /* @__PURE__ */ i.jsx(
|
|
3440
|
+
children: /* @__PURE__ */ i.jsx(N, { name: e, className: d("h-full w-full text-icon-white", r == null ? void 0 : r.socialIcon) })
|
|
3425
3441
|
},
|
|
3426
3442
|
t
|
|
3427
|
-
)) }), hn = ({ phones:
|
|
3428
|
-
|
|
3443
|
+
)) }), 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(
|
|
3444
|
+
Me,
|
|
3429
3445
|
{
|
|
3430
3446
|
phone: e,
|
|
3431
3447
|
text: t,
|
|
@@ -3436,12 +3452,12 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3436
3452
|
}
|
|
3437
3453
|
},
|
|
3438
3454
|
e
|
|
3439
|
-
)) }), pn = ({ navigationLinks:
|
|
3455
|
+
)) }), 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
3456
|
/* @__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:
|
|
3457
|
+
/* @__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
3458
|
"a",
|
|
3443
3459
|
{
|
|
3444
|
-
href:
|
|
3460
|
+
href: a,
|
|
3445
3461
|
className: d(
|
|
3446
3462
|
"desk-body-regular-m cursor-pointer text-color-white transition-colors hover:text-color-footer",
|
|
3447
3463
|
r == null ? void 0 : r.navLink
|
|
@@ -3450,13 +3466,13 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3450
3466
|
},
|
|
3451
3467
|
n
|
|
3452
3468
|
)) })
|
|
3453
|
-
] }, e)) }), xn = ({ ligal:
|
|
3454
|
-
const [e, t] = z.useState(!1), [n,
|
|
3469
|
+
] }, e)) }), xn = ({ ligal: o, classes: r }) => {
|
|
3470
|
+
const [e, t] = z.useState(!1), [n, a] = z.useState(!1), l = z.useRef(null);
|
|
3455
3471
|
return z.useEffect(() => {
|
|
3456
3472
|
const u = l.current;
|
|
3457
|
-
u &&
|
|
3473
|
+
u && a(u.scrollHeight > u.clientHeight);
|
|
3458
3474
|
}, []), /* @__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:
|
|
3475
|
+
/* @__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
3476
|
n && /* @__PURE__ */ i.jsx(
|
|
3461
3477
|
"div",
|
|
3462
3478
|
{
|
|
@@ -3471,24 +3487,24 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3471
3487
|
}
|
|
3472
3488
|
)
|
|
3473
3489
|
] });
|
|
3474
|
-
}, bn = ({ text:
|
|
3475
|
-
withSocial:
|
|
3490
|
+
}, 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 }), Zn = ({
|
|
3491
|
+
withSocial: o = !0,
|
|
3476
3492
|
withPhones: r = !0,
|
|
3477
3493
|
withNavLinks: e = !0,
|
|
3478
3494
|
withLigal: t = !0,
|
|
3479
3495
|
withCopyright: n = !0,
|
|
3480
|
-
withSiteMap:
|
|
3496
|
+
withSiteMap: a = !0,
|
|
3481
3497
|
socialsLinks: l = cn,
|
|
3482
3498
|
phones: u = un,
|
|
3483
3499
|
navigationLinks: f = fn,
|
|
3484
3500
|
ligal: m = sn,
|
|
3485
3501
|
copyright: b = ln,
|
|
3486
3502
|
classes: c
|
|
3487
|
-
}) => /* @__PURE__ */ i.jsx(
|
|
3503
|
+
}) => /* @__PURE__ */ i.jsx(Ie, { className: d("w-full", c == null ? void 0 : c.section), children: /* @__PURE__ */ i.jsx(Y, { className: d(c == null ? void 0 : c.container), children: /* @__PURE__ */ i.jsxs("div", { className: d("bg-color-footer px-4 py-8 desktop:px-6 desktop:py-10", c == null ? void 0 : c.footerRoot), children: [
|
|
3488
3504
|
/* @__PURE__ */ i.jsxs("div", { className: d("mb-8 flex items-center justify-between gap-6", c == null ? void 0 : c.footerHead), children: [
|
|
3489
3505
|
/* @__PURE__ */ i.jsxs("div", { className: d(c == null ? void 0 : c.footerSocialBlock), children: [
|
|
3490
|
-
/* @__PURE__ */ i.jsx("a", { href: "/", className: d(c == null ? void 0 : c.footerLogo), children: /* @__PURE__ */ i.jsx(
|
|
3491
|
-
|
|
3506
|
+
/* @__PURE__ */ i.jsx("a", { href: "/", className: d(c == null ? void 0 : c.footerLogo), children: /* @__PURE__ */ i.jsx(N, { name: "brandLogos/logoWhite", className: "h-[32px] w-[194px]" }) }),
|
|
3507
|
+
o && /* @__PURE__ */ i.jsx(mn, { socialsLinks: l, classes: c })
|
|
3492
3508
|
] }),
|
|
3493
3509
|
r && /* @__PURE__ */ i.jsx(hn, { phones: u, classes: c })
|
|
3494
3510
|
] }),
|
|
@@ -3496,7 +3512,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3496
3512
|
t && /* @__PURE__ */ i.jsx(xn, { ligal: m, classes: c }),
|
|
3497
3513
|
/* @__PURE__ */ i.jsxs("div", { className: "mt-6 flex items-start justify-between gap-6", children: [
|
|
3498
3514
|
n && /* @__PURE__ */ i.jsx(bn, { text: b, classes: c }),
|
|
3499
|
-
|
|
3515
|
+
a && /* @__PURE__ */ i.jsx(
|
|
3500
3516
|
"a",
|
|
3501
3517
|
{
|
|
3502
3518
|
href: "https://sovcombank.ru/site-map",
|
|
@@ -3507,30 +3523,30 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3507
3523
|
}
|
|
3508
3524
|
)
|
|
3509
3525
|
] })
|
|
3510
|
-
] }) }) }), yn = (
|
|
3526
|
+
] }) }) }), yn = (o) => {
|
|
3511
3527
|
var r, e, t, n;
|
|
3512
|
-
switch (
|
|
3528
|
+
switch (o.variant) {
|
|
3513
3529
|
case "withButton":
|
|
3514
|
-
return /* @__PURE__ */ i.jsx(Q, { intent: "secondary", size: "sm", className: (r =
|
|
3530
|
+
return /* @__PURE__ */ i.jsx(Q, { intent: "secondary", size: "sm", className: (r = o.classes) == null ? void 0 : r.button, children: "Оформить заявку" });
|
|
3515
3531
|
case "withPhone":
|
|
3516
|
-
const { phone:
|
|
3532
|
+
const { phone: a, phoneText: l } = o;
|
|
3517
3533
|
return /* @__PURE__ */ i.jsx(
|
|
3518
|
-
|
|
3534
|
+
Me,
|
|
3519
3535
|
{
|
|
3520
|
-
phone:
|
|
3536
|
+
phone: a,
|
|
3521
3537
|
text: l,
|
|
3522
3538
|
classes: {
|
|
3523
|
-
wrapper: (e =
|
|
3524
|
-
text: (t =
|
|
3525
|
-
link: (n =
|
|
3539
|
+
wrapper: (e = o.classes) == null ? void 0 : e.phoneWrapper,
|
|
3540
|
+
text: (t = o.classes) == null ? void 0 : t.phoneText,
|
|
3541
|
+
link: (n = o.classes) == null ? void 0 : n.phoneLink
|
|
3526
3542
|
}
|
|
3527
3543
|
}
|
|
3528
3544
|
);
|
|
3529
3545
|
default:
|
|
3530
3546
|
return null;
|
|
3531
3547
|
}
|
|
3532
|
-
},
|
|
3533
|
-
const { logoPath: r = "/", logoType: e = "main", classes: t } =
|
|
3548
|
+
}, Jn = (o) => {
|
|
3549
|
+
const { logoPath: r = "/", logoType: e = "main", classes: t } = o;
|
|
3534
3550
|
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
3551
|
/* @__PURE__ */ i.jsx(
|
|
3536
3552
|
"a",
|
|
@@ -3545,9 +3561,9 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3545
3561
|
children: Sr[e]
|
|
3546
3562
|
}
|
|
3547
3563
|
),
|
|
3548
|
-
yn(
|
|
3564
|
+
yn(o)
|
|
3549
3565
|
] }) }) });
|
|
3550
|
-
}, wn = ({ title:
|
|
3566
|
+
}, wn = ({ title: o, description: r, index: e, classes: t }) => /* @__PURE__ */ i.jsxs(
|
|
3551
3567
|
"div",
|
|
3552
3568
|
{
|
|
3553
3569
|
className: d(
|
|
@@ -3566,13 +3582,13 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3566
3582
|
}
|
|
3567
3583
|
),
|
|
3568
3584
|
/* @__PURE__ */ i.jsxs("div", { className: d("flex flex-col gap-4", t == null ? void 0 : t.textBlock), children: [
|
|
3569
|
-
/* @__PURE__ */ i.jsx(
|
|
3585
|
+
/* @__PURE__ */ i.jsx(W, { as: "h4", className: d("text-color-dark", t == null ? void 0 : t.title), children: o }),
|
|
3570
3586
|
/* @__PURE__ */ i.jsx("p", { className: d("desk-body-regular-l text-color-tetriary", t == null ? void 0 : t.description), children: r })
|
|
3571
3587
|
] })
|
|
3572
3588
|
]
|
|
3573
3589
|
}
|
|
3574
|
-
),
|
|
3575
|
-
/* @__PURE__ */ i.jsx(
|
|
3590
|
+
), Kn = ({ heading: o, stepsList: r, classes: e }) => /* @__PURE__ */ i.jsx(Ie, { children: /* @__PURE__ */ i.jsx(Y, { children: /* @__PURE__ */ i.jsxs("div", { className: d("flex flex-col gap-12", e == null ? void 0 : e.root), children: [
|
|
3591
|
+
/* @__PURE__ */ i.jsx(W, { as: "h2", className: d("text-color-dark", e == null ? void 0 : e.headline), children: o }),
|
|
3576
3592
|
/* @__PURE__ */ i.jsx(
|
|
3577
3593
|
"div",
|
|
3578
3594
|
{
|
|
@@ -3583,7 +3599,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3583
3599
|
children: r == null ? void 0 : r.map((t, n) => /* @__PURE__ */ i.jsx(wn, { index: n + 1, ...t, classes: e }, t.title))
|
|
3584
3600
|
}
|
|
3585
3601
|
)
|
|
3586
|
-
] }) }) }), gn =
|
|
3602
|
+
] }) }) }), gn = T("", {
|
|
3587
3603
|
variants: {
|
|
3588
3604
|
intent: {
|
|
3589
3605
|
twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
|
|
@@ -3599,7 +3615,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3599
3615
|
defaultVariants: {
|
|
3600
3616
|
intent: "twoItems"
|
|
3601
3617
|
}
|
|
3602
|
-
}), kn =
|
|
3618
|
+
}), kn = T("desktop:max-h-[98px]", {
|
|
3603
3619
|
variants: {
|
|
3604
3620
|
intent: {
|
|
3605
3621
|
twoItems: "",
|
|
@@ -3631,7 +3647,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3631
3647
|
class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
3632
3648
|
}
|
|
3633
3649
|
]
|
|
3634
|
-
}), vn =
|
|
3650
|
+
}), vn = T("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
|
|
3635
3651
|
variants: {
|
|
3636
3652
|
intent: {
|
|
3637
3653
|
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',
|
|
@@ -3641,7 +3657,7 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3641
3657
|
defaultVariants: {
|
|
3642
3658
|
intent: "twoItems"
|
|
3643
3659
|
}
|
|
3644
|
-
}), jn =
|
|
3660
|
+
}), jn = T("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
|
|
3645
3661
|
variants: {
|
|
3646
3662
|
intent: {
|
|
3647
3663
|
twoItems: "desktop:h-[232px] desktop:w-[500px]",
|
|
@@ -3667,47 +3683,47 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3667
3683
|
class: "desktop:h-[272px] desktop:w-[500px]"
|
|
3668
3684
|
}
|
|
3669
3685
|
]
|
|
3670
|
-
}), Dn = ({ data:
|
|
3671
|
-
const { title: e, description: t, popoverText: n } =
|
|
3686
|
+
}), Dn = ({ data: o, intent: r }) => {
|
|
3687
|
+
const { title: e, description: t, popoverText: n } = o;
|
|
3672
3688
|
return /* @__PURE__ */ i.jsx("li", { className: d(vn({ intent: r })), children: /* @__PURE__ */ i.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
3673
3689
|
/* @__PURE__ */ i.jsxs("div", { className: d("mb-2 flex items-center gap-2"), children: [
|
|
3674
3690
|
/* @__PURE__ */ i.jsx("h4", { className: d("mob-title-bold-m text-color-dark"), children: e }),
|
|
3675
|
-
n && /* @__PURE__ */ i.jsx(Ge, { triggerElement: /* @__PURE__ */ i.jsx(
|
|
3691
|
+
n && /* @__PURE__ */ i.jsx(Ge, { triggerElement: /* @__PURE__ */ i.jsx(N, { className: d("size-4 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: n })
|
|
3676
3692
|
] }),
|
|
3677
3693
|
/* @__PURE__ */ i.jsx("p", { className: d("mob-body-regular-l text-color-secondary"), children: t })
|
|
3678
3694
|
] }) });
|
|
3679
|
-
}, K = ({ intent:
|
|
3680
|
-
title:
|
|
3695
|
+
}, 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)) }), Sn = ({
|
|
3696
|
+
title: o,
|
|
3681
3697
|
buttonConfig: r,
|
|
3682
3698
|
intent: e = "twoItems",
|
|
3683
3699
|
textContent: t,
|
|
3684
3700
|
imageComponent: n,
|
|
3685
|
-
classes:
|
|
3701
|
+
classes: a
|
|
3686
3702
|
}) => {
|
|
3687
3703
|
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:
|
|
3704
|
+
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: [
|
|
3705
|
+
f && /* @__PURE__ */ i.jsx(K, { intent: e, title: o }),
|
|
3690
3706
|
/* @__PURE__ */ i.jsxs(
|
|
3691
3707
|
"div",
|
|
3692
3708
|
{
|
|
3693
3709
|
className: d(
|
|
3694
3710
|
"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
|
-
|
|
3711
|
+
a == null ? void 0 : a.contentContainer
|
|
3696
3712
|
),
|
|
3697
3713
|
children: [
|
|
3698
|
-
u && /* @__PURE__ */ i.jsx(K, { intent: e, title:
|
|
3699
|
-
/* @__PURE__ */ i.jsx("div", { className: d(jn({ intent: e, withButton: l }),
|
|
3714
|
+
u && /* @__PURE__ */ i.jsx(K, { intent: e, title: o, desktopHidden: !0 }),
|
|
3715
|
+
/* @__PURE__ */ i.jsx("div", { className: d(jn({ intent: e, withButton: l }), a == null ? void 0 : a.imgContainer), children: n }),
|
|
3700
3716
|
/* @__PURE__ */ i.jsxs(
|
|
3701
3717
|
"div",
|
|
3702
3718
|
{
|
|
3703
|
-
className: d("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10",
|
|
3719
|
+
className: d("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", a == null ? void 0 : a.textWithBtnContainer),
|
|
3704
3720
|
children: [
|
|
3705
|
-
u && /* @__PURE__ */ i.jsx(K, { intent: e, title:
|
|
3721
|
+
u && /* @__PURE__ */ i.jsx(K, { intent: e, title: o, mobileHidden: !0 }),
|
|
3706
3722
|
/* @__PURE__ */ i.jsx(Tn, { textContent: t, intent: e, withButton: l }),
|
|
3707
3723
|
l && /* @__PURE__ */ i.jsx(
|
|
3708
3724
|
Q,
|
|
3709
3725
|
{
|
|
3710
|
-
className: d("w-full px-4 desktop:w-max",
|
|
3726
|
+
className: d("w-full px-4 desktop:w-max", a == null ? void 0 : a.button),
|
|
3711
3727
|
size: "lg",
|
|
3712
3728
|
onClick: r.onClick,
|
|
3713
3729
|
intent: "secondary",
|
|
@@ -3724,56 +3740,58 @@ const Re = /* @__PURE__ */ xe(on), Qn = {
|
|
|
3724
3740
|
};
|
|
3725
3741
|
export {
|
|
3726
3742
|
qe as Advantages,
|
|
3727
|
-
|
|
3728
|
-
|
|
3743
|
+
ro as Badge,
|
|
3744
|
+
Un as Banner,
|
|
3729
3745
|
pe as BannerWithSeparateImg,
|
|
3730
3746
|
On as Breadcrumbs,
|
|
3731
3747
|
Q as Button,
|
|
3732
3748
|
Fn as ButtonIcon,
|
|
3733
3749
|
Yn as CustomLink,
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3750
|
+
zn as DADATA_BASE_CACHE_URL,
|
|
3751
|
+
qn as DADATA_BASE_CONSTANTS_URL,
|
|
3752
|
+
An as Document,
|
|
3753
|
+
Zn as Footer,
|
|
3754
|
+
W as Heading,
|
|
3755
|
+
N as Icon,
|
|
3740
3756
|
$e as Loader,
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3757
|
+
Sn as LongBanner,
|
|
3758
|
+
no as Notification,
|
|
3759
|
+
Jn as PageHeader,
|
|
3760
|
+
Me as PhoneView,
|
|
3761
|
+
Wn as ProgressBar,
|
|
3746
3762
|
Y as ResponsiveContainer,
|
|
3747
3763
|
me as RgxCheckForHyphen,
|
|
3748
3764
|
tn as RgxPatronymic,
|
|
3749
3765
|
en as RgxUnicode,
|
|
3750
|
-
|
|
3766
|
+
Ie as Section,
|
|
3751
3767
|
Ln as Skeleton,
|
|
3752
|
-
|
|
3753
|
-
|
|
3768
|
+
Kn as Stepper,
|
|
3769
|
+
En as Table,
|
|
3754
3770
|
q as VALIDATION_MESSAGES,
|
|
3755
|
-
|
|
3756
|
-
|
|
3771
|
+
Vn as VITE_DADATA_BASE_CACHE_URL,
|
|
3772
|
+
Qn as VITE_DADATA_BASE_CONSTANTS_URL,
|
|
3757
3773
|
$ as allowedBackgroundColors,
|
|
3758
3774
|
Fe as allowedBackgroundDeg,
|
|
3759
|
-
|
|
3775
|
+
Ee as allowedBannersBackgroundColors,
|
|
3760
3776
|
Oe as allowedBorderRadius,
|
|
3761
3777
|
Ye as allowedFontSize,
|
|
3762
|
-
|
|
3763
|
-
|
|
3778
|
+
E as allowedIconsColors,
|
|
3779
|
+
Ae as allowedLineHeight,
|
|
3764
3780
|
G as allowedStrokeColors,
|
|
3765
|
-
|
|
3766
|
-
|
|
3781
|
+
Ce as allowedTextColors,
|
|
3782
|
+
We as allowedTextStyles,
|
|
3767
3783
|
nn as allowedZIndex,
|
|
3768
|
-
|
|
3784
|
+
Mn as capitalize,
|
|
3769
3785
|
d as cn,
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3786
|
+
In as deepCompare,
|
|
3787
|
+
Gn as extendsPreset,
|
|
3788
|
+
Cn as formatToDate,
|
|
3789
|
+
rn as formattedDadataFio,
|
|
3790
|
+
oo as isClient,
|
|
3791
|
+
Xn as resetPreset,
|
|
3792
|
+
$n as tailwindConfigBase,
|
|
3776
3793
|
Hn as zodCalendarValidate,
|
|
3777
|
-
Bn as
|
|
3794
|
+
Bn as zodDadataFioSchema,
|
|
3795
|
+
Rn as zodPhoneSchema
|
|
3778
3796
|
};
|
|
3779
3797
|
//# sourceMappingURL=hybrid.js.map
|