@scbt-ecom/ui 0.74.1 → 0.75.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/index-BcOxdcOI.js +561 -0
  2. package/dist/{index-CrR6G9lz.js.map → index-BcOxdcOI.js.map} +1 -1
  3. package/dist/{index-B6MrMsbc.js → index-DRIZ5Qrl.js} +4897 -4883
  4. package/dist/{index-B6MrMsbc.js.map → index-DRIZ5Qrl.js.map} +1 -1
  5. package/dist/shared/ui/formElements/controlled/slider/SliderControl.d.ts +1 -1
  6. package/dist/shared/ui/formElements/uncontrolled/index.d.ts +1 -1
  7. package/dist/shared/ui/formElements/uncontrolled/slider/index.d.ts +1 -0
  8. package/dist/shared/ui/formElements/uncontrolled/slider/model/index.d.ts +2 -0
  9. package/dist/shared/ui/formElements/uncontrolled/slider/model/types.d.ts +10 -0
  10. package/dist/shared/ui/formElements/uncontrolled/slider/ui/Slider.d.ts +3 -1
  11. package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderAlgorithmic/SliderAlgorithmic.d.ts +1 -1
  12. package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderMarks/SliderMarks.d.ts +1 -1
  13. package/dist/shared/ui/formElements/uncontrolled/slider/ui/sliderStep/SliderStep.d.ts +1 -1
  14. package/dist/ui.js +3 -3
  15. package/dist/{utils-k3uzuyeN.js → utils-CaWgHX_C.js} +1224 -1256
  16. package/dist/utils-CaWgHX_C.js.map +1 -0
  17. package/dist/validation.js +47 -47
  18. package/dist/validation.js.map +1 -1
  19. package/dist/widget.js +953 -891
  20. package/dist/widget.js.map +1 -1
  21. package/dist/widgets/calculator/ui/calculatorFields/CalculatorFields.d.ts +4 -1
  22. package/dist/widgets/calculator/ui/calculatorFields/hooks/index.d.ts +1 -0
  23. package/dist/widgets/calculator/ui/calculatorFields/hooks/useAdditionalSlider.d.ts +19 -0
  24. package/dist/widgets/calculator/ui/calculatorFields/ui/AdditionalSlider.d.ts +8 -0
  25. package/dist/widgets/calculator/ui/calculatorFields/ui/FieldsGroup.d.ts +6 -1
  26. package/dist/widgets/calculator/ui/calculatorFields/ui/index.d.ts +1 -0
  27. package/dist/widgets/model/utils.d.ts +1 -1
  28. package/package.json +1 -1
  29. package/dist/index-CrR6G9lz.js +0 -446
  30. package/dist/utils-k3uzuyeN.js.map +0 -1
