@scbt-ecom/ui 0.78.9 → 0.78.10
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/widget.js +438 -438
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
package/dist/widget.js
CHANGED
|
@@ -4,17 +4,17 @@ var Re = (t) => {
|
|
|
4
4
|
};
|
|
5
5
|
var Et = (t, e, o) => e in t ? Ft(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
6
6
|
var ve = (t, e, o) => Et(t, typeof e != "symbol" ? e + "" : e, o), Ne = (t, e, o) => e.has(t) || Re("Cannot " + o);
|
|
7
|
-
var
|
|
7
|
+
var h = (t, e, o) => (Ne(t, e, "read from private field"), o ? o.call(t) : e.get(t)), M = (t, e, o) => e.has(t) ? Re("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, o), k = (t, e, o, n) => (Ne(t, e, "write to private field"), n ? n.call(t, o) : e.set(t, o), o), W = (t, e, o) => (Ne(t, e, "access private method"), o);
|
|
8
8
|
var ce = (t, e, o, n) => ({
|
|
9
9
|
set _(i) {
|
|
10
10
|
k(t, e, i, o);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return
|
|
13
|
+
return h(t, e, n);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { S as ct, h as ft, Q as Bt, n as O, m as He, R as Pt, c as Dt, a as ze, b as V, e as Rt, d as Ht, f as zt, g as Lt, o as Le, r as Qe, i as Qt, j as Ve, p as $e, s as Vt, k as r, B as ge, l as E, q as F, P as bt, t as $t, H as L, I as b, C as je, u as _e, L as At, v as Te, A as
|
|
17
|
-
import { c as
|
|
16
|
+
import { S as ct, h as ft, Q as Bt, n as O, m as He, R as Pt, c as Dt, a as ze, b as V, e as Rt, d as Ht, f as zt, g as Lt, o as Le, r as Qe, i as Qt, j as Ve, p as $e, s as Vt, k as r, B as ge, l as E, q as F, P as bt, t as $t, H as L, I as b, C as je, u as _e, L as At, v as Te, A as ae, w as gt, x as qt, y as Wt, U as ye, D as Ut, z as Se, E as Kt, M as Zt } from "./index-03-Bjlyq.js";
|
|
17
|
+
import { c as l, T as S } from "./typeGuards-CSiImkUY.js";
|
|
18
18
|
import * as ue from "react";
|
|
19
19
|
import { lazy as B, useCallback as jt, useState as A, useMemo as se, createElement as yt, useRef as Oe, useReducer as Xt, memo as Fe, forwardRef as Yt, useEffect as Ae } from "react";
|
|
20
20
|
import { i as qe } from "./isClient-C9aZtt2Q.js";
|
|
@@ -31,26 +31,26 @@ var R, mt, or = (mt = class extends ct {
|
|
|
31
31
|
this.config = e, k(this, R, /* @__PURE__ */ new Map());
|
|
32
32
|
}
|
|
33
33
|
build(e, o, n) {
|
|
34
|
-
const i = o.queryKey,
|
|
35
|
-
let d = this.get(
|
|
34
|
+
const i = o.queryKey, a = o.queryHash ?? ft(i, o);
|
|
35
|
+
let d = this.get(a);
|
|
36
36
|
return d || (d = new Bt({
|
|
37
37
|
client: e,
|
|
38
38
|
queryKey: i,
|
|
39
|
-
queryHash:
|
|
39
|
+
queryHash: a,
|
|
40
40
|
options: e.defaultQueryOptions(o),
|
|
41
41
|
state: n,
|
|
42
42
|
defaultOptions: e.getQueryDefaults(i)
|
|
43
43
|
}), this.add(d)), d;
|
|
44
44
|
}
|
|
45
45
|
add(e) {
|
|
46
|
-
|
|
46
|
+
h(this, R).has(e.queryHash) || (h(this, R).set(e.queryHash, e), this.notify({
|
|
47
47
|
type: "added",
|
|
48
48
|
query: e
|
|
49
49
|
}));
|
|
50
50
|
}
|
|
51
51
|
remove(e) {
|
|
52
|
-
const o =
|
|
53
|
-
o && (e.destroy(), o === e &&
|
|
52
|
+
const o = h(this, R).get(e.queryHash);
|
|
53
|
+
o && (e.destroy(), o === e && h(this, R).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
54
54
|
}
|
|
55
55
|
clear() {
|
|
56
56
|
O.batch(() => {
|
|
@@ -60,10 +60,10 @@ var R, mt, or = (mt = class extends ct {
|
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
62
|
get(e) {
|
|
63
|
-
return
|
|
63
|
+
return h(this, R).get(e);
|
|
64
64
|
}
|
|
65
65
|
getAll() {
|
|
66
|
-
return [...
|
|
66
|
+
return [...h(this, R).values()];
|
|
67
67
|
}
|
|
68
68
|
find(e) {
|
|
69
69
|
const o = { exact: !0, ...e };
|
|
@@ -96,14 +96,14 @@ var R, mt, or = (mt = class extends ct {
|
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
}, R = new WeakMap(), mt), H, T, G, z, U,
|
|
99
|
+
}, R = new WeakMap(), mt), H, T, G, z, U, xt, ir = (xt = class extends Pt {
|
|
100
100
|
constructor(e) {
|
|
101
101
|
super();
|
|
102
102
|
M(this, z);
|
|
103
103
|
M(this, H);
|
|
104
104
|
M(this, T);
|
|
105
105
|
M(this, G);
|
|
106
|
-
this.mutationId = e.mutationId, k(this, T, e.mutationCache), k(this, H, []), this.state = e.state ||
|
|
106
|
+
this.mutationId = e.mutationId, k(this, T, e.mutationCache), k(this, H, []), this.state = e.state || ar(), this.setOptions(e.options), this.scheduleGc();
|
|
107
107
|
}
|
|
108
108
|
setOptions(e) {
|
|
109
109
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -112,29 +112,29 @@ var R, mt, or = (mt = class extends ct {
|
|
|
112
112
|
return this.options.meta;
|
|
113
113
|
}
|
|
114
114
|
addObserver(e) {
|
|
115
|
-
|
|
115
|
+
h(this, H).includes(e) || (h(this, H).push(e), this.clearGcTimeout(), h(this, T).notify({
|
|
116
116
|
type: "observerAdded",
|
|
117
117
|
mutation: this,
|
|
118
118
|
observer: e
|
|
119
119
|
}));
|
|
120
120
|
}
|
|
121
121
|
removeObserver(e) {
|
|
122
|
-
k(this, H,
|
|
122
|
+
k(this, H, h(this, H).filter((o) => o !== e)), this.scheduleGc(), h(this, T).notify({
|
|
123
123
|
type: "observerRemoved",
|
|
124
124
|
mutation: this,
|
|
125
125
|
observer: e
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
optionalRemove() {
|
|
129
|
-
|
|
129
|
+
h(this, H).length || (this.state.status === "pending" ? this.scheduleGc() : h(this, T).remove(this));
|
|
130
130
|
}
|
|
131
131
|
continue() {
|
|
132
132
|
var e;
|
|
133
|
-
return ((e =
|
|
133
|
+
return ((e = h(this, G)) == null ? void 0 : e.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(e) {
|
|
137
|
-
var
|
|
137
|
+
var a, d, u, m, x, p, c, g, f, w, j, v, _, q, C, I, D, Q, he, le;
|
|
138
138
|
const o = () => {
|
|
139
139
|
W(this, z, U).call(this, { type: "continue" });
|
|
140
140
|
};
|
|
@@ -150,15 +150,15 @@ var R, mt, or = (mt = class extends ct {
|
|
|
150
150
|
retry: this.options.retry ?? 0,
|
|
151
151
|
retryDelay: this.options.retryDelay,
|
|
152
152
|
networkMode: this.options.networkMode,
|
|
153
|
-
canRun: () =>
|
|
153
|
+
canRun: () => h(this, T).canRun(this)
|
|
154
154
|
}));
|
|
155
|
-
const n = this.state.status === "pending", i = !
|
|
155
|
+
const n = this.state.status === "pending", i = !h(this, G).canStart();
|
|
156
156
|
try {
|
|
157
157
|
if (n)
|
|
158
158
|
o();
|
|
159
159
|
else {
|
|
160
|
-
W(this, z, U).call(this, { type: "pending", variables: e, isPaused: i }), await ((d = (
|
|
161
|
-
|
|
160
|
+
W(this, z, U).call(this, { type: "pending", variables: e, isPaused: i }), await ((d = (a = h(this, T).config).onMutate) == null ? void 0 : d.call(
|
|
161
|
+
a,
|
|
162
162
|
e,
|
|
163
163
|
this
|
|
164
164
|
));
|
|
@@ -170,14 +170,14 @@ var R, mt, or = (mt = class extends ct {
|
|
|
170
170
|
isPaused: i
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
const N = await
|
|
174
|
-
return await ((p = (
|
|
175
|
-
|
|
173
|
+
const N = await h(this, G).start();
|
|
174
|
+
return await ((p = (x = h(this, T).config).onSuccess) == null ? void 0 : p.call(
|
|
175
|
+
x,
|
|
176
176
|
N,
|
|
177
177
|
e,
|
|
178
178
|
this.state.context,
|
|
179
179
|
this
|
|
180
|
-
)), await ((g = (c = this.options).onSuccess) == null ? void 0 : g.call(c, N, e, this.state.context)), await ((w = (f =
|
|
180
|
+
)), await ((g = (c = this.options).onSuccess) == null ? void 0 : g.call(c, N, e, this.state.context)), await ((w = (f = h(this, T).config).onSettled) == null ? void 0 : w.call(
|
|
181
181
|
f,
|
|
182
182
|
N,
|
|
183
183
|
null,
|
|
@@ -187,7 +187,7 @@ var R, mt, or = (mt = class extends ct {
|
|
|
187
187
|
)), await ((v = (j = this.options).onSettled) == null ? void 0 : v.call(j, N, null, e, this.state.context)), W(this, z, U).call(this, { type: "success", data: N }), N;
|
|
188
188
|
} catch (N) {
|
|
189
189
|
try {
|
|
190
|
-
throw await ((q = (_ =
|
|
190
|
+
throw await ((q = (_ = h(this, T).config).onError) == null ? void 0 : q.call(
|
|
191
191
|
_,
|
|
192
192
|
N,
|
|
193
193
|
e,
|
|
@@ -198,15 +198,15 @@ var R, mt, or = (mt = class extends ct {
|
|
|
198
198
|
N,
|
|
199
199
|
e,
|
|
200
200
|
this.state.context
|
|
201
|
-
)), await ((Q = (D =
|
|
201
|
+
)), await ((Q = (D = h(this, T).config).onSettled) == null ? void 0 : Q.call(
|
|
202
202
|
D,
|
|
203
203
|
void 0,
|
|
204
204
|
N,
|
|
205
205
|
this.state.variables,
|
|
206
206
|
this.state.context,
|
|
207
207
|
this
|
|
208
|
-
)), await ((
|
|
209
|
-
|
|
208
|
+
)), await ((le = (he = this.options).onSettled) == null ? void 0 : le.call(
|
|
209
|
+
he,
|
|
210
210
|
void 0,
|
|
211
211
|
N,
|
|
212
212
|
e,
|
|
@@ -216,7 +216,7 @@ var R, mt, or = (mt = class extends ct {
|
|
|
216
216
|
W(this, z, U).call(this, { type: "error", error: N });
|
|
217
217
|
}
|
|
218
218
|
} finally {
|
|
219
|
-
|
|
219
|
+
h(this, T).runNext(this);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
}, H = new WeakMap(), T = new WeakMap(), G = new WeakMap(), z = new WeakSet(), U = function(e) {
|
|
@@ -274,16 +274,16 @@ var R, mt, or = (mt = class extends ct {
|
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
this.state = o(this.state), O.batch(() => {
|
|
277
|
-
|
|
277
|
+
h(this, H).forEach((n) => {
|
|
278
278
|
n.onMutationUpdate(e);
|
|
279
|
-
}),
|
|
279
|
+
}), h(this, T).notify({
|
|
280
280
|
mutation: this,
|
|
281
281
|
type: "updated",
|
|
282
282
|
action: e
|
|
283
283
|
});
|
|
284
284
|
});
|
|
285
|
-
},
|
|
286
|
-
function
|
|
285
|
+
}, xt);
|
|
286
|
+
function ar() {
|
|
287
287
|
return {
|
|
288
288
|
context: void 0,
|
|
289
289
|
data: void 0,
|
|
@@ -296,42 +296,42 @@ function lr() {
|
|
|
296
296
|
submittedAt: 0
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
var $, P,
|
|
299
|
+
var $, P, xe, ht, lr = (ht = class extends ct {
|
|
300
300
|
constructor(e = {}) {
|
|
301
301
|
super();
|
|
302
302
|
M(this, $);
|
|
303
303
|
M(this, P);
|
|
304
|
-
M(this,
|
|
305
|
-
this.config = e, k(this, $, /* @__PURE__ */ new Set()), k(this, P, /* @__PURE__ */ new Map()), k(this,
|
|
304
|
+
M(this, xe);
|
|
305
|
+
this.config = e, k(this, $, /* @__PURE__ */ new Set()), k(this, P, /* @__PURE__ */ new Map()), k(this, xe, 0);
|
|
306
306
|
}
|
|
307
307
|
build(e, o, n) {
|
|
308
308
|
const i = new ir({
|
|
309
309
|
mutationCache: this,
|
|
310
|
-
mutationId: ++ce(this,
|
|
310
|
+
mutationId: ++ce(this, xe)._,
|
|
311
311
|
options: e.defaultMutationOptions(o),
|
|
312
312
|
state: n
|
|
313
313
|
});
|
|
314
314
|
return this.add(i), i;
|
|
315
315
|
}
|
|
316
316
|
add(e) {
|
|
317
|
-
|
|
317
|
+
h(this, $).add(e);
|
|
318
318
|
const o = fe(e);
|
|
319
319
|
if (typeof o == "string") {
|
|
320
|
-
const n =
|
|
321
|
-
n ? n.push(e) :
|
|
320
|
+
const n = h(this, P).get(o);
|
|
321
|
+
n ? n.push(e) : h(this, P).set(o, [e]);
|
|
322
322
|
}
|
|
323
323
|
this.notify({ type: "added", mutation: e });
|
|
324
324
|
}
|
|
325
325
|
remove(e) {
|
|
326
|
-
if (
|
|
326
|
+
if (h(this, $).delete(e)) {
|
|
327
327
|
const o = fe(e);
|
|
328
328
|
if (typeof o == "string") {
|
|
329
|
-
const n =
|
|
329
|
+
const n = h(this, P).get(o);
|
|
330
330
|
if (n)
|
|
331
331
|
if (n.length > 1) {
|
|
332
332
|
const i = n.indexOf(e);
|
|
333
333
|
i !== -1 && n.splice(i, 1);
|
|
334
|
-
} else n[0] === e &&
|
|
334
|
+
} else n[0] === e && h(this, P).delete(o);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
this.notify({ type: "removed", mutation: e });
|
|
@@ -339,8 +339,8 @@ var $, P, he, xt, ar = (xt = class extends ct {
|
|
|
339
339
|
canRun(e) {
|
|
340
340
|
const o = fe(e);
|
|
341
341
|
if (typeof o == "string") {
|
|
342
|
-
const n =
|
|
343
|
-
(
|
|
342
|
+
const n = h(this, P).get(o), i = n == null ? void 0 : n.find(
|
|
343
|
+
(a) => a.state.status === "pending"
|
|
344
344
|
);
|
|
345
345
|
return !i || i === e;
|
|
346
346
|
} else
|
|
@@ -350,20 +350,20 @@ var $, P, he, xt, ar = (xt = class extends ct {
|
|
|
350
350
|
var n;
|
|
351
351
|
const o = fe(e);
|
|
352
352
|
if (typeof o == "string") {
|
|
353
|
-
const i = (n =
|
|
353
|
+
const i = (n = h(this, P).get(o)) == null ? void 0 : n.find((a) => a !== e && 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
359
|
O.batch(() => {
|
|
360
|
-
|
|
360
|
+
h(this, $).forEach((e) => {
|
|
361
361
|
this.notify({ type: "removed", mutation: e });
|
|
362
|
-
}),
|
|
362
|
+
}), h(this, $).clear(), h(this, P).clear();
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
365
|
getAll() {
|
|
366
|
-
return Array.from(
|
|
366
|
+
return Array.from(h(this, $));
|
|
367
367
|
}
|
|
368
368
|
find(e) {
|
|
369
369
|
const o = { exact: !0, ...e };
|
|
@@ -389,7 +389,7 @@ var $, P, he, xt, ar = (xt = class extends ct {
|
|
|
389
389
|
)
|
|
390
390
|
);
|
|
391
391
|
}
|
|
392
|
-
}, $ = new WeakMap(), P = new WeakMap(),
|
|
392
|
+
}, $ = new WeakMap(), P = new WeakMap(), xe = new WeakMap(), ht);
|
|
393
393
|
function fe(t) {
|
|
394
394
|
var e;
|
|
395
395
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
@@ -398,9 +398,9 @@ function We(t) {
|
|
|
398
398
|
return {
|
|
399
399
|
onFetch: (e, o) => {
|
|
400
400
|
var p, c, g, f, w;
|
|
401
|
-
const n = e.options, i = (g = (c = (p = e.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : g.direction,
|
|
401
|
+
const n = e.options, i = (g = (c = (p = e.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : g.direction, a = ((f = e.state.data) == null ? void 0 : f.pages) || [], d = ((w = e.state.data) == null ? void 0 : w.pageParams) || [];
|
|
402
402
|
let u = { pages: [], pageParams: [] }, m = 0;
|
|
403
|
-
const
|
|
403
|
+
const x = async () => {
|
|
404
404
|
let j = !1;
|
|
405
405
|
const v = (C) => {
|
|
406
406
|
Object.defineProperty(C, "signal", {
|
|
@@ -422,22 +422,22 @@ function We(t) {
|
|
|
422
422
|
meta: e.options.meta
|
|
423
423
|
};
|
|
424
424
|
v(Q);
|
|
425
|
-
const
|
|
425
|
+
const he = await _(
|
|
426
426
|
Q
|
|
427
|
-
), { maxPages:
|
|
427
|
+
), { maxPages: le } = e.options, N = D ? Ht : zt;
|
|
428
428
|
return {
|
|
429
|
-
pages: N(C.pages,
|
|
430
|
-
pageParams: N(C.pageParams, I,
|
|
429
|
+
pages: N(C.pages, he, le),
|
|
430
|
+
pageParams: N(C.pageParams, I, le)
|
|
431
431
|
};
|
|
432
432
|
};
|
|
433
|
-
if (i &&
|
|
433
|
+
if (i && a.length) {
|
|
434
434
|
const C = i === "backward", I = C ? dr : Ue, D = {
|
|
435
|
-
pages:
|
|
435
|
+
pages: a,
|
|
436
436
|
pageParams: d
|
|
437
437
|
}, Q = I(n, D);
|
|
438
438
|
u = await q(D, Q, C);
|
|
439
439
|
} else {
|
|
440
|
-
const C = t ??
|
|
440
|
+
const C = t ?? a.length;
|
|
441
441
|
do {
|
|
442
442
|
const I = m === 0 ? d[0] ?? n.initialPageParam : Ue(n, u);
|
|
443
443
|
if (m > 0 && I == null)
|
|
@@ -451,7 +451,7 @@ function We(t) {
|
|
|
451
451
|
var j, v;
|
|
452
452
|
return (v = (j = e.options).persister) == null ? void 0 : v.call(
|
|
453
453
|
j,
|
|
454
|
-
|
|
454
|
+
x,
|
|
455
455
|
{
|
|
456
456
|
client: e.client,
|
|
457
457
|
queryKey: e.queryKey,
|
|
@@ -460,7 +460,7 @@ function We(t) {
|
|
|
460
460
|
},
|
|
461
461
|
o
|
|
462
462
|
);
|
|
463
|
-
} : e.fetchFn =
|
|
463
|
+
} : e.fetchFn = x;
|
|
464
464
|
}
|
|
465
465
|
};
|
|
466
466
|
}
|
|
@@ -487,24 +487,24 @@ var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
|
|
|
487
487
|
M(this, X);
|
|
488
488
|
M(this, ne);
|
|
489
489
|
M(this, oe);
|
|
490
|
-
k(this, s, t.queryCache || new or()), k(this, K, t.mutationCache || new
|
|
490
|
+
k(this, s, t.queryCache || new or()), k(this, K, t.mutationCache || new lr()), k(this, Z, t.defaultOptions || {}), k(this, te, /* @__PURE__ */ new Map()), k(this, re, /* @__PURE__ */ new Map()), k(this, X, 0);
|
|
491
491
|
}
|
|
492
492
|
mount() {
|
|
493
|
-
ce(this, X)._++,
|
|
494
|
-
t && (await this.resumePausedMutations(),
|
|
493
|
+
ce(this, X)._++, h(this, X) === 1 && (k(this, ne, Lt.subscribe(async (t) => {
|
|
494
|
+
t && (await this.resumePausedMutations(), h(this, s).onFocus());
|
|
495
495
|
})), k(this, oe, Le.subscribe(async (t) => {
|
|
496
|
-
t && (await this.resumePausedMutations(),
|
|
496
|
+
t && (await this.resumePausedMutations(), h(this, s).onOnline());
|
|
497
497
|
})));
|
|
498
498
|
}
|
|
499
499
|
unmount() {
|
|
500
500
|
var t, e;
|
|
501
|
-
ce(this, X)._--,
|
|
501
|
+
ce(this, X)._--, h(this, X) === 0 && ((t = h(this, ne)) == null || t.call(this), k(this, ne, void 0), (e = h(this, oe)) == null || e.call(this), k(this, oe, void 0));
|
|
502
502
|
}
|
|
503
503
|
isFetching(t) {
|
|
504
|
-
return
|
|
504
|
+
return h(this, s).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
505
505
|
}
|
|
506
506
|
isMutating(t) {
|
|
507
|
-
return
|
|
507
|
+
return h(this, K).findAll({ ...t, status: "pending" }).length;
|
|
508
508
|
}
|
|
509
509
|
/**
|
|
510
510
|
* Imperative (non-reactive) way to retrieve data for a QueryKey.
|
|
@@ -516,28 +516,28 @@ var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
|
|
|
516
516
|
getQueryData(t) {
|
|
517
517
|
var o;
|
|
518
518
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
519
|
-
return (o =
|
|
519
|
+
return (o = h(this, s).get(e.queryHash)) == null ? void 0 : o.state.data;
|
|
520
520
|
}
|
|
521
521
|
ensureQueryData(t) {
|
|
522
|
-
const e = this.defaultQueryOptions(t), o =
|
|
522
|
+
const e = this.defaultQueryOptions(t), o = h(this, s).build(this, e), n = o.state.data;
|
|
523
523
|
return n === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && o.isStaleByTime(Qe(e.staleTime, o)) && this.prefetchQuery(e), Promise.resolve(n));
|
|
524
524
|
}
|
|
525
525
|
getQueriesData(t) {
|
|
526
|
-
return
|
|
526
|
+
return h(this, s).findAll(t).map(({ queryKey: e, state: o }) => {
|
|
527
527
|
const n = o.data;
|
|
528
528
|
return [e, n];
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
531
|
setQueryData(t, e, o) {
|
|
532
|
-
const n = this.defaultQueryOptions({ queryKey: t }), i =
|
|
532
|
+
const n = this.defaultQueryOptions({ queryKey: t }), i = h(this, s).get(
|
|
533
533
|
n.queryHash
|
|
534
|
-
),
|
|
534
|
+
), a = i == null ? void 0 : i.state.data, d = Qt(e, a);
|
|
535
535
|
if (d !== void 0)
|
|
536
|
-
return
|
|
536
|
+
return h(this, s).build(this, n).setData(d, { ...o, manual: !0 });
|
|
537
537
|
}
|
|
538
538
|
setQueriesData(t, e, o) {
|
|
539
539
|
return O.batch(
|
|
540
|
-
() =>
|
|
540
|
+
() => h(this, s).findAll(t).map(({ queryKey: n }) => [
|
|
541
541
|
n,
|
|
542
542
|
this.setQueryData(n, e, o)
|
|
543
543
|
])
|
|
@@ -546,12 +546,12 @@ var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
|
|
|
546
546
|
getQueryState(t) {
|
|
547
547
|
var o;
|
|
548
548
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
549
|
-
return (o =
|
|
549
|
+
return (o = h(this, s).get(
|
|
550
550
|
e.queryHash
|
|
551
551
|
)) == null ? void 0 : o.state;
|
|
552
552
|
}
|
|
553
553
|
removeQueries(t) {
|
|
554
|
-
const e =
|
|
554
|
+
const e = h(this, s);
|
|
555
555
|
O.batch(() => {
|
|
556
556
|
e.findAll(t).forEach((o) => {
|
|
557
557
|
e.remove(o);
|
|
@@ -559,7 +559,7 @@ var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
|
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
561
|
resetQueries(t, e) {
|
|
562
|
-
const o =
|
|
562
|
+
const o = h(this, s);
|
|
563
563
|
return O.batch(() => (o.findAll(t).forEach((n) => {
|
|
564
564
|
n.reset();
|
|
565
565
|
}), this.refetchQueries(
|
|
@@ -572,12 +572,12 @@ var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
|
|
|
572
572
|
}
|
|
573
573
|
cancelQueries(t, e = {}) {
|
|
574
574
|
const o = { revert: !0, ...e }, n = O.batch(
|
|
575
|
-
() =>
|
|
575
|
+
() => h(this, s).findAll(t).map((i) => i.cancel(o))
|
|
576
576
|
);
|
|
577
577
|
return Promise.all(n).then(V).catch(V);
|
|
578
578
|
}
|
|
579
579
|
invalidateQueries(t, e = {}) {
|
|
580
|
-
return O.batch(() => (
|
|
580
|
+
return O.batch(() => (h(this, s).findAll(t).forEach((o) => {
|
|
581
581
|
o.invalidate();
|
|
582
582
|
}), (t == null ? void 0 : t.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
|
|
583
583
|
{
|
|
@@ -592,9 +592,9 @@ var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
|
|
|
592
592
|
...e,
|
|
593
593
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
594
594
|
}, n = O.batch(
|
|
595
|
-
() =>
|
|
596
|
-
let
|
|
597
|
-
return o.throwOnError || (
|
|
595
|
+
() => h(this, s).findAll(t).filter((i) => !i.isDisabled() && !i.isStatic()).map((i) => {
|
|
596
|
+
let a = i.fetch(void 0, o);
|
|
597
|
+
return o.throwOnError || (a = a.catch(V)), i.state.fetchStatus === "paused" ? Promise.resolve() : a;
|
|
598
598
|
})
|
|
599
599
|
);
|
|
600
600
|
return Promise.all(n).then(V);
|
|
@@ -602,7 +602,7 @@ var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
|
|
|
602
602
|
fetchQuery(t) {
|
|
603
603
|
const e = this.defaultQueryOptions(t);
|
|
604
604
|
e.retry === void 0 && (e.retry = !1);
|
|
605
|
-
const o =
|
|
605
|
+
const o = h(this, s).build(this, e);
|
|
606
606
|
return o.isStaleByTime(
|
|
607
607
|
Qe(e.staleTime, o)
|
|
608
608
|
) ? o.fetch(e) : Promise.resolve(o.state.data);
|
|
@@ -620,40 +620,40 @@ var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
|
|
|
620
620
|
return t.behavior = We(t.pages), this.ensureQueryData(t);
|
|
621
621
|
}
|
|
622
622
|
resumePausedMutations() {
|
|
623
|
-
return Le.isOnline() ?
|
|
623
|
+
return Le.isOnline() ? h(this, K).resumePausedMutations() : Promise.resolve();
|
|
624
624
|
}
|
|
625
625
|
getQueryCache() {
|
|
626
|
-
return
|
|
626
|
+
return h(this, s);
|
|
627
627
|
}
|
|
628
628
|
getMutationCache() {
|
|
629
|
-
return
|
|
629
|
+
return h(this, K);
|
|
630
630
|
}
|
|
631
631
|
getDefaultOptions() {
|
|
632
|
-
return
|
|
632
|
+
return h(this, Z);
|
|
633
633
|
}
|
|
634
634
|
setDefaultOptions(t) {
|
|
635
635
|
k(this, Z, t);
|
|
636
636
|
}
|
|
637
637
|
setQueryDefaults(t, e) {
|
|
638
|
-
|
|
638
|
+
h(this, te).set(Ve(t), {
|
|
639
639
|
queryKey: t,
|
|
640
640
|
defaultOptions: e
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
643
|
getQueryDefaults(t) {
|
|
644
|
-
const e = [...
|
|
644
|
+
const e = [...h(this, te).values()], o = {};
|
|
645
645
|
return e.forEach((n) => {
|
|
646
646
|
$e(t, n.queryKey) && Object.assign(o, n.defaultOptions);
|
|
647
647
|
}), o;
|
|
648
648
|
}
|
|
649
649
|
setMutationDefaults(t, e) {
|
|
650
|
-
|
|
650
|
+
h(this, re).set(Ve(t), {
|
|
651
651
|
mutationKey: t,
|
|
652
652
|
defaultOptions: e
|
|
653
653
|
});
|
|
654
654
|
}
|
|
655
655
|
getMutationDefaults(t) {
|
|
656
|
-
const e = [...
|
|
656
|
+
const e = [...h(this, re).values()], o = {};
|
|
657
657
|
return e.forEach((n) => {
|
|
658
658
|
$e(t, n.mutationKey) && Object.assign(o, n.defaultOptions);
|
|
659
659
|
}), o;
|
|
@@ -662,7 +662,7 @@ var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
|
|
|
662
662
|
if (t._defaulted)
|
|
663
663
|
return t;
|
|
664
664
|
const e = {
|
|
665
|
-
...
|
|
665
|
+
...h(this, Z).queries,
|
|
666
666
|
...this.getQueryDefaults(t.queryKey),
|
|
667
667
|
...t,
|
|
668
668
|
_defaulted: !0
|
|
@@ -674,22 +674,22 @@ var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
|
|
|
674
674
|
}
|
|
675
675
|
defaultMutationOptions(t) {
|
|
676
676
|
return t != null && t._defaulted ? t : {
|
|
677
|
-
...
|
|
677
|
+
...h(this, Z).mutations,
|
|
678
678
|
...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
|
|
679
679
|
...t,
|
|
680
680
|
_defaulted: !0
|
|
681
681
|
};
|
|
682
682
|
}
|
|
683
683
|
clear() {
|
|
684
|
-
|
|
684
|
+
h(this, s).clear(), h(this, K).clear();
|
|
685
685
|
}
|
|
686
686
|
}, s = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), te = new WeakMap(), re = new WeakMap(), X = new WeakMap(), ne = new WeakMap(), oe = new WeakMap(), pt);
|
|
687
|
-
const mr = B(() => Promise.resolve().then(() => Fr)),
|
|
687
|
+
const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resolve().then(() => yo)), hr = B(() => Promise.resolve().then(() => En)), pr = B(() => Promise.resolve().then(() => Pn)), cr = B(() => Promise.resolve().then(() => Lr)), fr = B(() => Promise.resolve().then(() => Sr)), br = B(() => Promise.resolve().then(() => tn)), gr = B(() => Promise.resolve().then(() => Zr)), jr = B(() => Promise.resolve().then(() => Gn)), yr = B(() => Promise.resolve().then(() => Vr)), sr = B(() => Promise.resolve().then(() => Nn)), kr = B(() => Promise.resolve().then(() => _r)), wr = {
|
|
688
688
|
header: fr,
|
|
689
689
|
seoHeader: jr,
|
|
690
690
|
banner: mr,
|
|
691
|
-
calculator:
|
|
692
|
-
form:
|
|
691
|
+
calculator: xr,
|
|
692
|
+
form: hr,
|
|
693
693
|
formDialog: pr,
|
|
694
694
|
stepper: yr,
|
|
695
695
|
benefit: kr,
|
|
@@ -724,7 +724,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
724
724
|
}
|
|
725
725
|
}, [t]), Y = ({ handlerOptions: t, className: e, ...o }) => {
|
|
726
726
|
const n = Nr(t);
|
|
727
|
-
return /* @__PURE__ */ r.jsx(ge, { className:
|
|
727
|
+
return /* @__PURE__ */ r.jsx(ge, { className: l(e), onClick: n, ...o, children: o.children });
|
|
728
728
|
}, Cr = E(
|
|
729
729
|
"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",
|
|
730
730
|
{
|
|
@@ -742,32 +742,32 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
742
742
|
img: o,
|
|
743
743
|
mobileImg: n,
|
|
744
744
|
classes: i,
|
|
745
|
-
withButton:
|
|
745
|
+
withButton: a,
|
|
746
746
|
button: d,
|
|
747
747
|
variant: u,
|
|
748
748
|
color: m
|
|
749
749
|
}) => {
|
|
750
|
-
const { isDesktop:
|
|
750
|
+
const { isDesktop: x } = ee();
|
|
751
751
|
return /* @__PURE__ */ r.jsxs(
|
|
752
752
|
"li",
|
|
753
753
|
{
|
|
754
754
|
style: { backgroundColor: m ?? "#F3F4F7" },
|
|
755
|
-
className:
|
|
755
|
+
className: l(Cr({ variant: u }), { "pb-0": n }, { "pb-12": !n }, i == null ? void 0 : i.root),
|
|
756
756
|
children: [
|
|
757
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
758
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
759
|
-
/* @__PURE__ */ r.jsx("div", { dangerouslySetInnerHTML: { __html: e }, className:
|
|
757
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", i == null ? void 0 : i.wrapper), children: [
|
|
758
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col gap-4", i == null ? void 0 : i.textContainer), children: [
|
|
759
|
+
/* @__PURE__ */ r.jsx("div", { dangerouslySetInnerHTML: { __html: e }, className: l("desktop:desk-title-bold-s", i == null ? void 0 : i.title) }),
|
|
760
760
|
/* @__PURE__ */ r.jsx(
|
|
761
761
|
"div",
|
|
762
762
|
{
|
|
763
763
|
dangerouslySetInnerHTML: { __html: t },
|
|
764
|
-
className:
|
|
764
|
+
className: l("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l", i == null ? void 0 : i.subtitle)
|
|
765
765
|
}
|
|
766
766
|
)
|
|
767
767
|
] }),
|
|
768
|
-
|
|
768
|
+
a && x && (d == null ? void 0 : d.handlerOptions) && /* @__PURE__ */ r.jsx(Y, { intent: "primary", className: l("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...d })
|
|
769
769
|
] }),
|
|
770
|
-
(n ||
|
|
770
|
+
(n || x) && o && /* @__PURE__ */ r.jsx("div", { className: l("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: o && "url" in o && S.isObject(o) ? /* @__PURE__ */ r.jsx("img", { className: l("h-[246px] object-cover", i == null ? void 0 : i.img), src: o.url, alt: o.alt }) : o })
|
|
771
771
|
]
|
|
772
772
|
},
|
|
773
773
|
e
|
|
@@ -780,15 +780,15 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
780
780
|
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
|
-
}), Ke = ({ headline: t, details: e, variant: o, classes: n }) => /* @__PURE__ */ r.jsx("section", { id: y.benefit, "data-test-id": y.benefit, className:
|
|
783
|
+
}), Ke = ({ headline: t, details: e, variant: o, classes: n }) => /* @__PURE__ */ r.jsx("section", { id: y.benefit, "data-test-id": y.benefit, className: l("pb-20", n == null ? void 0 : n.root), children: /* @__PURE__ */ r.jsxs(F, { className: n == null ? void 0 : n.container, children: [
|
|
784
784
|
/* @__PURE__ */ r.jsx(
|
|
785
785
|
"div",
|
|
786
786
|
{
|
|
787
787
|
dangerouslySetInnerHTML: { __html: t },
|
|
788
|
-
className:
|
|
788
|
+
className: l("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", n == null ? void 0 : n.heading)
|
|
789
789
|
}
|
|
790
790
|
),
|
|
791
|
-
/* @__PURE__ */ r.jsx("ul", { className:
|
|
791
|
+
/* @__PURE__ */ r.jsx("ul", { className: l(Ir({ variant: o }), n == null ? void 0 : n.grid), children: e == null ? void 0 : e.map((i) => /* @__PURE__ */ r.jsx(Mr, { variant: o, classes: n == null ? void 0 : n.item, ...i }, i.title)) })
|
|
792
792
|
] }) }), _r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
793
793
|
__proto__: null,
|
|
794
794
|
Benefit: Ke,
|
|
@@ -809,8 +809,8 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
809
809
|
{
|
|
810
810
|
id: y.header,
|
|
811
811
|
"data-test-id": y.header,
|
|
812
|
-
className:
|
|
813
|
-
children: /* @__PURE__ */ r.jsx(F, { className:
|
|
812
|
+
className: l("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", n == null ? void 0 : n.header),
|
|
813
|
+
children: /* @__PURE__ */ r.jsx(F, { className: l(n == null ? void 0 : n.container), children: /* @__PURE__ */ r.jsxs("div", { className: l("flex items-center justify-between gap-5", n == null ? void 0 : n.wrapper), children: [
|
|
814
814
|
/* @__PURE__ */ r.jsx(
|
|
815
815
|
"a",
|
|
816
816
|
{
|
|
@@ -818,7 +818,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
818
818
|
"aria-label": "logo",
|
|
819
819
|
target: "_blank",
|
|
820
820
|
rel: "noreferrer",
|
|
821
|
-
className:
|
|
821
|
+
className: l(
|
|
822
822
|
"flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
823
823
|
n == null ? void 0 : n.logo
|
|
824
824
|
),
|
|
@@ -839,17 +839,17 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
839
839
|
buttonsConfig: o,
|
|
840
840
|
advantages: n,
|
|
841
841
|
classes: i,
|
|
842
|
-
imgMobile:
|
|
842
|
+
imgMobile: a,
|
|
843
843
|
imgDesktop: d,
|
|
844
844
|
imgAlt: u,
|
|
845
845
|
color: m,
|
|
846
|
-
renderImage:
|
|
846
|
+
renderImage: x
|
|
847
847
|
}) => {
|
|
848
848
|
var v;
|
|
849
|
-
const { isDesktop: p, isMobile: c } = ee(), { primary: g, secondary: f } = o || {}, w = (_) =>
|
|
849
|
+
const { isDesktop: p, isMobile: c } = ee(), { primary: g, secondary: f } = o || {}, w = (_) => x ? x(_) : /* @__PURE__ */ r.jsx("img", { ..._ }), j = /* @__PURE__ */ r.jsx(
|
|
850
850
|
"div",
|
|
851
851
|
{
|
|
852
|
-
className:
|
|
852
|
+
className: l(
|
|
853
853
|
"flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
|
|
854
854
|
i == null ? void 0 : i.advantageContainer
|
|
855
855
|
),
|
|
@@ -863,35 +863,35 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
863
863
|
id: y.banner,
|
|
864
864
|
"data-test-id": y.banner,
|
|
865
865
|
style: { backgroundColor: m ?? "#d9edff" },
|
|
866
|
-
className:
|
|
866
|
+
className: l("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
|
|
867
867
|
children: [
|
|
868
|
-
/* @__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: w(c ? { src:
|
|
868
|
+
/* @__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: w(c ? { src: a.src, alt: u, className: l("h-full w-full object-cover object-center") } : {
|
|
869
869
|
src: d.src,
|
|
870
870
|
alt: u,
|
|
871
|
-
className:
|
|
871
|
+
className: l("h-full w-full object-cover object-center")
|
|
872
872
|
}) }),
|
|
873
|
-
/* @__PURE__ */ r.jsxs(F, { className:
|
|
874
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
873
|
+
/* @__PURE__ */ r.jsxs(F, { className: l("h-full", i == null ? void 0 : i.container), children: [
|
|
874
|
+
/* @__PURE__ */ r.jsx("div", { className: l("flex h-full", i == null ? void 0 : i.wrapper), children: /* @__PURE__ */ r.jsxs("div", { className: l("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", i == null ? void 0 : i.textBlock), children: [
|
|
875
875
|
/* @__PURE__ */ r.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
|
|
876
876
|
/* @__PURE__ */ r.jsx(
|
|
877
877
|
"div",
|
|
878
878
|
{
|
|
879
879
|
dangerouslySetInnerHTML: { __html: t },
|
|
880
|
-
className:
|
|
880
|
+
className: l("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
|
|
881
881
|
}
|
|
882
882
|
),
|
|
883
883
|
/* @__PURE__ */ r.jsx(
|
|
884
884
|
"div",
|
|
885
885
|
{
|
|
886
886
|
dangerouslySetInnerHTML: { __html: e },
|
|
887
|
-
className:
|
|
887
|
+
className: l("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
|
|
888
888
|
}
|
|
889
889
|
)
|
|
890
890
|
] }),
|
|
891
891
|
/* @__PURE__ */ r.jsxs(
|
|
892
892
|
"div",
|
|
893
893
|
{
|
|
894
|
-
className:
|
|
894
|
+
className: l(
|
|
895
895
|
"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",
|
|
896
896
|
{ "flex items-center gap-4": f == null ? void 0 : f.enabled },
|
|
897
897
|
i == null ? void 0 : i.group
|
|
@@ -900,7 +900,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
900
900
|
g.enabled && /* @__PURE__ */ r.jsx(
|
|
901
901
|
Y,
|
|
902
902
|
{
|
|
903
|
-
className:
|
|
903
|
+
className: l("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
904
904
|
size: "lg",
|
|
905
905
|
intent: "primary",
|
|
906
906
|
...g.buttonContent
|
|
@@ -910,7 +910,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
910
910
|
Y,
|
|
911
911
|
{
|
|
912
912
|
intent: "secondary",
|
|
913
|
-
className:
|
|
913
|
+
className: l("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
|
|
914
914
|
...g.buttonContent
|
|
915
915
|
}
|
|
916
916
|
)
|
|
@@ -931,45 +931,45 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
931
931
|
buttonsConfig: o,
|
|
932
932
|
advantages: n,
|
|
933
933
|
classes: i,
|
|
934
|
-
imgMobile:
|
|
934
|
+
imgMobile: a,
|
|
935
935
|
imgDesktop: d,
|
|
936
936
|
imgAlt: u,
|
|
937
937
|
color: m,
|
|
938
|
-
renderImage:
|
|
938
|
+
renderImage: x
|
|
939
939
|
}) => {
|
|
940
940
|
var w, j;
|
|
941
|
-
const { isMobile: p } = ee(), { primary: c, secondary: g } = o || {}, f = (v) =>
|
|
941
|
+
const { isMobile: p } = ee(), { primary: c, secondary: g } = o || {}, f = (v) => x ? x(v) : /* @__PURE__ */ r.jsx("img", { ...v });
|
|
942
942
|
return /* @__PURE__ */ r.jsxs(
|
|
943
943
|
"section",
|
|
944
944
|
{
|
|
945
945
|
id: y.banner,
|
|
946
946
|
style: { backgroundColor: m ?? "#d9edff" },
|
|
947
947
|
"data-test-id": y.banner,
|
|
948
|
-
className:
|
|
948
|
+
className: l("", i == null ? void 0 : i.root),
|
|
949
949
|
children: [
|
|
950
|
-
/* @__PURE__ */ r.jsxs(F, { className:
|
|
951
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
950
|
+
/* @__PURE__ */ r.jsxs(F, { className: l("relative desktop:h-[456px]", i == null ? void 0 : i.container), children: [
|
|
951
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col desktop:flex-row desktop:justify-between", i == null ? void 0 : i.wrapper), children: [
|
|
952
952
|
/* @__PURE__ */ r.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
|
|
953
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
953
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col gap-4 pt-6 desktop:pt-0", i == null ? void 0 : i.textBlock), children: [
|
|
954
954
|
/* @__PURE__ */ r.jsx(
|
|
955
955
|
"div",
|
|
956
956
|
{
|
|
957
957
|
dangerouslySetInnerHTML: { __html: t },
|
|
958
|
-
className:
|
|
958
|
+
className: l("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
|
|
959
959
|
}
|
|
960
960
|
),
|
|
961
961
|
/* @__PURE__ */ r.jsx(
|
|
962
962
|
"div",
|
|
963
963
|
{
|
|
964
964
|
dangerouslySetInnerHTML: { __html: e },
|
|
965
|
-
className:
|
|
965
|
+
className: l("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
|
|
966
966
|
}
|
|
967
967
|
)
|
|
968
968
|
] }),
|
|
969
969
|
/* @__PURE__ */ r.jsxs(
|
|
970
970
|
"div",
|
|
971
971
|
{
|
|
972
|
-
className:
|
|
972
|
+
className: l(
|
|
973
973
|
"grid-buttons-apply absolute bottom-6 left-1/2 flex w-full -translate-x-1/2 flex-col justify-self-center px-4 desktop:static desktop:left-auto desktop:max-w-full desktop:translate-x-0 desktop:flex-row desktop:justify-normal desktop:px-0",
|
|
974
974
|
{ "flex items-center gap-4": g == null ? void 0 : g.enabled },
|
|
975
975
|
i == null ? void 0 : i.group
|
|
@@ -978,7 +978,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
978
978
|
c.enabled && /* @__PURE__ */ r.jsx(
|
|
979
979
|
Y,
|
|
980
980
|
{
|
|
981
|
-
className:
|
|
981
|
+
className: l("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
982
982
|
size: "lg",
|
|
983
983
|
intent: "primary",
|
|
984
984
|
...c.buttonContent
|
|
@@ -988,7 +988,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
988
988
|
Y,
|
|
989
989
|
{
|
|
990
990
|
intent: "secondary",
|
|
991
|
-
className:
|
|
991
|
+
className: l("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
|
|
992
992
|
...c.buttonContent
|
|
993
993
|
}
|
|
994
994
|
)
|
|
@@ -999,11 +999,11 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
999
999
|
/* @__PURE__ */ r.jsx(
|
|
1000
1000
|
"div",
|
|
1001
1001
|
{
|
|
1002
|
-
className:
|
|
1003
|
-
children: f(p ? { src:
|
|
1002
|
+
className: l("relative flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]", i == null ? void 0 : i.imageContainer),
|
|
1003
|
+
children: f(p ? { src: a.src, alt: u, className: l("h-full object-contain") } : {
|
|
1004
1004
|
src: d.src,
|
|
1005
1005
|
alt: u,
|
|
1006
|
-
className:
|
|
1006
|
+
className: l("h-full object-contain")
|
|
1007
1007
|
})
|
|
1008
1008
|
}
|
|
1009
1009
|
)
|
|
@@ -1011,7 +1011,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1011
1011
|
(n == null ? void 0 : n.enabled) && /* @__PURE__ */ r.jsx(
|
|
1012
1012
|
"div",
|
|
1013
1013
|
{
|
|
1014
|
-
className:
|
|
1014
|
+
className: l(
|
|
1015
1015
|
"items-center justify-center rounded-md 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",
|
|
1016
1016
|
i == null ? void 0 : i.advantageContainer
|
|
1017
1017
|
),
|
|
@@ -1022,7 +1022,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1022
1022
|
(n == null ? void 0 : n.enabled) && /* @__PURE__ */ r.jsx(
|
|
1023
1023
|
"div",
|
|
1024
1024
|
{
|
|
1025
|
-
className:
|
|
1025
|
+
className: l(
|
|
1026
1026
|
"flex items-center justify-center bg-color-white px-4 pb-8 pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:hidden desktop:translate-x-1/2 desktop:p-0",
|
|
1027
1027
|
i == null ? void 0 : i.advantageContainer
|
|
1028
1028
|
),
|
|
@@ -1051,63 +1051,63 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1051
1051
|
"div",
|
|
1052
1052
|
{
|
|
1053
1053
|
id: "advantages",
|
|
1054
|
-
className:
|
|
1054
|
+
className: l(
|
|
1055
1055
|
"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",
|
|
1056
1056
|
{ "desktop:max-w-[860px]": o === "threeCards" },
|
|
1057
1057
|
{ "desktop:max-w-[1140px]": o === "fourCards" },
|
|
1058
1058
|
e == null ? void 0 : e.root
|
|
1059
1059
|
),
|
|
1060
|
-
children: n == null ? void 0 : n.map(({ title: i, description:
|
|
1060
|
+
children: n == null ? void 0 : n.map(({ title: i, description: a }) => /* @__PURE__ */ r.jsxs(
|
|
1061
1061
|
"div",
|
|
1062
1062
|
{
|
|
1063
|
-
className:
|
|
1063
|
+
className: l(
|
|
1064
1064
|
'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',
|
|
1065
1065
|
e == null ? void 0 : e.item
|
|
1066
1066
|
),
|
|
1067
1067
|
children: [
|
|
1068
|
-
/* @__PURE__ */ r.jsx(L, { as: "h4", className:
|
|
1069
|
-
/* @__PURE__ */ r.jsx("p", { className:
|
|
1068
|
+
/* @__PURE__ */ r.jsx(L, { as: "h4", className: l("text-color-dark", e == null ? void 0 : e.title), children: i }),
|
|
1069
|
+
/* @__PURE__ */ r.jsx("p", { className: l("desk-body-regular-l text-color-secondary", e == null ? void 0 : e.description), children: a })
|
|
1070
1070
|
]
|
|
1071
1071
|
},
|
|
1072
1072
|
i
|
|
1073
1073
|
))
|
|
1074
1074
|
}
|
|
1075
1075
|
);
|
|
1076
|
-
}, Er = ({ socialsLinks: t, classes: e }) => /* @__PURE__ */ r.jsx("div", { className:
|
|
1076
|
+
}, Er = ({ socialsLinks: t, classes: e }) => /* @__PURE__ */ r.jsx("div", { className: l("mt-4 flex items-center gap-2 desktop:mt-6", e == null ? void 0 : e.socialRoot), children: t == null ? void 0 : t.map(({ iconName: o, href: n }) => /* @__PURE__ */ r.jsx(
|
|
1077
1077
|
"a",
|
|
1078
1078
|
{
|
|
1079
|
-
className:
|
|
1079
|
+
className: l("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", e == null ? void 0 : e.socialLink),
|
|
1080
1080
|
href: n,
|
|
1081
1081
|
"aria-label": o.replace("social/", ""),
|
|
1082
|
-
children: /* @__PURE__ */ r.jsx(b, { name: o, className:
|
|
1082
|
+
children: /* @__PURE__ */ r.jsx(b, { name: o, className: l("h-full w-full text-icon-white", e == null ? void 0 : e.socialIcon) })
|
|
1083
1083
|
},
|
|
1084
1084
|
n
|
|
1085
|
-
)) }), Br = ({ phones: t, classes: e }) => /* @__PURE__ */ r.jsx("div", { className:
|
|
1085
|
+
)) }), Br = ({ phones: t, classes: e }) => /* @__PURE__ */ r.jsx("div", { className: l("flex flex-col gap-4 desktop:items-end", e == null ? void 0 : e.phonesRoot), children: t == null ? void 0 : t.map(({ phone: o, text: n }) => /* @__PURE__ */ r.jsx(
|
|
1086
1086
|
bt,
|
|
1087
1087
|
{
|
|
1088
1088
|
phone: ke(o),
|
|
1089
1089
|
text: n,
|
|
1090
1090
|
classes: {
|
|
1091
|
-
root:
|
|
1092
|
-
text:
|
|
1093
|
-
link:
|
|
1091
|
+
root: l(e == null ? void 0 : e.phoneWrapper),
|
|
1092
|
+
text: l("text-color-footer", e == null ? void 0 : e.phoneText),
|
|
1093
|
+
link: l("text-color-white mobile:m-0", e == null ? void 0 : e.phoneLink)
|
|
1094
1094
|
}
|
|
1095
1095
|
},
|
|
1096
1096
|
o
|
|
1097
1097
|
)) }), Pr = ({ classes: t, details: e }) => /* @__PURE__ */ r.jsx(
|
|
1098
1098
|
"div",
|
|
1099
1099
|
{
|
|
1100
|
-
className:
|
|
1100
|
+
className: l(
|
|
1101
1101
|
"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",
|
|
1102
1102
|
t == null ? void 0 : t.navRoot
|
|
1103
1103
|
),
|
|
1104
1104
|
children: e == null ? void 0 : e.map(
|
|
1105
|
-
({ column: o }) => o == null ? void 0 : o.map(({ groupLabel: n, links: i }) => /* @__PURE__ */ r.jsxs("div", { className:
|
|
1106
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1107
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1105
|
+
({ column: o }) => o == null ? void 0 : o.map(({ groupLabel: n, links: i }) => /* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col gap-4", t == null ? void 0 : t.navGroup), children: [
|
|
1106
|
+
/* @__PURE__ */ r.jsx("div", { className: l("desk-body-medium-l text-color-white", t == null ? void 0 : t.navLabel), children: n }),
|
|
1107
|
+
/* @__PURE__ */ r.jsx("div", { className: l("flex flex-col gap-1", t == null ? void 0 : t.navLinks), children: i == null ? void 0 : i.map(({ path: a, label: d }) => /* @__PURE__ */ r.jsx(
|
|
1108
1108
|
je,
|
|
1109
1109
|
{
|
|
1110
|
-
href:
|
|
1110
|
+
href: a,
|
|
1111
1111
|
"aria-label": d,
|
|
1112
1112
|
intent: "white",
|
|
1113
1113
|
classes: {
|
|
@@ -1124,7 +1124,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1124
1124
|
), Dr = ({ text: t, classes: e }) => /* @__PURE__ */ r.jsx(
|
|
1125
1125
|
"div",
|
|
1126
1126
|
{
|
|
1127
|
-
className:
|
|
1127
|
+
className: l("desk-body-regular-m text-color-footer", e == null ? void 0 : e.copyRight),
|
|
1128
1128
|
dangerouslySetInnerHTML: { __html: t }
|
|
1129
1129
|
}
|
|
1130
1130
|
), Rr = ({ classes: t }) => /* @__PURE__ */ r.jsx(
|
|
@@ -1132,8 +1132,8 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1132
1132
|
{
|
|
1133
1133
|
"aria-label": "logo",
|
|
1134
1134
|
href: "https://sovcombank.ru/",
|
|
1135
|
-
className:
|
|
1136
|
-
children: /* @__PURE__ */ r.jsx(b, { name: "brandLogos/logoWhite", className:
|
|
1135
|
+
className: l("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", t == null ? void 0 : t.footerLogo),
|
|
1136
|
+
children: /* @__PURE__ */ r.jsx(b, { name: "brandLogos/logoWhite", className: l("size-full", t == null ? void 0 : t.footerLogoIcon) })
|
|
1137
1137
|
}
|
|
1138
1138
|
), Hr = ({ classes: t }) => /* @__PURE__ */ r.jsx(
|
|
1139
1139
|
je,
|
|
@@ -1144,22 +1144,22 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1144
1144
|
"aria-label": "site-map",
|
|
1145
1145
|
rel: "noreferrer",
|
|
1146
1146
|
classes: {
|
|
1147
|
-
link:
|
|
1147
|
+
link: l("mobile:mt-6", t == null ? void 0 : t.siteMapLink),
|
|
1148
1148
|
icon: t == null ? void 0 : t.siteMapLinkIcon
|
|
1149
1149
|
},
|
|
1150
1150
|
children: "Карта сайта"
|
|
1151
1151
|
}
|
|
1152
1152
|
), zr = ({ text: t, classes: e }) => {
|
|
1153
|
-
const [o, n] = ue.useState(!1), [i,
|
|
1153
|
+
const [o, n] = ue.useState(!1), [i, a] = ue.useState(!1), d = ue.useRef(null);
|
|
1154
1154
|
return ue.useEffect(() => {
|
|
1155
1155
|
const u = d.current;
|
|
1156
|
-
u &&
|
|
1157
|
-
}, []), /* @__PURE__ */ r.jsxs("div", { className:
|
|
1156
|
+
u && a(u.scrollHeight > u.clientHeight);
|
|
1157
|
+
}, []), /* @__PURE__ */ r.jsxs("div", { className: l("mt-8 flex flex-col gap-4", e == null ? void 0 : e.ligalRoot), children: [
|
|
1158
1158
|
/* @__PURE__ */ r.jsx(
|
|
1159
1159
|
"div",
|
|
1160
1160
|
{
|
|
1161
1161
|
ref: d,
|
|
1162
|
-
className:
|
|
1162
|
+
className: l("desk-body-regular-m text-color-footer", { "line-clamp-3": !o }, e == null ? void 0 : e.ligalText),
|
|
1163
1163
|
dangerouslySetInnerHTML: { __html: t }
|
|
1164
1164
|
}
|
|
1165
1165
|
),
|
|
@@ -1169,7 +1169,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1169
1169
|
tabIndex: 0,
|
|
1170
1170
|
role: "button",
|
|
1171
1171
|
onClick: () => n((u) => !u),
|
|
1172
|
-
className:
|
|
1172
|
+
className: l(
|
|
1173
1173
|
"desk-body-regular-l w-max cursor-pointer font-medium text-color-footer transition-colors hover:text-color-white",
|
|
1174
1174
|
e == null ? void 0 : e.ligalButton
|
|
1175
1175
|
),
|
|
@@ -1183,24 +1183,24 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1183
1183
|
ligal: o,
|
|
1184
1184
|
copyright: n,
|
|
1185
1185
|
classes: i,
|
|
1186
|
-
details:
|
|
1186
|
+
details: a,
|
|
1187
1187
|
siteMap: d = !0
|
|
1188
1188
|
}) => /* @__PURE__ */ r.jsx(
|
|
1189
1189
|
"footer",
|
|
1190
1190
|
{
|
|
1191
1191
|
id: y.footer,
|
|
1192
1192
|
"data-test-id": y.footer,
|
|
1193
|
-
className:
|
|
1194
|
-
children: /* @__PURE__ */ r.jsx(F, { className:
|
|
1193
|
+
className: l("w-full bg-color-footer py-8 desktop:py-10", i == null ? void 0 : i.root),
|
|
1194
|
+
children: /* @__PURE__ */ r.jsx(F, { className: l(i == null ? void 0 : i.footerContainer), children: /* @__PURE__ */ r.jsxs("div", { className: l("mobile:pb-[176px]", i == null ? void 0 : i.footerWrapper), children: [
|
|
1195
1195
|
/* @__PURE__ */ r.jsxs(
|
|
1196
1196
|
"div",
|
|
1197
1197
|
{
|
|
1198
|
-
className:
|
|
1198
|
+
className: l(
|
|
1199
1199
|
"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",
|
|
1200
1200
|
i == null ? void 0 : i.footerHead
|
|
1201
1201
|
),
|
|
1202
1202
|
children: [
|
|
1203
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1203
|
+
/* @__PURE__ */ r.jsxs("div", { className: l(i == null ? void 0 : i.footerSocialBlock), children: [
|
|
1204
1204
|
/* @__PURE__ */ r.jsx(Rr, { classes: i == null ? void 0 : i.footerLogo }),
|
|
1205
1205
|
t.enabled && /* @__PURE__ */ r.jsx(Er, { socialsLinks: t.links, classes: i == null ? void 0 : i.socialLinks })
|
|
1206
1206
|
] }),
|
|
@@ -1208,12 +1208,12 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1208
1208
|
]
|
|
1209
1209
|
}
|
|
1210
1210
|
),
|
|
1211
|
-
!S.isArrayEmpty(
|
|
1211
|
+
!S.isArrayEmpty(a) && /* @__PURE__ */ r.jsx(Pr, { details: a, classes: i == null ? void 0 : i.navLinks }),
|
|
1212
1212
|
o.enabled && /* @__PURE__ */ r.jsx(zr, { text: o.text }),
|
|
1213
1213
|
/* @__PURE__ */ r.jsxs(
|
|
1214
1214
|
"div",
|
|
1215
1215
|
{
|
|
1216
|
-
className:
|
|
1216
|
+
className: l(
|
|
1217
1217
|
"mt-6 flex flex-col-reverse items-start justify-between gap-4 desktop:mt-8 desktop:flex-row desktop:gap-6",
|
|
1218
1218
|
i == null ? void 0 : i.footerBottom
|
|
1219
1219
|
),
|
|
@@ -1230,11 +1230,11 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1230
1230
|
Footer: Je,
|
|
1231
1231
|
default: Je
|
|
1232
1232
|
}, Symbol.toStringTag, { value: "Module" })), Qr = ({ classes: t, index: e, variant: o, title: n, description: i }) => {
|
|
1233
|
-
const
|
|
1233
|
+
const a = o === "withTitleAndDescription" && n;
|
|
1234
1234
|
return /* @__PURE__ */ r.jsxs(
|
|
1235
1235
|
"div",
|
|
1236
1236
|
{
|
|
1237
|
-
className:
|
|
1237
|
+
className: l(
|
|
1238
1238
|
"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",
|
|
1239
1239
|
t == null ? void 0 : t.singleStep
|
|
1240
1240
|
),
|
|
@@ -1242,42 +1242,42 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1242
1242
|
/* @__PURE__ */ r.jsx(
|
|
1243
1243
|
"div",
|
|
1244
1244
|
{
|
|
1245
|
-
className:
|
|
1245
|
+
className: l(
|
|
1246
1246
|
"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",
|
|
1247
1247
|
t == null ? void 0 : t.numeric
|
|
1248
1248
|
),
|
|
1249
1249
|
children: e
|
|
1250
1250
|
}
|
|
1251
1251
|
),
|
|
1252
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1253
|
-
|
|
1252
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col gap-2"), children: [
|
|
1253
|
+
a && /* @__PURE__ */ r.jsx(
|
|
1254
1254
|
"div",
|
|
1255
1255
|
{
|
|
1256
1256
|
dangerouslySetInnerHTML: { __html: n },
|
|
1257
|
-
className:
|
|
1257
|
+
className: l("mob-title-bold-m text-color-dark desktop:desk-title-bold-s", t == null ? void 0 : t.title)
|
|
1258
1258
|
}
|
|
1259
1259
|
),
|
|
1260
1260
|
/* @__PURE__ */ r.jsx(
|
|
1261
1261
|
"div",
|
|
1262
1262
|
{
|
|
1263
1263
|
dangerouslySetInnerHTML: { __html: i ?? "" },
|
|
1264
|
-
className:
|
|
1264
|
+
className: l("desk-body-regular-l text-color-tetriary", t == null ? void 0 : t.description)
|
|
1265
1265
|
}
|
|
1266
1266
|
)
|
|
1267
1267
|
] })
|
|
1268
1268
|
]
|
|
1269
1269
|
}
|
|
1270
1270
|
);
|
|
1271
|
-
}, Ge = ({ headline: t, details: e, variant: o, classes: n }) => /* @__PURE__ */ r.jsx("section", { id: y.stepper, "data-test-id": y.stepper, className: n == null ? void 0 : n.root, children: /* @__PURE__ */ r.jsx(F, { className: n == null ? void 0 : n.container, children: /* @__PURE__ */ r.jsxs("div", { className:
|
|
1272
|
-
/* @__PURE__ */ r.jsx(L, { as: "h2", className:
|
|
1271
|
+
}, Ge = ({ headline: t, details: e, variant: o, classes: n }) => /* @__PURE__ */ r.jsx("section", { id: y.stepper, "data-test-id": y.stepper, className: n == null ? void 0 : n.root, children: /* @__PURE__ */ r.jsx(F, { className: n == null ? void 0 : n.container, children: /* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col gap-6 desktop:items-start desktop:gap-12", n == null ? void 0 : n.wrapper), children: [
|
|
1272
|
+
/* @__PURE__ */ r.jsx(L, { as: "h2", className: l("text-color-dark", n == null ? void 0 : n.headline), children: t }),
|
|
1273
1273
|
/* @__PURE__ */ r.jsx(
|
|
1274
1274
|
"div",
|
|
1275
1275
|
{
|
|
1276
|
-
className:
|
|
1276
|
+
className: l(
|
|
1277
1277
|
"flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
|
|
1278
1278
|
n == null ? void 0 : n.stepsWrapper
|
|
1279
1279
|
),
|
|
1280
|
-
children: e == null ? void 0 : e.map((i,
|
|
1280
|
+
children: e == null ? void 0 : e.map((i, a) => /* @__PURE__ */ r.jsx(Qr, { variant: o, ...i, index: a + 1, classes: n == null ? void 0 : n.step }, i.description))
|
|
1281
1281
|
}
|
|
1282
1282
|
)
|
|
1283
1283
|
] }) }) }), Vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1376,45 +1376,45 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1376
1376
|
enabled: !1
|
|
1377
1377
|
}
|
|
1378
1378
|
} = t;
|
|
1379
|
-
return /* @__PURE__ */ r.jsx("li", { className:
|
|
1380
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1381
|
-
/* @__PURE__ */ r.jsx("h4", { className:
|
|
1382
|
-
i.enabled && /* @__PURE__ */ r.jsx(_e, { triggerElement: /* @__PURE__ */ r.jsx(b, { className:
|
|
1379
|
+
return /* @__PURE__ */ r.jsx("li", { className: l(qr({ intent: e })), children: /* @__PURE__ */ r.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
1380
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("mb-2 flex items-center gap-2"), children: [
|
|
1381
|
+
/* @__PURE__ */ r.jsx("h4", { className: l("mob-title-bold-m text-color-dark"), children: o }),
|
|
1382
|
+
i.enabled && /* @__PURE__ */ r.jsx(_e, { triggerElement: /* @__PURE__ */ r.jsx(b, { className: l("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i.text })
|
|
1383
1383
|
] }),
|
|
1384
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1384
|
+
/* @__PURE__ */ r.jsx("div", { className: l("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: n } })
|
|
1385
1385
|
] }) });
|
|
1386
|
-
}, Ce = ({ intent: t, headline: e, desktopHidden: o = !1, mobileHidden: n = !1 }) => /* @__PURE__ */ r.jsx("h2", { className:
|
|
1386
|
+
}, Ce = ({ intent: t, headline: e, desktopHidden: o = !1, mobileHidden: n = !1 }) => /* @__PURE__ */ r.jsx("h2", { className: l($r({ intent: t, desktopHidden: o, mobileHidden: n })), children: e }), Kr = ({ details: t, intent: e, withButton: o }) => /* @__PURE__ */ r.jsx("ul", { className: l(Ar({ intent: e, withButton: o })), children: t == null ? void 0 : t.map((n, i) => /* @__PURE__ */ r.jsx(Ur, { intent: e, data: n }, i)) }), et = ({
|
|
1387
1387
|
headline: t,
|
|
1388
1388
|
buttonConfig: e,
|
|
1389
1389
|
intent: o = "twoItems",
|
|
1390
1390
|
details: n,
|
|
1391
1391
|
image: i,
|
|
1392
|
-
classes:
|
|
1392
|
+
classes: a
|
|
1393
1393
|
}) => {
|
|
1394
1394
|
const d = o === "fourItems", u = o === "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;
|
|
1395
|
-
return /* @__PURE__ */ r.jsx("section", { id: y.longBanner, "data-test-id": y.longBanner, className: a
|
|
1395
|
+
return /* @__PURE__ */ r.jsx("section", { id: y.longBanner, "data-test-id": y.longBanner, className: l(a == null ? void 0 : a.root), children: /* @__PURE__ */ r.jsxs(F, { className: l(a == null ? void 0 : a.container), children: [
|
|
1396
1396
|
u && /* @__PURE__ */ r.jsx(Ce, { intent: o, headline: t }),
|
|
1397
1397
|
/* @__PURE__ */ r.jsxs(
|
|
1398
1398
|
"div",
|
|
1399
1399
|
{
|
|
1400
|
-
className:
|
|
1400
|
+
className: l(
|
|
1401
1401
|
"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",
|
|
1402
|
-
|
|
1402
|
+
a == null ? void 0 : a.contentContainer
|
|
1403
1403
|
),
|
|
1404
1404
|
children: [
|
|
1405
1405
|
d && /* @__PURE__ */ r.jsx(Ce, { intent: o, headline: t, desktopHidden: !0 }),
|
|
1406
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1406
|
+
/* @__PURE__ */ r.jsx("div", { className: l(Wr({ intent: o, withButton: e == null ? void 0 : e.enabled }), a == null ? void 0 : a.imgContainer), children: m }),
|
|
1407
1407
|
/* @__PURE__ */ r.jsxs(
|
|
1408
1408
|
"div",
|
|
1409
1409
|
{
|
|
1410
|
-
className:
|
|
1410
|
+
className: l("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", a == null ? void 0 : a.textWithBtnContainer),
|
|
1411
1411
|
children: [
|
|
1412
1412
|
d && /* @__PURE__ */ r.jsx(Ce, { intent: o, headline: t, mobileHidden: !0 }),
|
|
1413
1413
|
/* @__PURE__ */ r.jsx(Kr, { details: n, intent: o, withButton: (e == null ? void 0 : e.enabled) ?? !1 }),
|
|
1414
1414
|
(e == null ? void 0 : e.enabled) && e && /* @__PURE__ */ r.jsx(
|
|
1415
1415
|
Y,
|
|
1416
1416
|
{
|
|
1417
|
-
className:
|
|
1417
|
+
className: l("w-full px-4 desktop:w-max", a == null ? void 0 : a.button),
|
|
1418
1418
|
size: "lg",
|
|
1419
1419
|
intent: "secondary",
|
|
1420
1420
|
...e.buttonContent
|
|
@@ -1439,7 +1439,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1439
1439
|
"div",
|
|
1440
1440
|
{
|
|
1441
1441
|
tabIndex: 0,
|
|
1442
|
-
className:
|
|
1442
|
+
className: l(
|
|
1443
1443
|
"relative flex h-[90px] w-full max-w-[328px] items-center justify-center rounded-sm p-2 desktop:max-w-[524px]",
|
|
1444
1444
|
"bg-color-white outline outline-1 outline-warm-grey-200 transition-colors focus-visible:outline-primary-focus",
|
|
1445
1445
|
o == null ? void 0 : o.root
|
|
@@ -1447,7 +1447,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1447
1447
|
children: /* @__PURE__ */ r.jsx(
|
|
1448
1448
|
"div",
|
|
1449
1449
|
{
|
|
1450
|
-
className:
|
|
1450
|
+
className: l(
|
|
1451
1451
|
"flex h-[74px] flex-1 cursor-pointer rounded-sm px-2 py-3 transition-colors desktop:px-4 desktop:py-3",
|
|
1452
1452
|
"bg-color-blue-grey-100 hover:bg-color-blue-grey-200 active:bg-color-blue-grey-300",
|
|
1453
1453
|
{ "items-center": e },
|
|
@@ -1485,14 +1485,14 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1485
1485
|
/* @__PURE__ */ r.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
|
|
1486
1486
|
/* @__PURE__ */ r.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
|
|
1487
1487
|
] }) })
|
|
1488
|
-
] }), Nt = ({ mainLink: t, subLink: e, isMobile: o, classes: n }) => /* @__PURE__ */ r.jsxs("div", { className:
|
|
1488
|
+
] }), Nt = ({ mainLink: t, subLink: e, isMobile: o, classes: n }) => /* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col", n == null ? void 0 : n.linksWrapper), children: [
|
|
1489
1489
|
/* @__PURE__ */ r.jsx(
|
|
1490
1490
|
"a",
|
|
1491
1491
|
{
|
|
1492
1492
|
href: t.href,
|
|
1493
1493
|
target: "_blank",
|
|
1494
1494
|
rel: "noreferrer",
|
|
1495
|
-
className:
|
|
1495
|
+
className: l(
|
|
1496
1496
|
'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',
|
|
1497
1497
|
n == null ? void 0 : n.linksMainLink
|
|
1498
1498
|
),
|
|
@@ -1508,52 +1508,52 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1508
1508
|
target: "_blank",
|
|
1509
1509
|
rel: "noreferrer",
|
|
1510
1510
|
classes: {
|
|
1511
|
-
link:
|
|
1511
|
+
link: l("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary", n == null ? void 0 : n.linksSubLink)
|
|
1512
1512
|
},
|
|
1513
1513
|
children: e == null ? void 0 : e.text
|
|
1514
1514
|
}
|
|
1515
1515
|
)
|
|
1516
|
-
] }), tt = ({ mainLink: t, subLink: e, isLoading: o, badge: n, loaderProps: i, classes:
|
|
1516
|
+
] }), tt = ({ mainLink: t, subLink: e, isLoading: o, badge: n, loaderProps: i, classes: a }) => {
|
|
1517
1517
|
const { isMobile: d } = ee();
|
|
1518
|
-
return /* @__PURE__ */ r.jsx(vt, { isLoading: o, loaderProps: i, classes:
|
|
1518
|
+
return /* @__PURE__ */ r.jsx(vt, { isLoading: o, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
1519
1519
|
"div",
|
|
1520
1520
|
{
|
|
1521
|
-
className:
|
|
1521
|
+
className: l(
|
|
1522
1522
|
"flex flex-1 items-center justify-between gap-1",
|
|
1523
1523
|
{ "justify-center": !n && d },
|
|
1524
|
-
|
|
1524
|
+
a == null ? void 0 : a.innerWrapper
|
|
1525
1525
|
),
|
|
1526
1526
|
children: [
|
|
1527
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1527
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
|
|
1528
1528
|
/* @__PURE__ */ r.jsxs("div", { children: [
|
|
1529
|
-
/* @__PURE__ */ r.jsx(b, { name: "logos/mts", className:
|
|
1530
|
-
/* @__PURE__ */ r.jsx(b, { name: "logos/megafon", className:
|
|
1531
|
-
/* @__PURE__ */ r.jsx(b, { name: "logos/beeline", className:
|
|
1529
|
+
/* @__PURE__ */ r.jsx(b, { name: "logos/mts", className: l("relative z-[9] size-7 desktop:size-8", a == null ? void 0 : a.mtsLogo) }),
|
|
1530
|
+
/* @__PURE__ */ r.jsx(b, { name: "logos/megafon", className: l("relative z-[8] -ml-4 size-7 desktop:size-8", a == null ? void 0 : a.megafonLogo) }),
|
|
1531
|
+
/* @__PURE__ */ r.jsx(b, { name: "logos/beeline", className: l("relative z-[7] -ml-4 size-7 desktop:size-8", a == null ? void 0 : a.beelineLogo) })
|
|
1532
1532
|
] }),
|
|
1533
|
-
/* @__PURE__ */ r.jsx(Nt, { mainLink: t, subLink: e, isMobile: d, classes:
|
|
1534
|
-
/* @__PURE__ */ r.jsx(b, { name: "arrows/arrowRight", className:
|
|
1533
|
+
/* @__PURE__ */ r.jsx(Nt, { mainLink: t, subLink: e, isMobile: d, classes: a == null ? void 0 : a.links }),
|
|
1534
|
+
/* @__PURE__ */ r.jsx(b, { name: "arrows/arrowRight", className: l("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
|
|
1535
1535
|
] }),
|
|
1536
|
-
n && /* @__PURE__ */ r.jsx(Te, { className:
|
|
1536
|
+
n && /* @__PURE__ */ r.jsx(Te, { className: l("bg-color-positive", a == null ? void 0 : a.badge), children: n })
|
|
1537
1537
|
]
|
|
1538
1538
|
}
|
|
1539
1539
|
) });
|
|
1540
|
-
}, rt = ({ mainLink: t, subLink: e, isLoading: o, badge: n, loaderProps: i, classes:
|
|
1540
|
+
}, rt = ({ mainLink: t, subLink: e, isLoading: o, badge: n, loaderProps: i, classes: a }) => {
|
|
1541
1541
|
const { isMobile: d } = ee();
|
|
1542
|
-
return /* @__PURE__ */ r.jsx(vt, { isLoading: o, loaderProps: i, classes:
|
|
1542
|
+
return /* @__PURE__ */ r.jsx(vt, { isLoading: o, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
1543
1543
|
"div",
|
|
1544
1544
|
{
|
|
1545
|
-
className:
|
|
1545
|
+
className: l(
|
|
1546
1546
|
"flex flex-1 items-center justify-between gap-1",
|
|
1547
1547
|
{ "justify-center": !n && d },
|
|
1548
|
-
|
|
1548
|
+
a == null ? void 0 : a.innerWrapper
|
|
1549
1549
|
),
|
|
1550
1550
|
children: [
|
|
1551
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1552
|
-
/* @__PURE__ */ r.jsx(Xr, { className:
|
|
1553
|
-
/* @__PURE__ */ r.jsx(Nt, { mainLink: t, subLink: e, isMobile: d, classes:
|
|
1554
|
-
/* @__PURE__ */ r.jsx(b, { name: "arrows/arrowRight", className:
|
|
1551
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
|
|
1552
|
+
/* @__PURE__ */ r.jsx(Xr, { className: l("size-7 desktop:size-8", a == null ? void 0 : a.esiaLogo) }),
|
|
1553
|
+
/* @__PURE__ */ r.jsx(Nt, { mainLink: t, subLink: e, isMobile: d, classes: a == null ? void 0 : a.links }),
|
|
1554
|
+
/* @__PURE__ */ r.jsx(b, { name: "arrows/arrowRight", className: l("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
|
|
1555
1555
|
] }),
|
|
1556
|
-
n && /* @__PURE__ */ r.jsx(Te, { className:
|
|
1556
|
+
n && /* @__PURE__ */ r.jsx(Te, { className: l("bg-color-positive", a == null ? void 0 : a.badge), children: n })
|
|
1557
1557
|
]
|
|
1558
1558
|
}
|
|
1559
1559
|
) });
|
|
@@ -1565,20 +1565,20 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1565
1565
|
return /* @__PURE__ */ r.jsx(tt, { ...t });
|
|
1566
1566
|
case Me.COMBINE:
|
|
1567
1567
|
default:
|
|
1568
|
-
const { esiaConfig: e, mobileIdConfig: o, subtitle: n, badge: i, classes:
|
|
1568
|
+
const { esiaConfig: e, mobileIdConfig: o, subtitle: n, badge: i, classes: a } = t, d = !n && !i ? ue.Fragment : "div";
|
|
1569
1569
|
return /* @__PURE__ */ r.jsxs(
|
|
1570
1570
|
"div",
|
|
1571
1571
|
{
|
|
1572
|
-
className:
|
|
1572
|
+
className: l(
|
|
1573
1573
|
"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",
|
|
1574
|
-
|
|
1574
|
+
a == null ? void 0 : a.root
|
|
1575
1575
|
),
|
|
1576
1576
|
children: [
|
|
1577
|
-
/* @__PURE__ */ r.jsxs(d, { className:
|
|
1578
|
-
n && /* @__PURE__ */ r.jsx("h5", { className:
|
|
1579
|
-
i && /* @__PURE__ */ r.jsx(Te, { className:
|
|
1577
|
+
/* @__PURE__ */ r.jsxs(d, { className: l("flex w-full items-center justify-between gap-2", a == null ? void 0 : a.topContent), children: [
|
|
1578
|
+
n && /* @__PURE__ */ r.jsx("h5", { className: l("desk-body-regular-l flex flex-1 text-color-dark", a == null ? void 0 : a.subtitle), children: n }),
|
|
1579
|
+
i && /* @__PURE__ */ r.jsx(Te, { className: l("bg-color-positive", a == null ? void 0 : a.badge), children: i })
|
|
1580
1580
|
] }),
|
|
1581
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1581
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("grid w-full grid-cols-2 gap-2 desktop:gap-4", a == null ? void 0 : a.authWrapper), children: [
|
|
1582
1582
|
/* @__PURE__ */ r.jsx(
|
|
1583
1583
|
rt,
|
|
1584
1584
|
{
|
|
@@ -1606,12 +1606,12 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1606
1606
|
}
|
|
1607
1607
|
);
|
|
1608
1608
|
}
|
|
1609
|
-
}, Oo = (t) => Yr(t), nt = ({ links: t, classes: e }) => /* @__PURE__ */ r.jsx("nav", { className:
|
|
1609
|
+
}, Oo = (t) => Yr(t), nt = ({ links: t, classes: e }) => /* @__PURE__ */ r.jsx("nav", { className: l("flex flex-col gap-1", e == null ? void 0 : e.linksWrapper), children: t == null ? void 0 : t.map(({ path: o, label: n }) => /* @__PURE__ */ r.jsx(
|
|
1610
1610
|
je,
|
|
1611
1611
|
{
|
|
1612
1612
|
classes: {
|
|
1613
|
-
link:
|
|
1614
|
-
icon:
|
|
1613
|
+
link: l("w-max", e == null ? void 0 : e.linkText),
|
|
1614
|
+
icon: l(e == null ? void 0 : e.linkIcon)
|
|
1615
1615
|
},
|
|
1616
1616
|
intent: "dark",
|
|
1617
1617
|
href: o,
|
|
@@ -1619,32 +1619,32 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1619
1619
|
},
|
|
1620
1620
|
o
|
|
1621
1621
|
)) }), Jr = ({ groupLabel: t, links: e, mobileAccordionProps: o, classes: n }) => {
|
|
1622
|
-
var
|
|
1622
|
+
var a, d, u;
|
|
1623
1623
|
const { isMobile: i } = ee();
|
|
1624
|
-
return /* @__PURE__ */ r.jsxs("div", { className:
|
|
1624
|
+
return /* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col gap-2", n == null ? void 0 : n.columnGroup), children: [
|
|
1625
1625
|
!i && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1626
|
-
/* @__PURE__ */ r.jsx("h5", { className:
|
|
1626
|
+
/* @__PURE__ */ r.jsx("h5", { className: l("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", n == null ? void 0 : n.columnGroupHeading), children: t }),
|
|
1627
1627
|
/* @__PURE__ */ r.jsx(nt, { links: e, classes: n == null ? void 0 : n.linksList }, "desktop")
|
|
1628
1628
|
] }),
|
|
1629
1629
|
i && /* @__PURE__ */ r.jsx(
|
|
1630
|
-
|
|
1630
|
+
ae,
|
|
1631
1631
|
{
|
|
1632
1632
|
defaultOpen: !0,
|
|
1633
1633
|
label: t,
|
|
1634
|
-
icon: /* @__PURE__ */ r.jsx(b, { name: "arrows/arrowRight", className:
|
|
1634
|
+
icon: /* @__PURE__ */ r.jsx(b, { name: "arrows/arrowRight", className: l("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
|
|
1635
1635
|
...o,
|
|
1636
1636
|
classes: {
|
|
1637
1637
|
...o == null ? void 0 : o.classes,
|
|
1638
1638
|
header: {
|
|
1639
|
-
trigger:
|
|
1639
|
+
trigger: l("p-0 bg-color-blue-grey-100", (d = (a = o == null ? void 0 : o.classes) == null ? void 0 : a.header) == null ? void 0 : d.trigger)
|
|
1640
1640
|
},
|
|
1641
|
-
contentInner:
|
|
1641
|
+
contentInner: l("py-2 px-4", (u = o == null ? void 0 : o.classes) == null ? void 0 : u.contentInner)
|
|
1642
1642
|
},
|
|
1643
1643
|
children: /* @__PURE__ */ r.jsx(nt, { links: e, classes: n == null ? void 0 : n.linksList }, "mobile")
|
|
1644
1644
|
}
|
|
1645
1645
|
)
|
|
1646
1646
|
] });
|
|
1647
|
-
}, Gr = ({ column: t, mobileAccordionProps: e, classes: o }) => /* @__PURE__ */ r.jsx("div", { className:
|
|
1647
|
+
}, Gr = ({ column: t, mobileAccordionProps: e, classes: o }) => /* @__PURE__ */ r.jsx("div", { className: l("flex flex-col gap-4 desktop:gap-6", o == null ? void 0 : o.column), children: t == null ? void 0 : t.map((n) => /* @__PURE__ */ r.jsx(Jr, { ...e, ...n, classes: o == null ? void 0 : o.columnGroup }, n.groupLabel)) }), en = E("grid gap-4 grid-cols-1", {
|
|
1648
1648
|
variants: {
|
|
1649
1649
|
variant: {
|
|
1650
1650
|
twoCols: "desktop:grid-cols-2",
|
|
@@ -1661,30 +1661,30 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1661
1661
|
headline: o,
|
|
1662
1662
|
mobileAccordionProps: n,
|
|
1663
1663
|
rootAccordionProps: i,
|
|
1664
|
-
classes:
|
|
1664
|
+
classes: a,
|
|
1665
1665
|
defaultOpen: d
|
|
1666
1666
|
}) => {
|
|
1667
|
-
var u, m,
|
|
1667
|
+
var u, m, x;
|
|
1668
1668
|
return /* @__PURE__ */ r.jsx(
|
|
1669
1669
|
"section",
|
|
1670
1670
|
{
|
|
1671
1671
|
id: y.interLinking,
|
|
1672
1672
|
"data-test-id": y.interLinking,
|
|
1673
|
-
className:
|
|
1673
|
+
className: l("min-w-full desktop:min-w-[1140px]", a == null ? void 0 : a.root),
|
|
1674
1674
|
children: /* @__PURE__ */ r.jsx(F, { children: /* @__PURE__ */ r.jsx(
|
|
1675
|
-
|
|
1675
|
+
ae,
|
|
1676
1676
|
{
|
|
1677
1677
|
defaultOpen: d,
|
|
1678
|
-
label: /* @__PURE__ */ r.jsx(L, { as: "h4", className:
|
|
1678
|
+
label: /* @__PURE__ */ r.jsx(L, { as: "h4", className: l("text-left", a == null ? void 0 : a.headline), children: o }),
|
|
1679
1679
|
...i,
|
|
1680
1680
|
classes: {
|
|
1681
1681
|
...i == null ? void 0 : i.classes,
|
|
1682
1682
|
header: {
|
|
1683
|
-
trigger:
|
|
1683
|
+
trigger: l("bg-color-blue-grey-100", (m = (u = i == null ? void 0 : i.classes) == null ? void 0 : u.header) == null ? void 0 : m.trigger)
|
|
1684
1684
|
},
|
|
1685
|
-
content:
|
|
1685
|
+
content: l("max-w-full bg-color-blue-grey-100 relative", (x = i == null ? void 0 : i.classes) == null ? void 0 : x.content)
|
|
1686
1686
|
},
|
|
1687
|
-
children: /* @__PURE__ */ r.jsx("div", { className:
|
|
1687
|
+
children: /* @__PURE__ */ r.jsx("div", { className: l(en({ variant: t }), a == null ? void 0 : a.columnsWrapper), children: e == null ? void 0 : e.map((p, c) => /* @__PURE__ */ r.jsx(Gr, { ...p, ...n, classes: a == null ? void 0 : a.column }, c)) })
|
|
1688
1688
|
}
|
|
1689
1689
|
) })
|
|
1690
1690
|
}
|
|
@@ -1693,30 +1693,30 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1693
1693
|
__proto__: null,
|
|
1694
1694
|
InterLinking: ot,
|
|
1695
1695
|
default: ot
|
|
1696
|
-
}, Symbol.toStringTag, { value: "Module" })), rn = ({ tabsNames: t, activeTab: e, setActiveTab: o, classes: n }) => /* @__PURE__ */ r.jsx("div", { className:
|
|
1696
|
+
}, Symbol.toStringTag, { value: "Module" })), rn = ({ tabsNames: t, activeTab: e, setActiveTab: o, classes: n }) => /* @__PURE__ */ r.jsx("div", { className: l("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", n == null ? void 0 : n.tabs), children: t && t.map((i, a) => /* @__PURE__ */ r.jsx(
|
|
1697
1697
|
"button",
|
|
1698
1698
|
{
|
|
1699
|
-
onClick: () => o(
|
|
1700
|
-
className:
|
|
1699
|
+
onClick: () => o(a),
|
|
1700
|
+
className: l(
|
|
1701
1701
|
"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",
|
|
1702
1702
|
{
|
|
1703
|
-
"bg-icon-primary-default text-color-white": e ===
|
|
1703
|
+
"bg-icon-primary-default text-color-white": e === a
|
|
1704
1704
|
},
|
|
1705
1705
|
n == null ? void 0 : n.button
|
|
1706
1706
|
),
|
|
1707
1707
|
children: i
|
|
1708
1708
|
},
|
|
1709
1709
|
i
|
|
1710
|
-
)) }), nn = (t) => t.variant === "HTML", on = (t) => t.variant === "DOCUMENTS",
|
|
1711
|
-
const i = /* @__PURE__ */ r.jsx("div", { className:
|
|
1712
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ r.jsx(
|
|
1710
|
+
)) }), nn = (t) => t.variant === "HTML", on = (t) => t.variant === "DOCUMENTS", an = (t) => t.variant === "TABLE", ln = ({ html: t, config: e, classes: o, accordionConfig: n }) => {
|
|
1711
|
+
const i = /* @__PURE__ */ r.jsx("div", { className: l(o == null ? void 0 : o.html), dangerouslySetInnerHTML: { __html: t ?? "" } });
|
|
1712
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ r.jsx(ae, { label: e == null ? void 0 : e.accordionTitle, ...n, children: (n == null ? void 0 : n.children) ?? i }) : i });
|
|
1713
1713
|
}, dn = (t, e) => ({
|
|
1714
1714
|
rows: t == null ? void 0 : t.map(({ row: o }) => ({
|
|
1715
1715
|
row: o == null ? void 0 : o.map((n, i) => {
|
|
1716
|
-
var
|
|
1716
|
+
var a;
|
|
1717
1717
|
return {
|
|
1718
1718
|
...n,
|
|
1719
|
-
heading: e && ((
|
|
1719
|
+
heading: e && ((a = e[i]) == null ? void 0 : a.heading)
|
|
1720
1720
|
};
|
|
1721
1721
|
})
|
|
1722
1722
|
}))
|
|
@@ -1734,7 +1734,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1734
1734
|
threeCols: "grid-cols-3 gap-12"
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
|
-
}),
|
|
1737
|
+
}), xn = ({ headings: t, columnsVariant: e, classes: o }) => /* @__PURE__ */ r.jsx("div", { className: l(mn({ columnsVariant: e }), o == null ? void 0 : o.row), children: t == null ? void 0 : t.map((n) => /* @__PURE__ */ r.jsx("div", { className: l("text-color-secondary", o == null ? void 0 : o.cell), children: n == null ? void 0 : n.heading }, n == null ? void 0 : n.heading)) }), hn = E("desktop:grid mobile:hidden items-center", {
|
|
1738
1738
|
variants: {
|
|
1739
1739
|
columnsVariant: {
|
|
1740
1740
|
twoCols: "grid-cols-2 gap-16",
|
|
@@ -1745,11 +1745,11 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1745
1745
|
separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
|
|
1746
1746
|
}
|
|
1747
1747
|
}
|
|
1748
|
-
}), pn = ({ row: t, tableVariant: e, columnsVariant: o, rowIndex: n, classes: i }) => /* @__PURE__ */ r.jsx("div", { className:
|
|
1748
|
+
}), pn = ({ row: t, tableVariant: e, columnsVariant: o, rowIndex: n, classes: i }) => /* @__PURE__ */ r.jsx("div", { className: l(hn({ columnsVariant: o, tableVariant: e }), { "border-none": n === 0 }, i == null ? void 0 : i.row), children: t == null ? void 0 : t.map(({ cell: a }, d) => /* @__PURE__ */ r.jsx(
|
|
1749
1749
|
"div",
|
|
1750
1750
|
{
|
|
1751
|
-
className:
|
|
1752
|
-
children:
|
|
1751
|
+
className: l("desk-body-regular-l text-color-dark", { "font-medium": d !== 0 }, i == null ? void 0 : i.cell),
|
|
1752
|
+
children: a && a
|
|
1753
1753
|
},
|
|
1754
1754
|
d
|
|
1755
1755
|
)) }), cn = E("mobile:flex desktop:hidden flex-col gap-2", {
|
|
@@ -1759,38 +1759,38 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1759
1759
|
separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
1762
|
-
}), fn = ({ row: t, tableVariant: e, columnsVariant: o, headingsExist: n, classes: i }) => /* @__PURE__ */ r.jsx("div", { className:
|
|
1763
|
-
d && /* @__PURE__ */ r.jsx("div", { className:
|
|
1762
|
+
}), fn = ({ row: t, tableVariant: e, columnsVariant: o, headingsExist: n, classes: i }) => /* @__PURE__ */ r.jsx("div", { className: l(cn({ tableVariant: e }), i == null ? void 0 : i.row), children: t == null ? void 0 : t.map(({ cell: a, heading: d }, u) => /* @__PURE__ */ r.jsxs("div", { className: l("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !n }, i == null ? void 0 : i.wrapper), children: [
|
|
1763
|
+
d && /* @__PURE__ */ r.jsx("div", { className: l("mob-body-regular-l text-color-secondary", i == null ? void 0 : i.heading), children: d }),
|
|
1764
1764
|
/* @__PURE__ */ r.jsx(
|
|
1765
1765
|
"div",
|
|
1766
1766
|
{
|
|
1767
|
-
className:
|
|
1767
|
+
className: l(
|
|
1768
1768
|
"mob-body-regular-l text-color-dark",
|
|
1769
1769
|
{
|
|
1770
1770
|
"font-medium": u !== 0 && o === "twoCols" || o === "threeCols" || o === "twoCols" && n
|
|
1771
1771
|
},
|
|
1772
1772
|
i == null ? void 0 : i.cell
|
|
1773
1773
|
),
|
|
1774
|
-
children:
|
|
1774
|
+
children: a
|
|
1775
1775
|
}
|
|
1776
1776
|
)
|
|
1777
1777
|
] }, u)) }), bn = ({ tableVariant: t, rows: e, headings: o, columnsVariant: n, classes: i }) => {
|
|
1778
1778
|
var u;
|
|
1779
|
-
const
|
|
1780
|
-
return /* @__PURE__ */ r.jsxs("div", { className:
|
|
1781
|
-
d && /* @__PURE__ */ r.jsx(
|
|
1782
|
-
e == null ? void 0 : e.map((m,
|
|
1779
|
+
const a = ((u = dn(e, o)) == null ? void 0 : u.rows) ?? [], d = !!(o && o.length > 0);
|
|
1780
|
+
return /* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1781
|
+
d && /* @__PURE__ */ r.jsx(xn, { headings: o, columnsVariant: n, classes: i == null ? void 0 : i.desktopHeading }),
|
|
1782
|
+
e == null ? void 0 : e.map((m, x) => /* @__PURE__ */ r.jsx(
|
|
1783
1783
|
pn,
|
|
1784
1784
|
{
|
|
1785
|
-
rowIndex:
|
|
1785
|
+
rowIndex: x,
|
|
1786
1786
|
tableVariant: t,
|
|
1787
1787
|
columnsVariant: n,
|
|
1788
1788
|
classes: i == null ? void 0 : i.desktopRow,
|
|
1789
1789
|
...m
|
|
1790
1790
|
},
|
|
1791
|
-
|
|
1791
|
+
x
|
|
1792
1792
|
)),
|
|
1793
|
-
|
|
1793
|
+
a == null ? void 0 : a.map((m, x) => /* @__PURE__ */ r.jsx(
|
|
1794
1794
|
fn,
|
|
1795
1795
|
{
|
|
1796
1796
|
headingsExist: d,
|
|
@@ -1799,7 +1799,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1799
1799
|
classes: i == null ? void 0 : i.desktopRow,
|
|
1800
1800
|
...m
|
|
1801
1801
|
},
|
|
1802
|
-
|
|
1802
|
+
x
|
|
1803
1803
|
))
|
|
1804
1804
|
] });
|
|
1805
1805
|
}, gn = ({
|
|
@@ -1808,23 +1808,23 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1808
1808
|
columnsVariant: o,
|
|
1809
1809
|
config: n,
|
|
1810
1810
|
rows: i,
|
|
1811
|
-
title:
|
|
1811
|
+
title: a,
|
|
1812
1812
|
headings: d,
|
|
1813
1813
|
accordionConfig: u,
|
|
1814
1814
|
classes: m
|
|
1815
1815
|
}) => {
|
|
1816
|
-
const
|
|
1817
|
-
|
|
1816
|
+
const x = /* @__PURE__ */ r.jsxs("div", { className: l(un({ columnsVariant: o }), m == null ? void 0 : m.wrapper), children: [
|
|
1817
|
+
a && /* @__PURE__ */ r.jsx(L, { as: "h4", className: l("mb-4 desktop:mb-6", m == null ? void 0 : m.headline), children: a }),
|
|
1818
1818
|
/* @__PURE__ */ r.jsx(bn, { tableVariant: t, rows: i, headings: d, columnsVariant: o }),
|
|
1819
1819
|
e && /* @__PURE__ */ r.jsx(
|
|
1820
1820
|
"div",
|
|
1821
1821
|
{
|
|
1822
|
-
className:
|
|
1822
|
+
className: l("mt-2 [&&]:desk-body-regular-m desktop:mt-2", m == null ? void 0 : m.description),
|
|
1823
1823
|
dangerouslySetInnerHTML: { __html: e ?? "" }
|
|
1824
1824
|
}
|
|
1825
1825
|
)
|
|
1826
1826
|
] });
|
|
1827
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: n && (n != null && n.isAccordion) && (n != null && n.accordionTitle) ? /* @__PURE__ */ r.jsx(
|
|
1827
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: n && (n != null && n.isAccordion) && (n != null && n.accordionTitle) ? /* @__PURE__ */ r.jsx(ae, { label: n == null ? void 0 : n.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || x }) : x });
|
|
1828
1828
|
}, jn = {
|
|
1829
1829
|
documentFilled: "files/documentFilled",
|
|
1830
1830
|
documentOutline: "files/documentOutline"
|
|
@@ -1845,35 +1845,35 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1845
1845
|
target: "_blank",
|
|
1846
1846
|
rel: "noreferrer",
|
|
1847
1847
|
tabIndex: 0,
|
|
1848
|
-
className:
|
|
1848
|
+
className: l(
|
|
1849
1849
|
"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",
|
|
1850
1850
|
i == null ? void 0 : i.link
|
|
1851
1851
|
),
|
|
1852
1852
|
children: [
|
|
1853
|
-
/* @__PURE__ */ r.jsx(b, { name: jn[n], className:
|
|
1854
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1855
|
-
/* @__PURE__ */ r.jsx("p", { className:
|
|
1856
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1853
|
+
/* @__PURE__ */ r.jsx(b, { name: jn[n], className: l(yn({ iconType: n }), i == null ? void 0 : i.icon) }),
|
|
1854
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("flex flex-1 flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1855
|
+
/* @__PURE__ */ r.jsx("p", { className: l("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: t }),
|
|
1856
|
+
/* @__PURE__ */ r.jsxs("div", { className: l("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
|
|
1857
1857
|
Number(e),
|
|
1858
1858
|
" КБ"
|
|
1859
1859
|
] })
|
|
1860
1860
|
] })
|
|
1861
1861
|
]
|
|
1862
1862
|
}
|
|
1863
|
-
), kn = ({ docs: t, config: e, title: o, iconType: n, description: i, classes:
|
|
1864
|
-
const u = /* @__PURE__ */ r.jsxs("div", { className:
|
|
1863
|
+
), kn = ({ docs: t, config: e, title: o, iconType: n, description: i, classes: a, accordionConfig: d }) => {
|
|
1864
|
+
const u = /* @__PURE__ */ r.jsxs("div", { className: l("flex max-w-[680px] flex-col", a == null ? void 0 : a.wrapper), children: [
|
|
1865
1865
|
o && /* @__PURE__ */ r.jsx(L, { as: "h3", className: "mb-4", children: o }),
|
|
1866
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1867
|
-
i && /* @__PURE__ */ r.jsx("div", { className:
|
|
1866
|
+
/* @__PURE__ */ r.jsx("div", { className: l("flex flex-col gap-4", a == null ? void 0 : a.documentsWrapper), children: t == null ? void 0 : t.map((m) => /* @__PURE__ */ r.jsx(sn, { iconType: n, ...m, classes: a == null ? void 0 : a.singleDocument }, m.label)) }),
|
|
1867
|
+
i && /* @__PURE__ */ r.jsx("div", { className: l("mt-4", a == null ? void 0 : a.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
|
|
1868
1868
|
] });
|
|
1869
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ r.jsx(
|
|
1869
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ r.jsx(ae, { label: e == null ? void 0 : e.accordionTitle, ...d, children: (d == null ? void 0 : d.children) || u }) : u });
|
|
1870
1870
|
}, wn = ({ entity: t, classes: e, accordionsConfig: o }) => {
|
|
1871
|
-
var n, i,
|
|
1871
|
+
var n, i, a;
|
|
1872
1872
|
switch (!0) {
|
|
1873
1873
|
case nn(t):
|
|
1874
1874
|
return (n = t.details) == null ? void 0 : n.map((d, u) => {
|
|
1875
1875
|
var m;
|
|
1876
|
-
return /* @__PURE__ */ r.jsx(
|
|
1876
|
+
return /* @__PURE__ */ r.jsx(ln, { ...d, accordionConfig: o == null ? void 0 : o.htmlAccordion, classes: (m = e == null ? void 0 : e.entities) == null ? void 0 : m.html }, u);
|
|
1877
1877
|
});
|
|
1878
1878
|
case on(t):
|
|
1879
1879
|
return (i = t.details) == null ? void 0 : i.map((d, u) => {
|
|
@@ -1888,8 +1888,8 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1888
1888
|
u
|
|
1889
1889
|
);
|
|
1890
1890
|
});
|
|
1891
|
-
case
|
|
1892
|
-
return (
|
|
1891
|
+
case an(t):
|
|
1892
|
+
return (a = t.details) == null ? void 0 : a.map((d, u) => {
|
|
1893
1893
|
var m;
|
|
1894
1894
|
return /* @__PURE__ */ r.jsx(
|
|
1895
1895
|
gn,
|
|
@@ -1904,13 +1904,13 @@ const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resol
|
|
|
1904
1904
|
default:
|
|
1905
1905
|
return null;
|
|
1906
1906
|
}
|
|
1907
|
-
}, vn = ({ entity: t, classes: e, accordionsConfig: o }) => /* @__PURE__ */ r.jsx("div", { className:
|
|
1907
|
+
}, vn = ({ entity: t, classes: e, accordionsConfig: o }) => /* @__PURE__ */ r.jsx("div", { className: l("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: wn({ entity: t, classes: e, accordionsConfig: o }) }), it = ({ headline: t, tabs: e, classes: o, accordionsConfig: n }) => {
|
|
1908
1908
|
var u, m;
|
|
1909
|
-
const [i,
|
|
1910
|
-
return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ r.jsx("section", { id: y.usefulInfo, "data-test-id": y.usefulInfo, className:
|
|
1911
|
-
/* @__PURE__ */ r.jsx(L, { className:
|
|
1912
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1913
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1909
|
+
const [i, a] = A(0), d = se(() => e == null ? void 0 : e.map((x) => x == null ? void 0 : x.tabName), [e]) ?? [];
|
|
1910
|
+
return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ r.jsx("section", { id: y.usefulInfo, "data-test-id": y.usefulInfo, className: l(o == null ? void 0 : o.root), children: /* @__PURE__ */ r.jsxs(F, { className: l(o == null ? void 0 : o.container), children: [
|
|
1911
|
+
/* @__PURE__ */ r.jsx(L, { className: l(o == null ? void 0 : o.headline), as: "h2", children: t }),
|
|
1912
|
+
/* @__PURE__ */ r.jsx("div", { className: l("mt-6 flex flex-col gap-2 desktop:mt-12", o == null ? void 0 : o.tabsWrapper), children: /* @__PURE__ */ r.jsx(rn, { tabsNames: d, activeTab: i, setActiveTab: a, classes: o == null ? void 0 : o.tabs }) }),
|
|
1913
|
+
/* @__PURE__ */ r.jsx("div", { className: l("mt-6 flex flex-col gap-6", o == null ? void 0 : o.contentWrapper), children: (m = (u = e == null ? void 0 : e[i]) == null ? void 0 : u.contents) == null ? void 0 : m.map((x, p) => /* @__PURE__ */ r.jsx(vn, { accordionsConfig: n, ...x, classes: o == null ? void 0 : o.entityClasses }, p)) })
|
|
1914
1914
|
] }) });
|
|
1915
1915
|
}, Nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1916
1916
|
__proto__: null,
|
|
@@ -1933,7 +1933,7 @@ class Cn {
|
|
|
1933
1933
|
* @param as Тип возвращаемых данных ('string' или 'node')
|
|
1934
1934
|
*/
|
|
1935
1935
|
traverse(e, o = "string", n) {
|
|
1936
|
-
const { includeSolidText: i, recursive:
|
|
1936
|
+
const { includeSolidText: i, recursive: a, element: d } = this.options || {};
|
|
1937
1937
|
switch (e.nodeType) {
|
|
1938
1938
|
// если узел - элемент
|
|
1939
1939
|
case this.ELEMENT_NODE:
|
|
@@ -1947,12 +1947,12 @@ class Cn {
|
|
|
1947
1947
|
if (o === "node")
|
|
1948
1948
|
n.push(e);
|
|
1949
1949
|
else {
|
|
1950
|
-
const
|
|
1951
|
-
n.push(
|
|
1950
|
+
const x = u.outerHTML.trim();
|
|
1951
|
+
n.push(x);
|
|
1952
1952
|
}
|
|
1953
|
-
if (
|
|
1954
|
-
for (const
|
|
1955
|
-
this.traverse(
|
|
1953
|
+
if (a)
|
|
1954
|
+
for (const x of e.childNodes)
|
|
1955
|
+
this.traverse(x, o, n);
|
|
1956
1956
|
break;
|
|
1957
1957
|
// если узел - текстовый и требуется его добавить, добавляем
|
|
1958
1958
|
case this.TEXT_NODE:
|
|
@@ -1961,8 +1961,8 @@ class Cn {
|
|
|
1961
1961
|
if (o === "node")
|
|
1962
1962
|
n.push(e);
|
|
1963
1963
|
else {
|
|
1964
|
-
const
|
|
1965
|
-
|
|
1964
|
+
const x = e.textContent;
|
|
1965
|
+
x && n.push(x);
|
|
1966
1966
|
}
|
|
1967
1967
|
break;
|
|
1968
1968
|
}
|
|
@@ -1974,13 +1974,13 @@ class Cn {
|
|
|
1974
1974
|
* @returns Массив тегов или нод
|
|
1975
1975
|
*/
|
|
1976
1976
|
async parse(e, o = "string") {
|
|
1977
|
-
const { includeBody: n } = this.options || {}, i = [],
|
|
1977
|
+
const { includeBody: n } = this.options || {}, i = [], a = [], d = await this.parseFromString(e), u = o === "string" ? i : a;
|
|
1978
1978
|
if (n)
|
|
1979
1979
|
this.traverse(d.body, o, u);
|
|
1980
1980
|
else
|
|
1981
1981
|
for (const m of d.body.childNodes)
|
|
1982
1982
|
this.traverse(m, o, u);
|
|
1983
|
-
return { stringNodes: i, nodes:
|
|
1983
|
+
return { stringNodes: i, nodes: a };
|
|
1984
1984
|
}
|
|
1985
1985
|
/**
|
|
1986
1986
|
* Считает количество указанных тегов в HTML строке.
|
|
@@ -2016,20 +2016,20 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2016
2016
|
return n(o);
|
|
2017
2017
|
}, Tn = (t, e) => Ct(st.base, t, e), Sn = (t, e) => Ct(st.dadata, t, e), De = (t) => {
|
|
2018
2018
|
const o = ((t == null ? void 0 : t.map((n) => ({ name: n.args.name, validation: n.args.validation }))) ?? []).reduce((n, i) => {
|
|
2019
|
-
const
|
|
2019
|
+
const a = _n.includes(i.validation.type) ? Sn(
|
|
2020
2020
|
i.validation.type,
|
|
2021
2021
|
i.validation.args
|
|
2022
2022
|
) : Tn(
|
|
2023
2023
|
i.validation.type,
|
|
2024
2024
|
i.validation.args
|
|
2025
2025
|
);
|
|
2026
|
-
return n[i.name] =
|
|
2026
|
+
return n[i.name] = a, n;
|
|
2027
2027
|
}, {});
|
|
2028
2028
|
return kt(o);
|
|
2029
2029
|
}, On = new ur(), Mt = ({ children: t }) => /* @__PURE__ */ r.jsx(qt, { client: On, children: t }), Fn = (t, e, o, n) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ r.jsx(ie, { html: t.message, as: "div", className: n == null ? void 0 : n.content }) : /* @__PURE__ */ r.jsxs(
|
|
2030
2030
|
"label",
|
|
2031
2031
|
{
|
|
2032
|
-
className:
|
|
2032
|
+
className: l(
|
|
2033
2033
|
"mob-body-regular-s text-color-dark",
|
|
2034
2034
|
"desktop:desk-body-regular-m desktop:gap-x-4",
|
|
2035
2035
|
"flex items-center justify-items-start gap-x-3"
|
|
@@ -2039,28 +2039,28 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2039
2039
|
/* @__PURE__ */ r.jsx(ie, { html: t.content, as: "div", className: n == null ? void 0 : n.content })
|
|
2040
2040
|
]
|
|
2041
2041
|
}
|
|
2042
|
-
),
|
|
2042
|
+
), at = ({
|
|
2043
2043
|
fields: t,
|
|
2044
2044
|
title: e,
|
|
2045
2045
|
progress: o,
|
|
2046
2046
|
approvement: n,
|
|
2047
2047
|
chips: i,
|
|
2048
|
-
submitProps:
|
|
2048
|
+
submitProps: a,
|
|
2049
2049
|
classes: d,
|
|
2050
2050
|
buttonGroup: u
|
|
2051
2051
|
}) => {
|
|
2052
2052
|
var q, C;
|
|
2053
|
-
const { submitCallback: m } =
|
|
2053
|
+
const { submitCallback: m } = a || {}, [x, p] = A(!1), c = De(t), g = Be.getZodDefaults(c), { control: f, handleSubmit: w } = Ee({
|
|
2054
2054
|
schema: c,
|
|
2055
2055
|
defaultValues: g,
|
|
2056
2056
|
mode: "onBlur"
|
|
2057
2057
|
}), j = In(o, t), v = rr({ control: f, fields: j || [], schema: c }), _ = (I) => {
|
|
2058
|
-
m && m({ ...I, agree:
|
|
2058
|
+
m && m({ ...I, agree: x });
|
|
2059
2059
|
};
|
|
2060
|
-
return /* @__PURE__ */ r.jsx(Mt, { children: /* @__PURE__ */ r.jsx("section", { id: y.form, "data-test-id": y.form, className:
|
|
2060
|
+
return /* @__PURE__ */ r.jsx(Mt, { children: /* @__PURE__ */ r.jsx("section", { id: y.form, "data-test-id": y.form, className: l("w-full", d == null ? void 0 : d.root), children: /* @__PURE__ */ r.jsxs(
|
|
2061
2061
|
F,
|
|
2062
2062
|
{
|
|
2063
|
-
className:
|
|
2063
|
+
className: l(
|
|
2064
2064
|
"!max-w-[636px] border-warm-grey-200 px-4 desktop:gap-8 desktop:p-14",
|
|
2065
2065
|
"relative mx-auto flex flex-col gap-6 rounded-sm py-8 desktop:border"
|
|
2066
2066
|
),
|
|
@@ -2068,14 +2068,14 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2068
2068
|
i.enabled && /* @__PURE__ */ r.jsxs(
|
|
2069
2069
|
"div",
|
|
2070
2070
|
{
|
|
2071
|
-
className:
|
|
2071
|
+
className: l(
|
|
2072
2072
|
"desk-body-regular-l flex items-center gap-x-2 rounded-sm desktop:absolute",
|
|
2073
2073
|
"bg-color-blue-grey-100 px-2 py-1 text-color-tetriary",
|
|
2074
2074
|
"right-4 top-4 w-max",
|
|
2075
2075
|
(q = d == null ? void 0 : d.chips) == null ? void 0 : q.root
|
|
2076
2076
|
),
|
|
2077
2077
|
children: [
|
|
2078
|
-
i.image && /* @__PURE__ */ r.jsx(b, { name: i.image, className:
|
|
2078
|
+
i.image && /* @__PURE__ */ r.jsx(b, { name: i.image, className: l("size-4", (C = d == null ? void 0 : d.chips) == null ? void 0 : C.icon) }),
|
|
2079
2079
|
i.content
|
|
2080
2080
|
]
|
|
2081
2081
|
}
|
|
@@ -2085,7 +2085,7 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2085
2085
|
"form",
|
|
2086
2086
|
{
|
|
2087
2087
|
onSubmit: w(_),
|
|
2088
|
-
className:
|
|
2088
|
+
className: l("flex w-full flex-col gap-y-6", "desktop:gap-y-8", d == null ? void 0 : d.form),
|
|
2089
2089
|
children: [
|
|
2090
2090
|
o.enabled && /* @__PURE__ */ r.jsx(
|
|
2091
2091
|
Wt,
|
|
@@ -2099,16 +2099,16 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2099
2099
|
),
|
|
2100
2100
|
/* @__PURE__ */ r.jsx(Pe, { control: f, fields: t }),
|
|
2101
2101
|
/* @__PURE__ */ r.jsxs("div", { className: "mob-body-regular-m flex flex-col items-start justify-center gap-4", children: [
|
|
2102
|
-
Fn(n,
|
|
2102
|
+
Fn(n, x, p, d == null ? void 0 : d.approvement),
|
|
2103
2103
|
/* @__PURE__ */ r.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-4 desktop:flex-row", children: u == null ? void 0 : u.map((I, D) => {
|
|
2104
|
-
const Q = I.type === "submit" && n.type === "checkbox" ? !
|
|
2104
|
+
const Q = I.type === "submit" && n.type === "checkbox" ? !x : !1;
|
|
2105
2105
|
return /* @__PURE__ */ yt(
|
|
2106
2106
|
ge,
|
|
2107
2107
|
{
|
|
2108
2108
|
...I,
|
|
2109
2109
|
key: D,
|
|
2110
2110
|
disabled: Q,
|
|
2111
|
-
className:
|
|
2111
|
+
className: l(
|
|
2112
2112
|
"w-full whitespace-nowrap",
|
|
2113
2113
|
{
|
|
2114
2114
|
"w-full": !!n
|
|
@@ -2127,12 +2127,12 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2127
2127
|
) }) });
|
|
2128
2128
|
}, En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2129
2129
|
__proto__: null,
|
|
2130
|
-
DynamicForm:
|
|
2131
|
-
default:
|
|
2130
|
+
DynamicForm: at,
|
|
2131
|
+
default: at
|
|
2132
2132
|
}, Symbol.toStringTag, { value: "Module" })), Bn = (t, e, o, n) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ r.jsx(ie, { html: t.message, as: "div", className: n == null ? void 0 : n.content }) : /* @__PURE__ */ r.jsxs(
|
|
2133
2133
|
"label",
|
|
2134
2134
|
{
|
|
2135
|
-
className:
|
|
2135
|
+
className: l(
|
|
2136
2136
|
"mob-body-regular-s text-color-dark",
|
|
2137
2137
|
"desktop:desk-body-regular-m desktop:gap-x-4",
|
|
2138
2138
|
"flex items-center justify-items-start gap-x-3"
|
|
@@ -2142,16 +2142,16 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2142
2142
|
/* @__PURE__ */ r.jsx(ie, { html: t.content, as: "div", className: n == null ? void 0 : n.content })
|
|
2143
2143
|
]
|
|
2144
2144
|
}
|
|
2145
|
-
),
|
|
2145
|
+
), lt = ({
|
|
2146
2146
|
fields: t,
|
|
2147
2147
|
title: e,
|
|
2148
2148
|
approvement: o,
|
|
2149
2149
|
submitProps: n,
|
|
2150
2150
|
dialogId: i,
|
|
2151
|
-
classes:
|
|
2151
|
+
classes: a,
|
|
2152
2152
|
...d
|
|
2153
2153
|
}) => {
|
|
2154
|
-
const { submitCallback: u, children: m, ...
|
|
2154
|
+
const { submitCallback: u, children: m, ...x } = n ?? {}, [p, c] = A(!1), g = De(t), f = Be.getZodDefaults(g), { control: w, handleSubmit: j } = Ee({
|
|
2155
2155
|
schema: g,
|
|
2156
2156
|
defaultValues: f,
|
|
2157
2157
|
mode: "onBlur"
|
|
@@ -2160,13 +2160,13 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2160
2160
|
};
|
|
2161
2161
|
return /* @__PURE__ */ r.jsx(Mt, { children: /* @__PURE__ */ r.jsx(Ut, { id: i, title: e, ...d, children: /* @__PURE__ */ r.jsxs("form", { onSubmit: j(v), className: "flex flex-col gap-6", children: [
|
|
2162
2162
|
/* @__PURE__ */ r.jsx(Pe, { control: w, fields: t }),
|
|
2163
|
-
Bn(o, p, c,
|
|
2164
|
-
/* @__PURE__ */ r.jsx(ge, { ...
|
|
2163
|
+
Bn(o, p, c, a == null ? void 0 : a.approvement),
|
|
2164
|
+
/* @__PURE__ */ r.jsx(ge, { ...x, type: "submit", disabled: o.type === "checkbox" ? !p : !1, className: "w-full", children: m ?? "Отправить форму" })
|
|
2165
2165
|
] }) }) });
|
|
2166
2166
|
}, Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2167
2167
|
__proto__: null,
|
|
2168
|
-
DynamicFormDialog:
|
|
2169
|
-
default:
|
|
2168
|
+
DynamicFormDialog: lt,
|
|
2169
|
+
default: lt
|
|
2170
2170
|
}, Symbol.toStringTag, { value: "Module" })), de = () => ({
|
|
2171
2171
|
approve: {
|
|
2172
2172
|
icon: {
|
|
@@ -2232,7 +2232,7 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2232
2232
|
/* @__PURE__ */ r.jsx(
|
|
2233
2233
|
"span",
|
|
2234
2234
|
{
|
|
2235
|
-
className:
|
|
2235
|
+
className: l(
|
|
2236
2236
|
"flex size-16 items-center justify-center rounded-full bg-color-positive-light",
|
|
2237
2237
|
`${de()[t].icon.bg}`
|
|
2238
2238
|
),
|
|
@@ -2244,7 +2244,7 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2244
2244
|
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: de()[t].description })
|
|
2245
2245
|
] }),
|
|
2246
2246
|
/* @__PURE__ */ r.jsx(ge, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: e, children: de()[t].button.text })
|
|
2247
|
-
] }) }) }), It = ({ breadcrumb: t, className: e, ...o }) => /* @__PURE__ */ r.jsx("a", { href: t.path, className:
|
|
2247
|
+
] }) }) }), It = ({ breadcrumb: t, className: e, ...o }) => /* @__PURE__ */ r.jsx("a", { href: t.path, className: l("desk-body-regular-m", e), ...o, children: t.label }), Dn = [
|
|
2248
2248
|
{
|
|
2249
2249
|
label: "Главная",
|
|
2250
2250
|
path: "https://sovcombank.ru/apply/credit/kredit-na-kartu/"
|
|
@@ -2257,32 +2257,32 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2257
2257
|
label: "В Тольятти",
|
|
2258
2258
|
disabled: !0
|
|
2259
2259
|
}
|
|
2260
|
-
], be = (t, e, o, n) => t.map((i,
|
|
2261
|
-
const d =
|
|
2260
|
+
], be = (t, e, o, n) => t.map((i, a) => {
|
|
2261
|
+
const d = a === n;
|
|
2262
2262
|
return /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
2263
2263
|
/* @__PURE__ */ r.jsx(
|
|
2264
2264
|
It,
|
|
2265
2265
|
{
|
|
2266
2266
|
breadcrumb: i,
|
|
2267
|
-
className:
|
|
2267
|
+
className: l(o, {
|
|
2268
2268
|
"pointer-events-none text-color-primary-disabled": d,
|
|
2269
2269
|
"text-color-blue-grey-600": i.disabled
|
|
2270
2270
|
})
|
|
2271
2271
|
}
|
|
2272
2272
|
),
|
|
2273
|
-
|
|
2273
|
+
a !== t.length - 1 && e
|
|
2274
2274
|
] }, i.label);
|
|
2275
2275
|
}), Rn = ({ separator: t, ellipsis: e, classes: o, breadcrumbs: n = Dn }) => {
|
|
2276
|
-
const [i,
|
|
2277
|
-
er(d, () =>
|
|
2278
|
-
const { first: u, middle: m, last:
|
|
2276
|
+
const [i, a] = A(!1), d = Oe(null);
|
|
2277
|
+
er(d, () => a(!1));
|
|
2278
|
+
const { first: u, middle: m, last: x } = se(() => {
|
|
2279
2279
|
let c = [], g = [], f = [];
|
|
2280
2280
|
return e && (c = n.slice(0, e), g = n.slice(e, n.length - e), f = n.slice(n.length - e)), { first: c, middle: g, last: f };
|
|
2281
|
-
}, [n, e]), p = t ?? /* @__PURE__ */ r.jsx(b, { name: "arrows/arrowRight", className:
|
|
2281
|
+
}, [n, e]), p = t ?? /* @__PURE__ */ r.jsx(b, { name: "arrows/arrowRight", className: l("size-4", o == null ? void 0 : o.separator) });
|
|
2282
2282
|
return /* @__PURE__ */ r.jsx(
|
|
2283
2283
|
"div",
|
|
2284
2284
|
{
|
|
2285
|
-
className:
|
|
2285
|
+
className: l(
|
|
2286
2286
|
"flex max-w-[840px] flex-wrap items-center",
|
|
2287
2287
|
"gap-x-2 gap-y-1 py-4 text-color-primary-default",
|
|
2288
2288
|
o == null ? void 0 : o.root
|
|
@@ -2297,12 +2297,12 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2297
2297
|
p,
|
|
2298
2298
|
m.length > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2299
2299
|
/* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
|
|
2300
|
-
/* @__PURE__ */ r.jsx("button", { onClick: () =>
|
|
2300
|
+
/* @__PURE__ */ r.jsx("button", { onClick: () => a(!0), children: "..." }),
|
|
2301
2301
|
/* @__PURE__ */ r.jsx(
|
|
2302
2302
|
"ul",
|
|
2303
2303
|
{
|
|
2304
2304
|
ref: d,
|
|
2305
|
-
className:
|
|
2305
|
+
className: l(
|
|
2306
2306
|
"invisible absolute max-h-[264px] overflow-y-auto",
|
|
2307
2307
|
"w-[280px] rounded-sm bg-color-white",
|
|
2308
2308
|
"customScrollbar-y p-1 opacity-0 shadow-sm",
|
|
@@ -2314,7 +2314,7 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2314
2314
|
It,
|
|
2315
2315
|
{
|
|
2316
2316
|
breadcrumb: c,
|
|
2317
|
-
className:
|
|
2317
|
+
className: l(
|
|
2318
2318
|
"desk-body-regular-l inline-block py-3",
|
|
2319
2319
|
"w-full rounded-sm bg-color-white px-2",
|
|
2320
2320
|
"text-color-dark hover:bg-color-primary-tr-hover",
|
|
@@ -2327,7 +2327,7 @@ const ie = ({ html: t, as: e, ...o }) => {
|
|
|
2327
2327
|
] }),
|
|
2328
2328
|
p
|
|
2329
2329
|
] }),
|
|
2330
|
-
be(
|
|
2330
|
+
be(x, p, o == null ? void 0 : o.breadcrumb, x.length - 1)
|
|
2331
2331
|
] })
|
|
2332
2332
|
) : (
|
|
2333
2333
|
// otherwise render all breadcrumbs
|
|
@@ -2376,13 +2376,13 @@ const Hn = (t, e) => {
|
|
|
2376
2376
|
initial: { opacity: 0 },
|
|
2377
2377
|
animate: { opacity: 1 },
|
|
2378
2378
|
transition: { duration: 0.2 },
|
|
2379
|
-
className:
|
|
2379
|
+
className: 'absolute w-full bg-color-white after:absolute after:left-1/2 after:top-0 after:h-[1px] after:w-full after:max-w-[636px] after:-translate-x-1/2 after:bg-color-blue-grey-200 after:content-[""] after:desktop:max-w-[1140px]',
|
|
2380
2380
|
children: /* @__PURE__ */ r.jsx("div", { className: "mx-auto flex w-full max-w-[1140px] gap-x-[56px] py-10", children: t.map((i) => {
|
|
2381
2381
|
var d;
|
|
2382
|
-
const
|
|
2382
|
+
const a = i.link ? "a" : "p";
|
|
2383
2383
|
return /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-y-6", children: [
|
|
2384
2384
|
i.title && /* @__PURE__ */ r.jsxs(
|
|
2385
|
-
|
|
2385
|
+
a,
|
|
2386
2386
|
{
|
|
2387
2387
|
href: ((d = i.link) == null ? void 0 : d.href) ?? void 0,
|
|
2388
2388
|
className: "flex items-center gap-x-1 text-16 uppercase text-color-primary-default",
|
|
@@ -2406,13 +2406,13 @@ const Hn = (t, e) => {
|
|
|
2406
2406
|
((n = (o = document.body.querySelector("#modal-preview")) == null ? void 0 : o.contentDocument) == null ? void 0 : n.body) ?? document.body
|
|
2407
2407
|
);
|
|
2408
2408
|
}, $n = Yt(({ category: t, active: e, onActiveTabChange: o }, n) => {
|
|
2409
|
-
var m,
|
|
2410
|
-
const i = n && "current" in n ? n : null,
|
|
2409
|
+
var m, x;
|
|
2410
|
+
const i = n && "current" in n ? n : null, a = (m = i == null ? void 0 : i.current) == null ? void 0 : m.getBoundingClientRect(), d = e && !S.isArrayEmpty(t.children), u = S.isArrayEmpty(t.children) ? "a" : "span";
|
|
2411
2411
|
return /* @__PURE__ */ r.jsxs(
|
|
2412
2412
|
Se.div,
|
|
2413
2413
|
{
|
|
2414
2414
|
ref: n,
|
|
2415
|
-
className:
|
|
2415
|
+
className: l(
|
|
2416
2416
|
"relative flex cursor-default items-center justify-center py-4 text-color-dark",
|
|
2417
2417
|
'after:content="" after:absolute after:bottom-0 after:left-1/2 after:h-[1px]',
|
|
2418
2418
|
"after:w-0 after:-translate-x-1/2 after:bg-color-primary-default after:duration-100",
|
|
@@ -2425,13 +2425,13 @@ const Hn = (t, e) => {
|
|
|
2425
2425
|
onMouseLeave: () => o(null),
|
|
2426
2426
|
onFocus: () => o(t.title),
|
|
2427
2427
|
children: [
|
|
2428
|
-
/* @__PURE__ */ r.jsx(u, { href: u === "a" ? (
|
|
2428
|
+
/* @__PURE__ */ r.jsx(u, { href: u === "a" ? (x = t.link) == null ? void 0 : x.href : void 0, className: "desk-body-regular-m outline-none", children: t.title }),
|
|
2429
2429
|
d && /* @__PURE__ */ r.jsx(
|
|
2430
2430
|
Vn,
|
|
2431
2431
|
{
|
|
2432
2432
|
categories: t.children,
|
|
2433
2433
|
style: {
|
|
2434
|
-
top:
|
|
2434
|
+
top: a ? a.top + a.height : 0
|
|
2435
2435
|
}
|
|
2436
2436
|
}
|
|
2437
2437
|
)
|
|
@@ -2439,8 +2439,8 @@ const Hn = (t, e) => {
|
|
|
2439
2439
|
}
|
|
2440
2440
|
);
|
|
2441
2441
|
}), An = Fe($n), qn = ({ categories: t }) => {
|
|
2442
|
-
const [e, o] = A(null), n = jt((
|
|
2443
|
-
o(
|
|
2442
|
+
const [e, o] = A(null), n = jt((a) => {
|
|
2443
|
+
o(a);
|
|
2444
2444
|
}, []), i = Oe(null);
|
|
2445
2445
|
return /* @__PURE__ */ r.jsx(Kt, { mode: "sync", children: /* @__PURE__ */ r.jsxs(
|
|
2446
2446
|
"div",
|
|
@@ -2449,15 +2449,15 @@ const Hn = (t, e) => {
|
|
|
2449
2449
|
id: "tabs",
|
|
2450
2450
|
className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]",
|
|
2451
2451
|
children: [
|
|
2452
|
-
t.map((
|
|
2452
|
+
t.map((a) => /* @__PURE__ */ r.jsx(
|
|
2453
2453
|
An,
|
|
2454
2454
|
{
|
|
2455
2455
|
ref: i,
|
|
2456
|
-
category:
|
|
2457
|
-
active: e ===
|
|
2456
|
+
category: a,
|
|
2457
|
+
active: e === a.title,
|
|
2458
2458
|
onActiveTabChange: n
|
|
2459
2459
|
},
|
|
2460
|
-
|
|
2460
|
+
a.title
|
|
2461
2461
|
)),
|
|
2462
2462
|
/* @__PURE__ */ r.jsx("div", { className: "ml-auto", children: "Личный кабинет" })
|
|
2463
2463
|
]
|
|
@@ -2469,15 +2469,15 @@ const Hn = (t, e) => {
|
|
|
2469
2469
|
onCurrentCategoryChange: o,
|
|
2470
2470
|
onRootCategoryChange: n,
|
|
2471
2471
|
active: i,
|
|
2472
|
-
...
|
|
2472
|
+
...a
|
|
2473
2473
|
}) => /* @__PURE__ */ r.jsxs(
|
|
2474
2474
|
"div",
|
|
2475
2475
|
{
|
|
2476
|
-
...
|
|
2476
|
+
...a,
|
|
2477
2477
|
onClick: () => {
|
|
2478
2478
|
o(t.children[0]), n(t);
|
|
2479
2479
|
},
|
|
2480
|
-
className:
|
|
2480
|
+
className: l("group/category relative cursor-default text-color-blue-grey-600 duration-100 hover:text-color-dark", {
|
|
2481
2481
|
"text-color-dark": i
|
|
2482
2482
|
}),
|
|
2483
2483
|
children: [
|
|
@@ -2485,7 +2485,7 @@ const Hn = (t, e) => {
|
|
|
2485
2485
|
t.children.length > 1 && /* @__PURE__ */ r.jsx(
|
|
2486
2486
|
"div",
|
|
2487
2487
|
{
|
|
2488
|
-
className:
|
|
2488
|
+
className: l(
|
|
2489
2489
|
"absolute right-0 top-full z-10 flex w-max flex-col",
|
|
2490
2490
|
"invisible bg-color-white opacity-0 shadow-sm group-hover/category:visible group-hover/category:opacity-100",
|
|
2491
2491
|
"rounded-sm p-1"
|
|
@@ -2496,7 +2496,7 @@ const Hn = (t, e) => {
|
|
|
2496
2496
|
onClick: (u) => {
|
|
2497
2497
|
u.stopPropagation(), u.nativeEvent.stopPropagation(), n(t), o(d);
|
|
2498
2498
|
},
|
|
2499
|
-
className:
|
|
2499
|
+
className: l(
|
|
2500
2500
|
"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",
|
|
2501
2501
|
{
|
|
2502
2502
|
"text-color-primary-default": e.title === d.title
|
|
@@ -2515,32 +2515,32 @@ const Hn = (t, e) => {
|
|
|
2515
2515
|
return /* @__PURE__ */ r.jsxs("div", { className: "mobile:hidden", children: [
|
|
2516
2516
|
/* @__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: [
|
|
2517
2517
|
/* @__PURE__ */ r.jsx(b, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
|
|
2518
|
-
t.map((
|
|
2519
|
-
const d = n.root.title ===
|
|
2518
|
+
t.map((a) => {
|
|
2519
|
+
const d = n.root.title === a.title;
|
|
2520
2520
|
return /* @__PURE__ */ r.jsx(
|
|
2521
2521
|
Un,
|
|
2522
2522
|
{
|
|
2523
|
-
category:
|
|
2523
|
+
category: a,
|
|
2524
2524
|
selectedCategory: n.current,
|
|
2525
2525
|
onCurrentCategoryChange: (u) => i(Ln(u)),
|
|
2526
2526
|
onRootCategoryChange: (u) => i(Qn(u)),
|
|
2527
2527
|
active: d
|
|
2528
2528
|
},
|
|
2529
|
-
|
|
2529
|
+
a.title
|
|
2530
2530
|
);
|
|
2531
2531
|
}),
|
|
2532
2532
|
/* @__PURE__ */ r.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
|
|
2533
|
-
e.map((
|
|
2533
|
+
e.map((a) => /* @__PURE__ */ r.jsxs(
|
|
2534
2534
|
"a",
|
|
2535
2535
|
{
|
|
2536
|
-
href:
|
|
2536
|
+
href: a.link.href,
|
|
2537
2537
|
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2538
2538
|
children: [
|
|
2539
|
-
|
|
2540
|
-
|
|
2539
|
+
a.link.icon && /* @__PURE__ */ r.jsx(b, { name: a.link.icon, className: "size-4" }),
|
|
2540
|
+
a.title
|
|
2541
2541
|
]
|
|
2542
2542
|
},
|
|
2543
|
-
|
|
2543
|
+
a.title
|
|
2544
2544
|
)),
|
|
2545
2545
|
/* @__PURE__ */ r.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
|
|
2546
2546
|
/* @__PURE__ */ r.jsx(
|
|
@@ -2555,7 +2555,7 @@ const Hn = (t, e) => {
|
|
|
2555
2555
|
/* @__PURE__ */ r.jsx(Wn, { categories: n.current.children })
|
|
2556
2556
|
] });
|
|
2557
2557
|
}, Zn = ({ category: t }) => /* @__PURE__ */ r.jsx(
|
|
2558
|
-
|
|
2558
|
+
ae,
|
|
2559
2559
|
{
|
|
2560
2560
|
label: t.title ?? "",
|
|
2561
2561
|
icon: /* @__PURE__ */ r.jsx(b, { name: "arrows/arrowRight", className: "-rotate-90" }),
|
|
@@ -2565,7 +2565,7 @@ const Hn = (t, e) => {
|
|
|
2565
2565
|
trigger: "py-2 data-[open=false]:bg-color-white",
|
|
2566
2566
|
label: "desk-body-regular-m"
|
|
2567
2567
|
},
|
|
2568
|
-
content:
|
|
2568
|
+
content: l(
|
|
2569
2569
|
"relative",
|
|
2570
2570
|
'after:content-"" after:absolute after:w-[calc(100%-32px)]',
|
|
2571
2571
|
"after:bottom-0 after:left-1/2 after:-translate-x-1/2",
|
|
@@ -2587,9 +2587,9 @@ const Hn = (t, e) => {
|
|
|
2587
2587
|
]
|
|
2588
2588
|
}
|
|
2589
2589
|
),
|
|
2590
|
-
e.children.map((
|
|
2590
|
+
e.children.map((a) => {
|
|
2591
2591
|
var d;
|
|
2592
|
-
return /* @__PURE__ */ r.jsx("li", { className: "inline-block w-full [&:not(:last-child)]:mb-3", children: /* @__PURE__ */ r.jsx("a", { href: (d =
|
|
2592
|
+
return /* @__PURE__ */ r.jsx("li", { className: "inline-block w-full [&:not(:last-child)]:mb-3", children: /* @__PURE__ */ r.jsx("a", { href: (d = a.link) == null ? void 0 : d.href, className: "w-full", children: a.title }) }, a.title);
|
|
2593
2593
|
})
|
|
2594
2594
|
] }, e.title);
|
|
2595
2595
|
}) })
|
|
@@ -2599,17 +2599,17 @@ const Hn = (t, e) => {
|
|
|
2599
2599
|
value: e.title ?? "",
|
|
2600
2600
|
label: e.title ?? ""
|
|
2601
2601
|
})), Yn = ({ categories: t, helpers: e, phone: o, ...n }) => {
|
|
2602
|
-
const i = Xn(t), [
|
|
2603
|
-
S.isUndefined(
|
|
2602
|
+
const i = Xn(t), [a, d] = A(i[0]), u = (x) => {
|
|
2603
|
+
S.isUndefined(x) || S.isArray(x) || d(x);
|
|
2604
2604
|
}, m = se(() => {
|
|
2605
|
-
var
|
|
2606
|
-
return S.isUndefined(
|
|
2607
|
-
}, [
|
|
2605
|
+
var x;
|
|
2606
|
+
return S.isUndefined(a) || S.isArray(a) ? [] : ((x = t.find((p) => p.title === a.value)) == null ? void 0 : x.children) ?? [];
|
|
2607
|
+
}, [a, t]);
|
|
2608
2608
|
return /* @__PURE__ */ r.jsxs(
|
|
2609
2609
|
Se.div,
|
|
2610
2610
|
{
|
|
2611
2611
|
...n,
|
|
2612
|
-
className:
|
|
2612
|
+
className: l(
|
|
2613
2613
|
"absolute w-full max-w-[calc(636px-32px)]",
|
|
2614
2614
|
"absolute left-1/2 top-full bg-color-white p-4",
|
|
2615
2615
|
"-translate-x-1/2 overflow-x-hidden",
|
|
@@ -2618,19 +2618,19 @@ const Hn = (t, e) => {
|
|
|
2618
2618
|
initial: { opacity: 0 },
|
|
2619
2619
|
animate: { opacity: 1 },
|
|
2620
2620
|
children: [
|
|
2621
|
-
/* @__PURE__ */ r.jsx(ye.SelectBase, { label: "Категория", options: i, value:
|
|
2622
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: m.map((
|
|
2621
|
+
/* @__PURE__ */ r.jsx(ye.SelectBase, { label: "Категория", options: i, value: a, onChange: u }),
|
|
2622
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: m.map((x) => {
|
|
2623
2623
|
var p;
|
|
2624
|
-
return S.isArrayEmpty(
|
|
2624
|
+
return S.isArrayEmpty(x.children) ? /* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsx("a", { href: (p = x.link) == null ? void 0 : p.href, className: "desk-body-regular-m inline-block w-full", children: x.title }) }, x.title) : /* @__PURE__ */ r.jsx(Zn, { category: x }, x.title);
|
|
2625
2625
|
}) }),
|
|
2626
2626
|
/* @__PURE__ */ r.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
|
|
2627
2627
|
/* @__PURE__ */ r.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
|
|
2628
|
-
e.map((
|
|
2628
|
+
e.map((x) => {
|
|
2629
2629
|
var p, c;
|
|
2630
|
-
return /* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsxs("a", { href: (p =
|
|
2631
|
-
((c =
|
|
2632
|
-
|
|
2633
|
-
] }) },
|
|
2630
|
+
return /* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsxs("a", { href: (p = x.link) == null ? void 0 : p.href, className: "flex w-full items-center gap-x-1", children: [
|
|
2631
|
+
((c = x.link) == null ? void 0 : c.icon) && /* @__PURE__ */ r.jsx(b, { name: x.link.icon, className: "size-4" }),
|
|
2632
|
+
x.title
|
|
2633
|
+
] }) }, x.title);
|
|
2634
2634
|
}),
|
|
2635
2635
|
/* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsxs("a", { href: `tel:${o}`, className: "flex w-full items-center gap-x-1", children: [
|
|
2636
2636
|
/* @__PURE__ */ r.jsx(b, { name: "communication/phone", className: "size-4" }),
|
|
@@ -2641,8 +2641,8 @@ const Hn = (t, e) => {
|
|
|
2641
2641
|
}
|
|
2642
2642
|
);
|
|
2643
2643
|
}, Jn = ({ categories: t, helpers: e, phone: o }) => {
|
|
2644
|
-
var m,
|
|
2645
|
-
const n = Oe(null), i = (m = n.current) == null ? void 0 : m.getBoundingClientRect(), [
|
|
2644
|
+
var m, x, p;
|
|
2645
|
+
const n = Oe(null), i = (m = n.current) == null ? void 0 : m.getBoundingClientRect(), [a, d] = A(!1), u = () => d(!a);
|
|
2646
2646
|
return /* @__PURE__ */ r.jsxs(
|
|
2647
2647
|
"div",
|
|
2648
2648
|
{
|
|
@@ -2650,8 +2650,8 @@ const Hn = (t, e) => {
|
|
|
2650
2650
|
className: "relative flex w-full items-center justify-between border-b border-b-blue-grey-500 py-4 desktop:hidden",
|
|
2651
2651
|
children: [
|
|
2652
2652
|
/* @__PURE__ */ r.jsx(b, { name: "brandLogos/logoMain", className: "w-[130px]" }),
|
|
2653
|
-
/* @__PURE__ */ r.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ r.jsx(b, { name:
|
|
2654
|
-
|
|
2653
|
+
/* @__PURE__ */ r.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ r.jsx(b, { name: a ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
|
|
2654
|
+
a && wt(
|
|
2655
2655
|
/* @__PURE__ */ r.jsx(
|
|
2656
2656
|
Yn,
|
|
2657
2657
|
{
|
|
@@ -2664,7 +2664,7 @@ const Hn = (t, e) => {
|
|
|
2664
2664
|
/**
|
|
2665
2665
|
* Нужно для preview, чтобы категории рендерились в iframe
|
|
2666
2666
|
*/
|
|
2667
|
-
((p = (
|
|
2667
|
+
((p = (x = document.body.querySelector("#modal-preview")) == null ? void 0 : x.contentDocument) == null ? void 0 : p.body) ?? document.body
|
|
2668
2668
|
)
|
|
2669
2669
|
]
|
|
2670
2670
|
}
|
|
@@ -2672,14 +2672,14 @@ const Hn = (t, e) => {
|
|
|
2672
2672
|
}, dt = ({ categories: t, helpers: e, phone: o, breadcrumbs: n }) => {
|
|
2673
2673
|
const { isMobile: i } = ee();
|
|
2674
2674
|
return /* @__PURE__ */ r.jsx("div", { id: y.seoHeader, "data-test-id": y.seoHeader, className: "w-full bg-color-white", children: /* @__PURE__ */ r.jsxs(F, { className: "mx-auto w-full", children: [
|
|
2675
|
-
/* @__PURE__ */ r.jsx(Jn, { categories: t.map((
|
|
2675
|
+
/* @__PURE__ */ r.jsx(Jn, { categories: t.map((a) => a.children).flat(), helpers: e, phone: o }),
|
|
2676
2676
|
/* @__PURE__ */ r.jsx(Kn, { categories: t, helpers: e, phone: o }),
|
|
2677
2677
|
/* @__PURE__ */ r.jsx(
|
|
2678
2678
|
Rn,
|
|
2679
2679
|
{
|
|
2680
2680
|
ellipsis: i ? 1 : void 0,
|
|
2681
2681
|
breadcrumbs: n,
|
|
2682
|
-
matcher: (
|
|
2682
|
+
matcher: (a) => ({ label: Gt(a.label).split("-").join(" ") })
|
|
2683
2683
|
}
|
|
2684
2684
|
)
|
|
2685
2685
|
] }) });
|
|
@@ -2711,7 +2711,7 @@ const Hn = (t, e) => {
|
|
|
2711
2711
|
return Tt(t, Number(e));
|
|
2712
2712
|
}
|
|
2713
2713
|
}, to = (t) => Object.values(t).reduce((o, n) => o.merge(De(n.fields)), kt({})), ro = (t, e) => (t.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in e)).length > 0 ? "" : t, St = (t, e) => {
|
|
2714
|
-
const o = Object.entries(e).map(([m,
|
|
2714
|
+
const o = Object.entries(e).map(([m, x]) => [m, S.isNil(x) ? "1" : x]), n = o.map(([m]) => m), i = o.map(([, m]) => m), a = ro(t, Object.fromEntries(o)), u = new Function(...n, `return ${a};`)(...i.map(Number));
|
|
2715
2715
|
return Number.isNaN(Number(u)) ? "0" : u.toString();
|
|
2716
2716
|
}, no = (t, e) => t.map((o) => ({
|
|
2717
2717
|
...o,
|
|
@@ -2722,7 +2722,7 @@ const Hn = (t, e) => {
|
|
|
2722
2722
|
] }) }), io = ({ rootDescription: t, rootValue: e, suffix: o }) => /* @__PURE__ */ r.jsxs("div", { className: "mb-6 flex items-center justify-between gap-6", children: [
|
|
2723
2723
|
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: t }),
|
|
2724
2724
|
/* @__PURE__ */ r.jsx("div", { className: "desk-title-bold-l flex items-center gap-1 text-color-dark", children: /* @__PURE__ */ r.jsx("span", { children: Tt(o, Number(e)) }) })
|
|
2725
|
-
] }),
|
|
2725
|
+
] }), ao = ({ hint: t, value: e, label: o, mode: n, color: i = "dark", accent: a = !1 }) => /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2726
2726
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2727
2727
|
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: o }),
|
|
2728
2728
|
t && /* @__PURE__ */ r.jsx(
|
|
@@ -2737,16 +2737,16 @@ const Hn = (t, e) => {
|
|
|
2737
2737
|
/* @__PURE__ */ r.jsx(
|
|
2738
2738
|
"span",
|
|
2739
2739
|
{
|
|
2740
|
-
className:
|
|
2741
|
-
"[&&]:desk-title-bold-s":
|
|
2740
|
+
className: l("desk-body-medium-l text-color-dark", {
|
|
2741
|
+
"[&&]:desk-title-bold-s": a,
|
|
2742
2742
|
"text-color-primary-default": i === "blue"
|
|
2743
2743
|
}),
|
|
2744
2744
|
children: eo(n, e)
|
|
2745
2745
|
}
|
|
2746
2746
|
)
|
|
2747
|
-
] }),
|
|
2747
|
+
] }), lo = ({ infoList: t }) => {
|
|
2748
2748
|
const { watch: e } = we(), o = e(), n = no(t, o);
|
|
2749
|
-
return /* @__PURE__ */ r.jsx("div", { className: "my-4 flex flex-col gap-3 border-t border-solid border-blue-grey-500 pt-4", children: n == null ? void 0 : n.map((i) => /* @__PURE__ */ r.jsx(
|
|
2749
|
+
return /* @__PURE__ */ r.jsx("div", { className: "my-4 flex flex-col gap-3 border-t border-solid border-blue-grey-500 pt-4", children: n == null ? void 0 : n.map((i) => /* @__PURE__ */ r.jsx(ao, { ...i }, i.label)) });
|
|
2750
2750
|
}, uo = ({ iconName: t, text: e, hint: o }) => /* @__PURE__ */ r.jsxs("div", { className: "mb-6 flex items-center gap-2", children: [
|
|
2751
2751
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
2752
2752
|
/* @__PURE__ */ r.jsx(b, { name: t, className: "size-6 text-icon-blue-grey-800" }),
|
|
@@ -2755,42 +2755,42 @@ const Hn = (t, e) => {
|
|
|
2755
2755
|
o && /* @__PURE__ */ r.jsx(_e, { withCloseBtn: !1, triggerElement: /* @__PURE__ */ r.jsx(b, { name: "info/helpCircle", className: "size-5 text-icon-blue-grey-600" }), children: /* @__PURE__ */ r.jsx("p", { children: o }) })
|
|
2756
2756
|
] }), mo = ({ assistHint: t, buttonsConfig: e, bottomDescription: o }) => /* @__PURE__ */ r.jsxs("div", { children: [
|
|
2757
2757
|
t && /* @__PURE__ */ r.jsx(uo, { ...t }),
|
|
2758
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2758
|
+
/* @__PURE__ */ r.jsx("div", { className: l("flex items-center gap-4 mobile:flex-col"), children: e == null ? void 0 : e.map((n, i) => /* @__PURE__ */ r.jsx(Y, { className: "w-full", ...n }, i)) }),
|
|
2759
2759
|
o && /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-m mt-4 text-color-secondary", children: o })
|
|
2760
|
-
] }),
|
|
2760
|
+
] }), xo = ({
|
|
2761
2761
|
rootDescription: t,
|
|
2762
2762
|
bottomDescription: e,
|
|
2763
2763
|
rootValue: o,
|
|
2764
2764
|
title: n,
|
|
2765
2765
|
subtitle: i,
|
|
2766
|
-
buttonsConfig:
|
|
2766
|
+
buttonsConfig: a,
|
|
2767
2767
|
infoList: d,
|
|
2768
2768
|
suffix: u,
|
|
2769
2769
|
assistHint: m
|
|
2770
2770
|
}) => /* @__PURE__ */ r.jsxs("div", { className: "w-[456px] rounded-md bg-color-blue-grey-100 p-8", children: [
|
|
2771
2771
|
/* @__PURE__ */ r.jsx(io, { suffix: u, rootValue: o, rootDescription: t }),
|
|
2772
2772
|
/* @__PURE__ */ r.jsx(oo, { title: n, subtitle: i }),
|
|
2773
|
-
/* @__PURE__ */ r.jsx(
|
|
2774
|
-
/* @__PURE__ */ r.jsx(mo, { assistHint: m, buttonsConfig:
|
|
2775
|
-
] }),
|
|
2773
|
+
/* @__PURE__ */ r.jsx(lo, { infoList: d }),
|
|
2774
|
+
/* @__PURE__ */ r.jsx(mo, { assistHint: m, buttonsConfig: a, bottomDescription: e })
|
|
2775
|
+
] }), ho = 2e4, Ot = ({
|
|
2776
2776
|
slidersGroupConfig: t,
|
|
2777
2777
|
additionalSliderGroupConfig: e
|
|
2778
2778
|
}) => {
|
|
2779
|
-
const [o, n] = A(!1), { watch: i, setValue:
|
|
2779
|
+
const [o, n] = A(!1), { watch: i, setValue: a } = we(), d = t == null ? void 0 : t.fields.find(({ args: _ }) => _.name === "sum"), { args: u } = d || {}, { max: m, name: x, defaultValue: p } = u || {}, c = i(x), { min: g, name: f } = (e == null ? void 0 : e.args) ?? {}, w = i(f), j = Number(m ?? 0) - (c ?? p);
|
|
2780
2780
|
return Ae(() => {
|
|
2781
|
-
w > j &&
|
|
2782
|
-
}, [j, w,
|
|
2781
|
+
w > j && a(f, j);
|
|
2782
|
+
}, [j, w, a, c]), Ae(() => {
|
|
2783
2783
|
Number(m) === c && n(!1);
|
|
2784
2784
|
}, [n, m, c]), {
|
|
2785
2785
|
sliderVisible: o,
|
|
2786
2786
|
setSliderVisible: n,
|
|
2787
2787
|
sumMax: m,
|
|
2788
|
-
sumName:
|
|
2788
|
+
sumName: x,
|
|
2789
2789
|
sumDefaultValue: p,
|
|
2790
2790
|
sumValue: c,
|
|
2791
2791
|
additionalSliderMax: j,
|
|
2792
2792
|
onCheckedChange: () => {
|
|
2793
|
-
n((_) => !_), w <= 0 &&
|
|
2793
|
+
n((_) => !_), w <= 0 && a(f, g), Number(m) === c && (a(x ?? "", c - ho), a(f, g));
|
|
2794
2794
|
},
|
|
2795
2795
|
sliderSumExist: !S.isObjectEmpty(d == null ? void 0 : d.args),
|
|
2796
2796
|
sliderSumCorrectType: (d == null ? void 0 : d.args.componentType) === "algorithmic" || (d == null ? void 0 : d.args.componentType) === "step"
|
|
@@ -2803,18 +2803,18 @@ const Hn = (t, e) => {
|
|
|
2803
2803
|
return /* @__PURE__ */ r.jsx("div", { children: "content 2" });
|
|
2804
2804
|
}
|
|
2805
2805
|
}, co = ({ triggerText: t, modalTitle: e, description: o, contentVariant: n }) => {
|
|
2806
|
-
const [i,
|
|
2806
|
+
const [i, a] = nr(!1);
|
|
2807
2807
|
return /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-4 rounded-sm bg-color-blue-grey-100 p-4", children: [
|
|
2808
2808
|
o && /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: o }),
|
|
2809
2809
|
/* @__PURE__ */ r.jsx(
|
|
2810
2810
|
"button",
|
|
2811
2811
|
{
|
|
2812
|
-
onClick: () =>
|
|
2812
|
+
onClick: () => a(!0),
|
|
2813
2813
|
className: "desk-body-regular-l w-max cursor-pointer text-color-primary-default underline underline-offset-4",
|
|
2814
2814
|
children: t
|
|
2815
2815
|
}
|
|
2816
2816
|
),
|
|
2817
|
-
/* @__PURE__ */ r.jsx(Zt, { title: e, isModalOpen: i, closeModal: () =>
|
|
2817
|
+
/* @__PURE__ */ r.jsx(Zt, { title: e, isModalOpen: i, closeModal: () => a(!1), children: po(n) })
|
|
2818
2818
|
] });
|
|
2819
2819
|
}, J = ({ fields: t }) => {
|
|
2820
2820
|
const { control: e } = we();
|
|
@@ -2823,13 +2823,13 @@ const Hn = (t, e) => {
|
|
|
2823
2823
|
slidersGroupConfig: t,
|
|
2824
2824
|
additionalSliderGroupConfig: e
|
|
2825
2825
|
}) => {
|
|
2826
|
-
const { control: o } = we(), { sliderVisible: n, additionalSliderMax: i, onCheckedChange:
|
|
2826
|
+
const { control: o } = we(), { sliderVisible: n, additionalSliderMax: i, onCheckedChange: a } = Ot({
|
|
2827
2827
|
slidersGroupConfig: t,
|
|
2828
2828
|
additionalSliderGroupConfig: e
|
|
2829
2829
|
});
|
|
2830
2830
|
return S.isNil(e == null ? void 0 : e.args) || !(e != null && e.args) ? null : /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
2831
2831
|
/* @__PURE__ */ r.jsxs("div", { className: "inline-flex items-center gap-2", children: [
|
|
2832
|
-
/* @__PURE__ */ r.jsx(ye.SwitchBase, { checked: n, onCheckedChange:
|
|
2832
|
+
/* @__PURE__ */ r.jsx(ye.SwitchBase, { checked: n, onCheckedChange: a }),
|
|
2833
2833
|
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l", children: "Хочу получить деньги дополнительно" })
|
|
2834
2834
|
] }),
|
|
2835
2835
|
n && /* @__PURE__ */ r.jsx(
|
|
@@ -2871,7 +2871,7 @@ const Hn = (t, e) => {
|
|
|
2871
2871
|
"button",
|
|
2872
2872
|
{
|
|
2873
2873
|
onClick: () => o(n),
|
|
2874
|
-
className:
|
|
2874
|
+
className: l(
|
|
2875
2875
|
"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",
|
|
2876
2876
|
{ "bg-icon-primary-default text-color-white": e === n }
|
|
2877
2877
|
),
|
|
@@ -2886,20 +2886,20 @@ const Hn = (t, e) => {
|
|
|
2886
2886
|
schema: o,
|
|
2887
2887
|
mode: "onBlur",
|
|
2888
2888
|
defaultValues: Be.getZodDefaults(o)
|
|
2889
|
-
}), i = n.watch(), { rootValue:
|
|
2889
|
+
}), i = n.watch(), { rootValue: a } = t, d = _t(a) ? St(a.formula, i) : a, u = { ...t, rootValue: d };
|
|
2890
2890
|
return /* @__PURE__ */ r.jsx(tr, { ...n, children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-start gap-16", children: [
|
|
2891
2891
|
/* @__PURE__ */ r.jsx(bo, { ...e }),
|
|
2892
|
-
/* @__PURE__ */ r.jsx(
|
|
2892
|
+
/* @__PURE__ */ r.jsx(xo, { ...u })
|
|
2893
2893
|
] }) });
|
|
2894
2894
|
}, ut = ({ calculators: t, headline: e }) => {
|
|
2895
2895
|
var m;
|
|
2896
|
-
const o = t.length > 1, [n, i] = A(o ? (m = t[0]) == null ? void 0 : m.name : ""),
|
|
2896
|
+
const o = t.length > 1, [n, i] = A(o ? (m = t[0]) == null ? void 0 : m.name : ""), a = se(() => t == null ? void 0 : t.map(({ name: x, label: p }) => ({ name: x, label: p })), [t]), d = o ? a == null ? void 0 : a.findIndex((x) => x.name === n) : 0, u = t[d];
|
|
2897
2897
|
return /* @__PURE__ */ r.jsx("section", { id: y.calculator, children: /* @__PURE__ */ r.jsx(F, { children: /* @__PURE__ */ r.jsxs("div", { className: "rounded-md bg-color-white px-10 py-12 shadow-md", children: [
|
|
2898
2898
|
/* @__PURE__ */ r.jsx(L, { className: "mb-12", as: "h2", children: e }),
|
|
2899
2899
|
o && /* @__PURE__ */ r.jsx(
|
|
2900
2900
|
go,
|
|
2901
2901
|
{
|
|
2902
|
-
calculatorTabs:
|
|
2902
|
+
calculatorTabs: a,
|
|
2903
2903
|
activeCalculator: n,
|
|
2904
2904
|
setActiveCalculator: i
|
|
2905
2905
|
}
|
|
@@ -2929,8 +2929,8 @@ export {
|
|
|
2929
2929
|
Y as ButtonWithHandlers,
|
|
2930
2930
|
ut as Calculator,
|
|
2931
2931
|
jo as CalculatorView,
|
|
2932
|
-
|
|
2933
|
-
|
|
2932
|
+
at as DynamicForm,
|
|
2933
|
+
lt as DynamicFormDialog,
|
|
2934
2934
|
Eo as FallbacksView,
|
|
2935
2935
|
Pe as FieldMapper,
|
|
2936
2936
|
Je as Footer,
|