@scbt-ecom/ui 0.85.1 → 0.86.1

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