package/dist/widget.js CHANGED
@@ -1,150 +1,150 @@
1
- var ge = Object.defineProperty;
2
- var Ot = (e) => {
3
- throw TypeError(e);
1
+ var yt = Object.defineProperty;
2
+ var Re = (t) => {
3
+ throw TypeError(t);
4
4
  };
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) => ({
5
+ var kt = (t, e, r) => e in t ? yt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
+ var ae = (t, e, r) => kt(t, typeof e != "symbol" ? e + "" : e, r), we = (t, e, r) => e.has(t) || Re("Cannot " + r);
7
+ var h = (t, e, r) => (we(t, e, "read from private field"), r ? r.call(t) : e.get(t)), I = (t, e, r) => e.has(t) ? Re("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), w = (t, e, r, o) => (we(t, e, "write to private field"), o ? o.call(t, r) : e.set(t, r), r), q = (t, e, r) => (we(t, e, "access private method"), r);
8
+ var pe = (t, e, r, o) => ({
9
9
  set _(i) {
10
- y(e, t, i, r);
10
+ w(t, e, i, r);
11
11
  },
12
12
  get _() {
13
- return h(e, t, o);
13
+ return h(t, e, o);
14
14
  }
15
15
  });
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-B6MrMsbc.js";
17
- import { T as s, c as d } from "./typeGuards-CSiImkUY.js";
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-BH0d8exl.js";
23
- import { o as Ve, z as Ae } from "./utils-k3uzuyeN.js";
24
- import { z as ie, Z as ae } from "./index-CrR6G9lz.js";
25
- import { a as qe, u as Ue } from "./useFieldsProgress-dcSmd8dw.js";
26
- import { createPortal as de } from "react-dom";
27
- var B, Ut, We = (Ut = class extends Zt {
28
- constructor(t = {}) {
16
+ import { S as Je, x as Ge, Q as wt, y as E, z as _e, E as Nt, F as vt, G as He, J as z, T as Ct, W as It, X as Tt, Y as Mt, Z as De, _ as Pe, $ as Et, a0 as Le, a1 as ze, a2 as Ot, j as n, B as Te, c as O, R as S, n as et, s as Ft, H as P, i as f, t as je, q as Me, L as St, o as Ee, A as oe, v as tt, a3 as Bt, r as Rt, U as Oe, a4 as Fe, a5 as _t, M as Ht } from "./index-DRIZ5Qrl.js";
17
+ import { T as g, c as d } from "./typeGuards-CSiImkUY.js";
18
+ import * as le from "react";
19
+ import { useCallback as rt, useState as L, useMemo as se, createElement as nt, Fragment as Dt, useEffect as be, useRef as Se, useReducer as Pt, memo as Be, forwardRef as Lt } from "react";
20
+ import { scrollToElement as zt, createPhoneNumber as ye, getUuid as Qe, capitalize as Qt } from "./utils.js";
21
+ import { i as ot } from "./isClient-C9aZtt2Q.js";
22
+ import { u as G, b as it, a as Vt, g as ke, F as At } from "./useDebounce-BH0d8exl.js";
23
+ import { z as at, Z as dt } from "./index-BcOxdcOI.js";
24
+ import { au as lt } from "./utils-CaWgHX_C.js";
25
+ import { a as qt, u as Ut } from "./useFieldsProgress-dcSmd8dw.js";
26
+ import { createPortal as ut } from "react-dom";
27
+ var _, $e, Wt = ($e = class extends Je {
28
+ constructor(e = {}) {
29
29
  super();
30
- C(this, B);
31
- this.config = t, y(this, B, /* @__PURE__ */ new Map());
30
+ I(this, _);
31
+ this.config = e, w(this, _, /* @__PURE__ */ new Map());
32
32
  }
33
- build(t, r, o) {
34
- const i = r.queryKey, a = r.queryHash ?? Xt(i, r);
33
+ build(e, r, o) {
34
+ const i = r.queryKey, a = r.queryHash ?? Ge(i, r);
35
35
  let l = this.get(a);
36
- return l || (l = new ye({
37
- client: t,
36
+ return l || (l = new wt({
37
+ client: e,
38
38
  queryKey: i,
39
39
  queryHash: a,
40
- options: t.defaultQueryOptions(r),
40
+ options: e.defaultQueryOptions(r),
41
41
  state: o,
42
- defaultOptions: t.getQueryDefaults(i)
42
+ defaultOptions: e.getQueryDefaults(i)
43
43
  }), this.add(l)), l;
44
44
  }
45
- add(t) {
46
- h(this, B).has(t.queryHash) || (h(this, B).set(t.queryHash, t), this.notify({
45
+ add(e) {
46
+ h(this, _).has(e.queryHash) || (h(this, _).set(e.queryHash, e), this.notify({
47
47
  type: "added",
48
- query: t
48
+ query: e
49
49
  }));
50
50
  }
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 }));
51
+ remove(e) {
52
+ const r = h(this, _).get(e.queryHash);
53
+ r && (e.destroy(), r === e && h(this, _).delete(e.queryHash), this.notify({ type: "removed", query: e }));
54
54
  }
55
55
  clear() {
56
56
  E.batch(() => {
57
- this.getAll().forEach((t) => {
58
- this.remove(t);
57
+ this.getAll().forEach((e) => {
58
+ this.remove(e);
59
59
  });
60
60
  });
61
61
  }
62
- get(t) {
63
- return h(this, B).get(t);
62
+ get(e) {
63
+ return h(this, _).get(e);
64
64
  }
65
65
  getAll() {
66
- return [...h(this, B).values()];
66
+ return [...h(this, _).values()];
67
67
  }
68
- find(t) {
69
- const r = { exact: !0, ...t };
68
+ find(e) {
69
+ const r = { exact: !0, ...e };
70
70
  return this.getAll().find(
71
- (o) => St(r, o)
71
+ (o) => _e(r, o)
72
72
  );
73
73
  }
74
- findAll(t = {}) {
74
+ findAll(e = {}) {
75
75
  const r = this.getAll();
76
- return Object.keys(t).length > 0 ? r.filter((o) => St(t, o)) : r;
76
+ return Object.keys(e).length > 0 ? r.filter((o) => _e(e, o)) : r;
77
77
  }
78
- notify(t) {
78
+ notify(e) {
79
79
  E.batch(() => {
80
80
  this.listeners.forEach((r) => {
81
- r(t);
81
+ r(e);
82
82
  });
83
83
  });
84
84
  }
85
85
  onFocus() {
86
86
  E.batch(() => {
87
- this.getAll().forEach((t) => {
88
- t.onFocus();
87
+ this.getAll().forEach((e) => {
88
+ e.onFocus();
89
89
  });
90
90
  });
91
91
  }
92
92
  onOnline() {
93
93
  E.batch(() => {
94
- this.getAll().forEach((t) => {
95
- t.onOnline();
94
+ this.getAll().forEach((e) => {
95
+ e.onOnline();
96
96
  });
97
97
  });
98
98
  }
99
- }, B = new WeakMap(), Ut), R, T, J, _, q, Wt, Ke = (Wt = class extends se {
100
- constructor(t) {
99
+ }, _ = new WeakMap(), $e), H, T, J, D, U, Ze, Kt = (Ze = class extends Nt {
100
+ constructor(e) {
101
101
  super();
102
- C(this, _);
103
- C(this, R);
104
- C(this, T);
105
- C(this, J);
106
- this.mutationId = t.mutationId, y(this, T, t.mutationCache), y(this, R, []), this.state = t.state || $e(), this.setOptions(t.options), this.scheduleGc();
102
+ I(this, D);
103
+ I(this, H);
104
+ I(this, T);
105
+ I(this, J);
106
+ this.mutationId = e.mutationId, w(this, T, e.mutationCache), w(this, H, []), this.state = e.state || $t(), this.setOptions(e.options), this.scheduleGc();
107
107
  }
108
- setOptions(t) {
109
- this.options = t, this.updateGcTime(this.options.gcTime);
108
+ setOptions(e) {
109
+ this.options = e, this.updateGcTime(this.options.gcTime);
110
110
  }
111
111
  get meta() {
112
112
  return this.options.meta;
113
113
  }
114
- addObserver(t) {
115
- h(this, R).includes(t) || (h(this, R).push(t), this.clearGcTimeout(), h(this, T).notify({
114
+ addObserver(e) {
115
+ h(this, H).includes(e) || (h(this, H).push(e), this.clearGcTimeout(), h(this, T).notify({
116
116
  type: "observerAdded",
117
117
  mutation: this,
118
- observer: t
118
+ observer: e
119
119
  }));
120
120
  }
121
- removeObserver(t) {
122
- y(this, R, h(this, R).filter((r) => r !== t)), this.scheduleGc(), h(this, T).notify({
121
+ removeObserver(e) {
122
+ w(this, H, h(this, H).filter((r) => r !== e)), this.scheduleGc(), h(this, T).notify({
123
123
  type: "observerRemoved",
124
124
  mutation: this,
125
- observer: t
125
+ observer: e
126
126
  });
127
127
  }
128
128
  optionalRemove() {
129
- h(this, R).length || (this.state.status === "pending" ? this.scheduleGc() : h(this, T).remove(this));
129
+ h(this, H).length || (this.state.status === "pending" ? this.scheduleGc() : h(this, T).remove(this));
130
130
  }
131
131
  continue() {
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
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
134
134
  this.execute(this.state.variables);
135
135
  }
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;
136
+ async execute(e) {
137
+ var a, l, u, m, x, p, c, b, s, N, k, B, R, V, C, M, A, X, xe, ie;
138
138
  const r = () => {
139
- A(this, _, q).call(this, { type: "continue" });
139
+ q(this, D, U).call(this, { type: "continue" });
140
140
  };
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 });
141
+ w(this, J, vt({
142
+ fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
143
+ onFail: (v, he) => {
144
+ q(this, D, U).call(this, { type: "failed", failureCount: v, error: he });
145
145
  },
146
146
  onPause: () => {
147
- A(this, _, q).call(this, { type: "pause" });
147
+ q(this, D, U).call(this, { type: "pause" });
148
148
  },
149
149
  onContinue: r,
150
150
  retry: this.options.retry ?? 0,
@@ -157,76 +157,76 @@ var B, Ut, We = (Ut = class extends Zt {
157
157
  if (o)
158
158
  r();
159
159
  else {
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(
160
+ q(this, D, U).call(this, { type: "pending", variables: e, isPaused: i }), await ((l = (a = h(this, T).config).onMutate) == null ? void 0 : l.call(
161
161
  a,
162
- t,
162
+ e,
163
163
  this
164
164
  ));
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, {
165
+ const he = await ((m = (u = this.options).onMutate) == null ? void 0 : m.call(u, e));
166
+ he !== this.state.context && q(this, D, U).call(this, {
167
167
  type: "pending",
168
- context: ht,
169
- variables: t,
168
+ context: he,
169
+ variables: e,
170
170
  isPaused: i
171
171
  });
172
172
  }
173
- const w = await h(this, J).start();
173
+ const v = await h(this, J).start();
174
174
  return await ((p = (x = h(this, T).config).onSuccess) == null ? void 0 : p.call(
175
175
  x,
176
- w,
177
- t,
176
+ v,
177
+ e,
178
178
  this.state.context,
179
179
  this
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
- k,
182
- w,
180
+ )), await ((b = (c = this.options).onSuccess) == null ? void 0 : b.call(c, v, e, this.state.context)), await ((N = (s = h(this, T).config).onSettled) == null ? void 0 : N.call(
181
+ s,
182
+ v,
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, t, this.state.context)), A(this, _, q).call(this, { type: "success", data: w }), w;
188
- } catch (w) {
187
+ )), await ((B = (k = this.options).onSettled) == null ? void 0 : B.call(k, v, null, e, this.state.context)), q(this, D, U).call(this, { type: "success", data: v }), v;
188
+ } catch (v) {
189
189
  try {
190
- throw await ((Q = (G = h(this, T).config).onError) == null ? void 0 : Q.call(
191
- G,
192
- w,
193
- t,
190
+ throw await ((V = (R = h(this, T).config).onError) == null ? void 0 : V.call(
191
+ R,
192
+ v,
193
+ e,
194
194
  this.state.context,
195
195
  this
196
- )), await ((M = (N = this.options).onError) == null ? void 0 : M.call(
197
- N,
198
- w,
199
- t,
196
+ )), await ((M = (C = this.options).onError) == null ? void 0 : M.call(
197
+ C,
198
+ v,
199
+ e,
200
200
  this.state.context
201
- )), await ((Z = (V = h(this, T).config).onSettled) == null ? void 0 : Z.call(
202
- V,
201
+ )), await ((X = (A = h(this, T).config).onSettled) == null ? void 0 : X.call(
202
+ A,
203
203
  void 0,
204
- w,
204
+ v,
205
205
  this.state.variables,
206
206
  this.state.context,
207
207
  this
208
- )), await ((it = (xt = this.options).onSettled) == null ? void 0 : it.call(
209
- xt,
208
+ )), await ((ie = (xe = this.options).onSettled) == null ? void 0 : ie.call(
209
+ xe,
210
210
  void 0,
211
- w,
212
- t,
211
+ v,
212
+ e,
213
213
  this.state.context
214
- )), w;
214
+ )), v;
215
215
  } finally {
216
- A(this, _, q).call(this, { type: "error", error: w });
216
+ q(this, D, U).call(this, { type: "error", error: v });
217
217
  }
218
218
  } finally {
219
219
  h(this, T).runNext(this);
220
220
  }
221
221
  }
222
- }, R = new WeakMap(), T = new WeakMap(), J = new WeakMap(), _ = new WeakSet(), q = function(t) {
222
+ }, H = new WeakMap(), T = new WeakMap(), J = new WeakMap(), D = new WeakSet(), U = function(e) {
223
223
  const r = (o) => {
224
- switch (t.type) {
224
+ switch (e.type) {
225
225
  case "failed":
226
226
  return {
227
227
  ...o,
228
- failureCount: t.failureCount,
229
- failureReason: t.error
228
+ failureCount: e.failureCount,
229
+ failureReason: e.error
230
230
  };
231
231
  case "pause":
232
232
  return {
@@ -241,20 +241,20 @@ var B, Ut, We = (Ut = class extends Zt {
241
241
  case "pending":
242
242
  return {
243
243
  ...o,
244
- context: t.context,
244
+ context: e.context,
245
245
  data: void 0,
246
246
  failureCount: 0,
247
247
  failureReason: null,
248
248
  error: null,
249
- isPaused: t.isPaused,
249
+ isPaused: e.isPaused,
250
250
  status: "pending",
251
- variables: t.variables,
251
+ variables: e.variables,
252
252
  submittedAt: Date.now()
253
253
  };
254
254
  case "success":
255
255
  return {
256
256
  ...o,
257
- data: t.data,
257
+ data: e.data,
258
258
  failureCount: 0,
259
259
  failureReason: null,
260
260
  error: null,
@@ -265,25 +265,25 @@ var B, Ut, We = (Ut = class extends Zt {
265
265
  return {
266
266
  ...o,
267
267
  data: void 0,
268
- error: t.error,
268
+ error: e.error,
269
269
  failureCount: o.failureCount + 1,
270
- failureReason: t.error,
270
+ failureReason: e.error,
271
271
  isPaused: !1,
272
272
  status: "error"
273
273
  };
274
274
  }
275
275
  };
276
276
  this.state = r(this.state), E.batch(() => {
277
- h(this, R).forEach((o) => {
278
- o.onMutationUpdate(t);
277
+ h(this, H).forEach((o) => {
278
+ o.onMutationUpdate(e);
279
279
  }), h(this, T).notify({
280
280
  mutation: this,
281
281
  type: "updated",
282
- action: t
282
+ action: e
283
283
  });
284
284
  });
285
- }, Wt);
286
- function $e() {
285
+ }, Ze);
286
+ function $t() {
287
287
  return {
288
288
  context: void 0,
289
289
  data: void 0,
@@ -296,215 +296,215 @@ function $e() {
296
296
  submittedAt: 0
297
297
  };
298
298
  }
299
- var L, O, mt, Kt, Ze = (Kt = class extends Zt {
300
- constructor(t = {}) {
299
+ var Q, F, me, Xe, Zt = (Xe = class extends Je {
300
+ constructor(e = {}) {
301
301
  super();
302
- C(this, L);
303
- C(this, O);
304
- C(this, mt);
305
- this.config = t, y(this, L, /* @__PURE__ */ new Set()), y(this, O, /* @__PURE__ */ new Map()), y(this, mt, 0);
302
+ I(this, Q);
303
+ I(this, F);
304
+ I(this, me);
305
+ this.config = e, w(this, Q, /* @__PURE__ */ new Set()), w(this, F, /* @__PURE__ */ new Map()), w(this, me, 0);
306
306
  }
307
- build(t, r, o) {
308
- const i = new Ke({
307
+ build(e, r, o) {
308
+ const i = new Kt({
309
309
  mutationCache: this,
310
- mutationId: ++pt(this, mt)._,
311
- options: t.defaultMutationOptions(r),
310
+ mutationId: ++pe(this, me)._,
311
+ options: e.defaultMutationOptions(r),
312
312
  state: o
313
313
  });
314
314
  return this.add(i), i;
315
315
  }
316
- add(t) {
317
- h(this, L).add(t);
318
- const r = ct(t);
316
+ add(e) {
317
+ h(this, Q).add(e);
318
+ const r = ce(e);
319
319
  if (typeof r == "string") {
320
- const o = h(this, O).get(r);
321
- o ? o.push(t) : h(this, O).set(r, [t]);
320
+ const o = h(this, F).get(r);
321
+ o ? o.push(e) : h(this, F).set(r, [e]);
322
322
  }
323
- this.notify({ type: "added", mutation: t });
323
+ this.notify({ type: "added", mutation: e });
324
324
  }
325
- remove(t) {
326
- if (h(this, L).delete(t)) {
327
- const r = ct(t);
325
+ remove(e) {
326
+ if (h(this, Q).delete(e)) {
327
+ const r = ce(e);
328
328
  if (typeof r == "string") {
329
- const o = h(this, O).get(r);
329
+ const o = h(this, F).get(r);
330
330
  if (o)
331
331
  if (o.length > 1) {
332
- const i = o.indexOf(t);
332
+ const i = o.indexOf(e);
333
333
  i !== -1 && o.splice(i, 1);
334
- } else o[0] === t && h(this, O).delete(r);
334
+ } else o[0] === e && h(this, F).delete(r);
335
335
  }
336
336
  }
337
- this.notify({ type: "removed", mutation: t });
337
+ this.notify({ type: "removed", mutation: e });
338
338
  }
339
- canRun(t) {
340
- const r = ct(t);
339
+ canRun(e) {
340
+ const r = ce(e);
341
341
  if (typeof r == "string") {
342
- const o = h(this, O).get(r), i = o == null ? void 0 : o.find(
342
+ const o = h(this, F).get(r), i = o == null ? void 0 : o.find(
343
343
  (a) => a.state.status === "pending"
344
344
  );
345
- return !i || i === t;
345
+ return !i || i === e;
346
346
  } else
347
347
  return !0;
348
348
  }
349
- runNext(t) {
349
+ runNext(e) {
350
350
  var o;
351
- const r = ct(t);
351
+ const r = ce(e);
352
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);
353
+ const i = (o = h(this, F).get(r)) == null ? void 0 : o.find((a) => a !== e && a.state.isPaused);
354
354
  return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
355
355
  } else
356
356
  return Promise.resolve();
357
357
  }
358
358
  clear() {
359
359
  E.batch(() => {
360
- h(this, L).forEach((t) => {
361
- this.notify({ type: "removed", mutation: t });
362
- }), h(this, L).clear(), h(this, O).clear();
360
+ h(this, Q).forEach((e) => {
361
+ this.notify({ type: "removed", mutation: e });
362
+ }), h(this, Q).clear(), h(this, F).clear();
363
363
  });
364
364
  }
365
365
  getAll() {
366
- return Array.from(h(this, L));
366
+ return Array.from(h(this, Q));
367
367
  }
368
- find(t) {
369
- const r = { exact: !0, ...t };
368
+ find(e) {
369
+ const r = { exact: !0, ...e };
370
370
  return this.getAll().find(
371
- (o) => Bt(r, o)
371
+ (o) => He(r, o)
372
372
  );
373
373
  }
374
- findAll(t = {}) {
375
- return this.getAll().filter((r) => Bt(t, r));
374
+ findAll(e = {}) {
375
+ return this.getAll().filter((r) => He(e, r));
376
376
  }
377
- notify(t) {
377
+ notify(e) {
378
378
  E.batch(() => {
379
379
  this.listeners.forEach((r) => {
380
- r(t);
380
+ r(e);
381
381
  });
382
382
  });
383
383
  }
384
384
  resumePausedMutations() {
385
- const t = this.getAll().filter((r) => r.state.isPaused);
385
+ const e = this.getAll().filter((r) => r.state.isPaused);
386
386
  return E.batch(
387
387
  () => Promise.all(
388
- t.map((r) => r.continue().catch(D))
388
+ e.map((r) => r.continue().catch(z))
389
389
  )
390
390
  );
391
391
  }
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;
392
+ }, Q = new WeakMap(), F = new WeakMap(), me = new WeakMap(), Xe);
393
+ function ce(t) {
394
+ var e;
395
+ return (e = t.options.scope) == null ? void 0 : e.id;
396
396
  }
397
- function Lt(e) {
397
+ function Ve(t) {
398
398
  return {
399
- onFetch: (t, r) => {
400
- var p, c, g, k, v;
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) || [];
399
+ onFetch: (e, r) => {
400
+ var p, c, b, s, N;
401
+ const o = e.options, i = (b = (c = (p = e.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : b.direction, a = ((s = e.state.data) == null ? void 0 : s.pages) || [], l = ((N = e.state.data) == null ? void 0 : N.pageParams) || [];
402
402
  let u = { pages: [], pageParams: [] }, m = 0;
403
403
  const x = async () => {
404
- let I = !1;
405
- const P = (N) => {
406
- Object.defineProperty(N, "signal", {
404
+ let k = !1;
405
+ const B = (C) => {
406
+ Object.defineProperty(C, "signal", {
407
407
  enumerable: !0,
408
- get: () => (t.signal.aborted ? I = !0 : t.signal.addEventListener("abort", () => {
409
- I = !0;
410
- }), t.signal)
408
+ get: () => (e.signal.aborted ? k = !0 : e.signal.addEventListener("abort", () => {
409
+ k = !0;
410
+ }), e.signal)
411
411
  });
412
- }, G = we(t.options, t.fetchOptions), Q = async (N, M, V) => {
413
- if (I)
412
+ }, R = Ct(e.options, e.fetchOptions), V = async (C, M, A) => {
413
+ if (k)
414
414
  return Promise.reject();
415
- if (M == null && N.pages.length)
416
- return Promise.resolve(N);
417
- const Z = {
418
- client: t.client,
419
- queryKey: t.queryKey,
415
+ if (M == null && C.pages.length)
416
+ return Promise.resolve(C);
417
+ const X = {
418
+ client: e.client,
419
+ queryKey: e.queryKey,
420
420
  pageParam: M,
421
- direction: V ? "backward" : "forward",
422
- meta: t.options.meta
421
+ direction: A ? "backward" : "forward",
422
+ meta: e.options.meta
423
423
  };
424
- P(Z);
425
- const xt = await G(
426
- Z
427
- ), { maxPages: it } = t.options, w = V ? ve : Ne;
424
+ B(X);
425
+ const xe = await R(
426
+ X
427
+ ), { maxPages: ie } = e.options, v = A ? It : Tt;
428
428
  return {
429
- pages: w(N.pages, xt, it),
430
- pageParams: w(N.pageParams, M, it)
429
+ pages: v(C.pages, xe, ie),
430
+ pageParams: v(C.pageParams, M, ie)
431
431
  };
432
432
  };
433
433
  if (i && a.length) {
434
- const N = i === "backward", M = N ? Xe : zt, V = {
434
+ const C = i === "backward", M = C ? Xt : Ae, A = {
435
435
  pages: a,
436
436
  pageParams: l
437
- }, Z = M(o, V);
438
- u = await Q(V, Z, N);
437
+ }, X = M(o, A);
438
+ u = await V(A, X, C);
439
439
  } else {
440
- const N = e ?? a.length;
440
+ const C = t ?? a.length;
441
441
  do {
442
- const M = m === 0 ? l[0] ?? o.initialPageParam : zt(o, u);
442
+ const M = m === 0 ? l[0] ?? o.initialPageParam : Ae(o, u);
443
443
  if (m > 0 && M == null)
444
444
  break;
445
- u = await Q(u, M), m++;
446
- } while (m < N);
445
+ u = await V(u, M), m++;
446
+ } while (m < C);
447
447
  }
448
448
  return u;
449
449
  };
450
- t.options.persister ? t.fetchFn = () => {
451
- var I, P;
452
- return (P = (I = t.options).persister) == null ? void 0 : P.call(
453
- I,
450
+ e.options.persister ? e.fetchFn = () => {
451
+ var k, B;
452
+ return (B = (k = e.options).persister) == null ? void 0 : B.call(
453
+ k,
454
454
  x,
455
455
  {
456
- client: t.client,
457
- queryKey: t.queryKey,
458
- meta: t.options.meta,
459
- signal: t.signal
456
+ client: e.client,
457
+ queryKey: e.queryKey,
458
+ meta: e.options.meta,
459
+ signal: e.signal
460
460
  },
461
461
  r
462
462
  );
463
- } : t.fetchFn = x;
463
+ } : e.fetchFn = x;
464
464
  }
465
465
  };
466
466
  }
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,
467
+ function Ae(t, { pages: e, pageParams: r }) {
468
+ const o = e.length - 1;
469
+ return e.length > 0 ? t.getNextPageParam(
470
+ e[o],
471
+ e,
472
472
  r[o],
473
473
  r
474
474
  ) : void 0;
475
475
  }
476
- function Xe(e, { pages: t, pageParams: r }) {
476
+ function Xt(t, { pages: e, pageParams: r }) {
477
477
  var o;
478
- return t.length > 0 ? (o = e.getPreviousPageParam) == null ? void 0 : o.call(e, t[0], t, r[0], r) : void 0;
478
+ return e.length > 0 ? (o = t.getPreviousPageParam) == null ? void 0 : o.call(t, e[0], e, r[0], r) : void 0;
479
479
  }
480
- var j, U, W, tt, et, K, rt, nt, $t, Je = ($t = class {
481
- constructor(e = {}) {
482
- C(this, j);
483
- C(this, U);
484
- C(this, W);
485
- C(this, tt);
486
- C(this, et);
487
- C(this, K);
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);
480
+ var y, W, K, ee, te, $, re, ne, Ye, Yt = (Ye = class {
481
+ constructor(t = {}) {
482
+ I(this, y);
483
+ I(this, W);
484
+ I(this, K);
485
+ I(this, ee);
486
+ I(this, te);
487
+ I(this, $);
488
+ I(this, re);
489
+ I(this, ne);
490
+ w(this, y, t.queryCache || new Wt()), w(this, W, t.mutationCache || new Zt()), w(this, K, t.defaultOptions || {}), w(this, ee, /* @__PURE__ */ new Map()), w(this, te, /* @__PURE__ */ new Map()), w(this, $, 0);
491
491
  }
492
492
  mount() {
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());
493
+ pe(this, $)._++, h(this, $) === 1 && (w(this, re, Mt.subscribe(async (t) => {
494
+ t && (await this.resumePausedMutations(), h(this, y).onFocus());
495
+ })), w(this, ne, De.subscribe(async (t) => {
496
+ t && (await this.resumePausedMutations(), h(this, y).onOnline());
497
497
  })));
498
498
  }
499
499
  unmount() {
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));
500
+ var t, e;
501
+ pe(this, $)._--, h(this, $) === 0 && ((t = h(this, re)) == null || t.call(this), w(this, re, void 0), (e = h(this, ne)) == null || e.call(this), w(this, ne, void 0));
502
502
  }
503
- isFetching(e) {
504
- return h(this, j).findAll({ ...e, fetchStatus: "fetching" }).length;
503
+ isFetching(t) {
504
+ return h(this, y).findAll({ ...t, fetchStatus: "fetching" }).length;
505
505
  }
506
- isMutating(e) {
507
- return h(this, U).findAll({ ...e, status: "pending" }).length;
506
+ isMutating(t) {
507
+ return h(this, W).findAll({ ...t, status: "pending" }).length;
508
508
  }
509
509
  /**
510
510
  * Imperative (non-reactive) way to retrieve data for a QueryKey.
@@ -513,178 +513,178 @@ var j, U, W, tt, et, K, rt, nt, $t, Je = ($t = 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(e) {
516
+ getQueryData(t) {
517
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;
518
+ const e = this.defaultQueryOptions({ queryKey: t });
519
+ return (r = h(this, y).get(e.queryHash)) == null ? void 0 : r.state.data;
520
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));
521
+ ensureQueryData(t) {
522
+ const e = this.defaultQueryOptions(t), r = h(this, y).build(this, e), o = r.state.data;
523
+ return o === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && r.isStaleByTime(Pe(e.staleTime, r)) && this.prefetchQuery(e), Promise.resolve(o));
524
524
  }
525
- getQueriesData(e) {
526
- return h(this, j).findAll(e).map(({ queryKey: t, state: r }) => {
525
+ getQueriesData(t) {
526
+ return h(this, y).findAll(t).map(({ queryKey: e, state: r }) => {
527
527
  const o = r.data;
528
- return [t, o];
528
+ return [e, o];
529
529
  });
530
530
  }
531
- setQueryData(e, t, r) {
532
- const o = this.defaultQueryOptions({ queryKey: e }), i = h(this, j).get(
531
+ setQueryData(t, e, r) {
532
+ const o = this.defaultQueryOptions({ queryKey: t }), i = h(this, y).get(
533
533
  o.queryHash
534
- ), a = i == null ? void 0 : i.state.data, l = Ie(t, a);
534
+ ), a = i == null ? void 0 : i.state.data, l = Et(e, a);
535
535
  if (l !== void 0)
536
- return h(this, j).build(this, o).setData(l, { ...r, manual: !0 });
536
+ return h(this, y).build(this, o).setData(l, { ...r, manual: !0 });
537
537
  }
538
- setQueriesData(e, t, r) {
538
+ setQueriesData(t, e, r) {
539
539
  return E.batch(
540
- () => h(this, j).findAll(e).map(({ queryKey: o }) => [
540
+ () => h(this, y).findAll(t).map(({ queryKey: o }) => [
541
541
  o,
542
- this.setQueryData(o, t, r)
542
+ this.setQueryData(o, e, r)
543
543
  ])
544
544
  );
545
545
  }
546
- getQueryState(e) {
546
+ getQueryState(t) {
547
547
  var r;
548
- const t = this.defaultQueryOptions({ queryKey: e });
549
- return (r = h(this, j).get(
550
- t.queryHash
548
+ const e = this.defaultQueryOptions({ queryKey: t });
549
+ return (r = h(this, y).get(
550
+ e.queryHash
551
551
  )) == null ? void 0 : r.state;
552
552
  }
553
- removeQueries(e) {
554
- const t = h(this, j);
553
+ removeQueries(t) {
554
+ const e = h(this, y);
555
555
  E.batch(() => {
556
- t.findAll(e).forEach((r) => {
557
- t.remove(r);
556
+ e.findAll(t).forEach((r) => {
557
+ e.remove(r);
558
558
  });
559
559
  });
560
560
  }
561
- resetQueries(e, t) {
562
- const r = h(this, j);
563
- return E.batch(() => (r.findAll(e).forEach((o) => {
561
+ resetQueries(t, e) {
562
+ const r = h(this, y);
563
+ return E.batch(() => (r.findAll(t).forEach((o) => {
564
564
  o.reset();
565
565
  }), this.refetchQueries(
566
566
  {
567
567
  type: "active",
568
- ...e
568
+ ...t
569
569
  },
570
- t
570
+ e
571
571
  )));
572
572
  }
573
- cancelQueries(e, t = {}) {
574
- const r = { revert: !0, ...t }, o = E.batch(
575
- () => h(this, j).findAll(e).map((i) => i.cancel(r))
573
+ cancelQueries(t, e = {}) {
574
+ const r = { revert: !0, ...e }, o = E.batch(
575
+ () => h(this, y).findAll(t).map((i) => i.cancel(r))
576
576
  );
577
- return Promise.all(o).then(D).catch(D);
577
+ return Promise.all(o).then(z).catch(z);
578
578
  }
579
- invalidateQueries(e, t = {}) {
580
- return E.batch(() => (h(this, j).findAll(e).forEach((r) => {
579
+ invalidateQueries(t, e = {}) {
580
+ return E.batch(() => (h(this, y).findAll(t).forEach((r) => {
581
581
  r.invalidate();
582
- }), (e == null ? void 0 : e.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
582
+ }), (t == null ? void 0 : t.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
583
583
  {
584
- ...e,
585
- type: (e == null ? void 0 : e.refetchType) ?? (e == null ? void 0 : e.type) ?? "active"
584
+ ...t,
585
+ type: (t == null ? void 0 : t.refetchType) ?? (t == null ? void 0 : t.type) ?? "active"
586
586
  },
587
- t
587
+ e
588
588
  )));
589
589
  }
590
- refetchQueries(e, t = {}) {
590
+ refetchQueries(t, e = {}) {
591
591
  const r = {
592
- ...t,
593
- cancelRefetch: t.cancelRefetch ?? !0
592
+ ...e,
593
+ cancelRefetch: e.cancelRefetch ?? !0
594
594
  }, o = E.batch(
595
- () => h(this, j).findAll(e).filter((i) => !i.isDisabled()).map((i) => {
595
+ () => h(this, y).findAll(t).filter((i) => !i.isDisabled()).map((i) => {
596
596
  let a = i.fetch(void 0, r);
597
- return r.throwOnError || (a = a.catch(D)), i.state.fetchStatus === "paused" ? Promise.resolve() : a;
597
+ return r.throwOnError || (a = a.catch(z)), i.state.fetchStatus === "paused" ? Promise.resolve() : a;
598
598
  })
599
599
  );
600
- return Promise.all(o).then(D);
600
+ return Promise.all(o).then(z);
601
601
  }
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);
602
+ fetchQuery(t) {
603
+ const e = this.defaultQueryOptions(t);
604
+ e.retry === void 0 && (e.retry = !1);
605
+ const r = h(this, y).build(this, e);
606
606
  return r.isStaleByTime(
607
- _t(t.staleTime, r)
608
- ) ? r.fetch(t) : Promise.resolve(r.state.data);
607
+ Pe(e.staleTime, r)
608
+ ) ? r.fetch(e) : Promise.resolve(r.state.data);
609
609
  }
610
- prefetchQuery(e) {
611
- return this.fetchQuery(e).then(D).catch(D);
610
+ prefetchQuery(t) {
611
+ return this.fetchQuery(t).then(z).catch(z);
612
612
  }
613
- fetchInfiniteQuery(e) {
614
- return e.behavior = Lt(e.pages), this.fetchQuery(e);
613
+ fetchInfiniteQuery(t) {
614
+ return t.behavior = Ve(t.pages), this.fetchQuery(t);
615
615
  }
616
- prefetchInfiniteQuery(e) {
617
- return this.fetchInfiniteQuery(e).then(D).catch(D);
616
+ prefetchInfiniteQuery(t) {
617
+ return this.fetchInfiniteQuery(t).then(z).catch(z);
618
618
  }
619
- ensureInfiniteQueryData(e) {
620
- return e.behavior = Lt(e.pages), this.ensureQueryData(e);
619
+ ensureInfiniteQueryData(t) {
620
+ return t.behavior = Ve(t.pages), this.ensureQueryData(t);
621
621
  }
622
622
  resumePausedMutations() {
623
- return Rt.isOnline() ? h(this, U).resumePausedMutations() : Promise.resolve();
623
+ return De.isOnline() ? h(this, W).resumePausedMutations() : Promise.resolve();
624
624
  }
625
625
  getQueryCache() {
626
- return h(this, j);
626
+ return h(this, y);
627
627
  }
628
628
  getMutationCache() {
629
- return h(this, U);
629
+ return h(this, W);
630
630
  }
631
631
  getDefaultOptions() {
632
- return h(this, W);
632
+ return h(this, K);
633
633
  }
634
- setDefaultOptions(e) {
635
- y(this, W, e);
634
+ setDefaultOptions(t) {
635
+ w(this, K, t);
636
636
  }
637
- setQueryDefaults(e, t) {
638
- h(this, tt).set(Ht(e), {
639
- queryKey: e,
640
- defaultOptions: t
637
+ setQueryDefaults(t, e) {
638
+ h(this, ee).set(Le(t), {
639
+ queryKey: t,
640
+ defaultOptions: e
641
641
  });
642
642
  }
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);
643
+ getQueryDefaults(t) {
644
+ const e = [...h(this, ee).values()], r = {};
645
+ return e.forEach((o) => {
646
+ ze(t, o.queryKey) && Object.assign(r, o.defaultOptions);
647
647
  }), r;
648
648
  }
649
- setMutationDefaults(e, t) {
650
- h(this, et).set(Ht(e), {
651
- mutationKey: e,
652
- defaultOptions: t
649
+ setMutationDefaults(t, e) {
650
+ h(this, te).set(Le(t), {
651
+ mutationKey: t,
652
+ defaultOptions: e
653
653
  });
654
654
  }
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);
655
+ getMutationDefaults(t) {
656
+ const e = [...h(this, te).values()], r = {};
657
+ return e.forEach((o) => {
658
+ ze(t, o.mutationKey) && Object.assign(r, o.defaultOptions);
659
659
  }), r;
660
660
  }
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,
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,
668
668
  _defaulted: !0
669
669
  };
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,
670
+ return e.queryHash || (e.queryHash = Ge(
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 === Ot && (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,
680
680
  _defaulted: !0
681
681
  };
682
682
  }
683
683
  clear() {
684
- h(this, j).clear(), h(this, U).clear();
684
+ h(this, y).clear(), h(this, W).clear();
685
685
  }
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 = [
686
+ }, y = new WeakMap(), W = new WeakMap(), K = new WeakMap(), ee = new WeakMap(), te = new WeakMap(), $ = new WeakMap(), re = new WeakMap(), ne = new WeakMap(), Ye);
687
+ const Jt = [
688
688
  "header",
689
689
  "footer",
690
690
  "interLinking",
@@ -696,45 +696,45 @@ const Ye = [
696
696
  "form",
697
697
  "seoHeader",
698
698
  "calculator"
699
- ], b = Ye.reduce(
700
- (e, t) => (e[t] = t, e),
699
+ ], j = Jt.reduce(
700
+ (t, e) => (t[e] = e, t),
701
701
  {}
702
- ), Ge = ["getFioSchema"], le = (e, t, r) => {
703
- const o = e[t];
704
- if (s.isNil(o))
705
- throw new Error(`validation for type ${String(t)} not found`);
706
- if (!s.isFunction(o))
707
- throw new Error(`Cannot generate ${String(t)} because is not a function`);
702
+ ), Gt = ["getFioSchema"], mt = (t, e, r) => {
703
+ const o = t[e];
704
+ if (g.isNil(o))
705
+ throw new Error(`validation for type ${String(e)} not found`);
706
+ if (!g.isFunction(o))
707
+ throw new Error(`Cannot generate ${String(e)} because is not a function`);
708
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(
709
+ }, er = (t, e) => mt(at.base, t, e), tr = (t, e) => mt(at.dadata, t, e), xt = (t) => {
710
+ const r = ((t == null ? void 0 : t.map((o) => ({ name: o.args.name, validation: o.args.validation }))) ?? []).reduce((o, i) => {
711
+ const a = Gt.includes(i.validation.type) ? tr(
712
712
  i.validation.type,
713
713
  i.validation.args
714
- ) : tr(
714
+ ) : er(
715
715
  i.validation.type,
716
716
  i.validation.args
717
717
  );
718
718
  return o[i.name] = a, o;
719
719
  }, {});
720
- return Ve(r);
721
- }, rr = (e) => Gt(() => {
722
- switch (e.handler) {
720
+ return lt(r);
721
+ }, rr = (t) => rt(() => {
722
+ switch (t.handler) {
723
723
  case "navigate": {
724
- const { url: r, target: o, rel: i } = e;
725
- re && (window == null || window.open(r, o, i));
724
+ const { url: r, target: o, rel: i } = t;
725
+ ot && (window == null || window.open(r, o, i));
726
726
  break;
727
727
  }
728
728
  case "scroll": {
729
- const { widgetId: r } = e ?? "";
730
- De({ widgetId: r });
729
+ const { widgetId: r } = t ?? "";
730
+ zt({ widgetId: r });
731
731
  break;
732
732
  }
733
733
  }
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
- }, nr = F(
734
+ }, [t]), Z = ({ handlerOptions: t, className: e, ...r }) => {
735
+ const o = rr(t);
736
+ return /* @__PURE__ */ n.jsx(Te, { className: d(e), onClick: o, ...r, children: r.children });
737
+ }, nr = O(
738
738
  "flex flex-col justify-between overflow-hidden rounded-md bg-color-blue-grey-100 py-6 desktop:flex-row desktop:px-0 desktop:py-0",
739
739
  {
740
740
  variants: {
@@ -746,8 +746,8 @@ const Ye = [
746
746
  }
747
747
  }
748
748
  ), or = ({
749
- subtitle: e,
750
- title: t,
749
+ subtitle: t,
750
+ title: e,
751
751
  img: r,
752
752
  mobileImg: o,
753
753
  classes: i,
@@ -756,7 +756,7 @@ const Ye = [
756
756
  variant: u,
757
757
  color: m
758
758
  }) => {
759
- const { isDesktop: x } = Y();
759
+ const { isDesktop: x } = G();
760
760
  return /* @__PURE__ */ n.jsxs(
761
761
  "li",
762
762
  {
@@ -765,23 +765,23 @@ const Ye = [
765
765
  children: [
766
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
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) }),
768
+ /* @__PURE__ */ n.jsx("div", { dangerouslySetInnerHTML: { __html: e }, className: d("desktop:desk-title-bold-s", i == null ? void 0 : i.title) }),
769
769
  /* @__PURE__ */ n.jsx(
770
770
  "div",
771
771
  {
772
- dangerouslySetInnerHTML: { __html: e },
772
+ dangerouslySetInnerHTML: { __html: t },
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__ */ n.jsx($, { 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(Z, { intent: "primary", className: d("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...l })
778
778
  ] }),
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 })
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 && g.isObject(r) ? /* @__PURE__ */ n.jsx("img", { className: d("h-[246px] object-cover", i == null ? void 0 : i.img), src: r.url, alt: r.alt }) : r })
780
780
  ]
781
781
  },
782
- t
782
+ e
783
783
  );
784
- }, ir = F("grid gap-4", {
784
+ }, ir = O("grid gap-4", {
785
785
  variants: {
786
786
  variant: {
787
787
  twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
@@ -789,37 +789,37 @@ const Ye = [
789
789
  fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
790
790
  }
791
791
  }
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: [
792
+ }), Zn = ({ headline: t, details: e, variant: r, classes: o }) => /* @__PURE__ */ n.jsx("section", { id: j.benefit, "data-test-id": j.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
793
  /* @__PURE__ */ n.jsx(
794
794
  "div",
795
795
  {
796
- dangerouslySetInnerHTML: { __html: e },
796
+ dangerouslySetInnerHTML: { __html: t },
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__ */ 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) {
800
+ /* @__PURE__ */ n.jsx("ul", { className: d(ir({ variant: r }), o == null ? void 0 : o.grid), children: e == null ? void 0 : e.map((i) => /* @__PURE__ */ n.jsx(or, { variant: r, classes: o == null ? void 0 : o.item, ...i }, i.title)) })
801
+ ] }) }), ar = ({ variant: t, details: e }) => {
802
+ switch (t) {
803
803
  case "withButton":
804
- return /* @__PURE__ */ n.jsx($, { ...t });
804
+ return /* @__PURE__ */ n.jsx(Z, { ...e });
805
805
  case "withPhone":
806
- return /* @__PURE__ */ n.jsx(Jt, { classes: { root: "items-end" }, ...t, phone: yt(t.phone) });
806
+ return /* @__PURE__ */ n.jsx(et, { classes: { root: "items-end" }, ...e, phone: ye(e.phone) });
807
807
  default:
808
808
  return null;
809
809
  }
810
- }, $n = (e) => {
811
- const { logoPath: t = "/", logoType: r = "main", classes: o } = e;
810
+ }, Xn = (t) => {
811
+ const { logoPath: e = "/", logoType: r = "main", classes: o } = t;
812
812
  return /* @__PURE__ */ n.jsx(
813
813
  "header",
814
814
  {
815
- id: b.header,
816
- "data-test-id": b.header,
815
+ id: j.header,
816
+ "data-test-id": j.header,
817
817
  className: d("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", o == null ? void 0 : o.header),
818
818
  children: /* @__PURE__ */ 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
819
  /* @__PURE__ */ n.jsx(
820
820
  "a",
821
821
  {
822
- href: t,
822
+ href: e,
823
823
  "aria-label": "logo",
824
824
  target: "_blank",
825
825
  rel: "noreferrer",
@@ -827,16 +827,16 @@ const Ye = [
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: Me[r]
830
+ children: Ft[r]
831
831
  }
832
832
  ),
833
- ar(e)
833
+ ar(t)
834
834
  ] }) })
835
835
  }
836
836
  );
837
837
  }, dr = ({
838
- headTitle: e,
839
- subtitle: t,
838
+ headTitle: t,
839
+ subtitle: e,
840
840
  buttonsConfig: r,
841
841
  advantages: o,
842
842
  classes: i,
@@ -844,41 +844,41 @@ const Ye = [
844
844
  imgDesktop: l,
845
845
  color: u
846
846
  }) => {
847
- var I;
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(
847
+ var k;
848
+ const { isDesktop: m, isMobile: x } = G(), { primary: p, secondary: c } = r || {}, b = a && "url" in a && g.isObject(a) ? /* @__PURE__ */ n.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: a.url }) : a, s = l && "url" in l && g.isObject(l) ? /* @__PURE__ */ n.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: l.url }) : l, N = /* @__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__ */ n.jsx(vt, { ...o })
855
+ children: (o == null ? void 0 : o.details) && ((k = o == null ? void 0 : o.details) == null ? void 0 : k.items.length) > 0 && /* @__PURE__ */ n.jsx(Ce, { ...o })
856
856
  }
857
857
  );
858
858
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
859
859
  /* @__PURE__ */ n.jsxs(
860
860
  "section",
861
861
  {
862
- id: b.banner,
863
- "data-test-id": b.banner,
862
+ id: j.banner,
863
+ "data-test-id": j.banner,
864
864
  style: { backgroundColor: u ?? "#d9edff" },
865
865
  className: d("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
866
866
  children: [
867
- /* @__PURE__ */ 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 }),
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 ? b : s }),
868
868
  /* @__PURE__ */ n.jsxs(S, { className: d("h-full", i == null ? void 0 : i.container), children: [
869
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
870
  /* @__PURE__ */ n.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
871
871
  /* @__PURE__ */ n.jsx(
872
872
  "div",
873
873
  {
874
- dangerouslySetInnerHTML: { __html: e },
874
+ dangerouslySetInnerHTML: { __html: t },
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
878
  /* @__PURE__ */ n.jsx(
879
879
  "div",
880
880
  {
881
- dangerouslySetInnerHTML: { __html: t },
881
+ dangerouslySetInnerHTML: { __html: e },
882
882
  className: d("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
883
883
  }
884
884
  )
@@ -893,7 +893,7 @@ const Ye = [
893
893
  ),
894
894
  children: [
895
895
  p.enabled && /* @__PURE__ */ n.jsx(
896
- $,
896
+ Z,
897
897
  {
898
898
  className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
899
899
  size: "lg",
@@ -902,7 +902,7 @@ const Ye = [
902
902
  }
903
903
  ),
904
904
  (c == null ? void 0 : c.enabled) && /* @__PURE__ */ n.jsx(
905
- $,
905
+ Z,
906
906
  {
907
907
  intent: "secondary",
908
908
  className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
@@ -913,16 +913,16 @@ const Ye = [
913
913
  }
914
914
  )
915
915
  ] }) }),
916
- m && (o == null ? void 0 : o.enabled) && v
916
+ m && (o == null ? void 0 : o.enabled) && N
917
917
  ] })
918
918
  ]
919
919
  }
920
920
  ),
921
- x && (o == null ? void 0 : o.enabled) && v
921
+ x && (o == null ? void 0 : o.enabled) && N
922
922
  ] });
923
- }, Qt = ({
924
- headTitle: e,
925
- subtitle: t,
923
+ }, qe = ({
924
+ headTitle: t,
925
+ subtitle: e,
926
926
  buttonsConfig: r,
927
927
  advantages: o,
928
928
  classes: i,
@@ -930,14 +930,14 @@ const Ye = [
930
930
  imgDesktop: l,
931
931
  color: u
932
932
  }) => {
933
- var k, v;
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;
933
+ var s, N;
934
+ const { isMobile: m } = G(), { primary: x, secondary: p } = r || {}, c = a && "url" in a && g.isObject(a) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: a.alt, src: a.url }) : a, b = l && "url" in l && g.isObject(l) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: l.alt, src: l.url }) : l;
935
935
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
936
936
  /* @__PURE__ */ n.jsx(
937
937
  "section",
938
938
  {
939
- id: b.banner,
940
- "data-test-id": b.banner,
939
+ id: j.banner,
940
+ "data-test-id": j.banner,
941
941
  style: { backgroundColor: u ?? "#d9edff" },
942
942
  className: d("bg-banner-skyblue-300 desktop:h-[456px]", i == null ? void 0 : i.root),
943
943
  children: /* @__PURE__ */ n.jsxs(S, { className: d("relative", i == null ? void 0 : i.container), children: [
@@ -947,14 +947,14 @@ const Ye = [
947
947
  /* @__PURE__ */ n.jsx(
948
948
  "div",
949
949
  {
950
- dangerouslySetInnerHTML: { __html: e },
950
+ dangerouslySetInnerHTML: { __html: t },
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
954
  /* @__PURE__ */ n.jsx(
955
955
  "div",
956
956
  {
957
- dangerouslySetInnerHTML: { __html: t },
957
+ dangerouslySetInnerHTML: { __html: e },
958
958
  className: d("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
959
959
  }
960
960
  )
@@ -969,7 +969,7 @@ const Ye = [
969
969
  ),
970
970
  children: [
971
971
  x.enabled && /* @__PURE__ */ n.jsx(
972
- $,
972
+ Z,
973
973
  {
974
974
  className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
975
975
  size: "lg",
@@ -978,7 +978,7 @@ const Ye = [
978
978
  }
979
979
  ),
980
980
  (p == null ? void 0 : p.enabled) && /* @__PURE__ */ n.jsx(
981
- $,
981
+ Z,
982
982
  {
983
983
  intent: "secondary",
984
984
  className: d("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
@@ -996,7 +996,7 @@ const Ye = [
996
996
  "relative flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]",
997
997
  i == null ? void 0 : i.imageContainer
998
998
  ),
999
- children: m ? c : g
999
+ children: m ? c : b
1000
1000
  }
1001
1001
  )
1002
1002
  ] }),
@@ -1007,7 +1007,7 @@ const Ye = [
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__ */ n.jsx(vt, { ...o })
1010
+ children: (o == null ? void 0 : o.details) && ((s = o == null ? void 0 : o.details) == null ? void 0 : s.items.length) > 0 && /* @__PURE__ */ n.jsx(Ce, { ...o })
1011
1011
  }
1012
1012
  )
1013
1013
  ] })
@@ -1020,21 +1020,21 @@ const Ye = [
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__ */ n.jsx(vt, { ...o })
1023
+ children: (o == null ? void 0 : o.details) && ((N = o == null ? void 0 : o.details) == null ? void 0 : N.items.length) > 0 && /* @__PURE__ */ n.jsx(Ce, { ...o })
1024
1024
  }
1025
1025
  )
1026
1026
  ] });
1027
- }, Zn = ({ variant: e, ...t }) => {
1028
- switch (e) {
1027
+ }, Yn = ({ variant: t, ...e }) => {
1028
+ switch (t) {
1029
1029
  case "separateImg":
1030
- return /* @__PURE__ */ n.jsx(Qt, { ...t });
1030
+ return /* @__PURE__ */ n.jsx(qe, { ...e });
1031
1031
  case "fullImg":
1032
- return /* @__PURE__ */ n.jsx(dr, { ...t });
1032
+ return /* @__PURE__ */ n.jsx(dr, { ...e });
1033
1033
  default:
1034
- return /* @__PURE__ */ n.jsx(Qt, { ...t });
1034
+ return /* @__PURE__ */ n.jsx(qe, { ...e });
1035
1035
  }
1036
- }, vt = ({ details: e, classes: t }) => {
1037
- const { variant: r, items: o } = e ?? {};
1036
+ }, Ce = ({ details: t, classes: e }) => {
1037
+ const { variant: r, items: o } = t ?? {};
1038
1038
  return /* @__PURE__ */ n.jsx(
1039
1039
  "div",
1040
1040
  {
@@ -1043,64 +1043,64 @@ const Ye = [
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
1044
  { "desktop:max-w-[860px]": r === "threeCards" },
1045
1045
  { "desktop:max-w-[1140px]": r === "fourCards" },
1046
- t == null ? void 0 : t.root
1046
+ e == null ? void 0 : e.root
1047
1047
  ),
1048
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
- t == null ? void 0 : t.item
1053
+ e == null ? void 0 : e.item
1054
1054
  ),
1055
1055
  children: [
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 })
1056
+ /* @__PURE__ */ n.jsx(P, { as: "h4", className: d("text-color-dark", e == null ? void 0 : e.title), children: i }),
1057
+ /* @__PURE__ */ n.jsx("p", { className: d("desk-body-regular-l text-color-secondary", e == null ? void 0 : e.description), children: a })
1058
1058
  ]
1059
1059
  },
1060
1060
  i
1061
1061
  ))
1062
1062
  }
1063
1063
  );
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(
1064
+ }, lr = ({ socialsLinks: t, classes: e }) => /* @__PURE__ */ n.jsx("div", { className: d("mt-4 flex items-center gap-2 desktop:mt-6", e == null ? void 0 : e.socialRoot), children: t == null ? void 0 : t.map(({ iconName: r, href: o }) => /* @__PURE__ */ n.jsx(
1065
1065
  "a",
1066
1066
  {
1067
- className: d("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", t == null ? void 0 : t.socialLink),
1067
+ className: d("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", e == null ? void 0 : e.socialLink),
1068
1068
  href: o,
1069
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) })
1070
+ children: /* @__PURE__ */ n.jsx(f, { name: r, className: d("h-full w-full text-icon-white", e == null ? void 0 : e.socialIcon) })
1071
1071
  },
1072
1072
  o
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,
1073
+ )) }), ur = ({ phones: t, classes: e }) => /* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-4 desktop:items-end", e == null ? void 0 : e.phonesRoot), children: t == null ? void 0 : t.map(({ phone: r, text: o }) => /* @__PURE__ */ n.jsx(
1074
+ et,
1075
1075
  {
1076
- phone: yt(r),
1076
+ phone: ye(r),
1077
1077
  text: o,
1078
1078
  classes: {
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)
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)
1082
1082
  }
1083
1083
  },
1084
1084
  r
1085
- )) }), mr = ({ classes: e, details: t }) => /* @__PURE__ */ n.jsx(
1085
+ )) }), mr = ({ classes: t, details: e }) => /* @__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
- e == null ? void 0 : e.navRoot
1090
+ t == null ? void 0 : t.navRoot
1091
1091
  ),
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,
1092
+ children: e == null ? void 0 : e.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", t == null ? void 0 : t.navGroup), children: [
1094
+ /* @__PURE__ */ n.jsx("div", { className: d("desk-body-medium-l text-color-white", t == null ? void 0 : t.navLabel), children: o }),
1095
+ /* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-1", t == null ? void 0 : t.navLinks), children: i == null ? void 0 : i.map(({ path: a, label: l }) => /* @__PURE__ */ n.jsx(
1096
+ je,
1097
1097
  {
1098
1098
  href: a,
1099
1099
  "aria-label": l,
1100
1100
  intent: "white",
1101
1101
  classes: {
1102
- link: e == null ? void 0 : e.navLink,
1103
- icon: e == null ? void 0 : e.navLinkIcon
1102
+ link: t == null ? void 0 : t.navLink,
1103
+ icon: t == null ? void 0 : t.navLinkIcon
1104
1104
  },
1105
1105
  children: l
1106
1106
  },
@@ -1109,22 +1109,22 @@ const Ye = [
1109
1109
  ] }, o))
1110
1110
  )
1111
1111
  }
1112
- ), xr = ({ text: e, classes: t }) => /* @__PURE__ */ n.jsx(
1112
+ ), xr = ({ text: t, classes: e }) => /* @__PURE__ */ n.jsx(
1113
1113
  "div",
1114
1114
  {
1115
- className: d("desk-body-regular-m text-color-footer", t == null ? void 0 : t.copyRight),
1116
- dangerouslySetInnerHTML: { __html: e }
1115
+ className: d("desk-body-regular-m text-color-footer", e == null ? void 0 : e.copyRight),
1116
+ dangerouslySetInnerHTML: { __html: t }
1117
1117
  }
1118
- ), hr = ({ classes: e }) => /* @__PURE__ */ n.jsx(
1118
+ ), hr = ({ classes: t }) => /* @__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]", 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) })
1123
+ className: d("block h-[24px] w-[132px] desktop:h-[32px] desktop:w-[194px]", t == null ? void 0 : t.footerLogo),
1124
+ children: /* @__PURE__ */ n.jsx(f, { name: "brandLogos/logoWhite", className: d("size-full", t == null ? void 0 : t.footerLogoIcon) })
1125
1125
  }
1126
- ), pr = ({ classes: e }) => /* @__PURE__ */ n.jsx(
1127
- gt,
1126
+ ), pr = ({ classes: t }) => /* @__PURE__ */ n.jsx(
1127
+ je,
1128
1128
  {
1129
1129
  intent: "white",
1130
1130
  href: "https://sovcombank.ru/site-map",
@@ -1132,23 +1132,23 @@ const Ye = [
1132
1132
  "aria-label": "site-map",
1133
1133
  rel: "noreferrer",
1134
1134
  classes: {
1135
- link: d("mobile:mt-6", e == null ? void 0 : e.siteMapLink),
1136
- icon: e == null ? void 0 : e.siteMapLinkIcon
1135
+ link: d("mobile:mt-6", t == null ? void 0 : t.siteMapLink),
1136
+ icon: t == null ? void 0 : t.siteMapLinkIcon
1137
1137
  },
1138
1138
  children: "Карта сайта"
1139
1139
  }
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(() => {
1140
+ ), cr = ({ text: t, classes: e }) => {
1141
+ const [r, o] = le.useState(!1), [i, a] = le.useState(!1), l = le.useRef(null);
1142
+ return le.useEffect(() => {
1143
1143
  const u = l.current;
1144
1144
  u && a(u.scrollHeight > u.clientHeight);
1145
- }, []), /* @__PURE__ */ n.jsxs("div", { className: d("mt-8 flex flex-col gap-4", t == null ? void 0 : t.ligalRoot), children: [
1145
+ }, []), /* @__PURE__ */ n.jsxs("div", { className: d("mt-8 flex flex-col gap-4", e == null ? void 0 : e.ligalRoot), children: [
1146
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": !r }, t == null ? void 0 : t.ligalText),
1151
- dangerouslySetInnerHTML: { __html: e }
1150
+ className: d("desk-body-regular-m text-color-footer", { "line-clamp-3": !r }, e == null ? void 0 : e.ligalText),
1151
+ dangerouslySetInnerHTML: { __html: t }
1152
1152
  }
1153
1153
  ),
1154
1154
  i && /* @__PURE__ */ n.jsx(
@@ -1159,15 +1159,15 @@ const Ye = [
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
- t == null ? void 0 : t.ligalButton
1162
+ e == null ? void 0 : e.ligalButton
1163
1163
  ),
1164
1164
  children: "Подробнее"
1165
1165
  }
1166
1166
  )
1167
1167
  ] });
1168
- }, Xn = ({
1169
- socialsLinks: e,
1170
- phones: t,
1168
+ }, Jn = ({
1169
+ socialsLinks: t,
1170
+ phones: e,
1171
1171
  ligal: r,
1172
1172
  copyright: o,
1173
1173
  classes: i,
@@ -1176,8 +1176,8 @@ const Ye = [
1176
1176
  }) => /* @__PURE__ */ n.jsx(
1177
1177
  "footer",
1178
1178
  {
1179
- id: b.footer,
1180
- "data-test-id": b.footer,
1179
+ id: j.footer,
1180
+ "data-test-id": j.footer,
1181
1181
  className: d("w-full bg-color-footer py-8 desktop:py-10", i == null ? void 0 : i.root),
1182
1182
  children: /* @__PURE__ */ 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
1183
  /* @__PURE__ */ n.jsxs(
@@ -1190,13 +1190,13 @@ const Ye = [
1190
1190
  children: [
1191
1191
  /* @__PURE__ */ n.jsxs("div", { className: d(i == null ? void 0 : i.footerSocialBlock), children: [
1192
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 })
1193
+ t.enabled && /* @__PURE__ */ n.jsx(lr, { socialsLinks: t.links, classes: i == null ? void 0 : i.socialLinks })
1194
1194
  ] }),
1195
- t.enabled && /* @__PURE__ */ n.jsx(ur, { phones: t.items, classes: i == null ? void 0 : i.phonesBlock })
1195
+ e.enabled && /* @__PURE__ */ n.jsx(ur, { phones: e.items, classes: i == null ? void 0 : i.phonesBlock })
1196
1196
  ]
1197
1197
  }
1198
1198
  ),
1199
- !s.isArrayEmpty(a) && /* @__PURE__ */ n.jsx(mr, { details: a, classes: i == null ? void 0 : i.navLinks }),
1199
+ !g.isArrayEmpty(a) && /* @__PURE__ */ n.jsx(mr, { details: a, classes: i == null ? void 0 : i.navLinks }),
1200
1200
  r.enabled && /* @__PURE__ */ n.jsx(cr, { text: r.text }),
1201
1201
  /* @__PURE__ */ n.jsxs(
1202
1202
  "div",
@@ -1213,14 +1213,14 @@ const Ye = [
1213
1213
  )
1214
1214
  ] }) })
1215
1215
  }
1216
- ), fr = ({ classes: e, index: t, variant: r, title: o, description: i }) => {
1216
+ ), fr = ({ classes: t, index: e, variant: r, title: o, description: i }) => {
1217
1217
  const a = r === "withTitleAndDescription" && o;
1218
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
- e == null ? void 0 : e.singleStep
1223
+ t == null ? void 0 : t.singleStep
1224
1224
  ),
1225
1225
  children: [
1226
1226
  /* @__PURE__ */ n.jsx(
@@ -1228,9 +1228,9 @@ const Ye = [
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
- e == null ? void 0 : e.numeric
1231
+ t == null ? void 0 : t.numeric
1232
1232
  ),
1233
- children: t
1233
+ children: e
1234
1234
  }
1235
1235
  ),
1236
1236
  /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-2"), children: [
@@ -1238,22 +1238,22 @@ const Ye = [
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", e == null ? void 0 : e.title)
1241
+ className: d("mob-title-bold-m text-color-dark desktop:desk-title-bold-s", t == null ? void 0 : t.title)
1242
1242
  }
1243
1243
  ),
1244
1244
  /* @__PURE__ */ n.jsx(
1245
1245
  "div",
1246
1246
  {
1247
1247
  dangerouslySetInnerHTML: { __html: i ?? "" },
1248
- className: d("desk-body-regular-l text-color-tetriary", e == null ? void 0 : e.description)
1248
+ className: d("desk-body-regular-l text-color-tetriary", t == null ? void 0 : t.description)
1249
1249
  }
1250
1250
  )
1251
1251
  ] })
1252
1252
  ]
1253
1253
  }
1254
1254
  );
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 }),
1255
+ }, Gn = ({ headline: t, details: e, variant: r, classes: o }) => /* @__PURE__ */ n.jsx("section", { id: j.stepper, "data-test-id": j.stepper, className: o == null ? void 0 : o.root, children: /* @__PURE__ */ n.jsx(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(P, { as: "h2", className: d("text-color-dark", o == null ? void 0 : o.headline), children: t }),
1257
1257
  /* @__PURE__ */ n.jsx(
1258
1258
  "div",
1259
1259
  {
@@ -1261,10 +1261,10 @@ const Ye = [
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: 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))
1264
+ children: e == null ? void 0 : e.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
- ] }) }) }), br = F("", {
1267
+ ] }) }) }), br = O("", {
1268
1268
  variants: {
1269
1269
  intent: {
1270
1270
  twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
@@ -1280,7 +1280,7 @@ const Ye = [
1280
1280
  defaultVariants: {
1281
1281
  intent: "twoItems"
1282
1282
  }
1283
- }), gr = F("", {
1283
+ }), gr = O("", {
1284
1284
  variants: {
1285
1285
  intent: {
1286
1286
  twoItems: "",
@@ -1312,7 +1312,7 @@ const Ye = [
1312
1312
  class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
1313
1313
  }
1314
1314
  ]
1315
- }), jr = F("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
1315
+ }), jr = O("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
1316
1316
  variants: {
1317
1317
  intent: {
1318
1318
  twoItems: 'last:border-none relative desktop:first:after:top-1/2 desktop:first:after:-translate-y-1/2 desktop:first:after:right-0 desktop:first:after:content-[""] desktop:first:after:block desktop:first:after:absolute desktop:first:after:w-[1px] desktop:first:after:h-[64px] desktop:first:after:bg-color-blue-grey-500 desktop:ml-8 desktop:pr-8 desktop:first:ml-0 desktop:last:pr-0 desktop:pb-3',
@@ -1322,7 +1322,7 @@ const Ye = [
1322
1322
  defaultVariants: {
1323
1323
  intent: "twoItems"
1324
1324
  }
1325
- }), yr = F("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
1325
+ }), sr = O("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
1326
1326
  variants: {
1327
1327
  intent: {
1328
1328
  twoItems: "desktop:h-[232px] desktop:w-[500px]",
@@ -1348,32 +1348,32 @@ const Ye = [
1348
1348
  class: "desktop:h-[272px] desktop:w-[500px]"
1349
1349
  }
1350
1350
  ]
1351
- }), sr = ({ data: e, intent: t }) => {
1351
+ }), yr = ({ data: t, intent: e }) => {
1352
1352
  const {
1353
1353
  title: r,
1354
1354
  description: o,
1355
1355
  popover: i = {
1356
1356
  enabled: !1
1357
1357
  }
1358
- } = e;
1359
- return /* @__PURE__ */ n.jsx("li", { className: d(jr({ intent: t })), children: /* @__PURE__ */ n.jsxs("div", { className: "desktop:max-w-[264px]", children: [
1358
+ } = t;
1359
+ return /* @__PURE__ */ n.jsx("li", { className: d(jr({ intent: e })), children: /* @__PURE__ */ n.jsxs("div", { className: "desktop:max-w-[264px]", children: [
1360
1360
  /* @__PURE__ */ n.jsxs("div", { className: d("mb-2 flex items-center gap-2"), children: [
1361
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 })
1362
+ i.enabled && /* @__PURE__ */ n.jsx(Me, { triggerElement: /* @__PURE__ */ n.jsx(f, { className: d("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i.text })
1363
1363
  ] }),
1364
1364
  /* @__PURE__ */ n.jsx("div", { className: d("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: o } })
1365
1365
  ] }) });
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,
1366
+ }, Ne = ({ intent: t, headline: e, desktopHidden: r = !1, mobileHidden: o = !1 }) => /* @__PURE__ */ n.jsx("h2", { className: d(br({ intent: t, desktopHidden: r, mobileHidden: o })), children: e }), kr = ({ details: t, intent: e, withButton: r }) => /* @__PURE__ */ n.jsx("ul", { className: d(gr({ intent: e, withButton: r })), children: t == null ? void 0 : t.map((o, i) => /* @__PURE__ */ n.jsx(yr, { intent: e, data: o }, i)) }), eo = ({
1367
+ headline: t,
1368
+ buttonConfig: e,
1369
1369
  intent: r = "twoItems",
1370
1370
  details: o,
1371
1371
  image: i,
1372
1372
  classes: a
1373
1373
  }) => {
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 }),
1374
+ const l = r === "fourItems", u = r === "twoItems", m = i && "url" in i && g.isObject(i) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: i.alt, src: i.url }) : i;
1375
+ return /* @__PURE__ */ n.jsx("section", { id: j.longBanner, "data-test-id": j.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(Ne, { intent: r, headline: t }),
1377
1377
  /* @__PURE__ */ n.jsxs(
1378
1378
  "div",
1379
1379
  {
@@ -1382,22 +1382,22 @@ const Ye = [
1382
1382
  a == null ? void 0 : a.contentContainer
1383
1383
  ),
1384
1384
  children: [
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 }),
1385
+ l && /* @__PURE__ */ n.jsx(Ne, { intent: r, headline: t, desktopHidden: !0 }),
1386
+ /* @__PURE__ */ n.jsx("div", { className: d(sr({ intent: r, withButton: e == null ? void 0 : e.enabled }), a == null ? void 0 : a.imgContainer), children: m }),
1387
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__ */ 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
- $,
1392
+ l && /* @__PURE__ */ n.jsx(Ne, { intent: r, headline: t, mobileHidden: !0 }),
1393
+ /* @__PURE__ */ n.jsx(kr, { details: o, intent: r, withButton: (e == null ? void 0 : e.enabled) ?? !1 }),
1394
+ (e == null ? void 0 : e.enabled) && e && /* @__PURE__ */ n.jsx(
1395
+ Z,
1396
1396
  {
1397
1397
  className: d("w-full px-4 desktop:w-max", a == null ? void 0 : a.button),
1398
1398
  size: "lg",
1399
1399
  intent: "secondary",
1400
- ...t.buttonContent
1400
+ ...e.buttonContent
1401
1401
  }
1402
1402
  )
1403
1403
  ]
@@ -1407,11 +1407,11 @@ const Ye = [
1407
1407
  }
1408
1408
  )
1409
1409
  ] }) });
1410
- }, wt = {
1410
+ }, ve = {
1411
1411
  ESIA: "esia",
1412
1412
  MOBILE_ID: "mobileId",
1413
1413
  COMBINE: "combine"
1414
- }, me = ({ children: e, isLoading: t, classes: r, loaderProps: o }) => /* @__PURE__ */ n.jsx(
1414
+ }, ht = ({ children: t, isLoading: e, classes: r, loaderProps: o }) => /* @__PURE__ */ n.jsx(
1415
1415
  "div",
1416
1416
  {
1417
1417
  tabIndex: 0,
@@ -1426,14 +1426,14 @@ const Ye = [
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": t },
1429
+ { "items-center": e },
1430
1430
  r == null ? void 0 : r.wrapper
1431
1431
  ),
1432
- children: t ? /* @__PURE__ */ n.jsx(Ee, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...o }) : e
1432
+ children: e ? /* @__PURE__ */ n.jsx(St, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...o }) : t
1433
1433
  }
1434
1434
  )
1435
1435
  }
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: [
1436
+ ), wr = ({ ...t }) => /* @__PURE__ */ n.jsxs("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: [
1437
1437
  /* @__PURE__ */ n.jsx(
1438
1438
  "path",
1439
1439
  {
@@ -1461,37 +1461,37 @@ const Ye = [
1461
1461
  /* @__PURE__ */ n.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
1462
1462
  /* @__PURE__ */ n.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
1463
1463
  ] }) })
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: [
1464
+ ] }), pt = ({ mainLink: t, subLink: e, isMobile: r, classes: o }) => /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col", o == null ? void 0 : o.linksWrapper), children: [
1465
1465
  /* @__PURE__ */ n.jsx(
1466
1466
  "a",
1467
1467
  {
1468
- href: e.href,
1468
+ href: t.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: r ? e.mobileTitle : e.title
1475
+ children: r ? t.mobileTitle : t.title
1476
1476
  }
1477
1477
  ),
1478
- (t == null ? void 0 : t.text) && (t == null ? void 0 : t.href) && /* @__PURE__ */ n.jsx(
1479
- gt,
1478
+ (e == null ? void 0 : e.text) && (e == null ? void 0 : e.href) && /* @__PURE__ */ n.jsx(
1479
+ je,
1480
1480
  {
1481
1481
  intent: "blue",
1482
1482
  withUnderline: !0,
1483
- href: t == null ? void 0 : t.href,
1483
+ href: e == null ? void 0 : e.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: t == null ? void 0 : t.text
1489
+ children: e == null ? void 0 : e.text
1490
1490
  }
1491
1491
  )
1492
- ] }), Vt = ({ mainLink: e, subLink: t, isLoading: r, badge: o, loaderProps: i, classes: a }) => {
1493
- const { isMobile: l } = Y();
1494
- return /* @__PURE__ */ n.jsx(me, { isLoading: r, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ n.jsxs(
1492
+ ] }), Ue = ({ mainLink: t, subLink: e, isLoading: r, badge: o, loaderProps: i, classes: a }) => {
1493
+ const { isMobile: l } = G();
1494
+ return /* @__PURE__ */ n.jsx(ht, { isLoading: r, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ n.jsxs(
1495
1495
  "div",
1496
1496
  {
1497
1497
  className: d(
@@ -1506,16 +1506,16 @@ const Ye = [
1506
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
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__ */ n.jsx(xe, { mainLink: e, subLink: t, isMobile: l, classes: a == null ? void 0 : a.links }),
1509
+ /* @__PURE__ */ n.jsx(pt, { mainLink: t, subLink: e, isMobile: l, classes: a == null ? void 0 : a.links }),
1510
1510
  /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: d("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
1511
1511
  ] }),
1512
- o && /* @__PURE__ */ n.jsx(Tt, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: o })
1512
+ o && /* @__PURE__ */ n.jsx(Ee, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: o })
1513
1513
  ]
1514
1514
  }
1515
1515
  ) });
1516
- }, At = ({ mainLink: e, subLink: t, isLoading: r, badge: o, loaderProps: i, classes: a }) => {
1517
- const { isMobile: l } = Y();
1518
- return /* @__PURE__ */ n.jsx(me, { isLoading: r, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ n.jsxs(
1516
+ }, We = ({ mainLink: t, subLink: e, isLoading: r, badge: o, loaderProps: i, classes: a }) => {
1517
+ const { isMobile: l } = G();
1518
+ return /* @__PURE__ */ n.jsx(ht, { isLoading: r, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ n.jsxs(
1519
1519
  "div",
1520
1520
  {
1521
1521
  className: d(
@@ -1526,22 +1526,22 @@ const Ye = [
1526
1526
  children: [
1527
1527
  /* @__PURE__ */ n.jsxs("div", { className: d("flex items-center gap-1 desktop:gap-4", a == null ? void 0 : a.textContent), children: [
1528
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 }),
1529
+ /* @__PURE__ */ n.jsx(pt, { mainLink: t, subLink: e, isMobile: l, classes: a == null ? void 0 : a.links }),
1530
1530
  /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: d("mobile:hidden", a == null ? void 0 : a.arrowIcon) })
1531
1531
  ] }),
1532
- o && /* @__PURE__ */ n.jsx(Tt, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: o })
1532
+ o && /* @__PURE__ */ n.jsx(Ee, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: o })
1533
1533
  ]
1534
1534
  }
1535
1535
  ) });
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:
1536
+ }, Nr = (t) => {
1537
+ switch (t.mode) {
1538
+ case ve.ESIA:
1539
+ return /* @__PURE__ */ n.jsx(We, { ...t });
1540
+ case ve.MOBILE_ID:
1541
+ return /* @__PURE__ */ n.jsx(Ue, { ...t });
1542
+ case ve.COMBINE:
1543
1543
  default:
1544
- const { esiaConfig: t, mobileIdConfig: r, subtitle: o, badge: i, classes: a } = e, l = !o && !i ? lt.Fragment : "div";
1544
+ const { esiaConfig: e, mobileIdConfig: r, subtitle: o, badge: i, classes: a } = t, l = !o && !i ? le.Fragment : "div";
1545
1545
  return /* @__PURE__ */ n.jsxs(
1546
1546
  "div",
1547
1547
  {
@@ -1552,22 +1552,22 @@ const Ye = [
1552
1552
  children: [
1553
1553
  /* @__PURE__ */ n.jsxs(l, { className: d("flex w-full items-center justify-between gap-2", a == null ? void 0 : a.topContent), children: [
1554
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 })
1555
+ i && /* @__PURE__ */ n.jsx(Ee, { className: d("bg-color-positive", a == null ? void 0 : a.badge), children: i })
1556
1556
  ] }),
1557
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
1558
  /* @__PURE__ */ n.jsx(
1559
- At,
1559
+ We,
1560
1560
  {
1561
- ...t,
1561
+ ...e,
1562
1562
  classes: {
1563
1563
  root: "p-0 outline-0 h-[74px]",
1564
1564
  arrowIcon: "hidden",
1565
- ...t.classes
1565
+ ...e.classes
1566
1566
  }
1567
1567
  }
1568
1568
  ),
1569
1569
  /* @__PURE__ */ n.jsx(
1570
- Vt,
1570
+ Ue,
1571
1571
  {
1572
1572
  ...r,
1573
1573
  classes: {
@@ -1582,31 +1582,31 @@ const Ye = [
1582
1582
  }
1583
1583
  );
1584
1584
  }
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,
1585
+ }, to = (t) => Nr(t), Ke = ({ links: t, classes: e }) => /* @__PURE__ */ n.jsx("nav", { className: d("flex flex-col gap-1", e == null ? void 0 : e.linksWrapper), children: t == null ? void 0 : t.map(({ path: r, label: o }) => /* @__PURE__ */ n.jsx(
1586
+ je,
1587
1587
  {
1588
1588
  classes: {
1589
- link: d("w-max", t == null ? void 0 : t.linkText),
1590
- icon: d(t == null ? void 0 : t.linkIcon)
1589
+ link: d("w-max", e == null ? void 0 : e.linkText),
1590
+ icon: d(e == null ? void 0 : e.linkIcon)
1591
1591
  },
1592
1592
  intent: "dark",
1593
1593
  href: r,
1594
1594
  children: o
1595
1595
  },
1596
1596
  r
1597
- )) }), Nr = ({ groupLabel: e, links: t, mobileAccordionProps: r, classes: o }) => {
1597
+ )) }), vr = ({ groupLabel: t, links: e, mobileAccordionProps: r, classes: o }) => {
1598
1598
  var a, l, u;
1599
- const { isMobile: i } = Y();
1599
+ const { isMobile: i } = G();
1600
1600
  return /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col gap-2", o == null ? void 0 : o.columnGroup), children: [
1601
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")
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: t }),
1603
+ /* @__PURE__ */ n.jsx(Ke, { links: e, classes: o == null ? void 0 : o.linksList }, "desktop")
1604
1604
  ] }),
