@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/widget.js CHANGED
@@ -1,18 +1,680 @@
1
- var ae = Object.defineProperty;
2
- var pe = (o, t, n) => t in o ? ae(o, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : o[t] = n;
3
- var B = (o, t, n) => pe(o, typeof t != "symbol" ? t + "" : t, n);
4
- import { j as e, B as U, c as k, R as y, l as Q, r as me, H as N, i as h, s as R, p as ue, L as fe, n as V, A as E, t as he, q as be, U as Y, m as W, k as je } from "./index-CTkhWiic.js";
5
- import { c as l, T as j } from "./typeGuards-Bhdr9KYW.js";
6
- import * as _ from "react";
7
- import { useCallback as A, useState as v, useMemo as G, createElement as P, Fragment as ce, useEffect as s, useRef as $, useReducer as ke, memo as ee } from "react";
8
- import { s as ge, c as F, g as Z, a as we } from "./uuid-2wKG15vy.js";
9
- import { i as te } from "./isClient-C9aZtt2Q.js";
10
- import { a as C, c as ye, b as Ne } from "./useDebounce-QgEEiWs9.js";
11
- import { o as ve } from "./utils-Cc0awqbk.js";
12
- import { z as re, Z as Ce } from "./index-DskTH4KE.js";
13
- import { u as Te } from "./useFieldsProgress-BXzIWmGP.js";
14
- import { createPortal as oe } from "react-dom";
15
- const Ie = [
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
- ], b = Ie.reduce(
27
- (o, t) => (o[t] = t, o),
688
+ ], j = Le.reduce(
689
+ (e, t) => (e[t] = t, e),
28
690
  {}
29
- ), Ee = (o) => A(() => {
30
- switch (o.handler) {
691
+ ), Qe = (e) => Kt(() => {
692
+ switch (e.handler) {
31
693
  case "navigate": {
32
- const { url: n, target: i, rel: r } = o;
33
- te && (window == null || window.open(n, i, r));
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: n } = o ?? "";
38
- ge({ widgetId: n });
699
+ const { widgetId: r } = e ?? "";
700
+ Te({ widgetId: r });
39
701
  break;
40
702
  }
41
703
  }
42
- }, [o]), I = ({ handlerOptions: o, ...t }) => {
43
- const n = Ee(o);
44
- return /* @__PURE__ */ e.jsx(U, { onClick: n, ...t, children: t.children });
45
- }, Be = k(
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
- ), Se = ({
57
- subtitle: o,
718
+ ), qe = ({
719
+ subtitle: e,
58
720
  title: t,
59
- img: n,
721
+ img: r,
60
722
  mobileImg: i,
61
- classes: r,
723
+ classes: o,
62
724
  withButton: d,
63
- button: x,
64
- variant: a,
725
+ button: l,
726
+ variant: u,
65
727
  color: p
66
728
  }) => {
67
- const { isDesktop: m } = C();
68
- return /* @__PURE__ */ e.jsxs(
729
+ const { isDesktop: m } = G();
730
+ return /* @__PURE__ */ n.jsxs(
69
731
  "li",
70
732
  {
71
733
  style: { backgroundColor: p ?? "#f4f8fe" },
72
- className: l(Be({ variant: a }), { "pb-0": i }, { "pb-12": !i }, r == null ? void 0 : r.root),
734
+ className: a(ze({ variant: u }), { "pb-0": i }, { "pb-12": !i }, o == null ? void 0 : o.root),
73
735
  children: [
74
- /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", r == null ? void 0 : r.wrapper), children: [
75
- /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col gap-4", r == null ? void 0 : r.textContainer), children: [
76
- /* @__PURE__ */ e.jsx("div", { dangerouslySetInnerHTML: { __html: t }, className: l("desktop:desk-title-bold-s", r == null ? void 0 : r.title) }),
77
- /* @__PURE__ */ e.jsx(
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: o },
81
- className: l("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l", r == null ? void 0 : r.subtitle)
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 && (x == null ? void 0 : x.handlerOptions) && /* @__PURE__ */ e.jsx(I, { intent: "primary", className: l("desktop:w-[200px]", r == null ? void 0 : r.button), size: "lg", ...x })
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) && n && /* @__PURE__ */ e.jsx("div", { className: l("flex w-full justify-end", r == null ? void 0 : r.imgContainer), children: n && "url" in n && j.isObject(n) ? /* @__PURE__ */ e.jsx("img", { className: l("h-[246px] object-cover", r == null ? void 0 : r.img), src: n.url, alt: t }) : n })
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
- }, _e = k("grid gap-4", {
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
- }), ir = ({ headline: o, details: t, variant: n, classes: i }) => /* @__PURE__ */ e.jsx("section", { id: b.benefit, "data-test-id": b.benefit, className: l("pb-20", i == null ? void 0 : i.root), children: /* @__PURE__ */ e.jsxs(y, { className: i == null ? void 0 : i.container, children: [
101
- /* @__PURE__ */ e.jsx(
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: o },
105
- className: l("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", i == null ? void 0 : i.heading)
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__ */ e.jsx("ul", { className: l(_e({ variant: n }), i == null ? void 0 : i.grid), children: t == null ? void 0 : t.map((r) => /* @__PURE__ */ e.jsx(Se, { variant: n, classes: i == null ? void 0 : i.item, ...r }, r.title)) })
109
- ] }) }), Me = ({ variant: o, details: t }) => {
110
- switch (o) {
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__ */ e.jsx(I, { ...t });
774
+ return /* @__PURE__ */ n.jsx(X, { ...t });
113
775
  case "withPhone":
114
- return /* @__PURE__ */ e.jsx(Q, { classes: { root: "items-end" }, ...t, phone: F(t.phone) });
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
- }, dr = (o) => {
119
- const { logoPath: t = "/", logoType: n = "main", classes: i } = o;
120
- return /* @__PURE__ */ e.jsx(
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: b.header,
124
- "data-test-id": b.header,
125
- className: l("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", i == null ? void 0 : i.header),
126
- children: /* @__PURE__ */ e.jsx(y, { className: l(i == null ? void 0 : i.container), children: /* @__PURE__ */ e.jsxs("div", { className: l("flex items-center justify-between gap-5", i == null ? void 0 : i.wrapper), children: [
127
- /* @__PURE__ */ e.jsx(
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: l(
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: me[n]
800
+ children: ge[r]
139
801
  }
140
802
  ),
141
- Me(o)
803
+ Ue(e)
142
804
  ] }) })
143
805
  }
144
806
  );
145
- }, He = ({
146
- headTitle: o,
807
+ }, Ve = ({
808
+ headTitle: e,
147
809
  subtitle: t,
148
- buttonsConfig: n,
810
+ buttonsConfig: r,
149
811
  advantages: i,
150
- classes: r,
812
+ classes: o,
151
813
  imgMobile: d,
152
- imgDesktop: x,
153
- color: a
814
+ imgDesktop: l,
815
+ color: u
154
816
  }) => {
155
- var T;
156
- const { isDesktop: p, isMobile: m } = C(), { primary: u, secondary: f } = n || {}, c = d && "url" in d && j.isObject(d) ? /* @__PURE__ */ e.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: d.url }) : d, w = x && "url" in x && j.isObject(x) ? /* @__PURE__ */ e.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: x.url }) : x, g = /* @__PURE__ */ e.jsx(
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: l(
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
- r == null ? void 0 : r.advantageContainer
823
+ o == null ? void 0 : o.advantageContainer
162
824
  ),
163
- children: (i == null ? void 0 : i.details) && ((T = i == null ? void 0 : i.details) == null ? void 0 : T.items.length) > 0 && /* @__PURE__ */ e.jsx(ne, { ...i })
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__ */ e.jsxs(e.Fragment, { children: [
167
- /* @__PURE__ */ e.jsxs(
828
+ return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
829
+ /* @__PURE__ */ n.jsxs(
168
830
  "section",
169
831
  {
170
- id: b.banner,
171
- "data-test-id": b.banner,
172
- style: { backgroundColor: a ?? "#d9edff" },
173
- className: l("relative h-[552px] desktop:h-[456px]", r == null ? void 0 : r.root),
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__ */ e.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: m ? c : w }),
176
- /* @__PURE__ */ e.jsxs(y, { className: l("h-full", r == null ? void 0 : r.container), children: [
177
- /* @__PURE__ */ e.jsx("div", { className: l("flex h-full", r == null ? void 0 : r.wrapper), children: /* @__PURE__ */ e.jsxs("div", { className: l("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", r == null ? void 0 : r.textBlock), children: [
178
- /* @__PURE__ */ e.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
179
- /* @__PURE__ */ e.jsx(
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: o },
183
- className: l("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", r == null ? void 0 : r.title)
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__ */ e.jsx(
848
+ /* @__PURE__ */ n.jsx(
187
849
  "div",
188
850
  {
189
851
  dangerouslySetInnerHTML: { __html: t },
190
- className: l("desk-body-regular-l text-color-dark", r == null ? void 0 : r.subtitle)
852
+ className: a("desk-body-regular-l text-color-dark", o == null ? void 0 : o.subtitle)
191
853
  }
192
854
  )
193
855
  ] }),
194
- /* @__PURE__ */ e.jsxs(
856
+ /* @__PURE__ */ n.jsxs(
195
857
  "div",
196
858
  {
197
- className: l(
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
- r == null ? void 0 : r.group
862
+ o == null ? void 0 : o.group
201
863
  ),
202
864
  children: [
203
- u.enabled && /* @__PURE__ */ e.jsx(
204
- I,
865
+ x.enabled && /* @__PURE__ */ n.jsx(
866
+ X,
205
867
  {
206
- className: l("w-full desktop:max-w-[216px]", r == null ? void 0 : r.primary),
868
+ className: a("w-full desktop:max-w-[216px]", o == null ? void 0 : o.primary),
207
869
  size: "lg",
208
870
  intent: "primary",
209
- ...u.buttonContent
871
+ ...x.buttonContent
210
872
  }
211
873
  ),
212
- (f == null ? void 0 : f.enabled) && /* @__PURE__ */ e.jsx(
213
- I,
874
+ (f == null ? void 0 : f.enabled) && /* @__PURE__ */ n.jsx(
875
+ X,
214
876
  {
215
877
  intent: "secondary",
216
- className: l("w-full desktop:max-w-[216px]", r == null ? void 0 : r.secondary),
217
- ...u.buttonContent
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) && g
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) && g
891
+ m && (i == null ? void 0 : i.enabled) && v
230
892
  ] });
231
- }, X = ({
232
- headTitle: o,
893
+ }, _t = ({
894
+ headTitle: e,
233
895
  subtitle: t,
234
- buttonsConfig: n,
896
+ buttonsConfig: r,
235
897
  advantages: i,
236
- classes: r,
898
+ classes: o,
237
899
  imgMobile: d,
238
- imgDesktop: x,
239
- color: a
900
+ imgDesktop: l,
901
+ color: u
240
902
  }) => {
241
- var T;
242
- const { isDesktop: p, isMobile: m } = C(), { primary: u, secondary: f } = n || {}, c = d && "url" in d && j.isObject(d) ? /* @__PURE__ */ e.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: d.url }) : d, w = x && "url" in x && j.isObject(x) ? /* @__PURE__ */ e.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: x.url }) : x, g = /* @__PURE__ */ e.jsx(
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: l(
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
- r == null ? void 0 : r.advantageContainer
909
+ o == null ? void 0 : o.advantageContainer
248
910
  ),
249
- children: (i == null ? void 0 : i.details) && ((T = i == null ? void 0 : i.details) == null ? void 0 : T.items.length) > 0 && /* @__PURE__ */ e.jsx(ne, { ...i })
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__ */ e.jsxs(e.Fragment, { children: [
253
- /* @__PURE__ */ e.jsx(
914
+ return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
915
+ /* @__PURE__ */ n.jsx(
254
916
  "section",
255
917
  {
256
- id: b.banner,
257
- "data-test-id": b.banner,
258
- style: { backgroundColor: a ?? "#d9edff" },
259
- className: l("bg-banner-skyblue-300 desktop:h-[456px]", r == null ? void 0 : r.root),
260
- children: /* @__PURE__ */ e.jsxs(y, { className: l("relative", r == null ? void 0 : r.container), children: [
261
- /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col desktop:flex-row desktop:justify-between", r == null ? void 0 : r.wrapper), children: [
262
- /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
263
- /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col gap-4 pt-6 desktop:pt-0", r == null ? void 0 : r.textBlock), children: [
264
- /* @__PURE__ */ e.jsx(
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: o },
268
- className: l("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", r == null ? void 0 : r.title)
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__ */ e.jsx(
933
+ /* @__PURE__ */ n.jsx(
272
934
  "div",
273
935
  {
274
936
  dangerouslySetInnerHTML: { __html: t },
275
- className: l("desk-body-regular-l text-color-dark", r == null ? void 0 : r.subtitle)
937
+ className: a("desk-body-regular-l text-color-dark", o == null ? void 0 : o.subtitle)
276
938
  }
277
939
  )
278
940
  ] }),
279
- /* @__PURE__ */ e.jsxs(
941
+ /* @__PURE__ */ n.jsxs(
280
942
  "div",
281
943
  {
282
- className: l(
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
- r == null ? void 0 : r.group
947
+ o == null ? void 0 : o.group
286
948
  ),
287
949
  children: [
288
- u.enabled && /* @__PURE__ */ e.jsx(
289
- I,
950
+ x.enabled && /* @__PURE__ */ n.jsx(
951
+ X,
290
952
  {
291
- className: l("w-full desktop:max-w-[216px]", r == null ? void 0 : r.primary),
953
+ className: a("w-full desktop:max-w-[216px]", o == null ? void 0 : o.primary),
292
954
  size: "lg",
293
955
  intent: "primary",
294
- ...u.buttonContent
956
+ ...x.buttonContent
295
957
  }
296
958
  ),
297
- (f == null ? void 0 : f.enabled) && /* @__PURE__ */ e.jsx(
298
- I,
959
+ (f == null ? void 0 : f.enabled) && /* @__PURE__ */ n.jsx(
960
+ X,
299
961
  {
300
962
  intent: "secondary",
301
- className: l("w-full desktop:max-w-[216px]", r == null ? void 0 : r.secondary),
302
- ...u.buttonContent
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__ */ e.jsx("div", { className: l("flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]", r == null ? void 0 : r.imageContainer), children: m ? c : w })
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) && g
973
+ p && (i == null ? void 0 : i.enabled) && v
312
974
  ] })
313
975
  }
314
976
  ),
315
- m && (i == null ? void 0 : i.enabled) && g
977
+ m && (i == null ? void 0 : i.enabled) && v
316
978
  ] });
317
- }, lr = ({ variant: o, ...t }) => {
318
- switch (o) {
979
+ }, vn = ({ variant: e, ...t }) => {
980
+ switch (e) {
319
981
  case "separateImg":
320
- return /* @__PURE__ */ e.jsx(X, { ...t });
982
+ return /* @__PURE__ */ n.jsx(_t, { ...t });
321
983
  case "fullImg":
322
- return /* @__PURE__ */ e.jsx(He, { ...t });
984
+ return /* @__PURE__ */ n.jsx(Ve, { ...t });
323
985
  default:
324
- return /* @__PURE__ */ e.jsx(X, { ...t });
986
+ return /* @__PURE__ */ n.jsx(_t, { ...t });
325
987
  }
326
- }, ne = ({ details: o, classes: t }) => {
327
- const { variant: n, items: i } = o ?? {};
328
- return /* @__PURE__ */ e.jsx(
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: l(
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]": n === "threeCards" },
335
- { "desktop:max-w-[1140px]": n === "fourCards" },
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: r, description: d }) => /* @__PURE__ */ e.jsxs(
1000
+ children: i == null ? void 0 : i.map(({ title: o, description: d }) => /* @__PURE__ */ n.jsxs(
339
1001
  "div",
340
1002
  {
341
- className: l(
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__ */ e.jsx(N, { as: "h4", className: l("text-color-dark", t == null ? void 0 : t.title), children: r }),
347
- /* @__PURE__ */ e.jsx("p", { className: l("desk-body-regular-l text-color-secondary", t == null ? void 0 : t.description), children: d })
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
- r
1012
+ o
351
1013
  ))
352
1014
  }
353
1015
  );
354
- }, Le = ({ socialsLinks: o, classes: t }) => /* @__PURE__ */ e.jsx("div", { className: l("mt-4 flex items-center gap-2 desktop:mt-6", t == null ? void 0 : t.socialRoot), children: o == null ? void 0 : o.map(({ iconName: n, href: i }) => /* @__PURE__ */ e.jsx(
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: l("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", t == null ? void 0 : t.socialLink),
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": n.replace("social/", ""),
360
- children: /* @__PURE__ */ e.jsx(h, { name: n, className: l("h-full w-full text-icon-white", t == null ? void 0 : t.socialIcon) })
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
- )) }), Re = ({ phones: o, classes: t }) => /* @__PURE__ */ e.jsx("div", { className: l("flex flex-col gap-4 desktop:items-end", t == null ? void 0 : t.phonesRoot), children: o == null ? void 0 : o.map(({ phone: n, text: i }) => /* @__PURE__ */ e.jsx(
364
- Q,
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: F(n),
1028
+ phone: bt(r),
367
1029
  text: i,
368
1030
  classes: {
369
- root: l(t == null ? void 0 : t.phoneWrapper),
370
- text: l("text-color-footer", t == null ? void 0 : t.phoneText),
371
- link: l("text-color-white mobile:m-0", t == null ? void 0 : t.phoneLink)
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
- n
375
- )) }), Fe = ({ classes: o, details: t }) => /* @__PURE__ */ e.jsx(
1036
+ r
1037
+ )) }), Ke = ({ classes: e, details: t }) => /* @__PURE__ */ n.jsx(
376
1038
  "div",
377
1039
  {
378
- className: l(
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
- o == null ? void 0 : o.navRoot
1042
+ e == null ? void 0 : e.navRoot
381
1043
  ),
382
1044
  children: t == null ? void 0 : t.map(
383
- ({ column: n }) => n == null ? void 0 : n.map(({ groupLabel: i, links: r }) => /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col gap-4", o == null ? void 0 : o.navGroup), children: [
384
- /* @__PURE__ */ e.jsx("div", { className: l("desk-body-medium-l text-color-white", o == null ? void 0 : o.navLabel), children: i }),
385
- /* @__PURE__ */ e.jsx("div", { className: l("flex flex-col gap-1", o == null ? void 0 : o.navLinks), children: r == null ? void 0 : r.map(({ path: d, label: x }) => /* @__PURE__ */ e.jsx(
386
- R,
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": x,
1051
+ "aria-label": l,
390
1052
  intent: "white",
391
1053
  classes: {
392
- link: o == null ? void 0 : o.navLink,
393
- icon: o == null ? void 0 : o.navLinkIcon
1054
+ link: e == null ? void 0 : e.navLink,
1055
+ icon: e == null ? void 0 : e.navLinkIcon
394
1056
  },
395
- children: x
1057
+ children: l
396
1058
  },
397
- x
1059
+ l
398
1060
  )) })
399
1061
  ] }, i))
400
1062
  )
401
1063
  }
402
- ), ze = ({ text: o, classes: t }) => /* @__PURE__ */ e.jsx(
1064
+ ), $e = ({ text: e, classes: t }) => /* @__PURE__ */ n.jsx(
403
1065
  "div",
404
1066
  {
405
- className: l("desk-body-regular-m text-color-footer", t == null ? void 0 : t.copyRight),
406
- dangerouslySetInnerHTML: { __html: o }
1067
+ className: a("desk-body-regular-m text-color-footer", t == null ? void 0 : t.copyRight),
1068
+ dangerouslySetInnerHTML: { __html: e }
407
1069
  }
408
- ), Oe = ({ classes: o }) => /* @__PURE__ */ e.jsx(
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: l("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", o == null ? void 0 : o.footerLogo),
414
- children: /* @__PURE__ */ e.jsx(h, { name: "brandLogos/logoWhite", className: l("size-full", o == null ? void 0 : o.footerLogoIcon) })
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
- ), De = ({ classes: o }) => /* @__PURE__ */ e.jsx(
417
- R,
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: l("mobile:mt-6", o == null ? void 0 : o.siteMapLink),
426
- icon: o == null ? void 0 : o.siteMapLinkIcon
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
- ), Ue = ({ text: o, classes: t }) => {
431
- const [n, i] = _.useState(!1), [r, d] = _.useState(!1), x = _.useRef(null);
432
- return _.useEffect(() => {
433
- const a = x.current;
434
- a && d(a.scrollHeight > a.clientHeight);
435
- }, []), /* @__PURE__ */ e.jsxs("div", { className: l("mt-8 flex flex-col gap-4", t == null ? void 0 : t.ligalRoot), children: [
436
- /* @__PURE__ */ e.jsx(
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: x,
440
- className: l("desk-body-regular-m text-color-footer", { "line-clamp-3": !n }, t == null ? void 0 : t.ligalText),
441
- dangerouslySetInnerHTML: { __html: o }
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
- r && /* @__PURE__ */ e.jsx(
1106
+ o && /* @__PURE__ */ n.jsx(
445
1107
  "div",
446
1108
  {
447
1109
  tabIndex: 0,
448
1110
  role: "button",
449
- onClick: () => i((a) => !a),
450
- className: l(
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
- }, xr = ({
459
- socialsLinks: o,
1120
+ }, Nn = ({
1121
+ socialsLinks: e,
460
1122
  phones: t,
461
- ligal: n,
1123
+ ligal: r,
462
1124
  copyright: i,
463
- classes: r,
1125
+ classes: o,
464
1126
  details: d,
465
- siteMap: x = !0
466
- }) => /* @__PURE__ */ e.jsx(
1127
+ siteMap: l = !0
1128
+ }) => /* @__PURE__ */ n.jsx(
467
1129
  "footer",
468
1130
  {
469
- id: b.footer,
470
- "data-test-id": b.footer,
471
- className: l("w-full bg-color-footer py-8 desktop:py-10", r == null ? void 0 : r.root),
472
- children: /* @__PURE__ */ e.jsx(y, { className: l(r == null ? void 0 : r.footerContainer), children: /* @__PURE__ */ e.jsxs("div", { className: l("mobile:pb-[176px]", r == null ? void 0 : r.footerWrapper), children: [
473
- /* @__PURE__ */ e.jsxs(
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: l(
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
- r == null ? void 0 : r.footerHead
1140
+ o == null ? void 0 : o.footerHead
479
1141
  ),
480
1142
  children: [
481
- /* @__PURE__ */ e.jsxs("div", { className: l(r == null ? void 0 : r.footerSocialBlock), children: [
482
- /* @__PURE__ */ e.jsx(Oe, { classes: r == null ? void 0 : r.footerLogo }),
483
- o.enabled && /* @__PURE__ */ e.jsx(Le, { socialsLinks: o.links, classes: r == null ? void 0 : r.socialLinks })
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__ */ e.jsx(Re, { phones: t.items, classes: r == null ? void 0 : r.phonesBlock })
1147
+ t.enabled && /* @__PURE__ */ n.jsx(Ge, { phones: t.items, classes: o == null ? void 0 : o.phonesBlock })
486
1148
  ]
487
1149
  }
488
1150
  ),
489
- !j.isArrayEmpty(d) && /* @__PURE__ */ e.jsx(Fe, { details: d, classes: r == null ? void 0 : r.navLinks }),
490
- n.enabled && /* @__PURE__ */ e.jsx(Ue, { text: n.text }),
491
- /* @__PURE__ */ e.jsxs(
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: l(
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
- r == null ? void 0 : r.footerBottom
1158
+ o == null ? void 0 : o.footerBottom
497
1159
  ),
498
1160
  children: [
499
- i.enabled && /* @__PURE__ */ e.jsx(ze, { text: i.text, classes: r == null ? void 0 : r.copyright }),
500
- x && /* @__PURE__ */ e.jsx(De, { classes: r == null ? void 0 : r.siteMap })
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
- ), Ve = ({ classes: o, index: t, variant: n, title: i, description: r }) => {
507
- const d = n === "withTitleAndDescription" && i;
508
- return /* @__PURE__ */ e.jsxs(
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: l(
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
- o == null ? void 0 : o.singleStep
1175
+ e == null ? void 0 : e.singleStep
514
1176
  ),
515
1177
  children: [
516
- /* @__PURE__ */ e.jsx(
1178
+ /* @__PURE__ */ n.jsx(
517
1179
  "div",
518
1180
  {
519
- className: l(
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
- o == null ? void 0 : o.numeric
1183
+ e == null ? void 0 : e.numeric
522
1184
  ),
523
1185
  children: t
524
1186
  }
525
1187
  ),
526
- /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col gap-2"), children: [
527
- d && /* @__PURE__ */ e.jsx(N, { as: "h4", className: l("text-color-dark", o == null ? void 0 : o.title), children: i }),
528
- /* @__PURE__ */ e.jsx(
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: r ?? "" },
532
- className: l("desk-body-regular-l text-color-tetriary", o == null ? void 0 : o.description)
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
- }, ar = ({ headline: o, details: t, variant: n, classes: i }) => /* @__PURE__ */ e.jsx("section", { id: b.stepper, "data-test-id": b.stepper, className: i == null ? void 0 : i.root, children: /* @__PURE__ */ e.jsx(y, { className: i == null ? void 0 : i.container, children: /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col gap-6 desktop:items-start desktop:gap-12", i == null ? void 0 : i.wrapper), children: [
540
- /* @__PURE__ */ e.jsx(N, { as: "h2", className: l("text-color-dark", i == null ? void 0 : i.headline), children: o }),
541
- /* @__PURE__ */ e.jsx(
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: l(
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((r, d) => /* @__PURE__ */ e.jsx(Ve, { variant: n, ...r, index: d + 1, classes: i == null ? void 0 : i.step }, r.description))
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
- ] }) }) }), We = k("", {
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
- }), Ge = k("", {
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
- }), $e = k("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
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
- }), Ze = k("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
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
- }), Xe = ({ data: o, intent: t }) => {
1297
+ }), or = ({ data: e, intent: t }) => {
636
1298
  const {
637
- title: n,
1299
+ title: r,
638
1300
  description: i,
639
- popover: r = {
1301
+ popover: o = {
640
1302
  enabled: !1
641
1303
  }
642
- } = o;
643
- return /* @__PURE__ */ e.jsx("li", { className: l($e({ intent: t })), children: /* @__PURE__ */ e.jsxs("div", { className: "desktop:max-w-[264px]", children: [
644
- /* @__PURE__ */ e.jsxs("div", { className: l("mb-2 flex items-center gap-2"), children: [
645
- /* @__PURE__ */ e.jsx("h4", { className: l("mob-title-bold-m text-color-dark"), children: n }),
646
- r.enabled && /* @__PURE__ */ e.jsx(ue, { triggerElement: /* @__PURE__ */ e.jsx(h, { className: l("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: r.text })
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__ */ e.jsx("div", { className: l("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: i } })
1310
+ /* @__PURE__ */ n.jsx("div", { className: a("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: i } })
649
1311
  ] }) });
650
- }, z = ({ intent: o, headline: t, desktopHidden: n = !1, mobileHidden: i = !1 }) => /* @__PURE__ */ e.jsx("h2", { className: l(We({ intent: o, desktopHidden: n, mobileHidden: i })), children: t }), qe = ({ details: o, intent: t, withButton: n }) => /* @__PURE__ */ e.jsx("ul", { className: l(Ge({ intent: t, withButton: n })), children: o == null ? void 0 : o.map((i, r) => /* @__PURE__ */ e.jsx(Xe, { intent: t, data: i }, r)) }), pr = ({
651
- headline: o,
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: n = "twoItems",
1315
+ intent: r = "twoItems",
654
1316
  details: i,
655
- image: r,
1317
+ image: o,
656
1318
  classes: d
657
1319
  }) => {
658
- const x = n === "fourItems", a = n === "twoItems", p = r && "url" in r && j.isObject(r) ? /* @__PURE__ */ e.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: r.url }) : r;
659
- return /* @__PURE__ */ e.jsx("section", { id: b.longBanner, "data-test-id": b.longBanner, className: l(d == null ? void 0 : d.root), children: /* @__PURE__ */ e.jsxs(y, { className: l(d == null ? void 0 : d.container), children: [
660
- a && /* @__PURE__ */ e.jsx(z, { intent: n, headline: o }),
661
- /* @__PURE__ */ e.jsxs(
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: l(
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
- x && /* @__PURE__ */ e.jsx(z, { intent: n, headline: o, desktopHidden: !0 }),
670
- /* @__PURE__ */ e.jsx("div", { className: l(Ze({ intent: n, withButton: t == null ? void 0 : t.enabled }), d == null ? void 0 : d.imgContainer), children: p }),
671
- /* @__PURE__ */ e.jsxs(
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: l("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", d == null ? void 0 : d.textWithBtnContainer),
1336
+ className: a("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", d == null ? void 0 : d.textWithBtnContainer),
675
1337
  children: [
676
- x && /* @__PURE__ */ e.jsx(z, { intent: n, headline: o, mobileHidden: !0 }),
677
- /* @__PURE__ */ e.jsx(qe, { details: i, intent: n, withButton: (t == null ? void 0 : t.enabled) ?? !1 }),
678
- (t == null ? void 0 : t.enabled) && t && /* @__PURE__ */ e.jsx(
679
- I,
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: l("w-full px-4 desktop:w-max", d == null ? void 0 : d.button),
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
- }, O = {
1356
+ }, yt = {
695
1357
  ESIA: "esia",
696
1358
  MOBILE_ID: "mobileId",
697
1359
  COMBINE: "combine"
698
- }, ie = ({ children: o, isLoading: t, classes: n, loaderProps: i }) => /* @__PURE__ */ e.jsx(
1360
+ }, re = ({ children: e, isLoading: t, classes: r, loaderProps: i }) => /* @__PURE__ */ n.jsx(
699
1361
  "div",
700
1362
  {
701
1363
  tabIndex: 0,
702
- className: l(
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
- n == null ? void 0 : n.root
1367
+ r == null ? void 0 : r.root
706
1368
  ),
707
- children: /* @__PURE__ */ e.jsx(
1369
+ children: /* @__PURE__ */ n.jsx(
708
1370
  "div",
709
1371
  {
710
- className: l(
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
- n == null ? void 0 : n.wrapper
1376
+ r == null ? void 0 : r.wrapper
715
1377
  ),
716
- children: t ? /* @__PURE__ */ e.jsx(fe, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...i }) : o
1378
+ children: t ? /* @__PURE__ */ n.jsx(ye, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...i }) : e
717
1379
  }
718
1380
  )
719
1381
  }
720
- ), Je = ({ ...o }) => /* @__PURE__ */ e.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...o, children: [
721
- /* @__PURE__ */ e.jsx(
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__ */ e.jsx(
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__ */ e.jsx(
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__ */ e.jsx("defs", { children: /* @__PURE__ */ e.jsxs("linearGradient", { id: "paint0_linear_6493_452", x1: "16.0071", y1: "0", x2: "16.0071", y2: "31.9996", gradientUnits: "userSpaceOnUse", children: [
743
- /* @__PURE__ */ e.jsx("stop", { stopColor: "#0066B3" }),
744
- /* @__PURE__ */ e.jsx("stop", { offset: "0.354167", stopColor: "#0066B3" }),
745
- /* @__PURE__ */ e.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
746
- /* @__PURE__ */ e.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
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
- ] }), de = ({ mainLink: o, subLink: t, isMobile: n, classes: i }) => /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col", i == null ? void 0 : i.linksWrapper), children: [
749
- /* @__PURE__ */ e.jsx(
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: o.href,
1414
+ href: e.href,
753
1415
  target: "_blank",
754
1416
  rel: "noreferrer",
755
- className: l(
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: n ? o.mobileTitle : o.title
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__ */ e.jsx(
763
- R,
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: l("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary", i == null ? void 0 : i.linksSubLink)
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
- ] }), q = ({ mainLink: o, subLink: t, isLoading: n, badge: i, loaderProps: r, classes: d }) => {
777
- const { isMobile: x } = C();
778
- return /* @__PURE__ */ e.jsx(ie, { isLoading: n, loaderProps: r, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ e.jsxs(
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: l(
1443
+ className: a(
782
1444
  "flex flex-1 items-center justify-between gap-1",
783
- { "justify-center": !i && x },
1445
+ { "justify-center": !i && l },
784
1446
  d == null ? void 0 : d.innerWrapper
785
1447
  ),
786
1448
  children: [
787
- /* @__PURE__ */ e.jsxs("div", { className: l("flex items-center gap-1 desktop:gap-4", d == null ? void 0 : d.textContent), children: [
788
- /* @__PURE__ */ e.jsxs("div", { children: [
789
- /* @__PURE__ */ e.jsx(h, { name: "logos/mts", className: l("relative z-[9] size-7 desktop:size-8", d == null ? void 0 : d.mtsLogo) }),
790
- /* @__PURE__ */ e.jsx(h, { name: "logos/megafon", className: l("relative z-[8] -ml-4 size-7 desktop:size-8", d == null ? void 0 : d.megafonLogo) }),
791
- /* @__PURE__ */ e.jsx(h, { name: "logos/beeline", className: l("relative z-[7] -ml-4 size-7 desktop:size-8", d == null ? void 0 : d.beelineLogo) })
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__ */ e.jsx(de, { mainLink: o, subLink: t, isMobile: x, classes: d == null ? void 0 : d.links }),
794
- /* @__PURE__ */ e.jsx(h, { name: "arrows/arrowRight", className: l("mobile:hidden", d == null ? void 0 : d.arrowIcon) })
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__ */ e.jsx(V, { className: l("bg-color-positive", d == null ? void 0 : d.badge), children: i })
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
- }, J = ({ mainLink: o, subLink: t, isLoading: n, badge: i, loaderProps: r, classes: d }) => {
801
- const { isMobile: x } = C();
802
- return /* @__PURE__ */ e.jsx(ie, { isLoading: n, loaderProps: r, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ e.jsxs(
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: l(
1467
+ className: a(
806
1468
  "flex flex-1 items-center justify-between gap-1",
807
- { "justify-center": !i && x },
1469
+ { "justify-center": !i && l },
808
1470
  d == null ? void 0 : d.innerWrapper
809
1471
  ),
810
1472
  children: [
811
- /* @__PURE__ */ e.jsxs("div", { className: l("flex items-center gap-1 desktop:gap-4", d == null ? void 0 : d.textContent), children: [
812
- /* @__PURE__ */ e.jsx(Je, { className: l("size-7 desktop:size-8", d == null ? void 0 : d.esiaLogo) }),
813
- /* @__PURE__ */ e.jsx(de, { mainLink: o, subLink: t, isMobile: x, classes: d == null ? void 0 : d.links }),
814
- /* @__PURE__ */ e.jsx(h, { name: "arrows/arrowRight", className: l("mobile:hidden", d == null ? void 0 : d.arrowIcon) })
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__ */ e.jsx(V, { className: l("bg-color-positive", d == null ? void 0 : d.badge), children: i })
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
- }, Ke = (o) => {
821
- switch (o.mode) {
822
- case O.ESIA:
823
- return /* @__PURE__ */ e.jsx(J, { ...o });
824
- case O.MOBILE_ID:
825
- return /* @__PURE__ */ e.jsx(q, { ...o });
826
- case O.COMBINE:
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: n, subtitle: i, badge: r, classes: d } = o, x = !i && !r ? _.Fragment : "div";
829
- return /* @__PURE__ */ e.jsxs(
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: l(
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__ */ e.jsxs(x, { className: l("flex w-full items-center justify-between gap-2", d == null ? void 0 : d.topContent), children: [
838
- i && /* @__PURE__ */ e.jsx("h5", { className: l("desk-body-regular-l flex flex-1 text-color-dark", d == null ? void 0 : d.subtitle), children: i }),
839
- r && /* @__PURE__ */ e.jsx(V, { className: l("bg-color-positive", d == null ? void 0 : d.badge), children: r })
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__ */ e.jsxs("div", { className: l("grid w-full grid-cols-2 gap-2 desktop:gap-4", d == null ? void 0 : d.authWrapper), children: [
842
- /* @__PURE__ */ e.jsx(
843
- J,
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__ */ e.jsx(
854
- q,
1515
+ /* @__PURE__ */ n.jsx(
1516
+ Pt,
855
1517
  {
856
- ...n,
1518
+ ...r,
857
1519
  classes: {
858
1520
  root: "p-0 outline-0 h-[74px]",
859
1521
  arrowIcon: "hidden",
860
- ...n.classes
1522
+ ...r.classes
861
1523
  }
862
1524
  }
863
1525
  )
@@ -866,45 +1528,45 @@ const Ie = [
866
1528
  }
867
1529
  );
868
1530
  }
869
- }, mr = (o) => Ke(o), K = ({ links: o, classes: t }) => /* @__PURE__ */ e.jsx("nav", { className: l("flex flex-col gap-1", t == null ? void 0 : t.linksWrapper), children: o == null ? void 0 : o.map(({ path: n, label: i }) => /* @__PURE__ */ e.jsx(
870
- R,
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: l("w-max", t == null ? void 0 : t.linkText),
874
- icon: l(t == null ? void 0 : t.linkIcon)
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: n,
1539
+ href: r,
878
1540
  children: i
879
1541
  },
880
- n
881
- )) }), Qe = ({ groupLabel: o, links: t, mobileAccordionProps: n, classes: i }) => {
882
- var d, x, a;
883
- const { isMobile: r } = C();
884
- return /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col gap-2", i == null ? void 0 : i.columnGroup), children: [
885
- !r && /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
886
- /* @__PURE__ */ e.jsx("h5", { className: l("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", i == null ? void 0 : i.columnGroupHeading), children: o }),
887
- /* @__PURE__ */ e.jsx(K, { links: t, classes: i == null ? void 0 : i.linksList }, "desktop")
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
- r && /* @__PURE__ */ e.jsx(
890
- E,
1551
+ o && /* @__PURE__ */ n.jsx(
1552
+ rt,
891
1553
  {
892
1554
  defaultOpen: !0,
893
- label: o,
894
- icon: /* @__PURE__ */ e.jsx(h, { name: "arrows/arrowRight", className: l("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
895
- ...n,
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
- ...n == null ? void 0 : n.classes,
1559
+ ...r == null ? void 0 : r.classes,
898
1560
  header: {
899
- trigger: l("p-0 bg-color-blue-grey-100", (x = (d = n == null ? void 0 : n.classes) == null ? void 0 : d.header) == null ? void 0 : x.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: l("py-2 px-4", (a = n == null ? void 0 : n.classes) == null ? void 0 : a.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__ */ e.jsx(K, { links: t, classes: i == null ? void 0 : i.linksList }, "mobile")
1565
+ children: /* @__PURE__ */ n.jsx(Lt, { links: t, classes: i == null ? void 0 : i.linksList }, "mobile")
904
1566
  }
905
1567
  )
906
1568
  ] });
907
- }, Ye = ({ column: o, mobileAccordionProps: t, classes: n }) => /* @__PURE__ */ e.jsx("div", { className: l("flex flex-col gap-4 desktop:gap-6", n == null ? void 0 : n.column), children: o == null ? void 0 : o.map((i) => /* @__PURE__ */ e.jsx(Qe, { ...t, ...i, classes: n == null ? void 0 : n.columnGroup }, i.groupLabel)) }), Ae = k("grid gap-4 grid-cols-1", {
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
- }), ur = ({
919
- variant: o,
1580
+ }), In = ({
1581
+ variant: e,
920
1582
  details: t,
921
- headline: n,
1583
+ headline: r,
922
1584
  mobileAccordionProps: i,
923
- rootAccordionProps: r,
1585
+ rootAccordionProps: o,
924
1586
  classes: d
925
1587
  }) => {
926
- var x, a, p;
927
- return /* @__PURE__ */ e.jsx(
1588
+ var l, u, p;
1589
+ return /* @__PURE__ */ n.jsx(
928
1590
  "section",
929
1591
  {
930
- id: b.interLinking,
931
- "data-test-id": b.interLinking,
932
- className: l("min-w-full desktop:min-w-[1140px]", d == null ? void 0 : d.root),
933
- children: /* @__PURE__ */ e.jsx(y, { children: /* @__PURE__ */ e.jsx(
934
- E,
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__ */ e.jsx(N, { as: "h4", className: l("text-left", d == null ? void 0 : d.headline), children: n }),
938
- ...r,
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
- ...r == null ? void 0 : r.classes,
1602
+ ...o == null ? void 0 : o.classes,
941
1603
  header: {
942
- trigger: l("bg-color-blue-grey-100", (a = (x = r == null ? void 0 : r.classes) == null ? void 0 : x.header) == null ? void 0 : a.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: l("max-w-full bg-color-blue-grey-100 relative", (p = r == null ? void 0 : r.classes) == null ? void 0 : p.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__ */ e.jsx("div", { className: l(Ae({ variant: o }), d == null ? void 0 : d.columnsWrapper), children: t == null ? void 0 : t.map((m, u) => /* @__PURE__ */ e.jsx(Ye, { ...m, ...i, classes: d == null ? void 0 : d.column }, u)) })
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
- }, Pe = ({ tabsNames: o, activeTab: t, setActiveTab: n, classes: i }) => /* @__PURE__ */ e.jsx("div", { className: l("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", i == null ? void 0 : i.tabs), children: o && o.map((r, d) => /* @__PURE__ */ e.jsx(
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: () => n(d),
955
- className: l(
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: r
1624
+ children: o
963
1625
  },
964
- r
965
- )) }), se = (o) => o.variant === "HTML", et = (o) => o.variant === "DOCUMENTS", tt = (o) => o.variant === "TABLE", rt = ({ html: o, config: t, classes: n, accordionConfig: i }) => {
966
- const r = /* @__PURE__ */ e.jsx("div", { className: l(n == null ? void 0 : n.html), dangerouslySetInnerHTML: { __html: o ?? "" } });
967
- return /* @__PURE__ */ e.jsx(e.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ e.jsx(E, { label: t == null ? void 0 : t.accordionTitle, ...i, children: (i == null ? void 0 : i.children) ?? r }) : r });
968
- }, ot = (o, t) => ({
969
- rows: o == null ? void 0 : o.map(({ row: n }) => ({
970
- row: n == null ? void 0 : n.map((i, r) => {
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[r]) == null ? void 0 : d.heading)
1636
+ heading: t && ((d = t[o]) == null ? void 0 : d.heading)
975
1637
  };
976
1638
  })
977
1639
  }))
978
- }), nt = k("flex flex-col", {
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
- }), it = k("grid px-4 mb-4", {
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
- }), dt = ({ headings: o, columnsVariant: t, classes: n }) => /* @__PURE__ */ e.jsx("div", { className: l(it({ columnsVariant: t }), n == null ? void 0 : n.row), children: o == null ? void 0 : o.map((i) => /* @__PURE__ */ e.jsx("div", { className: l("text-color-secondary", n == null ? void 0 : n.cell), children: i == null ? void 0 : i.heading }, i == null ? void 0 : i.heading)) }), lt = k("grid items-center", {
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
- }), xt = ({ row: o, tableVariant: t, columnsVariant: n, rowIndex: i, classes: r }) => /* @__PURE__ */ e.jsx("div", { className: l(lt({ columnsVariant: n, tableVariant: t }), { "border-none": i === 0 }, r == null ? void 0 : r.row), children: o == null ? void 0 : o.map(({ cell: d }, x) => /* @__PURE__ */ e.jsx(
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: l("desk-body-regular-l text-color-dark", { "font-medium": x !== 0 }, r == null ? void 0 : r.cell),
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
- x
1010
- )) }), at = k("flex flex-col gap-2", {
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
- }), pt = ({ row: o, tableVariant: t, columnsVariant: n, headingsExist: i, classes: r }) => /* @__PURE__ */ e.jsx("div", { className: l(at({ tableVariant: t }), r == null ? void 0 : r.row), children: o == null ? void 0 : o.map(({ cell: d, heading: x }, a) => /* @__PURE__ */ e.jsxs("div", { className: l("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !i }, r == null ? void 0 : r.wrapper), children: [
1018
- x && /* @__PURE__ */ e.jsx("div", { className: l("mob-body-regular-l text-color-secondary", r == null ? void 0 : r.heading), children: x }),
1019
- /* @__PURE__ */ e.jsx(
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: l(
1684
+ className: a(
1023
1685
  "mob-body-regular-l text-color-dark",
1024
1686
  {
1025
- "font-medium": a !== 0 && n === "twoCols" || n === "threeCols" || n === "twoCols" && i
1687
+ "font-medium": u !== 0 && r === "twoCols" || r === "threeCols" || r === "twoCols" && i
1026
1688
  },
1027
- r == null ? void 0 : r.cell
1689
+ o == null ? void 0 : o.cell
1028
1690
  ),
1029
1691
  children: d
1030
1692
  }
1031
1693
  )
1032
- ] }, a)) }), mt = ({ tableVariant: o, rows: t, headings: n, columnsVariant: i, classes: r }) => {
1694
+ ] }, u)) }), Nr = ({ tableVariant: e, rows: t, headings: r, columnsVariant: i, classes: o }) => {
1033
1695
  var p;
1034
- const { isDesktop: d } = C(), x = ((p = ot(t, n)) == null ? void 0 : p.rows) ?? [], a = !!(n && n.length > 0);
1035
- return /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-col", r == null ? void 0 : r.wrapper), children: [
1036
- d && a && /* @__PURE__ */ e.jsx(dt, { headings: n, columnsVariant: i, classes: r == null ? void 0 : r.desktopHeading }),
1037
- d ? /* @__PURE__ */ e.jsx(e.Fragment, { children: t == null ? void 0 : t.map((m, u) => /* @__PURE__ */ e.jsx(
1038
- xt,
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: u,
1041
- tableVariant: o,
1702
+ rowIndex: x,
1703
+ tableVariant: e,
1042
1704
  columnsVariant: i,
1043
- classes: r == null ? void 0 : r.desktopRow,
1705
+ classes: o == null ? void 0 : o.desktopRow,
1044
1706
  ...m
1045
1707
  },
1046
- u
1047
- )) }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: x == null ? void 0 : x.map((m, u) => /* @__PURE__ */ e.jsx(
1048
- pt,
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: a,
1051
- tableVariant: o,
1712
+ headingsExist: u,
1713
+ tableVariant: e,
1052
1714
  columnsVariant: i,
1053
- classes: r == null ? void 0 : r.desktopRow,
1715
+ classes: o == null ? void 0 : o.desktopRow,
1054
1716
  ...m
1055
1717
  },
1056
- u
1718
+ x
1057
1719
  )) })
1058
1720
  ] });
1059
- }, ut = ({
1060
- tableVariant: o,
1721
+ }, Cr = ({
1722
+ tableVariant: e,
1061
1723
  description: t,
1062
- columnsVariant: n,
1724
+ columnsVariant: r,
1063
1725
  config: i,
1064
- rows: r,
1726
+ rows: o,
1065
1727
  title: d,
1066
- headings: x,
1067
- accordionConfig: a,
1728
+ headings: l,
1729
+ accordionConfig: u,
1068
1730
  classes: p
1069
1731
  }) => {
1070
- const m = /* @__PURE__ */ e.jsxs("div", { className: l(nt({ columnsVariant: n }), p == null ? void 0 : p.wrapper), children: [
1071
- d && /* @__PURE__ */ e.jsx(N, { as: "h4", className: l("mb-4 desktop:mb-6", p == null ? void 0 : p.headline), children: d }),
1072
- /* @__PURE__ */ e.jsx(mt, { tableVariant: o, rows: r, headings: x, columnsVariant: n }),
1073
- t && /* @__PURE__ */ e.jsx(
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: l("mt-2 [&&]:desk-body-regular-m desktop:mt-2", p == null ? void 0 : p.description),
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__ */ e.jsx(e.Fragment, { children: i && (i != null && i.isAccordion) && (i != null && i.accordionTitle) ? /* @__PURE__ */ e.jsx(E, { label: i == null ? void 0 : i.accordionTitle, ...a, children: (a == null ? void 0 : a.children) || m }) : m });
1082
- }, ft = {
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
- }, ht = k("size-8 transition-colors", {
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
- }), bt = ({ label: o, size: t, url: n, iconType: i, classes: r }) => /* @__PURE__ */ e.jsxs(
1757
+ }), Ir = ({ label: e, size: t, url: r, iconType: i, classes: o }) => /* @__PURE__ */ n.jsxs(
1096
1758
  "a",
1097
1759
  {
1098
- href: n,
1760
+ href: r,
1099
1761
  target: "_blank",
1100
1762
  rel: "noreferrer",
1101
1763
  tabIndex: 0,
1102
- className: l(
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
- r == null ? void 0 : r.link
1766
+ o == null ? void 0 : o.link
1105
1767
  ),
1106
1768
  children: [
1107
- /* @__PURE__ */ e.jsx(h, { name: ft[i], className: l(ht({ iconType: i }), r == null ? void 0 : r.icon) }),
1108
- /* @__PURE__ */ e.jsxs("div", { className: l("flex flex-1 flex-col", r == null ? void 0 : r.wrapper), children: [
1109
- /* @__PURE__ */ e.jsx("p", { className: l("desk-body-medium-l text-color-dark", r == null ? void 0 : r.label), children: o }),
1110
- /* @__PURE__ */ e.jsxs("div", { className: l("desk-body-regular-m text-color-disabled", r == null ? void 0 : r.size), children: [
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
- ), jt = ({ docs: o, config: t, title: n, iconType: i, description: r, classes: d, accordionConfig: x }) => {
1118
- const a = /* @__PURE__ */ e.jsxs("div", { className: l("flex max-w-[680px] flex-col", d == null ? void 0 : d.wrapper), children: [
1119
- n && /* @__PURE__ */ e.jsx(N, { as: "h3", className: "mb-4", children: n }),
1120
- /* @__PURE__ */ e.jsx("div", { className: l("flex flex-col gap-4", d == null ? void 0 : d.documentsWrapper), children: o == null ? void 0 : o.map((p) => /* @__PURE__ */ e.jsx(bt, { iconType: i, ...p, classes: d == null ? void 0 : d.singleDocument }, p.label)) }),
1121
- r && /* @__PURE__ */ e.jsx("div", { className: l("mt-4", d == null ? void 0 : d.description), dangerouslySetInnerHTML: { __html: r ?? "" } })
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__ */ e.jsx(e.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ e.jsx(E, { label: t == null ? void 0 : t.accordionTitle, ...x, children: (x == null ? void 0 : x.children) || a }) : a });
1124
- }, ct = ({ entity: o, classes: t, accordionsConfig: n }) => {
1125
- var i, r, d;
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 se(o):
1128
- return (i = o.details) == null ? void 0 : i.map((x, a) => {
1789
+ case mr(e):
1790
+ return (i = e.details) == null ? void 0 : i.map((l, u) => {
1129
1791
  var p;
1130
- return /* @__PURE__ */ e.jsx(rt, { ...x, accordionConfig: n == null ? void 0 : n.htmlAccordion, classes: (p = t == null ? void 0 : t.entities) == null ? void 0 : p.html }, a);
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 et(o):
1133
- return (r = o.details) == null ? void 0 : r.map((x, a) => {
1794
+ case xr(e):
1795
+ return (o = e.details) == null ? void 0 : o.map((l, u) => {
1134
1796
  var p;
1135
- return /* @__PURE__ */ e.jsx(
1136
- jt,
1797
+ return /* @__PURE__ */ n.jsx(
1798
+ Mr,
1137
1799
  {
1138
- accordionConfig: n == null ? void 0 : n.documentAccordion,
1139
- ...x,
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
- a
1804
+ u
1143
1805
  );
1144
1806
  });
1145
- case tt(o):
1146
- return (d = o.details) == null ? void 0 : d.map((x, a) => {
1807
+ case fr(e):
1808
+ return (d = e.details) == null ? void 0 : d.map((l, u) => {
1147
1809
  var p;
1148
- return /* @__PURE__ */ e.jsx(
1149
- ut,
1810
+ return /* @__PURE__ */ n.jsx(
1811
+ Cr,
1150
1812
  {
1151
- accordionConfig: n == null ? void 0 : n.tableAccordion,
1152
- ...x,
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
- a
1817
+ u
1156
1818
  );
1157
1819
  });
1158
1820
  default:
1159
1821
  return null;
1160
1822
  }
1161
- }, kt = ({ entity: o, classes: t, accordionsConfig: n }) => /* @__PURE__ */ e.jsx("div", { className: l("flex flex-col gap-6", t == null ? void 0 : t.entityWrapper), children: ct({ entity: o, classes: t, accordionsConfig: n }) }), fr = ({ headline: o, tabs: t, classes: n, accordionsConfig: i }) => {
1162
- var a, p;
1163
- const [r, d] = v(0), x = G(() => t == null ? void 0 : t.map((m) => m == null ? void 0 : m.tabName), [t]) ?? [];
1164
- return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ e.jsx("section", { id: b.usefulInfo, "data-test-id": b.usefulInfo, className: l(n == null ? void 0 : n.root), children: /* @__PURE__ */ e.jsxs(y, { className: l(n == null ? void 0 : n.container), children: [
1165
- /* @__PURE__ */ e.jsx(N, { className: l(n == null ? void 0 : n.headline), as: "h2", children: o }),
1166
- /* @__PURE__ */ e.jsx("div", { className: l("mt-6 flex flex-col gap-2 desktop:mt-12", n == null ? void 0 : n.tabsWrapper), children: /* @__PURE__ */ e.jsx(Pe, { tabsNames: x, activeTab: r, setActiveTab: d, classes: n == null ? void 0 : n.tabs }) }),
1167
- /* @__PURE__ */ e.jsx("div", { className: l("mt-6 flex flex-col gap-6", n == null ? void 0 : n.contentWrapper), children: (p = (a = t == null ? void 0 : t[r]) == null ? void 0 : a.contents) == null ? void 0 : p.map((m, u) => /* @__PURE__ */ e.jsx(kt, { accordionsConfig: i, ...m, classes: n == null ? void 0 : n.entityClasses }, u)) })
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
- }, gt = ({ fields: o, control: t }) => o.map(({ type: n, args: i }) => {
1170
- const r = he[n];
1171
- return /* @__PURE__ */ P(r, { ...i, key: i.name, control: t });
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 wt {
1835
+ class Br {
1174
1836
  constructor(t) {
1175
- B(this, "TEXT_NODE", 3);
1176
- B(this, "ELEMENT_NODE", 1);
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, n = "string", i) {
1186
- const { includeSolidText: r, recursive: d, element: x } = this.options || {};
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 a = t, p = a.tagName.toLowerCase();
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 (x && p !== x)
1857
+ if (l && p !== l)
1196
1858
  break;
1197
- if (n === "node")
1859
+ if (r === "node")
1198
1860
  i.push(t);
1199
1861
  else {
1200
- const m = a.outerHTML.trim();
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, n, i);
1867
+ this.traverse(m, r, i);
1206
1868
  break;
1207
1869
  // если узел - текстовый и требуется его добавить, добавляем
1208
1870
  case this.TEXT_NODE:
1209
- if (!r)
1871
+ if (!o)
1210
1872
  break;
1211
- if (n === "node")
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, n = "string") {
1227
- const { includeBody: i } = this.options || {}, r = [], d = [], x = await this.parseFromString(t), a = n === "string" ? r : d;
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(x.body, n, a);
1891
+ this.traverse(l.body, r, u);
1230
1892
  else
1231
- for (const p of x.body.childNodes)
1232
- this.traverse(p, n, a);
1233
- return { stringNodes: r, nodes: d };
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: n } = await this.parse(t, "string");
1242
- return n.length;
1903
+ const { stringNodes: r } = await this.parse(t, "string");
1904
+ return r.length;
1243
1905
  }
1244
1906
  }
1245
- const yt = typeof window < "u";
1246
- class Nt extends Error {
1247
- constructor(t, n) {
1248
- super(t), this.originalError = n, this.name = "BrowserHTMLParserError";
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 vt extends wt {
1913
+ class _r extends Br {
1252
1914
  constructor(t) {
1253
1915
  super(t);
1254
1916
  }
1255
1917
  async parseFromString(t) {
1256
- if (!yt)
1257
- throw new Nt("HTMLParser should only be used in the browser.");
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 D {
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 n = t, i = n.tagName.toLowerCase(), r = {};
1270
- for (const x of n.attributes) {
1271
- let a = x.name, p = x.value;
1272
- switch (x.name) {
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
- a = "className";
1936
+ u = "className";
1275
1937
  break;
1276
1938
  case "for":
1277
- a = "htmlFor";
1939
+ u = "htmlFor";
1278
1940
  break;
1279
1941
  case "checked":
1280
1942
  case "disabled":
1281
1943
  case "selected":
1282
- p = x.value !== "false", p = x.value !== "false", p = x.value !== "false";
1944
+ p = l.value !== "false", p = l.value !== "false", p = l.value !== "false";
1283
1945
  break;
1284
1946
  case "readonly":
1285
- a = "readOnly", p = x.value !== "false";
1947
+ u = "readOnly", p = l.value !== "false";
1286
1948
  break;
1287
1949
  case "style":
1288
- a = "style";
1950
+ u = "style";
1289
1951
  const m = {};
1290
- x.value.split(";").forEach((u) => {
1291
- const [f, c] = u.split(":");
1292
- if (f && c) {
1293
- const w = f.trim().replace(/-([a-z])/g, (g, T) => T.toUpperCase());
1294
- m[w] = c.trim();
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
- r[a] = p;
1961
+ o[u] = p;
1300
1962
  }
1301
- r.key = Math.random().toString(36).substring(2, 9);
1963
+ o.key = Math.random().toString(36).substring(2, 9);
1302
1964
  const d = [];
1303
- for (const x of n.childNodes) {
1304
- const a = this.parseNode(x);
1305
- a && d.push(a);
1965
+ for (const l of r.childNodes) {
1966
+ const u = this.parseNode(l);
1967
+ u && d.push(u);
1306
1968
  }
1307
- return P(i, r, ...d);
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, n) {
1315
- const i = new vt(n), { nodes: r } = await i.parse(t, "node");
1316
- return r.map((d) => this.parseNode(d));
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
- B(D, "TEXT_NODE", 3), B(D, "ELEMENT_NODE", 1);
1320
- const Ct = ({ promises: o }) => {
1321
- const [t, n] = v([]);
1322
- return s(() => {
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
- n(await o);
1986
+ r(await e);
1325
1987
  })();
1326
- }, [o]), /* @__PURE__ */ e.jsx(e.Fragment, { children: t });
1327
- }, L = ({ html: o, options: t, as: n }) => {
1328
- const i = n ?? ce, r = D.toReactNodes(o, t);
1329
- return /* @__PURE__ */ e.jsx(i, { children: /* @__PURE__ */ e.jsx(Ct, { promises: r }) });
1330
- }, Tt = ["getFioSchema"], le = (o, t, n) => {
1331
- const i = o[t];
1332
- if (j.isNil(i))
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 (!j.isFunction(i))
1996
+ if (!s.isFunction(i))
1335
1997
  throw new Error(`Cannot generate ${String(t)} because is not a function`);
1336
- return i(n);
1337
- }, It = (o, t) => le(re.base, o, t), Et = (o, t) => le(re.dadata, o, t), Bt = (o) => {
1338
- const n = o.map((i) => ({ name: i.args.name, validation: i.args.validation })).reduce((i, r) => {
1339
- const d = Tt.includes(r.validation.type) ? Et(
1340
- r.validation.type,
1341
- r.validation.args
1342
- ) : It(
1343
- r.validation.type,
1344
- r.validation.args
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[r.name] = d, i;
2008
+ return i[o.name] = d, i;
1347
2009
  }, {});
1348
- return ve(n);
1349
- }, St = (o, t) => o.enabled ? t.map((n) => ({
1350
- name: n.args.name,
1351
- ...n.args.progress
1352
- })) : null, _t = (o, t, n) => o.type === "off" ? null : o.type === "text" ? /* @__PURE__ */ e.jsx(L, { html: o.message, as: "div" }) : /* @__PURE__ */ e.jsxs(
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: l(
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__ */ e.jsx(Y.CheckboxBase, { checked: t, onCheckedChange: n }),
1362
- /* @__PURE__ */ e.jsx(L, { html: o.content, as: "div" })
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
- ), hr = ({
1366
- fields: o,
2027
+ ), On = ({
2028
+ fields: e,
1367
2029
  title: t,
1368
- progress: n,
2030
+ progress: r,
1369
2031
  approvement: i,
1370
- chips: r,
1371
- submitContent: d = "Submit"
2032
+ chips: o,
2033
+ submitProps: d
1372
2034
  }) => {
1373
- const [x, a] = v(!1), p = Bt(o), { control: m, handleSubmit: u } = ye({
1374
- schema: p,
1375
- defaultValues: Ce.getZodDefaults(p),
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
- }), f = St(n, o), c = Te({ control: m, fields: f || [], schema: p }), w = (g) => {
1378
- console.warn(g);
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__ */ e.jsxs(
2042
+ return /* @__PURE__ */ n.jsx(Ur, { children: /* @__PURE__ */ n.jsxs(
1381
2043
  "div",
1382
2044
  {
1383
- id: b.form,
1384
- "data-test-id": b.form,
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
- r.enabled && /* @__PURE__ */ e.jsxs(
2049
+ o.enabled && /* @__PURE__ */ n.jsxs(
1388
2050
  "div",
1389
2051
  {
1390
- className: l(
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
- r.image && /* @__PURE__ */ e.jsx(h, { name: r.image, className: "size-4" }),
1397
- r.content
2058
+ o.image && /* @__PURE__ */ n.jsx(c, { name: o.image, className: "size-4" }),
2059
+ o.content
1398
2060
  ]
1399
2061
  }
1400
2062
  ),
1401
- /* @__PURE__ */ e.jsx(N, { as: "h3", children: t }),
1402
- /* @__PURE__ */ e.jsxs("form", { onSubmit: u(w), className: "flex w-[328px] flex-col gap-y-6 desktop:w-[524px] desktop:gap-y-8", children: [
1403
- n.enabled && /* @__PURE__ */ e.jsx(
1404
- be,
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: c,
1407
- topContent: /* @__PURE__ */ e.jsx(L, { html: n.title }),
1408
- bottomContent: /* @__PURE__ */ e.jsx(L, { html: n.subtitle }),
1409
- maxPercent: n.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__ */ e.jsx(gt, { control: m, fields: o }),
1413
- /* @__PURE__ */ e.jsxs("div", { className: "mob-body-regular-m flex flex-col items-center justify-center gap-4 desktop:flex-row desktop:justify-between", children: [
1414
- _t(i, x, a),
1415
- /* @__PURE__ */ e.jsx(
1416
- U,
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" ? !x : !1,
1420
- className: l("w-full whitespace-nowrap", {
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: d
2086
+ children: "Отправить форму"
1424
2087
  }
1425
2088
  )
1426
2089
  ] })
1427
2090
  ] })
1428
2091
  ]
1429
2092
  }
1430
- );
1431
- }, S = () => ({
2093
+ ) });
2094
+ }, it = () => ({
1432
2095
  approve: {
1433
2096
  icon: {
1434
- element: /* @__PURE__ */ e.jsx(h, { name: "status/iconMark" }),
2097
+ element: /* @__PURE__ */ n.jsx(c, { name: "status/iconMark" }),
1435
2098
  bg: "bg-color-positive-light"
1436
2099
  },
1437
2100
  title: "Ваша заявка отправлена",
1438
- description: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2101
+ description: /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1439
2102
  "В ближайшее время с Вами свяжутся ",
1440
- /* @__PURE__ */ e.jsx("br", {}),
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__ */ e.jsx(h, { name: "status/iconUser" }),
2112
+ element: /* @__PURE__ */ n.jsx(c, { name: "status/iconUser" }),
1450
2113
  bg: "bg-color-positive-light"
1451
2114
  },
1452
2115
  title: "Мы вас узнали",
1453
- description: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2116
+ description: /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1454
2117
  "Решение по прошлой заявке ещё активно. ",
1455
- /* @__PURE__ */ e.jsx("br", {}),
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__ */ e.jsx(h, { name: "status/iconRetry" }),
2127
+ element: /* @__PURE__ */ n.jsx(c, { name: "status/iconRetry" }),
1465
2128
  bg: "bg-color-warning-light"
1466
2129
  },
1467
2130
  title: "Что-то пошло не так",
1468
- description: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2131
+ description: /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1469
2132
  "Обновите страницу или попробуйте ",
1470
- /* @__PURE__ */ e.jsx("br", {}),
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__ */ e.jsx(h, { name: "status/badSmile" }),
2142
+ element: /* @__PURE__ */ n.jsx(c, { name: "status/badSmile" }),
1480
2143
  bg: "bg-color-negative-light"
1481
2144
  },
1482
2145
  title: "Нам очень жаль",
1483
- description: /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2146
+ description: /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1484
2147
  "К сожалению, сейчас мы не можем ",
1485
- /* @__PURE__ */ e.jsx("br", {}),
2148
+ /* @__PURE__ */ n.jsx("br", {}),
1486
2149
  " принять вашу заявку"
1487
2150
  ] }),
1488
2151
  button: {
1489
2152
  text: "Вернуться на главную"
1490
2153
  }
1491
2154
  }
1492
- }), br = ({ status: o, navigationFn: t }) => /* @__PURE__ */ e.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ e.jsx(y, { className: "flex flex-col justify-center", children: /* @__PURE__ */ e.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
1493
- /* @__PURE__ */ e.jsx(
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: l(
2159
+ className: a(
1497
2160
  "flex size-16 items-center justify-center rounded-full bg-color-positive-light",
1498
- `${S()[o].icon.bg}`
2161
+ `${it()[e].icon.bg}`
1499
2162
  ),
1500
- children: S()[o].icon.element
2163
+ children: it()[e].icon.element
1501
2164
  }
1502
2165
  ),
1503
- /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col items-center gap-2 text-center desktop:gap-6", children: [
1504
- /* @__PURE__ */ e.jsx(N, { as: "h2", children: S()[o].title }),
1505
- /* @__PURE__ */ e.jsx("p", { className: "desk-body-regular-l text-color-dark", children: S()[o].description })
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__ */ e.jsx(U, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: t, children: S()[o].button.text })
1508
- ] }) }) }), xe = ({ breadcrumb: o, className: t, ...n }) => /* @__PURE__ */ e.jsx("a", { href: o.path, className: l("desk-body-regular-m", t), ...n, children: o.label }), Mt = ({ startsWith: o, endsWith: t, matcher: n, filter: i, rootEnabled: r = !0 }) => {
1509
- const [d, x] = v([]);
1510
- return s(() => {
1511
- if (!te)
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 a = window.location.pathname.split("/").filter((u) => !j.isStringEmpty(u));
1514
- j.isUndefined(o) || (j.isString(o) ? a = a.slice(a.findIndex((u) => u === o)) : a = a.slice(o)), j.isUndefined(t) || (j.isString(t) ? a = a.slice(0, a.findIndex((u) => u === t) + 1) : a = a.slice(0, t + 1));
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 (r) {
1517
- const u = {
2179
+ if (o) {
2180
+ const x = {
1518
2181
  index: 0,
1519
- id: Z(),
2182
+ id: Bt(),
1520
2183
  path: "/",
1521
2184
  label: "home"
1522
2185
  };
1523
- p.push(u);
2186
+ p.push(x);
1524
2187
  }
1525
- a.forEach((u, f) => {
1526
- m += `/${u}`;
1527
- const c = {
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: r ? f + 1 : f,
1531
- id: Z(),
2193
+ index: o ? f + 1 : f,
2194
+ id: Bt(),
1532
2195
  path: m,
1533
- label: u
2196
+ label: x
1534
2197
  };
1535
- p.push(c);
1536
- }), n && (p = p.map((u) => ({
1537
- ...u,
1538
- ...n(u)
1539
- }))), x(i ? p.filter(i) : p);
1540
- }, [t, i, n, r, o]), d;
1541
- }, H = (o, t, n, i) => o.map((r, d) => {
1542
- const x = d === i;
1543
- return /* @__PURE__ */ e.jsxs("div", { className: "flex items-center gap-x-2", children: [
1544
- /* @__PURE__ */ e.jsx(
1545
- xe,
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: r,
1548
- className: l(n, {
1549
- "pointer-events-none text-color-primary-disabled": x
2210
+ breadcrumb: o,
2211
+ className: a(r, {
2212
+ "pointer-events-none text-color-primary-disabled": l
1550
2213
  })
1551
2214
  }
1552
2215
  ),
1553
- d !== o.length - 1 && t
1554
- ] }, r.id);
1555
- }), Ht = ({ separator: o, ellipsis: t, classes: n, ...i }) => {
1556
- const [r, d] = v(!1), x = $(null);
1557
- Ne(x, () => d(!1));
1558
- const a = Mt(i), { first: p, middle: m, last: u } = G(() => {
1559
- let c = [], w = [], g = [];
1560
- return t && (c = a.slice(0, t), w = a.slice(t, a.length - t), g = a.slice(a.length - t)), { first: c, middle: w, last: g };
1561
- }, [a, t]), f = o ?? /* @__PURE__ */ e.jsx(h, { name: "arrows/arrowRight", className: l("size-4", n == null ? void 0 : n.separator) });
1562
- return /* @__PURE__ */ e.jsx(
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: l(
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
- n == null ? void 0 : n.root
2231
+ r == null ? void 0 : r.root
1569
2232
  ),
1570
2233
  children: t ? (
1571
2234
  // if ellipsis provided, render hidden breadcrumbs
1572
- /* @__PURE__ */ e.jsx(e.Fragment, { children: a.length > t * 2 + 1 ? (
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__ */ e.jsxs(e.Fragment, { children: [
1576
- H(p, f, n == null ? void 0 : n.breadcrumb),
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__ */ e.jsxs(e.Fragment, { children: [
1579
- /* @__PURE__ */ e.jsxs("div", { className: "relative", children: [
1580
- /* @__PURE__ */ e.jsx("button", { onClick: () => d(!0), children: "..." }),
1581
- /* @__PURE__ */ e.jsx(
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: x,
1585
- className: l(
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": r
2253
+ "visible opacity-100": o
1591
2254
  }
1592
2255
  ),
1593
- children: m.map((c) => /* @__PURE__ */ e.jsx("li", { children: /* @__PURE__ */ e.jsx(
1594
- xe,
2256
+ children: m.map((b) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
2257
+ ie,
1595
2258
  {
1596
- breadcrumb: c,
1597
- className: l(
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
- n == null ? void 0 : n.breadcrumb
2264
+ r == null ? void 0 : r.breadcrumb
1602
2265
  )
1603
2266
  }
1604
- ) }, c.id))
2267
+ ) }, b.id))
1605
2268
  }
1606
2269
  )
1607
2270
  ] }),
1608
2271
  f
1609
2272
  ] }),
1610
- H(u, f, n == null ? void 0 : n.breadcrumb, u.length - 1)
2273
+ xt(x, f, r == null ? void 0 : r.breadcrumb, x.length - 1)
1611
2274
  ] })
1612
2275
  ) : (
1613
2276
  // otherwise render all breadcrumbs
1614
- H(a, f, n == null ? void 0 : n.breadcrumb, a.length - 1)
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
- H(a, f, n == null ? void 0 : n.breadcrumb, a.length - 1)
2281
+ xt(u, f, r == null ? void 0 : r.breadcrumb, u.length - 1)
1619
2282
  )
1620
2283
  }
1621
2284
  );
1622
2285
  };
1623
- var M = /* @__PURE__ */ ((o) => (o.ROOT = "root", o.CURRENT = "current", o))(M || {});
1624
- const Lt = (o, t) => {
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 M.ROOT:
2289
+ case at.ROOT:
1627
2290
  return {
1628
- ...o,
2291
+ ...e,
1629
2292
  root: t.payload
1630
2293
  };
1631
- case M.CURRENT:
2294
+ case at.CURRENT:
1632
2295
  return {
1633
- ...o,
2296
+ ...e,
1634
2297
  current: t.payload
1635
2298
  };
1636
2299
  default:
1637
- return o;
1638
- }
1639
- }, Rt = (o) => {
1640
- const [t, n] = ke(Lt, o);
1641
- return [t, n];
1642
- }, Ft = (o) => ({
1643
- type: M.CURRENT,
1644
- payload: o
1645
- }), zt = (o) => ({
1646
- type: M.ROOT,
1647
- payload: o
1648
- }), Ot = ({ categories: o, ...t }) => oe(
1649
- /* @__PURE__ */ e.jsx(
1650
- W.div,
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__ */ e.jsx("div", { className: "mx-auto flex w-[1140px] gap-x-[56px] py-10", children: o.map((n) => {
1659
- var r;
1660
- const i = n.link ? "a" : "p";
1661
- return /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col gap-y-6", children: [
1662
- n.title && /* @__PURE__ */ e.jsxs(
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: ((r = n.link) == null ? void 0 : r.href) ?? void 0,
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
- n.title,
1669
- /* @__PURE__ */ e.jsx(h, { name: "arrows/arrowLink", className: "size-6" })
2331
+ r.title,
2332
+ /* @__PURE__ */ n.jsx(c, { name: "arrows/arrowLink", className: "size-6" })
1670
2333
  ]
1671
2334
  }
1672
2335
  ),
1673
- /* @__PURE__ */ e.jsx("ul", { className: "w-[328px]", children: n.children.map((d) => {
1674
- var x;
1675
- return /* @__PURE__ */ e.jsx("li", { className: "w-full [&:not(:last-child)]:mb-4", children: /* @__PURE__ */ e.jsx("a", { href: (x = d.link) == null ? void 0 : x.href, className: "w-full text-16", children: d.title }) }, d.title);
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
- ] }, n.title);
2340
+ ] }, r.title);
1678
2341
  }) })
1679
2342
  }
1680
2343
  ),
1681
2344
  document.body
1682
- ), Dt = ({ category: o, active: t, onActiveTabChange: n }) => {
1683
- var a, p;
1684
- const i = $(null), r = (a = i.current) == null ? void 0 : a.getBoundingClientRect(), d = t && !j.isArrayEmpty(o.children), x = j.isArrayEmpty(o.children) ? "a" : "span";
1685
- return /* @__PURE__ */ e.jsxs(
1686
- W.div,
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: l(
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: () => n(o.title),
1699
- onMouseLeave: () => n(null),
1700
- onFocus: () => n(o.title),
2361
+ onMouseEnter: () => r(e.title),
2362
+ onMouseLeave: () => r(null),
2363
+ onFocus: () => r(e.title),
1701
2364
  children: [
1702
- /* @__PURE__ */ e.jsx(x, { href: x === "a" ? (p = o.link) == null ? void 0 : p.href : void 0, className: "desk-body-regular-m outline-none", children: o.title }),
1703
- d && /* @__PURE__ */ e.jsx(
1704
- Ot,
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: o.children,
2369
+ categories: e.children,
1707
2370
  style: {
1708
- top: r ? r.top + r.height : 0,
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
- }, Ut = ee(Dt), Vt = ({ categories: o }) => {
1717
- const [t, n] = v(null), i = A((r) => {
1718
- n(r);
2379
+ }, tn = Xt(Yr), en = ({ categories: e }) => {
2380
+ const [t, r] = W(null), i = Kt((o) => {
2381
+ r(o);
1719
2382
  }, []);
1720
- return /* @__PURE__ */ e.jsx(je, { mode: "sync", children: /* @__PURE__ */ e.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: [
1721
- o.map((r) => /* @__PURE__ */ e.jsx(
1722
- Ut,
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: r,
1725
- active: t === r.title,
2387
+ category: o,
2388
+ active: t === o.title,
1726
2389
  onActiveTabChange: i
1727
2390
  },
1728
- r.title
2391
+ o.title
1729
2392
  )),
1730
- /* @__PURE__ */ e.jsx("div", { className: "ml-auto", children: "Личный кабинет" })
2393
+ /* @__PURE__ */ n.jsx("div", { className: "ml-auto", children: "Личный кабинет" })
1731
2394
  ] }) });
1732
- }, Wt = ee(Vt), Gt = ({
1733
- category: o,
2395
+ }, rn = Xt(en), nn = ({
2396
+ category: e,
1734
2397
  selectedCategory: t,
1735
- onCurrentCategoryChange: n,
2398
+ onCurrentCategoryChange: r,
1736
2399
  onRootCategoryChange: i,
1737
- active: r,
2400
+ active: o,
1738
2401
  ...d
1739
- }) => /* @__PURE__ */ e.jsxs(
2402
+ }) => /* @__PURE__ */ n.jsxs(
1740
2403
  "div",
1741
2404
  {
1742
2405
  ...d,
1743
2406
  onClick: () => {
1744
- n(o.children[0]), i(o);
2407
+ r(e.children[0]), i(e);
1745
2408
  },
1746
- className: l("group/category relative cursor-default text-color-blue-grey-600 duration-100 hover:text-color-dark", {
1747
- "text-color-dark": r
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__ */ e.jsx("span", { className: "desk-body-regular-m", children: o.title }),
1751
- o.children.length > 1 && /* @__PURE__ */ e.jsx(
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: l(
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: o.children.map((x) => /* @__PURE__ */ e.jsx(
2422
+ children: e.children.map((l) => /* @__PURE__ */ n.jsx(
1760
2423
  "span",
1761
2424
  {
1762
- onClick: (a) => {
1763
- a.stopPropagation(), a.nativeEvent.stopPropagation(), i(o), n(x);
2425
+ onClick: (u) => {
2426
+ u.stopPropagation(), u.nativeEvent.stopPropagation(), i(e), r(l);
1764
2427
  },
1765
- className: l(
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 === x.title
2431
+ "text-color-primary-default": t.title === l.title
1769
2432
  }
1770
2433
  ),
1771
- children: x.title
2434
+ children: l.title
1772
2435
  },
1773
- x.title
2436
+ l.title
1774
2437
  ))
1775
2438
  }
1776
2439
  )
1777
2440
  ]
1778
2441
  }
1779
- ), $t = ({ categories: o, helpers: t, phone: n }) => {
1780
- const [i, r] = Rt({ root: o[0].children[0], current: o[0].children[0] });
1781
- return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
1782
- /* @__PURE__ */ e.jsxs("div", { className: "flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)] py-4", children: [
1783
- /* @__PURE__ */ e.jsx(h, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
1784
- o.map((d) => {
1785
- const x = i.root.title === d.title;
1786
- return /* @__PURE__ */ e.jsx(
1787
- Gt,
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: (a) => r(Ft(a)),
1792
- onRootCategoryChange: (a) => r(zt(a)),
1793
- active: x
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__ */ e.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
1799
- t.map((d) => /* @__PURE__ */ e.jsxs(
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__ */ e.jsx(h, { name: d.link.icon, className: "size-4" }),
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__ */ e.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
1812
- /* @__PURE__ */ e.jsx(
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:${n}`,
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: F(n, "x xxx xxx xx xx")
2480
+ children: bt(r, "x xxx xxx xx xx")
1818
2481
  }
1819
2482
  )
1820
2483
  ] }),
1821
- /* @__PURE__ */ e.jsx(Wt, { categories: i.current.children })
2484
+ /* @__PURE__ */ n.jsx(rn, { categories: i.current.children })
1822
2485
  ] });
1823
- }, Zt = ({ category: o }) => /* @__PURE__ */ e.jsx(
1824
- E,
2486
+ }, dn = ({ category: e }) => /* @__PURE__ */ n.jsx(
2487
+ rt,
1825
2488
  {
1826
- label: o.title ?? "",
1827
- icon: /* @__PURE__ */ e.jsx(h, { name: "arrows/arrowRight", className: "-rotate-90" }),
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: l(
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__ */ e.jsx("div", { className: "flex flex-col items-start justify-center gap-y-4", children: o.children.map((t) => {
1842
- var r;
1843
- const n = !!t.link, i = n ? "a" : "p";
1844
- return /* @__PURE__ */ e.jsxs("ul", { className: "w-full list-none p-0", children: [
1845
- /* @__PURE__ */ e.jsxs(
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: n ? (r = t.link) == null ? void 0 : r.href : void 0,
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__ */ e.jsx(h, { name: "arrows/arrowLink" })
2515
+ /* @__PURE__ */ n.jsx(c, { name: "arrows/arrowLink" })
1853
2516
  ]
1854
2517
  }
1855
2518
  ),
1856
2519
  t.children.map((d) => {
1857
- var x;
1858
- return /* @__PURE__ */ e.jsx("li", { className: "inline-block w-full [&:not(:last-child)]:mb-3", children: /* @__PURE__ */ e.jsx("a", { href: (x = d.link) == null ? void 0 : x.href, className: "w-full", children: d.title }) }, d.title);
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
- o.title
1864
- ), Xt = (o) => o.map((t) => ({
2526
+ e.title
2527
+ ), an = (e) => e.map((t) => ({
1865
2528
  value: t.title ?? "",
1866
2529
  label: t.title ?? ""
1867
- })), qt = ({ categories: o, helpers: t, phone: n, ...i }) => {
1868
- const r = Xt(o), [d, x] = v(r[0]), a = (m) => {
1869
- j.isUndefined(m) || j.isArray(m) || x(m);
1870
- }, p = G(() => {
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 j.isUndefined(d) || j.isArray(d) ? [] : ((m = o.find((u) => u.title === d.value)) == null ? void 0 : m.children) ?? [];
1873
- }, [d, o]);
1874
- return /* @__PURE__ */ e.jsxs(
1875
- W.div,
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: l(
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__ */ e.jsx(Y.SelectBase, { label: "Категория", options: r, value: d, onChange: a }),
1888
- /* @__PURE__ */ e.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: p.map((m) => {
1889
- var u;
1890
- return j.isArrayEmpty(m.children) ? /* @__PURE__ */ e.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ e.jsx("a", { href: (u = m.link) == null ? void 0 : u.href, className: "desk-body-regular-m inline-block w-full", children: m.title }) }, m.title) : /* @__PURE__ */ e.jsx(Zt, { category: m }, m.title);
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__ */ e.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
1893
- /* @__PURE__ */ e.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
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 u, f;
1896
- return /* @__PURE__ */ e.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ e.jsxs("a", { href: (u = m.link) == null ? void 0 : u.href, className: "flex w-full items-center gap-x-1", children: [
1897
- ((f = m.link) == null ? void 0 : f.icon) && /* @__PURE__ */ e.jsx(h, { name: m.link.icon, className: "size-4" }),
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__ */ e.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ e.jsxs("a", { href: `tel:${n}`, className: "flex w-full items-center gap-x-1", children: [
1902
- /* @__PURE__ */ e.jsx(h, { name: "communication/phone", className: "size-4" }),
1903
- F(n)
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
- }, Jt = ({ categories: o, helpers: t, phone: n }) => {
2572
+ }, un = ({ categories: e, helpers: t, phone: r }) => {
1910
2573
  var p;
1911
- const i = $(null), r = (p = i.current) == null ? void 0 : p.getBoundingClientRect(), [d, x] = v(!1), a = () => x(!d);
1912
- return /* @__PURE__ */ e.jsxs("div", { ref: i, className: "relative flex w-full items-center justify-between border-b border-b-blue-grey-500 py-4", children: [
1913
- /* @__PURE__ */ e.jsx(h, { name: "brandLogos/logoMain", className: "w-[130px]" }),
1914
- /* @__PURE__ */ e.jsx("button", { type: "button", onClick: a, className: "h-max w-max", children: /* @__PURE__ */ e.jsx(h, { name: d ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
1915
- d && oe(
1916
- /* @__PURE__ */ e.jsx(
1917
- qt,
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: o,
2582
+ categories: e,
1920
2583
  helpers: t,
1921
- phone: n,
1922
- style: { top: r ? r.top + r.height : 0 }
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
- }, jr = ({ categories: o, helpers: t, phone: n }) => {
1929
- const { isMobile: i } = C();
1930
- return /* @__PURE__ */ e.jsxs("div", { id: b.seoHeader, "data-test-id": b.seoHeader, className: "mx-auto w-full max-w-[1440px]", children: [
1931
- i ? /* @__PURE__ */ e.jsx(Jt, { categories: o.map((r) => r.children).flat(), helpers: t, phone: n }) : /* @__PURE__ */ e.jsx($t, { categories: o, helpers: t, phone: n }),
1932
- /* @__PURE__ */ e.jsx(
1933
- Ht,
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: (r) => ({ label: we(r.label).split("-").join(" ") })
2599
+ matcher: (o) => ({ label: Ee(o.label).split("-").join(" ") })
1937
2600
  }
1938
2601
  )
1939
2602
  ] });
1940
2603
  };
1941
2604
  export {
1942
- ne as Advantages,
1943
- mr as AuthProvider,
1944
- lr as Banner,
1945
- X as BannerWithSeparateImg,
1946
- ir as Benefit,
1947
- Ht as Breadcrumbs,
1948
- I as ButtonWithHandlers,
1949
- hr as DynamicForm,
1950
- br as FallbacksView,
1951
- gt as FieldMapper,
1952
- xr as Footer,
1953
- vt as HTMLParser,
1954
- L as HTMLRenderer,
1955
- dr as Header,
1956
- ur as InterLinking,
1957
- pr as LongBanner,
1958
- jr as SeoHeader,
1959
- ar as Stepper,
1960
- fr as UsefulInfo,
1961
- Ie as WIDGET_LIST,
1962
- b as widgetIds
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