@scbt-ecom/ui 0.90.3 → 0.91.0

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,11 +1,11 @@
1
- var ze = Object.defineProperty;
2
- var At = (e) => {
1
+ var De = Object.defineProperty;
2
+ var Wt = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
- var He = (e, t, r) => t in e ? ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
- var Ft = (e, t, r) => He(e, typeof t != "symbol" ? t + "" : t, r), Bt = (e, t, r) => t.has(e) || At("Cannot " + r);
7
- var h = (e, t, r) => (Bt(e, t, "read from private field"), r ? r.call(e) : t.get(e)), N = (e, t, r) => t.has(e) ? At("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), j = (e, t, r, n) => (Bt(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), U = (e, t, r) => (Bt(e, t, "access private method"), r);
8
- var yt = (e, t, r, n) => ({
5
+ var He = (e, t, r) => t in e ? De(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
+ var Tt = (e, t, r) => He(e, typeof t != "symbol" ? t + "" : t, r), Ft = (e, t, r) => t.has(e) || Wt("Cannot " + r);
7
+ var h = (e, t, r) => (Ft(e, t, "read from private field"), r ? r.call(e) : t.get(e)), N = (e, t, r) => t.has(e) ? Wt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), j = (e, t, r, n) => (Ft(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), q = (e, t, r) => (Ft(e, t, "access private method"), r);
8
+ var jt = (e, t, r, n) => ({
9
9
  set _(i) {
10
10
  j(e, t, i, r);
11
11
  },
@@ -13,28 +13,27 @@ var yt = (e, t, r, n) => ({
13
13
  return h(e, t, n);
14
14
  }
15
15
  });
16
- import { j as o } from "./mergeRefs-Danc3mp8.js";
17
- import { Y as ve, Z as Ne, _ as Le, $ as T, a0 as Ut, a1 as Qe, a2 as $e, a3 as qt, a4 as W, a5 as Ve, a6 as We, a7 as Ae, a8 as Ue, a9 as Kt, aa as Zt, ab as qe, ac as Yt, ad as Xt, ae as Ke, B as pt, c as D, R as F, n as Ce, F as Ze, E as R, i as c, Q as ft, r as Ye, t as Xe, p as Ct, L as Je, o as Rt, A as at, U as Dt, af as Ge, q as se, W as St, z as tr, ag as zt, ah as er, M as rr } from "./index-CaH5PSDk.js";
16
+ import { Z as we, _ as ve, $ as ze, a0 as T, a1 as At, a2 as Le, a3 as Qe, a4 as qt, a5 as W, a6 as $e, a7 as Ve, a8 as We, a9 as Ae, aa as Ut, ab as Kt, ac as qe, ad as Zt, ae as Yt, af as Ue, j as o, B as ht, c as D, R as F, o as Ne, G as Ke, F as R, i as c, T as pt, s as Ze, v as Ye, q as Nt, L as Xe, p as Pt, A as dt, W as Rt, ag as Je, r as Ge, X as Ct, E as se, ah as Dt, ai as tr, M as er } from "./index-BKq2JR4V.js";
18
17
  import { c as a, T as _ } from "./typeGuards-BHbj394R.js";
19
- import * as mt from "react";
20
- import { lazy as B, useCallback as Se, useState as O, memo as ct, useMemo as gt, createElement as It, useRef as Ht, useReducer as nr, forwardRef as or, useEffect as vt } from "react";
21
- import { i as Jt } from "./isClient-C9aZtt2Q.js";
22
- import { s as ir, c as Mt, r as it, a as dr, l as ar } from "./renderImage-ViVSYcgG.js";
23
- import { u as lt, b as _t, a as lr, g as Ot, F as ur } from "./useDebounce-5MeprqTX.js";
24
- import { z as Lt, Z as Tt } from "./index-Cj4n5Vtu.js";
25
- import { au as Qt } from "./utils-U4W3nat7.js";
26
- import { b as mr, u as xr, a as hr } from "./useFieldsProgress-C918amw-.js";
27
- import { createPortal as Ie } from "react-dom";
28
- var Q, je, pr = (je = class extends ve {
18
+ import * as ut from "react";
19
+ import { lazy as B, useCallback as Ce, useState as O, memo as ft, useMemo as ct, createElement as St, useRef as Ht, useReducer as rr, forwardRef as nr, useEffect as wt } from "react";
20
+ import { i as Xt } from "./isClient-C9aZtt2Q.js";
21
+ import { s as or, c as It, a as ir, l as dr } from "./localStorageActions-CkWWvUS3.js";
22
+ import { u as at, b as Mt, a as ar, g as _t, F as lr } from "./useDebounce-5MeprqTX.js";
23
+ import { z as zt, Z as Ot } from "./index-Cj4n5Vtu.js";
24
+ import { au as Lt } from "./utils-U4W3nat7.js";
25
+ import { b as ur, u as mr, a as xr } from "./useFieldsProgress-C918amw-.js";
26
+ import { createPortal as Se } from "react-dom";
27
+ var Q, be, hr = (be = class extends we {
29
28
  constructor(t = {}) {
30
29
  super();
31
30
  N(this, Q);
32
31
  this.config = t, j(this, Q, /* @__PURE__ */ new Map());
33
32
  }
34
33
  build(t, r, n) {
35
- const i = r.queryKey, d = r.queryHash ?? Ne(i, r);
34
+ const i = r.queryKey, d = r.queryHash ?? ve(i, r);
36
35
  let l = this.get(d);
37
- return l || (l = new Le({
36
+ return l || (l = new ze({
38
37
  client: t,
39
38
  queryKey: i,
40
39
  queryHash: d,
@@ -69,12 +68,12 @@ var Q, je, pr = (je = class extends ve {
69
68
  find(t) {
70
69
  const r = { exact: !0, ...t };
71
70
  return this.getAll().find(
72
- (n) => Ut(r, n)
71
+ (n) => At(r, n)
73
72
  );
74
73
  }
75
74
  findAll(t = {}) {
76
75
  const r = this.getAll();
77
- return Object.keys(t).length > 0 ? r.filter((n) => Ut(t, n)) : r;
76
+ return Object.keys(t).length > 0 ? r.filter((n) => At(t, n)) : r;
78
77
  }
79
78
  notify(t) {
80
79
  T.batch(() => {
@@ -97,14 +96,14 @@ var Q, je, pr = (je = class extends ve {
97
96
  });
98
97
  });
99
98
  }
100
- }, Q = new WeakMap(), je), $, M, s, V, q, ye, fr = (ye = class extends Qe {
99
+ }, Q = new WeakMap(), be), $, M, s, V, U, je, pr = (je = class extends Le {
101
100
  constructor(t) {
102
101
  super();
103
102
  N(this, V);
104
103
  N(this, $);
105
104
  N(this, M);
106
105
  N(this, s);
107
- this.mutationId = t.mutationId, j(this, M, t.mutationCache), j(this, $, []), this.state = t.state || cr(), this.setOptions(t.options), this.scheduleGc();
106
+ this.mutationId = t.mutationId, j(this, M, t.mutationCache), j(this, $, []), this.state = t.state || fr(), this.setOptions(t.options), this.scheduleGc();
108
107
  }
109
108
  setOptions(t) {
110
109
  this.options = t, this.updateGcTime(this.options.gcTime);
@@ -135,17 +134,17 @@ var Q, je, pr = (je = class extends ve {
135
134
  this.execute(this.state.variables);
136
135
  }
137
136
  async execute(t) {
138
- var d, l, u, x, m, p, f, S, y, P, k, I, E, H, v, C, L, X, bt, jt;
137
+ var d, l, u, x, m, p, f, S, y, E, k, I, P, z, v, C, L, X, gt, bt;
139
138
  const r = () => {
140
- U(this, V, q).call(this, { type: "continue" });
139
+ q(this, V, U).call(this, { type: "continue" });
141
140
  };
142
- j(this, s, $e({
141
+ j(this, s, Qe({
143
142
  fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
144
143
  onFail: (w, J) => {
145
- U(this, V, q).call(this, { type: "failed", failureCount: w, error: J });
144
+ q(this, V, U).call(this, { type: "failed", failureCount: w, error: J });
146
145
  },
147
146
  onPause: () => {
148
- U(this, V, q).call(this, { type: "pause" });
147
+ q(this, V, U).call(this, { type: "pause" });
149
148
  },
150
149
  onContinue: r,
151
150
  retry: this.options.retry ?? 0,
@@ -158,13 +157,13 @@ var Q, je, pr = (je = class extends ve {
158
157
  if (n)
159
158
  r();
160
159
  else {
161
- U(this, V, q).call(this, { type: "pending", variables: t, isPaused: i }), await ((l = (d = h(this, M).config).onMutate) == null ? void 0 : l.call(
160
+ q(this, V, U).call(this, { type: "pending", variables: t, isPaused: i }), await ((l = (d = h(this, M).config).onMutate) == null ? void 0 : l.call(
162
161
  d,
163
162
  t,
164
163
  this
165
164
  ));
166
165
  const J = await ((x = (u = this.options).onMutate) == null ? void 0 : x.call(u, t));
167
- J !== this.state.context && U(this, V, q).call(this, {
166
+ J !== this.state.context && q(this, V, U).call(this, {
168
167
  type: "pending",
169
168
  context: J,
170
169
  variables: t,
@@ -178,18 +177,18 @@ var Q, je, pr = (je = class extends ve {
178
177
  t,
179
178
  this.state.context,
180
179
  this
181
- )), await ((S = (f = this.options).onSuccess) == null ? void 0 : S.call(f, w, t, this.state.context)), await ((P = (y = h(this, M).config).onSettled) == null ? void 0 : P.call(
180
+ )), await ((S = (f = this.options).onSuccess) == null ? void 0 : S.call(f, w, t, this.state.context)), await ((E = (y = h(this, M).config).onSettled) == null ? void 0 : E.call(
182
181
  y,
183
182
  w,
184
183
  null,
185
184
  this.state.variables,
186
185
  this.state.context,
187
186
  this
188
- )), await ((I = (k = this.options).onSettled) == null ? void 0 : I.call(k, w, null, t, this.state.context)), U(this, V, q).call(this, { type: "success", data: w }), w;
187
+ )), await ((I = (k = this.options).onSettled) == null ? void 0 : I.call(k, w, null, t, this.state.context)), q(this, V, U).call(this, { type: "success", data: w }), w;
189
188
  } catch (w) {
190
189
  try {
191
- throw await ((H = (E = h(this, M).config).onError) == null ? void 0 : H.call(
192
- E,
190
+ throw await ((z = (P = h(this, M).config).onError) == null ? void 0 : z.call(
191
+ P,
193
192
  w,
194
193
  t,
195
194
  this.state.context,
@@ -206,21 +205,21 @@ var Q, je, pr = (je = class extends ve {
206
205
  this.state.variables,
207
206
  this.state.context,
208
207
  this
209
- )), await ((jt = (bt = this.options).onSettled) == null ? void 0 : jt.call(
210
- bt,
208
+ )), await ((bt = (gt = this.options).onSettled) == null ? void 0 : bt.call(
209
+ gt,
211
210
  void 0,
212
211
  w,
213
212
  t,
214
213
  this.state.context
215
214
  )), w;
216
215
  } finally {
217
- U(this, V, q).call(this, { type: "error", error: w });
216
+ q(this, V, U).call(this, { type: "error", error: w });
218
217
  }
219
218
  } finally {
220
219
  h(this, M).runNext(this);
221
220
  }
222
221
  }
223
- }, $ = new WeakMap(), M = new WeakMap(), s = new WeakMap(), V = new WeakSet(), q = function(t) {
222
+ }, $ = new WeakMap(), M = new WeakMap(), s = new WeakMap(), V = new WeakSet(), U = function(t) {
224
223
  const r = (n) => {
225
224
  switch (t.type) {
226
225
  case "failed":
@@ -283,8 +282,8 @@ var Q, je, pr = (je = class extends ve {
283
282
  action: t
284
283
  });
285
284
  });
286
- }, ye);
287
- function cr() {
285
+ }, je);
286
+ function fr() {
288
287
  return {
289
288
  context: void 0,
290
289
  data: void 0,
@@ -297,18 +296,18 @@ function cr() {
297
296
  submittedAt: 0
298
297
  };
299
298
  }
300
- var A, z, ht, ke, gr = (ke = class extends ve {
299
+ var A, H, xt, ye, cr = (ye = class extends we {
301
300
  constructor(t = {}) {
302
301
  super();
303
302
  N(this, A);
304
- N(this, z);
305
- N(this, ht);
306
- this.config = t, j(this, A, /* @__PURE__ */ new Set()), j(this, z, /* @__PURE__ */ new Map()), j(this, ht, 0);
303
+ N(this, H);
304
+ N(this, xt);
305
+ this.config = t, j(this, A, /* @__PURE__ */ new Set()), j(this, H, /* @__PURE__ */ new Map()), j(this, xt, 0);
307
306
  }
308
307
  build(t, r, n) {
309
- const i = new fr({
308
+ const i = new pr({
310
309
  mutationCache: this,
311
- mutationId: ++yt(this, ht)._,
310
+ mutationId: ++jt(this, xt)._,
312
311
  options: t.defaultMutationOptions(r),
313
312
  state: n
314
313
  });
@@ -316,31 +315,31 @@ var A, z, ht, ke, gr = (ke = class extends ve {
316
315
  }
317
316
  add(t) {
318
317
  h(this, A).add(t);
319
- const r = kt(t);
318
+ const r = yt(t);
320
319
  if (typeof r == "string") {
321
- const n = h(this, z).get(r);
322
- n ? n.push(t) : h(this, z).set(r, [t]);
320
+ const n = h(this, H).get(r);
321
+ n ? n.push(t) : h(this, H).set(r, [t]);
323
322
  }
324
323
  this.notify({ type: "added", mutation: t });
325
324
  }
326
325
  remove(t) {
327
326
  if (h(this, A).delete(t)) {
328
- const r = kt(t);
327
+ const r = yt(t);
329
328
  if (typeof r == "string") {
330
- const n = h(this, z).get(r);
329
+ const n = h(this, H).get(r);
331
330
  if (n)
332
331
  if (n.length > 1) {
333
332
  const i = n.indexOf(t);
334
333
  i !== -1 && n.splice(i, 1);
335
- } else n[0] === t && h(this, z).delete(r);
334
+ } else n[0] === t && h(this, H).delete(r);
336
335
  }
337
336
  }
338
337
  this.notify({ type: "removed", mutation: t });
339
338
  }
340
339
  canRun(t) {
341
- const r = kt(t);
340
+ const r = yt(t);
342
341
  if (typeof r == "string") {
343
- const n = h(this, z).get(r), i = n == null ? void 0 : n.find(
342
+ const n = h(this, H).get(r), i = n == null ? void 0 : n.find(
344
343
  (d) => d.state.status === "pending"
345
344
  );
346
345
  return !i || i === t;
@@ -349,9 +348,9 @@ var A, z, ht, ke, gr = (ke = class extends ve {
349
348
  }
350
349
  runNext(t) {
351
350
  var n;
352
- const r = kt(t);
351
+ const r = yt(t);
353
352
  if (typeof r == "string") {
354
- const i = (n = h(this, z).get(r)) == null ? void 0 : n.find((d) => d !== t && d.state.isPaused);
353
+ const i = (n = h(this, H).get(r)) == null ? void 0 : n.find((d) => d !== t && d.state.isPaused);
355
354
  return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
356
355
  } else
357
356
  return Promise.resolve();
@@ -360,7 +359,7 @@ var A, z, ht, ke, gr = (ke = class extends ve {
360
359
  T.batch(() => {
361
360
  h(this, A).forEach((t) => {
362
361
  this.notify({ type: "removed", mutation: t });
363
- }), h(this, A).clear(), h(this, z).clear();
362
+ }), h(this, A).clear(), h(this, H).clear();
364
363
  });
365
364
  }
366
365
  getAll() {
@@ -390,16 +389,16 @@ var A, z, ht, ke, gr = (ke = class extends ve {
390
389
  )
391
390
  );
392
391
  }
393
- }, A = new WeakMap(), z = new WeakMap(), ht = new WeakMap(), ke);
394
- function kt(e) {
392
+ }, A = new WeakMap(), H = new WeakMap(), xt = new WeakMap(), ye);
393
+ function yt(e) {
395
394
  var t;
396
395
  return (t = e.options.scope) == null ? void 0 : t.id;
397
396
  }
398
- function Gt(e) {
397
+ function Jt(e) {
399
398
  return {
400
399
  onFetch: (t, r) => {
401
- var p, f, S, y, P;
402
- const n = t.options, i = (S = (f = (p = t.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : S.direction, d = ((y = t.state.data) == null ? void 0 : y.pages) || [], l = ((P = t.state.data) == null ? void 0 : P.pageParams) || [];
400
+ var p, f, S, y, E;
401
+ const n = t.options, i = (S = (f = (p = t.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : S.direction, d = ((y = t.state.data) == null ? void 0 : y.pages) || [], l = ((E = t.state.data) == null ? void 0 : E.pageParams) || [];
403
402
  let u = { pages: [], pageParams: [] }, x = 0;
404
403
  const m = async () => {
405
404
  let k = !1;
@@ -410,39 +409,39 @@ function Gt(e) {
410
409
  k = !0;
411
410
  }), t.signal)
412
411
  });
413
- }, E = Ve(t.options, t.fetchOptions), H = async (v, C, L) => {
412
+ }, P = $e(t.options, t.fetchOptions), z = async (v, C, L) => {
414
413
  if (k)
415
414
  return Promise.reject();
416
415
  if (C == null && v.pages.length)
417
416
  return Promise.resolve(v);
418
- const bt = (() => {
419
- const Wt = {
417
+ const gt = (() => {
418
+ const Vt = {
420
419
  client: t.client,
421
420
  queryKey: t.queryKey,
422
421
  pageParam: C,
423
422
  direction: L ? "backward" : "forward",
424
423
  meta: t.options.meta
425
424
  };
426
- return I(Wt), Wt;
427
- })(), jt = await E(bt), { maxPages: w } = t.options, J = L ? We : Ae;
425
+ return I(Vt), Vt;
426
+ })(), bt = await P(gt), { maxPages: w } = t.options, J = L ? Ve : We;
428
427
  return {
429
- pages: J(v.pages, jt, w),
428
+ pages: J(v.pages, bt, w),
430
429
  pageParams: J(v.pageParams, C, w)
431
430
  };
432
431
  };
433
432
  if (i && d.length) {
434
- const v = i === "backward", C = v ? br : st, L = {
433
+ const v = i === "backward", C = v ? gr : Gt, L = {
435
434
  pages: d,
436
435
  pageParams: l
437
436
  }, X = C(n, L);
438
- u = await H(L, X, v);
437
+ u = await z(L, X, v);
439
438
  } else {
440
439
  const v = e ?? d.length;
441
440
  do {
442
- const C = x === 0 ? l[0] ?? n.initialPageParam : st(n, u);
441
+ const C = x === 0 ? l[0] ?? n.initialPageParam : Gt(n, u);
443
442
  if (x > 0 && C == null)
444
443
  break;
445
- u = await H(u, C), x++;
444
+ u = await z(u, C), x++;
446
445
  } while (x < v);
447
446
  }
448
447
  return u;
@@ -464,7 +463,7 @@ function Gt(e) {
464
463
  }
465
464
  };
466
465
  }
467
- function st(e, { pages: t, pageParams: r }) {
466
+ function Gt(e, { pages: t, pageParams: r }) {
468
467
  const n = t.length - 1;
469
468
  return t.length > 0 ? e.getNextPageParam(
470
469
  t[n],
@@ -473,11 +472,11 @@ function st(e, { pages: t, pageParams: r }) {
473
472
  r
474
473
  ) : void 0;
475
474
  }
476
- function br(e, { pages: t, pageParams: r }) {
475
+ function gr(e, { pages: t, pageParams: r }) {
477
476
  var n;
478
477
  return t.length > 0 ? (n = e.getPreviousPageParam) == null ? void 0 : n.call(e, t[0], t, r[0], r) : void 0;
479
478
  }
480
- var b, K, Z, et, rt, Y, nt, ot, we, jr = (we = class {
479
+ var b, K, Z, et, rt, Y, nt, ot, ke, br = (ke = class {
481
480
  constructor(e = {}) {
482
481
  N(this, b);
483
482
  N(this, K);
@@ -487,18 +486,18 @@ var b, K, Z, et, rt, Y, nt, ot, we, jr = (we = class {
487
486
  N(this, Y);
488
487
  N(this, nt);
489
488
  N(this, ot);
490
- j(this, b, e.queryCache || new pr()), j(this, K, e.mutationCache || new gr()), j(this, Z, e.defaultOptions || {}), j(this, et, /* @__PURE__ */ new Map()), j(this, rt, /* @__PURE__ */ new Map()), j(this, Y, 0);
489
+ j(this, b, e.queryCache || new hr()), j(this, K, e.mutationCache || new cr()), j(this, Z, e.defaultOptions || {}), j(this, et, /* @__PURE__ */ new Map()), j(this, rt, /* @__PURE__ */ new Map()), j(this, Y, 0);
491
490
  }
492
491
  mount() {
493
- yt(this, Y)._++, h(this, Y) === 1 && (j(this, nt, Ue.subscribe(async (e) => {
492
+ jt(this, Y)._++, h(this, Y) === 1 && (j(this, nt, Ae.subscribe(async (e) => {
494
493
  e && (await this.resumePausedMutations(), h(this, b).onFocus());
495
- })), j(this, ot, Kt.subscribe(async (e) => {
494
+ })), j(this, ot, Ut.subscribe(async (e) => {
496
495
  e && (await this.resumePausedMutations(), h(this, b).onOnline());
497
496
  })));
498
497
  }
499
498
  unmount() {
500
499
  var e, t;
501
- yt(this, Y)._--, h(this, Y) === 0 && ((e = h(this, nt)) == null || e.call(this), j(this, nt, void 0), (t = h(this, ot)) == null || t.call(this), j(this, ot, void 0));
500
+ jt(this, Y)._--, h(this, Y) === 0 && ((e = h(this, nt)) == null || e.call(this), j(this, nt, void 0), (t = h(this, ot)) == null || t.call(this), j(this, ot, void 0));
502
501
  }
503
502
  isFetching(e) {
504
503
  return h(this, b).findAll({ ...e, fetchStatus: "fetching" }).length;
@@ -520,7 +519,7 @@ var b, K, Z, et, rt, Y, nt, ot, we, jr = (we = class {
520
519
  }
521
520
  ensureQueryData(e) {
522
521
  const t = this.defaultQueryOptions(e), r = h(this, b).build(this, t), n = r.state.data;
523
- return n === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(Zt(t.staleTime, r)) && this.prefetchQuery(t), Promise.resolve(n));
522
+ return n === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(Kt(t.staleTime, r)) && this.prefetchQuery(t), Promise.resolve(n));
524
523
  }
525
524
  getQueriesData(e) {
526
525
  return h(this, b).findAll(e).map(({ queryKey: t, state: r }) => {
@@ -604,23 +603,23 @@ var b, K, Z, et, rt, Y, nt, ot, we, jr = (we = class {
604
603
  t.retry === void 0 && (t.retry = !1);
605
604
  const r = h(this, b).build(this, t);
606
605
  return r.isStaleByTime(
607
- Zt(t.staleTime, r)
606
+ Kt(t.staleTime, r)
608
607
  ) ? r.fetch(t) : Promise.resolve(r.state.data);
609
608
  }
610
609
  prefetchQuery(e) {
611
610
  return this.fetchQuery(e).then(W).catch(W);
612
611
  }
613
612
  fetchInfiniteQuery(e) {
614
- return e.behavior = Gt(e.pages), this.fetchQuery(e);
613
+ return e.behavior = Jt(e.pages), this.fetchQuery(e);
615
614
  }
616
615
  prefetchInfiniteQuery(e) {
617
616
  return this.fetchInfiniteQuery(e).then(W).catch(W);
618
617
  }
619
618
  ensureInfiniteQueryData(e) {
620
- return e.behavior = Gt(e.pages), this.ensureQueryData(e);
619
+ return e.behavior = Jt(e.pages), this.ensureQueryData(e);
621
620
  }
622
621
  resumePausedMutations() {
623
- return Kt.isOnline() ? h(this, K).resumePausedMutations() : Promise.resolve();
622
+ return Ut.isOnline() ? h(this, K).resumePausedMutations() : Promise.resolve();
624
623
  }
625
624
  getQueryCache() {
626
625
  return h(this, b);
@@ -635,7 +634,7 @@ var b, K, Z, et, rt, Y, nt, ot, we, jr = (we = class {
635
634
  j(this, Z, e);
636
635
  }
637
636
  setQueryDefaults(e, t) {
638
- h(this, et).set(Yt(e), {
637
+ h(this, et).set(Zt(e), {
639
638
  queryKey: e,
640
639
  defaultOptions: t
641
640
  });
@@ -643,11 +642,11 @@ var b, K, Z, et, rt, Y, nt, ot, we, jr = (we = class {
643
642
  getQueryDefaults(e) {
644
643
  const t = [...h(this, et).values()], r = {};
645
644
  return t.forEach((n) => {
646
- Xt(e, n.queryKey) && Object.assign(r, n.defaultOptions);
645
+ Yt(e, n.queryKey) && Object.assign(r, n.defaultOptions);
647
646
  }), r;
648
647
  }
649
648
  setMutationDefaults(e, t) {
650
- h(this, rt).set(Yt(e), {
649
+ h(this, rt).set(Zt(e), {
651
650
  mutationKey: e,
652
651
  defaultOptions: t
653
652
  });
@@ -655,7 +654,7 @@ var b, K, Z, et, rt, Y, nt, ot, we, jr = (we = class {
655
654
  getMutationDefaults(e) {
656
655
  const t = [...h(this, rt).values()], r = {};
657
656
  return t.forEach((n) => {
658
- Xt(e, n.mutationKey) && Object.assign(r, n.defaultOptions);
657
+ Yt(e, n.mutationKey) && Object.assign(r, n.defaultOptions);
659
658
  }), r;
660
659
  }
661
660
  defaultQueryOptions(e) {
@@ -667,10 +666,10 @@ var b, K, Z, et, rt, Y, nt, ot, we, jr = (we = class {
667
666
  ...e,
668
667
  _defaulted: !0
669
668
  };
670
- return t.queryHash || (t.queryHash = Ne(
669
+ return t.queryHash || (t.queryHash = ve(
671
670
  t.queryKey,
672
671
  t
673
- )), 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 === Ke && (t.enabled = !1), t;
672
+ )), 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 === Ue && (t.enabled = !1), t;
674
673
  }
675
674
  defaultMutationOptions(e) {
676
675
  return e != null && e._defaulted ? e : {
@@ -683,39 +682,39 @@ var b, K, Z, et, rt, Y, nt, ot, we, jr = (we = class {
683
682
  clear() {
684
683
  h(this, b).clear(), h(this, K).clear();
685
684
  }
686
- }, b = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), et = new WeakMap(), rt = new WeakMap(), Y = new WeakMap(), nt = new WeakMap(), ot = new WeakMap(), we);
687
- const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resolve().then(() => Po)), wr = B(() => Promise.resolve().then(() => Kn)), vr = B(() => Promise.resolve().then(() => Yn)), Nr = B(() => Promise.resolve().then(() => Gr)), Cr = B(() => Promise.resolve().then(() => $r)), Sr = B(() => Promise.resolve().then(() => gn)), Ir = B(() => Promise.resolve().then(() => mn)), Mr = B(() => Promise.resolve().then(() => fo)), _r = B(() => Promise.resolve().then(() => rn)), Or = B(() => Promise.resolve().then(() => Hn)), Tr = B(() => Promise.resolve().then(() => Lr)), Fr = B(() => Promise.resolve().then(() => Do)), Br = B(() => Promise.resolve().then(() => Yo)), Pr = {
688
- header: Cr,
689
- seoHeader: Mr,
690
- banner: yr,
691
- calculator: kr,
692
- form: wr,
693
- formDialog: vr,
694
- stepper: _r,
695
- benefit: Tr,
696
- longBanner: Ir,
697
- usefulInfo: Or,
698
- interLinking: Sr,
699
- footer: Nr,
700
- infoBlock: Fr,
701
- userFeedback: Br
702
- }, Er = Object.keys(Pr), g = Er.reduce(
685
+ }, b = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), et = new WeakMap(), rt = new WeakMap(), Y = new WeakMap(), nt = new WeakMap(), ot = new WeakMap(), ke);
686
+ const jr = B(() => Promise.resolve().then(() => Wr)), yr = B(() => Promise.resolve().then(() => Bo)), kr = B(() => Promise.resolve().then(() => Un)), wr = B(() => Promise.resolve().then(() => Zn)), vr = B(() => Promise.resolve().then(() => Jr)), Nr = B(() => Promise.resolve().then(() => Qr)), Cr = B(() => Promise.resolve().then(() => cn)), Sr = B(() => Promise.resolve().then(() => un)), Ir = B(() => Promise.resolve().then(() => po)), Mr = B(() => Promise.resolve().then(() => en)), _r = B(() => Promise.resolve().then(() => Hn)), Or = B(() => Promise.resolve().then(() => zr)), Tr = B(() => Promise.resolve().then(() => Ro)), Fr = B(() => Promise.resolve().then(() => Zo)), Br = {
687
+ header: Nr,
688
+ seoHeader: Ir,
689
+ banner: jr,
690
+ calculator: yr,
691
+ form: kr,
692
+ formDialog: wr,
693
+ stepper: Mr,
694
+ benefit: Or,
695
+ longBanner: Sr,
696
+ usefulInfo: _r,
697
+ interLinking: Cr,
698
+ footer: vr,
699
+ infoBlock: Tr,
700
+ userFeedback: Fr
701
+ }, Er = Object.keys(Br), g = Er.reduce(
703
702
  (e, t) => (e[t] = t, e),
704
703
  {}
705
- ), Rr = (e) => Se(() => {
704
+ ), Pr = (e) => Ce(() => {
706
705
  switch (e.handler) {
707
706
  case "navigate": {
708
707
  const { url: r, target: n, rel: i } = e;
709
- Jt && (window == null || window.open(r, n, i));
708
+ Xt && (window == null || window.open(r, n, i));
710
709
  break;
711
710
  }
712
711
  case "scroll": {
713
712
  const { widgetId: r } = e ?? "";
714
- ir({ widgetId: r });
713
+ or({ widgetId: r });
715
714
  break;
716
715
  }
717
716
  case "dialog": {
718
- if (!Jt) return;
717
+ if (!Xt) return;
719
718
  const { dialogId: r } = e ?? {}, n = document.getElementById(r);
720
719
  if (!n) {
721
720
  console.error("Такого элемента в DOM не существует", r);
@@ -725,9 +724,9 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
725
724
  }
726
725
  }
727
726
  }, [e]), tt = ({ handlerOptions: e, className: t, ...r }) => {
728
- const n = Rr(e);
729
- return /* @__PURE__ */ o.jsx(pt, { className: a(t), onClick: n, ...r, children: r.children });
730
- }, Dr = D(
727
+ const n = Pr(e);
728
+ return /* @__PURE__ */ o.jsx(ht, { className: a(t), onClick: n, ...r, children: r.children });
729
+ }, Rr = D(
731
730
  "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",
732
731
  {
733
732
  variants: {
@@ -738,7 +737,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
738
737
  }
739
738
  }
740
739
  }
741
- ), zr = ({
740
+ ), Dr = ({
742
741
  subtitle: e,
743
742
  title: t,
744
743
  img: r,
@@ -749,12 +748,12 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
749
748
  variant: u,
750
749
  color: x
751
750
  }) => {
752
- const { isDesktop: m } = lt();
751
+ const { isDesktop: m } = at();
753
752
  return /* @__PURE__ */ o.jsxs(
754
753
  "li",
755
754
  {
756
755
  style: { backgroundColor: x ?? "#F3F4F7" },
757
- className: a(Dr({ variant: u }), { "pb-0": n }, { "pb-12": !n }, i == null ? void 0 : i.root),
756
+ className: a(Rr({ variant: u }), { "pb-0": n }, { "pb-12": !n }, i == null ? void 0 : i.root),
758
757
  children: [
759
758
  /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", i == null ? void 0 : i.wrapper), children: [
760
759
  /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4", i == null ? void 0 : i.textContainer), children: [
@@ -782,7 +781,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
782
781
  fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
783
782
  }
784
783
  }
785
- }), te = ({ headline: e, details: t, variant: r, classes: n }) => /* @__PURE__ */ o.jsx("section", { id: g.benefit, "data-test-id": g.benefit, className: a(n == null ? void 0 : n.root), children: /* @__PURE__ */ o.jsxs(F, { className: n == null ? void 0 : n.container, children: [
784
+ }), st = ({ headline: e, details: t, variant: r, classes: n }) => /* @__PURE__ */ o.jsx("section", { id: g.benefit, "data-test-id": g.benefit, className: a(n == null ? void 0 : n.root), children: /* @__PURE__ */ o.jsxs(F, { className: n == null ? void 0 : n.container, children: [
786
785
  /* @__PURE__ */ o.jsx(
787
786
  "div",
788
787
  {
@@ -790,21 +789,21 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
790
789
  className: a("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", n == null ? void 0 : n.heading)
791
790
  }
792
791
  ),
793
- /* @__PURE__ */ o.jsx("ul", { className: a(Hr({ variant: r }), n == null ? void 0 : n.grid), children: t == null ? void 0 : t.map((i) => /* @__PURE__ */ o.jsx(zr, { variant: r, classes: n == null ? void 0 : n.item, ...i }, i.title)) })
794
- ] }) }), Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
792
+ /* @__PURE__ */ o.jsx("ul", { className: a(Hr({ variant: r }), n == null ? void 0 : n.grid), children: t == null ? void 0 : t.map((i) => /* @__PURE__ */ o.jsx(Dr, { variant: r, classes: n == null ? void 0 : n.item, ...i }, i.title)) })
793
+ ] }) }), zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
795
794
  __proto__: null,
796
- Benefit: te,
797
- default: te
798
- }, Symbol.toStringTag, { value: "Module" })), Qr = ({ variant: e, details: t }) => {
795
+ Benefit: st,
796
+ default: st
797
+ }, Symbol.toStringTag, { value: "Module" })), Lr = ({ variant: e, details: t }) => {
799
798
  switch (e) {
800
799
  case "withButton":
801
800
  return /* @__PURE__ */ o.jsx(tt, { ...t });
802
801
  case "withPhone":
803
- return /* @__PURE__ */ o.jsx(Ce, { classes: { root: "items-end" }, ...t, phone: Mt(t.phone) });
802
+ return /* @__PURE__ */ o.jsx(Ne, { classes: { root: "items-end" }, ...t, phone: It(t.phone) });
804
803
  default:
805
804
  return null;
806
805
  }
807
- }, ee = (e) => {
806
+ }, te = (e) => {
808
807
  const { logoPath: t = "/", logoType: r = "main", classes: n } = e;
809
808
  return /* @__PURE__ */ o.jsx(
810
809
  "header",
@@ -824,18 +823,18 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
824
823
  "flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
825
824
  n == null ? void 0 : n.logo
826
825
  ),
827
- children: Ze[r]
826
+ children: Ke[r]
828
827
  }
829
828
  ),
830
- Qr(e)
829
+ Lr(e)
831
830
  ] }) })
832
831
  }
833
832
  );
834
- }, $r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
833
+ }, Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
835
834
  __proto__: null,
836
- Header: ee,
837
- default: ee
838
- }, Symbol.toStringTag, { value: "Module" })), Me = ({ buttonConfig: e, classes: t }) => {
835
+ Header: te,
836
+ default: te
837
+ }, Symbol.toStringTag, { value: "Module" })), Ie = ({ buttonConfig: e, classes: t }) => {
839
838
  const { primary: r, secondary: n } = e || {};
840
839
  return /* @__PURE__ */ o.jsxs(
841
840
  "div",
@@ -867,7 +866,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
867
866
  ]
868
867
  }
869
868
  );
870
- }, Nt = ({ details: e, classes: t }) => {
869
+ }, vt = ({ details: e, classes: t }) => {
871
870
  const { variant: r, items: n } = e ?? {};
872
871
  return /* @__PURE__ */ o.jsx("div", { className: a("flex items-center justify-center pb-8", t == null ? void 0 : t.root), children: /* @__PURE__ */ o.jsx(
873
872
  "div",
@@ -895,41 +894,27 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
895
894
  ))
896
895
  }
897
896
  ) });
898
- }, Vr = ({
897
+ }, $r = ({
899
898
  headTitle: e,
900
899
  subtitle: t,
901
900
  buttonsConfig: r,
902
901
  advantages: n,
903
902
  classes: i,
904
- imageDesktop: d,
905
- imageMobile: l,
906
- renderImageCb: u,
907
- backgroundColor: x
903
+ images: d,
904
+ backgroundColor: l
908
905
  }) => {
909
- var f;
910
- const { isMobile: m } = lt(), p = (n == null ? void 0 : n.details) && ((f = n == null ? void 0 : n.details) == null ? void 0 : f.items.length) > 0;
906
+ var m;
907
+ const { isMobile: u } = at(), x = (n == null ? void 0 : n.details) && ((m = n == null ? void 0 : n.details) == null ? void 0 : m.items.length) > 0;
911
908
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
912
909
  /* @__PURE__ */ o.jsxs(
913
910
  "section",
914
911
  {
915
912
  id: g.banner,
916
913
  "data-test-id": g.banner,
917
- style: { backgroundColor: x ?? "#d9edff" },
914
+ style: { backgroundColor: l ?? "#d9edff" },
918
915
  className: a("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
919
916
  children: [
920
- /* @__PURE__ */ o.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: m ? it({
921
- imgProps: {
922
- className: "h-full w-full object-cover object-center",
923
- ...l
924
- },
925
- renderImageCb: u
926
- }) : it({
927
- imgProps: {
928
- className: "h-full w-full object-cover object-center",
929
- ...d
930
- },
931
- renderImageCb: u
932
- }) }),
917
+ /* @__PURE__ */ o.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: u ? /* @__PURE__ */ o.jsx("img", { src: d.mobile, className: "h-full w-full object-cover object-center", alt: d.alt }) : /* @__PURE__ */ o.jsx("img", { src: d.desktop, alt: d.alt, className: "h-full w-full object-cover object-center" }) }),
933
918
  /* @__PURE__ */ o.jsxs(F, { className: a("h-full", i == null ? void 0 : i.container), children: [
934
919
  /* @__PURE__ */ o.jsx("div", { className: a("flex h-full", i == null ? void 0 : i.wrapper), children: /* @__PURE__ */ o.jsxs("div", { className: a("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", i == null ? void 0 : i.textBlock), children: [
935
920
  /* @__PURE__ */ o.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
@@ -948,10 +933,10 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
948
933
  }
949
934
  )
950
935
  ] }),
951
- /* @__PURE__ */ o.jsx(Me, { buttonConfig: r })
936
+ /* @__PURE__ */ o.jsx(Ie, { buttonConfig: r })
952
937
  ] }) }),
953
- (n == null ? void 0 : n.enabled) && p && /* @__PURE__ */ o.jsx(
954
- Nt,
938
+ (n == null ? void 0 : n.enabled) && x && /* @__PURE__ */ o.jsx(
939
+ vt,
955
940
  {
956
941
  classes: {
957
942
  root: "mobile:hidden desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:rounded-md desktop:p-0"
@@ -963,8 +948,8 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
963
948
  ]
964
949
  }
965
950
  ),
966
- (n == null ? void 0 : n.enabled) && p && /* @__PURE__ */ o.jsx(
967
- Nt,
951
+ (n == null ? void 0 : n.enabled) && x && /* @__PURE__ */ o.jsx(
952
+ vt,
968
953
  {
969
954
  classes: {
970
955
  root: "px-4 pt-4 mobile:bg-color-white desktop:hidden"
@@ -973,24 +958,22 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
973
958
  }
974
959
  )
975
960
  ] });
976
- }, Wr = ({
961
+ }, Vr = ({
977
962
  headTitle: e,
978
963
  subtitle: t,
979
964
  buttonsConfig: r,
980
965
  advantages: n,
981
966
  classes: i,
982
- renderImageCb: d,
983
- imageDesktop: l,
984
- imageMobile: u,
985
- backgroundColor: x
967
+ images: d,
968
+ backgroundColor: l
986
969
  }) => {
987
- var p;
988
- const m = (n == null ? void 0 : n.details) && ((p = n == null ? void 0 : n.details) == null ? void 0 : p.items.length) > 0;
970
+ var x;
971
+ const u = (n == null ? void 0 : n.details) && ((x = n == null ? void 0 : n.details) == null ? void 0 : x.items.length) > 0;
989
972
  return /* @__PURE__ */ o.jsxs(
990
973
  "section",
991
974
  {
992
975
  id: g.banner,
993
- style: { backgroundColor: x ?? "#d9edff" },
976
+ style: { backgroundColor: l ?? "#d9edff" },
994
977
  "data-test-id": g.banner,
995
978
  className: a("", i == null ? void 0 : i.root),
996
979
  children: [
@@ -1014,7 +997,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1014
997
  )
1015
998
  ] }),
1016
999
  /* @__PURE__ */ o.jsx(
1017
- Me,
1000
+ Ie,
1018
1001
  {
1019
1002
  buttonConfig: r,
1020
1003
  classes: {
@@ -1030,13 +1013,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1030
1013
  "relative flex h-[356px] justify-center desktop:hidden desktop:h-[456px] desktop:w-[550px]",
1031
1014
  i == null ? void 0 : i.imageContainer
1032
1015
  ),
1033
- children: it({
1034
- imgProps: {
1035
- className: "h-full object-contain",
1036
- ...u
1037
- },
1038
- renderImageCb: d
1039
- })
1016
+ children: /* @__PURE__ */ o.jsx("img", { src: d.mobile, alt: d.alt, className: "h-full object-contain" })
1040
1017
  }
1041
1018
  ),
1042
1019
  /* @__PURE__ */ o.jsx(
@@ -1046,18 +1023,12 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1046
1023
  "relative flex h-[356px] justify-center mobile:hidden desktop:h-[456px] desktop:w-[550px]",
1047
1024
  i == null ? void 0 : i.imageContainer
1048
1025
  ),
1049
- children: it({
1050
- imgProps: {
1051
- className: "h-full object-contain",
1052
- ...l
1053
- },
1054
- renderImageCb: d
1055
- })
1026
+ children: /* @__PURE__ */ o.jsx("img", { src: d.desktop, alt: d.alt, className: "h-full object-contain" })
1056
1027
  }
1057
1028
  )
1058
1029
  ] }),
1059
- (n == null ? void 0 : n.enabled) && m && /* @__PURE__ */ o.jsx(
1060
- Nt,
1030
+ (n == null ? void 0 : n.enabled) && u && /* @__PURE__ */ o.jsx(
1031
+ vt,
1061
1032
  {
1062
1033
  classes: {
1063
1034
  root: "mobile:hidden desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:rounded-md desktop:p-0"
@@ -1066,8 +1037,8 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1066
1037
  }
1067
1038
  )
1068
1039
  ] }),
1069
- (n == null ? void 0 : n.enabled) && m && /* @__PURE__ */ o.jsx(
1070
- Nt,
1040
+ (n == null ? void 0 : n.enabled) && u && /* @__PURE__ */ o.jsx(
1041
+ vt,
1071
1042
  {
1072
1043
  classes: {
1073
1044
  root: "px-4 pt-4 mobile:bg-color-white desktop:hidden"
@@ -1078,18 +1049,18 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1078
1049
  ]
1079
1050
  }
1080
1051
  );
1081
- }, re = ({ variant: e, ...t }) => {
1052
+ }, ee = ({ variant: e, ...t }) => {
1082
1053
  switch (e) {
1083
1054
  case "fullImg":
1084
- return /* @__PURE__ */ o.jsx(Vr, { ...t });
1055
+ return /* @__PURE__ */ o.jsx($r, { ...t });
1085
1056
  default:
1086
- return /* @__PURE__ */ o.jsx(Wr, { ...t });
1057
+ return /* @__PURE__ */ o.jsx(Vr, { ...t });
1087
1058
  }
1088
- }, Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1059
+ }, Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1089
1060
  __proto__: null,
1090
- Banner: re,
1091
- default: re
1092
- }, Symbol.toStringTag, { value: "Module" })), Ur = ({ socialsLinks: e, classes: t }) => /* @__PURE__ */ o.jsx("div", { className: a("mt-4 flex items-center gap-2 desktop:mt-6", t == null ? void 0 : t.socialRoot), children: e == null ? void 0 : e.map(({ iconName: r, href: n, ...i }) => /* @__PURE__ */ o.jsx(
1061
+ Banner: ee,
1062
+ default: ee
1063
+ }, Symbol.toStringTag, { value: "Module" })), Ar = ({ socialsLinks: e, classes: t }) => /* @__PURE__ */ o.jsx("div", { className: a("mt-4 flex items-center gap-2 desktop:mt-6", t == null ? void 0 : t.socialRoot), children: e == null ? void 0 : e.map(({ iconName: r, href: n, ...i }) => /* @__PURE__ */ o.jsx(
1093
1064
  "a",
1094
1065
  {
1095
1066
  className: a("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", t == null ? void 0 : t.socialLink),
@@ -1100,9 +1071,9 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1100
1071
  },
1101
1072
  n
1102
1073
  )) }), qr = ({ phones: e, classes: t }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4 desktop:items-end", t == null ? void 0 : t.phonesRoot), children: e == null ? void 0 : e.map(({ phone: r, text: n }) => /* @__PURE__ */ o.jsx(
1103
- Ce,
1074
+ Ne,
1104
1075
  {
1105
- phone: Mt(r),
1076
+ phone: It(r),
1106
1077
  text: n,
1107
1078
  classes: {
1108
1079
  root: a(t == null ? void 0 : t.phoneWrapper),
@@ -1111,7 +1082,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1111
1082
  }
1112
1083
  },
1113
1084
  r
1114
- )) }), Kr = ({ classes: e, details: t }) => /* @__PURE__ */ o.jsx(
1085
+ )) }), Ur = ({ classes: e, details: t }) => /* @__PURE__ */ o.jsx(
1115
1086
  "div",
1116
1087
  {
1117
1088
  className: a(
@@ -1122,7 +1093,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1122
1093
  ({ column: r }) => r == null ? void 0 : r.map(({ groupLabel: n, links: i }) => /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4", e == null ? void 0 : e.navGroup), children: [
1123
1094
  /* @__PURE__ */ o.jsx("div", { className: a("desk-body-medium-l text-color-white", e == null ? void 0 : e.navLabel), children: n }),
1124
1095
  /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-1", e == null ? void 0 : e.navLinks), children: i == null ? void 0 : i.map(({ path: d, label: l, ...u }) => /* @__PURE__ */ o.jsx(
1125
- ft,
1096
+ pt,
1126
1097
  {
1127
1098
  href: d,
1128
1099
  "aria-label": l,
@@ -1139,7 +1110,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1139
1110
  ] }, n))
1140
1111
  )
1141
1112
  }
1142
- ), Zr = ({ text: e, classes: t }) => {
1113
+ ), Kr = ({ text: e, classes: t }) => {
1143
1114
  const r = (/* @__PURE__ */ new Date()).getFullYear();
1144
1115
  return /* @__PURE__ */ o.jsx(
1145
1116
  "div",
@@ -1150,7 +1121,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1150
1121
  }
1151
1122
  }
1152
1123
  );
1153
- }, Yr = ({ classes: e }) => /* @__PURE__ */ o.jsx(
1124
+ }, Zr = ({ classes: e }) => /* @__PURE__ */ o.jsx(
1154
1125
  "a",
1155
1126
  {
1156
1127
  "aria-label": "logo",
@@ -1158,8 +1129,8 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1158
1129
  className: a("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", e == null ? void 0 : e.footerLogo),
1159
1130
  children: /* @__PURE__ */ o.jsx(c, { name: "brandLogos/logoWhite", className: a("size-full", e == null ? void 0 : e.footerLogoIcon) })
1160
1131
  }
1161
- ), Xr = ({ classes: e }) => /* @__PURE__ */ o.jsx(
1162
- ft,
1132
+ ), Yr = ({ classes: e }) => /* @__PURE__ */ o.jsx(
1133
+ pt,
1163
1134
  {
1164
1135
  intent: "white",
1165
1136
  href: "https://sovcombank.ru/site-map",
@@ -1172,9 +1143,9 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1172
1143
  },
1173
1144
  children: "Карта сайта"
1174
1145
  }
1175
- ), Jr = ({ text: e, classes: t }) => {
1176
- const [r, n] = mt.useState(!1), [i, d] = mt.useState(!1), l = mt.useRef(null);
1177
- return mt.useEffect(() => {
1146
+ ), Xr = ({ text: e, classes: t }) => {
1147
+ const [r, n] = ut.useState(!1), [i, d] = ut.useState(!1), l = ut.useRef(null);
1148
+ return ut.useEffect(() => {
1178
1149
  const u = l.current;
1179
1150
  u && d(u.scrollHeight > u.clientHeight);
1180
1151
  }, []), /* @__PURE__ */ o.jsxs("div", { className: a("mt-8 flex flex-col gap-4", t == null ? void 0 : t.ligalRoot), children: [
@@ -1200,7 +1171,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1200
1171
  }
1201
1172
  )
1202
1173
  ] });
1203
- }, ne = ({
1174
+ }, re = ({
1204
1175
  socialsLinks: e,
1205
1176
  phones: t,
1206
1177
  ligal: r,
@@ -1224,15 +1195,15 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1224
1195
  ),
1225
1196
  children: [
1226
1197
  /* @__PURE__ */ o.jsxs("div", { className: a(i == null ? void 0 : i.footerSocialBlock), children: [
1227
- /* @__PURE__ */ o.jsx(Yr, { classes: i == null ? void 0 : i.footerLogo }),
1228
- e.enabled && /* @__PURE__ */ o.jsx(Ur, { socialsLinks: e.links, classes: i == null ? void 0 : i.socialLinks })
1198
+ /* @__PURE__ */ o.jsx(Zr, { classes: i == null ? void 0 : i.footerLogo }),
1199
+ e.enabled && /* @__PURE__ */ o.jsx(Ar, { socialsLinks: e.links, classes: i == null ? void 0 : i.socialLinks })
1229
1200
  ] }),
1230
1201
  t.enabled && /* @__PURE__ */ o.jsx(qr, { phones: t.items, classes: i == null ? void 0 : i.phonesBlock })
1231
1202
  ]
1232
1203
  }
1233
1204
  ),
1234
- !_.isArrayEmpty(d) && /* @__PURE__ */ o.jsx(Kr, { details: d, classes: i == null ? void 0 : i.navLinks }),
1235
- r.enabled && /* @__PURE__ */ o.jsx(Jr, { text: r.text }),
1205
+ !_.isArrayEmpty(d) && /* @__PURE__ */ o.jsx(Ur, { details: d, classes: i == null ? void 0 : i.navLinks }),
1206
+ r.enabled && /* @__PURE__ */ o.jsx(Xr, { text: r.text }),
1236
1207
  /* @__PURE__ */ o.jsxs(
1237
1208
  "div",
1238
1209
  {
@@ -1241,18 +1212,18 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1241
1212
  i == null ? void 0 : i.footerBottom
1242
1213
  ),
1243
1214
  children: [
1244
- n.enabled && /* @__PURE__ */ o.jsx(Zr, { text: n.text, classes: i == null ? void 0 : i.copyright }),
1245
- l && /* @__PURE__ */ o.jsx(Xr, { classes: i == null ? void 0 : i.siteMap })
1215
+ n.enabled && /* @__PURE__ */ o.jsx(Kr, { text: n.text, classes: i == null ? void 0 : i.copyright }),
1216
+ l && /* @__PURE__ */ o.jsx(Yr, { classes: i == null ? void 0 : i.siteMap })
1246
1217
  ]
1247
1218
  }
1248
1219
  )
1249
1220
  ] }) })
1250
1221
  }
1251
- ), Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1222
+ ), Jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1252
1223
  __proto__: null,
1253
- Footer: ne,
1254
- default: ne
1255
- }, Symbol.toStringTag, { value: "Module" })), sr = (e) => {
1224
+ Footer: re,
1225
+ default: re
1226
+ }, Symbol.toStringTag, { value: "Module" })), Gr = (e) => {
1256
1227
  var d, l;
1257
1228
  const { classes: t, index: r, title: n, description: i } = e;
1258
1229
  return /* @__PURE__ */ o.jsxs(
@@ -1295,10 +1266,10 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1295
1266
  ]
1296
1267
  }
1297
1268
  );
1298
- }, tn = ({ currentStepper: e, classes: t }) => {
1269
+ }, sr = ({ currentStepper: e, classes: t }) => {
1299
1270
  const [r, n] = O(0), { carouselClasses: i, carouselSlideClasses: d } = t || {};
1300
1271
  return /* @__PURE__ */ o.jsx(
1301
- Ye,
1272
+ Ze,
1302
1273
  {
1303
1274
  carouselOptions: {
1304
1275
  dragFree: !1
@@ -1319,7 +1290,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1319
1290
  ...i
1320
1291
  },
1321
1292
  children: e.details.map((l, u) => /* @__PURE__ */ o.jsx(
1322
- Xe,
1293
+ Ye,
1323
1294
  {
1324
1295
  variant: "fullScreen",
1325
1296
  slideIndex: u,
@@ -1333,7 +1304,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1333
1304
  ))
1334
1305
  }
1335
1306
  );
1336
- }, en = ct(({ stepperTabs: e, activeStepper: t, setActiveStepper: r, classes: n }) => /* @__PURE__ */ o.jsx("div", { className: a("customScrollbar-y scrollHidden flex items-center gap-4 overflow-x-auto", n == null ? void 0 : n.wrapper), children: e == null ? void 0 : e.map(({ headline: i }) => /* @__PURE__ */ o.jsx(
1307
+ }, tn = ft(({ stepperTabs: e, activeStepper: t, setActiveStepper: r, classes: n }) => /* @__PURE__ */ o.jsx("div", { className: a("customScrollbar-y scrollHidden flex items-center gap-4 overflow-x-auto", n == null ? void 0 : n.wrapper), children: e == null ? void 0 : e.map(({ headline: i }) => /* @__PURE__ */ o.jsx(
1337
1308
  "button",
1338
1309
  {
1339
1310
  onClick: () => r(i),
@@ -1345,14 +1316,14 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1345
1316
  children: i
1346
1317
  },
1347
1318
  i
1348
- )) })), oe = ({ steppers: e, classes: t }) => {
1319
+ )) })), ne = ({ steppers: e, classes: t }) => {
1349
1320
  var x, m;
1350
- const r = e.length > 1, [n, i] = O(r ? (x = e[0]) == null ? void 0 : x.headline : ""), d = gt(() => e == null ? void 0 : e.map(({ headline: p }) => ({ headline: p })), [e]), l = r ? d == null ? void 0 : d.findIndex((p) => p.headline === n) : 0, u = e[l];
1321
+ const r = e.length > 1, [n, i] = O(r ? (x = e[0]) == null ? void 0 : x.headline : ""), d = ct(() => e == null ? void 0 : e.map(({ headline: p }) => ({ headline: p })), [e]), l = r ? d == null ? void 0 : d.findIndex((p) => p.headline === n) : 0, u = e[l];
1351
1322
  return /* @__PURE__ */ o.jsx("section", { id: g.stepper, "data-test-id": g.stepper, className: t == null ? void 0 : t.root, children: /* @__PURE__ */ o.jsx(F, { className: a(t == null ? void 0 : t.container, "mobile:max-w-[360px]"), children: /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-6 desktop:items-start desktop:gap-12", t == null ? void 0 : t.wrapper), children: [
1352
1323
  /* @__PURE__ */ o.jsx(R, { as: "h2", className: a("text-color-dark", t == null ? void 0 : t.headline), children: u.headline }),
1353
1324
  /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col gap-6 desktop:gap-10", children: [
1354
1325
  r && /* @__PURE__ */ o.jsx(
1355
- en,
1326
+ tn,
1356
1327
  {
1357
1328
  stepperTabs: d,
1358
1329
  activeStepper: n,
@@ -1360,7 +1331,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1360
1331
  classes: t == null ? void 0 : t.stepperTabs
1361
1332
  }
1362
1333
  ),
1363
- u.withImages && /* @__PURE__ */ o.jsx(tn, { classes: t == null ? void 0 : t.stepperCarousel, currentStepper: u }),
1334
+ u.withImages && /* @__PURE__ */ o.jsx(sr, { classes: t == null ? void 0 : t.stepperCarousel, currentStepper: u }),
1364
1335
  /* @__PURE__ */ o.jsx(
1365
1336
  "div",
1366
1337
  {
@@ -1369,16 +1340,16 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1369
1340
  t == null ? void 0 : t.stepsWrapper,
1370
1341
  { "mobile:hidden": u.withImages }
1371
1342
  ),
1372
- children: (m = u.details) == null ? void 0 : m.map((p, f) => /* @__PURE__ */ It(sr, { ...p, key: p.description, index: f + 1, classes: t == null ? void 0 : t.step }))
1343
+ children: (m = u.details) == null ? void 0 : m.map((p, f) => /* @__PURE__ */ St(Gr, { ...p, key: p.description, index: f + 1, classes: t == null ? void 0 : t.step }))
1373
1344
  }
1374
1345
  )
1375
1346
  ] })
1376
1347
  ] }) }) }, u.headline);
1377
- }, rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1348
+ }, en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1378
1349
  __proto__: null,
1379
- Stepper: oe,
1380
- default: oe
1381
- }, Symbol.toStringTag, { value: "Module" })), nn = D("", {
1350
+ Stepper: ne,
1351
+ default: ne
1352
+ }, Symbol.toStringTag, { value: "Module" })), rn = D("", {
1382
1353
  variants: {
1383
1354
  intent: {
1384
1355
  twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
@@ -1394,7 +1365,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1394
1365
  defaultVariants: {
1395
1366
  intent: "twoItems"
1396
1367
  }
1397
- }), on = D("", {
1368
+ }), nn = D("", {
1398
1369
  variants: {
1399
1370
  intent: {
1400
1371
  twoItems: "",
@@ -1426,7 +1397,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1426
1397
  class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
1427
1398
  }
1428
1399
  ]
1429
- }), dn = D("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
1400
+ }), on = D("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
1430
1401
  variants: {
1431
1402
  intent: {
1432
1403
  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',
@@ -1436,7 +1407,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1436
1407
  defaultVariants: {
1437
1408
  intent: "twoItems"
1438
1409
  }
1439
- }), an = D("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
1410
+ }), dn = D("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
1440
1411
  variants: {
1441
1412
  intent: {
1442
1413
  twoItems: "desktop:h-[232px] desktop:w-[500px]",
@@ -1462,7 +1433,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1462
1433
  class: "desktop:h-[272px] desktop:w-[500px]"
1463
1434
  }
1464
1435
  ]
1465
- }), ln = ({ data: e, intent: t }) => {
1436
+ }), an = ({ data: e, intent: t }) => {
1466
1437
  const {
1467
1438
  title: r,
1468
1439
  description: n,
@@ -1470,14 +1441,14 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1470
1441
  enabled: !1
1471
1442
  }
1472
1443
  } = e;
1473
- return /* @__PURE__ */ o.jsx("li", { className: a(dn({ intent: t })), children: /* @__PURE__ */ o.jsxs("div", { className: "desktop:max-w-[264px]", children: [
1444
+ return /* @__PURE__ */ o.jsx("li", { className: a(on({ intent: t })), children: /* @__PURE__ */ o.jsxs("div", { className: "desktop:max-w-[264px]", children: [
1474
1445
  /* @__PURE__ */ o.jsxs("div", { className: a("mb-2 flex items-center gap-2"), children: [
1475
1446
  /* @__PURE__ */ o.jsx("h4", { className: a("mob-title-bold-m text-color-dark"), children: r }),
1476
- i.enabled && /* @__PURE__ */ o.jsx(Ct, { triggerElement: /* @__PURE__ */ o.jsx(c, { className: a("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i.text })
1447
+ i.enabled && /* @__PURE__ */ o.jsx(Nt, { triggerElement: /* @__PURE__ */ o.jsx(c, { className: a("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i.text })
1477
1448
  ] }),
1478
1449
  /* @__PURE__ */ o.jsx("div", { className: a("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: n } })
1479
1450
  ] }) });
1480
- }, Pt = ({ intent: e, headline: t, desktopHidden: r = !1, mobileHidden: n = !1 }) => /* @__PURE__ */ o.jsx("h2", { className: a(nn({ intent: e, desktopHidden: r, mobileHidden: n })), children: t }), un = ({ details: e, intent: t, withButton: r }) => /* @__PURE__ */ o.jsx("ul", { className: a(on({ intent: t, withButton: r })), children: e == null ? void 0 : e.map((n, i) => /* @__PURE__ */ o.jsx(ln, { intent: t, data: n }, i)) }), ie = ({
1451
+ }, Bt = ({ intent: e, headline: t, desktopHidden: r = !1, mobileHidden: n = !1 }) => /* @__PURE__ */ o.jsx("h2", { className: a(rn({ intent: e, desktopHidden: r, mobileHidden: n })), children: t }), ln = ({ details: e, intent: t, withButton: r }) => /* @__PURE__ */ o.jsx("ul", { className: a(nn({ intent: t, withButton: r })), children: e == null ? void 0 : e.map((n, i) => /* @__PURE__ */ o.jsx(an, { intent: t, data: n }, i)) }), oe = ({
1481
1452
  headline: e,
1482
1453
  buttonConfig: t,
1483
1454
  intent: r = "twoItems",
@@ -1487,7 +1458,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1487
1458
  }) => {
1488
1459
  const l = r === "fourItems", u = r === "twoItems", x = i && "url" in i && _.isObject(i) ? /* @__PURE__ */ o.jsx("img", { className: "w-full object-contain", alt: i.alt, src: i.url }) : i;
1489
1460
  return /* @__PURE__ */ o.jsx("section", { id: g.longBanner, "data-test-id": g.longBanner, className: a(d == null ? void 0 : d.root), children: /* @__PURE__ */ o.jsxs(F, { className: a(d == null ? void 0 : d.container), children: [
1490
- u && /* @__PURE__ */ o.jsx(Pt, { intent: r, headline: e }),
1461
+ u && /* @__PURE__ */ o.jsx(Bt, { intent: r, headline: e }),
1491
1462
  /* @__PURE__ */ o.jsxs(
1492
1463
  "div",
1493
1464
  {
@@ -1496,15 +1467,15 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1496
1467
  d == null ? void 0 : d.contentContainer
1497
1468
  ),
1498
1469
  children: [
1499
- l && /* @__PURE__ */ o.jsx(Pt, { intent: r, headline: e, desktopHidden: !0 }),
1500
- /* @__PURE__ */ o.jsx("div", { className: a(an({ intent: r, withButton: t == null ? void 0 : t.enabled }), d == null ? void 0 : d.imgContainer), children: x }),
1470
+ l && /* @__PURE__ */ o.jsx(Bt, { intent: r, headline: e, desktopHidden: !0 }),
1471
+ /* @__PURE__ */ o.jsx("div", { className: a(dn({ intent: r, withButton: t == null ? void 0 : t.enabled }), d == null ? void 0 : d.imgContainer), children: x }),
1501
1472
  /* @__PURE__ */ o.jsxs(
1502
1473
  "div",
1503
1474
  {
1504
1475
  className: a("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", d == null ? void 0 : d.textWithBtnContainer),
1505
1476
  children: [
1506
- l && /* @__PURE__ */ o.jsx(Pt, { intent: r, headline: e, mobileHidden: !0 }),
1507
- /* @__PURE__ */ o.jsx(un, { details: n, intent: r, withButton: (t == null ? void 0 : t.enabled) ?? !1 }),
1477
+ l && /* @__PURE__ */ o.jsx(Bt, { intent: r, headline: e, mobileHidden: !0 }),
1478
+ /* @__PURE__ */ o.jsx(ln, { details: n, intent: r, withButton: (t == null ? void 0 : t.enabled) ?? !1 }),
1508
1479
  (t == null ? void 0 : t.enabled) && t && /* @__PURE__ */ o.jsx(
1509
1480
  tt,
1510
1481
  {
@@ -1521,15 +1492,15 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1521
1492
  }
1522
1493
  )
1523
1494
  ] }) });
1524
- }, mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1495
+ }, un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1525
1496
  __proto__: null,
1526
- LongBanner: ie,
1527
- default: ie
1497
+ LongBanner: oe,
1498
+ default: oe
1528
1499
  }, Symbol.toStringTag, { value: "Module" })), Et = {
1529
1500
  ESIA: "esia",
1530
1501
  MOBILE_ID: "mobileId",
1531
1502
  COMBINE: "combine"
1532
- }, _e = ({ children: e, isLoading: t, classes: r, loaderProps: n }) => /* @__PURE__ */ o.jsx(
1503
+ }, Me = ({ children: e, isLoading: t, classes: r, loaderProps: n }) => /* @__PURE__ */ o.jsx(
1533
1504
  "div",
1534
1505
  {
1535
1506
  tabIndex: 0,
@@ -1547,11 +1518,11 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1547
1518
  { "items-center": t },
1548
1519
  r == null ? void 0 : r.wrapper
1549
1520
  ),
1550
- children: t ? /* @__PURE__ */ o.jsx(Je, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...n }) : e
1521
+ children: t ? /* @__PURE__ */ o.jsx(Xe, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...n }) : e
1551
1522
  }
1552
1523
  )
1553
1524
  }
1554
- ), xn = ({ ...e }) => /* @__PURE__ */ o.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
1525
+ ), mn = ({ ...e }) => /* @__PURE__ */ o.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
1555
1526
  /* @__PURE__ */ o.jsx(
1556
1527
  "path",
1557
1528
  {
@@ -1579,7 +1550,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1579
1550
  /* @__PURE__ */ o.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
1580
1551
  /* @__PURE__ */ o.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
1581
1552
  ] }) })
1582
- ] }), Oe = ({ mainLink: e, subLink: t, isMobile: r, classes: n }) => /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col", n == null ? void 0 : n.linksWrapper), children: [
1553
+ ] }), _e = ({ mainLink: e, subLink: t, isMobile: r, classes: n }) => /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col", n == null ? void 0 : n.linksWrapper), children: [
1583
1554
  /* @__PURE__ */ o.jsx(
1584
1555
  "a",
1585
1556
  {
@@ -1594,7 +1565,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1594
1565
  }
1595
1566
  ),
1596
1567
  (t == null ? void 0 : t.text) && (t == null ? void 0 : t.href) && /* @__PURE__ */ o.jsx(
1597
- ft,
1568
+ pt,
1598
1569
  {
1599
1570
  intent: "blue",
1600
1571
  withUnderline: !0,
@@ -1607,9 +1578,9 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1607
1578
  children: t == null ? void 0 : t.text
1608
1579
  }
1609
1580
  )
1610
- ] }), de = ({ mainLink: e, subLink: t, isLoading: r, badge: n, loaderProps: i, classes: d }) => {
1611
- const { isMobile: l } = lt();
1612
- return /* @__PURE__ */ o.jsx(_e, { isLoading: r, loaderProps: i, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ o.jsxs(
1581
+ ] }), ie = ({ mainLink: e, subLink: t, isLoading: r, badge: n, loaderProps: i, classes: d }) => {
1582
+ const { isMobile: l } = at();
1583
+ return /* @__PURE__ */ o.jsx(Me, { isLoading: r, loaderProps: i, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ o.jsxs(
1613
1584
  "div",
1614
1585
  {
1615
1586
  className: a(
@@ -1624,16 +1595,16 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1624
1595
  /* @__PURE__ */ o.jsx(c, { name: "logos/megafon", className: a("relative z-[8] -ml-4 size-7 desktop:size-8", d == null ? void 0 : d.megafonLogo) }),
1625
1596
  /* @__PURE__ */ o.jsx(c, { name: "logos/beeline", className: a("relative z-[7] -ml-4 size-7 desktop:size-8", d == null ? void 0 : d.beelineLogo) })
1626
1597
  ] }),
1627
- /* @__PURE__ */ o.jsx(Oe, { mainLink: e, subLink: t, isMobile: l, classes: d == null ? void 0 : d.links }),
1598
+ /* @__PURE__ */ o.jsx(_e, { mainLink: e, subLink: t, isMobile: l, classes: d == null ? void 0 : d.links }),
1628
1599
  /* @__PURE__ */ o.jsx(c, { name: "arrows/arrowRight", className: a("mobile:hidden", d == null ? void 0 : d.arrowIcon) })
1629
1600
  ] }),
1630
- n && /* @__PURE__ */ o.jsx(Rt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: n })
1601
+ n && /* @__PURE__ */ o.jsx(Pt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: n })
1631
1602
  ]
1632
1603
  }
1633
1604
  ) });