1605
1605
  i && /* @__PURE__ */ n.jsx(
1606
- ot,
1606
+ oe,
1607
1607
  {
1608
1608
  defaultOpen: !0,
1609
- label: e,
1609
+ label: t,
1610
1610
  icon: /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: d("rotate-90 transition-transform group-data-[state=open]:-rotate-90") }),
1611
1611
  ...r,
1612
1612
  classes: {
@@ -1616,11 +1616,11 @@ const Ye = [
1616
1616
  },
1617
1617
  contentInner: d("py-2 px-4", (u = r == null ? void 0 : r.classes) == null ? void 0 : u.contentInner)
1618
1618
  },
1619
- children: /* @__PURE__ */ n.jsx(qt, { links: t, classes: o == null ? void 0 : o.linksList }, "mobile")
1619
+ children: /* @__PURE__ */ n.jsx(Ke, { links: e, classes: o == null ? void 0 : o.linksList }, "mobile")
1620
1620
  }
1621
1621
  )
1622
1622
  ] });
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", {
1623
+ }, Cr = ({ column: t, mobileAccordionProps: e, classes: r }) => /* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-4 desktop:gap-6", r == null ? void 0 : r.column), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ n.jsx(vr, { ...e, ...o, classes: r == null ? void 0 : r.columnGroup }, o.groupLabel)) }), Ir = O("grid gap-4 grid-cols-1", {
1624
1624
  variants: {
1625
1625
  variant: {
1626
1626
  twoCols: "desktop:grid-cols-2",
@@ -1631,9 +1631,9 @@ const Ye = [
1631
1631
  defaultVariants: {
1632
1632
  variant: "fourCols"
1633
1633
  }
1634
- }), to = ({
1635
- variant: e,
1636
- details: t,
1634
+ }), ro = ({
1635
+ variant: t,
1636
+ details: e,
1637
1637
  headline: r,
1638
1638
  mobileAccordionProps: o,
1639
1639
  rootAccordionProps: i,
@@ -1644,14 +1644,14 @@ const Ye = [
1644
1644
  return /* @__PURE__ */ n.jsx(
1645
1645
  "section",
1646
1646
  {
1647
- id: b.interLinking,
1648
- "data-test-id": b.interLinking,
1647
+ id: j.interLinking,
1648
+ "data-test-id": j.interLinking,
1649
1649
  className: d("min-w-full desktop:min-w-[1140px]", a == null ? void 0 : a.root),
1650
1650
  children: /* @__PURE__ */ n.jsx(S, { children: /* @__PURE__ */ n.jsx(
1651
- ot,
1651
+ oe,
1652
1652
  {
1653
1653
  defaultOpen: l,
1654
- label: /* @__PURE__ */ n.jsx(H, { as: "h4", className: d("text-left", a == null ? void 0 : a.headline), children: r }),
1654
+ label: /* @__PURE__ */ n.jsx(P, { 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,53 +1660,53 @@ const Ye = [
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__ */ 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)) })
1663
+ children: /* @__PURE__ */ n.jsx("div", { className: d(Ir({ variant: t }), a == null ? void 0 : a.columnsWrapper), children: e == null ? void 0 : e.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: 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(
1668
+ }, Tr = ({ tabsNames: t, activeTab: e, setActiveTab: r, classes: o }) => /* @__PURE__ */ n.jsx("div", { className: d("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", o == null ? void 0 : o.tabs), children: t && t.map((i, a) => /* @__PURE__ */ n.jsx(
1669
1669
  "button",
1670
1670
  {
1671
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": t === a
1675
+ "bg-icon-primary-default text-color-white": e === a
1676
1676
  },
1677
1677
  o == null ? void 0 : o.button
1678
1678
  ),
1679
1679
  children: i
1680
1680
  },
1681
1681
  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 }) => ({
1682
+ )) }), Mr = (t) => t.variant === "HTML", Er = (t) => t.variant === "DOCUMENTS", Or = (t) => t.variant === "TABLE", Fr = ({ html: t, config: e, classes: r, accordionConfig: o }) => {
1683
+ const i = /* @__PURE__ */ n.jsx("div", { className: d(r == null ? void 0 : r.html), dangerouslySetInnerHTML: { __html: t ?? "" } });
1684
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ n.jsx(oe, { label: e == null ? void 0 : e.accordionTitle, ...o, children: (o == null ? void 0 : o.children) ?? i }) : i });
1685
+ }, Sr = (t, e) => ({
1686
+ rows: t == null ? void 0 : t.map(({ row: r }) => ({
1687
1687
  row: r == null ? void 0 : r.map((o, i) => {
1688
1688
  var a;
1689
1689
  return {
1690
1690
  ...o,
1691
- heading: t && ((a = t[i]) == null ? void 0 : a.heading)
1691
+ heading: e && ((a = e[i]) == null ? void 0 : a.heading)
1692
1692
  };
1693
1693
  })
1694
1694
  }))
1695
- }), Br = F("flex flex-col", {
1695
+ }), Br = O("flex flex-col", {
1696
1696
  variants: {
1697
1697
  columnsVariant: {
1698
1698
  twoCols: "w-full max-w-[656px]",
1699
1699
  threeCols: "w-full max-w-[768px]"
1700
1700
  }
1701
1701
  }
1702
- }), Rr = F("desktop:grid mobile:hidden px-4 mb-4", {
1702
+ }), Rr = O("desktop:grid mobile:hidden px-4 mb-4", {
1703
1703
  variants: {
1704
1704
  columnsVariant: {
1705
1705
  twoCols: "grid-cols-2 gap-16",
1706
1706
  threeCols: "grid-cols-3 gap-12"
1707
1707
  }
1708
1708
  }
1709
- }), _r = ({ headings: 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", {
1709
+ }), _r = ({ headings: t, columnsVariant: e, classes: r }) => /* @__PURE__ */ n.jsx("div", { className: d(Rr({ columnsVariant: e }), r == null ? void 0 : r.row), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ n.jsx("div", { className: d("text-color-secondary", r == null ? void 0 : r.cell), children: o == null ? void 0 : o.heading }, o == null ? void 0 : o.heading)) }), Hr = O("desktop:grid mobile:hidden items-center", {
1710
1710
  variants: {
1711
1711
  columnsVariant: {
1712
1712
  twoCols: "grid-cols-2 gap-16",
@@ -1717,21 +1717,21 @@ const Ye = [
1717
1717
  separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
1718
1718
  }
1719
1719
  }
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(
1720
+ }), Dr = ({ row: t, tableVariant: e, columnsVariant: r, rowIndex: o, classes: i }) => /* @__PURE__ */ n.jsx("div", { className: d(Hr({ columnsVariant: r, tableVariant: e }), { "border-none": o === 0 }, i == null ? void 0 : i.row), children: t == null ? void 0 : t.map(({ cell: a }, l) => /* @__PURE__ */ n.jsx(
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),
1724
1724
  children: a && a
1725
1725
  },
1726
1726
  l
1727
- )) }), Dr = F("mobile:flex desktop:hidden flex-col gap-2", {
1727
+ )) }), Pr = O("mobile:flex desktop:hidden flex-col gap-2", {
1728
1728
  variants: {
1729
1729
  tableVariant: {
1730
1730
  filled: "px-4 py-4 odd:bg-color-primary-light-default",
1731
1731
  separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
1732
1732
  }
1733
1733
  }
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: [
1734
+ }), Lr = ({ row: t, tableVariant: e, columnsVariant: r, headingsExist: o, classes: i }) => /* @__PURE__ */ n.jsx("div", { className: d(Pr({ tableVariant: e }), i == null ? void 0 : i.row), children: t == null ? void 0 : t.map(({ cell: a, heading: l }, u) => /* @__PURE__ */ n.jsxs("div", { className: d("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !o }, i == null ? void 0 : i.wrapper), children: [
1735
1735
  l && /* @__PURE__ */ n.jsx("div", { className: d("mob-body-regular-l text-color-secondary", i == null ? void 0 : i.heading), children: l }),
1736
1736
  /* @__PURE__ */ n.jsx(
1737
1737
  "div",
@@ -1746,16 +1746,16 @@ const Ye = [
1746
1746
  children: a
1747
1747
  }
1748
1748
  )
1749
- ] }, u)) }), zr = ({ tableVariant: e, rows: t, headings: r, columnsVariant: o, classes: i }) => {
1749
+ ] }, u)) }), zr = ({ tableVariant: t, rows: e, headings: r, columnsVariant: o, classes: i }) => {
1750
1750
  var u;
1751
- const a = ((u = Sr(t, r)) == null ? void 0 : u.rows) ?? [], l = !!(r && r.length > 0);
1751
+ const a = ((u = Sr(e, r)) == null ? void 0 : u.rows) ?? [], l = !!(r && r.length > 0);
1752
1752
  return /* @__PURE__ */ n.jsxs("div", { className: d("flex flex-col", i == null ? void 0 : i.wrapper), children: [
1753
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
- Pr,
1754
+ e == null ? void 0 : e.map((m, x) => /* @__PURE__ */ n.jsx(
1755
+ Dr,
1756
1756
  {
1757
1757
  rowIndex: x,
1758
- tableVariant: e,
1758
+ tableVariant: t,
1759
1759
  columnsVariant: o,
1760
1760
  classes: i == null ? void 0 : i.desktopRow,
1761
1761
  ...m
@@ -1766,7 +1766,7 @@ const Ye = [
1766
1766
  Lr,
1767
1767
  {
1768
1768
  headingsExist: l,
1769
- tableVariant: e,
1769
+ tableVariant: t,
1770
1770
  columnsVariant: o,
1771
1771
  classes: i == null ? void 0 : i.desktopRow,
1772
1772
  ...m
@@ -1775,8 +1775,8 @@ const Ye = [
1775
1775
  ))
1776
1776
  ] });
1777
1777
  }, Qr = ({
1778
- tableVariant: e,
1779
- description: t,
1778
+ tableVariant: t,
1779
+ description: e,
1780
1780
  columnsVariant: r,
1781
1781
  config: o,
1782
1782
  rows: i,
@@ -1786,21 +1786,21 @@ const Ye = [
1786
1786
  classes: m
1787
1787
  }) => {
1788
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(
1789
+ a && /* @__PURE__ */ n.jsx(P, { as: "h4", className: d("mb-4 desktop:mb-6", m == null ? void 0 : m.headline), children: a }),
1790
+ /* @__PURE__ */ n.jsx(zr, { tableVariant: t, rows: i, headings: l, columnsVariant: r }),
1791
+ e && /* @__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: t ?? "" }
1795
+ dangerouslySetInnerHTML: { __html: e ?? "" }
1796
1796
  }
1797
1797
  )
1798
1798
  ] });
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 });
1799
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: o && (o != null && o.isAccordion) && (o != null && o.accordionTitle) ? /* @__PURE__ */ n.jsx(oe, { label: o == null ? void 0 : o.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || x }) : x });
1800
1800
  }, Vr = {
1801
1801
  documentFilled: "files/documentFilled",
1802
1802
  documentOutline: "files/documentOutline"
1803
- }, Ar = F("size-8 transition-colors", {
1803
+ }, Ar = O("size-8 transition-colors", {
1804
1804
  variants: {
1805
1805
  iconType: {
1806
1806
  documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
@@ -1810,7 +1810,7 @@ const Ye = [
1810
1810
  defaultVariants: {
1811
1811
  iconType: "documentOutline"
1812
1812
  }
1813
- }), qr = ({ label: e, size: t, url: r, iconType: o, classes: i }) => /* @__PURE__ */ n.jsxs(
1813
+ }), qr = ({ label: t, size: e, url: r, iconType: o, classes: i }) => /* @__PURE__ */ n.jsxs(
1814
1814
  "a",
1815
1815
  {
1816
1816
  href: r,
@@ -1824,51 +1824,51 @@ const Ye = [
1824
1824
  children: [
1825
1825
  /* @__PURE__ */ n.jsx(f, { name: Vr[o], className: d(Ar({ iconType: o }), i == null ? void 0 : i.icon) }),
1826
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 }),
1827
+ /* @__PURE__ */ n.jsx("p", { className: d("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: t }),
1828
1828
  /* @__PURE__ */ n.jsxs("div", { className: d("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
1829
- Number(t),
1829
+ Number(e),
1830
1830
  " КБ"
1831
1831
  ] })
1832
1832
  ] })
1833
1833
  ]
1834
1834
  }
1835
- ), Ur = ({ docs: e, config: t, title: r, iconType: o, description: i, classes: a, accordionConfig: l }) => {
1835
+ ), Ur = ({ docs: t, config: e, title: r, iconType: o, description: i, classes: a, accordionConfig: l }) => {
1836
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)) }),
1837
+ r && /* @__PURE__ */ n.jsx(P, { 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: t == null ? void 0 : t.map((m) => /* @__PURE__ */ n.jsx(qr, { iconType: o, ...m, classes: a == null ? void 0 : a.singleDocument }, m.label)) }),
1839
1839
  i && /* @__PURE__ */ n.jsx("div", { className: d("mt-4", a == null ? void 0 : a.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
1840
1840
  ] });
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 }) => {
1841
+ return /* @__PURE__ */ n.jsx(n.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ n.jsx(oe, { label: e == null ? void 0 : e.accordionTitle, ...l, children: (l == null ? void 0 : l.children) || u }) : u });
1842
+ }, Wr = ({ entity: t, classes: e, accordionsConfig: r }) => {
1843
1843
  var o, i, a;
1844
1844
  switch (!0) {
1845
- case Mr(e):
1846
- return (o = e.details) == null ? void 0 : o.map((l, u) => {
1845
+ case Mr(t):
1846
+ return (o = t.details) == null ? void 0 : o.map((l, u) => {
1847
1847
  var m;
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);
1848
+ return /* @__PURE__ */ n.jsx(Fr, { ...l, accordionConfig: r == null ? void 0 : r.htmlAccordion, classes: (m = e == null ? void 0 : e.entities) == null ? void 0 : m.html }, u);
1849
1849
  });
1850
- case Er(e):
1851
- return (i = e.details) == null ? void 0 : i.map((l, u) => {
1850
+ case Er(t):
1851
+ return (i = t.details) == null ? void 0 : i.map((l, u) => {
1852
1852
  var m;
1853
1853
  return /* @__PURE__ */ n.jsx(
1854
1854
  Ur,
1855
1855
  {
1856
1856
  accordionConfig: r == null ? void 0 : r.documentAccordion,
1857
1857
  ...l,
1858
- classes: (m = t == null ? void 0 : t.entities) == null ? void 0 : m.documents
1858
+ classes: (m = e == null ? void 0 : e.entities) == null ? void 0 : m.documents
1859
1859
  },
1860
1860
  u
1861
1861
  );
1862
1862
  });
1863
- case Fr(e):
1864
- return (a = e.details) == null ? void 0 : a.map((l, u) => {
1863
+ case Or(t):
1864
+ return (a = t.details) == null ? void 0 : a.map((l, u) => {
1865
1865
  var m;
1866
1866
  return /* @__PURE__ */ n.jsx(
1867
1867
  Qr,
1868
1868
  {
1869
1869
  accordionConfig: r == null ? void 0 : r.tableAccordion,
1870
1870
  ...l,
1871
- classes: (m = t == null ? void 0 : t.entities) == null ? void 0 : m.table
1871
+ classes: (m = e == null ? void 0 : e.entities) == null ? void 0 : m.table
1872
1872
  },
1873
1873
  u
1874
1874
  );
@@ -1876,23 +1876,23 @@ const Ye = [
1876
1876
  default:
1877
1877
  return null;
1878
1878
  }
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 }) => {
1879
+ }, Kr = ({ entity: t, classes: e, accordionsConfig: r }) => /* @__PURE__ */ n.jsx("div", { className: d("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: Wr({ entity: t, classes: e, accordionsConfig: r }) }), no = ({ headline: t, tabs: e, classes: r, accordionsConfig: o }) => {
1880
1880
  var u, m;
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 }),
1881
+ const [i, a] = L(0), l = se(() => 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__ */ n.jsx("section", { id: j.usefulInfo, "data-test-id": j.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(P, { className: d(r == null ? void 0 : r.headline), as: "h2", children: t }),
1884
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)) })
1885
+ /* @__PURE__ */ n.jsx("div", { className: d("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (m = (u = e == null ? void 0 : e[i]) == null ? void 0 : u.contents) == null ? void 0 : m.map((x, p) => /* @__PURE__ */ n.jsx(Kr, { accordionsConfig: o, ...x, classes: r == null ? void 0 : r.entityClasses }, p)) })
1886
1886
  ] }) });
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 });
1887
+ }, ct = ({ fields: t, control: e }) => t.map(({ type: r, args: o }) => {
1888
+ const i = tt[r];
1889
+ return /* @__PURE__ */ nt(i, { ...o, key: o.name, control: e });
1890
1890
  });
1891
1891
  class $r {
1892
- constructor(t) {
1893
- at(this, "TEXT_NODE", 3);
1894
- at(this, "ELEMENT_NODE", 1);
1895
- this.options = t;
1892
+ constructor(e) {
1893
+ ae(this, "TEXT_NODE", 3);
1894
+ ae(this, "ELEMENT_NODE", 1);
1895
+ this.options = e;
1896
1896
  }
1897
1897
  /**
1898
1898
  * Рекурсивно обходит DOM дерево и собирает данные в зависимости от опций.
@@ -1900,12 +1900,12 @@ class $r {
1900
1900
  * @param elements Массив для сбора элементов
1901
1901
  * @param as Тип возвращаемых данных ('string' или 'node')
1902
1902
  */
1903
- traverse(t, r = "string", o) {
1903
+ traverse(e, r = "string", o) {
1904
1904
  const { includeSolidText: i, recursive: a, element: l } = this.options || {};
1905
- switch (t.nodeType) {
1905
+ switch (e.nodeType) {
1906
1906
  // если узел - элемент
1907
1907
  case this.ELEMENT_NODE:
1908
- const u = t, m = u.tagName.toLowerCase();
1908
+ const u = e, 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;
@@ -1913,13 +1913,13 @@ class $r {
1913
1913
  if (l && m !== l)
1914
1914
  break;
1915
1915
  if (r === "node")
1916
- o.push(t);
1916
+ o.push(e);
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 t.childNodes)
1922
+ for (const x of e.childNodes)
1923
1923
  this.traverse(x, r, o);
1924
1924
  break;
1925
1925
  // если узел - текстовый и требуется его добавить, добавляем
@@ -1927,9 +1927,9 @@ class $r {
1927
1927
  if (!i)
1928
1928
  break;
1929
1929
  if (r === "node")
1930
- o.push(t);
1930
+ o.push(e);
1931
1931
  else {
1932
- const x = t.textContent;
1932
+ const x = e.textContent;
1933
1933
  x && o.push(x);
1934
1934
  }
1935
1935
  break;
@@ -1941,8 +1941,8 @@ class $r {
1941
1941
  * @param as Тип возвращаемых данных ('string' или 'node')
1942
1942
  * @returns Массив тегов или нод
1943
1943
  */
1944
- async parse(t, r = "string") {
1945
- const { includeBody: o } = this.options || {}, i = [], a = [], l = await this.parseFromString(t), u = r === "string" ? i : a;
1944
+ async parse(e, r = "string") {
1945
+ const { includeBody: o } = this.options || {}, i = [], a = [], l = await this.parseFromString(e), u = r === "string" ? i : a;
1946
1946
  if (o)
1947
1947
  this.traverse(l.body, r, u);
1948
1948
  else
@@ -1955,29 +1955,29 @@ class $r {
1955
1955
  * @param html HTML строка
1956
1956
  * @returns Количество найденных тегов
1957
1957
  */
1958
- async countElements(t) {
1959
- const { stringNodes: r } = await this.parse(t, "string");
1958
+ async countElements(e) {
1959
+ const { stringNodes: r } = await this.parse(e, "string");
1960
1960
  return r.length;
1961
1961
  }
1962
1962
  }
1963
1963
  const Zr = typeof window < "u";
1964
1964
  class Xr extends $r {
1965
- constructor(t) {
1966
- super(t);
1965
+ constructor(e) {
1966
+ super(e);
1967
1967
  }
1968
- async parseFromString(t) {
1969
- return Zr ? new DOMParser().parseFromString(t, "text/html") : Promise.reject();
1968
+ async parseFromString(e) {
1969
+ return Zr ? new DOMParser().parseFromString(e, "text/html") : Promise.reject();
1970
1970
  }
1971
1971
  }
1972
- class Nt {
1972
+ class Ie {
1973
1973
  /**
1974
1974
  * Функция для парсинга ноды в react элемент
1975
1975
  */
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 = {};
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 r = e, o = r.tagName.toLowerCase(), i = {};
1981
1981
  for (const l of r.attributes) {
1982
1982
  let u = l.name, m = l.value;
1983
1983
  switch (l.name) {
@@ -1999,10 +1999,10 @@ class Nt {
1999
1999
  u = "style";
2000
2000
  const x = {};
2001
2001
  l.value.split(";").forEach((p) => {
2002
- const [c, g] = p.split(":");
2003
- if (c && g) {
2004
- const k = c.trim().replace(/-([a-z])/g, (v, I) => I.toUpperCase());
2005
- x[k] = g.trim();
2002
+ const [c, b] = p.split(":");
2003
+ if (c && b) {
2004
+ const s = c.trim().replace(/-([a-z])/g, (N, k) => k.toUpperCase());
2005
+ x[s] = b.trim();
2006
2006
  }
2007
2007
  }), m = x;
2008
2008
  break;
@@ -2015,36 +2015,36 @@ class Nt {
2015
2015
  const u = this.parseNode(l);
2016
2016
  u && a.push(u);
2017
2017
  }
2018
- return te(o, i, ...a);
2018
+ return nt(o, i, ...a);
2019
2019
  }
2020
2020
  return null;
2021
2021
  }
2022
2022
  /**
2023
2023
  * функция для преобразования html строки в react элементы
2024
2024
  */
2025
- static async toReactNodes(t, r) {
2026
- const o = new Xr(r), { nodes: i } = await o.parse(t, "node");
2025
+ static async toReactNodes(e, r) {
2026
+ const o = new Xr(r), { nodes: i } = await o.parse(e, "node");
2027
2027
  return i.map((a) => this.parseNode(a));
2028
2028
  }
2029
2029
  }
2030
- at(Nt, "TEXT_NODE", 3), at(Nt, "ELEMENT_NODE", 1);
2031
- const Jr = ({ promises: e }) => {
2032
- const [t, r] = z([]);
2033
- return ee(() => {
2030
+ ae(Ie, "TEXT_NODE", 3), ae(Ie, "ELEMENT_NODE", 1);
2031
+ const Yr = ({ promises: t }) => {
2032
+ const [e, r] = L([]);
2033
+ return be(() => {
2034
2034
  (async () => {
2035
- r(await e);
2035
+ r(await t);
2036
2036
  })();
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);
2037
+ }, [t]), /* @__PURE__ */ n.jsx(n.Fragment, { children: e });
2038
+ }, ge = ({ html: t, options: e, as: r, ...o }) => {
2039
+ const i = r ?? Dt, a = r ? o : {}, l = Ie.toReactNodes(t, e);
2040
2040
  return (
2041
2041
  // @ts-expect-error disable warning
2042
- /* @__PURE__ */ n.jsx(i, { ...a, children: /* @__PURE__ */ n.jsx(Jr, { promises: l }) })
2042
+ /* @__PURE__ */ n.jsx(i, { ...a, children: /* @__PURE__ */ n.jsx(Yr, { promises: l }) })
2043
2043
  );
2044
- }, Yr = (e, t) => e.enabled ? t.map((r) => ({
2044
+ }, Jr = (t, e) => t.enabled ? e.map((r) => ({
2045
2045
  name: r.args.name,
2046
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(
2047
+ })) : null, Gr = new Yt(), en = ({ children: t }) => /* @__PURE__ */ n.jsx(Bt, { client: Gr, children: t }), tn = (t, e, r, o) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ n.jsx(ge, { html: t.message, as: "div", className: o == null ? void 0 : o.content }) : /* @__PURE__ */ n.jsxs(
2048
2048
  "label",
2049
2049
  {
2050
2050
  className: d(
@@ -2053,32 +2053,32 @@ const Jr = ({ promises: e }) => {
2053
2053
  "flex items-center justify-items-start gap-x-3"
2054
2054
  ),
2055
2055
  children: [
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 })
2056
+ /* @__PURE__ */ n.jsx(Oe.CheckboxBase, { classes: o == null ? void 0 : o.checkbox, checked: e, onCheckedChange: r }),
2057
+ /* @__PURE__ */ n.jsx(ge, { html: t.content, as: "div", className: o == null ? void 0 : o.content })
2058
2058
  ]
2059
2059
  }
2060
- ), ro = ({
2061
- fields: e,
2062
- title: t,
2060
+ ), oo = ({
2061
+ fields: t,
2062
+ title: e,
2063
2063
  progress: r,
2064
2064
  approvement: o,
2065
2065
  chips: i,
2066
2066
  submitProps: a,
2067
2067
  classes: l
2068
2068
  }) => {
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({
2069
+ var V, C;
2070
+ const { submitCallback: u, ...m } = a || {}, [x, p] = L(!1), c = xt(t), b = dt.getZodDefaults(c), { control: s, handleSubmit: N } = it({
2071
2071
  schema: c,
2072
- defaultValues: g,
2072
+ defaultValues: b,
2073
2073
  mode: "onBlur"
2074
- }), I = Yr(r, e), P = qe({ control: k, fields: I || [], schema: c }), G = (M) => {
2074
+ }), k = Jr(r, t), B = qt({ control: s, fields: k || [], schema: c }), R = (M) => {
2075
2075
  u && u({ ...M, agree: x }), console.warn(M);
2076
2076
  };
2077
- return /* @__PURE__ */ n.jsx(tn, { children: /* @__PURE__ */ n.jsxs(
2077
+ return /* @__PURE__ */ n.jsx(en, { children: /* @__PURE__ */ n.jsxs(
2078
2078
  "div",
2079
2079
  {
2080
- id: b.form,
2081
- "data-test-id": b.form,
2080
+ id: j.form,
2081
+ "data-test-id": j.form,
2082
2082
  className: d(
2083
2083
  "border-warm-grey-200 px-4 desktop:gap-8 desktop:p-14",
2084
2084
  "relative flex flex-col gap-6 rounded-sm border py-8",
@@ -2092,36 +2092,36 @@ const Jr = ({ promises: e }) => {
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
- (Q = l == null ? void 0 : l.chips) == null ? void 0 : Q.root
2095
+ (V = l == null ? void 0 : l.chips) == null ? void 0 : V.root
2096
2096
  ),
2097
2097
  children: [
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) }),
2098
+ i.image && /* @__PURE__ */ n.jsx(f, { name: i.image, className: d("size-4", (C = l == null ? void 0 : l.chips) == null ? void 0 : C.icon) }),
2099
2099
  i.content
2100
2100
  ]
2101
2101
  }
2102
2102
  ),
2103
- /* @__PURE__ */ n.jsx(H, { as: "h3", className: l == null ? void 0 : l.title, children: t }),
2103
+ /* @__PURE__ */ n.jsx(P, { as: "h3", className: l == null ? void 0 : l.title, children: e }),
2104
2104
  /* @__PURE__ */ n.jsxs(
2105
2105
  "form",
2106
2106
  {
2107
- onSubmit: v(G),
2107
+ onSubmit: N(R),
2108
2108
  className: d("flex w-[328px] flex-col gap-y-6", "desktop:w-[524px] desktop:gap-y-8", l == null ? void 0 : l.form),
2109
2109
  children: [
2110
2110
  r.enabled && /* @__PURE__ */ n.jsx(
2111
- Se,
2111
+ Rt,
2112
2112
  {
2113
- progress: P,
2114
- topContent: /* @__PURE__ */ n.jsx(bt, { html: r.title }),
2115
- bottomContent: /* @__PURE__ */ n.jsx(bt, { html: r.subtitle }),
2113
+ progress: B,
2114
+ topContent: /* @__PURE__ */ n.jsx(ge, { html: r.title }),
2115
+ bottomContent: /* @__PURE__ */ n.jsx(ge, { html: r.subtitle }),
2116
2116
  maxPercent: r.maxPercent,
2117
2117
  classes: l == null ? void 0 : l.progressBar
2118
2118
  }
2119
2119
  ),
2120
- /* @__PURE__ */ n.jsx(he, { control: k, fields: e }),
2120
+ /* @__PURE__ */ n.jsx(ct, { control: s, fields: t }),
2121
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),
2122
+ tn(o, x, p, l == null ? void 0 : l.approvement),
2123
2123
  /* @__PURE__ */ n.jsx(
2124
- Ct,
2124
+ Te,
2125
2125
  {
2126
2126
  ...m,
2127
2127
  type: "submit",
@@ -2143,7 +2143,7 @@ const Jr = ({ promises: e }) => {
2143
2143
  ]
2144
2144
  }
2145
2145
  ) });
2146
- }, dt = () => ({
2146
+ }, de = () => ({
2147
2147
  approve: {
2148
2148
  icon: {
2149
2149
  element: /* @__PURE__ */ n.jsx(f, { name: "status/iconMark" }),
@@ -2204,34 +2204,34 @@ const Jr = ({ promises: e }) => {
2204
2204
  text: "Вернуться на главную"
2205
2205
  }
2206
2206
  }
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: [
2207
+ }), io = ({ status: t, navigationFn: e }) => /* @__PURE__ */ n.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ n.jsx(S, { className: "flex flex-col justify-center", children: /* @__PURE__ */ n.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
2208
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
- `${dt()[e].icon.bg}`
2213
+ `${de()[t].icon.bg}`
2214
2214
  ),
2215
- children: dt()[e].icon.element
2215
+ children: de()[t].icon.element
2216
2216
  }
2217
2217
  ),
2218
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 })
2219
+ /* @__PURE__ */ n.jsx(P, { as: "h2", children: de()[t].title }),
2220
+ /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: de()[t].description })
2221
2221
  ] }),
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)
2222
+ /* @__PURE__ */ n.jsx(Te, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: e, children: de()[t].button.text })
2223
+ ] }) }) }), ft = ({ breadcrumb: t, className: e, ...r }) => /* @__PURE__ */ n.jsx("a", { href: t.path, className: d("desk-body-regular-m", e), ...r, children: t.label }), rn = ({ startsWith: t, endsWith: e, matcher: r, filter: o, rootEnabled: i = !0 }) => {
2224
+ const [a, l] = L([]);
2225
+ return be(() => {
2226
+ if (!ot)
2227
2227
  return;
2228
- let u = window.location.pathname.split("/").filter((p) => !s.isStringEmpty(p));
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));
2228
+ let u = window.location.pathname.split("/").filter((p) => !g.isStringEmpty(p));
2229
+ g.isUndefined(t) || (g.isString(t) ? u = u.slice(u.findIndex((p) => p === t)) : u = u.slice(t)), g.isUndefined(e) || (g.isString(e) ? u = u.slice(0, u.findIndex((p) => p === e) + 1) : u = u.slice(0, e + 1));
2230
2230
  let m = [], x = "";
2231
2231
  if (i) {
2232
2232
  const p = {
2233
2233
  index: 0,
2234
- id: Dt(),
2234
+ id: Qe(),
2235
2235
  path: "/",
2236
2236
  label: "home"
2237
2237
  };
@@ -2239,25 +2239,25 @@ const Jr = ({ promises: e }) => {
2239
2239
  }
2240
2240
  u.forEach((p, c) => {
2241
2241
  x += `/${p}`;
2242
- const g = {
2242
+ const b = {
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: Dt(),
2246
+ id: Qe(),
2247
2247
  path: x,
2248
2248
  label: p
2249
2249
  };
2250
- m.push(g);
2250
+ m.push(b);
2251
2251
  }), r && (m = m.map((p) => ({
2252
2252
  ...p,
2253
2253
  ...r(p)
2254
2254
  }))), l(o ? m.filter(o) : m);
2255
- }, [t, o, r, i, e]), a;
2256
- }, ft = (e, t, r, o) => e.map((i, a) => {
2255
+ }, [e, o, r, i, t]), a;
2256
+ }, fe = (t, e, r, o) => t.map((i, a) => {
2257
2257
  const l = a === o;
2258
2258
  return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-x-2", children: [
2259
2259
  /* @__PURE__ */ n.jsx(
2260
- pe,
2260
+ ft,
2261
2261
  {
2262
2262
  breadcrumb: i,
2263
2263
  className: d(r, {
@@ -2265,15 +2265,15 @@ const Jr = ({ promises: e }) => {
2265
2265
  })
2266
2266
  }
2267
2267
  ),
2268
- a !== e.length - 1 && t
2268
+ a !== t.length - 1 && e
2269
2269
  ] }, i.id);
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
- let g = [], k = [], v = [];
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) });
2270
+ }), nn = ({ separator: t, ellipsis: e, classes: r, ...o }) => {
2271
+ const [i, a] = L(!1), l = Se(null);
2272
+ Vt(l, () => a(!1));
2273
+ const u = rn(o), { first: m, middle: x, last: p } = se(() => {
2274
+ let b = [], s = [], N = [];
2275
+ return e && (b = u.slice(0, e), s = u.slice(e, u.length - e), N = u.slice(u.length - e)), { first: b, middle: s, last: N };
2276
+ }, [u, e]), c = t ?? /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: d("size-4", r == null ? void 0 : r.separator) });
2277
2277
  return /* @__PURE__ */ n.jsx(
2278
2278
  "div",
2279
2279
  {
@@ -2282,13 +2282,13 @@ const Jr = ({ promises: e }) => {
2282
2282
  "gap-x-2 gap-y-1 py-4 text-color-primary-default",
2283
2283
  r == null ? void 0 : r.root
2284
2284
  ),
2285
- children: t ? (
2285
+ children: e ? (
2286
2286
  // if ellipsis provided, render hidden breadcrumbs
2287
- /* @__PURE__ */ n.jsx(n.Fragment, { children: u.length > t * 2 + 1 ? (
2287
+ /* @__PURE__ */ n.jsx(n.Fragment, { children: u.length > e * 2 + 1 ? (
2288
2288
  // if we have more than ellipsis (visible crumbs) + available hidden crumbs
2289
2289
  // render hidden breadcrumbs
2290
2290
  /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2291
- ft(m, c, r == null ? void 0 : r.breadcrumb),
2291
+ fe(m, c, r == null ? void 0 : r.breadcrumb),
2292
2292
  c,
2293
2293
  x.length > 0 && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2294
2294
  /* @__PURE__ */ n.jsxs("div", { className: "relative", children: [
@@ -2305,10 +2305,10 @@ const Jr = ({ promises: e }) => {
2305
2305
  "visible opacity-100": i
2306
2306
  }
2307
2307
  ),
2308
- children: x.map((g) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
2309
- pe,
2308
+ children: x.map((b) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
2309
+ ft,
2310
2310
  {
2311
- breadcrumb: g,
2311
+ breadcrumb: b,
2312
2312
  className: d(
2313
2313
  "desk-body-regular-l inline-block py-3",
2314
2314
  "w-full rounded-sm bg-color-white px-2",
@@ -2316,63 +2316,63 @@ const Jr = ({ promises: e }) => {
2316
2316
  r == null ? void 0 : r.breadcrumb
2317
2317
  )
2318
2318
  }
2319
- ) }, g.id))
2319
+ ) }, b.id))
2320
2320
  }
2321
2321
  )
2322
2322
  ] }),
2323
2323
  c
2324
2324
  ] }),
2325
- ft(p, c, r == null ? void 0 : r.breadcrumb, p.length - 1)
2325
+ fe(p, c, r == null ? void 0 : r.breadcrumb, p.length - 1)
2326
2326
  ] })
2327
2327
  ) : (
2328
2328
  // otherwise render all breadcrumbs
2329
- ft(u, c, r == null ? void 0 : r.breadcrumb, u.length - 1)
2329
+ fe(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
- ft(u, c, r == null ? void 0 : r.breadcrumb, u.length - 1)
2333
+ fe(u, c, r == null ? void 0 : r.breadcrumb, u.length - 1)
2334
2334
  )
2335
2335
  }
2336
2336
  );
2337
2337
  };
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:
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:
2342
2342
  return {
2343
- ...e,
2344
- root: t.payload
2343
+ ...t,
2344
+ root: e.payload
2345
2345
  };
