@scbt-ecom/ui 0.61.3 → 0.61.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/widget.js CHANGED
@@ -3,43 +3,43 @@ var Tt = (e) => {
3
3
  throw TypeError(e);
4
4
  };
5
5
  var ae = (e, t, r) => t in e ? de(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
- var ot = (e, t, r) => ae(e, typeof t != "symbol" ? t + "" : t, r), gt = (e, t, r) => t.has(e) || Tt("Cannot " + r);
7
- var h = (e, t, r) => (gt(e, t, "read from private field"), r ? r.call(e) : t.get(e)), N = (e, t, r) => t.has(e) ? Tt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, i) => (gt(e, t, "write to private field"), i ? i.call(e, r) : t.set(e, r), r), z = (e, t, r) => (gt(e, t, "access private method"), r);
8
- var ht = (e, t, r, i) => ({
9
- set _(o) {
10
- y(e, t, o, r);
6
+ var it = (e, t, r) => ae(e, typeof t != "symbol" ? t + "" : t, r), gt = (e, t, r) => t.has(e) || Tt("Cannot " + r);
7
+ var h = (e, t, r) => (gt(e, t, "read from private field"), r ? r.call(e) : t.get(e)), C = (e, t, r) => t.has(e) ? Tt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, o) => (gt(e, t, "write to private field"), o ? o.call(e, r) : t.set(e, r), r), q = (e, t, r) => (gt(e, t, "access private method"), r);
8
+ var ht = (e, t, r, o) => ({
9
+ set _(i) {
10
+ y(e, t, i, r);
11
11
  },
12
12
  get _() {
13
- return h(e, t, i);
13
+ return h(e, t, o);
14
14
  }
15
15
  });
16
- import { S as Ut, w as Vt, Q as le, x as I, y as Et, z as ue, E as pe, F as It, G as P, J as he, M as me, T as xe, W as fe, X as Mt, Y as Ot, Z as ce, _ as St, $ as Ft, a0 as be, j as n, B as kt, c as M, R as _, l as Wt, r as ge, H as L, i as c, s as ct, p as je, L as ye, n as wt, A as rt, t as se, a1 as ke, q as we, U as Gt, m as vt, k as ve } from "./index-CeBEX-QQ.js";
17
- import { c as a, T as s } from "./typeGuards-Bhdr9KYW.js";
18
- import * as dt from "react";
19
- import { useCallback as Kt, useState as W, useMemo as Nt, createElement as $t, Fragment as Ne, useEffect as Zt, useRef as Ct, useReducer as Ce, memo as Xt } from "react";
20
- import { s as Te, c as bt, g as Bt, a as Ee } from "./uuid-2wKG15vy.js";
16
+ import { S as Ut, w as Vt, Q as le, x as I, y as Et, z as ue, E as pe, F as It, G as P, J as he, M as me, T as xe, W as fe, X as Mt, Y as Ot, Z as ce, _ as St, $ as Bt, a0 as be, j as n, B as wt, c as M, R as H, l as Wt, r as ge, H as L, i as c, s as ct, p as je, L as ye, n as vt, A as ot, t as ke, a1 as we, q as ve, U as Gt, m as Nt, k as Ne } from "./index-CeBEX-QQ.js";
17
+ import { c as a, T as k } from "./typeGuards-Bhdr9KYW.js";
18
+ import * as at from "react";
19
+ import { useCallback as Kt, useState as G, useMemo as st, createElement as $t, Fragment as se, useEffect as Zt, useRef as Ct, useReducer as Ce, memo as Xt } from "react";
20
+ import { s as Te, c as bt, g as Ft, a as Ee } from "./uuid-2wKG15vy.js";
21
21
  import { i as Jt } from "./isClient-C9aZtt2Q.js";
22
- import { a as G, c as Ie, b as Me } from "./useDebounce-QgEEiWs9.js";
22
+ import { a as K, c as Ie, b as Me } from "./useDebounce-QgEEiWs9.js";
23
23
  import { o as Oe } from "./utils-Cc0awqbk.js";
24
24
  import { z as Yt, Z as Se } from "./index-DGoeevV2.js";
25
- import { u as Fe } from "./useFieldsProgress-BXzIWmGP.js";
25
+ import { u as Be } from "./useFieldsProgress-BXzIWmGP.js";
26
26
  import { createPortal as te } from "react-dom";
27
- var B, Qt, Be = (Qt = class extends Ut {
27
+ var B, Qt, Fe = (Qt = class extends Ut {
28
28
  constructor(t = {}) {
29
29
  super();
30
- N(this, B);
30
+ C(this, B);
31
31
  this.config = t, y(this, B, /* @__PURE__ */ new Map());
32
32
  }
33
- build(t, r, i) {
34
- const o = r.queryKey, d = r.queryHash ?? Vt(o, r);
33
+ build(t, r, o) {
34
+ const i = r.queryKey, d = r.queryHash ?? Vt(i, r);
35
35
  let l = this.get(d);
36
36
  return l || (l = new le({
37
37
  client: t,
38
- queryKey: o,
38
+ queryKey: i,
39
39
  queryHash: d,
40
40
  options: t.defaultQueryOptions(r),
41
- state: i,
42
- defaultOptions: t.getQueryDefaults(o)
41
+ state: o,
42
+ defaultOptions: t.getQueryDefaults(i)
43
43
  }), this.add(l)), l;
44
44
  }
45
45
  add(t) {
@@ -68,12 +68,12 @@ var B, Qt, Be = (Qt = class extends Ut {
68
68
  find(t) {
69
69
  const r = { exact: !0, ...t };
70
70
  return this.getAll().find(
71
- (i) => Et(r, i)
71
+ (o) => Et(r, o)
72
72
  );
73
73
  }
74
74
  findAll(t = {}) {
75
75
  const r = this.getAll();
76
- return Object.keys(t).length > 0 ? r.filter((i) => Et(t, i)) : r;
76
+ return Object.keys(t).length > 0 ? r.filter((o) => Et(t, o)) : r;
77
77
  }
78
78
  notify(t) {
79
79
  I.batch(() => {
@@ -96,14 +96,14 @@ var B, Qt, Be = (Qt = class extends Ut {
96
96
  });
97
97
  });
98
98
  }
99
- }, B = new WeakMap(), Qt), R, T, Z, H, q, zt, Re = (zt = class extends ue {
99
+ }, B = new WeakMap(), Qt), F, E, J, R, A, zt, Re = (zt = class extends ue {
100
100
  constructor(t) {
101
101
  super();
102
- N(this, H);
103
- N(this, R);
104
- N(this, T);
105
- N(this, Z);
106
- this.mutationId = t.mutationId, y(this, T, t.mutationCache), y(this, R, []), this.state = t.state || He(), this.setOptions(t.options), this.scheduleGc();
102
+ C(this, R);
103
+ C(this, F);
104
+ C(this, E);
105
+ C(this, J);
106
+ this.mutationId = t.mutationId, y(this, E, t.mutationCache), y(this, F, []), this.state = t.state || He(), this.setOptions(t.options), this.scheduleGc();
107
107
  }
108
108
  setOptions(t) {
109
109
  this.options = t, this.updateGcTime(this.options.gcTime);
@@ -112,132 +112,132 @@ var B, Qt, Be = (Qt = class extends Ut {
112
112
  return this.options.meta;
113
113
  }
114
114
  addObserver(t) {
115
- h(this, R).includes(t) || (h(this, R).push(t), this.clearGcTimeout(), h(this, T).notify({
115
+ h(this, F).includes(t) || (h(this, F).push(t), this.clearGcTimeout(), h(this, E).notify({
116
116
  type: "observerAdded",
117
117
  mutation: this,
118
118
  observer: t
119
119
  }));
120
120
  }
121
121
  removeObserver(t) {
122
- y(this, R, h(this, R).filter((r) => r !== t)), this.scheduleGc(), h(this, T).notify({
122
+ y(this, F, h(this, F).filter((r) => r !== t)), this.scheduleGc(), h(this, E).notify({
123
123
  type: "observerRemoved",
124
124
  mutation: this,
125
125
  observer: t
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, F).length || (this.state.status === "pending" ? this.scheduleGc() : h(this, E).remove(this));
130
130
  }
131
131
  continue() {
132
132
  var t;
133
- return ((t = h(this, Z)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
133
+ return ((t = h(this, J)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
134
134
  this.execute(this.state.variables);
135
135
  }
136
136
  async execute(t) {
137
- var o, d, l, u, p, m, x, f, b, C, v, k, F, ut, nt, E, O, Q, K, pt;
138
- y(this, Z, pe({
137
+ var i, d, l, u, p, m, x, f, b, T, N, w, _, $, Q, s, O, z, Z, pt;
138
+ y(this, J, pe({
139
139
  fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
140
- onFail: (w, $) => {
141
- z(this, H, q).call(this, { type: "failed", failureCount: w, error: $ });
140
+ onFail: (v, X) => {
141
+ q(this, R, A).call(this, { type: "failed", failureCount: v, error: X });
142
142
  },
143
143
  onPause: () => {
144
- z(this, H, q).call(this, { type: "pause" });
144
+ q(this, R, A).call(this, { type: "pause" });
145
145
  },
146
146
  onContinue: () => {
147
- z(this, H, q).call(this, { type: "continue" });
147
+ q(this, R, A).call(this, { type: "continue" });
148
148
  },
149
149
  retry: this.options.retry ?? 0,
150
150
  retryDelay: this.options.retryDelay,
151
151
  networkMode: this.options.networkMode,
152
- canRun: () => h(this, T).canRun(this)
152
+ canRun: () => h(this, E).canRun(this)
153
153
  }));
154
- const r = this.state.status === "pending", i = !h(this, Z).canStart();
154
+ const r = this.state.status === "pending", o = !h(this, J).canStart();
155
155
  try {
156
156
  if (!r) {
157
- z(this, H, q).call(this, { type: "pending", variables: t, isPaused: i }), await ((d = (o = h(this, T).config).onMutate) == null ? void 0 : d.call(
158
- o,
157
+ q(this, R, A).call(this, { type: "pending", variables: t, isPaused: o }), await ((d = (i = h(this, E).config).onMutate) == null ? void 0 : d.call(
158
+ i,
159
159
  t,
160
160
  this
161
161
  ));
162
- const $ = await ((u = (l = this.options).onMutate) == null ? void 0 : u.call(l, t));
163
- $ !== this.state.context && z(this, H, q).call(this, {
162
+ const X = await ((u = (l = this.options).onMutate) == null ? void 0 : u.call(l, t));
163
+ X !== this.state.context && q(this, R, A).call(this, {
164
164
  type: "pending",
165
- context: $,
165
+ context: X,
166
166
  variables: t,
167
- isPaused: i
167
+ isPaused: o
168
168
  });
169
169
  }
170
- const w = await h(this, Z).start();
171
- return await ((m = (p = h(this, T).config).onSuccess) == null ? void 0 : m.call(
170
+ const v = await h(this, J).start();
171
+ return await ((m = (p = h(this, E).config).onSuccess) == null ? void 0 : m.call(
172
172
  p,
173
- w,
173
+ v,
174
174
  t,
175
175
  this.state.context,
176
176
  this
177
- )), await ((f = (x = this.options).onSuccess) == null ? void 0 : f.call(x, w, t, this.state.context)), await ((C = (b = h(this, T).config).onSettled) == null ? void 0 : C.call(
177
+ )), await ((f = (x = this.options).onSuccess) == null ? void 0 : f.call(x, v, t, this.state.context)), await ((T = (b = h(this, E).config).onSettled) == null ? void 0 : T.call(
178
178
  b,
179
- w,
179
+ v,
180
180
  null,
181
181
  this.state.variables,
182
182
  this.state.context,
183
183
  this
184
- )), await ((k = (v = this.options).onSettled) == null ? void 0 : k.call(v, w, null, t, this.state.context)), z(this, H, q).call(this, { type: "success", data: w }), w;
185
- } catch (w) {
184
+ )), await ((w = (N = this.options).onSettled) == null ? void 0 : w.call(N, v, null, t, this.state.context)), q(this, R, A).call(this, { type: "success", data: v }), v;
185
+ } catch (v) {
186
186
  try {
187
- throw await ((ut = (F = h(this, T).config).onError) == null ? void 0 : ut.call(
188
- F,
189
- w,
187
+ throw await (($ = (_ = h(this, E).config).onError) == null ? void 0 : $.call(
188
+ _,
189
+ v,
190
190
  t,
191
191
  this.state.context,
192
192
  this
193
- )), await ((E = (nt = this.options).onError) == null ? void 0 : E.call(
194
- nt,
195
- w,
193
+ )), await ((s = (Q = this.options).onError) == null ? void 0 : s.call(
194
+ Q,
195
+ v,
196
196
  t,
197
197
  this.state.context
198
- )), await ((Q = (O = h(this, T).config).onSettled) == null ? void 0 : Q.call(
198
+ )), await ((z = (O = h(this, E).config).onSettled) == null ? void 0 : z.call(
199
199
  O,
200
200
  void 0,
201
- w,
201
+ v,
202
202
  this.state.variables,
203
203
  this.state.context,
204
204
  this
205
- )), await ((pt = (K = this.options).onSettled) == null ? void 0 : pt.call(
206
- K,
205
+ )), await ((pt = (Z = this.options).onSettled) == null ? void 0 : pt.call(
206
+ Z,
207
207
  void 0,
208
- w,
208
+ v,
209
209
  t,
210
210
  this.state.context
211
- )), w;
211
+ )), v;
212
212
  } finally {
213
- z(this, H, q).call(this, { type: "error", error: w });
213
+ q(this, R, A).call(this, { type: "error", error: v });
214
214
  }
215
215
  } finally {
216
- h(this, T).runNext(this);
216
+ h(this, E).runNext(this);
217
217
  }
218
218
  }
219
- }, R = new WeakMap(), T = new WeakMap(), Z = new WeakMap(), H = new WeakSet(), q = function(t) {
220
- const r = (i) => {
219
+ }, F = new WeakMap(), E = new WeakMap(), J = new WeakMap(), R = new WeakSet(), A = function(t) {
220
+ const r = (o) => {
221
221
  switch (t.type) {
222
222
  case "failed":
223
223
  return {
224
- ...i,
224
+ ...o,
225
225
  failureCount: t.failureCount,
226
226
  failureReason: t.error
227
227
  };
228
228
  case "pause":
229
229
  return {
230
- ...i,
230
+ ...o,
231
231
  isPaused: !0
232
232
  };
233
233
  case "continue":
234
234
  return {
235
- ...i,
235
+ ...o,
236
236
  isPaused: !1
237
237
  };
238
238
  case "pending":
239
239
  return {
240
- ...i,
240
+ ...o,
241
241
  context: t.context,
242
242
  data: void 0,
243
243
  failureCount: 0,
@@ -250,7 +250,7 @@ var B, Qt, Be = (Qt = class extends Ut {
250
250
  };
251
251
  case "success":
252
252
  return {
253
- ...i,
253
+ ...o,
254
254
  data: t.data,
255
255
  failureCount: 0,
256
256
  failureReason: null,
@@ -260,10 +260,10 @@ var B, Qt, Be = (Qt = class extends Ut {
260
260
  };
261
261
  case "error":
262
262
  return {
263
- ...i,
263
+ ...o,
264
264
  data: void 0,
265
265
  error: t.error,
266
- failureCount: i.failureCount + 1,
266
+ failureCount: o.failureCount + 1,
267
267
  failureReason: t.error,
268
268
  isPaused: !1,
269
269
  status: "error"
@@ -271,9 +271,9 @@ var B, Qt, Be = (Qt = class extends Ut {
271
271
  }
272
272
  };
273
273
  this.state = r(this.state), I.batch(() => {
274
- h(this, R).forEach((i) => {
275
- i.onMutationUpdate(t);
276
- }), h(this, T).notify({
274
+ h(this, F).forEach((o) => {
275
+ o.onMutationUpdate(t);
276
+ }), h(this, E).notify({
277
277
  mutation: this,
278
278
  type: "updated",
279
279
  action: t
@@ -293,29 +293,29 @@ function He() {
293
293
  submittedAt: 0
294
294
  };
295
295
  }
296
- var D, S, lt, qt, _e = (qt = class extends Ut {
296
+ var D, S, ut, qt, _e = (qt = class extends Ut {
297
297
  constructor(t = {}) {
298
298
  super();
299
- N(this, D);
300
- N(this, S);
301
- N(this, lt);
302
- this.config = t, y(this, D, /* @__PURE__ */ new Set()), y(this, S, /* @__PURE__ */ new Map()), y(this, lt, 0);
299
+ C(this, D);
300
+ C(this, S);
301
+ C(this, ut);
302
+ this.config = t, y(this, D, /* @__PURE__ */ new Set()), y(this, S, /* @__PURE__ */ new Map()), y(this, ut, 0);
303
303
  }
304
- build(t, r, i) {
305
- const o = new Re({
304
+ build(t, r, o) {
305
+ const i = new Re({
306
306
  mutationCache: this,
307
- mutationId: ++ht(this, lt)._,
307
+ mutationId: ++ht(this, ut)._,
308
308
  options: t.defaultMutationOptions(r),
309
- state: i
309
+ state: o
310
310
  });
311
- return this.add(o), o;
311
+ return this.add(i), i;
312
312
  }
313
313
  add(t) {
314
314
  h(this, D).add(t);
315
315
  const r = mt(t);
316
316
  if (typeof r == "string") {
317
- const i = h(this, S).get(r);
318
- i ? i.push(t) : h(this, S).set(r, [t]);
317
+ const o = h(this, S).get(r);
318
+ o ? o.push(t) : h(this, S).set(r, [t]);
319
319
  }
320
320
  this.notify({ type: "added", mutation: t });
321
321
  }
@@ -323,12 +323,12 @@ var D, S, lt, qt, _e = (qt = class extends Ut {
323
323
  if (h(this, D).delete(t)) {
324
324
  const r = mt(t);
325
325
  if (typeof r == "string") {
326
- const i = h(this, S).get(r);
327
- if (i)
328
- if (i.length > 1) {
329
- const o = i.indexOf(t);
330
- o !== -1 && i.splice(o, 1);
331
- } else i[0] === t && h(this, S).delete(r);
326
+ const o = h(this, S).get(r);
327
+ if (o)
328
+ if (o.length > 1) {
329
+ const i = o.indexOf(t);
330
+ i !== -1 && o.splice(i, 1);
331
+ } else o[0] === t && h(this, S).delete(r);
332
332
  }
333
333
  }
334
334
  this.notify({ type: "removed", mutation: t });
@@ -336,19 +336,19 @@ var D, S, lt, qt, _e = (qt = class extends Ut {
336
336
  canRun(t) {
337
337
  const r = mt(t);
338
338
  if (typeof r == "string") {
339
- const i = h(this, S).get(r), o = i == null ? void 0 : i.find(
339
+ const o = h(this, S).get(r), i = o == null ? void 0 : o.find(
340
340
  (d) => d.state.status === "pending"
341
341
  );
342
- return !o || o === t;
342
+ return !i || i === t;
343
343
  } else
344
344
  return !0;
345
345
  }
346
346
  runNext(t) {
347
- var i;
347
+ var o;
348
348
  const r = mt(t);
349
349
  if (typeof r == "string") {
350
- const o = (i = h(this, S).get(r)) == null ? void 0 : i.find((d) => d !== t && d.state.isPaused);
351
- return (o == null ? void 0 : o.continue()) ?? Promise.resolve();
350
+ const i = (o = h(this, S).get(r)) == null ? void 0 : o.find((d) => d !== t && d.state.isPaused);
351
+ return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
352
352
  } else
353
353
  return Promise.resolve();
354
354
  }
@@ -365,7 +365,7 @@ var D, S, lt, qt, _e = (qt = class extends Ut {
365
365
  find(t) {
366
366
  const r = { exact: !0, ...t };
367
367
  return this.getAll().find(
368
- (i) => It(r, i)
368
+ (o) => It(r, o)
369
369
  );
370
370
  }
371
371
  findAll(t = {}) {
@@ -386,7 +386,7 @@ var D, S, lt, qt, _e = (qt = class extends Ut {
386
386
  )
387
387
  );
388
388
  }
389
- }, D = new WeakMap(), S = new WeakMap(), lt = new WeakMap(), qt);
389
+ }, D = new WeakMap(), S = new WeakMap(), ut = new WeakMap(), qt);
390
390
  function mt(e) {
391
391
  var t;
392
392
  return (t = e.options.scope) == null ? void 0 : t.id;
@@ -394,60 +394,60 @@ function mt(e) {
394
394
  function Rt(e) {
395
395
  return {
396
396
  onFetch: (t, r) => {
397
- var x, f, b, C, v;
398
- const i = t.options, o = (b = (f = (x = t.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : b.direction, d = ((C = t.state.data) == null ? void 0 : C.pages) || [], l = ((v = t.state.data) == null ? void 0 : v.pageParams) || [];
397
+ var x, f, b, T, N;
398
+ const o = t.options, i = (b = (f = (x = t.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : b.direction, d = ((T = t.state.data) == null ? void 0 : T.pages) || [], l = ((N = t.state.data) == null ? void 0 : N.pageParams) || [];
399
399
  let u = { pages: [], pageParams: [] }, p = 0;
400
400
  const m = async () => {
401
- let k = !1;
402
- const F = (E) => {
403
- Object.defineProperty(E, "signal", {
401
+ let w = !1;
402
+ const _ = (s) => {
403
+ Object.defineProperty(s, "signal", {
404
404
  enumerable: !0,
405
- get: () => (t.signal.aborted ? k = !0 : t.signal.addEventListener("abort", () => {
406
- k = !0;
405
+ get: () => (t.signal.aborted ? w = !0 : t.signal.addEventListener("abort", () => {
406
+ w = !0;
407
407
  }), t.signal)
408
408
  });
409
- }, ut = he(t.options, t.fetchOptions), nt = async (E, O, Q) => {
410
- if (k)
409
+ }, $ = he(t.options, t.fetchOptions), Q = async (s, O, z) => {
410
+ if (w)
411
411
  return Promise.reject();
412
- if (O == null && E.pages.length)
413
- return Promise.resolve(E);
414
- const K = {
412
+ if (O == null && s.pages.length)
413
+ return Promise.resolve(s);
414
+ const Z = {
415
415
  client: t.client,
416
416
  queryKey: t.queryKey,
417
417
  pageParam: O,
418
- direction: Q ? "backward" : "forward",
418
+ direction: z ? "backward" : "forward",
419
419
  meta: t.options.meta
420
420
  };
421
- F(K);
422
- const pt = await ut(
423
- K
424
- ), { maxPages: w } = t.options, $ = Q ? me : xe;
421
+ _(Z);
422
+ const pt = await $(
423
+ Z
424
+ ), { maxPages: v } = t.options, X = z ? me : xe;
425
425
  return {
426
- pages: $(E.pages, pt, w),
427
- pageParams: $(E.pageParams, O, w)
426
+ pages: X(s.pages, pt, v),
427
+ pageParams: X(s.pageParams, O, v)
428
428
  };
429
429
  };
430
- if (o && d.length) {
431
- const E = o === "backward", O = E ? Pe : Ht, Q = {
430
+ if (i && d.length) {
431
+ const s = i === "backward", O = s ? Pe : Ht, z = {
432
432
  pages: d,
433
433
  pageParams: l
434
- }, K = O(i, Q);
435
- u = await nt(Q, K, E);
434
+ }, Z = O(o, z);
435
+ u = await Q(z, Z, s);
436
436
  } else {
437
- const E = e ?? d.length;
437
+ const s = e ?? d.length;
438
438
  do {
439
- const O = p === 0 ? l[0] ?? i.initialPageParam : Ht(i, u);
439
+ const O = p === 0 ? l[0] ?? o.initialPageParam : Ht(o, u);
440
440
  if (p > 0 && O == null)
441
441
  break;
442
- u = await nt(u, O), p++;
443
- } while (p < E);
442
+ u = await Q(u, O), p++;
443
+ } while (p < s);
444
444
  }
445
445
  return u;
446
446
  };
447
447
  t.options.persister ? t.fetchFn = () => {
448
- var k, F;
449
- return (F = (k = t.options).persister) == null ? void 0 : F.call(
450
- k,
448
+ var w, _;
449
+ return (_ = (w = t.options).persister) == null ? void 0 : _.call(
450
+ w,
451
451
  m,
452
452
  {
453
453
  client: t.client,
@@ -462,46 +462,46 @@ function Rt(e) {
462
462
  };
463
463
  }
464
464
  function Ht(e, { pages: t, pageParams: r }) {
465
- const i = t.length - 1;
465
+ const o = t.length - 1;
466
466
  return t.length > 0 ? e.getNextPageParam(
467
- t[i],
467
+ t[o],
468
468
  t,
469
- r[i],
469
+ r[o],
470
470
  r
471
471
  ) : void 0;
472
472
  }
473
473
  function Pe(e, { pages: t, pageParams: r }) {
474
- var i;
475
- return t.length > 0 ? (i = e.getPreviousPageParam) == null ? void 0 : i.call(e, t[0], t, r[0], r) : void 0;
474
+ var o;
475
+ return t.length > 0 ? (o = e.getPreviousPageParam) == null ? void 0 : o.call(e, t[0], t, r[0], r) : void 0;
476
476
  }
477
- var g, A, U, J, Y, V, tt, et, At, De = (At = class {
477
+ var g, U, V, tt, et, W, rt, nt, At, De = (At = class {
478
478
  constructor(e = {}) {
479
- N(this, g);
480
- N(this, A);
481
- N(this, U);
482
- N(this, J);
483
- N(this, Y);
484
- N(this, V);
485
- N(this, tt);
486
- N(this, et);
487
- y(this, g, e.queryCache || new Be()), y(this, A, e.mutationCache || new _e()), y(this, U, e.defaultOptions || {}), y(this, J, /* @__PURE__ */ new Map()), y(this, Y, /* @__PURE__ */ new Map()), y(this, V, 0);
479
+ C(this, g);
480
+ C(this, U);
481
+ C(this, V);
482
+ C(this, tt);
483
+ C(this, et);
484
+ C(this, W);
485
+ C(this, rt);
486
+ C(this, nt);
487
+ y(this, g, e.queryCache || new Fe()), y(this, U, e.mutationCache || new _e()), y(this, V, e.defaultOptions || {}), y(this, tt, /* @__PURE__ */ new Map()), y(this, et, /* @__PURE__ */ new Map()), y(this, W, 0);
488
488
  }
489
489
  mount() {
490
- ht(this, V)._++, h(this, V) === 1 && (y(this, tt, fe.subscribe(async (e) => {
490
+ ht(this, W)._++, h(this, W) === 1 && (y(this, rt, fe.subscribe(async (e) => {
491
491
  e && (await this.resumePausedMutations(), h(this, g).onFocus());
492
- })), y(this, et, Mt.subscribe(async (e) => {
492
+ })), y(this, nt, Mt.subscribe(async (e) => {
493
493
  e && (await this.resumePausedMutations(), h(this, g).onOnline());
494
494
  })));
495
495
  }
496
496
  unmount() {
497
497
  var e, t;
498
- ht(this, V)._--, h(this, V) === 0 && ((e = h(this, tt)) == null || e.call(this), y(this, tt, void 0), (t = h(this, et)) == null || t.call(this), y(this, et, void 0));
498
+ ht(this, W)._--, h(this, W) === 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));
499
499
  }
500
500
  isFetching(e) {
501
501
  return h(this, g).findAll({ ...e, fetchStatus: "fetching" }).length;
502
502
  }
503
503
  isMutating(e) {
504
- return h(this, A).findAll({ ...e, status: "pending" }).length;
504
+ return h(this, U).findAll({ ...e, status: "pending" }).length;
505
505
  }
506
506
  getQueryData(e) {
507
507
  var r;
@@ -509,27 +509,27 @@ var g, A, U, J, Y, V, tt, et, At, De = (At = class {
509
509
  return (r = h(this, g).get(t.queryHash)) == null ? void 0 : r.state.data;
510
510
  }
511
511
  ensureQueryData(e) {
512
- const t = this.defaultQueryOptions(e), r = h(this, g).build(this, t), i = r.state.data;
513
- return i === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(Ot(t.staleTime, r)) && this.prefetchQuery(t), Promise.resolve(i));
512
+ const t = this.defaultQueryOptions(e), r = h(this, g).build(this, t), o = r.state.data;
513
+ return o === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(Ot(t.staleTime, r)) && this.prefetchQuery(t), Promise.resolve(o));
514
514
  }
515
515
  getQueriesData(e) {
516
516
  return h(this, g).findAll(e).map(({ queryKey: t, state: r }) => {
517
- const i = r.data;
518
- return [t, i];
517
+ const o = r.data;
518
+ return [t, o];
519
519
  });
520
520
  }
521
521
  setQueryData(e, t, r) {
522
- const i = this.defaultQueryOptions({ queryKey: e }), o = h(this, g).get(
523
- i.queryHash
524
- ), d = o == null ? void 0 : o.state.data, l = ce(t, d);
522
+ const o = this.defaultQueryOptions({ queryKey: e }), i = h(this, g).get(
523
+ o.queryHash
524
+ ), d = i == null ? void 0 : i.state.data, l = ce(t, d);
525
525
  if (l !== void 0)
526
- return h(this, g).build(this, i).setData(l, { ...r, manual: !0 });
526
+ return h(this, g).build(this, o).setData(l, { ...r, manual: !0 });
527
527
  }
528
528
  setQueriesData(e, t, r) {
529
529
  return I.batch(
530
- () => h(this, g).findAll(e).map(({ queryKey: i }) => [
531
- i,
532
- this.setQueryData(i, t, r)
530
+ () => h(this, g).findAll(e).map(({ queryKey: o }) => [
531
+ o,
532
+ this.setQueryData(o, t, r)
533
533
  ])
534
534
  );
535
535
  }
@@ -550,8 +550,8 @@ var g, A, U, J, Y, V, tt, et, At, De = (At = class {
550
550
  }
551
551
  resetQueries(e, t) {
552
552
  const r = h(this, g);
553
- return I.batch(() => (r.findAll(e).forEach((i) => {
554
- i.reset();
553
+ return I.batch(() => (r.findAll(e).forEach((o) => {
554
+ o.reset();
555
555
  }), this.refetchQueries(
556
556
  {
557
557
  type: "active",
@@ -561,10 +561,10 @@ var g, A, U, J, Y, V, tt, et, At, De = (At = class {
561
561
  )));
562
562
  }
563
563
  cancelQueries(e, t = {}) {
564
- const r = { revert: !0, ...t }, i = I.batch(
565
- () => h(this, g).findAll(e).map((o) => o.cancel(r))
564
+ const r = { revert: !0, ...t }, o = I.batch(
565
+ () => h(this, g).findAll(e).map((i) => i.cancel(r))
566
566
  );
567
- return Promise.all(i).then(P).catch(P);
567
+ return Promise.all(o).then(P).catch(P);
568
568
  }
569
569
  invalidateQueries(e, t = {}) {
570
570
  return I.batch(() => (h(this, g).findAll(e).forEach((r) => {
@@ -581,13 +581,13 @@ var g, A, U, J, Y, V, tt, et, At, De = (At = class {
581
581
  const r = {
582
582
  ...t,
583
583
  cancelRefetch: t.cancelRefetch ?? !0
584
- }, i = I.batch(
585
- () => h(this, g).findAll(e).filter((o) => !o.isDisabled()).map((o) => {
586
- let d = o.fetch(void 0, r);
587
- return r.throwOnError || (d = d.catch(P)), o.state.fetchStatus === "paused" ? Promise.resolve() : d;
584
+ }, o = I.batch(
585
+ () => h(this, g).findAll(e).filter((i) => !i.isDisabled()).map((i) => {
586
+ let d = i.fetch(void 0, r);
587
+ return r.throwOnError || (d = d.catch(P)), i.state.fetchStatus === "paused" ? Promise.resolve() : d;
588
588
  })
589
589
  );
590
- return Promise.all(i).then(P);
590
+ return Promise.all(o).then(P);
591
591
  }
592
592
  fetchQuery(e) {
593
593
  const t = this.defaultQueryOptions(e);
@@ -610,49 +610,49 @@ var g, A, U, J, Y, V, tt, et, At, De = (At = class {
610
610
  return e.behavior = Rt(e.pages), this.ensureQueryData(e);
611
611
  }
612
612
  resumePausedMutations() {
613
- return Mt.isOnline() ? h(this, A).resumePausedMutations() : Promise.resolve();
613
+ return Mt.isOnline() ? h(this, U).resumePausedMutations() : Promise.resolve();
614
614
  }
615
615
  getQueryCache() {
616
616
  return h(this, g);
617
617
  }
618
618
  getMutationCache() {
619
- return h(this, A);
619
+ return h(this, U);
620
620
  }
621
621
  getDefaultOptions() {
622
- return h(this, U);
622
+ return h(this, V);
623
623
  }
624
624
  setDefaultOptions(e) {
625
- y(this, U, e);
625
+ y(this, V, e);
626
626
  }
627
627
  setQueryDefaults(e, t) {
628
- h(this, J).set(St(e), {
628
+ h(this, tt).set(St(e), {
629
629
  queryKey: e,
630
630
  defaultOptions: t
631
631
  });
632
632
  }
633
633
  getQueryDefaults(e) {
634
- const t = [...h(this, J).values()], r = {};
635
- return t.forEach((i) => {
636
- Ft(e, i.queryKey) && Object.assign(r, i.defaultOptions);
634
+ const t = [...h(this, tt).values()], r = {};
635
+ return t.forEach((o) => {
636
+ Bt(e, o.queryKey) && Object.assign(r, o.defaultOptions);
637
637
  }), r;
638
638
  }
639
639
  setMutationDefaults(e, t) {
640
- h(this, Y).set(St(e), {
640
+ h(this, et).set(St(e), {
641
641
  mutationKey: e,
642
642
  defaultOptions: t
643
643
  });
644
644
  }
645
645
  getMutationDefaults(e) {
646
- const t = [...h(this, Y).values()], r = {};
647
- return t.forEach((i) => {
648
- Ft(e, i.mutationKey) && Object.assign(r, i.defaultOptions);
646
+ const t = [...h(this, et).values()], r = {};
647
+ return t.forEach((o) => {
648
+ Bt(e, o.mutationKey) && Object.assign(r, o.defaultOptions);
649
649
  }), r;
650
650
  }
651
651
  defaultQueryOptions(e) {
652
652
  if (e._defaulted)
653
653
  return e;
654
654
  const t = {
655
- ...h(this, U).queries,
655
+ ...h(this, V).queries,
656
656
  ...this.getQueryDefaults(e.queryKey),
657
657
  ...e,
658
658
  _defaulted: !0
@@ -664,16 +664,16 @@ var g, A, U, J, Y, V, tt, et, At, De = (At = class {
664
664
  }
665
665
  defaultMutationOptions(e) {
666
666
  return e != null && e._defaulted ? e : {
667
- ...h(this, U).mutations,
667
+ ...h(this, V).mutations,
668
668
  ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
669
669
  ...e,
670
670
  _defaulted: !0
671
671
  };
672
672
  }
673
673
  clear() {
674
- h(this, g).clear(), h(this, A).clear();
674
+ h(this, g).clear(), h(this, U).clear();
675
675
  }
676
- }, g = new WeakMap(), A = new WeakMap(), U = new WeakMap(), J = new WeakMap(), Y = new WeakMap(), V = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), At);
676
+ }, g = new WeakMap(), U = new WeakMap(), V = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), W = new WeakMap(), rt = new WeakMap(), nt = new WeakMap(), At);
677
677
  const Le = [
678
678
  "header",
679
679
  "footer",
@@ -691,8 +691,8 @@ const Le = [
691
691
  ), Qe = (e) => Kt(() => {
692
692
  switch (e.handler) {
693
693
  case "navigate": {
694
- const { url: r, target: i, rel: o } = e;
695
- Jt && (window == null || window.open(r, i, o));
694
+ const { url: r, target: o, rel: i } = e;
695
+ Jt && (window == null || window.open(r, o, i));
696
696
  break;
697
697
  }
698
698
  case "scroll": {
@@ -701,9 +701,9 @@ const Le = [
701
701
  break;
702
702
  }
703
703
  }
704
- }, [e]), X = ({ handlerOptions: e, ...t }) => {
704
+ }, [e]), Y = ({ handlerOptions: e, ...t }) => {
705
705
  const r = Qe(e);
706
- return /* @__PURE__ */ n.jsx(kt, { onClick: r, ...t, children: t.children });
706
+ return /* @__PURE__ */ n.jsx(wt, { onClick: r, ...t, children: t.children });
707
707
  }, ze = M(
708
708
  "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",
709
709
  {
@@ -719,34 +719,34 @@ const Le = [
719
719
  subtitle: e,
720
720
  title: t,
721
721
  img: r,
722
- mobileImg: i,
723
- classes: o,
722
+ mobileImg: o,
723
+ classes: i,
724
724
  withButton: d,
725
725
  button: l,
726
726
  variant: u,
727
727
  color: p
728
728
  }) => {
729
- const { isDesktop: m } = G();
729
+ const { isDesktop: m } = K();
730
730
  return /* @__PURE__ */ n.jsxs(
731
731
  "li",
732
732
  {
733
733
  style: { backgroundColor: p ?? "#f4f8fe" },
734
- className: a(ze({ variant: u }), { "pb-0": i }, { "pb-12": !i }, o == null ? void 0 : o.root),
734
+ className: a(ze({ variant: u }), { "pb-0": o }, { "pb-12": !o }, i == null ? void 0 : i.root),
735
735
  children: [
736
- /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", o == null ? void 0 : o.wrapper), children: [
737
- /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-4", o == null ? void 0 : o.textContainer), children: [
738
- /* @__PURE__ */ n.jsx("div", { dangerouslySetInnerHTML: { __html: t }, className: a("desktop:desk-title-bold-s", o == null ? void 0 : o.title) }),
736
+ /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", i == null ? void 0 : i.wrapper), children: [
737
+ /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-4", i == null ? void 0 : i.textContainer), children: [
738
+ /* @__PURE__ */ n.jsx("div", { dangerouslySetInnerHTML: { __html: t }, className: a("desktop:desk-title-bold-s", i == null ? void 0 : i.title) }),
739
739
  /* @__PURE__ */ n.jsx(
740
740
  "div",
741
741
  {
742
742
  dangerouslySetInnerHTML: { __html: e },
743
- className: a("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l", o == null ? void 0 : o.subtitle)
743
+ className: a("mob-body-regular-l text-icon-blue-grey-800 desktop:desk-body-regular-l", i == null ? void 0 : i.subtitle)
744
744
  }
745
745
  )
746
746
  ] }),
747
- d && m && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ n.jsx(X, { intent: "primary", className: a("desktop:w-[200px]", o == null ? void 0 : o.button), size: "lg", ...l })
747
+ d && m && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ n.jsx(Y, { intent: "primary", className: a("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...l })
748
748
  ] }),
749
- (i || m) && r && /* @__PURE__ */ n.jsx("div", { className: a("flex w-full justify-end", o == null ? void 0 : o.imgContainer), children: r && "url" in r && s.isObject(r) ? /* @__PURE__ */ n.jsx("img", { className: a("h-[246px] object-cover", o == null ? void 0 : o.img), src: r.url, alt: t }) : r })
749
+ (o || m) && r && /* @__PURE__ */ n.jsx("div", { className: a("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: r && "url" in r && k.isObject(r) ? /* @__PURE__ */ n.jsx("img", { className: a("h-[246px] object-cover", i == null ? void 0 : i.img), src: r.url, alt: t }) : r })
750
750
  ]
751
751
  },
752
752
  t
@@ -759,33 +759,33 @@ const Le = [
759
759
  fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
760
760
  }
761
761
  }
762
- }), kn = ({ headline: e, details: t, variant: r, classes: i }) => /* @__PURE__ */ n.jsx("section", { id: j.benefit, "data-test-id": j.benefit, className: a("pb-20", i == null ? void 0 : i.root), children: /* @__PURE__ */ n.jsxs(_, { className: i == null ? void 0 : i.container, children: [
762
+ }), wn = ({ headline: e, details: t, variant: r, classes: o }) => /* @__PURE__ */ n.jsx("section", { id: j.benefit, "data-test-id": j.benefit, className: a("pb-20", o == null ? void 0 : o.root), children: /* @__PURE__ */ n.jsxs(H, { className: o == null ? void 0 : o.container, children: [
763
763
  /* @__PURE__ */ n.jsx(
764
764
  "div",
765
765
  {
766
766
  dangerouslySetInnerHTML: { __html: e },
767
- className: a("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", i == null ? void 0 : i.heading)
767
+ className: a("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", o == null ? void 0 : o.heading)
768
768
  }
769
769
  ),
770
- /* @__PURE__ */ n.jsx("ul", { className: a(Ae({ variant: r }), i == null ? void 0 : i.grid), children: t == null ? void 0 : t.map((o) => /* @__PURE__ */ n.jsx(qe, { variant: r, classes: i == null ? void 0 : i.item, ...o }, o.title)) })
770
+ /* @__PURE__ */ n.jsx("ul", { className: a(Ae({ variant: r }), o == null ? void 0 : o.grid), children: t == null ? void 0 : t.map((i) => /* @__PURE__ */ n.jsx(qe, { variant: r, classes: o == null ? void 0 : o.item, ...i }, i.title)) })
771
771
  ] }) }), Ue = ({ variant: e, details: t }) => {
772
772
  switch (e) {
773
773
  case "withButton":
774
- return /* @__PURE__ */ n.jsx(X, { ...t });
774
+ return /* @__PURE__ */ n.jsx(Y, { ...t });
775
775
  case "withPhone":
776
776
  return /* @__PURE__ */ n.jsx(Wt, { classes: { root: "items-end" }, ...t, phone: bt(t.phone) });
777
777
  default:
778
778
  return null;
779
779
  }
780
- }, wn = (e) => {
781
- const { logoPath: t = "/", logoType: r = "main", classes: i } = e;
780
+ }, vn = (e) => {
781
+ const { logoPath: t = "/", logoType: r = "main", classes: o } = e;
782
782
  return /* @__PURE__ */ n.jsx(
783
783
  "header",
784
784
  {
785
785
  id: j.header,
786
786
  "data-test-id": j.header,
787
- className: a("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", i == null ? void 0 : i.header),
788
- children: /* @__PURE__ */ n.jsx(_, { className: a(i == null ? void 0 : i.container), children: /* @__PURE__ */ n.jsxs("div", { className: a("flex items-center justify-between gap-5", i == null ? void 0 : i.wrapper), children: [
787
+ className: a("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", o == null ? void 0 : o.header),
788
+ children: /* @__PURE__ */ n.jsx(H, { className: a(o == null ? void 0 : o.container), children: /* @__PURE__ */ n.jsxs("div", { className: a("flex items-center justify-between gap-5", o == null ? void 0 : o.wrapper), children: [
789
789
  /* @__PURE__ */ n.jsx(
790
790
  "a",
791
791
  {
@@ -795,7 +795,7 @@ const Le = [
795
795
  rel: "noreferrer",
796
796
  className: a(
797
797
  "flex items-center justify-center [&_svg]:w-[132px] desktop:[&_svg]:h-[32px] desktop:[&_svg]:w-[192px]",
798
- i == null ? void 0 : i.logo
798
+ o == null ? void 0 : o.logo
799
799
  ),
800
800
  children: ge[r]
801
801
  }
@@ -808,21 +808,21 @@ const Le = [
808
808
  headTitle: e,
809
809
  subtitle: t,
810
810
  buttonsConfig: r,
811
- advantages: i,
812
- classes: o,
811
+ advantages: o,
812
+ classes: i,
813
813
  imgMobile: d,
814
814
  imgDesktop: l,
815
815
  color: u
816
816
  }) => {
817
- var k;
818
- const { isDesktop: p, isMobile: m } = G(), { primary: x, secondary: f } = r || {}, b = d && "url" in d && s.isObject(d) ? /* @__PURE__ */ n.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: d.url }) : d, C = 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(
817
+ var w;
818
+ const { isDesktop: p, isMobile: m } = K(), { primary: x, secondary: f } = r || {}, b = d && "url" in d && k.isObject(d) ? /* @__PURE__ */ n.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: d.url }) : d, T = l && "url" in l && k.isObject(l) ? /* @__PURE__ */ n.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: l.url }) : l, N = /* @__PURE__ */ n.jsx(
819
819
  "div",
820
820
  {
821
821
  className: a(
822
822
  "flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
823
- o == null ? void 0 : o.advantageContainer
823
+ i == null ? void 0 : i.advantageContainer
824
824
  ),
825
- children: (i == null ? void 0 : i.details) && ((k = i == null ? void 0 : i.details) == null ? void 0 : k.items.length) > 0 && /* @__PURE__ */ n.jsx(ee, { ...i })
825
+ children: (o == null ? void 0 : o.details) && ((w = o == null ? void 0 : o.details) == null ? void 0 : w.items.length) > 0 && /* @__PURE__ */ n.jsx(ee, { ...o })
826
826
  }
827
827
  );
828
828
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -832,24 +832,24 @@ const Le = [
832
832
  id: j.banner,
833
833
  "data-test-id": j.banner,
834
834
  style: { backgroundColor: u ?? "#d9edff" },
835
- className: a("relative h-[552px] desktop:h-[456px]", o == null ? void 0 : o.root),
835
+ className: a("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
836
836
  children: [
837
- /* @__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: m ? b : C }),
838
- /* @__PURE__ */ n.jsxs(_, { className: a("h-full", o == null ? void 0 : o.container), children: [
839
- /* @__PURE__ */ n.jsx("div", { className: a("flex h-full", o == null ? void 0 : o.wrapper), children: /* @__PURE__ */ n.jsxs("div", { className: a("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", o == null ? void 0 : o.textBlock), children: [
837
+ /* @__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: m ? b : T }),
838
+ /* @__PURE__ */ n.jsxs(H, { className: a("h-full", i == null ? void 0 : i.container), children: [
839
+ /* @__PURE__ */ n.jsx("div", { className: a("flex h-full", i == null ? void 0 : i.wrapper), children: /* @__PURE__ */ n.jsxs("div", { className: a("flex w-[328px] flex-col gap-10 pt-6 desktop:w-full desktop:pt-20", i == null ? void 0 : i.textBlock), children: [
840
840
  /* @__PURE__ */ n.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
841
841
  /* @__PURE__ */ n.jsx(
842
842
  "div",
843
843
  {
844
844
  dangerouslySetInnerHTML: { __html: e },
845
- className: a("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", o == null ? void 0 : o.title)
845
+ className: a("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
846
846
  }
847
847
  ),
848
848
  /* @__PURE__ */ n.jsx(
849
849
  "div",
850
850
  {
851
851
  dangerouslySetInnerHTML: { __html: t },
852
- className: a("desk-body-regular-l text-color-dark", o == null ? void 0 : o.subtitle)
852
+ className: a("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
853
853
  }
854
854
  )
855
855
  ] }),
@@ -859,23 +859,23 @@ const Le = [
859
859
  className: a(
860
860
  "grid-buttons-apply absolute bottom-6 left-1/2 flex w-full -translate-x-1/2 flex-col self-end justify-self-center px-4 desktop:static desktop:left-auto desktop:max-w-full desktop:translate-x-0 desktop:flex-row desktop:justify-normal desktop:self-center desktop:px-0",
861
861
  { "flex items-center gap-4": f == null ? void 0 : f.enabled },
862
- o == null ? void 0 : o.group
862
+ i == null ? void 0 : i.group
863
863
  ),
864
864
  children: [
865
865
  x.enabled && /* @__PURE__ */ n.jsx(
866
- X,
866
+ Y,
867
867
  {
868
- className: a("w-full desktop:max-w-[216px]", o == null ? void 0 : o.primary),
868
+ className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
869
869
  size: "lg",
870
870
  intent: "primary",
871
871
  ...x.buttonContent
872
872
  }
873
873
  ),
874
874
  (f == null ? void 0 : f.enabled) && /* @__PURE__ */ n.jsx(
875
- X,
875
+ Y,
876
876
  {
877
877
  intent: "secondary",
878
- className: a("w-full desktop:max-w-[216px]", o == null ? void 0 : o.secondary),
878
+ className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
879
879
  ...x.buttonContent
880
880
  }
881
881
  )
@@ -883,32 +883,32 @@ const Le = [
883
883
  }
884
884
  )
885
885
  ] }) }),
886
- p && (i == null ? void 0 : i.enabled) && v
886
+ p && (o == null ? void 0 : o.enabled) && N
887
887
  ] })
888
888
  ]
889
889
  }
890
890
  ),
891
- m && (i == null ? void 0 : i.enabled) && v
891
+ m && (o == null ? void 0 : o.enabled) && N
892
892
  ] });
893
893
  }, _t = ({
894
894
  headTitle: e,
895
895
  subtitle: t,
896
896
  buttonsConfig: r,
897
- advantages: i,
898
- classes: o,
897
+ advantages: o,
898
+ classes: i,
899
899
  imgMobile: d,
900
900
  imgDesktop: l,
901
901
  color: u
902
902
  }) => {
903
- var k;
904
- const { isDesktop: p, isMobile: m } = G(), { primary: x, secondary: f } = r || {}, b = d && "url" in d && s.isObject(d) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: d.url }) : d, C = l && "url" in l && s.isObject(l) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: l.url }) : l, v = /* @__PURE__ */ n.jsx(
903
+ var w;
904
+ const { isDesktop: p, isMobile: m } = K(), { primary: x, secondary: f } = r || {}, b = d && "url" in d && k.isObject(d) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: d.url }) : d, T = l && "url" in l && k.isObject(l) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: l.url }) : l, N = /* @__PURE__ */ n.jsx(
905
905
  "div",
906
906
  {
907
907
  className: a(
908
908
  "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:translate-x-1/2 desktop:p-0",
909
- o == null ? void 0 : o.advantageContainer
909
+ i == null ? void 0 : i.advantageContainer
910
910
  ),
911
- children: (i == null ? void 0 : i.details) && ((k = i == null ? void 0 : i.details) == null ? void 0 : k.items.length) > 0 && /* @__PURE__ */ n.jsx(ee, { ...i })
911
+ children: (o == null ? void 0 : o.details) && ((w = o == null ? void 0 : o.details) == null ? void 0 : w.items.length) > 0 && /* @__PURE__ */ n.jsx(ee, { ...o })
912
912
  }
913
913
  );
914
914
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -918,23 +918,23 @@ const Le = [
918
918
  id: j.banner,
919
919
  "data-test-id": j.banner,
920
920
  style: { backgroundColor: u ?? "#d9edff" },
921
- className: a("bg-banner-skyblue-300 desktop:h-[456px]", o == null ? void 0 : o.root),
922
- children: /* @__PURE__ */ n.jsxs(_, { className: a("relative", o == null ? void 0 : o.container), children: [
923
- /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col desktop:flex-row desktop:justify-between", o == null ? void 0 : o.wrapper), children: [
921
+ className: a("bg-banner-skyblue-300 desktop:h-[456px]", i == null ? void 0 : i.root),
922
+ children: /* @__PURE__ */ n.jsxs(H, { className: a("relative", i == null ? void 0 : i.container), children: [
923
+ /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col desktop:flex-row desktop:justify-between", i == null ? void 0 : i.wrapper), children: [
924
924
  /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
925
- /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-4 pt-6 desktop:pt-0", o == null ? void 0 : o.textBlock), children: [
925
+ /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-4 pt-6 desktop:pt-0", i == null ? void 0 : i.textBlock), children: [
926
926
  /* @__PURE__ */ n.jsx(
927
927
  "div",
928
928
  {
929
929
  dangerouslySetInnerHTML: { __html: e },
930
- className: a("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", o == null ? void 0 : o.title)
930
+ className: a("mob-headline-bold-m text-color-dark desktop:desk-headline-bold-l", i == null ? void 0 : i.title)
931
931
  }
932
932
  ),
933
933
  /* @__PURE__ */ n.jsx(
934
934
  "div",
935
935
  {
936
936
  dangerouslySetInnerHTML: { __html: t },
937
- className: a("desk-body-regular-l text-color-dark", o == null ? void 0 : o.subtitle)
937
+ className: a("desk-body-regular-l text-color-dark", i == null ? void 0 : i.subtitle)
938
938
  }
939
939
  )
940
940
  ] }),
@@ -944,23 +944,23 @@ const Le = [
944
944
  className: a(
945
945
  "grid-buttons-apply absolute bottom-6 left-1/2 flex w-full -translate-x-1/2 flex-col justify-self-center px-4 desktop:static desktop:left-auto desktop:max-w-full desktop:translate-x-0 desktop:flex-row desktop:justify-normal desktop:px-0",
946
946
  { "flex items-center gap-4": f == null ? void 0 : f.enabled },
947
- o == null ? void 0 : o.group
947
+ i == null ? void 0 : i.group
948
948
  ),
949
949
  children: [
950
950
  x.enabled && /* @__PURE__ */ n.jsx(
951
- X,
951
+ Y,
952
952
  {
953
- className: a("w-full desktop:max-w-[216px]", o == null ? void 0 : o.primary),
953
+ className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
954
954
  size: "lg",
955
955
  intent: "primary",
956
956
  ...x.buttonContent
957
957
  }
958
958
  ),
959
959
  (f == null ? void 0 : f.enabled) && /* @__PURE__ */ n.jsx(
960
- X,
960
+ Y,
961
961
  {
962
962
  intent: "secondary",
963
- className: a("w-full desktop:max-w-[216px]", o == null ? void 0 : o.secondary),
963
+ className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
964
964
  ...x.buttonContent
965
965
  }
966
966
  )
@@ -968,15 +968,15 @@ const Le = [
968
968
  }
969
969
  )
970
970
  ] }),
971
- /* @__PURE__ */ n.jsx("div", { className: a("flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]", o == null ? void 0 : o.imageContainer), children: m ? b : C })
971
+ /* @__PURE__ */ n.jsx("div", { className: a("flex h-[356px] justify-center desktop:h-[456px] desktop:w-[550px]", i == null ? void 0 : i.imageContainer), children: m ? b : T })
972
972
  ] }),
973
- p && (i == null ? void 0 : i.enabled) && v
973
+ p && (o == null ? void 0 : o.enabled) && N
974
974
  ] })
975
975
  }
976
976
  ),
977
- m && (i == null ? void 0 : i.enabled) && v
977
+ m && (o == null ? void 0 : o.enabled) && N
978
978
  ] });
979
- }, vn = ({ variant: e, ...t }) => {
979
+ }, Nn = ({ variant: e, ...t }) => {
980
980
  switch (e) {
981
981
  case "separateImg":
982
982
  return /* @__PURE__ */ n.jsx(_t, { ...t });
@@ -986,7 +986,7 @@ const Le = [
986
986
  return /* @__PURE__ */ n.jsx(_t, { ...t });
987
987
  }
988
988
  }, ee = ({ details: e, classes: t }) => {
989
- const { variant: r, items: i } = e ?? {};
989
+ const { variant: r, items: o } = e ?? {};
990
990
  return /* @__PURE__ */ n.jsx(
991
991
  "div",
992
992
  {
@@ -997,7 +997,7 @@ const Le = [
997
997
  { "desktop:max-w-[1140px]": r === "fourCards" },
998
998
  t == null ? void 0 : t.root
999
999
  ),
1000
- children: i == null ? void 0 : i.map(({ title: o, description: d }) => /* @__PURE__ */ n.jsxs(
1000
+ children: o == null ? void 0 : o.map(({ title: i, description: d }) => /* @__PURE__ */ n.jsxs(
1001
1001
  "div",
1002
1002
  {
1003
1003
  className: a(
@@ -1005,28 +1005,28 @@ const Le = [
1005
1005
  t == null ? void 0 : t.item
1006
1006
  ),
1007
1007
  children: [
1008
- /* @__PURE__ */ n.jsx(L, { as: "h4", className: a("text-color-dark", t == null ? void 0 : t.title), children: o }),
1008
+ /* @__PURE__ */ n.jsx(L, { as: "h4", className: a("text-color-dark", t == null ? void 0 : t.title), children: i }),
1009
1009
  /* @__PURE__ */ n.jsx("p", { className: a("desk-body-regular-l text-color-secondary", t == null ? void 0 : t.description), children: d })
1010
1010
  ]
1011
1011
  },
1012
- o
1012
+ i
1013
1013
  ))
1014
1014
  }
1015
1015
  );
1016
- }, We = ({ socialsLinks: e, classes: t }) => /* @__PURE__ */ n.jsx("div", { className: a("mt-4 flex items-center gap-2 desktop:mt-6", t == null ? void 0 : t.socialRoot), children: e == null ? void 0 : e.map(({ iconName: r, href: i }) => /* @__PURE__ */ n.jsx(
1016
+ }, We = ({ socialsLinks: e, classes: t }) => /* @__PURE__ */ n.jsx("div", { className: a("mt-4 flex items-center gap-2 desktop:mt-6", t == null ? void 0 : t.socialRoot), children: e == null ? void 0 : e.map(({ iconName: r, href: o }) => /* @__PURE__ */ n.jsx(
1017
1017
  "a",
1018
1018
  {
1019
1019
  className: a("flex size-8 items-center justify-center rounded-full bg-[#52576a] p-2", t == null ? void 0 : t.socialLink),
1020
- href: i,
1020
+ href: o,
1021
1021
  "aria-label": r.replace("social/", ""),
1022
1022
  children: /* @__PURE__ */ n.jsx(c, { name: r, className: a("h-full w-full text-icon-white", t == null ? void 0 : t.socialIcon) })
1023
1023
  },
1024
- i
1025
- )) }), Ge = ({ phones: e, classes: t }) => /* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-4 desktop:items-end", t == null ? void 0 : t.phonesRoot), children: e == null ? void 0 : e.map(({ phone: r, text: i }) => /* @__PURE__ */ n.jsx(
1024
+ o
1025
+ )) }), Ge = ({ phones: e, classes: t }) => /* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-4 desktop:items-end", t == null ? void 0 : t.phonesRoot), children: e == null ? void 0 : e.map(({ phone: r, text: o }) => /* @__PURE__ */ n.jsx(
1026
1026
  Wt,
1027
1027
  {
1028
1028
  phone: bt(r),
1029
- text: i,
1029
+ text: o,
1030
1030
  classes: {
1031
1031
  root: a(t == null ? void 0 : t.phoneWrapper),
1032
1032
  text: a("text-color-footer", t == null ? void 0 : t.phoneText),
@@ -1042,9 +1042,9 @@ const Le = [
1042
1042
  e == null ? void 0 : e.navRoot
1043
1043
  ),
1044
1044
  children: t == null ? void 0 : t.map(
1045
- ({ column: r }) => r == null ? void 0 : r.map(({ groupLabel: i, links: o }) => /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-4", e == null ? void 0 : e.navGroup), children: [
1046
- /* @__PURE__ */ n.jsx("div", { className: a("desk-body-medium-l text-color-white", e == null ? void 0 : e.navLabel), children: i }),
1047
- /* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-1", e == null ? void 0 : e.navLinks), children: o == null ? void 0 : o.map(({ path: d, label: l }) => /* @__PURE__ */ n.jsx(
1045
+ ({ column: r }) => r == null ? void 0 : r.map(({ groupLabel: o, links: i }) => /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-4", e == null ? void 0 : e.navGroup), children: [
1046
+ /* @__PURE__ */ n.jsx("div", { className: a("desk-body-medium-l text-color-white", e == null ? void 0 : e.navLabel), children: o }),
1047
+ /* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-1", e == null ? void 0 : e.navLinks), children: i == null ? void 0 : i.map(({ path: d, label: l }) => /* @__PURE__ */ n.jsx(
1048
1048
  ct,
1049
1049
  {
1050
1050
  href: d,
@@ -1058,7 +1058,7 @@ const Le = [
1058
1058
  },
1059
1059
  l
1060
1060
  )) })
1061
- ] }, i))
1061
+ ] }, o))
1062
1062
  )
1063
1063
  }
1064
1064
  ), $e = ({ text: e, classes: t }) => /* @__PURE__ */ n.jsx(
@@ -1090,8 +1090,8 @@ const Le = [
1090
1090
  children: "Карта сайта"
1091
1091
  }
1092
1092
  ), Je = ({ text: e, classes: t }) => {
1093
- const [r, i] = dt.useState(!1), [o, d] = dt.useState(!1), l = dt.useRef(null);
1094
- return dt.useEffect(() => {
1093
+ const [r, o] = at.useState(!1), [i, d] = at.useState(!1), l = at.useRef(null);
1094
+ return at.useEffect(() => {
1095
1095
  const u = l.current;
1096
1096
  u && d(u.scrollHeight > u.clientHeight);
1097
1097
  }, []), /* @__PURE__ */ n.jsxs("div", { className: a("mt-8 flex flex-col gap-4", t == null ? void 0 : t.ligalRoot), children: [
@@ -1103,12 +1103,12 @@ const Le = [
1103
1103
  dangerouslySetInnerHTML: { __html: e }
1104
1104
  }
1105
1105
  ),
1106
- o && /* @__PURE__ */ n.jsx(
1106
+ i && /* @__PURE__ */ n.jsx(
1107
1107
  "div",
1108
1108
  {
1109
1109
  tabIndex: 0,
1110
1110
  role: "button",
1111
- onClick: () => i((u) => !u),
1111
+ onClick: () => o((u) => !u),
1112
1112
  className: a(
1113
1113
  "desk-body-regular-l w-max cursor-pointer font-medium text-color-footer transition-colors hover:text-color-white",
1114
1114
  t == null ? void 0 : t.ligalButton
@@ -1117,12 +1117,12 @@ const Le = [
1117
1117
  }
1118
1118
  )
1119
1119
  ] });
1120
- }, Nn = ({
1120
+ }, sn = ({
1121
1121
  socialsLinks: e,
1122
1122
  phones: t,
1123
1123
  ligal: r,
1124
- copyright: i,
1125
- classes: o,
1124
+ copyright: o,
1125
+ classes: i,
1126
1126
  details: d,
1127
1127
  siteMap: l = !0
1128
1128
  }) => /* @__PURE__ */ n.jsx(
@@ -1130,43 +1130,43 @@ const Le = [
1130
1130
  {
1131
1131
  id: j.footer,
1132
1132
  "data-test-id": j.footer,
1133
- className: a("w-full bg-color-footer py-8 desktop:py-10", o == null ? void 0 : o.root),
1134
- children: /* @__PURE__ */ n.jsx(_, { className: a(o == null ? void 0 : o.footerContainer), children: /* @__PURE__ */ n.jsxs("div", { className: a("mobile:pb-[176px]", o == null ? void 0 : o.footerWrapper), children: [
1133
+ className: a("w-full bg-color-footer py-8 desktop:py-10", i == null ? void 0 : i.root),
1134
+ children: /* @__PURE__ */ n.jsx(H, { className: a(i == null ? void 0 : i.footerContainer), children: /* @__PURE__ */ n.jsxs("div", { className: a("mobile:pb-[176px]", i == null ? void 0 : i.footerWrapper), children: [
1135
1135
  /* @__PURE__ */ n.jsxs(
1136
1136
  "div",
1137
1137
  {
1138
1138
  className: a(
1139
1139
  "flex flex-col items-start justify-between gap-4 border-b border-solid border-blue-grey-500 pb-6 desktop:flex-row desktop:gap-6 desktop:pb-8",
1140
- o == null ? void 0 : o.footerHead
1140
+ i == null ? void 0 : i.footerHead
1141
1141
  ),
1142
1142
  children: [
1143
- /* @__PURE__ */ n.jsxs("div", { className: a(o == null ? void 0 : o.footerSocialBlock), children: [
1144
- /* @__PURE__ */ n.jsx(Ze, { classes: o == null ? void 0 : o.footerLogo }),
1145
- e.enabled && /* @__PURE__ */ n.jsx(We, { socialsLinks: e.links, classes: o == null ? void 0 : o.socialLinks })
1143
+ /* @__PURE__ */ n.jsxs("div", { className: a(i == null ? void 0 : i.footerSocialBlock), children: [
1144
+ /* @__PURE__ */ n.jsx(Ze, { classes: i == null ? void 0 : i.footerLogo }),
1145
+ e.enabled && /* @__PURE__ */ n.jsx(We, { socialsLinks: e.links, classes: i == null ? void 0 : i.socialLinks })
1146
1146
  ] }),
1147
- t.enabled && /* @__PURE__ */ n.jsx(Ge, { phones: t.items, classes: o == null ? void 0 : o.phonesBlock })
1147
+ t.enabled && /* @__PURE__ */ n.jsx(Ge, { phones: t.items, classes: i == null ? void 0 : i.phonesBlock })
1148
1148
  ]
1149
1149
  }
1150
1150
  ),
1151
- !s.isArrayEmpty(d) && /* @__PURE__ */ n.jsx(Ke, { details: d, classes: o == null ? void 0 : o.navLinks }),
1151
+ !k.isArrayEmpty(d) && /* @__PURE__ */ n.jsx(Ke, { details: d, classes: i == null ? void 0 : i.navLinks }),
1152
1152
  r.enabled && /* @__PURE__ */ n.jsx(Je, { text: r.text }),
1153
1153
  /* @__PURE__ */ n.jsxs(
1154
1154
  "div",
1155
1155
  {
1156
1156
  className: a(
1157
1157
  "mt-6 flex flex-col-reverse items-start justify-between gap-4 desktop:mt-8 desktop:flex-row desktop:gap-6",
1158
- o == null ? void 0 : o.footerBottom
1158
+ i == null ? void 0 : i.footerBottom
1159
1159
  ),
1160
1160
  children: [
1161
- i.enabled && /* @__PURE__ */ n.jsx($e, { text: i.text, classes: o == null ? void 0 : o.copyright }),
1162
- l && /* @__PURE__ */ n.jsx(Xe, { classes: o == null ? void 0 : o.siteMap })
1161
+ o.enabled && /* @__PURE__ */ n.jsx($e, { text: o.text, classes: i == null ? void 0 : i.copyright }),
1162
+ l && /* @__PURE__ */ n.jsx(Xe, { classes: i == null ? void 0 : i.siteMap })
1163
1163
  ]
1164
1164
  }
1165
1165
  )
1166
1166
  ] }) })
1167
1167
  }
1168
- ), Ye = ({ classes: e, index: t, variant: r, title: i, description: o }) => {
1169
- const d = r === "withTitleAndDescription" && i;
1168
+ ), Ye = ({ classes: e, index: t, variant: r, title: o, description: i }) => {
1169
+ const d = r === "withTitleAndDescription" && o;
1170
1170
  return /* @__PURE__ */ n.jsxs(
1171
1171
  "div",
1172
1172
  {
@@ -1186,11 +1186,11 @@ const Le = [
1186
1186
  }
1187
1187
  ),
1188
1188
  /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-2"), children: [
1189
- d && /* @__PURE__ */ n.jsx(L, { as: "h4", className: a("text-color-dark", e == null ? void 0 : e.title), children: i }),
1189
+ d && /* @__PURE__ */ n.jsx(L, { as: "h4", className: a("text-color-dark", e == null ? void 0 : e.title), children: o }),
1190
1190
  /* @__PURE__ */ n.jsx(
1191
1191
  "div",
1192
1192
  {
1193
- dangerouslySetInnerHTML: { __html: o ?? "" },
1193
+ dangerouslySetInnerHTML: { __html: i ?? "" },
1194
1194
  className: a("desk-body-regular-l text-color-tetriary", e == null ? void 0 : e.description)
1195
1195
  }
1196
1196
  )
@@ -1198,16 +1198,16 @@ const Le = [
1198
1198
  ]
1199
1199
  }
1200
1200
  );
1201
- }, Cn = ({ headline: e, details: t, variant: r, classes: i }) => /* @__PURE__ */ n.jsx("section", { id: j.stepper, "data-test-id": j.stepper, className: i == null ? void 0 : i.root, children: /* @__PURE__ */ n.jsx(_, { className: i == null ? void 0 : i.container, children: /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-6 desktop:items-start desktop:gap-12", i == null ? void 0 : i.wrapper), children: [
1202
- /* @__PURE__ */ n.jsx(L, { as: "h2", className: a("text-color-dark", i == null ? void 0 : i.headline), children: e }),
1201
+ }, Cn = ({ headline: e, details: t, 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(H, { className: o == null ? void 0 : o.container, children: /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-6 desktop:items-start desktop:gap-12", o == null ? void 0 : o.wrapper), children: [
1202
+ /* @__PURE__ */ n.jsx(L, { as: "h2", className: a("text-color-dark", o == null ? void 0 : o.headline), children: e }),
1203
1203
  /* @__PURE__ */ n.jsx(
1204
1204
  "div",
1205
1205
  {
1206
1206
  className: a(
1207
1207
  "flex w-full flex-col items-start gap-6 desktop:flex-row desktop:items-start desktop:gap-12",
1208
- i == null ? void 0 : i.stepsWrapper
1208
+ o == null ? void 0 : o.stepsWrapper
1209
1209
  ),
1210
- children: t == null ? void 0 : t.map((o, d) => /* @__PURE__ */ n.jsx(Ye, { variant: r, ...o, index: d + 1, classes: i == null ? void 0 : i.step }, o.description))
1210
+ children: t == null ? void 0 : t.map((i, d) => /* @__PURE__ */ n.jsx(Ye, { variant: r, ...i, index: d + 1, classes: o == null ? void 0 : o.step }, i.description))
1211
1211
  }
1212
1212
  )
1213
1213
  ] }) }) }), tr = M("", {
@@ -1297,28 +1297,28 @@ const Le = [
1297
1297
  }), or = ({ data: e, intent: t }) => {
1298
1298
  const {
1299
1299
  title: r,
1300
- description: i,
1301
- popover: o = {
1300
+ description: o,
1301
+ popover: i = {
1302
1302
  enabled: !1
1303
1303
  }
1304
1304
  } = e;
1305
1305
  return /* @__PURE__ */ n.jsx("li", { className: a(rr({ intent: t })), children: /* @__PURE__ */ n.jsxs("div", { className: "desktop:max-w-[264px]", children: [
1306
1306
  /* @__PURE__ */ n.jsxs("div", { className: a("mb-2 flex items-center gap-2"), children: [
1307
1307
  /* @__PURE__ */ n.jsx("h4", { className: a("mob-title-bold-m text-color-dark"), children: r }),
1308
- o.enabled && /* @__PURE__ */ n.jsx(je, { triggerElement: /* @__PURE__ */ n.jsx(c, { className: a("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: o.text })
1308
+ i.enabled && /* @__PURE__ */ n.jsx(je, { triggerElement: /* @__PURE__ */ n.jsx(c, { className: a("size-5 text-icon-blue-grey-600"), name: "info/helpCircle" }), children: i.text })
1309
1309
  ] }),
1310
- /* @__PURE__ */ n.jsx("div", { className: a("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: i } })
1310
+ /* @__PURE__ */ n.jsx("div", { className: a("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: o } })
1311
1311
  ] }) });
1312
- }, jt = ({ intent: e, headline: t, desktopHidden: r = !1, mobileHidden: i = !1 }) => /* @__PURE__ */ n.jsx("h2", { className: a(tr({ intent: e, desktopHidden: r, mobileHidden: i })), children: t }), ir = ({ details: e, intent: t, withButton: r }) => /* @__PURE__ */ n.jsx("ul", { className: a(er({ intent: t, withButton: r })), children: e == null ? void 0 : e.map((i, o) => /* @__PURE__ */ n.jsx(or, { intent: t, data: i }, o)) }), Tn = ({
1312
+ }, jt = ({ intent: e, headline: t, desktopHidden: r = !1, mobileHidden: o = !1 }) => /* @__PURE__ */ n.jsx("h2", { className: a(tr({ intent: e, desktopHidden: r, mobileHidden: o })), children: t }), ir = ({ details: e, intent: t, withButton: r }) => /* @__PURE__ */ n.jsx("ul", { className: a(er({ intent: t, withButton: r })), children: e == null ? void 0 : e.map((o, i) => /* @__PURE__ */ n.jsx(or, { intent: t, data: o }, i)) }), Tn = ({
1313
1313
  headline: e,
1314
1314
  buttonConfig: t,
1315
1315
  intent: r = "twoItems",
1316
- details: i,
1317
- image: o,
1316
+ details: o,
1317
+ image: i,
1318
1318
  classes: d
1319
1319
  }) => {
1320
- const l = r === "fourItems", u = r === "twoItems", p = o && "url" in o && s.isObject(o) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: o.url }) : o;
1321
- return /* @__PURE__ */ n.jsx("section", { id: j.longBanner, "data-test-id": j.longBanner, className: a(d == null ? void 0 : d.root), children: /* @__PURE__ */ n.jsxs(_, { className: a(d == null ? void 0 : d.container), children: [
1320
+ const l = r === "fourItems", u = r === "twoItems", p = i && "url" in i && k.isObject(i) ? /* @__PURE__ */ n.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: i.url }) : i;
1321
+ return /* @__PURE__ */ n.jsx("section", { id: j.longBanner, "data-test-id": j.longBanner, className: a(d == null ? void 0 : d.root), children: /* @__PURE__ */ n.jsxs(H, { className: a(d == null ? void 0 : d.container), children: [
1322
1322
  u && /* @__PURE__ */ n.jsx(jt, { intent: r, headline: e }),
1323
1323
  /* @__PURE__ */ n.jsxs(
1324
1324
  "div",
@@ -1336,9 +1336,9 @@ const Le = [
1336
1336
  className: a("desktop:flex desktop:flex-col desktop:justify-center desktop:py-10", d == null ? void 0 : d.textWithBtnContainer),
1337
1337
  children: [
1338
1338
  l && /* @__PURE__ */ n.jsx(jt, { intent: r, headline: e, mobileHidden: !0 }),
1339
- /* @__PURE__ */ n.jsx(ir, { details: i, intent: r, withButton: (t == null ? void 0 : t.enabled) ?? !1 }),
1339
+ /* @__PURE__ */ n.jsx(ir, { details: o, intent: r, withButton: (t == null ? void 0 : t.enabled) ?? !1 }),
1340
1340
  (t == null ? void 0 : t.enabled) && t && /* @__PURE__ */ n.jsx(
1341
- X,
1341
+ Y,
1342
1342
  {
1343
1343
  className: a("w-full px-4 desktop:w-max", d == null ? void 0 : d.button),
1344
1344
  size: "lg",
@@ -1357,7 +1357,7 @@ const Le = [
1357
1357
  ESIA: "esia",
1358
1358
  MOBILE_ID: "mobileId",
1359
1359
  COMBINE: "combine"
1360
- }, re = ({ children: e, isLoading: t, classes: r, loaderProps: i }) => /* @__PURE__ */ n.jsx(
1360
+ }, re = ({ children: e, isLoading: t, classes: r, loaderProps: o }) => /* @__PURE__ */ n.jsx(
1361
1361
  "div",
1362
1362
  {
1363
1363
  tabIndex: 0,
@@ -1375,7 +1375,7 @@ const Le = [
1375
1375
  { "items-center": t },
1376
1376
  r == null ? void 0 : r.wrapper
1377
1377
  ),
1378
- children: t ? /* @__PURE__ */ n.jsx(ye, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...i }) : e
1378
+ children: t ? /* @__PURE__ */ n.jsx(ye, { position: "static", classes: { wrapper: "size-8 m-auto" }, ...o }) : e
1379
1379
  }
1380
1380
  )
1381
1381
  }
@@ -1407,7 +1407,7 @@ const Le = [
1407
1407
  /* @__PURE__ */ n.jsx("stop", { offset: "0.6875", stopColor: "#EE2F53" }),
1408
1408
  /* @__PURE__ */ n.jsx("stop", { offset: "1", stopColor: "#EE2F53" })
1409
1409
  ] }) })
1410
- ] }), ne = ({ mainLink: e, subLink: t, isMobile: r, classes: i }) => /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col", i == null ? void 0 : i.linksWrapper), children: [
1410
+ ] }), ne = ({ mainLink: e, subLink: t, isMobile: r, classes: o }) => /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col", o == null ? void 0 : o.linksWrapper), children: [
1411
1411
  /* @__PURE__ */ n.jsx(
1412
1412
  "a",
1413
1413
  {
@@ -1416,7 +1416,7 @@ const Le = [
1416
1416
  rel: "noreferrer",
1417
1417
  className: a(
1418
1418
  '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',
1419
- i == null ? void 0 : i.linksMainLink
1419
+ o == null ? void 0 : o.linksMainLink
1420
1420
  ),
1421
1421
  children: r ? e.mobileTitle : e.title
1422
1422
  }
@@ -1430,19 +1430,19 @@ const Le = [
1430
1430
  target: "_blank",
1431
1431
  rel: "noreferrer",
1432
1432
  classes: {
1433
- link: a("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary", i == null ? void 0 : i.linksSubLink)
1433
+ link: a("w-max relative z-[6] p-0 desk-body-regular-m text-color-tetriary", o == null ? void 0 : o.linksSubLink)
1434
1434
  },
1435
1435
  children: t == null ? void 0 : t.text
1436
1436
  }
1437
1437
  )
1438
- ] }), Pt = ({ mainLink: e, subLink: t, isLoading: r, badge: i, loaderProps: o, classes: d }) => {
1439
- const { isMobile: l } = G();
1440
- return /* @__PURE__ */ n.jsx(re, { isLoading: r, loaderProps: o, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ n.jsxs(
1438
+ ] }), Pt = ({ mainLink: e, subLink: t, isLoading: r, badge: o, loaderProps: i, classes: d }) => {
1439
+ const { isMobile: l } = K();
1440
+ return /* @__PURE__ */ n.jsx(re, { isLoading: r, loaderProps: i, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ n.jsxs(
1441
1441
  "div",
1442
1442
  {
1443
1443
  className: a(
1444
1444
  "flex flex-1 items-center justify-between gap-1",
1445
- { "justify-center": !i && l },
1445
+ { "justify-center": !o && l },
1446
1446
  d == null ? void 0 : d.innerWrapper
1447
1447
  ),
1448
1448
  children: [
@@ -1455,18 +1455,18 @@ const Le = [
1455
1455
  /* @__PURE__ */ n.jsx(ne, { mainLink: e, subLink: t, isMobile: l, classes: d == null ? void 0 : d.links }),
1456
1456
  /* @__PURE__ */ n.jsx(c, { name: "arrows/arrowRight", className: a("mobile:hidden", d == null ? void 0 : d.arrowIcon) })
1457
1457
  ] }),
1458
- i && /* @__PURE__ */ n.jsx(wt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: i })
1458
+ o && /* @__PURE__ */ n.jsx(vt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: o })
1459
1459
  ]
1460
1460
  }
1461
1461
  ) });
1462
- }, Dt = ({ mainLink: e, subLink: t, isLoading: r, badge: i, loaderProps: o, classes: d }) => {
1463
- const { isMobile: l } = G();
1464
- return /* @__PURE__ */ n.jsx(re, { isLoading: r, loaderProps: o, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ n.jsxs(
1462
+ }, Dt = ({ mainLink: e, subLink: t, isLoading: r, badge: o, loaderProps: i, classes: d }) => {
1463
+ const { isMobile: l } = K();
1464
+ return /* @__PURE__ */ n.jsx(re, { isLoading: r, loaderProps: i, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ n.jsxs(
1465
1465
  "div",
1466
1466
  {
1467
1467
  className: a(
1468
1468
  "flex flex-1 items-center justify-between gap-1",
1469
- { "justify-center": !i && l },
1469
+ { "justify-center": !o && l },
1470
1470
  d == null ? void 0 : d.innerWrapper
1471
1471
  ),
1472
1472
  children: [
@@ -1475,7 +1475,7 @@ const Le = [
1475
1475
  /* @__PURE__ */ n.jsx(ne, { mainLink: e, subLink: t, isMobile: l, classes: d == null ? void 0 : d.links }),
1476
1476
  /* @__PURE__ */ n.jsx(c, { name: "arrows/arrowRight", className: a("mobile:hidden", d == null ? void 0 : d.arrowIcon) })
1477
1477
  ] }),
1478
- i && /* @__PURE__ */ n.jsx(wt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: i })
1478
+ o && /* @__PURE__ */ n.jsx(vt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: o })
1479
1479
  ]
1480
1480
  }
1481
1481
  ) });
@@ -1487,7 +1487,7 @@ const Le = [
1487
1487
  return /* @__PURE__ */ n.jsx(Pt, { ...e });
1488
1488
  case yt.COMBINE:
1489
1489
  default:
1490
- const { esiaConfig: t, mobileIdConfig: r, subtitle: i, badge: o, classes: d } = e, l = !i && !o ? dt.Fragment : "div";
1490
+ const { esiaConfig: t, mobileIdConfig: r, subtitle: o, badge: i, classes: d } = e, l = !o && !i ? at.Fragment : "div";
1491
1491
  return /* @__PURE__ */ n.jsxs(
1492
1492
  "div",
1493
1493
  {
@@ -1497,8 +1497,8 @@ const Le = [
1497
1497
  ),
1498
1498
  children: [
1499
1499
  /* @__PURE__ */ n.jsxs(l, { className: a("flex w-full items-center justify-between gap-2", d == null ? void 0 : d.topContent), children: [
1500
- i && /* @__PURE__ */ n.jsx("h5", { className: a("desk-body-regular-l flex flex-1 text-color-dark", d == null ? void 0 : d.subtitle), children: i }),
1501
- o && /* @__PURE__ */ n.jsx(wt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: o })
1500
+ o && /* @__PURE__ */ n.jsx("h5", { className: a("desk-body-regular-l flex flex-1 text-color-dark", d == null ? void 0 : d.subtitle), children: o }),
1501
+ i && /* @__PURE__ */ n.jsx(vt, { className: a("bg-color-positive", d == null ? void 0 : d.badge), children: i })
1502
1502
  ] }),
1503
1503
  /* @__PURE__ */ n.jsxs("div", { className: a("grid w-full grid-cols-2 gap-2 desktop:gap-4", d == null ? void 0 : d.authWrapper), children: [
1504
1504
  /* @__PURE__ */ n.jsx(
@@ -1528,7 +1528,7 @@ const Le = [
1528
1528
  }
1529
1529
  );
1530
1530
  }
1531
- }, En = (e) => ar(e), Lt = ({ links: e, classes: t }) => /* @__PURE__ */ n.jsx("nav", { className: a("flex flex-col gap-1", t == null ? void 0 : t.linksWrapper), children: e == null ? void 0 : e.map(({ path: r, label: i }) => /* @__PURE__ */ n.jsx(
1531
+ }, En = (e) => ar(e), Lt = ({ links: e, classes: t }) => /* @__PURE__ */ n.jsx("nav", { className: a("flex flex-col gap-1", t == null ? void 0 : t.linksWrapper), children: e == null ? void 0 : e.map(({ path: r, label: o }) => /* @__PURE__ */ n.jsx(
1532
1532
  ct,
1533
1533
  {
1534
1534
  classes: {
@@ -1537,19 +1537,19 @@ const Le = [
1537
1537
  },
1538
1538
  intent: "dark",
1539
1539
  href: r,
1540
- children: i
1540
+ children: o
1541
1541
  },
1542
1542
  r
1543
- )) }), lr = ({ groupLabel: e, links: t, mobileAccordionProps: r, classes: i }) => {
1543
+ )) }), lr = ({ groupLabel: e, links: t, mobileAccordionProps: r, classes: o }) => {
1544
1544
  var d, l, u;
1545
- const { isMobile: o } = G();
1546
- return /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-2", i == null ? void 0 : i.columnGroup), children: [
1547
- !o && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1548
- /* @__PURE__ */ n.jsx("h5", { className: a("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", i == null ? void 0 : i.columnGroupHeading), children: e }),
1549
- /* @__PURE__ */ n.jsx(Lt, { links: t, classes: i == null ? void 0 : i.linksList }, "desktop")
1545
+ const { isMobile: i } = K();
1546
+ return /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col gap-2", o == null ? void 0 : o.columnGroup), children: [
1547
+ !i && /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
1548
+ /* @__PURE__ */ n.jsx("h5", { className: a("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", o == null ? void 0 : o.columnGroupHeading), children: e }),
1549
+ /* @__PURE__ */ n.jsx(Lt, { links: t, classes: o == null ? void 0 : o.linksList }, "desktop")
1550
1550
  ] }),
1551
- o && /* @__PURE__ */ n.jsx(
1552
- rt,
1551
+ i && /* @__PURE__ */ n.jsx(
1552
+ ot,
1553
1553
  {
1554
1554
  defaultOpen: !0,
1555
1555
  label: e,
@@ -1562,11 +1562,11 @@ const Le = [
1562
1562
  },
1563
1563
  contentInner: a("py-2 px-4", (u = r == null ? void 0 : r.classes) == null ? void 0 : u.contentInner)
1564
1564
  },
1565
- children: /* @__PURE__ */ n.jsx(Lt, { links: t, classes: i == null ? void 0 : i.linksList }, "mobile")
1565
+ children: /* @__PURE__ */ n.jsx(Lt, { links: t, classes: o == null ? void 0 : o.linksList }, "mobile")
1566
1566
  }
1567
1567
  )
1568
1568
  ] });
1569
- }, ur = ({ column: e, mobileAccordionProps: t, classes: r }) => /* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-4 desktop:gap-6", r == null ? void 0 : r.column), children: e == null ? void 0 : e.map((i) => /* @__PURE__ */ n.jsx(lr, { ...t, ...i, classes: r == null ? void 0 : r.columnGroup }, i.groupLabel)) }), pr = M("grid gap-4 grid-cols-1", {
1569
+ }, ur = ({ column: e, mobileAccordionProps: t, classes: r }) => /* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-4 desktop:gap-6", r == null ? void 0 : r.column), children: e == null ? void 0 : e.map((o) => /* @__PURE__ */ n.jsx(lr, { ...t, ...o, classes: r == null ? void 0 : r.columnGroup }, o.groupLabel)) }), pr = M("grid gap-4 grid-cols-1", {
1570
1570
  variants: {
1571
1571
  variant: {
1572
1572
  twoCols: "desktop:grid-cols-2",
@@ -1581,8 +1581,8 @@ const Le = [
1581
1581
  variant: e,
1582
1582
  details: t,
1583
1583
  headline: r,
1584
- mobileAccordionProps: i,
1585
- rootAccordionProps: o,
1584
+ mobileAccordionProps: o,
1585
+ rootAccordionProps: i,
1586
1586
  classes: d
1587
1587
  }) => {
1588
1588
  var l, u, p;
@@ -1592,25 +1592,25 @@ const Le = [
1592
1592
  id: j.interLinking,
1593
1593
  "data-test-id": j.interLinking,
1594
1594
  className: a("min-w-full desktop:min-w-[1140px]", d == null ? void 0 : d.root),
1595
- children: /* @__PURE__ */ n.jsx(_, { children: /* @__PURE__ */ n.jsx(
1596
- rt,
1595
+ children: /* @__PURE__ */ n.jsx(H, { children: /* @__PURE__ */ n.jsx(
1596
+ ot,
1597
1597
  {
1598
1598
  defaultOpen: !0,
1599
1599
  label: /* @__PURE__ */ n.jsx(L, { as: "h4", className: a("text-left", d == null ? void 0 : d.headline), children: r }),
1600
- ...o,
1600
+ ...i,
1601
1601
  classes: {
1602
- ...o == null ? void 0 : o.classes,
1602
+ ...i == null ? void 0 : i.classes,
1603
1603
  header: {
1604
- trigger: a("bg-color-blue-grey-100", (u = (l = o == null ? void 0 : o.classes) == null ? void 0 : l.header) == null ? void 0 : u.trigger)
1604
+ trigger: a("bg-color-blue-grey-100", (u = (l = i == null ? void 0 : i.classes) == null ? void 0 : l.header) == null ? void 0 : u.trigger)
1605
1605
  },
1606
- content: a("max-w-full bg-color-blue-grey-100 relative", (p = o == null ? void 0 : o.classes) == null ? void 0 : p.content)
1606
+ content: a("max-w-full bg-color-blue-grey-100 relative", (p = i == null ? void 0 : i.classes) == null ? void 0 : p.content)
1607
1607
  },
1608
- children: /* @__PURE__ */ n.jsx("div", { className: a(pr({ variant: e }), d == null ? void 0 : d.columnsWrapper), children: t == null ? void 0 : t.map((m, x) => /* @__PURE__ */ n.jsx(ur, { ...m, ...i, classes: d == null ? void 0 : d.column }, x)) })
1608
+ children: /* @__PURE__ */ n.jsx("div", { className: a(pr({ variant: e }), d == null ? void 0 : d.columnsWrapper), children: t == null ? void 0 : t.map((m, x) => /* @__PURE__ */ n.jsx(ur, { ...m, ...o, classes: d == null ? void 0 : d.column }, x)) })
1609
1609
  }
1610
1610
  ) })
1611
1611
  }
1612
1612
  );
1613
- }, hr = ({ tabsNames: e, activeTab: t, setActiveTab: r, classes: i }) => /* @__PURE__ */ n.jsx("div", { className: a("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", i == null ? void 0 : i.tabs), children: e && e.map((o, d) => /* @__PURE__ */ n.jsx(
1613
+ }, hr = ({ tabsNames: e, activeTab: t, setActiveTab: r, classes: o }) => /* @__PURE__ */ n.jsx("div", { className: a("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", o == null ? void 0 : o.tabs), children: e && e.map((i, d) => /* @__PURE__ */ n.jsx(
1614
1614
  "button",
1615
1615
  {
1616
1616
  onClick: () => r(d),
@@ -1619,21 +1619,21 @@ const Le = [
1619
1619
  {
1620
1620
  "bg-icon-primary-default text-color-white": t === d
1621
1621
  },
1622
- i == null ? void 0 : i.button
1622
+ o == null ? void 0 : o.button
1623
1623
  ),
1624
- children: o
1624
+ children: i
1625
1625
  },
1626
- o
1627
- )) }), mr = (e) => e.variant === "HTML", xr = (e) => e.variant === "DOCUMENTS", fr = (e) => e.variant === "TABLE", cr = ({ html: e, config: t, classes: r, accordionConfig: i }) => {
1628
- const o = /* @__PURE__ */ n.jsx("div", { className: a(r == null ? void 0 : r.html), dangerouslySetInnerHTML: { __html: e ?? "" } });
1629
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ n.jsx(rt, { label: t == null ? void 0 : t.accordionTitle, ...i, children: (i == null ? void 0 : i.children) ?? o }) : o });
1626
+ i
1627
+ )) }), mr = (e) => e.variant === "HTML", xr = (e) => e.variant === "DOCUMENTS", fr = (e) => e.variant === "TABLE", cr = ({ html: e, config: t, classes: r, accordionConfig: o }) => {
1628
+ const i = /* @__PURE__ */ n.jsx("div", { className: a(r == null ? void 0 : r.html), dangerouslySetInnerHTML: { __html: e ?? "" } });
1629
+ 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 });
1630
1630
  }, br = (e, t) => ({
1631
1631
  rows: e == null ? void 0 : e.map(({ row: r }) => ({
1632
- row: r == null ? void 0 : r.map((i, o) => {
1632
+ row: r == null ? void 0 : r.map((o, i) => {
1633
1633
  var d;
1634
1634
  return {
1635
- ...i,
1636
- heading: t && ((d = t[o]) == null ? void 0 : d.heading)
1635
+ ...o,
1636
+ heading: t && ((d = t[i]) == null ? void 0 : d.heading)
1637
1637
  };
1638
1638
  })
1639
1639
  }))
@@ -1651,7 +1651,7 @@ const Le = [
1651
1651
  threeCols: "grid-cols-3 gap-12"
1652
1652
  }
1653
1653
  }
1654
- }), yr = ({ headings: e, columnsVariant: t, classes: r }) => /* @__PURE__ */ n.jsx("div", { className: a(jr({ columnsVariant: t }), r == null ? void 0 : r.row), children: e == null ? void 0 : e.map((i) => /* @__PURE__ */ n.jsx("div", { className: a("text-color-secondary", r == null ? void 0 : r.cell), children: i == null ? void 0 : i.heading }, i == null ? void 0 : i.heading)) }), sr = M("grid items-center", {
1654
+ }), yr = ({ headings: e, columnsVariant: t, classes: r }) => /* @__PURE__ */ n.jsx("div", { className: a(jr({ columnsVariant: t }), r == null ? void 0 : r.row), children: e == null ? void 0 : e.map((o) => /* @__PURE__ */ n.jsx("div", { className: a("text-color-secondary", r == null ? void 0 : r.cell), children: o == null ? void 0 : o.heading }, o == null ? void 0 : o.heading)) }), kr = M("grid items-center", {
1655
1655
  variants: {
1656
1656
  columnsVariant: {
1657
1657
  twoCols: "grid-cols-2 gap-16",
@@ -1662,57 +1662,57 @@ const Le = [
1662
1662
  separator: "px-4 py-4 border-t border-solid border-warm-grey-200"
1663
1663
  }
1664
1664
  }
1665
- }), kr = ({ row: e, tableVariant: t, columnsVariant: r, rowIndex: i, classes: o }) => /* @__PURE__ */ n.jsx("div", { className: a(sr({ columnsVariant: r, tableVariant: t }), { "border-none": i === 0 }, o == null ? void 0 : o.row), children: e == null ? void 0 : e.map(({ cell: d }, l) => /* @__PURE__ */ n.jsx(
1665
+ }), wr = ({ row: e, tableVariant: t, columnsVariant: r, rowIndex: o, classes: i }) => /* @__PURE__ */ n.jsx("div", { className: a(kr({ columnsVariant: r, tableVariant: t }), { "border-none": o === 0 }, i == null ? void 0 : i.row), children: e == null ? void 0 : e.map(({ cell: d }, l) => /* @__PURE__ */ n.jsx(
1666
1666
  "div",
1667
1667
  {
1668
- className: a("desk-body-regular-l text-color-dark", { "font-medium": l !== 0 }, o == null ? void 0 : o.cell),
1668
+ className: a("desk-body-regular-l text-color-dark", { "font-medium": l !== 0 }, i == null ? void 0 : i.cell),
1669
1669
  children: d && d
1670
1670
  },
1671
1671
  l
1672
- )) }), wr = M("flex flex-col gap-2", {
1672
+ )) }), vr = M("flex flex-col gap-2", {
1673
1673
  variants: {
1674
1674
  tableVariant: {
1675
1675
  filled: "px-4 py-4 odd:bg-color-primary-light-default",
1676
1676
  separator: "py-4 border-t border-solid border-warm-grey-200 first:border-none"
1677
1677
  }
1678
1678
  }
1679
- }), vr = ({ row: e, tableVariant: t, columnsVariant: r, headingsExist: i, classes: o }) => /* @__PURE__ */ n.jsx("div", { className: a(wr({ tableVariant: t }), o == null ? void 0 : o.row), children: e == null ? void 0 : e.map(({ cell: d, heading: l }, u) => /* @__PURE__ */ n.jsxs("div", { className: a("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !i }, o == null ? void 0 : o.wrapper), children: [
1680
- l && /* @__PURE__ */ n.jsx("div", { className: a("mob-body-regular-l text-color-secondary", o == null ? void 0 : o.heading), children: l }),
1679
+ }), Nr = ({ row: e, tableVariant: t, columnsVariant: r, headingsExist: o, classes: i }) => /* @__PURE__ */ n.jsx("div", { className: a(vr({ tableVariant: t }), i == null ? void 0 : i.row), children: e == null ? void 0 : e.map(({ cell: d, heading: l }, u) => /* @__PURE__ */ n.jsxs("div", { className: a("grid grid-cols-2 gap-3", { "grid-cols-1 gap-0": !o }, i == null ? void 0 : i.wrapper), children: [
1680
+ l && /* @__PURE__ */ n.jsx("div", { className: a("mob-body-regular-l text-color-secondary", i == null ? void 0 : i.heading), children: l }),
1681
1681
  /* @__PURE__ */ n.jsx(
1682
1682
  "div",
1683
1683
  {
1684
1684
  className: a(
1685
1685
  "mob-body-regular-l text-color-dark",
1686
1686
  {
1687
- "font-medium": u !== 0 && r === "twoCols" || r === "threeCols" || r === "twoCols" && i
1687
+ "font-medium": u !== 0 && r === "twoCols" || r === "threeCols" || r === "twoCols" && o
1688
1688
  },
1689
- o == null ? void 0 : o.cell
1689
+ i == null ? void 0 : i.cell
1690
1690
  ),
1691
1691
  children: d
1692
1692
  }
1693
1693
  )
1694
- ] }, u)) }), Nr = ({ tableVariant: e, rows: t, headings: r, columnsVariant: i, classes: o }) => {
1694
+ ] }, u)) }), sr = ({ tableVariant: e, rows: t, headings: r, columnsVariant: o, classes: i }) => {
1695
1695
  var p;
1696
- const { isDesktop: d } = G(), l = ((p = br(t, r)) == null ? void 0 : p.rows) ?? [], u = !!(r && r.length > 0);
1697
- return /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col", o == null ? void 0 : o.wrapper), children: [
1698
- d && u && /* @__PURE__ */ n.jsx(yr, { headings: r, columnsVariant: i, classes: o == null ? void 0 : o.desktopHeading }),
1696
+ const { isDesktop: d } = K(), l = ((p = br(t, r)) == null ? void 0 : p.rows) ?? [], u = !!(r && r.length > 0);
1697
+ return /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-col", i == null ? void 0 : i.wrapper), children: [
1698
+ d && u && /* @__PURE__ */ n.jsx(yr, { headings: r, columnsVariant: o, classes: i == null ? void 0 : i.desktopHeading }),
1699
1699
  d ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t == null ? void 0 : t.map((m, x) => /* @__PURE__ */ n.jsx(
1700
- kr,
1700
+ wr,
1701
1701
  {
1702
1702
  rowIndex: x,
1703
1703
  tableVariant: e,
1704
- columnsVariant: i,
1705
- classes: o == null ? void 0 : o.desktopRow,
1704
+ columnsVariant: o,
1705
+ classes: i == null ? void 0 : i.desktopRow,
1706
1706
  ...m
1707
1707
  },
1708
1708
  x
1709
1709
  )) }) : /* @__PURE__ */ n.jsx(n.Fragment, { children: l == null ? void 0 : l.map((m, x) => /* @__PURE__ */ n.jsx(
1710
- vr,
1710
+ Nr,
1711
1711
  {
1712
1712
  headingsExist: u,
1713
1713
  tableVariant: e,
1714
- columnsVariant: i,
1715
- classes: o == null ? void 0 : o.desktopRow,
1714
+ columnsVariant: o,
1715
+ classes: i == null ? void 0 : i.desktopRow,
1716
1716
  ...m
1717
1717
  },
1718
1718
  x
@@ -1722,8 +1722,8 @@ const Le = [
1722
1722
  tableVariant: e,
1723
1723
  description: t,
1724
1724
  columnsVariant: r,
1725
- config: i,
1726
- rows: o,
1725
+ config: o,
1726
+ rows: i,
1727
1727
  title: d,
1728
1728
  headings: l,
1729
1729
  accordionConfig: u,
@@ -1731,7 +1731,7 @@ const Le = [
1731
1731
  }) => {
1732
1732
  const m = /* @__PURE__ */ n.jsxs("div", { className: a(gr({ columnsVariant: r }), p == null ? void 0 : p.wrapper), children: [
1733
1733
  d && /* @__PURE__ */ n.jsx(L, { as: "h4", className: a("mb-4 desktop:mb-6", p == null ? void 0 : p.headline), children: d }),
1734
- /* @__PURE__ */ n.jsx(Nr, { tableVariant: e, rows: o, headings: l, columnsVariant: r }),
1734
+ /* @__PURE__ */ n.jsx(sr, { tableVariant: e, rows: i, headings: l, columnsVariant: r }),
1735
1735
  t && /* @__PURE__ */ n.jsx(
1736
1736
  "div",
1737
1737
  {
@@ -1740,7 +1740,7 @@ const Le = [
1740
1740
  }
1741
1741
  )
1742
1742
  ] });
1743
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: i && (i != null && i.isAccordion) && (i != null && i.accordionTitle) ? /* @__PURE__ */ n.jsx(rt, { label: i == null ? void 0 : i.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || m }) : m });
1743
+ 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) || m }) : m });
1744
1744
  }, Tr = {
1745
1745
  documentFilled: "files/documentFilled",
1746
1746
  documentOutline: "files/documentOutline"
@@ -1754,7 +1754,7 @@ const Le = [
1754
1754
  defaultVariants: {
1755
1755
  iconType: "documentOutline"
1756
1756
  }
1757
- }), Ir = ({ label: e, size: t, url: r, iconType: i, classes: o }) => /* @__PURE__ */ n.jsxs(
1757
+ }), Ir = ({ label: e, size: t, url: r, iconType: o, classes: i }) => /* @__PURE__ */ n.jsxs(
1758
1758
  "a",
1759
1759
  {
1760
1760
  href: r,
@@ -1763,36 +1763,36 @@ const Le = [
1763
1763
  tabIndex: 0,
1764
1764
  className: a(
1765
1765
  "group flex w-full cursor-pointer items-center gap-2 rounded-sm p-1 outline outline-2 outline-transparent transition-colors focus-within:outline-primary-focus",
1766
- o == null ? void 0 : o.link
1766
+ i == null ? void 0 : i.link
1767
1767
  ),
1768
1768
  children: [
1769
- /* @__PURE__ */ n.jsx(c, { name: Tr[i], className: a(Er({ iconType: i }), o == null ? void 0 : o.icon) }),
1770
- /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-1 flex-col", o == null ? void 0 : o.wrapper), children: [
1771
- /* @__PURE__ */ n.jsx("p", { className: a("desk-body-medium-l text-color-dark", o == null ? void 0 : o.label), children: e }),
1772
- /* @__PURE__ */ n.jsxs("div", { className: a("desk-body-regular-m text-color-disabled", o == null ? void 0 : o.size), children: [
1769
+ /* @__PURE__ */ n.jsx(c, { name: Tr[o], className: a(Er({ iconType: o }), i == null ? void 0 : i.icon) }),
1770
+ /* @__PURE__ */ n.jsxs("div", { className: a("flex flex-1 flex-col", i == null ? void 0 : i.wrapper), children: [
1771
+ /* @__PURE__ */ n.jsx("p", { className: a("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: e }),
1772
+ /* @__PURE__ */ n.jsxs("div", { className: a("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
1773
1773
  Number(t),
1774
1774
  " КБ"
1775
1775
  ] })
1776
1776
  ] })
1777
1777
  ]
1778
1778
  }
1779
- ), Mr = ({ docs: e, config: t, title: r, iconType: i, description: o, classes: d, accordionConfig: l }) => {
1779
+ ), Mr = ({ docs: e, config: t, title: r, iconType: o, description: i, classes: d, accordionConfig: l }) => {
1780
1780
  const u = /* @__PURE__ */ n.jsxs("div", { className: a("flex max-w-[680px] flex-col", d == null ? void 0 : d.wrapper), children: [
1781
1781
  r && /* @__PURE__ */ n.jsx(L, { as: "h3", className: "mb-4", children: r }),
1782
- /* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-4", d == null ? void 0 : d.documentsWrapper), children: e == null ? void 0 : e.map((p) => /* @__PURE__ */ n.jsx(Ir, { iconType: i, ...p, classes: d == null ? void 0 : d.singleDocument }, p.label)) }),
1783
- o && /* @__PURE__ */ n.jsx("div", { className: a("mt-4", d == null ? void 0 : d.description), dangerouslySetInnerHTML: { __html: o ?? "" } })
1782
+ /* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-4", d == null ? void 0 : d.documentsWrapper), children: e == null ? void 0 : e.map((p) => /* @__PURE__ */ n.jsx(Ir, { iconType: o, ...p, classes: d == null ? void 0 : d.singleDocument }, p.label)) }),
1783
+ i && /* @__PURE__ */ n.jsx("div", { className: a("mt-4", d == null ? void 0 : d.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
1784
1784
  ] });
1785
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ n.jsx(rt, { label: t == null ? void 0 : t.accordionTitle, ...l, children: (l == null ? void 0 : l.children) || u }) : u });
1785
+ 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 });
1786
1786
  }, Or = ({ entity: e, classes: t, accordionsConfig: r }) => {
1787
- var i, o, d;
1787
+ var o, i, d;
1788
1788
  switch (!0) {
1789
1789
  case mr(e):
1790
- return (i = e.details) == null ? void 0 : i.map((l, u) => {
1790
+ return (o = e.details) == null ? void 0 : o.map((l, u) => {
1791
1791
  var p;
1792
1792
  return /* @__PURE__ */ n.jsx(cr, { ...l, accordionConfig: r == null ? void 0 : r.htmlAccordion, classes: (p = t == null ? void 0 : t.entities) == null ? void 0 : p.html }, u);
1793
1793
  });
1794
1794
  case xr(e):
1795
- return (o = e.details) == null ? void 0 : o.map((l, u) => {
1795
+ return (i = e.details) == null ? void 0 : i.map((l, u) => {
1796
1796
  var p;
1797
1797
  return /* @__PURE__ */ n.jsx(
1798
1798
  Mr,
@@ -1820,22 +1820,22 @@ const Le = [
1820
1820
  default:
1821
1821
  return null;
1822
1822
  }
1823
- }, Sr = ({ entity: e, classes: t, accordionsConfig: r }) => /* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-6", t == null ? void 0 : t.entityWrapper), children: Or({ entity: e, classes: t, accordionsConfig: r }) }), Mn = ({ headline: e, tabs: t, classes: r, accordionsConfig: i }) => {
1823
+ }, Sr = ({ entity: e, classes: t, accordionsConfig: r }) => /* @__PURE__ */ n.jsx("div", { className: a("flex flex-col gap-6", t == null ? void 0 : t.entityWrapper), children: Or({ entity: e, classes: t, accordionsConfig: r }) }), Mn = ({ headline: e, tabs: t, classes: r, accordionsConfig: o }) => {
1824
1824
  var u, p;
1825
- const [o, d] = W(0), l = Nt(() => t == null ? void 0 : t.map((m) => m == null ? void 0 : m.tabName), [t]) ?? [];
1826
- return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ n.jsx("section", { id: j.usefulInfo, "data-test-id": j.usefulInfo, className: a(r == null ? void 0 : r.root), children: /* @__PURE__ */ n.jsxs(_, { className: a(r == null ? void 0 : r.container), children: [
1825
+ const [i, d] = G(0), l = st(() => t == null ? void 0 : t.map((m) => m == null ? void 0 : m.tabName), [t]) ?? [];
1826
+ return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ n.jsx("section", { id: j.usefulInfo, "data-test-id": j.usefulInfo, className: a(r == null ? void 0 : r.root), children: /* @__PURE__ */ n.jsxs(H, { className: a(r == null ? void 0 : r.container), children: [
1827
1827
  /* @__PURE__ */ n.jsx(L, { className: a(r == null ? void 0 : r.headline), as: "h2", children: e }),
1828
- /* @__PURE__ */ n.jsx("div", { className: a("mt-6 flex flex-col gap-2 desktop:mt-12", r == null ? void 0 : r.tabsWrapper), children: /* @__PURE__ */ n.jsx(hr, { tabsNames: l, activeTab: o, setActiveTab: d, classes: r == null ? void 0 : r.tabs }) }),
1829
- /* @__PURE__ */ n.jsx("div", { className: a("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (p = (u = t == null ? void 0 : t[o]) == null ? void 0 : u.contents) == null ? void 0 : p.map((m, x) => /* @__PURE__ */ n.jsx(Sr, { accordionsConfig: i, ...m, classes: r == null ? void 0 : r.entityClasses }, x)) })
1828
+ /* @__PURE__ */ n.jsx("div", { className: a("mt-6 flex flex-col gap-2 desktop:mt-12", r == null ? void 0 : r.tabsWrapper), children: /* @__PURE__ */ n.jsx(hr, { tabsNames: l, activeTab: i, setActiveTab: d, classes: r == null ? void 0 : r.tabs }) }),
1829
+ /* @__PURE__ */ n.jsx("div", { className: a("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (p = (u = t == null ? void 0 : t[i]) == null ? void 0 : u.contents) == null ? void 0 : p.map((m, x) => /* @__PURE__ */ n.jsx(Sr, { accordionsConfig: o, ...m, classes: r == null ? void 0 : r.entityClasses }, x)) })
1830
1830
  ] }) });
1831
- }, Fr = ({ fields: e, control: t }) => e.map(({ type: r, args: i }) => {
1832
- const o = se[r];
1833
- return /* @__PURE__ */ $t(o, { ...i, key: i.name, control: t });
1831
+ }, Br = ({ fields: e, control: t }) => e.map(({ type: r, args: o }) => {
1832
+ const i = ke[r];
1833
+ return /* @__PURE__ */ $t(i, { ...o, key: o.name, control: t });
1834
1834
  });
1835
- class Br {
1835
+ class Fr {
1836
1836
  constructor(t) {
1837
- ot(this, "TEXT_NODE", 3);
1838
- ot(this, "ELEMENT_NODE", 1);
1837
+ it(this, "TEXT_NODE", 3);
1838
+ it(this, "ELEMENT_NODE", 1);
1839
1839
  this.options = t;
1840
1840
  }
1841
1841
  /**
@@ -1844,8 +1844,8 @@ class Br {
1844
1844
  * @param elements Массив для сбора элементов
1845
1845
  * @param as Тип возвращаемых данных ('string' или 'node')
1846
1846
  */
1847
- traverse(t, r = "string", i) {
1848
- const { includeSolidText: o, recursive: d, element: l } = this.options || {};
1847
+ traverse(t, r = "string", o) {
1848
+ const { includeSolidText: i, recursive: d, element: l } = this.options || {};
1849
1849
  switch (t.nodeType) {
1850
1850
  // если узел - элемент
1851
1851
  case this.ELEMENT_NODE:
@@ -1857,24 +1857,24 @@ class Br {
1857
1857
  if (l && p !== l)
1858
1858
  break;
1859
1859
  if (r === "node")
1860
- i.push(t);
1860
+ o.push(t);
1861
1861
  else {
1862
1862
  const m = u.outerHTML.trim();
1863
- i.push(m);
1863
+ o.push(m);
1864
1864
  }
1865
1865
  if (d)
1866
1866
  for (const m of t.childNodes)
1867
- this.traverse(m, r, i);
1867
+ this.traverse(m, r, o);
1868
1868
  break;
1869
1869
  // если узел - текстовый и требуется его добавить, добавляем
1870
1870
  case this.TEXT_NODE:
1871
- if (!o)
1871
+ if (!i)
1872
1872
  break;
1873
1873
  if (r === "node")
1874
- i.push(t);
1874
+ o.push(t);
1875
1875
  else {
1876
1876
  const m = t.textContent;
1877
- m && i.push(m);
1877
+ m && o.push(m);
1878
1878
  }
1879
1879
  break;
1880
1880
  }
@@ -1886,13 +1886,13 @@ class Br {
1886
1886
  * @returns Массив тегов или нод
1887
1887
  */
1888
1888
  async parse(t, r = "string") {
1889
- const { includeBody: i } = this.options || {}, o = [], d = [], l = await this.parseFromString(t), u = r === "string" ? o : d;
1890
- if (i)
1889
+ const { includeBody: o } = this.options || {}, i = [], d = [], l = await this.parseFromString(t), u = r === "string" ? i : d;
1890
+ if (o)
1891
1891
  this.traverse(l.body, r, u);
1892
1892
  else
1893
1893
  for (const p of l.body.childNodes)
1894
1894
  this.traverse(p, r, u);
1895
- return { stringNodes: o, nodes: d };
1895
+ return { stringNodes: i, nodes: d };
1896
1896
  }
1897
1897
  /**
1898
1898
  * Считает количество указанных тегов в HTML строке.
@@ -1910,7 +1910,7 @@ class Hr extends Error {
1910
1910
  super(t), this.originalError = r, this.name = "BrowserHTMLParserError";
1911
1911
  }
1912
1912
  }
1913
- class _r extends Br {
1913
+ class _r extends Fr {
1914
1914
  constructor(t) {
1915
1915
  super(t);
1916
1916
  }
@@ -1920,7 +1920,7 @@ class _r extends Br {
1920
1920
  return new DOMParser().parseFromString(t, "text/html");
1921
1921
  }
1922
1922
  }
1923
- class st {
1923
+ class kt {
1924
1924
  /**
1925
1925
  * Функция для парсинга ноды в react элемент
1926
1926
  */
@@ -1928,7 +1928,7 @@ class st {
1928
1928
  if (t.nodeType === this.TEXT_NODE)
1929
1929
  return t.textContent ?? null;
1930
1930
  if (t.nodeType === this.ELEMENT_NODE) {
1931
- const r = t, i = r.tagName.toLowerCase(), o = {};
1931
+ const r = t, o = r.tagName.toLowerCase(), i = {};
1932
1932
  for (const l of r.attributes) {
1933
1933
  let u = l.name, p = l.value;
1934
1934
  switch (l.name) {
@@ -1952,21 +1952,21 @@ class st {
1952
1952
  l.value.split(";").forEach((x) => {
1953
1953
  const [f, b] = x.split(":");
1954
1954
  if (f && b) {
1955
- const C = f.trim().replace(/-([a-z])/g, (v, k) => k.toUpperCase());
1956
- m[C] = b.trim();
1955
+ const T = f.trim().replace(/-([a-z])/g, (N, w) => w.toUpperCase());
1956
+ m[T] = b.trim();
1957
1957
  }
1958
1958
  }), p = m;
1959
1959
  break;
1960
1960
  }
1961
- o[u] = p;
1961
+ i[u] = p;
1962
1962
  }
1963
- o.key = Math.random().toString(36).substring(2, 9);
1963
+ i.key = Math.random().toString(36).substring(2, 9);
1964
1964
  const d = [];
1965
1965
  for (const l of r.childNodes) {
1966
1966
  const u = this.parseNode(l);
1967
1967
  u && d.push(u);
1968
1968
  }
1969
- return $t(i, o, ...d);
1969
+ return $t(o, i, ...d);
1970
1970
  }
1971
1971
  return null;
1972
1972
  }
@@ -1974,44 +1974,47 @@ class st {
1974
1974
  * функция для преобразования html строки в react элементы
1975
1975
  */
1976
1976
  static async toReactNodes(t, r) {
1977
- const i = new _r(r), { nodes: o } = await i.parse(t, "node");
1978
- return o.map((d) => this.parseNode(d));
1977
+ const o = new _r(r), { nodes: i } = await o.parse(t, "node");
1978
+ return i.map((d) => this.parseNode(d));
1979
1979
  }
1980
1980
  }
1981
- ot(st, "TEXT_NODE", 3), ot(st, "ELEMENT_NODE", 1);
1981
+ it(kt, "TEXT_NODE", 3), it(kt, "ELEMENT_NODE", 1);
1982
1982
  const Pr = ({ promises: e }) => {
1983
- const [t, r] = W([]);
1983
+ const [t, r] = G([]);
1984
1984
  return Zt(() => {
1985
1985
  (async () => {
1986
1986
  r(await e);
1987
1987
  })();
1988
1988
  }, [e]), /* @__PURE__ */ n.jsx(n.Fragment, { children: t });
1989
- }, ft = ({ html: e, options: t, as: r }) => {
1990
- const i = r ?? Ne, o = st.toReactNodes(e, t);
1991
- return /* @__PURE__ */ n.jsx(i, { children: /* @__PURE__ */ n.jsx(Pr, { promises: o }) });
1989
+ }, ft = ({ html: e, options: t, as: r, ...o }) => {
1990
+ const i = r ?? se, d = r ? o : {}, l = kt.toReactNodes(e, t);
1991
+ return (
1992
+ // @ts-expect-error disable warning
1993
+ /* @__PURE__ */ n.jsx(i, { ...d, children: /* @__PURE__ */ n.jsx(Pr, { promises: l }) })
1994
+ );
1992
1995
  }, Dr = ["getFioSchema"], oe = (e, t, r) => {
1993
- const i = e[t];
1994
- if (s.isNil(i))
1996
+ const o = e[t];
1997
+ if (k.isNil(o))
1995
1998
  throw new Error(`validation for type ${String(t)} not found`);
1996
- if (!s.isFunction(i))
1999
+ if (!k.isFunction(o))
1997
2000
  throw new Error(`Cannot generate ${String(t)} because is not a function`);
1998
- return i(r);
2001
+ return o(r);
1999
2002
  }, Lr = (e, t) => oe(Yt.base, e, t), Qr = (e, t) => oe(Yt.dadata, e, t), zr = (e) => {
2000
- const r = e.map((i) => ({ name: i.args.name, validation: i.args.validation })).reduce((i, o) => {
2001
- const d = Dr.includes(o.validation.type) ? Qr(
2002
- o.validation.type,
2003
- o.validation.args
2003
+ const r = e.map((o) => ({ name: o.args.name, validation: o.args.validation })).reduce((o, i) => {
2004
+ const d = Dr.includes(i.validation.type) ? Qr(
2005
+ i.validation.type,
2006
+ i.validation.args
2004
2007
  ) : Lr(
2005
- o.validation.type,
2006
- o.validation.args
2008
+ i.validation.type,
2009
+ i.validation.args
2007
2010
  );
2008
- return i[o.name] = d, i;
2011
+ return o[i.name] = d, o;
2009
2012
  }, {});
2010
2013
  return Oe(r);
2011
2014
  }, qr = (e, t) => e.enabled ? t.map((r) => ({
2012
2015
  name: r.args.name,
2013
2016
  ...r.args.progress
2014
- })) : null, Ar = new De(), Ur = ({ children: e }) => /* @__PURE__ */ n.jsx(ke, { client: Ar, children: e }), Vr = (e, t, r) => e.type === "off" ? null : e.type === "text" ? /* @__PURE__ */ n.jsx(ft, { html: e.message, as: "div" }) : /* @__PURE__ */ n.jsxs(
2017
+ })) : null, Ar = new De(), Ur = ({ children: e }) => /* @__PURE__ */ n.jsx(we, { client: Ar, children: e }), Vr = (e, t, r, o) => e.type === "off" ? null : e.type === "text" ? /* @__PURE__ */ n.jsx(ft, { html: e.message, as: "div", className: o == null ? void 0 : o.content }) : /* @__PURE__ */ n.jsxs(
2015
2018
  "label",
2016
2019
  {
2017
2020
  className: a(
@@ -2020,78 +2023,97 @@ const Pr = ({ promises: e }) => {
2020
2023
  "flex items-center justify-items-start gap-x-3"
2021
2024
  ),
2022
2025
  children: [
2023
- /* @__PURE__ */ n.jsx(Gt.CheckboxBase, { checked: t, onCheckedChange: r }),
2024
- /* @__PURE__ */ n.jsx(ft, { html: e.content, as: "div" })
2026
+ /* @__PURE__ */ n.jsx(Gt.CheckboxBase, { classes: o == null ? void 0 : o.checkbox, checked: t, onCheckedChange: r }),
2027
+ /* @__PURE__ */ n.jsx(ft, { html: e.content, as: "div", className: o == null ? void 0 : o.content })
2025
2028
  ]
2026
2029
  }
2027
2030
  ), On = ({
2028
2031
  fields: e,
2029
2032
  title: t,
2030
2033
  progress: r,
2031
- approvement: i,
2032
- chips: o,
2033
- submitProps: d
2034
+ approvement: o,
2035
+ chips: i,
2036
+ submitProps: d,
2037
+ classes: l
2034
2038
  }) => {
2035
- const { submitCallback: l, ...u } = d || {}, [p, m] = W(!1), x = zr(e), { control: f, handleSubmit: b } = Ie({
2036
- schema: x,
2037
- defaultValues: Se.getZodDefaults(x),
2039
+ var $, Q;
2040
+ const { submitCallback: u, ...p } = d || {}, [m, x] = G(!1), f = zr(e), { control: b, handleSubmit: T } = Ie({
2041
+ schema: f,
2042
+ defaultValues: Se.getZodDefaults(f),
2038
2043
  mode: "onBlur"
2039
- }), C = qr(r, e), v = Fe({ control: f, fields: C || [], schema: x }), k = (F) => {
2040
- l && l(F), console.warn(F);
2044
+ }), N = qr(r, e), w = Be({ control: b, fields: N || [], schema: f }), _ = (s) => {
2045
+ u && u(s), console.warn(s);
2041
2046
  };
2042
2047
  return /* @__PURE__ */ n.jsx(Ur, { children: /* @__PURE__ */ n.jsxs(
2043
2048
  "div",
2044
2049
  {
2045
2050
  id: j.form,
2046
2051
  "data-test-id": j.form,
2047
- className: "relative flex flex-col gap-6 rounded-sm border border-warm-grey-200 px-4 py-8 desktop:gap-8 desktop:p-14",
2052
+ className: a(
2053
+ "border-warm-grey-200 px-4 desktop:gap-8 desktop:p-14",
2054
+ "relative flex flex-col gap-6 rounded-sm border py-8",
2055
+ l == null ? void 0 : l.root
2056
+ ),
2048
2057
  children: [
2049
- o.enabled && /* @__PURE__ */ n.jsxs(
2058
+ i.enabled && /* @__PURE__ */ n.jsxs(
2050
2059
  "div",
2051
2060
  {
2052
2061
  className: a(
2053
2062
  "desk-body-regular-l flex items-center gap-x-2 rounded-sm desktop:absolute",
2054
2063
  "bg-color-blue-grey-100 px-2 py-1 text-color-tetriary",
2055
- "right-4 top-4 w-max"
2064
+ "right-4 top-4 w-max",
2065
+ ($ = l == null ? void 0 : l.chips) == null ? void 0 : $.root
2056
2066
  ),
2057
2067
  children: [
2058
- o.image && /* @__PURE__ */ n.jsx(c, { name: o.image, className: "size-4" }),
2059
- o.content
2068
+ i.image && /* @__PURE__ */ n.jsx(c, { name: i.image, className: a("size-4", (Q = l == null ? void 0 : l.chips) == null ? void 0 : Q.icon) }),
2069
+ i.content
2060
2070
  ]
2061
2071
  }
2062
2072
  ),
2063
- /* @__PURE__ */ n.jsx(L, { as: "h3", children: t }),
2064
- /* @__PURE__ */ n.jsxs("form", { onSubmit: b(k), className: "flex w-[328px] flex-col gap-y-6 desktop:w-[524px] desktop:gap-y-8", children: [
2065
- r.enabled && /* @__PURE__ */ n.jsx(
2066
- we,
2067
- {
2068
- progress: v,
2069
- topContent: /* @__PURE__ */ n.jsx(ft, { html: r.title }),
2070
- bottomContent: /* @__PURE__ */ n.jsx(ft, { html: r.subtitle }),
2071
- maxPercent: r.maxPercent
2072
- }
2073
- ),
2074
- /* @__PURE__ */ n.jsx(Fr, { control: f, fields: e }),
2075
- /* @__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: [
2076
- Vr(i, p, m),
2077
- /* @__PURE__ */ n.jsx(
2078
- kt,
2079
- {
2080
- ...u,
2081
- type: "submit",
2082
- disabled: i.type === "checkbox" ? !p : !1,
2083
- className: a("w-full whitespace-nowrap", {
2084
- "w-full desktop:w-[216px]": !!i
2085
- }),
2086
- children: "Отправить форму"
2087
- }
2088
- )
2089
- ] })
2090
- ] })
2073
+ /* @__PURE__ */ n.jsx(L, { as: "h3", className: l == null ? void 0 : l.title, children: t }),
2074
+ /* @__PURE__ */ n.jsxs(
2075
+ "form",
2076
+ {
2077
+ onSubmit: T(_),
2078
+ className: a("flex w-[328px] flex-col gap-y-6", "desktop:w-[524px] desktop:gap-y-8", l == null ? void 0 : l.form),
2079
+ children: [
2080
+ r.enabled && /* @__PURE__ */ n.jsx(
2081
+ ve,
2082
+ {
2083
+ progress: w,
2084
+ topContent: /* @__PURE__ */ n.jsx(ft, { html: r.title }),
2085
+ bottomContent: /* @__PURE__ */ n.jsx(ft, { html: r.subtitle }),
2086
+ maxPercent: r.maxPercent,
2087
+ classes: l == null ? void 0 : l.progressBar
2088
+ }
2089
+ ),
2090
+ /* @__PURE__ */ n.jsx(Br, { control: b, fields: e }),
2091
+ /* @__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: [
2092
+ Vr(o, m, x, l == null ? void 0 : l.approvement),
2093
+ /* @__PURE__ */ n.jsx(
2094
+ wt,
2095
+ {
2096
+ ...p,
2097
+ type: "submit",
2098
+ disabled: o.type === "checkbox" ? !m : !1,
2099
+ className: a(
2100
+ "w-full whitespace-nowrap",
2101
+ {
2102
+ "w-full desktop:w-[216px]": !!o
2103
+ },
2104
+ l == null ? void 0 : l.submit
2105
+ ),
2106
+ children: "Отправить форму"
2107
+ }
2108
+ )
2109
+ ] })
2110
+ ]
2111
+ }
2112
+ )
2091
2113
  ]
2092
2114
  }
2093
2115
  ) });
2094
- }, it = () => ({
2116
+ }, dt = () => ({
2095
2117
  approve: {
2096
2118
  icon: {
2097
2119
  element: /* @__PURE__ */ n.jsx(c, { name: "status/iconMark" }),
@@ -2152,34 +2174,34 @@ const Pr = ({ promises: e }) => {
2152
2174
  text: "Вернуться на главную"
2153
2175
  }
2154
2176
  }
2155
- }), Sn = ({ status: e, navigationFn: t }) => /* @__PURE__ */ n.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ n.jsx(_, { 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: [
2177
+ }), Sn = ({ status: e, navigationFn: t }) => /* @__PURE__ */ n.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ n.jsx(H, { 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: [
2156
2178
  /* @__PURE__ */ n.jsx(
2157
2179
  "span",
2158
2180
  {
2159
2181
  className: a(
2160
2182
  "flex size-16 items-center justify-center rounded-full bg-color-positive-light",
2161
- `${it()[e].icon.bg}`
2183
+ `${dt()[e].icon.bg}`
2162
2184
  ),
2163
- children: it()[e].icon.element
2185
+ children: dt()[e].icon.element
2164
2186
  }
2165
2187
  ),
2166
2188
  /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col items-center gap-2 text-center desktop:gap-6", children: [
2167
- /* @__PURE__ */ n.jsx(L, { as: "h2", children: it()[e].title }),
2168
- /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: it()[e].description })
2189
+ /* @__PURE__ */ n.jsx(L, { as: "h2", children: dt()[e].title }),
2190
+ /* @__PURE__ */ n.jsx("p", { className: "desk-body-regular-l text-color-dark", children: dt()[e].description })
2169
2191
  ] }),
2170
- /* @__PURE__ */ n.jsx(kt, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: t, children: it()[e].button.text })
2171
- ] }) }) }), ie = ({ breadcrumb: e, className: t, ...r }) => /* @__PURE__ */ n.jsx("a", { href: e.path, className: a("desk-body-regular-m", t), ...r, children: e.label }), Wr = ({ startsWith: e, endsWith: t, matcher: r, filter: i, rootEnabled: o = !0 }) => {
2172
- const [d, l] = W([]);
2192
+ /* @__PURE__ */ n.jsx(wt, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: t, children: dt()[e].button.text })
2193
+ ] }) }) }), ie = ({ breadcrumb: e, className: t, ...r }) => /* @__PURE__ */ n.jsx("a", { href: e.path, className: a("desk-body-regular-m", t), ...r, children: e.label }), Wr = ({ startsWith: e, endsWith: t, matcher: r, filter: o, rootEnabled: i = !0 }) => {
2194
+ const [d, l] = G([]);
2173
2195
  return Zt(() => {
2174
2196
  if (!Jt)
2175
2197
  return;
2176
- let u = window.location.pathname.split("/").filter((x) => !s.isStringEmpty(x));
2177
- s.isUndefined(e) || (s.isString(e) ? u = u.slice(u.findIndex((x) => x === e)) : u = u.slice(e)), s.isUndefined(t) || (s.isString(t) ? u = u.slice(0, u.findIndex((x) => x === t) + 1) : u = u.slice(0, t + 1));
2198
+ let u = window.location.pathname.split("/").filter((x) => !k.isStringEmpty(x));
2199
+ k.isUndefined(e) || (k.isString(e) ? u = u.slice(u.findIndex((x) => x === e)) : u = u.slice(e)), k.isUndefined(t) || (k.isString(t) ? u = u.slice(0, u.findIndex((x) => x === t) + 1) : u = u.slice(0, t + 1));
2178
2200
  let p = [], m = "";
2179
- if (o) {
2201
+ if (i) {
2180
2202
  const x = {
2181
2203
  index: 0,
2182
- id: Bt(),
2204
+ id: Ft(),
2183
2205
  path: "/",
2184
2206
  label: "home"
2185
2207
  };
@@ -2190,8 +2212,8 @@ const Pr = ({ promises: e }) => {
2190
2212
  const b = {
2191
2213
  // while root enabled we need to increment index
2192
2214
  // cuz we have root breadcrumb
2193
- index: o ? f + 1 : f,
2194
- id: Bt(),
2215
+ index: i ? f + 1 : f,
2216
+ id: Ft(),
2195
2217
  path: m,
2196
2218
  label: x
2197
2219
  };
@@ -2199,28 +2221,28 @@ const Pr = ({ promises: e }) => {
2199
2221
  }), r && (p = p.map((x) => ({
2200
2222
  ...x,
2201
2223
  ...r(x)
2202
- }))), l(i ? p.filter(i) : p);
2203
- }, [t, i, r, o, e]), d;
2204
- }, xt = (e, t, r, i) => e.map((o, d) => {
2205
- const l = d === i;
2224
+ }))), l(o ? p.filter(o) : p);
2225
+ }, [t, o, r, i, e]), d;
2226
+ }, xt = (e, t, r, o) => e.map((i, d) => {
2227
+ const l = d === o;
2206
2228
  return /* @__PURE__ */ n.jsxs("div", { className: "flex items-center gap-x-2", children: [
2207
2229
  /* @__PURE__ */ n.jsx(
2208
2230
  ie,
2209
2231
  {
2210
- breadcrumb: o,
2232
+ breadcrumb: i,
2211
2233
  className: a(r, {
2212
2234
  "pointer-events-none text-color-primary-disabled": l
2213
2235
  })
2214
2236
  }
2215
2237
  ),
2216
2238
  d !== e.length - 1 && t
2217
- ] }, o.id);
2218
- }), Gr = ({ separator: e, ellipsis: t, classes: r, ...i }) => {
2219
- const [o, d] = W(!1), l = Ct(null);
2239
+ ] }, i.id);
2240
+ }), Gr = ({ separator: e, ellipsis: t, classes: r, ...o }) => {
2241
+ const [i, d] = G(!1), l = Ct(null);
2220
2242
  Me(l, () => d(!1));
2221
- const u = Wr(i), { first: p, middle: m, last: x } = Nt(() => {
2222
- let b = [], C = [], v = [];
2223
- return t && (b = u.slice(0, t), C = u.slice(t, u.length - t), v = u.slice(u.length - t)), { first: b, middle: C, last: v };
2243
+ const u = Wr(o), { first: p, middle: m, last: x } = st(() => {
2244
+ let b = [], T = [], N = [];
2245
+ return t && (b = u.slice(0, t), T = u.slice(t, u.length - t), N = u.slice(u.length - t)), { first: b, middle: T, last: N };
2224
2246
  }, [u, t]), f = e ?? /* @__PURE__ */ n.jsx(c, { name: "arrows/arrowRight", className: a("size-4", r == null ? void 0 : r.separator) });
2225
2247
  return /* @__PURE__ */ n.jsx(
2226
2248
  "div",
@@ -2250,7 +2272,7 @@ const Pr = ({ promises: e }) => {
2250
2272
  "w-[280px] rounded-sm bg-color-white",
2251
2273
  "customScrollbar-y p-1 opacity-0 shadow-sm",
2252
2274
  {
2253
- "visible opacity-100": o
2275
+ "visible opacity-100": i
2254
2276
  }
2255
2277
  ),
2256
2278
  children: m.map((b) => /* @__PURE__ */ n.jsx("li", { children: /* @__PURE__ */ n.jsx(
@@ -2283,15 +2305,15 @@ const Pr = ({ promises: e }) => {
2283
2305
  }
2284
2306
  );
2285
2307
  };
2286
- var at = /* @__PURE__ */ ((e) => (e.ROOT = "root", e.CURRENT = "current", e))(at || {});
2308
+ var lt = /* @__PURE__ */ ((e) => (e.ROOT = "root", e.CURRENT = "current", e))(lt || {});
2287
2309
  const Kr = (e, t) => {
2288
2310
  switch (t.type) {
2289
- case at.ROOT:
2311
+ case lt.ROOT:
2290
2312
  return {
2291
2313
  ...e,
2292
2314
  root: t.payload
2293
2315
  };
2294
- case at.CURRENT:
2316
+ case lt.CURRENT:
2295
2317
  return {
2296
2318
  ...e,
2297
2319
  current: t.payload
@@ -2303,14 +2325,14 @@ const Kr = (e, t) => {
2303
2325
  const [t, r] = Ce(Kr, e);
2304
2326
  return [t, r];
2305
2327
  }, Zr = (e) => ({
2306
- type: at.CURRENT,
2328
+ type: lt.CURRENT,
2307
2329
  payload: e
2308
2330
  }), Xr = (e) => ({
2309
- type: at.ROOT,
2331
+ type: lt.ROOT,
2310
2332
  payload: e
2311
2333
  }), Jr = ({ categories: e, ...t }) => te(
2312
2334
  /* @__PURE__ */ n.jsx(
2313
- vt.div,
2335
+ Nt.div,
2314
2336
  {
2315
2337
  ...t,
2316
2338
  layout: !0,
@@ -2319,13 +2341,13 @@ const Kr = (e, t) => {
2319
2341
  transition: { duration: 0.2 },
2320
2342
  className: "absolute bg-color-white",
2321
2343
  children: /* @__PURE__ */ n.jsx("div", { className: "mx-auto flex w-[1140px] gap-x-[56px] py-10", children: e.map((r) => {
2322
- var o;
2323
- const i = r.link ? "a" : "p";
2344
+ var i;
2345
+ const o = r.link ? "a" : "p";
2324
2346
  return /* @__PURE__ */ n.jsxs("div", { className: "flex flex-col gap-y-6", children: [
2325
2347
  r.title && /* @__PURE__ */ n.jsxs(
2326
- i,
2348
+ o,
2327
2349
  {
2328
- href: ((o = r.link) == null ? void 0 : o.href) ?? void 0,
2350
+ href: ((i = r.link) == null ? void 0 : i.href) ?? void 0,
2329
2351
  className: "flex items-center gap-x-1 text-16 uppercase text-color-primary-default",
2330
2352
  children: [
2331
2353
  r.title,
@@ -2344,11 +2366,11 @@ const Kr = (e, t) => {
2344
2366
  document.body
2345
2367
  ), Yr = ({ category: e, active: t, onActiveTabChange: r }) => {
2346
2368
  var u, p;
2347
- const i = Ct(null), o = (u = i.current) == null ? void 0 : u.getBoundingClientRect(), d = t && !s.isArrayEmpty(e.children), l = s.isArrayEmpty(e.children) ? "a" : "span";
2369
+ const o = Ct(null), i = (u = o.current) == null ? void 0 : u.getBoundingClientRect(), d = t && !k.isArrayEmpty(e.children), l = k.isArrayEmpty(e.children) ? "a" : "span";
2348
2370
  return /* @__PURE__ */ n.jsxs(
2349
- vt.div,
2371
+ Nt.div,
2350
2372
  {
2351
- ref: i,
2373
+ ref: o,
2352
2374
  className: a(
2353
2375
  "relative flex cursor-default items-center justify-center py-4 text-color-dark",
2354
2376
  'after:content="" after:absolute after:bottom-0 after:left-1/2 after:h-[1px]',
@@ -2368,7 +2390,7 @@ const Kr = (e, t) => {
2368
2390
  {
2369
2391
  categories: e.children,
2370
2392
  style: {
2371
- top: o ? o.top + o.height : 0,
2393
+ top: i ? i.top + i.height : 0,
2372
2394
  width: window.innerWidth
2373
2395
  }
2374
2396
  }
@@ -2377,18 +2399,18 @@ const Kr = (e, t) => {
2377
2399
  }
2378
2400
  );
2379
2401
  }, tn = Xt(Yr), en = ({ categories: e }) => {
2380
- const [t, r] = W(null), i = Kt((o) => {
2381
- r(o);
2402
+ const [t, r] = G(null), o = Kt((i) => {
2403
+ r(i);
2382
2404
  }, []);
2383
- return /* @__PURE__ */ n.jsx(ve, { mode: "sync", children: /* @__PURE__ */ n.jsxs("div", { id: "tabs", className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]", children: [
2384
- e.map((o) => /* @__PURE__ */ n.jsx(
2405
+ return /* @__PURE__ */ n.jsx(Ne, { mode: "sync", children: /* @__PURE__ */ n.jsxs("div", { id: "tabs", className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]", children: [
2406
+ e.map((i) => /* @__PURE__ */ n.jsx(
2385
2407
  tn,
2386
2408
  {
2387
- category: o,
2388
- active: t === o.title,
2389
- onActiveTabChange: i
2409
+ category: i,
2410
+ active: t === i.title,
2411
+ onActiveTabChange: o
2390
2412
  },
2391
- o.title
2413
+ i.title
2392
2414
  )),
2393
2415
  /* @__PURE__ */ n.jsx("div", { className: "ml-auto", children: "Личный кабинет" })
2394
2416
  ] }) });
@@ -2396,18 +2418,18 @@ const Kr = (e, t) => {
2396
2418
  category: e,
2397
2419
  selectedCategory: t,
2398
2420
  onCurrentCategoryChange: r,
2399
- onRootCategoryChange: i,
2400
- active: o,
2421
+ onRootCategoryChange: o,
2422
+ active: i,
2401
2423
  ...d
2402
2424
  }) => /* @__PURE__ */ n.jsxs(
2403
2425
  "div",
2404
2426
  {
2405
2427
  ...d,
2406
2428
  onClick: () => {
2407
- r(e.children[0]), i(e);
2429
+ r(e.children[0]), o(e);
2408
2430
  },
2409
2431
  className: a("group/category relative cursor-default text-color-blue-grey-600 duration-100 hover:text-color-dark", {
2410
- "text-color-dark": o
2432
+ "text-color-dark": i
2411
2433
  }),
2412
2434
  children: [
2413
2435
  /* @__PURE__ */ n.jsx("span", { className: "desk-body-regular-m", children: e.title }),
@@ -2423,7 +2445,7 @@ const Kr = (e, t) => {
2423
2445
  "span",
2424
2446
  {
2425
2447
  onClick: (u) => {
2426
- u.stopPropagation(), u.nativeEvent.stopPropagation(), i(e), r(l);
2448
+ u.stopPropagation(), u.nativeEvent.stopPropagation(), o(e), r(l);
2427
2449
  },
2428
2450
  className: a(
2429
2451
  "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",
@@ -2440,19 +2462,19 @@ const Kr = (e, t) => {
2440
2462
  ]
2441
2463
  }
2442
2464
  ), on = ({ categories: e, helpers: t, phone: r }) => {
2443
- const [i, o] = $r({ root: e[0].children[0], current: e[0].children[0] });
2465
+ const [o, i] = $r({ root: e[0].children[0], current: e[0].children[0] });
2444
2466
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
2445
2467
  /* @__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: [
2446
2468
  /* @__PURE__ */ n.jsx(c, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
2447
2469
  e.map((d) => {
2448
- const l = i.root.title === d.title;
2470
+ const l = o.root.title === d.title;
2449
2471
  return /* @__PURE__ */ n.jsx(
2450
2472
  nn,
2451
2473
  {
2452
2474
  category: d,
2453
- selectedCategory: i.current,
2454
- onCurrentCategoryChange: (u) => o(Zr(u)),
2455
- onRootCategoryChange: (u) => o(Xr(u)),
2475
+ selectedCategory: o.current,
2476
+ onCurrentCategoryChange: (u) => i(Zr(u)),
2477
+ onRootCategoryChange: (u) => i(Xr(u)),
2456
2478
  active: l
2457
2479
  },
2458
2480
  d.title
@@ -2481,10 +2503,10 @@ const Kr = (e, t) => {
2481
2503
  }
2482
2504
  )
2483
2505
  ] }),
2484
- /* @__PURE__ */ n.jsx(rn, { categories: i.current.children })
2506
+ /* @__PURE__ */ n.jsx(rn, { categories: o.current.children })
2485
2507
  ] });
2486
2508
  }, dn = ({ category: e }) => /* @__PURE__ */ n.jsx(
2487
- rt,
2509
+ ot,
2488
2510
  {
2489
2511
  label: e.title ?? "",
2490
2512
  icon: /* @__PURE__ */ n.jsx(c, { name: "arrows/arrowRight", className: "-rotate-90" }),
@@ -2502,13 +2524,13 @@ const Kr = (e, t) => {
2502
2524
  )
2503
2525
  },
2504
2526
  children: /* @__PURE__ */ n.jsx("div", { className: "flex flex-col items-start justify-center gap-y-4", children: e.children.map((t) => {
2505
- var o;
2506
- const r = !!t.link, i = r ? "a" : "p";
2527
+ var i;
2528
+ const r = !!t.link, o = r ? "a" : "p";
2507
2529
  return /* @__PURE__ */ n.jsxs("ul", { className: "w-full list-none p-0", children: [
2508
2530
  /* @__PURE__ */ n.jsxs(
2509
- i,
2531
+ o,
2510
2532
  {
2511
- href: r ? (o = t.link) == null ? void 0 : o.href : void 0,
2533
+ href: r ? (i = t.link) == null ? void 0 : i.href : void 0,
2512
2534
  className: "mb-3 flex items-center gap-x-1 text-16 text-color-primary-default",
2513
2535
  children: [
2514
2536
  t.title,
@@ -2527,17 +2549,17 @@ const Kr = (e, t) => {
2527
2549
  ), an = (e) => e.map((t) => ({
2528
2550
  value: t.title ?? "",
2529
2551
  label: t.title ?? ""
2530
- })), ln = ({ categories: e, helpers: t, phone: r, ...i }) => {
2531
- const o = an(e), [d, l] = W(o[0]), u = (m) => {
2532
- s.isUndefined(m) || s.isArray(m) || l(m);
2533
- }, p = Nt(() => {
2552
+ })), ln = ({ categories: e, helpers: t, phone: r, ...o }) => {
2553
+ const i = an(e), [d, l] = G(i[0]), u = (m) => {
2554
+ k.isUndefined(m) || k.isArray(m) || l(m);
2555
+ }, p = st(() => {
2534
2556
  var m;
2535
- return s.isUndefined(d) || s.isArray(d) ? [] : ((m = e.find((x) => x.title === d.value)) == null ? void 0 : m.children) ?? [];
2557
+ return k.isUndefined(d) || k.isArray(d) ? [] : ((m = e.find((x) => x.title === d.value)) == null ? void 0 : m.children) ?? [];
2536
2558
  }, [d, e]);
2537
2559
  return /* @__PURE__ */ n.jsxs(
2538
- vt.div,
2560
+ Nt.div,
2539
2561
  {
2540
- ...i,
2562
+ ...o,
2541
2563
  className: a(
2542
2564
  "absolute w-full max-w-[calc(636px-32px)]",
2543
2565
  "absolute left-1/2 top-full bg-color-white p-4",
@@ -2547,10 +2569,10 @@ const Kr = (e, t) => {
2547
2569
  initial: { opacity: 0 },
2548
2570
  animate: { opacity: 1 },
2549
2571
  children: [
2550
- /* @__PURE__ */ n.jsx(Gt.SelectBase, { label: "Категория", options: o, value: d, onChange: u }),
2572
+ /* @__PURE__ */ n.jsx(Gt.SelectBase, { label: "Категория", options: i, value: d, onChange: u }),
2551
2573
  /* @__PURE__ */ n.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: p.map((m) => {
2552
2574
  var x;
2553
- return s.isArrayEmpty(m.children) ? /* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsx("a", { href: (x = m.link) == null ? void 0 : x.href, className: "desk-body-regular-m inline-block w-full", children: m.title }) }, m.title) : /* @__PURE__ */ n.jsx(dn, { category: m }, m.title);
2575
+ return k.isArrayEmpty(m.children) ? /* @__PURE__ */ n.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ n.jsx("a", { href: (x = m.link) == null ? void 0 : x.href, className: "desk-body-regular-m inline-block w-full", children: m.title }) }, m.title) : /* @__PURE__ */ n.jsx(dn, { category: m }, m.title);
2554
2576
  }) }),
2555
2577
  /* @__PURE__ */ n.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
2556
2578
  /* @__PURE__ */ n.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
@@ -2571,8 +2593,8 @@ const Kr = (e, t) => {
2571
2593
  );
2572
2594
  }, un = ({ categories: e, helpers: t, phone: r }) => {
2573
2595
  var p;
2574
- const i = Ct(null), o = (p = i.current) == null ? void 0 : p.getBoundingClientRect(), [d, l] = W(!1), u = () => l(!d);
2575
- return /* @__PURE__ */ n.jsxs("div", { ref: i, className: "relative flex w-full items-center justify-between border-b border-b-blue-grey-500 py-4", children: [
2596
+ const o = Ct(null), i = (p = o.current) == null ? void 0 : p.getBoundingClientRect(), [d, l] = G(!1), u = () => l(!d);
2597
+ 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: [
2576
2598
  /* @__PURE__ */ n.jsx(c, { name: "brandLogos/logoMain", className: "w-[130px]" }),
2577
2599
  /* @__PURE__ */ n.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ n.jsx(c, { name: d ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
2578
2600
  d && te(
@@ -2582,21 +2604,21 @@ const Kr = (e, t) => {
2582
2604
  categories: e,
2583
2605
  helpers: t,
2584
2606
  phone: r,
2585
- style: { top: o ? o.top + o.height : 0 }
2607
+ style: { top: i ? i.top + i.height : 0 }
2586
2608
  }
2587
2609
  ),
2588
2610
  document.body
2589
2611
  )
2590
2612
  ] });
2591
- }, Fn = ({ categories: e, helpers: t, phone: r }) => {
2592
- const { isMobile: i } = G();
2613
+ }, Bn = ({ categories: e, helpers: t, phone: r }) => {
2614
+ const { isMobile: o } = K();
2593
2615
  return /* @__PURE__ */ n.jsxs("div", { id: j.seoHeader, "data-test-id": j.seoHeader, className: "mx-auto w-full max-w-[1440px]", children: [
2594
- i ? /* @__PURE__ */ n.jsx(un, { categories: e.map((o) => o.children).flat(), helpers: t, phone: r }) : /* @__PURE__ */ n.jsx(on, { categories: e, helpers: t, phone: r }),
2616
+ o ? /* @__PURE__ */ n.jsx(un, { categories: e.map((i) => i.children).flat(), helpers: t, phone: r }) : /* @__PURE__ */ n.jsx(on, { categories: e, helpers: t, phone: r }),
2595
2617
  /* @__PURE__ */ n.jsx(
2596
2618
  Gr,
2597
2619
  {
2598
- ellipsis: i ? 1 : void 0,
2599
- matcher: (o) => ({ label: Ee(o.label).split("-").join(" ") })
2620
+ ellipsis: o ? 1 : void 0,
2621
+ matcher: (i) => ({ label: Ee(i.label).split("-").join(" ") })
2600
2622
  }
2601
2623
  )
2602
2624
  ] });
@@ -2604,21 +2626,21 @@ const Kr = (e, t) => {
2604
2626
  export {
2605
2627
  ee as Advantages,
2606
2628
  En as AuthProvider,
2607
- vn as Banner,
2629
+ Nn as Banner,
2608
2630
  _t as BannerWithSeparateImg,
2609
- kn as Benefit,
2631
+ wn as Benefit,
2610
2632
  Gr as Breadcrumbs,
2611
- X as ButtonWithHandlers,
2633
+ Y as ButtonWithHandlers,
2612
2634
  On as DynamicForm,
2613
2635
  Sn as FallbacksView,
2614
- Fr as FieldMapper,
2615
- Nn as Footer,
2636
+ Br as FieldMapper,
2637
+ sn as Footer,
2616
2638
  _r as HTMLParser,
2617
2639
  ft as HTMLRenderer,
2618
- wn as Header,
2640
+ vn as Header,
2619
2641
  In as InterLinking,
2620
2642
  Tn as LongBanner,
2621
- Fn as SeoHeader,
2643
+ Bn as SeoHeader,
2622
2644
  Cn as Stepper,
2623
2645
  Mn as UsefulInfo,
2624
2646
  Le as WIDGET_LIST,