@scbt-ecom/ui 0.68.1 → 0.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/hooks.js +2 -2
  2. package/dist/{index-37evuXv8.js → index-Cskajs8e.js} +12945 -11994
  3. package/dist/index-Cskajs8e.js.map +1 -0
  4. package/dist/index-lfBvBrWg.js +436 -0
  5. package/dist/index-lfBvBrWg.js.map +1 -0
  6. package/dist/shared/ui/formElements/controlled/index.d.ts +1 -1
  7. package/dist/shared/ui/formElements/controlled/slider/SliderControl.d.ts +4 -3
  8. package/dist/shared/ui/formElements/uncontrolled/index.d.ts +3 -1
  9. package/dist/shared/ui/formElements/uncontrolled/slider/SliderBase.d.ts +4 -74
  10. package/dist/shared/ui/formElements/uncontrolled/slider/model/helpers/dates/getDayIntl.d.ts +1 -0
  11. package/dist/shared/ui/formElements/uncontrolled/slider/model/helpers/dates/index.d.ts +1 -0
  12. package/dist/shared/ui/formElements/uncontrolled/slider/model/helpers/getInputSliderSuffix.d.ts +2 -2
  13. package/dist/shared/ui/formElements/uncontrolled/slider/model/types.d.ts +103 -1
  14. package/dist/shared/ui/formElements/uncontrolled/slider/ui/Slider.d.ts +10 -13
  15. package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderAlgorithmic/SliderAlgorithmic.d.ts +6 -0
  16. package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderAlgorithmic/hooks/index.d.ts +1 -0
  17. package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderAlgorithmic/hooks/useSliderAlgorithmic.d.ts +18 -0
  18. package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderAlgorithmic/index.d.ts +1 -0
  19. package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderMarks/SliderMarks.d.ts +6 -0
  20. package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderMarks/hooks/index.d.ts +1 -0
  21. package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderMarks/hooks/useSliderMarks.d.ts +10 -0
  22. package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderMarks/index.d.ts +1 -0
  23. package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderStep/SliderStep.d.ts +7 -0
  24. package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderStep/hooks/index.d.ts +1 -0
  25. package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderStep/hooks/useSliderStep.d.ts +14 -0
  26. package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderStep/index.d.ts +1 -0
  27. package/dist/shared/utils/typeGuards.d.ts +1 -0
  28. package/dist/shared/validation/base/boolean.validators.d.ts +8 -1
  29. package/dist/shared/validation/base/date.validators.d.ts +5 -0
  30. package/dist/shared/validation/base/email.validators.d.ts +5 -0
  31. package/dist/shared/validation/base/number.validators.d.ts +5 -1
  32. package/dist/shared/validation/base/phone.validators.d.ts +5 -0
  33. package/dist/shared/validation/base/select.validators.d.ts +4 -0
  34. package/dist/shared/validation/base/string.validators.d.ts +4 -0
  35. package/dist/shared/validation/base/url.validators.d.ts +4 -0
  36. package/dist/{typeGuards-Bhdr9KYW.js → typeGuards-CSiImkUY.js} +34 -31
  37. package/dist/{typeGuards-Bhdr9KYW.js.map → typeGuards-CSiImkUY.js.map} +1 -1
  38. package/dist/ui.js +5 -5
  39. package/dist/{useDebounce-BZSs8EPD.js → useDebounce-MaKPBuaC.js} +282 -290
  40. package/dist/useDebounce-MaKPBuaC.js.map +1 -0
  41. package/dist/{useFieldsProgress-B_tgt_Hg.js → useFieldsProgress-CeEaFp3Q.js} +2 -2
  42. package/dist/{useFieldsProgress-B_tgt_Hg.js.map → useFieldsProgress-CeEaFp3Q.js.map} +1 -1
  43. package/dist/{utils-DaXd4sci.js → utils-k3uzuyeN.js} +6 -4
  44. package/dist/utils-k3uzuyeN.js.map +1 -0
  45. package/dist/utils.js +55 -12
  46. package/dist/utils.js.map +1 -1
  47. package/dist/validation.js +2 -2
  48. package/dist/widget.js +289 -285
  49. package/dist/widget.js.map +1 -1
  50. package/dist/widgets/buttonWithHandlers/ButtonWithHandlers.d.ts +1 -1
  51. package/dist/widgets/calculator/model/helpers.d.ts +2 -2
  52. package/dist/widgets/calculator/model/utils.d.ts +2 -0
  53. package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoBody.d.ts +2 -2
  54. package/dist/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoFooter.d.ts +7 -2
  55. package/dist/widgets/calculator/ui/calculatorInfo/ui/InfoListItem.d.ts +6 -4
  56. package/package.json +5 -5
  57. package/dist/index-37evuXv8.js.map +0 -1
  58. package/dist/index-cm9kMt4X.js +0 -435
  59. package/dist/index-cm9kMt4X.js.map +0 -1
  60. package/dist/shared/ui/formElements/uncontrolled/slider/model/useSlider.d.ts +0 -17
  61. package/dist/useDebounce-BZSs8EPD.js.map +0 -1
  62. package/dist/utils-DaXd4sci.js.map +0 -1
  63. package/dist/uuid-2wKG15vy.js +0 -25
  64. package/dist/uuid-2wKG15vy.js.map +0 -1
package/dist/widget.js CHANGED
@@ -3,9 +3,9 @@ var Oe = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
5
  var jt = (t, e, n) => e in t ? gt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
