@scbt-ecom/ui 0.78.7 → 0.78.8
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/htmlParser/HTMLRenderer.d.ts +1 -1
- package/dist/widget.js +999 -1068
- package/dist/widget.js.map +1 -1
- package/package.json +1 -1
package/dist/widget.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
var Ft = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var Re = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var x = (t, e,
|
|
8
|
-
var
|
|
5
|
+
var Et = (t, e, o) => e in t ? Ft(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
6
|
+
var ve = (t, e, o) => Et(t, typeof e != "symbol" ? e + "" : e, o), Ne = (t, e, o) => e.has(t) || Re("Cannot " + o);
|
|
7
|
+
var x = (t, e, o) => (Ne(t, e, "read from private field"), o ? o.call(t) : e.get(t)), M = (t, e, o) => e.has(t) ? Re("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, o), k = (t, e, o, n) => (Ne(t, e, "write to private field"), n ? n.call(t, o) : e.set(t, o), o), W = (t, e, o) => (Ne(t, e, "access private method"), o);
|
|
8
|
+
var ce = (t, e, o, n) => ({
|
|
9
9
|
set _(i) {
|
|
10
|
-
k(t, e, i,
|
|
10
|
+
k(t, e, i, o);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
|
-
return x(t, e,
|
|
13
|
+
return x(t, e, n);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { S as
|
|
17
|
-
import { c as
|
|
18
|
-
import * as
|
|
19
|
-
import { lazy as B, useCallback as
|
|
20
|
-
import { i as
|
|
21
|
-
import { s as
|
|
22
|
-
import { u as ee, b as
|
|
23
|
-
import { z as
|
|
24
|
-
import { o as
|
|
25
|
-
import { a as
|
|
26
|
-
import { createPortal as
|
|
27
|
-
var R,
|
|
16
|
+
import { S as ct, h as ft, Q as Bt, n as O, m as He, R as Pt, c as Dt, a as ze, b as V, e as Rt, d as Ht, f as zt, g as Lt, o as Le, r as Qe, i as Qt, j as Ve, p as $e, s as Vt, k as r, B as ge, l as E, q as F, P as bt, t as $t, H as L, I as b, C as je, u as _e, L as At, v as Te, A as le, w as gt, x as qt, y as Wt, U as ye, D as Ut, z as Se, E as Kt, M as Zt } from "./index-DClkmaAg.js";
|
|
17
|
+
import { c as a, T as S } from "./typeGuards-CSiImkUY.js";
|
|
18
|
+
import * as ue from "react";
|
|
19
|
+
import { lazy as B, useCallback as jt, useState as A, useMemo as se, createElement as yt, useRef as Oe, useReducer as Xt, memo as Fe, forwardRef as Yt, useEffect as Ae } from "react";
|
|
20
|
+
import { i as qe } from "./isClient-C9aZtt2Q.js";
|
|
21
|
+
import { s as Jt, c as ke, a as Gt } from "./capitalize-B7CPmCdk.js";
|
|
22
|
+
import { u as ee, b as Ee, a as er, f as we, F as tr } from "./useDebounce-DcKs_mq9.js";
|
|
23
|
+
import { z as st, Z as Be } from "./index-B6WYooej.js";
|
|
24
|
+
import { o as kt } from "./utils-Bu1Zg675.js";
|
|
25
|
+
import { a as rr, u as nr } from "./useFieldsProgress-COFjjZK4.js";
|
|
26
|
+
import { createPortal as wt } from "react-dom";
|
|
27
|
+
var R, mt, or = (mt = class extends ct {
|
|
28
28
|
constructor(e = {}) {
|
|
29
29
|
super();
|
|
30
30
|
M(this, R);
|
|
31
31
|
this.config = e, k(this, R, /* @__PURE__ */ new Map());
|
|
32
32
|
}
|
|
33
|
-
build(e,
|
|
34
|
-
const i =
|
|
35
|
-
let d = this.get(
|
|
36
|
-
return d || (d = new
|
|
33
|
+
build(e, o, n) {
|
|
34
|
+
const i = o.queryKey, l = o.queryHash ?? ft(i, o);
|
|
35
|
+
let d = this.get(l);
|
|
36
|
+
return d || (d = new Bt({
|
|
37
37
|
client: e,
|
|
38
38
|
queryKey: i,
|
|
39
|
-
queryHash:
|
|
40
|
-
options: e.defaultQueryOptions(
|
|
41
|
-
state:
|
|
39
|
+
queryHash: l,
|
|
40
|
+
options: e.defaultQueryOptions(o),
|
|
41
|
+
state: n,
|
|
42
42
|
defaultOptions: e.getQueryDefaults(i)
|
|
43
43
|
}), this.add(d)), d;
|
|
44
44
|
}
|
|
@@ -49,11 +49,11 @@ var R, xt, ar = (xt = class extends bt {
|
|
|
49
49
|
}));
|
|
50
50
|
}
|
|
51
51
|
remove(e) {
|
|
52
|
-
const
|
|
53
|
-
|
|
52
|
+
const o = x(this, R).get(e.queryHash);
|
|
53
|
+
o && (e.destroy(), o === e && x(this, R).delete(e.queryHash), this.notify({ type: "removed", query: e }));
|
|
54
54
|
}
|
|
55
55
|
clear() {
|
|
56
|
-
|
|
56
|
+
O.batch(() => {
|
|
57
57
|
this.getAll().forEach((e) => {
|
|
58
58
|
this.remove(e);
|
|
59
59
|
});
|
|
@@ -66,44 +66,44 @@ var R, xt, ar = (xt = class extends bt {
|
|
|
66
66
|
return [...x(this, R).values()];
|
|
67
67
|
}
|
|
68
68
|
find(e) {
|
|
69
|
-
const
|
|
69
|
+
const o = { exact: !0, ...e };
|
|
70
70
|
return this.getAll().find(
|
|
71
|
-
(
|
|
71
|
+
(n) => He(o, n)
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
findAll(e = {}) {
|
|
75
|
-
const
|
|
76
|
-
return Object.keys(e).length > 0 ?
|
|
75
|
+
const o = this.getAll();
|
|
76
|
+
return Object.keys(e).length > 0 ? o.filter((n) => He(e, n)) : o;
|
|
77
77
|
}
|
|
78
78
|
notify(e) {
|
|
79
|
-
|
|
80
|
-
this.listeners.forEach((
|
|
81
|
-
|
|
79
|
+
O.batch(() => {
|
|
80
|
+
this.listeners.forEach((o) => {
|
|
81
|
+
o(e);
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
onFocus() {
|
|
86
|
-
|
|
86
|
+
O.batch(() => {
|
|
87
87
|
this.getAll().forEach((e) => {
|
|
88
88
|
e.onFocus();
|
|
89
89
|
});
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
onOnline() {
|
|
93
|
-
|
|
93
|
+
O.batch(() => {
|
|
94
94
|
this.getAll().forEach((e) => {
|
|
95
95
|
e.onOnline();
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
}, R = new WeakMap(),
|
|
99
|
+
}, R = new WeakMap(), mt), H, T, G, z, U, ht, ir = (ht = class extends Pt {
|
|
100
100
|
constructor(e) {
|
|
101
101
|
super();
|
|
102
102
|
M(this, z);
|
|
103
103
|
M(this, H);
|
|
104
104
|
M(this, T);
|
|
105
105
|
M(this, G);
|
|
106
|
-
this.mutationId = e.mutationId, k(this, T, e.mutationCache), k(this, H, []), this.state = e.state ||
|
|
106
|
+
this.mutationId = e.mutationId, k(this, T, e.mutationCache), k(this, H, []), this.state = e.state || lr(), this.setOptions(e.options), this.scheduleGc();
|
|
107
107
|
}
|
|
108
108
|
setOptions(e) {
|
|
109
109
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -119,7 +119,7 @@ var R, xt, ar = (xt = class extends bt {
|
|
|
119
119
|
}));
|
|
120
120
|
}
|
|
121
121
|
removeObserver(e) {
|
|
122
|
-
k(this, H, x(this, H).filter((
|
|
122
|
+
k(this, H, x(this, H).filter((o) => o !== e)), this.scheduleGc(), x(this, T).notify({
|
|
123
123
|
type: "observerRemoved",
|
|
124
124
|
mutation: this,
|
|
125
125
|
observer: e
|
|
@@ -134,38 +134,38 @@ var R, xt, ar = (xt = class extends bt {
|
|
|
134
134
|
this.execute(this.state.variables);
|
|
135
135
|
}
|
|
136
136
|
async execute(e) {
|
|
137
|
-
var
|
|
138
|
-
const
|
|
137
|
+
var l, d, u, m, h, p, c, g, f, w, j, v, _, q, C, I, D, Q, xe, ae;
|
|
138
|
+
const o = () => {
|
|
139
139
|
W(this, z, U).call(this, { type: "continue" });
|
|
140
140
|
};
|
|
141
|
-
k(this, G,
|
|
141
|
+
k(this, G, Dt({
|
|
142
142
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
|
|
143
|
-
onFail: (N,
|
|
144
|
-
W(this, z, U).call(this, { type: "failed", failureCount: N, error:
|
|
143
|
+
onFail: (N, pe) => {
|
|
144
|
+
W(this, z, U).call(this, { type: "failed", failureCount: N, error: pe });
|
|
145
145
|
},
|
|
146
146
|
onPause: () => {
|
|
147
147
|
W(this, z, U).call(this, { type: "pause" });
|
|
148
148
|
},
|
|
149
|
-
onContinue:
|
|
149
|
+
onContinue: o,
|
|
150
150
|
retry: this.options.retry ?? 0,
|
|
151
151
|
retryDelay: this.options.retryDelay,
|
|
152
152
|
networkMode: this.options.networkMode,
|
|
153
153
|
canRun: () => x(this, T).canRun(this)
|
|
154
154
|
}));
|
|
155
|
-
const
|
|
155
|
+
const n = this.state.status === "pending", i = !x(this, G).canStart();
|
|
156
156
|
try {
|
|
157
|
-
if (
|
|
158
|
-
|
|
157
|
+
if (n)
|
|
158
|
+
o();
|
|
159
159
|
else {
|
|
160
|
-
W(this, z, U).call(this, { type: "pending", variables: e, isPaused: i }), await ((d = (
|
|
161
|
-
|
|
160
|
+
W(this, z, U).call(this, { type: "pending", variables: e, isPaused: i }), await ((d = (l = x(this, T).config).onMutate) == null ? void 0 : d.call(
|
|
161
|
+
l,
|
|
162
162
|
e,
|
|
163
163
|
this
|
|
164
164
|
));
|
|
165
|
-
const
|
|
166
|
-
|
|
165
|
+
const pe = await ((m = (u = this.options).onMutate) == null ? void 0 : m.call(u, e));
|
|
166
|
+
pe !== this.state.context && W(this, z, U).call(this, {
|
|
167
167
|
type: "pending",
|
|
168
|
-
context:
|
|
168
|
+
context: pe,
|
|
169
169
|
variables: e,
|
|
170
170
|
isPaused: i
|
|
171
171
|
});
|
|
@@ -177,36 +177,36 @@ var R, xt, ar = (xt = class extends bt {
|
|
|
177
177
|
e,
|
|
178
178
|
this.state.context,
|
|
179
179
|
this
|
|
180
|
-
)), await ((
|
|
181
|
-
|
|
180
|
+
)), await ((g = (c = this.options).onSuccess) == null ? void 0 : g.call(c, N, e, this.state.context)), await ((w = (f = x(this, T).config).onSettled) == null ? void 0 : w.call(
|
|
181
|
+
f,
|
|
182
182
|
N,
|
|
183
183
|
null,
|
|
184
184
|
this.state.variables,
|
|
185
185
|
this.state.context,
|
|
186
186
|
this
|
|
187
|
-
)), await ((v = (
|
|
187
|
+
)), await ((v = (j = this.options).onSettled) == null ? void 0 : v.call(j, N, null, e, this.state.context)), W(this, z, U).call(this, { type: "success", data: N }), N;
|
|
188
188
|
} catch (N) {
|
|
189
189
|
try {
|
|
190
|
-
throw await ((q = (
|
|
191
|
-
|
|
190
|
+
throw await ((q = (_ = x(this, T).config).onError) == null ? void 0 : q.call(
|
|
191
|
+
_,
|
|
192
192
|
N,
|
|
193
193
|
e,
|
|
194
194
|
this.state.context,
|
|
195
195
|
this
|
|
196
|
-
)), await ((
|
|
196
|
+
)), await ((I = (C = this.options).onError) == null ? void 0 : I.call(
|
|
197
197
|
C,
|
|
198
198
|
N,
|
|
199
199
|
e,
|
|
200
200
|
this.state.context
|
|
201
|
-
)), await ((
|
|
201
|
+
)), await ((Q = (D = x(this, T).config).onSettled) == null ? void 0 : Q.call(
|
|
202
202
|
D,
|
|
203
203
|
void 0,
|
|
204
204
|
N,
|
|
205
205
|
this.state.variables,
|
|
206
206
|
this.state.context,
|
|
207
207
|
this
|
|
208
|
-
)), await ((
|
|
209
|
-
|
|
208
|
+
)), await ((ae = (xe = this.options).onSettled) == null ? void 0 : ae.call(
|
|
209
|
+
xe,
|
|
210
210
|
void 0,
|
|
211
211
|
N,
|
|
212
212
|
e,
|
|
@@ -220,27 +220,27 @@ var R, xt, ar = (xt = class extends bt {
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
}, H = new WeakMap(), T = new WeakMap(), G = new WeakMap(), z = new WeakSet(), U = function(e) {
|
|
223
|
-
const
|
|
223
|
+
const o = (n) => {
|
|
224
224
|
switch (e.type) {
|
|
225
225
|
case "failed":
|
|
226
226
|
return {
|
|
227
|
-
...
|
|
227
|
+
...n,
|
|
228
228
|
failureCount: e.failureCount,
|
|
229
229
|
failureReason: e.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: e.context,
|
|
245
245
|
data: void 0,
|
|
246
246
|
failureCount: 0,
|
|
@@ -253,7 +253,7 @@ var R, xt, ar = (xt = class extends bt {
|
|
|
253
253
|
};
|
|
254
254
|
case "success":
|
|
255
255
|
return {
|
|
256
|
-
...
|
|
256
|
+
...n,
|
|
257
257
|
data: e.data,
|
|
258
258
|
failureCount: 0,
|
|
259
259
|
failureReason: null,
|
|
@@ -263,27 +263,27 @@ var R, xt, ar = (xt = class extends bt {
|
|
|
263
263
|
};
|
|
264
264
|
case "error":
|
|
265
265
|
return {
|
|
266
|
-
...
|
|
266
|
+
...n,
|
|
267
267
|
data: void 0,
|
|
268
268
|
error: e.error,
|
|
269
|
-
failureCount:
|
|
269
|
+
failureCount: n.failureCount + 1,
|
|
270
270
|
failureReason: e.error,
|
|
271
271
|
isPaused: !1,
|
|
272
272
|
status: "error"
|
|
273
273
|
};
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
|
-
this.state =
|
|
277
|
-
x(this, H).forEach((
|
|
278
|
-
|
|
276
|
+
this.state = o(this.state), O.batch(() => {
|
|
277
|
+
x(this, H).forEach((n) => {
|
|
278
|
+
n.onMutationUpdate(e);
|
|
279
279
|
}), x(this, T).notify({
|
|
280
280
|
mutation: this,
|
|
281
281
|
type: "updated",
|
|
282
282
|
action: e
|
|
283
283
|
});
|
|
284
284
|
});
|
|
285
|
-
},
|
|
286
|
-
function
|
|
285
|
+
}, ht);
|
|
286
|
+
function lr() {
|
|
287
287
|
return {
|
|
288
288
|
context: void 0,
|
|
289
289
|
data: void 0,
|
|
@@ -296,161 +296,161 @@ function dr() {
|
|
|
296
296
|
submittedAt: 0
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
var
|
|
299
|
+
var $, P, he, xt, ar = (xt = class extends ct {
|
|
300
300
|
constructor(e = {}) {
|
|
301
301
|
super();
|
|
302
|
-
M(this,
|
|
302
|
+
M(this, $);
|
|
303
303
|
M(this, P);
|
|
304
|
-
M(this,
|
|
305
|
-
this.config = e, k(this,
|
|
304
|
+
M(this, he);
|
|
305
|
+
this.config = e, k(this, $, /* @__PURE__ */ new Set()), k(this, P, /* @__PURE__ */ new Map()), k(this, he, 0);
|
|
306
306
|
}
|
|
307
|
-
build(e,
|
|
308
|
-
const i = new
|
|
307
|
+
build(e, o, n) {
|
|
308
|
+
const i = new ir({
|
|
309
309
|
mutationCache: this,
|
|
310
|
-
mutationId: ++
|
|
311
|
-
options: e.defaultMutationOptions(
|
|
312
|
-
state:
|
|
310
|
+
mutationId: ++ce(this, he)._,
|
|
311
|
+
options: e.defaultMutationOptions(o),
|
|
312
|
+
state: n
|
|
313
313
|
});
|
|
314
314
|
return this.add(i), i;
|
|
315
315
|
}
|
|
316
316
|
add(e) {
|
|
317
|
-
x(this,
|
|
318
|
-
const
|
|
319
|
-
if (typeof
|
|
320
|
-
const
|
|
321
|
-
|
|
317
|
+
x(this, $).add(e);
|
|
318
|
+
const o = fe(e);
|
|
319
|
+
if (typeof o == "string") {
|
|
320
|
+
const n = x(this, P).get(o);
|
|
321
|
+
n ? n.push(e) : x(this, P).set(o, [e]);
|
|
322
322
|
}
|
|
323
323
|
this.notify({ type: "added", mutation: e });
|
|
324
324
|
}
|
|
325
325
|
remove(e) {
|
|
326
|
-
if (x(this,
|
|
327
|
-
const
|
|
328
|
-
if (typeof
|
|
329
|
-
const
|
|
330
|
-
if (
|
|
331
|
-
if (
|
|
332
|
-
const i =
|
|
333
|
-
i !== -1 &&
|
|
334
|
-
} else
|
|
326
|
+
if (x(this, $).delete(e)) {
|
|
327
|
+
const o = fe(e);
|
|
328
|
+
if (typeof o == "string") {
|
|
329
|
+
const n = x(this, P).get(o);
|
|
330
|
+
if (n)
|
|
331
|
+
if (n.length > 1) {
|
|
332
|
+
const i = n.indexOf(e);
|
|
333
|
+
i !== -1 && n.splice(i, 1);
|
|
334
|
+
} else n[0] === e && x(this, P).delete(o);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
this.notify({ type: "removed", mutation: e });
|
|
338
338
|
}
|
|
339
339
|
canRun(e) {
|
|
340
|
-
const
|
|
341
|
-
if (typeof
|
|
342
|
-
const
|
|
343
|
-
(
|
|
340
|
+
const o = fe(e);
|
|
341
|
+
if (typeof o == "string") {
|
|
342
|
+
const n = x(this, P).get(o), i = n == null ? void 0 : n.find(
|
|
343
|
+
(l) => l.state.status === "pending"
|
|
344
344
|
);
|
|
345
345
|
return !i || i === e;
|
|
346
346
|
} else
|
|
347
347
|
return !0;
|
|
348
348
|
}
|
|
349
349
|
runNext(e) {
|
|
350
|
-
var
|
|
351
|
-
const
|
|
352
|
-
if (typeof
|
|
353
|
-
const i = (
|
|
350
|
+
var n;
|
|
351
|
+
const o = fe(e);
|
|
352
|
+
if (typeof o == "string") {
|
|
353
|
+
const i = (n = x(this, P).get(o)) == null ? void 0 : n.find((l) => l !== e && l.state.isPaused);
|
|
354
354
|
return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
|
|
355
355
|
} else
|
|
356
356
|
return Promise.resolve();
|
|
357
357
|
}
|
|
358
358
|
clear() {
|
|
359
|
-
|
|
360
|
-
x(this,
|
|
359
|
+
O.batch(() => {
|
|
360
|
+
x(this, $).forEach((e) => {
|
|
361
361
|
this.notify({ type: "removed", mutation: e });
|
|
362
|
-
}), x(this,
|
|
362
|
+
}), x(this, $).clear(), x(this, P).clear();
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
365
|
getAll() {
|
|
366
|
-
return Array.from(x(this,
|
|
366
|
+
return Array.from(x(this, $));
|
|
367
367
|
}
|
|
368
368
|
find(e) {
|
|
369
|
-
const
|
|
369
|
+
const o = { exact: !0, ...e };
|
|
370
370
|
return this.getAll().find(
|
|
371
|
-
(
|
|
371
|
+
(n) => ze(o, n)
|
|
372
372
|
);
|
|
373
373
|
}
|
|
374
374
|
findAll(e = {}) {
|
|
375
|
-
return this.getAll().filter((
|
|
375
|
+
return this.getAll().filter((o) => ze(e, o));
|
|
376
376
|
}
|
|
377
377
|
notify(e) {
|
|
378
|
-
|
|
379
|
-
this.listeners.forEach((
|
|
380
|
-
|
|
378
|
+
O.batch(() => {
|
|
379
|
+
this.listeners.forEach((o) => {
|
|
380
|
+
o(e);
|
|
381
381
|
});
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
384
|
resumePausedMutations() {
|
|
385
|
-
const e = this.getAll().filter((
|
|
386
|
-
return
|
|
385
|
+
const e = this.getAll().filter((o) => o.state.isPaused);
|
|
386
|
+
return O.batch(
|
|
387
387
|
() => Promise.all(
|
|
388
|
-
e.map((
|
|
388
|
+
e.map((o) => o.continue().catch(V))
|
|
389
389
|
)
|
|
390
390
|
);
|
|
391
391
|
}
|
|
392
|
-
},
|
|
393
|
-
function
|
|
392
|
+
}, $ = new WeakMap(), P = new WeakMap(), he = new WeakMap(), xt);
|
|
393
|
+
function fe(t) {
|
|
394
394
|
var e;
|
|
395
395
|
return (e = t.options.scope) == null ? void 0 : e.id;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function We(t) {
|
|
398
398
|
return {
|
|
399
|
-
onFetch: (e,
|
|
400
|
-
var p, c,
|
|
401
|
-
const
|
|
399
|
+
onFetch: (e, o) => {
|
|
400
|
+
var p, c, g, f, w;
|
|
401
|
+
const n = e.options, i = (g = (c = (p = e.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : g.direction, l = ((f = e.state.data) == null ? void 0 : f.pages) || [], d = ((w = e.state.data) == null ? void 0 : w.pageParams) || [];
|
|
402
402
|
let u = { pages: [], pageParams: [] }, m = 0;
|
|
403
403
|
const h = async () => {
|
|
404
|
-
let
|
|
404
|
+
let j = !1;
|
|
405
405
|
const v = (C) => {
|
|
406
406
|
Object.defineProperty(C, "signal", {
|
|
407
407
|
enumerable: !0,
|
|
408
|
-
get: () => (e.signal.aborted ?
|
|
409
|
-
|
|
408
|
+
get: () => (e.signal.aborted ? j = !0 : e.signal.addEventListener("abort", () => {
|
|
409
|
+
j = !0;
|
|
410
410
|
}), e.signal)
|
|
411
411
|
});
|
|
412
|
-
},
|
|
413
|
-
if (
|
|
412
|
+
}, _ = Rt(e.options, e.fetchOptions), q = async (C, I, D) => {
|
|
413
|
+
if (j)
|
|
414
414
|
return Promise.reject();
|
|
415
|
-
if (
|
|
415
|
+
if (I == null && C.pages.length)
|
|
416
416
|
return Promise.resolve(C);
|
|
417
|
-
const
|
|
417
|
+
const Q = {
|
|
418
418
|
client: e.client,
|
|
419
419
|
queryKey: e.queryKey,
|
|
420
|
-
pageParam:
|
|
420
|
+
pageParam: I,
|
|
421
421
|
direction: D ? "backward" : "forward",
|
|
422
422
|
meta: e.options.meta
|
|
423
423
|
};
|
|
424
|
-
v(
|
|
425
|
-
const
|
|
426
|
-
|
|
427
|
-
), { maxPages:
|
|
424
|
+
v(Q);
|
|
425
|
+
const xe = await _(
|
|
426
|
+
Q
|
|
427
|
+
), { maxPages: ae } = e.options, N = D ? Ht : zt;
|
|
428
428
|
return {
|
|
429
|
-
pages: N(C.pages,
|
|
430
|
-
pageParams: N(C.pageParams,
|
|
429
|
+
pages: N(C.pages, xe, ae),
|
|
430
|
+
pageParams: N(C.pageParams, I, ae)
|
|
431
431
|
};
|
|
432
432
|
};
|
|
433
|
-
if (i &&
|
|
434
|
-
const C = i === "backward",
|
|
435
|
-
pages:
|
|
433
|
+
if (i && l.length) {
|
|
434
|
+
const C = i === "backward", I = C ? dr : Ue, D = {
|
|
435
|
+
pages: l,
|
|
436
436
|
pageParams: d
|
|
437
|
-
},
|
|
438
|
-
u = await q(D,
|
|
437
|
+
}, Q = I(n, D);
|
|
438
|
+
u = await q(D, Q, C);
|
|
439
439
|
} else {
|
|
440
|
-
const C = t ??
|
|
440
|
+
const C = t ?? l.length;
|
|
441
441
|
do {
|
|
442
|
-
const
|
|
443
|
-
if (m > 0 &&
|
|
442
|
+
const I = m === 0 ? d[0] ?? n.initialPageParam : Ue(n, u);
|
|
443
|
+
if (m > 0 && I == null)
|
|
444
444
|
break;
|
|
445
|
-
u = await q(u,
|
|
445
|
+
u = await q(u, I), m++;
|
|
446
446
|
} while (m < C);
|
|
447
447
|
}
|
|
448
448
|
return u;
|
|
449
449
|
};
|
|
450
450
|
e.options.persister ? e.fetchFn = () => {
|
|
451
|
-
var
|
|
452
|
-
return (v = (
|
|
453
|
-
|
|
451
|
+
var j, v;
|
|
452
|
+
return (v = (j = e.options).persister) == null ? void 0 : v.call(
|
|
453
|
+
j,
|
|
454
454
|
h,
|
|
455
455
|
{
|
|
456
456
|
client: e.client,
|
|
@@ -458,28 +458,28 @@ function Ke(t) {
|
|
|
458
458
|
meta: e.options.meta,
|
|
459
459
|
signal: e.signal
|
|
460
460
|
},
|
|
461
|
-
|
|
461
|
+
o
|
|
462
462
|
);
|
|
463
463
|
} : e.fetchFn = h;
|
|
464
464
|
}
|
|
465
465
|
};
|
|
466
466
|
}
|
|
467
|
-
function
|
|
468
|
-
const
|
|
467
|
+
function Ue(t, { pages: e, pageParams: o }) {
|
|
468
|
+
const n = e.length - 1;
|
|
469
469
|
return e.length > 0 ? t.getNextPageParam(
|
|
470
|
-
e[
|
|
470
|
+
e[n],
|
|
471
471
|
e,
|
|
472
|
-
n
|
|
473
|
-
|
|
472
|
+
o[n],
|
|
473
|
+
o
|
|
474
474
|
) : void 0;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
477
|
-
var
|
|
478
|
-
return e.length > 0 ? (
|
|
476
|
+
function dr(t, { pages: e, pageParams: o }) {
|
|
477
|
+
var n;
|
|
478
|
+
return e.length > 0 ? (n = t.getPreviousPageParam) == null ? void 0 : n.call(t, e[0], e, o[0], o) : void 0;
|
|
479
479
|
}
|
|
480
|
-
var
|
|
480
|
+
var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
|
|
481
481
|
constructor(t = {}) {
|
|
482
|
-
M(this,
|
|
482
|
+
M(this, s);
|
|
483
483
|
M(this, K);
|
|
484
484
|
M(this, Z);
|
|
485
485
|
M(this, te);
|
|
@@ -487,21 +487,21 @@ var y, K, Z, te, re, X, ne, oe, ft, hr = (ft = class {
|
|
|
487
487
|
M(this, X);
|
|
488
488
|
M(this, ne);
|
|
489
489
|
M(this, oe);
|
|
490
|
-
k(this,
|
|
490
|
+
k(this, s, t.queryCache || new or()), k(this, K, t.mutationCache || new ar()), k(this, Z, t.defaultOptions || {}), k(this, te, /* @__PURE__ */ new Map()), k(this, re, /* @__PURE__ */ new Map()), k(this, X, 0);
|
|
491
491
|
}
|
|
492
492
|
mount() {
|
|
493
|
-
|
|
494
|
-
t && (await this.resumePausedMutations(), x(this,
|
|
495
|
-
})), k(this, oe,
|
|
496
|
-
t && (await this.resumePausedMutations(), x(this,
|
|
493
|
+
ce(this, X)._++, x(this, X) === 1 && (k(this, ne, Lt.subscribe(async (t) => {
|
|
494
|
+
t && (await this.resumePausedMutations(), x(this, s).onFocus());
|
|
495
|
+
})), k(this, oe, Le.subscribe(async (t) => {
|
|
496
|
+
t && (await this.resumePausedMutations(), x(this, s).onOnline());
|
|
497
497
|
})));
|
|
498
498
|
}
|
|
499
499
|
unmount() {
|
|
500
500
|
var t, e;
|
|
501
|
-
|
|
501
|
+
ce(this, X)._--, x(this, X) === 0 && ((t = x(this, ne)) == null || t.call(this), k(this, ne, void 0), (e = x(this, oe)) == null || e.call(this), k(this, oe, void 0));
|
|
502
502
|
}
|
|
503
503
|
isFetching(t) {
|
|
504
|
-
return x(this,
|
|
504
|
+
return x(this, s).findAll({ ...t, fetchStatus: "fetching" }).length;
|
|
505
505
|
}
|
|
506
506
|
isMutating(t) {
|
|
507
507
|
return x(this, K).findAll({ ...t, status: "pending" }).length;
|
|
@@ -514,54 +514,54 @@ var y, K, Z, te, re, X, ne, oe, ft, hr = (ft = class {
|
|
|
514
514
|
* Use `useQuery` to create a `QueryObserver` that subscribes to changes.
|
|
515
515
|
*/
|
|
516
516
|
getQueryData(t) {
|
|
517
|
-
var
|
|
517
|
+
var o;
|
|
518
518
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
519
|
-
return (
|
|
519
|
+
return (o = x(this, s).get(e.queryHash)) == null ? void 0 : o.state.data;
|
|
520
520
|
}
|
|
521
521
|
ensureQueryData(t) {
|
|
522
|
-
const e = this.defaultQueryOptions(t),
|
|
523
|
-
return
|
|
522
|
+
const e = this.defaultQueryOptions(t), o = x(this, s).build(this, e), n = o.state.data;
|
|
523
|
+
return n === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && o.isStaleByTime(Qe(e.staleTime, o)) && this.prefetchQuery(e), Promise.resolve(n));
|
|
524
524
|
}
|
|
525
525
|
getQueriesData(t) {
|
|
526
|
-
return x(this,
|
|
527
|
-
const
|
|
528
|
-
return [e,
|
|
526
|
+
return x(this, s).findAll(t).map(({ queryKey: e, state: o }) => {
|
|
527
|
+
const n = o.data;
|
|
528
|
+
return [e, n];
|
|
529
529
|
});
|
|
530
530
|
}
|
|
531
|
-
setQueryData(t, e,
|
|
532
|
-
const
|
|
533
|
-
|
|
534
|
-
),
|
|
531
|
+
setQueryData(t, e, o) {
|
|
532
|
+
const n = this.defaultQueryOptions({ queryKey: t }), i = x(this, s).get(
|
|
533
|
+
n.queryHash
|
|
534
|
+
), l = i == null ? void 0 : i.state.data, d = Qt(e, l);
|
|
535
535
|
if (d !== void 0)
|
|
536
|
-
return x(this,
|
|
536
|
+
return x(this, s).build(this, n).setData(d, { ...o, manual: !0 });
|
|
537
537
|
}
|
|
538
|
-
setQueriesData(t, e,
|
|
539
|
-
return
|
|
540
|
-
() => x(this,
|
|
541
|
-
|
|
542
|
-
this.setQueryData(
|
|
538
|
+
setQueriesData(t, e, o) {
|
|
539
|
+
return O.batch(
|
|
540
|
+
() => x(this, s).findAll(t).map(({ queryKey: n }) => [
|
|
541
|
+
n,
|
|
542
|
+
this.setQueryData(n, e, o)
|
|
543
543
|
])
|
|
544
544
|
);
|
|
545
545
|
}
|
|
546
546
|
getQueryState(t) {
|
|
547
|
-
var
|
|
547
|
+
var o;
|
|
548
548
|
const e = this.defaultQueryOptions({ queryKey: t });
|
|
549
|
-
return (
|
|
549
|
+
return (o = x(this, s).get(
|
|
550
550
|
e.queryHash
|
|
551
|
-
)) == null ? void 0 :
|
|
551
|
+
)) == null ? void 0 : o.state;
|
|
552
552
|
}
|
|
553
553
|
removeQueries(t) {
|
|
554
|
-
const e = x(this,
|
|
555
|
-
|
|
556
|
-
e.findAll(t).forEach((
|
|
557
|
-
e.remove(
|
|
554
|
+
const e = x(this, s);
|
|
555
|
+
O.batch(() => {
|
|
556
|
+
e.findAll(t).forEach((o) => {
|
|
557
|
+
e.remove(o);
|
|
558
558
|
});
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
561
|
resetQueries(t, e) {
|
|
562
|
-
const
|
|
563
|
-
return
|
|
564
|
-
|
|
562
|
+
const o = x(this, s);
|
|
563
|
+
return O.batch(() => (o.findAll(t).forEach((n) => {
|
|
564
|
+
n.reset();
|
|
565
565
|
}), this.refetchQueries(
|
|
566
566
|
{
|
|
567
567
|
type: "active",
|
|
@@ -571,14 +571,14 @@ var y, K, Z, te, re, X, ne, oe, ft, hr = (ft = class {
|
|
|
571
571
|
)));
|
|
572
572
|
}
|
|
573
573
|
cancelQueries(t, e = {}) {
|
|
574
|
-
const
|
|
575
|
-
() => x(this,
|
|
574
|
+
const o = { revert: !0, ...e }, n = O.batch(
|
|
575
|
+
() => x(this, s).findAll(t).map((i) => i.cancel(o))
|
|
576
576
|
);
|
|
577
|
-
return Promise.all(
|
|
577
|
+
return Promise.all(n).then(V).catch(V);
|
|
578
578
|
}
|
|
579
579
|
invalidateQueries(t, e = {}) {
|
|
580
|
-
return
|
|
581
|
-
|
|
580
|
+
return O.batch(() => (x(this, s).findAll(t).forEach((o) => {
|
|
581
|
+
o.invalidate();
|
|
582
582
|
}), (t == null ? void 0 : t.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
|
|
583
583
|
{
|
|
584
584
|
...t,
|
|
@@ -588,42 +588,42 @@ var y, K, Z, te, re, X, ne, oe, ft, hr = (ft = class {
|
|
|
588
588
|
)));
|
|
589
589
|
}
|
|
590
590
|
refetchQueries(t, e = {}) {
|
|
591
|
-
const
|
|
591
|
+
const o = {
|
|
592
592
|
...e,
|
|
593
593
|
cancelRefetch: e.cancelRefetch ?? !0
|
|
594
|
-
},
|
|
595
|
-
() => x(this,
|
|
596
|
-
let
|
|
597
|
-
return
|
|
594
|
+
}, n = O.batch(
|
|
595
|
+
() => x(this, s).findAll(t).filter((i) => !i.isDisabled() && !i.isStatic()).map((i) => {
|
|
596
|
+
let l = i.fetch(void 0, o);
|
|
597
|
+
return o.throwOnError || (l = l.catch(V)), i.state.fetchStatus === "paused" ? Promise.resolve() : l;
|
|
598
598
|
})
|
|
599
599
|
);
|
|
600
|
-
return Promise.all(
|
|
600
|
+
return Promise.all(n).then(V);
|
|
601
601
|
}
|
|
602
602
|
fetchQuery(t) {
|
|
603
603
|
const e = this.defaultQueryOptions(t);
|
|
604
604
|
e.retry === void 0 && (e.retry = !1);
|
|
605
|
-
const
|
|
606
|
-
return
|
|
607
|
-
|
|
608
|
-
) ?
|
|
605
|
+
const o = x(this, s).build(this, e);
|
|
606
|
+
return o.isStaleByTime(
|
|
607
|
+
Qe(e.staleTime, o)
|
|
608
|
+
) ? o.fetch(e) : Promise.resolve(o.state.data);
|
|
609
609
|
}
|
|
610
610
|
prefetchQuery(t) {
|
|
611
|
-
return this.fetchQuery(t).then(
|
|
611
|
+
return this.fetchQuery(t).then(V).catch(V);
|
|
612
612
|
}
|
|
613
613
|
fetchInfiniteQuery(t) {
|
|
614
|
-
return t.behavior =
|
|
614
|
+
return t.behavior = We(t.pages), this.fetchQuery(t);
|
|
615
615
|
}
|
|
616
616
|
prefetchInfiniteQuery(t) {
|
|
617
|
-
return this.fetchInfiniteQuery(t).then(
|
|
617
|
+
return this.fetchInfiniteQuery(t).then(V).catch(V);
|
|
618
618
|
}
|
|
619
619
|
ensureInfiniteQueryData(t) {
|
|
620
|
-
return t.behavior =
|
|
620
|
+
return t.behavior = We(t.pages), this.ensureQueryData(t);
|
|
621
621
|
}
|
|
622
622
|
resumePausedMutations() {
|
|
623
|
-
return
|
|
623
|
+
return Le.isOnline() ? x(this, K).resumePausedMutations() : Promise.resolve();
|
|
624
624
|
}
|
|
625
625
|
getQueryCache() {
|
|
626
|
-
return x(this,
|
|
626
|
+
return x(this, s);
|
|
627
627
|
}
|
|
628
628
|
getMutationCache() {
|
|
629
629
|
return x(this, K);
|
|
@@ -635,28 +635,28 @@ var y, K, Z, te, re, X, ne, oe, ft, hr = (ft = class {
|
|
|
635
635
|
k(this, Z, t);
|
|
636
636
|
}
|
|
637
637
|
setQueryDefaults(t, e) {
|
|
638
|
-
x(this, te).set(
|
|
638
|
+
x(this, te).set(Ve(t), {
|
|
639
639
|
queryKey: t,
|
|
640
640
|
defaultOptions: e
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
643
|
getQueryDefaults(t) {
|
|
644
|
-
const e = [...x(this, te).values()],
|
|
645
|
-
return e.forEach((
|
|
646
|
-
|
|
647
|
-
}),
|
|
644
|
+
const e = [...x(this, te).values()], o = {};
|
|
645
|
+
return e.forEach((n) => {
|
|
646
|
+
$e(t, n.queryKey) && Object.assign(o, n.defaultOptions);
|
|
647
|
+
}), o;
|
|
648
648
|
}
|
|
649
649
|
setMutationDefaults(t, e) {
|
|
650
|
-
x(this, re).set(
|
|
650
|
+
x(this, re).set(Ve(t), {
|
|
651
651
|
mutationKey: t,
|
|
652
652
|
defaultOptions: e
|
|
653
653
|
});
|
|
654
654
|
}
|
|
655
655
|
getMutationDefaults(t) {
|
|
656
|
-
const e = [...x(this, re).values()],
|
|
657
|
-
return e.forEach((
|
|
658
|
-
|
|
659
|
-
}),
|
|
656
|
+
const e = [...x(this, re).values()], o = {};
|
|
657
|
+
return e.forEach((n) => {
|
|
658
|
+
$e(t, n.mutationKey) && Object.assign(o, n.defaultOptions);
|
|
659
|
+
}), o;
|
|
660
660
|
}
|
|
661
661
|
defaultQueryOptions(t) {
|
|
662
662
|
if (t._defaulted)
|
|
@@ -667,10 +667,10 @@ var y, K, Z, te, re, X, ne, oe, ft, hr = (ft = class {
|
|
|
667
667
|
...t,
|
|
668
668
|
_defaulted: !0
|
|
669
669
|
};
|
|
670
|
-
return e.queryHash || (e.queryHash =
|
|
670
|
+
return e.queryHash || (e.queryHash = ft(
|
|
671
671
|
e.queryKey,
|
|
672
672
|
e
|
|
673
|
-
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn ===
|
|
673
|
+
)), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === Vt && (e.enabled = !1), e;
|
|
674
674
|
}
|
|
675
675
|
defaultMutationOptions(t) {
|
|
676
676
|
return t != null && t._defaulted ? t : {
|
|
@@ -681,51 +681,51 @@ var y, K, Z, te, re, X, ne, oe, ft, hr = (ft = class {
|
|
|
681
681
|
};
|
|
682
682
|
}
|
|
683
683
|
clear() {
|
|
684
|
-
x(this,
|
|
685
|
-
}
|
|
686
|
-
},
|
|
687
|
-
const
|
|
688
|
-
header:
|
|
689
|
-
seoHeader:
|
|
690
|
-
banner:
|
|
691
|
-
calculator:
|
|
692
|
-
form:
|
|
693
|
-
formDialog:
|
|
694
|
-
stepper:
|
|
695
|
-
benefit:
|
|
696
|
-
longBanner:
|
|
697
|
-
usefulInfo:
|
|
698
|
-
interLinking:
|
|
699
|
-
footer:
|
|
700
|
-
},
|
|
684
|
+
x(this, s).clear(), x(this, K).clear();
|
|
685
|
+
}
|
|
686
|
+
}, s = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), te = new WeakMap(), re = new WeakMap(), X = new WeakMap(), ne = new WeakMap(), oe = new WeakMap(), pt);
|
|
687
|
+
const mr = B(() => Promise.resolve().then(() => Fr)), hr = B(() => Promise.resolve().then(() => yo)), xr = B(() => Promise.resolve().then(() => En)), pr = B(() => Promise.resolve().then(() => Pn)), cr = B(() => Promise.resolve().then(() => Lr)), fr = B(() => Promise.resolve().then(() => Sr)), br = B(() => Promise.resolve().then(() => tn)), gr = B(() => Promise.resolve().then(() => Zr)), jr = B(() => Promise.resolve().then(() => Gn)), yr = B(() => Promise.resolve().then(() => Vr)), sr = B(() => Promise.resolve().then(() => Nn)), kr = B(() => Promise.resolve().then(() => _r)), wr = {
|
|
688
|
+
header: fr,
|
|
689
|
+
seoHeader: jr,
|
|
690
|
+
banner: mr,
|
|
691
|
+
calculator: hr,
|
|
692
|
+
form: xr,
|
|
693
|
+
formDialog: pr,
|
|
694
|
+
stepper: yr,
|
|
695
|
+
benefit: kr,
|
|
696
|
+
longBanner: gr,
|
|
697
|
+
usefulInfo: sr,
|
|
698
|
+
interLinking: br,
|
|
699
|
+
footer: cr
|
|
700
|
+
}, vr = Object.keys(wr), y = vr.reduce(
|
|
701
701
|
(t, e) => (t[e] = e, t),
|
|
702
702
|
{}
|
|
703
|
-
),
|
|
703
|
+
), Nr = (t) => jt(() => {
|
|
704
704
|
switch (t.handler) {
|
|
705
705
|
case "navigate": {
|
|
706
|
-
const { url:
|
|
707
|
-
|
|
706
|
+
const { url: o, target: n, rel: i } = t;
|
|
707
|
+
qe && (window == null || window.open(o, n, i));
|
|
708
708
|
break;
|
|
709
709
|
}
|
|
710
710
|
case "scroll": {
|
|
711
|
-
const { widgetId:
|
|
712
|
-
|
|
711
|
+
const { widgetId: o } = t ?? "";
|
|
712
|
+
Jt({ widgetId: o });
|
|
713
713
|
break;
|
|
714
714
|
}
|
|
715
715
|
case "dialog": {
|
|
716
|
-
if (!
|
|
717
|
-
const { dialogId:
|
|
718
|
-
if (!
|
|
719
|
-
console.error("Такого элемента в DOM не существует",
|
|
716
|
+
if (!qe) return;
|
|
717
|
+
const { dialogId: o } = t ?? {}, n = document.getElementById(o);
|
|
718
|
+
if (!n) {
|
|
719
|
+
console.error("Такого элемента в DOM не существует", o);
|
|
720
720
|
break;
|
|
721
721
|
}
|
|
722
|
-
|
|
722
|
+
n.show();
|
|
723
723
|
}
|
|
724
724
|
}
|
|
725
|
-
}, [t]), Y = ({ handlerOptions: t, className: e, ...
|
|
726
|
-
const
|
|
727
|
-
return /* @__PURE__ */ r.jsx(ge, { className:
|
|
728
|
-
},
|
|
725
|
+
}, [t]), Y = ({ handlerOptions: t, className: e, ...o }) => {
|
|
726
|
+
const n = Nr(t);
|
|
727
|
+
return /* @__PURE__ */ r.jsx(ge, { className: a(e), onClick: n, ...o, children: o.children });
|
|
728
|
+
}, Cr = E(
|
|
729
729
|
"flex flex-col justify-between overflow-hidden rounded-md bg-color-blue-grey-100 py-6 desktop:flex-row desktop:px-0 desktop:py-0",
|
|
730
730
|
{
|
|
731
731
|
variants: {
|
|
@@ -736,13 +736,13 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
736
736
|
}
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
|
-
),
|
|
739
|
+
), Mr = ({
|
|
740
740
|
subtitle: t,
|
|
741
741
|
title: e,
|
|
742
|
-
img:
|
|
743
|
-
mobileImg:
|
|
742
|
+
img: o,
|
|
743
|
+
mobileImg: n,
|
|
744
744
|
classes: i,
|
|
745
|
-
withButton:
|
|
745
|
+
withButton: l,
|
|
746
746
|
button: d,
|
|
747
747
|
variant: u,
|
|
748
748
|
color: m
|
|
@@ -752,27 +752,27 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
752
752
|
"li",
|
|
753
753
|
{
|
|
754
754
|
style: { backgroundColor: m ?? "#F3F4F7" },
|
|
755
|
-
className:
|
|
755
|
+
className: a(Cr({ variant: u }), { "pb-0": n }, { "pb-12": !n }, i == null ? void 0 : i.root),
|
|
756
756
|
children: [
|
|
757
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
758
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
759
|
-
/* @__PURE__ */ r.jsx("div", { dangerouslySetInnerHTML: { __html: e }, className:
|
|
757
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", i == null ? void 0 : i.wrapper), children: [
|
|
758
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("flex flex-col gap-4", i == null ? void 0 : i.textContainer), children: [
|
|
759
|
+
/* @__PURE__ */ r.jsx("div", { dangerouslySetInnerHTML: { __html: e }, className: a("desktop:desk-title-bold-s", i == null ? void 0 : i.title) }),
|
|
760
760
|
/* @__PURE__ */ r.jsx(
|
|
761
761
|
"div",
|
|
762
762
|
{
|
|
763
763
|
dangerouslySetInnerHTML: { __html: t },
|
|
764
|
-
className:
|
|
764
|
+
className: a("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l", i == null ? void 0 : i.subtitle)
|
|
765
765
|
}
|
|
766
766
|
)
|
|
767
767
|
] }),
|
|
768
|
-
|
|
768
|
+
l && h && (d == null ? void 0 : d.handlerOptions) && /* @__PURE__ */ r.jsx(Y, { intent: "primary", className: a("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...d })
|
|
769
769
|
] }),
|
|
770
|
-
(
|
|
770
|
+
(n || h) && o && /* @__PURE__ */ r.jsx("div", { className: a("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: o && "url" in o && S.isObject(o) ? /* @__PURE__ */ r.jsx("img", { className: a("h-[246px] object-cover", i == null ? void 0 : i.img), src: o.url, alt: o.alt }) : o })
|
|
771
771
|
]
|
|
772
772
|
},
|
|
773
773
|
e
|
|
774
774
|
);
|
|
775
|
-
},
|
|
775
|
+
}, Ir = E("grid gap-4", {
|
|
776
776
|
variants: {
|
|
777
777
|
variant: {
|
|
778
778
|
twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
|
|
@@ -780,37 +780,37 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
780
780
|
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
|
-
}),
|
|
783
|
+
}), Ke = ({ headline: t, details: e, variant: o, classes: n }) => /* @__PURE__ */ r.jsx("section", { id: y.benefit, "data-test-id": y.benefit, className: a("pb-20", n == null ? void 0 : n.root), children: /* @__PURE__ */ r.jsxs(F, { className: n == null ? void 0 : n.container, children: [
|
|
784
784
|
/* @__PURE__ */ r.jsx(
|
|
785
785
|
"div",
|
|
786
786
|
{
|
|
787
787
|
dangerouslySetInnerHTML: { __html: t },
|
|
788
|
-
className:
|
|
788
|
+
className: a("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", n == null ? void 0 : n.heading)
|
|
789
789
|
}
|
|
790
790
|
),
|
|
791
|
-
/* @__PURE__ */ r.jsx("ul", { className:
|
|
792
|
-
] }) }),
|
|
791
|
+
/* @__PURE__ */ r.jsx("ul", { className: a(Ir({ variant: o }), n == null ? void 0 : n.grid), children: e == null ? void 0 : e.map((i) => /* @__PURE__ */ r.jsx(Mr, { variant: o, classes: n == null ? void 0 : n.item, ...i }, i.title)) })
|
|
792
|
+
] }) }), _r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
793
793
|
__proto__: null,
|
|
794
|
-
Benefit:
|
|
795
|
-
default:
|
|
796
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
794
|
+
Benefit: Ke,
|
|
795
|
+
default: Ke
|
|
796
|
+
}, Symbol.toStringTag, { value: "Module" })), Tr = ({ variant: t, details: e }) => {
|
|
797
797
|
switch (t) {
|
|
798
798
|
case "withButton":
|
|
799
799
|
return /* @__PURE__ */ r.jsx(Y, { ...e });
|
|
800
800
|
case "withPhone":
|
|
801
|
-
return /* @__PURE__ */ r.jsx(
|
|
801
|
+
return /* @__PURE__ */ r.jsx(bt, { classes: { root: "items-end" }, ...e, phone: ke(e.phone) });
|
|
802
802
|
default:
|
|
803
803
|
return null;
|
|
804
804
|
}
|
|
805
|
-
},
|
|
806
|
-
const { logoPath: e = "/", logoType:
|
|
805
|
+
}, Ze = (t) => {
|
|
806
|
+
const { logoPath: e = "/", logoType: o = "main", classes: n } = t;
|
|
807
807
|
return /* @__PURE__ */ r.jsx(
|
|
808
808
|
"header",
|
|
809
809
|
{
|
|
810
|
-
id:
|
|
811
|
-
"data-test-id":
|
|
812
|
-
className:
|
|
813
|
-
children: /* @__PURE__ */ r.jsx(
|
|
810
|
+
id: y.header,
|
|
811
|
+
"data-test-id": y.header,
|
|
812
|
+
className: a("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", n == null ? void 0 : n.header),
|
|
813
|
+
children: /* @__PURE__ */ r.jsx(F, { className: a(n == null ? void 0 : n.container), children: /* @__PURE__ */ r.jsxs("div", { className: a("flex items-center justify-between gap-5", n == null ? void 0 : n.wrapper), children: [
|
|
814
814
|
/* @__PURE__ */ r.jsx(
|
|
815
815
|
"a",
|
|
816
816
|
{
|
|
@@ -818,177 +818,177 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
818
818
|
"aria-label": "logo",
|
|
819
819
|
target: "_blank",
|
|
820
820
|
rel: "noreferrer",
|
|
821
|
-
className:
|
|
821
|
+
className: a(
|
|
822
822
|
"flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
823
|
-
|
|
823
|
+
n == null ? void 0 : n.logo
|
|
824
824
|
),
|
|
825
|
-
children:
|
|
825
|
+
children: $t[o]
|
|
826
826
|
}
|
|
827
827
|
),
|
|
828
|
-
|
|
828
|
+
Tr(t)
|
|
829
829
|
] }) })
|
|
830
830
|
}
|
|
831
831
|
);
|
|
832
|
-
},
|
|
832
|
+
}, Sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
833
833
|
__proto__: null,
|
|
834
|
-
Header:
|
|
835
|
-
default:
|
|
836
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
834
|
+
Header: Ze,
|
|
835
|
+
default: Ze
|
|
836
|
+
}, Symbol.toStringTag, { value: "Module" })), Or = ({
|
|
837
837
|
headTitle: t,
|
|
838
838
|
subtitle: e,
|
|
839
|
-
buttonsConfig:
|
|
840
|
-
advantages:
|
|
839
|
+
buttonsConfig: o,
|
|
840
|
+
advantages: n,
|
|
841
841
|
classes: i,
|
|
842
|
-
imgMobile:
|
|
842
|
+
imgMobile: l,
|
|
843
843
|
imgDesktop: d,
|
|
844
844
|
imgAlt: u,
|
|
845
845
|
color: m,
|
|
846
846
|
renderImage: h
|
|
847
847
|
}) => {
|
|
848
848
|
var v;
|
|
849
|
-
const { isDesktop: p, isMobile: c } = ee(), { primary:
|
|
849
|
+
const { isDesktop: p, isMobile: c } = ee(), { primary: g, secondary: f } = o || {}, w = (_) => h ? h(_) : /* @__PURE__ */ r.jsx("img", { ..._ }), j = /* @__PURE__ */ r.jsx(
|
|
850
850
|
"div",
|
|
851
851
|
{
|
|
852
|
-
className:
|
|
852
|
+
className: a(
|
|
853
853
|
"flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
|
|
854
854
|
i == null ? void 0 : i.advantageContainer
|
|
855
855
|
),
|
|
856
|
-
children: (
|
|
856
|
+
children: (n == null ? void 0 : n.details) && ((v = n == null ? void 0 : n.details) == null ? void 0 : v.items.length) > 0 && /* @__PURE__ */ r.jsx(Ie, { ...n })
|
|
857
857
|
}
|
|
858
858
|
);
|
|
859
859
|
return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
860
860
|
/* @__PURE__ */ r.jsxs(
|
|
861
861
|
"section",
|
|
862
862
|
{
|
|
863
|
-
id:
|
|
864
|
-
"data-test-id":
|
|
863
|
+
id: y.banner,
|
|
864
|
+
"data-test-id": y.banner,
|
|
865
865
|
style: { backgroundColor: m ?? "#d9edff" },
|
|
866
|
-
className:
|
|
866
|
+
className: a("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
|
|
867
867
|
children: [
|
|
868
|
-
/* @__PURE__ */ r.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: w(c ? { src:
|
|
868
|
+
/* @__PURE__ */ r.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: w(c ? { src: l.src, alt: u, className: a("h-full w-full object-cover object-center") } : {
|
|
869
869
|
src: d.src,
|
|
870
870
|
alt: u,
|
|
871
|
-
className:
|
|
871
|
+
className: a("h-full w-full object-cover object-center")
|
|
872
872
|
}) }),
|
|
873
|
-
/* @__PURE__ */ r.jsxs(
|
|
874
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
873
|
+
/* @__PURE__ */ r.jsxs(F, { className: a("h-full", i == null ? void 0 : i.container), children: [
|
|
874
|
+
/* @__PURE__ */ r.jsx("div", { className: a("flex h-full", i == null ? void 0 : i.wrapper), children: /* @__PURE__ */ r.jsxs("div", { className: a("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", i == null ? void 0 : i.textBlock), children: [
|
|
875
875
|
/* @__PURE__ */ r.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
|
|
876
876
|
/* @__PURE__ */ r.jsx(
|
|
877
877
|
"div",
|
|
878
878
|
{
|
|
879
879
|
dangerouslySetInnerHTML: { __html: t },
|
|
880
|
-
className:
|
|
880
|
+
className: a("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
|
|
881
881
|
}
|
|
882
882
|
),
|
|
883
883
|
/* @__PURE__ */ r.jsx(
|
|
884
884
|
"div",
|
|
885
885
|
{
|
|
886
886
|
dangerouslySetInnerHTML: { __html: e },
|
|
887
|
-
className:
|
|
887
|
+
className: a("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
|
|
888
888
|
}
|
|
889
889
|
)
|
|
890
890
|
] }),
|
|
891
891
|
/* @__PURE__ */ r.jsxs(
|
|
892
892
|
"div",
|
|
893
893
|
{
|
|
894
|
-
className:
|
|
894
|
+
className: a(
|
|
895
895
|
"grid-buttons-apply absolute bottom-6 left-1/2 flex w-full -translate-x-1/2 flex-col self-end justify-self-center px-4 desktop:static desktop:left-auto desktop:max-w-full desktop:translate-x-0 desktop:flex-row desktop:justify-normal desktop:self-center desktop:px-0",
|
|
896
|
-
{ "flex items-center gap-4":
|
|
896
|
+
{ "flex items-center gap-4": f == null ? void 0 : f.enabled },
|
|
897
897
|
i == null ? void 0 : i.group
|
|
898
898
|
),
|
|
899
899
|
children: [
|
|
900
|
-
|
|
900
|
+
g.enabled && /* @__PURE__ */ r.jsx(
|
|
901
901
|
Y,
|
|
902
902
|
{
|
|
903
|
-
className:
|
|
903
|
+
className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
904
904
|
size: "lg",
|
|
905
905
|
intent: "primary",
|
|
906
|
-
...
|
|
906
|
+
...g.buttonContent
|
|
907
907
|
}
|
|
908
908
|
),
|
|
909
|
-
(
|
|
909
|
+
(f == null ? void 0 : f.enabled) && /* @__PURE__ */ r.jsx(
|
|
910
910
|
Y,
|
|
911
911
|
{
|
|
912
912
|
intent: "secondary",
|
|
913
|
-
className:
|
|
914
|
-
...
|
|
913
|
+
className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
|
|
914
|
+
...g.buttonContent
|
|
915
915
|
}
|
|
916
916
|
)
|
|
917
917
|
]
|
|
918
918
|
}
|
|
919
919
|
)
|
|
920
920
|
] }) }),
|
|
921
|
-
p && (
|
|
921
|
+
p && (n == null ? void 0 : n.enabled) && j
|
|
922
922
|
] })
|
|
923
923
|
]
|
|
924
924
|
}
|
|
925
925
|
),
|
|
926
|
-
c && (
|
|
926
|
+
c && (n == null ? void 0 : n.enabled) && j
|
|
927
927
|
] });
|
|
928
|
-
},
|
|
928
|
+
}, Xe = ({
|
|
929
929
|
headTitle: t,
|
|
930
930
|
subtitle: e,
|
|
931
|
-
buttonsConfig:
|
|
932
|
-
advantages:
|
|
931
|
+
buttonsConfig: o,
|
|
932
|
+
advantages: n,
|
|
933
933
|
classes: i,
|
|
934
|
-
imgMobile:
|
|
934
|
+
imgMobile: l,
|
|
935
935
|
imgDesktop: d,
|
|
936
936
|
imgAlt: u,
|
|
937
937
|
color: m,
|
|
938
938
|
renderImage: h
|
|
939
939
|
}) => {
|
|
940
|
-
var w,
|
|
941
|
-
const { isMobile: p } = ee(), { primary: c, secondary:
|
|
940
|
+
var w, j;
|
|
941
|
+
const { isMobile: p } = ee(), { primary: c, secondary: g } = o || {}, f = (v) => h ? h(v) : /* @__PURE__ */ r.jsx("img", { ...v });
|
|
942
942
|
return /* @__PURE__ */ r.jsxs(
|
|
943
943
|
"section",
|
|
944
944
|
{
|
|
945
|
-
id:
|
|
945
|
+
id: y.banner,
|
|
946
946
|
style: { backgroundColor: m ?? "#d9edff" },
|
|
947
|
-
"data-test-id":
|
|
948
|
-
className:
|
|
947
|
+
"data-test-id": y.banner,
|
|
948
|
+
className: a("", i == null ? void 0 : i.root),
|
|
949
949
|
children: [
|
|
950
|
-
/* @__PURE__ */ r.jsxs(
|
|
951
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
950
|
+
/* @__PURE__ */ r.jsxs(F, { className: a("relative desktop:h-[456px]", i == null ? void 0 : i.container), children: [
|
|
951
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("flex flex-col desktop:flex-row desktop:justify-between", i == null ? void 0 : i.wrapper), children: [
|
|
952
952
|
/* @__PURE__ */ r.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
|
|
953
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
953
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("flex flex-col gap-4 pt-6 desktop:pt-0", i == null ? void 0 : i.textBlock), children: [
|
|
954
954
|
/* @__PURE__ */ r.jsx(
|
|
955
955
|
"div",
|
|
956
956
|
{
|
|
957
957
|
dangerouslySetInnerHTML: { __html: t },
|
|
958
|
-
className:
|
|
958
|
+
className: a("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
|
|
959
959
|
}
|
|
960
960
|
),
|
|
961
961
|
/* @__PURE__ */ r.jsx(
|
|
962
962
|
"div",
|
|
963
963
|
{
|
|
964
964
|
dangerouslySetInnerHTML: { __html: e },
|
|
965
|
-
className:
|
|
965
|
+
className: a("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
|
|
966
966
|
}
|
|
967
967
|
)
|
|
968
968
|
] }),
|
|
969
969
|
/* @__PURE__ */ r.jsxs(
|
|
970
970
|
"div",
|
|
971
971
|
{
|
|
972
|
-
className:
|
|
972
|
+
className: a(
|
|
973
973
|
"grid-buttons-apply absolute bottom-6 left-1/2 flex w-full -translate-x-1/2 flex-col justify-self-center px-4 desktop:static desktop:left-auto desktop:max-w-full desktop:translate-x-0 desktop:flex-row desktop:justify-normal desktop:px-0",
|
|
974
|
-
{ "flex items-center gap-4":
|
|
974
|
+
{ "flex items-center gap-4": g == null ? void 0 : g.enabled },
|
|
975
975
|
i == null ? void 0 : i.group
|
|
976
976
|
),
|
|
977
977
|
children: [
|
|
978
978
|
c.enabled && /* @__PURE__ */ r.jsx(
|
|
979
979
|
Y,
|
|
980
980
|
{
|
|
981
|
-
className:
|
|
981
|
+
className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
|
|
982
982
|
size: "lg",
|
|
983
983
|
intent: "primary",
|
|
984
984
|
...c.buttonContent
|
|
985
985
|
}
|
|
986
986
|
),
|
|
987
|
-
(
|
|
987
|
+
(g == null ? void 0 : g.enabled) && /* @__PURE__ */ r.jsx(
|
|
988
988
|
Y,
|
|
989
989
|
{
|
|
990
990
|
intent: "secondary",
|
|
991
|
-
className:
|
|
991
|
+
className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
|
|
992
992
|
...c.buttonContent
|
|
993
993
|
}
|
|
994
994
|
)
|
|
@@ -999,115 +999,115 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
999
999
|
/* @__PURE__ */ r.jsx(
|
|
1000
1000
|
"div",
|
|
1001
1001
|
{
|
|
1002
|
-
className:
|
|
1003
|
-
children:
|
|
1002
|
+
className: a("relative flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]", i == null ? void 0 : i.imageContainer),
|
|
1003
|
+
children: f(p ? { src: l.src, alt: u, className: a("h-full object-contain") } : {
|
|
1004
1004
|
src: d.src,
|
|
1005
1005
|
alt: u,
|
|
1006
|
-
className:
|
|
1006
|
+
className: a("h-full object-contain")
|
|
1007
1007
|
})
|
|
1008
1008
|
}
|
|
1009
1009
|
)
|
|
1010
1010
|
] }),
|
|
1011
|
-
(
|
|
1011
|
+
(n == null ? void 0 : n.enabled) && /* @__PURE__ */ r.jsx(
|
|
1012
1012
|
"div",
|
|
1013
1013
|
{
|
|
1014
|
-
className:
|
|
1014
|
+
className: a(
|
|
1015
1015
|
"items-center justify-center rounded-md p-4 pb-8 mobile:hidden desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:flex desktop:translate-x-1/2 desktop:p-0",
|
|
1016
1016
|
i == null ? void 0 : i.advantageContainer
|
|
1017
1017
|
),
|
|
1018
|
-
children: (
|
|
1018
|
+
children: (n == null ? void 0 : n.details) && ((w = n == null ? void 0 : n.details) == null ? void 0 : w.items.length) > 0 && /* @__PURE__ */ r.jsx(Ie, { ...n })
|
|
1019
1019
|
}
|
|
1020
1020
|
)
|
|
1021
1021
|
] }),
|
|
1022
|
-
(
|
|
1022
|
+
(n == null ? void 0 : n.enabled) && /* @__PURE__ */ r.jsx(
|
|
1023
1023
|
"div",
|
|
1024
1024
|
{
|
|
1025
|
-
className:
|
|
1025
|
+
className: a(
|
|
1026
1026
|
"flex items-center justify-center bg-color-white px-4 pb-8 pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:hidden desktop:translate-x-1/2 desktop:p-0",
|
|
1027
1027
|
i == null ? void 0 : i.advantageContainer
|
|
1028
1028
|
),
|
|
1029
|
-
children: (
|
|
1029
|
+
children: (n == null ? void 0 : n.details) && ((j = n == null ? void 0 : n.details) == null ? void 0 : j.items.length) > 0 && /* @__PURE__ */ r.jsx(Ie, { ...n })
|
|
1030
1030
|
}
|
|
1031
1031
|
)
|
|
1032
1032
|
]
|
|
1033
1033
|
}
|
|
1034
1034
|
);
|
|
1035
|
-
},
|
|
1035
|
+
}, Ye = ({ variant: t, ...e }) => {
|
|
1036
1036
|
switch (t) {
|
|
1037
1037
|
case "separateImg":
|
|
1038
|
-
return /* @__PURE__ */ r.jsx(
|
|
1038
|
+
return /* @__PURE__ */ r.jsx(Xe, { ...e });
|
|
1039
1039
|
case "fullImg":
|
|
1040
|
-
return /* @__PURE__ */ r.jsx(
|
|
1040
|
+
return /* @__PURE__ */ r.jsx(Or, { ...e });
|
|
1041
1041
|
default:
|
|
1042
|
-
return /* @__PURE__ */ r.jsx(
|
|
1042
|
+
return /* @__PURE__ */ r.jsx(Xe, { ...e });
|
|
1043
1043
|
}
|
|
1044
|
-
},
|
|
1044
|
+
}, Fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1045
1045
|
__proto__: null,
|
|
1046
|
-
Banner:
|
|
1047
|
-
default:
|
|
1046
|
+
Banner: Ye,
|
|
1047
|
+
default: Ye
|
|
1048
1048
|
}, Symbol.toStringTag, { value: "Module" })), Ie = ({ details: t, classes: e }) => {
|
|
1049
|
-
const { variant:
|
|
1049
|
+
const { variant: o, items: n } = t ?? {};
|
|
1050
1050
|
return /* @__PURE__ */ r.jsx(
|
|
1051
1051
|
"div",
|
|
1052
1052
|
{
|
|
1053
1053
|
id: "advantages",
|
|
1054
|
-
className:
|
|
1054
|
+
className: a(
|
|
1055
1055
|
"m-auto flex w-full min-w-[328px] max-w-[636px] flex-col gap-8 rounded-md bg-color-white p-6 shadow-sm desktop:w-full desktop:flex-row desktop:items-start desktop:gap-0 desktop:p-0 desktop:py-6",
|
|
1056
|
-
{ "desktop:max-w-[860px]":
|
|
1057
|
-
{ "desktop:max-w-[1140px]":
|
|
1056
|
+
{ "desktop:max-w-[860px]": o === "threeCards" },
|
|
1057
|
+
{ "desktop:max-w-[1140px]": o === "fourCards" },
|
|
1058
1058
|
e == null ? void 0 : e.root
|
|
1059
1059
|
),
|
|
1060
|
-
children:
|
|
1060
|
+
children: n == null ? void 0 : n.map(({ title: i, description: l }) => /* @__PURE__ */ r.jsxs(
|
|
1061
1061
|
"div",
|
|
1062
1062
|
{
|
|
1063
|
-
className:
|
|
1063
|
+
className: a(
|
|
1064
1064
|
'after:content-[" "] relative flex h-full w-full flex-col gap-1 after:absolute after:-bottom-4 after:left-1/2 after:h-[1px] after:w-full after:-translate-x-1/2 after:bg-color-blue-grey-300 last:after:hidden desktop:w-[285px] desktop:items-center desktop:px-8 desktop:after:bottom-auto desktop:after:left-auto desktop:after:right-0 desktop:after:top-1/2 desktop:after:h-10 desktop:after:w-[1px] desktop:after:-translate-y-1/2 desktop:after:translate-x-0',
|
|
1065
1065
|
e == null ? void 0 : e.item
|
|
1066
1066
|
),
|
|
1067
1067
|
children: [
|
|
1068
|
-
/* @__PURE__ */ r.jsx(L, { as: "h4", className:
|
|
1069
|
-
/* @__PURE__ */ r.jsx("p", { className:
|
|
1068
|
+
/* @__PURE__ */ r.jsx(L, { as: "h4", className: a("text-color-dark", e == null ? void 0 : e.title), children: i }),
|
|
1069
|
+
/* @__PURE__ */ r.jsx("p", { className: a("desk-body-regular-l text-color-secondary", e == null ? void 0 : e.description), children: l })
|
|
1070
1070
|
]
|
|
1071
1071
|
},
|
|
1072
1072
|
i
|
|
1073
1073
|
))
|
|
1074
1074
|
}
|
|
1075
1075
|
);
|
|
1076
|
-
},
|
|
1076
|
+
}, Er = ({ socialsLinks: t, classes: e }) => /* @__PURE__ */ r.jsx("div", { className: a("mt-4 flex items-center gap-2 desktop:mt-6", e == null ? void 0 : e.socialRoot), children: t == null ? void 0 : t.map(({ iconName: o, href: n }) => /* @__PURE__ */ r.jsx(
|
|
1077
1077
|
"a",
|
|
1078
1078
|
{
|
|
1079
|
-
className:
|
|
1080
|
-
href:
|
|
1081
|
-
"aria-label":
|
|
1082
|
-
children: /* @__PURE__ */ r.jsx(
|
|
1079
|
+
className: a("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", e == null ? void 0 : e.socialLink),
|
|
1080
|
+
href: n,
|
|
1081
|
+
"aria-label": o.replace("social/", ""),
|
|
1082
|
+
children: /* @__PURE__ */ r.jsx(b, { name: o, className: a("h-full w-full text-icon-white", e == null ? void 0 : e.socialIcon) })
|
|
1083
1083
|
},
|
|
1084
|
-
|
|
1085
|
-
)) }),
|
|
1086
|
-
|
|
1084
|
+
n
|
|
1085
|
+
)) }), Br = ({ phones: t, classes: e }) => /* @__PURE__ */ r.jsx("div", { className: a("flex flex-col gap-4 desktop:items-end", e == null ? void 0 : e.phonesRoot), children: t == null ? void 0 : t.map(({ phone: o, text: n }) => /* @__PURE__ */ r.jsx(
|
|
1086
|
+
bt,
|
|
1087
1087
|
{
|
|
1088
|
-
phone:
|
|
1089
|
-
text:
|
|
1088
|
+
phone: ke(o),
|
|
1089
|
+
text: n,
|
|
1090
1090
|
classes: {
|
|
1091
|
-
root:
|
|
1092
|
-
text:
|
|
1093
|
-
link:
|
|
1091
|
+
root: a(e == null ? void 0 : e.phoneWrapper),
|
|
1092
|
+
text: a("text-color-footer", e == null ? void 0 : e.phoneText),
|
|
1093
|
+
link: a("text-color-white mobile:m-0", e == null ? void 0 : e.phoneLink)
|
|
1094
1094
|
}
|
|
1095
1095
|
},
|
|
1096
|
-
|
|
1097
|
-
)) }),
|
|
1096
|
+
o
|
|
1097
|
+
)) }), Pr = ({ classes: t, details: e }) => /* @__PURE__ */ r.jsx(
|
|
1098
1098
|
"div",
|
|
1099
1099
|
{
|
|
1100
|
-
className:
|
|
1100
|
+
className: a(
|
|
1101
1101
|
"mt-6 grid grid-cols-1 gap-6 border-b border-blue-grey-500 pb-6 desktop:my-8 desktop:grid-cols-4 desktop:gap-10 desktop:pb-8",
|
|
1102
1102
|
t == null ? void 0 : t.navRoot
|
|
1103
1103
|
),
|
|
1104
1104
|
children: e == null ? void 0 : e.map(
|
|
1105
|
-
({ column:
|
|
1106
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1107
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1105
|
+
({ column: o }) => o == null ? void 0 : o.map(({ groupLabel: n, links: i }) => /* @__PURE__ */ r.jsxs("div", { className: a("flex flex-col gap-4", t == null ? void 0 : t.navGroup), children: [
|
|
1106
|
+
/* @__PURE__ */ r.jsx("div", { className: a("desk-body-medium-l text-color-white", t == null ? void 0 : t.navLabel), children: n }),
|
|
1107
|
+
/* @__PURE__ */ r.jsx("div", { className: a("flex flex-col gap-1", t == null ? void 0 : t.navLinks), children: i == null ? void 0 : i.map(({ path: l, label: d }) => /* @__PURE__ */ r.jsx(
|
|
1108
1108
|
je,
|
|
1109
1109
|
{
|
|
1110
|
-
href:
|
|
1110
|
+
href: l,
|
|
1111
1111
|
"aria-label": d,
|
|
1112
1112
|
intent: "white",
|
|
1113
1113
|
classes: {
|
|
@@ -1118,24 +1118,24 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
1118
1118
|
},
|
|
1119
1119
|
d
|
|
1120
1120
|
)) })
|
|
1121
|
-
] },
|
|
1121
|
+
] }, n))
|
|
1122
1122
|
)
|
|
1123
1123
|
}
|
|
1124
|
-
),
|
|
1124
|
+
), Dr = ({ text: t, classes: e }) => /* @__PURE__ */ r.jsx(
|
|
1125
1125
|
"div",
|
|
1126
1126
|
{
|
|
1127
|
-
className:
|
|
1127
|
+
className: a("desk-body-regular-m text-color-footer", e == null ? void 0 : e.copyRight),
|
|
1128
1128
|
dangerouslySetInnerHTML: { __html: t }
|
|
1129
1129
|
}
|
|
1130
|
-
),
|
|
1130
|
+
), Rr = ({ classes: t }) => /* @__PURE__ */ r.jsx(
|
|
1131
1131
|
"a",
|
|
1132
1132
|
{
|
|
1133
1133
|
"aria-label": "logo",
|
|
1134
1134
|
href: "https://sovcombank.ru/",
|
|
1135
|
-
className:
|
|
1136
|
-
children: /* @__PURE__ */ r.jsx(
|
|
1135
|
+
className: a("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", t == null ? void 0 : t.footerLogo),
|
|
1136
|
+
children: /* @__PURE__ */ r.jsx(b, { name: "brandLogos/logoWhite", className: a("size-full", t == null ? void 0 : t.footerLogoIcon) })
|
|
1137
1137
|
}
|
|
1138
|
-
),
|
|
1138
|
+
), Hr = ({ classes: t }) => /* @__PURE__ */ r.jsx(
|
|
1139
1139
|
je,
|
|
1140
1140
|
{
|
|
1141
1141
|
intent: "white",
|
|
@@ -1144,22 +1144,22 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
1144
1144
|
"aria-label": "site-map",
|
|
1145
1145
|
rel: "noreferrer",
|
|
1146
1146
|
classes: {
|
|
1147
|
-
link:
|
|
1147
|
+
link: a("mobile:mt-6", t == null ? void 0 : t.siteMapLink),
|
|
1148
1148
|
icon: t == null ? void 0 : t.siteMapLinkIcon
|
|
1149
1149
|
},
|
|
1150
1150
|
children: "Карта сайта"
|
|
1151
1151
|
}
|
|
1152
|
-
),
|
|
1153
|
-
const [
|
|
1154
|
-
return
|
|
1152
|
+
), zr = ({ text: t, classes: e }) => {
|
|
1153
|
+
const [o, n] = ue.useState(!1), [i, l] = ue.useState(!1), d = ue.useRef(null);
|
|
1154
|
+
return ue.useEffect(() => {
|
|
1155
1155
|
const u = d.current;
|
|
1156
|
-
u &&
|
|
1157
|
-
}, []), /* @__PURE__ */ r.jsxs("div", { className:
|
|
1156
|
+
u && l(u.scrollHeight > u.clientHeight);
|
|
1157
|
+
}, []), /* @__PURE__ */ r.jsxs("div", { className: a("mt-8 flex flex-col gap-4", e == null ? void 0 : e.ligalRoot), children: [
|
|
1158
1158
|
/* @__PURE__ */ r.jsx(
|
|
1159
1159
|
"div",
|
|
1160
1160
|
{
|
|
1161
1161
|
ref: d,
|
|
1162
|
-
className:
|
|
1162
|
+
className: a("desk-body-regular-m text-color-footer", { "line-clamp-3": !o }, e == null ? void 0 : e.ligalText),
|
|
1163
1163
|
dangerouslySetInnerHTML: { __html: t }
|
|
1164
1164
|
}
|
|
1165
1165
|
),
|
|
@@ -1168,8 +1168,8 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
1168
1168
|
{
|
|
1169
1169
|
tabIndex: 0,
|
|
1170
1170
|
role: "button",
|
|
1171
|
-
onClick: () =>
|
|
1172
|
-
className:
|
|
1171
|
+
onClick: () => n((u) => !u),
|
|
1172
|
+
className: a(
|
|
1173
1173
|
"desk-body-regular-l w-max cursor-pointer font-medium text-color-footer transition-colors hover:text-color-white",
|
|
1174
1174
|
e == null ? void 0 : e.ligalButton
|
|
1175
1175
|
),
|
|
@@ -1177,64 +1177,64 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
1177
1177
|
}
|
|
1178
1178
|
)
|
|
1179
1179
|
] });
|
|
1180
|
-
},
|
|
1180
|
+
}, Je = ({
|
|
1181
1181
|
socialsLinks: t,
|
|
1182
1182
|
phones: e,
|
|
1183
|
-
ligal:
|
|
1184
|
-
copyright:
|
|
1183
|
+
ligal: o,
|
|
1184
|
+
copyright: n,
|
|
1185
1185
|
classes: i,
|
|
1186
|
-
details:
|
|
1186
|
+
details: l,
|
|
1187
1187
|
siteMap: d = !0
|
|
1188
1188
|
}) => /* @__PURE__ */ r.jsx(
|
|
1189
1189
|
"footer",
|
|
1190
1190
|
{
|
|
1191
|
-
id:
|
|
1192
|
-
"data-test-id":
|
|
1193
|
-
className:
|
|
1194
|
-
children: /* @__PURE__ */ r.jsx(
|
|
1191
|
+
id: y.footer,
|
|
1192
|
+
"data-test-id": y.footer,
|
|
1193
|
+
className: a("w-full bg-color-footer py-8 desktop:py-10", i == null ? void 0 : i.root),
|
|
1194
|
+
children: /* @__PURE__ */ r.jsx(F, { className: a(i == null ? void 0 : i.footerContainer), children: /* @__PURE__ */ r.jsxs("div", { className: a("mobile:pb-[176px]", i == null ? void 0 : i.footerWrapper), children: [
|
|
1195
1195
|
/* @__PURE__ */ r.jsxs(
|
|
1196
1196
|
"div",
|
|
1197
1197
|
{
|
|
1198
|
-
className:
|
|
1198
|
+
className: a(
|
|
1199
1199
|
"flex flex-col items-start justify-between gap-4 border-b border-solid border-blue-grey-500 pb-6 desktop:flex-row desktop:gap-6 desktop:pb-8",
|
|
1200
1200
|
i == null ? void 0 : i.footerHead
|
|
1201
1201
|
),
|
|
1202
1202
|
children: [
|
|
1203
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1204
|
-
/* @__PURE__ */ r.jsx(
|
|
1205
|
-
t.enabled && /* @__PURE__ */ r.jsx(
|
|
1203
|
+
/* @__PURE__ */ r.jsxs("div", { className: a(i == null ? void 0 : i.footerSocialBlock), children: [
|
|
1204
|
+
/* @__PURE__ */ r.jsx(Rr, { classes: i == null ? void 0 : i.footerLogo }),
|
|
1205
|
+
t.enabled && /* @__PURE__ */ r.jsx(Er, { socialsLinks: t.links, classes: i == null ? void 0 : i.socialLinks })
|
|
1206
1206
|
] }),
|
|
1207
|
-
e.enabled && /* @__PURE__ */ r.jsx(
|
|
1207
|
+
e.enabled && /* @__PURE__ */ r.jsx(Br, { phones: e.items, classes: i == null ? void 0 : i.phonesBlock })
|
|
1208
1208
|
]
|
|
1209
1209
|
}
|
|
1210
1210
|
),
|
|
1211
|
-
!
|
|
1212
|
-
|
|
1211
|
+
!S.isArrayEmpty(l) && /* @__PURE__ */ r.jsx(Pr, { details: l, classes: i == null ? void 0 : i.navLinks }),
|
|
1212
|
+
o.enabled && /* @__PURE__ */ r.jsx(zr, { text: o.text }),
|
|
1213
1213
|
/* @__PURE__ */ r.jsxs(
|
|
1214
1214
|
"div",
|
|
1215
1215
|
{
|
|
1216
|
-
className:
|
|
1216
|
+
className: a(
|
|
1217
1217
|
"mt-6 flex flex-col-reverse items-start justify-between gap-4 desktop:mt-8 desktop:flex-row desktop:gap-6",
|
|
1218
1218
|
i == null ? void 0 : i.footerBottom
|
|
1219
1219
|
),
|
|
1220
1220
|
children: [
|
|
1221
|
-
|
|
1222
|
-
d && /* @__PURE__ */ r.jsx(
|
|
1221
|
+
n.enabled && /* @__PURE__ */ r.jsx(Dr, { text: n.text, classes: i == null ? void 0 : i.copyright }),
|
|
1222
|
+
d && /* @__PURE__ */ r.jsx(Hr, { classes: i == null ? void 0 : i.siteMap })
|
|
1223
1223
|
]
|
|
1224
1224
|
}
|
|
1225
1225
|
)
|
|
1226
1226
|
] }) })
|
|
1227
1227
|
}
|
|
1228
|
-
),
|
|
1228
|
+
), Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1229
1229
|
__proto__: null,
|
|
1230
|
-
Footer:
|
|
1231
|
-
default:
|
|
1232
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1233
|
-
const
|
|
1230
|
+
Footer: Je,
|
|
1231
|
+
default: Je
|
|
1232
|
+
}, Symbol.toStringTag, { value: "Module" })), Qr = ({ classes: t, index: e, variant: o, title: n, description: i }) => {
|
|
1233
|
+
const l = o === "withTitleAndDescription" && n;
|
|
1234
1234
|
return /* @__PURE__ */ r.jsxs(
|
|
1235
1235
|
"div",
|
|
1236
1236
|
{
|
|
1237
|
-
className:
|
|
1237
|
+
className: a(
|
|
1238
1238
|
"flex w-[328px] max-w-[328px] flex-col gap-4 rounded-md border border-solid border-blue-grey-500 p-4 desktop:w-[348px] desktop:max-w-[348px] desktop:border-none desktop:p-0",
|
|
1239
1239
|
t == null ? void 0 : t.singleStep
|
|
1240
1240
|
),
|
|
@@ -1242,49 +1242,49 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
1242
1242
|
/* @__PURE__ */ r.jsx(
|
|
1243
1243
|
"div",
|
|
1244
1244
|
{
|
|
1245
|
-
className:
|
|
1245
|
+
className: a(
|
|
1246
1246
|
"mob-headline-bold-s flex size-10 items-center justify-center rounded-sm bg-color-blue-grey-500 text-color-white desktop:desk-title-bold-l desktop:size-12",
|
|
1247
1247
|
t == null ? void 0 : t.numeric
|
|
1248
1248
|
),
|
|
1249
1249
|
children: e
|
|
1250
1250
|
}
|
|
1251
1251
|
),
|
|
1252
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1253
|
-
|
|
1252
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("flex flex-col gap-2"), children: [
|
|
1253
|
+
l && /* @__PURE__ */ r.jsx(
|
|
1254
1254
|
"div",
|
|
1255
1255
|
{
|
|
1256
|
-
dangerouslySetInnerHTML: { __html:
|
|
1257
|
-
className:
|
|
1256
|
+
dangerouslySetInnerHTML: { __html: n },
|
|
1257
|
+
className: a("mob-title-bold-m text-color-dark desktop:desk-title-bold-s", t == null ? void 0 : t.title)
|
|
1258
1258
|
}
|
|
1259
1259
|
),
|
|
1260
1260
|
/* @__PURE__ */ r.jsx(
|
|
1261
1261
|
"div",
|
|
1262
1262
|
{
|
|
1263
1263
|
dangerouslySetInnerHTML: { __html: i ?? "" },
|
|
1264
|
-
className:
|
|
1264
|
+
className: a("desk-body-regular-l text-color-tetriary", t == null ? void 0 : t.description)
|
|
1265
1265
|
}
|
|
1266
1266
|
)
|
|
1267
1267
|
] })
|
|
1268
1268
|
]
|
|
1269
1269
|
}
|
|
1270
1270
|
);
|
|
1271
|
-
},
|
|
1272
|
-
/* @__PURE__ */ r.jsx(L, { as: "h2", className:
|
|
1271
|
+
}, Ge = ({ headline: t, details: e, variant: o, classes: n }) => /* @__PURE__ */ r.jsx("section", { id: y.stepper, "data-test-id": y.stepper, className: n == null ? void 0 : n.root, children: /* @__PURE__ */ r.jsx(F, { className: n == null ? void 0 : n.container, children: /* @__PURE__ */ r.jsxs("div", { className: a("flex flex-col gap-6 desktop:items-start desktop:gap-12", n == null ? void 0 : n.wrapper), children: [
|
|
1272
|
+
/* @__PURE__ */ r.jsx(L, { as: "h2", className: a("text-color-dark", n == null ? void 0 : n.headline), children: t }),
|
|
1273
1273
|
/* @__PURE__ */ r.jsx(
|
|
1274
1274
|
"div",
|
|
1275
1275
|
{
|
|
1276
|
-
className:
|
|
1276
|
+
className: a(
|
|
1277
1277
|
"flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
|
|
1278
|
-
|
|
1278
|
+
n == null ? void 0 : n.stepsWrapper
|
|
1279
1279
|
),
|
|
1280
|
-
children: e == null ? void 0 : e.map((i,
|
|
1280
|
+
children: e == null ? void 0 : e.map((i, l) => /* @__PURE__ */ r.jsx(Qr, { variant: o, ...i, index: l + 1, classes: n == null ? void 0 : n.step }, i.description))
|
|
1281
1281
|
}
|
|
1282
1282
|
)
|
|
1283
|
-
] }) }) }),
|
|
1283
|
+
] }) }) }), Vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1284
1284
|
__proto__: null,
|
|
1285
|
-
Stepper:
|
|
1286
|
-
default:
|
|
1287
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1285
|
+
Stepper: Ge,
|
|
1286
|
+
default: Ge
|
|
1287
|
+
}, Symbol.toStringTag, { value: "Module" })), $r = E("", {
|
|
1288
1288
|
variants: {
|
|
1289
1289
|
intent: {
|
|
1290
1290
|
twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
|
|
@@ -1300,7 +1300,7 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
1300
1300
|
defaultVariants: {
|
|
1301
1301
|
intent: "twoItems"
|
|
1302
1302
|
}
|
|
1303
|
-
}),
|
|
1303
|
+
}), Ar = E("", {
|
|
1304
1304
|
variants: {
|
|
1305
1305
|
intent: {
|
|
1306
1306
|
twoItems: "",
|
|
@@ -1332,7 +1332,7 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
1332
1332
|
class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
1333
1333
|
}
|
|
1334
1334
|
]
|
|
1335
|
-
}),
|
|
1335
|
+
}), qr = E("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
|
|
1336
1336
|
variants: {
|
|
1337
1337
|
intent: {
|
|
1338
1338
|
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',
|
|
@@ -1342,7 +1342,7 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
1342
1342
|
defaultVariants: {
|
|
1343
1343
|
intent: "twoItems"
|
|
1344
1344
|
}
|
|
1345
|
-
}),
|
|
1345
|
+
}), Wr = E("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
|
|
1346
1346
|
variants: {
|
|
1347
1347
|
intent: {
|
|
1348
1348
|
twoItems: "desktop:h-[232px] desktop:w-[500px]",
|
|
@@ -1368,53 +1368,53 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
1368
1368
|
class: "desktop:h-[272px] desktop:w-[500px]"
|
|
1369
1369
|
}
|
|
1370
1370
|
]
|
|
1371
|
-
}),
|
|
1371
|
+
}), Ur = ({ data: t, intent: e }) => {
|
|
1372
1372
|
const {
|
|
1373
|
-
title:
|
|
1374
|
-
description:
|
|
1373
|
+
title: o,
|
|
1374
|
+
description: n,
|
|
1375
1375
|
popover: i = {
|
|
1376
1376
|
enabled: !1
|
|
1377
1377
|
}
|
|
1378
1378
|
} = t;
|
|
1379
|
-
return /* @__PURE__ */ r.jsx("li", { className:
|
|
1380
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1381
|
-
/* @__PURE__ */ r.jsx("h4", { className:
|
|
1382
|
-
i.enabled && /* @__PURE__ */ r.jsx(
|
|
1379
|
+
return /* @__PURE__ */ r.jsx("li", { className: a(qr({ intent: e })), children: /* @__PURE__ */ r.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
1380
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("mb-2 flex items-center gap-2"), children: [
|
|
1381
|
+
/* @__PURE__ */ r.jsx("h4", { className: a("mob-title-bold-m text-color-dark"), children: o }),
|
|
1382
|
+
i.enabled && /* @__PURE__ */ r.jsx(_e, { triggerElement: /* @__PURE__ */ r.jsx(b, { className: a("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i.text })
|
|
1383
1383
|
] }),
|
|
1384
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1384
|
+
/* @__PURE__ */ r.jsx("div", { className: a("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: n } })
|
|
1385
1385
|
] }) });
|
|
1386
|
-
}, Ce = ({ intent: t, headline: e, desktopHidden:
|
|
1386
|
+
}, Ce = ({ intent: t, headline: e, desktopHidden: o = !1, mobileHidden: n = !1 }) => /* @__PURE__ */ r.jsx("h2", { className: a($r({ intent: t, desktopHidden: o, mobileHidden: n })), children: e }), Kr = ({ details: t, intent: e, withButton: o }) => /* @__PURE__ */ r.jsx("ul", { className: a(Ar({ intent: e, withButton: o })), children: t == null ? void 0 : t.map((n, i) => /* @__PURE__ */ r.jsx(Ur, { intent: e, data: n }, i)) }), et = ({
|
|
1387
1387
|
headline: t,
|
|
1388
1388
|
buttonConfig: e,
|
|
1389
|
-
intent:
|
|
1390
|
-
details:
|
|
1389
|
+
intent: o = "twoItems",
|
|
1390
|
+
details: n,
|
|
1391
1391
|
image: i,
|
|
1392
|
-
classes:
|
|
1392
|
+
classes: l
|
|
1393
1393
|
}) => {
|
|
1394
|
-
const d =
|
|
1395
|
-
return /* @__PURE__ */ r.jsx("section", { id:
|
|
1396
|
-
u && /* @__PURE__ */ r.jsx(Ce, { intent:
|
|
1394
|
+
const d = o === "fourItems", u = o === "twoItems", m = i && "url" in i && S.isObject(i) ? /* @__PURE__ */ r.jsx("img", { className: "w-full object-contain", alt: i.alt, src: i.url }) : i;
|
|
1395
|
+
return /* @__PURE__ */ r.jsx("section", { id: y.longBanner, "data-test-id": y.longBanner, className: a(l == null ? void 0 : l.root), children: /* @__PURE__ */ r.jsxs(F, { className: a(l == null ? void 0 : l.container), children: [
|
|
1396
|
+
u && /* @__PURE__ */ r.jsx(Ce, { intent: o, headline: t }),
|
|
1397
1397
|
/* @__PURE__ */ r.jsxs(
|
|
1398
1398
|
"div",
|
|
1399
1399
|
{
|
|
1400
|
-
className:
|
|
1400
|
+
className: a(
|
|
1401
1401
|
"bg-banner-skyblue-100 px-6 pb-8 pt-6 desktop:flex desktop:flex-row-reverse desktop:justify-between desktop:px-0 desktop:py-0 desktop:pl-12",
|
|
1402
|
-
|
|
1402
|
+
l == null ? void 0 : l.contentContainer
|
|
1403
1403
|
),
|
|
1404
1404
|
children: [
|
|
1405
|
-
d && /* @__PURE__ */ r.jsx(Ce, { intent:
|
|
1406
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1405
|
+
d && /* @__PURE__ */ r.jsx(Ce, { intent: o, headline: t, desktopHidden: !0 }),
|
|
1406
|
+
/* @__PURE__ */ r.jsx("div", { className: a(Wr({ intent: o, withButton: e == null ? void 0 : e.enabled }), l == null ? void 0 : l.imgContainer), children: m }),
|
|
1407
1407
|
/* @__PURE__ */ r.jsxs(
|
|
1408
1408
|
"div",
|
|
1409
1409
|
{
|
|
1410
|
-
className:
|
|
1410
|
+
className: a("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", l == null ? void 0 : l.textWithBtnContainer),
|
|
1411
1411
|
children: [
|
|
1412
|
-
d && /* @__PURE__ */ r.jsx(Ce, { intent:
|
|
1413
|
-
/* @__PURE__ */ r.jsx(
|
|
1412
|
+
d && /* @__PURE__ */ r.jsx(Ce, { intent: o, headline: t, mobileHidden: !0 }),
|
|
1413
|
+
/* @__PURE__ */ r.jsx(Kr, { details: n, intent: o, withButton: (e == null ? void 0 : e.enabled) ?? !1 }),
|
|
1414
1414
|
(e == null ? void 0 : e.enabled) && e && /* @__PURE__ */ r.jsx(
|
|
1415
1415
|
Y,
|
|
1416
1416
|
{
|
|
1417
|
-
className:
|
|
1417
|
+
className: a("w-full px-4 desktop:w-max", l == null ? void 0 : l.button),
|
|
1418
1418
|
size: "lg",
|
|
1419
1419
|
intent: "secondary",
|
|
1420
1420
|
...e.buttonContent
|
|
@@ -1427,37 +1427,37 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
1427
1427
|
}
|
|
1428
1428
|
)
|
|
1429
1429
|
] }) });
|
|
1430
|
-
},
|
|
1430
|
+
}, Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1431
1431
|
__proto__: null,
|
|
1432
|
-
LongBanner:
|
|
1433
|
-
default:
|
|
1432
|
+
LongBanner: et,
|
|
1433
|
+
default: et
|
|
1434
1434
|
}, Symbol.toStringTag, { value: "Module" })), Me = {
|
|
1435
1435
|
ESIA: "esia",
|
|
1436
1436
|
MOBILE_ID: "mobileId",
|
|
1437
1437
|
COMBINE: "combine"
|
|
1438
|
-
},
|
|
1438
|
+
}, vt = ({ children: t, isLoading: e, classes: o, loaderProps: n }) => /* @__PURE__ */ r.jsx(
|
|
1439
1439
|
"div",
|
|
1440
1440
|
{
|
|
1441
1441
|
tabIndex: 0,
|
|
1442
|
-
className:
|
|
1442
|
+
className: a(
|
|
1443
1443
|
"relative flex h-[90px] w-full max-w-[328px] items-center justify-center rounded-sm p-2 desktop:max-w-[524px]",
|
|
1444
1444
|
"bg-color-white outline outline-1 outline-warm-grey-200 transition-colors focus-visible:outline-primary-focus",
|
|
1445
|
-
|
|
1445
|
+
o == null ? void 0 : o.root
|
|
1446
1446
|
),
|
|
1447
1447
|
children: /* @__PURE__ */ r.jsx(
|
|
1448
1448
|
"div",
|
|
1449
1449
|
{
|
|
1450
|
-
className:
|
|
1450
|
+
className: a(
|
|
1451
1451
|
"flex h-[74px] flex-1 cursor-pointer rounded-sm px-2 py-3 transition-colors desktop:px-4 desktop:py-3",
|
|
1452
1452
|
"bg-color-blue-grey-100 hover:bg-color-blue-grey-200 active:bg-color-blue-grey-300",
|
|
1453
1453
|
{ "items-center": e },
|
|
1454
|
-
|
|
1454
|
+
o == null ? void 0 : o.wrapper
|
|
1455
1455
|
),
|
|
1456
|
-
children: e ? /* @__PURE__ */ r.jsx(
|
|
1456
|
+
children: e ? /* @__PURE__ */ r.jsx(At, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...n }) : t
|
|
1457
1457
|
}
|
|
1458
1458
|
)
|
|
1459
1459
|
}
|
|
1460
|
-
),
|
|
1460
|
+
), Xr = ({ ...t }) => /* @__PURE__ */ r.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: [
|
|
1461
1461
|
/* @__PURE__ */ r.jsx(
|
|
1462
1462
|
"path",
|
|
1463
1463
|
{
|
|
@@ -1485,18 +1485,18 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
1485
1485
|
/* @__PURE__ */ r.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
|
|
1486
1486
|
/* @__PURE__ */ r.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
|
|
1487
1487
|
] }) })
|
|
1488
|
-
] }),
|
|
1488
|
+
] }), Nt = ({ mainLink: t, subLink: e, isMobile: o, classes: n }) => /* @__PURE__ */ r.jsxs("div", { className: a("flex flex-col", n == null ? void 0 : n.linksWrapper), children: [
|
|
1489
1489
|
/* @__PURE__ */ r.jsx(
|
|
1490
1490
|
"a",
|
|
1491
1491
|
{
|
|
1492
1492
|
href: t.href,
|
|
1493
1493
|
target: "_blank",
|
|
1494
1494
|
rel: "noreferrer",
|
|
1495
|
-
className:
|
|
1495
|
+
className: a(
|
|
1496
1496
|
'before:content=[" "] desk-body-medium-l z-[4] text-color-dark before:absolute before:left-1/2 before:top-1/2 before:h-full before:w-full before:-translate-x-1/2 before:-translate-y-1/2',
|
|
1497
|
-
|
|
1497
|
+
n == null ? void 0 : n.linksMainLink
|
|
1498
1498
|
),
|
|
1499
|
-
children:
|
|
1499
|
+
children: o ? t.mobileTitle : t.title
|
|
1500
1500
|
}
|
|
1501
1501
|
),
|
|
1502
1502
|
(e == null ? void 0 : e.text) && (e == null ? void 0 : e.href) && /* @__PURE__ */ r.jsx(
|
|
@@ -1508,79 +1508,79 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
1508
1508
|
target: "_blank",
|
|
1509
1509
|
rel: "noreferrer",
|
|
1510
1510
|
classes: {
|
|
1511
|
-
link:
|
|
1511
|
+
link: a("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary", n == null ? void 0 : n.linksSubLink)
|
|
1512
1512
|
},
|
|
1513
1513
|
children: e == null ? void 0 : e.text
|
|
1514
1514
|
}
|
|
1515
1515
|
)
|
|
1516
|
-
] }),
|
|
1516
|
+
] }), tt = ({ mainLink: t, subLink: e, isLoading: o, badge: n, loaderProps: i, classes: l }) => {
|
|
1517
1517
|
const { isMobile: d } = ee();
|
|
1518
|
-
return /* @__PURE__ */ r.jsx(
|
|
1518
|
+
return /* @__PURE__ */ r.jsx(vt, { isLoading: o, loaderProps: i, classes: l == null ? void 0 : l.authWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
1519
1519
|
"div",
|
|
1520
1520
|
{
|
|
1521
|
-
className:
|
|
1521
|
+
className: a(
|
|
1522
1522
|
"flex flex-1 items-center justify-between gap-1",
|
|
1523
|
-
{ "justify-center": !
|
|
1524
|
-
|
|
1523
|
+
{ "justify-center": !n && d },
|
|
1524
|
+
l == null ? void 0 : l.innerWrapper
|
|
1525
1525
|
),
|
|
1526
1526
|
children: [
|
|
1527
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1527
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("flex items-center gap-1 desktop:gap-4", l == null ? void 0 : l.textContent), children: [
|
|
1528
1528
|
/* @__PURE__ */ r.jsxs("div", { children: [
|
|
1529
|
-
/* @__PURE__ */ r.jsx(
|
|
1530
|
-
/* @__PURE__ */ r.jsx(
|
|
1531
|
-
/* @__PURE__ */ r.jsx(
|
|
1529
|
+
/* @__PURE__ */ r.jsx(b, { name: "logos/mts", className: a("relative z-[9] size-7 desktop:size-8", l == null ? void 0 : l.mtsLogo) }),
|
|
1530
|
+
/* @__PURE__ */ r.jsx(b, { name: "logos/megafon", className: a("relative z-[8] -ml-4 size-7 desktop:size-8", l == null ? void 0 : l.megafonLogo) }),
|
|
1531
|
+
/* @__PURE__ */ r.jsx(b, { name: "logos/beeline", className: a("relative z-[7] -ml-4 size-7 desktop:size-8", l == null ? void 0 : l.beelineLogo) })
|
|
1532
1532
|
] }),
|
|
1533
|
-
/* @__PURE__ */ r.jsx(
|
|
1534
|
-
/* @__PURE__ */ r.jsx(
|
|
1533
|
+
/* @__PURE__ */ r.jsx(Nt, { mainLink: t, subLink: e, isMobile: d, classes: l == null ? void 0 : l.links }),
|
|
1534
|
+
/* @__PURE__ */ r.jsx(b, { name: "arrows/arrowRight", className: a("mobile:hidden", l == null ? void 0 : l.arrowIcon) })
|
|
1535
1535
|
] }),
|
|
1536
|
-
|
|
1536
|
+
n && /* @__PURE__ */ r.jsx(Te, { className: a("bg-color-positive", l == null ? void 0 : l.badge), children: n })
|
|
1537
1537
|
]
|
|
1538
1538
|
}
|
|
1539
1539
|
) });
|
|
1540
|
-
},
|
|
1540
|
+
}, rt = ({ mainLink: t, subLink: e, isLoading: o, badge: n, loaderProps: i, classes: l }) => {
|
|
1541
1541
|
const { isMobile: d } = ee();
|
|
1542
|
-
return /* @__PURE__ */ r.jsx(
|
|
1542
|
+
return /* @__PURE__ */ r.jsx(vt, { isLoading: o, loaderProps: i, classes: l == null ? void 0 : l.authWrapper, children: /* @__PURE__ */ r.jsxs(
|
|
1543
1543
|
"div",
|
|
1544
1544
|
{
|
|
1545
|
-
className:
|
|
1545
|
+
className: a(
|
|
1546
1546
|
"flex flex-1 items-center justify-between gap-1",
|
|
1547
|
-
{ "justify-center": !
|
|
1548
|
-
|
|
1547
|
+
{ "justify-center": !n && d },
|
|
1548
|
+
l == null ? void 0 : l.innerWrapper
|
|
1549
1549
|
),
|
|
1550
1550
|
children: [
|
|
1551
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1552
|
-
/* @__PURE__ */ r.jsx(
|
|
1553
|
-
/* @__PURE__ */ r.jsx(
|
|
1554
|
-
/* @__PURE__ */ r.jsx(
|
|
1551
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("flex items-center gap-1 desktop:gap-4", l == null ? void 0 : l.textContent), children: [
|
|
1552
|
+
/* @__PURE__ */ r.jsx(Xr, { className: a("size-7 desktop:size-8", l == null ? void 0 : l.esiaLogo) }),
|
|
1553
|
+
/* @__PURE__ */ r.jsx(Nt, { mainLink: t, subLink: e, isMobile: d, classes: l == null ? void 0 : l.links }),
|
|
1554
|
+
/* @__PURE__ */ r.jsx(b, { name: "arrows/arrowRight", className: a("mobile:hidden", l == null ? void 0 : l.arrowIcon) })
|
|
1555
1555
|
] }),
|
|
1556
|
-
|
|
1556
|
+
n && /* @__PURE__ */ r.jsx(Te, { className: a("bg-color-positive", l == null ? void 0 : l.badge), children: n })
|
|
1557
1557
|
]
|
|
1558
1558
|
}
|
|
1559
1559
|
) });
|
|
1560
|
-
},
|
|
1560
|
+
}, Yr = (t) => {
|
|
1561
1561
|
switch (t.mode) {
|
|
1562
1562
|
case Me.ESIA:
|
|
1563
|
-
return /* @__PURE__ */ r.jsx(
|
|
1563
|
+
return /* @__PURE__ */ r.jsx(rt, { ...t });
|
|
1564
1564
|
case Me.MOBILE_ID:
|
|
1565
|
-
return /* @__PURE__ */ r.jsx(
|
|
1565
|
+
return /* @__PURE__ */ r.jsx(tt, { ...t });
|
|
1566
1566
|
case Me.COMBINE:
|
|
1567
1567
|
default:
|
|
1568
|
-
const { esiaConfig: e, mobileIdConfig:
|
|
1568
|
+
const { esiaConfig: e, mobileIdConfig: o, subtitle: n, badge: i, classes: l } = t, d = !n && !i ? ue.Fragment : "div";
|
|
1569
1569
|
return /* @__PURE__ */ r.jsxs(
|
|
1570
1570
|
"div",
|
|
1571
1571
|
{
|
|
1572
|
-
className:
|
|
1572
|
+
className: a(
|
|
1573
1573
|
"flex w-[328px] flex-col items-center justify-center gap-2 rounded-sm bg-color-white px-2 py-4 outline outline-1 outline-warm-grey-200 desktop:w-[524px] desktop:p-4",
|
|
1574
|
-
|
|
1574
|
+
l == null ? void 0 : l.root
|
|
1575
1575
|
),
|
|
1576
1576
|
children: [
|
|
1577
|
-
/* @__PURE__ */ r.jsxs(d, { className:
|
|
1578
|
-
|
|
1579
|
-
i && /* @__PURE__ */ r.jsx(
|
|
1577
|
+
/* @__PURE__ */ r.jsxs(d, { className: a("flex w-full items-center justify-between gap-2", l == null ? void 0 : l.topContent), children: [
|
|
1578
|
+
n && /* @__PURE__ */ r.jsx("h5", { className: a("desk-body-regular-l flex flex-1 text-color-dark", l == null ? void 0 : l.subtitle), children: n }),
|
|
1579
|
+
i && /* @__PURE__ */ r.jsx(Te, { className: a("bg-color-positive", l == null ? void 0 : l.badge), children: i })
|
|
1580
1580
|
] }),
|
|
1581
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1581
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("grid w-full grid-cols-2 gap-2 desktop:gap-4", l == null ? void 0 : l.authWrapper), children: [
|
|
1582
1582
|
/* @__PURE__ */ r.jsx(
|
|
1583
|
-
|
|
1583
|
+
rt,
|
|
1584
1584
|
{
|
|
1585
1585
|
...e,
|
|
1586
1586
|
classes: {
|
|
@@ -1591,13 +1591,13 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
1591
1591
|
}
|
|
1592
1592
|
),
|
|
1593
1593
|
/* @__PURE__ */ r.jsx(
|
|
1594
|
-
|
|
1594
|
+
tt,
|
|
1595
1595
|
{
|
|
1596
|
-
...
|
|
1596
|
+
...o,
|
|
1597
1597
|
classes: {
|
|
1598
1598
|
root: "p-0 outline-0 h-[74px]",
|
|
1599
1599
|
arrowIcon: "hidden",
|
|
1600
|
-
...
|
|
1600
|
+
...o.classes
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
1603
|
)
|
|
@@ -1606,45 +1606,45 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
1606
1606
|
}
|
|
1607
1607
|
);
|
|
1608
1608
|
}
|
|
1609
|
-
},
|
|
1609
|
+
}, Oo = (t) => Yr(t), nt = ({ links: t, classes: e }) => /* @__PURE__ */ r.jsx("nav", { className: a("flex flex-col gap-1", e == null ? void 0 : e.linksWrapper), children: t == null ? void 0 : t.map(({ path: o, label: n }) => /* @__PURE__ */ r.jsx(
|
|
1610
1610
|
je,
|
|
1611
1611
|
{
|
|
1612
1612
|
classes: {
|
|
1613
|
-
link:
|
|
1614
|
-
icon:
|
|
1613
|
+
link: a("w-max", e == null ? void 0 : e.linkText),
|
|
1614
|
+
icon: a(e == null ? void 0 : e.linkIcon)
|
|
1615
1615
|
},
|
|
1616
1616
|
intent: "dark",
|
|
1617
|
-
href:
|
|
1618
|
-
children:
|
|
1617
|
+
href: o,
|
|
1618
|
+
children: n
|
|
1619
1619
|
},
|
|
1620
|
-
|
|
1621
|
-
)) }),
|
|
1622
|
-
var
|
|
1620
|
+
o
|
|
1621
|
+
)) }), Jr = ({ groupLabel: t, links: e, mobileAccordionProps: o, classes: n }) => {
|
|
1622
|
+
var l, d, u;
|
|
1623
1623
|
const { isMobile: i } = ee();
|
|
1624
|
-
return /* @__PURE__ */ r.jsxs("div", { className:
|
|
1624
|
+
return /* @__PURE__ */ r.jsxs("div", { className: a("flex flex-col gap-2", n == null ? void 0 : n.columnGroup), children: [
|
|
1625
1625
|
!i && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
1626
|
-
/* @__PURE__ */ r.jsx("h5", { className:
|
|
1627
|
-
/* @__PURE__ */ r.jsx(
|
|
1626
|
+
/* @__PURE__ */ r.jsx("h5", { className: a("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", n == null ? void 0 : n.columnGroupHeading), children: t }),
|
|
1627
|
+
/* @__PURE__ */ r.jsx(nt, { links: e, classes: n == null ? void 0 : n.linksList }, "desktop")
|
|
1628
1628
|
] }),
|
|
1629
1629
|
i && /* @__PURE__ */ r.jsx(
|
|
1630
|
-
|
|
1630
|
+
le,
|
|
1631
1631
|
{
|
|
1632
1632
|
defaultOpen: !0,
|
|
1633
1633
|
label: t,
|
|
1634
|
-
icon: /* @__PURE__ */ r.jsx(
|
|
1635
|
-
...
|
|
1634
|
+
icon: /* @__PURE__ */ r.jsx(b, { name: "arrows/arrowRight", className: a("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
|
|
1635
|
+
...o,
|
|
1636
1636
|
classes: {
|
|
1637
|
-
...
|
|
1637
|
+
...o == null ? void 0 : o.classes,
|
|
1638
1638
|
header: {
|
|
1639
|
-
trigger:
|
|
1639
|
+
trigger: a("p-0 bg-color-blue-grey-100", (d = (l = o == null ? void 0 : o.classes) == null ? void 0 : l.header) == null ? void 0 : d.trigger)
|
|
1640
1640
|
},
|
|
1641
|
-
contentInner:
|
|
1641
|
+
contentInner: a("py-2 px-4", (u = o == null ? void 0 : o.classes) == null ? void 0 : u.contentInner)
|
|
1642
1642
|
},
|
|
1643
|
-
children: /* @__PURE__ */ r.jsx(
|
|
1643
|
+
children: /* @__PURE__ */ r.jsx(nt, { links: e, classes: n == null ? void 0 : n.linksList }, "mobile")
|
|
1644
1644
|
}
|
|
1645
1645
|
)
|
|
1646
1646
|
] });
|
|
1647
|
-
},
|
|
1647
|
+
}, Gr = ({ column: t, mobileAccordionProps: e, classes: o }) => /* @__PURE__ */ r.jsx("div", { className: a("flex flex-col gap-4 desktop:gap-6", o == null ? void 0 : o.column), children: t == null ? void 0 : t.map((n) => /* @__PURE__ */ r.jsx(Jr, { ...e, ...n, classes: o == null ? void 0 : o.columnGroup }, n.groupLabel)) }), en = E("grid gap-4 grid-cols-1", {
|
|
1648
1648
|
variants: {
|
|
1649
1649
|
variant: {
|
|
1650
1650
|
twoCols: "desktop:grid-cols-2",
|
|
@@ -1655,86 +1655,86 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
1655
1655
|
defaultVariants: {
|
|
1656
1656
|
variant: "fourCols"
|
|
1657
1657
|
}
|
|
1658
|
-
}),
|
|
1658
|
+
}), ot = ({
|
|
1659
1659
|
variant: t,
|
|
1660
1660
|
details: e,
|
|
1661
|
-
headline:
|
|
1662
|
-
mobileAccordionProps:
|
|
1661
|
+
headline: o,
|
|
1662
|
+
mobileAccordionProps: n,
|
|
1663
1663
|
rootAccordionProps: i,
|
|
1664
|
-
classes:
|
|
1664
|
+
classes: l,
|
|
1665
1665
|
defaultOpen: d
|
|
1666
1666
|
}) => {
|
|
1667
1667
|
var u, m, h;
|
|
1668
1668
|
return /* @__PURE__ */ r.jsx(
|
|
1669
1669
|
"section",
|
|
1670
1670
|
{
|
|
1671
|
-
id:
|
|
1672
|
-
"data-test-id":
|
|
1673
|
-
className:
|
|
1674
|
-
children: /* @__PURE__ */ r.jsx(
|
|
1675
|
-
|
|
1671
|
+
id: y.interLinking,
|
|
1672
|
+
"data-test-id": y.interLinking,
|
|
1673
|
+
className: a("min-w-full desktop:min-w-[1140px]", l == null ? void 0 : l.root),
|
|
1674
|
+
children: /* @__PURE__ */ r.jsx(F, { children: /* @__PURE__ */ r.jsx(
|
|
1675
|
+
le,
|
|
1676
1676
|
{
|
|
1677
1677
|
defaultOpen: d,
|
|
1678
|
-
label: /* @__PURE__ */ r.jsx(L, { as: "h4", className:
|
|
1678
|
+
label: /* @__PURE__ */ r.jsx(L, { as: "h4", className: a("text-left", l == null ? void 0 : l.headline), children: o }),
|
|
1679
1679
|
...i,
|
|
1680
1680
|
classes: {
|
|
1681
1681
|
...i == null ? void 0 : i.classes,
|
|
1682
1682
|
header: {
|
|
1683
|
-
trigger:
|
|
1683
|
+
trigger: a("bg-color-blue-grey-100", (m = (u = i == null ? void 0 : i.classes) == null ? void 0 : u.header) == null ? void 0 : m.trigger)
|
|
1684
1684
|
},
|
|
1685
|
-
content:
|
|
1685
|
+
content: a("max-w-full bg-color-blue-grey-100 relative", (h = i == null ? void 0 : i.classes) == null ? void 0 : h.content)
|
|
1686
1686
|
},
|
|
1687
|
-
children: /* @__PURE__ */ r.jsx("div", { className:
|
|
1687
|
+
children: /* @__PURE__ */ r.jsx("div", { className: a(en({ variant: t }), l == null ? void 0 : l.columnsWrapper), children: e == null ? void 0 : e.map((p, c) => /* @__PURE__ */ r.jsx(Gr, { ...p, ...n, classes: l == null ? void 0 : l.column }, c)) })
|
|
1688
1688
|
}
|
|
1689
1689
|
) })
|
|
1690
1690
|
}
|
|
1691
1691
|
);
|
|
1692
|
-
},
|
|
1692
|
+
}, tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1693
1693
|
__proto__: null,
|
|
1694
|
-
InterLinking:
|
|
1695
|
-
default:
|
|
1696
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1694
|
+
InterLinking: ot,
|
|
1695
|
+
default: ot
|
|
1696
|
+
}, Symbol.toStringTag, { value: "Module" })), rn = ({ tabsNames: t, activeTab: e, setActiveTab: o, classes: n }) => /* @__PURE__ */ r.jsx("div", { className: a("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", n == null ? void 0 : n.tabs), children: t && t.map((i, l) => /* @__PURE__ */ r.jsx(
|
|
1697
1697
|
"button",
|
|
1698
1698
|
{
|
|
1699
|
-
onClick: () =>
|
|
1700
|
-
className:
|
|
1699
|
+
onClick: () => o(l),
|
|
1700
|
+
className: a(
|
|
1701
1701
|
"mob-body-regular-m text-nowrap rounded-sm bg-color-blue-grey-100 px-3 py-1.5 text-color-secondary outline-1 outline-offset-4 outline-transparent focus:outline-primary-focus desktop:px-4 desktop:py-3",
|
|
1702
1702
|
{
|
|
1703
|
-
"bg-icon-primary-default text-color-white": e ===
|
|
1703
|
+
"bg-icon-primary-default text-color-white": e === l
|
|
1704
1704
|
},
|
|
1705
|
-
|
|
1705
|
+
n == null ? void 0 : n.button
|
|
1706
1706
|
),
|
|
1707
1707
|
children: i
|
|
1708
1708
|
},
|
|
1709
1709
|
i
|
|
1710
|
-
)) }),
|
|
1711
|
-
const i = /* @__PURE__ */ r.jsx("div", { className:
|
|
1712
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ r.jsx(
|
|
1713
|
-
},
|
|
1714
|
-
rows: t == null ? void 0 : t.map(({ row:
|
|
1715
|
-
row:
|
|
1716
|
-
var
|
|
1710
|
+
)) }), nn = (t) => t.variant === "HTML", on = (t) => t.variant === "DOCUMENTS", ln = (t) => t.variant === "TABLE", an = ({ html: t, config: e, classes: o, accordionConfig: n }) => {
|
|
1711
|
+
const i = /* @__PURE__ */ r.jsx("div", { className: a(o == null ? void 0 : o.html), dangerouslySetInnerHTML: { __html: t ?? "" } });
|
|
1712
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ r.jsx(le, { label: e == null ? void 0 : e.accordionTitle, ...n, children: (n == null ? void 0 : n.children) ?? i }) : i });
|
|
1713
|
+
}, dn = (t, e) => ({
|
|
1714
|
+
rows: t == null ? void 0 : t.map(({ row: o }) => ({
|
|
1715
|
+
row: o == null ? void 0 : o.map((n, i) => {
|
|
1716
|
+
var l;
|
|
1717
1717
|
return {
|
|
1718
|
-
...
|
|
1719
|
-
heading: e && ((
|
|
1718
|
+
...n,
|
|
1719
|
+
heading: e && ((l = e[i]) == null ? void 0 : l.heading)
|
|
1720
1720
|
};
|
|
1721
1721
|
})
|
|
1722
1722
|
}))
|
|
1723
|
-
}),
|
|
1723
|
+
}), un = E("flex flex-col", {
|
|
1724
1724
|
variants: {
|
|
1725
1725
|
columnsVariant: {
|
|
1726
1726
|
twoCols: "w-full max-w-[656px]",
|
|
1727
1727
|
threeCols: "w-full max-w-[768px]"
|
|
1728
1728
|
}
|
|
1729
1729
|
}
|
|
1730
|
-
}),
|
|
1730
|
+
}), mn = E("desktop:grid mobile:hidden px-4 mb-4", {
|
|
1731
1731
|
variants: {
|
|
1732
1732
|
columnsVariant: {
|
|
1733
1733
|
twoCols: "grid-cols-2 gap-16",
|
|
1734
1734
|
threeCols: "grid-cols-3 gap-12"
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
|
-
}),
|
|
1737
|
+
}), hn = ({ headings: t, columnsVariant: e, classes: o }) => /* @__PURE__ */ r.jsx("div", { className: a(mn({ columnsVariant: e }), o == null ? void 0 : o.row), children: t == null ? void 0 : t.map((n) => /* @__PURE__ */ r.jsx("div", { className: a("text-color-secondary", o == null ? void 0 : o.cell), children: n == null ? void 0 : n.heading }, n == null ? void 0 : n.heading)) }), xn = E("desktop:grid mobile:hidden items-center", {
|
|
1738
1738
|
variants: {
|
|
1739
1739
|
columnsVariant: {
|
|
1740
1740
|
twoCols: "grid-cols-2 gap-16",
|
|
@@ -1745,90 +1745,90 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
1745
1745
|
separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
|
|
1746
1746
|
}
|
|
1747
1747
|
}
|
|
1748
|
-
}),
|
|
1748
|
+
}), pn = ({ row: t, tableVariant: e, columnsVariant: o, rowIndex: n, classes: i }) => /* @__PURE__ */ r.jsx("div", { className: a(xn({ columnsVariant: o, tableVariant: e }), { "border-none": n === 0 }, i == null ? void 0 : i.row), children: t == null ? void 0 : t.map(({ cell: l }, d) => /* @__PURE__ */ r.jsx(
|
|
1749
1749
|
"div",
|
|
1750
1750
|
{
|
|
1751
|
-
className:
|
|
1752
|
-
children:
|
|
1751
|
+
className: a("desk-body-regular-l text-color-dark", { "font-medium": d !== 0 }, i == null ? void 0 : i.cell),
|
|
1752
|
+
children: l && l
|
|
1753
1753
|
},
|
|
1754
1754
|
d
|
|
1755
|
-
)) }),
|
|
1755
|
+
)) }), cn = E("mobile:flex desktop:hidden flex-col gap-2", {
|
|
1756
1756
|
variants: {
|
|
1757
1757
|
tableVariant: {
|
|
1758
1758
|
filled: "px-4 py-4 odd:bg-color-primary-light-default",
|
|
1759
1759
|
separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
1762
|
-
}),
|
|
1763
|
-
d && /* @__PURE__ */ r.jsx("div", { className:
|
|
1762
|
+
}), fn = ({ row: t, tableVariant: e, columnsVariant: o, headingsExist: n, classes: i }) => /* @__PURE__ */ r.jsx("div", { className: a(cn({ tableVariant: e }), i == null ? void 0 : i.row), children: t == null ? void 0 : t.map(({ cell: l, heading: d }, u) => /* @__PURE__ */ r.jsxs("div", { className: a("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !n }, i == null ? void 0 : i.wrapper), children: [
|
|
1763
|
+
d && /* @__PURE__ */ r.jsx("div", { className: a("mob-body-regular-l text-color-secondary", i == null ? void 0 : i.heading), children: d }),
|
|
1764
1764
|
/* @__PURE__ */ r.jsx(
|
|
1765
1765
|
"div",
|
|
1766
1766
|
{
|
|
1767
|
-
className:
|
|
1767
|
+
className: a(
|
|
1768
1768
|
"mob-body-regular-l text-color-dark",
|
|
1769
1769
|
{
|
|
1770
|
-
"font-medium": u !== 0 &&
|
|
1770
|
+
"font-medium": u !== 0 && o === "twoCols" || o === "threeCols" || o === "twoCols" && n
|
|
1771
1771
|
},
|
|
1772
1772
|
i == null ? void 0 : i.cell
|
|
1773
1773
|
),
|
|
1774
|
-
children:
|
|
1774
|
+
children: l
|
|
1775
1775
|
}
|
|
1776
1776
|
)
|
|
1777
|
-
] }, u)) }),
|
|
1777
|
+
] }, u)) }), bn = ({ tableVariant: t, rows: e, headings: o, columnsVariant: n, classes: i }) => {
|
|
1778
1778
|
var u;
|
|
1779
|
-
const
|
|
1780
|
-
return /* @__PURE__ */ r.jsxs("div", { className:
|
|
1781
|
-
d && /* @__PURE__ */ r.jsx(
|
|
1779
|
+
const l = ((u = dn(e, o)) == null ? void 0 : u.rows) ?? [], d = !!(o && o.length > 0);
|
|
1780
|
+
return /* @__PURE__ */ r.jsxs("div", { className: a("flex flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1781
|
+
d && /* @__PURE__ */ r.jsx(hn, { headings: o, columnsVariant: n, classes: i == null ? void 0 : i.desktopHeading }),
|
|
1782
1782
|
e == null ? void 0 : e.map((m, h) => /* @__PURE__ */ r.jsx(
|
|
1783
|
-
|
|
1783
|
+
pn,
|
|
1784
1784
|
{
|
|
1785
1785
|
rowIndex: h,
|
|
1786
1786
|
tableVariant: t,
|
|
1787
|
-
columnsVariant:
|
|
1787
|
+
columnsVariant: n,
|
|
1788
1788
|
classes: i == null ? void 0 : i.desktopRow,
|
|
1789
1789
|
...m
|
|
1790
1790
|
},
|
|
1791
1791
|
h
|
|
1792
1792
|
)),
|
|
1793
|
-
|
|
1794
|
-
|
|
1793
|
+
l == null ? void 0 : l.map((m, h) => /* @__PURE__ */ r.jsx(
|
|
1794
|
+
fn,
|
|
1795
1795
|
{
|
|
1796
1796
|
headingsExist: d,
|
|
1797
1797
|
tableVariant: t,
|
|
1798
|
-
columnsVariant:
|
|
1798
|
+
columnsVariant: n,
|
|
1799
1799
|
classes: i == null ? void 0 : i.desktopRow,
|
|
1800
1800
|
...m
|
|
1801
1801
|
},
|
|
1802
1802
|
h
|
|
1803
1803
|
))
|
|
1804
1804
|
] });
|
|
1805
|
-
},
|
|
1805
|
+
}, gn = ({
|
|
1806
1806
|
tableVariant: t,
|
|
1807
1807
|
description: e,
|
|
1808
|
-
columnsVariant:
|
|
1809
|
-
config:
|
|
1808
|
+
columnsVariant: o,
|
|
1809
|
+
config: n,
|
|
1810
1810
|
rows: i,
|
|
1811
|
-
title:
|
|
1811
|
+
title: l,
|
|
1812
1812
|
headings: d,
|
|
1813
1813
|
accordionConfig: u,
|
|
1814
1814
|
classes: m
|
|
1815
1815
|
}) => {
|
|
1816
|
-
const h = /* @__PURE__ */ r.jsxs("div", { className:
|
|
1817
|
-
|
|
1818
|
-
/* @__PURE__ */ r.jsx(
|
|
1816
|
+
const h = /* @__PURE__ */ r.jsxs("div", { className: a(un({ columnsVariant: o }), m == null ? void 0 : m.wrapper), children: [
|
|
1817
|
+
l && /* @__PURE__ */ r.jsx(L, { as: "h4", className: a("mb-4 desktop:mb-6", m == null ? void 0 : m.headline), children: l }),
|
|
1818
|
+
/* @__PURE__ */ r.jsx(bn, { tableVariant: t, rows: i, headings: d, columnsVariant: o }),
|
|
1819
1819
|
e && /* @__PURE__ */ r.jsx(
|
|
1820
1820
|
"div",
|
|
1821
1821
|
{
|
|
1822
|
-
className:
|
|
1822
|
+
className: a("mt-2 [&&]:desk-body-regular-m desktop:mt-2", m == null ? void 0 : m.description),
|
|
1823
1823
|
dangerouslySetInnerHTML: { __html: e ?? "" }
|
|
1824
1824
|
}
|
|
1825
1825
|
)
|
|
1826
1826
|
] });
|
|
1827
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children:
|
|
1828
|
-
},
|
|
1827
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: n && (n != null && n.isAccordion) && (n != null && n.accordionTitle) ? /* @__PURE__ */ r.jsx(le, { label: n == null ? void 0 : n.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || h }) : h });
|
|
1828
|
+
}, jn = {
|
|
1829
1829
|
documentFilled: "files/documentFilled",
|
|
1830
1830
|
documentOutline: "files/documentOutline"
|
|
1831
|
-
},
|
|
1831
|
+
}, yn = E("size-8 transition-colors", {
|
|
1832
1832
|
variants: {
|
|
1833
1833
|
iconType: {
|
|
1834
1834
|
documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
|
|
@@ -1838,63 +1838,63 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
1838
1838
|
defaultVariants: {
|
|
1839
1839
|
iconType: "documentOutline"
|
|
1840
1840
|
}
|
|
1841
|
-
}),
|
|
1841
|
+
}), sn = ({ label: t, size: e, url: o, iconType: n, classes: i }) => /* @__PURE__ */ r.jsxs(
|
|
1842
1842
|
"a",
|
|
1843
1843
|
{
|
|
1844
|
-
href:
|
|
1844
|
+
href: o,
|
|
1845
1845
|
target: "_blank",
|
|
1846
1846
|
rel: "noreferrer",
|
|
1847
1847
|
tabIndex: 0,
|
|
1848
|
-
className:
|
|
1848
|
+
className: a(
|
|
1849
1849
|
"group flex w-full cursor-pointer items-center gap-2 rounded-sm p-1 outline outline-2 outline-transparent transition-colors focus-within:outline-primary-focus",
|
|
1850
1850
|
i == null ? void 0 : i.link
|
|
1851
1851
|
),
|
|
1852
1852
|
children: [
|
|
1853
|
-
/* @__PURE__ */ r.jsx(
|
|
1854
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1855
|
-
/* @__PURE__ */ r.jsx("p", { className:
|
|
1856
|
-
/* @__PURE__ */ r.jsxs("div", { className:
|
|
1853
|
+
/* @__PURE__ */ r.jsx(b, { name: jn[n], className: a(yn({ iconType: n }), i == null ? void 0 : i.icon) }),
|
|
1854
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("flex flex-1 flex-col", i == null ? void 0 : i.wrapper), children: [
|
|
1855
|
+
/* @__PURE__ */ r.jsx("p", { className: a("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: t }),
|
|
1856
|
+
/* @__PURE__ */ r.jsxs("div", { className: a("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
|
|
1857
1857
|
Number(e),
|
|
1858
1858
|
" КБ"
|
|
1859
1859
|
] })
|
|
1860
1860
|
] })
|
|
1861
1861
|
]
|
|
1862
1862
|
}
|
|
1863
|
-
),
|
|
1864
|
-
const u = /* @__PURE__ */ r.jsxs("div", { className:
|
|
1865
|
-
|
|
1866
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1867
|
-
i && /* @__PURE__ */ r.jsx("div", { className:
|
|
1863
|
+
), kn = ({ docs: t, config: e, title: o, iconType: n, description: i, classes: l, accordionConfig: d }) => {
|
|
1864
|
+
const u = /* @__PURE__ */ r.jsxs("div", { className: a("flex max-w-[680px] flex-col", l == null ? void 0 : l.wrapper), children: [
|
|
1865
|
+
o && /* @__PURE__ */ r.jsx(L, { as: "h3", className: "mb-4", children: o }),
|
|
1866
|
+
/* @__PURE__ */ r.jsx("div", { className: a("flex flex-col gap-4", l == null ? void 0 : l.documentsWrapper), children: t == null ? void 0 : t.map((m) => /* @__PURE__ */ r.jsx(sn, { iconType: n, ...m, classes: l == null ? void 0 : l.singleDocument }, m.label)) }),
|
|
1867
|
+
i && /* @__PURE__ */ r.jsx("div", { className: a("mt-4", l == null ? void 0 : l.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
|
|
1868
1868
|
] });
|
|
1869
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ r.jsx(
|
|
1870
|
-
},
|
|
1871
|
-
var
|
|
1869
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ r.jsx(le, { label: e == null ? void 0 : e.accordionTitle, ...d, children: (d == null ? void 0 : d.children) || u }) : u });
|
|
1870
|
+
}, wn = ({ entity: t, classes: e, accordionsConfig: o }) => {
|
|
1871
|
+
var n, i, l;
|
|
1872
1872
|
switch (!0) {
|
|
1873
|
-
case
|
|
1874
|
-
return (
|
|
1873
|
+
case nn(t):
|
|
1874
|
+
return (n = t.details) == null ? void 0 : n.map((d, u) => {
|
|
1875
1875
|
var m;
|
|
1876
|
-
return /* @__PURE__ */ r.jsx(
|
|
1876
|
+
return /* @__PURE__ */ r.jsx(an, { ...d, accordionConfig: o == null ? void 0 : o.htmlAccordion, classes: (m = e == null ? void 0 : e.entities) == null ? void 0 : m.html }, u);
|
|
1877
1877
|
});
|
|
1878
|
-
case
|
|
1878
|
+
case on(t):
|
|
1879
1879
|
return (i = t.details) == null ? void 0 : i.map((d, u) => {
|
|
1880
1880
|
var m;
|
|
1881
1881
|
return /* @__PURE__ */ r.jsx(
|
|
1882
|
-
|
|
1882
|
+
kn,
|
|
1883
1883
|
{
|
|
1884
|
-
accordionConfig:
|
|
1884
|
+
accordionConfig: o == null ? void 0 : o.documentAccordion,
|
|
1885
1885
|
...d,
|
|
1886
1886
|
classes: (m = e == null ? void 0 : e.entities) == null ? void 0 : m.documents
|
|
1887
1887
|
},
|
|
1888
1888
|
u
|
|
1889
1889
|
);
|
|
1890
1890
|
});
|
|
1891
|
-
case
|
|
1892
|
-
return (
|
|
1891
|
+
case ln(t):
|
|
1892
|
+
return (l = t.details) == null ? void 0 : l.map((d, u) => {
|
|
1893
1893
|
var m;
|
|
1894
1894
|
return /* @__PURE__ */ r.jsx(
|
|
1895
|
-
|
|
1895
|
+
gn,
|
|
1896
1896
|
{
|
|
1897
|
-
accordionConfig:
|
|
1897
|
+
accordionConfig: o == null ? void 0 : o.tableAccordion,
|
|
1898
1898
|
...d,
|
|
1899
1899
|
classes: (m = e == null ? void 0 : e.entities) == null ? void 0 : m.table
|
|
1900
1900
|
},
|
|
@@ -1904,26 +1904,26 @@ const xr = B(() => Promise.resolve().then(() => Br)), pr = B(() => Promise.resol
|
|
|
1904
1904
|
default:
|
|
1905
1905
|
return null;
|
|
1906
1906
|
}
|
|
1907
|
-
},
|
|
1907
|
+
}, vn = ({ entity: t, classes: e, accordionsConfig: o }) => /* @__PURE__ */ r.jsx("div", { className: a("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: wn({ entity: t, classes: e, accordionsConfig: o }) }), it = ({ headline: t, tabs: e, classes: o, accordionsConfig: n }) => {
|
|
1908
1908
|
var u, m;
|
|
1909
|
-
const [i,
|
|
1910
|
-
return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ r.jsx("section", { id:
|
|
1911
|
-
/* @__PURE__ */ r.jsx(L, { className:
|
|
1912
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1913
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
1909
|
+
const [i, l] = A(0), d = se(() => e == null ? void 0 : e.map((h) => h == null ? void 0 : h.tabName), [e]) ?? [];
|
|
1910
|
+
return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ r.jsx("section", { id: y.usefulInfo, "data-test-id": y.usefulInfo, className: a(o == null ? void 0 : o.root), children: /* @__PURE__ */ r.jsxs(F, { className: a(o == null ? void 0 : o.container), children: [
|
|
1911
|
+
/* @__PURE__ */ r.jsx(L, { className: a(o == null ? void 0 : o.headline), as: "h2", children: t }),
|
|
1912
|
+
/* @__PURE__ */ r.jsx("div", { className: a("mt-6 flex flex-col gap-2 desktop:mt-12", o == null ? void 0 : o.tabsWrapper), children: /* @__PURE__ */ r.jsx(rn, { tabsNames: d, activeTab: i, setActiveTab: l, classes: o == null ? void 0 : o.tabs }) }),
|
|
1913
|
+
/* @__PURE__ */ r.jsx("div", { className: a("mt-6 flex flex-col gap-6", o == null ? void 0 : o.contentWrapper), children: (m = (u = e == null ? void 0 : e[i]) == null ? void 0 : u.contents) == null ? void 0 : m.map((h, p) => /* @__PURE__ */ r.jsx(vn, { accordionsConfig: n, ...h, classes: o == null ? void 0 : o.entityClasses }, p)) })
|
|
1914
1914
|
] }) });
|
|
1915
|
-
},
|
|
1915
|
+
}, Nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1916
1916
|
__proto__: null,
|
|
1917
|
-
UsefulInfo:
|
|
1918
|
-
default:
|
|
1919
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1920
|
-
const i =
|
|
1921
|
-
return /* @__PURE__ */
|
|
1917
|
+
UsefulInfo: it,
|
|
1918
|
+
default: it
|
|
1919
|
+
}, Symbol.toStringTag, { value: "Module" })), Pe = ({ fields: t, control: e }) => t.map(({ type: o, args: n }) => {
|
|
1920
|
+
const i = gt[o];
|
|
1921
|
+
return /* @__PURE__ */ yt(i, { ...n, key: n.name, control: e });
|
|
1922
1922
|
});
|
|
1923
|
-
class
|
|
1923
|
+
class Cn {
|
|
1924
1924
|
constructor(e) {
|
|
1925
|
-
|
|
1926
|
-
|
|
1925
|
+
ve(this, "TEXT_NODE", 3);
|
|
1926
|
+
ve(this, "ELEMENT_NODE", 1);
|
|
1927
1927
|
this.options = e;
|
|
1928
1928
|
}
|
|
1929
1929
|
/**
|
|
@@ -1932,8 +1932,8 @@ class _n {
|
|
|
1932
1932
|
* @param elements Массив для сбора элементов
|
|
1933
1933
|
* @param as Тип возвращаемых данных ('string' или 'node')
|
|
1934
1934
|
*/
|
|
1935
|
-
traverse(e,
|
|
1936
|
-
const { includeSolidText: i, recursive:
|
|
1935
|
+
traverse(e, o = "string", n) {
|
|
1936
|
+
const { includeSolidText: i, recursive: l, element: d } = this.options || {};
|
|
1937
1937
|
switch (e.nodeType) {
|
|
1938
1938
|
// если узел - элемент
|
|
1939
1939
|
case this.ELEMENT_NODE:
|
|
@@ -1944,25 +1944,25 @@ class _n {
|
|
|
1944
1944
|
}
|
|
1945
1945
|
if (d && m !== d)
|
|
1946
1946
|
break;
|
|
1947
|
-
if (
|
|
1948
|
-
|
|
1947
|
+
if (o === "node")
|
|
1948
|
+
n.push(e);
|
|
1949
1949
|
else {
|
|
1950
1950
|
const h = u.outerHTML.trim();
|
|
1951
|
-
|
|
1951
|
+
n.push(h);
|
|
1952
1952
|
}
|
|
1953
|
-
if (
|
|
1953
|
+
if (l)
|
|
1954
1954
|
for (const h of e.childNodes)
|
|
1955
|
-
this.traverse(h,
|
|
1955
|
+
this.traverse(h, o, n);
|
|
1956
1956
|
break;
|
|
1957
1957
|
// если узел - текстовый и требуется его добавить, добавляем
|
|
1958
1958
|
case this.TEXT_NODE:
|
|
1959
1959
|
if (!i)
|
|
1960
1960
|
break;
|
|
1961
|
-
if (
|
|
1962
|
-
|
|
1961
|
+
if (o === "node")
|
|
1962
|
+
n.push(e);
|
|
1963
1963
|
else {
|
|
1964
1964
|
const h = e.textContent;
|
|
1965
|
-
h &&
|
|
1965
|
+
h && n.push(h);
|
|
1966
1966
|
}
|
|
1967
1967
|
break;
|
|
1968
1968
|
}
|
|
@@ -1973,14 +1973,14 @@ class _n {
|
|
|
1973
1973
|
* @param as Тип возвращаемых данных ('string' или 'node')
|
|
1974
1974
|
* @returns Массив тегов или нод
|
|
1975
1975
|
*/
|
|
1976
|
-
async parse(e,
|
|
1977
|
-
const { includeBody:
|
|
1978
|
-
if (
|
|
1979
|
-
this.traverse(d.body,
|
|
1976
|
+
async parse(e, o = "string") {
|
|
1977
|
+
const { includeBody: n } = this.options || {}, i = [], l = [], d = await this.parseFromString(e), u = o === "string" ? i : l;
|
|
1978
|
+
if (n)
|
|
1979
|
+
this.traverse(d.body, o, u);
|
|
1980
1980
|
else
|
|
1981
1981
|
for (const m of d.body.childNodes)
|
|
1982
|
-
this.traverse(m,
|
|
1983
|
-
return { stringNodes: i, nodes:
|
|
1982
|
+
this.traverse(m, o, u);
|
|
1983
|
+
return { stringNodes: i, nodes: l };
|
|
1984
1984
|
}
|
|
1985
1985
|
/**
|
|
1986
1986
|
* Считает количество указанных тегов в HTML строке.
|
|
@@ -1988,148 +1988,79 @@ class _n {
|
|
|
1988
1988
|
* @returns Количество найденных тегов
|
|
1989
1989
|
*/
|
|
1990
1990
|
async countElements(e) {
|
|
1991
|
-
const { stringNodes:
|
|
1992
|
-
return
|
|
1991
|
+
const { stringNodes: o } = await this.parse(e, "string");
|
|
1992
|
+
return o.length;
|
|
1993
1993
|
}
|
|
1994
1994
|
}
|
|
1995
|
-
const
|
|
1996
|
-
class
|
|
1995
|
+
const Mn = typeof window < "u";
|
|
1996
|
+
class Fo extends Cn {
|
|
1997
1997
|
constructor(e) {
|
|
1998
1998
|
super(e);
|
|
1999
1999
|
}
|
|
2000
2000
|
async parseFromString(e) {
|
|
2001
|
-
return
|
|
2002
|
-
}
|
|
2003
|
-
}
|
|
2004
|
-
class Te {
|
|
2005
|
-
/**
|
|
2006
|
-
* Функция для парсинга ноды в react элемент
|
|
2007
|
-
*/
|
|
2008
|
-
static parseNode(e) {
|
|
2009
|
-
if (e.nodeType === this.TEXT_NODE)
|
|
2010
|
-
return e.textContent ?? null;
|
|
2011
|
-
if (e.nodeType === this.ELEMENT_NODE) {
|
|
2012
|
-
const n = e, o = n.tagName.toLowerCase(), i = {};
|
|
2013
|
-
for (const d of n.attributes) {
|
|
2014
|
-
let u = d.name, m = d.value;
|
|
2015
|
-
switch (d.name) {
|
|
2016
|
-
case "class":
|
|
2017
|
-
u = "className";
|
|
2018
|
-
break;
|
|
2019
|
-
case "for":
|
|
2020
|
-
u = "htmlFor";
|
|
2021
|
-
break;
|
|
2022
|
-
case "checked":
|
|
2023
|
-
case "disabled":
|
|
2024
|
-
case "selected":
|
|
2025
|
-
m = d.value !== "false", m = d.value !== "false", m = d.value !== "false";
|
|
2026
|
-
break;
|
|
2027
|
-
case "readonly":
|
|
2028
|
-
u = "readOnly", m = d.value !== "false";
|
|
2029
|
-
break;
|
|
2030
|
-
case "style":
|
|
2031
|
-
u = "style";
|
|
2032
|
-
const h = {};
|
|
2033
|
-
d.value.split(";").forEach((p) => {
|
|
2034
|
-
const [c, f] = p.split(":");
|
|
2035
|
-
if (c && f) {
|
|
2036
|
-
const b = c.trim().replace(/-([a-z])/g, (w, g) => g.toUpperCase());
|
|
2037
|
-
h[b] = f.trim();
|
|
2038
|
-
}
|
|
2039
|
-
}), m = h;
|
|
2040
|
-
break;
|
|
2041
|
-
}
|
|
2042
|
-
i[u] = m;
|
|
2043
|
-
}
|
|
2044
|
-
i.key = Math.random().toString(36).substring(2, 9);
|
|
2045
|
-
const a = [];
|
|
2046
|
-
for (const d of n.childNodes) {
|
|
2047
|
-
const u = this.parseNode(d);
|
|
2048
|
-
u && a.push(u);
|
|
2049
|
-
}
|
|
2050
|
-
return Fe(o, i, ...a);
|
|
2051
|
-
}
|
|
2052
|
-
return null;
|
|
2053
|
-
}
|
|
2054
|
-
/**
|
|
2055
|
-
* функция для преобразования html строки в react элементы
|
|
2056
|
-
*/
|
|
2057
|
-
static async toReactNodes(e, n) {
|
|
2058
|
-
const o = new Tn(n), { nodes: i } = await o.parse(e, "node");
|
|
2059
|
-
return i.map((a) => this.parseNode(a));
|
|
2001
|
+
return Mn ? new DOMParser().parseFromString(e, "text/html") : Promise.reject();
|
|
2060
2002
|
}
|
|
2061
2003
|
}
|
|
2062
|
-
|
|
2063
|
-
const
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
const i = n ?? Yt, a = n ? o : {}, d = Te.toReactNodes(t, e);
|
|
2072
|
-
return (
|
|
2073
|
-
// @ts-expect-error disable warning
|
|
2074
|
-
/* @__PURE__ */ r.jsx(i, { ...a, children: /* @__PURE__ */ r.jsx(On, { promises: d }) })
|
|
2075
|
-
);
|
|
2076
|
-
}, Sn = (t, e) => t.enabled ? e.map((n) => ({
|
|
2077
|
-
name: n.args.name,
|
|
2078
|
-
...n.args.progress
|
|
2079
|
-
})) : null, En = ["getFioSchema"], Mt = (t, e, n) => {
|
|
2080
|
-
const o = t[e];
|
|
2081
|
-
if (O.isNil(o))
|
|
2004
|
+
const ie = ({ html: t, as: e, ...o }) => {
|
|
2005
|
+
const n = e ?? "div";
|
|
2006
|
+
return /* @__PURE__ */ r.jsx(n, { dangerouslySetInnerHTML: { __html: t }, ...o });
|
|
2007
|
+
}, In = (t, e) => t.enabled ? e.map((o) => ({
|
|
2008
|
+
name: o.args.name,
|
|
2009
|
+
...o.args.progress
|
|
2010
|
+
})) : null, _n = ["getFioSchema"], Ct = (t, e, o) => {
|
|
2011
|
+
const n = t[e];
|
|
2012
|
+
if (S.isNil(n))
|
|
2082
2013
|
throw new Error(`validation for type ${String(e)} not found`);
|
|
2083
|
-
if (!
|
|
2014
|
+
if (!S.isFunction(n))
|
|
2084
2015
|
throw new Error(`Cannot generate ${String(e)} because is not a function`);
|
|
2085
|
-
return o
|
|
2086
|
-
},
|
|
2087
|
-
const
|
|
2088
|
-
const
|
|
2016
|
+
return n(o);
|
|
2017
|
+
}, Tn = (t, e) => Ct(st.base, t, e), Sn = (t, e) => Ct(st.dadata, t, e), De = (t) => {
|
|
2018
|
+
const o = ((t == null ? void 0 : t.map((n) => ({ name: n.args.name, validation: n.args.validation }))) ?? []).reduce((n, i) => {
|
|
2019
|
+
const l = _n.includes(i.validation.type) ? Sn(
|
|
2089
2020
|
i.validation.type,
|
|
2090
2021
|
i.validation.args
|
|
2091
|
-
) :
|
|
2022
|
+
) : Tn(
|
|
2092
2023
|
i.validation.type,
|
|
2093
2024
|
i.validation.args
|
|
2094
2025
|
);
|
|
2095
|
-
return
|
|
2026
|
+
return n[i.name] = l, n;
|
|
2096
2027
|
}, {});
|
|
2097
|
-
return
|
|
2098
|
-
},
|
|
2028
|
+
return kt(o);
|
|
2029
|
+
}, On = new ur(), Mt = ({ children: t }) => /* @__PURE__ */ r.jsx(qt, { client: On, children: t }), Fn = (t, e, o, n) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ r.jsx(ie, { html: t.message, as: "div", className: n == null ? void 0 : n.content }) : /* @__PURE__ */ r.jsxs(
|
|
2099
2030
|
"label",
|
|
2100
2031
|
{
|
|
2101
|
-
className:
|
|
2032
|
+
className: a(
|
|
2102
2033
|
"mob-body-regular-s text-color-dark",
|
|
2103
2034
|
"desktop:desk-body-regular-m desktop:gap-x-4",
|
|
2104
2035
|
"flex items-center justify-items-start gap-x-3"
|
|
2105
2036
|
),
|
|
2106
2037
|
children: [
|
|
2107
|
-
/* @__PURE__ */ r.jsx(ye.CheckboxBase, { classes:
|
|
2108
|
-
/* @__PURE__ */ r.jsx(ie, { html: t.content, as: "div", className:
|
|
2038
|
+
/* @__PURE__ */ r.jsx(ye.CheckboxBase, { classes: n == null ? void 0 : n.checkbox, checked: e, onCheckedChange: o }),
|
|
2039
|
+
/* @__PURE__ */ r.jsx(ie, { html: t.content, as: "div", className: n == null ? void 0 : n.content })
|
|
2109
2040
|
]
|
|
2110
2041
|
}
|
|
2111
|
-
),
|
|
2042
|
+
), lt = ({
|
|
2112
2043
|
fields: t,
|
|
2113
2044
|
title: e,
|
|
2114
|
-
progress:
|
|
2115
|
-
approvement:
|
|
2045
|
+
progress: o,
|
|
2046
|
+
approvement: n,
|
|
2116
2047
|
chips: i,
|
|
2117
|
-
submitProps:
|
|
2048
|
+
submitProps: l,
|
|
2118
2049
|
classes: d,
|
|
2119
2050
|
buttonGroup: u
|
|
2120
2051
|
}) => {
|
|
2121
2052
|
var q, C;
|
|
2122
|
-
const { submitCallback: m } =
|
|
2053
|
+
const { submitCallback: m } = l || {}, [h, p] = A(!1), c = De(t), g = Be.getZodDefaults(c), { control: f, handleSubmit: w } = Ee({
|
|
2123
2054
|
schema: c,
|
|
2124
|
-
defaultValues:
|
|
2055
|
+
defaultValues: g,
|
|
2125
2056
|
mode: "onBlur"
|
|
2126
|
-
}),
|
|
2127
|
-
m && m({ ...
|
|
2057
|
+
}), j = In(o, t), v = rr({ control: f, fields: j || [], schema: c }), _ = (I) => {
|
|
2058
|
+
m && m({ ...I, agree: h });
|
|
2128
2059
|
};
|
|
2129
|
-
return /* @__PURE__ */ r.jsx(
|
|
2130
|
-
|
|
2060
|
+
return /* @__PURE__ */ r.jsx(Mt, { children: /* @__PURE__ */ r.jsx("section", { id: y.form, "data-test-id": y.form, className: a("w-full", d == null ? void 0 : d.root), children: /* @__PURE__ */ r.jsxs(
|
|
2061
|
+
F,
|
|
2131
2062
|
{
|
|
2132
|
-
className:
|
|
2063
|
+
className: a(
|
|
2133
2064
|
"border-warm-grey-200 px-4 desktop:gap-8 desktop:p-14",
|
|
2134
2065
|
"relative mx-auto flex flex-col gap-6 rounded-sm py-8 desktop:border"
|
|
2135
2066
|
),
|
|
@@ -2137,14 +2068,14 @@ const On = ({ promises: t }) => {
|
|
|
2137
2068
|
i.enabled && /* @__PURE__ */ r.jsxs(
|
|
2138
2069
|
"div",
|
|
2139
2070
|
{
|
|
2140
|
-
className:
|
|
2071
|
+
className: a(
|
|
2141
2072
|
"desk-body-regular-l flex items-center gap-x-2 rounded-sm desktop:absolute",
|
|
2142
2073
|
"bg-color-blue-grey-100 px-2 py-1 text-color-tetriary",
|
|
2143
2074
|
"right-4 top-4 w-max",
|
|
2144
2075
|
(q = d == null ? void 0 : d.chips) == null ? void 0 : q.root
|
|
2145
2076
|
),
|
|
2146
2077
|
children: [
|
|
2147
|
-
i.image && /* @__PURE__ */ r.jsx(
|
|
2078
|
+
i.image && /* @__PURE__ */ r.jsx(b, { name: i.image, className: a("size-4", (C = d == null ? void 0 : d.chips) == null ? void 0 : C.icon) }),
|
|
2148
2079
|
i.content
|
|
2149
2080
|
]
|
|
2150
2081
|
}
|
|
@@ -2153,34 +2084,34 @@ const On = ({ promises: t }) => {
|
|
|
2153
2084
|
/* @__PURE__ */ r.jsxs(
|
|
2154
2085
|
"form",
|
|
2155
2086
|
{
|
|
2156
|
-
onSubmit: w(
|
|
2157
|
-
className:
|
|
2087
|
+
onSubmit: w(_),
|
|
2088
|
+
className: a("flex w-full flex-col gap-y-6", "desktop:gap-y-8", d == null ? void 0 : d.form),
|
|
2158
2089
|
children: [
|
|
2159
|
-
|
|
2160
|
-
|
|
2090
|
+
o.enabled && /* @__PURE__ */ r.jsx(
|
|
2091
|
+
Wt,
|
|
2161
2092
|
{
|
|
2162
2093
|
progress: v,
|
|
2163
|
-
topContent: /* @__PURE__ */ r.jsx(ie, { html:
|
|
2164
|
-
bottomContent: /* @__PURE__ */ r.jsx(ie, { html:
|
|
2165
|
-
maxPercent:
|
|
2094
|
+
topContent: /* @__PURE__ */ r.jsx(ie, { html: o.title }),
|
|
2095
|
+
bottomContent: /* @__PURE__ */ r.jsx(ie, { html: o.subtitle }),
|
|
2096
|
+
maxPercent: o.maxPercent,
|
|
2166
2097
|
classes: d == null ? void 0 : d.progressBar
|
|
2167
2098
|
}
|
|
2168
2099
|
),
|
|
2169
|
-
/* @__PURE__ */ r.jsx(
|
|
2100
|
+
/* @__PURE__ */ r.jsx(Pe, { control: f, fields: t }),
|
|
2170
2101
|
/* @__PURE__ */ r.jsxs("div", { className: "mob-body-regular-m flex flex-col items-start justify-center gap-4", children: [
|
|
2171
|
-
|
|
2172
|
-
/* @__PURE__ */ r.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-4 desktop:flex-row", children: u == null ? void 0 : u.map((
|
|
2173
|
-
const
|
|
2174
|
-
return /* @__PURE__ */
|
|
2102
|
+
Fn(n, h, p, d == null ? void 0 : d.approvement),
|
|
2103
|
+
/* @__PURE__ */ r.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-4 desktop:flex-row", children: u == null ? void 0 : u.map((I, D) => {
|
|
2104
|
+
const Q = I.type === "submit" && n.type === "checkbox" ? !h : !1;
|
|
2105
|
+
return /* @__PURE__ */ yt(
|
|
2175
2106
|
ge,
|
|
2176
2107
|
{
|
|
2177
|
-
...
|
|
2108
|
+
...I,
|
|
2178
2109
|
key: D,
|
|
2179
|
-
disabled:
|
|
2180
|
-
className:
|
|
2110
|
+
disabled: Q,
|
|
2111
|
+
className: a(
|
|
2181
2112
|
"w-full whitespace-nowrap",
|
|
2182
2113
|
{
|
|
2183
|
-
"w-full": !!
|
|
2114
|
+
"w-full": !!n
|
|
2184
2115
|
},
|
|
2185
2116
|
d == null ? void 0 : d.submit
|
|
2186
2117
|
)
|
|
@@ -2194,52 +2125,52 @@ const On = ({ promises: t }) => {
|
|
|
2194
2125
|
]
|
|
2195
2126
|
}
|
|
2196
2127
|
) }) });
|
|
2197
|
-
},
|
|
2128
|
+
}, En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2198
2129
|
__proto__: null,
|
|
2199
|
-
DynamicForm:
|
|
2200
|
-
default:
|
|
2201
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2130
|
+
DynamicForm: lt,
|
|
2131
|
+
default: lt
|
|
2132
|
+
}, Symbol.toStringTag, { value: "Module" })), Bn = (t, e, o, n) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ r.jsx(ie, { html: t.message, as: "div", className: n == null ? void 0 : n.content }) : /* @__PURE__ */ r.jsxs(
|
|
2202
2133
|
"label",
|
|
2203
2134
|
{
|
|
2204
|
-
className:
|
|
2135
|
+
className: a(
|
|
2205
2136
|
"mob-body-regular-s text-color-dark",
|
|
2206
2137
|
"desktop:desk-body-regular-m desktop:gap-x-4",
|
|
2207
2138
|
"flex items-center justify-items-start gap-x-3"
|
|
2208
2139
|
),
|
|
2209
2140
|
children: [
|
|
2210
|
-
/* @__PURE__ */ r.jsx(ye.CheckboxBase, { classes:
|
|
2211
|
-
/* @__PURE__ */ r.jsx(ie, { html: t.content, as: "div", className:
|
|
2141
|
+
/* @__PURE__ */ r.jsx(ye.CheckboxBase, { classes: n == null ? void 0 : n.checkbox, checked: e, onCheckedChange: o }),
|
|
2142
|
+
/* @__PURE__ */ r.jsx(ie, { html: t.content, as: "div", className: n == null ? void 0 : n.content })
|
|
2212
2143
|
]
|
|
2213
2144
|
}
|
|
2214
|
-
),
|
|
2145
|
+
), at = ({
|
|
2215
2146
|
fields: t,
|
|
2216
2147
|
title: e,
|
|
2217
|
-
approvement:
|
|
2218
|
-
submitProps:
|
|
2148
|
+
approvement: o,
|
|
2149
|
+
submitProps: n,
|
|
2219
2150
|
dialogId: i,
|
|
2220
|
-
classes:
|
|
2151
|
+
classes: l,
|
|
2221
2152
|
...d
|
|
2222
2153
|
}) => {
|
|
2223
|
-
const { submitCallback: u, children: m, ...h } =
|
|
2224
|
-
schema:
|
|
2225
|
-
defaultValues:
|
|
2154
|
+
const { submitCallback: u, children: m, ...h } = n ?? {}, [p, c] = A(!1), g = De(t), f = Be.getZodDefaults(g), { control: w, handleSubmit: j } = Ee({
|
|
2155
|
+
schema: g,
|
|
2156
|
+
defaultValues: f,
|
|
2226
2157
|
mode: "onBlur"
|
|
2227
|
-
}), v = (
|
|
2228
|
-
u && u({ ...
|
|
2158
|
+
}), v = (_) => {
|
|
2159
|
+
u && u({ ..._, agree: p });
|
|
2229
2160
|
};
|
|
2230
|
-
return /* @__PURE__ */ r.jsx(
|
|
2231
|
-
/* @__PURE__ */ r.jsx(
|
|
2232
|
-
|
|
2233
|
-
/* @__PURE__ */ r.jsx(ge, { ...h, type: "submit", disabled:
|
|
2161
|
+
return /* @__PURE__ */ r.jsx(Mt, { children: /* @__PURE__ */ r.jsx(Ut, { id: i, title: e, ...d, children: /* @__PURE__ */ r.jsxs("form", { onSubmit: j(v), className: "flex flex-col gap-6", children: [
|
|
2162
|
+
/* @__PURE__ */ r.jsx(Pe, { control: w, fields: t }),
|
|
2163
|
+
Bn(o, p, c, l == null ? void 0 : l.approvement),
|
|
2164
|
+
/* @__PURE__ */ r.jsx(ge, { ...h, type: "submit", disabled: o.type === "checkbox" ? !p : !1, className: "w-full", children: m ?? "Отправить форму" })
|
|
2234
2165
|
] }) }) });
|
|
2235
|
-
},
|
|
2166
|
+
}, Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2236
2167
|
__proto__: null,
|
|
2237
|
-
DynamicFormDialog:
|
|
2238
|
-
default:
|
|
2239
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2168
|
+
DynamicFormDialog: at,
|
|
2169
|
+
default: at
|
|
2170
|
+
}, Symbol.toStringTag, { value: "Module" })), de = () => ({
|
|
2240
2171
|
approve: {
|
|
2241
2172
|
icon: {
|
|
2242
|
-
element: /* @__PURE__ */ r.jsx(
|
|
2173
|
+
element: /* @__PURE__ */ r.jsx(b, { name: "status/iconMark" }),
|
|
2243
2174
|
bg: "bg-color-positive-light"
|
|
2244
2175
|
},
|
|
2245
2176
|
title: "Ваша заявка отправлена",
|
|
@@ -2254,7 +2185,7 @@ const On = ({ promises: t }) => {
|
|
|
2254
2185
|
},
|
|
2255
2186
|
repeated: {
|
|
2256
2187
|
icon: {
|
|
2257
|
-
element: /* @__PURE__ */ r.jsx(
|
|
2188
|
+
element: /* @__PURE__ */ r.jsx(b, { name: "status/iconUser" }),
|
|
2258
2189
|
bg: "bg-color-positive-light"
|
|
2259
2190
|
},
|
|
2260
2191
|
title: "Мы вас узнали",
|
|
@@ -2269,7 +2200,7 @@ const On = ({ promises: t }) => {
|
|
|
2269
2200
|
},
|
|
2270
2201
|
error: {
|
|
2271
2202
|
icon: {
|
|
2272
|
-
element: /* @__PURE__ */ r.jsx(
|
|
2203
|
+
element: /* @__PURE__ */ r.jsx(b, { name: "status/iconRetry" }),
|
|
2273
2204
|
bg: "bg-color-warning-light"
|
|
2274
2205
|
},
|
|
2275
2206
|
title: "Что-то пошло не так",
|
|
@@ -2284,7 +2215,7 @@ const On = ({ promises: t }) => {
|
|
|
2284
2215
|
},
|
|
2285
2216
|
reject: {
|
|
2286
2217
|
icon: {
|
|
2287
|
-
element: /* @__PURE__ */ r.jsx(
|
|
2218
|
+
element: /* @__PURE__ */ r.jsx(b, { name: "status/badSmile" }),
|
|
2288
2219
|
bg: "bg-color-negative-light"
|
|
2289
2220
|
},
|
|
2290
2221
|
title: "Нам очень жаль",
|
|
@@ -2297,23 +2228,23 @@ const On = ({ promises: t }) => {
|
|
|
2297
2228
|
text: "Вернуться на главную"
|
|
2298
2229
|
}
|
|
2299
2230
|
}
|
|
2300
|
-
}),
|
|
2231
|
+
}), Eo = ({ status: t, navigationFn: e }) => /* @__PURE__ */ r.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ r.jsx(F, { className: "flex flex-col justify-center", children: /* @__PURE__ */ r.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
|
|
2301
2232
|
/* @__PURE__ */ r.jsx(
|
|
2302
2233
|
"span",
|
|
2303
2234
|
{
|
|
2304
|
-
className:
|
|
2235
|
+
className: a(
|
|
2305
2236
|
"flex size-16 items-center justify-center rounded-full bg-color-positive-light",
|
|
2306
|
-
`${
|
|
2237
|
+
`${de()[t].icon.bg}`
|
|
2307
2238
|
),
|
|
2308
|
-
children:
|
|
2239
|
+
children: de()[t].icon.element
|
|
2309
2240
|
}
|
|
2310
2241
|
),
|
|
2311
2242
|
/* @__PURE__ */ r.jsxs("div", { className: "flex flex-col items-center gap-2 text-center desktop:gap-6", children: [
|
|
2312
|
-
/* @__PURE__ */ r.jsx(L, { as: "h2", children:
|
|
2313
|
-
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children:
|
|
2243
|
+
/* @__PURE__ */ r.jsx(L, { as: "h2", children: de()[t].title }),
|
|
2244
|
+
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: de()[t].description })
|
|
2314
2245
|
] }),
|
|
2315
|
-
/* @__PURE__ */ r.jsx(ge, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: e, children:
|
|
2316
|
-
] }) }) }), It = ({ breadcrumb: t, className: e, ...
|
|
2246
|
+
/* @__PURE__ */ r.jsx(ge, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: e, children: de()[t].button.text })
|
|
2247
|
+
] }) }) }), It = ({ breadcrumb: t, className: e, ...o }) => /* @__PURE__ */ r.jsx("a", { href: t.path, className: a("desk-body-regular-m", e), ...o, children: t.label }), Dn = [
|
|
2317
2248
|
{
|
|
2318
2249
|
label: "Главная",
|
|
2319
2250
|
path: "https://sovcombank.ru/apply/credit/kredit-na-kartu/"
|
|
@@ -2326,52 +2257,52 @@ const On = ({ promises: t }) => {
|
|
|
2326
2257
|
label: "В Тольятти",
|
|
2327
2258
|
disabled: !0
|
|
2328
2259
|
}
|
|
2329
|
-
],
|
|
2330
|
-
const d =
|
|
2260
|
+
], be = (t, e, o, n) => t.map((i, l) => {
|
|
2261
|
+
const d = l === n;
|
|
2331
2262
|
return /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
2332
2263
|
/* @__PURE__ */ r.jsx(
|
|
2333
2264
|
It,
|
|
2334
2265
|
{
|
|
2335
2266
|
breadcrumb: i,
|
|
2336
|
-
className:
|
|
2267
|
+
className: a(o, {
|
|
2337
2268
|
"pointer-events-none text-color-primary-disabled": d,
|
|
2338
2269
|
"text-color-blue-grey-600": i.disabled
|
|
2339
2270
|
})
|
|
2340
2271
|
}
|
|
2341
2272
|
),
|
|
2342
|
-
|
|
2273
|
+
l !== t.length - 1 && e
|
|
2343
2274
|
] }, i.label);
|
|
2344
|
-
}),
|
|
2345
|
-
const [i,
|
|
2346
|
-
|
|
2347
|
-
const { first: u, middle: m, last: h } =
|
|
2348
|
-
let c = [],
|
|
2349
|
-
return e && (c =
|
|
2350
|
-
}, [
|
|
2275
|
+
}), Rn = ({ separator: t, ellipsis: e, classes: o, breadcrumbs: n = Dn }) => {
|
|
2276
|
+
const [i, l] = A(!1), d = Oe(null);
|
|
2277
|
+
er(d, () => l(!1));
|
|
2278
|
+
const { first: u, middle: m, last: h } = se(() => {
|
|
2279
|
+
let c = [], g = [], f = [];
|
|
2280
|
+
return e && (c = n.slice(0, e), g = n.slice(e, n.length - e), f = n.slice(n.length - e)), { first: c, middle: g, last: f };
|
|
2281
|
+
}, [n, e]), p = t ?? /* @__PURE__ */ r.jsx(b, { name: "arrows/arrowRight", className: a("size-4", o == null ? void 0 : o.separator) });
|
|
2351
2282
|
return /* @__PURE__ */ r.jsx(
|
|
2352
2283
|
"div",
|
|
2353
2284
|
{
|
|
2354
|
-
className:
|
|
2285
|
+
className: a(
|
|
2355
2286
|
"flex max-w-[840px] flex-wrap items-center",
|
|
2356
2287
|
"gap-x-2 gap-y-1 py-4 text-color-primary-default",
|
|
2357
|
-
|
|
2288
|
+
o == null ? void 0 : o.root
|
|
2358
2289
|
),
|
|
2359
2290
|
children: e ? (
|
|
2360
2291
|
// if ellipsis provided, render hidden breadcrumbs
|
|
2361
|
-
/* @__PURE__ */ r.jsx(r.Fragment, { children:
|
|
2292
|
+
/* @__PURE__ */ r.jsx(r.Fragment, { children: n.length > e * 2 + 1 ? (
|
|
2362
2293
|
// if we have more than ellipsis (visible crumbs) + available hidden crumbs
|
|
2363
2294
|
// render hidden breadcrumbs
|
|
2364
2295
|
/* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2365
|
-
|
|
2296
|
+
be(u, p, o == null ? void 0 : o.breadcrumb),
|
|
2366
2297
|
p,
|
|
2367
2298
|
m.length > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2368
2299
|
/* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
|
|
2369
|
-
/* @__PURE__ */ r.jsx("button", { onClick: () =>
|
|
2300
|
+
/* @__PURE__ */ r.jsx("button", { onClick: () => l(!0), children: "..." }),
|
|
2370
2301
|
/* @__PURE__ */ r.jsx(
|
|
2371
2302
|
"ul",
|
|
2372
2303
|
{
|
|
2373
2304
|
ref: d,
|
|
2374
|
-
className:
|
|
2305
|
+
className: a(
|
|
2375
2306
|
"invisible absolute max-h-[264px] overflow-y-auto",
|
|
2376
2307
|
"w-[280px] rounded-sm bg-color-white",
|
|
2377
2308
|
"customScrollbar-y p-1 opacity-0 shadow-sm",
|
|
@@ -2383,11 +2314,11 @@ const On = ({ promises: t }) => {
|
|
|
2383
2314
|
It,
|
|
2384
2315
|
{
|
|
2385
2316
|
breadcrumb: c,
|
|
2386
|
-
className:
|
|
2317
|
+
className: a(
|
|
2387
2318
|
"desk-body-regular-l inline-block py-3",
|
|
2388
2319
|
"w-full rounded-sm bg-color-white px-2",
|
|
2389
2320
|
"text-color-dark hover:bg-color-primary-tr-hover",
|
|
2390
|
-
|
|
2321
|
+
o == null ? void 0 : o.breadcrumb
|
|
2391
2322
|
)
|
|
2392
2323
|
}
|
|
2393
2324
|
) }, c.label))
|
|
@@ -2396,28 +2327,28 @@ const On = ({ promises: t }) => {
|
|
|
2396
2327
|
] }),
|
|
2397
2328
|
p
|
|
2398
2329
|
] }),
|
|
2399
|
-
|
|
2330
|
+
be(h, p, o == null ? void 0 : o.breadcrumb, h.length - 1)
|
|
2400
2331
|
] })
|
|
2401
2332
|
) : (
|
|
2402
2333
|
// otherwise render all breadcrumbs
|
|
2403
|
-
|
|
2334
|
+
be(n, p, o == null ? void 0 : o.breadcrumb, n.length - 1)
|
|
2404
2335
|
) })
|
|
2405
2336
|
) : (
|
|
2406
2337
|
// if ellipsis doesn't provided render all breadcrumbs
|
|
2407
|
-
|
|
2338
|
+
be(n, p, o == null ? void 0 : o.breadcrumb, n.length - 1)
|
|
2408
2339
|
)
|
|
2409
2340
|
}
|
|
2410
2341
|
);
|
|
2411
2342
|
};
|
|
2412
|
-
var
|
|
2413
|
-
const
|
|
2343
|
+
var me = /* @__PURE__ */ ((t) => (t.ROOT = "root", t.CURRENT = "current", t))(me || {});
|
|
2344
|
+
const Hn = (t, e) => {
|
|
2414
2345
|
switch (e.type) {
|
|
2415
|
-
case
|
|
2346
|
+
case me.ROOT:
|
|
2416
2347
|
return {
|
|
2417
2348
|
...t,
|
|
2418
2349
|
root: e.payload
|
|
2419
2350
|
};
|
|
2420
|
-
case
|
|
2351
|
+
case me.CURRENT:
|
|
2421
2352
|
return {
|
|
2422
2353
|
...t,
|
|
2423
2354
|
current: e.payload
|
|
@@ -2425,20 +2356,20 @@ const Vn = (t, e) => {
|
|
|
2425
2356
|
default:
|
|
2426
2357
|
return t;
|
|
2427
2358
|
}
|
|
2428
|
-
},
|
|
2429
|
-
const [e,
|
|
2430
|
-
return [e,
|
|
2431
|
-
},
|
|
2432
|
-
type:
|
|
2359
|
+
}, zn = (t) => {
|
|
2360
|
+
const [e, o] = Xt(Hn, t);
|
|
2361
|
+
return [e, o];
|
|
2362
|
+
}, Ln = (t) => ({
|
|
2363
|
+
type: me.CURRENT,
|
|
2433
2364
|
payload: t
|
|
2434
|
-
}),
|
|
2435
|
-
type:
|
|
2365
|
+
}), Qn = (t) => ({
|
|
2366
|
+
type: me.ROOT,
|
|
2436
2367
|
payload: t
|
|
2437
|
-
}),
|
|
2438
|
-
var
|
|
2439
|
-
return
|
|
2368
|
+
}), Vn = ({ categories: t, ...e }) => {
|
|
2369
|
+
var o, n;
|
|
2370
|
+
return wt(
|
|
2440
2371
|
/* @__PURE__ */ r.jsx(
|
|
2441
|
-
|
|
2372
|
+
Se.div,
|
|
2442
2373
|
{
|
|
2443
2374
|
...e,
|
|
2444
2375
|
layout: !0,
|
|
@@ -2448,16 +2379,16 @@ const Vn = (t, e) => {
|
|
|
2448
2379
|
className: "absolute w-full bg-color-white",
|
|
2449
2380
|
children: /* @__PURE__ */ r.jsx("div", { className: "mx-auto flex w-full max-w-[1140px] gap-x-[56px] py-10", children: t.map((i) => {
|
|
2450
2381
|
var d;
|
|
2451
|
-
const
|
|
2382
|
+
const l = i.link ? "a" : "p";
|
|
2452
2383
|
return /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-y-6", children: [
|
|
2453
2384
|
i.title && /* @__PURE__ */ r.jsxs(
|
|
2454
|
-
|
|
2385
|
+
l,
|
|
2455
2386
|
{
|
|
2456
2387
|
href: ((d = i.link) == null ? void 0 : d.href) ?? void 0,
|
|
2457
2388
|
className: "flex items-center gap-x-1 text-16 uppercase text-color-primary-default",
|
|
2458
2389
|
children: [
|
|
2459
2390
|
i.title,
|
|
2460
|
-
/* @__PURE__ */ r.jsx(
|
|
2391
|
+
/* @__PURE__ */ r.jsx(b, { name: "arrows/arrowLink", className: "size-6" })
|
|
2461
2392
|
]
|
|
2462
2393
|
}
|
|
2463
2394
|
),
|
|
@@ -2472,16 +2403,16 @@ const Vn = (t, e) => {
|
|
|
2472
2403
|
/**
|
|
2473
2404
|
* Нужно для preview, чтобы категории рендерились в iframe
|
|
2474
2405
|
*/
|
|
2475
|
-
((
|
|
2406
|
+
((n = (o = document.body.querySelector("#modal-preview")) == null ? void 0 : o.contentDocument) == null ? void 0 : n.body) ?? document.body
|
|
2476
2407
|
);
|
|
2477
|
-
},
|
|
2408
|
+
}, $n = Yt(({ category: t, active: e, onActiveTabChange: o }, n) => {
|
|
2478
2409
|
var m, h;
|
|
2479
|
-
const i =
|
|
2410
|
+
const i = n && "current" in n ? n : null, l = (m = i == null ? void 0 : i.current) == null ? void 0 : m.getBoundingClientRect(), d = e && !S.isArrayEmpty(t.children), u = S.isArrayEmpty(t.children) ? "a" : "span";
|
|
2480
2411
|
return /* @__PURE__ */ r.jsxs(
|
|
2481
|
-
|
|
2412
|
+
Se.div,
|
|
2482
2413
|
{
|
|
2483
|
-
ref:
|
|
2484
|
-
className:
|
|
2414
|
+
ref: n,
|
|
2415
|
+
className: a(
|
|
2485
2416
|
"relative flex cursor-default items-center justify-center py-4 text-color-dark",
|
|
2486
2417
|
'after:content="" after:absolute after:bottom-0 after:left-1/2 after:h-[1px]',
|
|
2487
2418
|
"after:w-0 after:-translate-x-1/2 after:bg-color-primary-default after:duration-100",
|
|
@@ -2490,63 +2421,63 @@ const Vn = (t, e) => {
|
|
|
2490
2421
|
"after:w-full": d
|
|
2491
2422
|
}
|
|
2492
2423
|
),
|
|
2493
|
-
onMouseEnter: () =>
|
|
2494
|
-
onMouseLeave: () =>
|
|
2495
|
-
onFocus: () =>
|
|
2424
|
+
onMouseEnter: () => o(t.title),
|
|
2425
|
+
onMouseLeave: () => o(null),
|
|
2426
|
+
onFocus: () => o(t.title),
|
|
2496
2427
|
children: [
|
|
2497
2428
|
/* @__PURE__ */ r.jsx(u, { href: u === "a" ? (h = t.link) == null ? void 0 : h.href : void 0, className: "desk-body-regular-m outline-none", children: t.title }),
|
|
2498
2429
|
d && /* @__PURE__ */ r.jsx(
|
|
2499
|
-
|
|
2430
|
+
Vn,
|
|
2500
2431
|
{
|
|
2501
2432
|
categories: t.children,
|
|
2502
2433
|
style: {
|
|
2503
|
-
top:
|
|
2434
|
+
top: l ? l.top + l.height : 0
|
|
2504
2435
|
}
|
|
2505
2436
|
}
|
|
2506
2437
|
)
|
|
2507
2438
|
]
|
|
2508
2439
|
}
|
|
2509
2440
|
);
|
|
2510
|
-
}),
|
|
2511
|
-
const [e,
|
|
2512
|
-
|
|
2513
|
-
}, []), i =
|
|
2514
|
-
return /* @__PURE__ */ r.jsx(
|
|
2441
|
+
}), An = Fe($n), qn = ({ categories: t }) => {
|
|
2442
|
+
const [e, o] = A(null), n = jt((l) => {
|
|
2443
|
+
o(l);
|
|
2444
|
+
}, []), i = Oe(null);
|
|
2445
|
+
return /* @__PURE__ */ r.jsx(Kt, { mode: "sync", children: /* @__PURE__ */ r.jsxs(
|
|
2515
2446
|
"div",
|
|
2516
2447
|
{
|
|
2517
2448
|
ref: i,
|
|
2518
2449
|
id: "tabs",
|
|
2519
2450
|
className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]",
|
|
2520
2451
|
children: [
|
|
2521
|
-
t.map((
|
|
2522
|
-
|
|
2452
|
+
t.map((l) => /* @__PURE__ */ r.jsx(
|
|
2453
|
+
An,
|
|
2523
2454
|
{
|
|
2524
2455
|
ref: i,
|
|
2525
|
-
category:
|
|
2526
|
-
active: e ===
|
|
2527
|
-
onActiveTabChange:
|
|
2456
|
+
category: l,
|
|
2457
|
+
active: e === l.title,
|
|
2458
|
+
onActiveTabChange: n
|
|
2528
2459
|
},
|
|
2529
|
-
|
|
2460
|
+
l.title
|
|
2530
2461
|
)),
|
|
2531
2462
|
/* @__PURE__ */ r.jsx("div", { className: "ml-auto", children: "Личный кабинет" })
|
|
2532
2463
|
]
|
|
2533
2464
|
}
|
|
2534
2465
|
) });
|
|
2535
|
-
},
|
|
2466
|
+
}, Wn = Fe(qn), Un = ({
|
|
2536
2467
|
category: t,
|
|
2537
2468
|
selectedCategory: e,
|
|
2538
|
-
onCurrentCategoryChange:
|
|
2539
|
-
onRootCategoryChange:
|
|
2469
|
+
onCurrentCategoryChange: o,
|
|
2470
|
+
onRootCategoryChange: n,
|
|
2540
2471
|
active: i,
|
|
2541
|
-
...
|
|
2472
|
+
...l
|
|
2542
2473
|
}) => /* @__PURE__ */ r.jsxs(
|
|
2543
2474
|
"div",
|
|
2544
2475
|
{
|
|
2545
|
-
...
|
|
2476
|
+
...l,
|
|
2546
2477
|
onClick: () => {
|
|
2547
|
-
|
|
2478
|
+
o(t.children[0]), n(t);
|
|
2548
2479
|
},
|
|
2549
|
-
className:
|
|
2480
|
+
className: a("group/category relative cursor-default text-color-blue-grey-600 duration-100 hover:text-color-dark", {
|
|
2550
2481
|
"text-color-dark": i
|
|
2551
2482
|
}),
|
|
2552
2483
|
children: [
|
|
@@ -2554,7 +2485,7 @@ const Vn = (t, e) => {
|
|
|
2554
2485
|
t.children.length > 1 && /* @__PURE__ */ r.jsx(
|
|
2555
2486
|
"div",
|
|
2556
2487
|
{
|
|
2557
|
-
className:
|
|
2488
|
+
className: a(
|
|
2558
2489
|
"absolute right-0 top-full z-10 flex w-max flex-col",
|
|
2559
2490
|
"invisible bg-color-white opacity-0 shadow-sm group-hover/category:visible group-hover/category:opacity-100",
|
|
2560
2491
|
"rounded-sm p-1"
|
|
@@ -2563,9 +2494,9 @@ const Vn = (t, e) => {
|
|
|
2563
2494
|
"span",
|
|
2564
2495
|
{
|
|
2565
2496
|
onClick: (u) => {
|
|
2566
|
-
u.stopPropagation(), u.nativeEvent.stopPropagation(),
|
|
2497
|
+
u.stopPropagation(), u.nativeEvent.stopPropagation(), n(t), o(d);
|
|
2567
2498
|
},
|
|
2568
|
-
className:
|
|
2499
|
+
className: a(
|
|
2569
2500
|
"desk-body-regular-l rounded-sm px-3 py-3.5 text-color-dark duration-100 hover:bg-color-primary-tr-hover hover:text-color-dark",
|
|
2570
2501
|
{
|
|
2571
2502
|
"text-color-primary-default": e.title === d.title
|
|
@@ -2579,62 +2510,62 @@ const Vn = (t, e) => {
|
|
|
2579
2510
|
)
|
|
2580
2511
|
]
|
|
2581
2512
|
}
|
|
2582
|
-
),
|
|
2583
|
-
const [
|
|
2513
|
+
), Kn = ({ categories: t, helpers: e, phone: o }) => {
|
|
2514
|
+
const [n, i] = zn({ root: t[0].children[0], current: t[0].children[0] });
|
|
2584
2515
|
return /* @__PURE__ */ r.jsxs("div", { className: "mobile:hidden", children: [
|
|
2585
2516
|
/* @__PURE__ */ r.jsxs("div", { className: "flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)] py-4", children: [
|
|
2586
|
-
/* @__PURE__ */ r.jsx(
|
|
2587
|
-
t.map((
|
|
2588
|
-
const d =
|
|
2517
|
+
/* @__PURE__ */ r.jsx(b, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
|
|
2518
|
+
t.map((l) => {
|
|
2519
|
+
const d = n.root.title === l.title;
|
|
2589
2520
|
return /* @__PURE__ */ r.jsx(
|
|
2590
|
-
|
|
2521
|
+
Un,
|
|
2591
2522
|
{
|
|
2592
|
-
category:
|
|
2593
|
-
selectedCategory:
|
|
2594
|
-
onCurrentCategoryChange: (u) => i(
|
|
2595
|
-
onRootCategoryChange: (u) => i(
|
|
2523
|
+
category: l,
|
|
2524
|
+
selectedCategory: n.current,
|
|
2525
|
+
onCurrentCategoryChange: (u) => i(Ln(u)),
|
|
2526
|
+
onRootCategoryChange: (u) => i(Qn(u)),
|
|
2596
2527
|
active: d
|
|
2597
2528
|
},
|
|
2598
|
-
|
|
2529
|
+
l.title
|
|
2599
2530
|
);
|
|
2600
2531
|
}),
|
|
2601
2532
|
/* @__PURE__ */ r.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
|
|
2602
|
-
e.map((
|
|
2533
|
+
e.map((l) => /* @__PURE__ */ r.jsxs(
|
|
2603
2534
|
"a",
|
|
2604
2535
|
{
|
|
2605
|
-
href:
|
|
2536
|
+
href: l.link.href,
|
|
2606
2537
|
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2607
2538
|
children: [
|
|
2608
|
-
|
|
2609
|
-
|
|
2539
|
+
l.link.icon && /* @__PURE__ */ r.jsx(b, { name: l.link.icon, className: "size-4" }),
|
|
2540
|
+
l.title
|
|
2610
2541
|
]
|
|
2611
2542
|
},
|
|
2612
|
-
|
|
2543
|
+
l.title
|
|
2613
2544
|
)),
|
|
2614
2545
|
/* @__PURE__ */ r.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
|
|
2615
2546
|
/* @__PURE__ */ r.jsx(
|
|
2616
2547
|
"a",
|
|
2617
2548
|
{
|
|
2618
|
-
href: `tel:${
|
|
2549
|
+
href: `tel:${o}`,
|
|
2619
2550
|
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
2620
|
-
children:
|
|
2551
|
+
children: ke(o, "x xxx xxx xx xx")
|
|
2621
2552
|
}
|
|
2622
2553
|
)
|
|
2623
2554
|
] }),
|
|
2624
|
-
/* @__PURE__ */ r.jsx(
|
|
2555
|
+
/* @__PURE__ */ r.jsx(Wn, { categories: n.current.children })
|
|
2625
2556
|
] });
|
|
2626
|
-
},
|
|
2627
|
-
|
|
2557
|
+
}, Zn = ({ category: t }) => /* @__PURE__ */ r.jsx(
|
|
2558
|
+
le,
|
|
2628
2559
|
{
|
|
2629
2560
|
label: t.title ?? "",
|
|
2630
|
-
icon: /* @__PURE__ */ r.jsx(
|
|
2561
|
+
icon: /* @__PURE__ */ r.jsx(b, { name: "arrows/arrowRight", className: "-rotate-90" }),
|
|
2631
2562
|
classes: {
|
|
2632
2563
|
root: "w-full",
|
|
2633
2564
|
header: {
|
|
2634
2565
|
trigger: "py-2 data-[open=false]:bg-color-white",
|
|
2635
2566
|
label: "desk-body-regular-m"
|
|
2636
2567
|
},
|
|
2637
|
-
content:
|
|
2568
|
+
content: a(
|
|
2638
2569
|
"relative",
|
|
2639
2570
|
'after:content-"" after:absolute after:w-[calc(100%-32px)]',
|
|
2640
2571
|
"after:bottom-0 after:left-1/2 after:-translate-x-1/2",
|
|
@@ -2643,42 +2574,42 @@ const Vn = (t, e) => {
|
|
|
2643
2574
|
},
|
|
2644
2575
|
children: /* @__PURE__ */ r.jsx("div", { className: "flex flex-col items-start justify-center gap-y-4", children: t.children.map((e) => {
|
|
2645
2576
|
var i;
|
|
2646
|
-
const
|
|
2577
|
+
const o = !!e.link, n = o ? "a" : "p";
|
|
2647
2578
|
return /* @__PURE__ */ r.jsxs("ul", { className: "w-full list-none p-0", children: [
|
|
2648
2579
|
/* @__PURE__ */ r.jsxs(
|
|
2649
|
-
|
|
2580
|
+
n,
|
|
2650
2581
|
{
|
|
2651
|
-
href:
|
|
2582
|
+
href: o ? (i = e.link) == null ? void 0 : i.href : void 0,
|
|
2652
2583
|
className: "mb-3 flex items-center gap-x-1 text-16 text-color-primary-default",
|
|
2653
2584
|
children: [
|
|
2654
2585
|
e.title,
|
|
2655
|
-
/* @__PURE__ */ r.jsx(
|
|
2586
|
+
/* @__PURE__ */ r.jsx(b, { name: "arrows/arrowLink" })
|
|
2656
2587
|
]
|
|
2657
2588
|
}
|
|
2658
2589
|
),
|
|
2659
|
-
e.children.map((
|
|
2590
|
+
e.children.map((l) => {
|
|
2660
2591
|
var d;
|
|
2661
|
-
return /* @__PURE__ */ r.jsx("li", { className: "inline-block w-full [&:not(:last-child)]:mb-3", children: /* @__PURE__ */ r.jsx("a", { href: (d =
|
|
2592
|
+
return /* @__PURE__ */ r.jsx("li", { className: "inline-block w-full [&:not(:last-child)]:mb-3", children: /* @__PURE__ */ r.jsx("a", { href: (d = l.link) == null ? void 0 : d.href, className: "w-full", children: l.title }) }, l.title);
|
|
2662
2593
|
})
|
|
2663
2594
|
] }, e.title);
|
|
2664
2595
|
}) })
|
|
2665
2596
|
},
|
|
2666
2597
|
t.title
|
|
2667
|
-
),
|
|
2598
|
+
), Xn = (t) => t.map((e) => ({
|
|
2668
2599
|
value: e.title ?? "",
|
|
2669
2600
|
label: e.title ?? ""
|
|
2670
|
-
})),
|
|
2671
|
-
const i =
|
|
2672
|
-
|
|
2673
|
-
}, m =
|
|
2601
|
+
})), Yn = ({ categories: t, helpers: e, phone: o, ...n }) => {
|
|
2602
|
+
const i = Xn(t), [l, d] = A(i[0]), u = (h) => {
|
|
2603
|
+
S.isUndefined(h) || S.isArray(h) || d(h);
|
|
2604
|
+
}, m = se(() => {
|
|
2674
2605
|
var h;
|
|
2675
|
-
return
|
|
2676
|
-
}, [
|
|
2606
|
+
return S.isUndefined(l) || S.isArray(l) ? [] : ((h = t.find((p) => p.title === l.value)) == null ? void 0 : h.children) ?? [];
|
|
2607
|
+
}, [l, t]);
|
|
2677
2608
|
return /* @__PURE__ */ r.jsxs(
|
|
2678
|
-
|
|
2609
|
+
Se.div,
|
|
2679
2610
|
{
|
|
2680
|
-
...
|
|
2681
|
-
className:
|
|
2611
|
+
...n,
|
|
2612
|
+
className: a(
|
|
2682
2613
|
"absolute w-full max-w-[calc(636px-32px)]",
|
|
2683
2614
|
"absolute left-1/2 top-full bg-color-white p-4",
|
|
2684
2615
|
"-translate-x-1/2 overflow-x-hidden",
|
|
@@ -2687,46 +2618,46 @@ const Vn = (t, e) => {
|
|
|
2687
2618
|
initial: { opacity: 0 },
|
|
2688
2619
|
animate: { opacity: 1 },
|
|
2689
2620
|
children: [
|
|
2690
|
-
/* @__PURE__ */ r.jsx(ye.SelectBase, { label: "Категория", options: i, value:
|
|
2621
|
+
/* @__PURE__ */ r.jsx(ye.SelectBase, { label: "Категория", options: i, value: l, onChange: u }),
|
|
2691
2622
|
/* @__PURE__ */ r.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: m.map((h) => {
|
|
2692
2623
|
var p;
|
|
2693
|
-
return
|
|
2624
|
+
return S.isArrayEmpty(h.children) ? /* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsx("a", { href: (p = h.link) == null ? void 0 : p.href, className: "desk-body-regular-m inline-block w-full", children: h.title }) }, h.title) : /* @__PURE__ */ r.jsx(Zn, { category: h }, h.title);
|
|
2694
2625
|
}) }),
|
|
2695
2626
|
/* @__PURE__ */ r.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
|
|
2696
2627
|
/* @__PURE__ */ r.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
|
|
2697
2628
|
e.map((h) => {
|
|
2698
2629
|
var p, c;
|
|
2699
2630
|
return /* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsxs("a", { href: (p = h.link) == null ? void 0 : p.href, className: "flex w-full items-center gap-x-1", children: [
|
|
2700
|
-
((c = h.link) == null ? void 0 : c.icon) && /* @__PURE__ */ r.jsx(
|
|
2631
|
+
((c = h.link) == null ? void 0 : c.icon) && /* @__PURE__ */ r.jsx(b, { name: h.link.icon, className: "size-4" }),
|
|
2701
2632
|
h.title
|
|
2702
2633
|
] }) }, h.title);
|
|
2703
2634
|
}),
|
|
2704
|
-
/* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsxs("a", { href: `tel:${
|
|
2705
|
-
/* @__PURE__ */ r.jsx(
|
|
2706
|
-
|
|
2635
|
+
/* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsxs("a", { href: `tel:${o}`, className: "flex w-full items-center gap-x-1", children: [
|
|
2636
|
+
/* @__PURE__ */ r.jsx(b, { name: "communication/phone", className: "size-4" }),
|
|
2637
|
+
ke(o)
|
|
2707
2638
|
] }) })
|
|
2708
2639
|
] })
|
|
2709
2640
|
]
|
|
2710
2641
|
}
|
|
2711
2642
|
);
|
|
2712
|
-
},
|
|
2643
|
+
}, Jn = ({ categories: t, helpers: e, phone: o }) => {
|
|
2713
2644
|
var m, h, p;
|
|
2714
|
-
const
|
|
2645
|
+
const n = Oe(null), i = (m = n.current) == null ? void 0 : m.getBoundingClientRect(), [l, d] = A(!1), u = () => d(!l);
|
|
2715
2646
|
return /* @__PURE__ */ r.jsxs(
|
|
2716
2647
|
"div",
|
|
2717
2648
|
{
|
|
2718
|
-
ref:
|
|
2649
|
+
ref: n,
|
|
2719
2650
|
className: "relative flex w-full items-center justify-between border-b border-b-blue-grey-500 py-4 desktop:hidden",
|
|
2720
2651
|
children: [
|
|
2721
|
-
/* @__PURE__ */ r.jsx(
|
|
2722
|
-
/* @__PURE__ */ r.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ r.jsx(
|
|
2723
|
-
|
|
2652
|
+
/* @__PURE__ */ r.jsx(b, { name: "brandLogos/logoMain", className: "w-[130px]" }),
|
|
2653
|
+
/* @__PURE__ */ r.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ r.jsx(b, { name: l ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
|
|
2654
|
+
l && wt(
|
|
2724
2655
|
/* @__PURE__ */ r.jsx(
|
|
2725
|
-
|
|
2656
|
+
Yn,
|
|
2726
2657
|
{
|
|
2727
2658
|
categories: t,
|
|
2728
2659
|
helpers: e,
|
|
2729
|
-
phone:
|
|
2660
|
+
phone: o,
|
|
2730
2661
|
style: { top: i ? i.top + i.height : 0 }
|
|
2731
2662
|
}
|
|
2732
2663
|
),
|
|
@@ -2738,67 +2669,67 @@ const Vn = (t, e) => {
|
|
|
2738
2669
|
]
|
|
2739
2670
|
}
|
|
2740
2671
|
);
|
|
2741
|
-
},
|
|
2672
|
+
}, dt = ({ categories: t, helpers: e, phone: o, breadcrumbs: n }) => {
|
|
2742
2673
|
const { isMobile: i } = ee();
|
|
2743
|
-
return /* @__PURE__ */ r.jsx("div", { id:
|
|
2744
|
-
/* @__PURE__ */ r.jsx(
|
|
2745
|
-
/* @__PURE__ */ r.jsx(
|
|
2674
|
+
return /* @__PURE__ */ r.jsx("div", { id: y.seoHeader, "data-test-id": y.seoHeader, className: "w-full bg-color-white", children: /* @__PURE__ */ r.jsxs(F, { className: "mx-auto w-full", children: [
|
|
2675
|
+
/* @__PURE__ */ r.jsx(Jn, { categories: t.map((l) => l.children).flat(), helpers: e, phone: o }),
|
|
2676
|
+
/* @__PURE__ */ r.jsx(Kn, { categories: t, helpers: e, phone: o }),
|
|
2746
2677
|
/* @__PURE__ */ r.jsx(
|
|
2747
|
-
|
|
2678
|
+
Rn,
|
|
2748
2679
|
{
|
|
2749
2680
|
ellipsis: i ? 1 : void 0,
|
|
2750
|
-
breadcrumbs:
|
|
2751
|
-
matcher: (
|
|
2681
|
+
breadcrumbs: n,
|
|
2682
|
+
matcher: (l) => ({ label: Gt(l.label).split("-").join(" ") })
|
|
2752
2683
|
}
|
|
2753
2684
|
)
|
|
2754
2685
|
] }) });
|
|
2755
|
-
},
|
|
2686
|
+
}, Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2756
2687
|
__proto__: null,
|
|
2757
|
-
SeoHeader:
|
|
2758
|
-
default:
|
|
2759
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2760
|
-
let
|
|
2761
|
-
const
|
|
2688
|
+
SeoHeader: dt,
|
|
2689
|
+
default: dt
|
|
2690
|
+
}, Symbol.toStringTag, { value: "Module" })), _t = (t) => typeof t != "string" && "formula" in t, Tt = (t, e) => {
|
|
2691
|
+
let o = e;
|
|
2692
|
+
const n = {
|
|
2762
2693
|
style: t
|
|
2763
2694
|
};
|
|
2764
2695
|
switch (t) {
|
|
2765
2696
|
case "currency":
|
|
2766
|
-
|
|
2697
|
+
n.currency = "RUB", n.minimumFractionDigits = 0, n.maximumFractionDigits = 0;
|
|
2767
2698
|
break;
|
|
2768
2699
|
case "percent":
|
|
2769
|
-
|
|
2700
|
+
n.minimumFractionDigits = 0, n.maximumFractionDigits = 1, o = o / 100;
|
|
2770
2701
|
break;
|
|
2771
2702
|
default:
|
|
2772
2703
|
return null;
|
|
2773
2704
|
}
|
|
2774
|
-
return new Intl.NumberFormat("ru-RU",
|
|
2775
|
-
},
|
|
2705
|
+
return new Intl.NumberFormat("ru-RU", n).format(o);
|
|
2706
|
+
}, eo = (t, e) => {
|
|
2776
2707
|
switch (t) {
|
|
2777
2708
|
case "text":
|
|
2778
2709
|
return e;
|
|
2779
2710
|
default:
|
|
2780
|
-
return
|
|
2711
|
+
return Tt(t, Number(e));
|
|
2781
2712
|
}
|
|
2782
|
-
},
|
|
2783
|
-
const
|
|
2713
|
+
}, to = (t) => Object.values(t).reduce((o, n) => o.merge(De(n.fields)), kt({})), ro = (t, e) => (t.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in e)).length > 0 ? "" : t, St = (t, e) => {
|
|
2714
|
+
const o = Object.entries(e).map(([m, h]) => [m, S.isNil(h) ? "1" : h]), n = o.map(([m]) => m), i = o.map(([, m]) => m), l = ro(t, Object.fromEntries(o)), u = new Function(...n, `return ${l};`)(...i.map(Number));
|
|
2784
2715
|
return Number.isNaN(Number(u)) ? "0" : u.toString();
|
|
2785
|
-
},
|
|
2786
|
-
...
|
|
2787
|
-
value:
|
|
2788
|
-
})),
|
|
2716
|
+
}, no = (t, e) => t.map((o) => ({
|
|
2717
|
+
...o,
|
|
2718
|
+
value: _t(o.value) ? St(o.value.formula, e) : o.value
|
|
2719
|
+
})), oo = ({ subtitle: t, title: e }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: (e || t) && /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
2789
2720
|
e && /* @__PURE__ */ r.jsx(L, { as: "h3", children: e }),
|
|
2790
2721
|
t && /* @__PURE__ */ r.jsx("div", { className: "desk-body-regular-l text-color-dark", children: t })
|
|
2791
|
-
] }) }),
|
|
2722
|
+
] }) }), io = ({ rootDescription: t, rootValue: e, suffix: o }) => /* @__PURE__ */ r.jsxs("div", { className: "mb-6 flex items-center justify-between gap-6", children: [
|
|
2792
2723
|
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: t }),
|
|
2793
|
-
/* @__PURE__ */ r.jsx("div", { className: "desk-title-bold-l flex items-center gap-1 text-color-dark", children: /* @__PURE__ */ r.jsx("span", { children:
|
|
2794
|
-
] }),
|
|
2724
|
+
/* @__PURE__ */ r.jsx("div", { className: "desk-title-bold-l flex items-center gap-1 text-color-dark", children: /* @__PURE__ */ r.jsx("span", { children: Tt(o, Number(e)) }) })
|
|
2725
|
+
] }), lo = ({ hint: t, value: e, label: o, mode: n, color: i = "dark", accent: l = !1 }) => /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
2795
2726
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
2796
|
-
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children:
|
|
2727
|
+
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: o }),
|
|
2797
2728
|
t && /* @__PURE__ */ r.jsx(
|
|
2798
|
-
|
|
2729
|
+
_e,
|
|
2799
2730
|
{
|
|
2800
2731
|
withCloseBtn: !1,
|
|
2801
|
-
triggerElement: /* @__PURE__ */ r.jsx(
|
|
2732
|
+
triggerElement: /* @__PURE__ */ r.jsx(b, { className: "size-5 text-icon-blue-grey-600", name: "info/helpCircle" }),
|
|
2802
2733
|
children: /* @__PURE__ */ r.jsx("p", { children: t })
|
|
2803
2734
|
}
|
|
2804
2735
|
)
|
|
@@ -2806,106 +2737,106 @@ const Vn = (t, e) => {
|
|
|
2806
2737
|
/* @__PURE__ */ r.jsx(
|
|
2807
2738
|
"span",
|
|
2808
2739
|
{
|
|
2809
|
-
className:
|
|
2810
|
-
"[&&]:desk-title-bold-s":
|
|
2740
|
+
className: a("desk-body-medium-l text-color-dark", {
|
|
2741
|
+
"[&&]:desk-title-bold-s": l,
|
|
2811
2742
|
"text-color-primary-default": i === "blue"
|
|
2812
2743
|
}),
|
|
2813
|
-
children:
|
|
2744
|
+
children: eo(n, e)
|
|
2814
2745
|
}
|
|
2815
2746
|
)
|
|
2816
|
-
] }),
|
|
2817
|
-
const { watch: e } =
|
|
2818
|
-
return /* @__PURE__ */ r.jsx("div", { className: "my-4 flex flex-col gap-3 border-t border-solid border-blue-grey-500 pt-4", children:
|
|
2819
|
-
},
|
|
2747
|
+
] }), ao = ({ infoList: t }) => {
|
|
2748
|
+
const { watch: e } = we(), o = e(), n = no(t, o);
|
|
2749
|
+
return /* @__PURE__ */ r.jsx("div", { className: "my-4 flex flex-col gap-3 border-t border-solid border-blue-grey-500 pt-4", children: n == null ? void 0 : n.map((i) => /* @__PURE__ */ r.jsx(lo, { ...i }, i.label)) });
|
|
2750
|
+
}, uo = ({ iconName: t, text: e, hint: o }) => /* @__PURE__ */ r.jsxs("div", { className: "mb-6 flex items-center gap-2", children: [
|
|
2820
2751
|
/* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
2821
|
-
/* @__PURE__ */ r.jsx(
|
|
2752
|
+
/* @__PURE__ */ r.jsx(b, { name: t, className: "size-6 text-icon-blue-grey-800" }),
|
|
2822
2753
|
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: e })
|
|
2823
2754
|
] }),
|
|
2824
|
-
|
|
2825
|
-
] }),
|
|
2826
|
-
t && /* @__PURE__ */ r.jsx(
|
|
2827
|
-
/* @__PURE__ */ r.jsx("div", { className:
|
|
2828
|
-
|
|
2829
|
-
] }),
|
|
2755
|
+
o && /* @__PURE__ */ r.jsx(_e, { withCloseBtn: !1, triggerElement: /* @__PURE__ */ r.jsx(b, { name: "info/helpCircle", className: "size-5 text-icon-blue-grey-600" }), children: /* @__PURE__ */ r.jsx("p", { children: o }) })
|
|
2756
|
+
] }), mo = ({ assistHint: t, buttonsConfig: e, bottomDescription: o }) => /* @__PURE__ */ r.jsxs("div", { children: [
|
|
2757
|
+
t && /* @__PURE__ */ r.jsx(uo, { ...t }),
|
|
2758
|
+
/* @__PURE__ */ r.jsx("div", { className: a("flex items-center gap-4 mobile:flex-col"), children: e == null ? void 0 : e.map((n, i) => /* @__PURE__ */ r.jsx(Y, { className: "w-full", ...n }, i)) }),
|
|
2759
|
+
o && /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-m mt-4 text-color-secondary", children: o })
|
|
2760
|
+
] }), ho = ({
|
|
2830
2761
|
rootDescription: t,
|
|
2831
2762
|
bottomDescription: e,
|
|
2832
|
-
rootValue:
|
|
2833
|
-
title:
|
|
2763
|
+
rootValue: o,
|
|
2764
|
+
title: n,
|
|
2834
2765
|
subtitle: i,
|
|
2835
|
-
buttonsConfig:
|
|
2766
|
+
buttonsConfig: l,
|
|
2836
2767
|
infoList: d,
|
|
2837
2768
|
suffix: u,
|
|
2838
2769
|
assistHint: m
|
|
2839
2770
|
}) => /* @__PURE__ */ r.jsxs("div", { className: "w-[456px] rounded-md bg-color-blue-grey-100 p-8", children: [
|
|
2840
|
-
/* @__PURE__ */ r.jsx(
|
|
2841
|
-
/* @__PURE__ */ r.jsx(
|
|
2842
|
-
/* @__PURE__ */ r.jsx(
|
|
2843
|
-
/* @__PURE__ */ r.jsx(
|
|
2844
|
-
] }),
|
|
2771
|
+
/* @__PURE__ */ r.jsx(io, { suffix: u, rootValue: o, rootDescription: t }),
|
|
2772
|
+
/* @__PURE__ */ r.jsx(oo, { title: n, subtitle: i }),
|
|
2773
|
+
/* @__PURE__ */ r.jsx(ao, { infoList: d }),
|
|
2774
|
+
/* @__PURE__ */ r.jsx(mo, { assistHint: m, buttonsConfig: l, bottomDescription: e })
|
|
2775
|
+
] }), xo = 2e4, Ot = ({
|
|
2845
2776
|
slidersGroupConfig: t,
|
|
2846
2777
|
additionalSliderGroupConfig: e
|
|
2847
2778
|
}) => {
|
|
2848
|
-
const [
|
|
2849
|
-
return
|
|
2850
|
-
w >
|
|
2851
|
-
}, [
|
|
2852
|
-
Number(m) === c &&
|
|
2853
|
-
}, [
|
|
2854
|
-
sliderVisible:
|
|
2855
|
-
setSliderVisible:
|
|
2779
|
+
const [o, n] = A(!1), { watch: i, setValue: l } = we(), d = t == null ? void 0 : t.fields.find(({ args: _ }) => _.name === "sum"), { args: u } = d || {}, { max: m, name: h, defaultValue: p } = u || {}, c = i(h), { min: g, name: f } = (e == null ? void 0 : e.args) ?? {}, w = i(f), j = Number(m ?? 0) - (c ?? p);
|
|
2780
|
+
return Ae(() => {
|
|
2781
|
+
w > j && l(f, j);
|
|
2782
|
+
}, [j, w, l, c]), Ae(() => {
|
|
2783
|
+
Number(m) === c && n(!1);
|
|
2784
|
+
}, [n, m, c]), {
|
|
2785
|
+
sliderVisible: o,
|
|
2786
|
+
setSliderVisible: n,
|
|
2856
2787
|
sumMax: m,
|
|
2857
2788
|
sumName: h,
|
|
2858
2789
|
sumDefaultValue: p,
|
|
2859
2790
|
sumValue: c,
|
|
2860
|
-
additionalSliderMax:
|
|
2791
|
+
additionalSliderMax: j,
|
|
2861
2792
|
onCheckedChange: () => {
|
|
2862
|
-
|
|
2793
|
+
n((_) => !_), w <= 0 && l(f, g), Number(m) === c && (l(h ?? "", c - xo), l(f, g));
|
|
2863
2794
|
},
|
|
2864
|
-
sliderSumExist: !
|
|
2795
|
+
sliderSumExist: !S.isObjectEmpty(d == null ? void 0 : d.args),
|
|
2865
2796
|
sliderSumCorrectType: (d == null ? void 0 : d.args.componentType) === "algorithmic" || (d == null ? void 0 : d.args.componentType) === "step"
|
|
2866
2797
|
};
|
|
2867
|
-
},
|
|
2798
|
+
}, po = (t) => {
|
|
2868
2799
|
switch (t) {
|
|
2869
2800
|
case "content1":
|
|
2870
2801
|
return /* @__PURE__ */ r.jsx("div", { children: "content 1" });
|
|
2871
2802
|
case "content2":
|
|
2872
2803
|
return /* @__PURE__ */ r.jsx("div", { children: "content 2" });
|
|
2873
2804
|
}
|
|
2874
|
-
},
|
|
2875
|
-
const [i,
|
|
2805
|
+
}, co = ({ triggerText: t, modalTitle: e, description: o, contentVariant: n }) => {
|
|
2806
|
+
const [i, l] = nr(!1);
|
|
2876
2807
|
return /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-4 rounded-sm bg-color-blue-grey-100 p-4", children: [
|
|
2877
|
-
|
|
2808
|
+
o && /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: o }),
|
|
2878
2809
|
/* @__PURE__ */ r.jsx(
|
|
2879
2810
|
"button",
|
|
2880
2811
|
{
|
|
2881
|
-
onClick: () =>
|
|
2812
|
+
onClick: () => l(!0),
|
|
2882
2813
|
className: "desk-body-regular-l w-max cursor-pointer text-color-primary-default underline underline-offset-4",
|
|
2883
2814
|
children: t
|
|
2884
2815
|
}
|
|
2885
2816
|
),
|
|
2886
|
-
/* @__PURE__ */ r.jsx(
|
|
2817
|
+
/* @__PURE__ */ r.jsx(Zt, { title: e, isModalOpen: i, closeModal: () => l(!1), children: po(n) })
|
|
2887
2818
|
] });
|
|
2888
2819
|
}, J = ({ fields: t }) => {
|
|
2889
|
-
const { control: e } =
|
|
2890
|
-
return /* @__PURE__ */ r.jsx(
|
|
2891
|
-
},
|
|
2820
|
+
const { control: e } = we();
|
|
2821
|
+
return /* @__PURE__ */ r.jsx(Pe, { control: e, fields: t });
|
|
2822
|
+
}, fo = ({
|
|
2892
2823
|
slidersGroupConfig: t,
|
|
2893
2824
|
additionalSliderGroupConfig: e
|
|
2894
2825
|
}) => {
|
|
2895
|
-
const { control:
|
|
2826
|
+
const { control: o } = we(), { sliderVisible: n, additionalSliderMax: i, onCheckedChange: l } = Ot({
|
|
2896
2827
|
slidersGroupConfig: t,
|
|
2897
2828
|
additionalSliderGroupConfig: e
|
|
2898
2829
|
});
|
|
2899
|
-
return
|
|
2830
|
+
return S.isNil(e == null ? void 0 : e.args) || !(e != null && e.args) ? null : /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
2900
2831
|
/* @__PURE__ */ r.jsxs("div", { className: "inline-flex items-center gap-2", children: [
|
|
2901
|
-
/* @__PURE__ */ r.jsx(ye.SwitchBase, { checked:
|
|
2832
|
+
/* @__PURE__ */ r.jsx(ye.SwitchBase, { checked: n, onCheckedChange: l }),
|
|
2902
2833
|
/* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l", children: "Хочу получить деньги дополнительно" })
|
|
2903
2834
|
] }),
|
|
2904
|
-
|
|
2905
|
-
|
|
2835
|
+
n && /* @__PURE__ */ r.jsx(
|
|
2836
|
+
gt.SliderControl,
|
|
2906
2837
|
{
|
|
2907
2838
|
...e.args,
|
|
2908
|
-
control:
|
|
2839
|
+
control: o,
|
|
2909
2840
|
componentType: "algorithmic",
|
|
2910
2841
|
suffix: "currency",
|
|
2911
2842
|
defaultValue: e == null ? void 0 : e.args.min,
|
|
@@ -2913,14 +2844,14 @@ const Vn = (t, e) => {
|
|
|
2913
2844
|
}
|
|
2914
2845
|
)
|
|
2915
2846
|
] });
|
|
2916
|
-
},
|
|
2847
|
+
}, bo = ({ modalConfig: t, fieldsGroup: e }) => {
|
|
2917
2848
|
var i;
|
|
2918
|
-
const { sliderSumExist:
|
|
2849
|
+
const { sliderSumExist: o, sliderSumCorrectType: n } = Ot({
|
|
2919
2850
|
slidersGroupConfig: e.slidersGroupConfig,
|
|
2920
2851
|
additionalSliderGroupConfig: e.additionalSliderGroupConfig
|
|
2921
2852
|
});
|
|
2922
2853
|
return /* @__PURE__ */ r.jsxs("div", { className: "flex flex-1 flex-col gap-8", children: [
|
|
2923
|
-
(t == null ? void 0 : t.triggerText) && (t == null ? void 0 : t.contentVariant) && /* @__PURE__ */ r.jsx(
|
|
2854
|
+
(t == null ? void 0 : t.triggerText) && (t == null ? void 0 : t.contentVariant) && /* @__PURE__ */ r.jsx(co, { ...t }),
|
|
2924
2855
|
(e == null ? void 0 : e.selectGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(J, { ...e == null ? void 0 : e.selectGroupConfig }) }),
|
|
2925
2856
|
(e == null ? void 0 : e.slidersGroupConfig) && /* @__PURE__ */ r.jsx(J, { ...e == null ? void 0 : e.slidersGroupConfig }),
|
|
2926
2857
|
(e == null ? void 0 : e.radioGroupTabConfig) && /* @__PURE__ */ r.jsx(J, { ...e == null ? void 0 : e.radioGroupTabConfig }),
|
|
@@ -2928,53 +2859,53 @@ const Vn = (t, e) => {
|
|
|
2928
2859
|
(e == null ? void 0 : e.radioGroupConfig) && /* @__PURE__ */ r.jsx(J, { ...e == null ? void 0 : e.radioGroupConfig }),
|
|
2929
2860
|
(e == null ? void 0 : e.radioGroupCardConfig) && /* @__PURE__ */ r.jsx(J, { ...e == null ? void 0 : e.radioGroupCardConfig }),
|
|
2930
2861
|
(e == null ? void 0 : e.switchGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(J, { ...e == null ? void 0 : e.switchGroupConfig }) }),
|
|
2931
|
-
((i = e.additionalSliderGroupConfig) == null ? void 0 : i.args.enabled) && e.slidersGroupConfig && e.additionalSliderGroupConfig &&
|
|
2932
|
-
|
|
2862
|
+
((i = e.additionalSliderGroupConfig) == null ? void 0 : i.args.enabled) && e.slidersGroupConfig && e.additionalSliderGroupConfig && o && n && /* @__PURE__ */ r.jsx(
|
|
2863
|
+
fo,
|
|
2933
2864
|
{
|
|
2934
2865
|
slidersGroupConfig: e.slidersGroupConfig,
|
|
2935
2866
|
additionalSliderGroupConfig: e.additionalSliderGroupConfig
|
|
2936
2867
|
}
|
|
2937
2868
|
)
|
|
2938
2869
|
] });
|
|
2939
|
-
},
|
|
2870
|
+
}, go = Fe(({ calculatorTabs: t, activeCalculator: e, setActiveCalculator: o }) => /* @__PURE__ */ r.jsx("div", { className: "mb-8 flex items-center gap-4", children: t == null ? void 0 : t.map(({ name: n, label: i }) => /* @__PURE__ */ r.jsx(
|
|
2940
2871
|
"button",
|
|
2941
2872
|
{
|
|
2942
|
-
onClick: () => n
|
|
2943
|
-
className:
|
|
2873
|
+
onClick: () => o(n),
|
|
2874
|
+
className: a(
|
|
2944
2875
|
"mob-body-regular-m text-nowrap rounded-sm bg-color-blue-grey-100 px-3 py-1.5 text-color-secondary outline-1 outline-offset-4 outline-transparent desktop:desk-body-regular-l focus:outline-primary-focus desktop:px-4 desktop:py-3",
|
|
2945
|
-
{ "bg-icon-primary-default text-color-white": e ===
|
|
2876
|
+
{ "bg-icon-primary-default text-color-white": e === n }
|
|
2946
2877
|
),
|
|
2947
2878
|
children: i
|
|
2948
2879
|
},
|
|
2949
|
-
|
|
2950
|
-
)) })),
|
|
2880
|
+
n
|
|
2881
|
+
)) })), jo = ({
|
|
2951
2882
|
calculatorInfoConfig: t,
|
|
2952
2883
|
calculatorFieldsConfig: e
|
|
2953
2884
|
}) => {
|
|
2954
|
-
const
|
|
2955
|
-
schema:
|
|
2885
|
+
const o = to(e == null ? void 0 : e.fieldsGroup), n = Ee({
|
|
2886
|
+
schema: o,
|
|
2956
2887
|
mode: "onBlur",
|
|
2957
|
-
defaultValues:
|
|
2958
|
-
}), i =
|
|
2959
|
-
return /* @__PURE__ */ r.jsx(
|
|
2960
|
-
/* @__PURE__ */ r.jsx(
|
|
2961
|
-
/* @__PURE__ */ r.jsx(
|
|
2888
|
+
defaultValues: Be.getZodDefaults(o)
|
|
2889
|
+
}), i = n.watch(), { rootValue: l } = t, d = _t(l) ? St(l.formula, i) : l, u = { ...t, rootValue: d };
|
|
2890
|
+
return /* @__PURE__ */ r.jsx(tr, { ...n, children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-start gap-16", children: [
|
|
2891
|
+
/* @__PURE__ */ r.jsx(bo, { ...e }),
|
|
2892
|
+
/* @__PURE__ */ r.jsx(ho, { ...u })
|
|
2962
2893
|
] }) });
|
|
2963
|
-
},
|
|
2894
|
+
}, ut = ({ calculators: t, headline: e }) => {
|
|
2964
2895
|
var m;
|
|
2965
|
-
const
|
|
2966
|
-
return /* @__PURE__ */ r.jsx("section", { id:
|
|
2896
|
+
const o = t.length > 1, [n, i] = A(o ? (m = t[0]) == null ? void 0 : m.name : ""), l = se(() => t == null ? void 0 : t.map(({ name: h, label: p }) => ({ name: h, label: p })), [t]), d = o ? l == null ? void 0 : l.findIndex((h) => h.name === n) : 0, u = t[d];
|
|
2897
|
+
return /* @__PURE__ */ r.jsx("section", { id: y.calculator, children: /* @__PURE__ */ r.jsx(F, { children: /* @__PURE__ */ r.jsxs("div", { className: "rounded-md bg-color-white px-10 py-12 shadow-md", children: [
|
|
2967
2898
|
/* @__PURE__ */ r.jsx(L, { className: "mb-12", as: "h2", children: e }),
|
|
2968
|
-
|
|
2969
|
-
|
|
2899
|
+
o && /* @__PURE__ */ r.jsx(
|
|
2900
|
+
go,
|
|
2970
2901
|
{
|
|
2971
|
-
calculatorTabs:
|
|
2972
|
-
activeCalculator:
|
|
2902
|
+
calculatorTabs: l,
|
|
2903
|
+
activeCalculator: n,
|
|
2973
2904
|
setActiveCalculator: i
|
|
2974
2905
|
}
|
|
2975
2906
|
),
|
|
2976
2907
|
/* @__PURE__ */ r.jsx(
|
|
2977
|
-
|
|
2908
|
+
jo,
|
|
2978
2909
|
{
|
|
2979
2910
|
name: u.name,
|
|
2980
2911
|
label: u.label,
|
|
@@ -2983,37 +2914,37 @@ const Vn = (t, e) => {
|
|
|
2983
2914
|
}
|
|
2984
2915
|
)
|
|
2985
2916
|
] }) }) });
|
|
2986
|
-
},
|
|
2917
|
+
}, yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2987
2918
|
__proto__: null,
|
|
2988
|
-
Calculator:
|
|
2989
|
-
default:
|
|
2919
|
+
Calculator: ut,
|
|
2920
|
+
default: ut
|
|
2990
2921
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2991
2922
|
export {
|
|
2992
2923
|
Ie as Advantages,
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2924
|
+
Oo as AuthProvider,
|
|
2925
|
+
Ye as Banner,
|
|
2926
|
+
Xe as BannerWithSeparateImg,
|
|
2927
|
+
Ke as Benefit,
|
|
2928
|
+
Rn as Breadcrumbs,
|
|
2998
2929
|
Y as ButtonWithHandlers,
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
2930
|
+
ut as Calculator,
|
|
2931
|
+
jo as CalculatorView,
|
|
2932
|
+
lt as DynamicForm,
|
|
2933
|
+
at as DynamicFormDialog,
|
|
2934
|
+
Eo as FallbacksView,
|
|
2935
|
+
Pe as FieldMapper,
|
|
2936
|
+
Je as Footer,
|
|
2937
|
+
Fo as HTMLParser,
|
|
3007
2938
|
ie as HTMLRenderer,
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
2939
|
+
Ze as Header,
|
|
2940
|
+
ot as InterLinking,
|
|
2941
|
+
vr as KEYS_OF_WIDGET_LIST,
|
|
2942
|
+
et as LongBanner,
|
|
2943
|
+
dt as SeoHeader,
|
|
2944
|
+
Ge as Stepper,
|
|
2945
|
+
it as UsefulInfo,
|
|
2946
|
+
wr as WIDGET_LIST_MAP,
|
|
2947
|
+
On as queryClient,
|
|
2948
|
+
y as widgetIds
|
|
3018
2949
|
};
|
|
3019
2950
|
//# sourceMappingURL=widget.js.map
|