@scbt-ecom/ui 0.78.10 → 0.79.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/widget.js CHANGED
@@ -1,37 +1,37 @@
1
1
  var Ft = Object.defineProperty;
2
- var Re = (t) => {
2
+ var He = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
5
  var Et = (t, e, o) => e in t ? Ft(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
6
- var ve = (t, e, o) => Et(t, typeof e != "symbol" ? e + "" : e, o), Ne = (t, e, o) => e.has(t) || Re("Cannot " + o);
7
- var h = (t, e, o) => (Ne(t, e, "read from private field"), o ? o.call(t) : e.get(t)), M = (t, e, o) => e.has(t) ? Re("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, o), k = (t, e, o, n) => (Ne(t, e, "write to private field"), n ? n.call(t, o) : e.set(t, o), o), W = (t, e, o) => (Ne(t, e, "access private method"), o);
6
+ var ve = (t, e, o) => Et(t, typeof e != "symbol" ? e + "" : e, o), Ne = (t, e, o) => e.has(t) || He("Cannot " + o);
7
+ var h = (t, e, o) => (Ne(t, e, "read from private field"), o ? o.call(t) : e.get(t)), M = (t, e, o) => e.has(t) ? He("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, o), w = (t, e, o, n) => (Ne(t, e, "write to private field"), n ? n.call(t, o) : e.set(t, o), o), W = (t, e, o) => (Ne(t, e, "access private method"), o);
8
8
  var ce = (t, e, o, n) => ({
9
9
  set _(i) {
10
- k(t, e, i, o);
10
+ w(t, e, i, o);
11
11
  },
12
12
  get _() {
13
13
  return h(t, e, n);
14
14
  }
15
15
  });
16
- import { S as ct, h as ft, Q as Bt, n as O, m as He, R as Pt, c as Dt, a as ze, b as V, e as Rt, d as Ht, f as zt, g as Lt, o as Le, r as Qe, i as Qt, j as Ve, p as $e, s as Vt, k as r, B as ge, l as E, q as F, P as bt, t as $t, H as L, I as b, C as je, u as _e, L as At, v as Te, A as ae, w as gt, x as qt, y as Wt, U as ye, D as Ut, z as Se, E as Kt, M as Zt } from "./index-03-Bjlyq.js";
16
+ import { S as ft, h as bt, Q as Bt, n as O, m as ze, R as Pt, c as Dt, a as Le, b as $, e as Rt, d as Ht, f as zt, g as Lt, o as Qe, r as Ve, i as Qt, j as $e, p as Ae, s as Vt, k as r, B as ge, l as E, q as F, P as gt, t as $t, H as Q, I as b, C as je, u as _e, L as At, v as Te, A as ae, w as jt, x as qt, y as Wt, U as ye, D as Ut, z as Se, E as Kt, M as Zt } from "./index-BatWr8jg.js";
17
17
  import { c as l, T as S } from "./typeGuards-CSiImkUY.js";
18
18
  import * as ue from "react";
19
- import { lazy as B, useCallback as jt, useState as A, useMemo as se, createElement as yt, useRef as Oe, useReducer as Xt, memo as Fe, forwardRef as Yt, useEffect as Ae } from "react";
20
- import { i as qe } from "./isClient-C9aZtt2Q.js";
19
+ import { lazy as B, useCallback as yt, useState as q, useMemo as se, createElement as Oe, useRef as Fe, useReducer as Xt, memo as Ee, forwardRef as Yt, useEffect as qe } from "react";
20
+ import { i as We } from "./isClient-C9aZtt2Q.js";
21
21
  import { s as Jt, c as ke, a as Gt } from "./capitalize-B7CPmCdk.js";
22
- import { u as ee, b as Ee, a as er, f as we, F as tr } from "./useDebounce-DcKs_mq9.js";
23
- import { z as st, Z as Be } from "./index-B6WYooej.js";
22
+ import { u as ee, b as Be, a as er, f as we, F as tr } from "./useDebounce-maGDilFr.js";
23
+ import { z as st, Z as Pe } from "./index-Dm9oKv1l.js";
24
24
  import { o as kt } from "./utils-Bu1Zg675.js";
25
- import { a as rr, u as nr } from "./useFieldsProgress-COFjjZK4.js";
25
+ import { a as rr, u as nr } from "./useFieldsProgress-egXj013a.js";
26
26
  import { createPortal as wt } from "react-dom";
27
- var R, mt, or = (mt = class extends ct {
27
+ var H, xt, or = (xt = class extends ft {
28
28
  constructor(e = {}) {
29
29
  super();
30
- M(this, R);
31
- this.config = e, k(this, R, /* @__PURE__ */ new Map());
30
+ M(this, H);
31
+ this.config = e, w(this, H, /* @__PURE__ */ new Map());
32
32
  }
33
33
  build(e, o, n) {
34
- const i = o.queryKey, a = o.queryHash ?? ft(i, o);
34
+ const i = o.queryKey, a = o.queryHash ?? bt(i, o);
35
35
  let d = this.get(a);
36
36
  return d || (d = new Bt({
37
37
  client: e,
@@ -43,14 +43,14 @@ var R, mt, or = (mt = class extends ct {
43
43
  }), this.add(d)), d;
44
44
  }
45
45
  add(e) {
46
- h(this, R).has(e.queryHash) || (h(this, R).set(e.queryHash, e), this.notify({
46
+ h(this, H).has(e.queryHash) || (h(this, H).set(e.queryHash, e), this.notify({
47
47
  type: "added",
48
48
  query: e
49
49
  }));
50
50
  }
51
51
  remove(e) {
52
- const o = h(this, R).get(e.queryHash);
53
- o && (e.destroy(), o === e && h(this, R).delete(e.queryHash), this.notify({ type: "removed", query: e }));
52
+ const o = h(this, H).get(e.queryHash);
53
+ o && (e.destroy(), o === e && h(this, H).delete(e.queryHash), this.notify({ type: "removed", query: e }));
54
54
  }
55
55
  clear() {
56
56
  O.batch(() => {
@@ -60,20 +60,20 @@ var R, mt, or = (mt = class extends ct {
60
60
  });
61
61
  }
62
62
  get(e) {
63
- return h(this, R).get(e);
63
+ return h(this, H).get(e);
64
64
  }
65
65
  getAll() {
66
- return [...h(this, R).values()];
66
+ return [...h(this, H).values()];
67
67
  }
68
68
  find(e) {
69
69
  const o = { exact: !0, ...e };
70
70
  return this.getAll().find(
71
- (n) => He(o, n)
71
+ (n) => ze(o, n)
72
72
  );
73
73
  }
74
74
  findAll(e = {}) {
75
75
  const o = this.getAll();
76
- return Object.keys(e).length > 0 ? o.filter((n) => He(e, n)) : o;
76
+ return Object.keys(e).length > 0 ? o.filter((n) => ze(e, n)) : o;
77
77
  }
78
78
  notify(e) {
79
79
  O.batch(() => {
@@ -96,14 +96,14 @@ var R, mt, or = (mt = class extends ct {
96
96
  });
97
97
  });
98
98
  }
99
- }, R = new WeakMap(), mt), H, T, G, z, U, xt, ir = (xt = class extends Pt {
99
+ }, H = new WeakMap(), xt), z, T, G, L, U, ht, ir = (ht = class extends Pt {
100
100
  constructor(e) {
101
101
  super();
102
+ M(this, L);
102
103
  M(this, z);
103
- M(this, H);
104
104
  M(this, T);
105
105
  M(this, G);
106
- this.mutationId = e.mutationId, k(this, T, e.mutationCache), k(this, H, []), this.state = e.state || ar(), this.setOptions(e.options), this.scheduleGc();
106
+ this.mutationId = e.mutationId, w(this, T, e.mutationCache), w(this, z, []), this.state = e.state || ar(), this.setOptions(e.options), this.scheduleGc();
107
107
  }
108
108
  setOptions(e) {
109
109
  this.options = e, this.updateGcTime(this.options.gcTime);
@@ -112,21 +112,21 @@ var R, mt, or = (mt = class extends ct {
112
112
  return this.options.meta;
113
113
  }
114
114
  addObserver(e) {
115
- h(this, H).includes(e) || (h(this, H).push(e), this.clearGcTimeout(), h(this, T).notify({
115
+ h(this, z).includes(e) || (h(this, z).push(e), this.clearGcTimeout(), h(this, T).notify({
116
116
  type: "observerAdded",
117
117
  mutation: this,
118
118
  observer: e
119
119
  }));
120
120
  }
121
121
  removeObserver(e) {
122
- k(this, H, h(this, H).filter((o) => o !== e)), this.scheduleGc(), h(this, T).notify({
122
+ w(this, z, h(this, z).filter((o) => o !== e)), this.scheduleGc(), h(this, T).notify({
123
123
  type: "observerRemoved",
124
124
  mutation: this,
125
125
  observer: e
126
126
  });
127
127
  }
128
128
  optionalRemove() {
129
- h(this, H).length || (this.state.status === "pending" ? this.scheduleGc() : h(this, T).remove(this));
129
+ h(this, z).length || (this.state.status === "pending" ? this.scheduleGc() : h(this, T).remove(this));
130
130
  }
131
131
  continue() {
132
132
  var e;
@@ -134,17 +134,17 @@ var R, mt, or = (mt = class extends ct {
134
134
  this.execute(this.state.variables);
135
135
  }
136
136
  async execute(e) {
137
- var a, d, u, m, x, p, c, g, f, w, j, v, _, q, C, I, D, Q, he, le;
137
+ var a, d, u, m, x, p, c, g, f, v, j, k, _, D, C, I, R, V, he, le;
138
138
  const o = () => {
139
- W(this, z, U).call(this, { type: "continue" });
139
+ W(this, L, U).call(this, { type: "continue" });
140
140
  };
141
- k(this, G, Dt({
141
+ w(this, G, Dt({
142
142
  fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
143
143
  onFail: (N, pe) => {
144
- W(this, z, U).call(this, { type: "failed", failureCount: N, error: pe });
144
+ W(this, L, U).call(this, { type: "failed", failureCount: N, error: pe });
145
145
  },
146
146
  onPause: () => {
147
- W(this, z, U).call(this, { type: "pause" });
147
+ W(this, L, U).call(this, { type: "pause" });
148
148
  },
149
149
  onContinue: o,
150
150
  retry: this.options.retry ?? 0,
@@ -157,13 +157,13 @@ var R, mt, or = (mt = class extends ct {
157
157
  if (n)
158
158
  o();
159
159
  else {
160
- W(this, z, U).call(this, { type: "pending", variables: e, isPaused: i }), await ((d = (a = h(this, T).config).onMutate) == null ? void 0 : d.call(
160
+ W(this, L, U).call(this, { type: "pending", variables: e, isPaused: i }), await ((d = (a = h(this, T).config).onMutate) == null ? void 0 : d.call(
161
161
  a,
162
162
  e,
163
163
  this
164
164
  ));
165
165
  const pe = await ((m = (u = this.options).onMutate) == null ? void 0 : m.call(u, e));
166
- pe !== this.state.context && W(this, z, U).call(this, {
166
+ pe !== this.state.context && W(this, L, U).call(this, {
167
167
  type: "pending",
168
168
  context: pe,
169
169
  variables: e,
@@ -177,17 +177,17 @@ var R, mt, or = (mt = class extends ct {
177
177
  e,
178
178
  this.state.context,
179
179
  this
180
- )), await ((g = (c = this.options).onSuccess) == null ? void 0 : g.call(c, N, e, this.state.context)), await ((w = (f = h(this, T).config).onSettled) == null ? void 0 : w.call(
180
+ )), await ((g = (c = this.options).onSuccess) == null ? void 0 : g.call(c, N, e, this.state.context)), await ((v = (f = h(this, T).config).onSettled) == null ? void 0 : v.call(
181
181
  f,
182
182
  N,
183
183
  null,
184
184
  this.state.variables,
185
185
  this.state.context,
186
186
  this
187
- )), await ((v = (j = this.options).onSettled) == null ? void 0 : v.call(j, N, null, e, this.state.context)), W(this, z, U).call(this, { type: "success", data: N }), N;
187
+ )), await ((k = (j = this.options).onSettled) == null ? void 0 : k.call(j, N, null, e, this.state.context)), W(this, L, U).call(this, { type: "success", data: N }), N;
188
188
  } catch (N) {
189
189
  try {
190
- throw await ((q = (_ = h(this, T).config).onError) == null ? void 0 : q.call(
190
+ throw await ((D = (_ = h(this, T).config).onError) == null ? void 0 : D.call(
191
191
  _,
192
192
  N,
193
193
  e,
@@ -198,8 +198,8 @@ var R, mt, or = (mt = class extends ct {
198
198
  N,
199
199
  e,
200
200
  this.state.context
201
- )), await ((Q = (D = h(this, T).config).onSettled) == null ? void 0 : Q.call(
202
- D,
201
+ )), await ((V = (R = h(this, T).config).onSettled) == null ? void 0 : V.call(
202
+ R,
203
203
  void 0,
204
204
  N,
205
205
  this.state.variables,
@@ -213,13 +213,13 @@ var R, mt, or = (mt = class extends ct {
213
213
  this.state.context
214
214
  )), N;
215
215
  } finally {
216
- W(this, z, U).call(this, { type: "error", error: N });
216
+ W(this, L, U).call(this, { type: "error", error: N });
217
217
  }
218
218
  } finally {
219
219
  h(this, T).runNext(this);
220
220
  }
221
221
  }
222
- }, H = new WeakMap(), T = new WeakMap(), G = new WeakMap(), z = new WeakSet(), U = function(e) {
222
+ }, z = new WeakMap(), T = new WeakMap(), G = new WeakMap(), L = new WeakSet(), U = function(e) {
223
223
  const o = (n) => {
224
224
  switch (e.type) {
225
225
  case "failed":
@@ -274,7 +274,7 @@ var R, mt, or = (mt = class extends ct {
274
274
  }
275
275
  };
276
276
  this.state = o(this.state), O.batch(() => {
277
- h(this, H).forEach((n) => {
277
+ h(this, z).forEach((n) => {
278
278
  n.onMutationUpdate(e);
279
279
  }), h(this, T).notify({
280
280
  mutation: this,
@@ -282,7 +282,7 @@ var R, mt, or = (mt = class extends ct {
282
282
  action: e
283
283
  });
284
284
  });
285
- }, xt);
285
+ }, ht);
286
286
  function ar() {
287
287
  return {
288
288
  context: void 0,
@@ -296,13 +296,13 @@ function ar() {
296
296
  submittedAt: 0
297
297
  };
298
298
  }
299
- var $, P, xe, ht, lr = (ht = class extends ct {
299
+ var A, P, xe, pt, lr = (pt = class extends ft {
300
300
  constructor(e = {}) {
301
301
  super();
302
- M(this, $);
302
+ M(this, A);
303
303
  M(this, P);
304
304
  M(this, xe);
305
- this.config = e, k(this, $, /* @__PURE__ */ new Set()), k(this, P, /* @__PURE__ */ new Map()), k(this, xe, 0);
305
+ this.config = e, w(this, A, /* @__PURE__ */ new Set()), w(this, P, /* @__PURE__ */ new Map()), w(this, xe, 0);
306
306
  }
307
307
  build(e, o, n) {
308
308
  const i = new ir({
@@ -314,7 +314,7 @@ var $, P, xe, ht, lr = (ht = class extends ct {
314
314
  return this.add(i), i;
315
315
  }
316
316
  add(e) {
317
- h(this, $).add(e);
317
+ h(this, A).add(e);
318
318
  const o = fe(e);
319
319
  if (typeof o == "string") {
320
320
  const n = h(this, P).get(o);
@@ -323,7 +323,7 @@ var $, P, xe, ht, lr = (ht = class extends ct {
323
323
  this.notify({ type: "added", mutation: e });
324
324
  }
325
325
  remove(e) {
326
- if (h(this, $).delete(e)) {
326
+ if (h(this, A).delete(e)) {
327
327
  const o = fe(e);
328
328
  if (typeof o == "string") {
329
329
  const n = h(this, P).get(o);
@@ -357,22 +357,22 @@ var $, P, xe, ht, lr = (ht = class extends ct {
357
357
  }
358
358
  clear() {
359
359
  O.batch(() => {
360
- h(this, $).forEach((e) => {
360
+ h(this, A).forEach((e) => {
361
361
  this.notify({ type: "removed", mutation: e });
362
- }), h(this, $).clear(), h(this, P).clear();
362
+ }), h(this, A).clear(), h(this, P).clear();
363
363
  });
364
364
  }
365
365
  getAll() {
366
- return Array.from(h(this, $));
366
+ return Array.from(h(this, A));
367
367
  }
368
368
  find(e) {
369
369
  const o = { exact: !0, ...e };
370
370
  return this.getAll().find(
371
- (n) => ze(o, n)
371
+ (n) => Le(o, n)
372
372
  );
373
373
  }
374
374
  findAll(e = {}) {
375
- return this.getAll().filter((o) => ze(e, o));
375
+ return this.getAll().filter((o) => Le(e, o));
376
376
  }
377
377
  notify(e) {
378
378
  O.batch(() => {
@@ -385,71 +385,71 @@ var $, P, xe, ht, lr = (ht = class extends ct {
385
385
  const e = this.getAll().filter((o) => o.state.isPaused);
386
386
  return O.batch(
387
387
  () => Promise.all(
388
- e.map((o) => o.continue().catch(V))
388
+ e.map((o) => o.continue().catch($))
389
389
  )
390
390
  );
391
391
  }
392
- }, $ = new WeakMap(), P = new WeakMap(), xe = new WeakMap(), ht);
392
+ }, A = new WeakMap(), P = new WeakMap(), xe = new WeakMap(), pt);
393
393
  function fe(t) {
394
394
  var e;
395
395
  return (e = t.options.scope) == null ? void 0 : e.id;
396
396
  }
397
- function We(t) {
397
+ function Ue(t) {
398
398
  return {
399
399
  onFetch: (e, o) => {
400
- var p, c, g, f, w;
401
- const n = e.options, i = (g = (c = (p = e.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : g.direction, a = ((f = e.state.data) == null ? void 0 : f.pages) || [], d = ((w = e.state.data) == null ? void 0 : w.pageParams) || [];
400
+ var p, c, g, f, v;
401
+ const n = e.options, i = (g = (c = (p = e.fetchOptions) == null ? void 0 : p.meta) == null ? void 0 : c.fetchMore) == null ? void 0 : g.direction, a = ((f = e.state.data) == null ? void 0 : f.pages) || [], d = ((v = e.state.data) == null ? void 0 : v.pageParams) || [];
402
402
  let u = { pages: [], pageParams: [] }, m = 0;
403
403
  const x = async () => {
404
404
  let j = !1;
405
- const v = (C) => {
405
+ const k = (C) => {
406
406
  Object.defineProperty(C, "signal", {
407
407
  enumerable: !0,
408
408
  get: () => (e.signal.aborted ? j = !0 : e.signal.addEventListener("abort", () => {
409
409
  j = !0;
410
410
  }), e.signal)
411
411
  });
412
- }, _ = Rt(e.options, e.fetchOptions), q = async (C, I, D) => {
412
+ }, _ = Rt(e.options, e.fetchOptions), D = async (C, I, R) => {
413
413
  if (j)
414
414
  return Promise.reject();
415
415
  if (I == null && C.pages.length)
416
416
  return Promise.resolve(C);
417
- const Q = {
417
+ const V = {
418
418
  client: e.client,
419
419
  queryKey: e.queryKey,
420
420
  pageParam: I,
421
- direction: D ? "backward" : "forward",
421
+ direction: R ? "backward" : "forward",
422
422
  meta: e.options.meta
423
423
  };
424
- v(Q);
424
+ k(V);
425
425
  const he = await _(
426
- Q
427
- ), { maxPages: le } = e.options, N = D ? Ht : zt;
426
+ V
427
+ ), { maxPages: le } = e.options, N = R ? Ht : zt;
428
428
  return {
429
429
  pages: N(C.pages, he, le),
430
430
  pageParams: N(C.pageParams, I, le)
431
431
  };
432
432
  };
433
433
  if (i && a.length) {
434
- const C = i === "backward", I = C ? dr : Ue, D = {
434
+ const C = i === "backward", I = C ? dr : Ke, R = {
435
435
  pages: a,
436
436
  pageParams: d
437
- }, Q = I(n, D);
438
- u = await q(D, Q, C);
437
+ }, V = I(n, R);
438
+ u = await D(R, V, C);
439
439
  } else {
440
440
  const C = t ?? a.length;
441
441
  do {
442
- const I = m === 0 ? d[0] ?? n.initialPageParam : Ue(n, u);
442
+ const I = m === 0 ? d[0] ?? n.initialPageParam : Ke(n, u);
443
443
  if (m > 0 && I == null)
444
444
  break;
445
- u = await q(u, I), m++;
445
+ u = await D(u, I), m++;
446
446
  } while (m < C);
447
447
  }
448
448
  return u;
449
449
  };
450
450
  e.options.persister ? e.fetchFn = () => {
451
- var j, v;
452
- return (v = (j = e.options).persister) == null ? void 0 : v.call(
451
+ var j, k;
452
+ return (k = (j = e.options).persister) == null ? void 0 : k.call(
453
453
  j,
454
454
  x,
455
455
  {
@@ -464,7 +464,7 @@ function We(t) {
464
464
  }
465
465
  };
466
466
  }
467
- function Ue(t, { pages: e, pageParams: o }) {
467
+ function Ke(t, { pages: e, pageParams: o }) {
468
468
  const n = e.length - 1;
469
469
  return e.length > 0 ? t.getNextPageParam(
470
470
  e[n],
@@ -477,7 +477,7 @@ function dr(t, { pages: e, pageParams: o }) {
477
477
  var n;
478
478
  return e.length > 0 ? (n = t.getPreviousPageParam) == null ? void 0 : n.call(t, e[0], e, o[0], o) : void 0;
479
479
  }
480
- var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
480
+ var s, K, Z, te, re, X, ne, oe, ct, ur = (ct = class {
481
481
  constructor(t = {}) {
482
482
  M(this, s);
483
483
  M(this, K);
@@ -487,18 +487,18 @@ var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
487
487
  M(this, X);
488
488
  M(this, ne);
489
489
  M(this, oe);
490
- k(this, s, t.queryCache || new or()), k(this, K, t.mutationCache || new lr()), k(this, Z, t.defaultOptions || {}), k(this, te, /* @__PURE__ */ new Map()), k(this, re, /* @__PURE__ */ new Map()), k(this, X, 0);
490
+ w(this, s, t.queryCache || new or()), w(this, K, t.mutationCache || new lr()), w(this, Z, t.defaultOptions || {}), w(this, te, /* @__PURE__ */ new Map()), w(this, re, /* @__PURE__ */ new Map()), w(this, X, 0);
491
491
  }
492
492
  mount() {
493
- ce(this, X)._++, h(this, X) === 1 && (k(this, ne, Lt.subscribe(async (t) => {
493
+ ce(this, X)._++, h(this, X) === 1 && (w(this, ne, Lt.subscribe(async (t) => {
494
494
  t && (await this.resumePausedMutations(), h(this, s).onFocus());
495
- })), k(this, oe, Le.subscribe(async (t) => {
495
+ })), w(this, oe, Qe.subscribe(async (t) => {
496
496
  t && (await this.resumePausedMutations(), h(this, s).onOnline());
497
497
  })));
498
498
  }
499
499
  unmount() {
500
500
  var t, e;
501
- ce(this, X)._--, h(this, X) === 0 && ((t = h(this, ne)) == null || t.call(this), k(this, ne, void 0), (e = h(this, oe)) == null || e.call(this), k(this, oe, void 0));
501
+ ce(this, X)._--, h(this, X) === 0 && ((t = h(this, ne)) == null || t.call(this), w(this, ne, void 0), (e = h(this, oe)) == null || e.call(this), w(this, oe, void 0));
502
502
  }
503
503
  isFetching(t) {
504
504
  return h(this, s).findAll({ ...t, fetchStatus: "fetching" }).length;
@@ -520,7 +520,7 @@ var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
520
520
  }
521
521
  ensureQueryData(t) {
522
522
  const e = this.defaultQueryOptions(t), o = h(this, s).build(this, e), n = o.state.data;
523
- return n === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && o.isStaleByTime(Qe(e.staleTime, o)) && this.prefetchQuery(e), Promise.resolve(n));
523
+ return n === void 0 ? this.fetchQuery(t) : (t.revalidateIfStale && o.isStaleByTime(Ve(e.staleTime, o)) && this.prefetchQuery(e), Promise.resolve(n));
524
524
  }
525
525
  getQueriesData(t) {
526
526
  return h(this, s).findAll(t).map(({ queryKey: e, state: o }) => {
@@ -574,7 +574,7 @@ var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
574
574
  const o = { revert: !0, ...e }, n = O.batch(
575
575
  () => h(this, s).findAll(t).map((i) => i.cancel(o))
576
576
  );
577
- return Promise.all(n).then(V).catch(V);
577
+ return Promise.all(n).then($).catch($);
578
578
  }
579
579
  invalidateQueries(t, e = {}) {
580
580
  return O.batch(() => (h(this, s).findAll(t).forEach((o) => {
@@ -594,33 +594,33 @@ var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
594
594
  }, n = O.batch(
595
595
  () => h(this, s).findAll(t).filter((i) => !i.isDisabled() && !i.isStatic()).map((i) => {
596
596
  let a = i.fetch(void 0, o);
597
- return o.throwOnError || (a = a.catch(V)), i.state.fetchStatus === "paused" ? Promise.resolve() : a;
597
+ return o.throwOnError || (a = a.catch($)), i.state.fetchStatus === "paused" ? Promise.resolve() : a;
598
598
  })
599
599
  );
600
- return Promise.all(n).then(V);
600
+ return Promise.all(n).then($);
601
601
  }
602
602
  fetchQuery(t) {
603
603
  const e = this.defaultQueryOptions(t);
604
604
  e.retry === void 0 && (e.retry = !1);
605
605
  const o = h(this, s).build(this, e);
606
606
  return o.isStaleByTime(
607
- Qe(e.staleTime, o)
607
+ Ve(e.staleTime, o)
608
608
  ) ? o.fetch(e) : Promise.resolve(o.state.data);
609
609
  }
610
610
  prefetchQuery(t) {
611
- return this.fetchQuery(t).then(V).catch(V);
611
+ return this.fetchQuery(t).then($).catch($);
612
612
  }
613
613
  fetchInfiniteQuery(t) {
614
- return t.behavior = We(t.pages), this.fetchQuery(t);
614
+ return t.behavior = Ue(t.pages), this.fetchQuery(t);
615
615
  }
616
616
  prefetchInfiniteQuery(t) {
617
- return this.fetchInfiniteQuery(t).then(V).catch(V);
617
+ return this.fetchInfiniteQuery(t).then($).catch($);
618
618
  }
619
619
  ensureInfiniteQueryData(t) {
620
- return t.behavior = We(t.pages), this.ensureQueryData(t);
620
+ return t.behavior = Ue(t.pages), this.ensureQueryData(t);
621
621
  }
622
622
  resumePausedMutations() {
623
- return Le.isOnline() ? h(this, K).resumePausedMutations() : Promise.resolve();
623
+ return Qe.isOnline() ? h(this, K).resumePausedMutations() : Promise.resolve();
624
624
  }
625
625
  getQueryCache() {
626
626
  return h(this, s);
@@ -632,10 +632,10 @@ var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
632
632
  return h(this, Z);
633
633
  }
634
634
  setDefaultOptions(t) {
635
- k(this, Z, t);
635
+ w(this, Z, t);
636
636
  }
637
637
  setQueryDefaults(t, e) {
638
- h(this, te).set(Ve(t), {
638
+ h(this, te).set($e(t), {
639
639
  queryKey: t,
640
640
  defaultOptions: e
641
641
  });
@@ -643,11 +643,11 @@ var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
643
643
  getQueryDefaults(t) {
644
644
  const e = [...h(this, te).values()], o = {};
645
645
  return e.forEach((n) => {
646
- $e(t, n.queryKey) && Object.assign(o, n.defaultOptions);
646
+ Ae(t, n.queryKey) && Object.assign(o, n.defaultOptions);
647
647
  }), o;
648
648
  }
649
649
  setMutationDefaults(t, e) {
650
- h(this, re).set(Ve(t), {
650
+ h(this, re).set($e(t), {
651
651
  mutationKey: t,
652
652
  defaultOptions: e
653
653
  });
@@ -655,7 +655,7 @@ var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
655
655
  getMutationDefaults(t) {
656
656
  const e = [...h(this, re).values()], o = {};
657
657
  return e.forEach((n) => {
658
- $e(t, n.mutationKey) && Object.assign(o, n.defaultOptions);
658
+ Ae(t, n.mutationKey) && Object.assign(o, n.defaultOptions);
659
659
  }), o;
660
660
  }
661
661
  defaultQueryOptions(t) {
@@ -667,7 +667,7 @@ var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
667
667
  ...t,
668
668
  _defaulted: !0
669
669
  };
670
- return e.queryHash || (e.queryHash = ft(
670
+ return e.queryHash || (e.queryHash = bt(
671
671
  e.queryKey,
672
672
  e
673
673
  )), e.refetchOnReconnect === void 0 && (e.refetchOnReconnect = e.networkMode !== "always"), e.throwOnError === void 0 && (e.throwOnError = !!e.suspense), !e.networkMode && e.persister && (e.networkMode = "offlineFirst"), e.queryFn === Vt && (e.enabled = !1), e;
@@ -683,7 +683,7 @@ var s, K, Z, te, re, X, ne, oe, pt, ur = (pt = class {
683
683
  clear() {
684
684
  h(this, s).clear(), h(this, K).clear();
685
685
  }
686
- }, s = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), te = new WeakMap(), re = new WeakMap(), X = new WeakMap(), ne = new WeakMap(), oe = new WeakMap(), pt);
686
+ }, s = new WeakMap(), K = new WeakMap(), Z = new WeakMap(), te = new WeakMap(), re = new WeakMap(), X = new WeakMap(), ne = new WeakMap(), oe = new WeakMap(), ct);
687
687
  const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resolve().then(() => yo)), hr = B(() => Promise.resolve().then(() => En)), pr = B(() => Promise.resolve().then(() => Pn)), cr = B(() => Promise.resolve().then(() => Lr)), fr = B(() => Promise.resolve().then(() => Sr)), br = B(() => Promise.resolve().then(() => tn)), gr = B(() => Promise.resolve().then(() => Zr)), jr = B(() => Promise.resolve().then(() => Gn)), yr = B(() => Promise.resolve().then(() => Vr)), sr = B(() => Promise.resolve().then(() => Nn)), kr = B(() => Promise.resolve().then(() => _r)), wr = {
688
688
  header: fr,
689
689
  seoHeader: jr,
@@ -700,11 +700,11 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
700
700
  }, vr = Object.keys(wr), y = vr.reduce(
701
701
  (t, e) => (t[e] = e, t),
702
702
  {}
703
- ), Nr = (t) => jt(() => {
703
+ ), Nr = (t) => yt(() => {
704
704
  switch (t.handler) {
705
705
  case "navigate": {
706
706
  const { url: o, target: n, rel: i } = t;
707
- qe && (window == null || window.open(o, n, i));
707
+ We && (window == null || window.open(o, n, i));
708
708
  break;
709
709
  }
710
710
  case "scroll": {
@@ -713,7 +713,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
713
713
  break;
714
714
  }
715
715
  case "dialog": {
716
- if (!qe) return;
716
+ if (!We) return;
717
717
  const { dialogId: o } = t ?? {}, n = document.getElementById(o);
718
718
  if (!n) {
719
719
  console.error("Такого элемента в DOM не существует", o);
@@ -780,7 +780,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
780
780
  fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
781
781
  }
782
782
  }
783
- }), Ke = ({ headline: t, details: e, variant: o, classes: n }) => /* @__PURE__ */ r.jsx("section", { id: y.benefit, "data-test-id": y.benefit, className: l("pb-20", n == null ? void 0 : n.root), children: /* @__PURE__ */ r.jsxs(F, { className: n == null ? void 0 : n.container, children: [
783
+ }), Ze = ({ headline: t, details: e, variant: o, classes: n }) => /* @__PURE__ */ r.jsx("section", { id: y.benefit, "data-test-id": y.benefit, className: l("pb-20", n == null ? void 0 : n.root), children: /* @__PURE__ */ r.jsxs(F, { className: n == null ? void 0 : n.container, children: [
784
784
  /* @__PURE__ */ r.jsx(
785
785
  "div",
786
786
  {
@@ -791,18 +791,18 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
791
791
  /* @__PURE__ */ r.jsx("ul", { className: l(Ir({ variant: o }), n == null ? void 0 : n.grid), children: e == null ? void 0 : e.map((i) => /* @__PURE__ */ r.jsx(Mr, { variant: o, classes: n == null ? void 0 : n.item, ...i }, i.title)) })
792
792
  ] }) }), _r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
793
793
  __proto__: null,
794
- Benefit: Ke,
795
- default: Ke
794
+ Benefit: Ze,
795
+ default: Ze
796
796
  }, Symbol.toStringTag, { value: "Module" })), Tr = ({ variant: t, details: e }) => {
797
797
  switch (t) {
798
798
  case "withButton":
799
799
  return /* @__PURE__ */ r.jsx(Y, { ...e });
800
800
  case "withPhone":
801
- return /* @__PURE__ */ r.jsx(bt, { classes: { root: "items-end" }, ...e, phone: ke(e.phone) });
801
+ return /* @__PURE__ */ r.jsx(gt, { classes: { root: "items-end" }, ...e, phone: ke(e.phone) });
802
802
  default:
803
803
  return null;
804
804
  }
805
- }, Ze = (t) => {
805
+ }, Xe = (t) => {
806
806
  const { logoPath: e = "/", logoType: o = "main", classes: n } = t;
807
807
  return /* @__PURE__ */ r.jsx(
808
808
  "header",
@@ -831,8 +831,8 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
831
831
  );
832
832
  }, Sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
833
833
  __proto__: null,
834
- Header: Ze,
835
- default: Ze
834
+ Header: Xe,
835
+ default: Xe
836
836
  }, Symbol.toStringTag, { value: "Module" })), Or = ({
837
837
  headTitle: t,
838
838
  subtitle: e,
@@ -845,15 +845,15 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
845
845
  color: m,
846
846
  renderImage: x
847
847
  }) => {
848
- var v;
849
- const { isDesktop: p, isMobile: c } = ee(), { primary: g, secondary: f } = o || {}, w = (_) => x ? x(_) : /* @__PURE__ */ r.jsx("img", { ..._ }), j = /* @__PURE__ */ r.jsx(
848
+ var k;
849
+ const { isDesktop: p, isMobile: c } = ee(), { primary: g, secondary: f } = o || {}, v = (_) => x ? x(_) : /* @__PURE__ */ r.jsx("img", { ..._ }), j = /* @__PURE__ */ r.jsx(
850
850
  "div",
851
851
  {
852
852
  className: l(
853
853
  "flex items-center justify-center pt-4 desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:translate-x-1/2 desktop:pt-0",
854
854
  i == null ? void 0 : i.advantageContainer
855
855
  ),
856
- children: (n == null ? void 0 : n.details) && ((v = n == null ? void 0 : n.details) == null ? void 0 : v.items.length) > 0 && /* @__PURE__ */ r.jsx(Ie, { ...n })
856
+ children: (n == null ? void 0 : n.details) && ((k = n == null ? void 0 : n.details) == null ? void 0 : k.items.length) > 0 && /* @__PURE__ */ r.jsx(Ie, { ...n })
857
857
  }
858
858
  );
859
859
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
@@ -865,7 +865,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
865
865
  style: { backgroundColor: m ?? "#d9edff" },
866
866
  className: l("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
867
867
  children: [
868
- /* @__PURE__ */ r.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: w(c ? { src: a.src, alt: u, className: l("h-full w-full object-cover object-center") } : {
868
+ /* @__PURE__ */ r.jsx("div", { className: "absolute bottom-0 left-0 right-0 top-0 mx-auto h-full max-w-[1920px] desktop:h-[456px]", children: v(c ? { src: a.src, alt: u, className: l("h-full w-full object-cover object-center") } : {
869
869
  src: d.src,
870
870
  alt: u,
871
871
  className: l("h-full w-full object-cover object-center")
@@ -925,7 +925,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
925
925
  ),
926
926
  c && (n == null ? void 0 : n.enabled) && j
927
927
  ] });
928
- }, Xe = ({
928
+ }, Ye = ({
929
929
  headTitle: t,
930
930
  subtitle: e,
931
931
  buttonsConfig: o,
@@ -937,8 +937,8 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
937
937
  color: m,
938
938
  renderImage: x
939
939
  }) => {
940
- var w, j;
941
- const { isMobile: p } = ee(), { primary: c, secondary: g } = o || {}, f = (v) => x ? x(v) : /* @__PURE__ */ r.jsx("img", { ...v });
940
+ var v, j;
941
+ const { isMobile: p } = ee(), { primary: c, secondary: g } = o || {}, f = (k) => x ? x(k) : /* @__PURE__ */ r.jsx("img", { ...k });
942
942
  return /* @__PURE__ */ r.jsxs(
943
943
  "section",
944
944
  {
@@ -970,7 +970,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
970
970
  "div",
971
971
  {
972
972
  className: l(
973
- "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",
973
+ "grid-buttons-apply absolute bottom-6 left-1/2 z-10 flex w-full -translate-x-1/2 flex-col justify-self-center px-4 desktop:static desktop:left-auto desktop:max-w-full desktop:translate-x-0 desktop:flex-row desktop:justify-normal desktop:px-0",
974
974
  { "flex items-center gap-4": g == null ? void 0 : g.enabled },
975
975
  i == null ? void 0 : i.group
976
976
  ),
@@ -1015,7 +1015,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1015
1015
  "items-center justify-center rounded-md p-4 pb-8 mobile:hidden desktop:absolute desktop:bottom-[-50px] desktop:right-1/2 desktop:flex desktop:translate-x-1/2 desktop:p-0",
1016
1016
  i == null ? void 0 : i.advantageContainer
1017
1017
  ),
1018
- children: (n == null ? void 0 : n.details) && ((w = n == null ? void 0 : n.details) == null ? void 0 : w.items.length) > 0 && /* @__PURE__ */ r.jsx(Ie, { ...n })
1018
+ children: (n == null ? void 0 : n.details) && ((v = n == null ? void 0 : n.details) == null ? void 0 : v.items.length) > 0 && /* @__PURE__ */ r.jsx(Ie, { ...n })
1019
1019
  }
1020
1020
  )
1021
1021
  ] }),
@@ -1032,19 +1032,19 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1032
1032
  ]
1033
1033
  }
1034
1034
  );
1035
- }, Ye = ({ variant: t, ...e }) => {
1035
+ }, Je = ({ variant: t, ...e }) => {
1036
1036
  switch (t) {
1037
1037
  case "separateImg":
1038
- return /* @__PURE__ */ r.jsx(Xe, { ...e });
1038
+ return /* @__PURE__ */ r.jsx(Ye, { ...e });
1039
1039
  case "fullImg":
1040
1040
  return /* @__PURE__ */ r.jsx(Or, { ...e });
1041
1041
  default:
1042
- return /* @__PURE__ */ r.jsx(Xe, { ...e });
1042
+ return /* @__PURE__ */ r.jsx(Ye, { ...e });
1043
1043
  }
1044
1044
  }, Fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1045
1045
  __proto__: null,
1046
- Banner: Ye,
1047
- default: Ye
1046
+ Banner: Je,
1047
+ default: Je
1048
1048
  }, Symbol.toStringTag, { value: "Module" })), Ie = ({ details: t, classes: e }) => {
1049
1049
  const { variant: o, items: n } = t ?? {};
1050
1050
  return /* @__PURE__ */ r.jsx(
@@ -1065,7 +1065,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1065
1065
  e == null ? void 0 : e.item
1066
1066
  ),
1067
1067
  children: [
1068
- /* @__PURE__ */ r.jsx(L, { as: "h4", className: l("text-color-dark", e == null ? void 0 : e.title), children: i }),
1068
+ /* @__PURE__ */ r.jsx(Q, { as: "h4", className: l("text-color-dark", e == null ? void 0 : e.title), children: i }),
1069
1069
  /* @__PURE__ */ r.jsx("p", { className: l("desk-body-regular-l text-color-secondary", e == null ? void 0 : e.description), children: a })
1070
1070
  ]
1071
1071
  },
@@ -1083,7 +1083,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1083
1083
  },
1084
1084
  n
1085
1085
  )) }), Br = ({ phones: t, classes: e }) => /* @__PURE__ */ r.jsx("div", { className: l("flex flex-col gap-4 desktop:items-end", e == null ? void 0 : e.phonesRoot), children: t == null ? void 0 : t.map(({ phone: o, text: n }) => /* @__PURE__ */ r.jsx(
1086
- bt,
1086
+ gt,
1087
1087
  {
1088
1088
  phone: ke(o),
1089
1089
  text: n,
@@ -1177,7 +1177,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1177
1177
  }
1178
1178
  )
1179
1179
  ] });
1180
- }, Je = ({
1180
+ }, Ge = ({
1181
1181
  socialsLinks: t,
1182
1182
  phones: e,
1183
1183
  ligal: o,
@@ -1227,8 +1227,8 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1227
1227
  }
1228
1228
  ), Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1229
1229
  __proto__: null,
1230
- Footer: Je,
1231
- default: Je
1230
+ Footer: Ge,
1231
+ default: Ge
1232
1232
  }, Symbol.toStringTag, { value: "Module" })), Qr = ({ classes: t, index: e, variant: o, title: n, description: i }) => {
1233
1233
  const a = o === "withTitleAndDescription" && n;
1234
1234
  return /* @__PURE__ */ r.jsxs(
@@ -1268,8 +1268,8 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1268
1268
  ]
1269
1269
  }
1270
1270
  );
1271
- }, Ge = ({ headline: t, details: e, variant: o, classes: n }) => /* @__PURE__ */ r.jsx("section", { id: y.stepper, "data-test-id": y.stepper, className: n == null ? void 0 : n.root, children: /* @__PURE__ */ r.jsx(F, { className: n == null ? void 0 : n.container, children: /* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col gap-6 desktop:items-start desktop:gap-12", n == null ? void 0 : n.wrapper), children: [
1272
- /* @__PURE__ */ r.jsx(L, { as: "h2", className: l("text-color-dark", n == null ? void 0 : n.headline), children: t }),
1271
+ }, et = ({ headline: t, details: e, variant: o, classes: n }) => /* @__PURE__ */ r.jsx("section", { id: y.stepper, "data-test-id": y.stepper, className: n == null ? void 0 : n.root, children: /* @__PURE__ */ r.jsx(F, { className: n == null ? void 0 : n.container, children: /* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col gap-6 desktop:items-start desktop:gap-12", n == null ? void 0 : n.wrapper), children: [
1272
+ /* @__PURE__ */ r.jsx(Q, { as: "h2", className: l("text-color-dark", n == null ? void 0 : n.headline), children: t }),
1273
1273
  /* @__PURE__ */ r.jsx(
1274
1274
  "div",
1275
1275
  {
@@ -1282,8 +1282,8 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1282
1282
  )
1283
1283
  ] }) }) }), Vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1284
1284
  __proto__: null,
1285
- Stepper: Ge,
1286
- default: Ge
1285
+ Stepper: et,
1286
+ default: et
1287
1287
  }, Symbol.toStringTag, { value: "Module" })), $r = E("", {
1288
1288
  variants: {
1289
1289
  intent: {
@@ -1383,7 +1383,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1383
1383
  ] }),
1384
1384
  /* @__PURE__ */ r.jsx("div", { className: l("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: n } })
1385
1385
  ] }) });
1386
- }, Ce = ({ intent: t, headline: e, desktopHidden: o = !1, mobileHidden: n = !1 }) => /* @__PURE__ */ r.jsx("h2", { className: l($r({ intent: t, desktopHidden: o, mobileHidden: n })), children: e }), Kr = ({ details: t, intent: e, withButton: o }) => /* @__PURE__ */ r.jsx("ul", { className: l(Ar({ intent: e, withButton: o })), children: t == null ? void 0 : t.map((n, i) => /* @__PURE__ */ r.jsx(Ur, { intent: e, data: n }, i)) }), et = ({
1386
+ }, Ce = ({ intent: t, headline: e, desktopHidden: o = !1, mobileHidden: n = !1 }) => /* @__PURE__ */ r.jsx("h2", { className: l($r({ intent: t, desktopHidden: o, mobileHidden: n })), children: e }), Kr = ({ details: t, intent: e, withButton: o }) => /* @__PURE__ */ r.jsx("ul", { className: l(Ar({ intent: e, withButton: o })), children: t == null ? void 0 : t.map((n, i) => /* @__PURE__ */ r.jsx(Ur, { intent: e, data: n }, i)) }), tt = ({
1387
1387
  headline: t,
1388
1388
  buttonConfig: e,
1389
1389
  intent: o = "twoItems",
@@ -1429,8 +1429,8 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1429
1429
  ] }) });
1430
1430
  }, Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1431
1431
  __proto__: null,
1432
- LongBanner: et,
1433
- default: et
1432
+ LongBanner: tt,
1433
+ default: tt
1434
1434
  }, Symbol.toStringTag, { value: "Module" })), Me = {
1435
1435
  ESIA: "esia",
1436
1436
  MOBILE_ID: "mobileId",
@@ -1513,7 +1513,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1513
1513
  children: e == null ? void 0 : e.text
1514
1514
  }
1515
1515
  )
1516
- ] }), tt = ({ mainLink: t, subLink: e, isLoading: o, badge: n, loaderProps: i, classes: a }) => {
1516
+ ] }), rt = ({ mainLink: t, subLink: e, isLoading: o, badge: n, loaderProps: i, classes: a }) => {
1517
1517
  const { isMobile: d } = ee();
1518
1518
  return /* @__PURE__ */ r.jsx(vt, { isLoading: o, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ r.jsxs(
1519
1519
  "div",
@@ -1537,7 +1537,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1537
1537
  ]
1538
1538
  }
1539
1539
  ) });
1540
- }, rt = ({ mainLink: t, subLink: e, isLoading: o, badge: n, loaderProps: i, classes: a }) => {
1540
+ }, nt = ({ mainLink: t, subLink: e, isLoading: o, badge: n, loaderProps: i, classes: a }) => {
1541
1541
  const { isMobile: d } = ee();
1542
1542
  return /* @__PURE__ */ r.jsx(vt, { isLoading: o, loaderProps: i, classes: a == null ? void 0 : a.authWrapper, children: /* @__PURE__ */ r.jsxs(
1543
1543
  "div",
@@ -1560,9 +1560,9 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1560
1560
  }, Yr = (t) => {
1561
1561
  switch (t.mode) {
1562
1562
  case Me.ESIA:
1563
- return /* @__PURE__ */ r.jsx(rt, { ...t });
1563
+ return /* @__PURE__ */ r.jsx(nt, { ...t });
1564
1564
  case Me.MOBILE_ID:
1565
- return /* @__PURE__ */ r.jsx(tt, { ...t });
1565
+ return /* @__PURE__ */ r.jsx(rt, { ...t });
1566
1566
  case Me.COMBINE:
1567
1567
  default:
1568
1568
  const { esiaConfig: e, mobileIdConfig: o, subtitle: n, badge: i, classes: a } = t, d = !n && !i ? ue.Fragment : "div";
@@ -1580,7 +1580,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1580
1580
  ] }),
1581
1581
  /* @__PURE__ */ r.jsxs("div", { className: l("grid w-full grid-cols-2 gap-2 desktop:gap-4", a == null ? void 0 : a.authWrapper), children: [
1582
1582
  /* @__PURE__ */ r.jsx(
1583
- rt,
1583
+ nt,
1584
1584
  {
1585
1585
  ...e,
1586
1586
  classes: {
@@ -1591,7 +1591,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1591
1591
  }
1592
1592
  ),
1593
1593
  /* @__PURE__ */ r.jsx(
1594
- tt,
1594
+ rt,
1595
1595
  {
1596
1596
  ...o,
1597
1597
  classes: {
@@ -1606,7 +1606,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1606
1606
  }
1607
1607
  );
1608
1608
  }
1609
- }, Oo = (t) => Yr(t), nt = ({ links: t, classes: e }) => /* @__PURE__ */ r.jsx("nav", { className: l("flex flex-col gap-1", e == null ? void 0 : e.linksWrapper), children: t == null ? void 0 : t.map(({ path: o, label: n }) => /* @__PURE__ */ r.jsx(
1609
+ }, Oo = (t) => Yr(t), ot = ({ links: t, classes: e }) => /* @__PURE__ */ r.jsx("nav", { className: l("flex flex-col gap-1", e == null ? void 0 : e.linksWrapper), children: t == null ? void 0 : t.map(({ path: o, label: n }) => /* @__PURE__ */ r.jsx(
1610
1610
  je,
1611
1611
  {
1612
1612
  classes: {
@@ -1624,7 +1624,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1624
1624
  return /* @__PURE__ */ r.jsxs("div", { className: l("flex flex-col gap-2", n == null ? void 0 : n.columnGroup), children: [
1625
1625
  !i && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
1626
1626
  /* @__PURE__ */ r.jsx("h5", { className: l("mob-body-medium-l text-color-dark desktop:desk-body-medium-l", n == null ? void 0 : n.columnGroupHeading), children: t }),
1627
- /* @__PURE__ */ r.jsx(nt, { links: e, classes: n == null ? void 0 : n.linksList }, "desktop")
1627
+ /* @__PURE__ */ r.jsx(ot, { links: e, classes: n == null ? void 0 : n.linksList }, "desktop")
1628
1628
  ] }),
1629
1629
  i && /* @__PURE__ */ r.jsx(
1630
1630
  ae,
@@ -1640,7 +1640,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1640
1640
  },
1641
1641
  contentInner: l("py-2 px-4", (u = o == null ? void 0 : o.classes) == null ? void 0 : u.contentInner)
1642
1642
  },
1643
- children: /* @__PURE__ */ r.jsx(nt, { links: e, classes: n == null ? void 0 : n.linksList }, "mobile")
1643
+ children: /* @__PURE__ */ r.jsx(ot, { links: e, classes: n == null ? void 0 : n.linksList }, "mobile")
1644
1644
  }
1645
1645
  )
1646
1646
  ] });
@@ -1655,7 +1655,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1655
1655
  defaultVariants: {
1656
1656
  variant: "fourCols"
1657
1657
  }
1658
- }), ot = ({
1658
+ }), it = ({
1659
1659
  variant: t,
1660
1660
  details: e,
1661
1661
  headline: o,
@@ -1675,7 +1675,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1675
1675
  ae,
1676
1676
  {
1677
1677
  defaultOpen: d,
1678
- label: /* @__PURE__ */ r.jsx(L, { as: "h4", className: l("text-left", a == null ? void 0 : a.headline), children: o }),
1678
+ label: /* @__PURE__ */ r.jsx(Q, { as: "h4", className: l("text-left", a == null ? void 0 : a.headline), children: o }),
1679
1679
  ...i,
1680
1680
  classes: {
1681
1681
  ...i == null ? void 0 : i.classes,
@@ -1691,8 +1691,8 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1691
1691
  );
1692
1692
  }, tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1693
1693
  __proto__: null,
1694
- InterLinking: ot,
1695
- default: ot
1694
+ InterLinking: it,
1695
+ default: it
1696
1696
  }, Symbol.toStringTag, { value: "Module" })), rn = ({ tabsNames: t, activeTab: e, setActiveTab: o, classes: n }) => /* @__PURE__ */ r.jsx("div", { className: l("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", n == null ? void 0 : n.tabs), children: t && t.map((i, a) => /* @__PURE__ */ r.jsx(
1697
1697
  "button",
1698
1698
  {
@@ -1814,7 +1814,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1814
1814
  classes: m
1815
1815
  }) => {
1816
1816
  const x = /* @__PURE__ */ r.jsxs("div", { className: l(un({ columnsVariant: o }), m == null ? void 0 : m.wrapper), children: [
1817
- a && /* @__PURE__ */ r.jsx(L, { as: "h4", className: l("mb-4 desktop:mb-6", m == null ? void 0 : m.headline), children: a }),
1817
+ a && /* @__PURE__ */ r.jsx(Q, { as: "h4", className: l("mb-4 desktop:mb-6", m == null ? void 0 : m.headline), children: a }),
1818
1818
  /* @__PURE__ */ r.jsx(bn, { tableVariant: t, rows: i, headings: d, columnsVariant: o }),
1819
1819
  e && /* @__PURE__ */ r.jsx(
1820
1820
  "div",
@@ -1862,7 +1862,7 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1862
1862
  }
1863
1863
  ), kn = ({ docs: t, config: e, title: o, iconType: n, description: i, classes: a, accordionConfig: d }) => {
1864
1864
  const u = /* @__PURE__ */ r.jsxs("div", { className: l("flex max-w-[680px] flex-col", a == null ? void 0 : a.wrapper), children: [
1865
- o && /* @__PURE__ */ r.jsx(L, { as: "h3", className: "mb-4", children: o }),
1865
+ o && /* @__PURE__ */ r.jsx(Q, { as: "h3", className: "mb-4", children: o }),
1866
1866
  /* @__PURE__ */ r.jsx("div", { className: l("flex flex-col gap-4", a == null ? void 0 : a.documentsWrapper), children: t == null ? void 0 : t.map((m) => /* @__PURE__ */ r.jsx(sn, { iconType: n, ...m, classes: a == null ? void 0 : a.singleDocument }, m.label)) }),
1867
1867
  i && /* @__PURE__ */ r.jsx("div", { className: l("mt-4", a == null ? void 0 : a.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
1868
1868
  ] });
@@ -1904,21 +1904,21 @@ const mr = B(() => Promise.resolve().then(() => Fr)), xr = B(() => Promise.resol
1904
1904
  default:
1905
1905
  return null;
1906
1906
  }
1907
- }, vn = ({ entity: t, classes: e, accordionsConfig: o }) => /* @__PURE__ */ r.jsx("div", { className: l("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: wn({ entity: t, classes: e, accordionsConfig: o }) }), it = ({ headline: t, tabs: e, classes: o, accordionsConfig: n }) => {
1907
+ }, vn = ({ entity: t, classes: e, accordionsConfig: o }) => /* @__PURE__ */ r.jsx("div", { className: l("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: wn({ entity: t, classes: e, accordionsConfig: o }) }), at = ({ headline: t, tabs: e, classes: o, accordionsConfig: n }) => {
1908
1908
  var u, m;
1909
- const [i, a] = A(0), d = se(() => e == null ? void 0 : e.map((x) => x == null ? void 0 : x.tabName), [e]) ?? [];
1909
+ const [i, a] = q(0), d = se(() => e == null ? void 0 : e.map((x) => x == null ? void 0 : x.tabName), [e]) ?? [];
1910
1910
  return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ r.jsx("section", { id: y.usefulInfo, "data-test-id": y.usefulInfo, className: l(o == null ? void 0 : o.root), children: /* @__PURE__ */ r.jsxs(F, { className: l(o == null ? void 0 : o.container), children: [
1911
- /* @__PURE__ */ r.jsx(L, { className: l(o == null ? void 0 : o.headline), as: "h2", children: t }),
1911
+ /* @__PURE__ */ r.jsx(Q, { className: l(o == null ? void 0 : o.headline), as: "h2", children: t }),
1912
1912
  /* @__PURE__ */ r.jsx("div", { className: l("mt-6 flex flex-col gap-2 desktop:mt-12", o == null ? void 0 : o.tabsWrapper), children: /* @__PURE__ */ r.jsx(rn, { tabsNames: d, activeTab: i, setActiveTab: a, classes: o == null ? void 0 : o.tabs }) }),
1913
1913
  /* @__PURE__ */ r.jsx("div", { className: l("mt-6 flex flex-col gap-6", o == null ? void 0 : o.contentWrapper), children: (m = (u = e == null ? void 0 : e[i]) == null ? void 0 : u.contents) == null ? void 0 : m.map((x, p) => /* @__PURE__ */ r.jsx(vn, { accordionsConfig: n, ...x, classes: o == null ? void 0 : o.entityClasses }, p)) })
1914
1914
  ] }) });
1915
1915
  }, Nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1916
1916
  __proto__: null,
1917
- UsefulInfo: it,
1918
- default: it
1919
- }, Symbol.toStringTag, { value: "Module" })), Pe = ({ fields: t, control: e }) => t.map(({ type: o, args: n }) => {
1920
- const i = gt[o];
1921
- return /* @__PURE__ */ yt(i, { ...n, key: n.name, control: e });
1917
+ UsefulInfo: at,
1918
+ default: at
1919
+ }, Symbol.toStringTag, { value: "Module" })), De = ({ fields: t, control: e }) => t.map(({ type: o, args: n }) => {
1920
+ const i = jt[o];
1921
+ return /* @__PURE__ */ Oe(i, { ...n, key: n.name, control: e });
1922
1922
  });
1923
1923
  class Cn {
1924
1924
  constructor(e) {
@@ -2014,7 +2014,7 @@ const ie = ({ html: t, as: e, ...o }) => {
2014
2014
  if (!S.isFunction(n))
2015
2015
  throw new Error(`Cannot generate ${String(e)} because is not a function`);
2016
2016
  return n(o);
2017
- }, Tn = (t, e) => Ct(st.base, t, e), Sn = (t, e) => Ct(st.dadata, t, e), De = (t) => {
2017
+ }, Tn = (t, e) => Ct(st.base, t, e), Sn = (t, e) => Ct(st.dadata, t, e), Re = (t) => {
2018
2018
  const o = ((t == null ? void 0 : t.map((n) => ({ name: n.args.name, validation: n.args.validation }))) ?? []).reduce((n, i) => {
2019
2019
  const a = _n.includes(i.validation.type) ? Sn(
2020
2020
  i.validation.type,
@@ -2039,7 +2039,7 @@ const ie = ({ html: t, as: e, ...o }) => {
2039
2039
  /* @__PURE__ */ r.jsx(ie, { html: t.content, as: "div", className: n == null ? void 0 : n.content })
2040
2040
  ]
2041
2041
  }
2042
- ), at = ({
2042
+ ), lt = ({
2043
2043
  fields: t,
2044
2044
  title: e,
2045
2045
  progress: o,
@@ -2049,12 +2049,12 @@ const ie = ({ html: t, as: e, ...o }) => {
2049
2049
  classes: d,
2050
2050
  buttonGroup: u
2051
2051
  }) => {
2052
- var q, C;
2053
- const { submitCallback: m } = a || {}, [x, p] = A(!1), c = De(t), g = Be.getZodDefaults(c), { control: f, handleSubmit: w } = Ee({
2052
+ var D, C;
2053
+ const { submitCallback: m } = a || {}, [x, p] = q(!1), c = Re(t), g = Pe.getZodDefaults(c), { control: f, handleSubmit: v } = Be({
2054
2054
  schema: c,
2055
2055
  defaultValues: g,
2056
2056
  mode: "onBlur"
2057
- }), j = In(o, t), v = rr({ control: f, fields: j || [], schema: c }), _ = (I) => {
2057
+ }), j = In(o, t), k = rr({ control: f, fields: j || [], schema: c }), _ = (I) => {
2058
2058
  m && m({ ...I, agree: x });
2059
2059
  };
2060
2060
  return /* @__PURE__ */ r.jsx(Mt, { children: /* @__PURE__ */ r.jsx("section", { id: y.form, "data-test-id": y.form, className: l("w-full", d == null ? void 0 : d.root), children: /* @__PURE__ */ r.jsxs(
@@ -2072,7 +2072,7 @@ const ie = ({ html: t, as: e, ...o }) => {
2072
2072
  "desk-body-regular-l flex items-center gap-x-2 rounded-sm desktop:absolute",
2073
2073
  "bg-color-blue-grey-100 px-2 py-1 text-color-tetriary",
2074
2074
  "right-4 top-4 w-max",
2075
- (q = d == null ? void 0 : d.chips) == null ? void 0 : q.root
2075
+ (D = d == null ? void 0 : d.chips) == null ? void 0 : D.root
2076
2076
  ),
2077
2077
  children: [
2078
2078
  i.image && /* @__PURE__ */ r.jsx(b, { name: i.image, className: l("size-4", (C = d == null ? void 0 : d.chips) == null ? void 0 : C.icon) }),
@@ -2080,34 +2080,34 @@ const ie = ({ html: t, as: e, ...o }) => {
2080
2080
  ]
2081
2081
  }
2082
2082
  ),
2083
- /* @__PURE__ */ r.jsx(L, { as: "h3", className: d == null ? void 0 : d.title, children: e }),
2083
+ /* @__PURE__ */ r.jsx(Q, { as: "h3", className: d == null ? void 0 : d.title, children: e }),
2084
2084
  /* @__PURE__ */ r.jsxs(
2085
2085
  "form",
2086
2086
  {
2087
- onSubmit: w(_),
2087
+ onSubmit: v(_),
2088
2088
  className: l("flex w-full flex-col gap-y-6", "desktop:gap-y-8", d == null ? void 0 : d.form),
2089
2089
  children: [
2090
2090
  o.enabled && /* @__PURE__ */ r.jsx(
2091
2091
  Wt,
2092
2092
  {
2093
- progress: v,
2093
+ progress: k,
2094
2094
  topContent: /* @__PURE__ */ r.jsx(ie, { html: o.title }),
2095
2095
  bottomContent: /* @__PURE__ */ r.jsx(ie, { html: o.subtitle }),
2096
2096
  maxPercent: o.maxPercent,
2097
2097
  classes: d == null ? void 0 : d.progressBar
2098
2098
  }
2099
2099
  ),
2100
- /* @__PURE__ */ r.jsx(Pe, { control: f, fields: t }),
2100
+ /* @__PURE__ */ r.jsx(De, { control: f, fields: t }),
2101
2101
  /* @__PURE__ */ r.jsxs("div", { className: "mob-body-regular-m flex flex-col items-start justify-center gap-4", children: [
2102
2102
  Fn(n, x, p, d == null ? void 0 : d.approvement),
2103
- /* @__PURE__ */ r.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-4 desktop:flex-row", children: u == null ? void 0 : u.map((I, D) => {
2104
- const Q = I.type === "submit" && n.type === "checkbox" ? !x : !1;
2105
- return /* @__PURE__ */ yt(
2103
+ /* @__PURE__ */ r.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-4 desktop:flex-row", children: u == null ? void 0 : u.map((I, R) => {
2104
+ const V = I.type === "submit" && n.type === "checkbox" ? !x : !1;
2105
+ return /* @__PURE__ */ Oe(
2106
2106
  ge,
2107
2107
  {
2108
2108
  ...I,
2109
- key: D,
2110
- disabled: Q,
2109
+ key: R,
2110
+ disabled: V,
2111
2111
  className: l(
2112
2112
  "w-full whitespace-nowrap",
2113
2113
  {
@@ -2127,8 +2127,8 @@ const ie = ({ html: t, as: e, ...o }) => {
2127
2127
  ) }) });
2128
2128
  }, En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2129
2129
  __proto__: null,
2130
- DynamicForm: at,
2131
- default: at
2130
+ DynamicForm: lt,
2131
+ default: lt
2132
2132
  }, Symbol.toStringTag, { value: "Module" })), Bn = (t, e, o, n) => t.type === "off" ? null : t.type === "text" ? /* @__PURE__ */ r.jsx(ie, { html: t.message, as: "div", className: n == null ? void 0 : n.content }) : /* @__PURE__ */ r.jsxs(
2133
2133
  "label",
2134
2134
  {
@@ -2142,31 +2142,49 @@ const ie = ({ html: t, as: e, ...o }) => {
2142
2142
  /* @__PURE__ */ r.jsx(ie, { html: t.content, as: "div", className: n == null ? void 0 : n.content })
2143
2143
  ]
2144
2144
  }
2145
- ), lt = ({
2145
+ ), dt = ({
2146
2146
  fields: t,
2147
2147
  title: e,
2148
2148
  approvement: o,
2149
2149
  submitProps: n,
2150
2150
  dialogId: i,
2151
2151
  classes: a,
2152
- ...d
2152
+ buttonGroup: d,
2153
+ ...u
2153
2154
  }) => {
2154
- const { submitCallback: u, children: m, ...x } = n ?? {}, [p, c] = A(!1), g = De(t), f = Be.getZodDefaults(g), { control: w, handleSubmit: j } = Ee({
2155
- schema: g,
2156
- defaultValues: f,
2155
+ const { submitCallback: m } = n ?? {}, [x, p] = q(!1), c = Re(t), g = Pe.getZodDefaults(c), { control: f, handleSubmit: v } = Be({
2156
+ schema: c,
2157
+ defaultValues: g,
2157
2158
  mode: "onBlur"
2158
- }), v = (_) => {
2159
- u && u({ ..._, agree: p });
2159
+ }), j = (k) => {
2160
+ m && m({ ...k, agree: x });
2160
2161
  };
2161
- return /* @__PURE__ */ r.jsx(Mt, { children: /* @__PURE__ */ r.jsx(Ut, { id: i, title: e, ...d, children: /* @__PURE__ */ r.jsxs("form", { onSubmit: j(v), className: "flex flex-col gap-6", children: [
2162
- /* @__PURE__ */ r.jsx(Pe, { control: w, fields: t }),
2163
- Bn(o, p, c, a == null ? void 0 : a.approvement),
2164
- /* @__PURE__ */ r.jsx(ge, { ...x, type: "submit", disabled: o.type === "checkbox" ? !p : !1, className: "w-full", children: m ?? "Отправить форму" })
2162
+ return /* @__PURE__ */ r.jsx(Mt, { children: /* @__PURE__ */ r.jsx(Ut, { id: i, title: e, ...u, children: /* @__PURE__ */ r.jsxs("form", { onSubmit: v(j), className: "flex flex-col gap-6", children: [
2163
+ /* @__PURE__ */ r.jsx(De, { control: f, fields: t }),
2164
+ Bn(o, x, p, a == null ? void 0 : a.approvement),
2165
+ d == null ? void 0 : d.map((k, _) => {
2166
+ const D = k.type === "submit" && o.type === "checkbox" ? !x : !1;
2167
+ return /* @__PURE__ */ Oe(
2168
+ ge,
2169
+ {
2170
+ ...k,
2171
+ key: _,
2172
+ disabled: D,
2173
+ className: l(
2174
+ "w-full whitespace-nowrap",
2175
+ {
2176
+ "w-full": !!o
2177
+ },
2178
+ a == null ? void 0 : a.submit
2179
+ )
2180
+ }
2181
+ );
2182
+ })
2165
2183
  ] }) }) });
2166
2184
  }, Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2167
2185
  __proto__: null,
2168
- DynamicFormDialog: lt,
2169
- default: lt
2186
+ DynamicFormDialog: dt,
2187
+ default: dt
2170
2188
  }, Symbol.toStringTag, { value: "Module" })), de = () => ({
2171
2189
  approve: {
2172
2190
  icon: {
@@ -2240,7 +2258,7 @@ const ie = ({ html: t, as: e, ...o }) => {
2240
2258
  }
2241
2259
  ),
2242
2260
  /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col items-center gap-2 text-center desktop:gap-6", children: [
2243
- /* @__PURE__ */ r.jsx(L, { as: "h2", children: de()[t].title }),
2261
+ /* @__PURE__ */ r.jsx(Q, { as: "h2", children: de()[t].title }),
2244
2262
  /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: de()[t].description })
2245
2263
  ] }),
2246
2264
  /* @__PURE__ */ r.jsx(ge, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: e, children: de()[t].button.text })
@@ -2273,7 +2291,7 @@ const ie = ({ html: t, as: e, ...o }) => {
2273
2291
  a !== t.length - 1 && e
2274
2292
  ] }, i.label);
2275
2293
  }), Rn = ({ separator: t, ellipsis: e, classes: o, breadcrumbs: n = Dn }) => {
2276
- const [i, a] = A(!1), d = Oe(null);
2294
+ const [i, a] = q(!1), d = Fe(null);
2277
2295
  er(d, () => a(!1));
2278
2296
  const { first: u, middle: m, last: x } = se(() => {
2279
2297
  let c = [], g = [], f = [];
@@ -2376,7 +2394,7 @@ const Hn = (t, e) => {
2376
2394
  initial: { opacity: 0 },
2377
2395
  animate: { opacity: 1 },
2378
2396
  transition: { duration: 0.2 },
2379
- className: 'absolute w-full bg-color-white after:absolute after:left-1/2 after:top-0 after:h-[1px] after:w-full after:max-w-[636px] after:-translate-x-1/2 after:bg-color-blue-grey-200 after:content-[""] after:desktop:max-w-[1140px]',
2397
+ className: 'absolute z-20 w-full bg-color-white after:absolute after:left-1/2 after:top-0 after:h-[1px] after:w-full after:max-w-[636px] after:-translate-x-1/2 after:bg-color-blue-grey-200 after:content-[""] after:desktop:max-w-[1140px]',
2380
2398
  children: /* @__PURE__ */ r.jsx("div", { className: "mx-auto flex w-full max-w-[1140px] gap-x-[56px] py-10", children: t.map((i) => {
2381
2399
  var d;
2382
2400
  const a = i.link ? "a" : "p";
@@ -2438,10 +2456,10 @@ const Hn = (t, e) => {
2438
2456
  ]
2439
2457
  }
2440
2458
  );
2441
- }), An = Fe($n), qn = ({ categories: t }) => {
2442
- const [e, o] = A(null), n = jt((a) => {
2459
+ }), An = Ee($n), qn = ({ categories: t }) => {
2460
+ const [e, o] = q(null), n = yt((a) => {
2443
2461
  o(a);
2444
- }, []), i = Oe(null);
2462
+ }, []), i = Fe(null);
2445
2463
  return /* @__PURE__ */ r.jsx(Kt, { mode: "sync", children: /* @__PURE__ */ r.jsxs(
2446
2464
  "div",
2447
2465
  {
@@ -2463,7 +2481,7 @@ const Hn = (t, e) => {
2463
2481
  ]
2464
2482
  }
2465
2483
  ) });
2466
- }, Wn = Fe(qn), Un = ({
2484
+ }, Wn = Ee(qn), Un = ({
2467
2485
  category: t,
2468
2486
  selectedCategory: e,
2469
2487
  onCurrentCategoryChange: o,
@@ -2599,7 +2617,7 @@ const Hn = (t, e) => {
2599
2617
  value: e.title ?? "",
2600
2618
  label: e.title ?? ""
2601
2619
  })), Yn = ({ categories: t, helpers: e, phone: o, ...n }) => {
2602
- const i = Xn(t), [a, d] = A(i[0]), u = (x) => {
2620
+ const i = Xn(t), [a, d] = q(i[0]), u = (x) => {
2603
2621
  S.isUndefined(x) || S.isArray(x) || d(x);
2604
2622
  }, m = se(() => {
2605
2623
  var x;
@@ -2610,7 +2628,7 @@ const Hn = (t, e) => {
2610
2628
  {
2611
2629
  ...n,
2612
2630
  className: l(
2613
- "absolute w-full max-w-[calc(636px-32px)]",
2631
+ "absolute z-20 w-full max-w-[calc(636px-32px)]",
2614
2632
  "absolute left-1/2 top-full bg-color-white p-4",
2615
2633
  "-translate-x-1/2 overflow-x-hidden",
2616
2634
  "flex flex-col items-center justify-center gap-y-4"
@@ -2642,7 +2660,7 @@ const Hn = (t, e) => {
2642
2660
  );
2643
2661
  }, Jn = ({ categories: t, helpers: e, phone: o }) => {
2644
2662
  var m, x, p;
2645
- const n = Oe(null), i = (m = n.current) == null ? void 0 : m.getBoundingClientRect(), [a, d] = A(!1), u = () => d(!a);
2663
+ const n = Fe(null), i = (m = n.current) == null ? void 0 : m.getBoundingClientRect(), [a, d] = q(!1), u = () => d(!a);
2646
2664
  return /* @__PURE__ */ r.jsxs(
2647
2665
  "div",
2648
2666
  {
@@ -2669,7 +2687,7 @@ const Hn = (t, e) => {
2669
2687
  ]
2670
2688
  }
2671
2689
  );
2672
- }, dt = ({ categories: t, helpers: e, phone: o, breadcrumbs: n }) => {
2690
+ }, ut = ({ categories: t, helpers: e, phone: o, breadcrumbs: n }) => {
2673
2691
  const { isMobile: i } = ee();
2674
2692
  return /* @__PURE__ */ r.jsx("div", { id: y.seoHeader, "data-test-id": y.seoHeader, className: "w-full bg-color-white", children: /* @__PURE__ */ r.jsxs(F, { className: "mx-auto w-full", children: [
2675
2693
  /* @__PURE__ */ r.jsx(Jn, { categories: t.map((a) => a.children).flat(), helpers: e, phone: o }),
@@ -2685,8 +2703,8 @@ const Hn = (t, e) => {
2685
2703
  ] }) });
2686
2704
  }, Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2687
2705
  __proto__: null,
2688
- SeoHeader: dt,
2689
- default: dt
2706
+ SeoHeader: ut,
2707
+ default: ut
2690
2708
  }, Symbol.toStringTag, { value: "Module" })), _t = (t) => typeof t != "string" && "formula" in t, Tt = (t, e) => {
2691
2709
  let o = e;
2692
2710
  const n = {
@@ -2710,14 +2728,14 @@ const Hn = (t, e) => {
2710
2728
  default:
2711
2729
  return Tt(t, Number(e));
2712
2730
  }
2713
- }, to = (t) => Object.values(t).reduce((o, n) => o.merge(De(n.fields)), kt({})), ro = (t, e) => (t.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in e)).length > 0 ? "" : t, St = (t, e) => {
2731
+ }, to = (t) => Object.values(t).reduce((o, n) => o.merge(Re(n.fields)), kt({})), ro = (t, e) => (t.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in e)).length > 0 ? "" : t, St = (t, e) => {
2714
2732
  const o = Object.entries(e).map(([m, x]) => [m, S.isNil(x) ? "1" : x]), n = o.map(([m]) => m), i = o.map(([, m]) => m), a = ro(t, Object.fromEntries(o)), u = new Function(...n, `return ${a};`)(...i.map(Number));
2715
2733
  return Number.isNaN(Number(u)) ? "0" : u.toString();
2716
2734
  }, no = (t, e) => t.map((o) => ({
2717
2735
  ...o,
2718
2736
  value: _t(o.value) ? St(o.value.formula, e) : o.value
2719
2737
  })), oo = ({ subtitle: t, title: e }) => /* @__PURE__ */ r.jsx(r.Fragment, { children: (e || t) && /* @__PURE__ */ r.jsxs("div", { className: "flex flex-col gap-2", children: [
2720
- e && /* @__PURE__ */ r.jsx(L, { as: "h3", children: e }),
2738
+ e && /* @__PURE__ */ r.jsx(Q, { as: "h3", children: e }),
2721
2739
  t && /* @__PURE__ */ r.jsx("div", { className: "desk-body-regular-l text-color-dark", children: t })
2722
2740
  ] }) }), io = ({ rootDescription: t, rootValue: e, suffix: o }) => /* @__PURE__ */ r.jsxs("div", { className: "mb-6 flex items-center justify-between gap-6", children: [
2723
2741
  /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l text-color-dark", children: t }),
@@ -2776,10 +2794,10 @@ const Hn = (t, e) => {
2776
2794
  slidersGroupConfig: t,
2777
2795
  additionalSliderGroupConfig: e
2778
2796
  }) => {
2779
- const [o, n] = A(!1), { watch: i, setValue: a } = we(), d = t == null ? void 0 : t.fields.find(({ args: _ }) => _.name === "sum"), { args: u } = d || {}, { max: m, name: x, defaultValue: p } = u || {}, c = i(x), { min: g, name: f } = (e == null ? void 0 : e.args) ?? {}, w = i(f), j = Number(m ?? 0) - (c ?? p);
2780
- return Ae(() => {
2781
- w > j && a(f, j);
2782
- }, [j, w, a, c]), Ae(() => {
2797
+ const [o, n] = q(!1), { watch: i, setValue: a } = we(), d = t == null ? void 0 : t.fields.find(({ args: _ }) => _.name === "sum"), { args: u } = d || {}, { max: m, name: x, defaultValue: p } = u || {}, c = i(x), { min: g, name: f } = (e == null ? void 0 : e.args) ?? {}, v = i(f), j = Number(m ?? 0) - (c ?? p);
2798
+ return qe(() => {
2799
+ v > j && a(f, j);
2800
+ }, [j, v, a, c]), qe(() => {
2783
2801
  Number(m) === c && n(!1);
2784
2802
  }, [n, m, c]), {
2785
2803
  sliderVisible: o,
@@ -2790,7 +2808,7 @@ const Hn = (t, e) => {
2790
2808
  sumValue: c,
2791
2809
  additionalSliderMax: j,
2792
2810
  onCheckedChange: () => {
2793
- n((_) => !_), w <= 0 && a(f, g), Number(m) === c && (a(x ?? "", c - ho), a(f, g));
2811
+ n((_) => !_), v <= 0 && a(f, g), Number(m) === c && (a(x ?? "", c - ho), a(f, g));
2794
2812
  },
2795
2813
  sliderSumExist: !S.isObjectEmpty(d == null ? void 0 : d.args),
2796
2814
  sliderSumCorrectType: (d == null ? void 0 : d.args.componentType) === "algorithmic" || (d == null ? void 0 : d.args.componentType) === "step"
@@ -2818,7 +2836,7 @@ const Hn = (t, e) => {
2818
2836
  ] });
2819
2837
  }, J = ({ fields: t }) => {
2820
2838
  const { control: e } = we();
2821
- return /* @__PURE__ */ r.jsx(Pe, { control: e, fields: t });
2839
+ return /* @__PURE__ */ r.jsx(De, { control: e, fields: t });
2822
2840
  }, fo = ({
2823
2841
  slidersGroupConfig: t,
2824
2842
  additionalSliderGroupConfig: e
@@ -2833,7 +2851,7 @@ const Hn = (t, e) => {
2833
2851
  /* @__PURE__ */ r.jsx("p", { className: "desk-body-regular-l", children: "Хочу получить деньги дополнительно" })
2834
2852
  ] }),
2835
2853
  n && /* @__PURE__ */ r.jsx(
2836
- gt.SliderControl,
2854
+ jt.SliderControl,
2837
2855
  {
2838
2856
  ...e.args,
2839
2857
  control: o,
@@ -2867,7 +2885,7 @@ const Hn = (t, e) => {
2867
2885
  }
2868
2886
  )
2869
2887
  ] });
2870
- }, go = Fe(({ calculatorTabs: t, activeCalculator: e, setActiveCalculator: o }) => /* @__PURE__ */ r.jsx("div", { className: "mb-8 flex items-center gap-4", children: t == null ? void 0 : t.map(({ name: n, label: i }) => /* @__PURE__ */ r.jsx(
2888
+ }, go = Ee(({ calculatorTabs: t, activeCalculator: e, setActiveCalculator: o }) => /* @__PURE__ */ r.jsx("div", { className: "mb-8 flex items-center gap-4", children: t == null ? void 0 : t.map(({ name: n, label: i }) => /* @__PURE__ */ r.jsx(
2871
2889
  "button",
2872
2890
  {
2873
2891
  onClick: () => o(n),
@@ -2882,20 +2900,20 @@ const Hn = (t, e) => {
2882
2900
  calculatorInfoConfig: t,
2883
2901
  calculatorFieldsConfig: e
2884
2902
  }) => {
2885
- const o = to(e == null ? void 0 : e.fieldsGroup), n = Ee({
2903
+ const o = to(e == null ? void 0 : e.fieldsGroup), n = Be({
2886
2904
  schema: o,
2887
2905
  mode: "onBlur",
2888
- defaultValues: Be.getZodDefaults(o)
2906
+ defaultValues: Pe.getZodDefaults(o)
2889
2907
  }), i = n.watch(), { rootValue: a } = t, d = _t(a) ? St(a.formula, i) : a, u = { ...t, rootValue: d };
2890
2908
  return /* @__PURE__ */ r.jsx(tr, { ...n, children: /* @__PURE__ */ r.jsxs("div", { className: "flex items-start gap-16", children: [
2891
2909
  /* @__PURE__ */ r.jsx(bo, { ...e }),
2892
2910
  /* @__PURE__ */ r.jsx(xo, { ...u })
2893
2911
  ] }) });
2894
- }, ut = ({ calculators: t, headline: e }) => {
2912
+ }, mt = ({ calculators: t, headline: e }) => {
2895
2913
  var m;
2896
- const o = t.length > 1, [n, i] = A(o ? (m = t[0]) == null ? void 0 : m.name : ""), a = se(() => t == null ? void 0 : t.map(({ name: x, label: p }) => ({ name: x, label: p })), [t]), d = o ? a == null ? void 0 : a.findIndex((x) => x.name === n) : 0, u = t[d];
2914
+ const o = t.length > 1, [n, i] = q(o ? (m = t[0]) == null ? void 0 : m.name : ""), a = se(() => t == null ? void 0 : t.map(({ name: x, label: p }) => ({ name: x, label: p })), [t]), d = o ? a == null ? void 0 : a.findIndex((x) => x.name === n) : 0, u = t[d];
2897
2915
  return /* @__PURE__ */ r.jsx("section", { id: y.calculator, children: /* @__PURE__ */ r.jsx(F, { children: /* @__PURE__ */ r.jsxs("div", { className: "rounded-md bg-color-white px-10 py-12 shadow-md", children: [
2898
- /* @__PURE__ */ r.jsx(L, { className: "mb-12", as: "h2", children: e }),
2916
+ /* @__PURE__ */ r.jsx(Q, { className: "mb-12", as: "h2", children: e }),
2899
2917
  o && /* @__PURE__ */ r.jsx(
2900
2918
  go,
2901
2919
  {
@@ -2916,33 +2934,33 @@ const Hn = (t, e) => {
2916
2934
  ] }) }) });
2917
2935
  }, yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2918
2936
  __proto__: null,
2919
- Calculator: ut,
2920
- default: ut
2937
+ Calculator: mt,
2938
+ default: mt
2921
2939
  }, Symbol.toStringTag, { value: "Module" }));
2922
2940
  export {
2923
2941
  Ie as Advantages,
2924
2942
  Oo as AuthProvider,
2925
- Ye as Banner,
2926
- Xe as BannerWithSeparateImg,
2927
- Ke as Benefit,
2943
+ Je as Banner,
2944
+ Ye as BannerWithSeparateImg,
2945
+ Ze as Benefit,
2928
2946
  Rn as Breadcrumbs,
2929
2947
  Y as ButtonWithHandlers,
2930
- ut as Calculator,
2948
+ mt as Calculator,
2931
2949
  jo as CalculatorView,
2932
- at as DynamicForm,
2933
- lt as DynamicFormDialog,
2950
+ lt as DynamicForm,
2951
+ dt as DynamicFormDialog,
2934
2952
  Eo as FallbacksView,
2935
- Pe as FieldMapper,
2936
- Je as Footer,
2953
+ De as FieldMapper,
2954
+ Ge as Footer,
2937
2955
  Fo as HTMLParser,
2938
2956
  ie as HTMLRenderer,
2939
- Ze as Header,
2940
- ot as InterLinking,
2957
+ Xe as Header,
2958
+ it as InterLinking,
2941
2959
  vr as KEYS_OF_WIDGET_LIST,
2942
- et as LongBanner,
2943
- dt as SeoHeader,
2944
- Ge as Stepper,
2945
- it as UsefulInfo,
2960
+ tt as LongBanner,
2961
+ ut as SeoHeader,
2962
+ et as Stepper,
2963
+ at as UsefulInfo,
2946
2964
  wr as WIDGET_LIST_MAP,
2947
2965
  On as queryClient,
2948
2966
  y as widgetIds