1634
- }, ae = ({ mainLink: e, subLink: t, isLoading: r, badge: n, loaderProps: i, classes: d }) => {
1635
- const { isMobile: l } = lt();
1636
- return /* @__PURE__ */ o.jsx(_e, { isLoading: r, loaderProps: i, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ o.jsxs(
1605
+ }, de = ({ mainLink: e, subLink: t, isLoading: r, badge: n, loaderProps: i, classes: d }) => {
1606
+ const { isMobile: l } = at();
1607
+ return /* @__PURE__ */ o.jsx(Me, { isLoading: r, loaderProps: i, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ o.jsxs(
1637
1608
  "div",
1638
1609
  {
1639
1610
  className: a(
@@ -1643,23 +1614,23 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1643
1614
  ),
1644
1615
  children: [
1645
1616
  /* @__PURE__ */ o.jsxs("div", { className: a("flex items-center gap-1 desktop:gap-4", d == null ? void 0 : d.textContent), children: [
1646
- /* @__PURE__ */ o.jsx(xn, { className: a("size-7 desktop:size-8", d == null ? void 0 : d.esiaLogo) }),
1647
- /* @__PURE__ */ o.jsx(Oe, { mainLink: e, subLink: t, isMobile: l, classes: d == null ? void 0 : d.links }),
1617
+ /* @__PURE__ */ o.jsx(mn, { className: a("size-7 desktop:size-8", d == null ? void 0 : d.esiaLogo) }),
1618
+ /* @__PURE__ */ o.jsx(_e, { mainLink: e, subLink: t, isMobile: l, classes: d == null ? void 0 : d.links }),
1648
1619
  /* @__PURE__ */ o.jsx(c, { name: "arrows/arrowRight", className: a("mobile:hidden", d == null ? void 0 : d.arrowIcon) })
1649
1620
  ] }),
1650
- n && /* @__PURE__ */ o.jsx(Rt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: n })
1621
+ n && /* @__PURE__ */ o.jsx(Pt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: n })
1651
1622
  ]
1652
1623
  }
1653
1624
  ) });
1654
- }, hn = (e) => {
1625
+ }, xn = (e) => {
1655
1626
  switch (e.mode) {
1656
1627
  case Et.ESIA:
1657
- return /* @__PURE__ */ o.jsx(ae, { ...e });
1658
- case Et.MOBILE_ID:
1659
1628
  return /* @__PURE__ */ o.jsx(de, { ...e });
1629
+ case Et.MOBILE_ID:
1630
+ return /* @__PURE__ */ o.jsx(ie, { ...e });
1660
1631
  case Et.COMBINE:
1661
1632
  default:
1662
- const { esiaConfig: t, mobileIdConfig: r, subtitle: n, badge: i, classes: d } = e, l = !n && !i ? mt.Fragment : "div";
1633
+ const { esiaConfig: t, mobileIdConfig: r, subtitle: n, badge: i, classes: d } = e, l = !n && !i ? ut.Fragment : "div";
1663
1634
  return /* @__PURE__ */ o.jsxs(
1664
1635
  "div",
1665
1636
  {
@@ -1670,11 +1641,11 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1670
1641
  children: [
1671
1642
  /* @__PURE__ */ o.jsxs(l, { className: a("flex w-full items-center justify-between gap-2", d == null ? void 0 : d.topContent), children: [
1672
1643
  n && /* @__PURE__ */ o.jsx("h5", { className: a("desk-body-regular-l flex flex-1 text-color-dark", d == null ? void 0 : d.subtitle), children: n }),
1673
- i && /* @__PURE__ */ o.jsx(Rt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: i })
1644
+ i && /* @__PURE__ */ o.jsx(Pt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: i })
1674
1645
  ] }),
1675
1646
  /* @__PURE__ */ o.jsxs("div", { className: a("grid w-full grid-cols-2 gap-2 desktop:gap-4", d == null ? void 0 : d.authWrapper), children: [
1676
1647
  /* @__PURE__ */ o.jsx(
1677
- ae,
1648
+ de,
1678
1649
  {
1679
1650
  ...t,
1680
1651
  classes: {
@@ -1685,7 +1656,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1685
1656
  }
1686
1657
  ),
1687
1658
  /* @__PURE__ */ o.jsx(
1688
- de,
1659
+ ie,
1689
1660
  {
1690
1661
  ...r,
1691
1662
  classes: {
@@ -1700,8 +1671,8 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1700
1671
  }
1701
1672
  );
1702
1673
  }
1703
- }, li = (e) => hn(e), le = ({ links: e, classes: t }) => /* @__PURE__ */ o.jsx("nav", { className: a("flex flex-col gap-1", t == null ? void 0 : t.linksWrapper), children: e == null ? void 0 : e.map(({ path: r, label: n, ...i }) => /* @__PURE__ */ o.jsx(
1704
- ft,
1674
+ }, di = (e) => xn(e), ae = ({ links: e, classes: t }) => /* @__PURE__ */ o.jsx("nav", { className: a("flex flex-col gap-1", t == null ? void 0 : t.linksWrapper), children: e == null ? void 0 : e.map(({ path: r, label: n, ...i }) => /* @__PURE__ */ o.jsx(
1675
+ pt,
1705
1676
  {
1706
1677
  classes: {
1707
1678
  link: a("w-max", t == null ? void 0 : t.linkText),
@@ -1713,16 +1684,16 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1713
1684
  children: n
1714
1685
  },
1715
1686
  r
1716
- )) }), pn = ({ groupLabel: e, links: t, mobileAccordionProps: r, classes: n }) => {
1687
+ )) }), hn = ({ groupLabel: e, links: t, mobileAccordionProps: r, classes: n }) => {
1717
1688
  var d, l, u;
1718
- const { isMobile: i } = lt();
1689
+ const { isMobile: i } = at();
1719
1690
  return /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-2", n == null ? void 0 : n.columnGroup), children: [
1720
1691
  !i && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1721
1692
  /* @__PURE__ */ o.jsx("h5", { className: a("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", n == null ? void 0 : n.columnGroupHeading), children: e }),
1722
- /* @__PURE__ */ o.jsx(le, { links: t, classes: n == null ? void 0 : n.linksList }, "desktop")
1693
+ /* @__PURE__ */ o.jsx(ae, { links: t, classes: n == null ? void 0 : n.linksList }, "desktop")
1723
1694
  ] }),
1724
1695
  i && /* @__PURE__ */ o.jsx(
1725
- at,
1696
+ dt,
1726
1697
  {
1727
1698
  defaultOpen: !0,
1728
1699
  label: e,
@@ -1735,11 +1706,11 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1735
1706
  },
1736
1707
  contentInner: a("py-2 px-4", (u = r == null ? void 0 : r.classes) == null ? void 0 : u.contentInner)
1737
1708
  },
1738
- children: /* @__PURE__ */ o.jsx(le, { links: t, classes: n == null ? void 0 : n.linksList }, "mobile")
1709
+ children: /* @__PURE__ */ o.jsx(ae, { links: t, classes: n == null ? void 0 : n.linksList }, "mobile")
1739
1710
  }
1740
1711
  )
1741
1712
  ] });
1742
- }, fn = ({ column: e, mobileAccordionProps: t, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4 desktop:gap-6", r == null ? void 0 : r.column), children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ o.jsx(pn, { ...t, ...n, classes: r == null ? void 0 : r.columnGroup }, n.groupLabel)) }), cn = D("grid gap-4 grid-cols-1", {
1713
+ }, pn = ({ column: e, mobileAccordionProps: t, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4 desktop:gap-6", r == null ? void 0 : r.column), children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ o.jsx(hn, { ...t, ...n, classes: r == null ? void 0 : r.columnGroup }, n.groupLabel)) }), fn = D("grid gap-4 grid-cols-1", {
1743
1714
  variants: {
1744
1715
  variant: {
1745
1716
  twoCols: "desktop:grid-cols-2",
@@ -1750,7 +1721,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1750
1721
  defaultVariants: {
1751
1722
  variant: "fourCols"
1752
1723
  }
1753
- }), ue = ({
1724
+ }), le = ({
1754
1725
  variant: e,
1755
1726
  details: t,
1756
1727
  headline: r,
@@ -1767,7 +1738,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1767
1738
  "data-test-id": g.interLinking,
1768
1739
  className: a("min-w-full desktop:min-w-[1140px]", d == null ? void 0 : d.root),
1769
1740
  children: /* @__PURE__ */ o.jsx(F, { children: /* @__PURE__ */ o.jsx(
1770
- at,
1741
+ dt,
1771
1742
  {
1772
1743
  defaultOpen: l,
1773
1744
  label: /* @__PURE__ */ o.jsx(R, { as: "h4", className: a("text-left", d == null ? void 0 : d.headline), children: r }),
@@ -1779,16 +1750,16 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1779
1750
  },
1780
1751
  content: a("max-w-full bg-color-blue-grey-100 relative", (m = i == null ? void 0 : i.classes) == null ? void 0 : m.content)
1781
1752
  },
1782
- children: /* @__PURE__ */ o.jsx("div", { className: a(cn({ variant: e }), d == null ? void 0 : d.columnsWrapper), children: t == null ? void 0 : t.map((p, f) => /* @__PURE__ */ o.jsx(fn, { ...p, ...n, classes: d == null ? void 0 : d.column }, f)) })
1753
+ children: /* @__PURE__ */ o.jsx("div", { className: a(fn({ variant: e }), d == null ? void 0 : d.columnsWrapper), children: t == null ? void 0 : t.map((p, f) => /* @__PURE__ */ o.jsx(pn, { ...p, ...n, classes: d == null ? void 0 : d.column }, f)) })
1783
1754
  }
1784
1755
  ) })
1785
1756
  }
1786
1757
  );
1787
- }, gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1758
+ }, cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1788
1759
  __proto__: null,