- var ae = (t, e, n) => jt(t, typeof e != "symbol" ? e + "" : e, n), ke = (t, e, n) => e.has(t) || Oe("Cannot " + n);
7
- var h = (t, e, n) => (ke(t, e, "read from private field"), n ? n.call(t) : e.get(t)), C = (t, e, n) => e.has(t) ? Oe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), y = (t, e, n, o) => (ke(t, e, "write to private field"), o ? o.call(t, n) : e.set(t, n), n), A = (t, e, n) => (ke(t, e, "access private method"), n);
8
- var ce = (t, e, n, o) => ({
6
+ var ae = (t, e, n) => jt(t, typeof e != "symbol" ? e + "" : e, n), se = (t, e, n) => e.has(t) || Oe("Cannot " + n);
7
+ var h = (t, e, n) => (se(t, e, "read from private field"), n ? n.call(t) : e.get(t)), C = (t, e, n) => e.has(t) ? Oe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), y = (t, e, n, o) => (se(t, e, "write to private field"), o ? o.call(t, n) : e.set(t, n), n), q = (t, e, n) => (se(t, e, "access private method"), n);
8
+ var pe = (t, e, n, o) => ({
9
9
  set _(i) {
10
10
  y(t, e, i, n);
11
11
  },
@@ -13,16 +13,16 @@ var ce = (t, e, n, o) => ({
13
13
  return h(t, e, o);
14
14
  }
15
15
  });
16
- import { S as Ze, x as Xe, Q as yt, y as M, z as Se, E as st, F as kt, G as Be, J as D, T as wt, W as vt, X as Nt, Y as Ct, Z as Re, _ as _e, $ as It, a0 as He, a1 as Pe, a2 as Tt, j as r, B as ue, c as E, R as S, n as Je, s as Mt, H, i as f, t as je, q as Ie, L as Et, o as Te, A as oe, v as Ft, a3 as Ot, r as St, U as Ye, a4 as Me, a5 as Bt, M as Rt } from "./index-37evuXv8.js";
17
- import { T as s, c as d } from "./typeGuards-Bhdr9KYW.js";
16
+ import { S as Ze, x as Xe, Q as yt, y as E, z as Se, E as st, F as kt, G as Be, J as D, T as wt, W as vt, X as Nt, Y as Ct, Z as Re, _ as _e, $ as It, a0 as He, a1 as Pe, a2 as Tt, j as r, B as Ce, c as F, R as S, n as Je, s as Mt, H, i as f, t as ge, q as Ie, L as Et, o as Te, A as oe, v as Ft, a3 as Ot, r as St, U as Ye, a4 as Me, a5 as Bt, M as Rt } from "./index-Cskajs8e.js";
17
+ import { T as s, c as d } from "./typeGuards-CSiImkUY.js";
18
18
  import * as le from "react";
19
- import { useCallback as Ge, useState as z, useMemo as ye, createElement as et, Fragment as _t, useEffect as tt, useRef as Ee, useReducer as Ht, memo as Fe, forwardRef as Pt } from "react";
20
- import { s as Dt, c as se, g as De, a as Lt } from "./uuid-2wKG15vy.js";
19
+ import { useCallback as Ge, useState as Q, useMemo as je, createElement as et, Fragment as _t, useEffect as tt, useRef as Ee, useReducer as Ht, memo as Fe, forwardRef as Pt } from "react";
20
+ import { scrollToElement as Dt, createPhoneNumber as ye, getUuid as De, capitalize as Lt } from "./utils.js";
21
21
  import { i as rt } from "./isClient-C9aZtt2Q.js";
22
- import { u as G, b as nt, a as zt, g as ot, F as Qt } from "./useDebounce-BZSs8EPD.js";
23
- import { o as Vt, z as At } from "./utils-DaXd4sci.js";
24
- import { z as it, Z as at } from "./index-cm9kMt4X.js";
25
- import { a as qt, u as Ut } from "./useFieldsProgress-B_tgt_Hg.js";
22
+ import { u as Y, b as nt, a as zt, g as ot, F as Qt } from "./useDebounce-MaKPBuaC.js";
23
+ import { o as Vt, z as At } from "./utils-k3uzuyeN.js";
24
+ import { z as it, Z as at } from "./index-lfBvBrWg.js";
25
+ import { a as qt, u as Ut } from "./useFieldsProgress-CeEaFp3Q.js";
26
26
  import { createPortal as dt } from "react-dom";
27
27
  var B, Ue, Wt = (Ue = class extends Ze {
28
28
  constructor(e = {}) {
@@ -53,7 +53,7 @@ var B, Ue, Wt = (Ue = class extends Ze {
53
53
  n && (e.destroy(), n === e && h(this, B).delete(e.queryHash), this.notify({ type: "removed", query: e }));
54
54
  }
55
55
  clear() {
56
- M.batch(() => {
56
+ E.batch(() => {
57
57
  this.getAll().forEach((e) => {
58
58
  this.remove(e);
59
59
  });
@@ -76,27 +76,27 @@ var B, Ue, Wt = (Ue = class extends Ze {
76
76
  return Object.keys(e).length > 0 ? n.filter((o) => Se(e, o)) : n;
77
77
  }
78
78
  notify(e) {
79
- M.batch(() => {
79
+ E.batch(() => {
80
80
  this.listeners.forEach((n) => {
81
81
  n(e);
82
82
  });
83
83
  });
84
84
  }
85
85
  onFocus() {
86
- M.batch(() => {
86
+ E.batch(() => {
87
87
  this.getAll().forEach((e) => {
88
88
  e.onFocus();
89
89
  });
90
90
  });
91
91
  }
92
92
  onOnline() {
93
- M.batch(() => {
93
+ E.batch(() => {
94
94
  this.getAll().forEach((e) => {
95
95
  e.onOnline();
96
96
  });
97
97
  });
98
98
  }
99
- }, B = new WeakMap(), Ue), R, T, J, _, q, We, Kt = (We = class extends st {
99
+ }, B = new WeakMap(), Ue), R, T, J, _, U, We, Kt = (We = class extends st {
100
100
  constructor(e) {
101
101
  super();
102
102
  C(this, _);
@@ -134,17 +134,17 @@ var B, Ue, Wt = (Ue = class extends Ze {
134
134
  this.execute(this.state.variables);
135
135
  }
136
136
  async execute(e) {
137
- var a, l, u, m, x, p, c, b, w, v, I, P, $, Q, N, F, V, Z, he, ie;
137
+ var a, l, u, m, x, p, c, g, k, v, I, P, G, V, N, M, A, Z, xe, ie;
138
138
  const n = () => {
139
- A(this, _, q).call(this, { type: "continue" });
139
+ q(this, _, U).call(this, { type: "continue" });
140
140
  };
141
141
  y(this, J, kt({
142
142
  fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
143
- onFail: (k, pe) => {
144
- A(this, _, q).call(this, { type: "failed", failureCount: k, error: pe });
143
+ onFail: (w, he) => {
144
+ q(this, _, U).call(this, { type: "failed", failureCount: w, error: he });
145
145
  },
146
146
  onPause: () => {
147
- A(this, _, q).call(this, { type: "pause" });
147
+ q(this, _, U).call(this, { type: "pause" });
148
148
  },
149
149
  onContinue: n,
150
150
  retry: this.options.retry ?? 0,
@@ -157,69 +157,69 @@ var B, Ue, Wt = (Ue = class extends Ze {
157
157
  if (o)
158
158
  n();
159
159
  else {
160
- A(this, _, q).call(this, { type: "pending", variables: e, isPaused: i }), await ((l = (a = h(this, T).config).onMutate) == null ? void 0 : l.call(
160
+ q(this, _, U).call(this, { type: "pending", variables: e, isPaused: i }), await ((l = (a = h(this, T).config).onMutate) == null ? void 0 : l.call(
161
161
  a,
162
162
  e,
163
163
  this
164
164
  ));
165
- const pe = await ((m = (u = this.options).onMutate) == null ? void 0 : m.call(u, e));
166
- pe !== this.state.context && A(this, _, q).call(this, {
165
+ const he = await ((m = (u = this.options).onMutate) == null ? void 0 : m.call(u, e));
166
+ he !== this.state.context && q(this, _, U).call(this, {
167
167
  type: "pending",
168
- context: pe,
168
+ context: he,
169
169
  variables: e,
170
170
  isPaused: i
171
171
  });
172
172
  }
173
- const k = await h(this, J).start();
173
+ const w = await h(this, J).start();
174
174
  return await ((p = (x = h(this, T).config).onSuccess) == null ? void 0 : p.call(
175
175
  x,
176
- k,
176
+ w,
177
177
  e,
178
178
  this.state.context,
179
179
  this
180
- )), await ((b = (c = this.options).onSuccess) == null ? void 0 : b.call(c, k, e, this.state.context)), await ((v = (w = h(this, T).config).onSettled) == null ? void 0 : v.call(
181
- w,
180
+ )), await ((g = (c = this.options).onSuccess) == null ? void 0 : g.call(c, w, e, this.state.context)), await ((v = (k = h(this, T).config).onSettled) == null ? void 0 : v.call(
182
181
  k,
182
+ w,
183
183
  null,
184
184
  this.state.variables,
185
185
  this.state.context,
186
186
  this
187
- )), await ((P = (I = this.options).onSettled) == null ? void 0 : P.call(I, k, null, e, this.state.context)), A(this, _, q).call(this, { type: "success", data: k }), k;
188
- } catch (k) {
187
+ )), await ((P = (I = this.options).onSettled) == null ? void 0 : P.call(I, w, null, e, this.state.context)), q(this, _, U).call(this, { type: "success", data: w }), w;
188
+ } catch (w) {
189
189
  try {
190
- throw await ((Q = ($ = h(this, T).config).onError) == null ? void 0 : Q.call(
191
- $,
192
- k,
190
+ throw await ((V = (G = h(this, T).config).onError) == null ? void 0 : V.call(
191
+ G,
192
+ w,
193
193
  e,
194
194
  this.state.context,
195
195
  this
196
- )), await ((F = (N = this.options).onError) == null ? void 0 : F.call(
196
+ )), await ((M = (N = this.options).onError) == null ? void 0 : M.call(
197
197
  N,
198
- k,
198
+ w,
199
199
  e,
200
200
  this.state.context
201
- )), await ((Z = (V = h(this, T).config).onSettled) == null ? void 0 : Z.call(
202
- V,
201
+ )), await ((Z = (A = h(this, T).config).onSettled) == null ? void 0 : Z.call(
202
+ A,
203
203
  void 0,
204
- k,
204
+ w,
205
205
  this.state.variables,
206
206
  this.state.context,
207
207
  this
208
- )), await ((ie = (he = this.options).onSettled) == null ? void 0 : ie.call(
209
- he,
208
+ )), await ((ie = (xe = this.options).onSettled) == null ? void 0 : ie.call(
209
+ xe,
210
210
  void 0,
211
- k,
211
+ w,
212
212
  e,
213
213
  this.state.context
214
- )), k;
214
+ )), w;
215
215
  } finally {
216
- A(this, _, q).call(this, { type: "error", error: k });
216
+ q(this, _, U).call(this, { type: "error", error: w });
217
217
  }
218
218
  } finally {
219
219
  h(this, T).runNext(this);
220
220
  }
221
221
  }
222
- }, R = new WeakMap(), T = new WeakMap(), J = new WeakMap(), _ = new WeakSet(), q = function(e) {
222
+ }, R = new WeakMap(), T = new WeakMap(), J = new WeakMap(), _ = new WeakSet(), U = function(e) {
223
223
  const n = (o) => {
224
224
  switch (e.type) {
225
225
  case "failed":
@@ -273,7 +273,7 @@ var B, Ue, Wt = (Ue = class extends Ze {
273
273
  };
274
274
  }
275
275
  };
276
- this.state = n(this.state), M.batch(() => {
276
+ this.state = n(this.state), E.batch(() => {
277
277
  h(this, R).forEach((o) => {
278
278
  o.onMutationUpdate(e);
279
279
  }), h(this, T).notify({
@@ -296,18 +296,18 @@ function $t() {
296
296
  submittedAt: 0
297
297
  };
298
298
  }
299
- var L, O, xe, Ke, Zt = (Ke = class extends Ze {
299
+ var L, O, me, Ke, Zt = (Ke = class extends Ze {
300
300
  constructor(e = {}) {
301
301
  super();
302
302
  C(this, L);
303
303
  C(this, O);
304
- C(this, xe);
305
- this.config = e, y(this, L, /* @__PURE__ */ new Set()), y(this, O, /* @__PURE__ */ new Map()), y(this, xe, 0);
304
+ C(this, me);
305
+ this.config = e, y(this, L, /* @__PURE__ */ new Set()), y(this, O, /* @__PURE__ */ new Map()), y(this, me, 0);
306
306
  }
307
307
  build(e, n, o) {
308
308
  const i = new Kt({
309
309
  mutationCache: this,
310
- mutationId: ++ce(this, xe)._,
310
+ mutationId: ++pe(this, me)._,
311
311
  options: e.defaultMutationOptions(n),
312
312
  state: o
313
313
  });
@@ -315,7 +315,7 @@ var L, O, xe, Ke, Zt = (Ke = class extends Ze {
315
315
  }
316
316
  add(e) {
317
317
  h(this, L).add(e);
318
- const n = fe(e);
318
+ const n = ce(e);
319
319
  if (typeof n == "string") {
320
320
  const o = h(this, O).get(n);
321
321
  o ? o.push(e) : h(this, O).set(n, [e]);
@@ -324,7 +324,7 @@ var L, O, xe, Ke, Zt = (Ke = class extends Ze {
324
324
  }
325
325
  remove(e) {
326
326
  if (h(this, L).delete(e)) {
327
- const n = fe(e);
327
+ const n = ce(e);
328
328
  if (typeof n == "string") {
329
329
  const o = h(this, O).get(n);
330
330
  if (o)
@@ -337,7 +337,7 @@ var L, O, xe, Ke, Zt = (Ke = class extends Ze {
337
337
  this.notify({ type: "removed", mutation: e });
338
338
  }
339
339
  canRun(e) {
340
- const n = fe(e);
340
+ const n = ce(e);
341
341
  if (typeof n == "string") {
342
342
  const o = h(this, O).get(n), i = o == null ? void 0 : o.find(
343
343
  (a) => a.state.status === "pending"
@@ -348,7 +348,7 @@ var L, O, xe, Ke, Zt = (Ke = class extends Ze {
348
348
  }
349
349
  runNext(e) {
350
350
  var o;
351
- const n = fe(e);
351
+ const n = ce(e);
352
352
  if (typeof n == "string") {
353
353
  const i = (o = h(this, O).get(n)) == null ? void 0 : o.find((a) => a !== e && a.state.isPaused);
354
354
  return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
@@ -356,7 +356,7 @@ var L, O, xe, Ke, Zt = (Ke = class extends Ze {
356
356
  return Promise.resolve();
357
357
  }
358
358
  clear() {
359
- M.batch(() => {
359
+ E.batch(() => {
360
360
  h(this, L).forEach((e) => {
361
361
  this.notify({ type: "removed", mutation: e });
362
362
  }), h(this, L).clear(), h(this, O).clear();
@@ -375,7 +375,7 @@ var L, O, xe, Ke, Zt = (Ke = class extends Ze {
375
375
  return this.getAll().filter((n) => Be(e, n));
376
376
  }
377
377
  notify(e) {
378
- M.batch(() => {
378
+ E.batch(() => {
379
379
  this.listeners.forEach((n) => {
380
380
  n(e);
381
381
  });
@@ -383,22 +383,22 @@ var L, O, xe, Ke, Zt = (Ke = class extends Ze {
383
383
  }
384
384
  resumePausedMutations() {
385
385
  const e = this.getAll().filter((n) => n.state.isPaused);
386
- return M.batch(
386
+ return E.batch(
387
387
  () => Promise.all(
388
388
  e.map((n) => n.continue().catch(D))
389
389
  )
390
390
  );
391
391
  }
392
- }, L = new WeakMap(), O = new WeakMap(), xe = new WeakMap(), Ke);
393
- function fe(t) {
392
+ }, L = new WeakMap(), O = new WeakMap(), me = new WeakMap(), Ke);
393
+ function ce(t) {
394
394
  var e;
395
395
  return (e = t.options.scope) == null ? void 0 : e.id;
396
396
  }
397
397
  function Le(t) {
398
398
  return {
399
399
  onFetch: (e, n) => {
400
- var p, c, b, w, v;
401
- const o = e.options, i = (b = (c = (p = e.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : b.direction, a = ((w = e.state.data) == null ? void 0 : w.pages) || [], l = ((v = e.state.data) == null ? void 0 : v.pageParams) || [];
400
+ var p, c, g, k, v;
401
+ const o = e.options, i = (g = (c = (p = e.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : g.direction, a = ((k = e.state.data) == null ? void 0 : k.pages) || [], l = ((v = e.state.data) == null ? void 0 : v.pageParams) || [];
402
402
  let u = { pages: [], pageParams: [] }, m = 0;
403
403
  const x = async () => {
404
404
  let I = !1;
@@ -409,40 +409,40 @@ function Le(t) {
409
409
  I = !0;
410
410
  }), e.signal)
411
411
  });
412
- }, $ = wt(e.options, e.fetchOptions), Q = async (N, F, V) => {
412
+ }, G = wt(e.options, e.fetchOptions), V = async (N, M, A) => {
413
413
  if (I)
414
414
  return Promise.reject();
415
- if (F == null && N.pages.length)
415
+ if (M == null && N.pages.length)
416
416
  return Promise.resolve(N);
417
417
  const Z = {
418
418
  client: e.client,
419
419
  queryKey: e.queryKey,
420
- pageParam: F,
421
- direction: V ? "backward" : "forward",
420
+ pageParam: M,
421
+ direction: A ? "backward" : "forward",
422
422
  meta: e.options.meta
423
423
  };
424
424
  P(Z);
425
- const he = await $(
425
+ const xe = await G(
426
426
  Z
427
- ), { maxPages: ie } = e.options, k = V ? vt : Nt;
427
+ ), { maxPages: ie } = e.options, w = A ? vt : Nt;
428
428
  return {
429
- pages: k(N.pages, he, ie),
430
- pageParams: k(N.pageParams, F, ie)
429
+ pages: w(N.pages, xe, ie),
430
+ pageParams: w(N.pageParams, M, ie)
431
431
  };
432
432
  };
433
433
  if (i && a.length) {
434
- const N = i === "backward", F = N ? Xt : ze, V = {
434
+ const N = i === "backward", M = N ? Xt : ze, A = {
435
435
  pages: a,
436
436
  pageParams: l
437
- }, Z = F(o, V);
438
- u = await Q(V, Z, N);
437
+ }, Z = M(o, A);
438
+ u = await V(A, Z, N);
439
439
  } else {
440
440
  const N = t ?? a.length;
441
441
  do {
442
- const F = m === 0 ? l[0] ?? o.initialPageParam : ze(o, u);
443
- if (m > 0 && F == null)
442
+ const M = m === 0 ? l[0] ?? o.initialPageParam : ze(o, u);
443
+ if (m > 0 && M == null)
444
444
  break;
445
- u = await Q(u, F), m++;
445
+ u = await V(u, M), m++;
446
446
  } while (m < N);
447
447
  }
448
448
  return u;
@@ -477,20 +477,20 @@ function Xt(t, { pages: e, pageParams: n }) {
477
477
  var o;
478
478
  return e.length > 0 ? (o = t.getPreviousPageParam) == null ? void 0 : o.call(t, e[0], e, n[0], n) : void 0;
479
479
  }
480
- var j, U, W, ee, te, K, re, ne, $e, Jt = ($e = class {
480
+ var j, W, K, ee, te, $, re, ne, $e, Jt = ($e = class {
481
481
  constructor(t = {}) {
482
482
  C(this, j);
483
- C(this, U);
484
483
  C(this, W);
484
+ C(this, K);
485
485
  C(this, ee);
486
486
  C(this, te);
487
- C(this, K);
487
+ C(this, $);
488
488
  C(this, re);
489
489
  C(this, ne);
490
- y(this, j, t.queryCache || new Wt()), y(this, U, t.mutationCache || new Zt()), y(this, W, t.defaultOptions || {}), y(this, ee, /* @__PURE__ */ new Map()), y(this, te, /* @__PURE__ */ new Map()), y(this, K, 0);
490
+ y(this, j, t.queryCache || new Wt()), y(this, W, t.mutationCache || new Zt()), y(this, K, t.defaultOptions || {}), y(this, ee, /* @__PURE__ */ new Map()), y(this, te, /* @__PURE__ */ new Map()), y(this, $, 0);
491
491
  }
492
492
  mount() {
493
- ce(this, K)._++, h(this, K) === 1 && (y(this, re, Ct.subscribe(async (t) => {
493
+ pe(this, $)._++, h(this, $) === 1 && (y(this, re, Ct.subscribe(async (t) => {
494
494
  t && (await this.resumePausedMutations(), h(this, j).onFocus());
495
495
  })), y(this, ne, Re.subscribe(async (t) => {
496
496
  t && (await this.resumePausedMutations(), h(this, j).onOnline());
@@ -498,13 +498,13 @@ var j, U, W, ee, te, K, re, ne, $e, Jt = ($e = class {
498
498
  }
499
499
  unmount() {
500
500
  var t, e;
501
- ce(this, K)._--, h(this, K) === 0 && ((t = h(this, re)) == null || t.call(this), y(this, re, void 0), (e = h(this, ne)) == null || e.call(this), y(this, ne, void 0));
501
+ pe(this, $)._--, h(this, $) === 0 && ((t = h(this, re)) == null || t.call(this), y(this, re, void 0), (e = h(this, ne)) == null || e.call(this), y(this, ne, void 0));
502
502
  }
503
503
  isFetching(t) {
504
504
  return h(this, j).findAll({ ...t, fetchStatus: "fetching" }).length;
505
505
  }
506
506
  isMutating(t) {
507
- return h(this, U).findAll({ ...t, status: "pending" }).length;
507
+ return h(this, W).findAll({ ...t, status: "pending" }).length;
508
508
  }
509
509
  /**
510
510
  * Imperative (non-reactive) way to retrieve data for a QueryKey.
@@ -536,7 +536,7 @@ var j, U, W, ee, te, K, re, ne, $e, Jt = ($e = class {
536
536
  return h(this, j).build(this, o).setData(l, { ...n, manual: !0 });
537
537
  }
538
538
  setQueriesData(t, e, n) {
539
- return M.batch(
539
+ return E.batch(
540
540
  () => h(this, j).findAll(t).map(({ queryKey: o }) => [
541
541
  o,
542
542
  this.setQueryData(o, e, n)
@@ -552,7 +552,7 @@ var j, U, W, ee, te, K, re, ne, $e, Jt = ($e = class {
552
552
  }
553
553
  removeQueries(t) {
554
554
  const e = h(this, j);
555
- M.batch(() => {
555
+ E.batch(() => {
556
556
  e.findAll(t).forEach((n) => {
557
557
  e.remove(n);
558
558
  });
@@ -560,7 +560,7 @@ var j, U, W, ee, te, K, re, ne, $e, Jt = ($e = class {
560
560
  }
561
561
  resetQueries(t, e) {
562
562
  const n = h(this, j);
563
- return M.batch(() => (n.findAll(t).forEach((o) => {
563
+ return E.batch(() => (n.findAll(t).forEach((o) => {
564
564
  o.reset();
565
565
  }), this.refetchQueries(
566
566
  {
@@ -571,13 +571,13 @@ var j, U, W, ee, te, K, re, ne, $e, Jt = ($e = class {
571
571
  )));
572
572
  }
573
573
  cancelQueries(t, e = {}) {
574
- const n = { revert: !0, ...e }, o = M.batch(
574
+ const n = { revert: !0, ...e }, o = E.batch(
575
575
  () => h(this, j).findAll(t).map((i) => i.cancel(n))
576
576
  );
577
577
  return Promise.all(o).then(D).catch(D);
578
578
  }
579
579
  invalidateQueries(t, e = {}) {
580
- return M.batch(() => (h(this, j).findAll(t).forEach((n) => {
580
+ return E.batch(() => (h(this, j).findAll(t).forEach((n) => {
581
581
  n.invalidate();
582
582
  }), (t == null ? void 0 : t.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
583
583
  {
@@ -591,7 +591,7 @@ var j, U, W, ee, te, K, re, ne, $e, Jt = ($e = class {
591
591
  const n = {
592
592
  ...e,
593
593
  cancelRefetch: e.cancelRefetch ?? !0
594
- }, o = M.batch(
594
+ }, o = E.batch(
595
595
  () => h(this, j).findAll(t).filter((i) => !i.isDisabled()).map((i) => {
596
596
  let a = i.fetch(void 0, n);
597
597
  return n.throwOnError || (a = a.catch(D)), i.state.fetchStatus === "paused" ? Promise.resolve() : a;
@@ -620,19 +620,19 @@ var j, U, W, ee, te, K, re, ne, $e, Jt = ($e = class {
620
620
  return t.behavior = Le(t.pages), this.ensureQueryData(t);
621
621
  }
622
622
  resumePausedMutations() {
623
- return Re.isOnline() ? h(this, U).resumePausedMutations() : Promise.resolve();
623
+ return Re.isOnline() ? h(this, W).resumePausedMutations() : Promise.resolve();
624
624
  }
625
625
  getQueryCache() {
626
626
  return h(this, j);
627
627
  }
628
628
  getMutationCache() {
629
- return h(this, U);
629
+ return h(this, W);
630
630
  }
631
631
  getDefaultOptions() {
632
- return h(this, W);
632
+ return h(this, K);
633
633
  }
634
634
  setDefaultOptions(t) {
635
- y(this, W, t);
635
+ y(this, K, t);
636
636
  }
637
637
  setQueryDefaults(t, e) {
638
638
  h(this, ee).set(He(t), {
@@ -662,7 +662,7 @@ var j, U, W, ee, te, K, re, ne, $e, Jt = ($e = class {
662
662
  if (t._defaulted)
663
663
  return t;
664
664
  const e = {
665
- ...h(this, W).queries,
665
+ ...h(this, K).queries,
666
666
  ...this.getQueryDefaults(t.queryKey),
667
667
  ...t,
668
668
  _defaulted: !0
@@ -674,16 +674,16 @@ var j, U, W, ee, te, K, re, ne, $e, Jt = ($e = class {
674
674
  }
675
675
  defaultMutationOptions(t) {
676
676
  return t != null && t._defaulted ? t : {
677
- ...h(this, W).mutations,
677
+ ...h(this, K).mutations,
678
678
  ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
679
679
  ...t,
680
680
  _defaulted: !0
681
681
  };
682
682
  }
683
683
  clear() {
684
- h(this, j).clear(), h(this, U).clear();
684
+ h(this, j).clear(), h(this, W).clear();
685
685
  }
686
- }, j = new WeakMap(), U = new WeakMap(), W = new WeakMap(), ee = new WeakMap(), te = new WeakMap(), K = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), $e);
686
+ }, j = new WeakMap(), W = new WeakMap(), K = new WeakMap(), ee = new WeakMap(), te = new WeakMap(), $ = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), $e);
687
687
  const Yt = [
688
688
  "header",
689
689
  "footer",
@@ -696,7 +696,7 @@ const Yt = [
696
696
  "form",
697
697
  "seoHeader",
698
698
  "calculator"
699
- ], g = Yt.reduce(
699
+ ], b = Yt.reduce(
700
700
  (t, e) => (t[e] = e, t),
701
701
  {}
702
702
  ), Gt = ["getFioSchema"], lt = (t, e, n) => {
@@ -731,10 +731,10 @@ const Yt = [
731
731
  break;
732
732
  }
733
733
  }
734
- }, [t]), Y = ({ handlerOptions: t, ...e }) => {
735
- const n = rr(t);
736
- return /* @__PURE__ */ r.jsx(ue, { onClick: n, ...e, children: e.children });
737
- }, nr = E(
734
+ }, [t]), z = ({ handlerOptions: t, className: e, ...n }) => {
735
+ const o = rr(t);
736
+ return /* @__PURE__ */ r.jsx(Ce, { className: d(e), onClick: o, ...n, children: n.children });
737
+ }, nr = F(
738
738
  "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",
739
739
  {
740
740
  variants: {
@@ -756,7 +756,7 @@ const Yt = [
756
756
  variant: u,
757
757
  color: m
758
758
  }) => {
759
- const { isDesktop: x } = G();
759
+ const { isDesktop: x } = Y();
760
760
  return /* @__PURE__ */ r.jsxs(
761
761
  "li",
762
762
  {
@@ -774,14 +774,14 @@ const Yt = [
774
774
  }
775
775
  )
776
776
  ] }),
777
- a && x && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ r.jsx(Y, { intent: "primary", className: d("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...l })
777
+ a && x && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ r.jsx(z, { intent: "primary", className: d("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...l })
778
778
  ] }),
779
779
  (o || x) && n && /* @__PURE__ */ r.jsx("div", { className: d("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: n && "url" in n && s.isObject(n) ? /* @__PURE__ */ r.jsx("img", { className: d("h-[246px] object-cover", i == null ? void 0 : i.img), src: n.url, alt: n.alt }) : n })
780
780
  ]
781
781
  },
782
782
  e
783
783
  );
784
- }, ir = E("grid gap-4", {
784
+ }, ir = F("grid gap-4", {
785
785
  variants: {
786
786
  variant: {
787
787
  twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
@@ -789,7 +789,7 @@ const Yt = [
789
789
  fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
790
790
  }
791
791
  }
792
- }), Wn = ({ headline: t, details: e, variant: n, classes: o }) => /* @__PURE__ */ r.jsx("section", { id: g.benefit, "data-test-id": g.benefit, className: d("pb-20", o == null ? void 0 : o.root), children: /* @__PURE__ */ r.jsxs(S, { className: o == null ? void 0 : o.container, children: [
792
+ }), Kn = ({ headline: t, details: e, variant: n, classes: o }) => /* @__PURE__ */ r.jsx("section", { id: b.benefit, "data-test-id": b.benefit, className: d("pb-20", o == null ? void 0 : o.root), children: /* @__PURE__ */ r.jsxs(S, { className: o == null ? void 0 : o.container, children: [
793
793
  /* @__PURE__ */ r.jsx(
794
794
  "div",
795
795
  {
@@ -801,19 +801,19 @@ const Yt = [
801
801
  ] }) }), ar = ({ variant: t, details: e }) => {
802
802
  switch (t) {
803
803
  case "withButton":
804
- return /* @__PURE__ */ r.jsx(Y, { ...e });
804
+ return /* @__PURE__ */ r.jsx(z, { ...e });
805
805
  case "withPhone":
806
- return /* @__PURE__ */ r.jsx(Je, { classes: { root: "items-end" }, ...e, phone: se(e.phone) });
806
+ return /* @__PURE__ */ r.jsx(Je, { classes: { root: "items-end" }, ...e, phone: ye(e.phone) });
807
807
  default:
808
808
  return null;
809
809
  }
810
- }, Kn = (t) => {
810
+ }, $n = (t) => {
811
811
  const { logoPath: e = "/", logoType: n = "main", classes: o } = t;
812
812
  return /* @__PURE__ */ r.jsx(
813
813
  "header",
814
814
  {
815
- id: g.header,
816
- "data-test-id": g.header,
815
+ id: b.header,
816
+ "data-test-id": b.header,
817
817
  className: d("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", o == null ? void 0 : o.header),
818
818
  children: /* @__PURE__ */ r.jsx(S, { className: d(o == null ? void 0 : o.container), children: /* @__PURE__ */ r.jsxs("div", { className: d("flex items-center justify-between gap-5", o == null ? void 0 : o.wrapper), children: [
819
819
  /* @__PURE__ */ r.jsx(
@@ -845,26 +845,26 @@ const Yt = [
845
845
  color: u
846
846
  }) => {
847
847
  var I;
848
- const { isDesktop: m, isMobile: x } = G(), { primary: p, secondary: c } = n || {}, b = a && "url" in a && s.isObject(a) ? /* @__PURE__ */ r.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: a.url }) : a, w = l && "url" in l && s.isObject(l) ? /* @__PURE__ */ r.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: l.url }) : l, v = /* @__PURE__ */ r.jsx(
848
+ const { isDesktop: m, isMobile: x } = Y(), { primary: p, secondary: c } = n || {}, g = a && "url" in a && s.isObject(a) ? /* @__PURE__ */ r.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: a.url }) : a, k = l && "url" in l && s.isObject(l) ? /* @__PURE__ */ r.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: l.url }) : l, v = /* @__PURE__ */ r.jsx(
849
849
  "div",
850
850
  {
851
851
  className: d(
852
852
  "flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
853
853
  i == null ? void 0 : i.advantageContainer
854
854
  ),
855
- children: (o == null ? void 0 : o.details) && ((I = o == null ? void 0 : o.details) == null ? void 0 : I.items.length) > 0 && /* @__PURE__ */ r.jsx(Ne, { ...o })
855
+ children: (o == null ? void 0 : o.details) && ((I = o == null ? void 0 : o.details) == null ? void 0 : I.items.length) > 0 && /* @__PURE__ */ r.jsx(ve, { ...o })
856
856
  }
857
857
  );
858
858
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
859
859
  /* @__PURE__ */ r.jsxs(
860
860
  "section",
861
861
  {
862
- id: g.banner,
863
- "data-test-id": g.banner,
862
+ id: b.banner,
863
+ "data-test-id": b.banner,
864
864
  style: { backgroundColor: u ?? "#d9edff" },
865
865
  className: d("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
866
866
  children: [
867
- /* @__PURE__ */ r.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: x ? b : w }),
867
+ /* @__PURE__ */ r.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: x ? g : k }),
868
868
  /* @__PURE__ */ r.jsxs(S, { className: d("h-full", i == null ? void 0 : i.container), children: [
869
869
  /* @__PURE__ */ r.jsx("div", { className: d("flex h-full", i == null ? void 0 : i.wrapper), children: /* @__PURE__ */ r.jsxs("div", { className: d("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", i == null ? void 0 : i.textBlock), children: [
870
870
  /* @__PURE__ */ r.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
@@ -893,7 +893,7 @@ const Yt = [
893
893
  ),
894
894
  children: [
895
895
  p.enabled && /* @__PURE__ */ r.jsx(
896
- Y,
896
+ z,
897
897
  {
898
898
  className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
899
899
  size: "lg",
@@ -902,7 +902,7 @@ const Yt = [
902
902
  }
903
903
  ),
904
904
  (c == null ? void 0 : c.enabled) && /* @__PURE__ */ r.jsx(
905
- Y,
905
+ z,
906
906
  {
907
907
  intent: "secondary",
908
908
  className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
@@ -930,14 +930,14 @@ const Yt = [
930
930
  imgDesktop: l,
931
931
  color: u
932
932
  }) => {
933
- var w, v;
934
- const { isMobile: m } = G(), { primary: x, secondary: p } = n || {}, c = a && "url" in a && s.isObject(a) ? /* @__PURE__ */ r.jsx("img", { className: "w-full object-contain", alt: a.alt, src: a.url }) : a, b = l && "url" in l && s.isObject(l) ? /* @__PURE__ */ r.jsx("img", { className: "w-full object-contain", alt: l.alt, src: l.url }) : l;
933
+ var k, v;
934
+ const { isMobile: m } = Y(), { primary: x, secondary: p } = n || {}, c = a && "url" in a && s.isObject(a) ? /* @__PURE__ */ r.jsx("img", { className: "w-full object-contain", alt: a.alt, src: a.url }) : a, g = l && "url" in l && s.isObject(l) ? /* @__PURE__ */ r.jsx("img", { className: "w-full object-contain", alt: l.alt, src: l.url }) : l;
935
935
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
936
936
  /* @__PURE__ */ r.jsx(
937
937
  "section",
938
938
  {
939
- id: g.banner,
940
- "data-test-id": g.banner,
939
+ id: b.banner,
940
+ "data-test-id": b.banner,
941
941
  style: { backgroundColor: u ?? "#d9edff" },
942
942
  className: d("bg-banner-skyblue-300 desktop:h-[456px]", i == null ? void 0 : i.root),
943
943
  children: /* @__PURE__ */ r.jsxs(S, { className: d("relative", i == null ? void 0 : i.container), children: [
@@ -969,7 +969,7 @@ const Yt = [
969
969
  ),
970
970
  children: [
971
971
  x.enabled && /* @__PURE__ */ r.jsx(
972
- Y,
972
+ z,
973
973
  {
974
974
  className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
975
975
  size: "lg",
@@ -978,7 +978,7 @@ const Yt = [
978
978
  }
979
979
  ),
980
980
  (p == null ? void 0 : p.enabled) && /* @__PURE__ */ r.jsx(
981
- Y,
981
+ z,
982
982
  {
983
983
  intent: "secondary",
984
984
  className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
@@ -996,7 +996,7 @@ const Yt = [
996
996
  "relative flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]",
997
997
  i == null ? void 0 : i.imageContainer
998
998
  ),
999
- children: m ? c : b
999
+ children: m ? c : g
1000
1000
  }
1001
1001
  )
1002
1002
  ] }),
@@ -1007,7 +1007,7 @@ const Yt = [
1007
1007
  "items-center justify-center rounded-md bg-color-blue-grey-100 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",
1008
1008
  i == null ? void 0 : i.advantageContainer
1009
1009
  ),
1010
- children: (o == null ? void 0 : o.details) && ((w = o == null ? void 0 : o.details) == null ? void 0 : w.items.length) > 0 && /* @__PURE__ */ r.jsx(Ne, { ...o })
1010
+ children: (o == null ? void 0 : o.details) && ((k = o == null ? void 0 : o.details) == null ? void 0 : k.items.length) > 0 && /* @__PURE__ */ r.jsx(ve, { ...o })
1011
1011
  }
1012
1012
  )
1013
1013
  ] })
@@ -1020,11 +1020,11 @@ const Yt = [
1020
1020
  "flex items-center justify-center rounded-md bg-color-blue-grey-100 p-4 pb-8 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:hidden desktop:translate-x-1/2 desktop:p-0",
1021
1021
  i == null ? void 0 : i.advantageContainer
1022
1022
  ),
1023
- children: (o == null ? void 0 : o.details) && ((v = o == null ? void 0 : o.details) == null ? void 0 : v.items.length) > 0 && /* @__PURE__ */ r.jsx(Ne, { ...o })
1023
+ children: (o == null ? void 0 : o.details) && ((v = o == null ? void 0 : o.details) == null ? void 0 : v.items.length) > 0 && /* @__PURE__ */ r.jsx(ve, { ...o })
1024
1024
  }
1025
1025
  )
1026
1026
  ] });
1027
- }, $n = ({ variant: t, ...e }) => {
1027
+ }, Zn = ({ variant: t, ...e }) => {
1028
1028
  switch (t) {
1029
1029
  case "separateImg":
1030
1030
  return /* @__PURE__ */ r.jsx(Qe, { ...e });
@@ -1033,7 +1033,7 @@ const Yt = [
1033
1033
  default:
1034
1034
  return /* @__PURE__ */ r.jsx(Qe, { ...e });
1035
1035
  }
1036
- }, Ne = ({ details: t, classes: e }) => {
1036
+ }, ve = ({ details: t, classes: e }) => {
1037
1037
  const { variant: n, items: o } = t ?? {};
1038
1038
  return /* @__PURE__ */ r.jsx(
1039
1039
  "div",
@@ -1073,7 +1073,7 @@ const Yt = [
1073
1073
  )) }), ur = ({ phones: t, classes: e }) => /* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-4 desktop:items-end", e == null ? void 0 : e.phonesRoot), children: t == null ? void 0 : t.map(({ phone: n, text: o }) => /* @__PURE__ */ r.jsx(
1074
1074
  Je,
1075
1075
  {
1076
- phone: se(n),
1076
+ phone: ye(n),
1077
1077
  text: o,
1078
1078
  classes: {
1079
1079
  root: d(e == null ? void 0 : e.phoneWrapper),
@@ -1093,7 +1093,7 @@ const Yt = [
1093
1093
  ({ column: n }) => n == null ? void 0 : n.map(({ groupLabel: o, links: i }) => /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col gap-4", t == null ? void 0 : t.navGroup), children: [
1094
1094
  /* @__PURE__ */ r.jsx("div", { className: d("desk-body-medium-l text-color-white", t == null ? void 0 : t.navLabel), children: o }),
1095
1095
  /* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-1", t == null ? void 0 : t.navLinks), children: i == null ? void 0 : i.map(({ path: a, label: l }) => /* @__PURE__ */ r.jsx(
1096
- je,
1096
+ ge,
1097
1097
  {
1098
1098
  href: a,
1099
1099
  "aria-label": l,
@@ -1124,7 +1124,7 @@ const Yt = [
1124
1124
  children: /* @__PURE__ */ r.jsx(f, { name: "brandLogos/logoWhite", className: d("size-full", t == null ? void 0 : t.footerLogoIcon) })
1125
1125
  }
1126
1126
  ), pr = ({ classes: t }) => /* @__PURE__ */ r.jsx(
1127
- je,
1127
+ ge,
1128
1128
  {
1129
1129
  intent: "white",
1130
1130
  href: "https://sovcombank.ru/site-map",
@@ -1165,7 +1165,7 @@ const Yt = [
1165
1165
  }
1166
1166
  )
1167
1167
  ] });
1168
- }, Zn = ({
1168
+ }, Xn = ({
1169
1169
  socialsLinks: t,
1170
1170
  phones: e,
1171
1171
  ligal: n,
@@ -1176,8 +1176,8 @@ const Yt = [
1176
1176
  }) => /* @__PURE__ */ r.jsx(
1177
1177
  "footer",
1178
1178
  {
1179
- id: g.footer,
1180
- "data-test-id": g.footer,
1179
+ id: b.footer,
1180
+ "data-test-id": b.footer,
1181
1181
  className: d("w-full bg-color-footer py-8 desktop:py-10", i == null ? void 0 : i.root),
1182
1182
  children: /* @__PURE__ */ r.jsx(S, { className: d(i == null ? void 0 : i.footerContainer), children: /* @__PURE__ */ r.jsxs("div", { className: d("mobile:pb-[176px]", i == null ? void 0 : i.footerWrapper), children: [
1183
1183
  /* @__PURE__ */ r.jsxs(
@@ -1252,7 +1252,7 @@ const Yt = [
1252
1252
  ]
1253
1253
  }
1254
1254
  );
1255
- }, Xn = ({ headline: t, details: e, variant: n, classes: o }) => /* @__PURE__ */ r.jsx("section", { id: g.stepper, "data-test-id": g.stepper, className: o == null ? void 0 : o.root, children: /* @__PURE__ */ r.jsx(S, { className: o == null ? void 0 : o.container, children: /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col gap-6 desktop:items-start desktop:gap-12", o == null ? void 0 : o.wrapper), children: [
1255
+ }, Jn = ({ headline: t, details: e, variant: n, classes: o }) => /* @__PURE__ */ r.jsx("section", { id: b.stepper, "data-test-id": b.stepper, className: o == null ? void 0 : o.root, children: /* @__PURE__ */ r.jsx(S, { className: o == null ? void 0 : o.container, children: /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col gap-6 desktop:items-start desktop:gap-12", o == null ? void 0 : o.wrapper), children: [
1256
1256
  /* @__PURE__ */ r.jsx(H, { as: "h2", className: d("text-color-dark", o == null ? void 0 : o.headline), children: t }),
1257
1257
  /* @__PURE__ */ r.jsx(
1258
1258
  "div",
@@ -1264,7 +1264,7 @@ const Yt = [
1264
1264
  children: e == null ? void 0 : e.map((i, a) => /* @__PURE__ */ r.jsx(fr, { variant: n, ...i, index: a + 1, classes: o == null ? void 0 : o.step }, i.description))
1265
1265
  }
1266
1266
  )
1267
- ] }) }) }), br = E("", {
1267
+ ] }) }) }), br = F("", {
1268
1268
  variants: {
1269
1269
  intent: {
1270
1270
  twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
@@ -1280,7 +1280,7 @@ const Yt = [
1280
1280
  defaultVariants: {
1281
1281
  intent: "twoItems"
1282
1282
  }
1283
- }), gr = E("", {
1283
+ }), gr = F("", {
1284
1284
  variants: {
1285
1285
  intent: {
1286
1286
  twoItems: "",
@@ -1312,7 +1312,7 @@ const Yt = [
1312
1312
  class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
1313
1313
  }
1314
1314
  ]
1315
- }), jr = E("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
1315
+ }), jr = F("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
1316
1316
  variants: {
1317
1317
  intent: {
1318
1318
  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',
@@ -1322,7 +1322,7 @@ const Yt = [
1322
1322
  defaultVariants: {
1323
1323
  intent: "twoItems"
1324
1324
  }
1325
- }), yr = E("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
1325
+ }), yr = F("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
1326
1326
  variants: {
1327
1327
  intent: {
1328
1328
  twoItems: "desktop:h-[232px] desktop:w-[500px]",
@@ -1363,7 +1363,7 @@ const Yt = [
1363
1363
  ] }),
1364
1364
  /* @__PURE__ */ r.jsx("div", { className: d("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: o } })
1365
1365
  ] }) });
1366
- }, we = ({ intent: t, headline: e, desktopHidden: n = !1, mobileHidden: o = !1 }) => /* @__PURE__ */ r.jsx("h2", { className: d(br({ intent: t, desktopHidden: n, mobileHidden: o })), children: e }), kr = ({ details: t, intent: e, withButton: n }) => /* @__PURE__ */ r.jsx("ul", { className: d(gr({ intent: e, withButton: n })), children: t == null ? void 0 : t.map((o, i) => /* @__PURE__ */ r.jsx(sr, { intent: e, data: o }, i)) }), Jn = ({
1366
+ }, ke = ({ intent: t, headline: e, desktopHidden: n = !1, mobileHidden: o = !1 }) => /* @__PURE__ */ r.jsx("h2", { className: d(br({ intent: t, desktopHidden: n, mobileHidden: o })), children: e }), kr = ({ details: t, intent: e, withButton: n }) => /* @__PURE__ */ r.jsx("ul", { className: d(gr({ intent: e, withButton: n })), children: t == null ? void 0 : t.map((o, i) => /* @__PURE__ */ r.jsx(sr, { intent: e, data: o }, i)) }), Yn = ({
1367
1367
  headline: t,
1368
1368
  buttonConfig: e,
1369
1369
  intent: n = "twoItems",
@@ -1372,8 +1372,8 @@ const Yt = [
1372
1372
  classes: a
1373
1373
  }) => {
1374
1374
  const l = n === "fourItems", u = n === "twoItems", m = i && "url" in i && s.isObject(i) ? /* @__PURE__ */ r.jsx("img", { className: "w-full object-contain", alt: i.alt, src: i.url }) : i;
1375
- return /* @__PURE__ */ r.jsx("section", { id: g.longBanner, "data-test-id": g.longBanner, className: d(a == null ? void 0 : a.root), children: /* @__PURE__ */ r.jsxs(S, { className: d(a == null ? void 0 : a.container), children: [
1376
- u && /* @__PURE__ */ r.jsx(we, { intent: n, headline: t }),
1375
+ return /* @__PURE__ */ r.jsx("section", { id: b.longBanner, "data-test-id": b.longBanner, className: d(a == null ? void 0 : a.root), children: /* @__PURE__ */ r.jsxs(S, { className: d(a == null ? void 0 : a.container), children: [
1376
+ u && /* @__PURE__ */ r.jsx(ke, { intent: n, headline: t }),
1377
1377
  /* @__PURE__ */ r.jsxs(
1378
1378
  "div",
1379
1379
  {
@@ -1382,17 +1382,17 @@ const Yt = [
1382
1382
  a == null ? void 0 : a.contentContainer
1383
1383
  ),
1384
1384
  children: [
1385
- l && /* @__PURE__ */ r.jsx(we, { intent: n, headline: t, desktopHidden: !0 }),
1385
+ l && /* @__PURE__ */ r.jsx(ke, { intent: n, headline: t, desktopHidden: !0 }),
1386
1386
  /* @__PURE__ */ r.jsx("div", { className: d(yr({ intent: n, withButton: e == null ? void 0 : e.enabled }), a == null ? void 0 : a.imgContainer), children: m }),
1387
1387
  /* @__PURE__ */ r.jsxs(
1388
1388
  "div",
1389
1389
  {
1390
1390
  className: d("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", a == null ? void 0 : a.textWithBtnContainer),
1391
1391
  children: [
1392
- l && /* @__PURE__ */ r.jsx(we, { intent: n, headline: t, mobileHidden: !0 }),
1392
+ l && /* @__PURE__ */ r.jsx(ke, { intent: n, headline: t, mobileHidden: !0 }),
1393
1393
  /* @__PURE__ */ r.jsx(kr, { details: o, intent: n, withButton: (e == null ? void 0 : e.enabled) ?? !1 }),
1394
1394
  (e == null ? void 0 : e.enabled) && e && /* @__PURE__ */ r.jsx(
1395
- Y,
1395
+ z,
1396
1396
  {
1397
1397
  className: d("w-full px-4 desktop:w-max", a == null ? void 0 : a.button),
1398
1398
  size: "lg",
@@ -1407,7 +1407,7 @@ const Yt = [
1407
1407
  }
1408
1408
  )
1409
1409
  ] }) });
1410
- }, ve = {
1410
+ }, we = {
1411
1411
  ESIA: "esia",
1412
1412
  MOBILE_ID: "mobileId",
1413
1413
  COMBINE: "combine"
@@ -1476,7 +1476,7 @@ const Yt = [
1476
1476
  }
1477
1477
  ),
1478
1478
  (e == null ? void 0 : e.text) && (e == null ? void 0 : e.href) && /* @__PURE__ */ r.jsx(
1479
- je,
1479
+ ge,
1480
1480
  {
1481
1481
  intent: "blue",
1482
1482
  withUnderline: !0,
@@ -1490,7 +1490,7 @@ const Yt = [
1490
1490
  }
1491
1491
  )
1492
1492
  ] }), Ve = ({ mainLink: t, subLink: e, isLoading: n, badge: o, loaderProps: i, classes: a }) => {
1493
- const { isMobile: l } = G();
1493
+ const { isMobile: l } = Y();
1494
1494
  return /* @__PURE__ */ r.jsx(mt, { isLoading: n, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ r.jsxs(
1495
1495
  "div",
1496
1496
  {
@@ -1514,7 +1514,7 @@ const Yt = [
1514
1514
  }
1515
1515
  ) });
1516
1516
  }, Ae = ({ mainLink: t, subLink: e, isLoading: n, badge: o, loaderProps: i, classes: a }) => {
1517
- const { isMobile: l } = G();
1517
+ const { isMobile: l } = Y();
1518
1518
  return /* @__PURE__ */ r.jsx(mt, { isLoading: n, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ r.jsxs(
1519
1519
  "div",
1520
1520
  {
@@ -1535,11 +1535,11 @@ const Yt = [
1535
1535
  ) });
1536
1536
  }, vr = (t) => {
1537
1537
  switch (t.mode) {
1538
- case ve.ESIA:
1538
+ case we.ESIA:
1539
1539
  return /* @__PURE__ */ r.jsx(Ae, { ...t });
1540
- case ve.MOBILE_ID:
1540
+ case we.MOBILE_ID:
1541
1541
  return /* @__PURE__ */ r.jsx(Ve, { ...t });
1542
- case ve.COMBINE:
1542
+ case we.COMBINE:
1543
1543
  default:
1544
1544
  const { esiaConfig: e, mobileIdConfig: n, subtitle: o, badge: i, classes: a } = t, l = !o && !i ? le.Fragment : "div";
1545
1545
  return /* @__PURE__ */ r.jsxs(
@@ -1582,8 +1582,8 @@ const Yt = [
1582
1582
  }
1583
1583
  );
1584
1584
  }
1585
- }, Yn = (t) => vr(t), qe = ({ links: t, classes: e }) => /* @__PURE__ */ r.jsx("nav", { className: d("flex flex-col gap-1", e == null ? void 0 : e.linksWrapper), children: t == null ? void 0 : t.map(({ path: n, label: o }) => /* @__PURE__ */ r.jsx(
1586
- je,
1585
+ }, Gn = (t) => vr(t), qe = ({ links: t, classes: e }) => /* @__PURE__ */ r.jsx("nav", { className: d("flex flex-col gap-1", e == null ? void 0 : e.linksWrapper), children: t == null ? void 0 : t.map(({ path: n, label: o }) => /* @__PURE__ */ r.jsx(
1586
+ ge,
1587
1587
  {
1588
1588
  classes: {
1589
1589
  link: d("w-max", e == null ? void 0 : e.linkText),
@@ -1596,7 +1596,7 @@ const Yt = [
1596
1596
  n
1597
1597
  )) }), Nr = ({ groupLabel: t, links: e, mobileAccordionProps: n, classes: o }) => {
1598
1598
  var a, l, u;
1599
- const { isMobile: i } = G();
1599
+ const { isMobile: i } = Y();
1600
1600
  return /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col gap-2", o == null ? void 0 : o.columnGroup), children: [
1601
1601
  !i && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1602
1602
  /* @__PURE__ */ r.jsx("h5", { className: d("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", o == null ? void 0 : o.columnGroupHeading), children: t }),
@@ -1620,7 +1620,7 @@ const Yt = [
1620
1620
  }
1621
1621
  )
1622
1622
  ] });
1623
- }, Cr = ({ column: t, mobileAccordionProps: e, classes: n }) => /* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-4 desktop:gap-6", n == null ? void 0 : n.column), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ r.jsx(Nr, { ...e, ...o, classes: n == null ? void 0 : n.columnGroup }, o.groupLabel)) }), Ir = E("grid gap-4 grid-cols-1", {
1623
+ }, Cr = ({ column: t, mobileAccordionProps: e, classes: n }) => /* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-4 desktop:gap-6", n == null ? void 0 : n.column), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ r.jsx(Nr, { ...e, ...o, classes: n == null ? void 0 : n.columnGroup }, o.groupLabel)) }), Ir = F("grid gap-4 grid-cols-1", {
1624
1624
  variants: {
1625
1625
  variant: {
1626
1626
  twoCols: "desktop:grid-cols-2",
@@ -1631,7 +1631,7 @@ const Yt = [
1631
1631
  defaultVariants: {
1632
1632
  variant: "fourCols"
1633
1633
  }
1634
- }), Gn = ({
1634
+ }), eo = ({
1635
1635
  variant: t,
1636
1636
  details: e,
1637
1637
  headline: n,
@@ -1644,8 +1644,8 @@ const Yt = [
1644
1644
  return /* @__PURE__ */ r.jsx(
1645
1645
  "section",
1646
1646
  {
1647
- id: g.interLinking,
1648
- "data-test-id": g.interLinking,
1647
+ id: b.interLinking,
1648
+ "data-test-id": b.interLinking,
1649
1649
  className: d("min-w-full desktop:min-w-[1140px]", a == null ? void 0 : a.root),
1650
1650
  children: /* @__PURE__ */ r.jsx(S, { children: /* @__PURE__ */ r.jsx(
1651
1651
  oe,
@@ -1692,21 +1692,21 @@ const Yt = [
1692
1692
  };
1693
1693
  })
1694
1694
  }))
1695
- }), Br = E("flex flex-col", {
1695
+ }), Br = F("flex flex-col", {
1696
1696
  variants: {
1697
1697
  columnsVariant: {
1698
1698
  twoCols: "w-full max-w-[656px]",
1699
1699
  threeCols: "w-full max-w-[768px]"
1700
1700
  }
1701
1701
  }
1702
- }), Rr = E("desktop:grid mobile:hidden px-4 mb-4", {
1702
+ }), Rr = F("desktop:grid mobile:hidden px-4 mb-4", {
1703
1703
  variants: {
1704
1704
  columnsVariant: {
1705
1705
  twoCols: "grid-cols-2 gap-16",
1706
1706
  threeCols: "grid-cols-3 gap-12"
1707
1707
  }
1708
1708
  }
1709
- }), _r = ({ headings: t, columnsVariant: e, classes: n }) => /* @__PURE__ */ r.jsx("div", { className: d(Rr({ columnsVariant: e }), n == null ? void 0 : n.row), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ r.jsx("div", { className: d("text-color-secondary", n == null ? void 0 : n.cell), children: o == null ? void 0 : o.heading }, o == null ? void 0 : o.heading)) }), Hr = E("desktop:grid mobile:hidden items-center", {
1709
+ }), _r = ({ headings: t, columnsVariant: e, classes: n }) => /* @__PURE__ */ r.jsx("div", { className: d(Rr({ columnsVariant: e }), n == null ? void 0 : n.row), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ r.jsx("div", { className: d("text-color-secondary", n == null ? void 0 : n.cell), children: o == null ? void 0 : o.heading }, o == null ? void 0 : o.heading)) }), Hr = F("desktop:grid mobile:hidden items-center", {
1710
1710
  variants: {
1711
1711
  columnsVariant: {
1712
1712
  twoCols: "grid-cols-2 gap-16",
@@ -1724,7 +1724,7 @@ const Yt = [
1724
1724
  children: a && a
1725
1725
  },
1726
1726
  l
1727
- )) }), Dr = E("mobile:flex desktop:hidden flex-col gap-2", {
1727
+ )) }), Dr = F("mobile:flex desktop:hidden flex-col gap-2", {
1728
1728
  variants: {
1729
1729
  tableVariant: {
1730
1730
  filled: "px-4 py-4 odd:bg-color-primary-light-default",
@@ -1800,7 +1800,7 @@ const Yt = [
1800
1800
  }, Vr = {
1801
1801
  documentFilled: "files/documentFilled",
1802
1802
  documentOutline: "files/documentOutline"
1803
- }, Ar = E("size-8 transition-colors", {
1803
+ }, Ar = F("size-8 transition-colors", {
1804
1804
  variants: {
1805
1805
  iconType: {
1806
1806
  documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
@@ -1876,10 +1876,10 @@ const Yt = [
1876
1876
  default:
1877
1877
  return null;
1878
1878
  }
1879
- }, Kr = ({ entity: t, classes: e, accordionsConfig: n }) => /* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: Wr({ entity: t, classes: e, accordionsConfig: n }) }), eo = ({ headline: t, tabs: e, classes: n, accordionsConfig: o }) => {
1879
+ }, Kr = ({ entity: t, classes: e, accordionsConfig: n }) => /* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: Wr({ entity: t, classes: e, accordionsConfig: n }) }), to = ({ headline: t, tabs: e, classes: n, accordionsConfig: o }) => {
1880
1880
  var u, m;
1881
- const [i, a] = z(0), l = ye(() => e == null ? void 0 : e.map((x) => x == null ? void 0 : x.tabName), [e]) ?? [];
1882
- return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ r.jsx("section", { id: g.usefulInfo, "data-test-id": g.usefulInfo, className: d(n == null ? void 0 : n.root), children: /* @__PURE__ */ r.jsxs(S, { className: d(n == null ? void 0 : n.container), children: [
1881
+ const [i, a] = Q(0), l = je(() => e == null ? void 0 : e.map((x) => x == null ? void 0 : x.tabName), [e]) ?? [];
1882
+ return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ r.jsx("section", { id: b.usefulInfo, "data-test-id": b.usefulInfo, className: d(n == null ? void 0 : n.root), children: /* @__PURE__ */ r.jsxs(S, { className: d(n == null ? void 0 : n.container), children: [
1883
1883
  /* @__PURE__ */ r.jsx(H, { className: d(n == null ? void 0 : n.headline), as: "h2", children: t }),
1884
1884
  /* @__PURE__ */ r.jsx("div", { className: d("mt-6 flex flex-col gap-2 desktop:mt-12", n == null ? void 0 : n.tabsWrapper), children: /* @__PURE__ */ r.jsx(Tr, { tabsNames: l, activeTab: i, setActiveTab: a, classes: n == null ? void 0 : n.tabs }) }),
1885
1885
  /* @__PURE__ */ r.jsx("div", { className: d("mt-6 flex flex-col gap-6", n == null ? void 0 : n.contentWrapper), children: (m = (u = e == null ? void 0 : e[i]) == null ? void 0 : u.contents) == null ? void 0 : m.map((x, p) => /* @__PURE__ */ r.jsx(Kr, { accordionsConfig: o, ...x, classes: n == null ? void 0 : n.entityClasses }, p)) })
@@ -1969,7 +1969,7 @@ class Xr extends $r {
1969
1969
  return Zr ? new DOMParser().parseFromString(e, "text/html") : Promise.reject();
1970
1970
  }
1971
1971
  }
1972
- class Ce {
1972
+ class Ne {
1973
1973
  /**
1974
1974
  * Функция для парсинга ноды в react элемент
1975
1975
  */
@@ -1999,10 +1999,10 @@ class Ce {
1999
1999
  u = "style";
2000
2000
  const x = {};
2001
2001
  l.value.split(";").forEach((p) => {
2002
- const [c, b] = p.split(":");
2003
- if (c && b) {
2004
- const w = c.trim().replace(/-([a-z])/g, (v, I) => I.toUpperCase());
2005
- x[w] = b.trim();
2002
+ const [c, g] = p.split(":");
2003
+ if (c && g) {
2004
+ const k = c.trim().replace(/-([a-z])/g, (v, I) => I.toUpperCase());
2005
+ x[k] = g.trim();
2006
2006
  }
2007
2007
  }), m = x;
2008
2008
  break;
@@ -2027,16 +2027,16 @@ class Ce {
2027
2027
  return i.map((a) => this.parseNode(a));
2028
2028
  }
2029
2029
  }
2030
- ae(Ce, "TEXT_NODE", 3), ae(Ce, "ELEMENT_NODE", 1);
2030
+ ae(Ne, "TEXT_NODE", 3), ae(Ne, "ELEMENT_NODE", 1);
2031
2031
  const Jr = ({ promises: t }) => {
2032
- const [e, n] = z([]);
2032
+ const [e, n] = Q([]);
2033
2033
  return tt(() => {
2034
2034
  (async () => {
2035
2035
  n(await t);
2036
2036
  })();
2037
2037
  }, [t]), /* @__PURE__ */ r.jsx(r.Fragment, { children: e });
2038
- }, ge = ({ html: t, options: e, as: n, ...o }) => {
2039
- const i = n ?? _t, a = n ? o : {}, l = Ce.toReactNodes(t, e);
2038
+ }, be = ({ html: t, options: e, as: n, ...o }) => {
2039
+ const i = n ?? _t, a = n ? o : {}, l = Ne.toReactNodes(t, e);
2040
2040
  return (
2041
2041
  // @ts-expect-error disable warning
2042
2042
  /* @__PURE__ */ r.jsx(i, { ...a, children: /* @__PURE__ */ r.jsx(Jr, { promises: l }) })
@@ -2044,7 +2044,7 @@ const Jr = ({ promises: t }) => {
2044
2044
  }, Yr = (t, e) => t.enabled ? e.map((n) => ({
2045
2045
  name: n.args.name,
2046
2046
  ...n.args.progress
2047
- })) : null, Gr = new Jt(), en = ({ children: t }) => /* @__PURE__ */ r.jsx(Ot, { client: Gr, children: t }), tn = (t, e, n, o) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ r.jsx(ge, { html: t.message, as: "div", className: o == null ? void 0 : o.content }) : /* @__PURE__ */ r.jsxs(
2047
+ })) : null, Gr = new Jt(), en = ({ children: t }) => /* @__PURE__ */ r.jsx(Ot, { client: Gr, children: t }), tn = (t, e, n, o) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ r.jsx(be, { html: t.message, as: "div", className: o == null ? void 0 : o.content }) : /* @__PURE__ */ r.jsxs(
2048
2048
  "label",
2049
2049
  {
2050
2050
  className: d(
@@ -2054,10 +2054,10 @@ const Jr = ({ promises: t }) => {
2054
2054
  ),
2055
2055
  children: [
2056
2056
  /* @__PURE__ */ r.jsx(Ye.CheckboxBase, { classes: o == null ? void 0 : o.checkbox, checked: e, onCheckedChange: n }),
2057
- /* @__PURE__ */ r.jsx(ge, { html: t.content, as: "div", className: o == null ? void 0 : o.content })
2057
+ /* @__PURE__ */ r.jsx(be, { html: t.content, as: "div", className: o == null ? void 0 : o.content })
2058
2058
  ]
2059
2059
  }
2060
- ), to = ({
2060
+ ), ro = ({
2061
2061
  fields: t,
2062
2062
  title: e,
2063
2063
  progress: n,
@@ -2066,19 +2066,19 @@ const Jr = ({ promises: t }) => {
2066
2066
  submitProps: a,
2067
2067
  classes: l
2068
2068
  }) => {
2069
- var $, Q;
2070
- const { submitCallback: u, ...m } = a || {}, [x, p] = z(!1), c = ut(t), { control: b, handleSubmit: w } = nt({
2069
+ var V, N;
2070
+ const { submitCallback: u, ...m } = a || {}, [x, p] = Q(!1), c = ut(t), g = at.getZodDefaults(c), { control: k, handleSubmit: v } = nt({
2071
2071
  schema: c,
2072
- defaultValues: at.getZodDefaults(c),
2072
+ defaultValues: g,
2073
2073
  mode: "onBlur"
2074
- }), v = Yr(n, t), I = qt({ control: b, fields: v || [], schema: c }), P = (N) => {
2075
- u && u({ ...N, agree: x }), console.warn(N);
2074
+ }), I = Yr(n, t), P = qt({ control: k, fields: I || [], schema: c }), G = (M) => {
2075
+ u && u({ ...M, agree: x }), console.warn(M);
2076
2076
  };
2077
2077
  return /* @__PURE__ */ r.jsx(en, { children: /* @__PURE__ */ r.jsxs(
2078
2078
  "div",
2079
2079
  {
2080
- id: g.form,
2081
- "data-test-id": g.form,
2080
+ id: b.form,
2081
+ "data-test-id": b.form,
2082
2082
  className: d(
2083
2083
  "border-warm-grey-200 px-4 desktop:gap-8 desktop:p-14",
2084
2084
  "relative flex flex-col gap-6 rounded-sm border py-8",
@@ -2092,10 +2092,10 @@ const Jr = ({ promises: t }) => {
2092
2092
  "desk-body-regular-l flex items-center gap-x-2 rounded-sm desktop:absolute",
2093
2093
  "bg-color-blue-grey-100 px-2 py-1 text-color-tetriary",
2094
2094
  "right-4 top-4 w-max",
2095
- ($ = l == null ? void 0 : l.chips) == null ? void 0 : $.root
2095
+ (V = l == null ? void 0 : l.chips) == null ? void 0 : V.root
2096
2096
  ),
2097
2097
  children: [
2098
- i.image && /* @__PURE__ */ r.jsx(f, { name: i.image, className: d("size-4", (Q = l == null ? void 0 : l.chips) == null ? void 0 : Q.icon) }),
2098
+ i.image && /* @__PURE__ */ r.jsx(f, { name: i.image, className: d("size-4", (N = l == null ? void 0 : l.chips) == null ? void 0 : N.icon) }),
2099
2099
  i.content
2100
2100
  ]
2101
2101
  }
@@ -2104,24 +2104,24 @@ const Jr = ({ promises: t }) => {
2104
2104
  /* @__PURE__ */ r.jsxs(
2105
2105
  "form",
2106
2106
  {
2107
- onSubmit: w(P),
2107
+ onSubmit: v(G),
2108
2108
  className: d("flex w-[328px] flex-col gap-y-6", "desktop:w-[524px] desktop:gap-y-8", l == null ? void 0 : l.form),
2109
2109
  children: [
2110
2110
  n.enabled && /* @__PURE__ */ r.jsx(
2111
2111
  St,
2112
2112
  {
2113
- progress: I,
2114
- topContent: /* @__PURE__ */ r.jsx(ge, { html: n.title }),
2115
- bottomContent: /* @__PURE__ */ r.jsx(ge, { html: n.subtitle }),
2113
+ progress: P,
2114
+ topContent: /* @__PURE__ */ r.jsx(be, { html: n.title }),
2115
+ bottomContent: /* @__PURE__ */ r.jsx(be, { html: n.subtitle }),
2116
2116
  maxPercent: n.maxPercent,
2117
2117
  classes: l == null ? void 0 : l.progressBar
2118
2118
  }
2119
2119
  ),
2120
- /* @__PURE__ */ r.jsx(ht, { control: b, fields: t }),
2120
+ /* @__PURE__ */ r.jsx(ht, { control: k, fields: t }),
2121
2121
  /* @__PURE__ */ r.jsxs("div", { className: "mob-body-regular-m flex flex-col items-center justify-center gap-4 desktop:flex-row desktop:justify-between", children: [
2122
2122
  tn(o, x, p, l == null ? void 0 : l.approvement),
2123
2123
  /* @__PURE__ */ r.jsx(
2124
- ue,
2124
+ Ce,
2125
2125
  {
2126
2126
  ...m,
2127
2127
  type: "submit",
@@ -2204,7 +2204,7 @@ const Jr = ({ promises: t }) => {
2204
2204
  text: "Вернуться на главную"
2205
2205
  }
2206
2206
  }
2207
- }), ro = ({ status: t, navigationFn: e }) => /* @__PURE__ */ r.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ r.jsx(S, { className: "flex flex-col justify-center", children: /* @__PURE__ */ r.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
2207
+ }), no = ({ status: t, navigationFn: e }) => /* @__PURE__ */ r.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ r.jsx(S, { className: "flex flex-col justify-center", children: /* @__PURE__ */ r.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
2208
2208
  /* @__PURE__ */ r.jsx(
2209
2209
  "span",
2210
2210
  {
@@ -2219,9 +2219,9 @@ const Jr = ({ promises: t }) => {
2219
2219
  /* @__PURE__ */ r.jsx(H, { as: "h2", children: de()[t].title }),
2220
2220
  /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: de()[t].description })
2221
2221
  ] }),
2222
- /* @__PURE__ */ r.jsx(ue, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: e, children: de()[t].button.text })
2222
+ /* @__PURE__ */ r.jsx(Ce, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: e, children: de()[t].button.text })
2223
2223
  ] }) }) }), pt = ({ breadcrumb: t, className: e, ...n }) => /* @__PURE__ */ r.jsx("a", { href: t.path, className: d("desk-body-regular-m", e), ...n, children: t.label }), rn = ({ startsWith: t, endsWith: e, matcher: n, filter: o, rootEnabled: i = !0 }) => {
2224
- const [a, l] = z([]);
2224
+ const [a, l] = Q([]);
2225
2225
  return tt(() => {
2226
2226
  if (!rt)
2227
2227
  return;
@@ -2239,7 +2239,7 @@ const Jr = ({ promises: t }) => {
2239
2239
  }
2240
2240
  u.forEach((p, c) => {
2241
2241
  x += `/${p}`;
2242
- const b = {
2242
+ const g = {
2243
2243
  // while root enabled we need to increment index
2244
2244
  // cuz we have root breadcrumb
2245
2245
  index: i ? c + 1 : c,
@@ -2247,13 +2247,13 @@ const Jr = ({ promises: t }) => {
2247
2247
  path: x,
2248
2248
  label: p
2249
2249
  };
2250
- m.push(b);
2250
+ m.push(g);
2251
2251
  }), n && (m = m.map((p) => ({
2252
2252
  ...p,
2253
2253
  ...n(p)
2254
2254
  }))), l(o ? m.filter(o) : m);
2255
2255
  }, [e, o, n, i, t]), a;
2256
- }, be = (t, e, n, o) => t.map((i, a) => {
2256
+ }, fe = (t, e, n, o) => t.map((i, a) => {
2257
2257
  const l = a === o;
2258
2258
  return /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-x-2", children: [
2259
2259
  /* @__PURE__ */ r.jsx(
@@ -2268,11 +2268,11 @@ const Jr = ({ promises: t }) => {
2268
2268
  a !== t.length - 1 && e
2269
2269
  ] }, i.id);
2270
2270
  }), nn = ({ separator: t, ellipsis: e, classes: n, ...o }) => {
2271
- const [i, a] = z(!1), l = Ee(null);
2271
+ const [i, a] = Q(!1), l = Ee(null);
2272
2272
  zt(l, () => a(!1));
2273
- const u = rn(o), { first: m, middle: x, last: p } = ye(() => {
2274
- let b = [], w = [], v = [];
2275
- return e && (b = u.slice(0, e), w = u.slice(e, u.length - e), v = u.slice(u.length - e)), { first: b, middle: w, last: v };
2273
+ const u = rn(o), { first: m, middle: x, last: p } = je(() => {
2274
+ let g = [], k = [], v = [];
2275
+ return e && (g = u.slice(0, e), k = u.slice(e, u.length - e), v = u.slice(u.length - e)), { first: g, middle: k, last: v };
2276
2276
  }, [u, e]), c = t ?? /* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className: d("size-4", n == null ? void 0 : n.separator) });
2277
2277
  return /* @__PURE__ */ r.jsx(
2278
2278
  "div",
@@ -2288,7 +2288,7 @@ const Jr = ({ promises: t }) => {
2288
2288
  // if we have more than ellipsis (visible crumbs) + available hidden crumbs
2289
2289
  // render hidden breadcrumbs
2290
2290
  /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2291
- be(m, c, n == null ? void 0 : n.breadcrumb),
2291
+ fe(m, c, n == null ? void 0 : n.breadcrumb),
2292
2292
  c,
2293
2293
  x.length > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2294
2294
  /* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
@@ -2305,10 +2305,10 @@ const Jr = ({ promises: t }) => {
2305
2305
  "visible opacity-100": i
2306
2306
  }
2307
2307
  ),
2308
- children: x.map((b) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
2308
+ children: x.map((g) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
2309
2309
  pt,
2310
2310
  {
2311
- breadcrumb: b,
2311
+ breadcrumb: g,
2312
2312
  className: d(
2313
2313
  "desk-body-regular-l inline-block py-3",
2314
2314
  "w-full rounded-sm bg-color-white px-2",
@@ -2316,34 +2316,34 @@ const Jr = ({ promises: t }) => {
2316
2316
  n == null ? void 0 : n.breadcrumb
2317
2317
  )
2318
2318
  }
2319
- ) }, b.id))
2319
+ ) }, g.id))
2320
2320
  }
2321
2321
  )
2322
2322
  ] }),
2323
2323
  c
2324
2324
  ] }),
2325
- be(p, c, n == null ? void 0 : n.breadcrumb, p.length - 1)
2325
+ fe(p, c, n == null ? void 0 : n.breadcrumb, p.length - 1)
2326
2326
  ] })
2327
2327
  ) : (
2328
2328
  // otherwise render all breadcrumbs
2329
- be(u, c, n == null ? void 0 : n.breadcrumb, u.length - 1)
2329
+ fe(u, c, n == null ? void 0 : n.breadcrumb, u.length - 1)
2330
2330
  ) })
2331
2331
  ) : (
2332
2332
  // if ellipsis doesn't provided render all breadcrumbs
2333
- be(u, c, n == null ? void 0 : n.breadcrumb, u.length - 1)
2333
+ fe(u, c, n == null ? void 0 : n.breadcrumb, u.length - 1)
2334
2334
  )
2335
2335
  }
2336
2336
  );
2337
2337
  };
2338
- var me = /* @__PURE__ */ ((t) => (t.ROOT = "root", t.CURRENT = "current", t))(me || {});
2338
+ var ue = /* @__PURE__ */ ((t) => (t.ROOT = "root", t.CURRENT = "current", t))(ue || {});
2339
2339
  const on = (t, e) => {
2340
2340
  switch (e.type) {
2341
- case me.ROOT:
2341
+ case ue.ROOT:
2342
2342
  return {
2343
2343
  ...t,
2344
2344
  root: e.payload
2345
2345
  };
2346
- case me.CURRENT:
2346
+ case ue.CURRENT:
2347
2347
  return {
2348
2348
  ...t,
2349
2349
  current: e.payload
@@ -2355,10 +2355,10 @@ const on = (t, e) => {
2355
2355
  const [e, n] = Ht(on, t);
2356
2356
  return [e, n];
2357
2357
  }, dn = (t) => ({
2358
- type: me.CURRENT,
2358
+ type: ue.CURRENT,
2359
2359
  payload: t
2360
2360
  }), ln = (t) => ({
2361
- type: me.ROOT,
2361
+ type: ue.ROOT,
2362
2362
  payload: t
2363
2363
  }), un = ({ categories: t, ...e }) => {
2364
2364
  var n, o;
@@ -2436,7 +2436,7 @@ const on = (t, e) => {
2436
2436
  }
2437
2437
  );
2438
2438
  }), xn = Fe(mn), hn = ({ categories: t }) => {
2439
- const [e, n] = z(null), o = Ge((a) => {
2439
+ const [e, n] = Q(null), o = Ge((a) => {
2440
2440
  n(a);
2441
2441
  }, []), i = Ee(null);
2442
2442
  return /* @__PURE__ */ r.jsx(Bt, { mode: "sync", children: /* @__PURE__ */ r.jsxs(
@@ -2545,7 +2545,7 @@ const on = (t, e) => {
2545
2545
  {
2546
2546
  href: `tel:${n}`,
2547
2547
  className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
2548
- children: se(n, "x xxx xxx xx xx")
2548
+ children: ye(n, "x xxx xxx xx xx")
2549
2549
  }
2550
2550
  )
2551
2551
  ] }),
@@ -2596,9 +2596,9 @@ const on = (t, e) => {
2596
2596
  value: e.title ?? "",
2597
2597
  label: e.title ?? ""
2598
2598
  })), jn = ({ categories: t, helpers: e, phone: n, ...o }) => {
2599
- const i = gn(t), [a, l] = z(i[0]), u = (x) => {
2599
+ const i = gn(t), [a, l] = Q(i[0]), u = (x) => {
2600
2600
  s.isUndefined(x) || s.isArray(x) || l(x);
2601
- }, m = ye(() => {
2601
+ }, m = je(() => {
2602
2602
  var x;
2603
2603
  return s.isUndefined(a) || s.isArray(a) ? [] : ((x = t.find((p) => p.title === a.value)) == null ? void 0 : x.children) ?? [];
2604
2604
  }, [a, t]);
@@ -2631,7 +2631,7 @@ const on = (t, e) => {
2631
2631
  }),
2632
2632
  /* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsxs("a", { href: `tel:${n}`, className: "flex w-full items-center gap-x-1", children: [
2633
2633
  /* @__PURE__ */ r.jsx(f, { name: "communication/phone", className: "size-4" }),
2634
- se(n)
2634
+ ye(n)
2635
2635
  ] }) })
2636
2636
  ] })
2637
2637
  ]
@@ -2639,7 +2639,7 @@ const on = (t, e) => {
2639
2639
  );
2640
2640
  }, yn = ({ categories: t, helpers: e, phone: n }) => {
2641
2641
  var m, x, p;
2642
- const o = Ee(null), i = (m = o.current) == null ? void 0 : m.getBoundingClientRect(), [a, l] = z(!1), u = () => l(!a);
2642
+ const o = Ee(null), i = (m = o.current) == null ? void 0 : m.getBoundingClientRect(), [a, l] = Q(!1), u = () => l(!a);
2643
2643
  return /* @__PURE__ */ r.jsxs("div", { ref: o, className: "relative flex w-full items-center justify-between border-b border-b-blue-grey-500 py-4", children: [
2644
2644
  /* @__PURE__ */ r.jsx(f, { name: "brandLogos/logoMain", className: "w-[130px]" }),
2645
2645
  /* @__PURE__ */ r.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ r.jsx(f, { name: a ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
@@ -2659,9 +2659,9 @@ const on = (t, e) => {
2659
2659
  ((p = (x = document.body.querySelector("#modal-preview")) == null ? void 0 : x.contentDocument) == null ? void 0 : p.body) ?? document.body
2660
2660
  )
2661
2661
  ] });
2662
- }, no = ({ categories: t, helpers: e, phone: n }) => {
2663
- const { isMobile: o } = G();
2664
- return /* @__PURE__ */ r.jsxs("div", { id: g.seoHeader, "data-test-id": g.seoHeader, className: "mx-auto w-full max-w-[1440px]", children: [
2662
+ }, oo = ({ categories: t, helpers: e, phone: n }) => {
2663
+ const { isMobile: o } = Y();
2664
+ return /* @__PURE__ */ r.jsxs("div", { id: b.seoHeader, "data-test-id": b.seoHeader, className: "mx-auto w-full max-w-[1440px]", children: [
2665
2665
  o ? /* @__PURE__ */ r.jsx(yn, { categories: t.map((i) => i.children).flat(), helpers: e, phone: n }) : /* @__PURE__ */ r.jsx(fn, { categories: t, helpers: e, phone: n }),
2666
2666
  /* @__PURE__ */ r.jsx(
2667
2667
  nn,
@@ -2685,19 +2685,26 @@ const on = (t, e) => {
2685
2685
  break;
2686
2686
  }
2687
2687
  return new Intl.NumberFormat("ru-RU", o).format(n);
2688
- }, sn = (t) => Object.values(t).reduce((n, o) => n.merge(ut(o.fields)), At.object({})), kn = (t, e) => (t.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in e)).length > 0 ? "" : t, bt = (t, e) => {
2689
- const n = Object.entries(e).map(([m, x]) => [m, x !== null ? x : "1"]), o = n.map(([m]) => m), i = n.map(([, m]) => m), a = kn(t, Object.fromEntries(n)), u = new Function(...o, `return ${a};`)(...i.map(Number));
2688
+ }, sn = (t, e) => {
2689
+ switch (t) {
2690
+ case "text":
2691
+ return e;
2692
+ default:
2693
+ return ft(t, Number(e));
2694
+ }
2695
+ }, kn = (t) => Object.values(t).reduce((n, o) => n.merge(ut(o.fields)), At.object({})), wn = (t, e) => (t.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in e)).length > 0 ? "" : t, bt = (t, e) => {
2696
+ const n = Object.entries(e).map(([m, x]) => [m, x !== null ? x : "1"]), o = n.map(([m]) => m), i = n.map(([, m]) => m), a = wn(t, Object.fromEntries(n)), u = new Function(...o, `return ${a};`)(...i.map(Number));
2690
2697
  return Number.isNaN(Number(u)) ? "0" : u.toString();
2691
- }, wn = (t, e) => t.map((n) => ({
2698
+ }, vn = (t, e) => t.map((n) => ({
2692
2699
  ...n,
2693
2700
  value: ct(n.value) ? bt(n.value.formula, e) : n.value
2694
- })), vn = ({ subtitle: t, title: e }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: (e || t) && /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-2", children: [
2701
+ })), Nn = ({ subtitle: t, title: e }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: (e || t) && /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-2", children: [
2695
2702
  e && /* @__PURE__ */ r.jsx(H, { as: "h3", children: e }),
2696
2703
  t && /* @__PURE__ */ r.jsx("div", { className: "desk-body-regular-l text-color-dark", children: t })
2697
- ] }) }), Nn = ({ rootDescription: t, rootValue: e, suffix: n }) => /* @__PURE__ */ r.jsxs("div", { className: "mb-6 flex items-center justify-between gap-6", children: [
2704
+ ] }) }), Cn = ({ rootDescription: t, rootValue: e, suffix: n }) => /* @__PURE__ */ r.jsxs("div", { className: "mb-6 flex items-center justify-between gap-6", children: [
2698
2705
  /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: t }),
2699
2706
  /* @__PURE__ */ r.jsx("div", { className: "desk-title-bold-l flex items-center gap-1 text-color-dark", children: /* @__PURE__ */ r.jsx("span", { children: ft(n, Number(e)) }) })
2700
- ] }), Cn = ({ hint: t, value: e, label: n, suffix: o, color: i = "dark", accent: a = !1 }) => /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
2707
+ ] }), In = ({ hint: t, value: e, label: n, mode: o, color: i = "dark", accent: a = !1 }) => /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
2701
2708
  /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2", children: [
2702
2709
  /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: n }),
2703
2710
  t && /* @__PURE__ */ r.jsx(
@@ -2712,33 +2719,30 @@ const on = (t, e) => {
2712
2719
  /* @__PURE__ */ r.jsx(
2713
2720
  "span",
2714
2721
  {
2715
- className: d("desk-body-regular-l text-color-dark", {
2722
+ className: d("desk-body-medium-l text-color-dark", {
2716
2723
  "[&&]:desk-title-bold-s": a,
2717
2724
  "text-color-primary-default": i === "blue"
2718
2725
  }),
2719
- children: ft(o, Number(e))
2726
+ children: sn(o, e)
2720
2727
  }
2721
2728
  )
2722
- ] }), In = ({ infoList: t }) => {
2723
- const { watch: e } = ot(), n = e(), o = wn(t, n);
2724
- return /* @__PURE__ */ r.jsx("div", { className: "my-4 flex flex-col gap-3 border-t border-solid border-blue-grey-500 pt-4", children: o == null ? void 0 : o.map((i) => /* @__PURE__ */ r.jsx(Cn, { ...i }, i.label)) });
2725
- }, Tn = ({ iconName: t, text: e, hint: n }) => /* @__PURE__ */ r.jsxs("div", { className: "mb-6 flex items-center gap-2", children: [
2729
+ ] }), Tn = ({ infoList: t }) => {
2730
+ const { watch: e } = ot(), n = e(), o = vn(t, n);
2731
+ return /* @__PURE__ */ r.jsx("div", { className: "my-4 flex flex-col gap-3 border-t border-solid border-blue-grey-500 pt-4", children: o == null ? void 0 : o.map((i) => /* @__PURE__ */ r.jsx(In, { ...i }, i.label)) });
2732
+ }, Mn = ({ iconName: t, text: e, hint: n }) => /* @__PURE__ */ r.jsxs("div", { className: "mb-6 flex items-center gap-2", children: [
2726
2733
  /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-1", children: [
2727
2734
  /* @__PURE__ */ r.jsx(f, { name: t, className: "size-6 text-icon-blue-grey-800" }),
2728
2735
  /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: e })
2729
2736
  ] }),
2730
2737
  n && /* @__PURE__ */ r.jsx(Ie, { withCloseBtn: !1, triggerElement: /* @__PURE__ */ r.jsx(f, { name: "info/helpCircle", className: "size-5 text-icon-blue-grey-600" }), children: /* @__PURE__ */ r.jsx("p", { children: n }) })
2731
- ] }), Mn = ({ assistHint: t, buttonsConfig: e, bottomDescription: n }) => {
2732
- const { primaryBtn: o } = e;
2733
- return /* @__PURE__ */ r.jsxs("div", { children: [
2734
- t && /* @__PURE__ */ r.jsx(Tn, { ...t }),
2735
- /* @__PURE__ */ r.jsxs("div", { className: d("flex items-center gap-4 mobile:flex-col"), children: [
2736
- /* @__PURE__ */ r.jsx(ue, { className: "w-full", ...o, children: o.children }),
2737
- (e == null ? void 0 : e.secondaryBtn) && /* @__PURE__ */ r.jsx(ue, { className: "w-full", intent: "secondary", ...e.secondaryBtn, children: e.secondaryBtn.children })
2738
- ] }),
2739
- n && /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-m mt-4 text-color-secondary", children: n })
2740
- ] });
2741
- }, En = ({
2738
+ ] }), En = ({ assistHint: t, buttonsConfig: e, bottomDescription: n }) => /* @__PURE__ */ r.jsxs("div", { children: [
2739
+ t && /* @__PURE__ */ r.jsx(Mn, { ...t }),
2740
+ /* @__PURE__ */ r.jsxs("div", { className: d("flex items-center gap-4 mobile:flex-col"), children: [
2741
+ /* @__PURE__ */ r.jsx(z, { className: "w-full", ...e.primaryBtn }),
2742
+ (e == null ? void 0 : e.secondaryBtn) && /* @__PURE__ */ r.jsx(z, { className: "w-full", ...e.secondaryBtn })
2743
+ ] }),
2744
+ n && /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-m mt-4 text-color-secondary", children: n })
2745
+ ] }), Fn = ({
2742
2746
  rootDescription: t,
2743
2747
  bottomDescription: e,
2744
2748
  rootValue: n,
@@ -2749,18 +2753,18 @@ const on = (t, e) => {
2749
2753
  suffix: u,
2750
2754
  assistHint: m
2751
2755
  }) => /* @__PURE__ */ r.jsxs("div", { className: "w-[456px] rounded-md bg-color-blue-grey-100 p-8", children: [
2752
- /* @__PURE__ */ r.jsx(Nn, { suffix: u, rootValue: n, rootDescription: t }),
2753
- /* @__PURE__ */ r.jsx(vn, { title: o, subtitle: i }),
2754
- /* @__PURE__ */ r.jsx(In, { infoList: l }),
2755
- /* @__PURE__ */ r.jsx(Mn, { assistHint: m, buttonsConfig: a, bottomDescription: e })
2756
- ] }), Fn = (t) => {
2756
+ /* @__PURE__ */ r.jsx(Cn, { suffix: u, rootValue: n, rootDescription: t }),
2757
+ /* @__PURE__ */ r.jsx(Nn, { title: o, subtitle: i }),
2758
+ /* @__PURE__ */ r.jsx(Tn, { infoList: l }),
2759
+ /* @__PURE__ */ r.jsx(En, { assistHint: m, buttonsConfig: a, bottomDescription: e })
2760
+ ] }), On = (t) => {
2757
2761
  switch (t) {
2758
2762
  case "content1":
2759
2763
  return /* @__PURE__ */ r.jsx("div", { children: "content 1" });
2760
2764
  case "content2":
2761
2765
  return /* @__PURE__ */ r.jsx("div", { children: "content 2" });
2762
2766
  }
2763
- }, On = ({ triggerText: t, modalTitle: e, description: n, contentVariant: o }) => {
2767
+ }, Sn = ({ triggerText: t, modalTitle: e, description: n, contentVariant: o }) => {
2764
2768
  const [i, a] = Ut(!1);
2765
2769
  return /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-4 rounded-sm bg-color-blue-grey-100 p-4", children: [
2766
2770
  n && /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: n }),
@@ -2772,13 +2776,13 @@ const on = (t, e) => {
2772
2776
  children: t
2773
2777
  }
2774
2778
  ),
2775
- /* @__PURE__ */ r.jsx(Rt, { title: e, isModalOpen: i, closeModal: () => a(!1), children: Fn(o) })
2779
+ /* @__PURE__ */ r.jsx(Rt, { title: e, isModalOpen: i, closeModal: () => a(!1), children: On(o) })
2776
2780
  ] });
2777
2781
  }, X = ({ fields: t }) => {
2778
2782
  const { control: e } = ot();
2779
2783
  return /* @__PURE__ */ r.jsx(ht, { control: e, fields: t });
2780
- }, Sn = ({ modalConfig: t, fieldsGroup: e }) => /* @__PURE__ */ r.jsxs("div", { className: "flex flex-1 flex-col gap-8", children: [
2781
- t && /* @__PURE__ */ r.jsx(On, { ...t }),
2784
+ }, Bn = ({ modalConfig: t, fieldsGroup: e }) => /* @__PURE__ */ r.jsxs("div", { className: "flex flex-1 flex-col gap-8", children: [
2785
+ t && /* @__PURE__ */ r.jsx(Sn, { ...t }),
2782
2786
  (e == null ? void 0 : e.selectGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.selectGroupConfig }) }),
2783
2787
  (e == null ? void 0 : e.slidersGroupConfig) && /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.slidersGroupConfig }),
2784
2788
  (e == null ? void 0 : e.radioGroupTabConfig) && /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.radioGroupTabConfig }),
@@ -2786,7 +2790,7 @@ const on = (t, e) => {
2786
2790
  (e == null ? void 0 : e.radioGroupConfig) && /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.radioGroupConfig }),
2787
2791
  (e == null ? void 0 : e.radioGroupCardConfig) && /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.radioGroupCardConfig }),
2788
2792
  (e == null ? void 0 : e.switchGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.switchGroupConfig }) })
2789
- ] }), Bn = Fe(({ calculatorTabs: t, activeCalculator: e, setActiveCalculator: n }) => /* @__PURE__ */ r.jsx("div", { className: "mb-8 flex items-center gap-4", children: t == null ? void 0 : t.map(({ name: o, label: i }) => /* @__PURE__ */ r.jsx(
2793
+ ] }), Rn = Fe(({ calculatorTabs: t, activeCalculator: e, setActiveCalculator: n }) => /* @__PURE__ */ r.jsx("div", { className: "mb-8 flex items-center gap-4", children: t == null ? void 0 : t.map(({ name: o, label: i }) => /* @__PURE__ */ r.jsx(
2790
2794
  "button",
2791
2795
  {
2792
2796
  onClick: () => n(o),
@@ -2797,26 +2801,26 @@ const on = (t, e) => {
2797
2801
  children: i
2798
2802
  },
2799
2803
  o
2800
- )) })), Rn = ({
2804
+ )) })), _n = ({
2801
2805
  calculatorInfoConfig: t,
2802
2806
  calculatorFieldsConfig: e
2803
2807
  }) => {
2804
- const n = sn(e == null ? void 0 : e.fieldsGroup), o = nt({
2808
+ const n = kn(e == null ? void 0 : e.fieldsGroup), o = nt({
2805
2809
  schema: n,
2806
2810
  mode: "onBlur",
2807
2811
  defaultValues: at.getZodDefaults(n)
2808
2812
  }), i = o.watch(), { rootValue: a } = t, l = ct(a) ? bt(a.formula, i) : a, u = { ...t, rootValue: l };
2809
2813
  return /* @__PURE__ */ r.jsx(Qt, { ...o, children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-start gap-16", children: [
2810
- /* @__PURE__ */ r.jsx(Sn, { ...e }),
2811
- /* @__PURE__ */ r.jsx(En, { ...u })
2814
+ /* @__PURE__ */ r.jsx(Bn, { ...e }),
2815
+ /* @__PURE__ */ r.jsx(Fn, { ...u })
2812
2816
  ] }) });
2813
- }, oo = ({ calculators: t, headline: e }) => {
2817
+ }, io = ({ calculators: t, headline: e }) => {
2814
2818
  var m;
2815
- const n = t.length > 1, [o, i] = z(n ? (m = t[0]) == null ? void 0 : m.name : ""), a = ye(() => t == null ? void 0 : t.map(({ name: x, label: p }) => ({ name: x, label: p })), [t]), l = n ? a == null ? void 0 : a.findIndex((x) => x.name === o) : 0, u = t[l];
2816
- return /* @__PURE__ */ r.jsx("section", { id: g.calculator, children: /* @__PURE__ */ r.jsx(S, { children: /* @__PURE__ */ r.jsxs("div", { className: "rounded-md bg-color-white px-10 py-12 shadow-md", children: [
2819
+ const n = t.length > 1, [o, i] = Q(n ? (m = t[0]) == null ? void 0 : m.name : ""), a = je(() => t == null ? void 0 : t.map(({ name: x, label: p }) => ({ name: x, label: p })), [t]), l = n ? a == null ? void 0 : a.findIndex((x) => x.name === o) : 0, u = t[l];
2820
+ return /* @__PURE__ */ r.jsx("section", { id: b.calculator, children: /* @__PURE__ */ r.jsx(S, { children: /* @__PURE__ */ r.jsxs("div", { className: "rounded-md bg-color-white px-10 py-12 shadow-md", children: [
2817
2821
  /* @__PURE__ */ r.jsx(H, { className: "mb-12", as: "h2", children: e }),
2818
2822
  n && /* @__PURE__ */ r.jsx(
2819
- Bn,
2823
+ Rn,
2820
2824
  {
2821
2825
  calculatorTabs: a,
2822
2826
  activeCalculator: o,
@@ -2824,7 +2828,7 @@ const on = (t, e) => {
2824
2828
  }
2825
2829
  ),
2826
2830
  /* @__PURE__ */ r.jsx(
2827
- Rn,
2831
+ _n,
2828
2832
  {
2829
2833
  name: u.name,
2830
2834
  label: u.label,
@@ -2835,30 +2839,30 @@ const on = (t, e) => {
2835
2839
  ] }) }) });
2836
2840
  };
2837
2841
  export {
2838
- Ne as Advantages,
2839
- Yn as AuthProvider,
2840
- $n as Banner,
2842
+ ve as Advantages,
2843
+ Gn as AuthProvider,
2844
+ Zn as Banner,
2841
2845
  Qe as BannerWithSeparateImg,
2842
- Wn as Benefit,
2846
+ Kn as Benefit,
2843
2847
  nn as Breadcrumbs,
2844
- Y as ButtonWithHandlers,
2845
- oo as Calculator,
2846
- Rn as CalculatorView,
2847
- to as DynamicForm,
2848
- ro as FallbacksView,
2848
+ z as ButtonWithHandlers,
2849
+ io as Calculator,
2850
+ _n as CalculatorView,
2851
+ ro as DynamicForm,
2852
+ no as FallbacksView,
2849
2853
  ht as FieldMapper,
2850
- Zn as Footer,
2854
+ Xn as Footer,
2851
2855
  Xr as HTMLParser,
2852
- ge as HTMLRenderer,
2853
- Kn as Header,
2854
- Gn as InterLinking,
2855
- Jn as LongBanner,
2856
- no as SeoHeader,
2857
- Xn as Stepper,
2858
- eo as UsefulInfo,
2856
+ be as HTMLRenderer,
2857
+ $n as Header,
2858
+ eo as InterLinking,
2859
+ Yn as LongBanner,
2860
+ oo as SeoHeader,
2861
+ Jn as Stepper,
2862
+ to as UsefulInfo,
2859
2863
  Yt as WIDGET_LIST,
2860
2864
  ut as getDynamicSchema,
2861
2865
  Gr as queryClient,
2862
- g as widgetIds
2866
+ b as widgetIds
2863
2867
  };
2864
2868
  //# sourceMappingURL=widget.js.map