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