2346
- case ut.CURRENT:
2346
+ case ue.CURRENT:
2347
2347
  return {
2348
- ...e,
2349
- current: t.payload
2348
+ ...t,
2349
+ current: e.payload
2350
2350
  };
2351
2351
  default:
2352
- return e;
2352
+ return t;
2353
2353
  }
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 }) => {
2354
+ }, an = (t) => {
2355
+ const [e, r] = Pt(on, t);
2356
+ return [e, r];
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
2364
  var r, o;
2365
- return de(
2365
+ return ut(
2366
2366
  /* @__PURE__ */ n.jsx(
2367
- Mt.div,
2367
+ Fe.div,
2368
2368
  {
2369
- ...t,
2369
+ ...e,
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__ */ n.jsx("div", { className: "flex w-[1140px] gap-x-[56px] py-10", children: e.map((i) => {
2375
+ children: /* @__PURE__ */ n.jsx("div", { className: "flex w-[1140px] gap-x-[56px] py-10", children: t.map((i) => {
2376
2376
  var l;
2377
2377
  const a = i.link ? "a" : "p";
2378
2378
  return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-y-6", children: [
@@ -2400,11 +2400,11 @@ const on = (e, t) => {
2400
2400
  */
2401
2401
  ((o = (r = document.body.querySelector("#modal-preview")) == null ? void 0 : r.contentDocument) == null ? void 0 : o.body) ?? document.body
2402
2402
  );
2403
- }, mn = Pe(({ category: e, active: t, onActiveTabChange: r }, o) => {
2403
+ }, mn = Lt(({ category: t, active: e, 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 = t && !s.isArrayEmpty(e.children), u = s.isArrayEmpty(e.children) ? "a" : "span";
2405
+ const i = o && "current" in o ? o : null, a = (m = i == null ? void 0 : i.current) == null ? void 0 : m.getBoundingClientRect(), l = e && !g.isArrayEmpty(t.children), u = g.isArrayEmpty(t.children) ? "a" : "span";
2406
2406
  return /* @__PURE__ */ n.jsxs(
2407
- Mt.div,
2407
+ Fe.div,
2408
2408
  {
2409
2409
  ref: o,
2410
2410
  className: d(
@@ -2416,15 +2416,15 @@ const on = (e, t) => {
2416
2416
  "after:w-full": l
2417
2417
  }
2418
2418
  ),
2419
- onMouseEnter: () => r(e.title),
2419
+ onMouseEnter: () => r(t.title),
2420
2420
  onMouseLeave: () => r(null),
2421
- onFocus: () => r(e.title),
2421
+ onFocus: () => r(t.title),
2422
2422
  children: [
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 }),
2423
+ /* @__PURE__ */ n.jsx(u, { href: u === "a" ? (x = t.link) == null ? void 0 : x.href : void 0, className: "desk-body-regular-m outline-none", children: t.title }),
2424
2424
  l && /* @__PURE__ */ n.jsx(
2425
2425
  un,
2426
2426
  {
2427
- categories: e.children,
2427
+ categories: t.children,
2428
2428
  style: {
2429
2429
  top: a ? a.top + a.height : 0,
2430
2430
  left: a ? a.left : 0,
@@ -2435,23 +2435,23 @@ const on = (e, t) => {
2435
2435
  ]
2436
2436
  }
2437
2437
  );
2438
- }), xn = Ft(mn), hn = ({ categories: e }) => {
2439
- const [t, r] = z(null), o = Gt((a) => {
2438
+ }), xn = Be(mn), hn = ({ categories: t }) => {
2439
+ const [e, r] = L(null), o = rt((a) => {
2440
2440
  r(a);
2441
- }, []), i = Et(null);
2442
- return /* @__PURE__ */ n.jsx(Be, { mode: "sync", children: /* @__PURE__ */ n.jsxs(
2441
+ }, []), i = Se(null);
2442
+ return /* @__PURE__ */ n.jsx(_t, { 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
- e.map((a) => /* @__PURE__ */ n.jsx(
2449
+ t.map((a) => /* @__PURE__ */ n.jsx(
2450
2450
  xn,
2451
2451
  {
2452
2452
  ref: i,
2453
2453
  category: a,
2454
- active: t === a.title,
2454
+ active: e === a.title,
2455
2455
  onActiveTabChange: o
2456
2456
  },
2457
2457
  a.title
@@ -2460,9 +2460,9 @@ const on = (e, t) => {
2460
2460
  ]
2461
2461
  }
2462
2462
  ) });
2463
- }, pn = Ft(hn), cn = ({
2464
- category: e,
2465
- selectedCategory: t,
2463
+ }, pn = Be(hn), cn = ({
2464
+ category: t,
2465
+ selectedCategory: e,
2466
2466
  onCurrentCategoryChange: r,
2467
2467
  onRootCategoryChange: o,
2468
2468
  active: i,
@@ -2472,14 +2472,14 @@ const on = (e, t) => {
2472
2472
  {
2473
2473
  ...a,
2474
2474
  onClick: () => {
2475
- r(e.children[0]), o(e);
2475
+ r(t.children[0]), o(t);
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__ */ n.jsx("span", { className: "desk-body-regular-m", children: e.title }),
2482
- e.children.length > 1 && /* @__PURE__ */ n.jsx(
2481
+ /* @__PURE__ */ n.jsx("span", { className: "desk-body-regular-m", children: t.title }),
2482
+ t.children.length > 1 && /* @__PURE__ */ n.jsx(
2483
2483
  "div",
2484
2484
  {
2485
2485
  className: d(
@@ -2487,16 +2487,16 @@ const on = (e, t) => {
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: e.children.map((l) => /* @__PURE__ */ n.jsx(
2490
+ children: t.children.map((l) => /* @__PURE__ */ n.jsx(
2491
2491
  "span",
2492
2492
  {
2493
2493
  onClick: (u) => {
2494
- u.stopPropagation(), u.nativeEvent.stopPropagation(), o(e), r(l);
2494
+ u.stopPropagation(), u.nativeEvent.stopPropagation(), o(t), 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": t.title === l.title
2499
+ "text-color-primary-default": e.title === l.title
2500
2500
  }
2501
2501
  ),
2502
2502
  children: l.title
@@ -2507,12 +2507,12 @@ const on = (e, t) => {
2507
2507
  )
2508
2508
  ]
2509
2509
  }
2510
- ), fn = ({ categories: e, helpers: t, phone: r }) => {
2511
- const [o, i] = an({ root: e[0].children[0], current: e[0].children[0] });
2510
+ ), fn = ({ categories: t, helpers: e, phone: r }) => {
2511
+ const [o, i] = an({ root: t[0].children[0], current: t[0].children[0] });
2512
2512
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2513
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
2514
  /* @__PURE__ */ n.jsx(f, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
2515
- e.map((a) => {
2515
+ t.map((a) => {
2516
2516
  const l = o.root.title === a.title;
2517
2517
  return /* @__PURE__ */ n.jsx(
2518
2518
  cn,
@@ -2527,7 +2527,7 @@ const on = (e, t) => {
2527
2527
  );
2528
2528
  }),
2529
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(
2530
+ e.map((a) => /* @__PURE__ */ n.jsxs(
2531
2531
  "a",
2532
2532
  {
2533
2533
  href: a.link.href,
@@ -2545,16 +2545,16 @@ const on = (e, t) => {
2545
2545
  {
2546
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: yt(r, "x xxx xxx xx xx")
2548
+ children: ye(r, "x xxx xxx xx xx")
2549
2549
  }
2550
2550
  )
2551
2551
  ] }),
2552
2552
  /* @__PURE__ */ n.jsx(pn, { categories: o.current.children })
2553
2553
  ] });
2554
- }, bn = ({ category: e }) => /* @__PURE__ */ n.jsx(
2555
- ot,
2554
+ }, bn = ({ category: t }) => /* @__PURE__ */ n.jsx(
2555
+ oe,
2556
2556
  {
2557
- label: e.title ?? "",
2557
+ label: t.title ?? "",
2558
2558
  icon: /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowRight", className: "-rotate-90" }),
2559
2559
  classes: {
2560
2560
  root: "w-full",
@@ -2569,41 +2569,41 @@ const on = (e, t) => {
2569
2569
  "after:h-[1px] after:bg-color-blue-grey-200"
2570
2570
  )
2571
2571
  },
2572
- children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-start justify-center gap-y-4", children: e.children.map((t) => {
2572
+ children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-start justify-center gap-y-4", children: t.children.map((e) => {
2573
2573
  var i;
2574
- const r = !!t.link, o = r ? "a" : "p";
2574
+ const r = !!e.link, o = r ? "a" : "p";
2575
2575
  return /* @__PURE__ */ n.jsxs("ul", { className: "w-full list-none p-0", children: [
2576
2576
  /* @__PURE__ */ n.jsxs(
2577
2577
  o,
2578
2578
  {
2579
- href: r ? (i = t.link) == null ? void 0 : i.href : void 0,
2579
+ href: r ? (i = e.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
- t.title,
2582
+ e.title,
2583
2583
  /* @__PURE__ */ n.jsx(f, { name: "arrows/arrowLink" })
2584
2584
  ]
2585
2585
  }
2586
2586
  ),
2587
- t.children.map((a) => {
2587
+ e.children.map((a) => {
2588
2588
  var l;
2589
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
- ] }, t.title);
2591
+ ] }, e.title);
2592
2592
  }) })
2593
2593
  },
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
- s.isUndefined(x) || s.isArray(x) || l(x);
2601
- }, m = jt(() => {
2594
+ t.title
2595
+ ), gn = (t) => t.map((e) => ({
2596
+ value: e.title ?? "",
2597
+ label: e.title ?? ""
2598
+ })), jn = ({ categories: t, helpers: e, phone: r, ...o }) => {
2599
+ const i = gn(t), [a, l] = L(i[0]), u = (x) => {
2600
+ g.isUndefined(x) || g.isArray(x) || l(x);
2601
+ }, m = se(() => {
2602
2602
  var x;
2603
- return s.isUndefined(a) || s.isArray(a) ? [] : ((x = e.find((p) => p.title === a.value)) == null ? void 0 : x.children) ?? [];
2604
- }, [a, e]);
2603
+ return g.isUndefined(a) || g.isArray(a) ? [] : ((x = t.find((p) => p.title === a.value)) == null ? void 0 : x.children) ?? [];
2604
+ }, [a, t]);
2605
2605
  return /* @__PURE__ */ n.jsxs(
2606
- Mt.div,
2606
+ Fe.div,
2607
2607
  {
2608
2608
  ...o,
2609
2609
  className: d(
@@ -2615,14 +2615,14 @@ const on = (e, t) => {
2615
2615
  initial: { opacity: 0 },
2616
2616
  animate: { opacity: 1 },
2617
2617
  children: [
2618
- /* @__PURE__ */ n.jsx(Yt.SelectBase, { label: "Категория", options: i, value: a, onChange: u }),
2618
+ /* @__PURE__ */ n.jsx(Oe.SelectBase, { label: "Категория", options: i, value: a, onChange: u }),
2619
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__ */ 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);
2621
+ return g.isArrayEmpty(x.children) ? /* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsx("a", { href: (p = x.link) == null ? void 0 : p.href, className: "desk-body-regular-m inline-block w-full", children: x.title }) }, x.title) : /* @__PURE__ */ n.jsx(bn, { category: x }, x.title);
2622
2622
  }) }),
2623
2623
  /* @__PURE__ */ n.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
2624
2624
  /* @__PURE__ */ n.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
2625
- t.map((x) => {
2625
+ e.map((x) => {
2626
2626
  var p, c;
2627
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
2628
  ((c = x.link) == null ? void 0 : c.icon) && /* @__PURE__ */ n.jsx(f, { name: x.link.icon, className: "size-4" }),
@@ -2631,24 +2631,24 @@ const on = (e, t) => {
2631
2631
  }),
2632
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
2633
  /* @__PURE__ */ n.jsx(f, { name: "communication/phone", className: "size-4" }),
2634
- yt(r)
2634
+ ye(r)
2635
2635
  ] }) })
2636
2636
  ] })
2637
2637
  ]
2638
2638
  }
2639
2639
  );
2640
- }, yn = ({ categories: e, helpers: t, phone: r }) => {
2640
+ }, sn = ({ categories: t, helpers: e, phone: r }) => {
2641
2641
  var m, x, p;
2642
- const o = Et(null), i = (m = o.current) == null ? void 0 : m.getBoundingClientRect(), [a, l] = z(!1), u = () => l(!a);
2642
+ const o = Se(null), i = (m = o.current) == null ? void 0 : m.getBoundingClientRect(), [a, l] = L(!1), u = () => l(!a);
2643
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
2644
  /* @__PURE__ */ n.jsx(f, { name: "brandLogos/logoMain", className: "w-[130px]" }),
2645
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(
2646
+ a && ut(
2647
2647
  /* @__PURE__ */ n.jsx(
2648
2648
  jn,
2649
2649
  {
2650
- categories: e,
2651
- helpers: t,
2650
+ categories: t,
2651
+ helpers: e,
2652
2652
  phone: r,
2653
2653
  style: { top: i ? i.top + i.height : 0 }
2654
2654
  }
@@ -2659,24 +2659,24 @@ const on = (e, t) => {
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: e, helpers: t, phone: r }) => {
2663
- const { isMobile: o } = Y();
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 }),
2662
+ }, ao = ({ categories: t, helpers: e, phone: r }) => {
2663
+ const { isMobile: o } = G();
2664
+ return /* @__PURE__ */ n.jsxs("div", { id: j.seoHeader, "data-test-id": j.seoHeader, className: "mx-auto w-full max-w-[1440px]", children: [
2665
+ o ? /* @__PURE__ */ n.jsx(sn, { categories: t.map((i) => i.children).flat(), helpers: e, phone: r }) : /* @__PURE__ */ n.jsx(fn, { categories: t, helpers: e, phone: r }),
2666
2666
  /* @__PURE__ */ n.jsx(
2667
2667
  nn,
2668
2668
  {
2669
2669
  ellipsis: o ? 1 : void 0,
2670
- matcher: (i) => ({ label: Le(i.label).split("-").join(" ") })
2670
+ matcher: (i) => ({ label: Qt(i.label).split("-").join(" ") })
2671
2671
  }
2672
2672
  )
2673
2673
  ] });
2674
- }, ce = (e) => typeof e != "string" && "formula" in e, fe = (e, t) => {
2675
- let r = t;
2674
+ }, bt = (t) => typeof t != "string" && "formula" in t, gt = (t, e) => {
2675
+ let r = e;
2676
2676
  const o = {
2677
- style: e
2677
+ style: t
2678
2678
  };
2679
- switch (e) {
2679
+ switch (t) {
2680
2680
  case "currency":
2681
2681
  o.currency = "RUB", o.minimumFractionDigits = 0, o.maximumFractionDigits = 0;
2682
2682
  break;
@@ -2687,34 +2687,34 @@ const on = (e, t) => {
2687
2687
  return null;
2688
2688
  }
2689
2689
  return new Intl.NumberFormat("ru-RU", o).format(r);
2690
- }, sn = (e, t) => {
2691
- switch (e) {
2690
+ }, yn = (t, e) => {
2691
+ switch (t) {
2692
2692
  case "text":
2693
- return t;
2693
+ return e;
2694
2694
  default:
2695
- return fe(e, Number(t));
2695
+ return gt(t, Number(e));
2696
2696
  }
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
+ }, kn = (t) => Object.values(t).reduce((r, o) => r.merge(xt(o.fields)), lt({})), wn = (t, e) => (t.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in e)).length > 0 ? "" : t, jt = (t, e) => {
2698
+ const r = Object.entries(e).map(([m, x]) => [m, x !== null ? x : "1"]), o = r.map(([m]) => m), i = r.map(([, m]) => m), a = wn(t, Object.fromEntries(r)), u = new Function(...o, `return ${a};`)(...i.map(Number));
2699
2699
  return Number.isNaN(Number(u)) ? "0" : u.toString();
2700
- }, vn = (e, t) => e.map((r) => ({
2700
+ }, Nn = (t, e) => t.map((r) => ({
2701
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: [
2702
+ value: bt(r.value) ? jt(r.value.formula, e) : r.value
2703
+ })), vn = ({ subtitle: t, title: e }) => /* @__PURE__ */ n.jsx(n.Fragment, { children: (e || t) && /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-2", children: [
2704
+ e && /* @__PURE__ */ n.jsx(P, { as: "h3", children: e }),
2705
+ t && /* @__PURE__ */ n.jsx("div", { className: "desk-body-regular-l text-color-dark", children: t })
2706
+ ] }) }), Cn = ({ rootDescription: t, rootValue: e, 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: t }),
2708
+ /* @__PURE__ */ n.jsx("div", { className: "desk-title-bold-l flex items-center gap-1 text-color-dark", children: /* @__PURE__ */ n.jsx("span", { children: gt(r, Number(e)) }) })
2709
+ ] }), In = ({ hint: t, value: e, label: r, mode: o, color: i = "dark", accent: a = !1 }) => /* @__PURE__ */ n.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
2710
2710
  /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-2", children: [
2711
2711
  /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: r }),
2712
- e && /* @__PURE__ */ n.jsx(
2713
- It,
2712
+ t && /* @__PURE__ */ n.jsx(
2713
+ Me,
2714
2714
  {
2715
2715
  withCloseBtn: !1,
2716
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 })
2717
+ children: /* @__PURE__ */ n.jsx("p", { children: t })
2718
2718
  }
2719
2719
  )
2720
2720
  ] }),
@@ -2725,25 +2725,25 @@ const on = (e, t) => {
2725
2725
  "[&&]:desk-title-bold-s": a,
2726
2726
  "text-color-primary-default": i === "blue"
2727
2727
  }),
2728
- children: sn(o, t)
2728
+ children: yn(o, e)
2729
2729
  }
2730
2730
  )
2731
- ] }), Tn = ({ infoList: e }) => {
2732
- const { watch: t } = oe(), r = t(), o = vn(e, r);
2731
+ ] }), Tn = ({ infoList: t }) => {
2732
+ const { watch: e } = ke(), r = e(), o = Nn(t, r);
2733
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: [
2734
+ }, Mn = ({ iconName: t, text: e, hint: r }) => /* @__PURE__ */ n.jsxs("div", { className: "mb-6 flex items-center gap-2", children: [
2735
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 })
2736
+ /* @__PURE__ */ n.jsx(f, { name: t, className: "size-6 text-icon-blue-grey-800" }),
2737
+ /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: e })
2738
2738
  ] }),
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)) }),
2739
+ r && /* @__PURE__ */ n.jsx(Me, { 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: t, buttonsConfig: e, bottomDescription: r }) => /* @__PURE__ */ n.jsxs("div", { children: [
2741
+ t && /* @__PURE__ */ n.jsx(Mn, { ...t }),
2742
+ /* @__PURE__ */ n.jsx("div", { className: d("flex items-center gap-4 mobile:flex-col"), children: e == null ? void 0 : e.map((o, i) => /* @__PURE__ */ n.jsx(Z, { className: "w-full", ...o }, i)) }),
2743
2743
  r && /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-m mt-4 text-color-secondary", children: r })
2744
- ] }), Fn = ({
2745
- rootDescription: e,
2746
- bottomDescription: t,
2744
+ ] }), On = ({
2745
+ rootDescription: t,
2746
+ bottomDescription: e,
2747
2747
  rootValue: r,
2748
2748
  title: o,
2749
2749
  subtitle: i,
@@ -2752,19 +2752,42 @@ const on = (e, t) => {
2752
2752
  suffix: u,
2753
2753
  assistHint: m
2754
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 }),
2755
+ /* @__PURE__ */ n.jsx(Cn, { suffix: u, rootValue: r, rootDescription: t }),
2756
+ /* @__PURE__ */ n.jsx(vn, { title: o, subtitle: i }),
2757
2757
  /* @__PURE__ */ n.jsx(Tn, { infoList: l }),
2758
- /* @__PURE__ */ n.jsx(En, { assistHint: m, buttonsConfig: a, bottomDescription: t })
2759
- ] }), On = (e) => {
2760
- switch (e) {
2758
+ /* @__PURE__ */ n.jsx(En, { assistHint: m, buttonsConfig: a, bottomDescription: e })
2759
+ ] }), Fn = 2e4, st = ({
2760
+ slidersGroupConfig: t,
2761
+ additionalSliderGroupConfig: e
2762
+ }) => {
2763
+ const [r, o] = L(!1), { watch: i, setValue: a } = ke(), l = t == null ? void 0 : t.fields.find(({ args: R }) => R.name === "sum"), { args: u } = l || {}, { max: m, name: x, defaultValue: p } = u || {}, c = i(x), { min: b, name: s } = (e == null ? void 0 : e.args) ?? {}, N = i(s), k = Number(m ?? 0) - (c ?? p);
2764
+ return be(() => {
2765
+ N > k && a(s, k);
2766
+ }, [k, N, a, c]), be(() => {
2767
+ Number(m) === c && o(!1);
2768
+ }, [o, m, c]), {
2769
+ sliderVisible: r,
2770
+ setSliderVisible: o,
2771
+ sumMax: m,
2772
+ sumName: x,
2773
+ sumDefaultValue: p,
2774
+ sumValue: c,
2775
+ additionalSliderMax: k,
2776
+ onCheckedChange: () => {
2777
+ o((R) => !R), Number(m) === c && (a(x ?? "", c - Fn), a(s, b));
2778
+ },
2779
+ sliderSumExist: !g.isObjectEmpty(l == null ? void 0 : l.args),
2780
+ sliderSumCorrectType: (l == null ? void 0 : l.args.componentType) === "algorithmic" || (l == null ? void 0 : l.args.componentType) === "step"
2781
+ };
2782
+ }, Sn = (t) => {
2783
+ switch (t) {
2761
2784
  case "content1":
2762
2785
  return /* @__PURE__ */ n.jsx("div", { children: "content 1" });
2763
2786
  case "content2":
2764
2787
  return /* @__PURE__ */ n.jsx("div", { children: "content 2" });
2765
2788
  }
2766
- }, Sn = ({ triggerText: e, modalTitle: t, description: r, contentVariant: o }) => {
2767
- const [i, a] = Ue(!1);
2789
+ }, Bn = ({ triggerText: t, modalTitle: e, description: r, contentVariant: o }) => {
2790
+ const [i, a] = Ut(!1);
2768
2791
  return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4 rounded-sm bg-color-blue-grey-100 p-4", children: [
2769
2792
  r && /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-tetriary", children: r }),
2770
2793
  /* @__PURE__ */ n.jsx(
@@ -2772,54 +2795,93 @@ const on = (e, t) => {
2772
2795
  {
2773
2796
  onClick: () => a(!0),
2774
2797
  className: "desk-body-regular-l w-max cursor-pointer text-color-primary-default underline underline-offset-4",
2775
- children: e
2798
+ children: t
2776
2799
  }
2777
2800
  ),
2778
- /* @__PURE__ */ n.jsx(Re, { title: t, isModalOpen: i, closeModal: () => a(!1), children: On(o) })
2801
+ /* @__PURE__ */ n.jsx(Ht, { title: e, isModalOpen: i, closeModal: () => a(!1), children: Sn(o) })
2802
+ ] });
2803
+ }, Y = ({ fields: t }) => {
2804
+ const { control: e } = ke();
2805
+ return /* @__PURE__ */ n.jsx(ct, { control: e, fields: t });
2806
+ }, Rn = ({
2807
+ slidersGroupConfig: t,
2808
+ additionalSliderGroupConfig: e
2809
+ }) => {
2810
+ const { control: r } = ke(), { sliderVisible: o, additionalSliderMax: i, onCheckedChange: a } = st({
2811
+ slidersGroupConfig: t,
2812
+ additionalSliderGroupConfig: e
2813
+ });
2814
+ return g.isNil(e == null ? void 0 : e.args) || !(e != null && e.args) ? null : /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-4", children: [
2815
+ /* @__PURE__ */ n.jsxs("div", { className: "inline-flex items-center gap-2", children: [
2816
+ /* @__PURE__ */ n.jsx(Oe.SwitchBase, { checked: o, onCheckedChange: a }),
2817
+ /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l", children: "Хочу получить деньги дополнительно" })
2818
+ ] }),
2819
+ o && /* @__PURE__ */ n.jsx(
2820
+ tt.SliderControl,
2821
+ {
2822
+ ...e.args,
2823
+ control: r,
2824
+ componentType: "algorithmic",
2825
+ suffix: "currency",
2826
+ defaultValue: e == null ? void 0 : e.args.min,
2827
+ max: i
2828
+ }
2829
+ )
2779
2830
  ] });
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(
2831
+ }, _n = ({ modalConfig: t, fieldsGroup: e }) => {
2832
+ var i;
2833
+ const { sliderSumExist: r, sliderSumCorrectType: o } = st({
2834
+ slidersGroupConfig: e.slidersGroupConfig,
2835
+ additionalSliderGroupConfig: e.additionalSliderGroupConfig
2836
+ });
2837
+ return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-1 flex-col gap-8", children: [
2838
+ t && /* @__PURE__ */ n.jsx(Bn, { ...t }),
2839
+ (e == null ? void 0 : e.selectGroupConfig) && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.selectGroupConfig }) }),
2840
+ (e == null ? void 0 : e.slidersGroupConfig) && /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.slidersGroupConfig }),
2841
+ (e == null ? void 0 : e.radioGroupTabConfig) && /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.radioGroupTabConfig }),
2842
+ (e == null ? void 0 : e.checkboxGroupConfig) && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.checkboxGroupConfig }) }),
2843
+ (e == null ? void 0 : e.radioGroupConfig) && /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.radioGroupConfig }),
2844
+ (e == null ? void 0 : e.radioGroupCardConfig) && /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.radioGroupCardConfig }),
2845
+ (e == null ? void 0 : e.switchGroupConfig) && /* @__PURE__ */ n.jsx("div", { className: "flex flex-col gap-4", children: /* @__PURE__ */ n.jsx(Y, { ...e == null ? void 0 : e.switchGroupConfig }) }),
2846
+ ((i = e.additionalSliderGroupConfig) == null ? void 0 : i.args.enabled) && e.slidersGroupConfig && e.additionalSliderGroupConfig && r && o && /* @__PURE__ */ n.jsx(
2847
+ Rn,
2848
+ {
2849
+ slidersGroupConfig: e.slidersGroupConfig,
2850
+ additionalSliderGroupConfig: e.additionalSliderGroupConfig
2851
+ }
2852
+ )
2853
+ ] });
2854
+ }, Hn = Be(({ calculatorTabs: t, activeCalculator: e, setActiveCalculator: r }) => /* @__PURE__ */ n.jsx("div", { className: "mb-8 flex items-center gap-4", children: t == null ? void 0 : t.map(({ name: o, label: i }) => /* @__PURE__ */ n.jsx(
2793
2855
  "button",
2794
2856
  {
2795
2857
  onClick: () => r(o),
2796
2858
  className: d(
2797
2859
  "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",
2798
- { "bg-icon-primary-default text-color-white": t === o }
2860
+ { "bg-icon-primary-default text-color-white": e === o }
2799
2861
  ),
2800
2862
  children: i
2801
2863
  },
2802
2864
  o
2803
- )) })), _n = ({
2804
- calculatorInfoConfig: e,
2805
- calculatorFieldsConfig: t
2865
+ )) })), Dn = ({
2866
+ calculatorInfoConfig: t,
2867
+ calculatorFieldsConfig: e
2806
2868
  }) => {
2807
- const r = kn(t == null ? void 0 : t.fieldsGroup), o = ne({
2869
+ const r = kn(e == null ? void 0 : e.fieldsGroup), o = it({
2808
2870
  schema: r,
2809
2871
  mode: "onBlur",
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 })
2872
+ defaultValues: dt.getZodDefaults(r)
2873
+ }), i = o.watch(), { rootValue: a } = t, l = bt(a) ? jt(a.formula, i) : a, u = { ...t, rootValue: l };
2874
+ return /* @__PURE__ */ n.jsx(At, { ...o, children: /* @__PURE__ */ n.jsxs("div", { className: "flex items-start gap-16", children: [
2875
+ /* @__PURE__ */ n.jsx(_n, { ...e }),
2876
+ /* @__PURE__ */ n.jsx(On, { ...u })
2815
2877
  ] }) });
2816
- }, io = ({ calculators: e, headline: t }) => {
2878
+ }, lo = ({ calculators: t, headline: e }) => {
2817
2879
  var m;
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 }),
2880
+ const r = t.length > 1, [o, i] = L(r ? (m = t[0]) == null ? void 0 : m.name : ""), a = se(() => t == null ? void 0 : t.map(({ name: x, label: p }) => ({ name: x, label: p })), [t]), l = r ? a == null ? void 0 : a.findIndex((x) => x.name === o) : 0, u = t[l];
2881
+ return /* @__PURE__ */ n.jsx("section", { id: j.calculator, children: /* @__PURE__ */ n.jsx(S, { children: /* @__PURE__ */ n.jsxs("div", { className: "rounded-md bg-color-white px-10 py-12 shadow-md", children: [
2882
+ /* @__PURE__ */ n.jsx(P, { className: "mb-12", as: "h2", children: e }),
2821
2883
  r && /* @__PURE__ */ n.jsx(
2822
- Rn,
2884
+ Hn,
2823
2885
  {
2824
2886
  calculatorTabs: a,
2825
2887
  activeCalculator: o,
@@ -2827,7 +2889,7 @@ const on = (e, t) => {
2827
2889
  }
2828
2890
  ),
2829
2891
  /* @__PURE__ */ n.jsx(
2830
- _n,
2892
+ Dn,
2831
2893
  {
2832
2894
  name: u.name,
2833
2895
  label: u.label,
@@ -2838,30 +2900,30 @@ const on = (e, t) => {
2838
2900
  ] }) }) });
2839
2901
  };
2840
2902
  export {
2841
- vt as Advantages,
2842
- Gn as AuthProvider,
2843
- Zn as Banner,
2844
- Qt as BannerWithSeparateImg,
2845
- Kn as Benefit,
2903
+ Ce as Advantages,
2904
+ to as AuthProvider,
2905
+ Yn as Banner,
2906
+ qe as BannerWithSeparateImg,
2907
+ Zn as Benefit,
2846
2908
  nn as Breadcrumbs,
2847
- $ as ButtonWithHandlers,
2848
- io as Calculator,
2849
- _n as CalculatorView,
2850
- ro as DynamicForm,
2851
- no as FallbacksView,
2852
- he as FieldMapper,
2853
- Xn as Footer,
2909
+ Z as ButtonWithHandlers,
2910
+ lo as Calculator,
2911
+ Dn as CalculatorView,
2912
+ oo as DynamicForm,
2913
+ io as FallbacksView,
2914
+ ct as FieldMapper,
2915
+ Jn as Footer,
2854
2916
  Xr as HTMLParser,
2855
- bt as HTMLRenderer,
2856
- $n as Header,
2857
- to as InterLinking,
2858
- Yn as LongBanner,
2859
- oo as SeoHeader,
2860
- Jn as Stepper,
2861
- eo as UsefulInfo,
2862
- Ye as WIDGET_LIST,
2863
- ue as getDynamicSchema,
2917
+ ge as HTMLRenderer,
2918
+ Xn as Header,
2919
+ ro as InterLinking,
2920
+ eo as LongBanner,
2921
+ ao as SeoHeader,
2922
+ Gn as Stepper,
2923
+ no as UsefulInfo,
2924
+ Jt as WIDGET_LIST,
2925
+ xt as getDynamicSchema,
2864
2926
  Gr as queryClient,
2865
- b as widgetIds
2927
+ j as widgetIds
2866
2928
  };
2867
2929
  //# sourceMappingURL=widget.js.map