1789
- InterLinking: ue,
1790
- default: ue
1791
- }, Symbol.toStringTag, { value: "Module" })), bn = ({ tabsNames: e, activeTab: t, setActiveTab: r, classes: n }) => /* @__PURE__ */ o.jsx("div", { className: a("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", n == null ? void 0 : n.tabs), children: e && e.map((i, d) => /* @__PURE__ */ o.jsx(
1760
+ InterLinking: le,
1761
+ default: le
1762
+ }, Symbol.toStringTag, { value: "Module" })), gn = ({ tabsNames: e, activeTab: t, setActiveTab: r, classes: n }) => /* @__PURE__ */ o.jsx("div", { className: a("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", n == null ? void 0 : n.tabs), children: e && e.map((i, d) => /* @__PURE__ */ o.jsx(
1792
1763
  "button",
1793
1764
  {
1794
1765
  onClick: () => r(d),
@@ -1802,10 +1773,10 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1802
1773
  children: i
1803
1774
  },
1804
1775
  i
1805
- )) }), jn = (e) => e.variant === "HTML", yn = (e) => e.variant === "DOCUMENTS", kn = (e) => e.variant === "TABLE", wn = ({ html: e, config: t, classes: r, accordionConfig: n }) => {
1776
+ )) }), bn = (e) => e.variant === "HTML", jn = (e) => e.variant === "DOCUMENTS", yn = (e) => e.variant === "TABLE", kn = ({ html: e, config: t, classes: r, accordionConfig: n }) => {
1806
1777
  const i = /* @__PURE__ */ o.jsx("div", { className: a(r == null ? void 0 : r.html), dangerouslySetInnerHTML: { __html: e ?? "" } });
1807
- return /* @__PURE__ */ o.jsx(o.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ o.jsx(at, { label: t == null ? void 0 : t.accordionTitle, ...n, children: (n == null ? void 0 : n.children) ?? i }) : i });
1808
- }, vn = (e, t) => ({
1778
+ return /* @__PURE__ */ o.jsx(o.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ o.jsx(dt, { label: t == null ? void 0 : t.accordionTitle, ...n, children: (n == null ? void 0 : n.children) ?? i }) : i });
1779
+ }, wn = (e, t) => ({
1809
1780
  rows: e == null ? void 0 : e.map(({ row: r }) => ({
1810
1781
  row: r == null ? void 0 : r.map((n, i) => {
1811
1782
  var d;
@@ -1815,21 +1786,21 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1815
1786
  };
1816
1787
  })
1817
1788
  }))
1818
- }), Nn = D("flex flex-col", {
1789
+ }), vn = D("flex flex-col", {
1819
1790
  variants: {
1820
1791
  columnsVariant: {
1821
1792
  twoCols: "w-full max-w-[656px]",
1822
1793
  threeCols: "w-full max-w-[768px]"
1823
1794
  }
1824
1795
  }
1825
- }), Cn = D("desktop:grid mobile:hidden px-4 mb-4", {
1796
+ }), Nn = D("desktop:grid mobile:hidden px-4 mb-4", {
1826
1797
  variants: {
1827
1798
  columnsVariant: {
1828
1799
  twoCols: "grid-cols-2 gap-16",
1829
1800
  threeCols: "grid-cols-3 gap-12"
1830
1801
  }
1831
1802
  }
1832
- }), Sn = ({ headings: e, columnsVariant: t, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: a(Cn({ columnsVariant: t }), r == null ? void 0 : r.row), children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ o.jsx("div", { className: a("text-color-secondary", r == null ? void 0 : r.cell), children: n == null ? void 0 : n.heading }, n == null ? void 0 : n.heading)) }), In = D("desktop:grid mobile:hidden items-center", {
1803
+ }), Cn = ({ headings: e, columnsVariant: t, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: a(Nn({ columnsVariant: t }), r == null ? void 0 : r.row), children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ o.jsx("div", { className: a("text-color-secondary", r == null ? void 0 : r.cell), children: n == null ? void 0 : n.heading }, n == null ? void 0 : n.heading)) }), Sn = D("desktop:grid mobile:hidden items-center", {
1833
1804
  variants: {
1834
1805
  columnsVariant: {
1835
1806
  twoCols: "grid-cols-2 gap-16",
@@ -1840,21 +1811,21 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1840
1811
  separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
1841
1812
  }
1842
1813
  }
1843
- }), Mn = ({ row: e, tableVariant: t, columnsVariant: r, rowIndex: n, classes: i }) => /* @__PURE__ */ o.jsx("div", { className: a(In({ columnsVariant: r, tableVariant: t }), { "border-none": n === 0 }, i == null ? void 0 : i.row), children: e == null ? void 0 : e.map(({ cell: d }, l) => /* @__PURE__ */ o.jsx(
1814
+ }), In = ({ row: e, tableVariant: t, columnsVariant: r, rowIndex: n, classes: i }) => /* @__PURE__ */ o.jsx("div", { className: a(Sn({ columnsVariant: r, tableVariant: t }), { "border-none": n === 0 }, i == null ? void 0 : i.row), children: e == null ? void 0 : e.map(({ cell: d }, l) => /* @__PURE__ */ o.jsx(
1844
1815
  "div",
1845
1816
  {
1846
1817
  className: a("desk-body-regular-l text-color-dark", { "font-medium": l !== 0 }, i == null ? void 0 : i.cell),
1847
1818
  children: d && d
1848
1819
  },
1849
1820
  l
1850
- )) }), _n = D("mobile:flex desktop:hidden flex-col gap-2", {
1821
+ )) }), Mn = D("mobile:flex desktop:hidden flex-col gap-2", {
1851
1822
  variants: {
1852
1823
  tableVariant: {
1853
1824
  filled: "px-4 py-4 odd:bg-color-primary-light-default",
1854
1825
  separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
1855
1826
  }
1856
1827
  }
1857
- }), On = ({ row: e, tableVariant: t, columnsVariant: r, headingsExist: n, classes: i }) => /* @__PURE__ */ o.jsx("div", { className: a(_n({ tableVariant: t }), i == null ? void 0 : i.row), children: e == null ? void 0 : e.map(({ cell: d, heading: l }, u) => /* @__PURE__ */ o.jsxs("div", { className: a("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !n }, i == null ? void 0 : i.wrapper), children: [
1828
+ }), _n = ({ row: e, tableVariant: t, columnsVariant: r, headingsExist: n, classes: i }) => /* @__PURE__ */ o.jsx("div", { className: a(Mn({ tableVariant: t }), i == null ? void 0 : i.row), children: e == null ? void 0 : e.map(({ cell: d, heading: l }, u) => /* @__PURE__ */ o.jsxs("div", { className: a("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !n }, i == null ? void 0 : i.wrapper), children: [
1858
1829
  l && /* @__PURE__ */ o.jsx("div", { className: a("mob-body-regular-l text-color-secondary", i == null ? void 0 : i.heading), children: l }),
1859
1830
  /* @__PURE__ */ o.jsx(
1860
1831
  "div",
@@ -1869,13 +1840,13 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1869
1840
  children: d
1870
1841
  }
1871
1842
  )
1872
- ] }, u)) }), Tn = ({ tableVariant: e, rows: t, headings: r, columnsVariant: n, classes: i }) => {
1843
+ ] }, u)) }), On = ({ tableVariant: e, rows: t, headings: r, columnsVariant: n, classes: i }) => {
1873
1844
  var u;
1874
- const d = ((u = vn(t, r)) == null ? void 0 : u.rows) ?? [], l = !!(r && r.length > 0);
1845
+ const d = ((u = wn(t, r)) == null ? void 0 : u.rows) ?? [], l = !!(r && r.length > 0);
1875
1846
  return /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col", i == null ? void 0 : i.wrapper), children: [
1876
- l && /* @__PURE__ */ o.jsx(Sn, { headings: r, columnsVariant: n, classes: i == null ? void 0 : i.desktopHeading }),
1847
+ l && /* @__PURE__ */ o.jsx(Cn, { headings: r, columnsVariant: n, classes: i == null ? void 0 : i.desktopHeading }),
1877
1848
  t == null ? void 0 : t.map((x, m) => /* @__PURE__ */ o.jsx(
1878
- Mn,
1849
+ In,
1879
1850
  {
1880
1851
  rowIndex: m,
1881
1852
  tableVariant: e,
@@ -1886,7 +1857,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1886
1857
  m
1887
1858
  )),
1888
1859
  d == null ? void 0 : d.map((x, m) => /* @__PURE__ */ o.jsx(
1889
- On,
1860
+ _n,
1890
1861
  {
1891
1862
  headingsExist: l,
1892
1863
  tableVariant: e,
@@ -1897,7 +1868,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1897
1868
  m
1898
1869
  ))
1899
1870
  ] });
