@scbt-ecom/ui 0.67.0 → 0.67.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/hooks.js +2 -2
- package/dist/{index-CVI7dOhZ.js → index-Cw6f0svP.js} +3365 -3350
- package/dist/index-Cw6f0svP.js.map +1 -0
- package/dist/ui.js +3 -3
- package/dist/{useDebounce-B-41PFpS.js → useDebounce-BZSs8EPD.js} +92 -92
- package/dist/useDebounce-BZSs8EPD.js.map +1 -0
- package/dist/{useFieldsProgress-BQ99Vijl.js → useFieldsProgress-B_tgt_Hg.js} +2 -2
- package/dist/{useFieldsProgress-BQ99Vijl.js.map → useFieldsProgress-B_tgt_Hg.js.map} +1 -1
- package/dist/widget.js +662 -668
- package/dist/widget.js.map +1 -1
- package/dist/widgets/calculator/ui/rootCalculator/RootCalculator.d.ts +3 -2
- package/dist/widgets/calculator/ui/rootCalculator/ui/FieldsGroup.d.ts +25 -0
- package/dist/widgets/calculator/ui/rootCalculator/ui/index.d.ts +1 -4
- package/package.json +1 -1
- package/dist/index-CVI7dOhZ.js.map +0 -1
- package/dist/useDebounce-B-41PFpS.js.map +0 -1
- package/dist/widgets/calculator/ui/rootCalculator/ui/CheckboxGroup.d.ts +0 -9
- package/dist/widgets/calculator/ui/rootCalculator/ui/RadioGroup.d.ts +0 -11
- package/dist/widgets/calculator/ui/rootCalculator/ui/SlidersGroup.d.ts +0 -9
- package/dist/widgets/calculator/ui/rootCalculator/ui/SwitchGroup.d.ts +0 -9
package/dist/widget.js
CHANGED
|
@@ -1,108 +1,108 @@
|
|
|
1
1
|
var ge = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var Et = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
5
|
var je = (e, t, n) => t in e ? ge(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
6
|
+
var at = (e, t, n) => je(e, typeof t != "symbol" ? t + "" : t, n), st = (e, t, n) => t.has(e) || Et("Cannot " + n);
|
|
7
|
+
var x = (e, t, n) => (st(e, t, "read from private field"), n ? n.call(e) : t.get(e)), C = (e, t, n) => t.has(e) ? Et("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), y = (e, t, n, o) => (st(e, t, "write to private field"), o ? o.call(e, n) : t.set(e, n), n), V = (e, t, n) => (st(e, t, "access private method"), n);
|
|
8
|
+
var pt = (e, t, n, o) => ({
|
|
9
9
|
set _(i) {
|
|
10
10
|
y(e, t, i, n);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return
|
|
13
|
+
return x(e, t, o);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { S as
|
|
17
|
-
import { T as s, c as
|
|
18
|
-
import * as
|
|
19
|
-
import { useCallback as
|
|
20
|
-
import { s as Pe, c as
|
|
21
|
-
import { i as
|
|
22
|
-
import { u as
|
|
16
|
+
import { S as Kt, x as Zt, Q as ye, y as F, z as Ot, E as se, F as ke, G as St, J as P, T as we, W as ve, X as Ne, Y as Ce, Z as Bt, _ as Rt, $ as Ie, a0 as _t, a1 as Ht, a2 as Me, j as r, B as gt, c as T, R as S, n as Xt, s as Fe, H, i as f, t as jt, q as Ct, L as Te, o as It, A as ot, v as Ee, a3 as Oe, r as Se, U as Jt, a4 as Mt, a5 as Be, M as Re } from "./index-Cw6f0svP.js";
|
|
17
|
+
import { T as s, c as d } from "./typeGuards-Bhdr9KYW.js";
|
|
18
|
+
import * as lt from "react";
|
|
19
|
+
import { useCallback as Yt, useState as z, useMemo as Ft, createElement as Gt, Fragment as _e, useEffect as te, useRef as Tt, useReducer as He, memo as ee, forwardRef as De } from "react";
|
|
20
|
+
import { s as Pe, c as yt, g as Dt, a as Le } from "./uuid-2wKG15vy.js";
|
|
21
|
+
import { i as re } from "./isClient-C9aZtt2Q.js";
|
|
22
|
+
import { u as G, b as ne, a as ze, g as oe, F as Qe } from "./useDebounce-BZSs8EPD.js";
|
|
23
23
|
import { o as Ae, z as Ve } from "./utils-DaXd4sci.js";
|
|
24
|
-
import { z as
|
|
25
|
-
import { a as qe, u as Ue } from "./useFieldsProgress-
|
|
26
|
-
import { createPortal as
|
|
27
|
-
var B,
|
|
24
|
+
import { z as ie, Z as ae } from "./index-cm9kMt4X.js";
|
|
25
|
+
import { a as qe, u as Ue } from "./useFieldsProgress-B_tgt_Hg.js";
|
|
26
|
+
import { createPortal as de } from "react-dom";
|
|
27
|
+
var B, qt, We = (qt = class extends Kt {
|
|
28
28
|
constructor(t = {}) {
|
|
29
29
|
super();
|
|
30
30
|
C(this, B);
|
|
31
31
|
this.config = t, y(this, B, /* @__PURE__ */ new Map());
|
|
32
32
|
}
|
|
33
33
|
build(t, n, o) {
|
|
34
|
-
const i = n.queryKey,
|
|
35
|
-
let l = this.get(
|
|
34
|
+
const i = n.queryKey, a = n.queryHash ?? Zt(i, n);
|
|
35
|
+
let l = this.get(a);
|
|
36
36
|
return l || (l = new ye({
|
|
37
37
|
client: t,
|
|
38
38
|
queryKey: i,
|
|
39
|
-
queryHash:
|
|
39
|
+
queryHash: a,
|
|
40
40
|
options: t.defaultQueryOptions(n),
|
|
41
41
|
state: o,
|
|
42
42
|
defaultOptions: t.getQueryDefaults(i)
|
|
43
43
|
}), this.add(l)), l;
|
|
44
44
|
}
|
|
45
45
|
add(t) {
|
|
46
|
-
|
|
46
|
+
x(this, B).has(t.queryHash) || (x(this, B).set(t.queryHash, t), this.notify({
|
|
47
47
|
type: "added",
|
|
48
48
|
query: t
|
|
49
49
|
}));
|
|
50
50
|
}
|
|
51
51
|
remove(t) {
|
|
52
|
-
const n =
|
|
53
|
-
n && (t.destroy(), n === t &&
|
|
52
|
+
const n = x(this, B).get(t.queryHash);
|
|
53
|
+
n && (t.destroy(), n === t && x(this, B).delete(t.queryHash), this.notify({ type: "removed", query: t }));
|
|
54
54
|
}
|
|
55
55
|
clear() {
|
|
56
|
-
|
|
56
|
+
F.batch(() => {
|
|
57
57
|
this.getAll().forEach((t) => {
|
|
58
58
|
this.remove(t);
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
get(t) {
|
|
63
|
-
return
|
|
63
|
+
return x(this, B).get(t);
|
|
64
64
|
}
|
|
65
65
|
getAll() {
|
|
66
|
-
return [...
|
|
66
|
+
return [...x(this, B).values()];
|
|
67
67
|
}
|
|
68
68
|
find(t) {
|
|
69
69
|
const n = { exact: !0, ...t };
|
|
70
70
|
return this.getAll().find(
|
|
71
|
-
(o) =>
|
|
71
|
+
(o) => Ot(n, o)
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
findAll(t = {}) {
|
|
75
75
|
const n = this.getAll();
|
|
76
|
-
return Object.keys(t).length > 0 ? n.filter((o) =>
|
|
76
|
+
return Object.keys(t).length > 0 ? n.filter((o) => Ot(t, o)) : n;
|
|
77
77
|
}
|
|
78
78
|
notify(t) {
|
|
79
|
-
|
|
79
|
+
F.batch(() => {
|
|
80
80
|
this.listeners.forEach((n) => {
|
|
81
81
|
n(t);
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
onFocus() {
|
|
86
|
-
|
|
86
|
+
F.batch(() => {
|
|
87
87
|
this.getAll().forEach((t) => {
|
|
88
88
|
t.onFocus();
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
onOnline() {
|
|
93
|
-
|
|
93
|
+
F.batch(() => {
|
|
94
94
|
this.getAll().forEach((t) => {
|
|
95
95
|
t.onOnline();
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
}, B = new WeakMap(),
|
|
99
|
+
}, B = new WeakMap(), qt), R, M, J, _, q, Ut, $e = (Ut = class extends se {
|
|
100
100
|
constructor(t) {
|
|
101
101
|
super();
|
|
102
102
|
C(this, _);
|
|
103
103
|
C(this, R);
|
|
104
104
|
C(this, M);
|
|
105
|
-
C(this,
|
|
105
|
+
C(this, J);
|
|
106
106
|
this.mutationId = t.mutationId, y(this, M, t.mutationCache), y(this, R, []), this.state = t.state || Ke(), this.setOptions(t.options), this.scheduleGc();
|
|
107
107
|
}
|
|
108
108
|
setOptions(t) {
|
|
@@ -112,33 +112,33 @@ var B, Wt, We = (Wt = class extends Xt {
|
|
|
112
112
|
return this.options.meta;
|
|
113
113
|
}
|
|
114
114
|
addObserver(t) {
|
|
115
|
-
|
|
115
|
+
x(this, R).includes(t) || (x(this, R).push(t), this.clearGcTimeout(), x(this, M).notify({
|
|
116
116
|
type: "observerAdded",
|
|
117
117
|
mutation: this,
|
|
118
118
|
observer: t
|
|
119
119
|
}));
|
|
120
120
|
}
|
|
121
121
|
removeObserver(t) {
|
|
122
|
-
y(this, R,
|
|
122
|
+
y(this, R, x(this, R).filter((n) => n !== t)), this.scheduleGc(), x(this, M).notify({
|
|
123
123
|
type: "observerRemoved",
|
|
124
124
|
mutation: this,
|
|
125
125
|
observer: t
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
optionalRemove() {
|
|
129
|
-
|
|
129
|
+
x(this, R).length || (this.state.status === "pending" ? this.scheduleGc() : x(this, M).remove(this));
|
|
130
130
|
}
|
|
131
131
|
continue() {
|
|
132
132
|
var t;
|
|
133
|
-
return ((t =
|
|
133
|
+
return ((t = x(this, J)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
|
|
134
134
|
this.execute(this.state.variables);
|
|
135
135
|
}
|
|
136
136
|
async execute(t) {
|
|
137
|
-
var
|
|
137
|
+
var a, l, u, m, h, p, c, b, w, v, I, D, K, Q, N, E, A, Z, ht, it;
|
|
138
138
|
const n = () => {
|
|
139
139
|
V(this, _, q).call(this, { type: "continue" });
|
|
140
140
|
};
|
|
141
|
-
y(this,
|
|
141
|
+
y(this, J, ke({
|
|
142
142
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
143
143
|
onFail: (k, xt) => {
|
|
144
144
|
V(this, _, q).call(this, { type: "failed", failureCount: k, error: xt });
|
|
@@ -150,15 +150,15 @@ var B, Wt, We = (Wt = class extends Xt {
|
|
|
150
150
|
retry: this.options.retry ?? 0,
|
|
151
151
|
retryDelay: this.options.retryDelay,
|
|
152
152
|
networkMode: this.options.networkMode,
|
|
153
|
-
canRun: () =>
|
|
153
|
+
canRun: () => x(this, M).canRun(this)
|
|
154
154
|
}));
|
|
155
|
-
const o = this.state.status === "pending", i = !
|
|
155
|
+
const o = this.state.status === "pending", i = !x(this, J).canStart();
|
|
156
156
|
try {
|
|
157
157
|
if (o)
|
|
158
158
|
n();
|
|
159
159
|
else {
|
|
160
|
-
V(this, _, q).call(this, { type: "pending", variables: t, isPaused: i }), await ((l = (
|
|
161
|
-
|
|
160
|
+
V(this, _, q).call(this, { type: "pending", variables: t, isPaused: i }), await ((l = (a = x(this, M).config).onMutate) == null ? void 0 : l.call(
|
|
161
|
+
a,
|
|
162
162
|
t,
|
|
163
163
|
this
|
|
164
164
|
));
|
|
@@ -170,14 +170,14 @@ var B, Wt, We = (Wt = class extends Xt {
|
|
|
170
170
|
isPaused: i
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
const k = await
|
|
174
|
-
return await ((
|
|
175
|
-
|
|
173
|
+
const k = await x(this, J).start();
|
|
174
|
+
return await ((p = (h = x(this, M).config).onSuccess) == null ? void 0 : p.call(
|
|
175
|
+
h,
|
|
176
176
|
k,
|
|
177
177
|
t,
|
|
178
178
|
this.state.context,
|
|
179
179
|
this
|
|
180
|
-
)), await ((b = (c = this.options).onSuccess) == null ? void 0 : b.call(c, k, t, this.state.context)), await ((v = (w =
|
|
180
|
+
)), await ((b = (c = this.options).onSuccess) == null ? void 0 : b.call(c, k, t, this.state.context)), await ((v = (w = x(this, M).config).onSettled) == null ? void 0 : v.call(
|
|
181
181
|
w,
|
|
182
182
|
k,
|
|
183
183
|
null,
|
|
@@ -187,25 +187,25 @@ var B, Wt, We = (Wt = class extends Xt {
|
|
|
187
187
|
)), await ((D = (I = this.options).onSettled) == null ? void 0 : D.call(I, k, null, t, this.state.context)), V(this, _, q).call(this, { type: "success", data: k }), k;
|
|
188
188
|
} catch (k) {
|
|
189
189
|
try {
|
|
190
|
-
throw await ((Q = (K =
|
|
190
|
+
throw await ((Q = (K = x(this, M).config).onError) == null ? void 0 : Q.call(
|
|
191
191
|
K,
|
|
192
192
|
k,
|
|
193
193
|
t,
|
|
194
194
|
this.state.context,
|
|
195
195
|
this
|
|
196
|
-
)), await ((
|
|
196
|
+
)), await ((E = (N = this.options).onError) == null ? void 0 : E.call(
|
|
197
197
|
N,
|
|
198
198
|
k,
|
|
199
199
|
t,
|
|
200
200
|
this.state.context
|
|
201
|
-
)), await ((Z = (A =
|
|
201
|
+
)), await ((Z = (A = x(this, M).config).onSettled) == null ? void 0 : Z.call(
|
|
202
202
|
A,
|
|
203
203
|
void 0,
|
|
204
204
|
k,
|
|
205
205
|
this.state.variables,
|
|
206
206
|
this.state.context,
|
|
207
207
|
this
|
|
208
|
-
)), await ((
|
|
208
|
+
)), await ((it = (ht = this.options).onSettled) == null ? void 0 : it.call(
|
|
209
209
|
ht,
|
|
210
210
|
void 0,
|
|
211
211
|
k,
|
|
@@ -216,10 +216,10 @@ var B, Wt, We = (Wt = class extends Xt {
|
|
|
216
216
|
V(this, _, q).call(this, { type: "error", error: k });
|
|
217
217
|
}
|
|
218
218
|
} finally {
|
|
219
|
-
|
|
219
|
+
x(this, M).runNext(this);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
}, R = new WeakMap(), M = new WeakMap(),
|
|
222
|
+
}, R = new WeakMap(), M = new WeakMap(), J = new WeakMap(), _ = new WeakSet(), q = function(t) {
|
|
223
223
|
const n = (o) => {
|
|
224
224
|
switch (t.type) {
|
|
225
225
|
case "failed":
|
|
@@ -273,16 +273,16 @@ var B, Wt, We = (Wt = class extends Xt {
|
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
|
-
this.state = n(this.state),
|
|
277
|
-
|
|
276
|
+
this.state = n(this.state), F.batch(() => {
|
|
277
|
+
x(this, R).forEach((o) => {
|
|
278
278
|
o.onMutationUpdate(t);
|
|
279
|
-
}),
|
|
279
|
+
}), x(this, M).notify({
|
|
280
280
|
mutation: this,
|
|
281
281
|
type: "updated",
|
|
282
282
|
action: t
|
|
283
283
|
});
|
|
284
284
|
});
|
|
285
|
-
},
|
|
285
|
+
}, Ut);
|
|
286
286
|
function Ke() {
|
|
287
287
|
return {
|
|
288
288
|
context: void 0,
|
|
@@ -296,51 +296,51 @@ function Ke() {
|
|
|
296
296
|
submittedAt: 0
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
var L, O,
|
|
299
|
+
var L, O, mt, Wt, Ze = (Wt = class extends Kt {
|
|
300
300
|
constructor(t = {}) {
|
|
301
301
|
super();
|
|
302
302
|
C(this, L);
|
|
303
303
|
C(this, O);
|
|
304
|
-
C(this,
|
|
305
|
-
this.config = t, y(this, L, /* @__PURE__ */ new Set()), y(this, O, /* @__PURE__ */ new Map()), y(this,
|
|
304
|
+
C(this, mt);
|
|
305
|
+
this.config = t, y(this, L, /* @__PURE__ */ new Set()), y(this, O, /* @__PURE__ */ new Map()), y(this, mt, 0);
|
|
306
306
|
}
|
|
307
307
|
build(t, n, o) {
|
|
308
308
|
const i = new $e({
|
|
309
309
|
mutationCache: this,
|
|
310
|
-
mutationId: ++
|
|
310
|
+
mutationId: ++pt(this, mt)._,
|
|
311
311
|
options: t.defaultMutationOptions(n),
|
|
312
312
|
state: o
|
|
313
313
|
});
|
|
314
314
|
return this.add(i), i;
|
|
315
315
|
}
|
|
316
316
|
add(t) {
|
|
317
|
-
|
|
318
|
-
const n =
|
|
317
|
+
x(this, L).add(t);
|
|
318
|
+
const n = ct(t);
|
|
319
319
|
if (typeof n == "string") {
|
|
320
|
-
const o =
|
|
321
|
-
o ? o.push(t) :
|
|
320
|
+
const o = x(this, O).get(n);
|
|
321
|
+
o ? o.push(t) : x(this, O).set(n, [t]);
|
|
322
322
|
}
|
|
323
323
|
this.notify({ type: "added", mutation: t });
|
|
324
324
|
}
|
|
325
325
|
remove(t) {
|
|
326
|
-
if (
|
|
327
|
-
const n =
|
|
326
|
+
if (x(this, L).delete(t)) {
|
|
327
|
+
const n = ct(t);
|
|
328
328
|
if (typeof n == "string") {
|
|
329
|
-
const o =
|
|
329
|
+
const o = x(this, O).get(n);
|
|
330
330
|
if (o)
|
|
331
331
|
if (o.length > 1) {
|
|
332
332
|
const i = o.indexOf(t);
|
|
333
333
|
i !== -1 && o.splice(i, 1);
|
|
334
|
-
} else o[0] === t &&
|
|
334
|
+
} else o[0] === t && x(this, O).delete(n);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
this.notify({ type: "removed", mutation: t });
|
|
338
338
|
}
|
|
339
339
|
canRun(t) {
|
|
340
|
-
const n =
|
|
340
|
+
const n = ct(t);
|
|
341
341
|
if (typeof n == "string") {
|
|
342
|
-
const o =
|
|
343
|
-
(
|
|
342
|
+
const o = x(this, O).get(n), i = o == null ? void 0 : o.find(
|
|
343
|
+
(a) => a.state.status === "pending"
|
|
344
344
|
);
|
|
345
345
|
return !i || i === t;
|
|
346
346
|
} else
|
|
@@ -348,34 +348,34 @@ var L, O, ut, Kt, Ze = (Kt = class extends Xt {
|
|
|
348
348
|
}
|
|
349
349
|
runNext(t) {
|
|
350
350
|
var o;
|
|
351
|
-
const n =
|
|
351
|
+
const n = ct(t);
|
|
352
352
|
if (typeof n == "string") {
|
|
353
|
-
const i = (o =
|
|
353
|
+
const i = (o = x(this, O).get(n)) == null ? void 0 : o.find((a) => a !== t && a.state.isPaused);
|
|
354
354
|
return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
|
|
355
355
|
} else
|
|
356
356
|
return Promise.resolve();
|
|
357
357
|
}
|
|
358
358
|
clear() {
|
|
359
|
-
|
|
360
|
-
|
|
359
|
+
F.batch(() => {
|
|
360
|
+
x(this, L).forEach((t) => {
|
|
361
361
|
this.notify({ type: "removed", mutation: t });
|
|
362
|
-
}),
|
|
362
|
+
}), x(this, L).clear(), x(this, O).clear();
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
365
|
getAll() {
|
|
366
|
-
return Array.from(
|
|
366
|
+
return Array.from(x(this, L));
|
|
367
367
|
}
|
|
368
368
|
find(t) {
|
|
369
369
|
const n = { exact: !0, ...t };
|
|
370
370
|
return this.getAll().find(
|
|
371
|
-
(o) =>
|
|
371
|
+
(o) => St(n, o)
|
|
372
372
|
);
|
|
373
373
|
}
|
|
374
374
|
findAll(t = {}) {
|
|
375
|
-
return this.getAll().filter((n) =>
|
|
375
|
+
return this.getAll().filter((n) => St(t, n));
|
|
376
376
|
}
|
|
377
377
|
notify(t) {
|
|
378
|
-
|
|
378
|
+
F.batch(() => {
|
|
379
379
|
this.listeners.forEach((n) => {
|
|
380
380
|
n(t);
|
|
381
381
|
});
|
|
@@ -383,24 +383,24 @@ var L, O, ut, Kt, Ze = (Kt = class extends Xt {
|
|
|
383
383
|
}
|
|
384
384
|
resumePausedMutations() {
|
|
385
385
|
const t = this.getAll().filter((n) => n.state.isPaused);
|
|
386
|
-
return
|
|
386
|
+
return F.batch(
|
|
387
387
|
() => Promise.all(
|
|
388
388
|
t.map((n) => n.continue().catch(P))
|
|
389
389
|
)
|
|
390
390
|
);
|
|
391
391
|
}
|
|
392
|
-
}, L = new WeakMap(), O = new WeakMap(),
|
|
393
|
-
function
|
|
392
|
+
}, L = new WeakMap(), O = new WeakMap(), mt = new WeakMap(), Wt);
|
|
393
|
+
function ct(e) {
|
|
394
394
|
var t;
|
|
395
395
|
return (t = e.options.scope) == null ? void 0 : t.id;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Pt(e) {
|
|
398
398
|
return {
|
|
399
399
|
onFetch: (t, n) => {
|
|
400
|
-
var
|
|
401
|
-
const o = t.options, i = (b = (c = (
|
|
400
|
+
var p, c, b, w, v;
|
|
401
|
+
const o = t.options, i = (b = (c = (p = t.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : b.direction, a = ((w = t.state.data) == null ? void 0 : w.pages) || [], l = ((v = t.state.data) == null ? void 0 : v.pageParams) || [];
|
|
402
402
|
let u = { pages: [], pageParams: [] }, m = 0;
|
|
403
|
-
const
|
|
403
|
+
const h = async () => {
|
|
404
404
|
let I = !1;
|
|
405
405
|
const D = (N) => {
|
|
406
406
|
Object.defineProperty(N, "signal", {
|
|
@@ -409,40 +409,40 @@ function zt(e) {
|
|
|
409
409
|
I = !0;
|
|
410
410
|
}), t.signal)
|
|
411
411
|
});
|
|
412
|
-
}, K = we(t.options, t.fetchOptions), Q = async (N,
|
|
412
|
+
}, K = we(t.options, t.fetchOptions), Q = async (N, E, A) => {
|
|
413
413
|
if (I)
|
|
414
414
|
return Promise.reject();
|
|
415
|
-
if (
|
|
415
|
+
if (E == null && N.pages.length)
|
|
416
416
|
return Promise.resolve(N);
|
|
417
417
|
const Z = {
|
|
418
418
|
client: t.client,
|
|
419
419
|
queryKey: t.queryKey,
|
|
420
|
-
pageParam:
|
|
420
|
+
pageParam: E,
|
|
421
421
|
direction: A ? "backward" : "forward",
|
|
422
422
|
meta: t.options.meta
|
|
423
423
|
};
|
|
424
424
|
D(Z);
|
|
425
425
|
const ht = await K(
|
|
426
426
|
Z
|
|
427
|
-
), { maxPages:
|
|
427
|
+
), { maxPages: it } = t.options, k = A ? ve : Ne;
|
|
428
428
|
return {
|
|
429
|
-
pages: k(N.pages, ht,
|
|
430
|
-
pageParams: k(N.pageParams,
|
|
429
|
+
pages: k(N.pages, ht, it),
|
|
430
|
+
pageParams: k(N.pageParams, E, it)
|
|
431
431
|
};
|
|
432
432
|
};
|
|
433
|
-
if (i &&
|
|
434
|
-
const N = i === "backward",
|
|
435
|
-
pages:
|
|
433
|
+
if (i && a.length) {
|
|
434
|
+
const N = i === "backward", E = N ? Xe : Lt, A = {
|
|
435
|
+
pages: a,
|
|
436
436
|
pageParams: l
|
|
437
|
-
}, Z =
|
|
437
|
+
}, Z = E(o, A);
|
|
438
438
|
u = await Q(A, Z, N);
|
|
439
439
|
} else {
|
|
440
|
-
const N = e ??
|
|
440
|
+
const N = e ?? a.length;
|
|
441
441
|
do {
|
|
442
|
-
const
|
|
443
|
-
if (m > 0 &&
|
|
442
|
+
const E = m === 0 ? l[0] ?? o.initialPageParam : Lt(o, u);
|
|
443
|
+
if (m > 0 && E == null)
|
|
444
444
|
break;
|
|
445
|
-
u = await Q(u,
|
|
445
|
+
u = await Q(u, E), m++;
|
|
446
446
|
} while (m < N);
|
|
447
447
|
}
|
|
448
448
|
return u;
|
|
@@ -451,7 +451,7 @@ function zt(e) {
|
|
|
451
451
|
var I, D;
|
|
452
452
|
return (D = (I = t.options).persister) == null ? void 0 : D.call(
|
|
453
453
|
I,
|
|
454
|
-
|
|
454
|
+
h,
|
|
455
455
|
{
|
|
456
456
|
client: t.client,
|
|
457
457
|
queryKey: t.queryKey,
|
|
@@ -460,11 +460,11 @@ function zt(e) {
|
|
|
460
460
|
},
|
|
461
461
|
n
|
|
462
462
|
);
|
|
463
|
-
} : t.fetchFn =
|
|
463
|
+
} : t.fetchFn = h;
|
|
464
464
|
}
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function Lt(e, { pages: t, pageParams: n }) {
|
|
468
468
|
const o = t.length - 1;
|
|
469
469
|
return t.length > 0 ? e.getNextPageParam(
|
|
470
470
|
t[o],
|
|
@@ -477,34 +477,34 @@ function Xe(e, { pages: t, pageParams: n }) {
|
|
|
477
477
|
var o;
|
|
478
478
|
return t.length > 0 ? (o = e.getPreviousPageParam) == null ? void 0 : o.call(e, t[0], t, n[0], n) : void 0;
|
|
479
479
|
}
|
|
480
|
-
var j, U, W,
|
|
480
|
+
var j, U, W, tt, et, $, rt, nt, $t, Je = ($t = class {
|
|
481
481
|
constructor(e = {}) {
|
|
482
482
|
C(this, j);
|
|
483
483
|
C(this, U);
|
|
484
484
|
C(this, W);
|
|
485
|
-
C(this, G);
|
|
486
485
|
C(this, tt);
|
|
487
|
-
C(this, $);
|
|
488
486
|
C(this, et);
|
|
487
|
+
C(this, $);
|
|
489
488
|
C(this, rt);
|
|
490
|
-
|
|
489
|
+
C(this, nt);
|
|
490
|
+
y(this, j, e.queryCache || new We()), y(this, U, e.mutationCache || new Ze()), y(this, W, e.defaultOptions || {}), y(this, tt, /* @__PURE__ */ new Map()), y(this, et, /* @__PURE__ */ new Map()), y(this, $, 0);
|
|
491
491
|
}
|
|
492
492
|
mount() {
|
|
493
|
-
|
|
494
|
-
e && (await this.resumePausedMutations(),
|
|
495
|
-
})), y(this,
|
|
496
|
-
e && (await this.resumePausedMutations(),
|
|
493
|
+
pt(this, $)._++, x(this, $) === 1 && (y(this, rt, Ce.subscribe(async (e) => {
|
|
494
|
+
e && (await this.resumePausedMutations(), x(this, j).onFocus());
|
|
495
|
+
})), y(this, nt, Bt.subscribe(async (e) => {
|
|
496
|
+
e && (await this.resumePausedMutations(), x(this, j).onOnline());
|
|
497
497
|
})));
|
|
498
498
|
}
|
|
499
499
|
unmount() {
|
|
500
500
|
var e, t;
|
|
501
|
-
|
|
501
|
+
pt(this, $)._--, x(this, $) === 0 && ((e = x(this, rt)) == null || e.call(this), y(this, rt, void 0), (t = x(this, nt)) == null || t.call(this), y(this, nt, void 0));
|
|
502
502
|
}
|
|
503
503
|
isFetching(e) {
|
|
504
|
-
return
|
|
504
|
+
return x(this, j).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
505
505
|
}
|
|
506
506
|
isMutating(e) {
|
|
507
|
-
return
|
|
507
|
+
return x(this, U).findAll({ ...e, status: "pending" }).length;
|
|
508
508
|
}
|
|
509
509
|
/**
|
|
510
510
|
* Imperative (non-reactive) way to retrieve data for a QueryKey.
|
|
@@ -516,28 +516,28 @@ var j, U, W, G, tt, $, et, rt, Zt, Je = (Zt = class {
|
|
|
516
516
|
getQueryData(e) {
|
|
517
517
|
var n;
|
|
518
518
|
const t = this.defaultQueryOptions({ queryKey: e });
|
|
519
|
-
return (n =
|
|
519
|
+
return (n = x(this, j).get(t.queryHash)) == null ? void 0 : n.state.data;
|
|
520
520
|
}
|
|
521
521
|
ensureQueryData(e) {
|
|
522
|
-
const t = this.defaultQueryOptions(e), n =
|
|
523
|
-
return o === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(
|
|
522
|
+
const t = this.defaultQueryOptions(e), n = x(this, j).build(this, t), o = n.state.data;
|
|
523
|
+
return o === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(Rt(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(o));
|
|
524
524
|
}
|
|
525
525
|
getQueriesData(e) {
|
|
526
|
-
return
|
|
526
|
+
return x(this, j).findAll(e).map(({ queryKey: t, state: n }) => {
|
|
527
527
|
const o = n.data;
|
|
528
528
|
return [t, o];
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
531
|
setQueryData(e, t, n) {
|
|
532
|
-
const o = this.defaultQueryOptions({ queryKey: e }), i =
|
|
532
|
+
const o = this.defaultQueryOptions({ queryKey: e }), i = x(this, j).get(
|
|
533
533
|
o.queryHash
|
|
534
|
-
),
|
|
534
|
+
), a = i == null ? void 0 : i.state.data, l = Ie(t, a);
|
|
535
535
|
if (l !== void 0)
|
|
536
|
-
return
|
|
536
|
+
return x(this, j).build(this, o).setData(l, { ...n, manual: !0 });
|
|
537
537
|
}
|
|
538
538
|
setQueriesData(e, t, n) {
|
|
539
|
-
return
|
|
540
|
-
() =>
|
|
539
|
+
return F.batch(
|
|
540
|
+
() => x(this, j).findAll(e).map(({ queryKey: o }) => [
|
|
541
541
|
o,
|
|
542
542
|
this.setQueryData(o, t, n)
|
|
543
543
|
])
|
|
@@ -546,21 +546,21 @@ var j, U, W, G, tt, $, et, rt, Zt, Je = (Zt = class {
|
|
|
546
546
|
getQueryState(e) {
|
|
547
547
|
var n;
|
|
548
548
|
const t = this.defaultQueryOptions({ queryKey: e });
|
|
549
|
-
return (n =
|
|
549
|
+
return (n = x(this, j).get(
|
|
550
550
|
t.queryHash
|
|
551
551
|
)) == null ? void 0 : n.state;
|
|
552
552
|
}
|
|
553
553
|
removeQueries(e) {
|
|
554
|
-
const t =
|
|
555
|
-
|
|
554
|
+
const t = x(this, j);
|
|
555
|
+
F.batch(() => {
|
|
556
556
|
t.findAll(e).forEach((n) => {
|
|
557
557
|
t.remove(n);
|
|
558
558
|
});
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
561
|
resetQueries(e, t) {
|
|
562
|
-
const n =
|
|
563
|
-
return
|
|
562
|
+
const n = x(this, j);
|
|
563
|
+
return F.batch(() => (n.findAll(e).forEach((o) => {
|
|
564
564
|
o.reset();
|
|
565
565
|
}), this.refetchQueries(
|
|
566
566
|
{
|
|
@@ -571,13 +571,13 @@ var j, U, W, G, tt, $, et, rt, Zt, Je = (Zt = class {
|
|
|
571
571
|
)));
|
|
572
572
|
}
|
|
573
573
|
cancelQueries(e, t = {}) {
|
|
574
|
-
const n = { revert: !0, ...t }, o =
|
|
575
|
-
() =>
|
|
574
|
+
const n = { revert: !0, ...t }, o = F.batch(
|
|
575
|
+
() => x(this, j).findAll(e).map((i) => i.cancel(n))
|
|
576
576
|
);
|
|
577
577
|
return Promise.all(o).then(P).catch(P);
|
|
578
578
|
}
|
|
579
579
|
invalidateQueries(e, t = {}) {
|
|
580
|
-
return
|
|
580
|
+
return F.batch(() => (x(this, j).findAll(e).forEach((n) => {
|
|
581
581
|
n.invalidate();
|
|
582
582
|
}), (e == null ? void 0 : e.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
|
|
583
583
|
{
|
|
@@ -591,10 +591,10 @@ var j, U, W, G, tt, $, et, rt, Zt, Je = (Zt = class {
|
|
|
591
591
|
const n = {
|
|
592
592
|
...t,
|
|
593
593
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
594
|
-
}, o =
|
|
595
|
-
() =>
|
|
596
|
-
let
|
|
597
|
-
return n.throwOnError || (
|
|
594
|
+
}, o = F.batch(
|
|
595
|
+
() => x(this, j).findAll(e).filter((i) => !i.isDisabled()).map((i) => {
|
|
596
|
+
let a = i.fetch(void 0, n);
|
|
597
|
+
return n.throwOnError || (a = a.catch(P)), i.state.fetchStatus === "paused" ? Promise.resolve() : a;
|
|
598
598
|
})
|
|
599
599
|
);
|
|
600
600
|
return Promise.all(o).then(P);
|
|
@@ -602,88 +602,88 @@ var j, U, W, G, tt, $, et, rt, Zt, Je = (Zt = class {
|
|
|
602
602
|
fetchQuery(e) {
|
|
603
603
|
const t = this.defaultQueryOptions(e);
|
|
604
604
|
t.retry === void 0 && (t.retry = !1);
|
|
605
|
-
const n =
|
|
605
|
+
const n = x(this, j).build(this, t);
|
|
606
606
|
return n.isStaleByTime(
|
|
607
|
-
|
|
607
|
+
Rt(t.staleTime, n)
|
|
608
608
|
) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
609
609
|
}
|
|
610
610
|
prefetchQuery(e) {
|
|
611
611
|
return this.fetchQuery(e).then(P).catch(P);
|
|
612
612
|
}
|
|
613
613
|
fetchInfiniteQuery(e) {
|
|
614
|
-
return e.behavior =
|
|
614
|
+
return e.behavior = Pt(e.pages), this.fetchQuery(e);
|
|
615
615
|
}
|
|
616
616
|
prefetchInfiniteQuery(e) {
|
|
617
617
|
return this.fetchInfiniteQuery(e).then(P).catch(P);
|
|
618
618
|
}
|
|
619
619
|
ensureInfiniteQueryData(e) {
|
|
620
|
-
return e.behavior =
|
|
620
|
+
return e.behavior = Pt(e.pages), this.ensureQueryData(e);
|
|
621
621
|
}
|
|
622
622
|
resumePausedMutations() {
|
|
623
|
-
return
|
|
623
|
+
return Bt.isOnline() ? x(this, U).resumePausedMutations() : Promise.resolve();
|
|
624
624
|
}
|
|
625
625
|
getQueryCache() {
|
|
626
|
-
return
|
|
626
|
+
return x(this, j);
|
|
627
627
|
}
|
|
628
628
|
getMutationCache() {
|
|
629
|
-
return
|
|
629
|
+
return x(this, U);
|
|
630
630
|
}
|
|
631
631
|
getDefaultOptions() {
|
|
632
|
-
return
|
|
632
|
+
return x(this, W);
|
|
633
633
|
}
|
|
634
634
|
setDefaultOptions(e) {
|
|
635
635
|
y(this, W, e);
|
|
636
636
|
}
|
|
637
637
|
setQueryDefaults(e, t) {
|
|
638
|
-
|
|
638
|
+
x(this, tt).set(_t(e), {
|
|
639
639
|
queryKey: e,
|
|
640
640
|
defaultOptions: t
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
643
|
getQueryDefaults(e) {
|
|
644
|
-
const t = [...
|
|
644
|
+
const t = [...x(this, tt).values()], n = {};
|
|
645
645
|
return t.forEach((o) => {
|
|
646
|
-
|
|
646
|
+
Ht(e, o.queryKey) && Object.assign(n, o.defaultOptions);
|
|
647
647
|
}), n;
|
|
648
648
|
}
|
|
649
649
|
setMutationDefaults(e, t) {
|
|
650
|
-
|
|
650
|
+
x(this, et).set(_t(e), {
|
|
651
651
|
mutationKey: e,
|
|
652
652
|
defaultOptions: t
|
|
653
653
|
});
|
|
654
654
|
}
|
|
655
655
|
getMutationDefaults(e) {
|
|
656
|
-
const t = [...
|
|
656
|
+
const t = [...x(this, et).values()], n = {};
|
|
657
657
|
return t.forEach((o) => {
|
|
658
|
-
|
|
658
|
+
Ht(e, o.mutationKey) && Object.assign(n, o.defaultOptions);
|
|
659
659
|
}), n;
|
|
660
660
|
}
|
|
661
661
|
defaultQueryOptions(e) {
|
|
662
662
|
if (e._defaulted)
|
|
663
663
|
return e;
|
|
664
664
|
const t = {
|
|
665
|
-
...
|
|
665
|
+
...x(this, W).queries,
|
|
666
666
|
...this.getQueryDefaults(e.queryKey),
|
|
667
667
|
...e,
|
|
668
668
|
_defaulted: !0
|
|
669
669
|
};
|
|
670
|
-
return t.queryHash || (t.queryHash =
|
|
670
|
+
return t.queryHash || (t.queryHash = Zt(
|
|
671
671
|
t.queryKey,
|
|
672
672
|
t
|
|
673
673
|
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === Me && (t.enabled = !1), t;
|
|
674
674
|
}
|
|
675
675
|
defaultMutationOptions(e) {
|
|
676
676
|
return e != null && e._defaulted ? e : {
|
|
677
|
-
...
|
|
677
|
+
...x(this, W).mutations,
|
|
678
678
|
...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
|
|
679
679
|
...e,
|
|
680
680
|
_defaulted: !0
|
|
681
681
|
};
|
|
682
682
|
}
|
|
683
683
|
clear() {
|
|
684
|
-
|
|
684
|
+
x(this, j).clear(), x(this, U).clear();
|
|
685
685
|
}
|
|
686
|
-
}, j = new WeakMap(), U = new WeakMap(), W = new WeakMap(),
|
|
686
|
+
}, j = new WeakMap(), U = new WeakMap(), W = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), $ = new WeakMap(), rt = new WeakMap(), nt = new WeakMap(), $t);
|
|
687
687
|
const Ye = [
|
|
688
688
|
"header",
|
|
689
689
|
"footer",
|
|
@@ -699,30 +699,30 @@ const Ye = [
|
|
|
699
699
|
], g = Ye.reduce(
|
|
700
700
|
(e, t) => (e[t] = t, e),
|
|
701
701
|
{}
|
|
702
|
-
), Ge = ["getFioSchema"],
|
|
702
|
+
), Ge = ["getFioSchema"], le = (e, t, n) => {
|
|
703
703
|
const o = e[t];
|
|
704
704
|
if (s.isNil(o))
|
|
705
705
|
throw new Error(`validation for type ${String(t)} not found`);
|
|
706
706
|
if (!s.isFunction(o))
|
|
707
707
|
throw new Error(`Cannot generate ${String(t)} because is not a function`);
|
|
708
708
|
return o(n);
|
|
709
|
-
}, tr = (e, t) =>
|
|
709
|
+
}, tr = (e, t) => le(ie.base, e, t), er = (e, t) => le(ie.dadata, e, t), ue = (e) => {
|
|
710
710
|
const n = e.map((o) => ({ name: o.args.name, validation: o.args.validation })).reduce((o, i) => {
|
|
711
|
-
const
|
|
711
|
+
const a = Ge.includes(i.validation.type) ? er(
|
|
712
712
|
i.validation.type,
|
|
713
713
|
i.validation.args
|
|
714
714
|
) : tr(
|
|
715
715
|
i.validation.type,
|
|
716
716
|
i.validation.args
|
|
717
717
|
);
|
|
718
|
-
return o[i.name] =
|
|
718
|
+
return o[i.name] = a, o;
|
|
719
719
|
}, {});
|
|
720
720
|
return Ae(n);
|
|
721
|
-
}, rr = (e) =>
|
|
721
|
+
}, rr = (e) => Yt(() => {
|
|
722
722
|
switch (e.handler) {
|
|
723
723
|
case "navigate": {
|
|
724
724
|
const { url: n, target: o, rel: i } = e;
|
|
725
|
-
|
|
725
|
+
re && (window == null || window.open(n, o, i));
|
|
726
726
|
break;
|
|
727
727
|
}
|
|
728
728
|
case "scroll": {
|
|
@@ -731,10 +731,10 @@ const Ye = [
|
|
|
731
731
|
break;
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
|
-
}, [e]),
|
|
734
|
+
}, [e]), Y = ({ handlerOptions: e, ...t }) => {
|
|
735
735
|
const n = rr(e);
|
|
736
|
-
return /* @__PURE__ */ r.jsx(
|
|
737
|
-
}, nr =
|
|
736
|
+
return /* @__PURE__ */ r.jsx(gt, { onClick: n, ...t, children: t.children });
|
|
737
|
+
}, nr = T(
|
|
738
738
|
"flex flex-col justify-between overflow-hidden rounded-md bg-color-blue-grey-100 py-6 desktop:flex-row desktop:px-0 desktop:py-0",
|
|
739
739
|
{
|
|
740
740
|
variants: {
|
|
@@ -751,37 +751,37 @@ const Ye = [
|
|
|
751
751
|
img: n,
|
|
752
752
|
mobileImg: o,
|
|
753
753
|
classes: i,
|
|
754
|
-
withButton:
|
|
754
|
+
withButton: a,
|
|
755
755
|
button: l,
|
|
756
756
|
variant: u,
|
|
757
757
|
color: m
|
|
758
758
|
}) => {
|
|
759
|
-
const { isDesktop:
|
|
759
|
+
const { isDesktop: h } = G();
|
|
760
760
|
return /* @__PURE__ */ r.jsxs(
|
|
761
761
|
"li",
|
|
762
762
|
{
|
|
763
763
|
style: { backgroundColor: m ?? "#F3F4F7" },
|
|
764
|
-
className:
|
|
764
|
+
className: d(nr({ variant: u }), { "pb-0": o }, { "pb-12": !o }, i == null ? void 0 : i.root),
|
|
765
765
|
children: [
|
|
766
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
767
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
768
|
-
/* @__PURE__ */ r.jsx("div", { dangerouslySetInnerHTML: { __html: t }, className:
|
|
766
|
+
/* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", i == null ? void 0 : i.wrapper), children: [
|
|
767
|
+
/* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col gap-4", i == null ? void 0 : i.textContainer), children: [
|
|
768
|
+
/* @__PURE__ */ r.jsx("div", { dangerouslySetInnerHTML: { __html: t }, className: d("desktop:desk-title-bold-s", i == null ? void 0 : i.title) }),
|
|
769
769
|
/* @__PURE__ */ r.jsx(
|
|
770
770
|
"div",
|
|
771
771
|
{
|
|
772
772
|
dangerouslySetInnerHTML: { __html: e },
|
|
773
|
-
className:
|
|
773
|
+
className: d("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l", i == null ? void 0 : i.subtitle)
|
|
774
774
|
}
|
|
775
775
|
)
|
|
776
776
|
] }),
|
|
777
|
-
|
|
777
|
+
a && h && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ r.jsx(Y, { intent: "primary", className: d("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...l })
|
|
778
778
|
] }),
|
|
779
|
-
(o ||
|
|
779
|
+
(o || h) && n && /* @__PURE__ */ r.jsx("div", { className: d("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: n && "url" in n && s.isObject(n) ? /* @__PURE__ */ r.jsx("img", { className: d("h-[246px] object-cover", i == null ? void 0 : i.img), src: n.url, alt: n.alt }) : n })
|
|
780
780
|
]
|
|
781
781
|
},
|
|
782
782
|
t
|
|
783
783
|
);
|
|
784
|
-
}, ir =
|
|
784
|
+
}, ir = T("grid gap-4", {
|
|
785
785
|
variants: {
|
|
786
786
|
variant: {
|
|
787
787
|
twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
|
|
@@ -789,33 +789,33 @@ const Ye = [
|
|
|
789
789
|
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
790
790
|
}
|
|
791
791
|
}
|
|
792
|
-
}),
|
|
792
|
+
}), Wn = ({ headline: e, details: t, variant: n, classes: o }) => /* @__PURE__ */ r.jsx("section", { id: g.benefit, "data-test-id": g.benefit, className: d("pb-20", o == null ? void 0 : o.root), children: /* @__PURE__ */ r.jsxs(S, { className: o == null ? void 0 : o.container, children: [
|
|
793
793
|
/* @__PURE__ */ r.jsx(
|
|
794
794
|
"div",
|
|
795
795
|
{
|
|
796
796
|
dangerouslySetInnerHTML: { __html: e },
|
|
797
|
-
className:
|
|
797
|
+
className: d("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", o == null ? void 0 : o.heading)
|
|
798
798
|
}
|
|
799
799
|
),
|
|
800
|
-
/* @__PURE__ */ r.jsx("ul", { className:
|
|
801
|
-
] }) }),
|
|
800
|
+
/* @__PURE__ */ r.jsx("ul", { className: d(ir({ variant: n }), o == null ? void 0 : o.grid), children: t == null ? void 0 : t.map((i) => /* @__PURE__ */ r.jsx(or, { variant: n, classes: o == null ? void 0 : o.item, ...i }, i.title)) })
|
|
801
|
+
] }) }), ar = ({ variant: e, details: t }) => {
|
|
802
802
|
switch (e) {
|
|
803
803
|
case "withButton":
|
|
804
|
-
return /* @__PURE__ */ r.jsx(
|
|
804
|
+
return /* @__PURE__ */ r.jsx(Y, { ...t });
|
|
805
805
|
case "withPhone":
|
|
806
|
-
return /* @__PURE__ */ r.jsx(
|
|
806
|
+
return /* @__PURE__ */ r.jsx(Xt, { classes: { root: "items-end" }, ...t, phone: yt(t.phone) });
|
|
807
807
|
default:
|
|
808
808
|
return null;
|
|
809
809
|
}
|
|
810
|
-
},
|
|
810
|
+
}, $n = (e) => {
|
|
811
811
|
const { logoPath: t = "/", logoType: n = "main", classes: o } = e;
|
|
812
812
|
return /* @__PURE__ */ r.jsx(
|
|
813
813
|
"header",
|
|
814
814
|
{
|
|
815
815
|
id: g.header,
|
|
816
816
|
"data-test-id": g.header,
|
|
817
|
-
className:
|
|
818
|
-
children: /* @__PURE__ */ r.jsx(S, { className:
|
|
817
|
+
className: d("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", o == null ? void 0 : o.header),
|
|
818
|
+
children: /* @__PURE__ */ r.jsx(S, { className: d(o == null ? void 0 : o.container), children: /* @__PURE__ */ r.jsxs("div", { className: d("flex items-center justify-between gap-5", o == null ? void 0 : o.wrapper), children: [
|
|
819
819
|
/* @__PURE__ */ r.jsx(
|
|
820
820
|
"a",
|
|
821
821
|
{
|
|
@@ -823,36 +823,36 @@ const Ye = [
|
|
|
823
823
|
"aria-label": "logo",
|
|
824
824
|
target: "_blank",
|
|
825
825
|
rel: "noreferrer",
|
|
826
|
-
className:
|
|
826
|
+
className: d(
|
|
827
827
|
"flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
828
828
|
o == null ? void 0 : o.logo
|
|
829
829
|
),
|
|
830
|
-
children:
|
|
830
|
+
children: Fe[n]
|
|
831
831
|
}
|
|
832
832
|
),
|
|
833
|
-
|
|
833
|
+
ar(e)
|
|
834
834
|
] }) })
|
|
835
835
|
}
|
|
836
836
|
);
|
|
837
|
-
},
|
|
837
|
+
}, dr = ({
|
|
838
838
|
headTitle: e,
|
|
839
839
|
subtitle: t,
|
|
840
840
|
buttonsConfig: n,
|
|
841
841
|
advantages: o,
|
|
842
842
|
classes: i,
|
|
843
|
-
imgMobile:
|
|
843
|
+
imgMobile: a,
|
|
844
844
|
imgDesktop: l,
|
|
845
845
|
color: u
|
|
846
846
|
}) => {
|
|
847
847
|
var I;
|
|
848
|
-
const { isDesktop: m, isMobile:
|
|
848
|
+
const { isDesktop: m, isMobile: h } = G(), { primary: p, secondary: c } = n || {}, b = a && "url" in a && s.isObject(a) ? /* @__PURE__ */ r.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: a.url }) : a, w = l && "url" in l && s.isObject(l) ? /* @__PURE__ */ r.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: l.url }) : l, v = /* @__PURE__ */ r.jsx(
|
|
849
849
|
"div",
|
|
850
850
|
{
|
|
851
|
-
className:
|
|
851
|
+
className: d(
|
|
852
852
|
"flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
|
|
853
853
|
i == null ? void 0 : i.advantageContainer
|
|
854
854
|
),
|
|
855
|
-
children: (o == null ? void 0 : o.details) && ((I = o == null ? void 0 : o.details) == null ? void 0 : I.items.length) > 0 && /* @__PURE__ */ r.jsx(
|
|
855
|
+
children: (o == null ? void 0 : o.details) && ((I = o == null ? void 0 : o.details) == null ? void 0 : I.items.length) > 0 && /* @__PURE__ */ r.jsx(vt, { ...o })
|
|
856
856
|
}
|
|
857
857
|
);
|
|
858
858
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
@@ -862,51 +862,51 @@ const Ye = [
|
|
|
862
862
|
id: g.banner,
|
|
863
863
|
"data-test-id": g.banner,
|
|
864
864
|
style: { backgroundColor: u ?? "#d9edff" },
|
|
865
|
-
className:
|
|
865
|
+
className: d("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
|
|
866
866
|
children: [
|
|
867
|
-
/* @__PURE__ */ r.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children:
|
|
868
|
-
/* @__PURE__ */ r.jsxs(S, { className:
|
|
869
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
867
|
+
/* @__PURE__ */ r.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: h ? b : w }),
|
|
868
|
+
/* @__PURE__ */ r.jsxs(S, { className: d("h-full", i == null ? void 0 : i.container), children: [
|
|
869
|
+
/* @__PURE__ */ r.jsx("div", { className: d("flex h-full", i == null ? void 0 : i.wrapper), children: /* @__PURE__ */ r.jsxs("div", { className: d("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", i == null ? void 0 : i.textBlock), children: [
|
|
870
870
|
/* @__PURE__ */ r.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
|
|
871
871
|
/* @__PURE__ */ r.jsx(
|
|
872
872
|
"div",
|
|
873
873
|
{
|
|
874
874
|
dangerouslySetInnerHTML: { __html: e },
|
|
875
|
-
className:
|
|
875
|
+
className: d("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
|
|
876
876
|
}
|
|
877
877
|
),
|
|
878
878
|
/* @__PURE__ */ r.jsx(
|
|
879
879
|
"div",
|
|
880
880
|
{
|
|
881
881
|
dangerouslySetInnerHTML: { __html: t },
|
|
882
|
-
className:
|
|
882
|
+
className: d("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
|
|
883
883
|
}
|
|
884
884
|
)
|
|
885
885
|
] }),
|
|
886
886
|
/* @__PURE__ */ r.jsxs(
|
|
887
887
|
"div",
|
|
888
888
|
{
|
|
889
|
-
className:
|
|
889
|
+
className: d(
|
|
890
890
|
"grid-buttons-apply absolute bottom-6 left-1/2 flex w-full -translate-x-1/2 flex-col self-end justify-self-center px-4 desktop:static desktop:left-auto desktop:max-w-full desktop:translate-x-0 desktop:flex-row desktop:justify-normal desktop:self-center desktop:px-0",
|
|
891
891
|
{ "flex items-center gap-4": c == null ? void 0 : c.enabled },
|
|
892
892
|
i == null ? void 0 : i.group
|
|
893
893
|
),
|
|
894
894
|
children: [
|
|
895
|
-
|
|
896
|
-
|
|
895
|
+
p.enabled && /* @__PURE__ */ r.jsx(
|
|
896
|
+
Y,
|
|
897
897
|
{
|
|
898
|
-
className:
|
|
898
|
+
className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
899
899
|
size: "lg",
|
|
900
900
|
intent: "primary",
|
|
901
|
-
...
|
|
901
|
+
...p.buttonContent
|
|
902
902
|
}
|
|
903
903
|
),
|
|
904
904
|
(c == null ? void 0 : c.enabled) && /* @__PURE__ */ r.jsx(
|
|
905
|
-
|
|
905
|
+
Y,
|
|
906
906
|
{
|
|
907
907
|
intent: "secondary",
|
|
908
|
-
className:
|
|
909
|
-
...
|
|
908
|
+
className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
|
|
909
|
+
...p.buttonContent
|
|
910
910
|
}
|
|
911
911
|
)
|
|
912
912
|
]
|
|
@@ -918,20 +918,20 @@ const Ye = [
|
|
|
918
918
|
]
|
|
919
919
|
}
|
|
920
920
|
),
|
|
921
|
-
|
|
921
|
+
h && (o == null ? void 0 : o.enabled) && v
|
|
922
922
|
] });
|
|
923
|
-
},
|
|
923
|
+
}, zt = ({
|
|
924
924
|
headTitle: e,
|
|
925
925
|
subtitle: t,
|
|
926
926
|
buttonsConfig: n,
|
|
927
927
|
advantages: o,
|
|
928
928
|
classes: i,
|
|
929
|
-
imgMobile:
|
|
929
|
+
imgMobile: a,
|
|
930
930
|
imgDesktop: l,
|
|
931
931
|
color: u
|
|
932
932
|
}) => {
|
|
933
933
|
var w, v;
|
|
934
|
-
const { isMobile: m } =
|
|
934
|
+
const { isMobile: m } = G(), { primary: h, secondary: p } = n || {}, c = a && "url" in a && s.isObject(a) ? /* @__PURE__ */ r.jsx("img", { className: "w-full object-contain", alt: a.alt, src: a.url }) : a, b = l && "url" in l && s.isObject(l) ? /* @__PURE__ */ r.jsx("img", { className: "w-full object-contain", alt: l.alt, src: l.url }) : l;
|
|
935
935
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
936
936
|
/* @__PURE__ */ r.jsx(
|
|
937
937
|
"section",
|
|
@@ -939,50 +939,50 @@ const Ye = [
|
|
|
939
939
|
id: g.banner,
|
|
940
940
|
"data-test-id": g.banner,
|
|
941
941
|
style: { backgroundColor: u ?? "#d9edff" },
|
|
942
|
-
className:
|
|
943
|
-
children: /* @__PURE__ */ r.jsxs(S, { className:
|
|
944
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
942
|
+
className: d("bg-banner-skyblue-300 desktop:h-[456px]", i == null ? void 0 : i.root),
|
|
943
|
+
children: /* @__PURE__ */ r.jsxs(S, { className: d("relative", i == null ? void 0 : i.container), children: [
|
|
944
|
+
/* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col desktop:flex-row desktop:justify-between", i == null ? void 0 : i.wrapper), children: [
|
|
945
945
|
/* @__PURE__ */ r.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
|
|
946
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
946
|
+
/* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col gap-4 pt-6 desktop:pt-0", i == null ? void 0 : i.textBlock), children: [
|
|
947
947
|
/* @__PURE__ */ r.jsx(
|
|
948
948
|
"div",
|
|
949
949
|
{
|
|
950
950
|
dangerouslySetInnerHTML: { __html: e },
|
|
951
|
-
className:
|
|
951
|
+
className: d("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
|
|
952
952
|
}
|
|
953
953
|
),
|
|
954
954
|
/* @__PURE__ */ r.jsx(
|
|
955
955
|
"div",
|
|
956
956
|
{
|
|
957
957
|
dangerouslySetInnerHTML: { __html: t },
|
|
958
|
-
className:
|
|
958
|
+
className: d("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
|
|
959
959
|
}
|
|
960
960
|
)
|
|
961
961
|
] }),
|
|
962
962
|
/* @__PURE__ */ r.jsxs(
|
|
963
963
|
"div",
|
|
964
964
|
{
|
|
965
|
-
className:
|
|
965
|
+
className: d(
|
|
966
966
|
"grid-buttons-apply absolute bottom-6 left-1/2 z-10 flex w-full -translate-x-1/2 flex-col justify-self-center px-4 desktop:static desktop:left-auto desktop:max-w-full desktop:translate-x-0 desktop:flex-row desktop:justify-normal desktop:px-0",
|
|
967
|
-
{ "flex items-center gap-4":
|
|
967
|
+
{ "flex items-center gap-4": p == null ? void 0 : p.enabled },
|
|
968
968
|
i == null ? void 0 : i.group
|
|
969
969
|
),
|
|
970
970
|
children: [
|
|
971
|
-
|
|
972
|
-
|
|
971
|
+
h.enabled && /* @__PURE__ */ r.jsx(
|
|
972
|
+
Y,
|
|
973
973
|
{
|
|
974
|
-
className:
|
|
974
|
+
className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
975
975
|
size: "lg",
|
|
976
976
|
intent: "primary",
|
|
977
|
-
...
|
|
977
|
+
...h.buttonContent
|
|
978
978
|
}
|
|
979
979
|
),
|
|
980
|
-
(
|
|
981
|
-
|
|
980
|
+
(p == null ? void 0 : p.enabled) && /* @__PURE__ */ r.jsx(
|
|
981
|
+
Y,
|
|
982
982
|
{
|
|
983
983
|
intent: "secondary",
|
|
984
|
-
className:
|
|
985
|
-
...
|
|
984
|
+
className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
|
|
985
|
+
...h.buttonContent
|
|
986
986
|
}
|
|
987
987
|
)
|
|
988
988
|
]
|
|
@@ -992,7 +992,7 @@ const Ye = [
|
|
|
992
992
|
/* @__PURE__ */ r.jsx(
|
|
993
993
|
"div",
|
|
994
994
|
{
|
|
995
|
-
className:
|
|
995
|
+
className: d(
|
|
996
996
|
"relative flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]",
|
|
997
997
|
i == null ? void 0 : i.imageContainer
|
|
998
998
|
),
|
|
@@ -1003,11 +1003,11 @@ const Ye = [
|
|
|
1003
1003
|
(o == null ? void 0 : o.enabled) && /* @__PURE__ */ r.jsx(
|
|
1004
1004
|
"div",
|
|
1005
1005
|
{
|
|
1006
|
-
className:
|
|
1006
|
+
className: d(
|
|
1007
1007
|
"items-center justify-center rounded-md bg-color-blue-grey-100 p-4 pb-8 mobile:hidden desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:flex desktop:translate-x-1/2 desktop:p-0",
|
|
1008
1008
|
i == null ? void 0 : i.advantageContainer
|
|
1009
1009
|
),
|
|
1010
|
-
children: (o == null ? void 0 : o.details) && ((w = o == null ? void 0 : o.details) == null ? void 0 : w.items.length) > 0 && /* @__PURE__ */ r.jsx(
|
|
1010
|
+
children: (o == null ? void 0 : o.details) && ((w = o == null ? void 0 : o.details) == null ? void 0 : w.items.length) > 0 && /* @__PURE__ */ r.jsx(vt, { ...o })
|
|
1011
1011
|
}
|
|
1012
1012
|
)
|
|
1013
1013
|
] })
|
|
@@ -1016,86 +1016,86 @@ const Ye = [
|
|
|
1016
1016
|
(o == null ? void 0 : o.enabled) && /* @__PURE__ */ r.jsx(
|
|
1017
1017
|
"div",
|
|
1018
1018
|
{
|
|
1019
|
-
className:
|
|
1019
|
+
className: d(
|
|
1020
1020
|
"flex items-center justify-center rounded-md bg-color-blue-grey-100 p-4 pb-8 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:hidden desktop:translate-x-1/2 desktop:p-0",
|
|
1021
1021
|
i == null ? void 0 : i.advantageContainer
|
|
1022
1022
|
),
|
|
1023
|
-
children: (o == null ? void 0 : o.details) && ((v = o == null ? void 0 : o.details) == null ? void 0 : v.items.length) > 0 && /* @__PURE__ */ r.jsx(
|
|
1023
|
+
children: (o == null ? void 0 : o.details) && ((v = o == null ? void 0 : o.details) == null ? void 0 : v.items.length) > 0 && /* @__PURE__ */ r.jsx(vt, { ...o })
|
|
1024
1024
|
}
|
|
1025
1025
|
)
|
|
1026
1026
|
] });
|
|
1027
|
-
},
|
|
1027
|
+
}, Kn = ({ variant: e, ...t }) => {
|
|
1028
1028
|
switch (e) {
|
|
1029
1029
|
case "separateImg":
|
|
1030
|
-
return /* @__PURE__ */ r.jsx(
|
|
1030
|
+
return /* @__PURE__ */ r.jsx(zt, { ...t });
|
|
1031
1031
|
case "fullImg":
|
|
1032
|
-
return /* @__PURE__ */ r.jsx(
|
|
1032
|
+
return /* @__PURE__ */ r.jsx(dr, { ...t });
|
|
1033
1033
|
default:
|
|
1034
|
-
return /* @__PURE__ */ r.jsx(
|
|
1034
|
+
return /* @__PURE__ */ r.jsx(zt, { ...t });
|
|
1035
1035
|
}
|
|
1036
|
-
},
|
|
1036
|
+
}, vt = ({ details: e, classes: t }) => {
|
|
1037
1037
|
const { variant: n, items: o } = e ?? {};
|
|
1038
1038
|
return /* @__PURE__ */ r.jsx(
|
|
1039
1039
|
"div",
|
|
1040
1040
|
{
|
|
1041
1041
|
id: "advantages",
|
|
1042
|
-
className:
|
|
1042
|
+
className: d(
|
|
1043
1043
|
"m-auto flex w-full min-w-[328px] max-w-[636px] flex-col gap-8 rounded-md bg-color-white p-6 shadow-sm desktop:w-full desktop:flex-row desktop:items-start desktop:gap-0 desktop:p-0 desktop:py-6",
|
|
1044
1044
|
{ "desktop:max-w-[860px]": n === "threeCards" },
|
|
1045
1045
|
{ "desktop:max-w-[1140px]": n === "fourCards" },
|
|
1046
1046
|
t == null ? void 0 : t.root
|
|
1047
1047
|
),
|
|
1048
|
-
children: o == null ? void 0 : o.map(({ title: i, description:
|
|
1048
|
+
children: o == null ? void 0 : o.map(({ title: i, description: a }) => /* @__PURE__ */ r.jsxs(
|
|
1049
1049
|
"div",
|
|
1050
1050
|
{
|
|
1051
|
-
className:
|
|
1051
|
+
className: d(
|
|
1052
1052
|
'after:content-[" "] relative flex h-full w-full flex-col gap-1 after:absolute after:-bottom-4 after:left-1/2 after:h-[1px] after:w-full after:-translate-x-1/2 after:bg-color-blue-grey-300 last:after:hidden desktop:w-[285px] desktop:items-center desktop:px-8 desktop:after:bottom-auto desktop:after:left-auto desktop:after:right-0 desktop:after:top-1/2 desktop:after:h-10 desktop:after:w-[1px] desktop:after:-translate-y-1/2 desktop:after:translate-x-0',
|
|
1053
1053
|
t == null ? void 0 : t.item
|
|
1054
1054
|
),
|
|
1055
1055
|
children: [
|
|
1056
|
-
/* @__PURE__ */ r.jsx(H, { as: "h4", className:
|
|
1057
|
-
/* @__PURE__ */ r.jsx("p", { className:
|
|
1056
|
+
/* @__PURE__ */ r.jsx(H, { as: "h4", className: d("text-color-dark", t == null ? void 0 : t.title), children: i }),
|
|
1057
|
+
/* @__PURE__ */ r.jsx("p", { className: d("desk-body-regular-l text-color-secondary", t == null ? void 0 : t.description), children: a })
|
|
1058
1058
|
]
|
|
1059
1059
|
},
|
|
1060
1060
|
i
|
|
1061
1061
|
))
|
|
1062
1062
|
}
|
|
1063
1063
|
);
|
|
1064
|
-
}, lr = ({ socialsLinks: e, classes: t }) => /* @__PURE__ */ r.jsx("div", { className:
|
|
1064
|
+
}, lr = ({ socialsLinks: e, classes: t }) => /* @__PURE__ */ r.jsx("div", { className: d("mt-4 flex items-center gap-2 desktop:mt-6", t == null ? void 0 : t.socialRoot), children: e == null ? void 0 : e.map(({ iconName: n, href: o }) => /* @__PURE__ */ r.jsx(
|
|
1065
1065
|
"a",
|
|
1066
1066
|
{
|
|
1067
|
-
className:
|
|
1067
|
+
className: d("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", t == null ? void 0 : t.socialLink),
|
|
1068
1068
|
href: o,
|
|
1069
1069
|
"aria-label": n.replace("social/", ""),
|
|
1070
|
-
children: /* @__PURE__ */ r.jsx(f, { name: n, className:
|
|
1070
|
+
children: /* @__PURE__ */ r.jsx(f, { name: n, className: d("h-full w-full text-icon-white", t == null ? void 0 : t.socialIcon) })
|
|
1071
1071
|
},
|
|
1072
1072
|
o
|
|
1073
|
-
)) }), ur = ({ phones: e, classes: t }) => /* @__PURE__ */ r.jsx("div", { className:
|
|
1074
|
-
|
|
1073
|
+
)) }), ur = ({ phones: e, classes: t }) => /* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-4 desktop:items-end", t == null ? void 0 : t.phonesRoot), children: e == null ? void 0 : e.map(({ phone: n, text: o }) => /* @__PURE__ */ r.jsx(
|
|
1074
|
+
Xt,
|
|
1075
1075
|
{
|
|
1076
|
-
phone:
|
|
1076
|
+
phone: yt(n),
|
|
1077
1077
|
text: o,
|
|
1078
1078
|
classes: {
|
|
1079
|
-
root:
|
|
1080
|
-
text:
|
|
1081
|
-
link:
|
|
1079
|
+
root: d(t == null ? void 0 : t.phoneWrapper),
|
|
1080
|
+
text: d("text-color-footer", t == null ? void 0 : t.phoneText),
|
|
1081
|
+
link: d("text-color-white mobile:m-0", t == null ? void 0 : t.phoneLink)
|
|
1082
1082
|
}
|
|
1083
1083
|
},
|
|
1084
1084
|
n
|
|
1085
1085
|
)) }), mr = ({ classes: e, details: t }) => /* @__PURE__ */ r.jsx(
|
|
1086
1086
|
"div",
|
|
1087
1087
|
{
|
|
1088
|
-
className:
|
|
1088
|
+
className: d(
|
|
1089
1089
|
"mt-6 grid grid-cols-1 gap-6 border-b border-blue-grey-500 pb-6 desktop:my-8 desktop:grid-cols-4 desktop:gap-10 desktop:pb-8",
|
|
1090
1090
|
e == null ? void 0 : e.navRoot
|
|
1091
1091
|
),
|
|
1092
1092
|
children: t == null ? void 0 : t.map(
|
|
1093
|
-
({ column: n }) => n == null ? void 0 : n.map(({ groupLabel: o, links: i }) => /* @__PURE__ */ r.jsxs("div", { className:
|
|
1094
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1095
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1096
|
-
|
|
1093
|
+
({ column: n }) => n == null ? void 0 : n.map(({ groupLabel: o, links: i }) => /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col gap-4", e == null ? void 0 : e.navGroup), children: [
|
|
1094
|
+
/* @__PURE__ */ r.jsx("div", { className: d("desk-body-medium-l text-color-white", e == null ? void 0 : e.navLabel), children: o }),
|
|
1095
|
+
/* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-1", e == null ? void 0 : e.navLinks), children: i == null ? void 0 : i.map(({ path: a, label: l }) => /* @__PURE__ */ r.jsx(
|
|
1096
|
+
jt,
|
|
1097
1097
|
{
|
|
1098
|
-
href:
|
|
1098
|
+
href: a,
|
|
1099
1099
|
"aria-label": l,
|
|
1100
1100
|
intent: "white",
|
|
1101
1101
|
classes: {
|
|
@@ -1109,22 +1109,22 @@ const Ye = [
|
|
|
1109
1109
|
] }, o))
|
|
1110
1110
|
)
|
|
1111
1111
|
}
|
|
1112
|
-
),
|
|
1112
|
+
), hr = ({ text: e, classes: t }) => /* @__PURE__ */ r.jsx(
|
|
1113
1113
|
"div",
|
|
1114
1114
|
{
|
|
1115
|
-
className:
|
|
1115
|
+
className: d("desk-body-regular-m text-color-footer", t == null ? void 0 : t.copyRight),
|
|
1116
1116
|
dangerouslySetInnerHTML: { __html: e }
|
|
1117
1117
|
}
|
|
1118
|
-
),
|
|
1118
|
+
), xr = ({ classes: e }) => /* @__PURE__ */ r.jsx(
|
|
1119
1119
|
"a",
|
|
1120
1120
|
{
|
|
1121
1121
|
"aria-label": "logo",
|
|
1122
1122
|
href: "https://sovcombank.ru/",
|
|
1123
|
-
className:
|
|
1124
|
-
children: /* @__PURE__ */ r.jsx(f, { name: "brandLogos/logoWhite", className:
|
|
1123
|
+
className: d("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", e == null ? void 0 : e.footerLogo),
|
|
1124
|
+
children: /* @__PURE__ */ r.jsx(f, { name: "brandLogos/logoWhite", className: d("size-full", e == null ? void 0 : e.footerLogoIcon) })
|
|
1125
1125
|
}
|
|
1126
|
-
),
|
|
1127
|
-
|
|
1126
|
+
), pr = ({ classes: e }) => /* @__PURE__ */ r.jsx(
|
|
1127
|
+
jt,
|
|
1128
1128
|
{
|
|
1129
1129
|
intent: "white",
|
|
1130
1130
|
href: "https://sovcombank.ru/site-map",
|
|
@@ -1132,22 +1132,22 @@ const Ye = [
|
|
|
1132
1132
|
"aria-label": "site-map",
|
|
1133
1133
|
rel: "noreferrer",
|
|
1134
1134
|
classes: {
|
|
1135
|
-
link:
|
|
1135
|
+
link: d("mobile:mt-6", e == null ? void 0 : e.siteMapLink),
|
|
1136
1136
|
icon: e == null ? void 0 : e.siteMapLinkIcon
|
|
1137
1137
|
},
|
|
1138
1138
|
children: "Карта сайта"
|
|
1139
1139
|
}
|
|
1140
1140
|
), cr = ({ text: e, classes: t }) => {
|
|
1141
|
-
const [n, o] =
|
|
1142
|
-
return
|
|
1141
|
+
const [n, o] = lt.useState(!1), [i, a] = lt.useState(!1), l = lt.useRef(null);
|
|
1142
|
+
return lt.useEffect(() => {
|
|
1143
1143
|
const u = l.current;
|
|
1144
|
-
u &&
|
|
1145
|
-
}, []), /* @__PURE__ */ r.jsxs("div", { className:
|
|
1144
|
+
u && a(u.scrollHeight > u.clientHeight);
|
|
1145
|
+
}, []), /* @__PURE__ */ r.jsxs("div", { className: d("mt-8 flex flex-col gap-4", t == null ? void 0 : t.ligalRoot), children: [
|
|
1146
1146
|
/* @__PURE__ */ r.jsx(
|
|
1147
1147
|
"div",
|
|
1148
1148
|
{
|
|
1149
1149
|
ref: l,
|
|
1150
|
-
className:
|
|
1150
|
+
className: d("desk-body-regular-m text-color-footer", { "line-clamp-3": !n }, t == null ? void 0 : t.ligalText),
|
|
1151
1151
|
dangerouslySetInnerHTML: { __html: e }
|
|
1152
1152
|
}
|
|
1153
1153
|
),
|
|
@@ -1157,7 +1157,7 @@ const Ye = [
|
|
|
1157
1157
|
tabIndex: 0,
|
|
1158
1158
|
role: "button",
|
|
1159
1159
|
onClick: () => o((u) => !u),
|
|
1160
|
-
className:
|
|
1160
|
+
className: d(
|
|
1161
1161
|
"desk-body-regular-l w-max cursor-pointer font-medium text-color-footer transition-colors hover:text-color-white",
|
|
1162
1162
|
t == null ? void 0 : t.ligalButton
|
|
1163
1163
|
),
|
|
@@ -1165,60 +1165,60 @@ const Ye = [
|
|
|
1165
1165
|
}
|
|
1166
1166
|
)
|
|
1167
1167
|
] });
|
|
1168
|
-
},
|
|
1168
|
+
}, Zn = ({
|
|
1169
1169
|
socialsLinks: e,
|
|
1170
1170
|
phones: t,
|
|
1171
1171
|
ligal: n,
|
|
1172
1172
|
copyright: o,
|
|
1173
1173
|
classes: i,
|
|
1174
|
-
details:
|
|
1174
|
+
details: a,
|
|
1175
1175
|
siteMap: l = !0
|
|
1176
1176
|
}) => /* @__PURE__ */ r.jsx(
|
|
1177
1177
|
"footer",
|
|
1178
1178
|
{
|
|
1179
1179
|
id: g.footer,
|
|
1180
1180
|
"data-test-id": g.footer,
|
|
1181
|
-
className:
|
|
1182
|
-
children: /* @__PURE__ */ r.jsx(S, { className:
|
|
1181
|
+
className: d("w-full bg-color-footer py-8 desktop:py-10", i == null ? void 0 : i.root),
|
|
1182
|
+
children: /* @__PURE__ */ r.jsx(S, { className: d(i == null ? void 0 : i.footerContainer), children: /* @__PURE__ */ r.jsxs("div", { className: d("mobile:pb-[176px]", i == null ? void 0 : i.footerWrapper), children: [
|
|
1183
1183
|
/* @__PURE__ */ r.jsxs(
|
|
1184
1184
|
"div",
|
|
1185
1185
|
{
|
|
1186
|
-
className:
|
|
1186
|
+
className: d(
|
|
1187
1187
|
"flex flex-col items-start justify-between gap-4 border-b border-solid border-blue-grey-500 pb-6 desktop:flex-row desktop:gap-6 desktop:pb-8",
|
|
1188
1188
|
i == null ? void 0 : i.footerHead
|
|
1189
1189
|
),
|
|
1190
1190
|
children: [
|
|
1191
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1192
|
-
/* @__PURE__ */ r.jsx(
|
|
1191
|
+
/* @__PURE__ */ r.jsxs("div", { className: d(i == null ? void 0 : i.footerSocialBlock), children: [
|
|
1192
|
+
/* @__PURE__ */ r.jsx(xr, { classes: i == null ? void 0 : i.footerLogo }),
|
|
1193
1193
|
e.enabled && /* @__PURE__ */ r.jsx(lr, { socialsLinks: e.links, classes: i == null ? void 0 : i.socialLinks })
|
|
1194
1194
|
] }),
|
|
1195
1195
|
t.enabled && /* @__PURE__ */ r.jsx(ur, { phones: t.items, classes: i == null ? void 0 : i.phonesBlock })
|
|
1196
1196
|
]
|
|
1197
1197
|
}
|
|
1198
1198
|
),
|
|
1199
|
-
!s.isArrayEmpty(
|
|
1199
|
+
!s.isArrayEmpty(a) && /* @__PURE__ */ r.jsx(mr, { details: a, classes: i == null ? void 0 : i.navLinks }),
|
|
1200
1200
|
n.enabled && /* @__PURE__ */ r.jsx(cr, { text: n.text }),
|
|
1201
1201
|
/* @__PURE__ */ r.jsxs(
|
|
1202
1202
|
"div",
|
|
1203
1203
|
{
|
|
1204
|
-
className:
|
|
1204
|
+
className: d(
|
|
1205
1205
|
"mt-6 flex flex-col-reverse items-start justify-between gap-4 desktop:mt-8 desktop:flex-row desktop:gap-6",
|
|
1206
1206
|
i == null ? void 0 : i.footerBottom
|
|
1207
1207
|
),
|
|
1208
1208
|
children: [
|
|
1209
|
-
o.enabled && /* @__PURE__ */ r.jsx(
|
|
1210
|
-
l && /* @__PURE__ */ r.jsx(
|
|
1209
|
+
o.enabled && /* @__PURE__ */ r.jsx(hr, { text: o.text, classes: i == null ? void 0 : i.copyright }),
|
|
1210
|
+
l && /* @__PURE__ */ r.jsx(pr, { classes: i == null ? void 0 : i.siteMap })
|
|
1211
1211
|
]
|
|
1212
1212
|
}
|
|
1213
1213
|
)
|
|
1214
1214
|
] }) })
|
|
1215
1215
|
}
|
|
1216
1216
|
), fr = ({ classes: e, index: t, variant: n, title: o, description: i }) => {
|
|
1217
|
-
const
|
|
1217
|
+
const a = n === "withTitleAndDescription" && o;
|
|
1218
1218
|
return /* @__PURE__ */ r.jsxs(
|
|
1219
1219
|
"div",
|
|
1220
1220
|
{
|
|
1221
|
-
className:
|
|
1221
|
+
className: d(
|
|
1222
1222
|
"flex w-[328px] max-w-[328px] flex-col gap-4 rounded-md border border-solid border-blue-grey-500 p-4 desktop:w-[348px] desktop:max-w-[348px] desktop:border-none desktop:p-0",
|
|
1223
1223
|
e == null ? void 0 : e.singleStep
|
|
1224
1224
|
),
|
|
@@ -1226,45 +1226,45 @@ const Ye = [
|
|
|
1226
1226
|
/* @__PURE__ */ r.jsx(
|
|
1227
1227
|
"div",
|
|
1228
1228
|
{
|
|
1229
|
-
className:
|
|
1229
|
+
className: d(
|
|
1230
1230
|
"mob-headline-bold-s flex size-10 items-center justify-center rounded-sm bg-color-blue-grey-500 text-color-white desktop:desk-title-bold-l desktop:size-12",
|
|
1231
1231
|
e == null ? void 0 : e.numeric
|
|
1232
1232
|
),
|
|
1233
1233
|
children: t
|
|
1234
1234
|
}
|
|
1235
1235
|
),
|
|
1236
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1237
|
-
|
|
1236
|
+
/* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col gap-2"), children: [
|
|
1237
|
+
a && /* @__PURE__ */ r.jsx(
|
|
1238
1238
|
"div",
|
|
1239
1239
|
{
|
|
1240
1240
|
dangerouslySetInnerHTML: { __html: o },
|
|
1241
|
-
className:
|
|
1241
|
+
className: d("mob-title-bold-m text-color-dark desktop:desk-title-bold-s", e == null ? void 0 : e.title)
|
|
1242
1242
|
}
|
|
1243
1243
|
),
|
|
1244
1244
|
/* @__PURE__ */ r.jsx(
|
|
1245
1245
|
"div",
|
|
1246
1246
|
{
|
|
1247
1247
|
dangerouslySetInnerHTML: { __html: i ?? "" },
|
|
1248
|
-
className:
|
|
1248
|
+
className: d("desk-body-regular-l text-color-tetriary", e == null ? void 0 : e.description)
|
|
1249
1249
|
}
|
|
1250
1250
|
)
|
|
1251
1251
|
] })
|
|
1252
1252
|
]
|
|
1253
1253
|
}
|
|
1254
1254
|
);
|
|
1255
|
-
},
|
|
1256
|
-
/* @__PURE__ */ r.jsx(H, { as: "h2", className:
|
|
1255
|
+
}, Xn = ({ headline: e, details: t, variant: n, classes: o }) => /* @__PURE__ */ r.jsx("section", { id: g.stepper, "data-test-id": g.stepper, className: o == null ? void 0 : o.root, children: /* @__PURE__ */ r.jsx(S, { className: o == null ? void 0 : o.container, children: /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col gap-6 desktop:items-start desktop:gap-12", o == null ? void 0 : o.wrapper), children: [
|
|
1256
|
+
/* @__PURE__ */ r.jsx(H, { as: "h2", className: d("text-color-dark", o == null ? void 0 : o.headline), children: e }),
|
|
1257
1257
|
/* @__PURE__ */ r.jsx(
|
|
1258
1258
|
"div",
|
|
1259
1259
|
{
|
|
1260
|
-
className:
|
|
1260
|
+
className: d(
|
|
1261
1261
|
"flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
|
|
1262
1262
|
o == null ? void 0 : o.stepsWrapper
|
|
1263
1263
|
),
|
|
1264
|
-
children: t == null ? void 0 : t.map((i,
|
|
1264
|
+
children: t == null ? void 0 : t.map((i, a) => /* @__PURE__ */ r.jsx(fr, { variant: n, ...i, index: a + 1, classes: o == null ? void 0 : o.step }, i.description))
|
|
1265
1265
|
}
|
|
1266
1266
|
)
|
|
1267
|
-
] }) }) }), br =
|
|
1267
|
+
] }) }) }), br = T("", {
|
|
1268
1268
|
variants: {
|
|
1269
1269
|
intent: {
|
|
1270
1270
|
twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
|
|
@@ -1280,7 +1280,7 @@ const Ye = [
|
|
|
1280
1280
|
defaultVariants: {
|
|
1281
1281
|
intent: "twoItems"
|
|
1282
1282
|
}
|
|
1283
|
-
}), gr =
|
|
1283
|
+
}), gr = T("", {
|
|
1284
1284
|
variants: {
|
|
1285
1285
|
intent: {
|
|
1286
1286
|
twoItems: "",
|
|
@@ -1312,7 +1312,7 @@ const Ye = [
|
|
|
1312
1312
|
class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
1313
1313
|
}
|
|
1314
1314
|
]
|
|
1315
|
-
}), jr =
|
|
1315
|
+
}), jr = T("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
|
|
1316
1316
|
variants: {
|
|
1317
1317
|
intent: {
|
|
1318
1318
|
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',
|
|
@@ -1322,7 +1322,7 @@ const Ye = [
|
|
|
1322
1322
|
defaultVariants: {
|
|
1323
1323
|
intent: "twoItems"
|
|
1324
1324
|
}
|
|
1325
|
-
}), yr =
|
|
1325
|
+
}), yr = T("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
|
|
1326
1326
|
variants: {
|
|
1327
1327
|
intent: {
|
|
1328
1328
|
twoItems: "desktop:h-[232px] desktop:w-[500px]",
|
|
@@ -1356,45 +1356,45 @@ const Ye = [
|
|
|
1356
1356
|
enabled: !1
|
|
1357
1357
|
}
|
|
1358
1358
|
} = e;
|
|
1359
|
-
return /* @__PURE__ */ r.jsx("li", { className:
|
|
1360
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1361
|
-
/* @__PURE__ */ r.jsx("h4", { className:
|
|
1362
|
-
i.enabled && /* @__PURE__ */ r.jsx(
|
|
1359
|
+
return /* @__PURE__ */ r.jsx("li", { className: d(jr({ intent: t })), children: /* @__PURE__ */ r.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
1360
|
+
/* @__PURE__ */ r.jsxs("div", { className: d("mb-2 flex items-center gap-2"), children: [
|
|
1361
|
+
/* @__PURE__ */ r.jsx("h4", { className: d("mob-title-bold-m text-color-dark"), children: n }),
|
|
1362
|
+
i.enabled && /* @__PURE__ */ r.jsx(Ct, { triggerElement: /* @__PURE__ */ r.jsx(f, { className: d("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i.text })
|
|
1363
1363
|
] }),
|
|
1364
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1364
|
+
/* @__PURE__ */ r.jsx("div", { className: d("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: o } })
|
|
1365
1365
|
] }) });
|
|
1366
|
-
},
|
|
1366
|
+
}, kt = ({ intent: e, headline: t, desktopHidden: n = !1, mobileHidden: o = !1 }) => /* @__PURE__ */ r.jsx("h2", { className: d(br({ intent: e, desktopHidden: n, mobileHidden: o })), children: t }), kr = ({ details: e, intent: t, withButton: n }) => /* @__PURE__ */ r.jsx("ul", { className: d(gr({ intent: t, withButton: n })), children: e == null ? void 0 : e.map((o, i) => /* @__PURE__ */ r.jsx(sr, { intent: t, data: o }, i)) }), Jn = ({
|
|
1367
1367
|
headline: e,
|
|
1368
1368
|
buttonConfig: t,
|
|
1369
1369
|
intent: n = "twoItems",
|
|
1370
1370
|
details: o,
|
|
1371
1371
|
image: i,
|
|
1372
|
-
classes:
|
|
1372
|
+
classes: a
|
|
1373
1373
|
}) => {
|
|
1374
1374
|
const l = n === "fourItems", u = n === "twoItems", m = i && "url" in i && s.isObject(i) ? /* @__PURE__ */ r.jsx("img", { className: "w-full object-contain", alt: i.alt, src: i.url }) : i;
|
|
1375
|
-
return /* @__PURE__ */ r.jsx("section", { id: g.longBanner, "data-test-id": g.longBanner, className: a
|
|
1376
|
-
u && /* @__PURE__ */ r.jsx(
|
|
1375
|
+
return /* @__PURE__ */ r.jsx("section", { id: g.longBanner, "data-test-id": g.longBanner, className: d(a == null ? void 0 : a.root), children: /* @__PURE__ */ r.jsxs(S, { className: d(a == null ? void 0 : a.container), children: [
|
|
1376
|
+
u && /* @__PURE__ */ r.jsx(kt, { intent: n, headline: e }),
|
|
1377
1377
|
/* @__PURE__ */ r.jsxs(
|
|
1378
1378
|
"div",
|
|
1379
1379
|
{
|
|
1380
|
-
className:
|
|
1380
|
+
className: d(
|
|
1381
1381
|
"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",
|
|
1382
|
-
|
|
1382
|
+
a == null ? void 0 : a.contentContainer
|
|
1383
1383
|
),
|
|
1384
1384
|
children: [
|
|
1385
|
-
l && /* @__PURE__ */ r.jsx(
|
|
1386
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1385
|
+
l && /* @__PURE__ */ r.jsx(kt, { intent: n, headline: e, desktopHidden: !0 }),
|
|
1386
|
+
/* @__PURE__ */ r.jsx("div", { className: d(yr({ intent: n, withButton: t == null ? void 0 : t.enabled }), a == null ? void 0 : a.imgContainer), children: m }),
|
|
1387
1387
|
/* @__PURE__ */ r.jsxs(
|
|
1388
1388
|
"div",
|
|
1389
1389
|
{
|
|
1390
|
-
className:
|
|
1390
|
+
className: d("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", a == null ? void 0 : a.textWithBtnContainer),
|
|
1391
1391
|
children: [
|
|
1392
|
-
l && /* @__PURE__ */ r.jsx(
|
|
1392
|
+
l && /* @__PURE__ */ r.jsx(kt, { intent: n, headline: e, mobileHidden: !0 }),
|
|
1393
1393
|
/* @__PURE__ */ r.jsx(kr, { details: o, intent: n, withButton: (t == null ? void 0 : t.enabled) ?? !1 }),
|
|
1394
1394
|
(t == null ? void 0 : t.enabled) && t && /* @__PURE__ */ r.jsx(
|
|
1395
|
-
|
|
1395
|
+
Y,
|
|
1396
1396
|
{
|
|
1397
|
-
className:
|
|
1397
|
+
className: d("w-full px-4 desktop:w-max", a == null ? void 0 : a.button),
|
|
1398
1398
|
size: "lg",
|
|
1399
1399
|
intent: "secondary",
|
|
1400
1400
|
...t.buttonContent
|
|
@@ -1407,15 +1407,15 @@ const Ye = [
|
|
|
1407
1407
|
}
|
|
1408
1408
|
)
|
|
1409
1409
|
] }) });
|
|
1410
|
-
},
|
|
1410
|
+
}, wt = {
|
|
1411
1411
|
ESIA: "esia",
|
|
1412
1412
|
MOBILE_ID: "mobileId",
|
|
1413
1413
|
COMBINE: "combine"
|
|
1414
|
-
},
|
|
1414
|
+
}, me = ({ children: e, isLoading: t, classes: n, loaderProps: o }) => /* @__PURE__ */ r.jsx(
|
|
1415
1415
|
"div",
|
|
1416
1416
|
{
|
|
1417
1417
|
tabIndex: 0,
|
|
1418
|
-
className:
|
|
1418
|
+
className: d(
|
|
1419
1419
|
"relative flex h-[90px] w-full max-w-[328px] items-center justify-center rounded-sm p-2 desktop:max-w-[524px]",
|
|
1420
1420
|
"bg-color-white outline outline-1 outline-warm-grey-200 transition-colors focus-visible:outline-primary-focus",
|
|
1421
1421
|
n == null ? void 0 : n.root
|
|
@@ -1423,13 +1423,13 @@ const Ye = [
|
|
|
1423
1423
|
children: /* @__PURE__ */ r.jsx(
|
|
1424
1424
|
"div",
|
|
1425
1425
|
{
|
|
1426
|
-
className:
|
|
1426
|
+
className: d(
|
|
1427
1427
|
"flex h-[74px] flex-1 cursor-pointer rounded-sm px-2 py-3 transition-colors desktop:px-4 desktop:py-3",
|
|
1428
1428
|
"bg-color-blue-grey-100 hover:bg-color-blue-grey-200 active:bg-color-blue-grey-300",
|
|
1429
1429
|
{ "items-center": t },
|
|
1430
1430
|
n == null ? void 0 : n.wrapper
|
|
1431
1431
|
),
|
|
1432
|
-
children: t ? /* @__PURE__ */ r.jsx(
|
|
1432
|
+
children: t ? /* @__PURE__ */ r.jsx(Te, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...o }) : e
|
|
1433
1433
|
}
|
|
1434
1434
|
)
|
|
1435
1435
|
}
|
|
@@ -1461,14 +1461,14 @@ const Ye = [
|
|
|
1461
1461
|
/* @__PURE__ */ r.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
|
|
1462
1462
|
/* @__PURE__ */ r.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
|
|
1463
1463
|
] }) })
|
|
1464
|
-
] }), he = ({ mainLink: e, subLink: t, isMobile: n, classes: o }) => /* @__PURE__ */ r.jsxs("div", { className:
|
|
1464
|
+
] }), he = ({ mainLink: e, subLink: t, isMobile: n, classes: o }) => /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col", o == null ? void 0 : o.linksWrapper), children: [
|
|
1465
1465
|
/* @__PURE__ */ r.jsx(
|
|
1466
1466
|
"a",
|
|
1467
1467
|
{
|
|
1468
1468
|
href: e.href,
|
|
1469
1469
|
target: "_blank",
|
|
1470
1470
|
rel: "noreferrer",
|
|
1471
|
-
className:
|
|
1471
|
+
className: d(
|
|
1472
1472
|
'before:content=[" "] desk-body-medium-l z-[4] text-color-dark before:absolute before:left-1/2 before:top-1/2 before:h-full before:w-full before:-translate-x-1/2 before:-translate-y-1/2',
|
|
1473
1473
|
o == null ? void 0 : o.linksMainLink
|
|
1474
1474
|
),
|
|
@@ -1476,7 +1476,7 @@ const Ye = [
|
|
|
1476
1476
|
}
|
|
1477
1477
|
),
|
|
1478
1478
|
(t == null ? void 0 : t.text) && (t == null ? void 0 : t.href) && /* @__PURE__ */ r.jsx(
|
|
1479
|
-
|
|
1479
|
+
jt,
|
|
1480
1480
|
{
|
|
1481
1481
|
intent: "blue",
|
|
1482
1482
|
withUnderline: !0,
|
|
@@ -1484,79 +1484,79 @@ const Ye = [
|
|
|
1484
1484
|
target: "_blank",
|
|
1485
1485
|
rel: "noreferrer",
|
|
1486
1486
|
classes: {
|
|
1487
|
-
link:
|
|
1487
|
+
link: d("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary", o == null ? void 0 : o.linksSubLink)
|
|
1488
1488
|
},
|
|
1489
1489
|
children: t == null ? void 0 : t.text
|
|
1490
1490
|
}
|
|
1491
1491
|
)
|
|
1492
|
-
] }),
|
|
1493
|
-
const { isMobile: l } =
|
|
1494
|
-
return /* @__PURE__ */ r.jsx(
|
|
1492
|
+
] }), Qt = ({ mainLink: e, subLink: t, isLoading: n, badge: o, loaderProps: i, classes: a }) => {
|
|
1493
|
+
const { isMobile: l } = G();
|
|
1494
|
+
return /* @__PURE__ */ r.jsx(me, { isLoading: n, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
1495
1495
|
"div",
|
|
1496
1496
|
{
|
|
1497
|
-
className:
|
|
1497
|
+
className: d(
|
|
1498
1498
|
"flex flex-1 items-center justify-between gap-1",
|
|
1499
1499
|
{ "justify-center": !o && l },
|
|
1500
|
-
|
|
1500
|
+
a == null ? void 0 : a.innerWrapper
|
|
1501
1501
|
),
|
|
1502
1502
|
children: [
|
|
1503
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1503
|
+
/* @__PURE__ */ r.jsxs("div", { className: d("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
|
|
1504
1504
|
/* @__PURE__ */ r.jsxs("div", { children: [
|
|
1505
|
-
/* @__PURE__ */ r.jsx(f, { name: "logos/mts", className:
|
|
1506
|
-
/* @__PURE__ */ r.jsx(f, { name: "logos/megafon", className:
|
|
1507
|
-
/* @__PURE__ */ r.jsx(f, { name: "logos/beeline", className:
|
|
1505
|
+
/* @__PURE__ */ r.jsx(f, { name: "logos/mts", className: d("relative z-[9] size-7 desktop:size-8", a == null ? void 0 : a.mtsLogo) }),
|
|
1506
|
+
/* @__PURE__ */ r.jsx(f, { name: "logos/megafon", className: d("relative z-[8] -ml-4 size-7 desktop:size-8", a == null ? void 0 : a.megafonLogo) }),
|
|
1507
|
+
/* @__PURE__ */ r.jsx(f, { name: "logos/beeline", className: d("relative z-[7] -ml-4 size-7 desktop:size-8", a == null ? void 0 : a.beelineLogo) })
|
|
1508
1508
|
] }),
|
|
1509
|
-
/* @__PURE__ */ r.jsx(he, { mainLink: e, subLink: t, isMobile: l, classes:
|
|
1510
|
-
/* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className:
|
|
1509
|
+
/* @__PURE__ */ r.jsx(he, { mainLink: e, subLink: t, isMobile: l, classes: a == null ? void 0 : a.links }),
|
|
1510
|
+
/* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className: d("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
|
|
1511
1511
|
] }),
|
|
1512
|
-
o && /* @__PURE__ */ r.jsx(
|
|
1512
|
+
o && /* @__PURE__ */ r.jsx(It, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: o })
|
|
1513
1513
|
]
|
|
1514
1514
|
}
|
|
1515
1515
|
) });
|
|
1516
|
-
},
|
|
1517
|
-
const { isMobile: l } =
|
|
1518
|
-
return /* @__PURE__ */ r.jsx(
|
|
1516
|
+
}, At = ({ mainLink: e, subLink: t, isLoading: n, badge: o, loaderProps: i, classes: a }) => {
|
|
1517
|
+
const { isMobile: l } = G();
|
|
1518
|
+
return /* @__PURE__ */ r.jsx(me, { isLoading: n, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
1519
1519
|
"div",
|
|
1520
1520
|
{
|
|
1521
|
-
className:
|
|
1521
|
+
className: d(
|
|
1522
1522
|
"flex flex-1 items-center justify-between gap-1",
|
|
1523
1523
|
{ "justify-center": !o && l },
|
|
1524
|
-
|
|
1524
|
+
a == null ? void 0 : a.innerWrapper
|
|
1525
1525
|
),
|
|
1526
1526
|
children: [
|
|
1527
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1528
|
-
/* @__PURE__ */ r.jsx(wr, { className:
|
|
1529
|
-
/* @__PURE__ */ r.jsx(he, { mainLink: e, subLink: t, isMobile: l, classes:
|
|
1530
|
-
/* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className:
|
|
1527
|
+
/* @__PURE__ */ r.jsxs("div", { className: d("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
|
|
1528
|
+
/* @__PURE__ */ r.jsx(wr, { className: d("size-7 desktop:size-8", a == null ? void 0 : a.esiaLogo) }),
|
|
1529
|
+
/* @__PURE__ */ r.jsx(he, { mainLink: e, subLink: t, isMobile: l, classes: a == null ? void 0 : a.links }),
|
|
1530
|
+
/* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className: d("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
|
|
1531
1531
|
] }),
|
|
1532
|
-
o && /* @__PURE__ */ r.jsx(
|
|
1532
|
+
o && /* @__PURE__ */ r.jsx(It, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: o })
|
|
1533
1533
|
]
|
|
1534
1534
|
}
|
|
1535
1535
|
) });
|
|
1536
1536
|
}, vr = (e) => {
|
|
1537
1537
|
switch (e.mode) {
|
|
1538
|
-
case
|
|
1539
|
-
return /* @__PURE__ */ r.jsx(
|
|
1540
|
-
case
|
|
1541
|
-
return /* @__PURE__ */ r.jsx(
|
|
1542
|
-
case
|
|
1538
|
+
case wt.ESIA:
|
|
1539
|
+
return /* @__PURE__ */ r.jsx(At, { ...e });
|
|
1540
|
+
case wt.MOBILE_ID:
|
|
1541
|
+
return /* @__PURE__ */ r.jsx(Qt, { ...e });
|
|
1542
|
+
case wt.COMBINE:
|
|
1543
1543
|
default:
|
|
1544
|
-
const { esiaConfig: t, mobileIdConfig: n, subtitle: o, badge: i, classes:
|
|
1544
|
+
const { esiaConfig: t, mobileIdConfig: n, subtitle: o, badge: i, classes: a } = e, l = !o && !i ? lt.Fragment : "div";
|
|
1545
1545
|
return /* @__PURE__ */ r.jsxs(
|
|
1546
1546
|
"div",
|
|
1547
1547
|
{
|
|
1548
|
-
className:
|
|
1548
|
+
className: d(
|
|
1549
1549
|
"flex w-[328px] flex-col items-center justify-center gap-2 rounded-sm bg-color-white px-2 py-4 outline outline-1 outline-warm-grey-200 desktop:w-[524px] desktop:p-4",
|
|
1550
|
-
|
|
1550
|
+
a == null ? void 0 : a.root
|
|
1551
1551
|
),
|
|
1552
1552
|
children: [
|
|
1553
|
-
/* @__PURE__ */ r.jsxs(l, { className:
|
|
1554
|
-
o && /* @__PURE__ */ r.jsx("h5", { className:
|
|
1555
|
-
i && /* @__PURE__ */ r.jsx(
|
|
1553
|
+
/* @__PURE__ */ r.jsxs(l, { className: d("flex w-full items-center justify-between gap-2", a == null ? void 0 : a.topContent), children: [
|
|
1554
|
+
o && /* @__PURE__ */ r.jsx("h5", { className: d("desk-body-regular-l flex flex-1 text-color-dark", a == null ? void 0 : a.subtitle), children: o }),
|
|
1555
|
+
i && /* @__PURE__ */ r.jsx(It, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: i })
|
|
1556
1556
|
] }),
|
|
1557
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1557
|
+
/* @__PURE__ */ r.jsxs("div", { className: d("grid w-full grid-cols-2 gap-2 desktop:gap-4", a == null ? void 0 : a.authWrapper), children: [
|
|
1558
1558
|
/* @__PURE__ */ r.jsx(
|
|
1559
|
-
|
|
1559
|
+
At,
|
|
1560
1560
|
{
|
|
1561
1561
|
...t,
|
|
1562
1562
|
classes: {
|
|
@@ -1567,7 +1567,7 @@ const Ye = [
|
|
|
1567
1567
|
}
|
|
1568
1568
|
),
|
|
1569
1569
|
/* @__PURE__ */ r.jsx(
|
|
1570
|
-
|
|
1570
|
+
Qt,
|
|
1571
1571
|
{
|
|
1572
1572
|
...n,
|
|
1573
1573
|
classes: {
|
|
@@ -1582,12 +1582,12 @@ const Ye = [
|
|
|
1582
1582
|
}
|
|
1583
1583
|
);
|
|
1584
1584
|
}
|
|
1585
|
-
},
|
|
1586
|
-
|
|
1585
|
+
}, Yn = (e) => vr(e), Vt = ({ links: e, classes: t }) => /* @__PURE__ */ r.jsx("nav", { className: d("flex flex-col gap-1", t == null ? void 0 : t.linksWrapper), children: e == null ? void 0 : e.map(({ path: n, label: o }) => /* @__PURE__ */ r.jsx(
|
|
1586
|
+
jt,
|
|
1587
1587
|
{
|
|
1588
1588
|
classes: {
|
|
1589
|
-
link:
|
|
1590
|
-
icon:
|
|
1589
|
+
link: d("w-max", t == null ? void 0 : t.linkText),
|
|
1590
|
+
icon: d(t == null ? void 0 : t.linkIcon)
|
|
1591
1591
|
},
|
|
1592
1592
|
intent: "dark",
|
|
1593
1593
|
href: n,
|
|
@@ -1595,32 +1595,32 @@ const Ye = [
|
|
|
1595
1595
|
},
|
|
1596
1596
|
n
|
|
1597
1597
|
)) }), Nr = ({ groupLabel: e, links: t, mobileAccordionProps: n, classes: o }) => {
|
|
1598
|
-
var
|
|
1599
|
-
const { isMobile: i } =
|
|
1600
|
-
return /* @__PURE__ */ r.jsxs("div", { className:
|
|
1598
|
+
var a, l, u;
|
|
1599
|
+
const { isMobile: i } = G();
|
|
1600
|
+
return /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col gap-2", o == null ? void 0 : o.columnGroup), children: [
|
|
1601
1601
|
!i && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1602
|
-
/* @__PURE__ */ r.jsx("h5", { className:
|
|
1603
|
-
/* @__PURE__ */ r.jsx(
|
|
1602
|
+
/* @__PURE__ */ r.jsx("h5", { className: d("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", o == null ? void 0 : o.columnGroupHeading), children: e }),
|
|
1603
|
+
/* @__PURE__ */ r.jsx(Vt, { links: t, classes: o == null ? void 0 : o.linksList }, "desktop")
|
|
1604
1604
|
] }),
|
|
1605
1605
|
i && /* @__PURE__ */ r.jsx(
|
|
1606
|
-
|
|
1606
|
+
ot,
|
|
1607
1607
|
{
|
|
1608
1608
|
defaultOpen: !0,
|
|
1609
1609
|
label: e,
|
|
1610
|
-
icon: /* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className:
|
|
1610
|
+
icon: /* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className: d("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
|
|
1611
1611
|
...n,
|
|
1612
1612
|
classes: {
|
|
1613
1613
|
...n == null ? void 0 : n.classes,
|
|
1614
1614
|
header: {
|
|
1615
|
-
trigger:
|
|
1615
|
+
trigger: d("p-0 bg-color-blue-grey-100", (l = (a = n == null ? void 0 : n.classes) == null ? void 0 : a.header) == null ? void 0 : l.trigger)
|
|
1616
1616
|
},
|
|
1617
|
-
contentInner:
|
|
1617
|
+
contentInner: d("py-2 px-4", (u = n == null ? void 0 : n.classes) == null ? void 0 : u.contentInner)
|
|
1618
1618
|
},
|
|
1619
|
-
children: /* @__PURE__ */ r.jsx(
|
|
1619
|
+
children: /* @__PURE__ */ r.jsx(Vt, { links: t, classes: o == null ? void 0 : o.linksList }, "mobile")
|
|
1620
1620
|
}
|
|
1621
1621
|
)
|
|
1622
1622
|
] });
|
|
1623
|
-
}, Cr = ({ column: e, mobileAccordionProps: t, classes: n }) => /* @__PURE__ */ r.jsx("div", { className:
|
|
1623
|
+
}, Cr = ({ column: e, mobileAccordionProps: t, classes: n }) => /* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-4 desktop:gap-6", n == null ? void 0 : n.column), children: e == null ? void 0 : e.map((o) => /* @__PURE__ */ r.jsx(Nr, { ...t, ...o, classes: n == null ? void 0 : n.columnGroup }, o.groupLabel)) }), Ir = T("grid gap-4 grid-cols-1", {
|
|
1624
1624
|
variants: {
|
|
1625
1625
|
variant: {
|
|
1626
1626
|
twoCols: "desktop:grid-cols-2",
|
|
@@ -1631,82 +1631,82 @@ const Ye = [
|
|
|
1631
1631
|
defaultVariants: {
|
|
1632
1632
|
variant: "fourCols"
|
|
1633
1633
|
}
|
|
1634
|
-
}),
|
|
1634
|
+
}), Gn = ({
|
|
1635
1635
|
variant: e,
|
|
1636
1636
|
details: t,
|
|
1637
1637
|
headline: n,
|
|
1638
1638
|
mobileAccordionProps: o,
|
|
1639
1639
|
rootAccordionProps: i,
|
|
1640
|
-
classes:
|
|
1640
|
+
classes: a,
|
|
1641
1641
|
defaultOpen: l
|
|
1642
1642
|
}) => {
|
|
1643
|
-
var u, m,
|
|
1643
|
+
var u, m, h;
|
|
1644
1644
|
return /* @__PURE__ */ r.jsx(
|
|
1645
1645
|
"section",
|
|
1646
1646
|
{
|
|
1647
1647
|
id: g.interLinking,
|
|
1648
1648
|
"data-test-id": g.interLinking,
|
|
1649
|
-
className:
|
|
1649
|
+
className: d("min-w-full desktop:min-w-[1140px]", a == null ? void 0 : a.root),
|
|
1650
1650
|
children: /* @__PURE__ */ r.jsx(S, { children: /* @__PURE__ */ r.jsx(
|
|
1651
|
-
|
|
1651
|
+
ot,
|
|
1652
1652
|
{
|
|
1653
1653
|
defaultOpen: l,
|
|
1654
|
-
label: /* @__PURE__ */ r.jsx(H, { as: "h4", className:
|
|
1654
|
+
label: /* @__PURE__ */ r.jsx(H, { as: "h4", className: d("text-left", a == null ? void 0 : a.headline), children: n }),
|
|
1655
1655
|
...i,
|
|
1656
1656
|
classes: {
|
|
1657
1657
|
...i == null ? void 0 : i.classes,
|
|
1658
1658
|
header: {
|
|
1659
|
-
trigger:
|
|
1659
|
+
trigger: d("bg-color-blue-grey-100", (m = (u = i == null ? void 0 : i.classes) == null ? void 0 : u.header) == null ? void 0 : m.trigger)
|
|
1660
1660
|
},
|
|
1661
|
-
content:
|
|
1661
|
+
content: d("max-w-full bg-color-blue-grey-100 relative", (h = i == null ? void 0 : i.classes) == null ? void 0 : h.content)
|
|
1662
1662
|
},
|
|
1663
|
-
children: /* @__PURE__ */ r.jsx("div", { className:
|
|
1663
|
+
children: /* @__PURE__ */ r.jsx("div", { className: d(Ir({ variant: e }), a == null ? void 0 : a.columnsWrapper), children: t == null ? void 0 : t.map((p, c) => /* @__PURE__ */ r.jsx(Cr, { ...p, ...o, classes: a == null ? void 0 : a.column }, c)) })
|
|
1664
1664
|
}
|
|
1665
1665
|
) })
|
|
1666
1666
|
}
|
|
1667
1667
|
);
|
|
1668
|
-
}, Mr = ({ tabsNames: e, activeTab: t, setActiveTab: n, classes: o }) => /* @__PURE__ */ r.jsx("div", { className:
|
|
1668
|
+
}, Mr = ({ tabsNames: e, activeTab: t, setActiveTab: n, classes: o }) => /* @__PURE__ */ r.jsx("div", { className: d("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", o == null ? void 0 : o.tabs), children: e && e.map((i, a) => /* @__PURE__ */ r.jsx(
|
|
1669
1669
|
"button",
|
|
1670
1670
|
{
|
|
1671
|
-
onClick: () => n(
|
|
1672
|
-
className:
|
|
1671
|
+
onClick: () => n(a),
|
|
1672
|
+
className: d(
|
|
1673
1673
|
"mob-body-regular-m text-nowrap rounded-sm bg-color-blue-grey-100 px-3 py-1.5 text-color-secondary outline-1 outline-offset-4 outline-transparent focus:outline-primary-focus desktop:px-4 desktop:py-3",
|
|
1674
1674
|
{
|
|
1675
|
-
"bg-icon-primary-default text-color-white": t ===
|
|
1675
|
+
"bg-icon-primary-default text-color-white": t === a
|
|
1676
1676
|
},
|
|
1677
1677
|
o == null ? void 0 : o.button
|
|
1678
1678
|
),
|
|
1679
1679
|
children: i
|
|
1680
1680
|
},
|
|
1681
1681
|
i
|
|
1682
|
-
)) }),
|
|
1683
|
-
const i = /* @__PURE__ */ r.jsx("div", { className:
|
|
1684
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ r.jsx(
|
|
1682
|
+
)) }), Fr = (e) => e.variant === "HTML", Tr = (e) => e.variant === "DOCUMENTS", Er = (e) => e.variant === "TABLE", Or = ({ html: e, config: t, classes: n, accordionConfig: o }) => {
|
|
1683
|
+
const i = /* @__PURE__ */ r.jsx("div", { className: d(n == null ? void 0 : n.html), dangerouslySetInnerHTML: { __html: e ?? "" } });
|
|
1684
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ r.jsx(ot, { label: t == null ? void 0 : t.accordionTitle, ...o, children: (o == null ? void 0 : o.children) ?? i }) : i });
|
|
1685
1685
|
}, Sr = (e, t) => ({
|
|
1686
1686
|
rows: e == null ? void 0 : e.map(({ row: n }) => ({
|
|
1687
1687
|
row: n == null ? void 0 : n.map((o, i) => {
|
|
1688
|
-
var
|
|
1688
|
+
var a;
|
|
1689
1689
|
return {
|
|
1690
1690
|
...o,
|
|
1691
|
-
heading: t && ((
|
|
1691
|
+
heading: t && ((a = t[i]) == null ? void 0 : a.heading)
|
|
1692
1692
|
};
|
|
1693
1693
|
})
|
|
1694
1694
|
}))
|
|
1695
|
-
}), Br =
|
|
1695
|
+
}), Br = T("flex flex-col", {
|
|
1696
1696
|
variants: {
|
|
1697
1697
|
columnsVariant: {
|
|
1698
1698
|
twoCols: "w-full max-w-[656px]",
|
|
1699
1699
|
threeCols: "w-full max-w-[768px]"
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
|
-
}), Rr =
|
|
1702
|
+
}), Rr = T("desktop:grid mobile:hidden px-4 mb-4", {
|
|
1703
1703
|
variants: {
|
|
1704
1704
|
columnsVariant: {
|
|
1705
1705
|
twoCols: "grid-cols-2 gap-16",
|
|
1706
1706
|
threeCols: "grid-cols-3 gap-12"
|
|
1707
1707
|
}
|
|
1708
1708
|
}
|
|
1709
|
-
}), _r = ({ headings: e, columnsVariant: t, classes: n }) => /* @__PURE__ */ r.jsx("div", { className:
|
|
1709
|
+
}), _r = ({ headings: e, columnsVariant: t, classes: n }) => /* @__PURE__ */ r.jsx("div", { className: d(Rr({ columnsVariant: t }), n == null ? void 0 : n.row), children: e == null ? void 0 : e.map((o) => /* @__PURE__ */ r.jsx("div", { className: d("text-color-secondary", n == null ? void 0 : n.cell), children: o == null ? void 0 : o.heading }, o == null ? void 0 : o.heading)) }), Hr = T("desktop:grid mobile:hidden items-center", {
|
|
1710
1710
|
variants: {
|
|
1711
1711
|
columnsVariant: {
|
|
1712
1712
|
twoCols: "grid-cols-2 gap-16",
|
|
@@ -1717,52 +1717,52 @@ const Ye = [
|
|
|
1717
1717
|
separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
|
|
1718
1718
|
}
|
|
1719
1719
|
}
|
|
1720
|
-
}), Dr = ({ row: e, tableVariant: t, columnsVariant: n, rowIndex: o, classes: i }) => /* @__PURE__ */ r.jsx("div", { className:
|
|
1720
|
+
}), Dr = ({ row: e, tableVariant: t, columnsVariant: n, rowIndex: o, classes: i }) => /* @__PURE__ */ r.jsx("div", { className: d(Hr({ columnsVariant: n, tableVariant: t }), { "border-none": o === 0 }, i == null ? void 0 : i.row), children: e == null ? void 0 : e.map(({ cell: a }, l) => /* @__PURE__ */ r.jsx(
|
|
1721
1721
|
"div",
|
|
1722
1722
|
{
|
|
1723
|
-
className:
|
|
1724
|
-
children:
|
|
1723
|
+
className: d("desk-body-regular-l text-color-dark", { "font-medium": l !== 0 }, i == null ? void 0 : i.cell),
|
|
1724
|
+
children: a && a
|
|
1725
1725
|
},
|
|
1726
1726
|
l
|
|
1727
|
-
)) }), Pr =
|
|
1727
|
+
)) }), Pr = T("mobile:flex desktop:hidden flex-col gap-2", {
|
|
1728
1728
|
variants: {
|
|
1729
1729
|
tableVariant: {
|
|
1730
1730
|
filled: "px-4 py-4 odd:bg-color-primary-light-default",
|
|
1731
1731
|
separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
|
|
1732
1732
|
}
|
|
1733
1733
|
}
|
|
1734
|
-
}), Lr = ({ row: e, tableVariant: t, columnsVariant: n, headingsExist: o, classes: i }) => /* @__PURE__ */ r.jsx("div", { className:
|
|
1735
|
-
l && /* @__PURE__ */ r.jsx("div", { className:
|
|
1734
|
+
}), Lr = ({ row: e, tableVariant: t, columnsVariant: n, headingsExist: o, classes: i }) => /* @__PURE__ */ r.jsx("div", { className: d(Pr({ tableVariant: t }), i == null ? void 0 : i.row), children: e == null ? void 0 : e.map(({ cell: a, heading: l }, u) => /* @__PURE__ */ r.jsxs("div", { className: d("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !o }, i == null ? void 0 : i.wrapper), children: [
|
|
1735
|
+
l && /* @__PURE__ */ r.jsx("div", { className: d("mob-body-regular-l text-color-secondary", i == null ? void 0 : i.heading), children: l }),
|
|
1736
1736
|
/* @__PURE__ */ r.jsx(
|
|
1737
1737
|
"div",
|
|
1738
1738
|
{
|
|
1739
|
-
className:
|
|
1739
|
+
className: d(
|
|
1740
1740
|
"mob-body-regular-l text-color-dark",
|
|
1741
1741
|
{
|
|
1742
1742
|
"font-medium": u !== 0 && n === "twoCols" || n === "threeCols" || n === "twoCols" && o
|
|
1743
1743
|
},
|
|
1744
1744
|
i == null ? void 0 : i.cell
|
|
1745
1745
|
),
|
|
1746
|
-
children:
|
|
1746
|
+
children: a
|
|
1747
1747
|
}
|
|
1748
1748
|
)
|
|
1749
1749
|
] }, u)) }), zr = ({ tableVariant: e, rows: t, headings: n, columnsVariant: o, classes: i }) => {
|
|
1750
1750
|
var u;
|
|
1751
|
-
const
|
|
1752
|
-
return /* @__PURE__ */ r.jsxs("div", { className:
|
|
1751
|
+
const a = ((u = Sr(t, n)) == null ? void 0 : u.rows) ?? [], l = !!(n && n.length > 0);
|
|
1752
|
+
return /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1753
1753
|
l && /* @__PURE__ */ r.jsx(_r, { headings: n, columnsVariant: o, classes: i == null ? void 0 : i.desktopHeading }),
|
|
1754
|
-
t == null ? void 0 : t.map((m,
|
|
1754
|
+
t == null ? void 0 : t.map((m, h) => /* @__PURE__ */ r.jsx(
|
|
1755
1755
|
Dr,
|
|
1756
1756
|
{
|
|
1757
|
-
rowIndex:
|
|
1757
|
+
rowIndex: h,
|
|
1758
1758
|
tableVariant: e,
|
|
1759
1759
|
columnsVariant: o,
|
|
1760
1760
|
classes: i == null ? void 0 : i.desktopRow,
|
|
1761
1761
|
...m
|
|
1762
1762
|
},
|
|
1763
|
-
|
|
1763
|
+
h
|
|
1764
1764
|
)),
|
|
1765
|
-
|
|
1765
|
+
a == null ? void 0 : a.map((m, h) => /* @__PURE__ */ r.jsx(
|
|
1766
1766
|
Lr,
|
|
1767
1767
|
{
|
|
1768
1768
|
headingsExist: l,
|
|
@@ -1771,7 +1771,7 @@ const Ye = [
|
|
|
1771
1771
|
classes: i == null ? void 0 : i.desktopRow,
|
|
1772
1772
|
...m
|
|
1773
1773
|
},
|
|
1774
|
-
|
|
1774
|
+
h
|
|
1775
1775
|
))
|
|
1776
1776
|
] });
|
|
1777
1777
|
}, Qr = ({
|
|
@@ -1780,27 +1780,27 @@ const Ye = [
|
|
|
1780
1780
|
columnsVariant: n,
|
|
1781
1781
|
config: o,
|
|
1782
1782
|
rows: i,
|
|
1783
|
-
title:
|
|
1783
|
+
title: a,
|
|
1784
1784
|
headings: l,
|
|
1785
1785
|
accordionConfig: u,
|
|
1786
1786
|
classes: m
|
|
1787
1787
|
}) => {
|
|
1788
|
-
const
|
|
1789
|
-
|
|
1788
|
+
const h = /* @__PURE__ */ r.jsxs("div", { className: d(Br({ columnsVariant: n }), m == null ? void 0 : m.wrapper), children: [
|
|
1789
|
+
a && /* @__PURE__ */ r.jsx(H, { as: "h4", className: d("mb-4 desktop:mb-6", m == null ? void 0 : m.headline), children: a }),
|
|
1790
1790
|
/* @__PURE__ */ r.jsx(zr, { tableVariant: e, rows: i, headings: l, columnsVariant: n }),
|
|
1791
1791
|
t && /* @__PURE__ */ r.jsx(
|
|
1792
1792
|
"div",
|
|
1793
1793
|
{
|
|
1794
|
-
className:
|
|
1794
|
+
className: d("mt-2 [&&]:desk-body-regular-m desktop:mt-2", m == null ? void 0 : m.description),
|
|
1795
1795
|
dangerouslySetInnerHTML: { __html: t ?? "" }
|
|
1796
1796
|
}
|
|
1797
1797
|
)
|
|
1798
1798
|
] });
|
|
1799
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: o && (o != null && o.isAccordion) && (o != null && o.accordionTitle) ? /* @__PURE__ */ r.jsx(
|
|
1799
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: o && (o != null && o.isAccordion) && (o != null && o.accordionTitle) ? /* @__PURE__ */ r.jsx(ot, { label: o == null ? void 0 : o.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || h }) : h });
|
|
1800
1800
|
}, Ar = {
|
|
1801
1801
|
documentFilled: "files/documentFilled",
|
|
1802
1802
|
documentOutline: "files/documentOutline"
|
|
1803
|
-
}, Vr =
|
|
1803
|
+
}, Vr = T("size-8 transition-colors", {
|
|
1804
1804
|
variants: {
|
|
1805
1805
|
iconType: {
|
|
1806
1806
|
documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
|
|
@@ -1817,37 +1817,37 @@ const Ye = [
|
|
|
1817
1817
|
target: "_blank",
|
|
1818
1818
|
rel: "noreferrer",
|
|
1819
1819
|
tabIndex: 0,
|
|
1820
|
-
className:
|
|
1820
|
+
className: d(
|
|
1821
1821
|
"group flex w-full cursor-pointer items-center gap-2 rounded-sm p-1 outline outline-2 outline-transparent transition-colors focus-within:outline-primary-focus",
|
|
1822
1822
|
i == null ? void 0 : i.link
|
|
1823
1823
|
),
|
|
1824
1824
|
children: [
|
|
1825
|
-
/* @__PURE__ */ r.jsx(f, { name: Ar[o], className:
|
|
1826
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1827
|
-
/* @__PURE__ */ r.jsx("p", { className:
|
|
1828
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1825
|
+
/* @__PURE__ */ r.jsx(f, { name: Ar[o], className: d(Vr({ iconType: o }), i == null ? void 0 : i.icon) }),
|
|
1826
|
+
/* @__PURE__ */ r.jsxs("div", { className: d("flex flex-1 flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1827
|
+
/* @__PURE__ */ r.jsx("p", { className: d("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: e }),
|
|
1828
|
+
/* @__PURE__ */ r.jsxs("div", { className: d("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
|
|
1829
1829
|
Number(t),
|
|
1830
1830
|
" КБ"
|
|
1831
1831
|
] })
|
|
1832
1832
|
] })
|
|
1833
1833
|
]
|
|
1834
1834
|
}
|
|
1835
|
-
), Ur = ({ docs: e, config: t, title: n, iconType: o, description: i, classes:
|
|
1836
|
-
const u = /* @__PURE__ */ r.jsxs("div", { className:
|
|
1835
|
+
), Ur = ({ docs: e, config: t, title: n, iconType: o, description: i, classes: a, accordionConfig: l }) => {
|
|
1836
|
+
const u = /* @__PURE__ */ r.jsxs("div", { className: d("flex max-w-[680px] flex-col", a == null ? void 0 : a.wrapper), children: [
|
|
1837
1837
|
n && /* @__PURE__ */ r.jsx(H, { as: "h3", className: "mb-4", children: n }),
|
|
1838
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1839
|
-
i && /* @__PURE__ */ r.jsx("div", { className:
|
|
1838
|
+
/* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-4", a == null ? void 0 : a.documentsWrapper), children: e == null ? void 0 : e.map((m) => /* @__PURE__ */ r.jsx(qr, { iconType: o, ...m, classes: a == null ? void 0 : a.singleDocument }, m.label)) }),
|
|
1839
|
+
i && /* @__PURE__ */ r.jsx("div", { className: d("mt-4", a == null ? void 0 : a.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
|
|
1840
1840
|
] });
|
|
1841
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ r.jsx(
|
|
1841
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ r.jsx(ot, { label: t == null ? void 0 : t.accordionTitle, ...l, children: (l == null ? void 0 : l.children) || u }) : u });
|
|
1842
1842
|
}, Wr = ({ entity: e, classes: t, accordionsConfig: n }) => {
|
|
1843
|
-
var o, i,
|
|
1843
|
+
var o, i, a;
|
|
1844
1844
|
switch (!0) {
|
|
1845
|
-
case
|
|
1845
|
+
case Fr(e):
|
|
1846
1846
|
return (o = e.details) == null ? void 0 : o.map((l, u) => {
|
|
1847
1847
|
var m;
|
|
1848
1848
|
return /* @__PURE__ */ r.jsx(Or, { ...l, accordionConfig: n == null ? void 0 : n.htmlAccordion, classes: (m = t == null ? void 0 : t.entities) == null ? void 0 : m.html }, u);
|
|
1849
1849
|
});
|
|
1850
|
-
case
|
|
1850
|
+
case Tr(e):
|
|
1851
1851
|
return (i = e.details) == null ? void 0 : i.map((l, u) => {
|
|
1852
1852
|
var m;
|
|
1853
1853
|
return /* @__PURE__ */ r.jsx(
|
|
@@ -1860,8 +1860,8 @@ const Ye = [
|
|
|
1860
1860
|
u
|
|
1861
1861
|
);
|
|
1862
1862
|
});
|
|
1863
|
-
case
|
|
1864
|
-
return (
|
|
1863
|
+
case Er(e):
|
|
1864
|
+
return (a = e.details) == null ? void 0 : a.map((l, u) => {
|
|
1865
1865
|
var m;
|
|
1866
1866
|
return /* @__PURE__ */ r.jsx(
|
|
1867
1867
|
Qr,
|
|
@@ -1876,22 +1876,22 @@ const Ye = [
|
|
|
1876
1876
|
default:
|
|
1877
1877
|
return null;
|
|
1878
1878
|
}
|
|
1879
|
-
}, $r = ({ entity: e, classes: t, accordionsConfig: n }) => /* @__PURE__ */ r.jsx("div", { className:
|
|
1879
|
+
}, $r = ({ entity: e, classes: t, accordionsConfig: n }) => /* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-6", t == null ? void 0 : t.entityWrapper), children: Wr({ entity: e, classes: t, accordionsConfig: n }) }), to = ({ headline: e, tabs: t, classes: n, accordionsConfig: o }) => {
|
|
1880
1880
|
var u, m;
|
|
1881
|
-
const [i,
|
|
1882
|
-
return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ r.jsx("section", { id: g.usefulInfo, "data-test-id": g.usefulInfo, className:
|
|
1883
|
-
/* @__PURE__ */ r.jsx(H, { className:
|
|
1884
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1885
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1881
|
+
const [i, a] = z(0), l = Ft(() => t == null ? void 0 : t.map((h) => h == null ? void 0 : h.tabName), [t]) ?? [];
|
|
1882
|
+
return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ r.jsx("section", { id: g.usefulInfo, "data-test-id": g.usefulInfo, className: d(n == null ? void 0 : n.root), children: /* @__PURE__ */ r.jsxs(S, { className: d(n == null ? void 0 : n.container), children: [
|
|
1883
|
+
/* @__PURE__ */ r.jsx(H, { className: d(n == null ? void 0 : n.headline), as: "h2", children: e }),
|
|
1884
|
+
/* @__PURE__ */ r.jsx("div", { className: d("mt-6 flex flex-col gap-2 desktop:mt-12", n == null ? void 0 : n.tabsWrapper), children: /* @__PURE__ */ r.jsx(Mr, { tabsNames: l, activeTab: i, setActiveTab: a, classes: n == null ? void 0 : n.tabs }) }),
|
|
1885
|
+
/* @__PURE__ */ r.jsx("div", { className: d("mt-6 flex flex-col gap-6", n == null ? void 0 : n.contentWrapper), children: (m = (u = t == null ? void 0 : t[i]) == null ? void 0 : u.contents) == null ? void 0 : m.map((h, p) => /* @__PURE__ */ r.jsx($r, { accordionsConfig: o, ...h, classes: n == null ? void 0 : n.entityClasses }, p)) })
|
|
1886
1886
|
] }) });
|
|
1887
|
-
},
|
|
1888
|
-
const i =
|
|
1889
|
-
return /* @__PURE__ */
|
|
1887
|
+
}, xe = ({ fields: e, control: t }) => e.map(({ type: n, args: o }) => {
|
|
1888
|
+
const i = Ee[n];
|
|
1889
|
+
return /* @__PURE__ */ Gt(i, { ...o, key: o.name, control: t });
|
|
1890
1890
|
});
|
|
1891
1891
|
class Kr {
|
|
1892
1892
|
constructor(t) {
|
|
1893
|
-
|
|
1894
|
-
|
|
1893
|
+
at(this, "TEXT_NODE", 3);
|
|
1894
|
+
at(this, "ELEMENT_NODE", 1);
|
|
1895
1895
|
this.options = t;
|
|
1896
1896
|
}
|
|
1897
1897
|
/**
|
|
@@ -1901,7 +1901,7 @@ class Kr {
|
|
|
1901
1901
|
* @param as Тип возвращаемых данных ('string' или 'node')
|
|
1902
1902
|
*/
|
|
1903
1903
|
traverse(t, n = "string", o) {
|
|
1904
|
-
const { includeSolidText: i, recursive:
|
|
1904
|
+
const { includeSolidText: i, recursive: a, element: l } = this.options || {};
|
|
1905
1905
|
switch (t.nodeType) {
|
|
1906
1906
|
// если узел - элемент
|
|
1907
1907
|
case this.ELEMENT_NODE:
|
|
@@ -1915,12 +1915,12 @@ class Kr {
|
|
|
1915
1915
|
if (n === "node")
|
|
1916
1916
|
o.push(t);
|
|
1917
1917
|
else {
|
|
1918
|
-
const
|
|
1919
|
-
o.push(
|
|
1918
|
+
const h = u.outerHTML.trim();
|
|
1919
|
+
o.push(h);
|
|
1920
1920
|
}
|
|
1921
|
-
if (
|
|
1922
|
-
for (const
|
|
1923
|
-
this.traverse(
|
|
1921
|
+
if (a)
|
|
1922
|
+
for (const h of t.childNodes)
|
|
1923
|
+
this.traverse(h, n, o);
|
|
1924
1924
|
break;
|
|
1925
1925
|
// если узел - текстовый и требуется его добавить, добавляем
|
|
1926
1926
|
case this.TEXT_NODE:
|
|
@@ -1929,8 +1929,8 @@ class Kr {
|
|
|
1929
1929
|
if (n === "node")
|
|
1930
1930
|
o.push(t);
|
|
1931
1931
|
else {
|
|
1932
|
-
const
|
|
1933
|
-
|
|
1932
|
+
const h = t.textContent;
|
|
1933
|
+
h && o.push(h);
|
|
1934
1934
|
}
|
|
1935
1935
|
break;
|
|
1936
1936
|
}
|
|
@@ -1942,13 +1942,13 @@ class Kr {
|
|
|
1942
1942
|
* @returns Массив тегов или нод
|
|
1943
1943
|
*/
|
|
1944
1944
|
async parse(t, n = "string") {
|
|
1945
|
-
const { includeBody: o } = this.options || {}, i = [],
|
|
1945
|
+
const { includeBody: o } = this.options || {}, i = [], a = [], l = await this.parseFromString(t), u = n === "string" ? i : a;
|
|
1946
1946
|
if (o)
|
|
1947
1947
|
this.traverse(l.body, n, u);
|
|
1948
1948
|
else
|
|
1949
1949
|
for (const m of l.body.childNodes)
|
|
1950
1950
|
this.traverse(m, n, u);
|
|
1951
|
-
return { stringNodes: i, nodes:
|
|
1951
|
+
return { stringNodes: i, nodes: a };
|
|
1952
1952
|
}
|
|
1953
1953
|
/**
|
|
1954
1954
|
* Считает количество указанных тегов в HTML строке.
|
|
@@ -1969,7 +1969,7 @@ class Xr extends Kr {
|
|
|
1969
1969
|
return Zr ? new DOMParser().parseFromString(t, "text/html") : Promise.reject();
|
|
1970
1970
|
}
|
|
1971
1971
|
}
|
|
1972
|
-
class
|
|
1972
|
+
class Nt {
|
|
1973
1973
|
/**
|
|
1974
1974
|
* Функция для парсинга ноды в react элемент
|
|
1975
1975
|
*/
|
|
@@ -1997,25 +1997,25 @@ class It {
|
|
|
1997
1997
|
break;
|
|
1998
1998
|
case "style":
|
|
1999
1999
|
u = "style";
|
|
2000
|
-
const
|
|
2001
|
-
l.value.split(";").forEach((
|
|
2002
|
-
const [c, b] =
|
|
2000
|
+
const h = {};
|
|
2001
|
+
l.value.split(";").forEach((p) => {
|
|
2002
|
+
const [c, b] = p.split(":");
|
|
2003
2003
|
if (c && b) {
|
|
2004
2004
|
const w = c.trim().replace(/-([a-z])/g, (v, I) => I.toUpperCase());
|
|
2005
|
-
|
|
2005
|
+
h[w] = b.trim();
|
|
2006
2006
|
}
|
|
2007
|
-
}), m =
|
|
2007
|
+
}), m = h;
|
|
2008
2008
|
break;
|
|
2009
2009
|
}
|
|
2010
2010
|
i[u] = m;
|
|
2011
2011
|
}
|
|
2012
2012
|
i.key = Math.random().toString(36).substring(2, 9);
|
|
2013
|
-
const
|
|
2013
|
+
const a = [];
|
|
2014
2014
|
for (const l of n.childNodes) {
|
|
2015
2015
|
const u = this.parseNode(l);
|
|
2016
|
-
u &&
|
|
2016
|
+
u && a.push(u);
|
|
2017
2017
|
}
|
|
2018
|
-
return
|
|
2018
|
+
return Gt(o, i, ...a);
|
|
2019
2019
|
}
|
|
2020
2020
|
return null;
|
|
2021
2021
|
}
|
|
@@ -2024,62 +2024,62 @@ class It {
|
|
|
2024
2024
|
*/
|
|
2025
2025
|
static async toReactNodes(t, n) {
|
|
2026
2026
|
const o = new Xr(n), { nodes: i } = await o.parse(t, "node");
|
|
2027
|
-
return i.map((
|
|
2027
|
+
return i.map((a) => this.parseNode(a));
|
|
2028
2028
|
}
|
|
2029
2029
|
}
|
|
2030
|
-
|
|
2030
|
+
at(Nt, "TEXT_NODE", 3), at(Nt, "ELEMENT_NODE", 1);
|
|
2031
2031
|
const Jr = ({ promises: e }) => {
|
|
2032
2032
|
const [t, n] = z([]);
|
|
2033
|
-
return
|
|
2033
|
+
return te(() => {
|
|
2034
2034
|
(async () => {
|
|
2035
2035
|
n(await e);
|
|
2036
2036
|
})();
|
|
2037
2037
|
}, [e]), /* @__PURE__ */ r.jsx(r.Fragment, { children: t });
|
|
2038
|
-
},
|
|
2039
|
-
const i = n ?? _e,
|
|
2038
|
+
}, bt = ({ html: e, options: t, as: n, ...o }) => {
|
|
2039
|
+
const i = n ?? _e, a = n ? o : {}, l = Nt.toReactNodes(e, t);
|
|
2040
2040
|
return (
|
|
2041
2041
|
// @ts-expect-error disable warning
|
|
2042
|
-
/* @__PURE__ */ r.jsx(i, { ...
|
|
2042
|
+
/* @__PURE__ */ r.jsx(i, { ...a, children: /* @__PURE__ */ r.jsx(Jr, { promises: l }) })
|
|
2043
2043
|
);
|
|
2044
2044
|
}, Yr = (e, t) => e.enabled ? t.map((n) => ({
|
|
2045
2045
|
name: n.args.name,
|
|
2046
2046
|
...n.args.progress
|
|
2047
|
-
})) : null, Gr = new Je(), tn = ({ children: e }) => /* @__PURE__ */ r.jsx(Oe, { client: Gr, children: e }), en = (e, t, n, o) => e.type === "off" ? null : e.type === "text" ? /* @__PURE__ */ r.jsx(
|
|
2047
|
+
})) : null, Gr = new Je(), tn = ({ children: e }) => /* @__PURE__ */ r.jsx(Oe, { client: Gr, children: e }), en = (e, t, n, o) => e.type === "off" ? null : e.type === "text" ? /* @__PURE__ */ r.jsx(bt, { html: e.message, as: "div", className: o == null ? void 0 : o.content }) : /* @__PURE__ */ r.jsxs(
|
|
2048
2048
|
"label",
|
|
2049
2049
|
{
|
|
2050
|
-
className:
|
|
2050
|
+
className: d(
|
|
2051
2051
|
"mob-body-regular-s text-color-dark",
|
|
2052
2052
|
"desktop:desk-body-regular-m desktop:gap-x-4",
|
|
2053
2053
|
"flex items-center justify-items-start gap-x-3"
|
|
2054
2054
|
),
|
|
2055
2055
|
children: [
|
|
2056
|
-
/* @__PURE__ */ r.jsx(
|
|
2057
|
-
/* @__PURE__ */ r.jsx(
|
|
2056
|
+
/* @__PURE__ */ r.jsx(Jt.CheckboxBase, { classes: o == null ? void 0 : o.checkbox, checked: t, onCheckedChange: n }),
|
|
2057
|
+
/* @__PURE__ */ r.jsx(bt, { html: e.content, as: "div", className: o == null ? void 0 : o.content })
|
|
2058
2058
|
]
|
|
2059
2059
|
}
|
|
2060
|
-
),
|
|
2060
|
+
), eo = ({
|
|
2061
2061
|
fields: e,
|
|
2062
2062
|
title: t,
|
|
2063
2063
|
progress: n,
|
|
2064
2064
|
approvement: o,
|
|
2065
2065
|
chips: i,
|
|
2066
|
-
submitProps:
|
|
2066
|
+
submitProps: a,
|
|
2067
2067
|
classes: l
|
|
2068
2068
|
}) => {
|
|
2069
2069
|
var K, Q;
|
|
2070
|
-
const { submitCallback: u, ...m } =
|
|
2070
|
+
const { submitCallback: u, ...m } = a || {}, [h, p] = z(!1), c = ue(e), { control: b, handleSubmit: w } = ne({
|
|
2071
2071
|
schema: c,
|
|
2072
2072
|
defaultValues: ae.getZodDefaults(c),
|
|
2073
2073
|
mode: "onBlur"
|
|
2074
2074
|
}), v = Yr(n, e), I = qe({ control: b, fields: v || [], schema: c }), D = (N) => {
|
|
2075
|
-
u && u({ ...N, agree:
|
|
2075
|
+
u && u({ ...N, agree: h }), console.warn(N);
|
|
2076
2076
|
};
|
|
2077
2077
|
return /* @__PURE__ */ r.jsx(tn, { children: /* @__PURE__ */ r.jsxs(
|
|
2078
2078
|
"div",
|
|
2079
2079
|
{
|
|
2080
2080
|
id: g.form,
|
|
2081
2081
|
"data-test-id": g.form,
|
|
2082
|
-
className:
|
|
2082
|
+
className: d(
|
|
2083
2083
|
"border-warm-grey-200 px-4 desktop:gap-8 desktop:p-14",
|
|
2084
2084
|
"relative flex flex-col gap-6 rounded-sm border py-8",
|
|
2085
2085
|
l == null ? void 0 : l.root
|
|
@@ -2088,14 +2088,14 @@ const Jr = ({ promises: e }) => {
|
|
|
2088
2088
|
i.enabled && /* @__PURE__ */ r.jsxs(
|
|
2089
2089
|
"div",
|
|
2090
2090
|
{
|
|
2091
|
-
className:
|
|
2091
|
+
className: d(
|
|
2092
2092
|
"desk-body-regular-l flex items-center gap-x-2 rounded-sm desktop:absolute",
|
|
2093
2093
|
"bg-color-blue-grey-100 px-2 py-1 text-color-tetriary",
|
|
2094
2094
|
"right-4 top-4 w-max",
|
|
2095
2095
|
(K = l == null ? void 0 : l.chips) == null ? void 0 : K.root
|
|
2096
2096
|
),
|
|
2097
2097
|
children: [
|
|
2098
|
-
i.image && /* @__PURE__ */ r.jsx(f, { name: i.image, className:
|
|
2098
|
+
i.image && /* @__PURE__ */ r.jsx(f, { name: i.image, className: d("size-4", (Q = l == null ? void 0 : l.chips) == null ? void 0 : Q.icon) }),
|
|
2099
2099
|
i.content
|
|
2100
2100
|
]
|
|
2101
2101
|
}
|
|
@@ -2105,28 +2105,28 @@ const Jr = ({ promises: e }) => {
|
|
|
2105
2105
|
"form",
|
|
2106
2106
|
{
|
|
2107
2107
|
onSubmit: w(D),
|
|
2108
|
-
className:
|
|
2108
|
+
className: d("flex w-[328px] flex-col gap-y-6", "desktop:w-[524px] desktop:gap-y-8", l == null ? void 0 : l.form),
|
|
2109
2109
|
children: [
|
|
2110
2110
|
n.enabled && /* @__PURE__ */ r.jsx(
|
|
2111
2111
|
Se,
|
|
2112
2112
|
{
|
|
2113
2113
|
progress: I,
|
|
2114
|
-
topContent: /* @__PURE__ */ r.jsx(
|
|
2115
|
-
bottomContent: /* @__PURE__ */ r.jsx(
|
|
2114
|
+
topContent: /* @__PURE__ */ r.jsx(bt, { html: n.title }),
|
|
2115
|
+
bottomContent: /* @__PURE__ */ r.jsx(bt, { html: n.subtitle }),
|
|
2116
2116
|
maxPercent: n.maxPercent,
|
|
2117
2117
|
classes: l == null ? void 0 : l.progressBar
|
|
2118
2118
|
}
|
|
2119
2119
|
),
|
|
2120
|
-
/* @__PURE__ */ r.jsx(
|
|
2120
|
+
/* @__PURE__ */ r.jsx(xe, { control: b, fields: e }),
|
|
2121
2121
|
/* @__PURE__ */ r.jsxs("div", { className: "mob-body-regular-m flex flex-col items-center justify-center gap-4 desktop:flex-row desktop:justify-between", children: [
|
|
2122
|
-
en(o,
|
|
2122
|
+
en(o, h, p, l == null ? void 0 : l.approvement),
|
|
2123
2123
|
/* @__PURE__ */ r.jsx(
|
|
2124
|
-
|
|
2124
|
+
gt,
|
|
2125
2125
|
{
|
|
2126
2126
|
...m,
|
|
2127
2127
|
type: "submit",
|
|
2128
|
-
disabled: o.type === "checkbox" ? !
|
|
2129
|
-
className:
|
|
2128
|
+
disabled: o.type === "checkbox" ? !h : !1,
|
|
2129
|
+
className: d(
|
|
2130
2130
|
"w-full whitespace-nowrap",
|
|
2131
2131
|
{
|
|
2132
2132
|
"w-full desktop:w-[216px]": !!o
|
|
@@ -2204,11 +2204,11 @@ const Jr = ({ promises: e }) => {
|
|
|
2204
2204
|
text: "Вернуться на главную"
|
|
2205
2205
|
}
|
|
2206
2206
|
}
|
|
2207
|
-
}),
|
|
2207
|
+
}), ro = ({ status: e, navigationFn: t }) => /* @__PURE__ */ r.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ r.jsx(S, { className: "flex flex-col justify-center", children: /* @__PURE__ */ r.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
|
|
2208
2208
|
/* @__PURE__ */ r.jsx(
|
|
2209
2209
|
"span",
|
|
2210
2210
|
{
|
|
2211
|
-
className:
|
|
2211
|
+
className: d(
|
|
2212
2212
|
"flex size-16 items-center justify-center rounded-full bg-color-positive-light",
|
|
2213
2213
|
`${dt()[e].icon.bg}`
|
|
2214
2214
|
),
|
|
@@ -2219,65 +2219,65 @@ const Jr = ({ promises: e }) => {
|
|
|
2219
2219
|
/* @__PURE__ */ r.jsx(H, { as: "h2", children: dt()[e].title }),
|
|
2220
2220
|
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: dt()[e].description })
|
|
2221
2221
|
] }),
|
|
2222
|
-
/* @__PURE__ */ r.jsx(
|
|
2223
|
-
] }) }) }),
|
|
2224
|
-
const [
|
|
2225
|
-
return
|
|
2226
|
-
if (!
|
|
2222
|
+
/* @__PURE__ */ r.jsx(gt, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: t, children: dt()[e].button.text })
|
|
2223
|
+
] }) }) }), pe = ({ breadcrumb: e, className: t, ...n }) => /* @__PURE__ */ r.jsx("a", { href: e.path, className: d("desk-body-regular-m", t), ...n, children: e.label }), rn = ({ startsWith: e, endsWith: t, matcher: n, filter: o, rootEnabled: i = !0 }) => {
|
|
2224
|
+
const [a, l] = z([]);
|
|
2225
|
+
return te(() => {
|
|
2226
|
+
if (!re)
|
|
2227
2227
|
return;
|
|
2228
|
-
let u = window.location.pathname.split("/").filter((
|
|
2229
|
-
s.isUndefined(e) || (s.isString(e) ? u = u.slice(u.findIndex((
|
|
2230
|
-
let m = [],
|
|
2228
|
+
let u = window.location.pathname.split("/").filter((p) => !s.isStringEmpty(p));
|
|
2229
|
+
s.isUndefined(e) || (s.isString(e) ? u = u.slice(u.findIndex((p) => p === e)) : u = u.slice(e)), s.isUndefined(t) || (s.isString(t) ? u = u.slice(0, u.findIndex((p) => p === t) + 1) : u = u.slice(0, t + 1));
|
|
2230
|
+
let m = [], h = "";
|
|
2231
2231
|
if (i) {
|
|
2232
|
-
const
|
|
2232
|
+
const p = {
|
|
2233
2233
|
index: 0,
|
|
2234
|
-
id:
|
|
2234
|
+
id: Dt(),
|
|
2235
2235
|
path: "/",
|
|
2236
2236
|
label: "home"
|
|
2237
2237
|
};
|
|
2238
|
-
m.push(
|
|
2238
|
+
m.push(p);
|
|
2239
2239
|
}
|
|
2240
|
-
u.forEach((
|
|
2241
|
-
|
|
2240
|
+
u.forEach((p, c) => {
|
|
2241
|
+
h += `/${p}`;
|
|
2242
2242
|
const b = {
|
|
2243
2243
|
// while root enabled we need to increment index
|
|
2244
2244
|
// cuz we have root breadcrumb
|
|
2245
2245
|
index: i ? c + 1 : c,
|
|
2246
|
-
id:
|
|
2247
|
-
path:
|
|
2248
|
-
label:
|
|
2246
|
+
id: Dt(),
|
|
2247
|
+
path: h,
|
|
2248
|
+
label: p
|
|
2249
2249
|
};
|
|
2250
2250
|
m.push(b);
|
|
2251
|
-
}), n && (m = m.map((
|
|
2252
|
-
...
|
|
2253
|
-
...n(
|
|
2251
|
+
}), n && (m = m.map((p) => ({
|
|
2252
|
+
...p,
|
|
2253
|
+
...n(p)
|
|
2254
2254
|
}))), l(o ? m.filter(o) : m);
|
|
2255
|
-
}, [t, o, n, i, e]),
|
|
2256
|
-
},
|
|
2257
|
-
const l =
|
|
2255
|
+
}, [t, o, n, i, e]), a;
|
|
2256
|
+
}, ft = (e, t, n, o) => e.map((i, a) => {
|
|
2257
|
+
const l = a === o;
|
|
2258
2258
|
return /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
2259
2259
|
/* @__PURE__ */ r.jsx(
|
|
2260
|
-
|
|
2260
|
+
pe,
|
|
2261
2261
|
{
|
|
2262
2262
|
breadcrumb: i,
|
|
2263
|
-
className:
|
|
2263
|
+
className: d(n, {
|
|
2264
2264
|
"pointer-events-none text-color-primary-disabled": l
|
|
2265
2265
|
})
|
|
2266
2266
|
}
|
|
2267
2267
|
),
|
|
2268
|
-
|
|
2268
|
+
a !== e.length - 1 && t
|
|
2269
2269
|
] }, i.id);
|
|
2270
2270
|
}), nn = ({ separator: e, ellipsis: t, classes: n, ...o }) => {
|
|
2271
|
-
const [i,
|
|
2272
|
-
ze(l, () =>
|
|
2273
|
-
const u = rn(o), { first: m, middle:
|
|
2271
|
+
const [i, a] = z(!1), l = Tt(null);
|
|
2272
|
+
ze(l, () => a(!1));
|
|
2273
|
+
const u = rn(o), { first: m, middle: h, last: p } = Ft(() => {
|
|
2274
2274
|
let b = [], w = [], v = [];
|
|
2275
2275
|
return t && (b = u.slice(0, t), w = u.slice(t, u.length - t), v = u.slice(u.length - t)), { first: b, middle: w, last: v };
|
|
2276
|
-
}, [u, t]), c = e ?? /* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className:
|
|
2276
|
+
}, [u, t]), c = e ?? /* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className: d("size-4", n == null ? void 0 : n.separator) });
|
|
2277
2277
|
return /* @__PURE__ */ r.jsx(
|
|
2278
2278
|
"div",
|
|
2279
2279
|
{
|
|
2280
|
-
className:
|
|
2280
|
+
className: d(
|
|
2281
2281
|
"flex max-w-[840px] flex-wrap items-center",
|
|
2282
2282
|
"gap-x-2 gap-y-1 py-4 text-color-primary-default",
|
|
2283
2283
|
n == null ? void 0 : n.root
|
|
@@ -2288,16 +2288,16 @@ const Jr = ({ promises: e }) => {
|
|
|
2288
2288
|
// if we have more than ellipsis (visible crumbs) + available hidden crumbs
|
|
2289
2289
|
// render hidden breadcrumbs
|
|
2290
2290
|
/* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2291
|
-
|
|
2291
|
+
ft(m, c, n == null ? void 0 : n.breadcrumb),
|
|
2292
2292
|
c,
|
|
2293
|
-
|
|
2293
|
+
h.length > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2294
2294
|
/* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
|
|
2295
|
-
/* @__PURE__ */ r.jsx("button", { onClick: () =>
|
|
2295
|
+
/* @__PURE__ */ r.jsx("button", { onClick: () => a(!0), children: "..." }),
|
|
2296
2296
|
/* @__PURE__ */ r.jsx(
|
|
2297
2297
|
"ul",
|
|
2298
2298
|
{
|
|
2299
2299
|
ref: l,
|
|
2300
|
-
className:
|
|
2300
|
+
className: d(
|
|
2301
2301
|
"invisible absolute max-h-[264px] overflow-y-auto",
|
|
2302
2302
|
"w-[280px] rounded-sm bg-color-white",
|
|
2303
2303
|
"customScrollbar-y p-1 opacity-0 shadow-sm",
|
|
@@ -2305,11 +2305,11 @@ const Jr = ({ promises: e }) => {
|
|
|
2305
2305
|
"visible opacity-100": i
|
|
2306
2306
|
}
|
|
2307
2307
|
),
|
|
2308
|
-
children:
|
|
2309
|
-
|
|
2308
|
+
children: h.map((b) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
|
|
2309
|
+
pe,
|
|
2310
2310
|
{
|
|
2311
2311
|
breadcrumb: b,
|
|
2312
|
-
className:
|
|
2312
|
+
className: d(
|
|
2313
2313
|
"desk-body-regular-l inline-block py-3",
|
|
2314
2314
|
"w-full rounded-sm bg-color-white px-2",
|
|
2315
2315
|
"text-color-dark hover:bg-color-primary-tr-hover",
|
|
@@ -2322,28 +2322,28 @@ const Jr = ({ promises: e }) => {
|
|
|
2322
2322
|
] }),
|
|
2323
2323
|
c
|
|
2324
2324
|
] }),
|
|
2325
|
-
|
|
2325
|
+
ft(p, c, n == null ? void 0 : n.breadcrumb, p.length - 1)
|
|
2326
2326
|
] })
|
|
2327
2327
|
) : (
|
|
2328
2328
|
// otherwise render all breadcrumbs
|
|
2329
|
-
|
|
2329
|
+
ft(u, c, n == null ? void 0 : n.breadcrumb, u.length - 1)
|
|
2330
2330
|
) })
|
|
2331
2331
|
) : (
|
|
2332
2332
|
// if ellipsis doesn't provided render all breadcrumbs
|
|
2333
|
-
|
|
2333
|
+
ft(u, c, n == null ? void 0 : n.breadcrumb, u.length - 1)
|
|
2334
2334
|
)
|
|
2335
2335
|
}
|
|
2336
2336
|
);
|
|
2337
2337
|
};
|
|
2338
|
-
var
|
|
2338
|
+
var ut = /* @__PURE__ */ ((e) => (e.ROOT = "root", e.CURRENT = "current", e))(ut || {});
|
|
2339
2339
|
const on = (e, t) => {
|
|
2340
2340
|
switch (t.type) {
|
|
2341
|
-
case
|
|
2341
|
+
case ut.ROOT:
|
|
2342
2342
|
return {
|
|
2343
2343
|
...e,
|
|
2344
2344
|
root: t.payload
|
|
2345
2345
|
};
|
|
2346
|
-
case
|
|
2346
|
+
case ut.CURRENT:
|
|
2347
2347
|
return {
|
|
2348
2348
|
...e,
|
|
2349
2349
|
current: t.payload
|
|
@@ -2351,20 +2351,20 @@ const on = (e, t) => {
|
|
|
2351
2351
|
default:
|
|
2352
2352
|
return e;
|
|
2353
2353
|
}
|
|
2354
|
-
},
|
|
2354
|
+
}, an = (e) => {
|
|
2355
2355
|
const [t, n] = He(on, e);
|
|
2356
2356
|
return [t, n];
|
|
2357
|
-
},
|
|
2358
|
-
type:
|
|
2357
|
+
}, dn = (e) => ({
|
|
2358
|
+
type: ut.CURRENT,
|
|
2359
2359
|
payload: e
|
|
2360
2360
|
}), ln = (e) => ({
|
|
2361
|
-
type:
|
|
2361
|
+
type: ut.ROOT,
|
|
2362
2362
|
payload: e
|
|
2363
2363
|
}), un = ({ categories: e, ...t }) => {
|
|
2364
2364
|
var n, o;
|
|
2365
|
-
return
|
|
2365
|
+
return de(
|
|
2366
2366
|
/* @__PURE__ */ r.jsx(
|
|
2367
|
-
|
|
2367
|
+
Mt.div,
|
|
2368
2368
|
{
|
|
2369
2369
|
...t,
|
|
2370
2370
|
layout: !0,
|
|
@@ -2374,10 +2374,10 @@ const on = (e, t) => {
|
|
|
2374
2374
|
className: "absolute bg-color-white",
|
|
2375
2375
|
children: /* @__PURE__ */ r.jsx("div", { className: "flex w-[1140px] gap-x-[56px] py-10", children: e.map((i) => {
|
|
2376
2376
|
var l;
|
|
2377
|
-
const
|
|
2377
|
+
const a = i.link ? "a" : "p";
|
|
2378
2378
|
return /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-y-6", children: [
|
|
2379
2379
|
i.title && /* @__PURE__ */ r.jsxs(
|
|
2380
|
-
|
|
2380
|
+
a,
|
|
2381
2381
|
{
|
|
2382
2382
|
href: ((l = i.link) == null ? void 0 : l.href) ?? void 0,
|
|
2383
2383
|
className: "flex items-center gap-x-1 text-16 uppercase text-color-primary-default",
|
|
@@ -2401,13 +2401,13 @@ const on = (e, t) => {
|
|
|
2401
2401
|
((o = (n = document.body.querySelector("#modal-preview")) == null ? void 0 : n.contentDocument) == null ? void 0 : o.body) ?? document.body
|
|
2402
2402
|
);
|
|
2403
2403
|
}, mn = De(({ category: e, active: t, onActiveTabChange: n }, o) => {
|
|
2404
|
-
var m,
|
|
2405
|
-
const i = o && "current" in o ? o : null,
|
|
2404
|
+
var m, h;
|
|
2405
|
+
const i = o && "current" in o ? o : null, a = (m = i == null ? void 0 : i.current) == null ? void 0 : m.getBoundingClientRect(), l = t && !s.isArrayEmpty(e.children), u = s.isArrayEmpty(e.children) ? "a" : "span";
|
|
2406
2406
|
return /* @__PURE__ */ r.jsxs(
|
|
2407
|
-
|
|
2407
|
+
Mt.div,
|
|
2408
2408
|
{
|
|
2409
2409
|
ref: o,
|
|
2410
|
-
className:
|
|
2410
|
+
className: d(
|
|
2411
2411
|
"relative flex cursor-default items-center justify-center py-4 text-color-dark",
|
|
2412
2412
|
'after:content="" after:absolute after:bottom-0 after:left-1/2 after:h-[1px]',
|
|
2413
2413
|
"after:w-0 after:-translate-x-1/2 after:bg-color-primary-default after:duration-100",
|
|
@@ -2420,14 +2420,14 @@ const on = (e, t) => {
|
|
|
2420
2420
|
onMouseLeave: () => n(null),
|
|
2421
2421
|
onFocus: () => n(e.title),
|
|
2422
2422
|
children: [
|
|
2423
|
-
/* @__PURE__ */ r.jsx(u, { href: u === "a" ? (
|
|
2423
|
+
/* @__PURE__ */ r.jsx(u, { href: u === "a" ? (h = e.link) == null ? void 0 : h.href : void 0, className: "desk-body-regular-m outline-none", children: e.title }),
|
|
2424
2424
|
l && /* @__PURE__ */ r.jsx(
|
|
2425
2425
|
un,
|
|
2426
2426
|
{
|
|
2427
2427
|
categories: e.children,
|
|
2428
2428
|
style: {
|
|
2429
|
-
top:
|
|
2430
|
-
left:
|
|
2429
|
+
top: a ? a.top + a.height : 0,
|
|
2430
|
+
left: a ? a.left : 0,
|
|
2431
2431
|
width: window.innerWidth
|
|
2432
2432
|
}
|
|
2433
2433
|
}
|
|
@@ -2435,10 +2435,10 @@ const on = (e, t) => {
|
|
|
2435
2435
|
]
|
|
2436
2436
|
}
|
|
2437
2437
|
);
|
|
2438
|
-
}),
|
|
2439
|
-
const [t, n] = z(null), o =
|
|
2440
|
-
n(
|
|
2441
|
-
}, []), i =
|
|
2438
|
+
}), hn = ee(mn), xn = ({ categories: e }) => {
|
|
2439
|
+
const [t, n] = z(null), o = Yt((a) => {
|
|
2440
|
+
n(a);
|
|
2441
|
+
}, []), i = Tt(null);
|
|
2442
2442
|
return /* @__PURE__ */ r.jsx(Be, { mode: "sync", children: /* @__PURE__ */ r.jsxs(
|
|
2443
2443
|
"div",
|
|
2444
2444
|
{
|
|
@@ -2446,35 +2446,35 @@ const on = (e, t) => {
|
|
|
2446
2446
|
id: "tabs",
|
|
2447
2447
|
className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]",
|
|
2448
2448
|
children: [
|
|
2449
|
-
e.map((
|
|
2450
|
-
|
|
2449
|
+
e.map((a) => /* @__PURE__ */ r.jsx(
|
|
2450
|
+
hn,
|
|
2451
2451
|
{
|
|
2452
2452
|
ref: i,
|
|
2453
|
-
category:
|
|
2454
|
-
active: t ===
|
|
2453
|
+
category: a,
|
|
2454
|
+
active: t === a.title,
|
|
2455
2455
|
onActiveTabChange: o
|
|
2456
2456
|
},
|
|
2457
|
-
|
|
2457
|
+
a.title
|
|
2458
2458
|
)),
|
|
2459
2459
|
/* @__PURE__ */ r.jsx("div", { className: "ml-auto", children: "Личный кабинет" })
|
|
2460
2460
|
]
|
|
2461
2461
|
}
|
|
2462
2462
|
) });
|
|
2463
|
-
},
|
|
2463
|
+
}, pn = ee(xn), cn = ({
|
|
2464
2464
|
category: e,
|
|
2465
2465
|
selectedCategory: t,
|
|
2466
2466
|
onCurrentCategoryChange: n,
|
|
2467
2467
|
onRootCategoryChange: o,
|
|
2468
2468
|
active: i,
|
|
2469
|
-
...
|
|
2469
|
+
...a
|
|
2470
2470
|
}) => /* @__PURE__ */ r.jsxs(
|
|
2471
2471
|
"div",
|
|
2472
2472
|
{
|
|
2473
|
-
...
|
|
2473
|
+
...a,
|
|
2474
2474
|
onClick: () => {
|
|
2475
2475
|
n(e.children[0]), o(e);
|
|
2476
2476
|
},
|
|
2477
|
-
className:
|
|
2477
|
+
className: d("group/category relative cursor-default text-color-blue-grey-600 duration-100 hover:text-color-dark", {
|
|
2478
2478
|
"text-color-dark": i
|
|
2479
2479
|
}),
|
|
2480
2480
|
children: [
|
|
@@ -2482,7 +2482,7 @@ const on = (e, t) => {
|
|
|
2482
2482
|
e.children.length > 1 && /* @__PURE__ */ r.jsx(
|
|
2483
2483
|
"div",
|
|
2484
2484
|
{
|
|
2485
|
-
className:
|
|
2485
|
+
className: d(
|
|
2486
2486
|
"absolute right-0 top-full z-10 flex w-max flex-col",
|
|
2487
2487
|
"invisible bg-color-white opacity-0 shadow-sm group-hover/category:visible group-hover/category:opacity-100",
|
|
2488
2488
|
"rounded-sm p-1"
|
|
@@ -2493,7 +2493,7 @@ const on = (e, t) => {
|
|
|
2493
2493
|
onClick: (u) => {
|
|
2494
2494
|
u.stopPropagation(), u.nativeEvent.stopPropagation(), o(e), n(l);
|
|
2495
2495
|
},
|
|
2496
|
-
className:
|
|
2496
|
+
className: d(
|
|
2497
2497
|
"desk-body-regular-l rounded-sm px-3 py-3.5 text-color-dark duration-100 hover:bg-color-primary-tr-hover hover:text-color-dark",
|
|
2498
2498
|
{
|
|
2499
2499
|
"text-color-primary-default": t.title === l.title
|
|
@@ -2508,36 +2508,36 @@ const on = (e, t) => {
|
|
|
2508
2508
|
]
|
|
2509
2509
|
}
|
|
2510
2510
|
), fn = ({ categories: e, helpers: t, phone: n }) => {
|
|
2511
|
-
const [o, i] =
|
|
2511
|
+
const [o, i] = an({ root: e[0].children[0], current: e[0].children[0] });
|
|
2512
2512
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2513
2513
|
/* @__PURE__ */ r.jsxs("div", { className: "flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)] py-4", children: [
|
|
2514
2514
|
/* @__PURE__ */ r.jsx(f, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
|
|
2515
|
-
e.map((
|
|
2516
|
-
const l = o.root.title ===
|
|
2515
|
+
e.map((a) => {
|
|
2516
|
+
const l = o.root.title === a.title;
|
|
2517
2517
|
return /* @__PURE__ */ r.jsx(
|
|
2518
2518
|
cn,
|
|
2519
2519
|
{
|
|
2520
|
-
category:
|
|
2520
|
+
category: a,
|
|
2521
2521
|
selectedCategory: o.current,
|
|
2522
|
-
onCurrentCategoryChange: (u) => i(
|
|
2522
|
+
onCurrentCategoryChange: (u) => i(dn(u)),
|
|
2523
2523
|
onRootCategoryChange: (u) => i(ln(u)),
|
|
2524
2524
|
active: l
|
|
2525
2525
|
},
|
|
2526
|
-
|
|
2526
|
+
a.title
|
|
2527
2527
|
);
|
|
2528
2528
|
}),
|
|
2529
2529
|
/* @__PURE__ */ r.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
|
|
2530
|
-
t.map((
|
|
2530
|
+
t.map((a) => /* @__PURE__ */ r.jsxs(
|
|
2531
2531
|
"a",
|
|
2532
2532
|
{
|
|
2533
|
-
href:
|
|
2533
|
+
href: a.link.href,
|
|
2534
2534
|
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2535
2535
|
children: [
|
|
2536
|
-
|
|
2537
|
-
|
|
2536
|
+
a.link.icon && /* @__PURE__ */ r.jsx(f, { name: a.link.icon, className: "size-4" }),
|
|
2537
|
+
a.title
|
|
2538
2538
|
]
|
|
2539
2539
|
},
|
|
2540
|
-
|
|
2540
|
+
a.title
|
|
2541
2541
|
)),
|
|
2542
2542
|
/* @__PURE__ */ r.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
|
|
2543
2543
|
/* @__PURE__ */ r.jsx(
|
|
@@ -2545,14 +2545,14 @@ const on = (e, t) => {
|
|
|
2545
2545
|
{
|
|
2546
2546
|
href: `tel:${n}`,
|
|
2547
2547
|
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2548
|
-
children:
|
|
2548
|
+
children: yt(n, "x xxx xxx xx xx")
|
|
2549
2549
|
}
|
|
2550
2550
|
)
|
|
2551
2551
|
] }),
|
|
2552
|
-
/* @__PURE__ */ r.jsx(
|
|
2552
|
+
/* @__PURE__ */ r.jsx(pn, { categories: o.current.children })
|
|
2553
2553
|
] });
|
|
2554
2554
|
}, bn = ({ category: e }) => /* @__PURE__ */ r.jsx(
|
|
2555
|
-
|
|
2555
|
+
ot,
|
|
2556
2556
|
{
|
|
2557
2557
|
label: e.title ?? "",
|
|
2558
2558
|
icon: /* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className: "-rotate-90" }),
|
|
@@ -2562,7 +2562,7 @@ const on = (e, t) => {
|
|
|
2562
2562
|
trigger: "py-2 data-[open=false]:bg-color-white",
|
|
2563
2563
|
label: "desk-body-regular-m"
|
|
2564
2564
|
},
|
|
2565
|
-
content:
|
|
2565
|
+
content: d(
|
|
2566
2566
|
"relative",
|
|
2567
2567
|
'after:content-"" after:absolute after:w-[calc(100%-32px)]',
|
|
2568
2568
|
"after:bottom-0 after:left-1/2 after:-translate-x-1/2",
|
|
@@ -2584,9 +2584,9 @@ const on = (e, t) => {
|
|
|
2584
2584
|
]
|
|
2585
2585
|
}
|
|
2586
2586
|
),
|
|
2587
|
-
t.children.map((
|
|
2587
|
+
t.children.map((a) => {
|
|
2588
2588
|
var l;
|
|
2589
|
-
return /* @__PURE__ */ r.jsx("li", { className: "inline-block w-full [&:not(:last-child)]:mb-3", children: /* @__PURE__ */ r.jsx("a", { href: (l =
|
|
2589
|
+
return /* @__PURE__ */ r.jsx("li", { className: "inline-block w-full [&:not(:last-child)]:mb-3", children: /* @__PURE__ */ r.jsx("a", { href: (l = a.link) == null ? void 0 : l.href, className: "w-full", children: a.title }) }, a.title);
|
|
2590
2590
|
})
|
|
2591
2591
|
] }, t.title);
|
|
2592
2592
|
}) })
|
|
@@ -2596,17 +2596,17 @@ const on = (e, t) => {
|
|
|
2596
2596
|
value: t.title ?? "",
|
|
2597
2597
|
label: t.title ?? ""
|
|
2598
2598
|
})), jn = ({ categories: e, helpers: t, phone: n, ...o }) => {
|
|
2599
|
-
const i = gn(e), [
|
|
2600
|
-
s.isUndefined(
|
|
2599
|
+
const i = gn(e), [a, l] = z(i[0]), u = (h) => {
|
|
2600
|
+
s.isUndefined(h) || s.isArray(h) || l(h);
|
|
2601
2601
|
}, m = Ft(() => {
|
|
2602
|
-
var
|
|
2603
|
-
return s.isUndefined(
|
|
2604
|
-
}, [
|
|
2602
|
+
var h;
|
|
2603
|
+
return s.isUndefined(a) || s.isArray(a) ? [] : ((h = e.find((p) => p.title === a.value)) == null ? void 0 : h.children) ?? [];
|
|
2604
|
+
}, [a, e]);
|
|
2605
2605
|
return /* @__PURE__ */ r.jsxs(
|
|
2606
|
-
|
|
2606
|
+
Mt.div,
|
|
2607
2607
|
{
|
|
2608
2608
|
...o,
|
|
2609
|
-
className:
|
|
2609
|
+
className: d(
|
|
2610
2610
|
"absolute w-full max-w-[calc(636px-32px)]",
|
|
2611
2611
|
"absolute left-1/2 top-full bg-color-white p-4",
|
|
2612
2612
|
"-translate-x-1/2 overflow-x-hidden",
|
|
@@ -2615,35 +2615,35 @@ const on = (e, t) => {
|
|
|
2615
2615
|
initial: { opacity: 0 },
|
|
2616
2616
|
animate: { opacity: 1 },
|
|
2617
2617
|
children: [
|
|
2618
|
-
/* @__PURE__ */ r.jsx(
|
|
2619
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: m.map((
|
|
2620
|
-
var
|
|
2621
|
-
return s.isArrayEmpty(
|
|
2618
|
+
/* @__PURE__ */ r.jsx(Jt.SelectBase, { label: "Категория", options: i, value: a, onChange: u }),
|
|
2619
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: m.map((h) => {
|
|
2620
|
+
var p;
|
|
2621
|
+
return s.isArrayEmpty(h.children) ? /* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsx("a", { href: (p = h.link) == null ? void 0 : p.href, className: "desk-body-regular-m inline-block w-full", children: h.title }) }, h.title) : /* @__PURE__ */ r.jsx(bn, { category: h }, h.title);
|
|
2622
2622
|
}) }),
|
|
2623
2623
|
/* @__PURE__ */ r.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
|
|
2624
2624
|
/* @__PURE__ */ r.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
|
|
2625
|
-
t.map((
|
|
2626
|
-
var
|
|
2627
|
-
return /* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsxs("a", { href: (
|
|
2628
|
-
((c =
|
|
2629
|
-
|
|
2630
|
-
] }) },
|
|
2625
|
+
t.map((h) => {
|
|
2626
|
+
var p, c;
|
|
2627
|
+
return /* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsxs("a", { href: (p = h.link) == null ? void 0 : p.href, className: "flex w-full items-center gap-x-1", children: [
|
|
2628
|
+
((c = h.link) == null ? void 0 : c.icon) && /* @__PURE__ */ r.jsx(f, { name: h.link.icon, className: "size-4" }),
|
|
2629
|
+
h.title
|
|
2630
|
+
] }) }, h.title);
|
|
2631
2631
|
}),
|
|
2632
2632
|
/* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsxs("a", { href: `tel:${n}`, className: "flex w-full items-center gap-x-1", children: [
|
|
2633
2633
|
/* @__PURE__ */ r.jsx(f, { name: "communication/phone", className: "size-4" }),
|
|
2634
|
-
|
|
2634
|
+
yt(n)
|
|
2635
2635
|
] }) })
|
|
2636
2636
|
] })
|
|
2637
2637
|
]
|
|
2638
2638
|
}
|
|
2639
2639
|
);
|
|
2640
2640
|
}, yn = ({ categories: e, helpers: t, phone: n }) => {
|
|
2641
|
-
var m,
|
|
2642
|
-
const o =
|
|
2641
|
+
var m, h, p;
|
|
2642
|
+
const o = Tt(null), i = (m = o.current) == null ? void 0 : m.getBoundingClientRect(), [a, l] = z(!1), u = () => l(!a);
|
|
2643
2643
|
return /* @__PURE__ */ r.jsxs("div", { ref: o, className: "relative flex w-full items-center justify-between border-b border-b-blue-grey-500 py-4", children: [
|
|
2644
2644
|
/* @__PURE__ */ r.jsx(f, { name: "brandLogos/logoMain", className: "w-[130px]" }),
|
|
2645
|
-
/* @__PURE__ */ r.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ r.jsx(f, { name:
|
|
2646
|
-
|
|
2645
|
+
/* @__PURE__ */ r.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ r.jsx(f, { name: a ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
|
|
2646
|
+
a && de(
|
|
2647
2647
|
/* @__PURE__ */ r.jsx(
|
|
2648
2648
|
jn,
|
|
2649
2649
|
{
|
|
@@ -2656,11 +2656,11 @@ const on = (e, t) => {
|
|
|
2656
2656
|
/**
|
|
2657
2657
|
* Нужно для preview, чтобы категории рендерились в iframe
|
|
2658
2658
|
*/
|
|
2659
|
-
((
|
|
2659
|
+
((p = (h = document.body.querySelector("#modal-preview")) == null ? void 0 : h.contentDocument) == null ? void 0 : p.body) ?? document.body
|
|
2660
2660
|
)
|
|
2661
2661
|
] });
|
|
2662
|
-
},
|
|
2663
|
-
const { isMobile: o } =
|
|
2662
|
+
}, no = ({ categories: e, helpers: t, phone: n }) => {
|
|
2663
|
+
const { isMobile: o } = G();
|
|
2664
2664
|
return /* @__PURE__ */ r.jsxs("div", { id: g.seoHeader, "data-test-id": g.seoHeader, className: "mx-auto w-full max-w-[1440px]", children: [
|
|
2665
2665
|
o ? /* @__PURE__ */ r.jsx(yn, { categories: e.map((i) => i.children).flat(), helpers: t, phone: n }) : /* @__PURE__ */ r.jsx(fn, { categories: e, helpers: t, phone: n }),
|
|
2666
2666
|
/* @__PURE__ */ r.jsx(
|
|
@@ -2685,7 +2685,7 @@ const on = (e, t) => {
|
|
|
2685
2685
|
break;
|
|
2686
2686
|
}
|
|
2687
2687
|
return new Intl.NumberFormat("ru-RU", o).format(n);
|
|
2688
|
-
}, sn = (e) => Object.values(e).reduce((n, o) => n.merge(
|
|
2688
|
+
}, sn = (e) => Object.values(e).reduce((n, o) => n.merge(ue(o.fields)), Ve.object({})), kn = (e, t) => {
|
|
2689
2689
|
const o = (e.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in t));
|
|
2690
2690
|
if (o.length > 0)
|
|
2691
2691
|
throw new Error(`Отсутствуют переменные для калькулятора: ${o.join(", ")}`);
|
|
@@ -2702,11 +2702,11 @@ const on = (e, t) => {
|
|
|
2702
2702
|
] }) }), Nn = ({ topDescription: e, rootValue: t, suffix: n }) => /* @__PURE__ */ r.jsxs("div", { className: "mb-6 flex items-center justify-between gap-6", children: [
|
|
2703
2703
|
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: e }),
|
|
2704
2704
|
/* @__PURE__ */ r.jsx("div", { className: "desk-title-bold-l flex items-center gap-1 text-color-dark", children: /* @__PURE__ */ r.jsx("span", { children: fe(n, Number(t)) }) })
|
|
2705
|
-
] }), Cn = ({ hint: e, value: t, label: n, suffix: o, color: i = "dark", accent:
|
|
2705
|
+
] }), Cn = ({ hint: e, value: t, label: n, suffix: o, color: i = "dark", accent: a = !1 }) => /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2706
2706
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2707
2707
|
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: n }),
|
|
2708
2708
|
e && /* @__PURE__ */ r.jsx(
|
|
2709
|
-
|
|
2709
|
+
Ct,
|
|
2710
2710
|
{
|
|
2711
2711
|
withCloseBtn: !1,
|
|
2712
2712
|
triggerElement: /* @__PURE__ */ r.jsx(f, { className: "size-5 text-icon-blue-grey-600", name: "info/helpCircle" }),
|
|
@@ -2717,33 +2717,33 @@ const on = (e, t) => {
|
|
|
2717
2717
|
/* @__PURE__ */ r.jsx(
|
|
2718
2718
|
"span",
|
|
2719
2719
|
{
|
|
2720
|
-
className:
|
|
2721
|
-
"[&&]:desk-title-bold-s":
|
|
2720
|
+
className: d("desk-body-regular-l text-color-dark", {
|
|
2721
|
+
"[&&]:desk-title-bold-s": a,
|
|
2722
2722
|
"text-color-primary-default": i === "blue"
|
|
2723
2723
|
}),
|
|
2724
2724
|
children: fe(o, Number(t))
|
|
2725
2725
|
}
|
|
2726
2726
|
)
|
|
2727
2727
|
] }), In = ({ infoList: e }) => {
|
|
2728
|
-
const { watch: t } =
|
|
2728
|
+
const { watch: t } = oe(), n = t(), o = wn(e, n);
|
|
2729
2729
|
return /* @__PURE__ */ r.jsx("div", { className: "my-4 flex flex-col gap-3 border-t border-solid border-blue-grey-500 pt-4", children: o == null ? void 0 : o.map((i) => /* @__PURE__ */ r.jsx(Cn, { ...i }, i.label)) });
|
|
2730
2730
|
}, Mn = ({ iconName: e, text: t, hint: n }) => /* @__PURE__ */ r.jsxs("div", { className: "mb-6 flex items-center gap-2", children: [
|
|
2731
2731
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
2732
2732
|
/* @__PURE__ */ r.jsx(f, { name: e, className: "size-6 text-icon-blue-grey-800" }),
|
|
2733
2733
|
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: t })
|
|
2734
2734
|
] }),
|
|
2735
|
-
n && /* @__PURE__ */ r.jsx(
|
|
2736
|
-
] }),
|
|
2735
|
+
n && /* @__PURE__ */ r.jsx(Ct, { withCloseBtn: !1, triggerElement: /* @__PURE__ */ r.jsx(f, { name: "info/helpCircle", className: "size-5 text-icon-blue-grey-600" }), children: /* @__PURE__ */ r.jsx("p", { children: n }) })
|
|
2736
|
+
] }), Fn = ({ assistHint: e, buttonProps: t, bottomDescription: n }) => /* @__PURE__ */ r.jsxs("div", { children: [
|
|
2737
2737
|
e && /* @__PURE__ */ r.jsx(Mn, { ...e }),
|
|
2738
|
-
t && /* @__PURE__ */ r.jsx(
|
|
2738
|
+
t && /* @__PURE__ */ r.jsx(gt, { className: "w-full", ...t, children: t.children }),
|
|
2739
2739
|
n && /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-m mt-4 text-color-secondary", children: n })
|
|
2740
|
-
] }),
|
|
2740
|
+
] }), Tn = ({
|
|
2741
2741
|
topDescription: e,
|
|
2742
2742
|
bottomDescription: t,
|
|
2743
2743
|
rootValue: n,
|
|
2744
2744
|
title: o,
|
|
2745
2745
|
subtitle: i,
|
|
2746
|
-
buttonProps:
|
|
2746
|
+
buttonProps: a,
|
|
2747
2747
|
infoList: l,
|
|
2748
2748
|
suffix: u,
|
|
2749
2749
|
assistHint: m
|
|
@@ -2751,8 +2751,8 @@ const on = (e, t) => {
|
|
|
2751
2751
|
/* @__PURE__ */ r.jsx(Nn, { suffix: u, rootValue: n, topDescription: e }),
|
|
2752
2752
|
/* @__PURE__ */ r.jsx(vn, { title: o, subtitle: i }),
|
|
2753
2753
|
/* @__PURE__ */ r.jsx(In, { infoList: l }),
|
|
2754
|
-
/* @__PURE__ */ r.jsx(
|
|
2755
|
-
] }),
|
|
2754
|
+
/* @__PURE__ */ r.jsx(Fn, { assistHint: m, buttonProps: a, bottomDescription: t })
|
|
2755
|
+
] }), En = (e) => {
|
|
2756
2756
|
switch (e) {
|
|
2757
2757
|
case "content1":
|
|
2758
2758
|
return /* @__PURE__ */ r.jsx("div", { children: "content 1" });
|
|
@@ -2760,75 +2760,69 @@ const on = (e, t) => {
|
|
|
2760
2760
|
return /* @__PURE__ */ r.jsx("div", { children: "content 2" });
|
|
2761
2761
|
}
|
|
2762
2762
|
}, On = ({ triggerText: e, modalTitle: t, description: n, contentVariant: o }) => {
|
|
2763
|
-
const [i,
|
|
2763
|
+
const [i, a] = Ue(!1);
|
|
2764
2764
|
return /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-4 rounded-sm bg-color-blue-grey-100 p-4", children: [
|
|
2765
2765
|
n && /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: n }),
|
|
2766
2766
|
/* @__PURE__ */ r.jsx(
|
|
2767
2767
|
"button",
|
|
2768
2768
|
{
|
|
2769
|
-
onClick: () =>
|
|
2769
|
+
onClick: () => a(!0),
|
|
2770
2770
|
className: "desk-body-regular-l w-max cursor-pointer text-color-primary-default underline underline-offset-4",
|
|
2771
2771
|
children: e
|
|
2772
2772
|
}
|
|
2773
2773
|
),
|
|
2774
|
-
/* @__PURE__ */ r.jsx(Re, { title: t, isModalOpen: i, closeModal: () =>
|
|
2774
|
+
/* @__PURE__ */ r.jsx(Re, { title: t, isModalOpen: i, closeModal: () => a(!1), children: En(o) })
|
|
2775
2775
|
] });
|
|
2776
|
-
},
|
|
2777
|
-
const { control: t } =
|
|
2778
|
-
return /* @__PURE__ */ r.jsx(
|
|
2779
|
-
}, Sn = ({
|
|
2780
|
-
const { control: t } = mt();
|
|
2781
|
-
return /* @__PURE__ */ r.jsx(pt, { control: t, fields: e });
|
|
2782
|
-
}, Bn = ({ fields: e }) => {
|
|
2783
|
-
const { control: t } = mt();
|
|
2784
|
-
return /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(pt, { control: t, fields: e }) });
|
|
2785
|
-
}, Rn = ({ fields: e }) => {
|
|
2786
|
-
const { control: t } = mt();
|
|
2787
|
-
return /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(pt, { control: t, fields: e }) });
|
|
2788
|
-
}, _n = ({ modalConfig: e, fieldsGroup: t }) => /* @__PURE__ */ r.jsxs("div", { className: "flex flex-1 flex-col gap-8", children: [
|
|
2776
|
+
}, X = ({ fields: e }) => {
|
|
2777
|
+
const { control: t } = oe();
|
|
2778
|
+
return /* @__PURE__ */ r.jsx(xe, { control: t, fields: e });
|
|
2779
|
+
}, Sn = ({ modalConfig: e, fieldsGroup: t }) => /* @__PURE__ */ r.jsxs("div", { className: "flex flex-1 flex-col gap-8", children: [
|
|
2789
2780
|
e && /* @__PURE__ */ r.jsx(On, { ...e }),
|
|
2790
|
-
/* @__PURE__ */ r.jsx(
|
|
2791
|
-
(t == null ? void 0 : t.
|
|
2792
|
-
(t == null ? void 0 : t.
|
|
2793
|
-
(t == null ? void 0 : t.
|
|
2794
|
-
(t == null ? void 0 : t.
|
|
2795
|
-
(t == null ? void 0 : t.
|
|
2796
|
-
|
|
2781
|
+
(t == null ? void 0 : t.selectGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(X, { ...t == null ? void 0 : t.selectGroupConfig }) }),
|
|
2782
|
+
(t == null ? void 0 : t.slidersGroupConfig) && /* @__PURE__ */ r.jsx(X, { ...t == null ? void 0 : t.slidersGroupConfig }),
|
|
2783
|
+
(t == null ? void 0 : t.radioGroupTabConfig) && /* @__PURE__ */ r.jsx(X, { ...t == null ? void 0 : t.radioGroupTabConfig }),
|
|
2784
|
+
(t == null ? void 0 : t.checkboxGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(X, { ...t == null ? void 0 : t.checkboxGroupConfig }) }),
|
|
2785
|
+
(t == null ? void 0 : t.radioGroupConfig) && /* @__PURE__ */ r.jsx(X, { ...t == null ? void 0 : t.radioGroupConfig }),
|
|
2786
|
+
(t == null ? void 0 : t.radioGroupCardConfig) && /* @__PURE__ */ r.jsx(X, { ...t == null ? void 0 : t.radioGroupCardConfig }),
|
|
2787
|
+
(t == null ? void 0 : t.switchGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(X, { ...t == null ? void 0 : t.switchGroupConfig }) })
|
|
2788
|
+
] }), Bn = ({ calculatorTabs: e, activeCalculator: t, setActiveCalculator: n }) => /* @__PURE__ */ r.jsx("div", { className: "mb-8 flex items-center gap-4", children: e == null ? void 0 : e.map(({ value: o, label: i }) => /* @__PURE__ */ r.jsx(
|
|
2797
2789
|
"button",
|
|
2798
2790
|
{
|
|
2799
2791
|
onClick: () => n(o),
|
|
2800
|
-
className:
|
|
2792
|
+
className: d(
|
|
2801
2793
|
"mob-body-regular-m text-nowrap rounded-sm bg-color-blue-grey-100 px-3 py-1.5 text-color-secondary outline-1 outline-offset-4 outline-transparent desktop:desk-body-regular-l focus:outline-primary-focus desktop:px-4 desktop:py-3",
|
|
2802
2794
|
{ "bg-icon-primary-default text-color-white": t === o }
|
|
2803
2795
|
),
|
|
2804
2796
|
children: i
|
|
2805
2797
|
},
|
|
2806
2798
|
o
|
|
2807
|
-
)) }),
|
|
2808
|
-
const n = sn(t.fieldsGroup), o =
|
|
2799
|
+
)) }), Rn = ({ calculatedInfoConfig: e, rootCalculatorConfig: t }) => {
|
|
2800
|
+
const n = sn(t.fieldsGroup), o = ne({
|
|
2809
2801
|
schema: n,
|
|
2810
2802
|
mode: "onBlur",
|
|
2811
2803
|
defaultValues: ae.getZodDefaults(n)
|
|
2812
|
-
}), i = o.watch()
|
|
2804
|
+
}), i = o.watch();
|
|
2805
|
+
console.log(i, "@watchedFields");
|
|
2806
|
+
const { rootValue: a } = e, l = ce(a) ? be(a.formula, i) : a, u = { ...e, rootValue: l };
|
|
2813
2807
|
return /* @__PURE__ */ r.jsx(Qe, { ...o, children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-start gap-16", children: [
|
|
2814
|
-
/* @__PURE__ */ r.jsx(
|
|
2815
|
-
/* @__PURE__ */ r.jsx(
|
|
2808
|
+
/* @__PURE__ */ r.jsx(Sn, { ...t }),
|
|
2809
|
+
/* @__PURE__ */ r.jsx(Tn, { ...u })
|
|
2816
2810
|
] }) });
|
|
2817
|
-
},
|
|
2811
|
+
}, oo = ({ calculators: e, calculatorTabs: t, headline: n }) => {
|
|
2818
2812
|
var u;
|
|
2819
|
-
const o = t && t.length > 1 && e.length > 1, [i,
|
|
2813
|
+
const o = t && t.length > 1 && e.length > 1, [i, a] = z(o ? (u = t[0]) == null ? void 0 : u.value : ""), l = o ? e[t.findIndex((m) => m.value === i)] : e[0];
|
|
2820
2814
|
return /* @__PURE__ */ r.jsx("section", { id: g.calculator, children: /* @__PURE__ */ r.jsx(S, { children: /* @__PURE__ */ r.jsxs("div", { className: "rounded-md bg-color-white px-10 py-12 shadow-md", children: [
|
|
2821
2815
|
/* @__PURE__ */ r.jsx(H, { className: "mb-12", as: "h2", children: n }),
|
|
2822
2816
|
o && /* @__PURE__ */ r.jsx(
|
|
2823
|
-
|
|
2817
|
+
Bn,
|
|
2824
2818
|
{
|
|
2825
2819
|
calculatorTabs: t,
|
|
2826
2820
|
activeCalculator: i,
|
|
2827
|
-
setActiveCalculator:
|
|
2821
|
+
setActiveCalculator: a
|
|
2828
2822
|
}
|
|
2829
2823
|
),
|
|
2830
2824
|
l && /* @__PURE__ */ r.jsx(
|
|
2831
|
-
|
|
2825
|
+
Rn,
|
|
2832
2826
|
{
|
|
2833
2827
|
calculatedInfoConfig: l.calculatedInfoConfig,
|
|
2834
2828
|
rootCalculatorConfig: l.rootCalculatorConfig
|
|
@@ -2838,29 +2832,29 @@ const on = (e, t) => {
|
|
|
2838
2832
|
] }) }) });
|
|
2839
2833
|
};
|
|
2840
2834
|
export {
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2835
|
+
vt as Advantages,
|
|
2836
|
+
Yn as AuthProvider,
|
|
2837
|
+
Kn as Banner,
|
|
2838
|
+
zt as BannerWithSeparateImg,
|
|
2839
|
+
Wn as Benefit,
|
|
2846
2840
|
nn as Breadcrumbs,
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2841
|
+
Y as ButtonWithHandlers,
|
|
2842
|
+
Rn as Calculator,
|
|
2843
|
+
oo as CalculatorRoot,
|
|
2844
|
+
eo as DynamicForm,
|
|
2845
|
+
ro as FallbacksView,
|
|
2846
|
+
xe as FieldMapper,
|
|
2847
|
+
Zn as Footer,
|
|
2854
2848
|
Xr as HTMLParser,
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2849
|
+
bt as HTMLRenderer,
|
|
2850
|
+
$n as Header,
|
|
2851
|
+
Gn as InterLinking,
|
|
2852
|
+
Jn as LongBanner,
|
|
2853
|
+
no as SeoHeader,
|
|
2854
|
+
Xn as Stepper,
|
|
2855
|
+
to as UsefulInfo,
|
|
2862
2856
|
Ye as WIDGET_LIST,
|
|
2863
|
-
|
|
2857
|
+
ue as getDynamicSchema,
|
|
2864
2858
|
Gr as queryClient,
|
|
2865
2859
|
g as widgetIds
|
|
2866
2860
|
};
|