@scbt-ecom/ui 0.61.1 → 0.61.3
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/{index-CTkhWiic.js → index-CeBEX-QQ.js} +8881 -8424
- package/dist/index-CeBEX-QQ.js.map +1 -0
- package/dist/{index-DskTH4KE.js → index-DGoeevV2.js} +71 -61
- package/dist/index-DGoeevV2.js.map +1 -0
- package/dist/shared/validation/base/phone.validators.d.ts +6 -0
- package/dist/ui.js +2 -2
- package/dist/validation.js +1 -1
- package/dist/widget.js +1518 -854
- package/dist/widget.js.map +1 -1
- package/dist/widgets/dynamicForm/DynamicForm.d.ts +7 -2
- package/dist/widgets/index.d.ts +1 -0
- package/dist/widgets/queryClientProvider/QueryClientProvider.d.ts +5 -0
- package/dist/widgets/queryClientProvider/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/index-CTkhWiic.js.map +0 -1
- package/dist/index-DskTH4KE.js.map +0 -1
package/dist/widget.js
CHANGED
|
@@ -1,18 +1,680 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
var de = Object.defineProperty;
|
|
2
|
+
var Tt = (e) => {
|
|
3
|
+
throw TypeError(e);
|
|
4
|
+
};
|
|
5
|
+
var ae = (e, t, r) => t in e ? de(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
6
|
+
var ot = (e, t, r) => ae(e, typeof t != "symbol" ? t + "" : t, r), gt = (e, t, r) => t.has(e) || Tt("Cannot " + r);
|
|
7
|
+
var h = (e, t, r) => (gt(e, t, "read from private field"), r ? r.call(e) : t.get(e)), N = (e, t, r) => t.has(e) ? Tt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, i) => (gt(e, t, "write to private field"), i ? i.call(e, r) : t.set(e, r), r), z = (e, t, r) => (gt(e, t, "access private method"), r);
|
|
8
|
+
var ht = (e, t, r, i) => ({
|
|
9
|
+
set _(o) {
|
|
10
|
+
y(e, t, o, r);
|
|
11
|
+
},
|
|
12
|
+
get _() {
|
|
13
|
+
return h(e, t, i);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
import { S as Ut, w as Vt, Q as le, x as I, y as Et, z as ue, E as pe, F as It, G as P, J as he, M as me, T as xe, W as fe, X as Mt, Y as Ot, Z as ce, _ as St, $ as Ft, a0 as be, j as n, B as kt, c as M, R as _, l as Wt, r as ge, H as L, i as c, s as ct, p as je, L as ye, n as wt, A as rt, t as se, a1 as ke, q as we, U as Gt, m as vt, k as ve } from "./index-CeBEX-QQ.js";
|
|
17
|
+
import { c as a, T as s } from "./typeGuards-Bhdr9KYW.js";
|
|
18
|
+
import * as dt from "react";
|
|
19
|
+
import { useCallback as Kt, useState as W, useMemo as Nt, createElement as $t, Fragment as Ne, useEffect as Zt, useRef as Ct, useReducer as Ce, memo as Xt } from "react";
|
|
20
|
+
import { s as Te, c as bt, g as Bt, a as Ee } from "./uuid-2wKG15vy.js";
|
|
21
|
+
import { i as Jt } from "./isClient-C9aZtt2Q.js";
|
|
22
|
+
import { a as G, c as Ie, b as Me } from "./useDebounce-QgEEiWs9.js";
|
|
23
|
+
import { o as Oe } from "./utils-Cc0awqbk.js";
|
|
24
|
+
import { z as Yt, Z as Se } from "./index-DGoeevV2.js";
|
|
25
|
+
import { u as Fe } from "./useFieldsProgress-BXzIWmGP.js";
|
|
26
|
+
import { createPortal as te } from "react-dom";
|
|
27
|
+
var B, Qt, Be = (Qt = class extends Ut {
|
|
28
|
+
constructor(t = {}) {
|
|
29
|
+
super();
|
|
30
|
+
N(this, B);
|
|
31
|
+
this.config = t, y(this, B, /* @__PURE__ */ new Map());
|
|
32
|
+
}
|
|
33
|
+
build(t, r, i) {
|
|
34
|
+
const o = r.queryKey, d = r.queryHash ?? Vt(o, r);
|
|
35
|
+
let l = this.get(d);
|
|
36
|
+
return l || (l = new le({
|
|
37
|
+
client: t,
|
|
38
|
+
queryKey: o,
|
|
39
|
+
queryHash: d,
|
|
40
|
+
options: t.defaultQueryOptions(r),
|
|
41
|
+
state: i,
|
|
42
|
+
defaultOptions: t.getQueryDefaults(o)
|
|
43
|
+
}), this.add(l)), l;
|
|
44
|
+
}
|
|
45
|
+
add(t) {
|
|
46
|
+
h(this, B).has(t.queryHash) || (h(this, B).set(t.queryHash, t), this.notify({
|
|
47
|
+
type: "added",
|
|
48
|
+
query: t
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
remove(t) {
|
|
52
|
+
const r = h(this, B).get(t.queryHash);
|
|
53
|
+
r && (t.destroy(), r === t && h(this, B).delete(t.queryHash), this.notify({ type: "removed", query: t }));
|
|
54
|
+
}
|
|
55
|
+
clear() {
|
|
56
|
+
I.batch(() => {
|
|
57
|
+
this.getAll().forEach((t) => {
|
|
58
|
+
this.remove(t);
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
get(t) {
|
|
63
|
+
return h(this, B).get(t);
|
|
64
|
+
}
|
|
65
|
+
getAll() {
|
|
66
|
+
return [...h(this, B).values()];
|
|
67
|
+
}
|
|
68
|
+
find(t) {
|
|
69
|
+
const r = { exact: !0, ...t };
|
|
70
|
+
return this.getAll().find(
|
|
71
|
+
(i) => Et(r, i)
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
findAll(t = {}) {
|
|
75
|
+
const r = this.getAll();
|
|
76
|
+
return Object.keys(t).length > 0 ? r.filter((i) => Et(t, i)) : r;
|
|
77
|
+
}
|
|
78
|
+
notify(t) {
|
|
79
|
+
I.batch(() => {
|
|
80
|
+
this.listeners.forEach((r) => {
|
|
81
|
+
r(t);
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
onFocus() {
|
|
86
|
+
I.batch(() => {
|
|
87
|
+
this.getAll().forEach((t) => {
|
|
88
|
+
t.onFocus();
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
onOnline() {
|
|
93
|
+
I.batch(() => {
|
|
94
|
+
this.getAll().forEach((t) => {
|
|
95
|
+
t.onOnline();
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}, B = new WeakMap(), Qt), R, T, Z, H, q, zt, Re = (zt = class extends ue {
|
|
100
|
+
constructor(t) {
|
|
101
|
+
super();
|
|
102
|
+
N(this, H);
|
|
103
|
+
N(this, R);
|
|
104
|
+
N(this, T);
|
|
105
|
+
N(this, Z);
|
|
106
|
+
this.mutationId = t.mutationId, y(this, T, t.mutationCache), y(this, R, []), this.state = t.state || He(), this.setOptions(t.options), this.scheduleGc();
|
|
107
|
+
}
|
|
108
|
+
setOptions(t) {
|
|
109
|
+
this.options = t, this.updateGcTime(this.options.gcTime);
|
|
110
|
+
}
|
|
111
|
+
get meta() {
|
|
112
|
+
return this.options.meta;
|
|
113
|
+
}
|
|
114
|
+
addObserver(t) {
|
|
115
|
+
h(this, R).includes(t) || (h(this, R).push(t), this.clearGcTimeout(), h(this, T).notify({
|
|
116
|
+
type: "observerAdded",
|
|
117
|
+
mutation: this,
|
|
118
|
+
observer: t
|
|
119
|
+
}));
|
|
120
|
+
}
|
|
121
|
+
removeObserver(t) {
|
|
122
|
+
y(this, R, h(this, R).filter((r) => r !== t)), this.scheduleGc(), h(this, T).notify({
|
|
123
|
+
type: "observerRemoved",
|
|
124
|
+
mutation: this,
|
|
125
|
+
observer: t
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
optionalRemove() {
|
|
129
|
+
h(this, R).length || (this.state.status === "pending" ? this.scheduleGc() : h(this, T).remove(this));
|
|
130
|
+
}
|
|
131
|
+
continue() {
|
|
132
|
+
var t;
|
|
133
|
+
return ((t = h(this, Z)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
|
|
134
|
+
this.execute(this.state.variables);
|
|
135
|
+
}
|
|
136
|
+
async execute(t) {
|
|
137
|
+
var o, d, l, u, p, m, x, f, b, C, v, k, F, ut, nt, E, O, Q, K, pt;
|
|
138
|
+
y(this, Z, pe({
|
|
139
|
+
fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
|
|
140
|
+
onFail: (w, $) => {
|
|
141
|
+
z(this, H, q).call(this, { type: "failed", failureCount: w, error: $ });
|
|
142
|
+
},
|
|
143
|
+
onPause: () => {
|
|
144
|
+
z(this, H, q).call(this, { type: "pause" });
|
|
145
|
+
},
|
|
146
|
+
onContinue: () => {
|
|
147
|
+
z(this, H, q).call(this, { type: "continue" });
|
|
148
|
+
},
|
|
149
|
+
retry: this.options.retry ?? 0,
|
|
150
|
+
retryDelay: this.options.retryDelay,
|
|
151
|
+
networkMode: this.options.networkMode,
|
|
152
|
+
canRun: () => h(this, T).canRun(this)
|
|
153
|
+
}));
|
|
154
|
+
const r = this.state.status === "pending", i = !h(this, Z).canStart();
|
|
155
|
+
try {
|
|
156
|
+
if (!r) {
|
|
157
|
+
z(this, H, q).call(this, { type: "pending", variables: t, isPaused: i }), await ((d = (o = h(this, T).config).onMutate) == null ? void 0 : d.call(
|
|
158
|
+
o,
|
|
159
|
+
t,
|
|
160
|
+
this
|
|
161
|
+
));
|
|
162
|
+
const $ = await ((u = (l = this.options).onMutate) == null ? void 0 : u.call(l, t));
|
|
163
|
+
$ !== this.state.context && z(this, H, q).call(this, {
|
|
164
|
+
type: "pending",
|
|
165
|
+
context: $,
|
|
166
|
+
variables: t,
|
|
167
|
+
isPaused: i
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
const w = await h(this, Z).start();
|
|
171
|
+
return await ((m = (p = h(this, T).config).onSuccess) == null ? void 0 : m.call(
|
|
172
|
+
p,
|
|
173
|
+
w,
|
|
174
|
+
t,
|
|
175
|
+
this.state.context,
|
|
176
|
+
this
|
|
177
|
+
)), await ((f = (x = this.options).onSuccess) == null ? void 0 : f.call(x, w, t, this.state.context)), await ((C = (b = h(this, T).config).onSettled) == null ? void 0 : C.call(
|
|
178
|
+
b,
|
|
179
|
+
w,
|
|
180
|
+
null,
|
|
181
|
+
this.state.variables,
|
|
182
|
+
this.state.context,
|
|
183
|
+
this
|
|
184
|
+
)), await ((k = (v = this.options).onSettled) == null ? void 0 : k.call(v, w, null, t, this.state.context)), z(this, H, q).call(this, { type: "success", data: w }), w;
|
|
185
|
+
} catch (w) {
|
|
186
|
+
try {
|
|
187
|
+
throw await ((ut = (F = h(this, T).config).onError) == null ? void 0 : ut.call(
|
|
188
|
+
F,
|
|
189
|
+
w,
|
|
190
|
+
t,
|
|
191
|
+
this.state.context,
|
|
192
|
+
this
|
|
193
|
+
)), await ((E = (nt = this.options).onError) == null ? void 0 : E.call(
|
|
194
|
+
nt,
|
|
195
|
+
w,
|
|
196
|
+
t,
|
|
197
|
+
this.state.context
|
|
198
|
+
)), await ((Q = (O = h(this, T).config).onSettled) == null ? void 0 : Q.call(
|
|
199
|
+
O,
|
|
200
|
+
void 0,
|
|
201
|
+
w,
|
|
202
|
+
this.state.variables,
|
|
203
|
+
this.state.context,
|
|
204
|
+
this
|
|
205
|
+
)), await ((pt = (K = this.options).onSettled) == null ? void 0 : pt.call(
|
|
206
|
+
K,
|
|
207
|
+
void 0,
|
|
208
|
+
w,
|
|
209
|
+
t,
|
|
210
|
+
this.state.context
|
|
211
|
+
)), w;
|
|
212
|
+
} finally {
|
|
213
|
+
z(this, H, q).call(this, { type: "error", error: w });
|
|
214
|
+
}
|
|
215
|
+
} finally {
|
|
216
|
+
h(this, T).runNext(this);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}, R = new WeakMap(), T = new WeakMap(), Z = new WeakMap(), H = new WeakSet(), q = function(t) {
|
|
220
|
+
const r = (i) => {
|
|
221
|
+
switch (t.type) {
|
|
222
|
+
case "failed":
|
|
223
|
+
return {
|
|
224
|
+
...i,
|
|
225
|
+
failureCount: t.failureCount,
|
|
226
|
+
failureReason: t.error
|
|
227
|
+
};
|
|
228
|
+
case "pause":
|
|
229
|
+
return {
|
|
230
|
+
...i,
|
|
231
|
+
isPaused: !0
|
|
232
|
+
};
|
|
233
|
+
case "continue":
|
|
234
|
+
return {
|
|
235
|
+
...i,
|
|
236
|
+
isPaused: !1
|
|
237
|
+
};
|
|
238
|
+
case "pending":
|
|
239
|
+
return {
|
|
240
|
+
...i,
|
|
241
|
+
context: t.context,
|
|
242
|
+
data: void 0,
|
|
243
|
+
failureCount: 0,
|
|
244
|
+
failureReason: null,
|
|
245
|
+
error: null,
|
|
246
|
+
isPaused: t.isPaused,
|
|
247
|
+
status: "pending",
|
|
248
|
+
variables: t.variables,
|
|
249
|
+
submittedAt: Date.now()
|
|
250
|
+
};
|
|
251
|
+
case "success":
|
|
252
|
+
return {
|
|
253
|
+
...i,
|
|
254
|
+
data: t.data,
|
|
255
|
+
failureCount: 0,
|
|
256
|
+
failureReason: null,
|
|
257
|
+
error: null,
|
|
258
|
+
status: "success",
|
|
259
|
+
isPaused: !1
|
|
260
|
+
};
|
|
261
|
+
case "error":
|
|
262
|
+
return {
|
|
263
|
+
...i,
|
|
264
|
+
data: void 0,
|
|
265
|
+
error: t.error,
|
|
266
|
+
failureCount: i.failureCount + 1,
|
|
267
|
+
failureReason: t.error,
|
|
268
|
+
isPaused: !1,
|
|
269
|
+
status: "error"
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
this.state = r(this.state), I.batch(() => {
|
|
274
|
+
h(this, R).forEach((i) => {
|
|
275
|
+
i.onMutationUpdate(t);
|
|
276
|
+
}), h(this, T).notify({
|
|
277
|
+
mutation: this,
|
|
278
|
+
type: "updated",
|
|
279
|
+
action: t
|
|
280
|
+
});
|
|
281
|
+
});
|
|
282
|
+
}, zt);
|
|
283
|
+
function He() {
|
|
284
|
+
return {
|
|
285
|
+
context: void 0,
|
|
286
|
+
data: void 0,
|
|
287
|
+
error: null,
|
|
288
|
+
failureCount: 0,
|
|
289
|
+
failureReason: null,
|
|
290
|
+
isPaused: !1,
|
|
291
|
+
status: "idle",
|
|
292
|
+
variables: void 0,
|
|
293
|
+
submittedAt: 0
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
var D, S, lt, qt, _e = (qt = class extends Ut {
|
|
297
|
+
constructor(t = {}) {
|
|
298
|
+
super();
|
|
299
|
+
N(this, D);
|
|
300
|
+
N(this, S);
|
|
301
|
+
N(this, lt);
|
|
302
|
+
this.config = t, y(this, D, /* @__PURE__ */ new Set()), y(this, S, /* @__PURE__ */ new Map()), y(this, lt, 0);
|
|
303
|
+
}
|
|
304
|
+
build(t, r, i) {
|
|
305
|
+
const o = new Re({
|
|
306
|
+
mutationCache: this,
|
|
307
|
+
mutationId: ++ht(this, lt)._,
|
|
308
|
+
options: t.defaultMutationOptions(r),
|
|
309
|
+
state: i
|
|
310
|
+
});
|
|
311
|
+
return this.add(o), o;
|
|
312
|
+
}
|
|
313
|
+
add(t) {
|
|
314
|
+
h(this, D).add(t);
|
|
315
|
+
const r = mt(t);
|
|
316
|
+
if (typeof r == "string") {
|
|
317
|
+
const i = h(this, S).get(r);
|
|
318
|
+
i ? i.push(t) : h(this, S).set(r, [t]);
|
|
319
|
+
}
|
|
320
|
+
this.notify({ type: "added", mutation: t });
|
|
321
|
+
}
|
|
322
|
+
remove(t) {
|
|
323
|
+
if (h(this, D).delete(t)) {
|
|
324
|
+
const r = mt(t);
|
|
325
|
+
if (typeof r == "string") {
|
|
326
|
+
const i = h(this, S).get(r);
|
|
327
|
+
if (i)
|
|
328
|
+
if (i.length > 1) {
|
|
329
|
+
const o = i.indexOf(t);
|
|
330
|
+
o !== -1 && i.splice(o, 1);
|
|
331
|
+
} else i[0] === t && h(this, S).delete(r);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
this.notify({ type: "removed", mutation: t });
|
|
335
|
+
}
|
|
336
|
+
canRun(t) {
|
|
337
|
+
const r = mt(t);
|
|
338
|
+
if (typeof r == "string") {
|
|
339
|
+
const i = h(this, S).get(r), o = i == null ? void 0 : i.find(
|
|
340
|
+
(d) => d.state.status === "pending"
|
|
341
|
+
);
|
|
342
|
+
return !o || o === t;
|
|
343
|
+
} else
|
|
344
|
+
return !0;
|
|
345
|
+
}
|
|
346
|
+
runNext(t) {
|
|
347
|
+
var i;
|
|
348
|
+
const r = mt(t);
|
|
349
|
+
if (typeof r == "string") {
|
|
350
|
+
const o = (i = h(this, S).get(r)) == null ? void 0 : i.find((d) => d !== t && d.state.isPaused);
|
|
351
|
+
return (o == null ? void 0 : o.continue()) ?? Promise.resolve();
|
|
352
|
+
} else
|
|
353
|
+
return Promise.resolve();
|
|
354
|
+
}
|
|
355
|
+
clear() {
|
|
356
|
+
I.batch(() => {
|
|
357
|
+
h(this, D).forEach((t) => {
|
|
358
|
+
this.notify({ type: "removed", mutation: t });
|
|
359
|
+
}), h(this, D).clear(), h(this, S).clear();
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
getAll() {
|
|
363
|
+
return Array.from(h(this, D));
|
|
364
|
+
}
|
|
365
|
+
find(t) {
|
|
366
|
+
const r = { exact: !0, ...t };
|
|
367
|
+
return this.getAll().find(
|
|
368
|
+
(i) => It(r, i)
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
findAll(t = {}) {
|
|
372
|
+
return this.getAll().filter((r) => It(t, r));
|
|
373
|
+
}
|
|
374
|
+
notify(t) {
|
|
375
|
+
I.batch(() => {
|
|
376
|
+
this.listeners.forEach((r) => {
|
|
377
|
+
r(t);
|
|
378
|
+
});
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
resumePausedMutations() {
|
|
382
|
+
const t = this.getAll().filter((r) => r.state.isPaused);
|
|
383
|
+
return I.batch(
|
|
384
|
+
() => Promise.all(
|
|
385
|
+
t.map((r) => r.continue().catch(P))
|
|
386
|
+
)
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
}, D = new WeakMap(), S = new WeakMap(), lt = new WeakMap(), qt);
|
|
390
|
+
function mt(e) {
|
|
391
|
+
var t;
|
|
392
|
+
return (t = e.options.scope) == null ? void 0 : t.id;
|
|
393
|
+
}
|
|
394
|
+
function Rt(e) {
|
|
395
|
+
return {
|
|
396
|
+
onFetch: (t, r) => {
|
|
397
|
+
var x, f, b, C, v;
|
|
398
|
+
const i = t.options, o = (b = (f = (x = t.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : b.direction, d = ((C = t.state.data) == null ? void 0 : C.pages) || [], l = ((v = t.state.data) == null ? void 0 : v.pageParams) || [];
|
|
399
|
+
let u = { pages: [], pageParams: [] }, p = 0;
|
|
400
|
+
const m = async () => {
|
|
401
|
+
let k = !1;
|
|
402
|
+
const F = (E) => {
|
|
403
|
+
Object.defineProperty(E, "signal", {
|
|
404
|
+
enumerable: !0,
|
|
405
|
+
get: () => (t.signal.aborted ? k = !0 : t.signal.addEventListener("abort", () => {
|
|
406
|
+
k = !0;
|
|
407
|
+
}), t.signal)
|
|
408
|
+
});
|
|
409
|
+
}, ut = he(t.options, t.fetchOptions), nt = async (E, O, Q) => {
|
|
410
|
+
if (k)
|
|
411
|
+
return Promise.reject();
|
|
412
|
+
if (O == null && E.pages.length)
|
|
413
|
+
return Promise.resolve(E);
|
|
414
|
+
const K = {
|
|
415
|
+
client: t.client,
|
|
416
|
+
queryKey: t.queryKey,
|
|
417
|
+
pageParam: O,
|
|
418
|
+
direction: Q ? "backward" : "forward",
|
|
419
|
+
meta: t.options.meta
|
|
420
|
+
};
|
|
421
|
+
F(K);
|
|
422
|
+
const pt = await ut(
|
|
423
|
+
K
|
|
424
|
+
), { maxPages: w } = t.options, $ = Q ? me : xe;
|
|
425
|
+
return {
|
|
426
|
+
pages: $(E.pages, pt, w),
|
|
427
|
+
pageParams: $(E.pageParams, O, w)
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
if (o && d.length) {
|
|
431
|
+
const E = o === "backward", O = E ? Pe : Ht, Q = {
|
|
432
|
+
pages: d,
|
|
433
|
+
pageParams: l
|
|
434
|
+
}, K = O(i, Q);
|
|
435
|
+
u = await nt(Q, K, E);
|
|
436
|
+
} else {
|
|
437
|
+
const E = e ?? d.length;
|
|
438
|
+
do {
|
|
439
|
+
const O = p === 0 ? l[0] ?? i.initialPageParam : Ht(i, u);
|
|
440
|
+
if (p > 0 && O == null)
|
|
441
|
+
break;
|
|
442
|
+
u = await nt(u, O), p++;
|
|
443
|
+
} while (p < E);
|
|
444
|
+
}
|
|
445
|
+
return u;
|
|
446
|
+
};
|
|
447
|
+
t.options.persister ? t.fetchFn = () => {
|
|
448
|
+
var k, F;
|
|
449
|
+
return (F = (k = t.options).persister) == null ? void 0 : F.call(
|
|
450
|
+
k,
|
|
451
|
+
m,
|
|
452
|
+
{
|
|
453
|
+
client: t.client,
|
|
454
|
+
queryKey: t.queryKey,
|
|
455
|
+
meta: t.options.meta,
|
|
456
|
+
signal: t.signal
|
|
457
|
+
},
|
|
458
|
+
r
|
|
459
|
+
);
|
|
460
|
+
} : t.fetchFn = m;
|
|
461
|
+
}
|
|
462
|
+
};
|
|
463
|
+
}
|
|
464
|
+
function Ht(e, { pages: t, pageParams: r }) {
|
|
465
|
+
const i = t.length - 1;
|
|
466
|
+
return t.length > 0 ? e.getNextPageParam(
|
|
467
|
+
t[i],
|
|
468
|
+
t,
|
|
469
|
+
r[i],
|
|
470
|
+
r
|
|
471
|
+
) : void 0;
|
|
472
|
+
}
|
|
473
|
+
function Pe(e, { pages: t, pageParams: r }) {
|
|
474
|
+
var i;
|
|
475
|
+
return t.length > 0 ? (i = e.getPreviousPageParam) == null ? void 0 : i.call(e, t[0], t, r[0], r) : void 0;
|
|
476
|
+
}
|
|
477
|
+
var g, A, U, J, Y, V, tt, et, At, De = (At = class {
|
|
478
|
+
constructor(e = {}) {
|
|
479
|
+
N(this, g);
|
|
480
|
+
N(this, A);
|
|
481
|
+
N(this, U);
|
|
482
|
+
N(this, J);
|
|
483
|
+
N(this, Y);
|
|
484
|
+
N(this, V);
|
|
485
|
+
N(this, tt);
|
|
486
|
+
N(this, et);
|
|
487
|
+
y(this, g, e.queryCache || new Be()), y(this, A, e.mutationCache || new _e()), y(this, U, e.defaultOptions || {}), y(this, J, /* @__PURE__ */ new Map()), y(this, Y, /* @__PURE__ */ new Map()), y(this, V, 0);
|
|
488
|
+
}
|
|
489
|
+
mount() {
|
|
490
|
+
ht(this, V)._++, h(this, V) === 1 && (y(this, tt, fe.subscribe(async (e) => {
|
|
491
|
+
e && (await this.resumePausedMutations(), h(this, g).onFocus());
|
|
492
|
+
})), y(this, et, Mt.subscribe(async (e) => {
|
|
493
|
+
e && (await this.resumePausedMutations(), h(this, g).onOnline());
|
|
494
|
+
})));
|
|
495
|
+
}
|
|
496
|
+
unmount() {
|
|
497
|
+
var e, t;
|
|
498
|
+
ht(this, V)._--, h(this, V) === 0 && ((e = h(this, tt)) == null || e.call(this), y(this, tt, void 0), (t = h(this, et)) == null || t.call(this), y(this, et, void 0));
|
|
499
|
+
}
|
|
500
|
+
isFetching(e) {
|
|
501
|
+
return h(this, g).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
502
|
+
}
|
|
503
|
+
isMutating(e) {
|
|
504
|
+
return h(this, A).findAll({ ...e, status: "pending" }).length;
|
|
505
|
+
}
|
|
506
|
+
getQueryData(e) {
|
|
507
|
+
var r;
|
|
508
|
+
const t = this.defaultQueryOptions({ queryKey: e });
|
|
509
|
+
return (r = h(this, g).get(t.queryHash)) == null ? void 0 : r.state.data;
|
|
510
|
+
}
|
|
511
|
+
ensureQueryData(e) {
|
|
512
|
+
const t = this.defaultQueryOptions(e), r = h(this, g).build(this, t), i = r.state.data;
|
|
513
|
+
return i === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(Ot(t.staleTime, r)) && this.prefetchQuery(t), Promise.resolve(i));
|
|
514
|
+
}
|
|
515
|
+
getQueriesData(e) {
|
|
516
|
+
return h(this, g).findAll(e).map(({ queryKey: t, state: r }) => {
|
|
517
|
+
const i = r.data;
|
|
518
|
+
return [t, i];
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
setQueryData(e, t, r) {
|
|
522
|
+
const i = this.defaultQueryOptions({ queryKey: e }), o = h(this, g).get(
|
|
523
|
+
i.queryHash
|
|
524
|
+
), d = o == null ? void 0 : o.state.data, l = ce(t, d);
|
|
525
|
+
if (l !== void 0)
|
|
526
|
+
return h(this, g).build(this, i).setData(l, { ...r, manual: !0 });
|
|
527
|
+
}
|
|
528
|
+
setQueriesData(e, t, r) {
|
|
529
|
+
return I.batch(
|
|
530
|
+
() => h(this, g).findAll(e).map(({ queryKey: i }) => [
|
|
531
|
+
i,
|
|
532
|
+
this.setQueryData(i, t, r)
|
|
533
|
+
])
|
|
534
|
+
);
|
|
535
|
+
}
|
|
536
|
+
getQueryState(e) {
|
|
537
|
+
var r;
|
|
538
|
+
const t = this.defaultQueryOptions({ queryKey: e });
|
|
539
|
+
return (r = h(this, g).get(
|
|
540
|
+
t.queryHash
|
|
541
|
+
)) == null ? void 0 : r.state;
|
|
542
|
+
}
|
|
543
|
+
removeQueries(e) {
|
|
544
|
+
const t = h(this, g);
|
|
545
|
+
I.batch(() => {
|
|
546
|
+
t.findAll(e).forEach((r) => {
|
|
547
|
+
t.remove(r);
|
|
548
|
+
});
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
resetQueries(e, t) {
|
|
552
|
+
const r = h(this, g);
|
|
553
|
+
return I.batch(() => (r.findAll(e).forEach((i) => {
|
|
554
|
+
i.reset();
|
|
555
|
+
}), this.refetchQueries(
|
|
556
|
+
{
|
|
557
|
+
type: "active",
|
|
558
|
+
...e
|
|
559
|
+
},
|
|
560
|
+
t
|
|
561
|
+
)));
|
|
562
|
+
}
|
|
563
|
+
cancelQueries(e, t = {}) {
|
|
564
|
+
const r = { revert: !0, ...t }, i = I.batch(
|
|
565
|
+
() => h(this, g).findAll(e).map((o) => o.cancel(r))
|
|
566
|
+
);
|
|
567
|
+
return Promise.all(i).then(P).catch(P);
|
|
568
|
+
}
|
|
569
|
+
invalidateQueries(e, t = {}) {
|
|
570
|
+
return I.batch(() => (h(this, g).findAll(e).forEach((r) => {
|
|
571
|
+
r.invalidate();
|
|
572
|
+
}), (e == null ? void 0 : e.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
|
|
573
|
+
{
|
|
574
|
+
...e,
|
|
575
|
+
type: (e == null ? void 0 : e.refetchType) ?? (e == null ? void 0 : e.type) ?? "active"
|
|
576
|
+
},
|
|
577
|
+
t
|
|
578
|
+
)));
|
|
579
|
+
}
|
|
580
|
+
refetchQueries(e, t = {}) {
|
|
581
|
+
const r = {
|
|
582
|
+
...t,
|
|
583
|
+
cancelRefetch: t.cancelRefetch ?? !0
|
|
584
|
+
}, i = I.batch(
|
|
585
|
+
() => h(this, g).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
|
|
586
|
+
let d = o.fetch(void 0, r);
|
|
587
|
+
return r.throwOnError || (d = d.catch(P)), o.state.fetchStatus === "paused" ? Promise.resolve() : d;
|
|
588
|
+
})
|
|
589
|
+
);
|
|
590
|
+
return Promise.all(i).then(P);
|
|
591
|
+
}
|
|
592
|
+
fetchQuery(e) {
|
|
593
|
+
const t = this.defaultQueryOptions(e);
|
|
594
|
+
t.retry === void 0 && (t.retry = !1);
|
|
595
|
+
const r = h(this, g).build(this, t);
|
|
596
|
+
return r.isStaleByTime(
|
|
597
|
+
Ot(t.staleTime, r)
|
|
598
|
+
) ? r.fetch(t) : Promise.resolve(r.state.data);
|
|
599
|
+
}
|
|
600
|
+
prefetchQuery(e) {
|
|
601
|
+
return this.fetchQuery(e).then(P).catch(P);
|
|
602
|
+
}
|
|
603
|
+
fetchInfiniteQuery(e) {
|
|
604
|
+
return e.behavior = Rt(e.pages), this.fetchQuery(e);
|
|
605
|
+
}
|
|
606
|
+
prefetchInfiniteQuery(e) {
|
|
607
|
+
return this.fetchInfiniteQuery(e).then(P).catch(P);
|
|
608
|
+
}
|
|
609
|
+
ensureInfiniteQueryData(e) {
|
|
610
|
+
return e.behavior = Rt(e.pages), this.ensureQueryData(e);
|
|
611
|
+
}
|
|
612
|
+
resumePausedMutations() {
|
|
613
|
+
return Mt.isOnline() ? h(this, A).resumePausedMutations() : Promise.resolve();
|
|
614
|
+
}
|
|
615
|
+
getQueryCache() {
|
|
616
|
+
return h(this, g);
|
|
617
|
+
}
|
|
618
|
+
getMutationCache() {
|
|
619
|
+
return h(this, A);
|
|
620
|
+
}
|
|
621
|
+
getDefaultOptions() {
|
|
622
|
+
return h(this, U);
|
|
623
|
+
}
|
|
624
|
+
setDefaultOptions(e) {
|
|
625
|
+
y(this, U, e);
|
|
626
|
+
}
|
|
627
|
+
setQueryDefaults(e, t) {
|
|
628
|
+
h(this, J).set(St(e), {
|
|
629
|
+
queryKey: e,
|
|
630
|
+
defaultOptions: t
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
getQueryDefaults(e) {
|
|
634
|
+
const t = [...h(this, J).values()], r = {};
|
|
635
|
+
return t.forEach((i) => {
|
|
636
|
+
Ft(e, i.queryKey) && Object.assign(r, i.defaultOptions);
|
|
637
|
+
}), r;
|
|
638
|
+
}
|
|
639
|
+
setMutationDefaults(e, t) {
|
|
640
|
+
h(this, Y).set(St(e), {
|
|
641
|
+
mutationKey: e,
|
|
642
|
+
defaultOptions: t
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
getMutationDefaults(e) {
|
|
646
|
+
const t = [...h(this, Y).values()], r = {};
|
|
647
|
+
return t.forEach((i) => {
|
|
648
|
+
Ft(e, i.mutationKey) && Object.assign(r, i.defaultOptions);
|
|
649
|
+
}), r;
|
|
650
|
+
}
|
|
651
|
+
defaultQueryOptions(e) {
|
|
652
|
+
if (e._defaulted)
|
|
653
|
+
return e;
|
|
654
|
+
const t = {
|
|
655
|
+
...h(this, U).queries,
|
|
656
|
+
...this.getQueryDefaults(e.queryKey),
|
|
657
|
+
...e,
|
|
658
|
+
_defaulted: !0
|
|
659
|
+
};
|
|
660
|
+
return t.queryHash || (t.queryHash = Vt(
|
|
661
|
+
t.queryKey,
|
|
662
|
+
t
|
|
663
|
+
)), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === be && (t.enabled = !1), t;
|
|
664
|
+
}
|
|
665
|
+
defaultMutationOptions(e) {
|
|
666
|
+
return e != null && e._defaulted ? e : {
|
|
667
|
+
...h(this, U).mutations,
|
|
668
|
+
...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
|
|
669
|
+
...e,
|
|
670
|
+
_defaulted: !0
|
|
671
|
+
};
|
|
672
|
+
}
|
|
673
|
+
clear() {
|
|
674
|
+
h(this, g).clear(), h(this, A).clear();
|
|
675
|
+
}
|
|
676
|
+
}, g = new WeakMap(), A = new WeakMap(), U = new WeakMap(), J = new WeakMap(), Y = new WeakMap(), V = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), At);
|
|
677
|
+
const Le = [
|
|
16
678
|
"header",
|
|
17
679
|
"footer",
|
|
18
680
|
"interLinking",
|
|
@@ -23,26 +685,26 @@ const Ie = [
|
|
|
23
685
|
"benefit",
|
|
24
686
|
"form",
|
|
25
687
|
"seoHeader"
|
|
26
|
-
],
|
|
27
|
-
(
|
|
688
|
+
], j = Le.reduce(
|
|
689
|
+
(e, t) => (e[t] = t, e),
|
|
28
690
|
{}
|
|
29
|
-
),
|
|
30
|
-
switch (
|
|
691
|
+
), Qe = (e) => Kt(() => {
|
|
692
|
+
switch (e.handler) {
|
|
31
693
|
case "navigate": {
|
|
32
|
-
const { url:
|
|
33
|
-
|
|
694
|
+
const { url: r, target: i, rel: o } = e;
|
|
695
|
+
Jt && (window == null || window.open(r, i, o));
|
|
34
696
|
break;
|
|
35
697
|
}
|
|
36
698
|
case "scroll": {
|
|
37
|
-
const { widgetId:
|
|
38
|
-
|
|
699
|
+
const { widgetId: r } = e ?? "";
|
|
700
|
+
Te({ widgetId: r });
|
|
39
701
|
break;
|
|
40
702
|
}
|
|
41
703
|
}
|
|
42
|
-
}, [
|
|
43
|
-
const
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
-
},
|
|
704
|
+
}, [e]), X = ({ handlerOptions: e, ...t }) => {
|
|
705
|
+
const r = Qe(e);
|
|
706
|
+
return /* @__PURE__ */ n.jsx(kt, { onClick: r, ...t, children: t.children });
|
|
707
|
+
}, ze = M(
|
|
46
708
|
"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",
|
|
47
709
|
{
|
|
48
710
|
variants: {
|
|
@@ -53,43 +715,43 @@ const Ie = [
|
|
|
53
715
|
}
|
|
54
716
|
}
|
|
55
717
|
}
|
|
56
|
-
),
|
|
57
|
-
subtitle:
|
|
718
|
+
), qe = ({
|
|
719
|
+
subtitle: e,
|
|
58
720
|
title: t,
|
|
59
|
-
img:
|
|
721
|
+
img: r,
|
|
60
722
|
mobileImg: i,
|
|
61
|
-
classes:
|
|
723
|
+
classes: o,
|
|
62
724
|
withButton: d,
|
|
63
|
-
button:
|
|
64
|
-
variant:
|
|
725
|
+
button: l,
|
|
726
|
+
variant: u,
|
|
65
727
|
color: p
|
|
66
728
|
}) => {
|
|
67
|
-
const { isDesktop: m } =
|
|
68
|
-
return /* @__PURE__ */
|
|
729
|
+
const { isDesktop: m } = G();
|
|
730
|
+
return /* @__PURE__ */ n.jsxs(
|
|
69
731
|
"li",
|
|
70
732
|
{
|
|
71
733
|
style: { backgroundColor: p ?? "#f4f8fe" },
|
|
72
|
-
className:
|
|
734
|
+
className: a(ze({ variant: u }), { "pb-0": i }, { "pb-12": !i }, o == null ? void 0 : o.root),
|
|
73
735
|
children: [
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
/* @__PURE__ */
|
|
736
|
+
/* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", o == null ? void 0 : o.wrapper), children: [
|
|
737
|
+
/* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-4", o == null ? void 0 : o.textContainer), children: [
|
|
738
|
+
/* @__PURE__ */ n.jsx("div", { dangerouslySetInnerHTML: { __html: t }, className: a("desktop:desk-title-bold-s", o == null ? void 0 : o.title) }),
|
|
739
|
+
/* @__PURE__ */ n.jsx(
|
|
78
740
|
"div",
|
|
79
741
|
{
|
|
80
|
-
dangerouslySetInnerHTML: { __html:
|
|
81
|
-
className:
|
|
742
|
+
dangerouslySetInnerHTML: { __html: e },
|
|
743
|
+
className: a("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l", o == null ? void 0 : o.subtitle)
|
|
82
744
|
}
|
|
83
745
|
)
|
|
84
746
|
] }),
|
|
85
|
-
d && m && (
|
|
747
|
+
d && m && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ n.jsx(X, { intent: "primary", className: a("desktop:w-[200px]", o == null ? void 0 : o.button), size: "lg", ...l })
|
|
86
748
|
] }),
|
|
87
|
-
(i || m) &&
|
|
749
|
+
(i || m) && r && /* @__PURE__ */ n.jsx("div", { className: a("flex w-full justify-end", o == null ? void 0 : o.imgContainer), children: r && "url" in r && s.isObject(r) ? /* @__PURE__ */ n.jsx("img", { className: a("h-[246px] object-cover", o == null ? void 0 : o.img), src: r.url, alt: t }) : r })
|
|
88
750
|
]
|
|
89
751
|
},
|
|
90
752
|
t
|
|
91
753
|
);
|
|
92
|
-
},
|
|
754
|
+
}, Ae = M("grid gap-4", {
|
|
93
755
|
variants: {
|
|
94
756
|
variant: {
|
|
95
757
|
twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
|
|
@@ -97,324 +759,324 @@ const Ie = [
|
|
|
97
759
|
fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
|
|
98
760
|
}
|
|
99
761
|
}
|
|
100
|
-
}),
|
|
101
|
-
/* @__PURE__ */
|
|
762
|
+
}), kn = ({ headline: e, details: t, variant: r, classes: i }) => /* @__PURE__ */ n.jsx("section", { id: j.benefit, "data-test-id": j.benefit, className: a("pb-20", i == null ? void 0 : i.root), children: /* @__PURE__ */ n.jsxs(_, { className: i == null ? void 0 : i.container, children: [
|
|
763
|
+
/* @__PURE__ */ n.jsx(
|
|
102
764
|
"div",
|
|
103
765
|
{
|
|
104
|
-
dangerouslySetInnerHTML: { __html:
|
|
105
|
-
className:
|
|
766
|
+
dangerouslySetInnerHTML: { __html: e },
|
|
767
|
+
className: a("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", i == null ? void 0 : i.heading)
|
|
106
768
|
}
|
|
107
769
|
),
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
-
] }) }),
|
|
110
|
-
switch (
|
|
770
|
+
/* @__PURE__ */ n.jsx("ul", { className: a(Ae({ variant: r }), i == null ? void 0 : i.grid), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ n.jsx(qe, { variant: r, classes: i == null ? void 0 : i.item, ...o }, o.title)) })
|
|
771
|
+
] }) }), Ue = ({ variant: e, details: t }) => {
|
|
772
|
+
switch (e) {
|
|
111
773
|
case "withButton":
|
|
112
|
-
return /* @__PURE__ */
|
|
774
|
+
return /* @__PURE__ */ n.jsx(X, { ...t });
|
|
113
775
|
case "withPhone":
|
|
114
|
-
return /* @__PURE__ */
|
|
776
|
+
return /* @__PURE__ */ n.jsx(Wt, { classes: { root: "items-end" }, ...t, phone: bt(t.phone) });
|
|
115
777
|
default:
|
|
116
778
|
return null;
|
|
117
779
|
}
|
|
118
|
-
},
|
|
119
|
-
const { logoPath: t = "/", logoType:
|
|
120
|
-
return /* @__PURE__ */
|
|
780
|
+
}, wn = (e) => {
|
|
781
|
+
const { logoPath: t = "/", logoType: r = "main", classes: i } = e;
|
|
782
|
+
return /* @__PURE__ */ n.jsx(
|
|
121
783
|
"header",
|
|
122
784
|
{
|
|
123
|
-
id:
|
|
124
|
-
"data-test-id":
|
|
125
|
-
className:
|
|
126
|
-
children: /* @__PURE__ */
|
|
127
|
-
/* @__PURE__ */
|
|
785
|
+
id: j.header,
|
|
786
|
+
"data-test-id": j.header,
|
|
787
|
+
className: a("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", i == null ? void 0 : i.header),
|
|
788
|
+
children: /* @__PURE__ */ n.jsx(_, { className: a(i == null ? void 0 : i.container), children: /* @__PURE__ */ n.jsxs("div", { className: a("flex items-center justify-between gap-5", i == null ? void 0 : i.wrapper), children: [
|
|
789
|
+
/* @__PURE__ */ n.jsx(
|
|
128
790
|
"a",
|
|
129
791
|
{
|
|
130
792
|
href: t,
|
|
131
793
|
"aria-label": "logo",
|
|
132
794
|
target: "_blank",
|
|
133
795
|
rel: "noreferrer",
|
|
134
|
-
className:
|
|
796
|
+
className: a(
|
|
135
797
|
"flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
|
|
136
798
|
i == null ? void 0 : i.logo
|
|
137
799
|
),
|
|
138
|
-
children:
|
|
800
|
+
children: ge[r]
|
|
139
801
|
}
|
|
140
802
|
),
|
|
141
|
-
|
|
803
|
+
Ue(e)
|
|
142
804
|
] }) })
|
|
143
805
|
}
|
|
144
806
|
);
|
|
145
|
-
},
|
|
146
|
-
headTitle:
|
|
807
|
+
}, Ve = ({
|
|
808
|
+
headTitle: e,
|
|
147
809
|
subtitle: t,
|
|
148
|
-
buttonsConfig:
|
|
810
|
+
buttonsConfig: r,
|
|
149
811
|
advantages: i,
|
|
150
|
-
classes:
|
|
812
|
+
classes: o,
|
|
151
813
|
imgMobile: d,
|
|
152
|
-
imgDesktop:
|
|
153
|
-
color:
|
|
814
|
+
imgDesktop: l,
|
|
815
|
+
color: u
|
|
154
816
|
}) => {
|
|
155
|
-
var
|
|
156
|
-
const { isDesktop: p, isMobile: m } =
|
|
817
|
+
var k;
|
|
818
|
+
const { isDesktop: p, isMobile: m } = G(), { primary: x, secondary: f } = r || {}, b = d && "url" in d && s.isObject(d) ? /* @__PURE__ */ n.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: d.url }) : d, C = l && "url" in l && s.isObject(l) ? /* @__PURE__ */ n.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: l.url }) : l, v = /* @__PURE__ */ n.jsx(
|
|
157
819
|
"div",
|
|
158
820
|
{
|
|
159
|
-
className:
|
|
821
|
+
className: a(
|
|
160
822
|
"flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
|
|
161
|
-
|
|
823
|
+
o == null ? void 0 : o.advantageContainer
|
|
162
824
|
),
|
|
163
|
-
children: (i == null ? void 0 : i.details) && ((
|
|
825
|
+
children: (i == null ? void 0 : i.details) && ((k = i == null ? void 0 : i.details) == null ? void 0 : k.items.length) > 0 && /* @__PURE__ */ n.jsx(ee, { ...i })
|
|
164
826
|
}
|
|
165
827
|
);
|
|
166
|
-
return /* @__PURE__ */
|
|
167
|
-
/* @__PURE__ */
|
|
828
|
+
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
829
|
+
/* @__PURE__ */ n.jsxs(
|
|
168
830
|
"section",
|
|
169
831
|
{
|
|
170
|
-
id:
|
|
171
|
-
"data-test-id":
|
|
172
|
-
style: { backgroundColor:
|
|
173
|
-
className:
|
|
832
|
+
id: j.banner,
|
|
833
|
+
"data-test-id": j.banner,
|
|
834
|
+
style: { backgroundColor: u ?? "#d9edff" },
|
|
835
|
+
className: a("relative h-[552px] desktop:h-[456px]", o == null ? void 0 : o.root),
|
|
174
836
|
children: [
|
|
175
|
-
/* @__PURE__ */
|
|
176
|
-
/* @__PURE__ */
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
/* @__PURE__ */
|
|
179
|
-
/* @__PURE__ */
|
|
837
|
+
/* @__PURE__ */ n.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: m ? b : C }),
|
|
838
|
+
/* @__PURE__ */ n.jsxs(_, { className: a("h-full", o == null ? void 0 : o.container), children: [
|
|
839
|
+
/* @__PURE__ */ n.jsx("div", { className: a("flex h-full", o == null ? void 0 : o.wrapper), children: /* @__PURE__ */ n.jsxs("div", { className: a("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", o == null ? void 0 : o.textBlock), children: [
|
|
840
|
+
/* @__PURE__ */ n.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
|
|
841
|
+
/* @__PURE__ */ n.jsx(
|
|
180
842
|
"div",
|
|
181
843
|
{
|
|
182
|
-
dangerouslySetInnerHTML: { __html:
|
|
183
|
-
className:
|
|
844
|
+
dangerouslySetInnerHTML: { __html: e },
|
|
845
|
+
className: a("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", o == null ? void 0 : o.title)
|
|
184
846
|
}
|
|
185
847
|
),
|
|
186
|
-
/* @__PURE__ */
|
|
848
|
+
/* @__PURE__ */ n.jsx(
|
|
187
849
|
"div",
|
|
188
850
|
{
|
|
189
851
|
dangerouslySetInnerHTML: { __html: t },
|
|
190
|
-
className:
|
|
852
|
+
className: a("desk-body-regular-l text-color-dark", o == null ? void 0 : o.subtitle)
|
|
191
853
|
}
|
|
192
854
|
)
|
|
193
855
|
] }),
|
|
194
|
-
/* @__PURE__ */
|
|
856
|
+
/* @__PURE__ */ n.jsxs(
|
|
195
857
|
"div",
|
|
196
858
|
{
|
|
197
|
-
className:
|
|
859
|
+
className: a(
|
|
198
860
|
"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",
|
|
199
861
|
{ "flex items-center gap-4": f == null ? void 0 : f.enabled },
|
|
200
|
-
|
|
862
|
+
o == null ? void 0 : o.group
|
|
201
863
|
),
|
|
202
864
|
children: [
|
|
203
|
-
|
|
204
|
-
|
|
865
|
+
x.enabled && /* @__PURE__ */ n.jsx(
|
|
866
|
+
X,
|
|
205
867
|
{
|
|
206
|
-
className:
|
|
868
|
+
className: a("w-full desktop:max-w-[216px]", o == null ? void 0 : o.primary),
|
|
207
869
|
size: "lg",
|
|
208
870
|
intent: "primary",
|
|
209
|
-
...
|
|
871
|
+
...x.buttonContent
|
|
210
872
|
}
|
|
211
873
|
),
|
|
212
|
-
(f == null ? void 0 : f.enabled) && /* @__PURE__ */
|
|
213
|
-
|
|
874
|
+
(f == null ? void 0 : f.enabled) && /* @__PURE__ */ n.jsx(
|
|
875
|
+
X,
|
|
214
876
|
{
|
|
215
877
|
intent: "secondary",
|
|
216
|
-
className:
|
|
217
|
-
...
|
|
878
|
+
className: a("w-full desktop:max-w-[216px]", o == null ? void 0 : o.secondary),
|
|
879
|
+
...x.buttonContent
|
|
218
880
|
}
|
|
219
881
|
)
|
|
220
882
|
]
|
|
221
883
|
}
|
|
222
884
|
)
|
|
223
885
|
] }) }),
|
|
224
|
-
p && (i == null ? void 0 : i.enabled) &&
|
|
886
|
+
p && (i == null ? void 0 : i.enabled) && v
|
|
225
887
|
] })
|
|
226
888
|
]
|
|
227
889
|
}
|
|
228
890
|
),
|
|
229
|
-
m && (i == null ? void 0 : i.enabled) &&
|
|
891
|
+
m && (i == null ? void 0 : i.enabled) && v
|
|
230
892
|
] });
|
|
231
|
-
},
|
|
232
|
-
headTitle:
|
|
893
|
+
}, _t = ({
|
|
894
|
+
headTitle: e,
|
|
233
895
|
subtitle: t,
|
|
234
|
-
buttonsConfig:
|
|
896
|
+
buttonsConfig: r,
|
|
235
897
|
advantages: i,
|
|
236
|
-
classes:
|
|
898
|
+
classes: o,
|
|
237
899
|
imgMobile: d,
|
|
238
|
-
imgDesktop:
|
|
239
|
-
color:
|
|
900
|
+
imgDesktop: l,
|
|
901
|
+
color: u
|
|
240
902
|
}) => {
|
|
241
|
-
var
|
|
242
|
-
const { isDesktop: p, isMobile: m } =
|
|
903
|
+
var k;
|
|
904
|
+
const { isDesktop: p, isMobile: m } = G(), { primary: x, secondary: f } = r || {}, b = d && "url" in d && s.isObject(d) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: d.url }) : d, C = l && "url" in l && s.isObject(l) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: l.url }) : l, v = /* @__PURE__ */ n.jsx(
|
|
243
905
|
"div",
|
|
244
906
|
{
|
|
245
|
-
className:
|
|
907
|
+
className: a(
|
|
246
908
|
"flex items-center justify-center rounded-md bg-color-blue-grey-100 p-4 pb-8 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:p-0",
|
|
247
|
-
|
|
909
|
+
o == null ? void 0 : o.advantageContainer
|
|
248
910
|
),
|
|
249
|
-
children: (i == null ? void 0 : i.details) && ((
|
|
911
|
+
children: (i == null ? void 0 : i.details) && ((k = i == null ? void 0 : i.details) == null ? void 0 : k.items.length) > 0 && /* @__PURE__ */ n.jsx(ee, { ...i })
|
|
250
912
|
}
|
|
251
913
|
);
|
|
252
|
-
return /* @__PURE__ */
|
|
253
|
-
/* @__PURE__ */
|
|
914
|
+
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
915
|
+
/* @__PURE__ */ n.jsx(
|
|
254
916
|
"section",
|
|
255
917
|
{
|
|
256
|
-
id:
|
|
257
|
-
"data-test-id":
|
|
258
|
-
style: { backgroundColor:
|
|
259
|
-
className:
|
|
260
|
-
children: /* @__PURE__ */
|
|
261
|
-
/* @__PURE__ */
|
|
262
|
-
/* @__PURE__ */
|
|
263
|
-
/* @__PURE__ */
|
|
264
|
-
/* @__PURE__ */
|
|
918
|
+
id: j.banner,
|
|
919
|
+
"data-test-id": j.banner,
|
|
920
|
+
style: { backgroundColor: u ?? "#d9edff" },
|
|
921
|
+
className: a("bg-banner-skyblue-300 desktop:h-[456px]", o == null ? void 0 : o.root),
|
|
922
|
+
children: /* @__PURE__ */ n.jsxs(_, { className: a("relative", o == null ? void 0 : o.container), children: [
|
|
923
|
+
/* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col desktop:flex-row desktop:justify-between", o == null ? void 0 : o.wrapper), children: [
|
|
924
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
|
|
925
|
+
/* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-4 pt-6 desktop:pt-0", o == null ? void 0 : o.textBlock), children: [
|
|
926
|
+
/* @__PURE__ */ n.jsx(
|
|
265
927
|
"div",
|
|
266
928
|
{
|
|
267
|
-
dangerouslySetInnerHTML: { __html:
|
|
268
|
-
className:
|
|
929
|
+
dangerouslySetInnerHTML: { __html: e },
|
|
930
|
+
className: a("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", o == null ? void 0 : o.title)
|
|
269
931
|
}
|
|
270
932
|
),
|
|
271
|
-
/* @__PURE__ */
|
|
933
|
+
/* @__PURE__ */ n.jsx(
|
|
272
934
|
"div",
|
|
273
935
|
{
|
|
274
936
|
dangerouslySetInnerHTML: { __html: t },
|
|
275
|
-
className:
|
|
937
|
+
className: a("desk-body-regular-l text-color-dark", o == null ? void 0 : o.subtitle)
|
|
276
938
|
}
|
|
277
939
|
)
|
|
278
940
|
] }),
|
|
279
|
-
/* @__PURE__ */
|
|
941
|
+
/* @__PURE__ */ n.jsxs(
|
|
280
942
|
"div",
|
|
281
943
|
{
|
|
282
|
-
className:
|
|
944
|
+
className: a(
|
|
283
945
|
"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",
|
|
284
946
|
{ "flex items-center gap-4": f == null ? void 0 : f.enabled },
|
|
285
|
-
|
|
947
|
+
o == null ? void 0 : o.group
|
|
286
948
|
),
|
|
287
949
|
children: [
|
|
288
|
-
|
|
289
|
-
|
|
950
|
+
x.enabled && /* @__PURE__ */ n.jsx(
|
|
951
|
+
X,
|
|
290
952
|
{
|
|
291
|
-
className:
|
|
953
|
+
className: a("w-full desktop:max-w-[216px]", o == null ? void 0 : o.primary),
|
|
292
954
|
size: "lg",
|
|
293
955
|
intent: "primary",
|
|
294
|
-
...
|
|
956
|
+
...x.buttonContent
|
|
295
957
|
}
|
|
296
958
|
),
|
|
297
|
-
(f == null ? void 0 : f.enabled) && /* @__PURE__ */
|
|
298
|
-
|
|
959
|
+
(f == null ? void 0 : f.enabled) && /* @__PURE__ */ n.jsx(
|
|
960
|
+
X,
|
|
299
961
|
{
|
|
300
962
|
intent: "secondary",
|
|
301
|
-
className:
|
|
302
|
-
...
|
|
963
|
+
className: a("w-full desktop:max-w-[216px]", o == null ? void 0 : o.secondary),
|
|
964
|
+
...x.buttonContent
|
|
303
965
|
}
|
|
304
966
|
)
|
|
305
967
|
]
|
|
306
968
|
}
|
|
307
969
|
)
|
|
308
970
|
] }),
|
|
309
|
-
/* @__PURE__ */
|
|
971
|
+
/* @__PURE__ */ n.jsx("div", { className: a("flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]", o == null ? void 0 : o.imageContainer), children: m ? b : C })
|
|
310
972
|
] }),
|
|
311
|
-
p && (i == null ? void 0 : i.enabled) &&
|
|
973
|
+
p && (i == null ? void 0 : i.enabled) && v
|
|
312
974
|
] })
|
|
313
975
|
}
|
|
314
976
|
),
|
|
315
|
-
m && (i == null ? void 0 : i.enabled) &&
|
|
977
|
+
m && (i == null ? void 0 : i.enabled) && v
|
|
316
978
|
] });
|
|
317
|
-
},
|
|
318
|
-
switch (
|
|
979
|
+
}, vn = ({ variant: e, ...t }) => {
|
|
980
|
+
switch (e) {
|
|
319
981
|
case "separateImg":
|
|
320
|
-
return /* @__PURE__ */
|
|
982
|
+
return /* @__PURE__ */ n.jsx(_t, { ...t });
|
|
321
983
|
case "fullImg":
|
|
322
|
-
return /* @__PURE__ */
|
|
984
|
+
return /* @__PURE__ */ n.jsx(Ve, { ...t });
|
|
323
985
|
default:
|
|
324
|
-
return /* @__PURE__ */
|
|
986
|
+
return /* @__PURE__ */ n.jsx(_t, { ...t });
|
|
325
987
|
}
|
|
326
|
-
},
|
|
327
|
-
const { variant:
|
|
328
|
-
return /* @__PURE__ */
|
|
988
|
+
}, ee = ({ details: e, classes: t }) => {
|
|
989
|
+
const { variant: r, items: i } = e ?? {};
|
|
990
|
+
return /* @__PURE__ */ n.jsx(
|
|
329
991
|
"div",
|
|
330
992
|
{
|
|
331
993
|
id: "advantages",
|
|
332
|
-
className:
|
|
994
|
+
className: a(
|
|
333
995
|
"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",
|
|
334
|
-
{ "desktop:max-w-[860px]":
|
|
335
|
-
{ "desktop:max-w-[1140px]":
|
|
996
|
+
{ "desktop:max-w-[860px]": r === "threeCards" },
|
|
997
|
+
{ "desktop:max-w-[1140px]": r === "fourCards" },
|
|
336
998
|
t == null ? void 0 : t.root
|
|
337
999
|
),
|
|
338
|
-
children: i == null ? void 0 : i.map(({ title:
|
|
1000
|
+
children: i == null ? void 0 : i.map(({ title: o, description: d }) => /* @__PURE__ */ n.jsxs(
|
|
339
1001
|
"div",
|
|
340
1002
|
{
|
|
341
|
-
className:
|
|
1003
|
+
className: a(
|
|
342
1004
|
'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',
|
|
343
1005
|
t == null ? void 0 : t.item
|
|
344
1006
|
),
|
|
345
1007
|
children: [
|
|
346
|
-
/* @__PURE__ */
|
|
347
|
-
/* @__PURE__ */
|
|
1008
|
+
/* @__PURE__ */ n.jsx(L, { as: "h4", className: a("text-color-dark", t == null ? void 0 : t.title), children: o }),
|
|
1009
|
+
/* @__PURE__ */ n.jsx("p", { className: a("desk-body-regular-l text-color-secondary", t == null ? void 0 : t.description), children: d })
|
|
348
1010
|
]
|
|
349
1011
|
},
|
|
350
|
-
|
|
1012
|
+
o
|
|
351
1013
|
))
|
|
352
1014
|
}
|
|
353
1015
|
);
|
|
354
|
-
},
|
|
1016
|
+
}, We = ({ socialsLinks: e, classes: t }) => /* @__PURE__ */ n.jsx("div", { className: a("mt-4 flex items-center gap-2 desktop:mt-6", t == null ? void 0 : t.socialRoot), children: e == null ? void 0 : e.map(({ iconName: r, href: i }) => /* @__PURE__ */ n.jsx(
|
|
355
1017
|
"a",
|
|
356
1018
|
{
|
|
357
|
-
className:
|
|
1019
|
+
className: a("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", t == null ? void 0 : t.socialLink),
|
|
358
1020
|
href: i,
|
|
359
|
-
"aria-label":
|
|
360
|
-
children: /* @__PURE__ */
|
|
1021
|
+
"aria-label": r.replace("social/", ""),
|
|
1022
|
+
children: /* @__PURE__ */ n.jsx(c, { name: r, className: a("h-full w-full text-icon-white", t == null ? void 0 : t.socialIcon) })
|
|
361
1023
|
},
|
|
362
1024
|
i
|
|
363
|
-
)) }),
|
|
364
|
-
|
|
1025
|
+
)) }), Ge = ({ phones: e, classes: t }) => /* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-4 desktop:items-end", t == null ? void 0 : t.phonesRoot), children: e == null ? void 0 : e.map(({ phone: r, text: i }) => /* @__PURE__ */ n.jsx(
|
|
1026
|
+
Wt,
|
|
365
1027
|
{
|
|
366
|
-
phone:
|
|
1028
|
+
phone: bt(r),
|
|
367
1029
|
text: i,
|
|
368
1030
|
classes: {
|
|
369
|
-
root:
|
|
370
|
-
text:
|
|
371
|
-
link:
|
|
1031
|
+
root: a(t == null ? void 0 : t.phoneWrapper),
|
|
1032
|
+
text: a("text-color-footer", t == null ? void 0 : t.phoneText),
|
|
1033
|
+
link: a("text-color-white mobile:m-0", t == null ? void 0 : t.phoneLink)
|
|
372
1034
|
}
|
|
373
1035
|
},
|
|
374
|
-
|
|
375
|
-
)) }),
|
|
1036
|
+
r
|
|
1037
|
+
)) }), Ke = ({ classes: e, details: t }) => /* @__PURE__ */ n.jsx(
|
|
376
1038
|
"div",
|
|
377
1039
|
{
|
|
378
|
-
className:
|
|
1040
|
+
className: a(
|
|
379
1041
|
"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",
|
|
380
|
-
|
|
1042
|
+
e == null ? void 0 : e.navRoot
|
|
381
1043
|
),
|
|
382
1044
|
children: t == null ? void 0 : t.map(
|
|
383
|
-
({ column:
|
|
384
|
-
/* @__PURE__ */
|
|
385
|
-
/* @__PURE__ */
|
|
386
|
-
|
|
1045
|
+
({ column: r }) => r == null ? void 0 : r.map(({ groupLabel: i, links: o }) => /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-4", e == null ? void 0 : e.navGroup), children: [
|
|
1046
|
+
/* @__PURE__ */ n.jsx("div", { className: a("desk-body-medium-l text-color-white", e == null ? void 0 : e.navLabel), children: i }),
|
|
1047
|
+
/* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-1", e == null ? void 0 : e.navLinks), children: o == null ? void 0 : o.map(({ path: d, label: l }) => /* @__PURE__ */ n.jsx(
|
|
1048
|
+
ct,
|
|
387
1049
|
{
|
|
388
1050
|
href: d,
|
|
389
|
-
"aria-label":
|
|
1051
|
+
"aria-label": l,
|
|
390
1052
|
intent: "white",
|
|
391
1053
|
classes: {
|
|
392
|
-
link:
|
|
393
|
-
icon:
|
|
1054
|
+
link: e == null ? void 0 : e.navLink,
|
|
1055
|
+
icon: e == null ? void 0 : e.navLinkIcon
|
|
394
1056
|
},
|
|
395
|
-
children:
|
|
1057
|
+
children: l
|
|
396
1058
|
},
|
|
397
|
-
|
|
1059
|
+
l
|
|
398
1060
|
)) })
|
|
399
1061
|
] }, i))
|
|
400
1062
|
)
|
|
401
1063
|
}
|
|
402
|
-
),
|
|
1064
|
+
), $e = ({ text: e, classes: t }) => /* @__PURE__ */ n.jsx(
|
|
403
1065
|
"div",
|
|
404
1066
|
{
|
|
405
|
-
className:
|
|
406
|
-
dangerouslySetInnerHTML: { __html:
|
|
1067
|
+
className: a("desk-body-regular-m text-color-footer", t == null ? void 0 : t.copyRight),
|
|
1068
|
+
dangerouslySetInnerHTML: { __html: e }
|
|
407
1069
|
}
|
|
408
|
-
),
|
|
1070
|
+
), Ze = ({ classes: e }) => /* @__PURE__ */ n.jsx(
|
|
409
1071
|
"a",
|
|
410
1072
|
{
|
|
411
1073
|
"aria-label": "logo",
|
|
412
1074
|
href: "https://sovcombank.ru/",
|
|
413
|
-
className:
|
|
414
|
-
children: /* @__PURE__ */
|
|
1075
|
+
className: a("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", e == null ? void 0 : e.footerLogo),
|
|
1076
|
+
children: /* @__PURE__ */ n.jsx(c, { name: "brandLogos/logoWhite", className: a("size-full", e == null ? void 0 : e.footerLogoIcon) })
|
|
415
1077
|
}
|
|
416
|
-
),
|
|
417
|
-
|
|
1078
|
+
), Xe = ({ classes: e }) => /* @__PURE__ */ n.jsx(
|
|
1079
|
+
ct,
|
|
418
1080
|
{
|
|
419
1081
|
intent: "white",
|
|
420
1082
|
href: "https://sovcombank.ru/site-map",
|
|
@@ -422,32 +1084,32 @@ const Ie = [
|
|
|
422
1084
|
"aria-label": "site-map",
|
|
423
1085
|
rel: "noreferrer",
|
|
424
1086
|
classes: {
|
|
425
|
-
link:
|
|
426
|
-
icon:
|
|
1087
|
+
link: a("mobile:mt-6", e == null ? void 0 : e.siteMapLink),
|
|
1088
|
+
icon: e == null ? void 0 : e.siteMapLinkIcon
|
|
427
1089
|
},
|
|
428
1090
|
children: "Карта сайта"
|
|
429
1091
|
}
|
|
430
|
-
),
|
|
431
|
-
const [
|
|
432
|
-
return
|
|
433
|
-
const
|
|
434
|
-
|
|
435
|
-
}, []), /* @__PURE__ */
|
|
436
|
-
/* @__PURE__ */
|
|
1092
|
+
), Je = ({ text: e, classes: t }) => {
|
|
1093
|
+
const [r, i] = dt.useState(!1), [o, d] = dt.useState(!1), l = dt.useRef(null);
|
|
1094
|
+
return dt.useEffect(() => {
|
|
1095
|
+
const u = l.current;
|
|
1096
|
+
u && d(u.scrollHeight > u.clientHeight);
|
|
1097
|
+
}, []), /* @__PURE__ */ n.jsxs("div", { className: a("mt-8 flex flex-col gap-4", t == null ? void 0 : t.ligalRoot), children: [
|
|
1098
|
+
/* @__PURE__ */ n.jsx(
|
|
437
1099
|
"div",
|
|
438
1100
|
{
|
|
439
|
-
ref:
|
|
440
|
-
className:
|
|
441
|
-
dangerouslySetInnerHTML: { __html:
|
|
1101
|
+
ref: l,
|
|
1102
|
+
className: a("desk-body-regular-m text-color-footer", { "line-clamp-3": !r }, t == null ? void 0 : t.ligalText),
|
|
1103
|
+
dangerouslySetInnerHTML: { __html: e }
|
|
442
1104
|
}
|
|
443
1105
|
),
|
|
444
|
-
|
|
1106
|
+
o && /* @__PURE__ */ n.jsx(
|
|
445
1107
|
"div",
|
|
446
1108
|
{
|
|
447
1109
|
tabIndex: 0,
|
|
448
1110
|
role: "button",
|
|
449
|
-
onClick: () => i((
|
|
450
|
-
className:
|
|
1111
|
+
onClick: () => i((u) => !u),
|
|
1112
|
+
className: a(
|
|
451
1113
|
"desk-body-regular-l w-max cursor-pointer font-medium text-color-footer transition-colors hover:text-color-white",
|
|
452
1114
|
t == null ? void 0 : t.ligalButton
|
|
453
1115
|
),
|
|
@@ -455,100 +1117,100 @@ const Ie = [
|
|
|
455
1117
|
}
|
|
456
1118
|
)
|
|
457
1119
|
] });
|
|
458
|
-
},
|
|
459
|
-
socialsLinks:
|
|
1120
|
+
}, Nn = ({
|
|
1121
|
+
socialsLinks: e,
|
|
460
1122
|
phones: t,
|
|
461
|
-
ligal:
|
|
1123
|
+
ligal: r,
|
|
462
1124
|
copyright: i,
|
|
463
|
-
classes:
|
|
1125
|
+
classes: o,
|
|
464
1126
|
details: d,
|
|
465
|
-
siteMap:
|
|
466
|
-
}) => /* @__PURE__ */
|
|
1127
|
+
siteMap: l = !0
|
|
1128
|
+
}) => /* @__PURE__ */ n.jsx(
|
|
467
1129
|
"footer",
|
|
468
1130
|
{
|
|
469
|
-
id:
|
|
470
|
-
"data-test-id":
|
|
471
|
-
className:
|
|
472
|
-
children: /* @__PURE__ */
|
|
473
|
-
/* @__PURE__ */
|
|
1131
|
+
id: j.footer,
|
|
1132
|
+
"data-test-id": j.footer,
|
|
1133
|
+
className: a("w-full bg-color-footer py-8 desktop:py-10", o == null ? void 0 : o.root),
|
|
1134
|
+
children: /* @__PURE__ */ n.jsx(_, { className: a(o == null ? void 0 : o.footerContainer), children: /* @__PURE__ */ n.jsxs("div", { className: a("mobile:pb-[176px]", o == null ? void 0 : o.footerWrapper), children: [
|
|
1135
|
+
/* @__PURE__ */ n.jsxs(
|
|
474
1136
|
"div",
|
|
475
1137
|
{
|
|
476
|
-
className:
|
|
1138
|
+
className: a(
|
|
477
1139
|
"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",
|
|
478
|
-
|
|
1140
|
+
o == null ? void 0 : o.footerHead
|
|
479
1141
|
),
|
|
480
1142
|
children: [
|
|
481
|
-
/* @__PURE__ */
|
|
482
|
-
/* @__PURE__ */
|
|
483
|
-
|
|
1143
|
+
/* @__PURE__ */ n.jsxs("div", { className: a(o == null ? void 0 : o.footerSocialBlock), children: [
|
|
1144
|
+
/* @__PURE__ */ n.jsx(Ze, { classes: o == null ? void 0 : o.footerLogo }),
|
|
1145
|
+
e.enabled && /* @__PURE__ */ n.jsx(We, { socialsLinks: e.links, classes: o == null ? void 0 : o.socialLinks })
|
|
484
1146
|
] }),
|
|
485
|
-
t.enabled && /* @__PURE__ */
|
|
1147
|
+
t.enabled && /* @__PURE__ */ n.jsx(Ge, { phones: t.items, classes: o == null ? void 0 : o.phonesBlock })
|
|
486
1148
|
]
|
|
487
1149
|
}
|
|
488
1150
|
),
|
|
489
|
-
!
|
|
490
|
-
|
|
491
|
-
/* @__PURE__ */
|
|
1151
|
+
!s.isArrayEmpty(d) && /* @__PURE__ */ n.jsx(Ke, { details: d, classes: o == null ? void 0 : o.navLinks }),
|
|
1152
|
+
r.enabled && /* @__PURE__ */ n.jsx(Je, { text: r.text }),
|
|
1153
|
+
/* @__PURE__ */ n.jsxs(
|
|
492
1154
|
"div",
|
|
493
1155
|
{
|
|
494
|
-
className:
|
|
1156
|
+
className: a(
|
|
495
1157
|
"mt-6 flex flex-col-reverse items-start justify-between gap-4 desktop:mt-8 desktop:flex-row desktop:gap-6",
|
|
496
|
-
|
|
1158
|
+
o == null ? void 0 : o.footerBottom
|
|
497
1159
|
),
|
|
498
1160
|
children: [
|
|
499
|
-
i.enabled && /* @__PURE__ */
|
|
500
|
-
|
|
1161
|
+
i.enabled && /* @__PURE__ */ n.jsx($e, { text: i.text, classes: o == null ? void 0 : o.copyright }),
|
|
1162
|
+
l && /* @__PURE__ */ n.jsx(Xe, { classes: o == null ? void 0 : o.siteMap })
|
|
501
1163
|
]
|
|
502
1164
|
}
|
|
503
1165
|
)
|
|
504
1166
|
] }) })
|
|
505
1167
|
}
|
|
506
|
-
),
|
|
507
|
-
const d =
|
|
508
|
-
return /* @__PURE__ */
|
|
1168
|
+
), Ye = ({ classes: e, index: t, variant: r, title: i, description: o }) => {
|
|
1169
|
+
const d = r === "withTitleAndDescription" && i;
|
|
1170
|
+
return /* @__PURE__ */ n.jsxs(
|
|
509
1171
|
"div",
|
|
510
1172
|
{
|
|
511
|
-
className:
|
|
1173
|
+
className: a(
|
|
512
1174
|
"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",
|
|
513
|
-
|
|
1175
|
+
e == null ? void 0 : e.singleStep
|
|
514
1176
|
),
|
|
515
1177
|
children: [
|
|
516
|
-
/* @__PURE__ */
|
|
1178
|
+
/* @__PURE__ */ n.jsx(
|
|
517
1179
|
"div",
|
|
518
1180
|
{
|
|
519
|
-
className:
|
|
1181
|
+
className: a(
|
|
520
1182
|
"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",
|
|
521
|
-
|
|
1183
|
+
e == null ? void 0 : e.numeric
|
|
522
1184
|
),
|
|
523
1185
|
children: t
|
|
524
1186
|
}
|
|
525
1187
|
),
|
|
526
|
-
/* @__PURE__ */
|
|
527
|
-
d && /* @__PURE__ */
|
|
528
|
-
/* @__PURE__ */
|
|
1188
|
+
/* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-2"), children: [
|
|
1189
|
+
d && /* @__PURE__ */ n.jsx(L, { as: "h4", className: a("text-color-dark", e == null ? void 0 : e.title), children: i }),
|
|
1190
|
+
/* @__PURE__ */ n.jsx(
|
|
529
1191
|
"div",
|
|
530
1192
|
{
|
|
531
|
-
dangerouslySetInnerHTML: { __html:
|
|
532
|
-
className:
|
|
1193
|
+
dangerouslySetInnerHTML: { __html: o ?? "" },
|
|
1194
|
+
className: a("desk-body-regular-l text-color-tetriary", e == null ? void 0 : e.description)
|
|
533
1195
|
}
|
|
534
1196
|
)
|
|
535
1197
|
] })
|
|
536
1198
|
]
|
|
537
1199
|
}
|
|
538
1200
|
);
|
|
539
|
-
},
|
|
540
|
-
/* @__PURE__ */
|
|
541
|
-
/* @__PURE__ */
|
|
1201
|
+
}, Cn = ({ headline: e, details: t, variant: r, classes: i }) => /* @__PURE__ */ n.jsx("section", { id: j.stepper, "data-test-id": j.stepper, className: i == null ? void 0 : i.root, children: /* @__PURE__ */ n.jsx(_, { className: i == null ? void 0 : i.container, children: /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-6 desktop:items-start desktop:gap-12", i == null ? void 0 : i.wrapper), children: [
|
|
1202
|
+
/* @__PURE__ */ n.jsx(L, { as: "h2", className: a("text-color-dark", i == null ? void 0 : i.headline), children: e }),
|
|
1203
|
+
/* @__PURE__ */ n.jsx(
|
|
542
1204
|
"div",
|
|
543
1205
|
{
|
|
544
|
-
className:
|
|
1206
|
+
className: a(
|
|
545
1207
|
"flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
|
|
546
1208
|
i == null ? void 0 : i.stepsWrapper
|
|
547
1209
|
),
|
|
548
|
-
children: t == null ? void 0 : t.map((
|
|
1210
|
+
children: t == null ? void 0 : t.map((o, d) => /* @__PURE__ */ n.jsx(Ye, { variant: r, ...o, index: d + 1, classes: i == null ? void 0 : i.step }, o.description))
|
|
549
1211
|
}
|
|
550
1212
|
)
|
|
551
|
-
] }) }) }),
|
|
1213
|
+
] }) }) }), tr = M("", {
|
|
552
1214
|
variants: {
|
|
553
1215
|
intent: {
|
|
554
1216
|
twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
|
|
@@ -564,7 +1226,7 @@ const Ie = [
|
|
|
564
1226
|
defaultVariants: {
|
|
565
1227
|
intent: "twoItems"
|
|
566
1228
|
}
|
|
567
|
-
}),
|
|
1229
|
+
}), er = M("", {
|
|
568
1230
|
variants: {
|
|
569
1231
|
intent: {
|
|
570
1232
|
twoItems: "",
|
|
@@ -596,7 +1258,7 @@ const Ie = [
|
|
|
596
1258
|
class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
|
|
597
1259
|
}
|
|
598
1260
|
]
|
|
599
|
-
}),
|
|
1261
|
+
}), rr = M("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
|
|
600
1262
|
variants: {
|
|
601
1263
|
intent: {
|
|
602
1264
|
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',
|
|
@@ -606,7 +1268,7 @@ const Ie = [
|
|
|
606
1268
|
defaultVariants: {
|
|
607
1269
|
intent: "twoItems"
|
|
608
1270
|
}
|
|
609
|
-
}),
|
|
1271
|
+
}), nr = M("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
|
|
610
1272
|
variants: {
|
|
611
1273
|
intent: {
|
|
612
1274
|
twoItems: "desktop:h-[232px] desktop:w-[500px]",
|
|
@@ -632,53 +1294,53 @@ const Ie = [
|
|
|
632
1294
|
class: "desktop:h-[272px] desktop:w-[500px]"
|
|
633
1295
|
}
|
|
634
1296
|
]
|
|
635
|
-
}),
|
|
1297
|
+
}), or = ({ data: e, intent: t }) => {
|
|
636
1298
|
const {
|
|
637
|
-
title:
|
|
1299
|
+
title: r,
|
|
638
1300
|
description: i,
|
|
639
|
-
popover:
|
|
1301
|
+
popover: o = {
|
|
640
1302
|
enabled: !1
|
|
641
1303
|
}
|
|
642
|
-
} =
|
|
643
|
-
return /* @__PURE__ */
|
|
644
|
-
/* @__PURE__ */
|
|
645
|
-
/* @__PURE__ */
|
|
646
|
-
|
|
1304
|
+
} = e;
|
|
1305
|
+
return /* @__PURE__ */ n.jsx("li", { className: a(rr({ intent: t })), children: /* @__PURE__ */ n.jsxs("div", { className: "desktop:max-w-[264px]", children: [
|
|
1306
|
+
/* @__PURE__ */ n.jsxs("div", { className: a("mb-2 flex items-center gap-2"), children: [
|
|
1307
|
+
/* @__PURE__ */ n.jsx("h4", { className: a("mob-title-bold-m text-color-dark"), children: r }),
|
|
1308
|
+
o.enabled && /* @__PURE__ */ n.jsx(je, { triggerElement: /* @__PURE__ */ n.jsx(c, { className: a("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: o.text })
|
|
647
1309
|
] }),
|
|
648
|
-
/* @__PURE__ */
|
|
1310
|
+
/* @__PURE__ */ n.jsx("div", { className: a("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: i } })
|
|
649
1311
|
] }) });
|
|
650
|
-
},
|
|
651
|
-
headline:
|
|
1312
|
+
}, jt = ({ intent: e, headline: t, desktopHidden: r = !1, mobileHidden: i = !1 }) => /* @__PURE__ */ n.jsx("h2", { className: a(tr({ intent: e, desktopHidden: r, mobileHidden: i })), children: t }), ir = ({ details: e, intent: t, withButton: r }) => /* @__PURE__ */ n.jsx("ul", { className: a(er({ intent: t, withButton: r })), children: e == null ? void 0 : e.map((i, o) => /* @__PURE__ */ n.jsx(or, { intent: t, data: i }, o)) }), Tn = ({
|
|
1313
|
+
headline: e,
|
|
652
1314
|
buttonConfig: t,
|
|
653
|
-
intent:
|
|
1315
|
+
intent: r = "twoItems",
|
|
654
1316
|
details: i,
|
|
655
|
-
image:
|
|
1317
|
+
image: o,
|
|
656
1318
|
classes: d
|
|
657
1319
|
}) => {
|
|
658
|
-
const
|
|
659
|
-
return /* @__PURE__ */
|
|
660
|
-
|
|
661
|
-
/* @__PURE__ */
|
|
1320
|
+
const l = r === "fourItems", u = r === "twoItems", p = o && "url" in o && s.isObject(o) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: o.url }) : o;
|
|
1321
|
+
return /* @__PURE__ */ n.jsx("section", { id: j.longBanner, "data-test-id": j.longBanner, className: a(d == null ? void 0 : d.root), children: /* @__PURE__ */ n.jsxs(_, { className: a(d == null ? void 0 : d.container), children: [
|
|
1322
|
+
u && /* @__PURE__ */ n.jsx(jt, { intent: r, headline: e }),
|
|
1323
|
+
/* @__PURE__ */ n.jsxs(
|
|
662
1324
|
"div",
|
|
663
1325
|
{
|
|
664
|
-
className:
|
|
1326
|
+
className: a(
|
|
665
1327
|
"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",
|
|
666
1328
|
d == null ? void 0 : d.contentContainer
|
|
667
1329
|
),
|
|
668
1330
|
children: [
|
|
669
|
-
|
|
670
|
-
/* @__PURE__ */
|
|
671
|
-
/* @__PURE__ */
|
|
1331
|
+
l && /* @__PURE__ */ n.jsx(jt, { intent: r, headline: e, desktopHidden: !0 }),
|
|
1332
|
+
/* @__PURE__ */ n.jsx("div", { className: a(nr({ intent: r, withButton: t == null ? void 0 : t.enabled }), d == null ? void 0 : d.imgContainer), children: p }),
|
|
1333
|
+
/* @__PURE__ */ n.jsxs(
|
|
672
1334
|
"div",
|
|
673
1335
|
{
|
|
674
|
-
className:
|
|
1336
|
+
className: a("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", d == null ? void 0 : d.textWithBtnContainer),
|
|
675
1337
|
children: [
|
|
676
|
-
|
|
677
|
-
/* @__PURE__ */
|
|
678
|
-
(t == null ? void 0 : t.enabled) && t && /* @__PURE__ */
|
|
679
|
-
|
|
1338
|
+
l && /* @__PURE__ */ n.jsx(jt, { intent: r, headline: e, mobileHidden: !0 }),
|
|
1339
|
+
/* @__PURE__ */ n.jsx(ir, { details: i, intent: r, withButton: (t == null ? void 0 : t.enabled) ?? !1 }),
|
|
1340
|
+
(t == null ? void 0 : t.enabled) && t && /* @__PURE__ */ n.jsx(
|
|
1341
|
+
X,
|
|
680
1342
|
{
|
|
681
|
-
className:
|
|
1343
|
+
className: a("w-full px-4 desktop:w-max", d == null ? void 0 : d.button),
|
|
682
1344
|
size: "lg",
|
|
683
1345
|
intent: "secondary",
|
|
684
1346
|
...t.buttonContent
|
|
@@ -691,76 +1353,76 @@ const Ie = [
|
|
|
691
1353
|
}
|
|
692
1354
|
)
|
|
693
1355
|
] }) });
|
|
694
|
-
},
|
|
1356
|
+
}, yt = {
|
|
695
1357
|
ESIA: "esia",
|
|
696
1358
|
MOBILE_ID: "mobileId",
|
|
697
1359
|
COMBINE: "combine"
|
|
698
|
-
},
|
|
1360
|
+
}, re = ({ children: e, isLoading: t, classes: r, loaderProps: i }) => /* @__PURE__ */ n.jsx(
|
|
699
1361
|
"div",
|
|
700
1362
|
{
|
|
701
1363
|
tabIndex: 0,
|
|
702
|
-
className:
|
|
1364
|
+
className: a(
|
|
703
1365
|
"relative flex h-[90px] w-full max-w-[328px] items-center justify-center rounded-sm p-2 desktop:max-w-[524px]",
|
|
704
1366
|
"bg-color-white outline outline-1 outline-warm-grey-200 transition-colors focus-visible:outline-primary-focus",
|
|
705
|
-
|
|
1367
|
+
r == null ? void 0 : r.root
|
|
706
1368
|
),
|
|
707
|
-
children: /* @__PURE__ */
|
|
1369
|
+
children: /* @__PURE__ */ n.jsx(
|
|
708
1370
|
"div",
|
|
709
1371
|
{
|
|
710
|
-
className:
|
|
1372
|
+
className: a(
|
|
711
1373
|
"flex h-[74px] flex-1 cursor-pointer rounded-sm px-2 py-3 transition-colors desktop:px-4 desktop:py-3",
|
|
712
1374
|
"bg-color-blue-grey-100 hover:bg-color-blue-grey-200 active:bg-color-blue-grey-300",
|
|
713
1375
|
{ "items-center": t },
|
|
714
|
-
|
|
1376
|
+
r == null ? void 0 : r.wrapper
|
|
715
1377
|
),
|
|
716
|
-
children: t ? /* @__PURE__ */
|
|
1378
|
+
children: t ? /* @__PURE__ */ n.jsx(ye, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...i }) : e
|
|
717
1379
|
}
|
|
718
1380
|
)
|
|
719
1381
|
}
|
|
720
|
-
),
|
|
721
|
-
/* @__PURE__ */
|
|
1382
|
+
), dr = ({ ...e }) => /* @__PURE__ */ n.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
|
|
1383
|
+
/* @__PURE__ */ n.jsx(
|
|
722
1384
|
"path",
|
|
723
1385
|
{
|
|
724
1386
|
d: "M30.3986 10.6149C30.2728 8.96576 29.014 6.85155 27.7553 5.83672C26.3398 4.79816 24.8691 3.83828 23.3497 2.96139C21.8418 2.06068 20.2871 1.24201 18.6923 0.508895C17.8404 0.15868 16.927 -0.0139306 16.007 0.00148264C15.0868 -0.0180029 14.1725 0.154761 13.3217 0.508895C11.7272 1.24253 10.1725 2.06119 8.66438 2.96139C6.23081 4.44134 4.25878 5.83672 4.25878 5.83672C3.22329 6.71008 2.43892 7.83418 1.97146 9.09195C1.87834 9.34251 2.07032 9.59987 2.33762 9.59987H4.2568C4.55401 9.59987 4.82321 9.43281 4.98085 9.18085C5.33539 8.61417 5.77902 8.10202 6.29948 7.66607C6.29948 7.66607 7.92774 6.52186 9.93709 5.3083C11.1823 4.57013 12.466 3.89884 13.7826 3.29725C14.485 3.00687 15.2399 2.8652 15.9998 2.88118C16.7593 2.86854 17.5136 3.01008 18.217 3.29725C19.5337 3.89841 20.8174 4.56972 22.0624 5.3083C23.317 6.02735 24.5313 6.81445 25.7 7.66607C26.7394 8.49823 27.7787 10.2319 27.8826 11.5841C27.8826 11.5841 28.1251 13.5952 28.1598 15.9772C28.1576 17.4483 28.0767 18.9183 27.9173 20.3807C27.6755 21.912 26.8879 23.3038 25.7 24.2988C25.7 24.2988 24.0718 25.4777 22.0624 26.6912C20.8172 27.4294 19.5335 28.1007 18.217 28.7023C17.5145 28.9927 16.7596 29.1343 15.9998 29.1184C15.2409 29.1343 14.4867 28.9963 13.7826 28.7127C12.4658 28.1115 11.1821 27.4402 9.93709 26.7016C7.92774 25.5228 6.29948 24.3092 6.29948 24.3092C5.84515 23.9454 5.39081 23.4094 5.01172 22.8082C4.85581 22.561 4.5896 22.3997 4.2973 22.3997H2.34718C2.07645 22.3997 1.88475 22.6629 1.98611 22.914C2.49249 24.168 3.37564 25.4212 4.25878 26.1332C4.25878 26.1332 6.23081 27.6132 8.66438 29.0508C10.1723 29.9515 11.7269 30.7702 13.3217 31.5033C14.1745 31.8492 15.088 32.0175 16.007 31.998C16.9273 32.0175 17.8416 31.8448 18.6923 31.4906C20.2869 30.757 21.8415 29.9383 23.3497 29.0381C25.7833 27.5582 27.7553 26.1205 27.7553 26.1205C29.1939 24.9072 30.1478 23.2098 30.4406 21.3424C30.6337 19.5589 30.7317 17.7663 30.7343 15.9723C30.6923 13.0673 30.3986 10.6149 30.3986 10.6149Z",
|
|
725
1387
|
fill: "url(#paint0_linear_6493_452)"
|
|
726
1388
|
}
|
|
727
1389
|
),
|
|
728
|
-
/* @__PURE__ */
|
|
1390
|
+
/* @__PURE__ */ n.jsx(
|
|
729
1391
|
"path",
|
|
730
1392
|
{
|
|
731
1393
|
d: "M1.27985 12.4821C1.27985 12.1286 1.56638 11.8421 1.91985 11.8421H11.8398C12.1933 11.8421 12.4798 12.1286 12.4798 12.4821V14.4021C12.4798 14.7555 12.1933 15.0421 11.8398 15.0421H1.27985V12.4821Z",
|
|
732
1394
|
fill: "#0066B3"
|
|
733
1395
|
}
|
|
734
1396
|
),
|
|
735
|
-
/* @__PURE__ */
|
|
1397
|
+
/* @__PURE__ */ n.jsx(
|
|
736
1398
|
"path",
|
|
737
1399
|
{
|
|
738
1400
|
d: "M1.27985 16.9618H21.4398C21.7933 16.9618 22.0798 17.2484 22.0798 17.6018V19.5218C22.0798 19.8752 21.7933 20.1618 21.4398 20.1618H1.91985C1.56638 20.1618 1.27985 19.8752 1.27985 19.5218V16.9618Z",
|
|
739
1401
|
fill: "#EE2F53"
|
|
740
1402
|
}
|
|
741
1403
|
),
|
|
742
|
-
/* @__PURE__ */
|
|
743
|
-
/* @__PURE__ */
|
|
744
|
-
/* @__PURE__ */
|
|
745
|
-
/* @__PURE__ */
|
|
746
|
-
/* @__PURE__ */
|
|
1404
|
+
/* @__PURE__ */ n.jsx("defs", { children: /* @__PURE__ */ n.jsxs("linearGradient", { id: "paint0_linear_6493_452", x1: "16.0071", y1: "0", x2: "16.0071", y2: "31.9996", gradientUnits: "userSpaceOnUse", children: [
|
|
1405
|
+
/* @__PURE__ */ n.jsx("stop", { stopColor: "#0066B3" }),
|
|
1406
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.354167", stopColor: "#0066B3" }),
|
|
1407
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
|
|
1408
|
+
/* @__PURE__ */ n.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
|
|
747
1409
|
] }) })
|
|
748
|
-
] }),
|
|
749
|
-
/* @__PURE__ */
|
|
1410
|
+
] }), ne = ({ mainLink: e, subLink: t, isMobile: r, classes: i }) => /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col", i == null ? void 0 : i.linksWrapper), children: [
|
|
1411
|
+
/* @__PURE__ */ n.jsx(
|
|
750
1412
|
"a",
|
|
751
1413
|
{
|
|
752
|
-
href:
|
|
1414
|
+
href: e.href,
|
|
753
1415
|
target: "_blank",
|
|
754
1416
|
rel: "noreferrer",
|
|
755
|
-
className:
|
|
1417
|
+
className: a(
|
|
756
1418
|
'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',
|
|
757
1419
|
i == null ? void 0 : i.linksMainLink
|
|
758
1420
|
),
|
|
759
|
-
children:
|
|
1421
|
+
children: r ? e.mobileTitle : e.title
|
|
760
1422
|
}
|
|
761
1423
|
),
|
|
762
|
-
(t == null ? void 0 : t.text) && (t == null ? void 0 : t.href) && /* @__PURE__ */
|
|
763
|
-
|
|
1424
|
+
(t == null ? void 0 : t.text) && (t == null ? void 0 : t.href) && /* @__PURE__ */ n.jsx(
|
|
1425
|
+
ct,
|
|
764
1426
|
{
|
|
765
1427
|
intent: "blue",
|
|
766
1428
|
withUnderline: !0,
|
|
@@ -768,79 +1430,79 @@ const Ie = [
|
|
|
768
1430
|
target: "_blank",
|
|
769
1431
|
rel: "noreferrer",
|
|
770
1432
|
classes: {
|
|
771
|
-
link:
|
|
1433
|
+
link: a("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary", i == null ? void 0 : i.linksSubLink)
|
|
772
1434
|
},
|
|
773
1435
|
children: t == null ? void 0 : t.text
|
|
774
1436
|
}
|
|
775
1437
|
)
|
|
776
|
-
] }),
|
|
777
|
-
const { isMobile:
|
|
778
|
-
return /* @__PURE__ */
|
|
1438
|
+
] }), Pt = ({ mainLink: e, subLink: t, isLoading: r, badge: i, loaderProps: o, classes: d }) => {
|
|
1439
|
+
const { isMobile: l } = G();
|
|
1440
|
+
return /* @__PURE__ */ n.jsx(re, { isLoading: r, loaderProps: o, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ n.jsxs(
|
|
779
1441
|
"div",
|
|
780
1442
|
{
|
|
781
|
-
className:
|
|
1443
|
+
className: a(
|
|
782
1444
|
"flex flex-1 items-center justify-between gap-1",
|
|
783
|
-
{ "justify-center": !i &&
|
|
1445
|
+
{ "justify-center": !i && l },
|
|
784
1446
|
d == null ? void 0 : d.innerWrapper
|
|
785
1447
|
),
|
|
786
1448
|
children: [
|
|
787
|
-
/* @__PURE__ */
|
|
788
|
-
/* @__PURE__ */
|
|
789
|
-
/* @__PURE__ */
|
|
790
|
-
/* @__PURE__ */
|
|
791
|
-
/* @__PURE__ */
|
|
1449
|
+
/* @__PURE__ */ n.jsxs("div", { className: a("flex items-center gap-1 desktop:gap-4", d == null ? void 0 : d.textContent), children: [
|
|
1450
|
+
/* @__PURE__ */ n.jsxs("div", { children: [
|
|
1451
|
+
/* @__PURE__ */ n.jsx(c, { name: "logos/mts", className: a("relative z-[9] size-7 desktop:size-8", d == null ? void 0 : d.mtsLogo) }),
|
|
1452
|
+
/* @__PURE__ */ n.jsx(c, { name: "logos/megafon", className: a("relative z-[8] -ml-4 size-7 desktop:size-8", d == null ? void 0 : d.megafonLogo) }),
|
|
1453
|
+
/* @__PURE__ */ n.jsx(c, { name: "logos/beeline", className: a("relative z-[7] -ml-4 size-7 desktop:size-8", d == null ? void 0 : d.beelineLogo) })
|
|
792
1454
|
] }),
|
|
793
|
-
/* @__PURE__ */
|
|
794
|
-
/* @__PURE__ */
|
|
1455
|
+
/* @__PURE__ */ n.jsx(ne, { mainLink: e, subLink: t, isMobile: l, classes: d == null ? void 0 : d.links }),
|
|
1456
|
+
/* @__PURE__ */ n.jsx(c, { name: "arrows/arrowRight", className: a("mobile:hidden", d == null ? void 0 : d.arrowIcon) })
|
|
795
1457
|
] }),
|
|
796
|
-
i && /* @__PURE__ */
|
|
1458
|
+
i && /* @__PURE__ */ n.jsx(wt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: i })
|
|
797
1459
|
]
|
|
798
1460
|
}
|
|
799
1461
|
) });
|
|
800
|
-
},
|
|
801
|
-
const { isMobile:
|
|
802
|
-
return /* @__PURE__ */
|
|
1462
|
+
}, Dt = ({ mainLink: e, subLink: t, isLoading: r, badge: i, loaderProps: o, classes: d }) => {
|
|
1463
|
+
const { isMobile: l } = G();
|
|
1464
|
+
return /* @__PURE__ */ n.jsx(re, { isLoading: r, loaderProps: o, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ n.jsxs(
|
|
803
1465
|
"div",
|
|
804
1466
|
{
|
|
805
|
-
className:
|
|
1467
|
+
className: a(
|
|
806
1468
|
"flex flex-1 items-center justify-between gap-1",
|
|
807
|
-
{ "justify-center": !i &&
|
|
1469
|
+
{ "justify-center": !i && l },
|
|
808
1470
|
d == null ? void 0 : d.innerWrapper
|
|
809
1471
|
),
|
|
810
1472
|
children: [
|
|
811
|
-
/* @__PURE__ */
|
|
812
|
-
/* @__PURE__ */
|
|
813
|
-
/* @__PURE__ */
|
|
814
|
-
/* @__PURE__ */
|
|
1473
|
+
/* @__PURE__ */ n.jsxs("div", { className: a("flex items-center gap-1 desktop:gap-4", d == null ? void 0 : d.textContent), children: [
|
|
1474
|
+
/* @__PURE__ */ n.jsx(dr, { className: a("size-7 desktop:size-8", d == null ? void 0 : d.esiaLogo) }),
|
|
1475
|
+
/* @__PURE__ */ n.jsx(ne, { mainLink: e, subLink: t, isMobile: l, classes: d == null ? void 0 : d.links }),
|
|
1476
|
+
/* @__PURE__ */ n.jsx(c, { name: "arrows/arrowRight", className: a("mobile:hidden", d == null ? void 0 : d.arrowIcon) })
|
|
815
1477
|
] }),
|
|
816
|
-
i && /* @__PURE__ */
|
|
1478
|
+
i && /* @__PURE__ */ n.jsx(wt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: i })
|
|
817
1479
|
]
|
|
818
1480
|
}
|
|
819
1481
|
) });
|
|
820
|
-
},
|
|
821
|
-
switch (
|
|
822
|
-
case
|
|
823
|
-
return /* @__PURE__ */
|
|
824
|
-
case
|
|
825
|
-
return /* @__PURE__ */
|
|
826
|
-
case
|
|
1482
|
+
}, ar = (e) => {
|
|
1483
|
+
switch (e.mode) {
|
|
1484
|
+
case yt.ESIA:
|
|
1485
|
+
return /* @__PURE__ */ n.jsx(Dt, { ...e });
|
|
1486
|
+
case yt.MOBILE_ID:
|
|
1487
|
+
return /* @__PURE__ */ n.jsx(Pt, { ...e });
|
|
1488
|
+
case yt.COMBINE:
|
|
827
1489
|
default:
|
|
828
|
-
const { esiaConfig: t, mobileIdConfig:
|
|
829
|
-
return /* @__PURE__ */
|
|
1490
|
+
const { esiaConfig: t, mobileIdConfig: r, subtitle: i, badge: o, classes: d } = e, l = !i && !o ? dt.Fragment : "div";
|
|
1491
|
+
return /* @__PURE__ */ n.jsxs(
|
|
830
1492
|
"div",
|
|
831
1493
|
{
|
|
832
|
-
className:
|
|
1494
|
+
className: a(
|
|
833
1495
|
"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",
|
|
834
1496
|
d == null ? void 0 : d.root
|
|
835
1497
|
),
|
|
836
1498
|
children: [
|
|
837
|
-
/* @__PURE__ */
|
|
838
|
-
i && /* @__PURE__ */
|
|
839
|
-
|
|
1499
|
+
/* @__PURE__ */ n.jsxs(l, { className: a("flex w-full items-center justify-between gap-2", d == null ? void 0 : d.topContent), children: [
|
|
1500
|
+
i && /* @__PURE__ */ n.jsx("h5", { className: a("desk-body-regular-l flex flex-1 text-color-dark", d == null ? void 0 : d.subtitle), children: i }),
|
|
1501
|
+
o && /* @__PURE__ */ n.jsx(wt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: o })
|
|
840
1502
|
] }),
|
|
841
|
-
/* @__PURE__ */
|
|
842
|
-
/* @__PURE__ */
|
|
843
|
-
|
|
1503
|
+
/* @__PURE__ */ n.jsxs("div", { className: a("grid w-full grid-cols-2 gap-2 desktop:gap-4", d == null ? void 0 : d.authWrapper), children: [
|
|
1504
|
+
/* @__PURE__ */ n.jsx(
|
|
1505
|
+
Dt,
|
|
844
1506
|
{
|
|
845
1507
|
...t,
|
|
846
1508
|
classes: {
|
|
@@ -850,14 +1512,14 @@ const Ie = [
|
|
|
850
1512
|
}
|
|
851
1513
|
}
|
|
852
1514
|
),
|
|
853
|
-
/* @__PURE__ */
|
|
854
|
-
|
|
1515
|
+
/* @__PURE__ */ n.jsx(
|
|
1516
|
+
Pt,
|
|
855
1517
|
{
|
|
856
|
-
...
|
|
1518
|
+
...r,
|
|
857
1519
|
classes: {
|
|
858
1520
|
root: "p-0 outline-0 h-[74px]",
|
|
859
1521
|
arrowIcon: "hidden",
|
|
860
|
-
...
|
|
1522
|
+
...r.classes
|
|
861
1523
|
}
|
|
862
1524
|
}
|
|
863
1525
|
)
|
|
@@ -866,45 +1528,45 @@ const Ie = [
|
|
|
866
1528
|
}
|
|
867
1529
|
);
|
|
868
1530
|
}
|
|
869
|
-
},
|
|
870
|
-
|
|
1531
|
+
}, En = (e) => ar(e), Lt = ({ links: e, classes: t }) => /* @__PURE__ */ n.jsx("nav", { className: a("flex flex-col gap-1", t == null ? void 0 : t.linksWrapper), children: e == null ? void 0 : e.map(({ path: r, label: i }) => /* @__PURE__ */ n.jsx(
|
|
1532
|
+
ct,
|
|
871
1533
|
{
|
|
872
1534
|
classes: {
|
|
873
|
-
link:
|
|
874
|
-
icon:
|
|
1535
|
+
link: a("w-max", t == null ? void 0 : t.linkText),
|
|
1536
|
+
icon: a(t == null ? void 0 : t.linkIcon)
|
|
875
1537
|
},
|
|
876
1538
|
intent: "dark",
|
|
877
|
-
href:
|
|
1539
|
+
href: r,
|
|
878
1540
|
children: i
|
|
879
1541
|
},
|
|
880
|
-
|
|
881
|
-
)) }),
|
|
882
|
-
var d,
|
|
883
|
-
const { isMobile:
|
|
884
|
-
return /* @__PURE__ */
|
|
885
|
-
!
|
|
886
|
-
/* @__PURE__ */
|
|
887
|
-
/* @__PURE__ */
|
|
1542
|
+
r
|
|
1543
|
+
)) }), lr = ({ groupLabel: e, links: t, mobileAccordionProps: r, classes: i }) => {
|
|
1544
|
+
var d, l, u;
|
|
1545
|
+
const { isMobile: o } = G();
|
|
1546
|
+
return /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-2", i == null ? void 0 : i.columnGroup), children: [
|
|
1547
|
+
!o && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1548
|
+
/* @__PURE__ */ n.jsx("h5", { className: a("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", i == null ? void 0 : i.columnGroupHeading), children: e }),
|
|
1549
|
+
/* @__PURE__ */ n.jsx(Lt, { links: t, classes: i == null ? void 0 : i.linksList }, "desktop")
|
|
888
1550
|
] }),
|
|
889
|
-
|
|
890
|
-
|
|
1551
|
+
o && /* @__PURE__ */ n.jsx(
|
|
1552
|
+
rt,
|
|
891
1553
|
{
|
|
892
1554
|
defaultOpen: !0,
|
|
893
|
-
label:
|
|
894
|
-
icon: /* @__PURE__ */
|
|
895
|
-
...
|
|
1555
|
+
label: e,
|
|
1556
|
+
icon: /* @__PURE__ */ n.jsx(c, { name: "arrows/arrowRight", className: a("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
|
|
1557
|
+
...r,
|
|
896
1558
|
classes: {
|
|
897
|
-
...
|
|
1559
|
+
...r == null ? void 0 : r.classes,
|
|
898
1560
|
header: {
|
|
899
|
-
trigger:
|
|
1561
|
+
trigger: a("p-0 bg-color-blue-grey-100", (l = (d = r == null ? void 0 : r.classes) == null ? void 0 : d.header) == null ? void 0 : l.trigger)
|
|
900
1562
|
},
|
|
901
|
-
contentInner:
|
|
1563
|
+
contentInner: a("py-2 px-4", (u = r == null ? void 0 : r.classes) == null ? void 0 : u.contentInner)
|
|
902
1564
|
},
|
|
903
|
-
children: /* @__PURE__ */
|
|
1565
|
+
children: /* @__PURE__ */ n.jsx(Lt, { links: t, classes: i == null ? void 0 : i.linksList }, "mobile")
|
|
904
1566
|
}
|
|
905
1567
|
)
|
|
906
1568
|
] });
|
|
907
|
-
},
|
|
1569
|
+
}, ur = ({ column: e, mobileAccordionProps: t, classes: r }) => /* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-4 desktop:gap-6", r == null ? void 0 : r.column), children: e == null ? void 0 : e.map((i) => /* @__PURE__ */ n.jsx(lr, { ...t, ...i, classes: r == null ? void 0 : r.columnGroup }, i.groupLabel)) }), pr = M("grid gap-4 grid-cols-1", {
|
|
908
1570
|
variants: {
|
|
909
1571
|
variant: {
|
|
910
1572
|
twoCols: "desktop:grid-cols-2",
|
|
@@ -915,81 +1577,81 @@ const Ie = [
|
|
|
915
1577
|
defaultVariants: {
|
|
916
1578
|
variant: "fourCols"
|
|
917
1579
|
}
|
|
918
|
-
}),
|
|
919
|
-
variant:
|
|
1580
|
+
}), In = ({
|
|
1581
|
+
variant: e,
|
|
920
1582
|
details: t,
|
|
921
|
-
headline:
|
|
1583
|
+
headline: r,
|
|
922
1584
|
mobileAccordionProps: i,
|
|
923
|
-
rootAccordionProps:
|
|
1585
|
+
rootAccordionProps: o,
|
|
924
1586
|
classes: d
|
|
925
1587
|
}) => {
|
|
926
|
-
var
|
|
927
|
-
return /* @__PURE__ */
|
|
1588
|
+
var l, u, p;
|
|
1589
|
+
return /* @__PURE__ */ n.jsx(
|
|
928
1590
|
"section",
|
|
929
1591
|
{
|
|
930
|
-
id:
|
|
931
|
-
"data-test-id":
|
|
932
|
-
className:
|
|
933
|
-
children: /* @__PURE__ */
|
|
934
|
-
|
|
1592
|
+
id: j.interLinking,
|
|
1593
|
+
"data-test-id": j.interLinking,
|
|
1594
|
+
className: a("min-w-full desktop:min-w-[1140px]", d == null ? void 0 : d.root),
|
|
1595
|
+
children: /* @__PURE__ */ n.jsx(_, { children: /* @__PURE__ */ n.jsx(
|
|
1596
|
+
rt,
|
|
935
1597
|
{
|
|
936
1598
|
defaultOpen: !0,
|
|
937
|
-
label: /* @__PURE__ */
|
|
938
|
-
...
|
|
1599
|
+
label: /* @__PURE__ */ n.jsx(L, { as: "h4", className: a("text-left", d == null ? void 0 : d.headline), children: r }),
|
|
1600
|
+
...o,
|
|
939
1601
|
classes: {
|
|
940
|
-
...
|
|
1602
|
+
...o == null ? void 0 : o.classes,
|
|
941
1603
|
header: {
|
|
942
|
-
trigger:
|
|
1604
|
+
trigger: a("bg-color-blue-grey-100", (u = (l = o == null ? void 0 : o.classes) == null ? void 0 : l.header) == null ? void 0 : u.trigger)
|
|
943
1605
|
},
|
|
944
|
-
content:
|
|
1606
|
+
content: a("max-w-full bg-color-blue-grey-100 relative", (p = o == null ? void 0 : o.classes) == null ? void 0 : p.content)
|
|
945
1607
|
},
|
|
946
|
-
children: /* @__PURE__ */
|
|
1608
|
+
children: /* @__PURE__ */ n.jsx("div", { className: a(pr({ variant: e }), d == null ? void 0 : d.columnsWrapper), children: t == null ? void 0 : t.map((m, x) => /* @__PURE__ */ n.jsx(ur, { ...m, ...i, classes: d == null ? void 0 : d.column }, x)) })
|
|
947
1609
|
}
|
|
948
1610
|
) })
|
|
949
1611
|
}
|
|
950
1612
|
);
|
|
951
|
-
},
|
|
1613
|
+
}, hr = ({ tabsNames: e, activeTab: t, setActiveTab: r, classes: i }) => /* @__PURE__ */ n.jsx("div", { className: a("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", i == null ? void 0 : i.tabs), children: e && e.map((o, d) => /* @__PURE__ */ n.jsx(
|
|
952
1614
|
"button",
|
|
953
1615
|
{
|
|
954
|
-
onClick: () =>
|
|
955
|
-
className:
|
|
1616
|
+
onClick: () => r(d),
|
|
1617
|
+
className: a(
|
|
956
1618
|
"desktop:kpy-3 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",
|
|
957
1619
|
{
|
|
958
1620
|
"bg-icon-primary-default text-color-white": t === d
|
|
959
1621
|
},
|
|
960
1622
|
i == null ? void 0 : i.button
|
|
961
1623
|
),
|
|
962
|
-
children:
|
|
1624
|
+
children: o
|
|
963
1625
|
},
|
|
964
|
-
|
|
965
|
-
)) }),
|
|
966
|
-
const
|
|
967
|
-
return /* @__PURE__ */
|
|
968
|
-
},
|
|
969
|
-
rows:
|
|
970
|
-
row:
|
|
1626
|
+
o
|
|
1627
|
+
)) }), mr = (e) => e.variant === "HTML", xr = (e) => e.variant === "DOCUMENTS", fr = (e) => e.variant === "TABLE", cr = ({ html: e, config: t, classes: r, accordionConfig: i }) => {
|
|
1628
|
+
const o = /* @__PURE__ */ n.jsx("div", { className: a(r == null ? void 0 : r.html), dangerouslySetInnerHTML: { __html: e ?? "" } });
|
|
1629
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ n.jsx(rt, { label: t == null ? void 0 : t.accordionTitle, ...i, children: (i == null ? void 0 : i.children) ?? o }) : o });
|
|
1630
|
+
}, br = (e, t) => ({
|
|
1631
|
+
rows: e == null ? void 0 : e.map(({ row: r }) => ({
|
|
1632
|
+
row: r == null ? void 0 : r.map((i, o) => {
|
|
971
1633
|
var d;
|
|
972
1634
|
return {
|
|
973
1635
|
...i,
|
|
974
|
-
heading: t && ((d = t[
|
|
1636
|
+
heading: t && ((d = t[o]) == null ? void 0 : d.heading)
|
|
975
1637
|
};
|
|
976
1638
|
})
|
|
977
1639
|
}))
|
|
978
|
-
}),
|
|
1640
|
+
}), gr = M("flex flex-col", {
|
|
979
1641
|
variants: {
|
|
980
1642
|
columnsVariant: {
|
|
981
1643
|
twoCols: "w-full max-w-[656px]",
|
|
982
1644
|
threeCols: "w-full max-w-[768px]"
|
|
983
1645
|
}
|
|
984
1646
|
}
|
|
985
|
-
}),
|
|
1647
|
+
}), jr = M("grid px-4 mb-4", {
|
|
986
1648
|
variants: {
|
|
987
1649
|
columnsVariant: {
|
|
988
1650
|
twoCols: "grid-cols-2 gap-16",
|
|
989
1651
|
threeCols: "grid-cols-3 gap-12"
|
|
990
1652
|
}
|
|
991
1653
|
}
|
|
992
|
-
}),
|
|
1654
|
+
}), yr = ({ headings: e, columnsVariant: t, classes: r }) => /* @__PURE__ */ n.jsx("div", { className: a(jr({ columnsVariant: t }), r == null ? void 0 : r.row), children: e == null ? void 0 : e.map((i) => /* @__PURE__ */ n.jsx("div", { className: a("text-color-secondary", r == null ? void 0 : r.cell), children: i == null ? void 0 : i.heading }, i == null ? void 0 : i.heading)) }), sr = M("grid items-center", {
|
|
993
1655
|
variants: {
|
|
994
1656
|
columnsVariant: {
|
|
995
1657
|
twoCols: "grid-cols-2 gap-16",
|
|
@@ -1000,89 +1662,89 @@ const Ie = [
|
|
|
1000
1662
|
separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
|
|
1001
1663
|
}
|
|
1002
1664
|
}
|
|
1003
|
-
}),
|
|
1665
|
+
}), kr = ({ row: e, tableVariant: t, columnsVariant: r, rowIndex: i, classes: o }) => /* @__PURE__ */ n.jsx("div", { className: a(sr({ columnsVariant: r, tableVariant: t }), { "border-none": i === 0 }, o == null ? void 0 : o.row), children: e == null ? void 0 : e.map(({ cell: d }, l) => /* @__PURE__ */ n.jsx(
|
|
1004
1666
|
"div",
|
|
1005
1667
|
{
|
|
1006
|
-
className:
|
|
1668
|
+
className: a("desk-body-regular-l text-color-dark", { "font-medium": l !== 0 }, o == null ? void 0 : o.cell),
|
|
1007
1669
|
children: d && d
|
|
1008
1670
|
},
|
|
1009
|
-
|
|
1010
|
-
)) }),
|
|
1671
|
+
l
|
|
1672
|
+
)) }), wr = M("flex flex-col gap-2", {
|
|
1011
1673
|
variants: {
|
|
1012
1674
|
tableVariant: {
|
|
1013
1675
|
filled: "px-4 py-4 odd:bg-color-primary-light-default",
|
|
1014
1676
|
separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
|
|
1015
1677
|
}
|
|
1016
1678
|
}
|
|
1017
|
-
}),
|
|
1018
|
-
|
|
1019
|
-
/* @__PURE__ */
|
|
1679
|
+
}), vr = ({ row: e, tableVariant: t, columnsVariant: r, headingsExist: i, classes: o }) => /* @__PURE__ */ n.jsx("div", { className: a(wr({ tableVariant: t }), o == null ? void 0 : o.row), children: e == null ? void 0 : e.map(({ cell: d, heading: l }, u) => /* @__PURE__ */ n.jsxs("div", { className: a("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !i }, o == null ? void 0 : o.wrapper), children: [
|
|
1680
|
+
l && /* @__PURE__ */ n.jsx("div", { className: a("mob-body-regular-l text-color-secondary", o == null ? void 0 : o.heading), children: l }),
|
|
1681
|
+
/* @__PURE__ */ n.jsx(
|
|
1020
1682
|
"div",
|
|
1021
1683
|
{
|
|
1022
|
-
className:
|
|
1684
|
+
className: a(
|
|
1023
1685
|
"mob-body-regular-l text-color-dark",
|
|
1024
1686
|
{
|
|
1025
|
-
"font-medium":
|
|
1687
|
+
"font-medium": u !== 0 && r === "twoCols" || r === "threeCols" || r === "twoCols" && i
|
|
1026
1688
|
},
|
|
1027
|
-
|
|
1689
|
+
o == null ? void 0 : o.cell
|
|
1028
1690
|
),
|
|
1029
1691
|
children: d
|
|
1030
1692
|
}
|
|
1031
1693
|
)
|
|
1032
|
-
] },
|
|
1694
|
+
] }, u)) }), Nr = ({ tableVariant: e, rows: t, headings: r, columnsVariant: i, classes: o }) => {
|
|
1033
1695
|
var p;
|
|
1034
|
-
const { isDesktop: d } =
|
|
1035
|
-
return /* @__PURE__ */
|
|
1036
|
-
d &&
|
|
1037
|
-
d ? /* @__PURE__ */
|
|
1038
|
-
|
|
1696
|
+
const { isDesktop: d } = G(), l = ((p = br(t, r)) == null ? void 0 : p.rows) ?? [], u = !!(r && r.length > 0);
|
|
1697
|
+
return /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col", o == null ? void 0 : o.wrapper), children: [
|
|
1698
|
+
d && u && /* @__PURE__ */ n.jsx(yr, { headings: r, columnsVariant: i, classes: o == null ? void 0 : o.desktopHeading }),
|
|
1699
|
+
d ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t == null ? void 0 : t.map((m, x) => /* @__PURE__ */ n.jsx(
|
|
1700
|
+
kr,
|
|
1039
1701
|
{
|
|
1040
|
-
rowIndex:
|
|
1041
|
-
tableVariant:
|
|
1702
|
+
rowIndex: x,
|
|
1703
|
+
tableVariant: e,
|
|
1042
1704
|
columnsVariant: i,
|
|
1043
|
-
classes:
|
|
1705
|
+
classes: o == null ? void 0 : o.desktopRow,
|
|
1044
1706
|
...m
|
|
1045
1707
|
},
|
|
1046
|
-
|
|
1047
|
-
)) }) : /* @__PURE__ */
|
|
1048
|
-
|
|
1708
|
+
x
|
|
1709
|
+
)) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: l == null ? void 0 : l.map((m, x) => /* @__PURE__ */ n.jsx(
|
|
1710
|
+
vr,
|
|
1049
1711
|
{
|
|
1050
|
-
headingsExist:
|
|
1051
|
-
tableVariant:
|
|
1712
|
+
headingsExist: u,
|
|
1713
|
+
tableVariant: e,
|
|
1052
1714
|
columnsVariant: i,
|
|
1053
|
-
classes:
|
|
1715
|
+
classes: o == null ? void 0 : o.desktopRow,
|
|
1054
1716
|
...m
|
|
1055
1717
|
},
|
|
1056
|
-
|
|
1718
|
+
x
|
|
1057
1719
|
)) })
|
|
1058
1720
|
] });
|
|
1059
|
-
},
|
|
1060
|
-
tableVariant:
|
|
1721
|
+
}, Cr = ({
|
|
1722
|
+
tableVariant: e,
|
|
1061
1723
|
description: t,
|
|
1062
|
-
columnsVariant:
|
|
1724
|
+
columnsVariant: r,
|
|
1063
1725
|
config: i,
|
|
1064
|
-
rows:
|
|
1726
|
+
rows: o,
|
|
1065
1727
|
title: d,
|
|
1066
|
-
headings:
|
|
1067
|
-
accordionConfig:
|
|
1728
|
+
headings: l,
|
|
1729
|
+
accordionConfig: u,
|
|
1068
1730
|
classes: p
|
|
1069
1731
|
}) => {
|
|
1070
|
-
const m = /* @__PURE__ */
|
|
1071
|
-
d && /* @__PURE__ */
|
|
1072
|
-
/* @__PURE__ */
|
|
1073
|
-
t && /* @__PURE__ */
|
|
1732
|
+
const m = /* @__PURE__ */ n.jsxs("div", { className: a(gr({ columnsVariant: r }), p == null ? void 0 : p.wrapper), children: [
|
|
1733
|
+
d && /* @__PURE__ */ n.jsx(L, { as: "h4", className: a("mb-4 desktop:mb-6", p == null ? void 0 : p.headline), children: d }),
|
|
1734
|
+
/* @__PURE__ */ n.jsx(Nr, { tableVariant: e, rows: o, headings: l, columnsVariant: r }),
|
|
1735
|
+
t && /* @__PURE__ */ n.jsx(
|
|
1074
1736
|
"div",
|
|
1075
1737
|
{
|
|
1076
|
-
className:
|
|
1738
|
+
className: a("mt-2 [&&]:desk-body-regular-m desktop:mt-2", p == null ? void 0 : p.description),
|
|
1077
1739
|
dangerouslySetInnerHTML: { __html: t ?? "" }
|
|
1078
1740
|
}
|
|
1079
1741
|
)
|
|
1080
1742
|
] });
|
|
1081
|
-
return /* @__PURE__ */
|
|
1082
|
-
},
|
|
1743
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: i && (i != null && i.isAccordion) && (i != null && i.accordionTitle) ? /* @__PURE__ */ n.jsx(rt, { label: i == null ? void 0 : i.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || m }) : m });
|
|
1744
|
+
}, Tr = {
|
|
1083
1745
|
documentFilled: "files/documentFilled",
|
|
1084
1746
|
documentOutline: "files/documentOutline"
|
|
1085
|
-
},
|
|
1747
|
+
}, Er = M("size-8 transition-colors", {
|
|
1086
1748
|
variants: {
|
|
1087
1749
|
iconType: {
|
|
1088
1750
|
documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
|
|
@@ -1092,88 +1754,88 @@ const Ie = [
|
|
|
1092
1754
|
defaultVariants: {
|
|
1093
1755
|
iconType: "documentOutline"
|
|
1094
1756
|
}
|
|
1095
|
-
}),
|
|
1757
|
+
}), Ir = ({ label: e, size: t, url: r, iconType: i, classes: o }) => /* @__PURE__ */ n.jsxs(
|
|
1096
1758
|
"a",
|
|
1097
1759
|
{
|
|
1098
|
-
href:
|
|
1760
|
+
href: r,
|
|
1099
1761
|
target: "_blank",
|
|
1100
1762
|
rel: "noreferrer",
|
|
1101
1763
|
tabIndex: 0,
|
|
1102
|
-
className:
|
|
1764
|
+
className: a(
|
|
1103
1765
|
"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",
|
|
1104
|
-
|
|
1766
|
+
o == null ? void 0 : o.link
|
|
1105
1767
|
),
|
|
1106
1768
|
children: [
|
|
1107
|
-
/* @__PURE__ */
|
|
1108
|
-
/* @__PURE__ */
|
|
1109
|
-
/* @__PURE__ */
|
|
1110
|
-
/* @__PURE__ */
|
|
1769
|
+
/* @__PURE__ */ n.jsx(c, { name: Tr[i], className: a(Er({ iconType: i }), o == null ? void 0 : o.icon) }),
|
|
1770
|
+
/* @__PURE__ */ n.jsxs("div", { className: a("flex flex-1 flex-col", o == null ? void 0 : o.wrapper), children: [
|
|
1771
|
+
/* @__PURE__ */ n.jsx("p", { className: a("desk-body-medium-l text-color-dark", o == null ? void 0 : o.label), children: e }),
|
|
1772
|
+
/* @__PURE__ */ n.jsxs("div", { className: a("desk-body-regular-m text-color-disabled", o == null ? void 0 : o.size), children: [
|
|
1111
1773
|
Number(t),
|
|
1112
1774
|
" КБ"
|
|
1113
1775
|
] })
|
|
1114
1776
|
] })
|
|
1115
1777
|
]
|
|
1116
1778
|
}
|
|
1117
|
-
),
|
|
1118
|
-
const
|
|
1119
|
-
|
|
1120
|
-
/* @__PURE__ */
|
|
1121
|
-
|
|
1779
|
+
), Mr = ({ docs: e, config: t, title: r, iconType: i, description: o, classes: d, accordionConfig: l }) => {
|
|
1780
|
+
const u = /* @__PURE__ */ n.jsxs("div", { className: a("flex max-w-[680px] flex-col", d == null ? void 0 : d.wrapper), children: [
|
|
1781
|
+
r && /* @__PURE__ */ n.jsx(L, { as: "h3", className: "mb-4", children: r }),
|
|
1782
|
+
/* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-4", d == null ? void 0 : d.documentsWrapper), children: e == null ? void 0 : e.map((p) => /* @__PURE__ */ n.jsx(Ir, { iconType: i, ...p, classes: d == null ? void 0 : d.singleDocument }, p.label)) }),
|
|
1783
|
+
o && /* @__PURE__ */ n.jsx("div", { className: a("mt-4", d == null ? void 0 : d.description), dangerouslySetInnerHTML: { __html: o ?? "" } })
|
|
1122
1784
|
] });
|
|
1123
|
-
return /* @__PURE__ */
|
|
1124
|
-
},
|
|
1125
|
-
var i,
|
|
1785
|
+
return /* @__PURE__ */ n.jsx(n.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ n.jsx(rt, { label: t == null ? void 0 : t.accordionTitle, ...l, children: (l == null ? void 0 : l.children) || u }) : u });
|
|
1786
|
+
}, Or = ({ entity: e, classes: t, accordionsConfig: r }) => {
|
|
1787
|
+
var i, o, d;
|
|
1126
1788
|
switch (!0) {
|
|
1127
|
-
case
|
|
1128
|
-
return (i =
|
|
1789
|
+
case mr(e):
|
|
1790
|
+
return (i = e.details) == null ? void 0 : i.map((l, u) => {
|
|
1129
1791
|
var p;
|
|
1130
|
-
return /* @__PURE__ */
|
|
1792
|
+
return /* @__PURE__ */ n.jsx(cr, { ...l, accordionConfig: r == null ? void 0 : r.htmlAccordion, classes: (p = t == null ? void 0 : t.entities) == null ? void 0 : p.html }, u);
|
|
1131
1793
|
});
|
|
1132
|
-
case
|
|
1133
|
-
return (
|
|
1794
|
+
case xr(e):
|
|
1795
|
+
return (o = e.details) == null ? void 0 : o.map((l, u) => {
|
|
1134
1796
|
var p;
|
|
1135
|
-
return /* @__PURE__ */
|
|
1136
|
-
|
|
1797
|
+
return /* @__PURE__ */ n.jsx(
|
|
1798
|
+
Mr,
|
|
1137
1799
|
{
|
|
1138
|
-
accordionConfig:
|
|
1139
|
-
...
|
|
1800
|
+
accordionConfig: r == null ? void 0 : r.documentAccordion,
|
|
1801
|
+
...l,
|
|
1140
1802
|
classes: (p = t == null ? void 0 : t.entities) == null ? void 0 : p.documents
|
|
1141
1803
|
},
|
|
1142
|
-
|
|
1804
|
+
u
|
|
1143
1805
|
);
|
|
1144
1806
|
});
|
|
1145
|
-
case
|
|
1146
|
-
return (d =
|
|
1807
|
+
case fr(e):
|
|
1808
|
+
return (d = e.details) == null ? void 0 : d.map((l, u) => {
|
|
1147
1809
|
var p;
|
|
1148
|
-
return /* @__PURE__ */
|
|
1149
|
-
|
|
1810
|
+
return /* @__PURE__ */ n.jsx(
|
|
1811
|
+
Cr,
|
|
1150
1812
|
{
|
|
1151
|
-
accordionConfig:
|
|
1152
|
-
...
|
|
1813
|
+
accordionConfig: r == null ? void 0 : r.tableAccordion,
|
|
1814
|
+
...l,
|
|
1153
1815
|
classes: (p = t == null ? void 0 : t.entities) == null ? void 0 : p.table
|
|
1154
1816
|
},
|
|
1155
|
-
|
|
1817
|
+
u
|
|
1156
1818
|
);
|
|
1157
1819
|
});
|
|
1158
1820
|
default:
|
|
1159
1821
|
return null;
|
|
1160
1822
|
}
|
|
1161
|
-
},
|
|
1162
|
-
var
|
|
1163
|
-
const [
|
|
1164
|
-
return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */
|
|
1165
|
-
/* @__PURE__ */
|
|
1166
|
-
/* @__PURE__ */
|
|
1167
|
-
/* @__PURE__ */
|
|
1823
|
+
}, Sr = ({ entity: e, classes: t, accordionsConfig: r }) => /* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-6", t == null ? void 0 : t.entityWrapper), children: Or({ entity: e, classes: t, accordionsConfig: r }) }), Mn = ({ headline: e, tabs: t, classes: r, accordionsConfig: i }) => {
|
|
1824
|
+
var u, p;
|
|
1825
|
+
const [o, d] = W(0), l = Nt(() => t == null ? void 0 : t.map((m) => m == null ? void 0 : m.tabName), [t]) ?? [];
|
|
1826
|
+
return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ n.jsx("section", { id: j.usefulInfo, "data-test-id": j.usefulInfo, className: a(r == null ? void 0 : r.root), children: /* @__PURE__ */ n.jsxs(_, { className: a(r == null ? void 0 : r.container), children: [
|
|
1827
|
+
/* @__PURE__ */ n.jsx(L, { className: a(r == null ? void 0 : r.headline), as: "h2", children: e }),
|
|
1828
|
+
/* @__PURE__ */ n.jsx("div", { className: a("mt-6 flex flex-col gap-2 desktop:mt-12", r == null ? void 0 : r.tabsWrapper), children: /* @__PURE__ */ n.jsx(hr, { tabsNames: l, activeTab: o, setActiveTab: d, classes: r == null ? void 0 : r.tabs }) }),
|
|
1829
|
+
/* @__PURE__ */ n.jsx("div", { className: a("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (p = (u = t == null ? void 0 : t[o]) == null ? void 0 : u.contents) == null ? void 0 : p.map((m, x) => /* @__PURE__ */ n.jsx(Sr, { accordionsConfig: i, ...m, classes: r == null ? void 0 : r.entityClasses }, x)) })
|
|
1168
1830
|
] }) });
|
|
1169
|
-
},
|
|
1170
|
-
const
|
|
1171
|
-
return /* @__PURE__ */
|
|
1831
|
+
}, Fr = ({ fields: e, control: t }) => e.map(({ type: r, args: i }) => {
|
|
1832
|
+
const o = se[r];
|
|
1833
|
+
return /* @__PURE__ */ $t(o, { ...i, key: i.name, control: t });
|
|
1172
1834
|
});
|
|
1173
|
-
class
|
|
1835
|
+
class Br {
|
|
1174
1836
|
constructor(t) {
|
|
1175
|
-
|
|
1176
|
-
|
|
1837
|
+
ot(this, "TEXT_NODE", 3);
|
|
1838
|
+
ot(this, "ELEMENT_NODE", 1);
|
|
1177
1839
|
this.options = t;
|
|
1178
1840
|
}
|
|
1179
1841
|
/**
|
|
@@ -1182,33 +1844,33 @@ class wt {
|
|
|
1182
1844
|
* @param elements Массив для сбора элементов
|
|
1183
1845
|
* @param as Тип возвращаемых данных ('string' или 'node')
|
|
1184
1846
|
*/
|
|
1185
|
-
traverse(t,
|
|
1186
|
-
const { includeSolidText:
|
|
1847
|
+
traverse(t, r = "string", i) {
|
|
1848
|
+
const { includeSolidText: o, recursive: d, element: l } = this.options || {};
|
|
1187
1849
|
switch (t.nodeType) {
|
|
1188
1850
|
// если узел - элемент
|
|
1189
1851
|
case this.ELEMENT_NODE:
|
|
1190
|
-
const
|
|
1852
|
+
const u = t, p = u.tagName.toLowerCase();
|
|
1191
1853
|
if (p === "script") {
|
|
1192
1854
|
console.warn("Found script node. For better security this node will be skipped.");
|
|
1193
1855
|
break;
|
|
1194
1856
|
}
|
|
1195
|
-
if (
|
|
1857
|
+
if (l && p !== l)
|
|
1196
1858
|
break;
|
|
1197
|
-
if (
|
|
1859
|
+
if (r === "node")
|
|
1198
1860
|
i.push(t);
|
|
1199
1861
|
else {
|
|
1200
|
-
const m =
|
|
1862
|
+
const m = u.outerHTML.trim();
|
|
1201
1863
|
i.push(m);
|
|
1202
1864
|
}
|
|
1203
1865
|
if (d)
|
|
1204
1866
|
for (const m of t.childNodes)
|
|
1205
|
-
this.traverse(m,
|
|
1867
|
+
this.traverse(m, r, i);
|
|
1206
1868
|
break;
|
|
1207
1869
|
// если узел - текстовый и требуется его добавить, добавляем
|
|
1208
1870
|
case this.TEXT_NODE:
|
|
1209
|
-
if (!
|
|
1871
|
+
if (!o)
|
|
1210
1872
|
break;
|
|
1211
|
-
if (
|
|
1873
|
+
if (r === "node")
|
|
1212
1874
|
i.push(t);
|
|
1213
1875
|
else {
|
|
1214
1876
|
const m = t.textContent;
|
|
@@ -1223,14 +1885,14 @@ class wt {
|
|
|
1223
1885
|
* @param as Тип возвращаемых данных ('string' или 'node')
|
|
1224
1886
|
* @returns Массив тегов или нод
|
|
1225
1887
|
*/
|
|
1226
|
-
async parse(t,
|
|
1227
|
-
const { includeBody: i } = this.options || {},
|
|
1888
|
+
async parse(t, r = "string") {
|
|
1889
|
+
const { includeBody: i } = this.options || {}, o = [], d = [], l = await this.parseFromString(t), u = r === "string" ? o : d;
|
|
1228
1890
|
if (i)
|
|
1229
|
-
this.traverse(
|
|
1891
|
+
this.traverse(l.body, r, u);
|
|
1230
1892
|
else
|
|
1231
|
-
for (const p of
|
|
1232
|
-
this.traverse(p,
|
|
1233
|
-
return { stringNodes:
|
|
1893
|
+
for (const p of l.body.childNodes)
|
|
1894
|
+
this.traverse(p, r, u);
|
|
1895
|
+
return { stringNodes: o, nodes: d };
|
|
1234
1896
|
}
|
|
1235
1897
|
/**
|
|
1236
1898
|
* Считает количество указанных тегов в HTML строке.
|
|
@@ -1238,27 +1900,27 @@ class wt {
|
|
|
1238
1900
|
* @returns Количество найденных тегов
|
|
1239
1901
|
*/
|
|
1240
1902
|
async countElements(t) {
|
|
1241
|
-
const { stringNodes:
|
|
1242
|
-
return
|
|
1903
|
+
const { stringNodes: r } = await this.parse(t, "string");
|
|
1904
|
+
return r.length;
|
|
1243
1905
|
}
|
|
1244
1906
|
}
|
|
1245
|
-
const
|
|
1246
|
-
class
|
|
1247
|
-
constructor(t,
|
|
1248
|
-
super(t), this.originalError =
|
|
1907
|
+
const Rr = typeof window < "u";
|
|
1908
|
+
class Hr extends Error {
|
|
1909
|
+
constructor(t, r) {
|
|
1910
|
+
super(t), this.originalError = r, this.name = "BrowserHTMLParserError";
|
|
1249
1911
|
}
|
|
1250
1912
|
}
|
|
1251
|
-
class
|
|
1913
|
+
class _r extends Br {
|
|
1252
1914
|
constructor(t) {
|
|
1253
1915
|
super(t);
|
|
1254
1916
|
}
|
|
1255
1917
|
async parseFromString(t) {
|
|
1256
|
-
if (!
|
|
1257
|
-
throw new
|
|
1918
|
+
if (!Rr)
|
|
1919
|
+
throw new Hr("HTMLParser should only be used in the browser.");
|
|
1258
1920
|
return new DOMParser().parseFromString(t, "text/html");
|
|
1259
1921
|
}
|
|
1260
1922
|
}
|
|
1261
|
-
class
|
|
1923
|
+
class st {
|
|
1262
1924
|
/**
|
|
1263
1925
|
* Функция для парсинга ноды в react элемент
|
|
1264
1926
|
*/
|
|
@@ -1266,178 +1928,179 @@ class D {
|
|
|
1266
1928
|
if (t.nodeType === this.TEXT_NODE)
|
|
1267
1929
|
return t.textContent ?? null;
|
|
1268
1930
|
if (t.nodeType === this.ELEMENT_NODE) {
|
|
1269
|
-
const
|
|
1270
|
-
for (const
|
|
1271
|
-
let
|
|
1272
|
-
switch (
|
|
1931
|
+
const r = t, i = r.tagName.toLowerCase(), o = {};
|
|
1932
|
+
for (const l of r.attributes) {
|
|
1933
|
+
let u = l.name, p = l.value;
|
|
1934
|
+
switch (l.name) {
|
|
1273
1935
|
case "class":
|
|
1274
|
-
|
|
1936
|
+
u = "className";
|
|
1275
1937
|
break;
|
|
1276
1938
|
case "for":
|
|
1277
|
-
|
|
1939
|
+
u = "htmlFor";
|
|
1278
1940
|
break;
|
|
1279
1941
|
case "checked":
|
|
1280
1942
|
case "disabled":
|
|
1281
1943
|
case "selected":
|
|
1282
|
-
p =
|
|
1944
|
+
p = l.value !== "false", p = l.value !== "false", p = l.value !== "false";
|
|
1283
1945
|
break;
|
|
1284
1946
|
case "readonly":
|
|
1285
|
-
|
|
1947
|
+
u = "readOnly", p = l.value !== "false";
|
|
1286
1948
|
break;
|
|
1287
1949
|
case "style":
|
|
1288
|
-
|
|
1950
|
+
u = "style";
|
|
1289
1951
|
const m = {};
|
|
1290
|
-
|
|
1291
|
-
const [f,
|
|
1292
|
-
if (f &&
|
|
1293
|
-
const
|
|
1294
|
-
m[
|
|
1952
|
+
l.value.split(";").forEach((x) => {
|
|
1953
|
+
const [f, b] = x.split(":");
|
|
1954
|
+
if (f && b) {
|
|
1955
|
+
const C = f.trim().replace(/-([a-z])/g, (v, k) => k.toUpperCase());
|
|
1956
|
+
m[C] = b.trim();
|
|
1295
1957
|
}
|
|
1296
1958
|
}), p = m;
|
|
1297
1959
|
break;
|
|
1298
1960
|
}
|
|
1299
|
-
|
|
1961
|
+
o[u] = p;
|
|
1300
1962
|
}
|
|
1301
|
-
|
|
1963
|
+
o.key = Math.random().toString(36).substring(2, 9);
|
|
1302
1964
|
const d = [];
|
|
1303
|
-
for (const
|
|
1304
|
-
const
|
|
1305
|
-
|
|
1965
|
+
for (const l of r.childNodes) {
|
|
1966
|
+
const u = this.parseNode(l);
|
|
1967
|
+
u && d.push(u);
|
|
1306
1968
|
}
|
|
1307
|
-
return
|
|
1969
|
+
return $t(i, o, ...d);
|
|
1308
1970
|
}
|
|
1309
1971
|
return null;
|
|
1310
1972
|
}
|
|
1311
1973
|
/**
|
|
1312
1974
|
* функция для преобразования html строки в react элементы
|
|
1313
1975
|
*/
|
|
1314
|
-
static async toReactNodes(t,
|
|
1315
|
-
const i = new
|
|
1316
|
-
return
|
|
1976
|
+
static async toReactNodes(t, r) {
|
|
1977
|
+
const i = new _r(r), { nodes: o } = await i.parse(t, "node");
|
|
1978
|
+
return o.map((d) => this.parseNode(d));
|
|
1317
1979
|
}
|
|
1318
1980
|
}
|
|
1319
|
-
|
|
1320
|
-
const
|
|
1321
|
-
const [t,
|
|
1322
|
-
return
|
|
1981
|
+
ot(st, "TEXT_NODE", 3), ot(st, "ELEMENT_NODE", 1);
|
|
1982
|
+
const Pr = ({ promises: e }) => {
|
|
1983
|
+
const [t, r] = W([]);
|
|
1984
|
+
return Zt(() => {
|
|
1323
1985
|
(async () => {
|
|
1324
|
-
|
|
1986
|
+
r(await e);
|
|
1325
1987
|
})();
|
|
1326
|
-
}, [
|
|
1327
|
-
},
|
|
1328
|
-
const i =
|
|
1329
|
-
return /* @__PURE__ */
|
|
1330
|
-
},
|
|
1331
|
-
const i =
|
|
1332
|
-
if (
|
|
1988
|
+
}, [e]), /* @__PURE__ */ n.jsx(n.Fragment, { children: t });
|
|
1989
|
+
}, ft = ({ html: e, options: t, as: r }) => {
|
|
1990
|
+
const i = r ?? Ne, o = st.toReactNodes(e, t);
|
|
1991
|
+
return /* @__PURE__ */ n.jsx(i, { children: /* @__PURE__ */ n.jsx(Pr, { promises: o }) });
|
|
1992
|
+
}, Dr = ["getFioSchema"], oe = (e, t, r) => {
|
|
1993
|
+
const i = e[t];
|
|
1994
|
+
if (s.isNil(i))
|
|
1333
1995
|
throw new Error(`validation for type ${String(t)} not found`);
|
|
1334
|
-
if (!
|
|
1996
|
+
if (!s.isFunction(i))
|
|
1335
1997
|
throw new Error(`Cannot generate ${String(t)} because is not a function`);
|
|
1336
|
-
return i(
|
|
1337
|
-
},
|
|
1338
|
-
const
|
|
1339
|
-
const d =
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
) :
|
|
1343
|
-
|
|
1344
|
-
|
|
1998
|
+
return i(r);
|
|
1999
|
+
}, Lr = (e, t) => oe(Yt.base, e, t), Qr = (e, t) => oe(Yt.dadata, e, t), zr = (e) => {
|
|
2000
|
+
const r = e.map((i) => ({ name: i.args.name, validation: i.args.validation })).reduce((i, o) => {
|
|
2001
|
+
const d = Dr.includes(o.validation.type) ? Qr(
|
|
2002
|
+
o.validation.type,
|
|
2003
|
+
o.validation.args
|
|
2004
|
+
) : Lr(
|
|
2005
|
+
o.validation.type,
|
|
2006
|
+
o.validation.args
|
|
1345
2007
|
);
|
|
1346
|
-
return i[
|
|
2008
|
+
return i[o.name] = d, i;
|
|
1347
2009
|
}, {});
|
|
1348
|
-
return
|
|
1349
|
-
},
|
|
1350
|
-
name:
|
|
1351
|
-
...
|
|
1352
|
-
})) : null,
|
|
2010
|
+
return Oe(r);
|
|
2011
|
+
}, qr = (e, t) => e.enabled ? t.map((r) => ({
|
|
2012
|
+
name: r.args.name,
|
|
2013
|
+
...r.args.progress
|
|
2014
|
+
})) : null, Ar = new De(), Ur = ({ children: e }) => /* @__PURE__ */ n.jsx(ke, { client: Ar, children: e }), Vr = (e, t, r) => e.type === "off" ? null : e.type === "text" ? /* @__PURE__ */ n.jsx(ft, { html: e.message, as: "div" }) : /* @__PURE__ */ n.jsxs(
|
|
1353
2015
|
"label",
|
|
1354
2016
|
{
|
|
1355
|
-
className:
|
|
2017
|
+
className: a(
|
|
1356
2018
|
"mob-body-regular-s text-color-dark",
|
|
1357
2019
|
"desktop:desk-body-regular-m desktop:gap-x-4",
|
|
1358
2020
|
"flex items-center justify-items-start gap-x-3"
|
|
1359
2021
|
),
|
|
1360
2022
|
children: [
|
|
1361
|
-
/* @__PURE__ */
|
|
1362
|
-
/* @__PURE__ */
|
|
2023
|
+
/* @__PURE__ */ n.jsx(Gt.CheckboxBase, { checked: t, onCheckedChange: r }),
|
|
2024
|
+
/* @__PURE__ */ n.jsx(ft, { html: e.content, as: "div" })
|
|
1363
2025
|
]
|
|
1364
2026
|
}
|
|
1365
|
-
),
|
|
1366
|
-
fields:
|
|
2027
|
+
), On = ({
|
|
2028
|
+
fields: e,
|
|
1367
2029
|
title: t,
|
|
1368
|
-
progress:
|
|
2030
|
+
progress: r,
|
|
1369
2031
|
approvement: i,
|
|
1370
|
-
chips:
|
|
1371
|
-
|
|
2032
|
+
chips: o,
|
|
2033
|
+
submitProps: d
|
|
1372
2034
|
}) => {
|
|
1373
|
-
const [
|
|
1374
|
-
schema:
|
|
1375
|
-
defaultValues:
|
|
2035
|
+
const { submitCallback: l, ...u } = d || {}, [p, m] = W(!1), x = zr(e), { control: f, handleSubmit: b } = Ie({
|
|
2036
|
+
schema: x,
|
|
2037
|
+
defaultValues: Se.getZodDefaults(x),
|
|
1376
2038
|
mode: "onBlur"
|
|
1377
|
-
}),
|
|
1378
|
-
console.warn(
|
|
2039
|
+
}), C = qr(r, e), v = Fe({ control: f, fields: C || [], schema: x }), k = (F) => {
|
|
2040
|
+
l && l(F), console.warn(F);
|
|
1379
2041
|
};
|
|
1380
|
-
return /* @__PURE__ */
|
|
2042
|
+
return /* @__PURE__ */ n.jsx(Ur, { children: /* @__PURE__ */ n.jsxs(
|
|
1381
2043
|
"div",
|
|
1382
2044
|
{
|
|
1383
|
-
id:
|
|
1384
|
-
"data-test-id":
|
|
2045
|
+
id: j.form,
|
|
2046
|
+
"data-test-id": j.form,
|
|
1385
2047
|
className: "relative flex flex-col gap-6 rounded-sm border border-warm-grey-200 px-4 py-8 desktop:gap-8 desktop:p-14",
|
|
1386
2048
|
children: [
|
|
1387
|
-
|
|
2049
|
+
o.enabled && /* @__PURE__ */ n.jsxs(
|
|
1388
2050
|
"div",
|
|
1389
2051
|
{
|
|
1390
|
-
className:
|
|
2052
|
+
className: a(
|
|
1391
2053
|
"desk-body-regular-l flex items-center gap-x-2 rounded-sm desktop:absolute",
|
|
1392
2054
|
"bg-color-blue-grey-100 px-2 py-1 text-color-tetriary",
|
|
1393
2055
|
"right-4 top-4 w-max"
|
|
1394
2056
|
),
|
|
1395
2057
|
children: [
|
|
1396
|
-
|
|
1397
|
-
|
|
2058
|
+
o.image && /* @__PURE__ */ n.jsx(c, { name: o.image, className: "size-4" }),
|
|
2059
|
+
o.content
|
|
1398
2060
|
]
|
|
1399
2061
|
}
|
|
1400
2062
|
),
|
|
1401
|
-
/* @__PURE__ */
|
|
1402
|
-
/* @__PURE__ */
|
|
1403
|
-
|
|
1404
|
-
|
|
2063
|
+
/* @__PURE__ */ n.jsx(L, { as: "h3", children: t }),
|
|
2064
|
+
/* @__PURE__ */ n.jsxs("form", { onSubmit: b(k), className: "flex w-[328px] flex-col gap-y-6 desktop:w-[524px] desktop:gap-y-8", children: [
|
|
2065
|
+
r.enabled && /* @__PURE__ */ n.jsx(
|
|
2066
|
+
we,
|
|
1405
2067
|
{
|
|
1406
|
-
progress:
|
|
1407
|
-
topContent: /* @__PURE__ */
|
|
1408
|
-
bottomContent: /* @__PURE__ */
|
|
1409
|
-
maxPercent:
|
|
2068
|
+
progress: v,
|
|
2069
|
+
topContent: /* @__PURE__ */ n.jsx(ft, { html: r.title }),
|
|
2070
|
+
bottomContent: /* @__PURE__ */ n.jsx(ft, { html: r.subtitle }),
|
|
2071
|
+
maxPercent: r.maxPercent
|
|
1410
2072
|
}
|
|
1411
2073
|
),
|
|
1412
|
-
/* @__PURE__ */
|
|
1413
|
-
/* @__PURE__ */
|
|
1414
|
-
|
|
1415
|
-
/* @__PURE__ */
|
|
1416
|
-
|
|
2074
|
+
/* @__PURE__ */ n.jsx(Fr, { control: f, fields: e }),
|
|
2075
|
+
/* @__PURE__ */ n.jsxs("div", { className: "mob-body-regular-m flex flex-col items-center justify-center gap-4 desktop:flex-row desktop:justify-between", children: [
|
|
2076
|
+
Vr(i, p, m),
|
|
2077
|
+
/* @__PURE__ */ n.jsx(
|
|
2078
|
+
kt,
|
|
1417
2079
|
{
|
|
2080
|
+
...u,
|
|
1418
2081
|
type: "submit",
|
|
1419
|
-
disabled: i.type === "checkbox" ? !
|
|
1420
|
-
className:
|
|
2082
|
+
disabled: i.type === "checkbox" ? !p : !1,
|
|
2083
|
+
className: a("w-full whitespace-nowrap", {
|
|
1421
2084
|
"w-full desktop:w-[216px]": !!i
|
|
1422
2085
|
}),
|
|
1423
|
-
children:
|
|
2086
|
+
children: "Отправить форму"
|
|
1424
2087
|
}
|
|
1425
2088
|
)
|
|
1426
2089
|
] })
|
|
1427
2090
|
] })
|
|
1428
2091
|
]
|
|
1429
2092
|
}
|
|
1430
|
-
);
|
|
1431
|
-
},
|
|
2093
|
+
) });
|
|
2094
|
+
}, it = () => ({
|
|
1432
2095
|
approve: {
|
|
1433
2096
|
icon: {
|
|
1434
|
-
element: /* @__PURE__ */
|
|
2097
|
+
element: /* @__PURE__ */ n.jsx(c, { name: "status/iconMark" }),
|
|
1435
2098
|
bg: "bg-color-positive-light"
|
|
1436
2099
|
},
|
|
1437
2100
|
title: "Ваша заявка отправлена",
|
|
1438
|
-
description: /* @__PURE__ */
|
|
2101
|
+
description: /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1439
2102
|
"В ближайшее время с Вами свяжутся ",
|
|
1440
|
-
/* @__PURE__ */
|
|
2103
|
+
/* @__PURE__ */ n.jsx("br", {}),
|
|
1441
2104
|
" специалисты нашего Банка"
|
|
1442
2105
|
] }),
|
|
1443
2106
|
button: {
|
|
@@ -1446,13 +2109,13 @@ const Ct = ({ promises: o }) => {
|
|
|
1446
2109
|
},
|
|
1447
2110
|
repeated: {
|
|
1448
2111
|
icon: {
|
|
1449
|
-
element: /* @__PURE__ */
|
|
2112
|
+
element: /* @__PURE__ */ n.jsx(c, { name: "status/iconUser" }),
|
|
1450
2113
|
bg: "bg-color-positive-light"
|
|
1451
2114
|
},
|
|
1452
2115
|
title: "Мы вас узнали",
|
|
1453
|
-
description: /* @__PURE__ */
|
|
2116
|
+
description: /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1454
2117
|
"Решение по прошлой заявке ещё активно. ",
|
|
1455
|
-
/* @__PURE__ */
|
|
2118
|
+
/* @__PURE__ */ n.jsx("br", {}),
|
|
1456
2119
|
"Возвращайтесь к нам позже"
|
|
1457
2120
|
] }),
|
|
1458
2121
|
button: {
|
|
@@ -1461,13 +2124,13 @@ const Ct = ({ promises: o }) => {
|
|
|
1461
2124
|
},
|
|
1462
2125
|
error: {
|
|
1463
2126
|
icon: {
|
|
1464
|
-
element: /* @__PURE__ */
|
|
2127
|
+
element: /* @__PURE__ */ n.jsx(c, { name: "status/iconRetry" }),
|
|
1465
2128
|
bg: "bg-color-warning-light"
|
|
1466
2129
|
},
|
|
1467
2130
|
title: "Что-то пошло не так",
|
|
1468
|
-
description: /* @__PURE__ */
|
|
2131
|
+
description: /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1469
2132
|
"Обновите страницу или попробуйте ",
|
|
1470
|
-
/* @__PURE__ */
|
|
2133
|
+
/* @__PURE__ */ n.jsx("br", {}),
|
|
1471
2134
|
" снова через 5 минут"
|
|
1472
2135
|
] }),
|
|
1473
2136
|
button: {
|
|
@@ -1476,178 +2139,178 @@ const Ct = ({ promises: o }) => {
|
|
|
1476
2139
|
},
|
|
1477
2140
|
reject: {
|
|
1478
2141
|
icon: {
|
|
1479
|
-
element: /* @__PURE__ */
|
|
2142
|
+
element: /* @__PURE__ */ n.jsx(c, { name: "status/badSmile" }),
|
|
1480
2143
|
bg: "bg-color-negative-light"
|
|
1481
2144
|
},
|
|
1482
2145
|
title: "Нам очень жаль",
|
|
1483
|
-
description: /* @__PURE__ */
|
|
2146
|
+
description: /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1484
2147
|
"К сожалению, сейчас мы не можем ",
|
|
1485
|
-
/* @__PURE__ */
|
|
2148
|
+
/* @__PURE__ */ n.jsx("br", {}),
|
|
1486
2149
|
" принять вашу заявку"
|
|
1487
2150
|
] }),
|
|
1488
2151
|
button: {
|
|
1489
2152
|
text: "Вернуться на главную"
|
|
1490
2153
|
}
|
|
1491
2154
|
}
|
|
1492
|
-
}),
|
|
1493
|
-
/* @__PURE__ */
|
|
2155
|
+
}), Sn = ({ status: e, navigationFn: t }) => /* @__PURE__ */ n.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ n.jsx(_, { className: "flex flex-col justify-center", children: /* @__PURE__ */ n.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
|
|
2156
|
+
/* @__PURE__ */ n.jsx(
|
|
1494
2157
|
"span",
|
|
1495
2158
|
{
|
|
1496
|
-
className:
|
|
2159
|
+
className: a(
|
|
1497
2160
|
"flex size-16 items-center justify-center rounded-full bg-color-positive-light",
|
|
1498
|
-
`${
|
|
2161
|
+
`${it()[e].icon.bg}`
|
|
1499
2162
|
),
|
|
1500
|
-
children:
|
|
2163
|
+
children: it()[e].icon.element
|
|
1501
2164
|
}
|
|
1502
2165
|
),
|
|
1503
|
-
/* @__PURE__ */
|
|
1504
|
-
/* @__PURE__ */
|
|
1505
|
-
/* @__PURE__ */
|
|
2166
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center gap-2 text-center desktop:gap-6", children: [
|
|
2167
|
+
/* @__PURE__ */ n.jsx(L, { as: "h2", children: it()[e].title }),
|
|
2168
|
+
/* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: it()[e].description })
|
|
1506
2169
|
] }),
|
|
1507
|
-
/* @__PURE__ */
|
|
1508
|
-
] }) }) }),
|
|
1509
|
-
const [d,
|
|
1510
|
-
return
|
|
1511
|
-
if (!
|
|
2170
|
+
/* @__PURE__ */ n.jsx(kt, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: t, children: it()[e].button.text })
|
|
2171
|
+
] }) }) }), ie = ({ breadcrumb: e, className: t, ...r }) => /* @__PURE__ */ n.jsx("a", { href: e.path, className: a("desk-body-regular-m", t), ...r, children: e.label }), Wr = ({ startsWith: e, endsWith: t, matcher: r, filter: i, rootEnabled: o = !0 }) => {
|
|
2172
|
+
const [d, l] = W([]);
|
|
2173
|
+
return Zt(() => {
|
|
2174
|
+
if (!Jt)
|
|
1512
2175
|
return;
|
|
1513
|
-
let
|
|
1514
|
-
|
|
2176
|
+
let u = window.location.pathname.split("/").filter((x) => !s.isStringEmpty(x));
|
|
2177
|
+
s.isUndefined(e) || (s.isString(e) ? u = u.slice(u.findIndex((x) => x === e)) : u = u.slice(e)), s.isUndefined(t) || (s.isString(t) ? u = u.slice(0, u.findIndex((x) => x === t) + 1) : u = u.slice(0, t + 1));
|
|
1515
2178
|
let p = [], m = "";
|
|
1516
|
-
if (
|
|
1517
|
-
const
|
|
2179
|
+
if (o) {
|
|
2180
|
+
const x = {
|
|
1518
2181
|
index: 0,
|
|
1519
|
-
id:
|
|
2182
|
+
id: Bt(),
|
|
1520
2183
|
path: "/",
|
|
1521
2184
|
label: "home"
|
|
1522
2185
|
};
|
|
1523
|
-
p.push(
|
|
2186
|
+
p.push(x);
|
|
1524
2187
|
}
|
|
1525
|
-
|
|
1526
|
-
m += `/${
|
|
1527
|
-
const
|
|
2188
|
+
u.forEach((x, f) => {
|
|
2189
|
+
m += `/${x}`;
|
|
2190
|
+
const b = {
|
|
1528
2191
|
// while root enabled we need to increment index
|
|
1529
2192
|
// cuz we have root breadcrumb
|
|
1530
|
-
index:
|
|
1531
|
-
id:
|
|
2193
|
+
index: o ? f + 1 : f,
|
|
2194
|
+
id: Bt(),
|
|
1532
2195
|
path: m,
|
|
1533
|
-
label:
|
|
2196
|
+
label: x
|
|
1534
2197
|
};
|
|
1535
|
-
p.push(
|
|
1536
|
-
}),
|
|
1537
|
-
...
|
|
1538
|
-
...
|
|
1539
|
-
}))),
|
|
1540
|
-
}, [t, i,
|
|
1541
|
-
},
|
|
1542
|
-
const
|
|
1543
|
-
return /* @__PURE__ */
|
|
1544
|
-
/* @__PURE__ */
|
|
1545
|
-
|
|
2198
|
+
p.push(b);
|
|
2199
|
+
}), r && (p = p.map((x) => ({
|
|
2200
|
+
...x,
|
|
2201
|
+
...r(x)
|
|
2202
|
+
}))), l(i ? p.filter(i) : p);
|
|
2203
|
+
}, [t, i, r, o, e]), d;
|
|
2204
|
+
}, xt = (e, t, r, i) => e.map((o, d) => {
|
|
2205
|
+
const l = d === i;
|
|
2206
|
+
return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
2207
|
+
/* @__PURE__ */ n.jsx(
|
|
2208
|
+
ie,
|
|
1546
2209
|
{
|
|
1547
|
-
breadcrumb:
|
|
1548
|
-
className:
|
|
1549
|
-
"pointer-events-none text-color-primary-disabled":
|
|
2210
|
+
breadcrumb: o,
|
|
2211
|
+
className: a(r, {
|
|
2212
|
+
"pointer-events-none text-color-primary-disabled": l
|
|
1550
2213
|
})
|
|
1551
2214
|
}
|
|
1552
2215
|
),
|
|
1553
|
-
d !==
|
|
1554
|
-
] },
|
|
1555
|
-
}),
|
|
1556
|
-
const [
|
|
1557
|
-
|
|
1558
|
-
const
|
|
1559
|
-
let
|
|
1560
|
-
return t && (
|
|
1561
|
-
}, [
|
|
1562
|
-
return /* @__PURE__ */
|
|
2216
|
+
d !== e.length - 1 && t
|
|
2217
|
+
] }, o.id);
|
|
2218
|
+
}), Gr = ({ separator: e, ellipsis: t, classes: r, ...i }) => {
|
|
2219
|
+
const [o, d] = W(!1), l = Ct(null);
|
|
2220
|
+
Me(l, () => d(!1));
|
|
2221
|
+
const u = Wr(i), { first: p, middle: m, last: x } = Nt(() => {
|
|
2222
|
+
let b = [], C = [], v = [];
|
|
2223
|
+
return t && (b = u.slice(0, t), C = u.slice(t, u.length - t), v = u.slice(u.length - t)), { first: b, middle: C, last: v };
|
|
2224
|
+
}, [u, t]), f = e ?? /* @__PURE__ */ n.jsx(c, { name: "arrows/arrowRight", className: a("size-4", r == null ? void 0 : r.separator) });
|
|
2225
|
+
return /* @__PURE__ */ n.jsx(
|
|
1563
2226
|
"div",
|
|
1564
2227
|
{
|
|
1565
|
-
className:
|
|
2228
|
+
className: a(
|
|
1566
2229
|
"flex max-w-[840px] flex-wrap items-center",
|
|
1567
2230
|
"gap-x-2 gap-y-1 py-4 text-color-primary-default",
|
|
1568
|
-
|
|
2231
|
+
r == null ? void 0 : r.root
|
|
1569
2232
|
),
|
|
1570
2233
|
children: t ? (
|
|
1571
2234
|
// if ellipsis provided, render hidden breadcrumbs
|
|
1572
|
-
/* @__PURE__ */
|
|
2235
|
+
/* @__PURE__ */ n.jsx(n.Fragment, { children: u.length > t * 2 + 1 ? (
|
|
1573
2236
|
// if we have more than ellipsis (visible crumbs) + available hidden crumbs
|
|
1574
2237
|
// render hidden breadcrumbs
|
|
1575
|
-
/* @__PURE__ */
|
|
1576
|
-
|
|
2238
|
+
/* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2239
|
+
xt(p, f, r == null ? void 0 : r.breadcrumb),
|
|
1577
2240
|
f,
|
|
1578
|
-
m.length > 0 && /* @__PURE__ */
|
|
1579
|
-
/* @__PURE__ */
|
|
1580
|
-
/* @__PURE__ */
|
|
1581
|
-
/* @__PURE__ */
|
|
2241
|
+
m.length > 0 && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2242
|
+
/* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
|
|
2243
|
+
/* @__PURE__ */ n.jsx("button", { onClick: () => d(!0), children: "..." }),
|
|
2244
|
+
/* @__PURE__ */ n.jsx(
|
|
1582
2245
|
"ul",
|
|
1583
2246
|
{
|
|
1584
|
-
ref:
|
|
1585
|
-
className:
|
|
2247
|
+
ref: l,
|
|
2248
|
+
className: a(
|
|
1586
2249
|
"invisible absolute max-h-[264px] overflow-y-auto",
|
|
1587
2250
|
"w-[280px] rounded-sm bg-color-white",
|
|
1588
2251
|
"customScrollbar-y p-1 opacity-0 shadow-sm",
|
|
1589
2252
|
{
|
|
1590
|
-
"visible opacity-100":
|
|
2253
|
+
"visible opacity-100": o
|
|
1591
2254
|
}
|
|
1592
2255
|
),
|
|
1593
|
-
children: m.map((
|
|
1594
|
-
|
|
2256
|
+
children: m.map((b) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
|
|
2257
|
+
ie,
|
|
1595
2258
|
{
|
|
1596
|
-
breadcrumb:
|
|
1597
|
-
className:
|
|
2259
|
+
breadcrumb: b,
|
|
2260
|
+
className: a(
|
|
1598
2261
|
"desk-body-regular-l inline-block py-3",
|
|
1599
2262
|
"w-full rounded-sm bg-color-white px-2",
|
|
1600
2263
|
"text-color-dark hover:bg-color-primary-tr-hover",
|
|
1601
|
-
|
|
2264
|
+
r == null ? void 0 : r.breadcrumb
|
|
1602
2265
|
)
|
|
1603
2266
|
}
|
|
1604
|
-
) },
|
|
2267
|
+
) }, b.id))
|
|
1605
2268
|
}
|
|
1606
2269
|
)
|
|
1607
2270
|
] }),
|
|
1608
2271
|
f
|
|
1609
2272
|
] }),
|
|
1610
|
-
|
|
2273
|
+
xt(x, f, r == null ? void 0 : r.breadcrumb, x.length - 1)
|
|
1611
2274
|
] })
|
|
1612
2275
|
) : (
|
|
1613
2276
|
// otherwise render all breadcrumbs
|
|
1614
|
-
|
|
2277
|
+
xt(u, f, r == null ? void 0 : r.breadcrumb, u.length - 1)
|
|
1615
2278
|
) })
|
|
1616
2279
|
) : (
|
|
1617
2280
|
// if ellipsis doesn't provided render all breadcrumbs
|
|
1618
|
-
|
|
2281
|
+
xt(u, f, r == null ? void 0 : r.breadcrumb, u.length - 1)
|
|
1619
2282
|
)
|
|
1620
2283
|
}
|
|
1621
2284
|
);
|
|
1622
2285
|
};
|
|
1623
|
-
var
|
|
1624
|
-
const
|
|
2286
|
+
var at = /* @__PURE__ */ ((e) => (e.ROOT = "root", e.CURRENT = "current", e))(at || {});
|
|
2287
|
+
const Kr = (e, t) => {
|
|
1625
2288
|
switch (t.type) {
|
|
1626
|
-
case
|
|
2289
|
+
case at.ROOT:
|
|
1627
2290
|
return {
|
|
1628
|
-
...
|
|
2291
|
+
...e,
|
|
1629
2292
|
root: t.payload
|
|
1630
2293
|
};
|
|
1631
|
-
case
|
|
2294
|
+
case at.CURRENT:
|
|
1632
2295
|
return {
|
|
1633
|
-
...
|
|
2296
|
+
...e,
|
|
1634
2297
|
current: t.payload
|
|
1635
2298
|
};
|
|
1636
2299
|
default:
|
|
1637
|
-
return
|
|
1638
|
-
}
|
|
1639
|
-
},
|
|
1640
|
-
const [t,
|
|
1641
|
-
return [t,
|
|
1642
|
-
},
|
|
1643
|
-
type:
|
|
1644
|
-
payload:
|
|
1645
|
-
}),
|
|
1646
|
-
type:
|
|
1647
|
-
payload:
|
|
1648
|
-
}),
|
|
1649
|
-
/* @__PURE__ */
|
|
1650
|
-
|
|
2300
|
+
return e;
|
|
2301
|
+
}
|
|
2302
|
+
}, $r = (e) => {
|
|
2303
|
+
const [t, r] = Ce(Kr, e);
|
|
2304
|
+
return [t, r];
|
|
2305
|
+
}, Zr = (e) => ({
|
|
2306
|
+
type: at.CURRENT,
|
|
2307
|
+
payload: e
|
|
2308
|
+
}), Xr = (e) => ({
|
|
2309
|
+
type: at.ROOT,
|
|
2310
|
+
payload: e
|
|
2311
|
+
}), Jr = ({ categories: e, ...t }) => te(
|
|
2312
|
+
/* @__PURE__ */ n.jsx(
|
|
2313
|
+
vt.div,
|
|
1651
2314
|
{
|
|
1652
2315
|
...t,
|
|
1653
2316
|
layout: !0,
|
|
@@ -1655,38 +2318,38 @@ const Lt = (o, t) => {
|
|
|
1655
2318
|
animate: { opacity: 1 },
|
|
1656
2319
|
transition: { duration: 0.2 },
|
|
1657
2320
|
className: "absolute bg-color-white",
|
|
1658
|
-
children: /* @__PURE__ */
|
|
1659
|
-
var
|
|
1660
|
-
const i =
|
|
1661
|
-
return /* @__PURE__ */
|
|
1662
|
-
|
|
2321
|
+
children: /* @__PURE__ */ n.jsx("div", { className: "mx-auto flex w-[1140px] gap-x-[56px] py-10", children: e.map((r) => {
|
|
2322
|
+
var o;
|
|
2323
|
+
const i = r.link ? "a" : "p";
|
|
2324
|
+
return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-y-6", children: [
|
|
2325
|
+
r.title && /* @__PURE__ */ n.jsxs(
|
|
1663
2326
|
i,
|
|
1664
2327
|
{
|
|
1665
|
-
href: ((
|
|
2328
|
+
href: ((o = r.link) == null ? void 0 : o.href) ?? void 0,
|
|
1666
2329
|
className: "flex items-center gap-x-1 text-16 uppercase text-color-primary-default",
|
|
1667
2330
|
children: [
|
|
1668
|
-
|
|
1669
|
-
/* @__PURE__ */
|
|
2331
|
+
r.title,
|
|
2332
|
+
/* @__PURE__ */ n.jsx(c, { name: "arrows/arrowLink", className: "size-6" })
|
|
1670
2333
|
]
|
|
1671
2334
|
}
|
|
1672
2335
|
),
|
|
1673
|
-
/* @__PURE__ */
|
|
1674
|
-
var
|
|
1675
|
-
return /* @__PURE__ */
|
|
2336
|
+
/* @__PURE__ */ n.jsx("ul", { className: "w-[328px]", children: r.children.map((d) => {
|
|
2337
|
+
var l;
|
|
2338
|
+
return /* @__PURE__ */ n.jsx("li", { className: "w-full [&:not(:last-child)]:mb-4", children: /* @__PURE__ */ n.jsx("a", { href: (l = d.link) == null ? void 0 : l.href, className: "w-full text-16", children: d.title }) }, d.title);
|
|
1676
2339
|
}) })
|
|
1677
|
-
] },
|
|
2340
|
+
] }, r.title);
|
|
1678
2341
|
}) })
|
|
1679
2342
|
}
|
|
1680
2343
|
),
|
|
1681
2344
|
document.body
|
|
1682
|
-
),
|
|
1683
|
-
var
|
|
1684
|
-
const i =
|
|
1685
|
-
return /* @__PURE__ */
|
|
1686
|
-
|
|
2345
|
+
), Yr = ({ category: e, active: t, onActiveTabChange: r }) => {
|
|
2346
|
+
var u, p;
|
|
2347
|
+
const i = Ct(null), o = (u = i.current) == null ? void 0 : u.getBoundingClientRect(), d = t && !s.isArrayEmpty(e.children), l = s.isArrayEmpty(e.children) ? "a" : "span";
|
|
2348
|
+
return /* @__PURE__ */ n.jsxs(
|
|
2349
|
+
vt.div,
|
|
1687
2350
|
{
|
|
1688
2351
|
ref: i,
|
|
1689
|
-
className:
|
|
2352
|
+
className: a(
|
|
1690
2353
|
"relative flex cursor-default items-center justify-center py-4 text-color-dark",
|
|
1691
2354
|
'after:content="" after:absolute after:bottom-0 after:left-1/2 after:h-[1px]',
|
|
1692
2355
|
"after:w-0 after:-translate-x-1/2 after:bg-color-primary-default after:duration-100",
|
|
@@ -1695,17 +2358,17 @@ const Lt = (o, t) => {
|
|
|
1695
2358
|
"after:w-full": d
|
|
1696
2359
|
}
|
|
1697
2360
|
),
|
|
1698
|
-
onMouseEnter: () =>
|
|
1699
|
-
onMouseLeave: () =>
|
|
1700
|
-
onFocus: () =>
|
|
2361
|
+
onMouseEnter: () => r(e.title),
|
|
2362
|
+
onMouseLeave: () => r(null),
|
|
2363
|
+
onFocus: () => r(e.title),
|
|
1701
2364
|
children: [
|
|
1702
|
-
/* @__PURE__ */
|
|
1703
|
-
d && /* @__PURE__ */
|
|
1704
|
-
|
|
2365
|
+
/* @__PURE__ */ n.jsx(l, { href: l === "a" ? (p = e.link) == null ? void 0 : p.href : void 0, className: "desk-body-regular-m outline-none", children: e.title }),
|
|
2366
|
+
d && /* @__PURE__ */ n.jsx(
|
|
2367
|
+
Jr,
|
|
1705
2368
|
{
|
|
1706
|
-
categories:
|
|
2369
|
+
categories: e.children,
|
|
1707
2370
|
style: {
|
|
1708
|
-
top:
|
|
2371
|
+
top: o ? o.top + o.height : 0,
|
|
1709
2372
|
width: window.innerWidth
|
|
1710
2373
|
}
|
|
1711
2374
|
}
|
|
@@ -1713,169 +2376,169 @@ const Lt = (o, t) => {
|
|
|
1713
2376
|
]
|
|
1714
2377
|
}
|
|
1715
2378
|
);
|
|
1716
|
-
},
|
|
1717
|
-
const [t,
|
|
1718
|
-
|
|
2379
|
+
}, tn = Xt(Yr), en = ({ categories: e }) => {
|
|
2380
|
+
const [t, r] = W(null), i = Kt((o) => {
|
|
2381
|
+
r(o);
|
|
1719
2382
|
}, []);
|
|
1720
|
-
return /* @__PURE__ */
|
|
1721
|
-
|
|
1722
|
-
|
|
2383
|
+
return /* @__PURE__ */ n.jsx(ve, { mode: "sync", children: /* @__PURE__ */ n.jsxs("div", { id: "tabs", className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]", children: [
|
|
2384
|
+
e.map((o) => /* @__PURE__ */ n.jsx(
|
|
2385
|
+
tn,
|
|
1723
2386
|
{
|
|
1724
|
-
category:
|
|
1725
|
-
active: t ===
|
|
2387
|
+
category: o,
|
|
2388
|
+
active: t === o.title,
|
|
1726
2389
|
onActiveTabChange: i
|
|
1727
2390
|
},
|
|
1728
|
-
|
|
2391
|
+
o.title
|
|
1729
2392
|
)),
|
|
1730
|
-
/* @__PURE__ */
|
|
2393
|
+
/* @__PURE__ */ n.jsx("div", { className: "ml-auto", children: "Личный кабинет" })
|
|
1731
2394
|
] }) });
|
|
1732
|
-
},
|
|
1733
|
-
category:
|
|
2395
|
+
}, rn = Xt(en), nn = ({
|
|
2396
|
+
category: e,
|
|
1734
2397
|
selectedCategory: t,
|
|
1735
|
-
onCurrentCategoryChange:
|
|
2398
|
+
onCurrentCategoryChange: r,
|
|
1736
2399
|
onRootCategoryChange: i,
|
|
1737
|
-
active:
|
|
2400
|
+
active: o,
|
|
1738
2401
|
...d
|
|
1739
|
-
}) => /* @__PURE__ */
|
|
2402
|
+
}) => /* @__PURE__ */ n.jsxs(
|
|
1740
2403
|
"div",
|
|
1741
2404
|
{
|
|
1742
2405
|
...d,
|
|
1743
2406
|
onClick: () => {
|
|
1744
|
-
|
|
2407
|
+
r(e.children[0]), i(e);
|
|
1745
2408
|
},
|
|
1746
|
-
className:
|
|
1747
|
-
"text-color-dark":
|
|
2409
|
+
className: a("group/category relative cursor-default text-color-blue-grey-600 duration-100 hover:text-color-dark", {
|
|
2410
|
+
"text-color-dark": o
|
|
1748
2411
|
}),
|
|
1749
2412
|
children: [
|
|
1750
|
-
/* @__PURE__ */
|
|
1751
|
-
|
|
2413
|
+
/* @__PURE__ */ n.jsx("span", { className: "desk-body-regular-m", children: e.title }),
|
|
2414
|
+
e.children.length > 1 && /* @__PURE__ */ n.jsx(
|
|
1752
2415
|
"div",
|
|
1753
2416
|
{
|
|
1754
|
-
className:
|
|
2417
|
+
className: a(
|
|
1755
2418
|
"absolute right-0 top-full z-10 flex w-max flex-col",
|
|
1756
2419
|
"invisible bg-color-white opacity-0 shadow-sm group-hover/category:visible group-hover/category:opacity-100",
|
|
1757
2420
|
"rounded-sm p-1"
|
|
1758
2421
|
),
|
|
1759
|
-
children:
|
|
2422
|
+
children: e.children.map((l) => /* @__PURE__ */ n.jsx(
|
|
1760
2423
|
"span",
|
|
1761
2424
|
{
|
|
1762
|
-
onClick: (
|
|
1763
|
-
|
|
2425
|
+
onClick: (u) => {
|
|
2426
|
+
u.stopPropagation(), u.nativeEvent.stopPropagation(), i(e), r(l);
|
|
1764
2427
|
},
|
|
1765
|
-
className:
|
|
2428
|
+
className: a(
|
|
1766
2429
|
"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",
|
|
1767
2430
|
{
|
|
1768
|
-
"text-color-primary-default": t.title ===
|
|
2431
|
+
"text-color-primary-default": t.title === l.title
|
|
1769
2432
|
}
|
|
1770
2433
|
),
|
|
1771
|
-
children:
|
|
2434
|
+
children: l.title
|
|
1772
2435
|
},
|
|
1773
|
-
|
|
2436
|
+
l.title
|
|
1774
2437
|
))
|
|
1775
2438
|
}
|
|
1776
2439
|
)
|
|
1777
2440
|
]
|
|
1778
2441
|
}
|
|
1779
|
-
),
|
|
1780
|
-
const [i,
|
|
1781
|
-
return /* @__PURE__ */
|
|
1782
|
-
/* @__PURE__ */
|
|
1783
|
-
/* @__PURE__ */
|
|
1784
|
-
|
|
1785
|
-
const
|
|
1786
|
-
return /* @__PURE__ */
|
|
1787
|
-
|
|
2442
|
+
), on = ({ categories: e, helpers: t, phone: r }) => {
|
|
2443
|
+
const [i, o] = $r({ root: e[0].children[0], current: e[0].children[0] });
|
|
2444
|
+
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2445
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)] py-4", children: [
|
|
2446
|
+
/* @__PURE__ */ n.jsx(c, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
|
|
2447
|
+
e.map((d) => {
|
|
2448
|
+
const l = i.root.title === d.title;
|
|
2449
|
+
return /* @__PURE__ */ n.jsx(
|
|
2450
|
+
nn,
|
|
1788
2451
|
{
|
|
1789
2452
|
category: d,
|
|
1790
2453
|
selectedCategory: i.current,
|
|
1791
|
-
onCurrentCategoryChange: (
|
|
1792
|
-
onRootCategoryChange: (
|
|
1793
|
-
active:
|
|
2454
|
+
onCurrentCategoryChange: (u) => o(Zr(u)),
|
|
2455
|
+
onRootCategoryChange: (u) => o(Xr(u)),
|
|
2456
|
+
active: l
|
|
1794
2457
|
},
|
|
1795
2458
|
d.title
|
|
1796
2459
|
);
|
|
1797
2460
|
}),
|
|
1798
|
-
/* @__PURE__ */
|
|
1799
|
-
t.map((d) => /* @__PURE__ */
|
|
2461
|
+
/* @__PURE__ */ n.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
|
|
2462
|
+
t.map((d) => /* @__PURE__ */ n.jsxs(
|
|
1800
2463
|
"a",
|
|
1801
2464
|
{
|
|
1802
2465
|
href: d.link.href,
|
|
1803
2466
|
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
1804
2467
|
children: [
|
|
1805
|
-
d.link.icon && /* @__PURE__ */
|
|
2468
|
+
d.link.icon && /* @__PURE__ */ n.jsx(c, { name: d.link.icon, className: "size-4" }),
|
|
1806
2469
|
d.title
|
|
1807
2470
|
]
|
|
1808
2471
|
},
|
|
1809
2472
|
d.title
|
|
1810
2473
|
)),
|
|
1811
|
-
/* @__PURE__ */
|
|
1812
|
-
/* @__PURE__ */
|
|
2474
|
+
/* @__PURE__ */ n.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
|
|
2475
|
+
/* @__PURE__ */ n.jsx(
|
|
1813
2476
|
"a",
|
|
1814
2477
|
{
|
|
1815
|
-
href: `tel:${
|
|
2478
|
+
href: `tel:${r}`,
|
|
1816
2479
|
className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
|
|
1817
|
-
children:
|
|
2480
|
+
children: bt(r, "x xxx xxx xx xx")
|
|
1818
2481
|
}
|
|
1819
2482
|
)
|
|
1820
2483
|
] }),
|
|
1821
|
-
/* @__PURE__ */
|
|
2484
|
+
/* @__PURE__ */ n.jsx(rn, { categories: i.current.children })
|
|
1822
2485
|
] });
|
|
1823
|
-
},
|
|
1824
|
-
|
|
2486
|
+
}, dn = ({ category: e }) => /* @__PURE__ */ n.jsx(
|
|
2487
|
+
rt,
|
|
1825
2488
|
{
|
|
1826
|
-
label:
|
|
1827
|
-
icon: /* @__PURE__ */
|
|
2489
|
+
label: e.title ?? "",
|
|
2490
|
+
icon: /* @__PURE__ */ n.jsx(c, { name: "arrows/arrowRight", className: "-rotate-90" }),
|
|
1828
2491
|
classes: {
|
|
1829
2492
|
root: "w-full",
|
|
1830
2493
|
header: {
|
|
1831
2494
|
trigger: "py-2 data-[open=false]:bg-color-white",
|
|
1832
2495
|
label: "desk-body-regular-m"
|
|
1833
2496
|
},
|
|
1834
|
-
content:
|
|
2497
|
+
content: a(
|
|
1835
2498
|
"relative",
|
|
1836
2499
|
'after:content-"" after:absolute after:w-[calc(100%-32px)]',
|
|
1837
2500
|
"after:bottom-0 after:left-1/2 after:-translate-x-1/2",
|
|
1838
2501
|
"after:h-[1px] after:bg-color-blue-grey-200"
|
|
1839
2502
|
)
|
|
1840
2503
|
},
|
|
1841
|
-
children: /* @__PURE__ */
|
|
1842
|
-
var
|
|
1843
|
-
const
|
|
1844
|
-
return /* @__PURE__ */
|
|
1845
|
-
/* @__PURE__ */
|
|
2504
|
+
children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-start justify-center gap-y-4", children: e.children.map((t) => {
|
|
2505
|
+
var o;
|
|
2506
|
+
const r = !!t.link, i = r ? "a" : "p";
|
|
2507
|
+
return /* @__PURE__ */ n.jsxs("ul", { className: "w-full list-none p-0", children: [
|
|
2508
|
+
/* @__PURE__ */ n.jsxs(
|
|
1846
2509
|
i,
|
|
1847
2510
|
{
|
|
1848
|
-
href:
|
|
2511
|
+
href: r ? (o = t.link) == null ? void 0 : o.href : void 0,
|
|
1849
2512
|
className: "mb-3 flex items-center gap-x-1 text-16 text-color-primary-default",
|
|
1850
2513
|
children: [
|
|
1851
2514
|
t.title,
|
|
1852
|
-
/* @__PURE__ */
|
|
2515
|
+
/* @__PURE__ */ n.jsx(c, { name: "arrows/arrowLink" })
|
|
1853
2516
|
]
|
|
1854
2517
|
}
|
|
1855
2518
|
),
|
|
1856
2519
|
t.children.map((d) => {
|
|
1857
|
-
var
|
|
1858
|
-
return /* @__PURE__ */
|
|
2520
|
+
var l;
|
|
2521
|
+
return /* @__PURE__ */ n.jsx("li", { className: "inline-block w-full [&:not(:last-child)]:mb-3", children: /* @__PURE__ */ n.jsx("a", { href: (l = d.link) == null ? void 0 : l.href, className: "w-full", children: d.title }) }, d.title);
|
|
1859
2522
|
})
|
|
1860
2523
|
] }, t.title);
|
|
1861
2524
|
}) })
|
|
1862
2525
|
},
|
|
1863
|
-
|
|
1864
|
-
),
|
|
2526
|
+
e.title
|
|
2527
|
+
), an = (e) => e.map((t) => ({
|
|
1865
2528
|
value: t.title ?? "",
|
|
1866
2529
|
label: t.title ?? ""
|
|
1867
|
-
})),
|
|
1868
|
-
const
|
|
1869
|
-
|
|
1870
|
-
}, p =
|
|
2530
|
+
})), ln = ({ categories: e, helpers: t, phone: r, ...i }) => {
|
|
2531
|
+
const o = an(e), [d, l] = W(o[0]), u = (m) => {
|
|
2532
|
+
s.isUndefined(m) || s.isArray(m) || l(m);
|
|
2533
|
+
}, p = Nt(() => {
|
|
1871
2534
|
var m;
|
|
1872
|
-
return
|
|
1873
|
-
}, [d,
|
|
1874
|
-
return /* @__PURE__ */
|
|
1875
|
-
|
|
2535
|
+
return s.isUndefined(d) || s.isArray(d) ? [] : ((m = e.find((x) => x.title === d.value)) == null ? void 0 : m.children) ?? [];
|
|
2536
|
+
}, [d, e]);
|
|
2537
|
+
return /* @__PURE__ */ n.jsxs(
|
|
2538
|
+
vt.div,
|
|
1876
2539
|
{
|
|
1877
2540
|
...i,
|
|
1878
|
-
className:
|
|
2541
|
+
className: a(
|
|
1879
2542
|
"absolute w-full max-w-[calc(636px-32px)]",
|
|
1880
2543
|
"absolute left-1/2 top-full bg-color-white p-4",
|
|
1881
2544
|
"-translate-x-1/2 overflow-x-hidden",
|
|
@@ -1884,81 +2547,82 @@ const Lt = (o, t) => {
|
|
|
1884
2547
|
initial: { opacity: 0 },
|
|
1885
2548
|
animate: { opacity: 1 },
|
|
1886
2549
|
children: [
|
|
1887
|
-
/* @__PURE__ */
|
|
1888
|
-
/* @__PURE__ */
|
|
1889
|
-
var
|
|
1890
|
-
return
|
|
2550
|
+
/* @__PURE__ */ n.jsx(Gt.SelectBase, { label: "Категория", options: o, value: d, onChange: u }),
|
|
2551
|
+
/* @__PURE__ */ n.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: p.map((m) => {
|
|
2552
|
+
var x;
|
|
2553
|
+
return s.isArrayEmpty(m.children) ? /* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsx("a", { href: (x = m.link) == null ? void 0 : x.href, className: "desk-body-regular-m inline-block w-full", children: m.title }) }, m.title) : /* @__PURE__ */ n.jsx(dn, { category: m }, m.title);
|
|
1891
2554
|
}) }),
|
|
1892
|
-
/* @__PURE__ */
|
|
1893
|
-
/* @__PURE__ */
|
|
2555
|
+
/* @__PURE__ */ n.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
|
|
2556
|
+
/* @__PURE__ */ n.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
|
|
1894
2557
|
t.map((m) => {
|
|
1895
|
-
var
|
|
1896
|
-
return /* @__PURE__ */
|
|
1897
|
-
((f = m.link) == null ? void 0 : f.icon) && /* @__PURE__ */
|
|
2558
|
+
var x, f;
|
|
2559
|
+
return /* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsxs("a", { href: (x = m.link) == null ? void 0 : x.href, className: "flex w-full items-center gap-x-1", children: [
|
|
2560
|
+
((f = m.link) == null ? void 0 : f.icon) && /* @__PURE__ */ n.jsx(c, { name: m.link.icon, className: "size-4" }),
|
|
1898
2561
|
m.title
|
|
1899
2562
|
] }) }, m.title);
|
|
1900
2563
|
}),
|
|
1901
|
-
/* @__PURE__ */
|
|
1902
|
-
/* @__PURE__ */
|
|
1903
|
-
|
|
2564
|
+
/* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsxs("a", { href: `tel:${r}`, className: "flex w-full items-center gap-x-1", children: [
|
|
2565
|
+
/* @__PURE__ */ n.jsx(c, { name: "communication/phone", className: "size-4" }),
|
|
2566
|
+
bt(r)
|
|
1904
2567
|
] }) })
|
|
1905
2568
|
] })
|
|
1906
2569
|
]
|
|
1907
2570
|
}
|
|
1908
2571
|
);
|
|
1909
|
-
},
|
|
2572
|
+
}, un = ({ categories: e, helpers: t, phone: r }) => {
|
|
1910
2573
|
var p;
|
|
1911
|
-
const i =
|
|
1912
|
-
return /* @__PURE__ */
|
|
1913
|
-
/* @__PURE__ */
|
|
1914
|
-
/* @__PURE__ */
|
|
1915
|
-
d &&
|
|
1916
|
-
/* @__PURE__ */
|
|
1917
|
-
|
|
2574
|
+
const i = Ct(null), o = (p = i.current) == null ? void 0 : p.getBoundingClientRect(), [d, l] = W(!1), u = () => l(!d);
|
|
2575
|
+
return /* @__PURE__ */ n.jsxs("div", { ref: i, className: "relative flex w-full items-center justify-between border-b border-b-blue-grey-500 py-4", children: [
|
|
2576
|
+
/* @__PURE__ */ n.jsx(c, { name: "brandLogos/logoMain", className: "w-[130px]" }),
|
|
2577
|
+
/* @__PURE__ */ n.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ n.jsx(c, { name: d ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
|
|
2578
|
+
d && te(
|
|
2579
|
+
/* @__PURE__ */ n.jsx(
|
|
2580
|
+
ln,
|
|
1918
2581
|
{
|
|
1919
|
-
categories:
|
|
2582
|
+
categories: e,
|
|
1920
2583
|
helpers: t,
|
|
1921
|
-
phone:
|
|
1922
|
-
style: { top:
|
|
2584
|
+
phone: r,
|
|
2585
|
+
style: { top: o ? o.top + o.height : 0 }
|
|
1923
2586
|
}
|
|
1924
2587
|
),
|
|
1925
2588
|
document.body
|
|
1926
2589
|
)
|
|
1927
2590
|
] });
|
|
1928
|
-
},
|
|
1929
|
-
const { isMobile: i } =
|
|
1930
|
-
return /* @__PURE__ */
|
|
1931
|
-
i ? /* @__PURE__ */
|
|
1932
|
-
/* @__PURE__ */
|
|
1933
|
-
|
|
2591
|
+
}, Fn = ({ categories: e, helpers: t, phone: r }) => {
|
|
2592
|
+
const { isMobile: i } = G();
|
|
2593
|
+
return /* @__PURE__ */ n.jsxs("div", { id: j.seoHeader, "data-test-id": j.seoHeader, className: "mx-auto w-full max-w-[1440px]", children: [
|
|
2594
|
+
i ? /* @__PURE__ */ n.jsx(un, { categories: e.map((o) => o.children).flat(), helpers: t, phone: r }) : /* @__PURE__ */ n.jsx(on, { categories: e, helpers: t, phone: r }),
|
|
2595
|
+
/* @__PURE__ */ n.jsx(
|
|
2596
|
+
Gr,
|
|
1934
2597
|
{
|
|
1935
2598
|
ellipsis: i ? 1 : void 0,
|
|
1936
|
-
matcher: (
|
|
2599
|
+
matcher: (o) => ({ label: Ee(o.label).split("-").join(" ") })
|
|
1937
2600
|
}
|
|
1938
2601
|
)
|
|
1939
2602
|
] });
|
|
1940
2603
|
};
|
|
1941
2604
|
export {
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
2605
|
+
ee as Advantages,
|
|
2606
|
+
En as AuthProvider,
|
|
2607
|
+
vn as Banner,
|
|
2608
|
+
_t as BannerWithSeparateImg,
|
|
2609
|
+
kn as Benefit,
|
|
2610
|
+
Gr as Breadcrumbs,
|
|
2611
|
+
X as ButtonWithHandlers,
|
|
2612
|
+
On as DynamicForm,
|
|
2613
|
+
Sn as FallbacksView,
|
|
2614
|
+
Fr as FieldMapper,
|
|
2615
|
+
Nn as Footer,
|
|
2616
|
+
_r as HTMLParser,
|
|
2617
|
+
ft as HTMLRenderer,
|
|
2618
|
+
wn as Header,
|
|
2619
|
+
In as InterLinking,
|
|
2620
|
+
Tn as LongBanner,
|
|
2621
|
+
Fn as SeoHeader,
|
|
2622
|
+
Cn as Stepper,
|
|
2623
|
+
Mn as UsefulInfo,
|
|
2624
|
+
Le as WIDGET_LIST,
|
|
2625
|
+
Ar as queryClient,
|
|
2626
|
+
j as widgetIds
|
|
1963
2627
|
};
|
|
1964
2628
|
//# sourceMappingURL=widget.js.map
|