1900
- }, Fn = ({
1871
+ }, Tn = ({
1901
1872
  tableVariant: e,
1902
1873
  description: t,
1903
1874
  columnsVariant: r,
@@ -1908,9 +1879,9 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1908
1879
  accordionConfig: u,
1909
1880
  classes: x
1910
1881
  }) => {
1911
- const m = /* @__PURE__ */ o.jsxs("div", { className: a(Nn({ columnsVariant: r }), x == null ? void 0 : x.wrapper), children: [
1882
+ const m = /* @__PURE__ */ o.jsxs("div", { className: a(vn({ columnsVariant: r }), x == null ? void 0 : x.wrapper), children: [
1912
1883
  d && /* @__PURE__ */ o.jsx(R, { as: "h4", className: a("mb-4 desktop:mb-6", x == null ? void 0 : x.headline), children: d }),
1913
- /* @__PURE__ */ o.jsx(Tn, { tableVariant: e, rows: i, headings: l, columnsVariant: r }),
1884
+ /* @__PURE__ */ o.jsx(On, { tableVariant: e, rows: i, headings: l, columnsVariant: r }),
1914
1885
  t && /* @__PURE__ */ o.jsx(
1915
1886
  "div",
1916
1887
  {
@@ -1919,11 +1890,11 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1919
1890
  }
1920
1891
  )
1921
1892
  ] });
1922
- return /* @__PURE__ */ o.jsx(o.Fragment, { children: n && (n != null && n.isAccordion) && (n != null && n.accordionTitle) ? /* @__PURE__ */ o.jsx(at, { label: n == null ? void 0 : n.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || m }) : m });
1923
- }, Bn = {
1893
+ return /* @__PURE__ */ o.jsx(o.Fragment, { children: n && (n != null && n.isAccordion) && (n != null && n.accordionTitle) ? /* @__PURE__ */ o.jsx(dt, { label: n == null ? void 0 : n.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || m }) : m });
1894
+ }, Fn = {
1924
1895
  documentFilled: "files/documentFilled",
1925
1896
  documentOutline: "files/documentOutline"
1926
- }, Pn = D("size-8 transition-colors", {
1897
+ }, Bn = D("size-8 transition-colors", {
1927
1898
  variants: {
1928
1899
  iconType: {
1929
1900
  documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
@@ -1945,7 +1916,7 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1945
1916
  i == null ? void 0 : i.link
1946
1917
  ),
1947
1918
  children: [
1948
- /* @__PURE__ */ o.jsx(c, { name: Bn[n], className: a(Pn({ iconType: n }), i == null ? void 0 : i.icon) }),
1919
+ /* @__PURE__ */ o.jsx(c, { name: Fn[n], className: a(Bn({ iconType: n }), i == null ? void 0 : i.icon) }),
1949
1920
  /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-1 flex-col", i == null ? void 0 : i.wrapper), children: [
1950
1921
  /* @__PURE__ */ o.jsx("p", { className: a("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: e }),
1951
1922
  /* @__PURE__ */ o.jsxs("div", { className: a("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
@@ -1955,26 +1926,26 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1955
1926
  ] })
1956
1927
  ]
1957
1928
  }
1958
- ), Rn = ({ docs: e, config: t, title: r, iconType: n, description: i, classes: d, accordionConfig: l }) => {
1929
+ ), Pn = ({ docs: e, config: t, title: r, iconType: n, description: i, classes: d, accordionConfig: l }) => {
1959
1930
  const u = /* @__PURE__ */ o.jsxs("div", { className: a("flex max-w-[680px] flex-col", d == null ? void 0 : d.wrapper), children: [
1960
1931
  r && /* @__PURE__ */ o.jsx(R, { as: "h3", className: "mb-4", children: r }),
1961
1932
  /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4", d == null ? void 0 : d.documentsWrapper), children: e == null ? void 0 : e.map((x) => /* @__PURE__ */ o.jsx(En, { iconType: n, ...x, classes: d == null ? void 0 : d.singleDocument }, x.label)) }),
1962
1933
  i && /* @__PURE__ */ o.jsx("div", { className: a("mt-4", d == null ? void 0 : d.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
1963
1934
  ] });
1964
- return /* @__PURE__ */ o.jsx(o.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ o.jsx(at, { label: t == null ? void 0 : t.accordionTitle, ...l, children: (l == null ? void 0 : l.children) || u }) : u });
1965
- }, Dn = ({ entity: e, classes: t, accordionsConfig: r }) => {
1935
+ return /* @__PURE__ */ o.jsx(o.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ o.jsx(dt, { label: t == null ? void 0 : t.accordionTitle, ...l, children: (l == null ? void 0 : l.children) || u }) : u });
1936
+ }, Rn = ({ entity: e, classes: t, accordionsConfig: r }) => {
1966
1937
  var n, i, d;
1967
1938
  switch (!0) {
1968
- case jn(e):
1939
+ case bn(e):
1969
1940
  return (n = e.details) == null ? void 0 : n.map((l, u) => {
1970
1941
  var x;
1971
- return /* @__PURE__ */ o.jsx(wn, { ...l, accordionConfig: r == null ? void 0 : r.htmlAccordion, classes: (x = t == null ? void 0 : t.entities) == null ? void 0 : x.html }, u);
1942
+ return /* @__PURE__ */ o.jsx(kn, { ...l, accordionConfig: r == null ? void 0 : r.htmlAccordion, classes: (x = t == null ? void 0 : t.entities) == null ? void 0 : x.html }, u);
1972
1943
  });
1973
- case yn(e):
1944
+ case jn(e):
1974
1945
  return (i = e.details) == null ? void 0 : i.map((l, u) => {
1975
1946
  var x;
1976
1947
  return /* @__PURE__ */ o.jsx(
1977
- Rn,
1948
+ Pn,
1978
1949
  {
1979
1950
  accordionConfig: r == null ? void 0 : r.documentAccordion,
1980
1951
  ...l,
@@ -1983,11 +1954,11 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1983
1954
  u
1984
1955
  );
1985
1956
  });
1986
- case kn(e):
1957
+ case yn(e):
1987
1958
  return (d = e.details) == null ? void 0 : d.map((l, u) => {
1988
1959
  var x;
1989
1960
  return /* @__PURE__ */ o.jsx(
1990
- Fn,
1961
+ Tn,
1991
1962
  {
1992
1963
  accordionConfig: r == null ? void 0 : r.tableAccordion,
1993
1964
  ...l,
@@ -1999,26 +1970,26 @@ const yr = B(() => Promise.resolve().then(() => Ar)), kr = B(() => Promise.resol
1999
1970
  default:
2000
1971
  return null;
2001
1972
  }
2002
- }, zn = ({ entity: e, classes: t, accordionsConfig: r }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-6", t == null ? void 0 : t.entityWrapper), children: Dn({ entity: e, classes: t, accordionsConfig: r }) }), me = ({ headline: e, tabs: t, classes: r, accordionsConfig: n }) => {
1973
+ }, Dn = ({ entity: e, classes: t, accordionsConfig: r }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-6", t == null ? void 0 : t.entityWrapper), children: Rn({ entity: e, classes: t, accordionsConfig: r }) }), ue = ({ headline: e, tabs: t, classes: r, accordionsConfig: n }) => {
2003
1974
  var u, x;
2004
- const [i, d] = O(0), l = gt(() => t == null ? void 0 : t.map((m) => m == null ? void 0 : m.tabName), [t]) ?? [];
1975
+ const [i, d] = O(0), l = ct(() => t == null ? void 0 : t.map((m) => m == null ? void 0 : m.tabName), [t]) ?? [];
2005
1976
  return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ o.jsx("section", { id: g.usefulInfo, "data-test-id": g.usefulInfo, className: a(r == null ? void 0 : r.root), children: /* @__PURE__ */ o.jsxs(F, { className: a(r == null ? void 0 : r.container), children: [
2006
1977
  /* @__PURE__ */ o.jsx(R, { className: a(r == null ? void 0 : r.headline), as: "h2", children: e }),
2007
- /* @__PURE__ */ o.jsx("div", { className: a("mt-6 flex flex-col gap-2 desktop:mt-12", r == null ? void 0 : r.tabsWrapper), children: /* @__PURE__ */ o.jsx(bn, { tabsNames: l, activeTab: i, setActiveTab: d, classes: r == null ? void 0 : r.tabs }) }),
2008
- /* @__PURE__ */ o.jsx("div", { className: a("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (x = (u = t == null ? void 0 : t[i]) == null ? void 0 : u.contents) == null ? void 0 : x.map((m, p) => /* @__PURE__ */ o.jsx(zn, { accordionsConfig: n, ...m, classes: r == null ? void 0 : r.entityClasses }, p)) })
1978
+ /* @__PURE__ */ o.jsx("div", { className: a("mt-6 flex flex-col gap-2 desktop:mt-12", r == null ? void 0 : r.tabsWrapper), children: /* @__PURE__ */ o.jsx(gn, { tabsNames: l, activeTab: i, setActiveTab: d, classes: r == null ? void 0 : r.tabs }) }),
1979
+ /* @__PURE__ */ o.jsx("div", { className: a("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (x = (u = t == null ? void 0 : t[i]) == null ? void 0 : u.contents) == null ? void 0 : x.map((m, p) => /* @__PURE__ */ o.jsx(Dn, { accordionsConfig: n, ...m, classes: r == null ? void 0 : r.entityClasses }, p)) })
2009
1980
  ] }) });
2010
1981
  }, Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2011
1982
  __proto__: null,
2012
- UsefulInfo: me,
2013
- default: me
2014
- }, Symbol.toStringTag, { value: "Module" })), $t = ({ fields: e, control: t }) => e.map(({ type: r, args: n }) => {
2015
- const i = Dt[r];
2016
- return /* @__PURE__ */ It(i, { ...n, key: n.name, control: t });
1983
+ UsefulInfo: ue,
1984
+ default: ue
1985
+ }, Symbol.toStringTag, { value: "Module" })), Qt = ({ fields: e, control: t }) => e.map(({ type: r, args: n }) => {
1986
+ const i = Rt[r];
1987
+ return /* @__PURE__ */ St(i, { ...n, key: n.name, control: t });
2017
1988
  });
2018
- class Ln {
1989
+ class zn {
2019
1990
  constructor(t) {
2020
- Ft(this, "TEXT_NODE", 3);
2021
- Ft(this, "ELEMENT_NODE", 1);
1991
+ Tt(this, "TEXT_NODE", 3);
1992
+ Tt(this, "ELEMENT_NODE", 1);
2022
1993
  this.options = t;
2023
1994
  }
2024
1995
  /**
@@ -2085,41 +2056,41 @@ class Ln {
2085
2056
  return r.length;
2086
2057
  }
2087
2058
  }
2088
- const Qn = typeof window < "u";
2089
- class ui extends Ln {
2059
+ const Ln = typeof window < "u";
2060
+ class ai extends zn {
2090
2061
  constructor(t) {
2091
2062
  super(t);
2092
2063
  }
2093
2064
  async parseFromString(t) {
2094
- return Qn ? new DOMParser().parseFromString(t, "text/html") : Promise.reject();
2065
+ return Ln ? new DOMParser().parseFromString(t, "text/html") : Promise.reject();
2095
2066
  }
2096
2067
  }
2097
- const dt = ({ html: e, as: t, ...r }) => {
2068
+ const it = ({ html: e, as: t, ...r }) => {
2098
2069
  const n = t ?? "div";
2099
2070
  return /* @__PURE__ */ o.jsx(n, { dangerouslySetInnerHTML: { __html: e }, ...r });
2100
- }, $n = (e, t) => e.enabled ? t.map((r) => ({
2071
+ }, Qn = (e, t) => e.enabled ? t.map((r) => ({
2101
2072
  name: r.args.name,
2102
2073
  ...r.args.progress
2103
- })) : null, Vn = ["getFioSchema"], Te = (e, t, r) => {
2074
+ })) : null, $n = ["getFioSchema"], Oe = (e, t, r) => {
2104
2075
  const n = e[t];
2105
2076
  if (_.isNil(n))
2106
2077
  throw new Error(`validation for type ${String(t)} not found`);
2107
2078
  if (!_.isFunction(n))
2108
2079
  throw new Error(`Cannot generate ${String(t)} because is not a function`);
2109
2080
  return n(r);
2110
- }, Wn = (e, t) => Te(Lt.base, e, t), An = (e, t) => Te(Lt.dadata, e, t), Vt = (e) => {
2081
+ }, Vn = (e, t) => Oe(zt.base, e, t), Wn = (e, t) => Oe(zt.dadata, e, t), $t = (e) => {
2111
2082
  const r = ((e == null ? void 0 : e.map((n) => ({ name: n.args.name, validation: n.args.validation }))) ?? []).reduce((n, i) => {
2112
- const d = Vn.includes(i.validation.type) ? An(
2083
+ const d = $n.includes(i.validation.type) ? Wn(
2113
2084
  i.validation.type,
2114
2085
  i.validation.args
2115
- ) : Wn(
2086
+ ) : Vn(
2116
2087
  i.validation.type,
2117
2088
  i.validation.args
2118
2089
  );
2119
2090
  return n[i.name] = d, n;
2120
2091
  }, {});
2121
- return Qt(r);
2122
- }, Un = new jr(), Fe = ({ children: e }) => /* @__PURE__ */ o.jsx(Ge, { client: Un, children: e }), qn = (e, t, r, n) => e.type === "off" ? null : e.type === "text" ? /* @__PURE__ */ o.jsx(dt, { html: e.message, as: "div", className: n == null ? void 0 : n.content }) : /* @__PURE__ */ o.jsxs(
2092
+ return Lt(r);
2093
+ }, An = new br(), Te = ({ children: e }) => /* @__PURE__ */ o.jsx(Je, { client: An, children: e }), qn = (e, t, r, n) => e.type === "off" ? null : e.type === "text" ? /* @__PURE__ */ o.jsx(it, { html: e.message, as: "div", className: n == null ? void 0 : n.content }) : /* @__PURE__ */ o.jsxs(
2123
2094
  "label",
2124
2095
  {
2125
2096
  className: a(
@@ -2128,11 +2099,11 @@ const dt = ({ html: e, as: t, ...r }) => {
2128
2099
  "flex items-center justify-items-start gap-x-3"
2129
2100
  ),
2130
2101
  children: [
2131
- /* @__PURE__ */ o.jsx(St.CheckboxBase, { classes: n == null ? void 0 : n.checkbox, checked: t, onCheckedChange: r }),
2132
- /* @__PURE__ */ o.jsx(dt, { html: e.content, as: "div", className: n == null ? void 0 : n.content })
2102
+ /* @__PURE__ */ o.jsx(Ct.CheckboxBase, { classes: n == null ? void 0 : n.checkbox, checked: t, onCheckedChange: r }),
2103
+ /* @__PURE__ */ o.jsx(it, { html: e.content, as: "div", className: n == null ? void 0 : n.content })
2133
2104
  ]
2134
2105
  }
2135
- ), xe = ({
2106
+ ), me = ({
2136
2107
  fields: e,
2137
2108
  title: t,
2138
2109
  progress: r,
@@ -2142,15 +2113,15 @@ const dt = ({ html: e, as: t, ...r }) => {
2142
2113
  classes: l,
2143
2114
  buttonGroup: u
2144
2115
  }) => {
2145
- var H, v;
2146
- const { submitCallback: x } = d || {}, [m, p] = O(!1), f = Vt(e), S = Tt.getZodDefaults(f), { control: y, handleSubmit: P } = _t({
2116
+ var z, v;
2117
+ const { submitCallback: x } = d || {}, [m, p] = O(!1), f = $t(e), S = Ot.getZodDefaults(f), { control: y, handleSubmit: E } = Mt({
2147
2118
  schema: f,
2148
2119
  defaultValues: S,
2149
2120
  mode: "onBlur"
2150
- }), k = $n(r, e), I = mr({ control: y, fields: k || [], schema: f }), E = (C) => {
2121
+ }), k = Qn(r, e), I = ur({ control: y, fields: k || [], schema: f }), P = (C) => {
2151
2122
  x && x({ ...C, agree: m });
2152
2123
  };
2153
- return /* @__PURE__ */ o.jsx(Fe, { children: /* @__PURE__ */ o.jsx("section", { id: g.form, "data-test-id": g.form, className: a("w-full", l == null ? void 0 : l.root), children: /* @__PURE__ */ o.jsxs(
2124
+ return /* @__PURE__ */ o.jsx(Te, { children: /* @__PURE__ */ o.jsx("section", { id: g.form, "data-test-id": g.form, className: a("w-full", l == null ? void 0 : l.root), children: /* @__PURE__ */ o.jsxs(
2154
2125
  F,
2155
2126
  {
2156
2127
  className: a(
@@ -2165,7 +2136,7 @@ const dt = ({ html: e, as: t, ...r }) => {
2165
2136
  "desk-body-regular-l flex items-center gap-x-2 rounded-sm desktop:absolute",
2166
2137
  "bg-color-blue-grey-100 px-2 py-1 text-color-tetriary",
2167
2138
  "right-4 top-4 w-max",
2168
- (H = l == null ? void 0 : l.chips) == null ? void 0 : H.root
2139
+ (z = l == null ? void 0 : l.chips) == null ? void 0 : z.root
2169
2140
  ),
2170
2141
  children: [
2171
2142
  i.image && /* @__PURE__ */ o.jsx(c, { name: i.image, className: a("size-6", (v = l == null ? void 0 : l.chips) == null ? void 0 : v.icon) }),
@@ -2178,26 +2149,26 @@ const dt = ({ html: e, as: t, ...r }) => {
2178
2149
  /* @__PURE__ */ o.jsxs(
2179
2150
  "form",
2180
2151
  {
2181
- onSubmit: P(E),
2152
+ onSubmit: E(P),
2182
2153
  className: a("flex w-full flex-col gap-y-6", "desktop:gap-y-8", l == null ? void 0 : l.form),
2183
2154
  children: [
2184
2155
  r.enabled && /* @__PURE__ */ o.jsx(
2185
- se,
2156
+ Ge,
2186
2157
  {
2187
2158
  progress: I,
2188
- topContent: /* @__PURE__ */ o.jsx(dt, { html: r.title }),
2189
- bottomContent: /* @__PURE__ */ o.jsx(dt, { html: r.subtitle }),
2159
+ topContent: /* @__PURE__ */ o.jsx(it, { html: r.title }),
2160
+ bottomContent: /* @__PURE__ */ o.jsx(it, { html: r.subtitle }),
2190
2161
  maxPercent: r.maxPercent,
2191
2162
  classes: l == null ? void 0 : l.progressBar
2192
2163
  }
2193
2164
  ),
2194
- /* @__PURE__ */ o.jsx($t, { control: y, fields: e }),
2165
+ /* @__PURE__ */ o.jsx(Qt, { control: y, fields: e }),
2195
2166
  /* @__PURE__ */ o.jsxs("div", { className: "mob-body-regular-m flex flex-col items-start justify-center gap-4", children: [
2196
2167
  qn(n, m, p, l == null ? void 0 : l.approvement),
2197
2168
  /* @__PURE__ */ o.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-4 desktop:flex-row", children: u == null ? void 0 : u.map((C, L) => {
2198
2169
  const X = C.type === "submit" && n.type === "checkbox" ? !m : !1;
2199
- return /* @__PURE__ */ It(
2200
- pt,
2170
+ return /* @__PURE__ */ St(
2171
+ ht,
2201
2172
  {
2202
2173
  ...C,
2203
2174
  key: L,
@@ -2219,11 +2190,11 @@ const dt = ({ html: e, as: t, ...r }) => {
2219
2190
  ]
2220
2191
  }
2221
2192
  ) }) });
2222
- }, Kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2193
+ }, Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2223
2194
  __proto__: null,
2224
- DynamicForm: xe,
2225
- default: xe
2226
- }, Symbol.toStringTag, { value: "Module" })), Zn = (e, t, r, n) => e.type === "off" ? null : e.type === "text" ? /* @__PURE__ */ o.jsx(dt, { html: e.message, as: "div", className: n == null ? void 0 : n.content }) : /* @__PURE__ */ o.jsxs(
2195
+ DynamicForm: me,
2196
+ default: me
2197
+ }, Symbol.toStringTag, { value: "Module" })), Kn = (e, t, r, n) => e.type === "off" ? null : e.type === "text" ? /* @__PURE__ */ o.jsx(it, { html: e.message, as: "div", className: n == null ? void 0 : n.content }) : /* @__PURE__ */ o.jsxs(
2227
2198
  "label",
2228
2199
  {
2229
2200
  className: a(
@@ -2232,11 +2203,11 @@ const dt = ({ html: e, as: t, ...r }) => {
2232
2203
  "flex items-center justify-items-start gap-x-3"
2233
2204
  ),
2234
2205
  children: [
2235
- /* @__PURE__ */ o.jsx(St.CheckboxBase, { classes: n == null ? void 0 : n.checkbox, checked: t, onCheckedChange: r }),
2236
- /* @__PURE__ */ o.jsx(dt, { html: e.content, as: "div", className: n == null ? void 0 : n.content })
2206
+ /* @__PURE__ */ o.jsx(Ct.CheckboxBase, { classes: n == null ? void 0 : n.checkbox, checked: t, onCheckedChange: r }),
2207
+ /* @__PURE__ */ o.jsx(it, { html: e.content, as: "div", className: n == null ? void 0 : n.content })
2237
2208
  ]
2238
2209
  }
2239
- ), he = ({
2210
+ ), xe = ({
2240
2211
  fields: e,
2241
2212
  title: t,
2242
2213
  approvement: r,
@@ -2246,24 +2217,24 @@ const dt = ({ html: e, as: t, ...r }) => {
2246
2217
  buttonGroup: l,
2247
2218
  ...u
2248
2219
  }) => {
2249
- const { submitCallback: x } = n ?? {}, [m, p] = O(!1), f = Vt(e), S = Tt.getZodDefaults(f), { control: y, handleSubmit: P } = _t({
2220
+ const { submitCallback: x } = n ?? {}, [m, p] = O(!1), f = $t(e), S = Ot.getZodDefaults(f), { control: y, handleSubmit: E } = Mt({
2250
2221
  schema: f,
2251
2222
  defaultValues: S,
2252
2223
  mode: "onBlur"
2253
2224
  }), k = (I) => {
2254
2225
  x && x({ ...I, agree: m });
2255
2226
  };
2256
- return /* @__PURE__ */ o.jsx(Fe, { children: /* @__PURE__ */ o.jsx(tr, { id: i, title: t, ...u, children: /* @__PURE__ */ o.jsxs("form", { onSubmit: P(k), className: "flex flex-col gap-6", children: [
2257
- /* @__PURE__ */ o.jsx($t, { control: y, fields: e }),
2258
- Zn(r, m, p, d == null ? void 0 : d.approvement),
2259
- l == null ? void 0 : l.map((I, E) => {
2260
- const H = I.type === "submit" && r.type === "checkbox" ? !m : !1;
2261
- return /* @__PURE__ */ It(
2262
- pt,
2227
+ return /* @__PURE__ */ o.jsx(Te, { children: /* @__PURE__ */ o.jsx(se, { id: i, title: t, ...u, children: /* @__PURE__ */ o.jsxs("form", { onSubmit: E(k), className: "flex flex-col gap-6", children: [
2228
+ /* @__PURE__ */ o.jsx(Qt, { control: y, fields: e }),
2229
+ Kn(r, m, p, d == null ? void 0 : d.approvement),
2230
+ l == null ? void 0 : l.map((I, P) => {
2231
+ const z = I.type === "submit" && r.type === "checkbox" ? !m : !1;
2232
+ return /* @__PURE__ */ St(
2233
+ ht,
2263
2234
  {
2264
2235
  ...I,
2265
- key: E,
2266
- disabled: H,
2236
+ key: P,
2237
+ disabled: z,
2267
2238
  className: a(
2268
2239
  "w-full whitespace-nowrap",
2269
2240
  {
@@ -2275,11 +2246,11 @@ const dt = ({ html: e, as: t, ...r }) => {
2275
2246
  );
2276
2247
  })
2277
2248
  ] }) }) });
2278
- }, Yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2249
+ }, Zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2279
2250
  __proto__: null,
2280
- DynamicFormDialog: he,
2281
- default: he
2282
- }, Symbol.toStringTag, { value: "Module" })), ut = () => ({
2251
+ DynamicFormDialog: xe,
2252
+ default: xe
2253
+ }, Symbol.toStringTag, { value: "Module" })), lt = () => ({
2283
2254
  approve: {
2284
2255
  icon: {
2285
2256
  element: /* @__PURE__ */ o.jsx(c, { name: "status/iconMark" }),
@@ -2340,23 +2311,23 @@ const dt = ({ html: e, as: t, ...r }) => {
2340
2311
  text: "Вернуться на главную"
2341
2312
  }
2342
2313
  }
2343
- }), mi = ({ status: e, navigationFn: t }) => /* @__PURE__ */ o.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ o.jsx(F, { className: "flex flex-col justify-center", children: /* @__PURE__ */ o.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
2314
+ }), li = ({ status: e, navigationFn: t }) => /* @__PURE__ */ o.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ o.jsx(F, { className: "flex flex-col justify-center", children: /* @__PURE__ */ o.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
2344
2315
  /* @__PURE__ */ o.jsx(
2345
2316
  "span",
2346
2317
  {
2347
2318
  className: a(
2348
2319
  "flex size-16 items-center justify-center rounded-full bg-color-positive-light",
2349
- `${ut()[e].icon.bg}`
2320
+ `${lt()[e].icon.bg}`
2350
2321
  ),
2351
- children: ut()[e].icon.element
2322
+ children: lt()[e].icon.element
2352
2323
  }
2353
2324
  ),
2354
2325
  /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col items-center gap-2 text-center desktop:gap-6", children: [
2355
- /* @__PURE__ */ o.jsx(R, { as: "h2", children: ut()[e].title }),
2356
- /* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l text-color-dark", children: ut()[e].description })
2326
+ /* @__PURE__ */ o.jsx(R, { as: "h2", children: lt()[e].title }),
2327
+ /* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l text-color-dark", children: lt()[e].description })
2357
2328
  ] }),
2358
- /* @__PURE__ */ o.jsx(pt, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: t, children: ut()[e].button.text })
2359
- ] }) }) }), Be = ({ breadcrumb: e, className: t, ...r }) => /* @__PURE__ */ o.jsx("a", { href: e.path, className: a("desk-body-regular-m", t), ...r, children: e.label }), Xn = [
2329
+ /* @__PURE__ */ o.jsx(ht, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: t, children: lt()[e].button.text })
2330
+ ] }) }) }), Fe = ({ breadcrumb: e, className: t, ...r }) => /* @__PURE__ */ o.jsx("a", { href: e.path, className: a("desk-body-regular-m", t), ...r, children: e.label }), Yn = [
2360
2331
  {
2361
2332
  label: "Главная",
2362
2333
  path: "https://sovcombank.ru/apply/credit/kredit-na-kartu/"
@@ -2369,11 +2340,11 @@ const dt = ({ html: e, as: t, ...r }) => {
2369
2340
  label: "В Тольятти",
2370
2341
  disabled: !0
2371
2342
  }
2372
- ], wt = (e, t, r, n) => e.map((i, d) => {
2343
+ ], kt = (e, t, r, n) => e.map((i, d) => {
2373
2344
  const l = d === n;
2374
2345
  return /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-x-1", children: [
2375
2346
  /* @__PURE__ */ o.jsx(
2376
- Be,
2347
+ Fe,
2377
2348
  {
2378
2349
  breadcrumb: i,
2379
2350
  className: a(r, {
@@ -2384,10 +2355,10 @@ const dt = ({ html: e, as: t, ...r }) => {
2384
2355
  ),
2385
2356
  d !== e.length - 1 && t
2386
2357
  ] }, i.label);
2387
- }), Jn = ({ separator: e, ellipsis: t, classes: r, breadcrumbs: n = Xn }) => {
2358
+ }), Xn = ({ separator: e, ellipsis: t, classes: r, breadcrumbs: n = Yn }) => {
2388
2359
  const [i, d] = O(!1), l = Ht(null);
2389
- lr(l, () => d(!1));
2390
- const { first: u, middle: x, last: m } = gt(() => {
2360
+ ar(l, () => d(!1));
2361
+ const { first: u, middle: x, last: m } = ct(() => {
2391
2362
  let f = [], S = [], y = [];
2392
2363
  return t && (f = n.slice(0, t), S = n.slice(t, n.length - t), y = n.slice(n.length - t)), { first: f, middle: S, last: y };
2393
2364
  }, [n, t]), p = e ?? /* @__PURE__ */ o.jsx(c, { name: "arrows/arrowRight", className: a("size-4", r == null ? void 0 : r.separator) });
@@ -2405,7 +2376,7 @@ const dt = ({ html: e, as: t, ...r }) => {
2405
2376
  // if we have more than ellipsis (visible crumbs) + available hidden crumbs
2406
2377
  // render hidden breadcrumbs
2407
2378
  /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2408
- wt(u, p, r == null ? void 0 : r.breadcrumb),
2379
+ kt(u, p, r == null ? void 0 : r.breadcrumb),
2409
2380
  p,
2410
2381
  x.length > 0 && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2411
2382
  /* @__PURE__ */ o.jsxs("div", { className: "relative", children: [
@@ -2423,7 +2394,7 @@ const dt = ({ html: e, as: t, ...r }) => {
2423
2394
  }
2424
2395
  ),
2425
2396
  children: x.map((f) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
2426
- Be,
2397
+ Fe,
2427
2398
  {
2428
2399
  breadcrumb: f,
2429
2400
  className: a(
@@ -2439,28 +2410,28 @@ const dt = ({ html: e, as: t, ...r }) => {
2439
2410
  ] }),
2440
2411
  p
2441
2412
  ] }),
2442
- wt(m, p, r == null ? void 0 : r.breadcrumb, m.length - 1)
2413
+ kt(m, p, r == null ? void 0 : r.breadcrumb, m.length - 1)
2443
2414
  ] })
2444
2415
  ) : (
2445
2416
  // otherwise render all breadcrumbs
2446
- wt(n, p, r == null ? void 0 : r.breadcrumb, n.length - 1)
2417
+ kt(n, p, r == null ? void 0 : r.breadcrumb, n.length - 1)
2447
2418
  ) })
2448
2419
  ) : (
2449
2420
  // if ellipsis doesn't provided render all breadcrumbs
2450
- wt(n, p, r == null ? void 0 : r.breadcrumb, n.length - 1)
2421
+ kt(n, p, r == null ? void 0 : r.breadcrumb, n.length - 1)
2451
2422
  )
2452
2423
  }
2453
2424
  );
2454
2425
  };
2455
- var xt = /* @__PURE__ */ ((e) => (e.ROOT = "root", e.CURRENT = "current", e))(xt || {});
2456
- const Gn = (e, t) => {
2426
+ var mt = /* @__PURE__ */ ((e) => (e.ROOT = "root", e.CURRENT = "current", e))(mt || {});
2427
+ const Jn = (e, t) => {
2457
2428
  switch (t.type) {
2458
- case xt.ROOT:
2429
+ case mt.ROOT:
2459
2430
  return {
2460
2431
  ...e,
2461
2432
  root: t.payload
2462
2433
  };
2463
- case xt.CURRENT:
2434
+ case mt.CURRENT:
2464
2435
  return {
2465
2436
  ...e,
2466
2437
  current: t.payload
@@ -2468,20 +2439,20 @@ const Gn = (e, t) => {
2468
2439
  default:
2469
2440
  return e;
2470
2441
  }
2471
- }, sn = (e) => {
2472
- const [t, r] = nr(Gn, e);
2442
+ }, Gn = (e) => {
2443
+ const [t, r] = rr(Jn, e);
2473
2444
  return [t, r];
2474
- }, to = (e) => ({
2475
- type: xt.CURRENT,
2445
+ }, sn = (e) => ({
2446
+ type: mt.CURRENT,
2476
2447
  payload: e
2477
- }), eo = (e) => ({
2478
- type: xt.ROOT,
2448
+ }), to = (e) => ({
2449
+ type: mt.ROOT,
2479
2450
  payload: e
2480
- }), ro = ({ categories: e, ...t }) => {
2451
+ }), eo = ({ categories: e, ...t }) => {
2481
2452
  var r, n;
2482
- return Ie(
2453
+ return Se(
2483
2454
  /* @__PURE__ */ o.jsx(
2484
- zt.div,
2455
+ Dt.div,
2485
2456
  {
2486
2457
  ...t,
2487
2458
  layout: !0,
@@ -2517,11 +2488,11 @@ const Gn = (e, t) => {
2517
2488
  */
2518
2489
  ((n = (r = document.body.querySelector("#modal-preview")) == null ? void 0 : r.contentDocument) == null ? void 0 : n.body) ?? document.body
2519
2490
  );
2520
- }, no = or(({ category: e, active: t, onActiveTabChange: r }, n) => {
2491
+ }, ro = nr(({ category: e, active: t, onActiveTabChange: r }, n) => {
2521
2492
  var x, m;
2522
2493
  const i = n && "current" in n ? n : null, d = (x = i == null ? void 0 : i.current) == null ? void 0 : x.getBoundingClientRect(), l = t && !_.isArrayEmpty(e.children), u = e.link ? _.isStringEmpty(e.link.href) ? "span" : "a" : "span";
2523
2494
  return /* @__PURE__ */ o.jsxs(
2524
- zt.div,
2495
+ Dt.div,
2525
2496
  {
2526
2497
  ref: n,
2527
2498
  className: a(
@@ -2539,7 +2510,7 @@ const Gn = (e, t) => {
2539
2510
  children: [
2540
2511
  /* @__PURE__ */ o.jsx(u, { href: u === "a" ? (m = e.link) == null ? void 0 : m.href : void 0, className: "desk-body-regular-m outline-none", children: e.title }),
2541
2512
  l && /* @__PURE__ */ o.jsx(
2542
- ro,
2513
+ eo,
2543
2514
  {
2544
2515
  categories: e.children,
2545
2516
  style: {
@@ -2550,11 +2521,11 @@ const Gn = (e, t) => {
2550
2521
  ]
2551
2522
  }
2552
2523
  );
2553
- }), oo = ct(no), io = ({ categories: e }) => {
2554
- const [t, r] = O(null), n = Se((d) => {
2524
+ }), no = ft(ro), oo = ({ categories: e }) => {
2525
+ const [t, r] = O(null), n = Ce((d) => {
2555
2526
  r(d);
2556
2527
  }, []), i = Ht(null);
2557
- return /* @__PURE__ */ o.jsx(er, { mode: "sync", children: /* @__PURE__ */ o.jsxs(
2528
+ return /* @__PURE__ */ o.jsx(tr, { mode: "sync", children: /* @__PURE__ */ o.jsxs(
2558
2529
  "div",
2559
2530
  {
2560
2531
  ref: i,
@@ -2562,7 +2533,7 @@ const Gn = (e, t) => {
2562
2533
  className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]",
2563
2534
  children: [
2564
2535
  e.map((d) => /* @__PURE__ */ o.jsx(
2565
- oo,
2536
+ no,
2566
2537
  {
2567
2538
  ref: i,
2568
2539
  category: d,
@@ -2575,7 +2546,7 @@ const Gn = (e, t) => {
2575
2546
  ]
2576
2547
  }
2577
2548
  ) });
2578
- }, ao = ct(io), lo = ({
2549
+ }, io = ft(oo), ao = ({
2579
2550
  category: e,
2580
2551
  selectedCategory: t,
2581
2552
  onCurrentCategoryChange: r,
@@ -2622,20 +2593,20 @@ const Gn = (e, t) => {
2622
2593
  )
2623
2594
  ]
2624
2595
  }
2625
- ), uo = ({ categories: e, helpers: t, phone: r }) => {
2626
- const [n, i] = sn({ root: e[0].children[0], current: e[0].children[0] });
2596
+ ), lo = ({ categories: e, helpers: t, phone: r }) => {
2597
+ const [n, i] = Gn({ root: e[0].children[0], current: e[0].children[0] });
2627
2598
  return /* @__PURE__ */ o.jsxs("div", { className: "mobile:hidden", children: [
2628
2599
  /* @__PURE__ */ o.jsxs("div", { className: "flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)] py-4", children: [
2629
2600
  /* @__PURE__ */ o.jsx(c, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
2630
2601
  e.map((d) => {
2631
2602
  const l = n.root.title === d.title;
2632
2603
  return /* @__PURE__ */ o.jsx(
2633
- lo,
2604
+ ao,
2634
2605
  {
2635
2606
  category: d,
2636
2607
  selectedCategory: n.current,
2637
- onCurrentCategoryChange: (u) => i(to(u)),
2638
- onRootCategoryChange: (u) => i(eo(u)),
2608
+ onCurrentCategoryChange: (u) => i(sn(u)),
2609
+ onRootCategoryChange: (u) => i(to(u)),
2639
2610
  active: l
2640
2611
  },
2641
2612
  d.title
@@ -2660,14 +2631,14 @@ const Gn = (e, t) => {
2660
2631
  {
2661
2632
  href: `tel:${r}`,
2662
2633
  className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
2663
- children: Mt(r, "x xxx xxx xx xx")
2634
+ children: It(r, "x xxx xxx xx xx")
2664
2635
  }
2665
2636
  )
2666
2637
  ] }),
2667
- /* @__PURE__ */ o.jsx(ao, { categories: n.current.children })
2638
+ /* @__PURE__ */ o.jsx(io, { categories: n.current.children })
2668
2639
  ] });
2669
- }, mo = ({ category: e }) => /* @__PURE__ */ o.jsx(
2670
- at,
2640
+ }, uo = ({ category: e }) => /* @__PURE__ */ o.jsx(
2641
+ dt,
2671
2642
  {
2672
2643
  label: e.title ?? "",
2673
2644
  icon: /* @__PURE__ */ o.jsx(c, { name: "arrows/arrowRight", className: "-rotate-90" }),
@@ -2707,18 +2678,18 @@ const Gn = (e, t) => {
2707
2678
  }) })
2708
2679
  },
2709
2680
  e.title
2710
- ), xo = (e) => e.map((t) => ({
2681
+ ), mo = (e) => e.map((t) => ({
2711
2682
  value: t.title ?? "",
2712
2683
  label: t.title ?? ""
2713
- })), ho = ({ categories: e, helpers: t, phone: r, ...n }) => {
2714
- const i = xo(e), [d, l] = O(i[0]), u = (m) => {
2684
+ })), xo = ({ categories: e, helpers: t, phone: r, ...n }) => {
2685
+ const i = mo(e), [d, l] = O(i[0]), u = (m) => {
2715
2686
  _.isUndefined(m) || _.isArray(m) || l(m);
2716
- }, x = gt(() => {
2687
+ }, x = ct(() => {
2717
2688
  var m;
2718
2689
  return _.isUndefined(d) || _.isArray(d) ? [] : ((m = e.find((p) => p.title === d.value)) == null ? void 0 : m.children) ?? [];
2719
2690
  }, [d, e]);
2720
2691
  return /* @__PURE__ */ o.jsxs(
2721
- zt.div,
2692
+ Dt.div,
2722
2693
  {
2723
2694
  ...n,
2724
2695
  className: a(
@@ -2730,10 +2701,10 @@ const Gn = (e, t) => {
2730
2701
  initial: { opacity: 0 },
2731
2702
  animate: { opacity: 1 },
2732
2703
  children: [
2733
- /* @__PURE__ */ o.jsx(St.SelectBase, { label: "Категория", options: i, value: d, onChange: u }),
2704
+ /* @__PURE__ */ o.jsx(Ct.SelectBase, { label: "Категория", options: i, value: d, onChange: u }),
2734
2705
  /* @__PURE__ */ o.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: x.map((m) => {
2735
2706
  var p;
2736
- return _.isArrayEmpty(m.children) ? /* @__PURE__ */ o.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ o.jsx("a", { href: (p = m.link) == null ? void 0 : p.href, className: "desk-body-regular-m inline-block w-full", children: m.title }) }, m.title) : /* @__PURE__ */ o.jsx(mo, { category: m }, m.title);
2707
+ return _.isArrayEmpty(m.children) ? /* @__PURE__ */ o.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ o.jsx("a", { href: (p = m.link) == null ? void 0 : p.href, className: "desk-body-regular-m inline-block w-full", children: m.title }) }, m.title) : /* @__PURE__ */ o.jsx(uo, { category: m }, m.title);
2737
2708
  }) }),
2738
2709
  /* @__PURE__ */ o.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
2739
2710
  /* @__PURE__ */ o.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
@@ -2746,13 +2717,13 @@ const Gn = (e, t) => {
2746
2717
  }),
2747
2718
  /* @__PURE__ */ o.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ o.jsxs("a", { href: `tel:${r}`, className: "flex w-full items-center gap-x-1", children: [
2748
2719
  /* @__PURE__ */ o.jsx(c, { name: "communication/phone", className: "size-4" }),
2749
- Mt(r)
2720
+ It(r)
2750
2721
  ] }) })
2751
2722
  ] })
2752
2723
  ]
2753
2724
  }
2754
2725
  );
2755
- }, po = ({ categories: e, helpers: t, phone: r }) => {
2726
+ }, ho = ({ categories: e, helpers: t, phone: r }) => {
2756
2727
  var x, m, p;
2757
2728
  const n = Ht(null), i = (x = n.current) == null ? void 0 : x.getBoundingClientRect(), [d, l] = O(!1), u = () => l(!d);
2758
2729
  return /* @__PURE__ */ o.jsxs(
@@ -2763,9 +2734,9 @@ const Gn = (e, t) => {
2763
2734
  children: [
2764
2735
  /* @__PURE__ */ o.jsx(c, { name: "brandLogos/logoMain", className: "w-[130px]" }),
2765
2736
  /* @__PURE__ */ o.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ o.jsx(c, { name: d ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
2766
- d && Ie(
2737
+ d && Se(
2767
2738
  /* @__PURE__ */ o.jsx(
2768
- ho,
2739
+ xo,
2769
2740
  {
2770
2741
  categories: e,
2771
2742
  helpers: t,
@@ -2781,25 +2752,25 @@ const Gn = (e, t) => {
2781
2752
  ]
2782
2753
  }
2783
2754
  );
2784
- }, pe = ({ categories: e, helpers: t, phone: r, breadcrumbs: n, classes: i }) => {
2785
- const { isMobile: d } = lt();
2755
+ }, he = ({ categories: e, helpers: t, phone: r, breadcrumbs: n, classes: i }) => {
2756
+ const { isMobile: d } = at();
2786
2757
  return /* @__PURE__ */ o.jsx("div", { id: g.seoHeader, "data-test-id": g.seoHeader, className: a("w-full bg-color-white", i == null ? void 0 : i.root), children: /* @__PURE__ */ o.jsxs(F, { className: "mx-auto w-full", children: [
2787
- /* @__PURE__ */ o.jsx(po, { categories: e.map((l) => l.children).flat(), helpers: t, phone: r }),
2788
- /* @__PURE__ */ o.jsx(uo, { categories: e, helpers: t, phone: r }),
2758
+ /* @__PURE__ */ o.jsx(ho, { categories: e.map((l) => l.children).flat(), helpers: t, phone: r }),
2759
+ /* @__PURE__ */ o.jsx(lo, { categories: e, helpers: t, phone: r }),
2789
2760
  /* @__PURE__ */ o.jsx(
2790
- Jn,
2761
+ Xn,
2791
2762
  {
2792
2763
  ellipsis: d ? 1 : void 0,
2793
2764
  breadcrumbs: n,
2794
- matcher: (l) => ({ label: dr(l.label).split("-").join(" ") })
2765
+ matcher: (l) => ({ label: ir(l.label).split("-").join(" ") })
2795
2766
  }
2796
2767
  )
2797
2768
  ] }) });
2798
- }, fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2769
+ }, po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2799
2770
  __proto__: null,
2800
- SeoHeader: pe,
2801
- default: pe
2802
- }, Symbol.toStringTag, { value: "Module" })), Pe = (e) => typeof e != "string" && "formula" in e, Ee = (e, t) => {
2771
+ SeoHeader: he,
2772
+ default: he
2773
+ }, Symbol.toStringTag, { value: "Module" })), Be = (e) => typeof e != "string" && "formula" in e, Ee = (e, t) => {
2803
2774
  let r = t;
2804
2775
  const n = {
2805
2776
  style: e
@@ -2815,30 +2786,30 @@ const Gn = (e, t) => {
2815
2786
  return null;
2816
2787
  }
2817
2788
  return new Intl.NumberFormat("ru-RU", n).format(r);
2818
- }, co = (e, t) => {
2789
+ }, fo = (e, t) => {
2819
2790
  switch (e) {
2820
2791
  case "text":
2821
2792
  return t;
2822
2793
  default:
2823
2794
  return Ee(e, Number(t));
2824
2795
  }
2825
- }, go = (e) => Object.values(e).reduce((r, n) => r.merge(Vt(n.fields)), Qt({})), bo = (e, t) => (e.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in t)).length > 0 ? "" : e, Re = (e, t) => {
2826
- const r = Object.entries(t).map(([x, m]) => [x, _.isNil(m) ? "1" : m]), n = r.map(([x]) => x), i = r.map(([, x]) => x), d = bo(e, Object.fromEntries(r)), u = new Function(...n, `return ${d};`)(...i.map(Number));
2796
+ }, co = (e) => Object.values(e).reduce((r, n) => r.merge($t(n.fields)), Lt({})), go = (e, t) => (e.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in t)).length > 0 ? "" : e, Pe = (e, t) => {
2797
+ const r = Object.entries(t).map(([x, m]) => [x, _.isNil(m) ? "1" : m]), n = r.map(([x]) => x), i = r.map(([, x]) => x), d = go(e, Object.fromEntries(r)), u = new Function(...n, `return ${d};`)(...i.map(Number));
2827
2798
  return Number.isNaN(Number(u)) ? "0" : u.toString();
2828
- }, jo = (e, t) => e.map((r) => ({
2799
+ }, bo = (e, t) => e.map((r) => ({
2829
2800
  ...r,
2830
- value: Pe(r.value) ? Re(r.value.formula, t) : r.value
2831
- })), yo = ({ subtitle: e, title: t, classes: r }) => /* @__PURE__ */ o.jsx(o.Fragment, { children: (t || e) && /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-2", r == null ? void 0 : r.wrapper), children: [
2801
+ value: Be(r.value) ? Pe(r.value.formula, t) : r.value
2802
+ })), jo = ({ subtitle: e, title: t, classes: r }) => /* @__PURE__ */ o.jsx(o.Fragment, { children: (t || e) && /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-2", r == null ? void 0 : r.wrapper), children: [
2832
2803
  t && /* @__PURE__ */ o.jsx(R, { as: "h3", className: r == null ? void 0 : r.title, children: t }),
2833
2804
  e && /* @__PURE__ */ o.jsx("div", { className: a("desk-body-regular-l text-color-dark", r == null ? void 0 : r.subtitle), children: e })
2834
- ] }) }), ko = ({ rootDescription: e, rootValue: t, suffix: r, classes: n }) => /* @__PURE__ */ o.jsxs("div", { className: a("mb-6 flex items-center justify-between gap-6", n == null ? void 0 : n.wrapper), children: [
2805
+ ] }) }), yo = ({ rootDescription: e, rootValue: t, suffix: r, classes: n }) => /* @__PURE__ */ o.jsxs("div", { className: a("mb-6 flex items-center justify-between gap-6", n == null ? void 0 : n.wrapper), children: [
2835
2806
  /* @__PURE__ */ o.jsx("p", { className: a("desk-body-regular-l text-color-dark", n == null ? void 0 : n.description), children: e }),
2836
2807
  /* @__PURE__ */ o.jsx("div", { className: a("desk-title-bold-l flex items-center gap-1 text-color-dark", n == null ? void 0 : n.value), children: Ee(r, Number(t)) })
2837
- ] }), wo = ({ hint: e, value: t, label: r, mode: n, color: i = "dark", accent: d = !1 }) => /* @__PURE__ */ o.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
2808
+ ] }), ko = ({ hint: e, value: t, label: r, mode: n, color: i = "dark", accent: d = !1 }) => /* @__PURE__ */ o.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
2838
2809
  /* @__PURE__ */ o.jsxs("div", { className: "flex items-center gap-2", children: [
2839
2810
  /* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l text-color-dark", children: r }),
2840
2811
  e && /* @__PURE__ */ o.jsx(
2841
- Ct,
2812
+ Nt,
2842
2813
  {
2843
2814
  withCloseBtn: !1,
2844
2815
  triggerElement: /* @__PURE__ */ o.jsx(c, { className: "size-5 text-icon-blue-grey-600", name: "info/helpCircle" }),
@@ -2853,19 +2824,19 @@ const Gn = (e, t) => {
2853
2824
  "[&&]:desk-title-bold-s": d,
2854
2825
  "text-color-primary-default": i === "blue"
2855
2826
  }),
2856
- children: co(n, t)
2827
+ children: fo(n, t)
2857
2828
  }
2858
2829
  )
2859
- ] }), vo = ({ infoList: e, classes: t }) => {
2860
- const { watch: r } = Ot(), n = r(), i = jo(e, n);
2861
- return /* @__PURE__ */ o.jsx("div", { className: a("my-4 flex flex-col gap-3 border-t border-solid border-blue-grey-500 pt-4", t == null ? void 0 : t.wrapper), children: i == null ? void 0 : i.map((d) => /* @__PURE__ */ o.jsx(wo, { ...d }, d.label)) });
2862
- }, No = ({ iconName: e, text: t, hint: r, classes: n, popoverProps: i }) => /* @__PURE__ */ o.jsxs("div", { className: a("mb-6 flex items-center gap-2", n == null ? void 0 : n.wrapper), children: [
2830
+ ] }), wo = ({ infoList: e, classes: t }) => {
2831
+ const { watch: r } = _t(), n = r(), i = bo(e, n);
2832
+ return /* @__PURE__ */ o.jsx("div", { className: a("my-4 flex flex-col gap-3 border-t border-solid border-blue-grey-500 pt-4", t == null ? void 0 : t.wrapper), children: i == null ? void 0 : i.map((d) => /* @__PURE__ */ o.jsx(ko, { ...d }, d.label)) });
2833
+ }, vo = ({ iconName: e, text: t, hint: r, classes: n, popoverProps: i }) => /* @__PURE__ */ o.jsxs("div", { className: a("mb-6 flex items-center gap-2", n == null ? void 0 : n.wrapper), children: [
2863
2834
  /* @__PURE__ */ o.jsxs("div", { className: a("flex items-center gap-1", n == null ? void 0 : n.block), children: [
2864
2835
  /* @__PURE__ */ o.jsx(c, { name: e, className: a("size-6 text-icon-blue-grey-800", n == null ? void 0 : n.icon) }),
2865
2836
  /* @__PURE__ */ o.jsx("p", { className: a("desk-body-regular-l text-color-tetriary", n == null ? void 0 : n.description), children: t })
2866
2837
  ] }),
2867
2838
  r && /* @__PURE__ */ o.jsx(
2868
- Ct,
2839
+ Nt,
2869
2840
  {
2870
2841
  withCloseBtn: !1,
2871
2842
  triggerElement: /* @__PURE__ */ o.jsx(c, { name: "info/helpCircle", className: "size-5 text-icon-blue-grey-600" }),
@@ -2873,11 +2844,11 @@ const Gn = (e, t) => {
2873
2844
  children: r
2874
2845
  }
2875
2846
  )
2876
- ] }), Co = ({ assistHint: e, buttonsConfig: t, bottomDescription: r, classes: n }) => /* @__PURE__ */ o.jsxs("div", { children: [
2877
- e && /* @__PURE__ */ o.jsx(No, { ...e, classes: n == null ? void 0 : n.assistHint }),
2847
+ ] }), No = ({ assistHint: e, buttonsConfig: t, bottomDescription: r, classes: n }) => /* @__PURE__ */ o.jsxs("div", { children: [
2848
+ e && /* @__PURE__ */ o.jsx(vo, { ...e, classes: n == null ? void 0 : n.assistHint }),
2878
2849
  /* @__PURE__ */ o.jsx("div", { className: a("flex items-center gap-4 mobile:flex-col", n == null ? void 0 : n.buttonsWrapper), children: t == null ? void 0 : t.map((i, d) => /* @__PURE__ */ o.jsx(tt, { className: "w-full", ...i }, d)) }),
2879
2850
  r && /* @__PURE__ */ o.jsx("p", { className: a("desk-body-regular-m mt-4 text-color-secondary", n == null ? void 0 : n.bottomDescription), children: r })
2880
- ] }), So = ({
2851
+ ] }), Co = ({
2881
2852
  rootDescription: e,
2882
2853
  bottomDescription: t,
2883
2854
  rootValue: r,
@@ -2890,7 +2861,7 @@ const Gn = (e, t) => {
2890
2861
  classes: m
2891
2862
  }) => /* @__PURE__ */ o.jsxs("div", { className: a("w-[456px] rounded-md bg-color-blue-grey-100 p-8", m == null ? void 0 : m.wrapper), children: [
2892
2863
  /* @__PURE__ */ o.jsx(
2893
- ko,
2864
+ yo,
2894
2865
  {
2895
2866
  suffix: u,
2896
2867
  rootValue: r,
@@ -2898,10 +2869,10 @@ const Gn = (e, t) => {
2898
2869
  classes: m == null ? void 0 : m.calculatedBlock
2899
2870
  }
2900
2871
  ),
2901
- /* @__PURE__ */ o.jsx(yo, { title: n, subtitle: i, classes: m == null ? void 0 : m.calculatedInfoHead }),
2902
- /* @__PURE__ */ o.jsx(vo, { infoList: l, classes: m == null ? void 0 : m.calculatorInfoBody }),
2872
+ /* @__PURE__ */ o.jsx(jo, { title: n, subtitle: i, classes: m == null ? void 0 : m.calculatedInfoHead }),
2873
+ /* @__PURE__ */ o.jsx(wo, { infoList: l, classes: m == null ? void 0 : m.calculatorInfoBody }),
2903
2874
  /* @__PURE__ */ o.jsx(
2904
- Co,
2875
+ No,
2905
2876
  {
2906
2877
  assistHint: x,
2907
2878
  buttonsConfig: d,
@@ -2909,14 +2880,14 @@ const Gn = (e, t) => {
2909
2880
  classes: m == null ? void 0 : m.calculatorInfoFooter
2910
2881
  }
2911
2882
  )
2912
- ] }), Io = 2e4, De = ({
2883
+ ] }), So = 2e4, Re = ({
2913
2884
  slidersGroupConfig: e,
2914
2885
  additionalSliderGroupConfig: t
2915
2886
  }) => {
2916
- const [r, n] = O(!1), { watch: i, setValue: d } = Ot(), l = e == null ? void 0 : e.fields.find(({ args: E }) => E.name === "sum"), { args: u } = l || {}, { max: x, name: m, defaultValue: p } = u || {}, f = i(m), { min: S, name: y } = (t == null ? void 0 : t.args) ?? {}, P = i(y), k = Number(x ?? 0) - (f ?? p);
2917
- return vt(() => {
2918
- P > k && d(y, k);
2919
- }, [k, P, d, f]), vt(() => {
2887
+ const [r, n] = O(!1), { watch: i, setValue: d } = _t(), l = e == null ? void 0 : e.fields.find(({ args: P }) => P.name === "sum"), { args: u } = l || {}, { max: x, name: m, defaultValue: p } = u || {}, f = i(m), { min: S, name: y } = (t == null ? void 0 : t.args) ?? {}, E = i(y), k = Number(x ?? 0) - (f ?? p);
2888
+ return wt(() => {
2889
+ E > k && d(y, k);
2890
+ }, [k, E, d, f]), wt(() => {
2920
2891
  Number(x) === f && n(!1);
2921
2892
  }, [n, x, f]), {
2922
2893
  sliderVisible: r,
@@ -2927,19 +2898,19 @@ const Gn = (e, t) => {
2927
2898
  sumValue: f,
2928
2899
  additionalSliderMax: k,
2929
2900
  onCheckedChange: () => {
2930
- n((E) => !E), P <= 0 && d(y, S), Number(x) === f && (d(m ?? "", f - Io), d(y, S));
2901
+ n((P) => !P), E <= 0 && d(y, S), Number(x) === f && (d(m ?? "", f - So), d(y, S));
2931
2902
  },
2932
2903
  sliderSumExist: !_.isObjectEmpty(l == null ? void 0 : l.args),
2933
2904
  sliderSumCorrectType: (l == null ? void 0 : l.args.componentType) === "algorithmic" || (l == null ? void 0 : l.args.componentType) === "step"
2934
2905
  };
2935
- }, Mo = (e) => {
2906
+ }, Io = (e) => {
2936
2907
  switch (e) {
2937
2908
  case "content1":
2938
2909
  return /* @__PURE__ */ o.jsx("div", { children: "content 1" });
2939
2910
  case "content2":
2940
2911
  return /* @__PURE__ */ o.jsx("div", { children: "content 2" });
2941
2912
  }
2942
- }, _o = ({
2913
+ }, Mo = ({
2943
2914
  triggerText: e,
2944
2915
  modalTitle: t,
2945
2916
  description: r,
@@ -2947,7 +2918,7 @@ const Gn = (e, t) => {
2947
2918
  modalProps: i,
2948
2919
  contentVariant: d
2949
2920
  }) => {
2950
- const [l, u] = xr(!1);
2921
+ const [l, u] = mr(!1);
2951
2922
  return /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4 rounded-sm bg-color-blue-grey-100 p-4", n == null ? void 0 : n.wrapper), children: [
2952
2923
  r && /* @__PURE__ */ o.jsx("p", { className: a("desk-body-regular-l text-color-tetriary", n == null ? void 0 : n.description), children: r }),
2953
2924
  /* @__PURE__ */ o.jsx(
@@ -2961,27 +2932,27 @@ const Gn = (e, t) => {
2961
2932
  children: e
2962
2933
  }
2963
2934
  ),
2964
- /* @__PURE__ */ o.jsx(rr, { title: t, isModalOpen: l, closeModal: () => u(!1), ...i, children: Mo(d) })
2935
+ /* @__PURE__ */ o.jsx(er, { title: t, isModalOpen: l, closeModal: () => u(!1), ...i, children: Io(d) })
2965
2936
  ] });
2966
2937
  }, G = ({ fields: e }) => {
2967
- const { control: t } = Ot();
2968
- return /* @__PURE__ */ o.jsx($t, { control: t, fields: e });
2969
- }, Oo = ({
2938
+ const { control: t } = _t();
2939
+ return /* @__PURE__ */ o.jsx(Qt, { control: t, fields: e });
2940
+ }, _o = ({
2970
2941
  slidersGroupConfig: e,
2971
2942
  additionalSliderGroupConfig: t,
2972
2943
  classes: r
2973
2944
  }) => {
2974
- const { control: n } = Ot(), { sliderVisible: i, additionalSliderMax: d, onCheckedChange: l } = De({
2945
+ const { control: n } = _t(), { sliderVisible: i, additionalSliderMax: d, onCheckedChange: l } = Re({
2975
2946
  slidersGroupConfig: e,
2976
2947
  additionalSliderGroupConfig: t
2977
2948
  });
2978
2949
  return _.isNil(t == null ? void 0 : t.args) || !(t != null && t.args) ? null : /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4", r == null ? void 0 : r.wrapper), children: [
2979
2950
  /* @__PURE__ */ o.jsxs("div", { className: a("inline-flex items-center gap-2", r == null ? void 0 : r.block), children: [
2980
- /* @__PURE__ */ o.jsx(St.SwitchBase, { checked: i, onCheckedChange: l }),
2951
+ /* @__PURE__ */ o.jsx(Ct.SwitchBase, { checked: i, onCheckedChange: l }),
2981
2952
  /* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l", children: "Хочу получить деньги дополнительно" })
2982
2953
  ] }),
2983
2954
  i && /* @__PURE__ */ o.jsx(
2984
- Dt.SliderControl,
2955
+ Rt.SliderControl,
2985
2956
  {
2986
2957
  ...t.args,
2987
2958
  control: n,
@@ -2992,14 +2963,14 @@ const Gn = (e, t) => {
2992
2963
  }
2993
2964
  )
2994
2965
  ] });
2995
- }, To = ({ modalConfig: e, fieldsGroup: t, classes: r }) => {
2966
+ }, Oo = ({ modalConfig: e, fieldsGroup: t, classes: r }) => {
2996
2967
  var d;
2997
- const { sliderSumExist: n, sliderSumCorrectType: i } = De({
2968
+ const { sliderSumExist: n, sliderSumCorrectType: i } = Re({
2998
2969
  slidersGroupConfig: t.slidersGroupConfig,
2999
2970
  additionalSliderGroupConfig: t.additionalSliderGroupConfig
3000
2971
  });
3001
2972
  return /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-1 flex-col gap-8", r == null ? void 0 : r.rootFieldsWrapper), children: [
3002
- (e == null ? void 0 : e.triggerText) && (e == null ? void 0 : e.contentVariant) && /* @__PURE__ */ o.jsx(_o, { classes: r == null ? void 0 : r.modalClasses, ...e }),
2973
+ (e == null ? void 0 : e.triggerText) && (e == null ? void 0 : e.contentVariant) && /* @__PURE__ */ o.jsx(Mo, { classes: r == null ? void 0 : r.modalClasses, ...e }),
3003
2974
  (t == null ? void 0 : t.selectGroupConfig) && /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4", r == null ? void 0 : r.selectFieldsWrapper), children: /* @__PURE__ */ o.jsx(G, { ...t == null ? void 0 : t.selectGroupConfig }) }),
3004
2975
  (t == null ? void 0 : t.slidersGroupConfig) && /* @__PURE__ */ o.jsx(G, { ...t == null ? void 0 : t.slidersGroupConfig }),
3005
2976
  (t == null ? void 0 : t.radioGroupTabConfig) && /* @__PURE__ */ o.jsx(G, { ...t == null ? void 0 : t.radioGroupTabConfig }),
@@ -3008,14 +2979,14 @@ const Gn = (e, t) => {
3008
2979
  (t == null ? void 0 : t.radioGroupCardConfig) && /* @__PURE__ */ o.jsx(G, { ...t == null ? void 0 : t.radioGroupCardConfig }),
3009
2980
  (t == null ? void 0 : t.switchGroupConfig) && /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4", r == null ? void 0 : r.switchFieldsWrapper), children: /* @__PURE__ */ o.jsx(G, { ...t == null ? void 0 : t.switchGroupConfig }) }),
3010
2981
  ((d = t.additionalSliderGroupConfig) == null ? void 0 : d.args.enabled) && t.slidersGroupConfig && t.additionalSliderGroupConfig && n && i && /* @__PURE__ */ o.jsx(
3011
- Oo,
2982
+ _o,
3012
2983
  {
3013
2984
  slidersGroupConfig: t.slidersGroupConfig,
3014
2985
  additionalSliderGroupConfig: t.additionalSliderGroupConfig
3015
2986
  }
3016
2987
  )
3017
2988
  ] });
3018
- }, Fo = ct(({ calculatorTabs: e, activeCalculator: t, setActiveCalculator: r, classes: n }) => /* @__PURE__ */ o.jsx("div", { className: a("mb-8 flex items-center gap-4", n == null ? void 0 : n.wrapper), children: e == null ? void 0 : e.map(({ name: i, label: d }) => /* @__PURE__ */ o.jsx(
2989
+ }, To = ft(({ calculatorTabs: e, activeCalculator: t, setActiveCalculator: r, classes: n }) => /* @__PURE__ */ o.jsx("div", { className: a("mb-8 flex items-center gap-4", n == null ? void 0 : n.wrapper), children: e == null ? void 0 : e.map(({ name: i, label: d }) => /* @__PURE__ */ o.jsx(
3019
2990
  "button",
3020
2991
  {
3021
2992
  onClick: () => r(i),
@@ -3027,31 +2998,31 @@ const Gn = (e, t) => {
3027
2998
  children: d
3028
2999
  },
3029
3000
  i
3030
- )) })), Bo = ({
3001
+ )) })), Fo = ({
3031
3002
  calculatorInfoConfig: e,
3032
3003
  calculatorFieldsConfig: t,
3033
3004
  classes: r
3034
3005
  }) => {
3035
- const n = go(t == null ? void 0 : t.fieldsGroup), i = _t({
3006
+ const n = co(t == null ? void 0 : t.fieldsGroup), i = Mt({
3036
3007
  schema: n,
3037
3008
  mode: "onBlur",
3038
- defaultValues: Tt.getZodDefaults(n)
3009
+ defaultValues: Ot.getZodDefaults(n)
3039
3010
  }), d = i.watch(), { rootValue: l } = e;
3040
- vt(() => {
3041
- ar.setItem("calculatorData", JSON.stringify(d));
3011
+ wt(() => {
3012
+ dr.setItem("calculatorData", JSON.stringify(d));
3042
3013
  }, [d]);
3043
- const u = Pe(l) ? Re(l.formula, d) : l, x = { ...e, rootValue: u };
3044
- return /* @__PURE__ */ o.jsx(ur, { ...i, children: /* @__PURE__ */ o.jsxs("div", { className: a("flex items-start gap-16", r == null ? void 0 : r.wrapper), children: [
3045
- /* @__PURE__ */ o.jsx(To, { ...t, classes: r == null ? void 0 : r.calculatorFields }),
3046
- /* @__PURE__ */ o.jsx(So, { ...x, classes: r == null ? void 0 : r.calculatorInfo })
3014
+ const u = Be(l) ? Pe(l.formula, d) : l, x = { ...e, rootValue: u };
3015
+ return /* @__PURE__ */ o.jsx(lr, { ...i, children: /* @__PURE__ */ o.jsxs("div", { className: a("flex items-start gap-16", r == null ? void 0 : r.wrapper), children: [
3016
+ /* @__PURE__ */ o.jsx(Oo, { ...t, classes: r == null ? void 0 : r.calculatorFields }),
3017
+ /* @__PURE__ */ o.jsx(Co, { ...x, classes: r == null ? void 0 : r.calculatorInfo })
3047
3018
  ] }) });
3048
- }, fe = ({ calculators: e, headline: t, classes: r }) => {
3019
+ }, pe = ({ calculators: e, headline: t, classes: r }) => {
3049
3020
  var m;
3050
- const n = e.length > 1, [i, d] = O(n ? (m = e[0]) == null ? void 0 : m.name : ""), l = gt(() => e == null ? void 0 : e.map(({ name: p, label: f }) => ({ name: p, label: f })), [e]), u = n ? l == null ? void 0 : l.findIndex((p) => p.name === i) : 0, x = e[u];
3021
+ const n = e.length > 1, [i, d] = O(n ? (m = e[0]) == null ? void 0 : m.name : ""), l = ct(() => e == null ? void 0 : e.map(({ name: p, label: f }) => ({ name: p, label: f })), [e]), u = n ? l == null ? void 0 : l.findIndex((p) => p.name === i) : 0, x = e[u];
3051
3022
  return /* @__PURE__ */ o.jsx("section", { id: g.calculator, "data-test-id": g.calculator, className: a(r == null ? void 0 : r.root), children: /* @__PURE__ */ o.jsx(F, { className: a(r == null ? void 0 : r.container), children: /* @__PURE__ */ o.jsxs("div", { className: a(r == null ? void 0 : r.wrapper), children: [
3052
3023
  /* @__PURE__ */ o.jsx(R, { className: a("mb-12", r == null ? void 0 : r.headline), as: "h2", children: t }),
3053
3024
  n && /* @__PURE__ */ o.jsx(
3054
- Fo,
3025
+ To,
3055
3026
  {
3056
3027
  calculatorTabs: l,
3057
3028
  activeCalculator: i,
@@ -3060,7 +3031,7 @@ const Gn = (e, t) => {
3060
3031
  }
3061
3032
  ),
3062
3033
  /* @__PURE__ */ o.jsx(
3063
- Bo,
3034
+ Fo,
3064
3035
  {
3065
3036
  name: x.name,
3066
3037
  label: x.label,
@@ -3070,75 +3041,55 @@ const Gn = (e, t) => {
3070
3041
  }
3071
3042
  )
3072
3043
  ] }) }) });
3073
- }, Po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3044
+ }, Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3074
3045
  __proto__: null,
3075
- Calculator: fe,
3076
- default: fe
3077
- }, Symbol.toStringTag, { value: "Module" })), Eo = ({ linksList: e, classes: t }) => /* @__PURE__ */ o.jsx("div", { className: a("mt-4 flex flex-wrap items-center gap-4 desktop:mt-12 desktop:gap-8", t == null ? void 0 : t.list), children: e == null ? void 0 : e.map((r, n) => /* @__PURE__ */ o.jsx(ft, { withUnderline: !0, size: "md", classes: t == null ? void 0 : t.customLink, ...r }, n)) }), Ro = ({
3078
- heading: e,
3079
- buttonsGroup: t,
3080
- imageMobile: r,
3081
- renderImageCb: n,
3082
- description: i,
3083
- linksList: d,
3084
- classes: l
3085
- }) => {
3086
- const u = t && (t == null ? void 0 : t.length) > 0, x = d && (d == null ? void 0 : d.length) > 0;
3087
- return /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col", l == null ? void 0 : l.wrapper), children: [
3088
- /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4 mobile:mb-2", l == null ? void 0 : l.textBlock), children: [
3089
- /* @__PURE__ */ o.jsx(R, { as: "h2", className: a(l == null ? void 0 : l.heading), children: e }),
3090
- i && /* @__PURE__ */ o.jsx(
3046
+ Calculator: pe,
3047
+ default: pe
3048
+ }, Symbol.toStringTag, { value: "Module" })), Eo = ({ linksList: e, classes: t }) => /* @__PURE__ */ o.jsx("div", { className: a("mt-4 flex flex-wrap items-center gap-4 desktop:mt-12 desktop:gap-8", t == null ? void 0 : t.list), children: e == null ? void 0 : e.map((r, n) => /* @__PURE__ */ o.jsx(pt, { withUnderline: !0, size: "md", classes: t == null ? void 0 : t.customLink, ...r }, n)) }), Po = ({ heading: e, buttonsGroup: t, description: r, images: n, linksList: i, classes: d }) => {
3049
+ const l = t && (t == null ? void 0 : t.length) > 0, u = i && (i == null ? void 0 : i.length) > 0;
3050
+ return /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col", d == null ? void 0 : d.wrapper), children: [
3051
+ /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4 mobile:mb-2", d == null ? void 0 : d.textBlock), children: [
3052
+ /* @__PURE__ */ o.jsx(R, { as: "h2", className: a(d == null ? void 0 : d.heading), children: e }),
3053
+ r && /* @__PURE__ */ o.jsx(
3091
3054
  "p",
3092
3055
  {
3093
- dangerouslySetInnerHTML: { __html: i },
3094
- className: a("desk-body-regular-l text-color-dark", l == null ? void 0 : l.description)
3056
+ dangerouslySetInnerHTML: { __html: r },
3057
+ className: a("desk-body-regular-l text-color-dark", d == null ? void 0 : d.description)
3095
3058
  }
3096
3059
  )
3097
3060
  ] }),
3098
- /* @__PURE__ */ o.jsx("div", { className: a("h-full w-full desktop:hidden", l == null ? void 0 : l.imageMobileWrapper), children: it({
3099
- imgProps: {
3100
- className: a("object-contain w-full h-full", l == null ? void 0 : l.imageMobile),
3101
- ...r
3102
- },
3103
- renderImageCb: n
3104
- }) }),
3105
- u && /* @__PURE__ */ o.jsx("div", { className: a("mt-2 flex items-center gap-3 mobile:flex-col desktop:mt-8 desktop:gap-8", l == null ? void 0 : l.buttonsGroup), children: t == null ? void 0 : t.map((m, p) => /* @__PURE__ */ o.jsx(tt, { className: "w-full desktop:w-[216px]", ...m }, p)) }),
3106
- x && /* @__PURE__ */ o.jsx(Eo, { linksList: d, classes: l == null ? void 0 : l.linksList })
3061
+ /* @__PURE__ */ o.jsx("div", { className: a("h-full w-full desktop:hidden", d == null ? void 0 : d.imageMobileWrapper), children: /* @__PURE__ */ o.jsx("img", { src: n.mobile, alt: n.alt, className: a("h-full w-full object-contain", d == null ? void 0 : d.imageMobile) }) }),
3062
+ l && /* @__PURE__ */ o.jsx("div", { className: a("mt-2 flex items-center gap-3 mobile:flex-col desktop:mt-8 desktop:gap-8", d == null ? void 0 : d.buttonsGroup), children: t == null ? void 0 : t.map((x, m) => /* @__PURE__ */ o.jsx(tt, { className: "w-full desktop:w-[216px]", ...x }, m)) }),
3063
+ u && /* @__PURE__ */ o.jsx(Eo, { linksList: i, classes: d == null ? void 0 : d.linksList })
3107
3064
  ] });
3108
- }, ce = (e) => {
3109
- const { size: t = "md", renderImageCb: r, backgroundColor: n = "#F4F8FE", imageDesktop: i, classes: d, ...l } = e;
3065
+ }, fe = (e) => {
3066
+ const { size: t = "md", backgroundColor: r = "#F4F8FE", images: n, classes: i, ...d } = e;
3110
3067
  return /* @__PURE__ */ o.jsx(
3111
3068
  "section",
3112
3069
  {
3113
3070
  id: g.infoBlock,
3114
3071
  "data-test-id": g.infoBlock,
3115
- style: { backgroundColor: n },
3116
- className: a("py-14", d == null ? void 0 : d.root),
3117
- children: /* @__PURE__ */ o.jsx(F, { children: /* @__PURE__ */ o.jsxs("div", { className: a("flex items-center justify-between gap-11 mobile:flex-col", d == null ? void 0 : d.container), children: [
3118
- /* @__PURE__ */ o.jsx(Ro, { renderImageCb: r, classes: d == null ? void 0 : d.rootContent, ...l }),
3072
+ style: { backgroundColor: r },
3073
+ className: a("py-14", i == null ? void 0 : i.root),
3074
+ children: /* @__PURE__ */ o.jsx(F, { children: /* @__PURE__ */ o.jsxs("div", { className: a("flex items-center justify-between gap-11 mobile:flex-col", i == null ? void 0 : i.container), children: [
3075
+ /* @__PURE__ */ o.jsx(Po, { images: n, classes: i == null ? void 0 : i.rootContent, ...d }),
3119
3076
  /* @__PURE__ */ o.jsx(
3120
3077
  "div",
3121
3078
  {
3122
- className: a("h-[200px] w-full max-w-[432px] mobile:hidden", d == null ? void 0 : d.imageDesktopWrapper, {
3079
+ className: a("h-[200px] w-full max-w-[432px] mobile:hidden", i == null ? void 0 : i.imageDesktopWrapper, {
3123
3080
  "h-[238px]": t === "md"
3124
3081
  }),
3125
- children: it({
3126
- imgProps: {
3127
- className: a("object-contain w-full h-full", d == null ? void 0 : d.imageDesktop),
3128
- ...i
3129
- },
3130
- renderImageCb: r
3131
- })
3082
+ children: /* @__PURE__ */ o.jsx("img", { src: n.desktop, alt: n.alt, className: a("h-full w-full object-contain", i == null ? void 0 : i.imageDesktop) })
3132
3083
  }
3133
3084
  )
3134
3085
  ] }) })
3135
3086
  }
3136
3087
  );
3137
- }, Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3088
+ }, Ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3138
3089
  __proto__: null,
3139
- InfoBlock: ce,
3140
- default: ce
3141
- }, Symbol.toStringTag, { value: "Module" })), zo = (e) => {
3090
+ InfoBlock: fe,
3091
+ default: fe
3092
+ }, Symbol.toStringTag, { value: "Module" })), Do = (e) => {
3142
3093
  const [t, r] = O(0), [n, i] = O(0);
3143
3094
  return {
3144
3095
  selectedRating: t,
@@ -3153,11 +3104,11 @@ const Gn = (e, t) => {
3153
3104
  r(x), e("review");
3154
3105
  }
3155
3106
  };
3156
- }, ge = Qt({
3157
- review: Lt.base.getStringSchema({ required: !1 })
3158
- }), Ho = ct(() => {
3159
- const e = hr({ ids: ["banner"] }), [t, r] = O(!1);
3160
- return vt(() => {
3107
+ }, ce = Lt({
3108
+ review: zt.base.getStringSchema({ required: !1 })
3109
+ }), Ho = ft(() => {
3110
+ const e = xr({ ids: ["banner"] }), [t, r] = O(!1);
3111
+ return wt(() => {
3161
3112
  r(!1);
3162
3113
  const n = setTimeout(() => {
3163
3114
  r(!0);
@@ -3173,25 +3124,25 @@ const Gn = (e, t) => {
3173
3124
  children: /* @__PURE__ */ o.jsx(c, { name: "general/heart", className: "size-7 fill-transparent stroke-white stroke-[3px]" })
3174
3125
  }
3175
3126
  );
3176
- }), Lo = "Спасибо за оценку!", Qo = ({ title: e = Lo, classes: t }) => /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col items-center gap-4 text-center", t == null ? void 0 : t.wrapper), children: [
3127
+ }), zo = "Спасибо за оценку!", Lo = ({ title: e = zo, classes: t }) => /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col items-center gap-4 text-center", t == null ? void 0 : t.wrapper), children: [
3177
3128
  /* @__PURE__ */ o.jsx(c, { name: "status/succesCircle", className: a(t == null ? void 0 : t.icon) }),
3178
3129
  /* @__PURE__ */ o.jsx("p", { className: a("desk-body-medium-l", t == null ? void 0 : t.title), children: e })
3179
- ] }), $o = "Расскажите о впечатлениях", Vo = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3130
+ ] }), Qo = "Расскажите о впечатлениях", $o = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3180
3131
  "Вам нравится сайт банка? ",
3181
3132
  /* @__PURE__ */ o.jsx("br", {}),
3182
3133
  " У вас есть предложения по его улучшению?"
3183
- ] }), Wo = ({
3134
+ ] }), Vo = ({
3184
3135
  submitCallback: e,
3185
3136
  rating: t,
3186
3137
  setFormStep: r,
3187
- title: n = $o,
3188
- subtitle: i = Vo,
3138
+ title: n = Qo,
3139
+ subtitle: i = $o,
3189
3140
  classes: d
3190
3141
  }) => {
3191
- const { control: l, handleSubmit: u } = _t({
3142
+ const { control: l, handleSubmit: u } = Mt({
3192
3143
  mode: "onBlur",
3193
- schema: ge,
3194
- defaultValues: Tt.getZodDefaults(ge)
3144
+ schema: ce,
3145
+ defaultValues: Ot.getZodDefaults(ce)
3195
3146
  }), x = async (m) => {
3196
3147
  var p;
3197
3148
  e && (await e({
@@ -3206,7 +3157,7 @@ const Gn = (e, t) => {
3206
3157
  /* @__PURE__ */ o.jsx("p", { className: a("desk-body-regular-l", d == null ? void 0 : d.subtitle), children: i })
3207
3158
  ] }),
3208
3159
  /* @__PURE__ */ o.jsx(
3209
- Dt.TextareaControl,
3160
+ Rt.TextareaControl,
3210
3161
  {
3211
3162
  control: l,
3212
3163
  name: "review",
@@ -3214,15 +3165,15 @@ const Gn = (e, t) => {
3214
3165
  classes: d == null ? void 0 : d.textareaClasses
3215
3166
  }
3216
3167
  ),
3217
- /* @__PURE__ */ o.jsx(pt, { type: "submit", size: "sm", intent: "negative", className: a("w-full", d == null ? void 0 : d.button), children: "Отправить" })
3168
+ /* @__PURE__ */ o.jsx(ht, { type: "submit", size: "sm", intent: "negative", className: a("w-full", d == null ? void 0 : d.button), children: "Отправить" })
3218
3169
  ] });
3219
- }, Ao = Array(5).fill(0), Uo = "Ваше мнение важно для нас!", qo = "Пожалуйста, оцените работу сайта, чтобы мы сделали его еще удобнее", Ko = ({
3170
+ }, Wo = Array(5).fill(0), Ao = "Ваше мнение важно для нас!", qo = "Пожалуйста, оцените работу сайта, чтобы мы сделали его еще удобнее", Uo = ({
3220
3171
  handleMouseLeave: e,
3221
3172
  hoveredRatings: t,
3222
3173
  selectedRating: r,
3223
3174
  handleSelectRating: n,
3224
3175
  handleMouseEnter: i,
3225
- title: d = Uo,
3176
+ title: d = Ao,
3226
3177
  subtitle: l = qo,
3227
3178
  classes: u
3228
3179
  }) => /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col items-center gap-4", u == null ? void 0 : u.wrapper), children: [
@@ -3230,7 +3181,7 @@ const Gn = (e, t) => {
3230
3181
  /* @__PURE__ */ o.jsx("p", { className: a("desk-body-medium-l", u == null ? void 0 : u.title), children: d }),
3231
3182
  /* @__PURE__ */ o.jsx("p", { className: a("desk-body-regular-l", u == null ? void 0 : u.subtitle), children: l })
3232
3183
  ] }),
3233
- /* @__PURE__ */ o.jsx("div", { className: a("flex items-center gap-2", u == null ? void 0 : u.ratingsWrapper), children: Ao.map((x, m) => /* @__PURE__ */ o.jsx(
3184
+ /* @__PURE__ */ o.jsx("div", { className: a("flex items-center gap-2", u == null ? void 0 : u.ratingsWrapper), children: Wo.map((x, m) => /* @__PURE__ */ o.jsx(
3234
3185
  "button",
3235
3186
  {
3236
3187
  className: a("size-8", u == null ? void 0 : u.ratingBtn),
@@ -3249,14 +3200,14 @@ const Gn = (e, t) => {
3249
3200
  },
3250
3201
  m
3251
3202
  )) })
3252
- ] }), Zo = ({ formStep: e, setFormStep: t, ratingProps: r, ...n }) => {
3203
+ ] }), Ko = ({ formStep: e, setFormStep: t, ratingProps: r, ...n }) => {
3253
3204
  var i, d, l;
3254
3205
  switch (e) {
3255
3206
  case "rating":
3256
- return /* @__PURE__ */ o.jsx(Ko, { ...r, classes: (i = n.classes) == null ? void 0 : i.selectRating, ...n.selectRatingStepProps });
3207
+ return /* @__PURE__ */ o.jsx(Uo, { ...r, classes: (i = n.classes) == null ? void 0 : i.selectRating, ...n.selectRatingStepProps });
3257
3208
  case "review":
3258
3209
  return /* @__PURE__ */ o.jsx(
3259
- Wo,
3210
+ Vo,
3260
3211
  {
3261
3212
  submitCallback: n.submitCallback,
3262
3213
  setFormStep: t,
@@ -3266,12 +3217,12 @@ const Gn = (e, t) => {
3266
3217
  }
3267
3218
  );
3268
3219
  case "finally":
3269
- return /* @__PURE__ */ o.jsx(Qo, { classes: (l = n.classes) == null ? void 0 : l.finally, ...n.finallyStepProps });
3220
+ return /* @__PURE__ */ o.jsx(Lo, { classes: (l = n.classes) == null ? void 0 : l.finally, ...n.finallyStepProps });
3270
3221
  }
3271
- }, be = (e) => {
3272
- const [t, r] = O("rating"), n = zo(r), { classes: i } = e;
3222
+ }, ge = (e) => {
3223
+ const [t, r] = O("rating"), n = Do(r), { classes: i } = e;
3273
3224
  return /* @__PURE__ */ o.jsx("div", { className: a("fixed right-5 top-[80%] z-[1000]", i == null ? void 0 : i.root), children: /* @__PURE__ */ o.jsx(
3274
- Ct,
3225
+ Nt,
3275
3226
  {
3276
3227
  side: "top",
3277
3228
  align: "end",
@@ -3283,41 +3234,41 @@ const Gn = (e, t) => {
3283
3234
  },
3284
3235
  triggerElement: /* @__PURE__ */ o.jsx(Ho, {}),
3285
3236
  ...e == null ? void 0 : e.popoverProps,
3286
- children: /* @__PURE__ */ o.jsx("div", { className: a("w-full", i == null ? void 0 : i.wrapper), children: Zo({ formStep: t, setFormStep: r, ratingProps: n, ...e }) })
3237
+ children: /* @__PURE__ */ o.jsx("div", { className: a("w-full", i == null ? void 0 : i.wrapper), children: Ko({ formStep: t, setFormStep: r, ratingProps: n, ...e }) })
3287
3238
  }
3288
3239
  ) });
3289
- }, Yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3240
+ }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3290
3241
  __proto__: null,
3291
- UserFeedback: be,
3292
- default: be
3242
+ UserFeedback: ge,
3243
+ default: ge
3293
3244
  }, Symbol.toStringTag, { value: "Module" }));
3294
3245
  export {
3295
- li as AuthProvider,
3296
- re as Banner,
3297
- Wr as BannerWithSeparateImg,
3298
- te as Benefit,
3299
- Jn as Breadcrumbs,
3246
+ di as AuthProvider,
3247
+ ee as Banner,
3248
+ Vr as BannerWithSeparateImg,
3249
+ st as Benefit,
3250
+ Xn as Breadcrumbs,
3300
3251
  tt as ButtonWithHandlers,
3301
- fe as Calculator,
3302
- Bo as CalculatorView,
3303
- xe as DynamicForm,
3304
- he as DynamicFormDialog,
3305
- mi as FallbacksView,
3306
- $t as FieldMapper,
3307
- ne as Footer,
3308
- ui as HTMLParser,
3309
- dt as HTMLRenderer,
3310
- ee as Header,
3311
- ce as InfoBlock,
3312
- ue as InterLinking,
3252
+ pe as Calculator,
3253
+ Fo as CalculatorView,
3254
+ me as DynamicForm,
3255
+ xe as DynamicFormDialog,
3256
+ li as FallbacksView,
3257
+ Qt as FieldMapper,
3258
+ re as Footer,
3259
+ ai as HTMLParser,
3260
+ it as HTMLRenderer,
3261
+ te as Header,
3262
+ fe as InfoBlock,
3263
+ le as InterLinking,
3313
3264
  Er as KEYS_OF_WIDGET_LIST,
3314
- ie as LongBanner,
3315
- pe as SeoHeader,
3316
- oe as Stepper,
3317
- me as UsefulInfo,
3318
- be as UserFeedback,
3319
- Pr as WIDGET_LIST_MAP,
3320
- Un as queryClient,
3265
+ oe as LongBanner,
3266
+ he as SeoHeader,
3267
+ ne as Stepper,
3268
+ ue as UsefulInfo,
3269
+ ge as UserFeedback,
3270
+ Br as WIDGET_LIST_MAP,
3271
+ An as queryClient,
3321
3272
  g as widgetIds
3322
3273
  };
3323
3274
  //# sourceMappingURL=widget.js.map