@scbt-ecom/ui 0.81.2 → 0.82.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/widgets/calculator/Calculator.d.ts +12 -2
- package/dist/lib/widgets/calculator/CalculatorView.d.ts +2 -3
- package/dist/lib/widgets/calculator/ui/CalculatorTabs.d.ts +6 -1
- package/dist/lib/widgets/model/helpers.d.ts +1 -1
- package/dist/widget.js +638 -635
- package/dist/widget.js.map +1 -1
- package/package.json +1 -2
package/dist/widget.js
CHANGED
|
@@ -2,23 +2,23 @@ var Ee = Object.defineProperty;
|
|
|
2
2
|
var Qt = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var Pe = (e, t,
|
|
6
|
-
var Nt = (e, t,
|
|
7
|
-
var h = (e, t,
|
|
8
|
-
var ft = (e, t,
|
|
5
|
+
var Pe = (e, t, r) => t in e ? Ee(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
+
var Nt = (e, t, r) => Pe(e, typeof t != "symbol" ? t + "" : t, r), Ct = (e, t, r) => t.has(e) || Qt("Cannot " + r);
|
|
7
|
+
var h = (e, t, r) => (Ct(e, t, "read from private field"), r ? r.call(e) : t.get(e)), M = (e, t, r) => t.has(e) ? Qt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), w = (e, t, r, n) => (Ct(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), q = (e, t, r) => (Ct(e, t, "access private method"), r);
|
|
8
|
+
var ft = (e, t, r, n) => ({
|
|
9
9
|
set _(i) {
|
|
10
|
-
w(e, t, i,
|
|
10
|
+
w(e, t, i, r);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return h(e, t,
|
|
13
|
+
return h(e, t, n);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { S as be, h as ge, Q as De, n as F, m as Vt, R as He, c as Re, a as $t, b as $, e as ze, d as Le, f as Qe, g as Ve, o as At, r as Wt, i as $e, j as qt, p as Ut, s as Ae, k as o, B as gt, l as E, q as B, P as je, t as We, H, I as b, C as jt, u as Tt, L as qe, v as Ot, A as dt, w as ye, x as Ue, y as
|
|
16
|
+
import { S as be, h as ge, Q as De, n as F, m as Vt, R as He, c as Re, a as $t, b as $, e as ze, d as Le, f as Qe, g as Ve, o as At, r as Wt, i as $e, j as qt, p as Ut, s as Ae, k as o, B as gt, l as E, q as B, P as je, t as We, H, I as b, C as jt, u as Tt, L as qe, v as Ot, A as dt, w as ye, x as Ue, y as Ke, U as yt, D as Ze, z as Ft, E as Xe, M as Ye } from "./index-CkOdCUEp.js";
|
|
17
17
|
import { c as a, T as O } from "./typeGuards-CSiImkUY.js";
|
|
18
18
|
import * as ut from "react";
|
|
19
|
-
import { lazy as P, useCallback as ke, useState as W, useMemo as kt, createElement as Bt, useRef as Et, useReducer as
|
|
20
|
-
import { i as
|
|
21
|
-
import { s as
|
|
19
|
+
import { lazy as P, useCallback as ke, useState as W, useMemo as kt, createElement as Bt, useRef as Et, useReducer as Je, memo as Pt, forwardRef as Ge, useEffect as _t } from "react";
|
|
20
|
+
import { i as Kt } from "./isClient-C9aZtt2Q.js";
|
|
21
|
+
import { s as se, c as wt, a as tr, l as er } from "./localStorageActions-DRn18qhh.js";
|
|
22
22
|
import { u as at, b as Dt, a as rr, f as vt, F as nr } from "./useDebounce-maGDilFr.js";
|
|
23
23
|
import { z as we, Z as Ht } from "./index-DQTqhWTt.js";
|
|
24
24
|
import { o as ve } from "./utils-Bu1Zg675.js";
|
|
@@ -30,15 +30,15 @@ var L, he, dr = (he = class extends be {
|
|
|
30
30
|
M(this, L);
|
|
31
31
|
this.config = t, w(this, L, /* @__PURE__ */ new Map());
|
|
32
32
|
}
|
|
33
|
-
build(t,
|
|
34
|
-
const i =
|
|
33
|
+
build(t, r, n) {
|
|
34
|
+
const i = r.queryKey, d = r.queryHash ?? ge(i, r);
|
|
35
35
|
let l = this.get(d);
|
|
36
36
|
return l || (l = new De({
|
|
37
37
|
client: t,
|
|
38
38
|
queryKey: i,
|
|
39
39
|
queryHash: d,
|
|
40
|
-
options: t.defaultQueryOptions(
|
|
41
|
-
state:
|
|
40
|
+
options: t.defaultQueryOptions(r),
|
|
41
|
+
state: n,
|
|
42
42
|
defaultOptions: t.getQueryDefaults(i)
|
|
43
43
|
}), this.add(l)), l;
|
|
44
44
|
}
|
|
@@ -49,8 +49,8 @@ var L, he, dr = (he = class extends be {
|
|
|
49
49
|
}));
|
|
50
50
|
}
|
|
51
51
|
remove(t) {
|
|
52
|
-
const
|
|
53
|
-
|
|
52
|
+
const r = h(this, L).get(t.queryHash);
|
|
53
|
+
r && (t.destroy(), r === t && h(this, L).delete(t.queryHash), this.notify({ type: "removed", query: t }));
|
|
54
54
|
}
|
|
55
55
|
clear() {
|
|
56
56
|
F.batch(() => {
|
|
@@ -66,19 +66,19 @@ var L, he, dr = (he = class extends be {
|
|
|
66
66
|
return [...h(this, L).values()];
|
|
67
67
|
}
|
|
68
68
|
find(t) {
|
|
69
|
-
const
|
|
69
|
+
const r = { exact: !0, ...t };
|
|
70
70
|
return this.getAll().find(
|
|
71
|
-
(
|
|
71
|
+
(n) => Vt(r, n)
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
findAll(t = {}) {
|
|
75
|
-
const
|
|
76
|
-
return Object.keys(t).length > 0 ?
|
|
75
|
+
const r = this.getAll();
|
|
76
|
+
return Object.keys(t).length > 0 ? r.filter((n) => Vt(t, n)) : r;
|
|
77
77
|
}
|
|
78
78
|
notify(t) {
|
|
79
79
|
F.batch(() => {
|
|
80
|
-
this.listeners.forEach((
|
|
81
|
-
|
|
80
|
+
this.listeners.forEach((r) => {
|
|
81
|
+
r(t);
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
}
|
|
@@ -119,7 +119,7 @@ var L, he, dr = (he = class extends be {
|
|
|
119
119
|
}));
|
|
120
120
|
}
|
|
121
121
|
removeObserver(t) {
|
|
122
|
-
w(this, Q, h(this, Q).filter((
|
|
122
|
+
w(this, Q, h(this, Q).filter((r) => r !== t)), this.scheduleGc(), h(this, T).notify({
|
|
123
123
|
type: "observerRemoved",
|
|
124
124
|
mutation: this,
|
|
125
125
|
observer: t
|
|
@@ -134,45 +134,45 @@ var L, he, dr = (he = class extends be {
|
|
|
134
134
|
this.execute(this.state.variables);
|
|
135
135
|
}
|
|
136
136
|
async execute(t) {
|
|
137
|
-
var d, l,
|
|
138
|
-
const
|
|
137
|
+
var d, l, m, x, u, p, f, y, c, v, g, N, S, R, I, _, z, J, ht, pt;
|
|
138
|
+
const r = () => {
|
|
139
139
|
q(this, V, U).call(this, { type: "continue" });
|
|
140
140
|
};
|
|
141
141
|
w(this, tt, Re({
|
|
142
142
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
143
|
-
onFail: (C,
|
|
144
|
-
q(this, V, U).call(this, { type: "failed", failureCount: C, error:
|
|
143
|
+
onFail: (C, G) => {
|
|
144
|
+
q(this, V, U).call(this, { type: "failed", failureCount: C, error: G });
|
|
145
145
|
},
|
|
146
146
|
onPause: () => {
|
|
147
147
|
q(this, V, U).call(this, { type: "pause" });
|
|
148
148
|
},
|
|
149
|
-
onContinue:
|
|
149
|
+
onContinue: r,
|
|
150
150
|
retry: this.options.retry ?? 0,
|
|
151
151
|
retryDelay: this.options.retryDelay,
|
|
152
152
|
networkMode: this.options.networkMode,
|
|
153
153
|
canRun: () => h(this, T).canRun(this)
|
|
154
154
|
}));
|
|
155
|
-
const
|
|
155
|
+
const n = this.state.status === "pending", i = !h(this, tt).canStart();
|
|
156
156
|
try {
|
|
157
|
-
if (
|
|
158
|
-
|
|
157
|
+
if (n)
|
|
158
|
+
r();
|
|
159
159
|
else {
|
|
160
160
|
q(this, V, U).call(this, { type: "pending", variables: t, isPaused: i }), await ((l = (d = h(this, T).config).onMutate) == null ? void 0 : l.call(
|
|
161
161
|
d,
|
|
162
162
|
t,
|
|
163
163
|
this
|
|
164
164
|
));
|
|
165
|
-
const
|
|
166
|
-
|
|
165
|
+
const G = await ((x = (m = this.options).onMutate) == null ? void 0 : x.call(m, t));
|
|
166
|
+
G !== this.state.context && q(this, V, U).call(this, {
|
|
167
167
|
type: "pending",
|
|
168
|
-
context:
|
|
168
|
+
context: G,
|
|
169
169
|
variables: t,
|
|
170
170
|
isPaused: i
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
const C = await h(this, tt).start();
|
|
174
|
-
return await ((p = (
|
|
175
|
-
|
|
174
|
+
return await ((p = (u = h(this, T).config).onSuccess) == null ? void 0 : p.call(
|
|
175
|
+
u,
|
|
176
176
|
C,
|
|
177
177
|
t,
|
|
178
178
|
this.state.context,
|
|
@@ -198,7 +198,7 @@ var L, he, dr = (he = class extends be {
|
|
|
198
198
|
C,
|
|
199
199
|
t,
|
|
200
200
|
this.state.context
|
|
201
|
-
)), await ((
|
|
201
|
+
)), await ((J = (z = h(this, T).config).onSettled) == null ? void 0 : J.call(
|
|
202
202
|
z,
|
|
203
203
|
void 0,
|
|
204
204
|
C,
|
|
@@ -220,27 +220,27 @@ var L, he, dr = (he = class extends be {
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
}, Q = new WeakMap(), T = new WeakMap(), tt = new WeakMap(), V = new WeakSet(), U = function(t) {
|
|
223
|
-
const
|
|
223
|
+
const r = (n) => {
|
|
224
224
|
switch (t.type) {
|
|
225
225
|
case "failed":
|
|
226
226
|
return {
|
|
227
|
-
...
|
|
227
|
+
...n,
|
|
228
228
|
failureCount: t.failureCount,
|
|
229
229
|
failureReason: t.error
|
|
230
230
|
};
|
|
231
231
|
case "pause":
|
|
232
232
|
return {
|
|
233
|
-
...
|
|
233
|
+
...n,
|
|
234
234
|
isPaused: !0
|
|
235
235
|
};
|
|
236
236
|
case "continue":
|
|
237
237
|
return {
|
|
238
|
-
...
|
|
238
|
+
...n,
|
|
239
239
|
isPaused: !1
|
|
240
240
|
};
|
|
241
241
|
case "pending":
|
|
242
242
|
return {
|
|
243
|
-
...
|
|
243
|
+
...n,
|
|
244
244
|
context: t.context,
|
|
245
245
|
data: void 0,
|
|
246
246
|
failureCount: 0,
|
|
@@ -253,7 +253,7 @@ var L, he, dr = (he = class extends be {
|
|
|
253
253
|
};
|
|
254
254
|
case "success":
|
|
255
255
|
return {
|
|
256
|
-
...
|
|
256
|
+
...n,
|
|
257
257
|
data: t.data,
|
|
258
258
|
failureCount: 0,
|
|
259
259
|
failureReason: null,
|
|
@@ -263,19 +263,19 @@ var L, he, dr = (he = class extends be {
|
|
|
263
263
|
};
|
|
264
264
|
case "error":
|
|
265
265
|
return {
|
|
266
|
-
...
|
|
266
|
+
...n,
|
|
267
267
|
data: void 0,
|
|
268
268
|
error: t.error,
|
|
269
|
-
failureCount:
|
|
269
|
+
failureCount: n.failureCount + 1,
|
|
270
270
|
failureReason: t.error,
|
|
271
271
|
isPaused: !1,
|
|
272
272
|
status: "error"
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
|
-
this.state =
|
|
277
|
-
h(this, Q).forEach((
|
|
278
|
-
|
|
276
|
+
this.state = r(this.state), F.batch(() => {
|
|
277
|
+
h(this, Q).forEach((n) => {
|
|
278
|
+
n.onMutationUpdate(t);
|
|
279
279
|
}), h(this, T).notify({
|
|
280
280
|
mutation: this,
|
|
281
281
|
type: "updated",
|
|
@@ -304,42 +304,42 @@ var A, D, xt, fe, ur = (fe = class extends be {
|
|
|
304
304
|
M(this, xt);
|
|
305
305
|
this.config = t, w(this, A, /* @__PURE__ */ new Set()), w(this, D, /* @__PURE__ */ new Map()), w(this, xt, 0);
|
|
306
306
|
}
|
|
307
|
-
build(t,
|
|
307
|
+
build(t, r, n) {
|
|
308
308
|
const i = new ar({
|
|
309
309
|
mutationCache: this,
|
|
310
310
|
mutationId: ++ft(this, xt)._,
|
|
311
|
-
options: t.defaultMutationOptions(
|
|
312
|
-
state:
|
|
311
|
+
options: t.defaultMutationOptions(r),
|
|
312
|
+
state: n
|
|
313
313
|
});
|
|
314
314
|
return this.add(i), i;
|
|
315
315
|
}
|
|
316
316
|
add(t) {
|
|
317
317
|
h(this, A).add(t);
|
|
318
|
-
const
|
|
319
|
-
if (typeof
|
|
320
|
-
const
|
|
321
|
-
|
|
318
|
+
const r = ct(t);
|
|
319
|
+
if (typeof r == "string") {
|
|
320
|
+
const n = h(this, D).get(r);
|
|
321
|
+
n ? n.push(t) : h(this, D).set(r, [t]);
|
|
322
322
|
}
|
|
323
323
|
this.notify({ type: "added", mutation: t });
|
|
324
324
|
}
|
|
325
325
|
remove(t) {
|
|
326
326
|
if (h(this, A).delete(t)) {
|
|
327
|
-
const
|
|
328
|
-
if (typeof
|
|
329
|
-
const
|
|
330
|
-
if (
|
|
331
|
-
if (
|
|
332
|
-
const i =
|
|
333
|
-
i !== -1 &&
|
|
334
|
-
} else
|
|
327
|
+
const r = ct(t);
|
|
328
|
+
if (typeof r == "string") {
|
|
329
|
+
const n = h(this, D).get(r);
|
|
330
|
+
if (n)
|
|
331
|
+
if (n.length > 1) {
|
|
332
|
+
const i = n.indexOf(t);
|
|
333
|
+
i !== -1 && n.splice(i, 1);
|
|
334
|
+
} else n[0] === t && h(this, D).delete(r);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
this.notify({ type: "removed", mutation: t });
|
|
338
338
|
}
|
|
339
339
|
canRun(t) {
|
|
340
|
-
const
|
|
341
|
-
if (typeof
|
|
342
|
-
const
|
|
340
|
+
const r = ct(t);
|
|
341
|
+
if (typeof r == "string") {
|
|
342
|
+
const n = h(this, D).get(r), i = n == null ? void 0 : n.find(
|
|
343
343
|
(d) => d.state.status === "pending"
|
|
344
344
|
);
|
|
345
345
|
return !i || i === t;
|
|
@@ -347,10 +347,10 @@ var A, D, xt, fe, ur = (fe = class extends be {
|
|
|
347
347
|
return !0;
|
|
348
348
|
}
|
|
349
349
|
runNext(t) {
|
|
350
|
-
var
|
|
351
|
-
const
|
|
352
|
-
if (typeof
|
|
353
|
-
const i = (
|
|
350
|
+
var n;
|
|
351
|
+
const r = ct(t);
|
|
352
|
+
if (typeof r == "string") {
|
|
353
|
+
const i = (n = h(this, D).get(r)) == null ? void 0 : n.find((d) => d !== t && d.state.isPaused);
|
|
354
354
|
return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
|
|
355
355
|
} else
|
|
356
356
|
return Promise.resolve();
|
|
@@ -366,26 +366,26 @@ var A, D, xt, fe, ur = (fe = class extends be {
|
|
|
366
366
|
return Array.from(h(this, A));
|
|
367
367
|
}
|
|
368
368
|
find(t) {
|
|
369
|
-
const
|
|
369
|
+
const r = { exact: !0, ...t };
|
|
370
370
|
return this.getAll().find(
|
|
371
|
-
(
|
|
371
|
+
(n) => $t(r, n)
|
|
372
372
|
);
|
|
373
373
|
}
|
|
374
374
|
findAll(t = {}) {
|
|
375
|
-
return this.getAll().filter((
|
|
375
|
+
return this.getAll().filter((r) => $t(t, r));
|
|
376
376
|
}
|
|
377
377
|
notify(t) {
|
|
378
378
|
F.batch(() => {
|
|
379
|
-
this.listeners.forEach((
|
|
380
|
-
|
|
379
|
+
this.listeners.forEach((r) => {
|
|
380
|
+
r(t);
|
|
381
381
|
});
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
384
|
resumePausedMutations() {
|
|
385
|
-
const t = this.getAll().filter((
|
|
385
|
+
const t = this.getAll().filter((r) => r.state.isPaused);
|
|
386
386
|
return F.batch(
|
|
387
387
|
() => Promise.all(
|
|
388
|
-
t.map((
|
|
388
|
+
t.map((r) => r.continue().catch($))
|
|
389
389
|
)
|
|
390
390
|
);
|
|
391
391
|
}
|
|
@@ -394,13 +394,13 @@ function ct(e) {
|
|
|
394
394
|
var t;
|
|
395
395
|
return (t = e.options.scope) == null ? void 0 : t.id;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Zt(e) {
|
|
398
398
|
return {
|
|
399
|
-
onFetch: (t,
|
|
399
|
+
onFetch: (t, r) => {
|
|
400
400
|
var p, f, y, c, v;
|
|
401
|
-
const
|
|
402
|
-
let
|
|
403
|
-
const
|
|
401
|
+
const n = t.options, i = (y = (f = (p = t.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : y.direction, d = ((c = t.state.data) == null ? void 0 : c.pages) || [], l = ((v = t.state.data) == null ? void 0 : v.pageParams) || [];
|
|
402
|
+
let m = { pages: [], pageParams: [] }, x = 0;
|
|
403
|
+
const u = async () => {
|
|
404
404
|
let g = !1;
|
|
405
405
|
const N = (I) => {
|
|
406
406
|
Object.defineProperty(I, "signal", {
|
|
@@ -423,73 +423,73 @@ function Kt(e) {
|
|
|
423
423
|
meta: t.options.meta
|
|
424
424
|
};
|
|
425
425
|
return N(Lt), Lt;
|
|
426
|
-
})(), pt = await S(ht), { maxPages: C } = t.options,
|
|
426
|
+
})(), pt = await S(ht), { maxPages: C } = t.options, G = z ? Le : Qe;
|
|
427
427
|
return {
|
|
428
|
-
pages:
|
|
429
|
-
pageParams:
|
|
428
|
+
pages: G(I.pages, pt, C),
|
|
429
|
+
pageParams: G(I.pageParams, _, C)
|
|
430
430
|
};
|
|
431
431
|
};
|
|
432
432
|
if (i && d.length) {
|
|
433
|
-
const I = i === "backward", _ = I ? mr :
|
|
433
|
+
const I = i === "backward", _ = I ? mr : Xt, z = {
|
|
434
434
|
pages: d,
|
|
435
435
|
pageParams: l
|
|
436
|
-
},
|
|
437
|
-
|
|
436
|
+
}, J = _(n, z);
|
|
437
|
+
m = await R(z, J, I);
|
|
438
438
|
} else {
|
|
439
439
|
const I = e ?? d.length;
|
|
440
440
|
do {
|
|
441
|
-
const _ = x === 0 ? l[0] ??
|
|
441
|
+
const _ = x === 0 ? l[0] ?? n.initialPageParam : Xt(n, m);
|
|
442
442
|
if (x > 0 && _ == null)
|
|
443
443
|
break;
|
|
444
|
-
|
|
444
|
+
m = await R(m, _), x++;
|
|
445
445
|
} while (x < I);
|
|
446
446
|
}
|
|
447
|
-
return
|
|
447
|
+
return m;
|
|
448
448
|
};
|
|
449
449
|
t.options.persister ? t.fetchFn = () => {
|
|
450
450
|
var g, N;
|
|
451
451
|
return (N = (g = t.options).persister) == null ? void 0 : N.call(
|
|
452
452
|
g,
|
|
453
|
-
|
|
453
|
+
u,
|
|
454
454
|
{
|
|
455
455
|
client: t.client,
|
|
456
456
|
queryKey: t.queryKey,
|
|
457
457
|
meta: t.options.meta,
|
|
458
458
|
signal: t.signal
|
|
459
459
|
},
|
|
460
|
-
|
|
460
|
+
r
|
|
461
461
|
);
|
|
462
|
-
} : t.fetchFn =
|
|
462
|
+
} : t.fetchFn = u;
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
465
|
}
|
|
466
|
-
function
|
|
467
|
-
const
|
|
466
|
+
function Xt(e, { pages: t, pageParams: r }) {
|
|
467
|
+
const n = t.length - 1;
|
|
468
468
|
return t.length > 0 ? e.getNextPageParam(
|
|
469
|
-
t[
|
|
469
|
+
t[n],
|
|
470
470
|
t,
|
|
471
|
-
n
|
|
472
|
-
|
|
471
|
+
r[n],
|
|
472
|
+
r
|
|
473
473
|
) : void 0;
|
|
474
474
|
}
|
|
475
|
-
function mr(e, { pages: t, pageParams:
|
|
476
|
-
var
|
|
477
|
-
return t.length > 0 ? (
|
|
475
|
+
function mr(e, { pages: t, pageParams: r }) {
|
|
476
|
+
var n;
|
|
477
|
+
return t.length > 0 ? (n = e.getPreviousPageParam) == null ? void 0 : n.call(e, t[0], t, r[0], r) : void 0;
|
|
478
478
|
}
|
|
479
|
-
var k,
|
|
479
|
+
var k, K, Z, et, rt, X, nt, ot, ce, xr = (ce = class {
|
|
480
480
|
constructor(e = {}) {
|
|
481
481
|
M(this, k);
|
|
482
|
-
M(this, s);
|
|
483
482
|
M(this, K);
|
|
483
|
+
M(this, Z);
|
|
484
484
|
M(this, et);
|
|
485
485
|
M(this, rt);
|
|
486
|
-
M(this,
|
|
486
|
+
M(this, X);
|
|
487
487
|
M(this, nt);
|
|
488
488
|
M(this, ot);
|
|
489
|
-
w(this, k, e.queryCache || new dr()), w(this,
|
|
489
|
+
w(this, k, e.queryCache || new dr()), w(this, K, e.mutationCache || new ur()), w(this, Z, e.defaultOptions || {}), w(this, et, /* @__PURE__ */ new Map()), w(this, rt, /* @__PURE__ */ new Map()), w(this, X, 0);
|
|
490
490
|
}
|
|
491
491
|
mount() {
|
|
492
|
-
ft(this,
|
|
492
|
+
ft(this, X)._++, h(this, X) === 1 && (w(this, nt, Ve.subscribe(async (e) => {
|
|
493
493
|
e && (await this.resumePausedMutations(), h(this, k).onFocus());
|
|
494
494
|
})), w(this, ot, At.subscribe(async (e) => {
|
|
495
495
|
e && (await this.resumePausedMutations(), h(this, k).onOnline());
|
|
@@ -497,13 +497,13 @@ var k, s, K, et, rt, Z, nt, ot, ce, xr = (ce = class {
|
|
|
497
497
|
}
|
|
498
498
|
unmount() {
|
|
499
499
|
var e, t;
|
|
500
|
-
ft(this,
|
|
500
|
+
ft(this, X)._--, h(this, X) === 0 && ((e = h(this, nt)) == null || e.call(this), w(this, nt, void 0), (t = h(this, ot)) == null || t.call(this), w(this, ot, void 0));
|
|
501
501
|
}
|
|
502
502
|
isFetching(e) {
|
|
503
503
|
return h(this, k).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
504
504
|
}
|
|
505
505
|
isMutating(e) {
|
|
506
|
-
return h(this,
|
|
506
|
+
return h(this, K).findAll({ ...e, status: "pending" }).length;
|
|
507
507
|
}
|
|
508
508
|
/**
|
|
509
509
|
* Imperative (non-reactive) way to retrieve data for a QueryKey.
|
|
@@ -513,54 +513,54 @@ var k, s, K, et, rt, Z, nt, ot, ce, xr = (ce = class {
|
|
|
513
513
|
* Use `useQuery` to create a `QueryObserver` that subscribes to changes.
|
|
514
514
|
*/
|
|
515
515
|
getQueryData(e) {
|
|
516
|
-
var
|
|
516
|
+
var r;
|
|
517
517
|
const t = this.defaultQueryOptions({ queryKey: e });
|
|
518
|
-
return (
|
|
518
|
+
return (r = h(this, k).get(t.queryHash)) == null ? void 0 : r.state.data;
|
|
519
519
|
}
|
|
520
520
|
ensureQueryData(e) {
|
|
521
|
-
const t = this.defaultQueryOptions(e),
|
|
522
|
-
return
|
|
521
|
+
const t = this.defaultQueryOptions(e), r = h(this, k).build(this, t), n = r.state.data;
|
|
522
|
+
return n === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(Wt(t.staleTime, r)) && this.prefetchQuery(t), Promise.resolve(n));
|
|
523
523
|
}
|
|
524
524
|
getQueriesData(e) {
|
|
525
|
-
return h(this, k).findAll(e).map(({ queryKey: t, state:
|
|
526
|
-
const
|
|
527
|
-
return [t,
|
|
525
|
+
return h(this, k).findAll(e).map(({ queryKey: t, state: r }) => {
|
|
526
|
+
const n = r.data;
|
|
527
|
+
return [t, n];
|
|
528
528
|
});
|
|
529
529
|
}
|
|
530
|
-
setQueryData(e, t,
|
|
531
|
-
const
|
|
532
|
-
|
|
530
|
+
setQueryData(e, t, r) {
|
|
531
|
+
const n = this.defaultQueryOptions({ queryKey: e }), i = h(this, k).get(
|
|
532
|
+
n.queryHash
|
|
533
533
|
), d = i == null ? void 0 : i.state.data, l = $e(t, d);
|
|
534
534
|
if (l !== void 0)
|
|
535
|
-
return h(this, k).build(this,
|
|
535
|
+
return h(this, k).build(this, n).setData(l, { ...r, manual: !0 });
|
|
536
536
|
}
|
|
537
|
-
setQueriesData(e, t,
|
|
537
|
+
setQueriesData(e, t, r) {
|
|
538
538
|
return F.batch(
|
|
539
|
-
() => h(this, k).findAll(e).map(({ queryKey:
|
|
540
|
-
|
|
541
|
-
this.setQueryData(
|
|
539
|
+
() => h(this, k).findAll(e).map(({ queryKey: n }) => [
|
|
540
|
+
n,
|
|
541
|
+
this.setQueryData(n, t, r)
|
|
542
542
|
])
|
|
543
543
|
);
|
|
544
544
|
}
|
|
545
545
|
getQueryState(e) {
|
|
546
|
-
var
|
|
546
|
+
var r;
|
|
547
547
|
const t = this.defaultQueryOptions({ queryKey: e });
|
|
548
|
-
return (
|
|
548
|
+
return (r = h(this, k).get(
|
|
549
549
|
t.queryHash
|
|
550
|
-
)) == null ? void 0 :
|
|
550
|
+
)) == null ? void 0 : r.state;
|
|
551
551
|
}
|
|
552
552
|
removeQueries(e) {
|
|
553
553
|
const t = h(this, k);
|
|
554
554
|
F.batch(() => {
|
|
555
|
-
t.findAll(e).forEach((
|
|
556
|
-
t.remove(
|
|
555
|
+
t.findAll(e).forEach((r) => {
|
|
556
|
+
t.remove(r);
|
|
557
557
|
});
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
560
|
resetQueries(e, t) {
|
|
561
|
-
const
|
|
562
|
-
return F.batch(() => (
|
|
563
|
-
|
|
561
|
+
const r = h(this, k);
|
|
562
|
+
return F.batch(() => (r.findAll(e).forEach((n) => {
|
|
563
|
+
n.reset();
|
|
564
564
|
}), this.refetchQueries(
|
|
565
565
|
{
|
|
566
566
|
type: "active",
|
|
@@ -570,14 +570,14 @@ var k, s, K, et, rt, Z, nt, ot, ce, xr = (ce = class {
|
|
|
570
570
|
)));
|
|
571
571
|
}
|
|
572
572
|
cancelQueries(e, t = {}) {
|
|
573
|
-
const
|
|
574
|
-
() => h(this, k).findAll(e).map((i) => i.cancel(
|
|
573
|
+
const r = { revert: !0, ...t }, n = F.batch(
|
|
574
|
+
() => h(this, k).findAll(e).map((i) => i.cancel(r))
|
|
575
575
|
);
|
|
576
|
-
return Promise.all(
|
|
576
|
+
return Promise.all(n).then($).catch($);
|
|
577
577
|
}
|
|
578
578
|
invalidateQueries(e, t = {}) {
|
|
579
|
-
return F.batch(() => (h(this, k).findAll(e).forEach((
|
|
580
|
-
|
|
579
|
+
return F.batch(() => (h(this, k).findAll(e).forEach((r) => {
|
|
580
|
+
r.invalidate();
|
|
581
581
|
}), (e == null ? void 0 : e.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
|
|
582
582
|
{
|
|
583
583
|
...e,
|
|
@@ -587,51 +587,51 @@ var k, s, K, et, rt, Z, nt, ot, ce, xr = (ce = class {
|
|
|
587
587
|
)));
|
|
588
588
|
}
|
|
589
589
|
refetchQueries(e, t = {}) {
|
|
590
|
-
const
|
|
590
|
+
const r = {
|
|
591
591
|
...t,
|
|
592
592
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
593
|
-
},
|
|
593
|
+
}, n = F.batch(
|
|
594
594
|
() => h(this, k).findAll(e).filter((i) => !i.isDisabled() && !i.isStatic()).map((i) => {
|
|
595
|
-
let d = i.fetch(void 0,
|
|
596
|
-
return
|
|
595
|
+
let d = i.fetch(void 0, r);
|
|
596
|
+
return r.throwOnError || (d = d.catch($)), i.state.fetchStatus === "paused" ? Promise.resolve() : d;
|
|
597
597
|
})
|
|
598
598
|
);
|
|
599
|
-
return Promise.all(
|
|
599
|
+
return Promise.all(n).then($);
|
|
600
600
|
}
|
|
601
601
|
fetchQuery(e) {
|
|
602
602
|
const t = this.defaultQueryOptions(e);
|
|
603
603
|
t.retry === void 0 && (t.retry = !1);
|
|
604
|
-
const
|
|
605
|
-
return
|
|
606
|
-
Wt(t.staleTime,
|
|
607
|
-
) ?
|
|
604
|
+
const r = h(this, k).build(this, t);
|
|
605
|
+
return r.isStaleByTime(
|
|
606
|
+
Wt(t.staleTime, r)
|
|
607
|
+
) ? r.fetch(t) : Promise.resolve(r.state.data);
|
|
608
608
|
}
|
|
609
609
|
prefetchQuery(e) {
|
|
610
610
|
return this.fetchQuery(e).then($).catch($);
|
|
611
611
|
}
|
|
612
612
|
fetchInfiniteQuery(e) {
|
|
613
|
-
return e.behavior =
|
|
613
|
+
return e.behavior = Zt(e.pages), this.fetchQuery(e);
|
|
614
614
|
}
|
|
615
615
|
prefetchInfiniteQuery(e) {
|
|
616
616
|
return this.fetchInfiniteQuery(e).then($).catch($);
|
|
617
617
|
}
|
|
618
618
|
ensureInfiniteQueryData(e) {
|
|
619
|
-
return e.behavior =
|
|
619
|
+
return e.behavior = Zt(e.pages), this.ensureQueryData(e);
|
|
620
620
|
}
|
|
621
621
|
resumePausedMutations() {
|
|
622
|
-
return At.isOnline() ? h(this,
|
|
622
|
+
return At.isOnline() ? h(this, K).resumePausedMutations() : Promise.resolve();
|
|
623
623
|
}
|
|
624
624
|
getQueryCache() {
|
|
625
625
|
return h(this, k);
|
|
626
626
|
}
|
|
627
627
|
getMutationCache() {
|
|
628
|
-
return h(this,
|
|
628
|
+
return h(this, K);
|
|
629
629
|
}
|
|
630
630
|
getDefaultOptions() {
|
|
631
|
-
return h(this,
|
|
631
|
+
return h(this, Z);
|
|
632
632
|
}
|
|
633
633
|
setDefaultOptions(e) {
|
|
634
|
-
w(this,
|
|
634
|
+
w(this, Z, e);
|
|
635
635
|
}
|
|
636
636
|
setQueryDefaults(e, t) {
|
|
637
637
|
h(this, et).set(qt(e), {
|
|
@@ -640,10 +640,10 @@ var k, s, K, et, rt, Z, nt, ot, ce, xr = (ce = class {
|
|
|
640
640
|
});
|
|
641
641
|
}
|
|
642
642
|
getQueryDefaults(e) {
|
|
643
|
-
const t = [...h(this, et).values()],
|
|
644
|
-
return t.forEach((
|
|
645
|
-
Ut(e,
|
|
646
|
-
}),
|
|
643
|
+
const t = [...h(this, et).values()], r = {};
|
|
644
|
+
return t.forEach((n) => {
|
|
645
|
+
Ut(e, n.queryKey) && Object.assign(r, n.defaultOptions);
|
|
646
|
+
}), r;
|
|
647
647
|
}
|
|
648
648
|
setMutationDefaults(e, t) {
|
|
649
649
|
h(this, rt).set(qt(e), {
|
|
@@ -652,16 +652,16 @@ var k, s, K, et, rt, Z, nt, ot, ce, xr = (ce = class {
|
|
|
652
652
|
});
|
|
653
653
|
}
|
|
654
654
|
getMutationDefaults(e) {
|
|
655
|
-
const t = [...h(this, rt).values()],
|
|
656
|
-
return t.forEach((
|
|
657
|
-
Ut(e,
|
|
658
|
-
}),
|
|
655
|
+
const t = [...h(this, rt).values()], r = {};
|
|
656
|
+
return t.forEach((n) => {
|
|
657
|
+
Ut(e, n.mutationKey) && Object.assign(r, n.defaultOptions);
|
|
658
|
+
}), r;
|
|
659
659
|
}
|
|
660
660
|
defaultQueryOptions(e) {
|
|
661
661
|
if (e._defaulted)
|
|
662
662
|
return e;
|
|
663
663
|
const t = {
|
|
664
|
-
...h(this,
|
|
664
|
+
...h(this, Z).queries,
|
|
665
665
|
...this.getQueryDefaults(e.queryKey),
|
|
666
666
|
...e,
|
|
667
667
|
_defaulted: !0
|
|
@@ -673,17 +673,17 @@ var k, s, K, et, rt, Z, nt, ot, ce, xr = (ce = class {
|
|
|
673
673
|
}
|
|
674
674
|
defaultMutationOptions(e) {
|
|
675
675
|
return e != null && e._defaulted ? e : {
|
|
676
|
-
...h(this,
|
|
676
|
+
...h(this, Z).mutations,
|
|
677
677
|
...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
|
|
678
678
|
...e,
|
|
679
679
|
_defaulted: !0
|
|
680
680
|
};
|
|
681
681
|
}
|
|
682
682
|
clear() {
|
|
683
|
-
h(this, k).clear(), h(this,
|
|
683
|
+
h(this, k).clear(), h(this, K).clear();
|
|
684
684
|
}
|
|
685
|
-
}, k = new WeakMap(),
|
|
686
|
-
const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resolve().then(() => wo)), fr = P(() => Promise.resolve().then(() => Dn)), cr = P(() => Promise.resolve().then(() => Rn)), br = P(() => Promise.resolve().then(() => $r)), gr = P(() => Promise.resolve().then(() => Br)), jr = P(() => Promise.resolve().then(() => nn)), yr = P(() => Promise.resolve().then(() =>
|
|
685
|
+
}, k = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), et = new WeakMap(), rt = new WeakMap(), X = new WeakMap(), nt = new WeakMap(), ot = new WeakMap(), ce);
|
|
686
|
+
const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resolve().then(() => wo)), fr = P(() => Promise.resolve().then(() => Dn)), cr = P(() => Promise.resolve().then(() => Rn)), br = P(() => Promise.resolve().then(() => $r)), gr = P(() => Promise.resolve().then(() => Br)), jr = P(() => Promise.resolve().then(() => nn)), yr = P(() => Promise.resolve().then(() => Jr)), kr = P(() => Promise.resolve().then(() => eo)), wr = P(() => Promise.resolve().then(() => Wr)), vr = P(() => Promise.resolve().then(() => Mn)), Nr = P(() => Promise.resolve().then(() => Or)), Cr = {
|
|
687
687
|
header: gr,
|
|
688
688
|
seoHeader: kr,
|
|
689
689
|
banner: hr,
|
|
@@ -702,28 +702,28 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
702
702
|
), Mr = (e) => ke(() => {
|
|
703
703
|
switch (e.handler) {
|
|
704
704
|
case "navigate": {
|
|
705
|
-
const { url:
|
|
706
|
-
|
|
705
|
+
const { url: r, target: n, rel: i } = e;
|
|
706
|
+
Kt && (window == null || window.open(r, n, i));
|
|
707
707
|
break;
|
|
708
708
|
}
|
|
709
709
|
case "scroll": {
|
|
710
|
-
const { widgetId:
|
|
711
|
-
|
|
710
|
+
const { widgetId: r } = e ?? "";
|
|
711
|
+
se({ widgetId: r });
|
|
712
712
|
break;
|
|
713
713
|
}
|
|
714
714
|
case "dialog": {
|
|
715
|
-
if (!
|
|
716
|
-
const { dialogId:
|
|
717
|
-
if (!
|
|
718
|
-
console.error("Такого элемента в DOM не существует",
|
|
715
|
+
if (!Kt) return;
|
|
716
|
+
const { dialogId: r } = e ?? {}, n = document.getElementById(r);
|
|
717
|
+
if (!n) {
|
|
718
|
+
console.error("Такого элемента в DOM не существует", r);
|
|
719
719
|
break;
|
|
720
720
|
}
|
|
721
|
-
|
|
721
|
+
n.show();
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
|
-
}, [e]),
|
|
725
|
-
const
|
|
726
|
-
return /* @__PURE__ */ o.jsx(gt, { className: a(t), onClick:
|
|
724
|
+
}, [e]), Y = ({ handlerOptions: e, className: t, ...r }) => {
|
|
725
|
+
const n = Mr(e);
|
|
726
|
+
return /* @__PURE__ */ o.jsx(gt, { className: a(t), onClick: n, ...r, children: r.children });
|
|
727
727
|
}, _r = E(
|
|
728
728
|
"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",
|
|
729
729
|
{
|
|
@@ -738,20 +738,20 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
738
738
|
), Sr = ({
|
|
739
739
|
subtitle: e,
|
|
740
740
|
title: t,
|
|
741
|
-
img:
|
|
742
|
-
mobileImg:
|
|
741
|
+
img: r,
|
|
742
|
+
mobileImg: n,
|
|
743
743
|
classes: i,
|
|
744
744
|
withButton: d,
|
|
745
745
|
button: l,
|
|
746
|
-
variant:
|
|
746
|
+
variant: m,
|
|
747
747
|
color: x
|
|
748
748
|
}) => {
|
|
749
|
-
const { isDesktop:
|
|
749
|
+
const { isDesktop: u } = at();
|
|
750
750
|
return /* @__PURE__ */ o.jsxs(
|
|
751
751
|
"li",
|
|
752
752
|
{
|
|
753
753
|
style: { backgroundColor: x ?? "#F3F4F7" },
|
|
754
|
-
className: a(_r({ variant:
|
|
754
|
+
className: a(_r({ variant: m }), { "pb-0": n }, { "pb-12": !n }, i == null ? void 0 : i.root),
|
|
755
755
|
children: [
|
|
756
756
|
/* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", i == null ? void 0 : i.wrapper), children: [
|
|
757
757
|
/* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4", i == null ? void 0 : i.textContainer), children: [
|
|
@@ -764,9 +764,9 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
764
764
|
}
|
|
765
765
|
)
|
|
766
766
|
] }),
|
|
767
|
-
d &&
|
|
767
|
+
d && u && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ o.jsx(Y, { intent: "primary", className: a("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...l })
|
|
768
768
|
] }),
|
|
769
|
-
(
|
|
769
|
+
(n || u) && r && /* @__PURE__ */ o.jsx("div", { className: a("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: r && "url" in r && O.isObject(r) ? /* @__PURE__ */ o.jsx("img", { className: a("h-[246px] object-cover", i == null ? void 0 : i.img), src: r.url, alt: r.alt }) : r })
|
|
770
770
|
]
|
|
771
771
|
},
|
|
772
772
|
t
|
|
@@ -779,37 +779,37 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
779
779
|
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
780
780
|
}
|
|
781
781
|
}
|
|
782
|
-
}),
|
|
782
|
+
}), Yt = ({ headline: e, details: t, variant: r, classes: n }) => /* @__PURE__ */ o.jsx("section", { id: j.benefit, "data-test-id": j.benefit, className: a("pb-20", n == null ? void 0 : n.root), children: /* @__PURE__ */ o.jsxs(B, { className: n == null ? void 0 : n.container, children: [
|
|
783
783
|
/* @__PURE__ */ o.jsx(
|
|
784
784
|
"div",
|
|
785
785
|
{
|
|
786
786
|
dangerouslySetInnerHTML: { __html: e },
|
|
787
|
-
className: a("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m",
|
|
787
|
+
className: a("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", n == null ? void 0 : n.heading)
|
|
788
788
|
}
|
|
789
789
|
),
|
|
790
|
-
/* @__PURE__ */ o.jsx("ul", { className: a(Tr({ variant:
|
|
790
|
+
/* @__PURE__ */ o.jsx("ul", { className: a(Tr({ variant: r }), n == null ? void 0 : n.grid), children: t == null ? void 0 : t.map((i) => /* @__PURE__ */ o.jsx(Sr, { variant: r, classes: n == null ? void 0 : n.item, ...i }, i.title)) })
|
|
791
791
|
] }) }), Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
792
792
|
__proto__: null,
|
|
793
|
-
Benefit:
|
|
794
|
-
default:
|
|
793
|
+
Benefit: Yt,
|
|
794
|
+
default: Yt
|
|
795
795
|
}, Symbol.toStringTag, { value: "Module" })), Fr = ({ variant: e, details: t }) => {
|
|
796
796
|
switch (e) {
|
|
797
797
|
case "withButton":
|
|
798
|
-
return /* @__PURE__ */ o.jsx(
|
|
798
|
+
return /* @__PURE__ */ o.jsx(Y, { ...t });
|
|
799
799
|
case "withPhone":
|
|
800
800
|
return /* @__PURE__ */ o.jsx(je, { classes: { root: "items-end" }, ...t, phone: wt(t.phone) });
|
|
801
801
|
default:
|
|
802
802
|
return null;
|
|
803
803
|
}
|
|
804
|
-
},
|
|
805
|
-
const { logoPath: t = "/", logoType:
|
|
804
|
+
}, Jt = (e) => {
|
|
805
|
+
const { logoPath: t = "/", logoType: r = "main", classes: n } = e;
|
|
806
806
|
return /* @__PURE__ */ o.jsx(
|
|
807
807
|
"header",
|
|
808
808
|
{
|
|
809
809
|
id: j.header,
|
|
810
810
|
"data-test-id": j.header,
|
|
811
|
-
className: a("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]",
|
|
812
|
-
children: /* @__PURE__ */ o.jsx(B, { className: a(
|
|
811
|
+
className: a("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", n == null ? void 0 : n.root),
|
|
812
|
+
children: /* @__PURE__ */ o.jsx(B, { className: a(n == null ? void 0 : n.container), children: /* @__PURE__ */ o.jsxs("div", { className: a("flex items-center justify-between gap-5", n == null ? void 0 : n.wrapper), children: [
|
|
813
813
|
/* @__PURE__ */ o.jsx(
|
|
814
814
|
"a",
|
|
815
815
|
{
|
|
@@ -819,9 +819,9 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
819
819
|
rel: "noreferrer",
|
|
820
820
|
className: a(
|
|
821
821
|
"flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
822
|
-
|
|
822
|
+
n == null ? void 0 : n.logo
|
|
823
823
|
),
|
|
824
|
-
children: We[
|
|
824
|
+
children: We[r]
|
|
825
825
|
}
|
|
826
826
|
),
|
|
827
827
|
Fr(e)
|
|
@@ -830,29 +830,29 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
830
830
|
);
|
|
831
831
|
}, Br = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
832
832
|
__proto__: null,
|
|
833
|
-
Header:
|
|
834
|
-
default:
|
|
833
|
+
Header: Jt,
|
|
834
|
+
default: Jt
|
|
835
835
|
}, Symbol.toStringTag, { value: "Module" })), Er = ({
|
|
836
836
|
headTitle: e,
|
|
837
837
|
subtitle: t,
|
|
838
|
-
buttonsConfig:
|
|
839
|
-
advantages:
|
|
838
|
+
buttonsConfig: r,
|
|
839
|
+
advantages: n,
|
|
840
840
|
classes: i,
|
|
841
841
|
imgMobile: d,
|
|
842
842
|
imgDesktop: l,
|
|
843
|
-
imgAlt:
|
|
843
|
+
imgAlt: m,
|
|
844
844
|
color: x,
|
|
845
|
-
renderImage:
|
|
845
|
+
renderImage: u
|
|
846
846
|
}) => {
|
|
847
847
|
var N;
|
|
848
|
-
const { isDesktop: p, isMobile: f } = at(), { primary: y, secondary: c } =
|
|
848
|
+
const { isDesktop: p, isMobile: f } = at(), { primary: y, secondary: c } = r || {}, v = (S) => u ? u(S) : /* @__PURE__ */ o.jsx("img", { ...S }), g = /* @__PURE__ */ o.jsx(
|
|
849
849
|
"div",
|
|
850
850
|
{
|
|
851
851
|
className: a(
|
|
852
852
|
"flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
|
|
853
853
|
i == null ? void 0 : i.advantageContainer
|
|
854
854
|
),
|
|
855
|
-
children: (
|
|
855
|
+
children: (n == null ? void 0 : n.details) && ((N = n == null ? void 0 : n.details) == null ? void 0 : N.items.length) > 0 && /* @__PURE__ */ o.jsx(St, { ...n })
|
|
856
856
|
}
|
|
857
857
|
);
|
|
858
858
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
@@ -864,9 +864,9 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
864
864
|
style: { backgroundColor: x ?? "#d9edff" },
|
|
865
865
|
className: a("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
|
|
866
866
|
children: [
|
|
867
|
-
/* @__PURE__ */ o.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: v(f ? { src: d.src, alt:
|
|
867
|
+
/* @__PURE__ */ o.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: v(f ? { src: d.src, alt: m, className: a("h-full w-full object-cover object-center") } : {
|
|
868
868
|
src: l.src,
|
|
869
|
-
alt:
|
|
869
|
+
alt: m,
|
|
870
870
|
className: a("h-full w-full object-cover object-center")
|
|
871
871
|
}) }),
|
|
872
872
|
/* @__PURE__ */ o.jsxs(B, { className: a("h-full", i == null ? void 0 : i.container), children: [
|
|
@@ -897,7 +897,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
897
897
|
),
|
|
898
898
|
children: [
|
|
899
899
|
y.enabled && /* @__PURE__ */ o.jsx(
|
|
900
|
-
|
|
900
|
+
Y,
|
|
901
901
|
{
|
|
902
902
|
className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
903
903
|
size: "lg",
|
|
@@ -906,7 +906,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
906
906
|
}
|
|
907
907
|
),
|
|
908
908
|
(c == null ? void 0 : c.enabled) && /* @__PURE__ */ o.jsx(
|
|
909
|
-
|
|
909
|
+
Y,
|
|
910
910
|
{
|
|
911
911
|
intent: "secondary",
|
|
912
912
|
className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
|
|
@@ -917,27 +917,27 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
917
917
|
}
|
|
918
918
|
)
|
|
919
919
|
] }) }),
|
|
920
|
-
p && (
|
|
920
|
+
p && (n == null ? void 0 : n.enabled) && g
|
|
921
921
|
] })
|
|
922
922
|
]
|
|
923
923
|
}
|
|
924
924
|
),
|
|
925
|
-
f && (
|
|
925
|
+
f && (n == null ? void 0 : n.enabled) && g
|
|
926
926
|
] });
|
|
927
|
-
},
|
|
927
|
+
}, Gt = ({
|
|
928
928
|
headTitle: e,
|
|
929
929
|
subtitle: t,
|
|
930
|
-
buttonsConfig:
|
|
931
|
-
advantages:
|
|
930
|
+
buttonsConfig: r,
|
|
931
|
+
advantages: n,
|
|
932
932
|
classes: i,
|
|
933
933
|
imgMobile: d,
|
|
934
934
|
imgDesktop: l,
|
|
935
|
-
imgAlt:
|
|
935
|
+
imgAlt: m,
|
|
936
936
|
color: x,
|
|
937
|
-
renderImage:
|
|
937
|
+
renderImage: u
|
|
938
938
|
}) => {
|
|
939
939
|
var c, v;
|
|
940
|
-
const { primary: p, secondary: f } =
|
|
940
|
+
const { primary: p, secondary: f } = r || {}, y = (g) => u ? u(g) : /* @__PURE__ */ o.jsx("img", { ...g });
|
|
941
941
|
return /* @__PURE__ */ o.jsxs(
|
|
942
942
|
"section",
|
|
943
943
|
{
|
|
@@ -975,7 +975,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
975
975
|
),
|
|
976
976
|
children: [
|
|
977
977
|
p.enabled && /* @__PURE__ */ o.jsx(
|
|
978
|
-
|
|
978
|
+
Y,
|
|
979
979
|
{
|
|
980
980
|
className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
981
981
|
size: "lg",
|
|
@@ -984,7 +984,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
984
984
|
}
|
|
985
985
|
),
|
|
986
986
|
(f == null ? void 0 : f.enabled) && /* @__PURE__ */ o.jsx(
|
|
987
|
-
|
|
987
|
+
Y,
|
|
988
988
|
{
|
|
989
989
|
intent: "secondary",
|
|
990
990
|
className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
|
|
@@ -1002,7 +1002,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1002
1002
|
"relative flex h-[356px] justify-center desktop:hidden desktop:h-[456px] desktop:w-[550px]",
|
|
1003
1003
|
i == null ? void 0 : i.imageContainer
|
|
1004
1004
|
),
|
|
1005
|
-
children: y({ src: d.src, alt:
|
|
1005
|
+
children: y({ src: d.src, alt: m, className: a("h-full object-contain") })
|
|
1006
1006
|
}
|
|
1007
1007
|
),
|
|
1008
1008
|
/* @__PURE__ */ o.jsx(
|
|
@@ -1014,62 +1014,62 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1014
1014
|
),
|
|
1015
1015
|
children: y({
|
|
1016
1016
|
src: l.src,
|
|
1017
|
-
alt:
|
|
1017
|
+
alt: m,
|
|
1018
1018
|
className: a("h-full object-contain")
|
|
1019
1019
|
})
|
|
1020
1020
|
}
|
|
1021
1021
|
)
|
|
1022
1022
|
] }),
|
|
1023
|
-
(
|
|
1023
|
+
(n == null ? void 0 : n.enabled) && /* @__PURE__ */ o.jsx(
|
|
1024
1024
|
"div",
|
|
1025
1025
|
{
|
|
1026
1026
|
className: a(
|
|
1027
1027
|
"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",
|
|
1028
1028
|
i == null ? void 0 : i.advantageContainer
|
|
1029
1029
|
),
|
|
1030
|
-
children: (
|
|
1030
|
+
children: (n == null ? void 0 : n.details) && ((c = n == null ? void 0 : n.details) == null ? void 0 : c.items.length) > 0 && /* @__PURE__ */ o.jsx(St, { ...n })
|
|
1031
1031
|
}
|
|
1032
1032
|
)
|
|
1033
1033
|
] }),
|
|
1034
|
-
(
|
|
1034
|
+
(n == null ? void 0 : n.enabled) && /* @__PURE__ */ o.jsx(
|
|
1035
1035
|
"div",
|
|
1036
1036
|
{
|
|
1037
1037
|
className: a(
|
|
1038
1038
|
"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",
|
|
1039
1039
|
i == null ? void 0 : i.advantageContainer
|
|
1040
1040
|
),
|
|
1041
|
-
children: (
|
|
1041
|
+
children: (n == null ? void 0 : n.details) && ((v = n == null ? void 0 : n.details) == null ? void 0 : v.items.length) > 0 && /* @__PURE__ */ o.jsx(St, { ...n })
|
|
1042
1042
|
}
|
|
1043
1043
|
)
|
|
1044
1044
|
]
|
|
1045
1045
|
}
|
|
1046
1046
|
);
|
|
1047
|
-
},
|
|
1047
|
+
}, st = ({ variant: e, ...t }) => {
|
|
1048
1048
|
switch (e) {
|
|
1049
1049
|
case "separateImg":
|
|
1050
|
-
return /* @__PURE__ */ o.jsx(
|
|
1050
|
+
return /* @__PURE__ */ o.jsx(Gt, { ...t });
|
|
1051
1051
|
case "fullImg":
|
|
1052
1052
|
return /* @__PURE__ */ o.jsx(Er, { ...t });
|
|
1053
1053
|
default:
|
|
1054
|
-
return /* @__PURE__ */ o.jsx(
|
|
1054
|
+
return /* @__PURE__ */ o.jsx(Gt, { ...t });
|
|
1055
1055
|
}
|
|
1056
1056
|
}, Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1057
1057
|
__proto__: null,
|
|
1058
|
-
Banner:
|
|
1059
|
-
default:
|
|
1058
|
+
Banner: st,
|
|
1059
|
+
default: st
|
|
1060
1060
|
}, Symbol.toStringTag, { value: "Module" })), St = ({ details: e, classes: t }) => {
|
|
1061
|
-
const { variant:
|
|
1061
|
+
const { variant: r, items: n } = e ?? {};
|
|
1062
1062
|
return /* @__PURE__ */ o.jsx(
|
|
1063
1063
|
"div",
|
|
1064
1064
|
{
|
|
1065
1065
|
id: "advantages",
|
|
1066
1066
|
className: a(
|
|
1067
1067
|
"z-10 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",
|
|
1068
|
-
{ "desktop:max-w-[860px]":
|
|
1069
|
-
{ "desktop:max-w-[1140px]":
|
|
1068
|
+
{ "desktop:max-w-[860px]": r === "threeCards" },
|
|
1069
|
+
{ "desktop:max-w-[1140px]": r === "fourCards" },
|
|
1070
1070
|
t == null ? void 0 : t.root
|
|
1071
1071
|
),
|
|
1072
|
-
children:
|
|
1072
|
+
children: n == null ? void 0 : n.map(({ title: i, description: d }) => /* @__PURE__ */ o.jsxs(
|
|
1073
1073
|
"div",
|
|
1074
1074
|
{
|
|
1075
1075
|
className: a(
|
|
@@ -1085,27 +1085,27 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1085
1085
|
))
|
|
1086
1086
|
}
|
|
1087
1087
|
);
|
|
1088
|
-
}, Dr = ({ socialsLinks: e, classes: t }) => /* @__PURE__ */ o.jsx("div", { className: a("mt-4 flex items-center gap-2 desktop:mt-6", t == null ? void 0 : t.socialRoot), children: e == null ? void 0 : e.map(({ iconName:
|
|
1088
|
+
}, Dr = ({ socialsLinks: e, classes: t }) => /* @__PURE__ */ o.jsx("div", { className: a("mt-4 flex items-center gap-2 desktop:mt-6", t == null ? void 0 : t.socialRoot), children: e == null ? void 0 : e.map(({ iconName: r, href: n }) => /* @__PURE__ */ o.jsx(
|
|
1089
1089
|
"a",
|
|
1090
1090
|
{
|
|
1091
1091
|
className: a("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", t == null ? void 0 : t.socialLink),
|
|
1092
|
-
href:
|
|
1093
|
-
"aria-label":
|
|
1094
|
-
children: /* @__PURE__ */ o.jsx(b, { name:
|
|
1092
|
+
href: n,
|
|
1093
|
+
"aria-label": r.replace("social/", ""),
|
|
1094
|
+
children: /* @__PURE__ */ o.jsx(b, { name: r, className: a("h-full w-full text-icon-white", t == null ? void 0 : t.socialIcon) })
|
|
1095
1095
|
},
|
|
1096
|
-
|
|
1097
|
-
)) }), Hr = ({ phones: e, classes: t }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4 desktop:items-end", t == null ? void 0 : t.phonesRoot), children: e == null ? void 0 : e.map(({ phone:
|
|
1096
|
+
n
|
|
1097
|
+
)) }), Hr = ({ phones: e, classes: t }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4 desktop:items-end", t == null ? void 0 : t.phonesRoot), children: e == null ? void 0 : e.map(({ phone: r, text: n }) => /* @__PURE__ */ o.jsx(
|
|
1098
1098
|
je,
|
|
1099
1099
|
{
|
|
1100
|
-
phone: wt(
|
|
1101
|
-
text:
|
|
1100
|
+
phone: wt(r),
|
|
1101
|
+
text: n,
|
|
1102
1102
|
classes: {
|
|
1103
1103
|
root: a(t == null ? void 0 : t.phoneWrapper),
|
|
1104
1104
|
text: a("text-color-footer", t == null ? void 0 : t.phoneText),
|
|
1105
1105
|
link: a("text-color-white mobile:m-0", t == null ? void 0 : t.phoneLink)
|
|
1106
1106
|
}
|
|
1107
1107
|
},
|
|
1108
|
-
|
|
1108
|
+
r
|
|
1109
1109
|
)) }), Rr = ({ classes: e, details: t }) => /* @__PURE__ */ o.jsx(
|
|
1110
1110
|
"div",
|
|
1111
1111
|
{
|
|
@@ -1114,8 +1114,8 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1114
1114
|
e == null ? void 0 : e.navRoot
|
|
1115
1115
|
),
|
|
1116
1116
|
children: t == null ? void 0 : t.map(
|
|
1117
|
-
({ column:
|
|
1118
|
-
/* @__PURE__ */ o.jsx("div", { className: a("desk-body-medium-l text-color-white", e == null ? void 0 : e.navLabel), children:
|
|
1117
|
+
({ column: r }) => r == null ? void 0 : r.map(({ groupLabel: n, links: i }) => /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4", e == null ? void 0 : e.navGroup), children: [
|
|
1118
|
+
/* @__PURE__ */ o.jsx("div", { className: a("desk-body-medium-l text-color-white", e == null ? void 0 : e.navLabel), children: n }),
|
|
1119
1119
|
/* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-1", e == null ? void 0 : e.navLinks), children: i == null ? void 0 : i.map(({ path: d, label: l }) => /* @__PURE__ */ o.jsx(
|
|
1120
1120
|
jt,
|
|
1121
1121
|
{
|
|
@@ -1130,7 +1130,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1130
1130
|
},
|
|
1131
1131
|
l
|
|
1132
1132
|
)) })
|
|
1133
|
-
] },
|
|
1133
|
+
] }, n))
|
|
1134
1134
|
)
|
|
1135
1135
|
}
|
|
1136
1136
|
), zr = ({ text: e, classes: t }) => /* @__PURE__ */ o.jsx(
|
|
@@ -1162,16 +1162,16 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1162
1162
|
children: "Карта сайта"
|
|
1163
1163
|
}
|
|
1164
1164
|
), Vr = ({ text: e, classes: t }) => {
|
|
1165
|
-
const [
|
|
1165
|
+
const [r, n] = ut.useState(!1), [i, d] = ut.useState(!1), l = ut.useRef(null);
|
|
1166
1166
|
return ut.useEffect(() => {
|
|
1167
|
-
const
|
|
1168
|
-
|
|
1167
|
+
const m = l.current;
|
|
1168
|
+
m && d(m.scrollHeight > m.clientHeight);
|
|
1169
1169
|
}, []), /* @__PURE__ */ o.jsxs("div", { className: a("mt-8 flex flex-col gap-4", t == null ? void 0 : t.ligalRoot), children: [
|
|
1170
1170
|
/* @__PURE__ */ o.jsx(
|
|
1171
1171
|
"div",
|
|
1172
1172
|
{
|
|
1173
1173
|
ref: l,
|
|
1174
|
-
className: a("desk-body-regular-m text-color-footer", { "line-clamp-3": !
|
|
1174
|
+
className: a("desk-body-regular-m text-color-footer", { "line-clamp-3": !r }, t == null ? void 0 : t.ligalText),
|
|
1175
1175
|
dangerouslySetInnerHTML: { __html: e }
|
|
1176
1176
|
}
|
|
1177
1177
|
),
|
|
@@ -1180,7 +1180,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1180
1180
|
{
|
|
1181
1181
|
tabIndex: 0,
|
|
1182
1182
|
role: "button",
|
|
1183
|
-
onClick: () =>
|
|
1183
|
+
onClick: () => n((m) => !m),
|
|
1184
1184
|
className: a(
|
|
1185
1185
|
"desk-body-regular-l w-max cursor-pointer font-medium text-color-footer transition-colors hover:text-color-white",
|
|
1186
1186
|
t == null ? void 0 : t.ligalButton
|
|
@@ -1192,8 +1192,8 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1192
1192
|
}, te = ({
|
|
1193
1193
|
socialsLinks: e,
|
|
1194
1194
|
phones: t,
|
|
1195
|
-
ligal:
|
|
1196
|
-
copyright:
|
|
1195
|
+
ligal: r,
|
|
1196
|
+
copyright: n,
|
|
1197
1197
|
classes: i,
|
|
1198
1198
|
details: d,
|
|
1199
1199
|
siteMap: l = !0
|
|
@@ -1221,7 +1221,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1221
1221
|
}
|
|
1222
1222
|
),
|
|
1223
1223
|
!O.isArrayEmpty(d) && /* @__PURE__ */ o.jsx(Rr, { details: d, classes: i == null ? void 0 : i.navLinks }),
|
|
1224
|
-
|
|
1224
|
+
r.enabled && /* @__PURE__ */ o.jsx(Vr, { text: r.text }),
|
|
1225
1225
|
/* @__PURE__ */ o.jsxs(
|
|
1226
1226
|
"div",
|
|
1227
1227
|
{
|
|
@@ -1230,7 +1230,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1230
1230
|
i == null ? void 0 : i.footerBottom
|
|
1231
1231
|
),
|
|
1232
1232
|
children: [
|
|
1233
|
-
|
|
1233
|
+
n.enabled && /* @__PURE__ */ o.jsx(zr, { text: n.text, classes: i == null ? void 0 : i.copyright }),
|
|
1234
1234
|
l && /* @__PURE__ */ o.jsx(Qr, { classes: i == null ? void 0 : i.siteMap })
|
|
1235
1235
|
]
|
|
1236
1236
|
}
|
|
@@ -1241,8 +1241,8 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1241
1241
|
__proto__: null,
|
|
1242
1242
|
Footer: te,
|
|
1243
1243
|
default: te
|
|
1244
|
-
}, Symbol.toStringTag, { value: "Module" })), Ar = ({ classes: e, index: t, variant:
|
|
1245
|
-
const d =
|
|
1244
|
+
}, Symbol.toStringTag, { value: "Module" })), Ar = ({ classes: e, index: t, variant: r, title: n, description: i }) => {
|
|
1245
|
+
const d = r === "withTitleAndDescription" && n;
|
|
1246
1246
|
return /* @__PURE__ */ o.jsxs(
|
|
1247
1247
|
"div",
|
|
1248
1248
|
{
|
|
@@ -1265,7 +1265,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1265
1265
|
d && /* @__PURE__ */ o.jsx(
|
|
1266
1266
|
"div",
|
|
1267
1267
|
{
|
|
1268
|
-
dangerouslySetInnerHTML: { __html:
|
|
1268
|
+
dangerouslySetInnerHTML: { __html: n },
|
|
1269
1269
|
className: a("mob-title-bold-m text-color-dark desktop:desk-title-bold-s", e == null ? void 0 : e.title)
|
|
1270
1270
|
}
|
|
1271
1271
|
),
|
|
@@ -1280,16 +1280,16 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1280
1280
|
]
|
|
1281
1281
|
}
|
|
1282
1282
|
);
|
|
1283
|
-
}, ee = ({ headline: e, details: t, variant:
|
|
1284
|
-
/* @__PURE__ */ o.jsx(H, { as: "h2", className: a("text-color-dark",
|
|
1283
|
+
}, ee = ({ headline: e, details: t, variant: r, classes: n }) => /* @__PURE__ */ o.jsx("section", { id: j.stepper, "data-test-id": j.stepper, className: n == null ? void 0 : n.root, children: /* @__PURE__ */ o.jsx(B, { className: n == null ? void 0 : n.container, children: /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-6 desktop:items-start desktop:gap-12", n == null ? void 0 : n.wrapper), children: [
|
|
1284
|
+
/* @__PURE__ */ o.jsx(H, { as: "h2", className: a("text-color-dark", n == null ? void 0 : n.headline), children: e }),
|
|
1285
1285
|
/* @__PURE__ */ o.jsx(
|
|
1286
1286
|
"div",
|
|
1287
1287
|
{
|
|
1288
1288
|
className: a(
|
|
1289
1289
|
"flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
|
|
1290
|
-
|
|
1290
|
+
n == null ? void 0 : n.stepsWrapper
|
|
1291
1291
|
),
|
|
1292
|
-
children: t == null ? void 0 : t.map((i, d) => /* @__PURE__ */ o.jsx(Ar, { variant:
|
|
1292
|
+
children: t == null ? void 0 : t.map((i, d) => /* @__PURE__ */ o.jsx(Ar, { variant: r, ...i, index: d + 1, classes: n == null ? void 0 : n.step }, i.description))
|
|
1293
1293
|
}
|
|
1294
1294
|
)
|
|
1295
1295
|
] }) }) }), Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1344,7 +1344,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1344
1344
|
class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
1345
1345
|
}
|
|
1346
1346
|
]
|
|
1347
|
-
}),
|
|
1347
|
+
}), Kr = E("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
|
|
1348
1348
|
variants: {
|
|
1349
1349
|
intent: {
|
|
1350
1350
|
twoItems: 'last:border-none relative desktop:first:after:top-1/2 desktop:first:after:-translate-y-1/2 desktop:first:after:right-0 desktop:first:after:content-[""] desktop:first:after:block desktop:first:after:absolute desktop:first:after:w-[1px] desktop:first:after:h-[64px] desktop:first:after:bg-color-blue-grey-500 desktop:ml-8 desktop:pr-8 desktop:first:ml-0 desktop:last:pr-0 desktop:pb-3',
|
|
@@ -1354,7 +1354,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1354
1354
|
defaultVariants: {
|
|
1355
1355
|
intent: "twoItems"
|
|
1356
1356
|
}
|
|
1357
|
-
}),
|
|
1357
|
+
}), Zr = E("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
|
|
1358
1358
|
variants: {
|
|
1359
1359
|
intent: {
|
|
1360
1360
|
twoItems: "desktop:h-[232px] desktop:w-[500px]",
|
|
@@ -1380,32 +1380,32 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1380
1380
|
class: "desktop:h-[272px] desktop:w-[500px]"
|
|
1381
1381
|
}
|
|
1382
1382
|
]
|
|
1383
|
-
}),
|
|
1383
|
+
}), Xr = ({ data: e, intent: t }) => {
|
|
1384
1384
|
const {
|
|
1385
|
-
title:
|
|
1386
|
-
description:
|
|
1385
|
+
title: r,
|
|
1386
|
+
description: n,
|
|
1387
1387
|
popover: i = {
|
|
1388
1388
|
enabled: !1
|
|
1389
1389
|
}
|
|
1390
1390
|
} = e;
|
|
1391
|
-
return /* @__PURE__ */ o.jsx("li", { className: a(
|
|
1391
|
+
return /* @__PURE__ */ o.jsx("li", { className: a(Kr({ intent: t })), children: /* @__PURE__ */ o.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
1392
1392
|
/* @__PURE__ */ o.jsxs("div", { className: a("mb-2 flex items-center gap-2"), children: [
|
|
1393
|
-
/* @__PURE__ */ o.jsx("h4", { className: a("mob-title-bold-m text-color-dark"), children:
|
|
1393
|
+
/* @__PURE__ */ o.jsx("h4", { className: a("mob-title-bold-m text-color-dark"), children: r }),
|
|
1394
1394
|
i.enabled && /* @__PURE__ */ o.jsx(Tt, { triggerElement: /* @__PURE__ */ o.jsx(b, { className: a("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i.text })
|
|
1395
1395
|
] }),
|
|
1396
|
-
/* @__PURE__ */ o.jsx("div", { className: a("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html:
|
|
1396
|
+
/* @__PURE__ */ o.jsx("div", { className: a("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: n } })
|
|
1397
1397
|
] }) });
|
|
1398
|
-
}, It = ({ intent: e, headline: t, desktopHidden:
|
|
1398
|
+
}, It = ({ intent: e, headline: t, desktopHidden: r = !1, mobileHidden: n = !1 }) => /* @__PURE__ */ o.jsx("h2", { className: a(qr({ intent: e, desktopHidden: r, mobileHidden: n })), children: t }), Yr = ({ details: e, intent: t, withButton: r }) => /* @__PURE__ */ o.jsx("ul", { className: a(Ur({ intent: t, withButton: r })), children: e == null ? void 0 : e.map((n, i) => /* @__PURE__ */ o.jsx(Xr, { intent: t, data: n }, i)) }), re = ({
|
|
1399
1399
|
headline: e,
|
|
1400
1400
|
buttonConfig: t,
|
|
1401
|
-
intent:
|
|
1402
|
-
details:
|
|
1401
|
+
intent: r = "twoItems",
|
|
1402
|
+
details: n,
|
|
1403
1403
|
image: i,
|
|
1404
1404
|
classes: d
|
|
1405
1405
|
}) => {
|
|
1406
|
-
const l =
|
|
1406
|
+
const l = r === "fourItems", m = r === "twoItems", x = i && "url" in i && O.isObject(i) ? /* @__PURE__ */ o.jsx("img", { className: "w-full object-contain", alt: i.alt, src: i.url }) : i;
|
|
1407
1407
|
return /* @__PURE__ */ o.jsx("section", { id: j.longBanner, "data-test-id": j.longBanner, className: a(d == null ? void 0 : d.root), children: /* @__PURE__ */ o.jsxs(B, { className: a(d == null ? void 0 : d.container), children: [
|
|
1408
|
-
|
|
1408
|
+
m && /* @__PURE__ */ o.jsx(It, { intent: r, headline: e }),
|
|
1409
1409
|
/* @__PURE__ */ o.jsxs(
|
|
1410
1410
|
"div",
|
|
1411
1411
|
{
|
|
@@ -1414,17 +1414,17 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1414
1414
|
d == null ? void 0 : d.contentContainer
|
|
1415
1415
|
),
|
|
1416
1416
|
children: [
|
|
1417
|
-
l && /* @__PURE__ */ o.jsx(It, { intent:
|
|
1418
|
-
/* @__PURE__ */ o.jsx("div", { className: a(
|
|
1417
|
+
l && /* @__PURE__ */ o.jsx(It, { intent: r, headline: e, desktopHidden: !0 }),
|
|
1418
|
+
/* @__PURE__ */ o.jsx("div", { className: a(Zr({ intent: r, withButton: t == null ? void 0 : t.enabled }), d == null ? void 0 : d.imgContainer), children: x }),
|
|
1419
1419
|
/* @__PURE__ */ o.jsxs(
|
|
1420
1420
|
"div",
|
|
1421
1421
|
{
|
|
1422
1422
|
className: a("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", d == null ? void 0 : d.textWithBtnContainer),
|
|
1423
1423
|
children: [
|
|
1424
|
-
l && /* @__PURE__ */ o.jsx(It, { intent:
|
|
1425
|
-
/* @__PURE__ */ o.jsx(
|
|
1424
|
+
l && /* @__PURE__ */ o.jsx(It, { intent: r, headline: e, mobileHidden: !0 }),
|
|
1425
|
+
/* @__PURE__ */ o.jsx(Yr, { details: n, intent: r, withButton: (t == null ? void 0 : t.enabled) ?? !1 }),
|
|
1426
1426
|
(t == null ? void 0 : t.enabled) && t && /* @__PURE__ */ o.jsx(
|
|
1427
|
-
|
|
1427
|
+
Y,
|
|
1428
1428
|
{
|
|
1429
1429
|
className: a("w-full px-4 desktop:w-max", d == null ? void 0 : d.button),
|
|
1430
1430
|
size: "lg",
|
|
@@ -1439,7 +1439,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1439
1439
|
}
|
|
1440
1440
|
)
|
|
1441
1441
|
] }) });
|
|
1442
|
-
},
|
|
1442
|
+
}, Jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1443
1443
|
__proto__: null,
|
|
1444
1444
|
LongBanner: re,
|
|
1445
1445
|
default: re
|
|
@@ -1447,14 +1447,14 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1447
1447
|
ESIA: "esia",
|
|
1448
1448
|
MOBILE_ID: "mobileId",
|
|
1449
1449
|
COMBINE: "combine"
|
|
1450
|
-
}, Ce = ({ children: e, isLoading: t, classes:
|
|
1450
|
+
}, Ce = ({ children: e, isLoading: t, classes: r, loaderProps: n }) => /* @__PURE__ */ o.jsx(
|
|
1451
1451
|
"div",
|
|
1452
1452
|
{
|
|
1453
1453
|
tabIndex: 0,
|
|
1454
1454
|
className: a(
|
|
1455
1455
|
"relative flex h-[90px] w-full max-w-[328px] items-center justify-center rounded-sm p-2 desktop:max-w-[524px]",
|
|
1456
1456
|
"bg-color-white outline outline-1 outline-warm-grey-200 transition-colors focus-visible:outline-primary-focus",
|
|
1457
|
-
|
|
1457
|
+
r == null ? void 0 : r.root
|
|
1458
1458
|
),
|
|
1459
1459
|
children: /* @__PURE__ */ o.jsx(
|
|
1460
1460
|
"div",
|
|
@@ -1463,13 +1463,13 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1463
1463
|
"flex h-[74px] flex-1 cursor-pointer rounded-sm px-2 py-3 transition-colors desktop:px-4 desktop:py-3",
|
|
1464
1464
|
"bg-color-blue-grey-100 hover:bg-color-blue-grey-200 active:bg-color-blue-grey-300",
|
|
1465
1465
|
{ "items-center": t },
|
|
1466
|
-
|
|
1466
|
+
r == null ? void 0 : r.wrapper
|
|
1467
1467
|
),
|
|
1468
|
-
children: t ? /* @__PURE__ */ o.jsx(qe, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...
|
|
1468
|
+
children: t ? /* @__PURE__ */ o.jsx(qe, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...n }) : e
|
|
1469
1469
|
}
|
|
1470
1470
|
)
|
|
1471
1471
|
}
|
|
1472
|
-
),
|
|
1472
|
+
), Gr = ({ ...e }) => /* @__PURE__ */ o.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
1473
1473
|
/* @__PURE__ */ o.jsx(
|
|
1474
1474
|
"path",
|
|
1475
1475
|
{
|
|
@@ -1497,7 +1497,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1497
1497
|
/* @__PURE__ */ o.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
|
|
1498
1498
|
/* @__PURE__ */ o.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
|
|
1499
1499
|
] }) })
|
|
1500
|
-
] }), Ie = ({ mainLink: e, subLink: t, isMobile:
|
|
1500
|
+
] }), Ie = ({ mainLink: e, subLink: t, isMobile: r, classes: n }) => /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col", n == null ? void 0 : n.linksWrapper), children: [
|
|
1501
1501
|
/* @__PURE__ */ o.jsx(
|
|
1502
1502
|
"a",
|
|
1503
1503
|
{
|
|
@@ -1506,9 +1506,9 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1506
1506
|
rel: "noreferrer",
|
|
1507
1507
|
className: a(
|
|
1508
1508
|
'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',
|
|
1509
|
-
|
|
1509
|
+
n == null ? void 0 : n.linksMainLink
|
|
1510
1510
|
),
|
|
1511
|
-
children:
|
|
1511
|
+
children: r ? e.mobileTitle : e.title
|
|
1512
1512
|
}
|
|
1513
1513
|
),
|
|
1514
1514
|
(t == null ? void 0 : t.text) && (t == null ? void 0 : t.href) && /* @__PURE__ */ o.jsx(
|
|
@@ -1520,19 +1520,19 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1520
1520
|
target: "_blank",
|
|
1521
1521
|
rel: "noreferrer",
|
|
1522
1522
|
classes: {
|
|
1523
|
-
link: a("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary",
|
|
1523
|
+
link: a("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary", n == null ? void 0 : n.linksSubLink)
|
|
1524
1524
|
},
|
|
1525
1525
|
children: t == null ? void 0 : t.text
|
|
1526
1526
|
}
|
|
1527
1527
|
)
|
|
1528
|
-
] }), ne = ({ mainLink: e, subLink: t, isLoading:
|
|
1528
|
+
] }), ne = ({ mainLink: e, subLink: t, isLoading: r, badge: n, loaderProps: i, classes: d }) => {
|
|
1529
1529
|
const { isMobile: l } = at();
|
|
1530
|
-
return /* @__PURE__ */ o.jsx(Ce, { isLoading:
|
|
1530
|
+
return /* @__PURE__ */ o.jsx(Ce, { isLoading: r, loaderProps: i, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
1531
1531
|
"div",
|
|
1532
1532
|
{
|
|
1533
1533
|
className: a(
|
|
1534
1534
|
"flex flex-1 items-center justify-between gap-1",
|
|
1535
|
-
{ "justify-center": !
|
|
1535
|
+
{ "justify-center": !n && l },
|
|
1536
1536
|
d == null ? void 0 : d.innerWrapper
|
|
1537
1537
|
),
|
|
1538
1538
|
children: [
|
|
@@ -1545,31 +1545,31 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1545
1545
|
/* @__PURE__ */ o.jsx(Ie, { mainLink: e, subLink: t, isMobile: l, classes: d == null ? void 0 : d.links }),
|
|
1546
1546
|
/* @__PURE__ */ o.jsx(b, { name: "arrows/arrowRight", className: a("mobile:hidden", d == null ? void 0 : d.arrowIcon) })
|
|
1547
1547
|
] }),
|
|
1548
|
-
|
|
1548
|
+
n && /* @__PURE__ */ o.jsx(Ot, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: n })
|
|
1549
1549
|
]
|
|
1550
1550
|
}
|
|
1551
1551
|
) });
|
|
1552
|
-
}, oe = ({ mainLink: e, subLink: t, isLoading:
|
|
1552
|
+
}, oe = ({ mainLink: e, subLink: t, isLoading: r, badge: n, loaderProps: i, classes: d }) => {
|
|
1553
1553
|
const { isMobile: l } = at();
|
|
1554
|
-
return /* @__PURE__ */ o.jsx(Ce, { isLoading:
|
|
1554
|
+
return /* @__PURE__ */ o.jsx(Ce, { isLoading: r, loaderProps: i, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ o.jsxs(
|
|
1555
1555
|
"div",
|
|
1556
1556
|
{
|
|
1557
1557
|
className: a(
|
|
1558
1558
|
"flex flex-1 items-center justify-between gap-1",
|
|
1559
|
-
{ "justify-center": !
|
|
1559
|
+
{ "justify-center": !n && l },
|
|
1560
1560
|
d == null ? void 0 : d.innerWrapper
|
|
1561
1561
|
),
|
|
1562
1562
|
children: [
|
|
1563
1563
|
/* @__PURE__ */ o.jsxs("div", { className: a("flex items-center gap-1 desktop:gap-4", d == null ? void 0 : d.textContent), children: [
|
|
1564
|
-
/* @__PURE__ */ o.jsx(
|
|
1564
|
+
/* @__PURE__ */ o.jsx(Gr, { className: a("size-7 desktop:size-8", d == null ? void 0 : d.esiaLogo) }),
|
|
1565
1565
|
/* @__PURE__ */ o.jsx(Ie, { mainLink: e, subLink: t, isMobile: l, classes: d == null ? void 0 : d.links }),
|
|
1566
1566
|
/* @__PURE__ */ o.jsx(b, { name: "arrows/arrowRight", className: a("mobile:hidden", d == null ? void 0 : d.arrowIcon) })
|
|
1567
1567
|
] }),
|
|
1568
|
-
|
|
1568
|
+
n && /* @__PURE__ */ o.jsx(Ot, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: n })
|
|
1569
1569
|
]
|
|
1570
1570
|
}
|
|
1571
1571
|
) });
|
|
1572
|
-
},
|
|
1572
|
+
}, sr = (e) => {
|
|
1573
1573
|
switch (e.mode) {
|
|
1574
1574
|
case Mt.ESIA:
|
|
1575
1575
|
return /* @__PURE__ */ o.jsx(oe, { ...e });
|
|
@@ -1577,7 +1577,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1577
1577
|
return /* @__PURE__ */ o.jsx(ne, { ...e });
|
|
1578
1578
|
case Mt.COMBINE:
|
|
1579
1579
|
default:
|
|
1580
|
-
const { esiaConfig: t, mobileIdConfig:
|
|
1580
|
+
const { esiaConfig: t, mobileIdConfig: r, subtitle: n, badge: i, classes: d } = e, l = !n && !i ? ut.Fragment : "div";
|
|
1581
1581
|
return /* @__PURE__ */ o.jsxs(
|
|
1582
1582
|
"div",
|
|
1583
1583
|
{
|
|
@@ -1587,7 +1587,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1587
1587
|
),
|
|
1588
1588
|
children: [
|
|
1589
1589
|
/* @__PURE__ */ o.jsxs(l, { className: a("flex w-full items-center justify-between gap-2", d == null ? void 0 : d.topContent), children: [
|
|
1590
|
-
|
|
1590
|
+
n && /* @__PURE__ */ o.jsx("h5", { className: a("desk-body-regular-l flex flex-1 text-color-dark", d == null ? void 0 : d.subtitle), children: n }),
|
|
1591
1591
|
i && /* @__PURE__ */ o.jsx(Ot, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: i })
|
|
1592
1592
|
] }),
|
|
1593
1593
|
/* @__PURE__ */ o.jsxs("div", { className: a("grid w-full grid-cols-2 gap-2 desktop:gap-4", d == null ? void 0 : d.authWrapper), children: [
|
|
@@ -1605,11 +1605,11 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1605
1605
|
/* @__PURE__ */ o.jsx(
|
|
1606
1606
|
ne,
|
|
1607
1607
|
{
|
|
1608
|
-
...
|
|
1608
|
+
...r,
|
|
1609
1609
|
classes: {
|
|
1610
1610
|
root: "p-0 outline-0 h-[74px]",
|
|
1611
1611
|
arrowIcon: "hidden",
|
|
1612
|
-
...
|
|
1612
|
+
...r.classes
|
|
1613
1613
|
}
|
|
1614
1614
|
}
|
|
1615
1615
|
)
|
|
@@ -1618,7 +1618,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1618
1618
|
}
|
|
1619
1619
|
);
|
|
1620
1620
|
}
|
|
1621
|
-
}, Eo = (e) =>
|
|
1621
|
+
}, Eo = (e) => sr(e), ie = ({ links: e, classes: t }) => /* @__PURE__ */ o.jsx("nav", { className: a("flex flex-col gap-1", t == null ? void 0 : t.linksWrapper), children: e == null ? void 0 : e.map(({ path: r, label: n }) => /* @__PURE__ */ o.jsx(
|
|
1622
1622
|
jt,
|
|
1623
1623
|
{
|
|
1624
1624
|
classes: {
|
|
@@ -1626,17 +1626,17 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1626
1626
|
icon: a(t == null ? void 0 : t.linkIcon)
|
|
1627
1627
|
},
|
|
1628
1628
|
intent: "dark",
|
|
1629
|
-
href:
|
|
1630
|
-
children:
|
|
1629
|
+
href: r,
|
|
1630
|
+
children: n
|
|
1631
1631
|
},
|
|
1632
|
-
|
|
1633
|
-
)) }), tn = ({ groupLabel: e, links: t, mobileAccordionProps:
|
|
1634
|
-
var d, l,
|
|
1632
|
+
r
|
|
1633
|
+
)) }), tn = ({ groupLabel: e, links: t, mobileAccordionProps: r, classes: n }) => {
|
|
1634
|
+
var d, l, m;
|
|
1635
1635
|
const { isMobile: i } = at();
|
|
1636
|
-
return /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-2",
|
|
1636
|
+
return /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-2", n == null ? void 0 : n.columnGroup), children: [
|
|
1637
1637
|
!i && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1638
|
-
/* @__PURE__ */ o.jsx("h5", { className: a("mob-body-medium-l text-color-dark desktop:desk-body-medium-l",
|
|
1639
|
-
/* @__PURE__ */ o.jsx(ie, { links: t, classes:
|
|
1638
|
+
/* @__PURE__ */ o.jsx("h5", { className: a("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", n == null ? void 0 : n.columnGroupHeading), children: e }),
|
|
1639
|
+
/* @__PURE__ */ o.jsx(ie, { links: t, classes: n == null ? void 0 : n.linksList }, "desktop")
|
|
1640
1640
|
] }),
|
|
1641
1641
|
i && /* @__PURE__ */ o.jsx(
|
|
1642
1642
|
dt,
|
|
@@ -1644,19 +1644,19 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1644
1644
|
defaultOpen: !0,
|
|
1645
1645
|
label: e,
|
|
1646
1646
|
icon: /* @__PURE__ */ o.jsx(b, { name: "arrows/arrowRight", className: a("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
|
|
1647
|
-
...
|
|
1647
|
+
...r,
|
|
1648
1648
|
classes: {
|
|
1649
|
-
...
|
|
1649
|
+
...r == null ? void 0 : r.classes,
|
|
1650
1650
|
header: {
|
|
1651
|
-
trigger: a("p-0 bg-color-blue-grey-100", (l = (d =
|
|
1651
|
+
trigger: a("p-0 bg-color-blue-grey-100", (l = (d = r == null ? void 0 : r.classes) == null ? void 0 : d.header) == null ? void 0 : l.trigger)
|
|
1652
1652
|
},
|
|
1653
|
-
contentInner: a("py-2 px-4", (
|
|
1653
|
+
contentInner: a("py-2 px-4", (m = r == null ? void 0 : r.classes) == null ? void 0 : m.contentInner)
|
|
1654
1654
|
},
|
|
1655
|
-
children: /* @__PURE__ */ o.jsx(ie, { links: t, classes:
|
|
1655
|
+
children: /* @__PURE__ */ o.jsx(ie, { links: t, classes: n == null ? void 0 : n.linksList }, "mobile")
|
|
1656
1656
|
}
|
|
1657
1657
|
)
|
|
1658
1658
|
] });
|
|
1659
|
-
}, en = ({ column: e, mobileAccordionProps: t, classes:
|
|
1659
|
+
}, en = ({ column: e, mobileAccordionProps: t, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4 desktop:gap-6", r == null ? void 0 : r.column), children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ o.jsx(tn, { ...t, ...n, classes: r == null ? void 0 : r.columnGroup }, n.groupLabel)) }), rn = E("grid gap-4 grid-cols-1", {
|
|
1660
1660
|
variants: {
|
|
1661
1661
|
variant: {
|
|
1662
1662
|
twoCols: "desktop:grid-cols-2",
|
|
@@ -1670,13 +1670,13 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1670
1670
|
}), de = ({
|
|
1671
1671
|
variant: e,
|
|
1672
1672
|
details: t,
|
|
1673
|
-
headline:
|
|
1674
|
-
mobileAccordionProps:
|
|
1673
|
+
headline: r,
|
|
1674
|
+
mobileAccordionProps: n,
|
|
1675
1675
|
rootAccordionProps: i,
|
|
1676
1676
|
classes: d,
|
|
1677
1677
|
defaultOpen: l
|
|
1678
1678
|
}) => {
|
|
1679
|
-
var
|
|
1679
|
+
var m, x, u;
|
|
1680
1680
|
return /* @__PURE__ */ o.jsx(
|
|
1681
1681
|
"section",
|
|
1682
1682
|
{
|
|
@@ -1687,16 +1687,16 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1687
1687
|
dt,
|
|
1688
1688
|
{
|
|
1689
1689
|
defaultOpen: l,
|
|
1690
|
-
label: /* @__PURE__ */ o.jsx(H, { as: "h4", className: a("text-left", d == null ? void 0 : d.headline), children:
|
|
1690
|
+
label: /* @__PURE__ */ o.jsx(H, { as: "h4", className: a("text-left", d == null ? void 0 : d.headline), children: r }),
|
|
1691
1691
|
...i,
|
|
1692
1692
|
classes: {
|
|
1693
1693
|
...i == null ? void 0 : i.classes,
|
|
1694
1694
|
header: {
|
|
1695
|
-
trigger: a("bg-color-blue-grey-100", (x = (
|
|
1695
|
+
trigger: a("bg-color-blue-grey-100", (x = (m = i == null ? void 0 : i.classes) == null ? void 0 : m.header) == null ? void 0 : x.trigger)
|
|
1696
1696
|
},
|
|
1697
|
-
content: a("max-w-full bg-color-blue-grey-100 relative", (
|
|
1697
|
+
content: a("max-w-full bg-color-blue-grey-100 relative", (u = i == null ? void 0 : i.classes) == null ? void 0 : u.content)
|
|
1698
1698
|
},
|
|
1699
|
-
children: /* @__PURE__ */ o.jsx("div", { className: a(rn({ variant: e }), d == null ? void 0 : d.columnsWrapper), children: t == null ? void 0 : t.map((p, f) => /* @__PURE__ */ o.jsx(en, { ...p, ...
|
|
1699
|
+
children: /* @__PURE__ */ o.jsx("div", { className: a(rn({ variant: e }), d == null ? void 0 : d.columnsWrapper), children: t == null ? void 0 : t.map((p, f) => /* @__PURE__ */ o.jsx(en, { ...p, ...n, classes: d == null ? void 0 : d.column }, f)) })
|
|
1700
1700
|
}
|
|
1701
1701
|
) })
|
|
1702
1702
|
}
|
|
@@ -1705,29 +1705,29 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1705
1705
|
__proto__: null,
|
|
1706
1706
|
InterLinking: de,
|
|
1707
1707
|
default: de
|
|
1708
|
-
}, Symbol.toStringTag, { value: "Module" })), on = ({ tabsNames: e, activeTab: t, setActiveTab:
|
|
1708
|
+
}, Symbol.toStringTag, { value: "Module" })), on = ({ tabsNames: e, activeTab: t, setActiveTab: r, classes: n }) => /* @__PURE__ */ o.jsx("div", { className: a("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", n == null ? void 0 : n.tabs), children: e && e.map((i, d) => /* @__PURE__ */ o.jsx(
|
|
1709
1709
|
"button",
|
|
1710
1710
|
{
|
|
1711
|
-
onClick: () =>
|
|
1711
|
+
onClick: () => r(d),
|
|
1712
1712
|
className: a(
|
|
1713
1713
|
"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",
|
|
1714
1714
|
{
|
|
1715
1715
|
"bg-icon-primary-default text-color-white": t === d
|
|
1716
1716
|
},
|
|
1717
|
-
|
|
1717
|
+
n == null ? void 0 : n.button
|
|
1718
1718
|
),
|
|
1719
1719
|
children: i
|
|
1720
1720
|
},
|
|
1721
1721
|
i
|
|
1722
|
-
)) }), dn = (e) => e.variant === "HTML", an = (e) => e.variant === "DOCUMENTS", ln = (e) => e.variant === "TABLE", un = ({ html: e, config: t, classes:
|
|
1723
|
-
const i = /* @__PURE__ */ o.jsx("div", { className: a(
|
|
1724
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ o.jsx(dt, { label: t == null ? void 0 : t.accordionTitle, ...
|
|
1722
|
+
)) }), dn = (e) => e.variant === "HTML", an = (e) => e.variant === "DOCUMENTS", ln = (e) => e.variant === "TABLE", un = ({ html: e, config: t, classes: r, accordionConfig: n }) => {
|
|
1723
|
+
const i = /* @__PURE__ */ o.jsx("div", { className: a(r == null ? void 0 : r.html), dangerouslySetInnerHTML: { __html: e ?? "" } });
|
|
1724
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ o.jsx(dt, { label: t == null ? void 0 : t.accordionTitle, ...n, children: (n == null ? void 0 : n.children) ?? i }) : i });
|
|
1725
1725
|
}, mn = (e, t) => ({
|
|
1726
|
-
rows: e == null ? void 0 : e.map(({ row:
|
|
1727
|
-
row:
|
|
1726
|
+
rows: e == null ? void 0 : e.map(({ row: r }) => ({
|
|
1727
|
+
row: r == null ? void 0 : r.map((n, i) => {
|
|
1728
1728
|
var d;
|
|
1729
1729
|
return {
|
|
1730
|
-
...
|
|
1730
|
+
...n,
|
|
1731
1731
|
heading: t && ((d = t[i]) == null ? void 0 : d.heading)
|
|
1732
1732
|
};
|
|
1733
1733
|
})
|
|
@@ -1746,7 +1746,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1746
1746
|
threeCols: "grid-cols-3 gap-12"
|
|
1747
1747
|
}
|
|
1748
1748
|
}
|
|
1749
|
-
}), pn = ({ headings: e, columnsVariant: t, classes:
|
|
1749
|
+
}), pn = ({ headings: e, columnsVariant: t, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: a(hn({ columnsVariant: t }), r == null ? void 0 : r.row), children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ o.jsx("div", { className: a("text-color-secondary", r == null ? void 0 : r.cell), children: n == null ? void 0 : n.heading }, n == null ? void 0 : n.heading)) }), fn = E("desktop:grid mobile:hidden items-center", {
|
|
1750
1750
|
variants: {
|
|
1751
1751
|
columnsVariant: {
|
|
1752
1752
|
twoCols: "grid-cols-2 gap-16",
|
|
@@ -1757,7 +1757,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1757
1757
|
separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
|
|
1758
1758
|
}
|
|
1759
1759
|
}
|
|
1760
|
-
}), cn = ({ row: e, tableVariant: t, columnsVariant:
|
|
1760
|
+
}), cn = ({ row: e, tableVariant: t, columnsVariant: r, rowIndex: n, classes: i }) => /* @__PURE__ */ o.jsx("div", { className: a(fn({ columnsVariant: r, tableVariant: t }), { "border-none": n === 0 }, i == null ? void 0 : i.row), children: e == null ? void 0 : e.map(({ cell: d }, l) => /* @__PURE__ */ o.jsx(
|
|
1761
1761
|
"div",
|
|
1762
1762
|
{
|
|
1763
1763
|
className: a("desk-body-regular-l text-color-dark", { "font-medium": l !== 0 }, i == null ? void 0 : i.cell),
|
|
@@ -1771,7 +1771,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1771
1771
|
separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
|
|
1772
1772
|
}
|
|
1773
1773
|
}
|
|
1774
|
-
}), gn = ({ row: e, tableVariant: t, columnsVariant:
|
|
1774
|
+
}), gn = ({ row: e, tableVariant: t, columnsVariant: r, headingsExist: n, classes: i }) => /* @__PURE__ */ o.jsx("div", { className: a(bn({ tableVariant: t }), i == null ? void 0 : i.row), children: e == null ? void 0 : e.map(({ cell: d, heading: l }, m) => /* @__PURE__ */ o.jsxs("div", { className: a("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !n }, i == null ? void 0 : i.wrapper), children: [
|
|
1775
1775
|
l && /* @__PURE__ */ o.jsx("div", { className: a("mob-body-regular-l text-color-secondary", i == null ? void 0 : i.heading), children: l }),
|
|
1776
1776
|
/* @__PURE__ */ o.jsx(
|
|
1777
1777
|
"div",
|
|
@@ -1779,55 +1779,55 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1779
1779
|
className: a(
|
|
1780
1780
|
"mob-body-regular-l text-color-dark",
|
|
1781
1781
|
{
|
|
1782
|
-
"font-medium":
|
|
1782
|
+
"font-medium": m !== 0 && r === "twoCols" || r === "threeCols" || r === "twoCols" && n
|
|
1783
1783
|
},
|
|
1784
1784
|
i == null ? void 0 : i.cell
|
|
1785
1785
|
),
|
|
1786
1786
|
children: d
|
|
1787
1787
|
}
|
|
1788
1788
|
)
|
|
1789
|
-
] },
|
|
1790
|
-
var
|
|
1791
|
-
const d = ((
|
|
1789
|
+
] }, m)) }), jn = ({ tableVariant: e, rows: t, headings: r, columnsVariant: n, classes: i }) => {
|
|
1790
|
+
var m;
|
|
1791
|
+
const d = ((m = mn(t, r)) == null ? void 0 : m.rows) ?? [], l = !!(r && r.length > 0);
|
|
1792
1792
|
return /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1793
|
-
l && /* @__PURE__ */ o.jsx(pn, { headings:
|
|
1794
|
-
t == null ? void 0 : t.map((x,
|
|
1793
|
+
l && /* @__PURE__ */ o.jsx(pn, { headings: r, columnsVariant: n, classes: i == null ? void 0 : i.desktopHeading }),
|
|
1794
|
+
t == null ? void 0 : t.map((x, u) => /* @__PURE__ */ o.jsx(
|
|
1795
1795
|
cn,
|
|
1796
1796
|
{
|
|
1797
|
-
rowIndex:
|
|
1797
|
+
rowIndex: u,
|
|
1798
1798
|
tableVariant: e,
|
|
1799
|
-
columnsVariant:
|
|
1799
|
+
columnsVariant: n,
|
|
1800
1800
|
classes: i == null ? void 0 : i.desktopRow,
|
|
1801
1801
|
...x
|
|
1802
1802
|
},
|
|
1803
|
-
|
|
1803
|
+
u
|
|
1804
1804
|
)),
|
|
1805
|
-
d == null ? void 0 : d.map((x,
|
|
1805
|
+
d == null ? void 0 : d.map((x, u) => /* @__PURE__ */ o.jsx(
|
|
1806
1806
|
gn,
|
|
1807
1807
|
{
|
|
1808
1808
|
headingsExist: l,
|
|
1809
1809
|
tableVariant: e,
|
|
1810
|
-
columnsVariant:
|
|
1810
|
+
columnsVariant: n,
|
|
1811
1811
|
classes: i == null ? void 0 : i.desktopRow,
|
|
1812
1812
|
...x
|
|
1813
1813
|
},
|
|
1814
|
-
|
|
1814
|
+
u
|
|
1815
1815
|
))
|
|
1816
1816
|
] });
|
|
1817
1817
|
}, yn = ({
|
|
1818
1818
|
tableVariant: e,
|
|
1819
1819
|
description: t,
|
|
1820
|
-
columnsVariant:
|
|
1821
|
-
config:
|
|
1820
|
+
columnsVariant: r,
|
|
1821
|
+
config: n,
|
|
1822
1822
|
rows: i,
|
|
1823
1823
|
title: d,
|
|
1824
1824
|
headings: l,
|
|
1825
|
-
accordionConfig:
|
|
1825
|
+
accordionConfig: m,
|
|
1826
1826
|
classes: x
|
|
1827
1827
|
}) => {
|
|
1828
|
-
const
|
|
1828
|
+
const u = /* @__PURE__ */ o.jsxs("div", { className: a(xn({ columnsVariant: r }), x == null ? void 0 : x.wrapper), children: [
|
|
1829
1829
|
d && /* @__PURE__ */ o.jsx(H, { as: "h4", className: a("mb-4 desktop:mb-6", x == null ? void 0 : x.headline), children: d }),
|
|
1830
|
-
/* @__PURE__ */ o.jsx(jn, { tableVariant: e, rows: i, headings: l, columnsVariant:
|
|
1830
|
+
/* @__PURE__ */ o.jsx(jn, { tableVariant: e, rows: i, headings: l, columnsVariant: r }),
|
|
1831
1831
|
t && /* @__PURE__ */ o.jsx(
|
|
1832
1832
|
"div",
|
|
1833
1833
|
{
|
|
@@ -1836,7 +1836,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1836
1836
|
}
|
|
1837
1837
|
)
|
|
1838
1838
|
] });
|
|
1839
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children:
|
|
1839
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: n && (n != null && n.isAccordion) && (n != null && n.accordionTitle) ? /* @__PURE__ */ o.jsx(dt, { label: n == null ? void 0 : n.accordionTitle, ...m, children: (m == null ? void 0 : m.children) || u }) : u });
|
|
1840
1840
|
}, kn = {
|
|
1841
1841
|
documentFilled: "files/documentFilled",
|
|
1842
1842
|
documentOutline: "files/documentOutline"
|
|
@@ -1850,10 +1850,10 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1850
1850
|
defaultVariants: {
|
|
1851
1851
|
iconType: "documentOutline"
|
|
1852
1852
|
}
|
|
1853
|
-
}), vn = ({ label: e, size: t, url:
|
|
1853
|
+
}), vn = ({ label: e, size: t, url: r, iconType: n, classes: i }) => /* @__PURE__ */ o.jsxs(
|
|
1854
1854
|
"a",
|
|
1855
1855
|
{
|
|
1856
|
-
href:
|
|
1856
|
+
href: r,
|
|
1857
1857
|
target: "_blank",
|
|
1858
1858
|
rel: "noreferrer",
|
|
1859
1859
|
tabIndex: 0,
|
|
@@ -1862,7 +1862,7 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1862
1862
|
i == null ? void 0 : i.link
|
|
1863
1863
|
),
|
|
1864
1864
|
children: [
|
|
1865
|
-
/* @__PURE__ */ o.jsx(b, { name: kn[
|
|
1865
|
+
/* @__PURE__ */ o.jsx(b, { name: kn[n], className: a(wn({ iconType: n }), i == null ? void 0 : i.icon) }),
|
|
1866
1866
|
/* @__PURE__ */ o.jsxs("div", { className: a("flex flex-1 flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1867
1867
|
/* @__PURE__ */ o.jsx("p", { className: a("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: e }),
|
|
1868
1868
|
/* @__PURE__ */ o.jsxs("div", { className: a("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
|
|
@@ -1872,65 +1872,65 @@ const hr = P(() => Promise.resolve().then(() => Pr)), pr = P(() => Promise.resol
|
|
|
1872
1872
|
] })
|
|
1873
1873
|
]
|
|
1874
1874
|
}
|
|
1875
|
-
), Nn = ({ docs: e, config: t, title:
|
|
1876
|
-
const
|
|
1877
|
-
|
|
1878
|
-
/* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4", d == null ? void 0 : d.documentsWrapper), children: e == null ? void 0 : e.map((x) => /* @__PURE__ */ o.jsx(vn, { iconType:
|
|
1875
|
+
), Nn = ({ docs: e, config: t, title: r, iconType: n, description: i, classes: d, accordionConfig: l }) => {
|
|
1876
|
+
const m = /* @__PURE__ */ o.jsxs("div", { className: a("flex max-w-[680px] flex-col", d == null ? void 0 : d.wrapper), children: [
|
|
1877
|
+
r && /* @__PURE__ */ o.jsx(H, { as: "h3", className: "mb-4", children: r }),
|
|
1878
|
+
/* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4", d == null ? void 0 : d.documentsWrapper), children: e == null ? void 0 : e.map((x) => /* @__PURE__ */ o.jsx(vn, { iconType: n, ...x, classes: d == null ? void 0 : d.singleDocument }, x.label)) }),
|
|
1879
1879
|
i && /* @__PURE__ */ o.jsx("div", { className: a("mt-4", d == null ? void 0 : d.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
|
|
1880
1880
|
] });
|
|
1881
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ o.jsx(dt, { label: t == null ? void 0 : t.accordionTitle, ...l, children: (l == null ? void 0 : l.children) ||
|
|
1882
|
-
}, Cn = ({ entity: e, classes: t, accordionsConfig:
|
|
1883
|
-
var
|
|
1881
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ o.jsx(dt, { label: t == null ? void 0 : t.accordionTitle, ...l, children: (l == null ? void 0 : l.children) || m }) : m });
|
|
1882
|
+
}, Cn = ({ entity: e, classes: t, accordionsConfig: r }) => {
|
|
1883
|
+
var n, i, d;
|
|
1884
1884
|
switch (!0) {
|
|
1885
1885
|
case dn(e):
|
|
1886
|
-
return (
|
|
1886
|
+
return (n = e.details) == null ? void 0 : n.map((l, m) => {
|
|
1887
1887
|
var x;
|
|
1888
|
-
return /* @__PURE__ */ o.jsx(un, { ...l, accordionConfig:
|
|
1888
|
+
return /* @__PURE__ */ o.jsx(un, { ...l, accordionConfig: r == null ? void 0 : r.htmlAccordion, classes: (x = t == null ? void 0 : t.entities) == null ? void 0 : x.html }, m);
|
|
1889
1889
|
});
|
|
1890
1890
|
case an(e):
|
|
1891
|
-
return (i = e.details) == null ? void 0 : i.map((l,
|
|
1891
|
+
return (i = e.details) == null ? void 0 : i.map((l, m) => {
|
|
1892
1892
|
var x;
|
|
1893
1893
|
return /* @__PURE__ */ o.jsx(
|
|
1894
1894
|
Nn,
|
|
1895
1895
|
{
|
|
1896
|
-
accordionConfig:
|
|
1896
|
+
accordionConfig: r == null ? void 0 : r.documentAccordion,
|
|
1897
1897
|
...l,
|
|
1898
1898
|
classes: (x = t == null ? void 0 : t.entities) == null ? void 0 : x.documents
|
|
1899
1899
|
},
|
|
1900
|
-
|
|
1900
|
+
m
|
|
1901
1901
|
);
|
|
1902
1902
|
});
|
|
1903
1903
|
case ln(e):
|
|
1904
|
-
return (d = e.details) == null ? void 0 : d.map((l,
|
|
1904
|
+
return (d = e.details) == null ? void 0 : d.map((l, m) => {
|
|
1905
1905
|
var x;
|
|
1906
1906
|
return /* @__PURE__ */ o.jsx(
|
|
1907
1907
|
yn,
|
|
1908
1908
|
{
|
|
1909
|
-
accordionConfig:
|
|
1909
|
+
accordionConfig: r == null ? void 0 : r.tableAccordion,
|
|
1910
1910
|
...l,
|
|
1911
1911
|
classes: (x = t == null ? void 0 : t.entities) == null ? void 0 : x.table
|
|
1912
1912
|
},
|
|
1913
|
-
|
|
1913
|
+
m
|
|
1914
1914
|
);
|
|
1915
1915
|
});
|
|
1916
1916
|
default:
|
|
1917
1917
|
return null;
|
|
1918
1918
|
}
|
|
1919
|
-
}, In = ({ entity: e, classes: t, accordionsConfig:
|
|
1920
|
-
var
|
|
1921
|
-
const [i, d] = W(0), l = kt(() => t == null ? void 0 : t.map((
|
|
1922
|
-
return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ o.jsx("section", { id: j.usefulInfo, "data-test-id": j.usefulInfo, className: a(
|
|
1923
|
-
/* @__PURE__ */ o.jsx(H, { className: a(
|
|
1924
|
-
/* @__PURE__ */ o.jsx("div", { className: a("mt-6 flex flex-col gap-2 desktop:mt-12",
|
|
1925
|
-
/* @__PURE__ */ o.jsx("div", { className: a("mt-6 flex flex-col gap-6",
|
|
1919
|
+
}, In = ({ entity: e, classes: t, accordionsConfig: r }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-6", t == null ? void 0 : t.entityWrapper), children: Cn({ entity: e, classes: t, accordionsConfig: r }) }), ae = ({ headline: e, tabs: t, classes: r, accordionsConfig: n }) => {
|
|
1920
|
+
var m, x;
|
|
1921
|
+
const [i, d] = W(0), l = kt(() => t == null ? void 0 : t.map((u) => u == null ? void 0 : u.tabName), [t]) ?? [];
|
|
1922
|
+
return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ o.jsx("section", { id: j.usefulInfo, "data-test-id": j.usefulInfo, className: a(r == null ? void 0 : r.root), children: /* @__PURE__ */ o.jsxs(B, { className: a(r == null ? void 0 : r.container), children: [
|
|
1923
|
+
/* @__PURE__ */ o.jsx(H, { className: a(r == null ? void 0 : r.headline), as: "h2", children: e }),
|
|
1924
|
+
/* @__PURE__ */ o.jsx("div", { className: a("mt-6 flex flex-col gap-2 desktop:mt-12", r == null ? void 0 : r.tabsWrapper), children: /* @__PURE__ */ o.jsx(on, { tabsNames: l, activeTab: i, setActiveTab: d, classes: r == null ? void 0 : r.tabs }) }),
|
|
1925
|
+
/* @__PURE__ */ o.jsx("div", { className: a("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (x = (m = t == null ? void 0 : t[i]) == null ? void 0 : m.contents) == null ? void 0 : x.map((u, p) => /* @__PURE__ */ o.jsx(In, { accordionsConfig: n, ...u, classes: r == null ? void 0 : r.entityClasses }, p)) })
|
|
1926
1926
|
] }) });
|
|
1927
1927
|
}, Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1928
1928
|
__proto__: null,
|
|
1929
1929
|
UsefulInfo: ae,
|
|
1930
1930
|
default: ae
|
|
1931
|
-
}, Symbol.toStringTag, { value: "Module" })), Rt = ({ fields: e, control: t }) => e.map(({ type:
|
|
1932
|
-
const i = ye[
|
|
1933
|
-
return /* @__PURE__ */ Bt(i, { ...
|
|
1931
|
+
}, Symbol.toStringTag, { value: "Module" })), Rt = ({ fields: e, control: t }) => e.map(({ type: r, args: n }) => {
|
|
1932
|
+
const i = ye[r];
|
|
1933
|
+
return /* @__PURE__ */ Bt(i, { ...n, key: n.name, control: t });
|
|
1934
1934
|
});
|
|
1935
1935
|
class _n {
|
|
1936
1936
|
constructor(t) {
|
|
@@ -1944,37 +1944,37 @@ class _n {
|
|
|
1944
1944
|
* @param elements Массив для сбора элементов
|
|
1945
1945
|
* @param as Тип возвращаемых данных ('string' или 'node')
|
|
1946
1946
|
*/
|
|
1947
|
-
traverse(t,
|
|
1947
|
+
traverse(t, r = "string", n) {
|
|
1948
1948
|
const { includeSolidText: i, recursive: d, element: l } = this.options || {};
|
|
1949
1949
|
switch (t.nodeType) {
|
|
1950
1950
|
// если узел - элемент
|
|
1951
1951
|
case this.ELEMENT_NODE:
|
|
1952
|
-
const
|
|
1952
|
+
const m = t, x = m.tagName.toLowerCase();
|
|
1953
1953
|
if (x === "script") {
|
|
1954
1954
|
console.warn("Found script node. For better security this node will be skipped.");
|
|
1955
1955
|
break;
|
|
1956
1956
|
}
|
|
1957
1957
|
if (l && x !== l)
|
|
1958
1958
|
break;
|
|
1959
|
-
if (
|
|
1960
|
-
|
|
1959
|
+
if (r === "node")
|
|
1960
|
+
n.push(t);
|
|
1961
1961
|
else {
|
|
1962
|
-
const
|
|
1963
|
-
|
|
1962
|
+
const u = m.outerHTML.trim();
|
|
1963
|
+
n.push(u);
|
|
1964
1964
|
}
|
|
1965
1965
|
if (d)
|
|
1966
|
-
for (const
|
|
1967
|
-
this.traverse(
|
|
1966
|
+
for (const u of t.childNodes)
|
|
1967
|
+
this.traverse(u, r, n);
|
|
1968
1968
|
break;
|
|
1969
1969
|
// если узел - текстовый и требуется его добавить, добавляем
|
|
1970
1970
|
case this.TEXT_NODE:
|
|
1971
1971
|
if (!i)
|
|
1972
1972
|
break;
|
|
1973
|
-
if (
|
|
1974
|
-
|
|
1973
|
+
if (r === "node")
|
|
1974
|
+
n.push(t);
|
|
1975
1975
|
else {
|
|
1976
|
-
const
|
|
1977
|
-
|
|
1976
|
+
const u = t.textContent;
|
|
1977
|
+
u && n.push(u);
|
|
1978
1978
|
}
|
|
1979
1979
|
break;
|
|
1980
1980
|
}
|
|
@@ -1985,13 +1985,13 @@ class _n {
|
|
|
1985
1985
|
* @param as Тип возвращаемых данных ('string' или 'node')
|
|
1986
1986
|
* @returns Массив тегов или нод
|
|
1987
1987
|
*/
|
|
1988
|
-
async parse(t,
|
|
1989
|
-
const { includeBody:
|
|
1990
|
-
if (
|
|
1991
|
-
this.traverse(l.body,
|
|
1988
|
+
async parse(t, r = "string") {
|
|
1989
|
+
const { includeBody: n } = this.options || {}, i = [], d = [], l = await this.parseFromString(t), m = r === "string" ? i : d;
|
|
1990
|
+
if (n)
|
|
1991
|
+
this.traverse(l.body, r, m);
|
|
1992
1992
|
else
|
|
1993
1993
|
for (const x of l.body.childNodes)
|
|
1994
|
-
this.traverse(x,
|
|
1994
|
+
this.traverse(x, r, m);
|
|
1995
1995
|
return { stringNodes: i, nodes: d };
|
|
1996
1996
|
}
|
|
1997
1997
|
/**
|
|
@@ -2000,8 +2000,8 @@ class _n {
|
|
|
2000
2000
|
* @returns Количество найденных тегов
|
|
2001
2001
|
*/
|
|
2002
2002
|
async countElements(t) {
|
|
2003
|
-
const { stringNodes:
|
|
2004
|
-
return
|
|
2003
|
+
const { stringNodes: r } = await this.parse(t, "string");
|
|
2004
|
+
return r.length;
|
|
2005
2005
|
}
|
|
2006
2006
|
}
|
|
2007
2007
|
const Sn = typeof window < "u";
|
|
@@ -2013,21 +2013,21 @@ class Po extends _n {
|
|
|
2013
2013
|
return Sn ? new DOMParser().parseFromString(t, "text/html") : Promise.reject();
|
|
2014
2014
|
}
|
|
2015
2015
|
}
|
|
2016
|
-
const it = ({ html: e, as: t, ...
|
|
2017
|
-
const
|
|
2018
|
-
return /* @__PURE__ */ o.jsx(
|
|
2019
|
-
}, Tn = (e, t) => e.enabled ? t.map((
|
|
2020
|
-
name:
|
|
2021
|
-
...
|
|
2022
|
-
})) : null, On = ["getFioSchema"], Me = (e, t,
|
|
2023
|
-
const
|
|
2024
|
-
if (O.isNil(
|
|
2016
|
+
const it = ({ html: e, as: t, ...r }) => {
|
|
2017
|
+
const n = t ?? "div";
|
|
2018
|
+
return /* @__PURE__ */ o.jsx(n, { dangerouslySetInnerHTML: { __html: e }, ...r });
|
|
2019
|
+
}, Tn = (e, t) => e.enabled ? t.map((r) => ({
|
|
2020
|
+
name: r.args.name,
|
|
2021
|
+
...r.args.progress
|
|
2022
|
+
})) : null, On = ["getFioSchema"], Me = (e, t, r) => {
|
|
2023
|
+
const n = e[t];
|
|
2024
|
+
if (O.isNil(n))
|
|
2025
2025
|
throw new Error(`validation for type ${String(t)} not found`);
|
|
2026
|
-
if (!O.isFunction(
|
|
2026
|
+
if (!O.isFunction(n))
|
|
2027
2027
|
throw new Error(`Cannot generate ${String(t)} because is not a function`);
|
|
2028
|
-
return r
|
|
2028
|
+
return n(r);
|
|
2029
2029
|
}, Fn = (e, t) => Me(we.base, e, t), Bn = (e, t) => Me(we.dadata, e, t), zt = (e) => {
|
|
2030
|
-
const
|
|
2030
|
+
const r = ((e == null ? void 0 : e.map((n) => ({ name: n.args.name, validation: n.args.validation }))) ?? []).reduce((n, i) => {
|
|
2031
2031
|
const d = On.includes(i.validation.type) ? Bn(
|
|
2032
2032
|
i.validation.type,
|
|
2033
2033
|
i.validation.args
|
|
@@ -2035,10 +2035,10 @@ const it = ({ html: e, as: t, ...n }) => {
|
|
|
2035
2035
|
i.validation.type,
|
|
2036
2036
|
i.validation.args
|
|
2037
2037
|
);
|
|
2038
|
-
return
|
|
2038
|
+
return n[i.name] = d, n;
|
|
2039
2039
|
}, {});
|
|
2040
|
-
return ve(
|
|
2041
|
-
}, En = new xr(), _e = ({ children: e }) => /* @__PURE__ */ o.jsx(Ue, { client: En, children: e }), Pn = (e, t,
|
|
2040
|
+
return ve(r);
|
|
2041
|
+
}, En = new xr(), _e = ({ children: e }) => /* @__PURE__ */ o.jsx(Ue, { client: En, children: e }), Pn = (e, t, r, n) => e.type === "off" ? null : e.type === "text" ? /* @__PURE__ */ o.jsx(it, { html: e.message, as: "div", className: n == null ? void 0 : n.content }) : /* @__PURE__ */ o.jsxs(
|
|
2042
2042
|
"label",
|
|
2043
2043
|
{
|
|
2044
2044
|
className: a(
|
|
@@ -2047,27 +2047,27 @@ const it = ({ html: e, as: t, ...n }) => {
|
|
|
2047
2047
|
"flex items-center justify-items-start gap-x-3"
|
|
2048
2048
|
),
|
|
2049
2049
|
children: [
|
|
2050
|
-
/* @__PURE__ */ o.jsx(yt.CheckboxBase, { classes:
|
|
2051
|
-
/* @__PURE__ */ o.jsx(it, { html: e.content, as: "div", className:
|
|
2050
|
+
/* @__PURE__ */ o.jsx(yt.CheckboxBase, { classes: n == null ? void 0 : n.checkbox, checked: t, onCheckedChange: r }),
|
|
2051
|
+
/* @__PURE__ */ o.jsx(it, { html: e.content, as: "div", className: n == null ? void 0 : n.content })
|
|
2052
2052
|
]
|
|
2053
2053
|
}
|
|
2054
2054
|
), le = ({
|
|
2055
2055
|
fields: e,
|
|
2056
2056
|
title: t,
|
|
2057
|
-
progress:
|
|
2058
|
-
approvement:
|
|
2057
|
+
progress: r,
|
|
2058
|
+
approvement: n,
|
|
2059
2059
|
chips: i,
|
|
2060
2060
|
submitProps: d,
|
|
2061
2061
|
classes: l,
|
|
2062
|
-
buttonGroup:
|
|
2062
|
+
buttonGroup: m
|
|
2063
2063
|
}) => {
|
|
2064
2064
|
var R, I;
|
|
2065
|
-
const { submitCallback: x } = d || {}, [
|
|
2065
|
+
const { submitCallback: x } = d || {}, [u, p] = W(!1), f = zt(e), y = Ht.getZodDefaults(f), { control: c, handleSubmit: v } = Dt({
|
|
2066
2066
|
schema: f,
|
|
2067
2067
|
defaultValues: y,
|
|
2068
2068
|
mode: "onBlur"
|
|
2069
|
-
}), g = Tn(
|
|
2070
|
-
x && x({ ..._, agree:
|
|
2069
|
+
}), g = Tn(r, e), N = or({ control: c, fields: g || [], schema: f }), S = (_) => {
|
|
2070
|
+
x && x({ ..._, agree: u });
|
|
2071
2071
|
};
|
|
2072
2072
|
return /* @__PURE__ */ o.jsx(_e, { children: /* @__PURE__ */ o.jsx("section", { id: j.form, "data-test-id": j.form, className: a("w-full", l == null ? void 0 : l.root), children: /* @__PURE__ */ o.jsxs(
|
|
2073
2073
|
B,
|
|
@@ -2100,31 +2100,31 @@ const it = ({ html: e, as: t, ...n }) => {
|
|
|
2100
2100
|
onSubmit: v(S),
|
|
2101
2101
|
className: a("flex w-full flex-col gap-y-6", "desktop:gap-y-8", l == null ? void 0 : l.form),
|
|
2102
2102
|
children: [
|
|
2103
|
-
|
|
2104
|
-
|
|
2103
|
+
r.enabled && /* @__PURE__ */ o.jsx(
|
|
2104
|
+
Ke,
|
|
2105
2105
|
{
|
|
2106
2106
|
progress: N,
|
|
2107
|
-
topContent: /* @__PURE__ */ o.jsx(it, { html:
|
|
2108
|
-
bottomContent: /* @__PURE__ */ o.jsx(it, { html:
|
|
2109
|
-
maxPercent:
|
|
2107
|
+
topContent: /* @__PURE__ */ o.jsx(it, { html: r.title }),
|
|
2108
|
+
bottomContent: /* @__PURE__ */ o.jsx(it, { html: r.subtitle }),
|
|
2109
|
+
maxPercent: r.maxPercent,
|
|
2110
2110
|
classes: l == null ? void 0 : l.progressBar
|
|
2111
2111
|
}
|
|
2112
2112
|
),
|
|
2113
2113
|
/* @__PURE__ */ o.jsx(Rt, { control: c, fields: e }),
|
|
2114
2114
|
/* @__PURE__ */ o.jsxs("div", { className: "mob-body-regular-m flex flex-col items-start justify-center gap-4", children: [
|
|
2115
|
-
Pn(
|
|
2116
|
-
/* @__PURE__ */ o.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-4 desktop:flex-row", children:
|
|
2117
|
-
const
|
|
2115
|
+
Pn(n, u, p, l == null ? void 0 : l.approvement),
|
|
2116
|
+
/* @__PURE__ */ o.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-4 desktop:flex-row", children: m == null ? void 0 : m.map((_, z) => {
|
|
2117
|
+
const J = _.type === "submit" && n.type === "checkbox" ? !u : !1;
|
|
2118
2118
|
return /* @__PURE__ */ Bt(
|
|
2119
2119
|
gt,
|
|
2120
2120
|
{
|
|
2121
2121
|
..._,
|
|
2122
2122
|
key: z,
|
|
2123
|
-
disabled:
|
|
2123
|
+
disabled: J,
|
|
2124
2124
|
className: a(
|
|
2125
2125
|
"w-full whitespace-nowrap",
|
|
2126
2126
|
{
|
|
2127
|
-
"w-full": !!
|
|
2127
|
+
"w-full": !!n
|
|
2128
2128
|
},
|
|
2129
2129
|
l == null ? void 0 : l.submit
|
|
2130
2130
|
)
|
|
@@ -2142,7 +2142,7 @@ const it = ({ html: e, as: t, ...n }) => {
|
|
|
2142
2142
|
__proto__: null,
|
|
2143
2143
|
DynamicForm: le,
|
|
2144
2144
|
default: le
|
|
2145
|
-
}, Symbol.toStringTag, { value: "Module" })), Hn = (e, t,
|
|
2145
|
+
}, Symbol.toStringTag, { value: "Module" })), Hn = (e, t, r, n) => e.type === "off" ? null : e.type === "text" ? /* @__PURE__ */ o.jsx(it, { html: e.message, as: "div", className: n == null ? void 0 : n.content }) : /* @__PURE__ */ o.jsxs(
|
|
2146
2146
|
"label",
|
|
2147
2147
|
{
|
|
2148
2148
|
className: a(
|
|
@@ -2151,32 +2151,32 @@ const it = ({ html: e, as: t, ...n }) => {
|
|
|
2151
2151
|
"flex items-center justify-items-start gap-x-3"
|
|
2152
2152
|
),
|
|
2153
2153
|
children: [
|
|
2154
|
-
/* @__PURE__ */ o.jsx(yt.CheckboxBase, { classes:
|
|
2155
|
-
/* @__PURE__ */ o.jsx(it, { html: e.content, as: "div", className:
|
|
2154
|
+
/* @__PURE__ */ o.jsx(yt.CheckboxBase, { classes: n == null ? void 0 : n.checkbox, checked: t, onCheckedChange: r }),
|
|
2155
|
+
/* @__PURE__ */ o.jsx(it, { html: e.content, as: "div", className: n == null ? void 0 : n.content })
|
|
2156
2156
|
]
|
|
2157
2157
|
}
|
|
2158
2158
|
), ue = ({
|
|
2159
2159
|
fields: e,
|
|
2160
2160
|
title: t,
|
|
2161
|
-
approvement:
|
|
2162
|
-
submitProps:
|
|
2161
|
+
approvement: r,
|
|
2162
|
+
submitProps: n,
|
|
2163
2163
|
dialogId: i,
|
|
2164
2164
|
classes: d,
|
|
2165
2165
|
buttonGroup: l,
|
|
2166
|
-
...
|
|
2166
|
+
...m
|
|
2167
2167
|
}) => {
|
|
2168
|
-
const { submitCallback: x } =
|
|
2168
|
+
const { submitCallback: x } = n ?? {}, [u, p] = W(!1), f = zt(e), y = Ht.getZodDefaults(f), { control: c, handleSubmit: v } = Dt({
|
|
2169
2169
|
schema: f,
|
|
2170
2170
|
defaultValues: y,
|
|
2171
2171
|
mode: "onBlur"
|
|
2172
2172
|
}), g = (N) => {
|
|
2173
|
-
x && x({ ...N, agree:
|
|
2173
|
+
x && x({ ...N, agree: u });
|
|
2174
2174
|
};
|
|
2175
|
-
return /* @__PURE__ */ o.jsx(_e, { children: /* @__PURE__ */ o.jsx(
|
|
2175
|
+
return /* @__PURE__ */ o.jsx(_e, { children: /* @__PURE__ */ o.jsx(Ze, { id: i, title: t, ...m, children: /* @__PURE__ */ o.jsxs("form", { onSubmit: v(g), className: "flex flex-col gap-6", children: [
|
|
2176
2176
|
/* @__PURE__ */ o.jsx(Rt, { control: c, fields: e }),
|
|
2177
|
-
Hn(
|
|
2177
|
+
Hn(r, u, p, d == null ? void 0 : d.approvement),
|
|
2178
2178
|
l == null ? void 0 : l.map((N, S) => {
|
|
2179
|
-
const R = N.type === "submit" &&
|
|
2179
|
+
const R = N.type === "submit" && r.type === "checkbox" ? !u : !1;
|
|
2180
2180
|
return /* @__PURE__ */ Bt(
|
|
2181
2181
|
gt,
|
|
2182
2182
|
{
|
|
@@ -2186,7 +2186,7 @@ const it = ({ html: e, as: t, ...n }) => {
|
|
|
2186
2186
|
className: a(
|
|
2187
2187
|
"w-full whitespace-nowrap",
|
|
2188
2188
|
{
|
|
2189
|
-
"w-full": !!
|
|
2189
|
+
"w-full": !!r
|
|
2190
2190
|
},
|
|
2191
2191
|
d == null ? void 0 : d.submit
|
|
2192
2192
|
)
|
|
@@ -2275,7 +2275,7 @@ const it = ({ html: e, as: t, ...n }) => {
|
|
|
2275
2275
|
/* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l text-color-dark", children: lt()[e].description })
|
|
2276
2276
|
] }),
|
|
2277
2277
|
/* @__PURE__ */ o.jsx(gt, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: t, children: lt()[e].button.text })
|
|
2278
|
-
] }) }) }), Se = ({ breadcrumb: e, className: t, ...
|
|
2278
|
+
] }) }) }), Se = ({ breadcrumb: e, className: t, ...r }) => /* @__PURE__ */ o.jsx("a", { href: e.path, className: a("desk-body-regular-m", t), ...r, children: e.label }), zn = [
|
|
2279
2279
|
{
|
|
2280
2280
|
label: "Главная",
|
|
2281
2281
|
path: "https://sovcombank.ru/apply/credit/kredit-na-kartu/"
|
|
@@ -2288,14 +2288,14 @@ const it = ({ html: e, as: t, ...n }) => {
|
|
|
2288
2288
|
label: "В Тольятти",
|
|
2289
2289
|
disabled: !0
|
|
2290
2290
|
}
|
|
2291
|
-
], bt = (e, t,
|
|
2292
|
-
const l = d ===
|
|
2291
|
+
], bt = (e, t, r, n) => e.map((i, d) => {
|
|
2292
|
+
const l = d === n;
|
|
2293
2293
|
return /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-x-1", children: [
|
|
2294
2294
|
/* @__PURE__ */ o.jsx(
|
|
2295
2295
|
Se,
|
|
2296
2296
|
{
|
|
2297
2297
|
breadcrumb: i,
|
|
2298
|
-
className: a(
|
|
2298
|
+
className: a(r, {
|
|
2299
2299
|
"pointer-events-none text-color-primary-disabled": l,
|
|
2300
2300
|
"text-color-blue-grey-600": i.disabled
|
|
2301
2301
|
})
|
|
@@ -2303,28 +2303,28 @@ const it = ({ html: e, as: t, ...n }) => {
|
|
|
2303
2303
|
),
|
|
2304
2304
|
d !== e.length - 1 && t
|
|
2305
2305
|
] }, i.label);
|
|
2306
|
-
}), Ln = ({ separator: e, ellipsis: t, classes:
|
|
2306
|
+
}), Ln = ({ separator: e, ellipsis: t, classes: r, breadcrumbs: n = zn }) => {
|
|
2307
2307
|
const [i, d] = W(!1), l = Et(null);
|
|
2308
2308
|
rr(l, () => d(!1));
|
|
2309
|
-
const { first:
|
|
2309
|
+
const { first: m, middle: x, last: u } = kt(() => {
|
|
2310
2310
|
let f = [], y = [], c = [];
|
|
2311
|
-
return t && (f =
|
|
2312
|
-
}, [
|
|
2311
|
+
return t && (f = n.slice(0, t), y = n.slice(t, n.length - t), c = n.slice(n.length - t)), { first: f, middle: y, last: c };
|
|
2312
|
+
}, [n, t]), p = e ?? /* @__PURE__ */ o.jsx(b, { name: "arrows/arrowRight", className: a("size-4", r == null ? void 0 : r.separator) });
|
|
2313
2313
|
return /* @__PURE__ */ o.jsx(
|
|
2314
2314
|
"div",
|
|
2315
2315
|
{
|
|
2316
2316
|
className: a(
|
|
2317
2317
|
"flex max-w-[840px] flex-wrap items-center",
|
|
2318
2318
|
"gap-x-2 gap-y-1 py-4 text-color-primary-default",
|
|
2319
|
-
|
|
2319
|
+
r == null ? void 0 : r.root
|
|
2320
2320
|
),
|
|
2321
2321
|
children: t ? (
|
|
2322
2322
|
// if ellipsis provided, render hidden breadcrumbs
|
|
2323
|
-
/* @__PURE__ */ o.jsx(o.Fragment, { children:
|
|
2323
|
+
/* @__PURE__ */ o.jsx(o.Fragment, { children: n.length > t * 2 + 1 ? (
|
|
2324
2324
|
// if we have more than ellipsis (visible crumbs) + available hidden crumbs
|
|
2325
2325
|
// render hidden breadcrumbs
|
|
2326
2326
|
/* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2327
|
-
bt(
|
|
2327
|
+
bt(m, p, r == null ? void 0 : r.breadcrumb),
|
|
2328
2328
|
p,
|
|
2329
2329
|
x.length > 0 && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2330
2330
|
/* @__PURE__ */ o.jsxs("div", { className: "relative", children: [
|
|
@@ -2349,7 +2349,7 @@ const it = ({ html: e, as: t, ...n }) => {
|
|
|
2349
2349
|
"desk-body-regular-l inline-block py-3",
|
|
2350
2350
|
"w-full rounded-sm bg-color-white px-2",
|
|
2351
2351
|
"text-color-dark hover:bg-color-primary-tr-hover",
|
|
2352
|
-
|
|
2352
|
+
r == null ? void 0 : r.breadcrumb
|
|
2353
2353
|
)
|
|
2354
2354
|
}
|
|
2355
2355
|
) }, f.label))
|
|
@@ -2358,15 +2358,15 @@ const it = ({ html: e, as: t, ...n }) => {
|
|
|
2358
2358
|
] }),
|
|
2359
2359
|
p
|
|
2360
2360
|
] }),
|
|
2361
|
-
bt(
|
|
2361
|
+
bt(u, p, r == null ? void 0 : r.breadcrumb, u.length - 1)
|
|
2362
2362
|
] })
|
|
2363
2363
|
) : (
|
|
2364
2364
|
// otherwise render all breadcrumbs
|
|
2365
|
-
bt(
|
|
2365
|
+
bt(n, p, r == null ? void 0 : r.breadcrumb, n.length - 1)
|
|
2366
2366
|
) })
|
|
2367
2367
|
) : (
|
|
2368
2368
|
// if ellipsis doesn't provided render all breadcrumbs
|
|
2369
|
-
bt(
|
|
2369
|
+
bt(n, p, r == null ? void 0 : r.breadcrumb, n.length - 1)
|
|
2370
2370
|
)
|
|
2371
2371
|
}
|
|
2372
2372
|
);
|
|
@@ -2388,8 +2388,8 @@ const Qn = (e, t) => {
|
|
|
2388
2388
|
return e;
|
|
2389
2389
|
}
|
|
2390
2390
|
}, Vn = (e) => {
|
|
2391
|
-
const [t,
|
|
2392
|
-
return [t,
|
|
2391
|
+
const [t, r] = Je(Qn, e);
|
|
2392
|
+
return [t, r];
|
|
2393
2393
|
}, $n = (e) => ({
|
|
2394
2394
|
type: mt.CURRENT,
|
|
2395
2395
|
payload: e
|
|
@@ -2397,7 +2397,7 @@ const Qn = (e, t) => {
|
|
|
2397
2397
|
type: mt.ROOT,
|
|
2398
2398
|
payload: e
|
|
2399
2399
|
}), Wn = ({ categories: e, ...t }) => {
|
|
2400
|
-
var
|
|
2400
|
+
var r, n;
|
|
2401
2401
|
return Ne(
|
|
2402
2402
|
/* @__PURE__ */ o.jsx(
|
|
2403
2403
|
Ft.div,
|
|
@@ -2423,9 +2423,9 @@ const Qn = (e, t) => {
|
|
|
2423
2423
|
]
|
|
2424
2424
|
}
|
|
2425
2425
|
),
|
|
2426
|
-
/* @__PURE__ */ o.jsx("ul", { className: "w-[328px]", children: i.children.map((
|
|
2426
|
+
/* @__PURE__ */ o.jsx("ul", { className: "w-[328px]", children: i.children.map((m) => {
|
|
2427
2427
|
var x;
|
|
2428
|
-
return /* @__PURE__ */ o.jsx("li", { className: "w-full [&:not(:last-child)]:mb-4", children: /* @__PURE__ */ o.jsx("a", { href: (x =
|
|
2428
|
+
return /* @__PURE__ */ o.jsx("li", { className: "w-full [&:not(:last-child)]:mb-4", children: /* @__PURE__ */ o.jsx("a", { href: (x = m.link) == null ? void 0 : x.href, className: "w-full text-16", children: m.title }) }, m.title);
|
|
2429
2429
|
}) })
|
|
2430
2430
|
] }, i.title);
|
|
2431
2431
|
}) })
|
|
@@ -2434,15 +2434,15 @@ const Qn = (e, t) => {
|
|
|
2434
2434
|
/**
|
|
2435
2435
|
* Нужно для preview, чтобы категории рендерились в iframe
|
|
2436
2436
|
*/
|
|
2437
|
-
((
|
|
2437
|
+
((n = (r = document.body.querySelector("#modal-preview")) == null ? void 0 : r.contentDocument) == null ? void 0 : n.body) ?? document.body
|
|
2438
2438
|
);
|
|
2439
|
-
}, qn =
|
|
2440
|
-
var x,
|
|
2441
|
-
const i =
|
|
2439
|
+
}, qn = Ge(({ category: e, active: t, onActiveTabChange: r }, n) => {
|
|
2440
|
+
var x, u;
|
|
2441
|
+
const i = n && "current" in n ? n : null, d = (x = i == null ? void 0 : i.current) == null ? void 0 : x.getBoundingClientRect(), l = t && !O.isArrayEmpty(e.children), m = O.isArrayEmpty(e.children) ? "a" : "span";
|
|
2442
2442
|
return /* @__PURE__ */ o.jsxs(
|
|
2443
2443
|
Ft.div,
|
|
2444
2444
|
{
|
|
2445
|
-
ref:
|
|
2445
|
+
ref: n,
|
|
2446
2446
|
className: a(
|
|
2447
2447
|
"relative flex cursor-default items-center justify-center py-4 text-color-dark",
|
|
2448
2448
|
'after:content="" after:absolute after:bottom-0 after:left-1/2 after:h-[1px]',
|
|
@@ -2452,11 +2452,11 @@ const Qn = (e, t) => {
|
|
|
2452
2452
|
"after:w-full": l
|
|
2453
2453
|
}
|
|
2454
2454
|
),
|
|
2455
|
-
onMouseEnter: () =>
|
|
2456
|
-
onMouseLeave: () =>
|
|
2457
|
-
onFocus: () =>
|
|
2455
|
+
onMouseEnter: () => r(e.title),
|
|
2456
|
+
onMouseLeave: () => r(null),
|
|
2457
|
+
onFocus: () => r(e.title),
|
|
2458
2458
|
children: [
|
|
2459
|
-
/* @__PURE__ */ o.jsx(
|
|
2459
|
+
/* @__PURE__ */ o.jsx(m, { href: m === "a" ? (u = e.link) == null ? void 0 : u.href : void 0, className: "desk-body-regular-m outline-none", children: e.title }),
|
|
2460
2460
|
l && /* @__PURE__ */ o.jsx(
|
|
2461
2461
|
Wn,
|
|
2462
2462
|
{
|
|
@@ -2469,11 +2469,11 @@ const Qn = (e, t) => {
|
|
|
2469
2469
|
]
|
|
2470
2470
|
}
|
|
2471
2471
|
);
|
|
2472
|
-
}), Un = Pt(qn),
|
|
2473
|
-
const [t,
|
|
2474
|
-
|
|
2472
|
+
}), Un = Pt(qn), Kn = ({ categories: e }) => {
|
|
2473
|
+
const [t, r] = W(null), n = ke((d) => {
|
|
2474
|
+
r(d);
|
|
2475
2475
|
}, []), i = Et(null);
|
|
2476
|
-
return /* @__PURE__ */ o.jsx(
|
|
2476
|
+
return /* @__PURE__ */ o.jsx(Xe, { mode: "sync", children: /* @__PURE__ */ o.jsxs(
|
|
2477
2477
|
"div",
|
|
2478
2478
|
{
|
|
2479
2479
|
ref: i,
|
|
@@ -2486,7 +2486,7 @@ const Qn = (e, t) => {
|
|
|
2486
2486
|
ref: i,
|
|
2487
2487
|
category: d,
|
|
2488
2488
|
active: t === d.title,
|
|
2489
|
-
onActiveTabChange:
|
|
2489
|
+
onActiveTabChange: n
|
|
2490
2490
|
},
|
|
2491
2491
|
d.title
|
|
2492
2492
|
)),
|
|
@@ -2494,11 +2494,11 @@ const Qn = (e, t) => {
|
|
|
2494
2494
|
]
|
|
2495
2495
|
}
|
|
2496
2496
|
) });
|
|
2497
|
-
},
|
|
2497
|
+
}, Zn = Pt(Kn), Xn = ({
|
|
2498
2498
|
category: e,
|
|
2499
2499
|
selectedCategory: t,
|
|
2500
|
-
onCurrentCategoryChange:
|
|
2501
|
-
onRootCategoryChange:
|
|
2500
|
+
onCurrentCategoryChange: r,
|
|
2501
|
+
onRootCategoryChange: n,
|
|
2502
2502
|
active: i,
|
|
2503
2503
|
...d
|
|
2504
2504
|
}) => /* @__PURE__ */ o.jsxs(
|
|
@@ -2506,7 +2506,7 @@ const Qn = (e, t) => {
|
|
|
2506
2506
|
{
|
|
2507
2507
|
...d,
|
|
2508
2508
|
onClick: () => {
|
|
2509
|
-
|
|
2509
|
+
r(e.children[0]), n(e);
|
|
2510
2510
|
},
|
|
2511
2511
|
className: a("group/category relative cursor-default text-color-blue-grey-600 duration-100 hover:text-color-dark", {
|
|
2512
2512
|
"text-color-dark": i
|
|
@@ -2524,8 +2524,8 @@ const Qn = (e, t) => {
|
|
|
2524
2524
|
children: e.children.map((l) => /* @__PURE__ */ o.jsx(
|
|
2525
2525
|
"span",
|
|
2526
2526
|
{
|
|
2527
|
-
onClick: (
|
|
2528
|
-
|
|
2527
|
+
onClick: (m) => {
|
|
2528
|
+
m.stopPropagation(), m.nativeEvent.stopPropagation(), n(e), r(l);
|
|
2529
2529
|
},
|
|
2530
2530
|
className: a(
|
|
2531
2531
|
"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",
|
|
@@ -2541,20 +2541,20 @@ const Qn = (e, t) => {
|
|
|
2541
2541
|
)
|
|
2542
2542
|
]
|
|
2543
2543
|
}
|
|
2544
|
-
),
|
|
2545
|
-
const [
|
|
2544
|
+
), Yn = ({ categories: e, helpers: t, phone: r }) => {
|
|
2545
|
+
const [n, i] = Vn({ root: e[0].children[0], current: e[0].children[0] });
|
|
2546
2546
|
return /* @__PURE__ */ o.jsxs("div", { className: "mobile:hidden", children: [
|
|
2547
2547
|
/* @__PURE__ */ o.jsxs("div", { className: "flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)] py-4", children: [
|
|
2548
2548
|
/* @__PURE__ */ o.jsx(b, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
|
|
2549
2549
|
e.map((d) => {
|
|
2550
|
-
const l =
|
|
2550
|
+
const l = n.root.title === d.title;
|
|
2551
2551
|
return /* @__PURE__ */ o.jsx(
|
|
2552
|
-
|
|
2552
|
+
Xn,
|
|
2553
2553
|
{
|
|
2554
2554
|
category: d,
|
|
2555
|
-
selectedCategory:
|
|
2556
|
-
onCurrentCategoryChange: (
|
|
2557
|
-
onRootCategoryChange: (
|
|
2555
|
+
selectedCategory: n.current,
|
|
2556
|
+
onCurrentCategoryChange: (m) => i($n(m)),
|
|
2557
|
+
onRootCategoryChange: (m) => i(An(m)),
|
|
2558
2558
|
active: l
|
|
2559
2559
|
},
|
|
2560
2560
|
d.title
|
|
@@ -2577,15 +2577,15 @@ const Qn = (e, t) => {
|
|
|
2577
2577
|
/* @__PURE__ */ o.jsx(
|
|
2578
2578
|
"a",
|
|
2579
2579
|
{
|
|
2580
|
-
href: `tel:${
|
|
2580
|
+
href: `tel:${r}`,
|
|
2581
2581
|
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2582
|
-
children: wt(
|
|
2582
|
+
children: wt(r, "x xxx xxx xx xx")
|
|
2583
2583
|
}
|
|
2584
2584
|
)
|
|
2585
2585
|
] }),
|
|
2586
|
-
/* @__PURE__ */ o.jsx(
|
|
2586
|
+
/* @__PURE__ */ o.jsx(Zn, { categories: n.current.children })
|
|
2587
2587
|
] });
|
|
2588
|
-
},
|
|
2588
|
+
}, Jn = ({ category: e }) => /* @__PURE__ */ o.jsx(
|
|
2589
2589
|
dt,
|
|
2590
2590
|
{
|
|
2591
2591
|
label: e.title ?? "",
|
|
@@ -2605,12 +2605,12 @@ const Qn = (e, t) => {
|
|
|
2605
2605
|
},
|
|
2606
2606
|
children: /* @__PURE__ */ o.jsx("div", { className: "flex flex-col items-start justify-center gap-y-4", children: e.children.map((t) => {
|
|
2607
2607
|
var i;
|
|
2608
|
-
const
|
|
2608
|
+
const r = !!t.link, n = r ? "a" : "p";
|
|
2609
2609
|
return /* @__PURE__ */ o.jsxs("ul", { className: "w-full list-none p-0", children: [
|
|
2610
2610
|
/* @__PURE__ */ o.jsxs(
|
|
2611
|
-
|
|
2611
|
+
n,
|
|
2612
2612
|
{
|
|
2613
|
-
href:
|
|
2613
|
+
href: r ? (i = t.link) == null ? void 0 : i.href : void 0,
|
|
2614
2614
|
className: "mb-3 flex items-center gap-x-1 text-16 text-color-primary-default",
|
|
2615
2615
|
children: [
|
|
2616
2616
|
t.title,
|
|
@@ -2626,20 +2626,20 @@ const Qn = (e, t) => {
|
|
|
2626
2626
|
}) })
|
|
2627
2627
|
},
|
|
2628
2628
|
e.title
|
|
2629
|
-
),
|
|
2629
|
+
), Gn = (e) => e.map((t) => ({
|
|
2630
2630
|
value: t.title ?? "",
|
|
2631
2631
|
label: t.title ?? ""
|
|
2632
|
-
})),
|
|
2633
|
-
const i =
|
|
2634
|
-
O.isUndefined(
|
|
2632
|
+
})), sn = ({ categories: e, helpers: t, phone: r, ...n }) => {
|
|
2633
|
+
const i = Gn(e), [d, l] = W(i[0]), m = (u) => {
|
|
2634
|
+
O.isUndefined(u) || O.isArray(u) || l(u);
|
|
2635
2635
|
}, x = kt(() => {
|
|
2636
|
-
var
|
|
2637
|
-
return O.isUndefined(d) || O.isArray(d) ? [] : ((
|
|
2636
|
+
var u;
|
|
2637
|
+
return O.isUndefined(d) || O.isArray(d) ? [] : ((u = e.find((p) => p.title === d.value)) == null ? void 0 : u.children) ?? [];
|
|
2638
2638
|
}, [d, e]);
|
|
2639
2639
|
return /* @__PURE__ */ o.jsxs(
|
|
2640
2640
|
Ft.div,
|
|
2641
2641
|
{
|
|
2642
|
-
...
|
|
2642
|
+
...n,
|
|
2643
2643
|
className: a(
|
|
2644
2644
|
"absolute z-10 w-full max-w-[calc(636px-32px)]",
|
|
2645
2645
|
"absolute left-1/2 top-full bg-color-white p-4",
|
|
@@ -2649,67 +2649,67 @@ const Qn = (e, t) => {
|
|
|
2649
2649
|
initial: { opacity: 0 },
|
|
2650
2650
|
animate: { opacity: 1 },
|
|
2651
2651
|
children: [
|
|
2652
|
-
/* @__PURE__ */ o.jsx(yt.SelectBase, { label: "Категория", options: i, value: d, onChange:
|
|
2653
|
-
/* @__PURE__ */ o.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: x.map((
|
|
2652
|
+
/* @__PURE__ */ o.jsx(yt.SelectBase, { label: "Категория", options: i, value: d, onChange: m }),
|
|
2653
|
+
/* @__PURE__ */ o.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: x.map((u) => {
|
|
2654
2654
|
var p;
|
|
2655
|
-
return O.isArrayEmpty(
|
|
2655
|
+
return O.isArrayEmpty(u.children) ? /* @__PURE__ */ o.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ o.jsx("a", { href: (p = u.link) == null ? void 0 : p.href, className: "desk-body-regular-m inline-block w-full", children: u.title }) }, u.title) : /* @__PURE__ */ o.jsx(Jn, { category: u }, u.title);
|
|
2656
2656
|
}) }),
|
|
2657
2657
|
/* @__PURE__ */ o.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
|
|
2658
2658
|
/* @__PURE__ */ o.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
|
|
2659
|
-
t.map((
|
|
2659
|
+
t.map((u) => {
|
|
2660
2660
|
var p, f;
|
|
2661
|
-
return /* @__PURE__ */ o.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ o.jsxs("a", { href: (p =
|
|
2662
|
-
((f =
|
|
2663
|
-
|
|
2664
|
-
] }) },
|
|
2661
|
+
return /* @__PURE__ */ o.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ o.jsxs("a", { href: (p = u.link) == null ? void 0 : p.href, className: "flex w-full items-center gap-x-1", children: [
|
|
2662
|
+
((f = u.link) == null ? void 0 : f.icon) && /* @__PURE__ */ o.jsx(b, { name: u.link.icon, className: "size-4" }),
|
|
2663
|
+
u.title
|
|
2664
|
+
] }) }, u.title);
|
|
2665
2665
|
}),
|
|
2666
|
-
/* @__PURE__ */ o.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ o.jsxs("a", { href: `tel:${
|
|
2666
|
+
/* @__PURE__ */ o.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ o.jsxs("a", { href: `tel:${r}`, className: "flex w-full items-center gap-x-1", children: [
|
|
2667
2667
|
/* @__PURE__ */ o.jsx(b, { name: "communication/phone", className: "size-4" }),
|
|
2668
|
-
wt(
|
|
2668
|
+
wt(r)
|
|
2669
2669
|
] }) })
|
|
2670
2670
|
] })
|
|
2671
2671
|
]
|
|
2672
2672
|
}
|
|
2673
2673
|
);
|
|
2674
|
-
}, to = ({ categories: e, helpers: t, phone:
|
|
2675
|
-
var x,
|
|
2676
|
-
const
|
|
2674
|
+
}, to = ({ categories: e, helpers: t, phone: r }) => {
|
|
2675
|
+
var x, u, p;
|
|
2676
|
+
const n = Et(null), i = (x = n.current) == null ? void 0 : x.getBoundingClientRect(), [d, l] = W(!1), m = () => l(!d);
|
|
2677
2677
|
return /* @__PURE__ */ o.jsxs(
|
|
2678
2678
|
"div",
|
|
2679
2679
|
{
|
|
2680
|
-
ref:
|
|
2680
|
+
ref: n,
|
|
2681
2681
|
className: "relative flex w-full items-center justify-between border-b border-b-blue-grey-500 py-4 desktop:hidden",
|
|
2682
2682
|
children: [
|
|
2683
2683
|
/* @__PURE__ */ o.jsx(b, { name: "brandLogos/logoMain", className: "w-[130px]" }),
|
|
2684
|
-
/* @__PURE__ */ o.jsx("button", { type: "button", onClick:
|
|
2684
|
+
/* @__PURE__ */ o.jsx("button", { type: "button", onClick: m, className: "h-max w-max", children: /* @__PURE__ */ o.jsx(b, { name: d ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
|
|
2685
2685
|
d && Ne(
|
|
2686
2686
|
/* @__PURE__ */ o.jsx(
|
|
2687
|
-
|
|
2687
|
+
sn,
|
|
2688
2688
|
{
|
|
2689
2689
|
categories: e,
|
|
2690
2690
|
helpers: t,
|
|
2691
|
-
phone:
|
|
2691
|
+
phone: r,
|
|
2692
2692
|
style: { top: i ? i.top + i.height : 0 }
|
|
2693
2693
|
}
|
|
2694
2694
|
),
|
|
2695
2695
|
/**
|
|
2696
2696
|
* Нужно для preview, чтобы категории рендерились в iframe
|
|
2697
2697
|
*/
|
|
2698
|
-
((p = (
|
|
2698
|
+
((p = (u = document.body.querySelector("#modal-preview")) == null ? void 0 : u.contentDocument) == null ? void 0 : p.body) ?? document.body
|
|
2699
2699
|
)
|
|
2700
2700
|
]
|
|
2701
2701
|
}
|
|
2702
2702
|
);
|
|
2703
|
-
}, me = ({ categories: e, helpers: t, phone:
|
|
2703
|
+
}, me = ({ categories: e, helpers: t, phone: r, breadcrumbs: n, classes: i }) => {
|
|
2704
2704
|
const { isMobile: d } = at();
|
|
2705
2705
|
return /* @__PURE__ */ o.jsx("div", { id: j.seoHeader, "data-test-id": j.seoHeader, className: a("w-full bg-color-white", i == null ? void 0 : i.root), children: /* @__PURE__ */ o.jsxs(B, { className: "mx-auto w-full", children: [
|
|
2706
|
-
/* @__PURE__ */ o.jsx(to, { categories: e.map((l) => l.children).flat(), helpers: t, phone:
|
|
2707
|
-
/* @__PURE__ */ o.jsx(
|
|
2706
|
+
/* @__PURE__ */ o.jsx(to, { categories: e.map((l) => l.children).flat(), helpers: t, phone: r }),
|
|
2707
|
+
/* @__PURE__ */ o.jsx(Yn, { categories: e, helpers: t, phone: r }),
|
|
2708
2708
|
/* @__PURE__ */ o.jsx(
|
|
2709
2709
|
Ln,
|
|
2710
2710
|
{
|
|
2711
2711
|
ellipsis: d ? 1 : void 0,
|
|
2712
|
-
breadcrumbs:
|
|
2712
|
+
breadcrumbs: n,
|
|
2713
2713
|
matcher: (l) => ({ label: tr(l.label).split("-").join(" ") })
|
|
2714
2714
|
}
|
|
2715
2715
|
)
|
|
@@ -2719,21 +2719,21 @@ const Qn = (e, t) => {
|
|
|
2719
2719
|
SeoHeader: me,
|
|
2720
2720
|
default: me
|
|
2721
2721
|
}, Symbol.toStringTag, { value: "Module" })), Te = (e) => typeof e != "string" && "formula" in e, Oe = (e, t) => {
|
|
2722
|
-
let
|
|
2723
|
-
const
|
|
2722
|
+
let r = t;
|
|
2723
|
+
const n = {
|
|
2724
2724
|
style: e
|
|
2725
2725
|
};
|
|
2726
2726
|
switch (e) {
|
|
2727
2727
|
case "currency":
|
|
2728
|
-
|
|
2728
|
+
n.currency = "RUB", n.minimumFractionDigits = 0, n.maximumFractionDigits = 0;
|
|
2729
2729
|
break;
|
|
2730
2730
|
case "percent":
|
|
2731
|
-
|
|
2731
|
+
n.minimumFractionDigits = 0, n.maximumFractionDigits = 1, r = r / 100;
|
|
2732
2732
|
break;
|
|
2733
2733
|
default:
|
|
2734
2734
|
return null;
|
|
2735
2735
|
}
|
|
2736
|
-
return new Intl.NumberFormat("ru-RU",
|
|
2736
|
+
return new Intl.NumberFormat("ru-RU", n).format(r);
|
|
2737
2737
|
}, ro = (e, t) => {
|
|
2738
2738
|
switch (e) {
|
|
2739
2739
|
case "text":
|
|
@@ -2741,21 +2741,21 @@ const Qn = (e, t) => {
|
|
|
2741
2741
|
default:
|
|
2742
2742
|
return Oe(e, Number(t));
|
|
2743
2743
|
}
|
|
2744
|
-
}, no = (e) => Object.values(e).reduce((
|
|
2745
|
-
const
|
|
2746
|
-
return Number.isNaN(Number(
|
|
2747
|
-
}, io = (e, t) => e.map((
|
|
2748
|
-
...
|
|
2749
|
-
value: Te(
|
|
2750
|
-
})), ao = ({ subtitle: e, title: t, classes:
|
|
2751
|
-
t && /* @__PURE__ */ o.jsx(H, { as: "h3", className:
|
|
2752
|
-
e && /* @__PURE__ */ o.jsx("div", { className: a("desk-body-regular-l text-color-dark",
|
|
2753
|
-
] }) }), lo = ({ rootDescription: e, rootValue: t, suffix:
|
|
2754
|
-
/* @__PURE__ */ o.jsx("p", { className: a("desk-body-regular-l text-color-dark",
|
|
2755
|
-
/* @__PURE__ */ o.jsx("div", { className: a("desk-title-bold-l flex items-center gap-1 text-color-dark",
|
|
2756
|
-
] }), uo = ({ hint: e, value: t, label:
|
|
2744
|
+
}, no = (e) => Object.values(e).reduce((r, n) => r.merge(zt(n.fields)), ve({})), oo = (e, t) => (e.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in t)).length > 0 ? "" : e, Fe = (e, t) => {
|
|
2745
|
+
const r = Object.entries(t).map(([x, u]) => [x, O.isNil(u) ? "1" : u]), n = r.map(([x]) => x), i = r.map(([, x]) => x), d = oo(e, Object.fromEntries(r)), m = new Function(...n, `return ${d};`)(...i.map(Number));
|
|
2746
|
+
return Number.isNaN(Number(m)) ? "0" : m.toString();
|
|
2747
|
+
}, io = (e, t) => e.map((r) => ({
|
|
2748
|
+
...r,
|
|
2749
|
+
value: Te(r.value) ? Fe(r.value.formula, t) : r.value
|
|
2750
|
+
})), ao = ({ subtitle: e, title: t, classes: r }) => /* @__PURE__ */ o.jsx(o.Fragment, { children: (t || e) && /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-2", r == null ? void 0 : r.wrapper), children: [
|
|
2751
|
+
t && /* @__PURE__ */ o.jsx(H, { as: "h3", className: r == null ? void 0 : r.title, children: t }),
|
|
2752
|
+
e && /* @__PURE__ */ o.jsx("div", { className: a("desk-body-regular-l text-color-dark", r == null ? void 0 : r.subtitle), children: e })
|
|
2753
|
+
] }) }), lo = ({ rootDescription: e, rootValue: t, suffix: r, classes: n }) => /* @__PURE__ */ o.jsxs("div", { className: a("mb-6 flex items-center justify-between gap-6", n == null ? void 0 : n.wrapper), children: [
|
|
2754
|
+
/* @__PURE__ */ o.jsx("p", { className: a("desk-body-regular-l text-color-dark", n == null ? void 0 : n.description), children: e }),
|
|
2755
|
+
/* @__PURE__ */ o.jsx("div", { className: a("desk-title-bold-l flex items-center gap-1 text-color-dark", n == null ? void 0 : n.value), children: Oe(r, Number(t)) })
|
|
2756
|
+
] }), uo = ({ hint: e, value: t, label: r, mode: n, color: i = "dark", accent: d = !1 }) => /* @__PURE__ */ o.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2757
2757
|
/* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2758
|
-
/* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l text-color-dark", children:
|
|
2758
|
+
/* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l text-color-dark", children: r }),
|
|
2759
2759
|
e && /* @__PURE__ */ o.jsx(
|
|
2760
2760
|
Tt,
|
|
2761
2761
|
{
|
|
@@ -2772,81 +2772,81 @@ const Qn = (e, t) => {
|
|
|
2772
2772
|
"[&&]:desk-title-bold-s": d,
|
|
2773
2773
|
"text-color-primary-default": i === "blue"
|
|
2774
2774
|
}),
|
|
2775
|
-
children: ro(
|
|
2775
|
+
children: ro(n, t)
|
|
2776
2776
|
}
|
|
2777
2777
|
)
|
|
2778
2778
|
] }), mo = ({ infoList: e, classes: t }) => {
|
|
2779
|
-
const { watch:
|
|
2779
|
+
const { watch: r } = vt(), n = r(), i = io(e, n);
|
|
2780
2780
|
return /* @__PURE__ */ o.jsx("div", { className: a("my-4 flex flex-col gap-3 border-t border-solid border-blue-grey-500 pt-4", t == null ? void 0 : t.wrapper), children: i == null ? void 0 : i.map((d) => /* @__PURE__ */ o.jsx(uo, { ...d }, d.label)) });
|
|
2781
|
-
}, xo = ({ iconName: e, text: t, hint:
|
|
2782
|
-
/* @__PURE__ */ o.jsxs("div", { className: a("flex items-center gap-1",
|
|
2783
|
-
/* @__PURE__ */ o.jsx(b, { name: e, className: a("size-6 text-icon-blue-grey-800",
|
|
2784
|
-
/* @__PURE__ */ o.jsx("p", { className: a("desk-body-regular-l text-color-tetriary",
|
|
2781
|
+
}, xo = ({ iconName: e, text: t, hint: r, classes: n, popoverProps: i }) => /* @__PURE__ */ o.jsxs("div", { className: a("mb-6 flex items-center gap-2", n == null ? void 0 : n.wrapper), children: [
|
|
2782
|
+
/* @__PURE__ */ o.jsxs("div", { className: a("flex items-center gap-1", n == null ? void 0 : n.block), children: [
|
|
2783
|
+
/* @__PURE__ */ o.jsx(b, { name: e, className: a("size-6 text-icon-blue-grey-800", n == null ? void 0 : n.icon) }),
|
|
2784
|
+
/* @__PURE__ */ o.jsx("p", { className: a("desk-body-regular-l text-color-tetriary", n == null ? void 0 : n.description), children: t })
|
|
2785
2785
|
] }),
|
|
2786
|
-
|
|
2786
|
+
r && /* @__PURE__ */ o.jsx(
|
|
2787
2787
|
Tt,
|
|
2788
2788
|
{
|
|
2789
2789
|
withCloseBtn: !1,
|
|
2790
2790
|
triggerElement: /* @__PURE__ */ o.jsx(b, { name: "info/helpCircle", className: "size-5 text-icon-blue-grey-600" }),
|
|
2791
2791
|
...i,
|
|
2792
|
-
children:
|
|
2792
|
+
children: r
|
|
2793
2793
|
}
|
|
2794
2794
|
)
|
|
2795
|
-
] }), ho = ({ assistHint: e, buttonsConfig: t, bottomDescription:
|
|
2796
|
-
e && /* @__PURE__ */ o.jsx(xo, { ...e, classes:
|
|
2797
|
-
/* @__PURE__ */ o.jsx("div", { className: a("flex items-center gap-4 mobile:flex-col",
|
|
2798
|
-
|
|
2795
|
+
] }), ho = ({ assistHint: e, buttonsConfig: t, bottomDescription: r, classes: n }) => /* @__PURE__ */ o.jsxs("div", { children: [
|
|
2796
|
+
e && /* @__PURE__ */ o.jsx(xo, { ...e, classes: n == null ? void 0 : n.assistHint }),
|
|
2797
|
+
/* @__PURE__ */ o.jsx("div", { className: a("flex items-center gap-4 mobile:flex-col", n == null ? void 0 : n.buttonsWrapper), children: t == null ? void 0 : t.map((i, d) => /* @__PURE__ */ o.jsx(Y, { className: "w-full", ...i }, d)) }),
|
|
2798
|
+
r && /* @__PURE__ */ o.jsx("p", { className: a("desk-body-regular-m mt-4 text-color-secondary", n == null ? void 0 : n.bottomDescription), children: r })
|
|
2799
2799
|
] }), po = ({
|
|
2800
2800
|
rootDescription: e,
|
|
2801
2801
|
bottomDescription: t,
|
|
2802
|
-
rootValue:
|
|
2803
|
-
title:
|
|
2802
|
+
rootValue: r,
|
|
2803
|
+
title: n,
|
|
2804
2804
|
subtitle: i,
|
|
2805
2805
|
buttonsConfig: d,
|
|
2806
2806
|
infoList: l,
|
|
2807
|
-
suffix:
|
|
2807
|
+
suffix: m,
|
|
2808
2808
|
assistHint: x,
|
|
2809
|
-
classes:
|
|
2810
|
-
}) => /* @__PURE__ */ o.jsxs("div", { className: a("w-[456px] rounded-md bg-color-blue-grey-100 p-8",
|
|
2809
|
+
classes: u
|
|
2810
|
+
}) => /* @__PURE__ */ o.jsxs("div", { className: a("w-[456px] rounded-md bg-color-blue-grey-100 p-8", u == null ? void 0 : u.wrapper), children: [
|
|
2811
2811
|
/* @__PURE__ */ o.jsx(
|
|
2812
2812
|
lo,
|
|
2813
2813
|
{
|
|
2814
|
-
suffix:
|
|
2815
|
-
rootValue:
|
|
2814
|
+
suffix: m,
|
|
2815
|
+
rootValue: r,
|
|
2816
2816
|
rootDescription: e,
|
|
2817
|
-
classes:
|
|
2817
|
+
classes: u == null ? void 0 : u.calculatedBlock
|
|
2818
2818
|
}
|
|
2819
2819
|
),
|
|
2820
|
-
/* @__PURE__ */ o.jsx(ao, { title:
|
|
2821
|
-
/* @__PURE__ */ o.jsx(mo, { infoList: l, classes:
|
|
2820
|
+
/* @__PURE__ */ o.jsx(ao, { title: n, subtitle: i, classes: u == null ? void 0 : u.calculatedInfoHead }),
|
|
2821
|
+
/* @__PURE__ */ o.jsx(mo, { infoList: l, classes: u == null ? void 0 : u.calculatorInfoBody }),
|
|
2822
2822
|
/* @__PURE__ */ o.jsx(
|
|
2823
2823
|
ho,
|
|
2824
2824
|
{
|
|
2825
2825
|
assistHint: x,
|
|
2826
2826
|
buttonsConfig: d,
|
|
2827
2827
|
bottomDescription: t,
|
|
2828
|
-
classes:
|
|
2828
|
+
classes: u == null ? void 0 : u.calculatorInfoFooter
|
|
2829
2829
|
}
|
|
2830
2830
|
)
|
|
2831
2831
|
] }), fo = 2e4, Be = ({
|
|
2832
2832
|
slidersGroupConfig: e,
|
|
2833
2833
|
additionalSliderGroupConfig: t
|
|
2834
2834
|
}) => {
|
|
2835
|
-
const [
|
|
2835
|
+
const [r, n] = W(!1), { watch: i, setValue: d } = vt(), l = e == null ? void 0 : e.fields.find(({ args: S }) => S.name === "sum"), { args: m } = l || {}, { max: x, name: u, defaultValue: p } = m || {}, f = i(u), { min: y, name: c } = (t == null ? void 0 : t.args) ?? {}, v = i(c), g = Number(x ?? 0) - (f ?? p);
|
|
2836
2836
|
return _t(() => {
|
|
2837
2837
|
v > g && d(c, g);
|
|
2838
2838
|
}, [g, v, d, f]), _t(() => {
|
|
2839
|
-
Number(x) === f &&
|
|
2840
|
-
}, [
|
|
2841
|
-
sliderVisible:
|
|
2842
|
-
setSliderVisible:
|
|
2839
|
+
Number(x) === f && n(!1);
|
|
2840
|
+
}, [n, x, f]), {
|
|
2841
|
+
sliderVisible: r,
|
|
2842
|
+
setSliderVisible: n,
|
|
2843
2843
|
sumMax: x,
|
|
2844
|
-
sumName:
|
|
2844
|
+
sumName: u,
|
|
2845
2845
|
sumDefaultValue: p,
|
|
2846
2846
|
sumValue: f,
|
|
2847
2847
|
additionalSliderMax: g,
|
|
2848
2848
|
onCheckedChange: () => {
|
|
2849
|
-
|
|
2849
|
+
n((S) => !S), v <= 0 && d(c, y), Number(x) === f && (d(u ?? "", f - fo), d(c, y));
|
|
2850
2850
|
},
|
|
2851
2851
|
sliderSumExist: !O.isObjectEmpty(l == null ? void 0 : l.args),
|
|
2852
2852
|
sliderSumCorrectType: (l == null ? void 0 : l.args.componentType) === "algorithmic" || (l == null ? void 0 : l.args.componentType) === "step"
|
|
@@ -2861,41 +2861,41 @@ const Qn = (e, t) => {
|
|
|
2861
2861
|
}, bo = ({
|
|
2862
2862
|
triggerText: e,
|
|
2863
2863
|
modalTitle: t,
|
|
2864
|
-
description:
|
|
2865
|
-
classes:
|
|
2864
|
+
description: r,
|
|
2865
|
+
classes: n,
|
|
2866
2866
|
modalProps: i,
|
|
2867
2867
|
contentVariant: d
|
|
2868
2868
|
}) => {
|
|
2869
|
-
const [l,
|
|
2870
|
-
return /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4 rounded-sm bg-color-blue-grey-100 p-4",
|
|
2871
|
-
|
|
2869
|
+
const [l, m] = ir(!1);
|
|
2870
|
+
return /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4 rounded-sm bg-color-blue-grey-100 p-4", n == null ? void 0 : n.wrapper), children: [
|
|
2871
|
+
r && /* @__PURE__ */ o.jsx("p", { className: a("desk-body-regular-l text-color-tetriary", n == null ? void 0 : n.description), children: r }),
|
|
2872
2872
|
/* @__PURE__ */ o.jsx(
|
|
2873
2873
|
"button",
|
|
2874
2874
|
{
|
|
2875
|
-
onClick: () =>
|
|
2875
|
+
onClick: () => m(!0),
|
|
2876
2876
|
className: a(
|
|
2877
2877
|
"desk-body-regular-l w-max cursor-pointer text-color-primary-default underline underline-offset-4",
|
|
2878
|
-
|
|
2878
|
+
n == null ? void 0 : n.button
|
|
2879
2879
|
),
|
|
2880
2880
|
children: e
|
|
2881
2881
|
}
|
|
2882
2882
|
),
|
|
2883
|
-
/* @__PURE__ */ o.jsx(
|
|
2883
|
+
/* @__PURE__ */ o.jsx(Ye, { title: t, isModalOpen: l, closeModal: () => m(!1), ...i, children: co(d) })
|
|
2884
2884
|
] });
|
|
2885
|
-
},
|
|
2885
|
+
}, s = ({ fields: e }) => {
|
|
2886
2886
|
const { control: t } = vt();
|
|
2887
2887
|
return /* @__PURE__ */ o.jsx(Rt, { control: t, fields: e });
|
|
2888
2888
|
}, go = ({
|
|
2889
2889
|
slidersGroupConfig: e,
|
|
2890
2890
|
additionalSliderGroupConfig: t,
|
|
2891
|
-
classes:
|
|
2891
|
+
classes: r
|
|
2892
2892
|
}) => {
|
|
2893
|
-
const { control:
|
|
2893
|
+
const { control: n } = vt(), { sliderVisible: i, additionalSliderMax: d, onCheckedChange: l } = Be({
|
|
2894
2894
|
slidersGroupConfig: e,
|
|
2895
2895
|
additionalSliderGroupConfig: t
|
|
2896
2896
|
});
|
|
2897
|
-
return O.isNil(t == null ? void 0 : t.args) || !(t != null && t.args) ? null : /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4",
|
|
2898
|
-
/* @__PURE__ */ o.jsxs("div", { className: a("inline-flex items-center gap-2",
|
|
2897
|
+
return O.isNil(t == null ? void 0 : t.args) || !(t != null && t.args) ? null : /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4", r == null ? void 0 : r.wrapper), children: [
|
|
2898
|
+
/* @__PURE__ */ o.jsxs("div", { className: a("inline-flex items-center gap-2", r == null ? void 0 : r.block), children: [
|
|
2899
2899
|
/* @__PURE__ */ o.jsx(yt.SwitchBase, { checked: i, onCheckedChange: l }),
|
|
2900
2900
|
/* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l", children: "Хочу получить деньги дополнительно" })
|
|
2901
2901
|
] }),
|
|
@@ -2903,7 +2903,7 @@ const Qn = (e, t) => {
|
|
|
2903
2903
|
ye.SliderControl,
|
|
2904
2904
|
{
|
|
2905
2905
|
...t.args,
|
|
2906
|
-
control:
|
|
2906
|
+
control: n,
|
|
2907
2907
|
componentType: "algorithmic",
|
|
2908
2908
|
suffix: "currency",
|
|
2909
2909
|
defaultValue: t == null ? void 0 : t.args.min,
|
|
@@ -2911,22 +2911,22 @@ const Qn = (e, t) => {
|
|
|
2911
2911
|
}
|
|
2912
2912
|
)
|
|
2913
2913
|
] });
|
|
2914
|
-
}, jo = ({ modalConfig: e, fieldsGroup: t, classes:
|
|
2914
|
+
}, jo = ({ modalConfig: e, fieldsGroup: t, classes: r }) => {
|
|
2915
2915
|
var d;
|
|
2916
|
-
const { sliderSumExist:
|
|
2916
|
+
const { sliderSumExist: n, sliderSumCorrectType: i } = Be({
|
|
2917
2917
|
slidersGroupConfig: t.slidersGroupConfig,
|
|
2918
2918
|
additionalSliderGroupConfig: t.additionalSliderGroupConfig
|
|
2919
2919
|
});
|
|
2920
|
-
return /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-1 flex-col gap-8",
|
|
2921
|
-
(e == null ? void 0 : e.triggerText) && (e == null ? void 0 : e.contentVariant) && /* @__PURE__ */ o.jsx(bo, { classes:
|
|
2922
|
-
(t == null ? void 0 : t.selectGroupConfig) && /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4",
|
|
2923
|
-
(t == null ? void 0 : t.slidersGroupConfig) && /* @__PURE__ */ o.jsx(
|
|
2924
|
-
(t == null ? void 0 : t.radioGroupTabConfig) && /* @__PURE__ */ o.jsx(
|
|
2925
|
-
(t == null ? void 0 : t.checkboxGroupConfig) && /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4",
|
|
2926
|
-
(t == null ? void 0 : t.radioGroupConfig) && /* @__PURE__ */ o.jsx(
|
|
2927
|
-
(t == null ? void 0 : t.radioGroupCardConfig) && /* @__PURE__ */ o.jsx(
|
|
2928
|
-
(t == null ? void 0 : t.switchGroupConfig) && /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4",
|
|
2929
|
-
((d = t.additionalSliderGroupConfig) == null ? void 0 : d.args.enabled) && t.slidersGroupConfig && t.additionalSliderGroupConfig &&
|
|
2920
|
+
return /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-1 flex-col gap-8", r == null ? void 0 : r.rootFieldsWrapper), children: [
|
|
2921
|
+
(e == null ? void 0 : e.triggerText) && (e == null ? void 0 : e.contentVariant) && /* @__PURE__ */ o.jsx(bo, { classes: r == null ? void 0 : r.modalClasses, ...e }),
|
|
2922
|
+
(t == null ? void 0 : t.selectGroupConfig) && /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4", r == null ? void 0 : r.selectFieldsWrapper), children: /* @__PURE__ */ o.jsx(s, { ...t == null ? void 0 : t.selectGroupConfig }) }),
|
|
2923
|
+
(t == null ? void 0 : t.slidersGroupConfig) && /* @__PURE__ */ o.jsx(s, { ...t == null ? void 0 : t.slidersGroupConfig }),
|
|
2924
|
+
(t == null ? void 0 : t.radioGroupTabConfig) && /* @__PURE__ */ o.jsx(s, { ...t == null ? void 0 : t.radioGroupTabConfig }),
|
|
2925
|
+
(t == null ? void 0 : t.checkboxGroupConfig) && /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4", r == null ? void 0 : r.checkboxFieldsWrapper), children: /* @__PURE__ */ o.jsx(s, { ...t == null ? void 0 : t.checkboxGroupConfig }) }),
|
|
2926
|
+
(t == null ? void 0 : t.radioGroupConfig) && /* @__PURE__ */ o.jsx(s, { ...t == null ? void 0 : t.radioGroupConfig }),
|
|
2927
|
+
(t == null ? void 0 : t.radioGroupCardConfig) && /* @__PURE__ */ o.jsx(s, { ...t == null ? void 0 : t.radioGroupCardConfig }),
|
|
2928
|
+
(t == null ? void 0 : t.switchGroupConfig) && /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4", r == null ? void 0 : r.switchFieldsWrapper), children: /* @__PURE__ */ o.jsx(s, { ...t == null ? void 0 : t.switchGroupConfig }) }),
|
|
2929
|
+
((d = t.additionalSliderGroupConfig) == null ? void 0 : d.args.enabled) && t.slidersGroupConfig && t.additionalSliderGroupConfig && n && i && /* @__PURE__ */ o.jsx(
|
|
2930
2930
|
go,
|
|
2931
2931
|
{
|
|
2932
2932
|
slidersGroupConfig: t.slidersGroupConfig,
|
|
@@ -2934,55 +2934,58 @@ const Qn = (e, t) => {
|
|
|
2934
2934
|
}
|
|
2935
2935
|
)
|
|
2936
2936
|
] });
|
|
2937
|
-
}, yo = Pt(({ calculatorTabs: e, activeCalculator: t, setActiveCalculator: n }) => /* @__PURE__ */ o.jsx("div", { className: "mb-8 flex items-center gap-4", children: e == null ? void 0 : e.map(({ name:
|
|
2937
|
+
}, yo = Pt(({ calculatorTabs: e, activeCalculator: t, setActiveCalculator: r, classes: n }) => /* @__PURE__ */ o.jsx("div", { className: a("mb-8 flex items-center gap-4", n == null ? void 0 : n.wrapper), children: e == null ? void 0 : e.map(({ name: i, label: d }) => /* @__PURE__ */ o.jsx(
|
|
2938
2938
|
"button",
|
|
2939
2939
|
{
|
|
2940
|
-
onClick: () =>
|
|
2940
|
+
onClick: () => r(i),
|
|
2941
2941
|
className: a(
|
|
2942
2942
|
"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",
|
|
2943
|
-
{ "bg-icon-primary-default text-color-white": t ===
|
|
2943
|
+
{ "bg-icon-primary-default text-color-white": t === i },
|
|
2944
|
+
n == null ? void 0 : n.tab
|
|
2944
2945
|
),
|
|
2945
|
-
children:
|
|
2946
|
+
children: d
|
|
2946
2947
|
},
|
|
2947
|
-
|
|
2948
|
+
i
|
|
2948
2949
|
)) })), ko = ({
|
|
2949
2950
|
calculatorInfoConfig: e,
|
|
2950
2951
|
calculatorFieldsConfig: t,
|
|
2951
|
-
classes:
|
|
2952
|
+
classes: r
|
|
2952
2953
|
}) => {
|
|
2953
|
-
const
|
|
2954
|
-
schema:
|
|
2954
|
+
const n = no(t == null ? void 0 : t.fieldsGroup), i = Dt({
|
|
2955
|
+
schema: n,
|
|
2955
2956
|
mode: "onBlur",
|
|
2956
|
-
defaultValues: Ht.getZodDefaults(
|
|
2957
|
+
defaultValues: Ht.getZodDefaults(n)
|
|
2957
2958
|
}), d = i.watch(), { rootValue: l } = e;
|
|
2958
2959
|
_t(() => {
|
|
2959
2960
|
er.setItem("calculatorData", JSON.stringify(d));
|
|
2960
2961
|
}, [d]);
|
|
2961
|
-
const
|
|
2962
|
-
return /* @__PURE__ */ o.jsx(nr, { ...i, children: /* @__PURE__ */ o.jsxs("div", { className: a("flex items-start gap-16",
|
|
2963
|
-
/* @__PURE__ */ o.jsx(jo, { ...t, classes:
|
|
2964
|
-
/* @__PURE__ */ o.jsx(po, { ...x, classes:
|
|
2962
|
+
const m = Te(l) ? Fe(l.formula, d) : l, x = { ...e, rootValue: m };
|
|
2963
|
+
return /* @__PURE__ */ o.jsx(nr, { ...i, children: /* @__PURE__ */ o.jsxs("div", { className: a("flex items-start gap-16", r == null ? void 0 : r.wrapper), children: [
|
|
2964
|
+
/* @__PURE__ */ o.jsx(jo, { ...t, classes: r == null ? void 0 : r.calculatorFields }),
|
|
2965
|
+
/* @__PURE__ */ o.jsx(po, { ...x, classes: r == null ? void 0 : r.calculatorInfo })
|
|
2965
2966
|
] }) });
|
|
2966
|
-
}, xe = ({ calculators: e, headline: t }) => {
|
|
2967
|
-
var
|
|
2968
|
-
const n = e.length > 1, [
|
|
2969
|
-
return /* @__PURE__ */ o.jsx("section", { id: j.calculator, children: /* @__PURE__ */ o.jsx(B, { children: /* @__PURE__ */ o.jsxs("div", { className:
|
|
2970
|
-
/* @__PURE__ */ o.jsx(H, { className: "mb-12", as: "h2", children: t }),
|
|
2967
|
+
}, xe = ({ calculators: e, headline: t, classes: r }) => {
|
|
2968
|
+
var u;
|
|
2969
|
+
const n = e.length > 1, [i, d] = W(n ? (u = e[0]) == null ? void 0 : u.name : ""), l = kt(() => e == null ? void 0 : e.map(({ name: p, label: f }) => ({ name: p, label: f })), [e]), m = n ? l == null ? void 0 : l.findIndex((p) => p.name === i) : 0, x = e[m];
|
|
2970
|
+
return /* @__PURE__ */ o.jsx("section", { id: j.calculator, "data-test-id": j.calculator, className: a(r == null ? void 0 : r.root), children: /* @__PURE__ */ o.jsx(B, { className: a(r == null ? void 0 : r.container), children: /* @__PURE__ */ o.jsxs("div", { className: a(r == null ? void 0 : r.wrapper), children: [
|
|
2971
|
+
/* @__PURE__ */ o.jsx(H, { className: a("mb-12", r == null ? void 0 : r.headline), as: "h2", children: t }),
|
|
2971
2972
|
n && /* @__PURE__ */ o.jsx(
|
|
2972
2973
|
yo,
|
|
2973
2974
|
{
|
|
2974
|
-
calculatorTabs:
|
|
2975
|
-
activeCalculator:
|
|
2976
|
-
setActiveCalculator:
|
|
2975
|
+
calculatorTabs: l,
|
|
2976
|
+
activeCalculator: i,
|
|
2977
|
+
setActiveCalculator: d,
|
|
2978
|
+
classes: r == null ? void 0 : r.calculatorTabs
|
|
2977
2979
|
}
|
|
2978
2980
|
),
|
|
2979
2981
|
/* @__PURE__ */ o.jsx(
|
|
2980
2982
|
ko,
|
|
2981
2983
|
{
|
|
2982
|
-
name:
|
|
2983
|
-
label:
|
|
2984
|
-
calculatorInfoConfig:
|
|
2985
|
-
calculatorFieldsConfig:
|
|
2984
|
+
name: x.name,
|
|
2985
|
+
label: x.label,
|
|
2986
|
+
calculatorInfoConfig: x.calculatorInfoConfig,
|
|
2987
|
+
calculatorFieldsConfig: x.calculatorFieldsConfig,
|
|
2988
|
+
classes: r == null ? void 0 : r.calculatorView
|
|
2986
2989
|
}
|
|
2987
2990
|
)
|
|
2988
2991
|
] }) }) });
|
|
@@ -2994,11 +2997,11 @@ const Qn = (e, t) => {
|
|
|
2994
2997
|
export {
|
|
2995
2998
|
St as Advantages,
|
|
2996
2999
|
Eo as AuthProvider,
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
+
st as Banner,
|
|
3001
|
+
Gt as BannerWithSeparateImg,
|
|
3002
|
+
Yt as Benefit,
|
|
3000
3003
|
Ln as Breadcrumbs,
|
|
3001
|
-
|
|
3004
|
+
Y as ButtonWithHandlers,
|
|
3002
3005
|
xe as Calculator,
|
|
3003
3006
|
ko as CalculatorView,
|
|
3004
3007
|
le as DynamicForm,
|
|
@@ -3008,7 +3011,7 @@ export {
|
|
|
3008
3011
|
te as Footer,
|
|
3009
3012
|
Po as HTMLParser,
|
|
3010
3013
|
it as HTMLRenderer,
|
|
3011
|
-
|
|
3014
|
+
Jt as Header,
|
|
3012
3015
|
de as InterLinking,
|
|
3013
3016
|
Ir as KEYS_OF_WIDGET_LIST,
|
|
3014
3017
|
re as LongBanner,
|