@scbt-ecom/ui 0.71.0 → 0.71.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/widget.js CHANGED
@@ -1,152 +1,152 @@
1
- var gt = Object.defineProperty;
2
- var Oe = (t) => {
3
- throw TypeError(t);
1
+ var ge = Object.defineProperty;
2
+ var Ot = (e) => {
3
+ throw TypeError(e);
4
4
  };
5
- var jt = (t, e, n) => e in t ? gt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
6
- var ae = (t, e, n) => jt(t, typeof e != "symbol" ? e + "" : e, n), se = (t, e, n) => e.has(t) || Oe("Cannot " + n);
7
- var h = (t, e, n) => (se(t, e, "read from private field"), n ? n.call(t) : e.get(t)), C = (t, e, n) => e.has(t) ? Oe("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), y = (t, e, n, o) => (se(t, e, "write to private field"), o ? o.call(t, n) : e.set(t, n), n), q = (t, e, n) => (se(t, e, "access private method"), n);
8
- var pe = (t, e, n, o) => ({
5
+ var je = (e, t, r) => t in e ? ge(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
+ var at = (e, t, r) => je(e, typeof t != "symbol" ? t + "" : t, r), st = (e, t, r) => t.has(e) || Ot("Cannot " + r);
7
+ var h = (e, t, r) => (st(e, t, "read from private field"), r ? r.call(e) : t.get(e)), C = (e, t, r) => t.has(e) ? Ot("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, o) => (st(e, t, "write to private field"), o ? o.call(e, r) : t.set(e, r), r), A = (e, t, r) => (st(e, t, "access private method"), r);
8
+ var pt = (e, t, r, o) => ({
9
9
  set _(i) {
10
- y(t, e, i, n);
10
+ y(e, t, i, r);
11
11
  },
12
12
  get _() {
13
- return h(t, e, o);
13
+ return h(e, t, o);
14
14
  }
15
15
  });
16
- import { S as Ze, x as Xe, Q as yt, y as E, z as Se, E as st, F as kt, G as Be, J as D, T as wt, W as vt, X as Nt, Y as Ct, Z as Re, _ as _e, $ as It, a0 as He, a1 as Pe, a2 as Tt, j as r, B as Ce, c as F, R as S, n as Je, s as Mt, H, i as f, t as ge, q as Ie, L as Et, o as Te, A as oe, v as Ft, a3 as Ot, r as St, U as Ye, a4 as Me, a5 as Bt, M as Rt } from "./index-B-4hL4-d.js";
16
+ import { S as Zt, x as Xt, Q as ye, y as E, z as St, E as se, F as ke, G as Bt, J as D, T as we, W as ve, X as Ne, Y as Ce, Z as Rt, _ as _t, $ as Ie, a0 as Ht, a1 as Pt, a2 as Te, j as n, B as Ct, c as F, R as S, n as Jt, s as Me, H, i as f, t as gt, q as It, L as Ee, o as Tt, A as ot, v as Fe, a3 as Oe, r as Se, U as Yt, a4 as Mt, a5 as Be, M as Re } from "./index-Cgp0l1lv.js";
17
17
  import { T as s, c as d } from "./typeGuards-CSiImkUY.js";
18
- import * as le from "react";
19
- import { useCallback as Ge, useState as Q, useMemo as je, createElement as et, Fragment as _t, useEffect as tt, useRef as Ee, useReducer as Ht, memo as Fe, forwardRef as Pt } from "react";
20
- import { scrollToElement as Dt, createPhoneNumber as ye, getUuid as De, capitalize as Lt } from "./utils.js";
21
- import { i as rt } from "./isClient-C9aZtt2Q.js";
22
- import { u as Y, b as nt, a as zt, g as ot, F as Qt } from "./useDebounce-MaKPBuaC.js";
23
- import { o as Vt, z as At } from "./utils-k3uzuyeN.js";
24
- import { z as it, Z as at } from "./index-lfBvBrWg.js";
25
- import { a as qt, u as Ut } from "./useFieldsProgress-CeEaFp3Q.js";
26
- import { createPortal as dt } from "react-dom";
27
- var B, Ue, Wt = (Ue = class extends Ze {
28
- constructor(e = {}) {
18
+ import * as lt from "react";
19
+ import { useCallback as Gt, useState as z, useMemo as jt, createElement as te, Fragment as _e, useEffect as ee, useRef as Et, useReducer as He, memo as Ft, forwardRef as Pe } from "react";
20
+ import { scrollToElement as De, createPhoneNumber as yt, getUuid as Dt, capitalize as Le } from "./utils.js";
21
+ import { i as re } from "./isClient-C9aZtt2Q.js";
22
+ import { u as Y, b as ne, a as ze, g as oe, F as Qe } from "./useDebounce-MaKPBuaC.js";
23
+ import { o as Ve, z as Ae } from "./utils-k3uzuyeN.js";
24
+ import { z as ie, Z as ae } from "./index-lfBvBrWg.js";
25
+ import { a as qe, u as Ue } from "./useFieldsProgress-CeEaFp3Q.js";
26
+ import { createPortal as de } from "react-dom";
27
+ var B, Ut, We = (Ut = class extends Zt {
28
+ constructor(t = {}) {
29
29
  super();
30
30
  C(this, B);
31
- this.config = e, y(this, B, /* @__PURE__ */ new Map());
31
+ this.config = t, y(this, B, /* @__PURE__ */ new Map());
32
32
  }
33
- build(e, n, o) {
34
- const i = n.queryKey, a = n.queryHash ?? Xe(i, n);
33
+ build(t, r, o) {
34
+ const i = r.queryKey, a = r.queryHash ?? Xt(i, r);
35
35
  let l = this.get(a);
36
- return l || (l = new yt({
37
- client: e,
36
+ return l || (l = new ye({
37
+ client: t,
38
38
  queryKey: i,
39
39
  queryHash: a,
40
- options: e.defaultQueryOptions(n),
40
+ options: t.defaultQueryOptions(r),
41
41
  state: o,
42
- defaultOptions: e.getQueryDefaults(i)
42
+ defaultOptions: t.getQueryDefaults(i)
43
43
  }), this.add(l)), l;
44
44
  }
45
- add(e) {
46
- h(this, B).has(e.queryHash) || (h(this, B).set(e.queryHash, e), this.notify({
45
+ add(t) {
46
+ h(this, B).has(t.queryHash) || (h(this, B).set(t.queryHash, t), this.notify({
47
47
  type: "added",
48
- query: e
48
+ query: t
49
49
  }));
50
50
  }
51
- remove(e) {
52
- const n = h(this, B).get(e.queryHash);
53
- n && (e.destroy(), n === e && h(this, B).delete(e.queryHash), this.notify({ type: "removed", query: e }));
51
+ remove(t) {
52
+ const r = h(this, B).get(t.queryHash);
53
+ r && (t.destroy(), r === t && h(this, B).delete(t.queryHash), this.notify({ type: "removed", query: t }));
54
54
  }
55
55
  clear() {
56
56
  E.batch(() => {
57
- this.getAll().forEach((e) => {
58
- this.remove(e);
57
+ this.getAll().forEach((t) => {
58
+ this.remove(t);
59
59
  });
60
60
  });
61
61
  }
62
- get(e) {
63
- return h(this, B).get(e);
62
+ get(t) {
63
+ return h(this, B).get(t);
64
64
  }
65
65
  getAll() {
66
66
  return [...h(this, B).values()];
67
67
  }
68
- find(e) {
69
- const n = { exact: !0, ...e };
68
+ find(t) {
69
+ const r = { exact: !0, ...t };
70
70
  return this.getAll().find(
71
- (o) => Se(n, o)
71
+ (o) => St(r, o)
72
72
  );
73
73
  }
74
- findAll(e = {}) {
75
- const n = this.getAll();
76
- return Object.keys(e).length > 0 ? n.filter((o) => Se(e, o)) : n;
74
+ findAll(t = {}) {
75
+ const r = this.getAll();
76
+ return Object.keys(t).length > 0 ? r.filter((o) => St(t, o)) : r;
77
77
  }
78
- notify(e) {
78
+ notify(t) {
79
79
  E.batch(() => {
80
- this.listeners.forEach((n) => {
81
- n(e);
80
+ this.listeners.forEach((r) => {
81
+ r(t);
82
82
  });
83
83
  });
84
84
  }
85
85
  onFocus() {
86
86
  E.batch(() => {
87
- this.getAll().forEach((e) => {
88
- e.onFocus();
87
+ this.getAll().forEach((t) => {
88
+ t.onFocus();
89
89
  });
90
90
  });
91
91
  }
92
92
  onOnline() {
93
93
  E.batch(() => {
94
- this.getAll().forEach((e) => {
95
- e.onOnline();
94
+ this.getAll().forEach((t) => {
95
+ t.onOnline();
96
96
  });
97
97
  });
98
98
  }
99
- }, B = new WeakMap(), Ue), R, T, J, _, U, We, Kt = (We = class extends st {
100
- constructor(e) {
99
+ }, B = new WeakMap(), Ut), R, T, J, _, q, Wt, Ke = (Wt = class extends se {
100
+ constructor(t) {
101
101
  super();
102
102
  C(this, _);
103
103
  C(this, R);
104
104
  C(this, T);
105
105
  C(this, J);
106
- this.mutationId = e.mutationId, y(this, T, e.mutationCache), y(this, R, []), this.state = e.state || $t(), this.setOptions(e.options), this.scheduleGc();
106
+ this.mutationId = t.mutationId, y(this, T, t.mutationCache), y(this, R, []), this.state = t.state || $e(), this.setOptions(t.options), this.scheduleGc();
107
107
  }
108
- setOptions(e) {
109
- this.options = e, this.updateGcTime(this.options.gcTime);
108
+ setOptions(t) {
109
+ this.options = t, this.updateGcTime(this.options.gcTime);
110
110
  }
111
111
  get meta() {
112
112
  return this.options.meta;
113
113
  }
114
- addObserver(e) {
115
- h(this, R).includes(e) || (h(this, R).push(e), this.clearGcTimeout(), h(this, T).notify({
114
+ addObserver(t) {
115
+ h(this, R).includes(t) || (h(this, R).push(t), this.clearGcTimeout(), h(this, T).notify({
116
116
  type: "observerAdded",
117
117
  mutation: this,
118
- observer: e
118
+ observer: t
119
119
  }));
120
120
  }
121
- removeObserver(e) {
122
- y(this, R, h(this, R).filter((n) => n !== e)), this.scheduleGc(), h(this, T).notify({
121
+ removeObserver(t) {
122
+ y(this, R, h(this, R).filter((r) => r !== t)), this.scheduleGc(), h(this, T).notify({
123
123
  type: "observerRemoved",
124
124
  mutation: this,
125
- observer: e
125
+ observer: t
126
126
  });
127
127
  }
128
128
  optionalRemove() {
129
129
  h(this, R).length || (this.state.status === "pending" ? this.scheduleGc() : h(this, T).remove(this));
130
130
  }
131
131
  continue() {
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
132
+ var t;
133
+ return ((t = h(this, J)) == null ? void 0 : t.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
- async execute(e) {
137
- var a, l, u, m, x, p, c, g, k, v, I, P, G, V, N, M, A, Z, xe, ie;
138
- const n = () => {
139
- q(this, _, U).call(this, { type: "continue" });
136
+ async execute(t) {
137
+ var a, l, u, m, x, p, c, g, k, v, I, P, G, Q, N, M, V, Z, xt, it;
138
+ const r = () => {
139
+ A(this, _, q).call(this, { type: "continue" });
140
140
  };
141
- y(this, J, kt({
142
- fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
143
- onFail: (w, he) => {
144
- q(this, _, U).call(this, { type: "failed", failureCount: w, error: he });
141
+ y(this, J, ke({
142
+ fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
143
+ onFail: (w, ht) => {
144
+ A(this, _, q).call(this, { type: "failed", failureCount: w, error: ht });
145
145
  },
146
146
  onPause: () => {
147
- q(this, _, U).call(this, { type: "pause" });
147
+ A(this, _, q).call(this, { type: "pause" });
148
148
  },
149
- onContinue: n,
149
+ onContinue: r,
150
150
  retry: this.options.retry ?? 0,
151
151
  retryDelay: this.options.retryDelay,
152
152
  networkMode: this.options.networkMode,
@@ -155,18 +155,18 @@ var B, Ue, Wt = (Ue = class extends Ze {
155
155
  const o = this.state.status === "pending", i = !h(this, J).canStart();
156
156
  try {
157
157
  if (o)
158
- n();
158
+ r();
159
159
  else {
160
- q(this, _, U).call(this, { type: "pending", variables: e, isPaused: i }), await ((l = (a = h(this, T).config).onMutate) == null ? void 0 : l.call(
160
+ A(this, _, q).call(this, { type: "pending", variables: t, isPaused: i }), await ((l = (a = h(this, T).config).onMutate) == null ? void 0 : l.call(
161
161
  a,
162
- e,
162
+ t,
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, _, U).call(this, {
165
+ const ht = await ((m = (u = this.options).onMutate) == null ? void 0 : m.call(u, t));
166
+ ht !== this.state.context && A(this, _, q).call(this, {
167
167
  type: "pending",
168
- context: he,
169
- variables: e,
168
+ context: ht,
169
+ variables: t,
170
170
  isPaused: i
171
171
  });
172
172
  }
@@ -174,59 +174,59 @@ var B, Ue, Wt = (Ue = class extends Ze {
174
174
  return await ((p = (x = h(this, T).config).onSuccess) == null ? void 0 : p.call(
175
175
  x,
176
176
  w,
177
- e,
177
+ t,
178
178
  this.state.context,
179
179
  this
180
- )), await ((g = (c = this.options).onSuccess) == null ? void 0 : g.call(c, w, e, this.state.context)), await ((v = (k = h(this, T).config).onSettled) == null ? void 0 : v.call(
180
+ )), await ((g = (c = this.options).onSuccess) == null ? void 0 : g.call(c, w, t, this.state.context)), await ((v = (k = h(this, T).config).onSettled) == null ? void 0 : v.call(
181
181
  k,
182
182
  w,
183
183
  null,
184
184
  this.state.variables,
185
185
  this.state.context,
186
186
  this
187
- )), await ((P = (I = this.options).onSettled) == null ? void 0 : P.call(I, w, null, e, this.state.context)), q(this, _, U).call(this, { type: "success", data: w }), w;
187
+ )), await ((P = (I = this.options).onSettled) == null ? void 0 : P.call(I, w, null, t, this.state.context)), A(this, _, q).call(this, { type: "success", data: w }), w;
188
188
  } catch (w) {
189
189
  try {
190
- throw await ((V = (G = h(this, T).config).onError) == null ? void 0 : V.call(
190
+ throw await ((Q = (G = h(this, T).config).onError) == null ? void 0 : Q.call(
191
191
  G,
192
192
  w,
193
- e,
193
+ t,
194
194
  this.state.context,
195
195
  this
196
196
  )), await ((M = (N = this.options).onError) == null ? void 0 : M.call(
197
197
  N,
198
198
  w,
199
- e,
199
+ t,
200
200
  this.state.context
201
- )), await ((Z = (A = h(this, T).config).onSettled) == null ? void 0 : Z.call(
202
- A,
201
+ )), await ((Z = (V = h(this, T).config).onSettled) == null ? void 0 : Z.call(
202
+ V,
203
203
  void 0,
204
204
  w,
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(
209
- xe,
208
+ )), await ((it = (xt = this.options).onSettled) == null ? void 0 : it.call(
209
+ xt,
210
210
  void 0,
211
211
  w,
212
- e,
212
+ t,
213
213
  this.state.context
214
214
  )), w;
215
215
  } finally {
216
- q(this, _, U).call(this, { type: "error", error: w });
216
+ A(this, _, q).call(this, { type: "error", error: w });
217
217
  }
218
218
  } finally {
219
219
  h(this, T).runNext(this);
220
220
  }
221
221
  }
222
- }, R = new WeakMap(), T = new WeakMap(), J = new WeakMap(), _ = new WeakSet(), U = function(e) {
223
- const n = (o) => {
224
- switch (e.type) {
222
+ }, R = new WeakMap(), T = new WeakMap(), J = new WeakMap(), _ = new WeakSet(), q = function(t) {
223
+ const r = (o) => {
224
+ switch (t.type) {
225
225
  case "failed":
226
226
  return {
227
227
  ...o,
228
- failureCount: e.failureCount,
229
- failureReason: e.error
228
+ failureCount: t.failureCount,
229
+ failureReason: t.error
230
230
  };
231
231
  case "pause":
232
232
  return {
@@ -241,20 +241,20 @@ var B, Ue, Wt = (Ue = class extends Ze {
241
241
  case "pending":
242
242
  return {
243
243
  ...o,
244
- context: e.context,
244
+ context: t.context,
245
245
  data: void 0,
246
246
  failureCount: 0,
247
247
  failureReason: null,
248
248
  error: null,
249
- isPaused: e.isPaused,
249
+ isPaused: t.isPaused,
250
250
  status: "pending",
251
- variables: e.variables,
251
+ variables: t.variables,
252
252
  submittedAt: Date.now()
253
253
  };
254
254
  case "success":
255
255
  return {
256
256
  ...o,
257
- data: e.data,
257
+ data: t.data,
258
258
  failureCount: 0,
259
259
  failureReason: null,
260
260
  error: null,
@@ -265,25 +265,25 @@ var B, Ue, Wt = (Ue = class extends Ze {
265
265
  return {
266
266
  ...o,
267
267
  data: void 0,
268
- error: e.error,
268
+ error: t.error,
269
269
  failureCount: o.failureCount + 1,
270
- failureReason: e.error,
270
+ failureReason: t.error,
271
271
  isPaused: !1,
272
272
  status: "error"
273
273
  };
274
274
  }
275
275
  };
276
- this.state = n(this.state), E.batch(() => {
276
+ this.state = r(this.state), E.batch(() => {
277
277
  h(this, R).forEach((o) => {
278
- o.onMutationUpdate(e);
278
+ o.onMutationUpdate(t);
279
279
  }), h(this, T).notify({
280
280
  mutation: this,
281
281
  type: "updated",
282
- action: e
282
+ action: t
283
283
  });
284
284
  });
285
- }, We);
286
- function $t() {
285
+ }, Wt);
286
+ function $e() {
287
287
  return {
288
288
  context: void 0,
289
289
  data: void 0,
@@ -296,215 +296,215 @@ function $t() {
296
296
  submittedAt: 0
297
297
  };
298
298
  }
299
- var L, O, me, Ke, Zt = (Ke = class extends Ze {
300
- constructor(e = {}) {
299
+ var L, O, mt, Kt, Ze = (Kt = class extends Zt {
300
+ constructor(t = {}) {
301
301
  super();
302
302
  C(this, L);
303
303
  C(this, O);
304
- C(this, me);
305
- this.config = e, y(this, L, /* @__PURE__ */ new Set()), y(this, O, /* @__PURE__ */ new Map()), y(this, me, 0);
304
+ C(this, mt);
305
+ this.config = t, y(this, L, /* @__PURE__ */ new Set()), y(this, O, /* @__PURE__ */ new Map()), y(this, mt, 0);
306
306
  }
307
- build(e, n, o) {
308
- const i = new Kt({
307
+ build(t, r, o) {
308
+ const i = new Ke({
309
309
  mutationCache: this,
310
- mutationId: ++pe(this, me)._,
311
- options: e.defaultMutationOptions(n),
310
+ mutationId: ++pt(this, mt)._,
311
+ options: t.defaultMutationOptions(r),
312
312
  state: o
313
313
  });
314
314
  return this.add(i), i;
315
315
  }
316
- add(e) {
317
- h(this, L).add(e);
318
- const n = ce(e);
319
- if (typeof n == "string") {
320
- const o = h(this, O).get(n);
321
- o ? o.push(e) : h(this, O).set(n, [e]);
316
+ add(t) {
317
+ h(this, L).add(t);
318
+ const r = ct(t);
319
+ if (typeof r == "string") {
320
+ const o = h(this, O).get(r);
321
+ o ? o.push(t) : h(this, O).set(r, [t]);
322
322
  }
323
- this.notify({ type: "added", mutation: e });
323
+ this.notify({ type: "added", mutation: t });
324
324
  }
325
- remove(e) {
326
- if (h(this, L).delete(e)) {
327
- const n = ce(e);
328
- if (typeof n == "string") {
329
- const o = h(this, O).get(n);
325
+ remove(t) {
326
+ if (h(this, L).delete(t)) {
327
+ const r = ct(t);
328
+ if (typeof r == "string") {
329
+ const o = h(this, O).get(r);
330
330
  if (o)
331
331
  if (o.length > 1) {
332
- const i = o.indexOf(e);
332
+ const i = o.indexOf(t);
333
333
  i !== -1 && o.splice(i, 1);
334
- } else o[0] === e && h(this, O).delete(n);
334
+ } else o[0] === t && h(this, O).delete(r);
335
335
  }
336
336
  }
337
- this.notify({ type: "removed", mutation: e });
337
+ this.notify({ type: "removed", mutation: t });
338
338
  }
339
- canRun(e) {
340
- const n = ce(e);
341
- if (typeof n == "string") {
342
- const o = h(this, O).get(n), i = o == null ? void 0 : o.find(
339
+ canRun(t) {
340
+ const r = ct(t);
341
+ if (typeof r == "string") {
342
+ const o = h(this, O).get(r), i = o == null ? void 0 : o.find(
343
343
  (a) => a.state.status === "pending"
344
344
  );
345
- return !i || i === e;
345
+ return !i || i === t;
346
346
  } else
347
347
  return !0;
348
348
  }
349
- runNext(e) {
349
+ runNext(t) {
350
350
  var o;
351
- const n = ce(e);
352
- if (typeof n == "string") {
353
- const i = (o = h(this, O).get(n)) == null ? void 0 : o.find((a) => a !== e && a.state.isPaused);
351
+ const r = ct(t);
352
+ if (typeof r == "string") {
353
+ const i = (o = h(this, O).get(r)) == null ? void 0 : o.find((a) => a !== t && 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
359
  E.batch(() => {
360
- h(this, L).forEach((e) => {
361
- this.notify({ type: "removed", mutation: e });
360
+ h(this, L).forEach((t) => {
361
+ this.notify({ type: "removed", mutation: t });
362
362
  }), h(this, L).clear(), h(this, O).clear();
363
363
  });
364
364
  }
365
365
  getAll() {
366
366
  return Array.from(h(this, L));
367
367
  }
368
- find(e) {
369
- const n = { exact: !0, ...e };
368
+ find(t) {
369
+ const r = { exact: !0, ...t };
370
370
  return this.getAll().find(
371
- (o) => Be(n, o)
371
+ (o) => Bt(r, o)
372
372
  );
373
373
  }
374
- findAll(e = {}) {
375
- return this.getAll().filter((n) => Be(e, n));
374
+ findAll(t = {}) {
375
+ return this.getAll().filter((r) => Bt(t, r));
376
376
  }
377
- notify(e) {
377
+ notify(t) {
378
378
  E.batch(() => {
379
- this.listeners.forEach((n) => {
380
- n(e);
379
+ this.listeners.forEach((r) => {
380
+ r(t);
381
381
  });
382
382
  });
383
383
  }
384
384
  resumePausedMutations() {
385
- const e = this.getAll().filter((n) => n.state.isPaused);
385
+ const t = this.getAll().filter((r) => r.state.isPaused);
386
386
  return E.batch(
387
387
  () => Promise.all(
388
- e.map((n) => n.continue().catch(D))
388
+ t.map((r) => r.continue().catch(D))
389
389
  )
390
390
  );
391
391
  }
392
- }, L = new WeakMap(), O = new WeakMap(), me = new WeakMap(), Ke);
393
- function ce(t) {
394
- var e;
395
- return (e = t.options.scope) == null ? void 0 : e.id;
392
+ }, L = new WeakMap(), O = new WeakMap(), mt = new WeakMap(), Kt);
393
+ function ct(e) {
394
+ var t;
395
+ return (t = e.options.scope) == null ? void 0 : t.id;
396
396
  }
397
- function Le(t) {
397
+ function Lt(e) {
398
398
  return {
399
- onFetch: (e, n) => {
399
+ onFetch: (t, r) => {
400
400
  var p, c, g, k, v;
401
- const o = e.options, i = (g = (c = (p = e.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : g.direction, a = ((k = e.state.data) == null ? void 0 : k.pages) || [], l = ((v = e.state.data) == null ? void 0 : v.pageParams) || [];
401
+ const o = t.options, i = (g = (c = (p = t.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : g.direction, a = ((k = t.state.data) == null ? void 0 : k.pages) || [], l = ((v = t.state.data) == null ? void 0 : v.pageParams) || [];
402
402
  let u = { pages: [], pageParams: [] }, m = 0;
403
403
  const x = async () => {
404
404
  let I = !1;
405
405
  const P = (N) => {
406
406
  Object.defineProperty(N, "signal", {
407
407
  enumerable: !0,
408
- get: () => (e.signal.aborted ? I = !0 : e.signal.addEventListener("abort", () => {
408
+ get: () => (t.signal.aborted ? I = !0 : t.signal.addEventListener("abort", () => {
409
409
  I = !0;
410
- }), e.signal)
410
+ }), t.signal)
411
411
  });
412
- }, G = wt(e.options, e.fetchOptions), V = async (N, M, A) => {
412
+ }, G = we(t.options, t.fetchOptions), Q = async (N, M, V) => {
413
413
  if (I)
414
414
  return Promise.reject();
415
415
  if (M == null && N.pages.length)
416
416
  return Promise.resolve(N);
417
417
  const Z = {
418
- client: e.client,
419
- queryKey: e.queryKey,
418
+ client: t.client,
419
+ queryKey: t.queryKey,
420
420
  pageParam: M,
421
- direction: A ? "backward" : "forward",
422
- meta: e.options.meta
421
+ direction: V ? "backward" : "forward",
422
+ meta: t.options.meta
423
423
  };
424
424
  P(Z);
425
- const xe = await G(
425
+ const xt = await G(
426
426
  Z
427
- ), { maxPages: ie } = e.options, w = A ? vt : Nt;
427
+ ), { maxPages: it } = t.options, w = V ? ve : Ne;
428
428
  return {
429
- pages: w(N.pages, xe, ie),
430
- pageParams: w(N.pageParams, M, ie)
429
+ pages: w(N.pages, xt, it),
430
+ pageParams: w(N.pageParams, M, it)
431
431
  };
432
432
  };
433
433
  if (i && a.length) {
434
- const N = i === "backward", M = N ? Xt : ze, A = {
434
+ const N = i === "backward", M = N ? Xe : zt, V = {
435
435
  pages: a,
436
436
  pageParams: l
437
- }, Z = M(o, A);
438
- u = await V(A, Z, N);
437
+ }, Z = M(o, V);
438
+ u = await Q(V, Z, N);
439
439
  } else {
440
- const N = t ?? a.length;
440
+ const N = e ?? a.length;
441
441
  do {
442
- const M = m === 0 ? l[0] ?? o.initialPageParam : ze(o, u);
442
+ const M = m === 0 ? l[0] ?? o.initialPageParam : zt(o, u);
443
443
  if (m > 0 && M == null)
444
444
  break;
445
- u = await V(u, M), m++;
445
+ u = await Q(u, M), m++;
446
446
  } while (m < N);
447
447
  }
448
448
  return u;
449
449
  };
450
- e.options.persister ? e.fetchFn = () => {
450
+ t.options.persister ? t.fetchFn = () => {
451
451
  var I, P;
452
- return (P = (I = e.options).persister) == null ? void 0 : P.call(
452
+ return (P = (I = t.options).persister) == null ? void 0 : P.call(
453
453
  I,
454
454
  x,
455
455
  {
456
- client: e.client,
457
- queryKey: e.queryKey,
458
- meta: e.options.meta,
459
- signal: e.signal
456
+ client: t.client,
457
+ queryKey: t.queryKey,
458
+ meta: t.options.meta,
459
+ signal: t.signal
460
460
  },
461
- n
461
+ r
462
462
  );
463
- } : e.fetchFn = x;
463
+ } : t.fetchFn = x;
464
464
  }
465
465
  };
466
466
  }
467
- function ze(t, { pages: e, pageParams: n }) {
468
- const o = e.length - 1;
469
- return e.length > 0 ? t.getNextPageParam(
470
- e[o],
471
- e,
472
- n[o],
473
- n
467
+ function zt(e, { pages: t, pageParams: r }) {
468
+ const o = t.length - 1;
469
+ return t.length > 0 ? e.getNextPageParam(
470
+ t[o],
471
+ t,
472
+ r[o],
473
+ r
474
474
  ) : void 0;
475
475
  }
476
- function Xt(t, { pages: e, pageParams: n }) {
476
+ function Xe(e, { pages: t, pageParams: r }) {
477
477
  var o;
478
- return e.length > 0 ? (o = t.getPreviousPageParam) == null ? void 0 : o.call(t, e[0], e, n[0], n) : void 0;
478
+ return t.length > 0 ? (o = e.getPreviousPageParam) == null ? void 0 : o.call(e, t[0], t, r[0], r) : void 0;
479
479
  }
480
- var j, W, K, ee, te, $, re, ne, $e, Jt = ($e = class {
481
- constructor(t = {}) {
480
+ var j, U, W, tt, et, K, rt, nt, $t, Je = ($t = class {
481
+ constructor(e = {}) {
482
482
  C(this, j);
483
+ C(this, U);
483
484
  C(this, W);
485
+ C(this, tt);
486
+ C(this, et);
484
487
  C(this, K);
485
- C(this, ee);
486
- C(this, te);
487
- C(this, $);
488
- C(this, re);
489
- C(this, ne);
490
- y(this, j, t.queryCache || new Wt()), y(this, W, t.mutationCache || new Zt()), y(this, K, t.defaultOptions || {}), y(this, ee, /* @__PURE__ */ new Map()), y(this, te, /* @__PURE__ */ new Map()), y(this, $, 0);
488
+ C(this, rt);
489
+ C(this, nt);
490
+ y(this, j, e.queryCache || new We()), y(this, U, e.mutationCache || new Ze()), y(this, W, e.defaultOptions || {}), y(this, tt, /* @__PURE__ */ new Map()), y(this, et, /* @__PURE__ */ new Map()), y(this, K, 0);
491
491
  }
492
492
  mount() {
493
- pe(this, $)._++, h(this, $) === 1 && (y(this, re, Ct.subscribe(async (t) => {
494
- t && (await this.resumePausedMutations(), h(this, j).onFocus());
495
- })), y(this, ne, Re.subscribe(async (t) => {
496
- t && (await this.resumePausedMutations(), h(this, j).onOnline());
493
+ pt(this, K)._++, h(this, K) === 1 && (y(this, rt, Ce.subscribe(async (e) => {
494
+ e && (await this.resumePausedMutations(), h(this, j).onFocus());
495
+ })), y(this, nt, Rt.subscribe(async (e) => {
496
+ e && (await this.resumePausedMutations(), h(this, j).onOnline());
497
497
  })));
498
498
  }
499
499
  unmount() {
500
- var t, e;
501
- pe(this, $)._--, h(this, $) === 0 && ((t = h(this, re)) == null || t.call(this), y(this, re, void 0), (e = h(this, ne)) == null || e.call(this), y(this, ne, void 0));
500
+ var e, t;
501
+ pt(this, K)._--, h(this, K) === 0 && ((e = h(this, rt)) == null || e.call(this), y(this, rt, void 0), (t = h(this, nt)) == null || t.call(this), y(this, nt, void 0));
502
502
  }
503
- isFetching(t) {
504
- return h(this, j).findAll({ ...t, fetchStatus: "fetching" }).length;
503
+ isFetching(e) {
504
+ return h(this, j).findAll({ ...e, fetchStatus: "fetching" }).length;
505
505
  }
506
- isMutating(t) {
507
- return h(this, W).findAll({ ...t, status: "pending" }).length;
506
+ isMutating(e) {
507
+ return h(this, U).findAll({ ...e, status: "pending" }).length;
508
508
  }
509
509
  /**
510
510
  * Imperative (non-reactive) way to retrieve data for a QueryKey.
@@ -513,178 +513,178 @@ var j, W, K, ee, te, $, re, ne, $e, Jt = ($e = class {
513
513
  * Hint: Do not use this function inside a component, because it won't receive updates.
514
514
  * Use `useQuery` to create a `QueryObserver` that subscribes to changes.
515
515
  */
516
- getQueryData(t) {
517
- var n;
518
- const e = this.defaultQueryOptions({ queryKey: t });
519
- return (n = h(this, j).get(e.queryHash)) == null ? void 0 : n.state.data;
520
- }
521
- ensureQueryData(t) {
522
- const e = this.defaultQueryOptions(t), n = h(this, j).build(this, e), o = n.state.data;
523
- return o === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && n.isStaleByTime(_e(e.staleTime, n)) && this.prefetchQuery(e), Promise.resolve(o));
524
- }
525
- getQueriesData(t) {
526
- return h(this, j).findAll(t).map(({ queryKey: e, state: n }) => {
527
- const o = n.data;
528
- return [e, o];
516
+ getQueryData(e) {
517
+ var r;
518
+ const t = this.defaultQueryOptions({ queryKey: e });
519
+ return (r = h(this, j).get(t.queryHash)) == null ? void 0 : r.state.data;
520
+ }
521
+ ensureQueryData(e) {
522
+ const t = this.defaultQueryOptions(e), r = h(this, j).build(this, t), o = r.state.data;
523
+ return o === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(_t(t.staleTime, r)) && this.prefetchQuery(t), Promise.resolve(o));
524
+ }
525
+ getQueriesData(e) {
526
+ return h(this, j).findAll(e).map(({ queryKey: t, state: r }) => {
527
+ const o = r.data;
528
+ return [t, o];
529
529
  });
530
530
  }
531
- setQueryData(t, e, n) {
532
- const o = this.defaultQueryOptions({ queryKey: t }), i = h(this, j).get(
531
+ setQueryData(e, t, r) {
532
+ const o = this.defaultQueryOptions({ queryKey: e }), i = h(this, j).get(
533
533
  o.queryHash
534
- ), a = i == null ? void 0 : i.state.data, l = It(e, a);
534
+ ), a = i == null ? void 0 : i.state.data, l = Ie(t, a);
535
535
  if (l !== void 0)
536
- return h(this, j).build(this, o).setData(l, { ...n, manual: !0 });
536
+ return h(this, j).build(this, o).setData(l, { ...r, manual: !0 });
537
537
  }
538
- setQueriesData(t, e, n) {
538
+ setQueriesData(e, t, r) {
539
539
  return E.batch(
540
- () => h(this, j).findAll(t).map(({ queryKey: o }) => [
540
+ () => h(this, j).findAll(e).map(({ queryKey: o }) => [
541
541
  o,
542
- this.setQueryData(o, e, n)
542
+ this.setQueryData(o, t, r)
543
543
  ])
544
544
  );
545
545
  }
546
- getQueryState(t) {
547
- var n;
548
- const e = this.defaultQueryOptions({ queryKey: t });
549
- return (n = h(this, j).get(
550
- e.queryHash
551
- )) == null ? void 0 : n.state;
546
+ getQueryState(e) {
547
+ var r;
548
+ const t = this.defaultQueryOptions({ queryKey: e });
549
+ return (r = h(this, j).get(
550
+ t.queryHash
551
+ )) == null ? void 0 : r.state;
552
552
  }
553
- removeQueries(t) {
554
- const e = h(this, j);
553
+ removeQueries(e) {
554
+ const t = h(this, j);
555
555
  E.batch(() => {
556
- e.findAll(t).forEach((n) => {
557
- e.remove(n);
556
+ t.findAll(e).forEach((r) => {
557
+ t.remove(r);
558
558
  });
559
559
  });
560
560
  }
561
- resetQueries(t, e) {
562
- const n = h(this, j);
563
- return E.batch(() => (n.findAll(t).forEach((o) => {
561
+ resetQueries(e, t) {
562
+ const r = h(this, j);
563
+ return E.batch(() => (r.findAll(e).forEach((o) => {
564
564
  o.reset();
565
565
  }), this.refetchQueries(
566
566
  {
567
567
  type: "active",
568
- ...t
568
+ ...e
569
569
  },
570
- e
570
+ t
571
571
  )));
572
572
  }
573
- cancelQueries(t, e = {}) {
574
- const n = { revert: !0, ...e }, o = E.batch(
575
- () => h(this, j).findAll(t).map((i) => i.cancel(n))
573
+ cancelQueries(e, t = {}) {
574
+ const r = { revert: !0, ...t }, o = E.batch(
575
+ () => h(this, j).findAll(e).map((i) => i.cancel(r))
576
576
  );
577
577
  return Promise.all(o).then(D).catch(D);
578
578
  }
579
- invalidateQueries(t, e = {}) {
580
- return E.batch(() => (h(this, j).findAll(t).forEach((n) => {
581
- n.invalidate();
582
- }), (t == null ? void 0 : t.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
579
+ invalidateQueries(e, t = {}) {
580
+ return E.batch(() => (h(this, j).findAll(e).forEach((r) => {
581
+ r.invalidate();
582
+ }), (e == null ? void 0 : e.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
583
583
  {
584
- ...t,
585
- type: (t == null ? void 0 : t.refetchType) ?? (t == null ? void 0 : t.type) ?? "active"
584
+ ...e,
585
+ type: (e == null ? void 0 : e.refetchType) ?? (e == null ? void 0 : e.type) ?? "active"
586
586
  },
587
- e
587
+ t
588
588
  )));
589
589
  }
590
- refetchQueries(t, e = {}) {
591
- const n = {
592
- ...e,
593
- cancelRefetch: e.cancelRefetch ?? !0
590
+ refetchQueries(e, t = {}) {
591
+ const r = {
592
+ ...t,
593
+ cancelRefetch: t.cancelRefetch ?? !0
594
594
  }, o = E.batch(
595
- () => h(this, j).findAll(t).filter((i) => !i.isDisabled()).map((i) => {
596
- let a = i.fetch(void 0, n);
597
- return n.throwOnError || (a = a.catch(D)), i.state.fetchStatus === "paused" ? Promise.resolve() : a;
595
+ () => h(this, j).findAll(e).filter((i) => !i.isDisabled()).map((i) => {
596
+ let a = i.fetch(void 0, r);
597
+ return r.throwOnError || (a = a.catch(D)), i.state.fetchStatus === "paused" ? Promise.resolve() : a;
598
598
  })
599
599
  );
600
600
  return Promise.all(o).then(D);
601
601
  }
602
- fetchQuery(t) {
603
- const e = this.defaultQueryOptions(t);
604
- e.retry === void 0 && (e.retry = !1);
605
- const n = h(this, j).build(this, e);
606
- return n.isStaleByTime(
607
- _e(e.staleTime, n)
608
- ) ? n.fetch(e) : Promise.resolve(n.state.data);
602
+ fetchQuery(e) {
603
+ const t = this.defaultQueryOptions(e);
604
+ t.retry === void 0 && (t.retry = !1);
605
+ const r = h(this, j).build(this, t);
606
+ return r.isStaleByTime(
607
+ _t(t.staleTime, r)
608
+ ) ? r.fetch(t) : Promise.resolve(r.state.data);
609
609
  }
610
- prefetchQuery(t) {
611
- return this.fetchQuery(t).then(D).catch(D);
610
+ prefetchQuery(e) {
611
+ return this.fetchQuery(e).then(D).catch(D);
612
612
  }
613
- fetchInfiniteQuery(t) {
614
- return t.behavior = Le(t.pages), this.fetchQuery(t);
613
+ fetchInfiniteQuery(e) {
614
+ return e.behavior = Lt(e.pages), this.fetchQuery(e);
615
615
  }
616
- prefetchInfiniteQuery(t) {
617
- return this.fetchInfiniteQuery(t).then(D).catch(D);
616
+ prefetchInfiniteQuery(e) {
617
+ return this.fetchInfiniteQuery(e).then(D).catch(D);
618
618
  }
619
- ensureInfiniteQueryData(t) {
620
- return t.behavior = Le(t.pages), this.ensureQueryData(t);
619
+ ensureInfiniteQueryData(e) {
620
+ return e.behavior = Lt(e.pages), this.ensureQueryData(e);
621
621
  }
622
622
  resumePausedMutations() {
623
- return Re.isOnline() ? h(this, W).resumePausedMutations() : Promise.resolve();
623
+ return Rt.isOnline() ? h(this, U).resumePausedMutations() : Promise.resolve();
624
624
  }
625
625
  getQueryCache() {
626
626
  return h(this, j);
627
627
  }
628
628
  getMutationCache() {
629
- return h(this, W);
629
+ return h(this, U);
630
630
  }
631
631
  getDefaultOptions() {
632
- return h(this, K);
632
+ return h(this, W);
633
633
  }
634
- setDefaultOptions(t) {
635
- y(this, K, t);
634
+ setDefaultOptions(e) {
635
+ y(this, W, e);
636
636
  }
637
- setQueryDefaults(t, e) {
638
- h(this, ee).set(He(t), {
639
- queryKey: t,
640
- defaultOptions: e
637
+ setQueryDefaults(e, t) {
638
+ h(this, tt).set(Ht(e), {
639
+ queryKey: e,
640
+ defaultOptions: t
641
641
  });
642
642
  }
643
- getQueryDefaults(t) {
644
- const e = [...h(this, ee).values()], n = {};
645
- return e.forEach((o) => {
646
- Pe(t, o.queryKey) && Object.assign(n, o.defaultOptions);
647
- }), n;
643
+ getQueryDefaults(e) {
644
+ const t = [...h(this, tt).values()], r = {};
645
+ return t.forEach((o) => {
646
+ Pt(e, o.queryKey) && Object.assign(r, o.defaultOptions);
647
+ }), r;
648
648
  }
649
- setMutationDefaults(t, e) {
650
- h(this, te).set(He(t), {
651
- mutationKey: t,
652
- defaultOptions: e
649
+ setMutationDefaults(e, t) {
650
+ h(this, et).set(Ht(e), {
651
+ mutationKey: e,
652
+ defaultOptions: t
653
653
  });
654
654
  }
655
- getMutationDefaults(t) {
656
- const e = [...h(this, te).values()], n = {};
657
- return e.forEach((o) => {
658
- Pe(t, o.mutationKey) && Object.assign(n, o.defaultOptions);
659
- }), n;
655
+ getMutationDefaults(e) {
656
+ const t = [...h(this, et).values()], r = {};
657
+ return t.forEach((o) => {
658
+ Pt(e, o.mutationKey) && Object.assign(r, o.defaultOptions);
659
+ }), r;
660
660
  }
661
- defaultQueryOptions(t) {
662
- if (t._defaulted)
663
- return t;
664
- const e = {
665
- ...h(this, K).queries,
666
- ...this.getQueryDefaults(t.queryKey),
667
- ...t,
661
+ defaultQueryOptions(e) {
662
+ if (e._defaulted)
663
+ return e;
664
+ const t = {
665
+ ...h(this, W).queries,
666
+ ...this.getQueryDefaults(e.queryKey),
667
+ ...e,
668
668
  _defaulted: !0
669
669
  };
670
- return e.queryHash || (e.queryHash = Xe(
671
- e.queryKey,
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 === Tt && (e.enabled = !1), e;
674
- }
675
- defaultMutationOptions(t) {
676
- return t != null && t._defaulted ? t : {
677
- ...h(this, K).mutations,
678
- ...(t == null ? void 0 : t.mutationKey) && this.getMutationDefaults(t.mutationKey),
679
- ...t,
670
+ return t.queryHash || (t.queryHash = Xt(
671
+ t.queryKey,
672
+ t
673
+ )), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === Te && (t.enabled = !1), t;
674
+ }
675
+ defaultMutationOptions(e) {
676
+ return e != null && e._defaulted ? e : {
677
+ ...h(this, W).mutations,
678
+ ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
679
+ ...e,
680
680
  _defaulted: !0
681
681
  };
682
682
  }
683
683
  clear() {
684
- h(this, j).clear(), h(this, W).clear();
684
+ h(this, j).clear(), h(this, U).clear();
685
685
  }
686
- }, j = new WeakMap(), W = new WeakMap(), K = new WeakMap(), ee = new WeakMap(), te = new WeakMap(), $ = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), $e);
687
- const Yt = [
686
+ }, j = new WeakMap(), U = new WeakMap(), W = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), K = new WeakMap(), rt = new WeakMap(), nt = new WeakMap(), $t);
687
+ const Ye = [
688
688
  "header",
689
689
  "footer",
690
690
  "interLinking",
@@ -696,44 +696,44 @@ const Yt = [
696
696
  "form",
697
697
  "seoHeader",
698
698
  "calculator"
699
- ], b = Yt.reduce(
700
- (t, e) => (t[e] = e, t),
699
+ ], b = Ye.reduce(
700
+ (e, t) => (e[t] = t, e),
701
701
  {}
702
- ), Gt = ["getFioSchema"], lt = (t, e, n) => {
703
- const o = t[e];
702
+ ), Ge = ["getFioSchema"], le = (e, t, r) => {
703
+ const o = e[t];
704
704
  if (s.isNil(o))
705
- throw new Error(`validation for type ${String(e)} not found`);
705
+ throw new Error(`validation for type ${String(t)} not found`);
706
706
  if (!s.isFunction(o))
707
- throw new Error(`Cannot generate ${String(e)} because is not a function`);
708
- return o(n);
709
- }, er = (t, e) => lt(it.base, t, e), tr = (t, e) => lt(it.dadata, t, e), ut = (t) => {
710
- const n = t.map((o) => ({ name: o.args.name, validation: o.args.validation })).reduce((o, i) => {
711
- const a = Gt.includes(i.validation.type) ? tr(
707
+ throw new Error(`Cannot generate ${String(t)} because is not a function`);
708
+ return o(r);
709
+ }, tr = (e, t) => le(ie.base, e, t), er = (e, t) => le(ie.dadata, e, t), ue = (e) => {
710
+ const r = e.map((o) => ({ name: o.args.name, validation: o.args.validation })).reduce((o, i) => {
711
+ const a = Ge.includes(i.validation.type) ? er(
712
712
  i.validation.type,
713
713
  i.validation.args
714
- ) : er(
714
+ ) : tr(
715
715
  i.validation.type,
716
716
  i.validation.args
717
717
  );
718
718
  return o[i.name] = a, o;
719
719
  }, {});
720
- return Vt(n);
721
- }, rr = (t) => Ge(() => {
722
- switch (t.handler) {
720
+ return Ve(r);
721
+ }, rr = (e) => Gt(() => {
722
+ switch (e.handler) {
723
723
  case "navigate": {
724
- const { url: n, target: o, rel: i } = t;
725
- rt && (window == null || window.open(n, o, i));
724
+ const { url: r, target: o, rel: i } = e;
725
+ re && (window == null || window.open(r, o, i));
726
726
  break;
727
727
  }
728
728
  case "scroll": {
729
- const { widgetId: n } = t ?? "";
730
- Dt({ widgetId: n });
729
+ const { widgetId: r } = e ?? "";
730
+ De({ widgetId: r });
731
731
  break;
732
732
  }
733
733
  }
734
- }, [t]), z = ({ handlerOptions: t, className: e, ...n }) => {
735
- const o = rr(t);
736
- return /* @__PURE__ */ r.jsx(Ce, { className: d(e), onClick: o, ...n, children: n.children });
734
+ }, [e]), $ = ({ handlerOptions: e, className: t, ...r }) => {
735
+ const o = rr(e);
736
+ return /* @__PURE__ */ n.jsx(Ct, { className: d(t), onClick: o, ...r, children: r.children });
737
737
  }, nr = F(
738
738
  "flex flex-col justify-between overflow-hidden rounded-md bg-color-blue-grey-100 py-6 desktop:flex-row desktop:px-0 desktop:py-0",
739
739
  {
@@ -746,9 +746,9 @@ const Yt = [
746
746
  }
747
747
  }
748
748
  ), or = ({
749
- subtitle: t,
750
- title: e,
751
- img: n,
749
+ subtitle: e,
750
+ title: t,
751
+ img: r,
752
752
  mobileImg: o,
753
753
  classes: i,
754
754
  withButton: a,
@@ -757,29 +757,29 @@ const Yt = [
757
757
  color: m
758
758
  }) => {
759
759
  const { isDesktop: x } = Y();
760
- return /* @__PURE__ */ r.jsxs(
760
+ return /* @__PURE__ */ n.jsxs(
761
761
  "li",
762
762
  {
763
763
  style: { backgroundColor: m ?? "#F3F4F7" },
764
764
  className: d(nr({ variant: u }), { "pb-0": o }, { "pb-12": !o }, i == null ? void 0 : i.root),
765
765
  children: [
766
- /* @__PURE__ */ r.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: [
767
- /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col gap-4", i == null ? void 0 : i.textContainer), children: [
768
- /* @__PURE__ */ r.jsx("div", { dangerouslySetInnerHTML: { __html: e }, className: d("desktop:desk-title-bold-s", i == null ? void 0 : i.title) }),
769
- /* @__PURE__ */ r.jsx(
766
+ /* @__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: [
767
+ /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-4", i == null ? void 0 : i.textContainer), children: [
768
+ /* @__PURE__ */ n.jsx("div", { dangerouslySetInnerHTML: { __html: t }, className: d("desktop:desk-title-bold-s", i == null ? void 0 : i.title) }),
769
+ /* @__PURE__ */ n.jsx(
770
770
  "div",
771
771
  {
772
- dangerouslySetInnerHTML: { __html: t },
772
+ dangerouslySetInnerHTML: { __html: e },
773
773
  className: d("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l", i == null ? void 0 : i.subtitle)
774
774
  }
775
775
  )
776
776
  ] }),
777
- a && x && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ r.jsx(z, { intent: "primary", className: d("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...l })
777
+ a && x && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ n.jsx($, { intent: "primary", className: d("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...l })
778
778
  ] }),
779
- (o || x) && n && /* @__PURE__ */ r.jsx("div", { className: d("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: n && "url" in n && s.isObject(n) ? /* @__PURE__ */ r.jsx("img", { className: d("h-[246px] object-cover", i == null ? void 0 : i.img), src: n.url, alt: n.alt }) : n })
779
+ (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 && s.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 })
780
780
  ]
781
781
  },
782
- e
782
+ t
783
783
  );
784
784
  }, ir = F("grid gap-4", {
785
785
  variants: {
@@ -789,37 +789,37 @@ const Yt = [
789
789
  fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
790
790
  }
791
791
  }
792
- }), Kn = ({ headline: t, details: e, variant: n, classes: o }) => /* @__PURE__ */ r.jsx("section", { id: b.benefit, "data-test-id": b.benefit, className: d("pb-20", o == null ? void 0 : o.root), children: /* @__PURE__ */ r.jsxs(S, { className: o == null ? void 0 : o.container, children: [
793
- /* @__PURE__ */ r.jsx(
792
+ }), Kn = ({ headline: e, details: t, variant: r, classes: o }) => /* @__PURE__ */ n.jsx("section", { id: b.benefit, "data-test-id": b.benefit, className: d("pb-20", o == null ? void 0 : o.root), children: /* @__PURE__ */ n.jsxs(S, { className: o == null ? void 0 : o.container, children: [
793
+ /* @__PURE__ */ n.jsx(
794
794
  "div",
795
795
  {
796
- dangerouslySetInnerHTML: { __html: t },
796
+ dangerouslySetInnerHTML: { __html: e },
797
797
  className: d("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", o == null ? void 0 : o.heading)
798
798
  }
799
799
  ),
800
- /* @__PURE__ */ r.jsx("ul", { className: d(ir({ variant: n }), o == null ? void 0 : o.grid), children: e == null ? void 0 : e.map((i) => /* @__PURE__ */ r.jsx(or, { variant: n, classes: o == null ? void 0 : o.item, ...i }, i.title)) })
801
- ] }) }), ar = ({ variant: t, details: e }) => {
802
- switch (t) {
800
+ /* @__PURE__ */ n.jsx("ul", { className: d(ir({ variant: r }), o == null ? void 0 : o.grid), children: t == null ? void 0 : t.map((i) => /* @__PURE__ */ n.jsx(or, { variant: r, classes: o == null ? void 0 : o.item, ...i }, i.title)) })
801
+ ] }) }), ar = ({ variant: e, details: t }) => {
802
+ switch (e) {
803
803
  case "withButton":
804
- return /* @__PURE__ */ r.jsx(z, { ...e });
804
+ return /* @__PURE__ */ n.jsx($, { ...t });
805
805
  case "withPhone":
806
- return /* @__PURE__ */ r.jsx(Je, { classes: { root: "items-end" }, ...e, phone: ye(e.phone) });
806
+ return /* @__PURE__ */ n.jsx(Jt, { classes: { root: "items-end" }, ...t, phone: yt(t.phone) });
807
807
  default:
808
808
  return null;
809
809
  }
810
- }, $n = (t) => {
811
- const { logoPath: e = "/", logoType: n = "main", classes: o } = t;
812
- return /* @__PURE__ */ r.jsx(
810
+ }, $n = (e) => {
811
+ const { logoPath: t = "/", logoType: r = "main", classes: o } = e;
812
+ return /* @__PURE__ */ n.jsx(
813
813
  "header",
814
814
  {
815
815
  id: b.header,
816
816
  "data-test-id": b.header,
817
817
  className: d("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", o == null ? void 0 : o.header),
818
- children: /* @__PURE__ */ r.jsx(S, { className: d(o == null ? void 0 : o.container), children: /* @__PURE__ */ r.jsxs("div", { className: d("flex items-center justify-between gap-5", o == null ? void 0 : o.wrapper), children: [
819
- /* @__PURE__ */ r.jsx(
818
+ 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: [
819
+ /* @__PURE__ */ n.jsx(
820
820
  "a",
821
821
  {
822
- href: e,
822
+ href: t,
823
823
  "aria-label": "logo",
824
824
  target: "_blank",
825
825
  rel: "noreferrer",
@@ -827,17 +827,17 @@ const Yt = [
827
827
  "flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
828
828
  o == null ? void 0 : o.logo
829
829
  ),
830
- children: Mt[n]
830
+ children: Me[r]
831
831
  }
832
832
  ),
833
- ar(t)
833
+ ar(e)
834
834
  ] }) })
835
835
  }
836
836
  );
837
837
  }, dr = ({
838
- headTitle: t,
839
- subtitle: e,
840
- buttonsConfig: n,
838
+ headTitle: e,
839
+ subtitle: t,
840
+ buttonsConfig: r,
841
841
  advantages: o,
842
842
  classes: i,
843
843
  imgMobile: a,
@@ -845,18 +845,18 @@ const Yt = [
845
845
  color: u
846
846
  }) => {
847
847
  var I;
848
- const { isDesktop: m, isMobile: x } = Y(), { primary: p, secondary: c } = n || {}, g = a && "url" in a && s.isObject(a) ? /* @__PURE__ */ r.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: a.url }) : a, k = l && "url" in l && s.isObject(l) ? /* @__PURE__ */ r.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: l.url }) : l, v = /* @__PURE__ */ r.jsx(
848
+ const { isDesktop: m, isMobile: x } = Y(), { primary: p, secondary: c } = r || {}, g = 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, k = l && "url" in l && s.isObject(l) ? /* @__PURE__ */ n.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: l.url }) : l, v = /* @__PURE__ */ n.jsx(
849
849
  "div",
850
850
  {
851
851
  className: d(
852
852
  "flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
853
853
  i == null ? void 0 : i.advantageContainer
854
854
  ),
855
- children: (o == null ? void 0 : o.details) && ((I = o == null ? void 0 : o.details) == null ? void 0 : I.items.length) > 0 && /* @__PURE__ */ r.jsx(ve, { ...o })
855
+ children: (o == null ? void 0 : o.details) && ((I = o == null ? void 0 : o.details) == null ? void 0 : I.items.length) > 0 && /* @__PURE__ */ n.jsx(vt, { ...o })
856
856
  }
857
857
  );
858
- return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
859
- /* @__PURE__ */ r.jsxs(
858
+ return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
859
+ /* @__PURE__ */ n.jsxs(
860
860
  "section",
861
861
  {
862
862
  id: b.banner,
@@ -864,26 +864,26 @@ const Yt = [
864
864
  style: { backgroundColor: u ?? "#d9edff" },
865
865
  className: d("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
866
866
  children: [
867
- /* @__PURE__ */ r.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: x ? g : k }),
868
- /* @__PURE__ */ r.jsxs(S, { className: d("h-full", i == null ? void 0 : i.container), children: [
869
- /* @__PURE__ */ r.jsx("div", { className: d("flex h-full", i == null ? void 0 : i.wrapper), children: /* @__PURE__ */ r.jsxs("div", { className: d("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", i == null ? void 0 : i.textBlock), children: [
870
- /* @__PURE__ */ r.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
871
- /* @__PURE__ */ r.jsx(
867
+ /* @__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 ? g : k }),
868
+ /* @__PURE__ */ n.jsxs(S, { className: d("h-full", i == null ? void 0 : i.container), children: [
869
+ /* @__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: [
870
+ /* @__PURE__ */ n.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
871
+ /* @__PURE__ */ n.jsx(
872
872
  "div",
873
873
  {
874
- dangerouslySetInnerHTML: { __html: t },
874
+ dangerouslySetInnerHTML: { __html: e },
875
875
  className: d("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
876
876
  }
877
877
  ),
878
- /* @__PURE__ */ r.jsx(
878
+ /* @__PURE__ */ n.jsx(
879
879
  "div",
880
880
  {
881
- dangerouslySetInnerHTML: { __html: e },
881
+ dangerouslySetInnerHTML: { __html: t },
882
882
  className: d("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
883
883
  }
884
884
  )
885
885
  ] }),
886
- /* @__PURE__ */ r.jsxs(
886
+ /* @__PURE__ */ n.jsxs(
887
887
  "div",
888
888
  {
889
889
  className: d(
@@ -892,8 +892,8 @@ const Yt = [
892
892
  i == null ? void 0 : i.group
893
893
  ),
894
894
  children: [
895
- p.enabled && /* @__PURE__ */ r.jsx(
896
- z,
895
+ p.enabled && /* @__PURE__ */ n.jsx(
896
+ $,
897
897
  {
898
898
  className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
899
899
  size: "lg",
@@ -901,8 +901,8 @@ const Yt = [
901
901
  ...p.buttonContent
902
902
  }
903
903
  ),
904
- (c == null ? void 0 : c.enabled) && /* @__PURE__ */ r.jsx(
905
- z,
904
+ (c == null ? void 0 : c.enabled) && /* @__PURE__ */ n.jsx(
905
+ $,
906
906
  {
907
907
  intent: "secondary",
908
908
  className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
@@ -920,10 +920,10 @@ const Yt = [
920
920
  ),
921
921
  x && (o == null ? void 0 : o.enabled) && v
922
922
  ] });
923
- }, Qe = ({
924
- headTitle: t,
925
- subtitle: e,
926
- buttonsConfig: n,
923
+ }, Qt = ({
924
+ headTitle: e,
925
+ subtitle: t,
926
+ buttonsConfig: r,
927
927
  advantages: o,
928
928
  classes: i,
929
929
  imgMobile: a,
@@ -931,35 +931,35 @@ const Yt = [
931
931
  color: u
932
932
  }) => {
933
933
  var k, v;
934
- const { isMobile: m } = Y(), { primary: x, secondary: p } = n || {}, c = a && "url" in a && s.isObject(a) ? /* @__PURE__ */ r.jsx("img", { className: "w-full object-contain", alt: a.alt, src: a.url }) : a, g = l && "url" in l && s.isObject(l) ? /* @__PURE__ */ r.jsx("img", { className: "w-full object-contain", alt: l.alt, src: l.url }) : l;
935
- return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
936
- /* @__PURE__ */ r.jsx(
934
+ const { isMobile: m } = Y(), { primary: x, 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, g = l && "url" in l && s.isObject(l) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: l.alt, src: l.url }) : l;
935
+ return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
936
+ /* @__PURE__ */ n.jsx(
937
937
  "section",
938
938
  {
939
939
  id: b.banner,
940
940
  "data-test-id": b.banner,
941
941
  style: { backgroundColor: u ?? "#d9edff" },
942
942
  className: d("bg-banner-skyblue-300 desktop:h-[456px]", i == null ? void 0 : i.root),
943
- children: /* @__PURE__ */ r.jsxs(S, { className: d("relative", i == null ? void 0 : i.container), children: [
944
- /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col desktop:flex-row desktop:justify-between", i == null ? void 0 : i.wrapper), children: [
945
- /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
946
- /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col gap-4 pt-6 desktop:pt-0", i == null ? void 0 : i.textBlock), children: [
947
- /* @__PURE__ */ r.jsx(
943
+ children: /* @__PURE__ */ n.jsxs(S, { className: d("relative", i == null ? void 0 : i.container), children: [
944
+ /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col desktop:flex-row desktop:justify-between", i == null ? void 0 : i.wrapper), children: [
945
+ /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
946
+ /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-4 pt-6 desktop:pt-0", i == null ? void 0 : i.textBlock), children: [
947
+ /* @__PURE__ */ n.jsx(
948
948
  "div",
949
949
  {
950
- dangerouslySetInnerHTML: { __html: t },
950
+ dangerouslySetInnerHTML: { __html: e },
951
951
  className: d("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
952
952
  }
953
953
  ),
954
- /* @__PURE__ */ r.jsx(
954
+ /* @__PURE__ */ n.jsx(
955
955
  "div",
956
956
  {
957
- dangerouslySetInnerHTML: { __html: e },
957
+ dangerouslySetInnerHTML: { __html: t },
958
958
  className: d("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
959
959
  }
960
960
  )
961
961
  ] }),
962
- /* @__PURE__ */ r.jsxs(
962
+ /* @__PURE__ */ n.jsxs(
963
963
  "div",
964
964
  {
965
965
  className: d(
@@ -968,8 +968,8 @@ const Yt = [
968
968
  i == null ? void 0 : i.group
969
969
  ),
970
970
  children: [
971
- x.enabled && /* @__PURE__ */ r.jsx(
972
- z,
971
+ x.enabled && /* @__PURE__ */ n.jsx(
972
+ $,
973
973
  {
974
974
  className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
975
975
  size: "lg",
@@ -977,8 +977,8 @@ const Yt = [
977
977
  ...x.buttonContent
978
978
  }
979
979
  ),
980
- (p == null ? void 0 : p.enabled) && /* @__PURE__ */ r.jsx(
981
- z,
980
+ (p == null ? void 0 : p.enabled) && /* @__PURE__ */ n.jsx(
981
+ $,
982
982
  {
983
983
  intent: "secondary",
984
984
  className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
@@ -989,7 +989,7 @@ const Yt = [
989
989
  }
990
990
  )
991
991
  ] }),
992
- /* @__PURE__ */ r.jsx(
992
+ /* @__PURE__ */ n.jsx(
993
993
  "div",
994
994
  {
995
995
  className: d(
@@ -1000,107 +1000,107 @@ const Yt = [
1000
1000
  }
1001
1001
  )
1002
1002
  ] }),
1003
- (o == null ? void 0 : o.enabled) && /* @__PURE__ */ r.jsx(
1003
+ (o == null ? void 0 : o.enabled) && /* @__PURE__ */ n.jsx(
1004
1004
  "div",
1005
1005
  {
1006
1006
  className: d(
1007
1007
  "items-center justify-center rounded-md bg-color-blue-grey-100 p-4 pb-8 mobile:hidden desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:flex desktop:translate-x-1/2 desktop:p-0",
1008
1008
  i == null ? void 0 : i.advantageContainer
1009
1009
  ),
1010
- children: (o == null ? void 0 : o.details) && ((k = o == null ? void 0 : o.details) == null ? void 0 : k.items.length) > 0 && /* @__PURE__ */ r.jsx(ve, { ...o })
1010
+ children: (o == null ? void 0 : o.details) && ((k = o == null ? void 0 : o.details) == null ? void 0 : k.items.length) > 0 && /* @__PURE__ */ n.jsx(vt, { ...o })
1011
1011
  }
1012
1012
  )
1013
1013
  ] })
1014
1014
  }
1015
1015
  ),
1016
- (o == null ? void 0 : o.enabled) && /* @__PURE__ */ r.jsx(
1016
+ (o == null ? void 0 : o.enabled) && /* @__PURE__ */ n.jsx(
1017
1017
  "div",
1018
1018
  {
1019
1019
  className: d(
1020
1020
  "flex items-center justify-center rounded-md bg-color-blue-grey-100 p-4 pb-8 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:hidden desktop:translate-x-1/2 desktop:p-0",
1021
1021
  i == null ? void 0 : i.advantageContainer
1022
1022
  ),
1023
- children: (o == null ? void 0 : o.details) && ((v = o == null ? void 0 : o.details) == null ? void 0 : v.items.length) > 0 && /* @__PURE__ */ r.jsx(ve, { ...o })
1023
+ children: (o == null ? void 0 : o.details) && ((v = o == null ? void 0 : o.details) == null ? void 0 : v.items.length) > 0 && /* @__PURE__ */ n.jsx(vt, { ...o })
1024
1024
  }
1025
1025
  )
1026
1026
  ] });
1027
- }, Zn = ({ variant: t, ...e }) => {
1028
- switch (t) {
1027
+ }, Zn = ({ variant: e, ...t }) => {
1028
+ switch (e) {
1029
1029
  case "separateImg":
1030
- return /* @__PURE__ */ r.jsx(Qe, { ...e });
1030
+ return /* @__PURE__ */ n.jsx(Qt, { ...t });
1031
1031
  case "fullImg":
1032
- return /* @__PURE__ */ r.jsx(dr, { ...e });
1032
+ return /* @__PURE__ */ n.jsx(dr, { ...t });
1033
1033
  default:
1034
- return /* @__PURE__ */ r.jsx(Qe, { ...e });
1034
+ return /* @__PURE__ */ n.jsx(Qt, { ...t });
1035
1035
  }
1036
- }, ve = ({ details: t, classes: e }) => {
1037
- const { variant: n, items: o } = t ?? {};
1038
- return /* @__PURE__ */ r.jsx(
1036
+ }, vt = ({ details: e, classes: t }) => {
1037
+ const { variant: r, items: o } = e ?? {};
1038
+ return /* @__PURE__ */ n.jsx(
1039
1039
  "div",
1040
1040
  {
1041
1041
  id: "advantages",
1042
1042
  className: d(
1043
1043
  "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",
1044
- { "desktop:max-w-[860px]": n === "threeCards" },
1045
- { "desktop:max-w-[1140px]": n === "fourCards" },
1046
- e == null ? void 0 : e.root
1044
+ { "desktop:max-w-[860px]": r === "threeCards" },
1045
+ { "desktop:max-w-[1140px]": r === "fourCards" },
1046
+ t == null ? void 0 : t.root
1047
1047
  ),
1048
- children: o == null ? void 0 : o.map(({ title: i, description: a }) => /* @__PURE__ */ r.jsxs(
1048
+ children: o == null ? void 0 : o.map(({ title: i, description: a }) => /* @__PURE__ */ n.jsxs(
1049
1049
  "div",
1050
1050
  {
1051
1051
  className: d(
1052
1052
  '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',
1053
- e == null ? void 0 : e.item
1053
+ t == null ? void 0 : t.item
1054
1054
  ),
1055
1055
  children: [
1056
- /* @__PURE__ */ r.jsx(H, { as: "h4", className: d("text-color-dark", e == null ? void 0 : e.title), children: i }),
1057
- /* @__PURE__ */ r.jsx("p", { className: d("desk-body-regular-l text-color-secondary", e == null ? void 0 : e.description), children: a })
1056
+ /* @__PURE__ */ n.jsx(H, { as: "h4", className: d("text-color-dark", t == null ? void 0 : t.title), children: i }),
1057
+ /* @__PURE__ */ n.jsx("p", { className: d("desk-body-regular-l text-color-secondary", t == null ? void 0 : t.description), children: a })
1058
1058
  ]
1059
1059
  },
1060
1060
  i
1061
1061
  ))
1062
1062
  }
1063
1063
  );
1064
- }, lr = ({ socialsLinks: t, classes: e }) => /* @__PURE__ */ r.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: n, href: o }) => /* @__PURE__ */ r.jsx(
1064
+ }, lr = ({ socialsLinks: e, classes: t }) => /* @__PURE__ */ n.jsx("div", { className: d("mt-4 flex items-center gap-2 desktop:mt-6", t == null ? void 0 : t.socialRoot), children: e == null ? void 0 : e.map(({ iconName: r, href: o }) => /* @__PURE__ */ n.jsx(
1065
1065
  "a",
1066
1066
  {
1067
- className: d("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", e == null ? void 0 : e.socialLink),
1067
+ className: d("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", t == null ? void 0 : t.socialLink),
1068
1068
  href: o,
1069
- "aria-label": n.replace("social/", ""),
1070
- children: /* @__PURE__ */ r.jsx(f, { name: n, className: d("h-full w-full text-icon-white", e == null ? void 0 : e.socialIcon) })
1069
+ "aria-label": r.replace("social/", ""),
1070
+ children: /* @__PURE__ */ n.jsx(f, { name: r, className: d("h-full w-full text-icon-white", t == null ? void 0 : t.socialIcon) })
1071
1071
  },
1072
1072
  o
1073
- )) }), ur = ({ phones: t, classes: e }) => /* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-4 desktop:items-end", e == null ? void 0 : e.phonesRoot), children: t == null ? void 0 : t.map(({ phone: n, text: o }) => /* @__PURE__ */ r.jsx(
1074
- Je,
1073
+ )) }), ur = ({ phones: e, classes: t }) => /* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-4 desktop:items-end", t == null ? void 0 : t.phonesRoot), children: e == null ? void 0 : e.map(({ phone: r, text: o }) => /* @__PURE__ */ n.jsx(
1074
+ Jt,
1075
1075
  {
1076
- phone: ye(n),
1076
+ phone: yt(r),
1077
1077
  text: o,
1078
1078
  classes: {
1079
- root: d(e == null ? void 0 : e.phoneWrapper),
1080
- text: d("text-color-footer", e == null ? void 0 : e.phoneText),
1081
- link: d("text-color-white mobile:m-0", e == null ? void 0 : e.phoneLink)
1079
+ root: d(t == null ? void 0 : t.phoneWrapper),
1080
+ text: d("text-color-footer", t == null ? void 0 : t.phoneText),
1081
+ link: d("text-color-white mobile:m-0", t == null ? void 0 : t.phoneLink)
1082
1082
  }
1083
1083
  },
1084
- n
1085
- )) }), mr = ({ classes: t, details: e }) => /* @__PURE__ */ r.jsx(
1084
+ r
1085
+ )) }), mr = ({ classes: e, details: t }) => /* @__PURE__ */ n.jsx(
1086
1086
  "div",
1087
1087
  {
1088
1088
  className: d(
1089
1089
  "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",
1090
- t == null ? void 0 : t.navRoot
1090
+ e == null ? void 0 : e.navRoot
1091
1091
  ),
1092
- children: e == null ? void 0 : e.map(
1093
- ({ column: n }) => n == null ? void 0 : n.map(({ groupLabel: o, links: i }) => /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col gap-4", t == null ? void 0 : t.navGroup), children: [
1094
- /* @__PURE__ */ r.jsx("div", { className: d("desk-body-medium-l text-color-white", t == null ? void 0 : t.navLabel), children: o }),
1095
- /* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-1", t == null ? void 0 : t.navLinks), children: i == null ? void 0 : i.map(({ path: a, label: l }) => /* @__PURE__ */ r.jsx(
1096
- ge,
1092
+ children: t == null ? void 0 : t.map(
1093
+ ({ column: r }) => r == null ? void 0 : r.map(({ groupLabel: o, links: i }) => /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-4", e == null ? void 0 : e.navGroup), children: [
1094
+ /* @__PURE__ */ n.jsx("div", { className: d("desk-body-medium-l text-color-white", e == null ? void 0 : e.navLabel), children: o }),
1095
+ /* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-1", e == null ? void 0 : e.navLinks), children: i == null ? void 0 : i.map(({ path: a, label: l }) => /* @__PURE__ */ n.jsx(
1096
+ gt,
1097
1097
  {
1098
1098
  href: a,
1099
1099
  "aria-label": l,
1100
1100
  intent: "white",
1101
1101
  classes: {
1102
- link: t == null ? void 0 : t.navLink,
1103
- icon: t == null ? void 0 : t.navLinkIcon
1102
+ link: e == null ? void 0 : e.navLink,
1103
+ icon: e == null ? void 0 : e.navLinkIcon
1104
1104
  },
1105
1105
  children: l
1106
1106
  },
@@ -1109,22 +1109,22 @@ const Yt = [
1109
1109
  ] }, o))
1110
1110
  )
1111
1111
  }
1112
- ), xr = ({ text: t, classes: e }) => /* @__PURE__ */ r.jsx(
1112
+ ), xr = ({ text: e, classes: t }) => /* @__PURE__ */ n.jsx(
1113
1113
  "div",
1114
1114
  {
1115
- className: d("desk-body-regular-m text-color-footer", e == null ? void 0 : e.copyRight),
1116
- dangerouslySetInnerHTML: { __html: t }
1115
+ className: d("desk-body-regular-m text-color-footer", t == null ? void 0 : t.copyRight),
1116
+ dangerouslySetInnerHTML: { __html: e }
1117
1117
  }
1118
- ), hr = ({ classes: t }) => /* @__PURE__ */ r.jsx(
1118
+ ), hr = ({ classes: e }) => /* @__PURE__ */ n.jsx(
1119
1119
  "a",
1120
1120
  {
1121
1121
  "aria-label": "logo",
1122
1122
  href: "https://sovcombank.ru/",
1123
- className: d("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", t == null ? void 0 : t.footerLogo),
1124
- children: /* @__PURE__ */ r.jsx(f, { name: "brandLogos/logoWhite", className: d("size-full", t == null ? void 0 : t.footerLogoIcon) })
1123
+ className: d("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", e == null ? void 0 : e.footerLogo),
1124
+ children: /* @__PURE__ */ n.jsx(f, { name: "brandLogos/logoWhite", className: d("size-full", e == null ? void 0 : e.footerLogoIcon) })
1125
1125
  }
1126
- ), pr = ({ classes: t }) => /* @__PURE__ */ r.jsx(
1127
- ge,
1126
+ ), pr = ({ classes: e }) => /* @__PURE__ */ n.jsx(
1127
+ gt,
1128
1128
  {
1129
1129
  intent: "white",
1130
1130
  href: "https://sovcombank.ru/site-map",
@@ -1132,26 +1132,26 @@ const Yt = [
1132
1132
  "aria-label": "site-map",
1133
1133
  rel: "noreferrer",
1134
1134
  classes: {
1135
- link: d("mobile:mt-6", t == null ? void 0 : t.siteMapLink),
1136
- icon: t == null ? void 0 : t.siteMapLinkIcon
1135
+ link: d("mobile:mt-6", e == null ? void 0 : e.siteMapLink),
1136
+ icon: e == null ? void 0 : e.siteMapLinkIcon
1137
1137
  },
1138
1138
  children: "Карта сайта"
1139
1139
  }
1140
- ), cr = ({ text: t, classes: e }) => {
1141
- const [n, o] = le.useState(!1), [i, a] = le.useState(!1), l = le.useRef(null);
1142
- return le.useEffect(() => {
1140
+ ), cr = ({ text: e, classes: t }) => {
1141
+ const [r, o] = lt.useState(!1), [i, a] = lt.useState(!1), l = lt.useRef(null);
1142
+ return lt.useEffect(() => {
1143
1143
  const u = l.current;
1144
1144
  u && a(u.scrollHeight > u.clientHeight);
1145
- }, []), /* @__PURE__ */ r.jsxs("div", { className: d("mt-8 flex flex-col gap-4", e == null ? void 0 : e.ligalRoot), children: [
1146
- /* @__PURE__ */ r.jsx(
1145
+ }, []), /* @__PURE__ */ n.jsxs("div", { className: d("mt-8 flex flex-col gap-4", t == null ? void 0 : t.ligalRoot), children: [
1146
+ /* @__PURE__ */ n.jsx(
1147
1147
  "div",
1148
1148
  {
1149
1149
  ref: l,
1150
- className: d("desk-body-regular-m text-color-footer", { "line-clamp-3": !n }, e == null ? void 0 : e.ligalText),
1151
- dangerouslySetInnerHTML: { __html: t }
1150
+ className: d("desk-body-regular-m text-color-footer", { "line-clamp-3": !r }, t == null ? void 0 : t.ligalText),
1151
+ dangerouslySetInnerHTML: { __html: e }
1152
1152
  }
1153
1153
  ),
1154
- i && /* @__PURE__ */ r.jsx(
1154
+ i && /* @__PURE__ */ n.jsx(
1155
1155
  "div",
1156
1156
  {
1157
1157
  tabIndex: 0,
@@ -1159,28 +1159,28 @@ const Yt = [
1159
1159
  onClick: () => o((u) => !u),
1160
1160
  className: d(
1161
1161
  "desk-body-regular-l w-max cursor-pointer font-medium text-color-footer transition-colors hover:text-color-white",
1162
- e == null ? void 0 : e.ligalButton
1162
+ t == null ? void 0 : t.ligalButton
1163
1163
  ),
1164
1164
  children: "Подробнее"
1165
1165
  }
1166
1166
  )
1167
1167
  ] });
1168
1168
  }, Xn = ({
1169
- socialsLinks: t,
1170
- phones: e,
1171
- ligal: n,
1169
+ socialsLinks: e,
1170
+ phones: t,
1171
+ ligal: r,
1172
1172
  copyright: o,
1173
1173
  classes: i,
1174
1174
  details: a,
1175
1175
  siteMap: l = !0
1176
- }) => /* @__PURE__ */ r.jsx(
1176
+ }) => /* @__PURE__ */ n.jsx(
1177
1177
  "footer",
1178
1178
  {
1179
1179
  id: b.footer,
1180
1180
  "data-test-id": b.footer,
1181
1181
  className: d("w-full bg-color-footer py-8 desktop:py-10", i == null ? void 0 : i.root),
1182
- children: /* @__PURE__ */ r.jsx(S, { className: d(i == null ? void 0 : i.footerContainer), children: /* @__PURE__ */ r.jsxs("div", { className: d("mobile:pb-[176px]", i == null ? void 0 : i.footerWrapper), children: [
1183
- /* @__PURE__ */ r.jsxs(
1182
+ 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: [
1183
+ /* @__PURE__ */ n.jsxs(
1184
1184
  "div",
1185
1185
  {
1186
1186
  className: d(
@@ -1188,17 +1188,17 @@ const Yt = [
1188
1188
  i == null ? void 0 : i.footerHead
1189
1189
  ),
1190
1190
  children: [
1191
- /* @__PURE__ */ r.jsxs("div", { className: d(i == null ? void 0 : i.footerSocialBlock), children: [
1192
- /* @__PURE__ */ r.jsx(hr, { classes: i == null ? void 0 : i.footerLogo }),
1193
- t.enabled && /* @__PURE__ */ r.jsx(lr, { socialsLinks: t.links, classes: i == null ? void 0 : i.socialLinks })
1191
+ /* @__PURE__ */ n.jsxs("div", { className: d(i == null ? void 0 : i.footerSocialBlock), children: [
1192
+ /* @__PURE__ */ n.jsx(hr, { classes: i == null ? void 0 : i.footerLogo }),
1193
+ e.enabled && /* @__PURE__ */ n.jsx(lr, { socialsLinks: e.links, classes: i == null ? void 0 : i.socialLinks })
1194
1194
  ] }),
1195
- e.enabled && /* @__PURE__ */ r.jsx(ur, { phones: e.items, classes: i == null ? void 0 : i.phonesBlock })
1195
+ t.enabled && /* @__PURE__ */ n.jsx(ur, { phones: t.items, classes: i == null ? void 0 : i.phonesBlock })
1196
1196
  ]
1197
1197
  }
1198
1198
  ),
1199
- !s.isArrayEmpty(a) && /* @__PURE__ */ r.jsx(mr, { details: a, classes: i == null ? void 0 : i.navLinks }),
1200
- n.enabled && /* @__PURE__ */ r.jsx(cr, { text: n.text }),
1201
- /* @__PURE__ */ r.jsxs(
1199
+ !s.isArrayEmpty(a) && /* @__PURE__ */ n.jsx(mr, { details: a, classes: i == null ? void 0 : i.navLinks }),
1200
+ r.enabled && /* @__PURE__ */ n.jsx(cr, { text: r.text }),
1201
+ /* @__PURE__ */ n.jsxs(
1202
1202
  "div",
1203
1203
  {
1204
1204
  className: d(
@@ -1206,62 +1206,62 @@ const Yt = [
1206
1206
  i == null ? void 0 : i.footerBottom
1207
1207
  ),
1208
1208
  children: [
1209
- o.enabled && /* @__PURE__ */ r.jsx(xr, { text: o.text, classes: i == null ? void 0 : i.copyright }),
1210
- l && /* @__PURE__ */ r.jsx(pr, { classes: i == null ? void 0 : i.siteMap })
1209
+ o.enabled && /* @__PURE__ */ n.jsx(xr, { text: o.text, classes: i == null ? void 0 : i.copyright }),
1210
+ l && /* @__PURE__ */ n.jsx(pr, { classes: i == null ? void 0 : i.siteMap })
1211
1211
  ]
1212
1212
  }
1213
1213
  )
1214
1214
  ] }) })
1215
1215
  }
1216
- ), fr = ({ classes: t, index: e, variant: n, title: o, description: i }) => {
1217
- const a = n === "withTitleAndDescription" && o;
1218
- return /* @__PURE__ */ r.jsxs(
1216
+ ), fr = ({ classes: e, index: t, variant: r, title: o, description: i }) => {
1217
+ const a = r === "withTitleAndDescription" && o;
1218
+ return /* @__PURE__ */ n.jsxs(
1219
1219
  "div",
1220
1220
  {
1221
1221
  className: d(
1222
1222
  "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",
1223
- t == null ? void 0 : t.singleStep
1223
+ e == null ? void 0 : e.singleStep
1224
1224
  ),
1225
1225
  children: [
1226
- /* @__PURE__ */ r.jsx(
1226
+ /* @__PURE__ */ n.jsx(
1227
1227
  "div",
1228
1228
  {
1229
1229
  className: d(
1230
1230
  "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",
1231
- t == null ? void 0 : t.numeric
1231
+ e == null ? void 0 : e.numeric
1232
1232
  ),
1233
- children: e
1233
+ children: t
1234
1234
  }
1235
1235
  ),
1236
- /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col gap-2"), children: [
1237
- a && /* @__PURE__ */ r.jsx(
1236
+ /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-2"), children: [
1237
+ a && /* @__PURE__ */ n.jsx(
1238
1238
  "div",
1239
1239
  {
1240
1240
  dangerouslySetInnerHTML: { __html: o },
1241
- className: d("mob-title-bold-m text-color-dark desktop:desk-title-bold-s", t == null ? void 0 : t.title)
1241
+ className: d("mob-title-bold-m text-color-dark desktop:desk-title-bold-s", e == null ? void 0 : e.title)
1242
1242
  }
1243
1243
  ),
1244
- /* @__PURE__ */ r.jsx(
1244
+ /* @__PURE__ */ n.jsx(
1245
1245
  "div",
1246
1246
  {
1247
1247
  dangerouslySetInnerHTML: { __html: i ?? "" },
1248
- className: d("desk-body-regular-l text-color-tetriary", t == null ? void 0 : t.description)
1248
+ className: d("desk-body-regular-l text-color-tetriary", e == null ? void 0 : e.description)
1249
1249
  }
1250
1250
  )
1251
1251
  ] })
1252
1252
  ]
1253
1253
  }
1254
1254
  );
1255
- }, Jn = ({ headline: t, details: e, variant: n, classes: o }) => /* @__PURE__ */ r.jsx("section", { id: b.stepper, "data-test-id": b.stepper, className: o == null ? void 0 : o.root, children: /* @__PURE__ */ r.jsx(S, { className: o == null ? void 0 : o.container, children: /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col gap-6 desktop:items-start desktop:gap-12", o == null ? void 0 : o.wrapper), children: [
1256
- /* @__PURE__ */ r.jsx(H, { as: "h2", className: d("text-color-dark", o == null ? void 0 : o.headline), children: t }),
1257
- /* @__PURE__ */ r.jsx(
1255
+ }, Jn = ({ headline: e, details: t, variant: r, classes: o }) => /* @__PURE__ */ n.jsx("section", { id: b.stepper, "data-test-id": b.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: [
1256
+ /* @__PURE__ */ n.jsx(H, { as: "h2", className: d("text-color-dark", o == null ? void 0 : o.headline), children: e }),
1257
+ /* @__PURE__ */ n.jsx(
1258
1258
  "div",
1259
1259
  {
1260
1260
  className: d(
1261
1261
  "flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
1262
1262
  o == null ? void 0 : o.stepsWrapper
1263
1263
  ),
1264
- children: e == null ? void 0 : e.map((i, a) => /* @__PURE__ */ r.jsx(fr, { variant: n, ...i, index: a + 1, classes: o == null ? void 0 : o.step }, i.description))
1264
+ children: t == null ? void 0 : t.map((i, a) => /* @__PURE__ */ n.jsx(fr, { variant: r, ...i, index: a + 1, classes: o == null ? void 0 : o.step }, i.description))
1265
1265
  }
1266
1266
  )
1267
1267
  ] }) }) }), br = F("", {
@@ -1348,33 +1348,33 @@ const Yt = [
1348
1348
  class: "desktop:h-[272px] desktop:w-[500px]"
1349
1349
  }
1350
1350
  ]
1351
- }), sr = ({ data: t, intent: e }) => {
1351
+ }), sr = ({ data: e, intent: t }) => {
1352
1352
  const {
1353
- title: n,
1353
+ title: r,
1354
1354
  description: o,
1355
1355
  popover: i = {
1356
1356
  enabled: !1
1357
1357
  }
1358
- } = t;
1359
- return /* @__PURE__ */ r.jsx("li", { className: d(jr({ intent: e })), children: /* @__PURE__ */ r.jsxs("div", { className: "desktop:max-w-[264px]", children: [
1360
- /* @__PURE__ */ r.jsxs("div", { className: d("mb-2 flex items-center gap-2"), children: [
1361
- /* @__PURE__ */ r.jsx("h4", { className: d("mob-title-bold-m text-color-dark"), children: n }),
1362
- i.enabled && /* @__PURE__ */ r.jsx(Ie, { triggerElement: /* @__PURE__ */ r.jsx(f, { className: d("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i.text })
1358
+ } = e;
1359
+ return /* @__PURE__ */ n.jsx("li", { className: d(jr({ intent: t })), children: /* @__PURE__ */ n.jsxs("div", { className: "desktop:max-w-[264px]", children: [
1360
+ /* @__PURE__ */ n.jsxs("div", { className: d("mb-2 flex items-center gap-2"), children: [
1361
+ /* @__PURE__ */ n.jsx("h4", { className: d("mob-title-bold-m text-color-dark"), children: r }),
1362
+ i.enabled && /* @__PURE__ */ n.jsx(It, { triggerElement: /* @__PURE__ */ n.jsx(f, { className: d("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i.text })
1363
1363
  ] }),
1364
- /* @__PURE__ */ r.jsx("div", { className: d("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: o } })
1364
+ /* @__PURE__ */ n.jsx("div", { className: d("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: o } })
1365
1365
  ] }) });
1366
- }, ke = ({ intent: t, headline: e, desktopHidden: n = !1, mobileHidden: o = !1 }) => /* @__PURE__ */ r.jsx("h2", { className: d(br({ intent: t, desktopHidden: n, mobileHidden: o })), children: e }), kr = ({ details: t, intent: e, withButton: n }) => /* @__PURE__ */ r.jsx("ul", { className: d(gr({ intent: e, withButton: n })), children: t == null ? void 0 : t.map((o, i) => /* @__PURE__ */ r.jsx(sr, { intent: e, data: o }, i)) }), Yn = ({
1367
- headline: t,
1368
- buttonConfig: e,
1369
- intent: n = "twoItems",
1366
+ }, kt = ({ intent: e, headline: t, desktopHidden: r = !1, mobileHidden: o = !1 }) => /* @__PURE__ */ n.jsx("h2", { className: d(br({ intent: e, desktopHidden: r, mobileHidden: o })), children: t }), kr = ({ details: e, intent: t, withButton: r }) => /* @__PURE__ */ n.jsx("ul", { className: d(gr({ intent: t, withButton: r })), children: e == null ? void 0 : e.map((o, i) => /* @__PURE__ */ n.jsx(sr, { intent: t, data: o }, i)) }), Yn = ({
1367
+ headline: e,
1368
+ buttonConfig: t,
1369
+ intent: r = "twoItems",
1370
1370
  details: o,
1371
1371
  image: i,
1372
1372
  classes: a
1373
1373
  }) => {
1374
- const l = n === "fourItems", u = n === "twoItems", m = i && "url" in i && s.isObject(i) ? /* @__PURE__ */ r.jsx("img", { className: "w-full object-contain", alt: i.alt, src: i.url }) : i;
1375
- return /* @__PURE__ */ r.jsx("section", { id: b.longBanner, "data-test-id": b.longBanner, className: d(a == null ? void 0 : a.root), children: /* @__PURE__ */ r.jsxs(S, { className: d(a == null ? void 0 : a.container), children: [
1376
- u && /* @__PURE__ */ r.jsx(ke, { intent: n, headline: t }),
1377
- /* @__PURE__ */ r.jsxs(
1374
+ const l = 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;
1375
+ return /* @__PURE__ */ n.jsx("section", { id: b.longBanner, "data-test-id": b.longBanner, className: d(a == null ? void 0 : a.root), children: /* @__PURE__ */ n.jsxs(S, { className: d(a == null ? void 0 : a.container), children: [
1376
+ u && /* @__PURE__ */ n.jsx(kt, { intent: r, headline: e }),
1377
+ /* @__PURE__ */ n.jsxs(
1378
1378
  "div",
1379
1379
  {
1380
1380
  className: d(
@@ -1382,22 +1382,22 @@ const Yt = [
1382
1382
  a == null ? void 0 : a.contentContainer
1383
1383
  ),
1384
1384
  children: [
1385
- l && /* @__PURE__ */ r.jsx(ke, { intent: n, headline: t, desktopHidden: !0 }),
1386
- /* @__PURE__ */ r.jsx("div", { className: d(yr({ intent: n, withButton: e == null ? void 0 : e.enabled }), a == null ? void 0 : a.imgContainer), children: m }),
1387
- /* @__PURE__ */ r.jsxs(
1385
+ l && /* @__PURE__ */ n.jsx(kt, { intent: r, headline: e, desktopHidden: !0 }),
1386
+ /* @__PURE__ */ n.jsx("div", { className: d(yr({ intent: r, withButton: t == null ? void 0 : t.enabled }), a == null ? void 0 : a.imgContainer), children: m }),
1387
+ /* @__PURE__ */ n.jsxs(
1388
1388
  "div",
1389
1389
  {
1390
1390
  className: d("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", a == null ? void 0 : a.textWithBtnContainer),
1391
1391
  children: [
1392
- l && /* @__PURE__ */ r.jsx(ke, { intent: n, headline: t, mobileHidden: !0 }),
1393
- /* @__PURE__ */ r.jsx(kr, { details: o, intent: n, withButton: (e == null ? void 0 : e.enabled) ?? !1 }),
1394
- (e == null ? void 0 : e.enabled) && e && /* @__PURE__ */ r.jsx(
1395
- z,
1392
+ l && /* @__PURE__ */ n.jsx(kt, { intent: r, headline: e, mobileHidden: !0 }),
1393
+ /* @__PURE__ */ n.jsx(kr, { details: o, intent: r, withButton: (t == null ? void 0 : t.enabled) ?? !1 }),
1394
+ (t == null ? void 0 : t.enabled) && t && /* @__PURE__ */ n.jsx(
1395
+ $,
1396
1396
  {
1397
1397
  className: d("w-full px-4 desktop:w-max", a == null ? void 0 : a.button),
1398
1398
  size: "lg",
1399
1399
  intent: "secondary",
1400
- ...e.buttonContent
1400
+ ...t.buttonContent
1401
1401
  }
1402
1402
  )
1403
1403
  ]
@@ -1407,91 +1407,91 @@ const Yt = [
1407
1407
  }
1408
1408
  )
1409
1409
  ] }) });
1410
- }, we = {
1410
+ }, wt = {
1411
1411
  ESIA: "esia",
1412
1412
  MOBILE_ID: "mobileId",
1413
1413
  COMBINE: "combine"
1414
- }, mt = ({ children: t, isLoading: e, classes: n, loaderProps: o }) => /* @__PURE__ */ r.jsx(
1414
+ }, me = ({ children: e, isLoading: t, classes: r, loaderProps: o }) => /* @__PURE__ */ n.jsx(
1415
1415
  "div",
1416
1416
  {
1417
1417
  tabIndex: 0,
1418
1418
  className: d(
1419
1419
  "relative flex h-[90px] w-full max-w-[328px] items-center justify-center rounded-sm p-2 desktop:max-w-[524px]",
1420
1420
  "bg-color-white outline outline-1 outline-warm-grey-200 transition-colors focus-visible:outline-primary-focus",
1421
- n == null ? void 0 : n.root
1421
+ r == null ? void 0 : r.root
1422
1422
  ),
1423
- children: /* @__PURE__ */ r.jsx(
1423
+ children: /* @__PURE__ */ n.jsx(
1424
1424
  "div",
1425
1425
  {
1426
1426
  className: d(
1427
1427
  "flex h-[74px] flex-1 cursor-pointer rounded-sm px-2 py-3 transition-colors desktop:px-4 desktop:py-3",
1428
1428
  "bg-color-blue-grey-100 hover:bg-color-blue-grey-200 active:bg-color-blue-grey-300",
1429
- { "items-center": e },
1430
- n == null ? void 0 : n.wrapper
1429
+ { "items-center": t },
1430
+ r == null ? void 0 : r.wrapper
1431
1431
  ),
1432
- children: e ? /* @__PURE__ */ r.jsx(Et, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...o }) : t
1432
+ children: t ? /* @__PURE__ */ n.jsx(Ee, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...o }) : e
1433
1433
  }
1434
1434
  )
1435
1435
  }
1436
- ), wr = ({ ...t }) => /* @__PURE__ */ r.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: [
1437
- /* @__PURE__ */ r.jsx(
1436
+ ), wr = ({ ...e }) => /* @__PURE__ */ n.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: [
1437
+ /* @__PURE__ */ n.jsx(
1438
1438
  "path",
1439
1439
  {
1440
1440
  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",
1441
1441
  fill: "url(#paint0_linear_6493_452)"
1442
1442
  }
1443
1443
  ),
1444
- /* @__PURE__ */ r.jsx(
1444
+ /* @__PURE__ */ n.jsx(
1445
1445
  "path",
1446
1446
  {
1447
1447
  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",
1448
1448
  fill: "#0066B3"
1449
1449
  }
1450
1450
  ),
1451
- /* @__PURE__ */ r.jsx(
1451
+ /* @__PURE__ */ n.jsx(
1452
1452
  "path",
1453
1453
  {
1454
1454
  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",
1455
1455
  fill: "#EE2F53"
1456
1456
  }
1457
1457
  ),
1458
- /* @__PURE__ */ r.jsx("defs", { children: /* @__PURE__ */ r.jsxs("linearGradient", { id: "paint0_linear_6493_452", x1: "16.0071", y1: "0", x2: "16.0071", y2: "31.9996", gradientUnits: "userSpaceOnUse", children: [
1459
- /* @__PURE__ */ r.jsx("stop", { stopColor: "#0066B3" }),
1460
- /* @__PURE__ */ r.jsx("stop", { offset: "0.354167", stopColor: "#0066B3" }),
1461
- /* @__PURE__ */ r.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
1462
- /* @__PURE__ */ r.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
1458
+ /* @__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: [
1459
+ /* @__PURE__ */ n.jsx("stop", { stopColor: "#0066B3" }),
1460
+ /* @__PURE__ */ n.jsx("stop", { offset: "0.354167", stopColor: "#0066B3" }),
1461
+ /* @__PURE__ */ n.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
1462
+ /* @__PURE__ */ n.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
1463
1463
  ] }) })
1464
- ] }), xt = ({ mainLink: t, subLink: e, isMobile: n, classes: o }) => /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col", o == null ? void 0 : o.linksWrapper), children: [
1465
- /* @__PURE__ */ r.jsx(
1464
+ ] }), xe = ({ mainLink: e, subLink: t, isMobile: r, classes: o }) => /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col", o == null ? void 0 : o.linksWrapper), children: [
1465
+ /* @__PURE__ */ n.jsx(
1466
1466
  "a",
1467
1467
  {
1468
- href: t.href,
1468
+ href: e.href,
1469
1469
  target: "_blank",
1470
1470
  rel: "noreferrer",
1471
1471
  className: d(
1472
1472
  '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',
1473
1473
  o == null ? void 0 : o.linksMainLink
1474
1474
  ),
1475
- children: n ? t.mobileTitle : t.title
1475
+ children: r ? e.mobileTitle : e.title
1476
1476
  }
1477
1477
  ),
1478
- (e == null ? void 0 : e.text) && (e == null ? void 0 : e.href) && /* @__PURE__ */ r.jsx(
1479
- ge,
1478
+ (t == null ? void 0 : t.text) && (t == null ? void 0 : t.href) && /* @__PURE__ */ n.jsx(
1479
+ gt,
1480
1480
  {
1481
1481
  intent: "blue",
1482
1482
  withUnderline: !0,
1483
- href: e == null ? void 0 : e.href,
1483
+ href: t == null ? void 0 : t.href,
1484
1484
  target: "_blank",
1485
1485
  rel: "noreferrer",
1486
1486
  classes: {
1487
1487
  link: d("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary", o == null ? void 0 : o.linksSubLink)
1488
1488
  },
1489
- children: e == null ? void 0 : e.text
1489
+ children: t == null ? void 0 : t.text
1490
1490
  }
1491
1491
  )
1492
- ] }), Ve = ({ mainLink: t, subLink: e, isLoading: n, badge: o, loaderProps: i, classes: a }) => {
1492
+ ] }), Vt = ({ mainLink: e, subLink: t, isLoading: r, badge: o, loaderProps: i, classes: a }) => {
1493
1493
  const { isMobile: l } = Y();
1494
- return /* @__PURE__ */ r.jsx(mt, { isLoading: n, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ r.jsxs(
1494
+ return /* @__PURE__ */ n.jsx(me, { isLoading: r, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ n.jsxs(
1495
1495
  "div",
1496
1496
  {
1497
1497
  className: d(
@@ -1500,22 +1500,22 @@ const Yt = [
1500
1500
  a == null ? void 0 : a.innerWrapper
1501
1501
  ),
1502
1502
  children: [
1503
- /* @__PURE__ */ r.jsxs("div", { className: d("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
1504
- /* @__PURE__ */ r.jsxs("div", { children: [
1505
- /* @__PURE__ */ r.jsx(f, { name: "logos/mts", className: d("relative z-[9] size-7 desktop:size-8", a == null ? void 0 : a.mtsLogo) }),
1506
- /* @__PURE__ */ r.jsx(f, { name: "logos/megafon", className: d("relative z-[8] -ml-4 size-7 desktop:size-8", a == null ? void 0 : a.megafonLogo) }),
1507
- /* @__PURE__ */ r.jsx(f, { name: "logos/beeline", className: d("relative z-[7] -ml-4 size-7 desktop:size-8", a == null ? void 0 : a.beelineLogo) })
1503
+ /* @__PURE__ */ n.jsxs("div", { className: d("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
1504
+ /* @__PURE__ */ n.jsxs("div", { children: [
1505
+ /* @__PURE__ */ n.jsx(f, { name: "logos/mts", className: d("relative z-[9] size-7 desktop:size-8", a == null ? void 0 : a.mtsLogo) }),
1506
+ /* @__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) }),
1507
+ /* @__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) })
1508
1508
  ] }),
1509
- /* @__PURE__ */ r.jsx(xt, { mainLink: t, subLink: e, isMobile: l, classes: a == null ? void 0 : a.links }),
1510
- /* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className: d("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
1509
+ /* @__PURE__ */ n.jsx(xe, { mainLink: e, subLink: t, isMobile: l, classes: a == null ? void 0 : a.links }),
1510
+ /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: d("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
1511
1511
  ] }),
1512
- o && /* @__PURE__ */ r.jsx(Te, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: o })
1512
+ o && /* @__PURE__ */ n.jsx(Tt, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: o })
1513
1513
  ]
1514
1514
  }
1515
1515
  ) });
1516
- }, Ae = ({ mainLink: t, subLink: e, isLoading: n, badge: o, loaderProps: i, classes: a }) => {
1516
+ }, At = ({ mainLink: e, subLink: t, isLoading: r, badge: o, loaderProps: i, classes: a }) => {
1517
1517
  const { isMobile: l } = Y();
1518
- return /* @__PURE__ */ r.jsx(mt, { isLoading: n, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ r.jsxs(
1518
+ return /* @__PURE__ */ n.jsx(me, { isLoading: r, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ n.jsxs(
1519
1519
  "div",
1520
1520
  {
1521
1521
  className: d(
@@ -1524,25 +1524,25 @@ const Yt = [
1524
1524
  a == null ? void 0 : a.innerWrapper
1525
1525
  ),
1526
1526
  children: [
1527
- /* @__PURE__ */ r.jsxs("div", { className: d("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
1528
- /* @__PURE__ */ r.jsx(wr, { className: d("size-7 desktop:size-8", a == null ? void 0 : a.esiaLogo) }),
1529
- /* @__PURE__ */ r.jsx(xt, { mainLink: t, subLink: e, isMobile: l, classes: a == null ? void 0 : a.links }),
1530
- /* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className: d("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
1527
+ /* @__PURE__ */ n.jsxs("div", { className: d("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
1528
+ /* @__PURE__ */ n.jsx(wr, { className: d("size-7 desktop:size-8", a == null ? void 0 : a.esiaLogo) }),
1529
+ /* @__PURE__ */ n.jsx(xe, { mainLink: e, subLink: t, isMobile: l, classes: a == null ? void 0 : a.links }),
1530
+ /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: d("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
1531
1531
  ] }),
1532
- o && /* @__PURE__ */ r.jsx(Te, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: o })
1532
+ o && /* @__PURE__ */ n.jsx(Tt, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: o })
1533
1533
  ]
1534
1534
  }
1535
1535
  ) });
1536
- }, vr = (t) => {
1537
- switch (t.mode) {
1538
- case we.ESIA:
1539
- return /* @__PURE__ */ r.jsx(Ae, { ...t });
1540
- case we.MOBILE_ID:
1541
- return /* @__PURE__ */ r.jsx(Ve, { ...t });
1542
- case we.COMBINE:
1536
+ }, vr = (e) => {
1537
+ switch (e.mode) {
1538
+ case wt.ESIA:
1539
+ return /* @__PURE__ */ n.jsx(At, { ...e });
1540
+ case wt.MOBILE_ID:
1541
+ return /* @__PURE__ */ n.jsx(Vt, { ...e });
1542
+ case wt.COMBINE:
1543
1543
  default:
1544
- const { esiaConfig: e, mobileIdConfig: n, subtitle: o, badge: i, classes: a } = t, l = !o && !i ? le.Fragment : "div";
1545
- return /* @__PURE__ */ r.jsxs(
1544
+ const { esiaConfig: t, mobileIdConfig: r, subtitle: o, badge: i, classes: a } = e, l = !o && !i ? lt.Fragment : "div";
1545
+ return /* @__PURE__ */ n.jsxs(
1546
1546
  "div",
1547
1547
  {
1548
1548
  className: d(
@@ -1550,30 +1550,30 @@ const Yt = [
1550
1550
  a == null ? void 0 : a.root
1551
1551
  ),
1552
1552
  children: [
1553
- /* @__PURE__ */ r.jsxs(l, { className: d("flex w-full items-center justify-between gap-2", a == null ? void 0 : a.topContent), children: [
1554
- o && /* @__PURE__ */ r.jsx("h5", { className: d("desk-body-regular-l flex flex-1 text-color-dark", a == null ? void 0 : a.subtitle), children: o }),
1555
- i && /* @__PURE__ */ r.jsx(Te, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: i })
1553
+ /* @__PURE__ */ n.jsxs(l, { className: d("flex w-full items-center justify-between gap-2", a == null ? void 0 : a.topContent), children: [
1554
+ 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 }),
1555
+ i && /* @__PURE__ */ n.jsx(Tt, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: i })
1556
1556
  ] }),
1557
- /* @__PURE__ */ r.jsxs("div", { className: d("grid w-full grid-cols-2 gap-2 desktop:gap-4", a == null ? void 0 : a.authWrapper), children: [
1558
- /* @__PURE__ */ r.jsx(
1559
- Ae,
1557
+ /* @__PURE__ */ n.jsxs("div", { className: d("grid w-full grid-cols-2 gap-2 desktop:gap-4", a == null ? void 0 : a.authWrapper), children: [
1558
+ /* @__PURE__ */ n.jsx(
1559
+ At,
1560
1560
  {
1561
- ...e,
1561
+ ...t,
1562
1562
  classes: {
1563
1563
  root: "p-0 outline-0 h-[74px]",
1564
1564
  arrowIcon: "hidden",
1565
- ...e.classes
1565
+ ...t.classes
1566
1566
  }
1567
1567
  }
1568
1568
  ),
1569
- /* @__PURE__ */ r.jsx(
1570
- Ve,
1569
+ /* @__PURE__ */ n.jsx(
1570
+ Vt,
1571
1571
  {
1572
- ...n,
1572
+ ...r,
1573
1573
  classes: {
1574
1574
  root: "p-0 outline-0 h-[74px]",
1575
1575
  arrowIcon: "hidden",
1576
- ...n.classes
1576
+ ...r.classes
1577
1577
  }
1578
1578
  }
1579
1579
  )
@@ -1582,45 +1582,45 @@ const Yt = [
1582
1582
  }
1583
1583
  );
1584
1584
  }
1585
- }, Gn = (t) => vr(t), qe = ({ links: t, classes: e }) => /* @__PURE__ */ r.jsx("nav", { className: d("flex flex-col gap-1", e == null ? void 0 : e.linksWrapper), children: t == null ? void 0 : t.map(({ path: n, label: o }) => /* @__PURE__ */ r.jsx(
1586
- ge,
1585
+ }, Gn = (e) => vr(e), qt = ({ links: e, classes: t }) => /* @__PURE__ */ n.jsx("nav", { className: d("flex flex-col gap-1", t == null ? void 0 : t.linksWrapper), children: e == null ? void 0 : e.map(({ path: r, label: o }) => /* @__PURE__ */ n.jsx(
1586
+ gt,
1587
1587
  {
1588
1588
  classes: {
1589
- link: d("w-max", e == null ? void 0 : e.linkText),
1590
- icon: d(e == null ? void 0 : e.linkIcon)
1589
+ link: d("w-max", t == null ? void 0 : t.linkText),
1590
+ icon: d(t == null ? void 0 : t.linkIcon)
1591
1591
  },
1592
1592
  intent: "dark",
1593
- href: n,
1593
+ href: r,
1594
1594
  children: o
1595
1595
  },
1596
- n
1597
- )) }), Nr = ({ groupLabel: t, links: e, mobileAccordionProps: n, classes: o }) => {
1596
+ r
1597
+ )) }), Nr = ({ groupLabel: e, links: t, mobileAccordionProps: r, classes: o }) => {
1598
1598
  var a, l, u;
1599
1599
  const { isMobile: i } = Y();
1600
- return /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col gap-2", o == null ? void 0 : o.columnGroup), children: [
1601
- !i && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1602
- /* @__PURE__ */ r.jsx("h5", { className: d("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", o == null ? void 0 : o.columnGroupHeading), children: t }),
1603
- /* @__PURE__ */ r.jsx(qe, { links: e, classes: o == null ? void 0 : o.linksList }, "desktop")
1600
+ return /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-2", o == null ? void 0 : o.columnGroup), children: [
1601
+ !i && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1602
+ /* @__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: e }),
1603
+ /* @__PURE__ */ n.jsx(qt, { links: t, classes: o == null ? void 0 : o.linksList }, "desktop")
1604
1604
  ] }),
1605
- i && /* @__PURE__ */ r.jsx(
1606
- oe,
1605
+ i && /* @__PURE__ */ n.jsx(
1606
+ ot,
1607
1607
  {
1608
1608
  defaultOpen: !0,
1609
- label: t,
1610
- icon: /* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className: d("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
1611
- ...n,
1609
+ label: e,
1610
+ icon: /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: d("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
1611
+ ...r,
1612
1612
  classes: {
1613
- ...n == null ? void 0 : n.classes,
1613
+ ...r == null ? void 0 : r.classes,
1614
1614
  header: {
1615
- trigger: d("p-0 bg-color-blue-grey-100", (l = (a = n == null ? void 0 : n.classes) == null ? void 0 : a.header) == null ? void 0 : l.trigger)
1615
+ 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)
1616
1616
  },
1617
- contentInner: d("py-2 px-4", (u = n == null ? void 0 : n.classes) == null ? void 0 : u.contentInner)
1617
+ contentInner: d("py-2 px-4", (u = r == null ? void 0 : r.classes) == null ? void 0 : u.contentInner)
1618
1618
  },
1619
- children: /* @__PURE__ */ r.jsx(qe, { links: e, classes: o == null ? void 0 : o.linksList }, "mobile")
1619
+ children: /* @__PURE__ */ n.jsx(qt, { links: t, classes: o == null ? void 0 : o.linksList }, "mobile")
1620
1620
  }
1621
1621
  )
1622
1622
  ] });
1623
- }, Cr = ({ column: t, mobileAccordionProps: e, classes: n }) => /* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-4 desktop:gap-6", n == null ? void 0 : n.column), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ r.jsx(Nr, { ...e, ...o, classes: n == null ? void 0 : n.columnGroup }, o.groupLabel)) }), Ir = F("grid gap-4 grid-cols-1", {
1623
+ }, Cr = ({ column: e, mobileAccordionProps: t, classes: r }) => /* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-4 desktop:gap-6", r == null ? void 0 : r.column), children: e == null ? void 0 : e.map((o) => /* @__PURE__ */ n.jsx(Nr, { ...t, ...o, classes: r == null ? void 0 : r.columnGroup }, o.groupLabel)) }), Ir = F("grid gap-4 grid-cols-1", {
1624
1624
  variants: {
1625
1625
  variant: {
1626
1626
  twoCols: "desktop:grid-cols-2",
@@ -1631,27 +1631,27 @@ const Yt = [
1631
1631
  defaultVariants: {
1632
1632
  variant: "fourCols"
1633
1633
  }
1634
- }), eo = ({
1635
- variant: t,
1636
- details: e,
1637
- headline: n,
1634
+ }), to = ({
1635
+ variant: e,
1636
+ details: t,
1637
+ headline: r,
1638
1638
  mobileAccordionProps: o,
1639
1639
  rootAccordionProps: i,
1640
1640
  classes: a,
1641
1641
  defaultOpen: l
1642
1642
  }) => {
1643
1643
  var u, m, x;
1644
- return /* @__PURE__ */ r.jsx(
1644
+ return /* @__PURE__ */ n.jsx(
1645
1645
  "section",
1646
1646
  {
1647
1647
  id: b.interLinking,
1648
1648
  "data-test-id": b.interLinking,
1649
1649
  className: d("min-w-full desktop:min-w-[1140px]", a == null ? void 0 : a.root),
1650
- children: /* @__PURE__ */ r.jsx(S, { children: /* @__PURE__ */ r.jsx(
1651
- oe,
1650
+ children: /* @__PURE__ */ n.jsx(S, { children: /* @__PURE__ */ n.jsx(
1651
+ ot,
1652
1652
  {
1653
1653
  defaultOpen: l,
1654
- label: /* @__PURE__ */ r.jsx(H, { as: "h4", className: d("text-left", a == null ? void 0 : a.headline), children: n }),
1654
+ label: /* @__PURE__ */ n.jsx(H, { as: "h4", className: d("text-left", a == null ? void 0 : a.headline), children: r }),
1655
1655
  ...i,
1656
1656
  classes: {
1657
1657
  ...i == null ? void 0 : i.classes,
@@ -1660,35 +1660,35 @@ const Yt = [
1660
1660
  },
1661
1661
  content: d("max-w-full bg-color-blue-grey-100 relative", (x = i == null ? void 0 : i.classes) == null ? void 0 : x.content)
1662
1662
  },
1663
- children: /* @__PURE__ */ r.jsx("div", { className: d(Ir({ variant: t }), a == null ? void 0 : a.columnsWrapper), children: e == null ? void 0 : e.map((p, c) => /* @__PURE__ */ r.jsx(Cr, { ...p, ...o, classes: a == null ? void 0 : a.column }, c)) })
1663
+ children: /* @__PURE__ */ n.jsx("div", { className: d(Ir({ variant: e }), a == null ? void 0 : a.columnsWrapper), children: t == null ? void 0 : t.map((p, c) => /* @__PURE__ */ n.jsx(Cr, { ...p, ...o, classes: a == null ? void 0 : a.column }, c)) })
1664
1664
  }
1665
1665
  ) })
1666
1666
  }
1667
1667
  );
1668
- }, Tr = ({ tabsNames: t, activeTab: e, setActiveTab: n, classes: o }) => /* @__PURE__ */ r.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__ */ r.jsx(
1668
+ }, Tr = ({ tabsNames: e, activeTab: t, 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: e && e.map((i, a) => /* @__PURE__ */ n.jsx(
1669
1669
  "button",
1670
1670
  {
1671
- onClick: () => n(a),
1671
+ onClick: () => r(a),
1672
1672
  className: d(
1673
1673
  "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",
1674
1674
  {
1675
- "bg-icon-primary-default text-color-white": e === a
1675
+ "bg-icon-primary-default text-color-white": t === a
1676
1676
  },
1677
1677
  o == null ? void 0 : o.button
1678
1678
  ),
1679
1679
  children: i
1680
1680
  },
1681
1681
  i
1682
- )) }), Mr = (t) => t.variant === "HTML", Er = (t) => t.variant === "DOCUMENTS", Fr = (t) => t.variant === "TABLE", Or = ({ html: t, config: e, classes: n, accordionConfig: o }) => {
1683
- const i = /* @__PURE__ */ r.jsx("div", { className: d(n == null ? void 0 : n.html), dangerouslySetInnerHTML: { __html: t ?? "" } });
1684
- return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ r.jsx(oe, { label: e == null ? void 0 : e.accordionTitle, ...o, children: (o == null ? void 0 : o.children) ?? i }) : i });
1685
- }, Sr = (t, e) => ({
1686
- rows: t == null ? void 0 : t.map(({ row: n }) => ({
1687
- row: n == null ? void 0 : n.map((o, i) => {
1682
+ )) }), Mr = (e) => e.variant === "HTML", Er = (e) => e.variant === "DOCUMENTS", Fr = (e) => e.variant === "TABLE", Or = ({ html: e, config: t, classes: r, accordionConfig: o }) => {
1683
+ const i = /* @__PURE__ */ n.jsx("div", { className: d(r == null ? void 0 : r.html), dangerouslySetInnerHTML: { __html: e ?? "" } });
1684
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ n.jsx(ot, { label: t == null ? void 0 : t.accordionTitle, ...o, children: (o == null ? void 0 : o.children) ?? i }) : i });
1685
+ }, Sr = (e, t) => ({
1686
+ rows: e == null ? void 0 : e.map(({ row: r }) => ({
1687
+ row: r == null ? void 0 : r.map((o, i) => {
1688
1688
  var a;
1689
1689
  return {
1690
1690
  ...o,
1691
- heading: e && ((a = e[i]) == null ? void 0 : a.heading)
1691
+ heading: t && ((a = t[i]) == null ? void 0 : a.heading)
1692
1692
  };
1693
1693
  })
1694
1694
  }))
@@ -1706,7 +1706,7 @@ const Yt = [
1706
1706
  threeCols: "grid-cols-3 gap-12"
1707
1707
  }
1708
1708
  }
1709
- }), _r = ({ headings: t, columnsVariant: e, classes: n }) => /* @__PURE__ */ r.jsx("div", { className: d(Rr({ columnsVariant: e }), n == null ? void 0 : n.row), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ r.jsx("div", { className: d("text-color-secondary", n == null ? void 0 : n.cell), children: o == null ? void 0 : o.heading }, o == null ? void 0 : o.heading)) }), Hr = F("desktop:grid mobile:hidden items-center", {
1709
+ }), _r = ({ headings: e, columnsVariant: t, classes: r }) => /* @__PURE__ */ n.jsx("div", { className: d(Rr({ columnsVariant: t }), r == null ? void 0 : r.row), children: e == null ? void 0 : e.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)) }), Hr = F("desktop:grid mobile:hidden items-center", {
1710
1710
  variants: {
1711
1711
  columnsVariant: {
1712
1712
  twoCols: "grid-cols-2 gap-16",
@@ -1717,7 +1717,7 @@ const Yt = [
1717
1717
  separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
1718
1718
  }
1719
1719
  }
1720
- }), Pr = ({ row: t, tableVariant: e, columnsVariant: n, rowIndex: o, classes: i }) => /* @__PURE__ */ r.jsx("div", { className: d(Hr({ columnsVariant: n, tableVariant: e }), { "border-none": o === 0 }, i == null ? void 0 : i.row), children: t == null ? void 0 : t.map(({ cell: a }, l) => /* @__PURE__ */ r.jsx(
1720
+ }), Pr = ({ row: e, tableVariant: t, columnsVariant: r, rowIndex: o, classes: i }) => /* @__PURE__ */ n.jsx("div", { className: d(Hr({ columnsVariant: r, tableVariant: t }), { "border-none": o === 0 }, i == null ? void 0 : i.row), children: e == null ? void 0 : e.map(({ cell: a }, l) => /* @__PURE__ */ n.jsx(
1721
1721
  "div",
1722
1722
  {
1723
1723
  className: d("desk-body-regular-l text-color-dark", { "font-medium": l !== 0 }, i == null ? void 0 : i.cell),
@@ -1731,42 +1731,42 @@ const Yt = [
1731
1731
  separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
1732
1732
  }
1733
1733
  }
1734
- }), Lr = ({ row: t, tableVariant: e, columnsVariant: n, headingsExist: o, classes: i }) => /* @__PURE__ */ r.jsx("div", { className: d(Dr({ tableVariant: e }), i == null ? void 0 : i.row), children: t == null ? void 0 : t.map(({ cell: a, heading: l }, u) => /* @__PURE__ */ r.jsxs("div", { className: d("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !o }, i == null ? void 0 : i.wrapper), children: [
1735
- l && /* @__PURE__ */ r.jsx("div", { className: d("mob-body-regular-l text-color-secondary", i == null ? void 0 : i.heading), children: l }),
1736
- /* @__PURE__ */ r.jsx(
1734
+ }), Lr = ({ row: e, tableVariant: t, columnsVariant: r, headingsExist: o, classes: i }) => /* @__PURE__ */ n.jsx("div", { className: d(Dr({ tableVariant: t }), i == null ? void 0 : i.row), children: e == null ? void 0 : e.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: [
1735
+ l && /* @__PURE__ */ n.jsx("div", { className: d("mob-body-regular-l text-color-secondary", i == null ? void 0 : i.heading), children: l }),
1736
+ /* @__PURE__ */ n.jsx(
1737
1737
  "div",
1738
1738
  {
1739
1739
  className: d(
1740
1740
  "mob-body-regular-l text-color-dark",
1741
1741
  {
1742
- "font-medium": u !== 0 && n === "twoCols" || n === "threeCols" || n === "twoCols" && o
1742
+ "font-medium": u !== 0 && r === "twoCols" || r === "threeCols" || r === "twoCols" && o
1743
1743
  },
1744
1744
  i == null ? void 0 : i.cell
1745
1745
  ),
1746
1746
  children: a
1747
1747
  }
1748
1748
  )
1749
- ] }, u)) }), zr = ({ tableVariant: t, rows: e, headings: n, columnsVariant: o, classes: i }) => {
1749
+ ] }, u)) }), zr = ({ tableVariant: e, rows: t, headings: r, columnsVariant: o, classes: i }) => {
1750
1750
  var u;
1751
- const a = ((u = Sr(e, n)) == null ? void 0 : u.rows) ?? [], l = !!(n && n.length > 0);
1752
- return /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-col", i == null ? void 0 : i.wrapper), children: [
1753
- l && /* @__PURE__ */ r.jsx(_r, { headings: n, columnsVariant: o, classes: i == null ? void 0 : i.desktopHeading }),
1754
- e == null ? void 0 : e.map((m, x) => /* @__PURE__ */ r.jsx(
1751
+ const a = ((u = Sr(t, r)) == null ? void 0 : u.rows) ?? [], l = !!(r && r.length > 0);
1752
+ return /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col", i == null ? void 0 : i.wrapper), children: [
1753
+ l && /* @__PURE__ */ n.jsx(_r, { headings: r, columnsVariant: o, classes: i == null ? void 0 : i.desktopHeading }),
1754
+ t == null ? void 0 : t.map((m, x) => /* @__PURE__ */ n.jsx(
1755
1755
  Pr,
1756
1756
  {
1757
1757
  rowIndex: x,
1758
- tableVariant: t,
1758
+ tableVariant: e,
1759
1759
  columnsVariant: o,
1760
1760
  classes: i == null ? void 0 : i.desktopRow,
1761
1761
  ...m
1762
1762
  },
1763
1763
  x
1764
1764
  )),
1765
- a == null ? void 0 : a.map((m, x) => /* @__PURE__ */ r.jsx(
1765
+ a == null ? void 0 : a.map((m, x) => /* @__PURE__ */ n.jsx(
1766
1766
  Lr,
1767
1767
  {
1768
1768
  headingsExist: l,
1769
- tableVariant: t,
1769
+ tableVariant: e,
1770
1770
  columnsVariant: o,
1771
1771
  classes: i == null ? void 0 : i.desktopRow,
1772
1772
  ...m
@@ -1775,9 +1775,9 @@ const Yt = [
1775
1775
  ))
1776
1776
  ] });
1777
1777
  }, Qr = ({
1778
- tableVariant: t,
1779
- description: e,
1780
- columnsVariant: n,
1778
+ tableVariant: e,
1779
+ description: t,
1780
+ columnsVariant: r,
1781
1781
  config: o,
1782
1782
  rows: i,
1783
1783
  title: a,
@@ -1785,18 +1785,18 @@ const Yt = [
1785
1785
  accordionConfig: u,
1786
1786
  classes: m
1787
1787
  }) => {
1788
- const x = /* @__PURE__ */ r.jsxs("div", { className: d(Br({ columnsVariant: n }), m == null ? void 0 : m.wrapper), children: [
1789
- a && /* @__PURE__ */ r.jsx(H, { as: "h4", className: d("mb-4 desktop:mb-6", m == null ? void 0 : m.headline), children: a }),
1790
- /* @__PURE__ */ r.jsx(zr, { tableVariant: t, rows: i, headings: l, columnsVariant: n }),
1791
- e && /* @__PURE__ */ r.jsx(
1788
+ const x = /* @__PURE__ */ n.jsxs("div", { className: d(Br({ columnsVariant: r }), m == null ? void 0 : m.wrapper), children: [
1789
+ a && /* @__PURE__ */ n.jsx(H, { as: "h4", className: d("mb-4 desktop:mb-6", m == null ? void 0 : m.headline), children: a }),
1790
+ /* @__PURE__ */ n.jsx(zr, { tableVariant: e, rows: i, headings: l, columnsVariant: r }),
1791
+ t && /* @__PURE__ */ n.jsx(
1792
1792
  "div",
1793
1793
  {
1794
1794
  className: d("mt-2 [&&]:desk-body-regular-m desktop:mt-2", m == null ? void 0 : m.description),
1795
- dangerouslySetInnerHTML: { __html: e ?? "" }
1795
+ dangerouslySetInnerHTML: { __html: t ?? "" }
1796
1796
  }
1797
1797
  )
1798
1798
  ] });
1799
- return /* @__PURE__ */ r.jsx(r.Fragment, { children: o && (o != null && o.isAccordion) && (o != null && o.accordionTitle) ? /* @__PURE__ */ r.jsx(oe, { label: o == null ? void 0 : o.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || x }) : x });
1799
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: o && (o != null && o.isAccordion) && (o != null && o.accordionTitle) ? /* @__PURE__ */ n.jsx(ot, { label: o == null ? void 0 : o.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || x }) : x });
1800
1800
  }, Vr = {
1801
1801
  documentFilled: "files/documentFilled",
1802
1802
  documentOutline: "files/documentOutline"
@@ -1810,10 +1810,10 @@ const Yt = [
1810
1810
  defaultVariants: {
1811
1811
  iconType: "documentOutline"
1812
1812
  }
1813
- }), qr = ({ label: t, size: e, url: n, iconType: o, classes: i }) => /* @__PURE__ */ r.jsxs(
1813
+ }), qr = ({ label: e, size: t, url: r, iconType: o, classes: i }) => /* @__PURE__ */ n.jsxs(
1814
1814
  "a",
1815
1815
  {
1816
- href: n,
1816
+ href: r,
1817
1817
  target: "_blank",
1818
1818
  rel: "noreferrer",
1819
1819
  tabIndex: 0,
@@ -1822,53 +1822,53 @@ const Yt = [
1822
1822
  i == null ? void 0 : i.link
1823
1823
  ),
1824
1824
  children: [
1825
- /* @__PURE__ */ r.jsx(f, { name: Vr[o], className: d(Ar({ iconType: o }), i == null ? void 0 : i.icon) }),
1826
- /* @__PURE__ */ r.jsxs("div", { className: d("flex flex-1 flex-col", i == null ? void 0 : i.wrapper), children: [
1827
- /* @__PURE__ */ r.jsx("p", { className: d("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: t }),
1828
- /* @__PURE__ */ r.jsxs("div", { className: d("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
1829
- Number(e),
1825
+ /* @__PURE__ */ n.jsx(f, { name: Vr[o], className: d(Ar({ iconType: o }), i == null ? void 0 : i.icon) }),
1826
+ /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-1 flex-col", i == null ? void 0 : i.wrapper), children: [
1827
+ /* @__PURE__ */ n.jsx("p", { className: d("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: e }),
1828
+ /* @__PURE__ */ n.jsxs("div", { className: d("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
1829
+ Number(t),
1830
1830
  " КБ"
1831
1831
  ] })
1832
1832
  ] })
1833
1833
  ]
1834
1834
  }
1835
- ), Ur = ({ docs: t, config: e, title: n, iconType: o, description: i, classes: a, accordionConfig: l }) => {
1836
- const u = /* @__PURE__ */ r.jsxs("div", { className: d("flex max-w-[680px] flex-col", a == null ? void 0 : a.wrapper), children: [
1837
- n && /* @__PURE__ */ r.jsx(H, { as: "h3", className: "mb-4", children: n }),
1838
- /* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-4", a == null ? void 0 : a.documentsWrapper), children: t == null ? void 0 : t.map((m) => /* @__PURE__ */ r.jsx(qr, { iconType: o, ...m, classes: a == null ? void 0 : a.singleDocument }, m.label)) }),
1839
- i && /* @__PURE__ */ r.jsx("div", { className: d("mt-4", a == null ? void 0 : a.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
1835
+ ), Ur = ({ docs: e, config: t, title: r, iconType: o, description: i, classes: a, accordionConfig: l }) => {
1836
+ const u = /* @__PURE__ */ n.jsxs("div", { className: d("flex max-w-[680px] flex-col", a == null ? void 0 : a.wrapper), children: [
1837
+ r && /* @__PURE__ */ n.jsx(H, { as: "h3", className: "mb-4", children: r }),
1838
+ /* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-4", a == null ? void 0 : a.documentsWrapper), children: e == null ? void 0 : e.map((m) => /* @__PURE__ */ n.jsx(qr, { iconType: o, ...m, classes: a == null ? void 0 : a.singleDocument }, m.label)) }),
1839
+ i && /* @__PURE__ */ n.jsx("div", { className: d("mt-4", a == null ? void 0 : a.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
1840
1840
  ] });
1841
- return /* @__PURE__ */ r.jsx(r.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ r.jsx(oe, { label: e == null ? void 0 : e.accordionTitle, ...l, children: (l == null ? void 0 : l.children) || u }) : u });
1842
- }, Wr = ({ entity: t, classes: e, accordionsConfig: n }) => {
1841
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ n.jsx(ot, { label: t == null ? void 0 : t.accordionTitle, ...l, children: (l == null ? void 0 : l.children) || u }) : u });
1842
+ }, Wr = ({ entity: e, classes: t, accordionsConfig: r }) => {
1843
1843
  var o, i, a;
1844
1844
  switch (!0) {
1845
- case Mr(t):
1846
- return (o = t.details) == null ? void 0 : o.map((l, u) => {
1845
+ case Mr(e):
1846
+ return (o = e.details) == null ? void 0 : o.map((l, u) => {
1847
1847
  var m;
1848
- return /* @__PURE__ */ r.jsx(Or, { ...l, accordionConfig: n == null ? void 0 : n.htmlAccordion, classes: (m = e == null ? void 0 : e.entities) == null ? void 0 : m.html }, u);
1848
+ return /* @__PURE__ */ n.jsx(Or, { ...l, accordionConfig: r == null ? void 0 : r.htmlAccordion, classes: (m = t == null ? void 0 : t.entities) == null ? void 0 : m.html }, u);
1849
1849
  });
1850
- case Er(t):
1851
- return (i = t.details) == null ? void 0 : i.map((l, u) => {
1850
+ case Er(e):
1851
+ return (i = e.details) == null ? void 0 : i.map((l, u) => {
1852
1852
  var m;
1853
- return /* @__PURE__ */ r.jsx(
1853
+ return /* @__PURE__ */ n.jsx(
1854
1854
  Ur,
1855
1855
  {
1856
- accordionConfig: n == null ? void 0 : n.documentAccordion,
1856
+ accordionConfig: r == null ? void 0 : r.documentAccordion,
1857
1857
  ...l,
1858
- classes: (m = e == null ? void 0 : e.entities) == null ? void 0 : m.documents
1858
+ classes: (m = t == null ? void 0 : t.entities) == null ? void 0 : m.documents
1859
1859
  },
1860
1860
  u
1861
1861
  );
1862
1862
  });
1863
- case Fr(t):
1864
- return (a = t.details) == null ? void 0 : a.map((l, u) => {
1863
+ case Fr(e):
1864
+ return (a = e.details) == null ? void 0 : a.map((l, u) => {
1865
1865
  var m;
1866
- return /* @__PURE__ */ r.jsx(
1866
+ return /* @__PURE__ */ n.jsx(
1867
1867
  Qr,
1868
1868
  {
1869
- accordionConfig: n == null ? void 0 : n.tableAccordion,
1869
+ accordionConfig: r == null ? void 0 : r.tableAccordion,
1870
1870
  ...l,
1871
- classes: (m = e == null ? void 0 : e.entities) == null ? void 0 : m.table
1871
+ classes: (m = t == null ? void 0 : t.entities) == null ? void 0 : m.table
1872
1872
  },
1873
1873
  u
1874
1874
  );
@@ -1876,23 +1876,23 @@ const Yt = [
1876
1876
  default:
1877
1877
  return null;
1878
1878
  }
1879
- }, Kr = ({ entity: t, classes: e, accordionsConfig: n }) => /* @__PURE__ */ r.jsx("div", { className: d("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: Wr({ entity: t, classes: e, accordionsConfig: n }) }), to = ({ headline: t, tabs: e, classes: n, accordionsConfig: o }) => {
1879
+ }, Kr = ({ entity: e, classes: t, accordionsConfig: r }) => /* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-6", t == null ? void 0 : t.entityWrapper), children: Wr({ entity: e, classes: t, accordionsConfig: r }) }), eo = ({ headline: e, tabs: t, classes: r, accordionsConfig: o }) => {
1880
1880
  var u, m;
1881
- const [i, a] = Q(0), l = je(() => e == null ? void 0 : e.map((x) => x == null ? void 0 : x.tabName), [e]) ?? [];
1882
- return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ r.jsx("section", { id: b.usefulInfo, "data-test-id": b.usefulInfo, className: d(n == null ? void 0 : n.root), children: /* @__PURE__ */ r.jsxs(S, { className: d(n == null ? void 0 : n.container), children: [
1883
- /* @__PURE__ */ r.jsx(H, { className: d(n == null ? void 0 : n.headline), as: "h2", children: t }),
1884
- /* @__PURE__ */ r.jsx("div", { className: d("mt-6 flex flex-col gap-2 desktop:mt-12", n == null ? void 0 : n.tabsWrapper), children: /* @__PURE__ */ r.jsx(Tr, { tabsNames: l, activeTab: i, setActiveTab: a, classes: n == null ? void 0 : n.tabs }) }),
1885
- /* @__PURE__ */ r.jsx("div", { className: d("mt-6 flex flex-col gap-6", n == null ? void 0 : n.contentWrapper), children: (m = (u = e == null ? void 0 : e[i]) == null ? void 0 : u.contents) == null ? void 0 : m.map((x, p) => /* @__PURE__ */ r.jsx(Kr, { accordionsConfig: o, ...x, classes: n == null ? void 0 : n.entityClasses }, p)) })
1881
+ const [i, a] = z(0), l = jt(() => t == null ? void 0 : t.map((x) => x == null ? void 0 : x.tabName), [t]) ?? [];
1882
+ return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ n.jsx("section", { id: b.usefulInfo, "data-test-id": b.usefulInfo, className: d(r == null ? void 0 : r.root), children: /* @__PURE__ */ n.jsxs(S, { className: d(r == null ? void 0 : r.container), children: [
1883
+ /* @__PURE__ */ n.jsx(H, { className: d(r == null ? void 0 : r.headline), as: "h2", children: e }),
1884
+ /* @__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(Tr, { tabsNames: l, activeTab: i, setActiveTab: a, classes: r == null ? void 0 : r.tabs }) }),
1885
+ /* @__PURE__ */ n.jsx("div", { className: d("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (m = (u = t == null ? void 0 : t[i]) == null ? void 0 : u.contents) == null ? void 0 : m.map((x, p) => /* @__PURE__ */ n.jsx(Kr, { accordionsConfig: o, ...x, classes: r == null ? void 0 : r.entityClasses }, p)) })
1886
1886
  ] }) });
1887
- }, ht = ({ fields: t, control: e }) => t.map(({ type: n, args: o }) => {
1888
- const i = Ft[n];
1889
- return /* @__PURE__ */ et(i, { ...o, key: o.name, control: e });
1887
+ }, he = ({ fields: e, control: t }) => e.map(({ type: r, args: o }) => {
1888
+ const i = Fe[r];
1889
+ return /* @__PURE__ */ te(i, { ...o, key: o.name, control: t });
1890
1890
  });
1891
1891
  class $r {
1892
- constructor(e) {
1893
- ae(this, "TEXT_NODE", 3);
1894
- ae(this, "ELEMENT_NODE", 1);
1895
- this.options = e;
1892
+ constructor(t) {
1893
+ at(this, "TEXT_NODE", 3);
1894
+ at(this, "ELEMENT_NODE", 1);
1895
+ this.options = t;
1896
1896
  }
1897
1897
  /**
1898
1898
  * Рекурсивно обходит DOM дерево и собирает данные в зависимости от опций.
@@ -1900,36 +1900,36 @@ class $r {
1900
1900
  * @param elements Массив для сбора элементов
1901
1901
  * @param as Тип возвращаемых данных ('string' или 'node')
1902
1902
  */
1903
- traverse(e, n = "string", o) {
1903
+ traverse(t, r = "string", o) {
1904
1904
  const { includeSolidText: i, recursive: a, element: l } = this.options || {};
1905
- switch (e.nodeType) {
1905
+ switch (t.nodeType) {
1906
1906
  // если узел - элемент
1907
1907
  case this.ELEMENT_NODE:
1908
- const u = e, m = u.tagName.toLowerCase();
1908
+ const u = t, m = u.tagName.toLowerCase();
1909
1909
  if (m === "script") {
1910
1910
  console.warn("Found script node. For better security this node will be skipped.");
1911
1911
  break;
1912
1912
  }
1913
1913
  if (l && m !== l)
1914
1914
  break;
1915
- if (n === "node")
1916
- o.push(e);
1915
+ if (r === "node")
1916
+ o.push(t);
1917
1917
  else {
1918
1918
  const x = u.outerHTML.trim();
1919
1919
  o.push(x);
1920
1920
  }
1921
1921
  if (a)
1922
- for (const x of e.childNodes)
1923
- this.traverse(x, n, o);
1922
+ for (const x of t.childNodes)
1923
+ this.traverse(x, r, o);
1924
1924
  break;
1925
1925
  // если узел - текстовый и требуется его добавить, добавляем
1926
1926
  case this.TEXT_NODE:
1927
1927
  if (!i)
1928
1928
  break;
1929
- if (n === "node")
1930
- o.push(e);
1929
+ if (r === "node")
1930
+ o.push(t);
1931
1931
  else {
1932
- const x = e.textContent;
1932
+ const x = t.textContent;
1933
1933
  x && o.push(x);
1934
1934
  }
1935
1935
  break;
@@ -1941,13 +1941,13 @@ class $r {
1941
1941
  * @param as Тип возвращаемых данных ('string' или 'node')
1942
1942
  * @returns Массив тегов или нод
1943
1943
  */
1944
- async parse(e, n = "string") {
1945
- const { includeBody: o } = this.options || {}, i = [], a = [], l = await this.parseFromString(e), u = n === "string" ? i : a;
1944
+ async parse(t, r = "string") {
1945
+ const { includeBody: o } = this.options || {}, i = [], a = [], l = await this.parseFromString(t), u = r === "string" ? i : a;
1946
1946
  if (o)
1947
- this.traverse(l.body, n, u);
1947
+ this.traverse(l.body, r, u);
1948
1948
  else
1949
1949
  for (const m of l.body.childNodes)
1950
- this.traverse(m, n, u);
1950
+ this.traverse(m, r, u);
1951
1951
  return { stringNodes: i, nodes: a };
1952
1952
  }
1953
1953
  /**
@@ -1955,30 +1955,30 @@ class $r {
1955
1955
  * @param html HTML строка
1956
1956
  * @returns Количество найденных тегов
1957
1957
  */
1958
- async countElements(e) {
1959
- const { stringNodes: n } = await this.parse(e, "string");
1960
- return n.length;
1958
+ async countElements(t) {
1959
+ const { stringNodes: r } = await this.parse(t, "string");
1960
+ return r.length;
1961
1961
  }
1962
1962
  }
1963
1963
  const Zr = typeof window < "u";
1964
1964
  class Xr extends $r {
1965
- constructor(e) {
1966
- super(e);
1965
+ constructor(t) {
1966
+ super(t);
1967
1967
  }
1968
- async parseFromString(e) {
1969
- return Zr ? new DOMParser().parseFromString(e, "text/html") : Promise.reject();
1968
+ async parseFromString(t) {
1969
+ return Zr ? new DOMParser().parseFromString(t, "text/html") : Promise.reject();
1970
1970
  }
1971
1971
  }
1972
- class Ne {
1972
+ class Nt {
1973
1973
  /**
1974
1974
  * Функция для парсинга ноды в react элемент
1975
1975
  */
1976
- static parseNode(e) {
1977
- if (e.nodeType === this.TEXT_NODE)
1978
- return e.textContent ?? null;
1979
- if (e.nodeType === this.ELEMENT_NODE) {
1980
- const n = e, o = n.tagName.toLowerCase(), i = {};
1981
- for (const l of n.attributes) {
1976
+ static parseNode(t) {
1977
+ if (t.nodeType === this.TEXT_NODE)
1978
+ return t.textContent ?? null;
1979
+ if (t.nodeType === this.ELEMENT_NODE) {
1980
+ const r = t, o = r.tagName.toLowerCase(), i = {};
1981
+ for (const l of r.attributes) {
1982
1982
  let u = l.name, m = l.value;
1983
1983
  switch (l.name) {
1984
1984
  case "class":
@@ -2011,40 +2011,40 @@ class Ne {
2011
2011
  }
2012
2012
  i.key = Math.random().toString(36).substring(2, 9);
2013
2013
  const a = [];
2014
- for (const l of n.childNodes) {
2014
+ for (const l of r.childNodes) {
2015
2015
  const u = this.parseNode(l);
2016
2016
  u && a.push(u);
2017
2017
  }
2018
- return et(o, i, ...a);
2018
+ return te(o, i, ...a);
2019
2019
  }
2020
2020
  return null;
2021
2021
  }
2022
2022
  /**
2023
2023
  * функция для преобразования html строки в react элементы
2024
2024
  */
2025
- static async toReactNodes(e, n) {
2026
- const o = new Xr(n), { nodes: i } = await o.parse(e, "node");
2025
+ static async toReactNodes(t, r) {
2026
+ const o = new Xr(r), { nodes: i } = await o.parse(t, "node");
2027
2027
  return i.map((a) => this.parseNode(a));
2028
2028
  }
2029
2029
  }
2030
- ae(Ne, "TEXT_NODE", 3), ae(Ne, "ELEMENT_NODE", 1);
2031
- const Jr = ({ promises: t }) => {
2032
- const [e, n] = Q([]);
2033
- return tt(() => {
2030
+ at(Nt, "TEXT_NODE", 3), at(Nt, "ELEMENT_NODE", 1);
2031
+ const Jr = ({ promises: e }) => {
2032
+ const [t, r] = z([]);
2033
+ return ee(() => {
2034
2034
  (async () => {
2035
- n(await t);
2035
+ r(await e);
2036
2036
  })();
2037
- }, [t]), /* @__PURE__ */ r.jsx(r.Fragment, { children: e });
2038
- }, be = ({ html: t, options: e, as: n, ...o }) => {
2039
- const i = n ?? _t, a = n ? o : {}, l = Ne.toReactNodes(t, e);
2037
+ }, [e]), /* @__PURE__ */ n.jsx(n.Fragment, { children: t });
2038
+ }, bt = ({ html: e, options: t, as: r, ...o }) => {
2039
+ const i = r ?? _e, a = r ? o : {}, l = Nt.toReactNodes(e, t);
2040
2040
  return (
2041
2041
  // @ts-expect-error disable warning
2042
- /* @__PURE__ */ r.jsx(i, { ...a, children: /* @__PURE__ */ r.jsx(Jr, { promises: l }) })
2042
+ /* @__PURE__ */ n.jsx(i, { ...a, children: /* @__PURE__ */ n.jsx(Jr, { promises: l }) })
2043
2043
  );
2044
- }, Yr = (t, e) => t.enabled ? e.map((n) => ({
2045
- name: n.args.name,
2046
- ...n.args.progress
2047
- })) : null, Gr = new Jt(), en = ({ children: t }) => /* @__PURE__ */ r.jsx(Ot, { client: Gr, children: t }), tn = (t, e, n, o) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ r.jsx(be, { html: t.message, as: "div", className: o == null ? void 0 : o.content }) : /* @__PURE__ */ r.jsxs(
2044
+ }, Yr = (e, t) => e.enabled ? t.map((r) => ({
2045
+ name: r.args.name,
2046
+ ...r.args.progress
2047
+ })) : null, Gr = new Je(), tn = ({ children: e }) => /* @__PURE__ */ n.jsx(Oe, { client: Gr, children: e }), en = (e, t, r, o) => e.type === "off" ? null : e.type === "text" ? /* @__PURE__ */ n.jsx(bt, { html: e.message, as: "div", className: o == null ? void 0 : o.content }) : /* @__PURE__ */ n.jsxs(
2048
2048
  "label",
2049
2049
  {
2050
2050
  className: d(
@@ -2053,28 +2053,28 @@ const Jr = ({ promises: t }) => {
2053
2053
  "flex items-center justify-items-start gap-x-3"
2054
2054
  ),
2055
2055
  children: [
2056
- /* @__PURE__ */ r.jsx(Ye.CheckboxBase, { classes: o == null ? void 0 : o.checkbox, checked: e, onCheckedChange: n }),
2057
- /* @__PURE__ */ r.jsx(be, { html: t.content, as: "div", className: o == null ? void 0 : o.content })
2056
+ /* @__PURE__ */ n.jsx(Yt.CheckboxBase, { classes: o == null ? void 0 : o.checkbox, checked: t, onCheckedChange: r }),
2057
+ /* @__PURE__ */ n.jsx(bt, { html: e.content, as: "div", className: o == null ? void 0 : o.content })
2058
2058
  ]
2059
2059
  }
2060
2060
  ), ro = ({
2061
- fields: t,
2062
- title: e,
2063
- progress: n,
2061
+ fields: e,
2062
+ title: t,
2063
+ progress: r,
2064
2064
  approvement: o,
2065
2065
  chips: i,
2066
2066
  submitProps: a,
2067
2067
  classes: l
2068
2068
  }) => {
2069
- var V, N;
2070
- const { submitCallback: u, ...m } = a || {}, [x, p] = Q(!1), c = ut(t), g = at.getZodDefaults(c), { control: k, handleSubmit: v } = nt({
2069
+ var Q, N;
2070
+ const { submitCallback: u, ...m } = a || {}, [x, p] = z(!1), c = ue(e), g = ae.getZodDefaults(c), { control: k, handleSubmit: v } = ne({
2071
2071
  schema: c,
2072
2072
  defaultValues: g,
2073
2073
  mode: "onBlur"
2074
- }), I = Yr(n, t), P = qt({ control: k, fields: I || [], schema: c }), G = (M) => {
2074
+ }), I = Yr(r, e), P = qe({ control: k, fields: I || [], schema: c }), G = (M) => {
2075
2075
  u && u({ ...M, agree: x }), console.warn(M);
2076
2076
  };
2077
- return /* @__PURE__ */ r.jsx(en, { children: /* @__PURE__ */ r.jsxs(
2077
+ return /* @__PURE__ */ n.jsx(tn, { children: /* @__PURE__ */ n.jsxs(
2078
2078
  "div",
2079
2079
  {
2080
2080
  id: b.form,
@@ -2085,43 +2085,43 @@ const Jr = ({ promises: t }) => {
2085
2085
  l == null ? void 0 : l.root
2086
2086
  ),
2087
2087
  children: [
2088
- i.enabled && /* @__PURE__ */ r.jsxs(
2088
+ i.enabled && /* @__PURE__ */ n.jsxs(
2089
2089
  "div",
2090
2090
  {
2091
2091
  className: d(
2092
2092
  "desk-body-regular-l flex items-center gap-x-2 rounded-sm desktop:absolute",
2093
2093
  "bg-color-blue-grey-100 px-2 py-1 text-color-tetriary",
2094
2094
  "right-4 top-4 w-max",
2095
- (V = l == null ? void 0 : l.chips) == null ? void 0 : V.root
2095
+ (Q = l == null ? void 0 : l.chips) == null ? void 0 : Q.root
2096
2096
  ),
2097
2097
  children: [
2098
- i.image && /* @__PURE__ */ r.jsx(f, { name: i.image, className: d("size-4", (N = l == null ? void 0 : l.chips) == null ? void 0 : N.icon) }),
2098
+ i.image && /* @__PURE__ */ n.jsx(f, { name: i.image, className: d("size-4", (N = l == null ? void 0 : l.chips) == null ? void 0 : N.icon) }),
2099
2099
  i.content
2100
2100
  ]
2101
2101
  }
2102
2102
  ),
2103
- /* @__PURE__ */ r.jsx(H, { as: "h3", className: l == null ? void 0 : l.title, children: e }),
2104
- /* @__PURE__ */ r.jsxs(
2103
+ /* @__PURE__ */ n.jsx(H, { as: "h3", className: l == null ? void 0 : l.title, children: t }),
2104
+ /* @__PURE__ */ n.jsxs(
2105
2105
  "form",
2106
2106
  {
2107
2107
  onSubmit: v(G),
2108
2108
  className: d("flex w-[328px] flex-col gap-y-6", "desktop:w-[524px] desktop:gap-y-8", l == null ? void 0 : l.form),
2109
2109
  children: [
2110
- n.enabled && /* @__PURE__ */ r.jsx(
2111
- St,
2110
+ r.enabled && /* @__PURE__ */ n.jsx(
2111
+ Se,
2112
2112
  {
2113
2113
  progress: P,
2114
- topContent: /* @__PURE__ */ r.jsx(be, { html: n.title }),
2115
- bottomContent: /* @__PURE__ */ r.jsx(be, { html: n.subtitle }),
2116
- maxPercent: n.maxPercent,
2114
+ topContent: /* @__PURE__ */ n.jsx(bt, { html: r.title }),
2115
+ bottomContent: /* @__PURE__ */ n.jsx(bt, { html: r.subtitle }),
2116
+ maxPercent: r.maxPercent,
2117
2117
  classes: l == null ? void 0 : l.progressBar
2118
2118
  }
2119
2119
  ),
2120
- /* @__PURE__ */ r.jsx(ht, { control: k, fields: t }),
2121
- /* @__PURE__ */ r.jsxs("div", { className: "mob-body-regular-m flex flex-col items-center justify-center gap-4 desktop:flex-row desktop:justify-between", children: [
2122
- tn(o, x, p, l == null ? void 0 : l.approvement),
2123
- /* @__PURE__ */ r.jsx(
2124
- Ce,
2120
+ /* @__PURE__ */ n.jsx(he, { control: k, fields: e }),
2121
+ /* @__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: [
2122
+ en(o, x, p, l == null ? void 0 : l.approvement),
2123
+ /* @__PURE__ */ n.jsx(
2124
+ Ct,
2125
2125
  {
2126
2126
  ...m,
2127
2127
  type: "submit",
@@ -2143,16 +2143,16 @@ const Jr = ({ promises: t }) => {
2143
2143
  ]
2144
2144
  }
2145
2145
  ) });
2146
- }, de = () => ({
2146
+ }, dt = () => ({
2147
2147
  approve: {
2148
2148
  icon: {
2149
- element: /* @__PURE__ */ r.jsx(f, { name: "status/iconMark" }),
2149
+ element: /* @__PURE__ */ n.jsx(f, { name: "status/iconMark" }),
2150
2150
  bg: "bg-color-positive-light"
2151
2151
  },
2152
2152
  title: "Ваша заявка отправлена",
2153
- description: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2153
+ description: /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2154
2154
  "В ближайшее время с Вами свяжутся ",
2155
- /* @__PURE__ */ r.jsx("br", {}),
2155
+ /* @__PURE__ */ n.jsx("br", {}),
2156
2156
  " специалисты нашего Банка"
2157
2157
  ] }),
2158
2158
  button: {
@@ -2161,13 +2161,13 @@ const Jr = ({ promises: t }) => {
2161
2161
  },
2162
2162
  repeated: {
2163
2163
  icon: {
2164
- element: /* @__PURE__ */ r.jsx(f, { name: "status/iconUser" }),
2164
+ element: /* @__PURE__ */ n.jsx(f, { name: "status/iconUser" }),
2165
2165
  bg: "bg-color-positive-light"
2166
2166
  },
2167
2167
  title: "Мы вас узнали",
2168
- description: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2168
+ description: /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2169
2169
  "Решение по прошлой заявке ещё активно. ",
2170
- /* @__PURE__ */ r.jsx("br", {}),
2170
+ /* @__PURE__ */ n.jsx("br", {}),
2171
2171
  "Возвращайтесь к нам позже"
2172
2172
  ] }),
2173
2173
  button: {
@@ -2176,13 +2176,13 @@ const Jr = ({ promises: t }) => {
2176
2176
  },
2177
2177
  error: {
2178
2178
  icon: {
2179
- element: /* @__PURE__ */ r.jsx(f, { name: "status/iconRetry" }),
2179
+ element: /* @__PURE__ */ n.jsx(f, { name: "status/iconRetry" }),
2180
2180
  bg: "bg-color-warning-light"
2181
2181
  },
2182
2182
  title: "Что-то пошло не так",
2183
- description: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2183
+ description: /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2184
2184
  "Обновите страницу или попробуйте ",
2185
- /* @__PURE__ */ r.jsx("br", {}),
2185
+ /* @__PURE__ */ n.jsx("br", {}),
2186
2186
  " снова через 5 минут"
2187
2187
  ] }),
2188
2188
  button: {
@@ -2191,47 +2191,47 @@ const Jr = ({ promises: t }) => {
2191
2191
  },
2192
2192
  reject: {
2193
2193
  icon: {
2194
- element: /* @__PURE__ */ r.jsx(f, { name: "status/badSmile" }),
2194
+ element: /* @__PURE__ */ n.jsx(f, { name: "status/badSmile" }),
2195
2195
  bg: "bg-color-negative-light"
2196
2196
  },
2197
2197
  title: "Нам очень жаль",
2198
- description: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2198
+ description: /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2199
2199
  "К сожалению, сейчас мы не можем ",
2200
- /* @__PURE__ */ r.jsx("br", {}),
2200
+ /* @__PURE__ */ n.jsx("br", {}),
2201
2201
  " принять вашу заявку"
2202
2202
  ] }),
2203
2203
  button: {
2204
2204
  text: "Вернуться на главную"
2205
2205
  }
2206
2206
  }
2207
- }), no = ({ status: t, navigationFn: e }) => /* @__PURE__ */ r.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ r.jsx(S, { className: "flex flex-col justify-center", children: /* @__PURE__ */ r.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
2208
- /* @__PURE__ */ r.jsx(
2207
+ }), no = ({ status: e, navigationFn: t }) => /* @__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: [
2208
+ /* @__PURE__ */ n.jsx(
2209
2209
  "span",
2210
2210
  {
2211
2211
  className: d(
2212
2212
  "flex size-16 items-center justify-center rounded-full bg-color-positive-light",
2213
- `${de()[t].icon.bg}`
2213
+ `${dt()[e].icon.bg}`
2214
2214
  ),
2215
- children: de()[t].icon.element
2215
+ children: dt()[e].icon.element
2216
2216
  }
2217
2217
  ),
2218
- /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col items-center gap-2 text-center desktop:gap-6", children: [
2219
- /* @__PURE__ */ r.jsx(H, { as: "h2", children: de()[t].title }),
2220
- /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: de()[t].description })
2218
+ /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center gap-2 text-center desktop:gap-6", children: [
2219
+ /* @__PURE__ */ n.jsx(H, { as: "h2", children: dt()[e].title }),
2220
+ /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: dt()[e].description })
2221
2221
  ] }),
2222
- /* @__PURE__ */ r.jsx(Ce, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: e, children: de()[t].button.text })
2223
- ] }) }) }), pt = ({ breadcrumb: t, className: e, ...n }) => /* @__PURE__ */ r.jsx("a", { href: t.path, className: d("desk-body-regular-m", e), ...n, children: t.label }), rn = ({ startsWith: t, endsWith: e, matcher: n, filter: o, rootEnabled: i = !0 }) => {
2224
- const [a, l] = Q([]);
2225
- return tt(() => {
2226
- if (!rt)
2222
+ /* @__PURE__ */ n.jsx(Ct, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: t, children: dt()[e].button.text })
2223
+ ] }) }) }), pe = ({ breadcrumb: e, className: t, ...r }) => /* @__PURE__ */ n.jsx("a", { href: e.path, className: d("desk-body-regular-m", t), ...r, children: e.label }), rn = ({ startsWith: e, endsWith: t, matcher: r, filter: o, rootEnabled: i = !0 }) => {
2224
+ const [a, l] = z([]);
2225
+ return ee(() => {
2226
+ if (!re)
2227
2227
  return;
2228
2228
  let u = window.location.pathname.split("/").filter((p) => !s.isStringEmpty(p));
2229
- 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));
2229
+ s.isUndefined(e) || (s.isString(e) ? u = u.slice(u.findIndex((p) => p === e)) : u = u.slice(e)), s.isUndefined(t) || (s.isString(t) ? u = u.slice(0, u.findIndex((p) => p === t) + 1) : u = u.slice(0, t + 1));
2230
2230
  let m = [], x = "";
2231
2231
  if (i) {
2232
2232
  const p = {
2233
2233
  index: 0,
2234
- id: De(),
2234
+ id: Dt(),
2235
2235
  path: "/",
2236
2236
  label: "home"
2237
2237
  };
@@ -2243,57 +2243,57 @@ const Jr = ({ promises: t }) => {
2243
2243
  // while root enabled we need to increment index
2244
2244
  // cuz we have root breadcrumb
2245
2245
  index: i ? c + 1 : c,
2246
- id: De(),
2246
+ id: Dt(),
2247
2247
  path: x,
2248
2248
  label: p
2249
2249
  };
2250
2250
  m.push(g);
2251
- }), n && (m = m.map((p) => ({
2251
+ }), r && (m = m.map((p) => ({
2252
2252
  ...p,
2253
- ...n(p)
2253
+ ...r(p)
2254
2254
  }))), l(o ? m.filter(o) : m);
2255
- }, [e, o, n, i, t]), a;
2256
- }, fe = (t, e, n, o) => t.map((i, a) => {
2255
+ }, [t, o, r, i, e]), a;
2256
+ }, ft = (e, t, r, o) => e.map((i, a) => {
2257
2257
  const l = a === o;
2258
- return /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-x-2", children: [
2259
- /* @__PURE__ */ r.jsx(
2260
- pt,
2258
+ return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-x-2", children: [
2259
+ /* @__PURE__ */ n.jsx(
2260
+ pe,
2261
2261
  {
2262
2262
  breadcrumb: i,
2263
- className: d(n, {
2263
+ className: d(r, {
2264
2264
  "pointer-events-none text-color-primary-disabled": l
2265
2265
  })
2266
2266
  }
2267
2267
  ),
2268
- a !== t.length - 1 && e
2268
+ a !== e.length - 1 && t
2269
2269
  ] }, i.id);
2270
- }), nn = ({ separator: t, ellipsis: e, classes: n, ...o }) => {
2271
- const [i, a] = Q(!1), l = Ee(null);
2272
- zt(l, () => a(!1));
2273
- const u = rn(o), { first: m, middle: x, last: p } = je(() => {
2270
+ }), nn = ({ separator: e, ellipsis: t, classes: r, ...o }) => {
2271
+ const [i, a] = z(!1), l = Et(null);
2272
+ ze(l, () => a(!1));
2273
+ const u = rn(o), { first: m, middle: x, last: p } = jt(() => {
2274
2274
  let g = [], k = [], v = [];
2275
- return e && (g = u.slice(0, e), k = u.slice(e, u.length - e), v = u.slice(u.length - e)), { first: g, middle: k, last: v };
2276
- }, [u, e]), c = t ?? /* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className: d("size-4", n == null ? void 0 : n.separator) });
2277
- return /* @__PURE__ */ r.jsx(
2275
+ return t && (g = u.slice(0, t), k = u.slice(t, u.length - t), v = u.slice(u.length - t)), { first: g, middle: k, last: v };
2276
+ }, [u, t]), c = e ?? /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: d("size-4", r == null ? void 0 : r.separator) });
2277
+ return /* @__PURE__ */ n.jsx(
2278
2278
  "div",
2279
2279
  {
2280
2280
  className: d(
2281
2281
  "flex max-w-[840px] flex-wrap items-center",
2282
2282
  "gap-x-2 gap-y-1 py-4 text-color-primary-default",
2283
- n == null ? void 0 : n.root
2283
+ r == null ? void 0 : r.root
2284
2284
  ),
2285
- children: e ? (
2285
+ children: t ? (
2286
2286
  // if ellipsis provided, render hidden breadcrumbs
2287
- /* @__PURE__ */ r.jsx(r.Fragment, { children: u.length > e * 2 + 1 ? (
2287
+ /* @__PURE__ */ n.jsx(n.Fragment, { children: u.length > t * 2 + 1 ? (
2288
2288
  // if we have more than ellipsis (visible crumbs) + available hidden crumbs
2289
2289
  // render hidden breadcrumbs
2290
- /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2291
- fe(m, c, n == null ? void 0 : n.breadcrumb),
2290
+ /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2291
+ ft(m, c, r == null ? void 0 : r.breadcrumb),
2292
2292
  c,
2293
- x.length > 0 && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2294
- /* @__PURE__ */ r.jsxs("div", { className: "relative", children: [
2295
- /* @__PURE__ */ r.jsx("button", { onClick: () => a(!0), children: "..." }),
2296
- /* @__PURE__ */ r.jsx(
2293
+ x.length > 0 && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2294
+ /* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
2295
+ /* @__PURE__ */ n.jsx("button", { onClick: () => a(!0), children: "..." }),
2296
+ /* @__PURE__ */ n.jsx(
2297
2297
  "ul",
2298
2298
  {
2299
2299
  ref: l,
@@ -2305,15 +2305,15 @@ const Jr = ({ promises: t }) => {
2305
2305
  "visible opacity-100": i
2306
2306
  }
2307
2307
  ),
2308
- children: x.map((g) => /* @__PURE__ */ r.jsx("li", { children: /* @__PURE__ */ r.jsx(
2309
- pt,
2308
+ children: x.map((g) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
2309
+ pe,
2310
2310
  {
2311
2311
  breadcrumb: g,
2312
2312
  className: d(
2313
2313
  "desk-body-regular-l inline-block py-3",
2314
2314
  "w-full rounded-sm bg-color-white px-2",
2315
2315
  "text-color-dark hover:bg-color-primary-tr-hover",
2316
- n == null ? void 0 : n.breadcrumb
2316
+ r == null ? void 0 : r.breadcrumb
2317
2317
  )
2318
2318
  }
2319
2319
  ) }, g.id))
@@ -2322,74 +2322,74 @@ const Jr = ({ promises: t }) => {
2322
2322
  ] }),
2323
2323
  c
2324
2324
  ] }),
2325
- fe(p, c, n == null ? void 0 : n.breadcrumb, p.length - 1)
2325
+ ft(p, c, r == null ? void 0 : r.breadcrumb, p.length - 1)
2326
2326
  ] })
2327
2327
  ) : (
2328
2328
  // otherwise render all breadcrumbs
2329
- fe(u, c, n == null ? void 0 : n.breadcrumb, u.length - 1)
2329
+ ft(u, c, r == null ? void 0 : r.breadcrumb, u.length - 1)
2330
2330
  ) })
2331
2331
  ) : (
2332
2332
  // if ellipsis doesn't provided render all breadcrumbs
2333
- fe(u, c, n == null ? void 0 : n.breadcrumb, u.length - 1)
2333
+ ft(u, c, r == null ? void 0 : r.breadcrumb, u.length - 1)
2334
2334
  )
2335
2335
  }
2336
2336
  );
2337
2337
  };
2338
- var ue = /* @__PURE__ */ ((t) => (t.ROOT = "root", t.CURRENT = "current", t))(ue || {});
2339
- const on = (t, e) => {
2340
- switch (e.type) {
2341
- case ue.ROOT:
2338
+ var ut = /* @__PURE__ */ ((e) => (e.ROOT = "root", e.CURRENT = "current", e))(ut || {});
2339
+ const on = (e, t) => {
2340
+ switch (t.type) {
2341
+ case ut.ROOT:
2342
2342
  return {
2343
- ...t,
2344
- root: e.payload
2343
+ ...e,
2344
+ root: t.payload
2345
2345
  };
2346
- case ue.CURRENT:
2346
+ case ut.CURRENT:
2347
2347
  return {
2348
- ...t,
2349
- current: e.payload
2348
+ ...e,
2349
+ current: t.payload
2350
2350
  };
2351
2351
  default:
2352
- return t;
2352
+ return e;
2353
2353
  }
2354
- }, an = (t) => {
2355
- const [e, n] = Ht(on, t);
2356
- return [e, n];
2357
- }, dn = (t) => ({
2358
- type: ue.CURRENT,
2359
- payload: t
2360
- }), ln = (t) => ({
2361
- type: ue.ROOT,
2362
- payload: t
2363
- }), un = ({ categories: t, ...e }) => {
2364
- var n, o;
2365
- return dt(
2366
- /* @__PURE__ */ r.jsx(
2367
- Me.div,
2354
+ }, an = (e) => {
2355
+ const [t, r] = He(on, e);
2356
+ return [t, r];
2357
+ }, dn = (e) => ({
2358
+ type: ut.CURRENT,
2359
+ payload: e
2360
+ }), ln = (e) => ({
2361
+ type: ut.ROOT,
2362
+ payload: e
2363
+ }), un = ({ categories: e, ...t }) => {
2364
+ var r, o;
2365
+ return de(
2366
+ /* @__PURE__ */ n.jsx(
2367
+ Mt.div,
2368
2368
  {
2369
- ...e,
2369
+ ...t,
2370
2370
  layout: !0,
2371
2371
  initial: { opacity: 0 },
2372
2372
  animate: { opacity: 1 },
2373
2373
  transition: { duration: 0.2 },
2374
2374
  className: "absolute bg-color-white",
2375
- children: /* @__PURE__ */ r.jsx("div", { className: "flex w-[1140px] gap-x-[56px] py-10", children: t.map((i) => {
2375
+ children: /* @__PURE__ */ n.jsx("div", { className: "flex w-[1140px] gap-x-[56px] py-10", children: e.map((i) => {
2376
2376
  var l;
2377
2377
  const a = i.link ? "a" : "p";
2378
- return /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-y-6", children: [
2379
- i.title && /* @__PURE__ */ r.jsxs(
2378
+ return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-y-6", children: [
2379
+ i.title && /* @__PURE__ */ n.jsxs(
2380
2380
  a,
2381
2381
  {
2382
2382
  href: ((l = i.link) == null ? void 0 : l.href) ?? void 0,
2383
2383
  className: "flex items-center gap-x-1 text-16 uppercase text-color-primary-default",
2384
2384
  children: [
2385
2385
  i.title,
2386
- /* @__PURE__ */ r.jsx(f, { name: "arrows/arrowLink", className: "size-6" })
2386
+ /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowLink", className: "size-6" })
2387
2387
  ]
2388
2388
  }
2389
2389
  ),
2390
- /* @__PURE__ */ r.jsx("ul", { className: "w-[328px]", children: i.children.map((u) => {
2390
+ /* @__PURE__ */ n.jsx("ul", { className: "w-[328px]", children: i.children.map((u) => {
2391
2391
  var m;
2392
- return /* @__PURE__ */ r.jsx("li", { className: "w-full [&:not(:last-child)]:mb-4", children: /* @__PURE__ */ r.jsx("a", { href: (m = u.link) == null ? void 0 : m.href, className: "w-full text-16", children: u.title }) }, u.title);
2392
+ 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);
2393
2393
  }) })
2394
2394
  ] }, i.title);
2395
2395
  }) })
@@ -2398,13 +2398,13 @@ const on = (t, e) => {
2398
2398
  /**
2399
2399
  * Нужно для preview, чтобы категории рендерились в iframe
2400
2400
  */
2401
- ((o = (n = document.body.querySelector("#modal-preview")) == null ? void 0 : n.contentDocument) == null ? void 0 : o.body) ?? document.body
2401
+ ((o = (r = document.body.querySelector("#modal-preview")) == null ? void 0 : r.contentDocument) == null ? void 0 : o.body) ?? document.body
2402
2402
  );
2403
- }, mn = Pt(({ category: t, active: e, onActiveTabChange: n }, o) => {
2403
+ }, mn = Pe(({ category: e, active: t, onActiveTabChange: r }, o) => {
2404
2404
  var m, x;
2405
- const i = o && "current" in o ? o : null, a = (m = i == null ? void 0 : i.current) == null ? void 0 : m.getBoundingClientRect(), l = e && !s.isArrayEmpty(t.children), u = s.isArrayEmpty(t.children) ? "a" : "span";
2406
- return /* @__PURE__ */ r.jsxs(
2407
- Me.div,
2405
+ const i = o && "current" in o ? o : null, a = (m = i == null ? void 0 : i.current) == null ? void 0 : m.getBoundingClientRect(), l = t && !s.isArrayEmpty(e.children), u = s.isArrayEmpty(e.children) ? "a" : "span";
2406
+ return /* @__PURE__ */ n.jsxs(
2407
+ Mt.div,
2408
2408
  {
2409
2409
  ref: o,
2410
2410
  className: d(
@@ -2416,15 +2416,15 @@ const on = (t, e) => {
2416
2416
  "after:w-full": l
2417
2417
  }
2418
2418
  ),
2419
- onMouseEnter: () => n(t.title),
2420
- onMouseLeave: () => n(null),
2421
- onFocus: () => n(t.title),
2419
+ onMouseEnter: () => r(e.title),
2420
+ onMouseLeave: () => r(null),
2421
+ onFocus: () => r(e.title),
2422
2422
  children: [
2423
- /* @__PURE__ */ r.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 }),
2424
- l && /* @__PURE__ */ r.jsx(
2423
+ /* @__PURE__ */ n.jsx(u, { href: u === "a" ? (x = e.link) == null ? void 0 : x.href : void 0, className: "desk-body-regular-m outline-none", children: e.title }),
2424
+ l && /* @__PURE__ */ n.jsx(
2425
2425
  un,
2426
2426
  {
2427
- categories: t.children,
2427
+ categories: e.children,
2428
2428
  style: {
2429
2429
  top: a ? a.top + a.height : 0,
2430
2430
  left: a ? a.left : 0,
@@ -2435,51 +2435,51 @@ const on = (t, e) => {
2435
2435
  ]
2436
2436
  }
2437
2437
  );
2438
- }), xn = Fe(mn), hn = ({ categories: t }) => {
2439
- const [e, n] = Q(null), o = Ge((a) => {
2440
- n(a);
2441
- }, []), i = Ee(null);
2442
- return /* @__PURE__ */ r.jsx(Bt, { mode: "sync", children: /* @__PURE__ */ r.jsxs(
2438
+ }), xn = Ft(mn), hn = ({ categories: e }) => {
2439
+ const [t, r] = z(null), o = Gt((a) => {
2440
+ r(a);
2441
+ }, []), i = Et(null);
2442
+ return /* @__PURE__ */ n.jsx(Be, { mode: "sync", children: /* @__PURE__ */ n.jsxs(
2443
2443
  "div",
2444
2444
  {
2445
2445
  ref: i,
2446
2446
  id: "tabs",
2447
2447
  className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]",
2448
2448
  children: [
2449
- t.map((a) => /* @__PURE__ */ r.jsx(
2449
+ e.map((a) => /* @__PURE__ */ n.jsx(
2450
2450
  xn,
2451
2451
  {
2452
2452
  ref: i,
2453
2453
  category: a,
2454
- active: e === a.title,
2454
+ active: t === a.title,
2455
2455
  onActiveTabChange: o
2456
2456
  },
2457
2457
  a.title
2458
2458
  )),
2459
- /* @__PURE__ */ r.jsx("div", { className: "ml-auto", children: "Личный кабинет" })
2459
+ /* @__PURE__ */ n.jsx("div", { className: "ml-auto", children: "Личный кабинет" })
2460
2460
  ]
2461
2461
  }
2462
2462
  ) });
2463
- }, pn = Fe(hn), cn = ({
2464
- category: t,
2465
- selectedCategory: e,
2466
- onCurrentCategoryChange: n,
2463
+ }, pn = Ft(hn), cn = ({
2464
+ category: e,
2465
+ selectedCategory: t,
2466
+ onCurrentCategoryChange: r,
2467
2467
  onRootCategoryChange: o,
2468
2468
  active: i,
2469
2469
  ...a
2470
- }) => /* @__PURE__ */ r.jsxs(
2470
+ }) => /* @__PURE__ */ n.jsxs(
2471
2471
  "div",
2472
2472
  {
2473
2473
  ...a,
2474
2474
  onClick: () => {
2475
- n(t.children[0]), o(t);
2475
+ r(e.children[0]), o(e);
2476
2476
  },
2477
2477
  className: d("group/category relative cursor-default text-color-blue-grey-600 duration-100 hover:text-color-dark", {
2478
2478
  "text-color-dark": i
2479
2479
  }),
2480
2480
  children: [
2481
- /* @__PURE__ */ r.jsx("span", { className: "desk-body-regular-m", children: t.title }),
2482
- t.children.length > 1 && /* @__PURE__ */ r.jsx(
2481
+ /* @__PURE__ */ n.jsx("span", { className: "desk-body-regular-m", children: e.title }),
2482
+ e.children.length > 1 && /* @__PURE__ */ n.jsx(
2483
2483
  "div",
2484
2484
  {
2485
2485
  className: d(
@@ -2487,16 +2487,16 @@ const on = (t, e) => {
2487
2487
  "invisible bg-color-white opacity-0 shadow-sm group-hover/category:visible group-hover/category:opacity-100",
2488
2488
  "rounded-sm p-1"
2489
2489
  ),
2490
- children: t.children.map((l) => /* @__PURE__ */ r.jsx(
2490
+ children: e.children.map((l) => /* @__PURE__ */ n.jsx(
2491
2491
  "span",
2492
2492
  {
2493
2493
  onClick: (u) => {
2494
- u.stopPropagation(), u.nativeEvent.stopPropagation(), o(t), n(l);
2494
+ u.stopPropagation(), u.nativeEvent.stopPropagation(), o(e), r(l);
2495
2495
  },
2496
2496
  className: d(
2497
2497
  "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",
2498
2498
  {
2499
- "text-color-primary-default": e.title === l.title
2499
+ "text-color-primary-default": t.title === l.title
2500
2500
  }
2501
2501
  ),
2502
2502
  children: l.title
@@ -2507,14 +2507,14 @@ const on = (t, e) => {
2507
2507
  )
2508
2508
  ]
2509
2509
  }
2510
- ), fn = ({ categories: t, helpers: e, phone: n }) => {
2511
- const [o, i] = an({ root: t[0].children[0], current: t[0].children[0] });
2512
- return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2513
- /* @__PURE__ */ r.jsxs("div", { className: "flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)] py-4", children: [
2514
- /* @__PURE__ */ r.jsx(f, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
2515
- t.map((a) => {
2510
+ ), fn = ({ categories: e, helpers: t, phone: r }) => {
2511
+ const [o, i] = an({ root: e[0].children[0], current: e[0].children[0] });
2512
+ return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2513
+ /* @__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: [
2514
+ /* @__PURE__ */ n.jsx(f, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
2515
+ e.map((a) => {
2516
2516
  const l = o.root.title === a.title;
2517
- return /* @__PURE__ */ r.jsx(
2517
+ return /* @__PURE__ */ n.jsx(
2518
2518
  cn,
2519
2519
  {
2520
2520
  category: a,
@@ -2526,36 +2526,36 @@ const on = (t, e) => {
2526
2526
  a.title
2527
2527
  );
2528
2528
  }),
2529
- /* @__PURE__ */ r.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
2530
- e.map((a) => /* @__PURE__ */ r.jsxs(
2529
+ /* @__PURE__ */ n.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
2530
+ t.map((a) => /* @__PURE__ */ n.jsxs(
2531
2531
  "a",
2532
2532
  {
2533
2533
  href: a.link.href,
2534
2534
  className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
2535
2535
  children: [
2536
- a.link.icon && /* @__PURE__ */ r.jsx(f, { name: a.link.icon, className: "size-4" }),
2536
+ a.link.icon && /* @__PURE__ */ n.jsx(f, { name: a.link.icon, className: "size-4" }),
2537
2537
  a.title
2538
2538
  ]
2539
2539
  },
2540
2540
  a.title
2541
2541
  )),
2542
- /* @__PURE__ */ r.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
2543
- /* @__PURE__ */ r.jsx(
2542
+ /* @__PURE__ */ n.jsx("div", { className: "h-3.5 w-[1px] rounded-sm bg-color-blue-grey-500" }),
2543
+ /* @__PURE__ */ n.jsx(
2544
2544
  "a",
2545
2545
  {
2546
- href: `tel:${n}`,
2546
+ href: `tel:${r}`,
2547
2547
  className: "desk-body-regular-m flex items-center gap-x-1 text-color-blue-grey-600 duration-100 hover:text-color-dark",
2548
- children: ye(n, "x xxx xxx xx xx")
2548
+ children: yt(r, "x xxx xxx xx xx")
2549
2549
  }
2550
2550
  )
2551
2551
  ] }),
2552
- /* @__PURE__ */ r.jsx(pn, { categories: o.current.children })
2552
+ /* @__PURE__ */ n.jsx(pn, { categories: o.current.children })
2553
2553
  ] });
2554
- }, bn = ({ category: t }) => /* @__PURE__ */ r.jsx(
2555
- oe,
2554
+ }, bn = ({ category: e }) => /* @__PURE__ */ n.jsx(
2555
+ ot,
2556
2556
  {
2557
- label: t.title ?? "",
2558
- icon: /* @__PURE__ */ r.jsx(f, { name: "arrows/arrowRight", className: "-rotate-90" }),
2557
+ label: e.title ?? "",
2558
+ icon: /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: "-rotate-90" }),
2559
2559
  classes: {
2560
2560
  root: "w-full",
2561
2561
  header: {
@@ -2569,41 +2569,41 @@ const on = (t, e) => {
2569
2569
  "after:h-[1px] after:bg-color-blue-grey-200"
2570
2570
  )
2571
2571
  },
2572
- children: /* @__PURE__ */ r.jsx("div", { className: "flex flex-col items-start justify-center gap-y-4", children: t.children.map((e) => {
2572
+ children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-start justify-center gap-y-4", children: e.children.map((t) => {
2573
2573
  var i;
2574
- const n = !!e.link, o = n ? "a" : "p";
2575
- return /* @__PURE__ */ r.jsxs("ul", { className: "w-full list-none p-0", children: [
2576
- /* @__PURE__ */ r.jsxs(
2574
+ const r = !!t.link, o = r ? "a" : "p";
2575
+ return /* @__PURE__ */ n.jsxs("ul", { className: "w-full list-none p-0", children: [
2576
+ /* @__PURE__ */ n.jsxs(
2577
2577
  o,
2578
2578
  {
2579
- href: n ? (i = e.link) == null ? void 0 : i.href : void 0,
2579
+ href: r ? (i = t.link) == null ? void 0 : i.href : void 0,
2580
2580
  className: "mb-3 flex items-center gap-x-1 text-16 text-color-primary-default",
2581
2581
  children: [
2582
- e.title,
2583
- /* @__PURE__ */ r.jsx(f, { name: "arrows/arrowLink" })
2582
+ t.title,
2583
+ /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowLink" })
2584
2584
  ]
2585
2585
  }
2586
2586
  ),
2587
- e.children.map((a) => {
2587
+ t.children.map((a) => {
2588
2588
  var l;
2589
- return /* @__PURE__ */ r.jsx("li", { className: "inline-block w-full [&:not(:last-child)]:mb-3", children: /* @__PURE__ */ r.jsx("a", { href: (l = a.link) == null ? void 0 : l.href, className: "w-full", children: a.title }) }, a.title);
2589
+ 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);
2590
2590
  })
2591
- ] }, e.title);
2591
+ ] }, t.title);
2592
2592
  }) })
2593
2593
  },
2594
- t.title
2595
- ), gn = (t) => t.map((e) => ({
2596
- value: e.title ?? "",
2597
- label: e.title ?? ""
2598
- })), jn = ({ categories: t, helpers: e, phone: n, ...o }) => {
2599
- const i = gn(t), [a, l] = Q(i[0]), u = (x) => {
2594
+ e.title
2595
+ ), gn = (e) => e.map((t) => ({
2596
+ value: t.title ?? "",
2597
+ label: t.title ?? ""
2598
+ })), jn = ({ categories: e, helpers: t, phone: r, ...o }) => {
2599
+ const i = gn(e), [a, l] = z(i[0]), u = (x) => {
2600
2600
  s.isUndefined(x) || s.isArray(x) || l(x);
2601
- }, m = je(() => {
2601
+ }, m = jt(() => {
2602
2602
  var x;
2603
- return s.isUndefined(a) || s.isArray(a) ? [] : ((x = t.find((p) => p.title === a.value)) == null ? void 0 : x.children) ?? [];
2604
- }, [a, t]);
2605
- return /* @__PURE__ */ r.jsxs(
2606
- Me.div,
2603
+ return s.isUndefined(a) || s.isArray(a) ? [] : ((x = e.find((p) => p.title === a.value)) == null ? void 0 : x.children) ?? [];
2604
+ }, [a, e]);
2605
+ return /* @__PURE__ */ n.jsxs(
2606
+ Mt.div,
2607
2607
  {
2608
2608
  ...o,
2609
2609
  className: d(
@@ -2615,41 +2615,41 @@ const on = (t, e) => {
2615
2615
  initial: { opacity: 0 },
2616
2616
  animate: { opacity: 1 },
2617
2617
  children: [
2618
- /* @__PURE__ */ r.jsx(Ye.SelectBase, { label: "Категория", options: i, value: a, onChange: u }),
2619
- /* @__PURE__ */ r.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: m.map((x) => {
2618
+ /* @__PURE__ */ n.jsx(Yt.SelectBase, { label: "Категория", options: i, value: a, onChange: u }),
2619
+ /* @__PURE__ */ n.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: m.map((x) => {
2620
2620
  var p;
2621
- return s.isArrayEmpty(x.children) ? /* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.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__ */ r.jsx(bn, { category: x }, x.title);
2621
+ return s.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(bn, { category: x }, x.title);
2622
2622
  }) }),
2623
- /* @__PURE__ */ r.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
2624
- /* @__PURE__ */ r.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
2625
- e.map((x) => {
2623
+ /* @__PURE__ */ n.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
2624
+ /* @__PURE__ */ n.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
2625
+ t.map((x) => {
2626
2626
  var p, c;
2627
- return /* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsxs("a", { href: (p = x.link) == null ? void 0 : p.href, className: "flex w-full items-center gap-x-1", children: [
2628
- ((c = x.link) == null ? void 0 : c.icon) && /* @__PURE__ */ r.jsx(f, { name: x.link.icon, className: "size-4" }),
2627
+ 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: [
2628
+ ((c = x.link) == null ? void 0 : c.icon) && /* @__PURE__ */ n.jsx(f, { name: x.link.icon, className: "size-4" }),
2629
2629
  x.title
2630
2630
  ] }) }, x.title);
2631
2631
  }),
2632
- /* @__PURE__ */ r.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ r.jsxs("a", { href: `tel:${n}`, className: "flex w-full items-center gap-x-1", children: [
2633
- /* @__PURE__ */ r.jsx(f, { name: "communication/phone", className: "size-4" }),
2634
- ye(n)
2632
+ /* @__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: [
2633
+ /* @__PURE__ */ n.jsx(f, { name: "communication/phone", className: "size-4" }),
2634
+ yt(r)
2635
2635
  ] }) })
2636
2636
  ] })
2637
2637
  ]
2638
2638
  }
2639
2639
  );
2640
- }, yn = ({ categories: t, helpers: e, phone: n }) => {
2640
+ }, yn = ({ categories: e, helpers: t, phone: r }) => {
2641
2641
  var m, x, p;
2642
- const o = Ee(null), i = (m = o.current) == null ? void 0 : m.getBoundingClientRect(), [a, l] = Q(!1), u = () => l(!a);
2643
- return /* @__PURE__ */ r.jsxs("div", { ref: o, className: "relative flex w-full items-center justify-between border-b border-b-blue-grey-500 py-4", children: [
2644
- /* @__PURE__ */ r.jsx(f, { name: "brandLogos/logoMain", className: "w-[130px]" }),
2645
- /* @__PURE__ */ r.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ r.jsx(f, { name: a ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
2646
- a && dt(
2647
- /* @__PURE__ */ r.jsx(
2642
+ const o = Et(null), i = (m = o.current) == null ? void 0 : m.getBoundingClientRect(), [a, l] = z(!1), u = () => l(!a);
2643
+ 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: [
2644
+ /* @__PURE__ */ n.jsx(f, { name: "brandLogos/logoMain", className: "w-[130px]" }),
2645
+ /* @__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" }) }),
2646
+ a && de(
2647
+ /* @__PURE__ */ n.jsx(
2648
2648
  jn,
2649
2649
  {
2650
- categories: t,
2651
- helpers: e,
2652
- phone: n,
2650
+ categories: e,
2651
+ helpers: t,
2652
+ phone: r,
2653
2653
  style: { top: i ? i.top + i.height : 0 }
2654
2654
  }
2655
2655
  ),
@@ -2659,167 +2659,166 @@ const on = (t, e) => {
2659
2659
  ((p = (x = document.body.querySelector("#modal-preview")) == null ? void 0 : x.contentDocument) == null ? void 0 : p.body) ?? document.body
2660
2660
  )
2661
2661
  ] });
2662
- }, oo = ({ categories: t, helpers: e, phone: n }) => {
2662
+ }, oo = ({ categories: e, helpers: t, phone: r }) => {
2663
2663
  const { isMobile: o } = Y();
2664
- return /* @__PURE__ */ r.jsxs("div", { id: b.seoHeader, "data-test-id": b.seoHeader, className: "mx-auto w-full max-w-[1440px]", children: [
2665
- o ? /* @__PURE__ */ r.jsx(yn, { categories: t.map((i) => i.children).flat(), helpers: e, phone: n }) : /* @__PURE__ */ r.jsx(fn, { categories: t, helpers: e, phone: n }),
2666
- /* @__PURE__ */ r.jsx(
2664
+ return /* @__PURE__ */ n.jsxs("div", { id: b.seoHeader, "data-test-id": b.seoHeader, className: "mx-auto w-full max-w-[1440px]", children: [
2665
+ o ? /* @__PURE__ */ n.jsx(yn, { categories: e.map((i) => i.children).flat(), helpers: t, phone: r }) : /* @__PURE__ */ n.jsx(fn, { categories: e, helpers: t, phone: r }),
2666
+ /* @__PURE__ */ n.jsx(
2667
2667
  nn,
2668
2668
  {
2669
2669
  ellipsis: o ? 1 : void 0,
2670
- matcher: (i) => ({ label: Lt(i.label).split("-").join(" ") })
2670
+ matcher: (i) => ({ label: Le(i.label).split("-").join(" ") })
2671
2671
  }
2672
2672
  )
2673
2673
  ] });
2674
- }, ct = (t) => typeof t != "string" && "formula" in t, ft = (t, e) => {
2675
- let n = e;
2674
+ }, ce = (e) => typeof e != "string" && "formula" in e, fe = (e, t) => {
2675
+ let r = t;
2676
2676
  const o = {
2677
- style: t
2677
+ style: e
2678
2678
  };
2679
- switch (t) {
2679
+ switch (e) {
2680
2680
  case "currency":
2681
2681
  o.currency = "RUB", o.minimumFractionDigits = 0, o.maximumFractionDigits = 0;
2682
2682
  break;
2683
2683
  case "percent":
2684
- o.minimumFractionDigits = 0, o.maximumFractionDigits = 1, n = n / 100;
2684
+ o.minimumFractionDigits = 0, o.maximumFractionDigits = 1, r = r / 100;
2685
2685
  break;
2686
+ default:
2687
+ return null;
2686
2688
  }
2687
- return new Intl.NumberFormat("ru-RU", o).format(n);
2688
- }, sn = (t, e) => {
2689
- switch (t) {
2689
+ return new Intl.NumberFormat("ru-RU", o).format(r);
2690
+ }, sn = (e, t) => {
2691
+ switch (e) {
2690
2692
  case "text":
2691
- return e;
2693
+ return t;
2692
2694
  default:
2693
- return ft(t, Number(e));
2695
+ return fe(e, Number(t));
2694
2696
  }
2695
- }, kn = (t) => Object.values(t).reduce((n, o) => n.merge(ut(o.fields)), At.object({})), wn = (t, e) => (t.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in e)).length > 0 ? "" : t, bt = (t, e) => {
2696
- const n = Object.entries(e).map(([m, x]) => [m, x !== null ? x : "1"]), o = n.map(([m]) => m), i = n.map(([, m]) => m), a = wn(t, Object.fromEntries(n)), u = new Function(...o, `return ${a};`)(...i.map(Number));
2697
+ }, kn = (e) => Object.values(e).reduce((r, o) => r.merge(ue(o.fields)), Ae.object({})), wn = (e, t) => (e.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in t)).length > 0 ? "" : e, be = (e, t) => {
2698
+ const r = Object.entries(t).map(([m, x]) => [m, x !== null ? x : "1"]), o = r.map(([m]) => m), i = r.map(([, m]) => m), a = wn(e, Object.fromEntries(r)), u = new Function(...o, `return ${a};`)(...i.map(Number));
2697
2699
  return Number.isNaN(Number(u)) ? "0" : u.toString();
2698
- }, vn = (t, e) => t.map((n) => ({
2699
- ...n,
2700
- value: ct(n.value) ? bt(n.value.formula, e) : n.value
2701
- })), Nn = ({ subtitle: t, title: e }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: (e || t) && /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-2", children: [
2702
- e && /* @__PURE__ */ r.jsx(H, { as: "h3", children: e }),
2703
- t && /* @__PURE__ */ r.jsx("div", { className: "desk-body-regular-l text-color-dark", children: t })
2704
- ] }) }), Cn = ({ rootDescription: t, rootValue: e, suffix: n }) => /* @__PURE__ */ r.jsxs("div", { className: "mb-6 flex items-center justify-between gap-6", children: [
2705
- /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: t }),
2706
- /* @__PURE__ */ r.jsx("div", { className: "desk-title-bold-l flex items-center gap-1 text-color-dark", children: /* @__PURE__ */ r.jsx("span", { children: ft(n, Number(e)) }) })
2707
- ] }), In = ({ hint: t, value: e, label: n, mode: o, color: i = "dark", accent: a = !1 }) => /* @__PURE__ */ r.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
2708
- /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-2", children: [
2709
- /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: n }),
2710
- t && /* @__PURE__ */ r.jsx(
2711
- Ie,
2700
+ }, vn = (e, t) => e.map((r) => ({
2701
+ ...r,
2702
+ value: ce(r.value) ? be(r.value.formula, t) : r.value
2703
+ })), Nn = ({ subtitle: e, title: t }) => /* @__PURE__ */ n.jsx(n.Fragment, { children: (t || e) && /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
2704
+ t && /* @__PURE__ */ n.jsx(H, { as: "h3", children: t }),
2705
+ e && /* @__PURE__ */ n.jsx("div", { className: "desk-body-regular-l text-color-dark", children: e })
2706
+ ] }) }), Cn = ({ rootDescription: e, rootValue: t, suffix: r }) => /* @__PURE__ */ n.jsxs("div", { className: "mb-6 flex items-center justify-between gap-6", children: [
2707
+ /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: e }),
2708
+ /* @__PURE__ */ n.jsx("div", { className: "desk-title-bold-l flex items-center gap-1 text-color-dark", children: /* @__PURE__ */ n.jsx("span", { children: fe(r, Number(t)) }) })
2709
+ ] }), In = ({ hint: e, value: t, label: r, mode: o, color: i = "dark", accent: a = !1 }) => /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
2710
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2711
+ /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: r }),
2712
+ e && /* @__PURE__ */ n.jsx(
2713
+ It,
2712
2714
  {
2713
2715
  withCloseBtn: !1,
2714
- triggerElement: /* @__PURE__ */ r.jsx(f, { className: "size-5 text-icon-blue-grey-600", name: "info/helpCircle" }),
2715
- children: /* @__PURE__ */ r.jsx("p", { children: t })
2716
+ triggerElement: /* @__PURE__ */ n.jsx(f, { className: "size-5 text-icon-blue-grey-600", name: "info/helpCircle" }),
2717
+ children: /* @__PURE__ */ n.jsx("p", { children: e })
2716
2718
  }
2717
2719
  )
2718
2720
  ] }),
2719
- /* @__PURE__ */ r.jsx(
2721
+ /* @__PURE__ */ n.jsx(
2720
2722
  "span",
2721
2723
  {
2722
2724
  className: d("desk-body-medium-l text-color-dark", {
2723
2725
  "[&&]:desk-title-bold-s": a,
2724
2726
  "text-color-primary-default": i === "blue"
2725
2727
  }),
2726
- children: sn(o, e)
2728
+ children: sn(o, t)
2727
2729
  }
2728
2730
  )
2729
- ] }), Tn = ({ infoList: t }) => {
2730
- const { watch: e } = ot(), n = e(), o = vn(t, n);
2731
- return /* @__PURE__ */ r.jsx("div", { className: "my-4 flex flex-col gap-3 border-t border-solid border-blue-grey-500 pt-4", children: o == null ? void 0 : o.map((i) => /* @__PURE__ */ r.jsx(In, { ...i }, i.label)) });
2732
- }, Mn = ({ iconName: t, text: e, hint: n }) => /* @__PURE__ */ r.jsxs("div", { className: "mb-6 flex items-center gap-2", children: [
2733
- /* @__PURE__ */ r.jsxs("div", { className: "flex items-center gap-1", children: [
2734
- /* @__PURE__ */ r.jsx(f, { name: t, className: "size-6 text-icon-blue-grey-800" }),
2735
- /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: e })
2736
- ] }),
2737
- n && /* @__PURE__ */ r.jsx(Ie, { withCloseBtn: !1, triggerElement: /* @__PURE__ */ r.jsx(f, { name: "info/helpCircle", className: "size-5 text-icon-blue-grey-600" }), children: /* @__PURE__ */ r.jsx("p", { children: n }) })
2738
- ] }), En = ({ assistHint: t, buttonsConfig: e, bottomDescription: n }) => /* @__PURE__ */ r.jsxs("div", { children: [
2739
- t && /* @__PURE__ */ r.jsx(Mn, { ...t }),
2740
- /* @__PURE__ */ r.jsxs("div", { className: d("flex items-center gap-4 mobile:flex-col"), children: [
2741
- /* @__PURE__ */ r.jsx(z, { className: "w-full", ...e.primaryBtn }),
2742
- (e == null ? void 0 : e.secondaryBtn) && /* @__PURE__ */ r.jsx(z, { className: "w-full", ...e.secondaryBtn })
2731
+ ] }), Tn = ({ infoList: e }) => {
2732
+ const { watch: t } = oe(), r = t(), o = vn(e, r);
2733
+ 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(In, { ...i }, i.label)) });
2734
+ }, Mn = ({ iconName: e, text: t, hint: r }) => /* @__PURE__ */ n.jsxs("div", { className: "mb-6 flex items-center gap-2", children: [
2735
+ /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-1", children: [
2736
+ /* @__PURE__ */ n.jsx(f, { name: e, className: "size-6 text-icon-blue-grey-800" }),
2737
+ /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: t })
2743
2738
  ] }),
2744
- n && /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-m mt-4 text-color-secondary", children: n })
2739
+ r && /* @__PURE__ */ n.jsx(It, { 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 }) })
2740
+ ] }), En = ({ assistHint: e, buttonsConfig: t, bottomDescription: r }) => /* @__PURE__ */ n.jsxs("div", { children: [
2741
+ e && /* @__PURE__ */ n.jsx(Mn, { ...e }),
2742
+ /* @__PURE__ */ n.jsx("div", { className: d("flex items-center gap-4 mobile:flex-col"), children: t == null ? void 0 : t.map((o, i) => /* @__PURE__ */ n.jsx($, { className: "w-full", ...o }, i)) }),
2743
+ r && /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-m mt-4 text-color-secondary", children: r })
2745
2744
  ] }), Fn = ({
2746
- rootDescription: t,
2747
- bottomDescription: e,
2748
- rootValue: n,
2745
+ rootDescription: e,
2746
+ bottomDescription: t,
2747
+ rootValue: r,
2749
2748
  title: o,
2750
2749
  subtitle: i,
2751
2750
  buttonsConfig: a,
2752
2751
  infoList: l,
2753
2752
  suffix: u,
2754
2753
  assistHint: m
2755
- }) => /* @__PURE__ */ r.jsxs("div", { className: "w-[456px] rounded-md bg-color-blue-grey-100 p-8", children: [
2756
- /* @__PURE__ */ r.jsx(Cn, { suffix: u, rootValue: n, rootDescription: t }),
2757
- /* @__PURE__ */ r.jsx(Nn, { title: o, subtitle: i }),
2758
- /* @__PURE__ */ r.jsx(Tn, { infoList: l }),
2759
- /* @__PURE__ */ r.jsx(En, { assistHint: m, buttonsConfig: a, bottomDescription: e })
2760
- ] }), On = (t) => {
2761
- switch (t) {
2754
+ }) => /* @__PURE__ */ n.jsxs("div", { className: "w-[456px] rounded-md bg-color-blue-grey-100 p-8", children: [
2755
+ /* @__PURE__ */ n.jsx(Cn, { suffix: u, rootValue: r, rootDescription: e }),
2756
+ /* @__PURE__ */ n.jsx(Nn, { title: o, subtitle: i }),
2757
+ /* @__PURE__ */ n.jsx(Tn, { infoList: l }),
2758
+ /* @__PURE__ */ n.jsx(En, { assistHint: m, buttonsConfig: a, bottomDescription: t })
2759
+ ] }), On = (e) => {
2760
+ switch (e) {
2762
2761
  case "content1":
2763
- return /* @__PURE__ */ r.jsx("div", { children: "content 1" });
2762
+ return /* @__PURE__ */ n.jsx("div", { children: "content 1" });
2764
2763
  case "content2":
2765
- return /* @__PURE__ */ r.jsx("div", { children: "content 2" });
2764
+ return /* @__PURE__ */ n.jsx("div", { children: "content 2" });
2766
2765
  }
2767
- }, Sn = ({ triggerText: t, modalTitle: e, description: n, contentVariant: o }) => {
2768
- const [i, a] = Ut(!1);
2769
- return /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-4 rounded-sm bg-color-blue-grey-100 p-4", children: [
2770
- n && /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: n }),
2771
- /* @__PURE__ */ r.jsx(
2766
+ }, Sn = ({ triggerText: e, modalTitle: t, description: r, contentVariant: o }) => {
2767
+ const [i, a] = Ue(!1);
2768
+ return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 rounded-sm bg-color-blue-grey-100 p-4", children: [
2769
+ r && /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: r }),
2770
+ /* @__PURE__ */ n.jsx(
2772
2771
  "button",
2773
2772
  {
2774
2773
  onClick: () => a(!0),
2775
2774
  className: "desk-body-regular-l w-max cursor-pointer text-color-primary-default underline underline-offset-4",
2776
- children: t
2775
+ children: e
2777
2776
  }
2778
2777
  ),
2779
- /* @__PURE__ */ r.jsx(Rt, { title: e, isModalOpen: i, closeModal: () => a(!1), children: On(o) })
2778
+ /* @__PURE__ */ n.jsx(Re, { title: t, isModalOpen: i, closeModal: () => a(!1), children: On(o) })
2780
2779
  ] });
2781
- }, X = ({ fields: t }) => {
2782
- const { control: e } = ot();
2783
- return /* @__PURE__ */ r.jsx(ht, { control: e, fields: t });
2784
- }, Bn = ({ modalConfig: t, fieldsGroup: e }) => /* @__PURE__ */ r.jsxs("div", { className: "flex flex-1 flex-col gap-8", children: [
2785
- t && /* @__PURE__ */ r.jsx(Sn, { ...t }),
2786
- (e == null ? void 0 : e.selectGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.selectGroupConfig }) }),
2787
- (e == null ? void 0 : e.slidersGroupConfig) && /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.slidersGroupConfig }),
2788
- (e == null ? void 0 : e.radioGroupTabConfig) && /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.radioGroupTabConfig }),
2789
- (e == null ? void 0 : e.checkboxGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.checkboxGroupConfig }) }),
2790
- (e == null ? void 0 : e.radioGroupConfig) && /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.radioGroupConfig }),
2791
- (e == null ? void 0 : e.radioGroupCardConfig) && /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.radioGroupCardConfig }),
2792
- (e == null ? void 0 : e.switchGroupConfig) && /* @__PURE__ */ r.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ r.jsx(X, { ...e == null ? void 0 : e.switchGroupConfig }) })
2793
- ] }), Rn = Fe(({ calculatorTabs: t, activeCalculator: e, setActiveCalculator: n }) => /* @__PURE__ */ r.jsx("div", { className: "mb-8 flex items-center gap-4", children: t == null ? void 0 : t.map(({ name: o, label: i }) => /* @__PURE__ */ r.jsx(
2780
+ }, X = ({ fields: e }) => {
2781
+ const { control: t } = oe();
2782
+ return /* @__PURE__ */ n.jsx(he, { control: t, fields: e });
2783
+ }, Bn = ({ modalConfig: e, fieldsGroup: t }) => /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 flex-col gap-8", children: [
2784
+ e && /* @__PURE__ */ n.jsx(Sn, { ...e }),
2785
+ (t == null ? void 0 : t.selectGroupConfig) && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ n.jsx(X, { ...t == null ? void 0 : t.selectGroupConfig }) }),
2786
+ (t == null ? void 0 : t.slidersGroupConfig) && /* @__PURE__ */ n.jsx(X, { ...t == null ? void 0 : t.slidersGroupConfig }),
2787
+ (t == null ? void 0 : t.radioGroupTabConfig) && /* @__PURE__ */ n.jsx(X, { ...t == null ? void 0 : t.radioGroupTabConfig }),
2788
+ (t == null ? void 0 : t.checkboxGroupConfig) && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ n.jsx(X, { ...t == null ? void 0 : t.checkboxGroupConfig }) }),
2789
+ (t == null ? void 0 : t.radioGroupConfig) && /* @__PURE__ */ n.jsx(X, { ...t == null ? void 0 : t.radioGroupConfig }),
2790
+ (t == null ? void 0 : t.radioGroupCardConfig) && /* @__PURE__ */ n.jsx(X, { ...t == null ? void 0 : t.radioGroupCardConfig }),
2791
+ (t == null ? void 0 : t.switchGroupConfig) && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ n.jsx(X, { ...t == null ? void 0 : t.switchGroupConfig }) })
2792
+ ] }), Rn = Ft(({ calculatorTabs: e, activeCalculator: t, setActiveCalculator: r }) => /* @__PURE__ */ n.jsx("div", { className: "mb-8 flex items-center gap-4", children: e == null ? void 0 : e.map(({ name: o, label: i }) => /* @__PURE__ */ n.jsx(
2794
2793
  "button",
2795
2794
  {
2796
- onClick: () => n(o),
2795
+ onClick: () => r(o),
2797
2796
  className: d(
2798
2797
  "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",
2799
- { "bg-icon-primary-default text-color-white": e === o }
2798
+ { "bg-icon-primary-default text-color-white": t === o }
2800
2799
  ),
2801
2800
  children: i
2802
2801
  },
2803
2802
  o
2804
2803
  )) })), _n = ({
2805
- calculatorInfoConfig: t,
2806
- calculatorFieldsConfig: e
2804
+ calculatorInfoConfig: e,
2805
+ calculatorFieldsConfig: t
2807
2806
  }) => {
2808
- const n = kn(e == null ? void 0 : e.fieldsGroup), o = nt({
2809
- schema: n,
2807
+ const r = kn(t == null ? void 0 : t.fieldsGroup), o = ne({
2808
+ schema: r,
2810
2809
  mode: "onBlur",
2811
- defaultValues: at.getZodDefaults(n)
2812
- }), i = o.watch(), { rootValue: a } = t, l = ct(a) ? bt(a.formula, i) : a, u = { ...t, rootValue: l };
2813
- return /* @__PURE__ */ r.jsx(Qt, { ...o, children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-start gap-16", children: [
2814
- /* @__PURE__ */ r.jsx(Bn, { ...e }),
2815
- /* @__PURE__ */ r.jsx(Fn, { ...u })
2810
+ defaultValues: ae.getZodDefaults(r)
2811
+ }), i = o.watch(), { rootValue: a } = e, l = ce(a) ? be(a.formula, i) : a, u = { ...e, rootValue: l };
2812
+ return /* @__PURE__ */ n.jsx(Qe, { ...o, children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-start gap-16", children: [
2813
+ /* @__PURE__ */ n.jsx(Bn, { ...t }),
2814
+ /* @__PURE__ */ n.jsx(Fn, { ...u })
2816
2815
  ] }) });
2817
- }, io = ({ calculators: t, headline: e }) => {
2816
+ }, io = ({ calculators: e, headline: t }) => {
2818
2817
  var m;
2819
- const n = t.length > 1, [o, i] = Q(n ? (m = t[0]) == null ? void 0 : m.name : ""), a = je(() => t == null ? void 0 : t.map(({ name: x, label: p }) => ({ name: x, label: p })), [t]), l = n ? a == null ? void 0 : a.findIndex((x) => x.name === o) : 0, u = t[l];
2820
- return /* @__PURE__ */ r.jsx("section", { id: b.calculator, children: /* @__PURE__ */ r.jsx(S, { children: /* @__PURE__ */ r.jsxs("div", { className: "rounded-md bg-color-white px-10 py-12 shadow-md", children: [
2821
- /* @__PURE__ */ r.jsx(H, { className: "mb-12", as: "h2", children: e }),
2822
- n && /* @__PURE__ */ r.jsx(
2818
+ const r = e.length > 1, [o, i] = z(r ? (m = e[0]) == null ? void 0 : m.name : ""), a = jt(() => e == null ? void 0 : e.map(({ name: x, label: p }) => ({ name: x, label: p })), [e]), l = r ? a == null ? void 0 : a.findIndex((x) => x.name === o) : 0, u = e[l];
2819
+ return /* @__PURE__ */ n.jsx("section", { id: b.calculator, children: /* @__PURE__ */ n.jsx(S, { children: /* @__PURE__ */ n.jsxs("div", { className: "rounded-md bg-color-white px-10 py-12 shadow-md", children: [
2820
+ /* @__PURE__ */ n.jsx(H, { className: "mb-12", as: "h2", children: t }),
2821
+ r && /* @__PURE__ */ n.jsx(
2823
2822
  Rn,
2824
2823
  {
2825
2824
  calculatorTabs: a,
@@ -2827,7 +2826,7 @@ const on = (t, e) => {
2827
2826
  setActiveCalculator: i
2828
2827
  }
2829
2828
  ),
2830
- /* @__PURE__ */ r.jsx(
2829
+ /* @__PURE__ */ n.jsx(
2831
2830
  _n,
2832
2831
  {
2833
2832
  name: u.name,
@@ -2839,29 +2838,29 @@ const on = (t, e) => {
2839
2838
  ] }) }) });
2840
2839
  };
2841
2840
  export {
2842
- ve as Advantages,
2841
+ vt as Advantages,
2843
2842
  Gn as AuthProvider,
2844
2843
  Zn as Banner,
2845
- Qe as BannerWithSeparateImg,
2844
+ Qt as BannerWithSeparateImg,
2846
2845
  Kn as Benefit,
2847
2846
  nn as Breadcrumbs,
2848
- z as ButtonWithHandlers,
2847
+ $ as ButtonWithHandlers,
2849
2848
  io as Calculator,
2850
2849
  _n as CalculatorView,
2851
2850
  ro as DynamicForm,
2852
2851
  no as FallbacksView,
2853
- ht as FieldMapper,
2852
+ he as FieldMapper,
2854
2853
  Xn as Footer,
2855
2854
  Xr as HTMLParser,
2856
- be as HTMLRenderer,
2855
+ bt as HTMLRenderer,
2857
2856
  $n as Header,
2858
- eo as InterLinking,
2857
+ to as InterLinking,
2859
2858
  Yn as LongBanner,
2860
2859
  oo as SeoHeader,
2861
2860
  Jn as Stepper,
2862
- to as UsefulInfo,
2863
- Yt as WIDGET_LIST,
2864
- ut as getDynamicSchema,
2861
+ eo as UsefulInfo,
2862
+ Ye as WIDGET_LIST,
2863
+ ue as getDynamicSchema,
2865
2864
  Gr as queryClient,
2866
2865
  b as widgetIds
2867
2866
  };