@scbt-ecom/ui 0.64.0 → 0.64.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
@@ -13,13 +13,13 @@ var mt = (e, t, r, n) => ({
13
13
  return h(e, t, n);
14
14
  }
15
15
  });
16
- import { S as Vt, w as Wt, Q as le, x as E, y as Et, z as ue, E as pe, F as Mt, G as P, J as me, M as he, T as xe, W as fe, X as Ot, Y as St, Z as ce, _ as Ft, $ as Bt, a0 as be, j as o, B as vt, c as M, R as H, l as Gt, r as ge, H as W, i as c, s as ct, p as je, L as ye, n as Nt, A as ot, t as ke, a1 as we, q as ve, U as Kt, m as st, k as Ne } from "./index-B00qeS0W.js";
16
+ import { S as Vt, w as Wt, Q as le, x as M, y as Mt, z as ue, E as pe, F as Et, G as P, J as me, M as he, T as xe, W as fe, X as Ot, Y as St, Z as ce, _ as Ft, $ as Bt, a0 as be, j as o, B as vt, c as E, R as _, l as Gt, r as ge, H as W, i as c, s as ct, p as je, L as ye, n as Nt, A as ot, t as ke, a1 as we, q as ve, U as Kt, m as st, k as Ne } from "./index-B00qeS0W.js";
17
17
  import { c as a, T as k } from "./typeGuards-Bhdr9KYW.js";
18
18
  import * as at from "react";
19
19
  import { useCallback as $t, useState as G, useMemo as Ct, createElement as Zt, Fragment as se, useEffect as Xt, useRef as Tt, useReducer as Ce, memo as Jt, forwardRef as Te } from "react";
20
- import { s as Ie, c as bt, g as Rt, a as Ee } from "./uuid-2wKG15vy.js";
20
+ import { s as Ie, c as bt, g as Rt, a as Me } from "./uuid-2wKG15vy.js";
21
21
  import { i as Yt } from "./isClient-C9aZtt2Q.js";
22
- import { a as Y, c as Me, b as Oe } from "./useDebounce-i1sdXecI.js";
22
+ import { a as Y, c as Ee, b as Oe } from "./useDebounce-i1sdXecI.js";
23
23
  import { o as Se } from "./utils-DaXd4sci.js";
24
24
  import { z as te, Z as Fe } from "./index-BKXpPQ1s.js";
25
25
  import { u as Be } from "./useFieldsProgress-C3nmU8Vi.js";
@@ -53,7 +53,7 @@ var F, zt, Re = (zt = class extends Vt {
53
53
  r && (t.destroy(), r === t && h(this, F).delete(t.queryHash), this.notify({ type: "removed", query: t }));
54
54
  }
55
55
  clear() {
56
- E.batch(() => {
56
+ M.batch(() => {
57
57
  this.getAll().forEach((t) => {
58
58
  this.remove(t);
59
59
  });
@@ -68,42 +68,42 @@ var F, zt, Re = (zt = class extends Vt {
68
68
  find(t) {
69
69
  const r = { exact: !0, ...t };
70
70
  return this.getAll().find(
71
- (n) => Et(r, n)
71
+ (n) => Mt(r, n)
72
72
  );
73
73
  }
74
74
  findAll(t = {}) {
75
75
  const r = this.getAll();
76
- return Object.keys(t).length > 0 ? r.filter((n) => Et(t, n)) : r;
76
+ return Object.keys(t).length > 0 ? r.filter((n) => Mt(t, n)) : r;
77
77
  }
78
78
  notify(t) {
79
- E.batch(() => {
79
+ M.batch(() => {
80
80
  this.listeners.forEach((r) => {
81
81
  r(t);
82
82
  });
83
83
  });
84
84
  }
85
85
  onFocus() {
86
- E.batch(() => {
86
+ M.batch(() => {
87
87
  this.getAll().forEach((t) => {
88
88
  t.onFocus();
89
89
  });
90
90
  });
91
91
  }
92
92
  onOnline() {
93
- E.batch(() => {
93
+ M.batch(() => {
94
94
  this.getAll().forEach((t) => {
95
95
  t.onOnline();
96
96
  });
97
97
  });
98
98
  }
99
- }, F = new WeakMap(), zt), B, I, X, R, q, qt, He = (qt = class extends ue {
99
+ }, F = new WeakMap(), zt), B, I, X, R, q, qt, _e = (qt = class extends ue {
100
100
  constructor(t) {
101
101
  super();
102
102
  C(this, R);
103
103
  C(this, B);
104
104
  C(this, I);
105
105
  C(this, X);
106
- this.mutationId = t.mutationId, y(this, I, t.mutationCache), y(this, B, []), this.state = t.state || _e(), this.setOptions(t.options), this.scheduleGc();
106
+ this.mutationId = t.mutationId, y(this, I, t.mutationCache), y(this, B, []), 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);
@@ -134,7 +134,7 @@ var F, zt, Re = (zt = class extends Vt {
134
134
  this.execute(this.state.variables);
135
135
  }
136
136
  async execute(t) {
137
- var i, d, l, u, p, m, x, f, b, v, N, T, _, K, D, s, O, Q, $, pt;
137
+ var i, d, l, u, p, m, x, f, b, v, N, T, H, K, L, s, O, Q, $, pt;
138
138
  y(this, X, pe({
139
139
  fn: () => this.options.mutationFn ? this.options.mutationFn(t) : Promise.reject(new Error("No mutationFn found")),
140
140
  onFail: (w, Z) => {
@@ -184,14 +184,14 @@ var F, zt, Re = (zt = class extends Vt {
184
184
  )), await ((T = (N = this.options).onSettled) == null ? void 0 : T.call(N, w, null, t, this.state.context)), z(this, R, q).call(this, { type: "success", data: w }), w;
185
185
  } catch (w) {
186
186
  try {
187
- throw await ((K = (_ = h(this, I).config).onError) == null ? void 0 : K.call(
188
- _,
187
+ throw await ((K = (H = h(this, I).config).onError) == null ? void 0 : K.call(
188
+ H,
189
189
  w,
190
190
  t,
191
191
  this.state.context,
192
192
  this
193
- )), await ((s = (D = this.options).onError) == null ? void 0 : s.call(
194
- D,
193
+ )), await ((s = (L = this.options).onError) == null ? void 0 : s.call(
194
+ L,
195
195
  w,
196
196
  t,
197
197
  this.state.context
@@ -270,7 +270,7 @@ var F, zt, Re = (zt = class extends Vt {
270
270
  };
271
271
  }
272
272
  };
273
- this.state = r(this.state), E.batch(() => {
273
+ this.state = r(this.state), M.batch(() => {
274
274
  h(this, B).forEach((n) => {
275
275
  n.onMutationUpdate(t);
276
276
  }), h(this, I).notify({
@@ -280,7 +280,7 @@ var F, zt, Re = (zt = class extends Vt {
280
280
  });
281
281
  });
282
282
  }, qt);
283
- function _e() {
283
+ function He() {
284
284
  return {
285
285
  context: void 0,
286
286
  data: void 0,
@@ -293,16 +293,16 @@ function _e() {
293
293
  submittedAt: 0
294
294
  };
295
295
  }
296
- var L, S, ut, At, Pe = (At = class extends Vt {
296
+ var D, S, ut, At, Pe = (At = class extends Vt {
297
297
  constructor(t = {}) {
298
298
  super();
299
- C(this, L);
299
+ C(this, D);
300
300
  C(this, S);
301
301
  C(this, ut);
302
- this.config = t, y(this, L, /* @__PURE__ */ new Set()), y(this, S, /* @__PURE__ */ new Map()), y(this, ut, 0);
302
+ this.config = t, y(this, D, /* @__PURE__ */ new Set()), y(this, S, /* @__PURE__ */ new Map()), y(this, ut, 0);
303
303
  }
304
304
  build(t, r, n) {
305
- const i = new He({
305
+ const i = new _e({
306
306
  mutationCache: this,
307
307
  mutationId: ++mt(this, ut)._,
308
308
  options: t.defaultMutationOptions(r),
@@ -311,7 +311,7 @@ var L, S, ut, At, Pe = (At = class extends Vt {
311
311
  return this.add(i), i;
312
312
  }
313
313
  add(t) {
314
- h(this, L).add(t);
314
+ h(this, D).add(t);
315
315
  const r = ht(t);
316
316
  if (typeof r == "string") {
317
317
  const n = h(this, S).get(r);
@@ -320,7 +320,7 @@ var L, S, ut, At, Pe = (At = class extends Vt {
320
320
  this.notify({ type: "added", mutation: t });
321
321
  }
322
322
  remove(t) {
323
- if (h(this, L).delete(t)) {
323
+ if (h(this, D).delete(t)) {
324
324
  const r = ht(t);
325
325
  if (typeof r == "string") {
326
326
  const n = h(this, S).get(r);
@@ -353,26 +353,26 @@ var L, S, ut, At, Pe = (At = class extends Vt {
353
353
  return Promise.resolve();
354
354
  }
355
355
  clear() {
356
- E.batch(() => {
357
- h(this, L).forEach((t) => {
356
+ M.batch(() => {
357
+ h(this, D).forEach((t) => {
358
358
  this.notify({ type: "removed", mutation: t });
359
- }), h(this, L).clear(), h(this, S).clear();
359
+ }), h(this, D).clear(), h(this, S).clear();
360
360
  });
361
361
  }
362
362
  getAll() {
363
- return Array.from(h(this, L));
363
+ return Array.from(h(this, D));
364
364
  }
365
365
  find(t) {
366
366
  const r = { exact: !0, ...t };
367
367
  return this.getAll().find(
368
- (n) => Mt(r, n)
368
+ (n) => Et(r, n)
369
369
  );
370
370
  }
371
371
  findAll(t = {}) {
372
- return this.getAll().filter((r) => Mt(t, r));
372
+ return this.getAll().filter((r) => Et(t, r));
373
373
  }
374
374
  notify(t) {
375
- E.batch(() => {
375
+ M.batch(() => {
376
376
  this.listeners.forEach((r) => {
377
377
  r(t);
378
378
  });
@@ -380,18 +380,18 @@ var L, S, ut, At, Pe = (At = class extends Vt {
380
380
  }
381
381
  resumePausedMutations() {
382
382
  const t = this.getAll().filter((r) => r.state.isPaused);
383
- return E.batch(
383
+ return M.batch(
384
384
  () => Promise.all(
385
385
  t.map((r) => r.continue().catch(P))
386
386
  )
387
387
  );
388
388
  }
389
- }, L = new WeakMap(), S = new WeakMap(), ut = new WeakMap(), At);
389
+ }, D = new WeakMap(), S = new WeakMap(), ut = new WeakMap(), At);
390
390
  function ht(e) {
391
391
  var t;
392
392
  return (t = e.options.scope) == null ? void 0 : t.id;
393
393
  }
394
- function Ht(e) {
394
+ function _t(e) {
395
395
  return {
396
396
  onFetch: (t, r) => {
397
397
  var x, f, b, v, N;
@@ -399,14 +399,14 @@ function Ht(e) {
399
399
  let u = { pages: [], pageParams: [] }, p = 0;
400
400
  const m = async () => {
401
401
  let T = !1;
402
- const _ = (s) => {
402
+ const H = (s) => {
403
403
  Object.defineProperty(s, "signal", {
404
404
  enumerable: !0,
405
405
  get: () => (t.signal.aborted ? T = !0 : t.signal.addEventListener("abort", () => {
406
406
  T = !0;
407
407
  }), t.signal)
408
408
  });
409
- }, K = me(t.options, t.fetchOptions), D = async (s, O, Q) => {
409
+ }, K = me(t.options, t.fetchOptions), L = async (s, O, Q) => {
410
410
  if (T)
411
411
  return Promise.reject();
412
412
  if (O == null && s.pages.length)
@@ -418,7 +418,7 @@ function Ht(e) {
418
418
  direction: Q ? "backward" : "forward",
419
419
  meta: t.options.meta
420
420
  };
421
- _($);
421
+ H($);
422
422
  const pt = await K(
423
423
  $
424
424
  ), { maxPages: w } = t.options, Z = Q ? he : xe;
@@ -428,25 +428,25 @@ function Ht(e) {
428
428
  };
429
429
  };
430
430
  if (i && d.length) {
431
- const s = i === "backward", O = s ? Le : _t, Q = {
431
+ const s = i === "backward", O = s ? De : Ht, Q = {
432
432
  pages: d,
433
433
  pageParams: l
434
434
  }, $ = O(n, Q);
435
- u = await D(Q, $, s);
435
+ u = await L(Q, $, s);
436
436
  } else {
437
437
  const s = e ?? d.length;
438
438
  do {
439
- const O = p === 0 ? l[0] ?? n.initialPageParam : _t(n, u);
439
+ const O = p === 0 ? l[0] ?? n.initialPageParam : Ht(n, u);
440
440
  if (p > 0 && O == null)
441
441
  break;
442
- u = await D(u, O), p++;
442
+ u = await L(u, O), p++;
443
443
  } while (p < s);
444
444
  }
445
445
  return u;
446
446
  };
447
447
  t.options.persister ? t.fetchFn = () => {
448
- var T, _;
449
- return (_ = (T = t.options).persister) == null ? void 0 : _.call(
448
+ var T, H;
449
+ return (H = (T = t.options).persister) == null ? void 0 : H.call(
450
450
  T,
451
451
  m,
452
452
  {
@@ -461,7 +461,7 @@ function Ht(e) {
461
461
  }
462
462
  };
463
463
  }
464
- function _t(e, { pages: t, pageParams: r }) {
464
+ function Ht(e, { pages: t, pageParams: r }) {
465
465
  const n = t.length - 1;
466
466
  return t.length > 0 ? e.getNextPageParam(
467
467
  t[n],
@@ -470,11 +470,11 @@ function _t(e, { pages: t, pageParams: r }) {
470
470
  r
471
471
  ) : void 0;
472
472
  }
473
- function Le(e, { pages: t, pageParams: r }) {
473
+ function De(e, { pages: t, pageParams: r }) {
474
474
  var n;
475
475
  return t.length > 0 ? (n = e.getPreviousPageParam) == null ? void 0 : n.call(e, t[0], t, r[0], r) : void 0;
476
476
  }
477
- var g, A, U, tt, et, V, rt, nt, Ut, De = (Ut = class {
477
+ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
478
478
  constructor(e = {}) {
479
479
  C(this, g);
480
480
  C(this, A);
@@ -533,7 +533,7 @@ var g, A, U, tt, et, V, rt, nt, Ut, De = (Ut = class {
533
533
  return h(this, g).build(this, n).setData(l, { ...r, manual: !0 });
534
534
  }
535
535
  setQueriesData(e, t, r) {
536
- return E.batch(
536
+ return M.batch(
537
537
  () => h(this, g).findAll(e).map(({ queryKey: n }) => [
538
538
  n,
539
539
  this.setQueryData(n, t, r)
@@ -549,7 +549,7 @@ var g, A, U, tt, et, V, rt, nt, Ut, De = (Ut = class {
549
549
  }
550
550
  removeQueries(e) {
551
551
  const t = h(this, g);
552
- E.batch(() => {
552
+ M.batch(() => {
553
553
  t.findAll(e).forEach((r) => {
554
554
  t.remove(r);
555
555
  });
@@ -557,7 +557,7 @@ var g, A, U, tt, et, V, rt, nt, Ut, De = (Ut = class {
557
557
  }
558
558
  resetQueries(e, t) {
559
559
  const r = h(this, g);
560
- return E.batch(() => (r.findAll(e).forEach((n) => {
560
+ return M.batch(() => (r.findAll(e).forEach((n) => {
561
561
  n.reset();
562
562
  }), this.refetchQueries(
563
563
  {
@@ -568,13 +568,13 @@ var g, A, U, tt, et, V, rt, nt, Ut, De = (Ut = class {
568
568
  )));
569
569
  }
570
570
  cancelQueries(e, t = {}) {
571
- const r = { revert: !0, ...t }, n = E.batch(
571
+ const r = { revert: !0, ...t }, n = M.batch(
572
572
  () => h(this, g).findAll(e).map((i) => i.cancel(r))
573
573
  );
574
574
  return Promise.all(n).then(P).catch(P);
575
575
  }
576
576
  invalidateQueries(e, t = {}) {
577
- return E.batch(() => (h(this, g).findAll(e).forEach((r) => {
577
+ return M.batch(() => (h(this, g).findAll(e).forEach((r) => {
578
578
  r.invalidate();
579
579
  }), (e == null ? void 0 : e.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
580
580
  {
@@ -588,7 +588,7 @@ var g, A, U, tt, et, V, rt, nt, Ut, De = (Ut = class {
588
588
  const r = {
589
589
  ...t,
590
590
  cancelRefetch: t.cancelRefetch ?? !0
591
- }, n = E.batch(
591
+ }, n = M.batch(
592
592
  () => h(this, g).findAll(e).filter((i) => !i.isDisabled()).map((i) => {
593
593
  let d = i.fetch(void 0, r);
594
594
  return r.throwOnError || (d = d.catch(P)), i.state.fetchStatus === "paused" ? Promise.resolve() : d;
@@ -608,13 +608,13 @@ var g, A, U, tt, et, V, rt, nt, Ut, De = (Ut = class {
608
608
  return this.fetchQuery(e).then(P).catch(P);
609
609
  }
610
610
  fetchInfiniteQuery(e) {
611
- return e.behavior = Ht(e.pages), this.fetchQuery(e);
611
+ return e.behavior = _t(e.pages), this.fetchQuery(e);
612
612
  }
613
613
  prefetchInfiniteQuery(e) {
614
614
  return this.fetchInfiniteQuery(e).then(P).catch(P);
615
615
  }
616
616
  ensureInfiniteQueryData(e) {
617
- return e.behavior = Ht(e.pages), this.ensureQueryData(e);
617
+ return e.behavior = _t(e.pages), this.ensureQueryData(e);
618
618
  }
619
619
  resumePausedMutations() {
620
620
  return Ot.isOnline() ? h(this, A).resumePausedMutations() : Promise.resolve();
@@ -711,7 +711,7 @@ const Qe = [
711
711
  }, [e]), J = ({ handlerOptions: e, ...t }) => {
712
712
  const r = ze(e);
713
713
  return /* @__PURE__ */ o.jsx(vt, { onClick: r, ...t, children: t.children });
714
- }, qe = M(
714
+ }, qe = E(
715
715
  "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",
716
716
  {
717
717
  variants: {
@@ -758,7 +758,7 @@ const Qe = [
758
758
  },
759
759
  t
760
760
  );
761
- }, Ue = M("grid gap-4", {
761
+ }, Ue = E("grid gap-4", {
762
762
  variants: {
763
763
  variant: {
764
764
  twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
@@ -766,7 +766,7 @@ const Qe = [
766
766
  fourCards: "grid-cols-1 mobile:grid-rows-[400px,1fr,1fr,400px] desktop:grid-cols-3"
767
767
  }
768
768
  }
769
- }), vn = ({ headline: e, details: t, variant: r, classes: n }) => /* @__PURE__ */ o.jsx("section", { id: j.benefit, "data-test-id": j.benefit, className: a("pb-20", n == null ? void 0 : n.root), children: /* @__PURE__ */ o.jsxs(H, { className: n == null ? void 0 : n.container, children: [
769
+ }), wn = ({ headline: e, details: t, variant: r, classes: n }) => /* @__PURE__ */ o.jsx("section", { id: j.benefit, "data-test-id": j.benefit, className: a("pb-20", n == null ? void 0 : n.root), children: /* @__PURE__ */ o.jsxs(_, { className: n == null ? void 0 : n.container, children: [
770
770
  /* @__PURE__ */ o.jsx(
771
771
  "div",
772
772
  {
@@ -784,7 +784,7 @@ const Qe = [
784
784
  default:
785
785
  return null;
786
786
  }
787
- }, Nn = (e) => {
787
+ }, vn = (e) => {
788
788
  const { logoPath: t = "/", logoType: r = "main", classes: n } = e;
789
789
  return /* @__PURE__ */ o.jsx(
790
790
  "header",
@@ -792,7 +792,7 @@ const Qe = [
792
792
  id: j.header,
793
793
  "data-test-id": j.header,
794
794
  className: a("flex h-[64px] items-center justify-center bg-color-white desktop:h-[72px]", n == null ? void 0 : n.header),
795
- children: /* @__PURE__ */ o.jsx(H, { className: a(n == null ? void 0 : n.container), children: /* @__PURE__ */ o.jsxs("div", { className: a("flex items-center justify-between gap-5", n == null ? void 0 : n.wrapper), children: [
795
+ children: /* @__PURE__ */ o.jsx(_, { className: a(n == null ? void 0 : n.container), children: /* @__PURE__ */ o.jsxs("div", { className: a("flex items-center justify-between gap-5", n == null ? void 0 : n.wrapper), children: [
796
796
  /* @__PURE__ */ o.jsx(
797
797
  "a",
798
798
  {
@@ -842,7 +842,7 @@ const Qe = [
842
842
  className: a("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
843
843
  children: [
844
844
  /* @__PURE__ */ o.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 : v }),
845
- /* @__PURE__ */ o.jsxs(H, { className: a("h-full", i == null ? void 0 : i.container), children: [
845
+ /* @__PURE__ */ o.jsxs(_, { className: a("h-full", i == null ? void 0 : i.container), children: [
846
846
  /* @__PURE__ */ o.jsx("div", { className: a("flex h-full", i == null ? void 0 : i.wrapper), children: /* @__PURE__ */ o.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: [
847
847
  /* @__PURE__ */ o.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
848
848
  /* @__PURE__ */ o.jsx(
@@ -917,7 +917,7 @@ const Qe = [
917
917
  "data-test-id": j.banner,
918
918
  style: { backgroundColor: u ?? "#d9edff" },
919
919
  className: a("bg-banner-skyblue-300 desktop:h-[456px]", i == null ? void 0 : i.root),
920
- children: /* @__PURE__ */ o.jsxs(H, { className: a("relative", i == null ? void 0 : i.container), children: [
920
+ children: /* @__PURE__ */ o.jsxs(_, { className: a("relative", i == null ? void 0 : i.container), children: [
921
921
  /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col desktop:flex-row desktop:justify-between", i == null ? void 0 : i.wrapper), children: [
922
922
  /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col desktop:gap-10 desktop:pt-20", children: [
923
923
  /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-4 pt-6 desktop:pt-0", i == null ? void 0 : i.textBlock), children: [
@@ -1001,7 +1001,7 @@ const Qe = [
1001
1001
  }
1002
1002
  )
1003
1003
  ] });
1004
- }, sn = ({ variant: e, ...t }) => {
1004
+ }, Nn = ({ variant: e, ...t }) => {
1005
1005
  switch (e) {
1006
1006
  case "separateImg":
1007
1007
  return /* @__PURE__ */ o.jsx(Pt, { ...t });
@@ -1142,7 +1142,7 @@ const Qe = [
1142
1142
  }
1143
1143
  )
1144
1144
  ] });
1145
- }, Cn = ({
1145
+ }, sn = ({
1146
1146
  socialsLinks: e,
1147
1147
  phones: t,
1148
1148
  ligal: r,
@@ -1156,7 +1156,7 @@ const Qe = [
1156
1156
  id: j.footer,
1157
1157
  "data-test-id": j.footer,
1158
1158
  className: a("w-full bg-color-footer py-8 desktop:py-10", i == null ? void 0 : i.root),
1159
- children: /* @__PURE__ */ o.jsx(H, { className: a(i == null ? void 0 : i.footerContainer), children: /* @__PURE__ */ o.jsxs("div", { className: a("mobile:pb-[176px]", i == null ? void 0 : i.footerWrapper), children: [
1159
+ children: /* @__PURE__ */ o.jsx(_, { className: a(i == null ? void 0 : i.footerContainer), children: /* @__PURE__ */ o.jsxs("div", { className: a("mobile:pb-[176px]", i == null ? void 0 : i.footerWrapper), children: [
1160
1160
  /* @__PURE__ */ o.jsxs(
1161
1161
  "div",
1162
1162
  {
@@ -1229,7 +1229,7 @@ const Qe = [
1229
1229
  ]
1230
1230
  }
1231
1231
  );
1232
- }, Tn = ({ headline: e, details: t, variant: r, classes: n }) => /* @__PURE__ */ o.jsx("section", { id: j.stepper, "data-test-id": j.stepper, className: n == null ? void 0 : n.root, children: /* @__PURE__ */ o.jsx(H, { className: n == null ? void 0 : n.container, children: /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-6 desktop:items-start desktop:gap-12", n == null ? void 0 : n.wrapper), children: [
1232
+ }, Cn = ({ headline: e, details: t, variant: r, classes: n }) => /* @__PURE__ */ o.jsx("section", { id: j.stepper, "data-test-id": j.stepper, className: n == null ? void 0 : n.root, children: /* @__PURE__ */ o.jsx(_, { className: n == null ? void 0 : n.container, children: /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col gap-6 desktop:items-start desktop:gap-12", n == null ? void 0 : n.wrapper), children: [
1233
1233
  /* @__PURE__ */ o.jsx(W, { as: "h2", className: a("text-color-dark", n == null ? void 0 : n.headline), children: e }),
1234
1234
  /* @__PURE__ */ o.jsx(
1235
1235
  "div",
@@ -1241,7 +1241,7 @@ const Qe = [
1241
1241
  children: t == null ? void 0 : t.map((i, d) => /* @__PURE__ */ o.jsx(tr, { variant: r, ...i, index: d + 1, classes: n == null ? void 0 : n.step }, i.description))
1242
1242
  }
1243
1243
  )
1244
- ] }) }) }), er = M("", {
1244
+ ] }) }) }), er = E("", {
1245
1245
  variants: {
1246
1246
  intent: {
1247
1247
  twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
@@ -1257,7 +1257,7 @@ const Qe = [
1257
1257
  defaultVariants: {
1258
1258
  intent: "twoItems"
1259
1259
  }
1260
- }), rr = M("", {
1260
+ }), rr = E("", {
1261
1261
  variants: {
1262
1262
  intent: {
1263
1263
  twoItems: "",
@@ -1289,7 +1289,7 @@ const Qe = [
1289
1289
  class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
1290
1290
  }
1291
1291
  ]
1292
- }), nr = M("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
1292
+ }), nr = E("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
1293
1293
  variants: {
1294
1294
  intent: {
1295
1295
  twoItems: 'last:border-none relative desktop:first:after:top-1/2 desktop:first:after:-translate-y-1/2 desktop:first:after:right-0 desktop:first:after:content-[""] desktop:first:after:block desktop:first:after:absolute desktop:first:after:w-[1px] desktop:first:after:h-[64px] desktop:first:after:bg-color-blue-grey-500 desktop:ml-8 desktop:pr-8 desktop:first:ml-0 desktop:last:pr-0 desktop:pb-3',
@@ -1299,7 +1299,7 @@ const Qe = [
1299
1299
  defaultVariants: {
1300
1300
  intent: "twoItems"
1301
1301
  }
1302
- }), or = M("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
1302
+ }), or = E("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
1303
1303
  variants: {
1304
1304
  intent: {
1305
1305
  twoItems: "desktop:h-[232px] desktop:w-[500px]",
@@ -1340,7 +1340,7 @@ const Qe = [
1340
1340
  ] }),
1341
1341
  /* @__PURE__ */ o.jsx("div", { className: a("mob-body-regular-l text-color-secondary"), dangerouslySetInnerHTML: { __html: n } })
1342
1342
  ] }) });
1343
- }, jt = ({ intent: e, headline: t, desktopHidden: r = !1, mobileHidden: n = !1 }) => /* @__PURE__ */ o.jsx("h2", { className: a(er({ intent: e, desktopHidden: r, mobileHidden: n })), children: t }), dr = ({ details: e, intent: t, withButton: r }) => /* @__PURE__ */ o.jsx("ul", { className: a(rr({ intent: t, withButton: r })), children: e == null ? void 0 : e.map((n, i) => /* @__PURE__ */ o.jsx(ir, { intent: t, data: n }, i)) }), In = ({
1343
+ }, jt = ({ intent: e, headline: t, desktopHidden: r = !1, mobileHidden: n = !1 }) => /* @__PURE__ */ o.jsx("h2", { className: a(er({ intent: e, desktopHidden: r, mobileHidden: n })), children: t }), dr = ({ details: e, intent: t, withButton: r }) => /* @__PURE__ */ o.jsx("ul", { className: a(rr({ intent: t, withButton: r })), children: e == null ? void 0 : e.map((n, i) => /* @__PURE__ */ o.jsx(ir, { intent: t, data: n }, i)) }), Tn = ({
1344
1344
  headline: e,
1345
1345
  buttonConfig: t,
1346
1346
  intent: r = "twoItems",
@@ -1349,7 +1349,7 @@ const Qe = [
1349
1349
  classes: d
1350
1350
  }) => {
1351
1351
  const l = r === "fourItems", u = r === "twoItems", p = i && "url" in i && k.isObject(i) ? /* @__PURE__ */ o.jsx("img", { className: "w-full object-contain", alt: i.alt, src: i.url }) : i;
1352
- return /* @__PURE__ */ o.jsx("section", { id: j.longBanner, "data-test-id": j.longBanner, className: a(d == null ? void 0 : d.root), children: /* @__PURE__ */ o.jsxs(H, { className: a(d == null ? void 0 : d.container), children: [
1352
+ return /* @__PURE__ */ o.jsx("section", { id: j.longBanner, "data-test-id": j.longBanner, className: a(d == null ? void 0 : d.root), children: /* @__PURE__ */ o.jsxs(_, { className: a(d == null ? void 0 : d.container), children: [
1353
1353
  u && /* @__PURE__ */ o.jsx(jt, { intent: r, headline: e }),
1354
1354
  /* @__PURE__ */ o.jsxs(
1355
1355
  "div",
@@ -1466,7 +1466,7 @@ const Qe = [
1466
1466
  children: t == null ? void 0 : t.text
1467
1467
  }
1468
1468
  )
1469
- ] }), Lt = ({ mainLink: e, subLink: t, isLoading: r, badge: n, loaderProps: i, classes: d }) => {
1469
+ ] }), Dt = ({ mainLink: e, subLink: t, isLoading: r, badge: n, loaderProps: i, classes: d }) => {
1470
1470
  const { isMobile: l } = Y();
1471
1471
  return /* @__PURE__ */ o.jsx(re, { isLoading: r, loaderProps: i, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ o.jsxs(
1472
1472
  "div",
@@ -1490,7 +1490,7 @@ const Qe = [
1490
1490
  ]
1491
1491
  }
1492
1492
  ) });
1493
- }, Dt = ({ mainLink: e, subLink: t, isLoading: r, badge: n, loaderProps: i, classes: d }) => {
1493
+ }, Lt = ({ mainLink: e, subLink: t, isLoading: r, badge: n, loaderProps: i, classes: d }) => {
1494
1494
  const { isMobile: l } = Y();
1495
1495
  return /* @__PURE__ */ o.jsx(re, { isLoading: r, loaderProps: i, classes: d == null ? void 0 : d.authWrapper, children: /* @__PURE__ */ o.jsxs(
1496
1496
  "div",
@@ -1513,9 +1513,9 @@ const Qe = [
1513
1513
  }, lr = (e) => {
1514
1514
  switch (e.mode) {
1515
1515
  case yt.ESIA:
1516
- return /* @__PURE__ */ o.jsx(Dt, { ...e });
1517
- case yt.MOBILE_ID:
1518
1516
  return /* @__PURE__ */ o.jsx(Lt, { ...e });
1517
+ case yt.MOBILE_ID:
1518
+ return /* @__PURE__ */ o.jsx(Dt, { ...e });
1519
1519
  case yt.COMBINE:
1520
1520
  default:
1521
1521
  const { esiaConfig: t, mobileIdConfig: r, subtitle: n, badge: i, classes: d } = e, l = !n && !i ? at.Fragment : "div";
@@ -1533,7 +1533,7 @@ const Qe = [
1533
1533
  ] }),
1534
1534
  /* @__PURE__ */ o.jsxs("div", { className: a("grid w-full grid-cols-2 gap-2 desktop:gap-4", d == null ? void 0 : d.authWrapper), children: [
1535
1535
  /* @__PURE__ */ o.jsx(
1536
- Dt,
1536
+ Lt,
1537
1537
  {
1538
1538
  ...t,
1539
1539
  classes: {
@@ -1544,7 +1544,7 @@ const Qe = [
1544
1544
  }
1545
1545
  ),
1546
1546
  /* @__PURE__ */ o.jsx(
1547
- Lt,
1547
+ Dt,
1548
1548
  {
1549
1549
  ...r,
1550
1550
  classes: {
@@ -1559,7 +1559,7 @@ const Qe = [
1559
1559
  }
1560
1560
  );
1561
1561
  }
1562
- }, En = (e) => lr(e), Qt = ({ links: e, classes: t }) => /* @__PURE__ */ o.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: n }) => /* @__PURE__ */ o.jsx(
1562
+ }, In = (e) => lr(e), Qt = ({ links: e, classes: t }) => /* @__PURE__ */ o.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: n }) => /* @__PURE__ */ o.jsx(
1563
1563
  ct,
1564
1564
  {
1565
1565
  classes: {
@@ -1597,7 +1597,7 @@ const Qe = [
1597
1597
  }
1598
1598
  )
1599
1599
  ] });
1600
- }, pr = ({ column: e, mobileAccordionProps: t, classes: r }) => /* @__PURE__ */ o.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((n) => /* @__PURE__ */ o.jsx(ur, { ...t, ...n, classes: r == null ? void 0 : r.columnGroup }, n.groupLabel)) }), mr = M("grid gap-4 grid-cols-1", {
1600
+ }, pr = ({ column: e, mobileAccordionProps: t, classes: r }) => /* @__PURE__ */ o.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((n) => /* @__PURE__ */ o.jsx(ur, { ...t, ...n, classes: r == null ? void 0 : r.columnGroup }, n.groupLabel)) }), mr = E("grid gap-4 grid-cols-1", {
1601
1601
  variants: {
1602
1602
  variant: {
1603
1603
  twoCols: "desktop:grid-cols-2",
@@ -1624,7 +1624,7 @@ const Qe = [
1624
1624
  id: j.interLinking,
1625
1625
  "data-test-id": j.interLinking,
1626
1626
  className: a("min-w-full desktop:min-w-[1140px]", d == null ? void 0 : d.root),
1627
- children: /* @__PURE__ */ o.jsx(H, { children: /* @__PURE__ */ o.jsx(
1627
+ children: /* @__PURE__ */ o.jsx(_, { children: /* @__PURE__ */ o.jsx(
1628
1628
  ot,
1629
1629
  {
1630
1630
  defaultOpen: l,
@@ -1669,21 +1669,21 @@ const Qe = [
1669
1669
  };
1670
1670
  })
1671
1671
  }))
1672
- }), jr = M("flex flex-col", {
1672
+ }), jr = E("flex flex-col", {
1673
1673
  variants: {
1674
1674
  columnsVariant: {
1675
1675
  twoCols: "w-full max-w-[656px]",
1676
1676
  threeCols: "w-full max-w-[768px]"
1677
1677
  }
1678
1678
  }
1679
- }), yr = M("desktop:grid mobile:hidden px-4 mb-4", {
1679
+ }), yr = E("desktop:grid mobile:hidden px-4 mb-4", {
1680
1680
  variants: {
1681
1681
  columnsVariant: {
1682
1682
  twoCols: "grid-cols-2 gap-16",
1683
1683
  threeCols: "grid-cols-3 gap-12"
1684
1684
  }
1685
1685
  }
1686
- }), kr = ({ headings: e, columnsVariant: t, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: a(yr({ columnsVariant: t }), r == null ? void 0 : r.row), children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ o.jsx("div", { className: a("text-color-secondary", r == null ? void 0 : r.cell), children: n == null ? void 0 : n.heading }, n == null ? void 0 : n.heading)) }), wr = M("desktop:grid mobile:hidden items-center", {
1686
+ }), kr = ({ headings: e, columnsVariant: t, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: a(yr({ columnsVariant: t }), r == null ? void 0 : r.row), children: e == null ? void 0 : e.map((n) => /* @__PURE__ */ o.jsx("div", { className: a("text-color-secondary", r == null ? void 0 : r.cell), children: n == null ? void 0 : n.heading }, n == null ? void 0 : n.heading)) }), wr = E("desktop:grid mobile:hidden items-center", {
1687
1687
  variants: {
1688
1688
  columnsVariant: {
1689
1689
  twoCols: "grid-cols-2 gap-16",
@@ -1701,7 +1701,7 @@ const Qe = [
1701
1701
  children: d && d
1702
1702
  },
1703
1703
  l
1704
- )) }), Nr = M("mobile:flex desktop:hidden flex-col gap-2", {
1704
+ )) }), Nr = E("mobile:flex desktop:hidden flex-col gap-2", {
1705
1705
  variants: {
1706
1706
  tableVariant: {
1707
1707
  filled: "px-4 py-4 odd:bg-color-primary-light-default",
@@ -1777,7 +1777,7 @@ const Qe = [
1777
1777
  }, Ir = {
1778
1778
  documentFilled: "files/documentFilled",
1779
1779
  documentOutline: "files/documentOutline"
1780
- }, Er = M("size-8 transition-colors", {
1780
+ }, Mr = E("size-8 transition-colors", {
1781
1781
  variants: {
1782
1782
  iconType: {
1783
1783
  documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
@@ -1787,7 +1787,7 @@ const Qe = [
1787
1787
  defaultVariants: {
1788
1788
  iconType: "documentOutline"
1789
1789
  }
1790
- }), Mr = ({ label: e, size: t, url: r, iconType: n, classes: i }) => /* @__PURE__ */ o.jsxs(
1790
+ }), Er = ({ label: e, size: t, url: r, iconType: n, classes: i }) => /* @__PURE__ */ o.jsxs(
1791
1791
  "a",
1792
1792
  {
1793
1793
  href: r,
@@ -1799,7 +1799,7 @@ const Qe = [
1799
1799
  i == null ? void 0 : i.link
1800
1800
  ),
1801
1801
  children: [
1802
- /* @__PURE__ */ o.jsx(c, { name: Ir[n], className: a(Er({ iconType: n }), i == null ? void 0 : i.icon) }),
1802
+ /* @__PURE__ */ o.jsx(c, { name: Ir[n], className: a(Mr({ iconType: n }), i == null ? void 0 : i.icon) }),
1803
1803
  /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-1 flex-col", i == null ? void 0 : i.wrapper), children: [
1804
1804
  /* @__PURE__ */ o.jsx("p", { className: a("desk-body-medium-l text-color-dark", i == null ? void 0 : i.label), children: e }),
1805
1805
  /* @__PURE__ */ o.jsxs("div", { className: a("desk-body-regular-m text-color-disabled", i == null ? void 0 : i.size), children: [
@@ -1812,7 +1812,7 @@ const Qe = [
1812
1812
  ), Or = ({ docs: e, config: t, title: r, iconType: n, description: i, classes: d, accordionConfig: l }) => {
1813
1813
  const u = /* @__PURE__ */ o.jsxs("div", { className: a("flex max-w-[680px] flex-col", d == null ? void 0 : d.wrapper), children: [
1814
1814
  r && /* @__PURE__ */ o.jsx(W, { as: "h3", className: "mb-4", children: r }),
1815
- /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4", d == null ? void 0 : d.documentsWrapper), children: e == null ? void 0 : e.map((p) => /* @__PURE__ */ o.jsx(Mr, { iconType: n, ...p, classes: d == null ? void 0 : d.singleDocument }, p.label)) }),
1815
+ /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-4", d == null ? void 0 : d.documentsWrapper), children: e == null ? void 0 : e.map((p) => /* @__PURE__ */ o.jsx(Er, { iconType: n, ...p, classes: d == null ? void 0 : d.singleDocument }, p.label)) }),
1816
1816
  i && /* @__PURE__ */ o.jsx("div", { className: a("mt-4", d == null ? void 0 : d.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
1817
1817
  ] });
1818
1818
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: t && (t != null && t.isAccordion) && (t != null && t.accordionTitle) ? /* @__PURE__ */ o.jsx(ot, { label: t == null ? void 0 : t.accordionTitle, ...l, children: (l == null ? void 0 : l.children) || u }) : u });
@@ -1853,10 +1853,10 @@ const Qe = [
1853
1853
  default:
1854
1854
  return null;
1855
1855
  }
1856
- }, Fr = ({ entity: e, classes: t, accordionsConfig: r }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-6", t == null ? void 0 : t.entityWrapper), children: Sr({ entity: e, classes: t, accordionsConfig: r }) }), On = ({ headline: e, tabs: t, classes: r, accordionsConfig: n }) => {
1856
+ }, Fr = ({ entity: e, classes: t, accordionsConfig: r }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-6", t == null ? void 0 : t.entityWrapper), children: Sr({ entity: e, classes: t, accordionsConfig: r }) }), En = ({ headline: e, tabs: t, classes: r, accordionsConfig: n }) => {
1857
1857
  var u, p;
1858
1858
  const [i, d] = G(0), l = Ct(() => t == null ? void 0 : t.map((m) => m == null ? void 0 : m.tabName), [t]) ?? [];
1859
- return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ o.jsx("section", { id: j.usefulInfo, "data-test-id": j.usefulInfo, className: a(r == null ? void 0 : r.root), children: /* @__PURE__ */ o.jsxs(H, { className: a(r == null ? void 0 : r.container), children: [
1859
+ return !t || (t == null ? void 0 : t.length) === 0 ? null : /* @__PURE__ */ o.jsx("section", { id: j.usefulInfo, "data-test-id": j.usefulInfo, className: a(r == null ? void 0 : r.root), children: /* @__PURE__ */ o.jsxs(_, { className: a(r == null ? void 0 : r.container), children: [
1860
1860
  /* @__PURE__ */ o.jsx(W, { className: a(r == null ? void 0 : r.headline), as: "h2", children: e }),
1861
1861
  /* @__PURE__ */ o.jsx("div", { className: a("mt-6 flex flex-col gap-2 desktop:mt-12", r == null ? void 0 : r.tabsWrapper), children: /* @__PURE__ */ o.jsx(hr, { tabsNames: l, activeTab: i, setActiveTab: d, classes: r == null ? void 0 : r.tabs }) }),
1862
1862
  /* @__PURE__ */ o.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__ */ o.jsx(Fr, { accordionsConfig: n, ...m, classes: r == null ? void 0 : r.entityClasses }, x)) })
@@ -1937,20 +1937,13 @@ class Rr {
1937
1937
  return r.length;
1938
1938
  }
1939
1939
  }
1940
- const Hr = typeof window < "u";
1941
- class _r extends Error {
1942
- constructor(t, r) {
1943
- super(t), this.originalError = r, this.name = "BrowserHTMLParserError";
1944
- }
1945
- }
1946
- class Pr extends Rr {
1940
+ const _r = typeof window < "u";
1941
+ class Hr extends Rr {
1947
1942
  constructor(t) {
1948
1943
  super(t);
1949
1944
  }
1950
1945
  async parseFromString(t) {
1951
- if (!Hr)
1952
- throw new _r("HTMLParser should only be used in the browser.");
1953
- return new DOMParser().parseFromString(t, "text/html");
1946
+ return _r ? new DOMParser().parseFromString(t, "text/html") : Promise.reject();
1954
1947
  }
1955
1948
  }
1956
1949
  class wt {
@@ -2007,12 +2000,12 @@ class wt {
2007
2000
  * функция для преобразования html строки в react элементы
2008
2001
  */
2009
2002
  static async toReactNodes(t, r) {
2010
- const n = new Pr(r), { nodes: i } = await n.parse(t, "node");
2003
+ const n = new Hr(r), { nodes: i } = await n.parse(t, "node");
2011
2004
  return i.map((d) => this.parseNode(d));
2012
2005
  }
2013
2006
  }
2014
2007
  it(wt, "TEXT_NODE", 3), it(wt, "ELEMENT_NODE", 1);
2015
- const Lr = ({ promises: e }) => {
2008
+ const Pr = ({ promises: e }) => {
2016
2009
  const [t, r] = G([]);
2017
2010
  return Xt(() => {
2018
2011
  (async () => {
@@ -2023,7 +2016,7 @@ const Lr = ({ promises: e }) => {
2023
2016
  const i = r ?? se, d = r ? n : {}, l = wt.toReactNodes(e, t);
2024
2017
  return (
2025
2018
  // @ts-expect-error disable warning
2026
- /* @__PURE__ */ o.jsx(i, { ...d, children: /* @__PURE__ */ o.jsx(Lr, { promises: l }) })
2019
+ /* @__PURE__ */ o.jsx(i, { ...d, children: /* @__PURE__ */ o.jsx(Pr, { promises: l }) })
2027
2020
  );
2028
2021
  }, Dr = ["getFioSchema"], oe = (e, t, r) => {
2029
2022
  const n = e[t];
@@ -2032,22 +2025,22 @@ const Lr = ({ promises: e }) => {
2032
2025
  if (!k.isFunction(n))
2033
2026
  throw new Error(`Cannot generate ${String(t)} because is not a function`);
2034
2027
  return n(r);
2035
- }, Qr = (e, t) => oe(te.base, e, t), zr = (e, t) => oe(te.dadata, e, t), qr = (e) => {
2028
+ }, Lr = (e, t) => oe(te.base, e, t), Qr = (e, t) => oe(te.dadata, e, t), zr = (e) => {
2036
2029
  const r = e.map((n) => ({ name: n.args.name, validation: n.args.validation })).reduce((n, i) => {
2037
- const d = Dr.includes(i.validation.type) ? zr(
2030
+ const d = Dr.includes(i.validation.type) ? Qr(
2038
2031
  i.validation.type,
2039
2032
  i.validation.args
2040
- ) : Qr(
2033
+ ) : Lr(
2041
2034
  i.validation.type,
2042
2035
  i.validation.args
2043
2036
  );
2044
2037
  return n[i.name] = d, n;
2045
2038
  }, {});
2046
2039
  return Se(r);
2047
- }, Ar = (e, t) => e.enabled ? t.map((r) => ({
2040
+ }, qr = (e, t) => e.enabled ? t.map((r) => ({
2048
2041
  name: r.args.name,
2049
2042
  ...r.args.progress
2050
- })) : null, Ur = new De(), Vr = ({ children: e }) => /* @__PURE__ */ o.jsx(we, { client: Ur, children: e }), Wr = (e, t, r, n) => e.type === "off" ? null : e.type === "text" ? /* @__PURE__ */ o.jsx(ft, { html: e.message, as: "div", className: n == null ? void 0 : n.content }) : /* @__PURE__ */ o.jsxs(
2043
+ })) : null, Ar = new Le(), Ur = ({ children: e }) => /* @__PURE__ */ o.jsx(we, { client: Ar, children: e }), Vr = (e, t, r, n) => e.type === "off" ? null : e.type === "text" ? /* @__PURE__ */ o.jsx(ft, { html: e.message, as: "div", className: n == null ? void 0 : n.content }) : /* @__PURE__ */ o.jsxs(
2051
2044
  "label",
2052
2045
  {
2053
2046
  className: a(
@@ -2060,7 +2053,7 @@ const Lr = ({ promises: e }) => {
2060
2053
  /* @__PURE__ */ o.jsx(ft, { html: e.content, as: "div", className: n == null ? void 0 : n.content })
2061
2054
  ]
2062
2055
  }
2063
- ), Sn = ({
2056
+ ), On = ({
2064
2057
  fields: e,
2065
2058
  title: t,
2066
2059
  progress: r,
@@ -2069,15 +2062,15 @@ const Lr = ({ promises: e }) => {
2069
2062
  submitProps: d,
2070
2063
  classes: l
2071
2064
  }) => {
2072
- var K, D;
2073
- const { submitCallback: u, ...p } = d || {}, [m, x] = G(!1), f = qr(e), { control: b, handleSubmit: v } = Me({
2065
+ var K, L;
2066
+ const { submitCallback: u, ...p } = d || {}, [m, x] = G(!1), f = zr(e), { control: b, handleSubmit: v } = Ee({
2074
2067
  schema: f,
2075
2068
  defaultValues: Fe.getZodDefaults(f),
2076
2069
  mode: "onBlur"
2077
- }), N = Ar(r, e), T = Be({ control: b, fields: N || [], schema: f }), _ = (s) => {
2078
- u && u(s), console.warn(s);
2070
+ }), N = qr(r, e), T = Be({ control: b, fields: N || [], schema: f }), H = (s) => {
2071
+ u && u({ ...s, agree: m }), console.warn(s);
2079
2072
  };
2080
- return /* @__PURE__ */ o.jsx(Vr, { children: /* @__PURE__ */ o.jsxs(
2073
+ return /* @__PURE__ */ o.jsx(Ur, { children: /* @__PURE__ */ o.jsxs(
2081
2074
  "div",
2082
2075
  {
2083
2076
  id: j.form,
@@ -2098,7 +2091,7 @@ const Lr = ({ promises: e }) => {
2098
2091
  (K = l == null ? void 0 : l.chips) == null ? void 0 : K.root
2099
2092
  ),
2100
2093
  children: [
2101
- i.image && /* @__PURE__ */ o.jsx(c, { name: i.image, className: a("size-4", (D = l == null ? void 0 : l.chips) == null ? void 0 : D.icon) }),
2094
+ i.image && /* @__PURE__ */ o.jsx(c, { name: i.image, className: a("size-4", (L = l == null ? void 0 : l.chips) == null ? void 0 : L.icon) }),
2102
2095
  i.content
2103
2096
  ]
2104
2097
  }
@@ -2107,7 +2100,7 @@ const Lr = ({ promises: e }) => {
2107
2100
  /* @__PURE__ */ o.jsxs(
2108
2101
  "form",
2109
2102
  {
2110
- onSubmit: v(_),
2103
+ onSubmit: v(H),
2111
2104
  className: a("flex w-[328px] flex-col gap-y-6", "desktop:w-[524px] desktop:gap-y-8", l == null ? void 0 : l.form),
2112
2105
  children: [
2113
2106
  r.enabled && /* @__PURE__ */ o.jsx(
@@ -2122,7 +2115,7 @@ const Lr = ({ promises: e }) => {
2122
2115
  ),
2123
2116
  /* @__PURE__ */ o.jsx(Br, { control: b, fields: e }),
2124
2117
  /* @__PURE__ */ o.jsxs("div", { className: "mob-body-regular-m flex flex-col items-center justify-center gap-4 desktop:flex-row desktop:justify-between", children: [
2125
- Wr(n, m, x, l == null ? void 0 : l.approvement),
2118
+ Vr(n, m, x, l == null ? void 0 : l.approvement),
2126
2119
  /* @__PURE__ */ o.jsx(
2127
2120
  vt,
2128
2121
  {
@@ -2207,7 +2200,7 @@ const Lr = ({ promises: e }) => {
2207
2200
  text: "Вернуться на главную"
2208
2201
  }
2209
2202
  }
2210
- }), Fn = ({ status: e, navigationFn: t }) => /* @__PURE__ */ o.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ o.jsx(H, { className: "flex flex-col justify-center", children: /* @__PURE__ */ o.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
2203
+ }), Sn = ({ status: e, navigationFn: t }) => /* @__PURE__ */ o.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ o.jsx(_, { className: "flex flex-col justify-center", children: /* @__PURE__ */ o.jsxs("div", { className: "mt-32 flex w-full flex-col items-center gap-8 desktop:gap-12", children: [
2211
2204
  /* @__PURE__ */ o.jsx(
2212
2205
  "span",
2213
2206
  {
@@ -2223,7 +2216,7 @@ const Lr = ({ promises: e }) => {
2223
2216
  /* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l text-color-dark", children: dt()[e].description })
2224
2217
  ] }),
2225
2218
  /* @__PURE__ */ o.jsx(vt, { size: "lg", className: "w-full max-w-[328px] desktop:desk-body-regular-l desktop:w-[256px]", onClick: t, children: dt()[e].button.text })
2226
- ] }) }) }), ie = ({ breadcrumb: e, className: t, ...r }) => /* @__PURE__ */ o.jsx("a", { href: e.path, className: a("desk-body-regular-m", t), ...r, children: e.label }), Gr = ({ startsWith: e, endsWith: t, matcher: r, filter: n, rootEnabled: i = !0 }) => {
2219
+ ] }) }) }), ie = ({ breadcrumb: e, className: t, ...r }) => /* @__PURE__ */ o.jsx("a", { href: e.path, className: a("desk-body-regular-m", t), ...r, children: e.label }), Wr = ({ startsWith: e, endsWith: t, matcher: r, filter: n, rootEnabled: i = !0 }) => {
2227
2220
  const [d, l] = G([]);
2228
2221
  return Xt(() => {
2229
2222
  if (!Yt)
@@ -2270,10 +2263,10 @@ const Lr = ({ promises: e }) => {
2270
2263
  ),
2271
2264
  d !== e.length - 1 && t
2272
2265
  ] }, i.id);
2273
- }), Kr = ({ separator: e, ellipsis: t, classes: r, ...n }) => {
2266
+ }), Gr = ({ separator: e, ellipsis: t, classes: r, ...n }) => {
2274
2267
  const [i, d] = G(!1), l = Tt(null);
2275
2268
  Oe(l, () => d(!1));
2276
- const u = Gr(n), { first: p, middle: m, last: x } = Ct(() => {
2269
+ const u = Wr(n), { first: p, middle: m, last: x } = Ct(() => {
2277
2270
  let b = [], v = [], N = [];
2278
2271
  return t && (b = u.slice(0, t), v = u.slice(t, u.length - t), N = u.slice(u.length - t)), { first: b, middle: v, last: N };
2279
2272
  }, [u, t]), f = e ?? /* @__PURE__ */ o.jsx(c, { name: "arrows/arrowRight", className: a("size-4", r == null ? void 0 : r.separator) });
@@ -2339,7 +2332,7 @@ const Lr = ({ promises: e }) => {
2339
2332
  );
2340
2333
  };
2341
2334
  var lt = /* @__PURE__ */ ((e) => (e.ROOT = "root", e.CURRENT = "current", e))(lt || {});
2342
- const $r = (e, t) => {
2335
+ const Kr = (e, t) => {
2343
2336
  switch (t.type) {
2344
2337
  case lt.ROOT:
2345
2338
  return {
@@ -2354,16 +2347,16 @@ const $r = (e, t) => {
2354
2347
  default:
2355
2348
  return e;
2356
2349
  }
2357
- }, Zr = (e) => {
2358
- const [t, r] = Ce($r, e);
2350
+ }, $r = (e) => {
2351
+ const [t, r] = Ce(Kr, e);
2359
2352
  return [t, r];
2360
- }, Xr = (e) => ({
2353
+ }, Zr = (e) => ({
2361
2354
  type: lt.CURRENT,
2362
2355
  payload: e
2363
- }), Jr = (e) => ({
2356
+ }), Xr = (e) => ({
2364
2357
  type: lt.ROOT,
2365
2358
  payload: e
2366
- }), Yr = ({ categories: e, ...t }) => {
2359
+ }), Jr = ({ categories: e, ...t }) => {
2367
2360
  var r, n;
2368
2361
  return ee(
2369
2362
  /* @__PURE__ */ o.jsx(
@@ -2403,7 +2396,7 @@ const $r = (e, t) => {
2403
2396
  */
2404
2397
  ((n = (r = document.body.querySelector("#modal-preview")) == null ? void 0 : r.contentDocument) == null ? void 0 : n.body) ?? document.body
2405
2398
  );
2406
- }, tn = Te(({ category: e, active: t, onActiveTabChange: r }, n) => {
2399
+ }, Yr = Te(({ category: e, active: t, onActiveTabChange: r }, n) => {
2407
2400
  var p, m;
2408
2401
  const i = n && "current" in n ? n : null, d = (p = i == null ? void 0 : i.current) == null ? void 0 : p.getBoundingClientRect(), l = t && !k.isArrayEmpty(e.children), u = k.isArrayEmpty(e.children) ? "a" : "span";
2409
2402
  return /* @__PURE__ */ o.jsxs(
@@ -2425,7 +2418,7 @@ const $r = (e, t) => {
2425
2418
  children: [
2426
2419
  /* @__PURE__ */ o.jsx(u, { href: u === "a" ? (m = e.link) == null ? void 0 : m.href : void 0, className: "desk-body-regular-m outline-none", children: e.title }),
2427
2420
  l && /* @__PURE__ */ o.jsx(
2428
- Yr,
2421
+ Jr,
2429
2422
  {
2430
2423
  categories: e.children,
2431
2424
  style: {
@@ -2438,7 +2431,7 @@ const $r = (e, t) => {
2438
2431
  ]
2439
2432
  }
2440
2433
  );
2441
- }), en = Jt(tn), rn = ({ categories: e }) => {
2434
+ }), tn = Jt(Yr), en = ({ categories: e }) => {
2442
2435
  const [t, r] = G(null), n = $t((d) => {
2443
2436
  r(d);
2444
2437
  }, []), i = Tt(null);
@@ -2450,7 +2443,7 @@ const $r = (e, t) => {
2450
2443
  className: "relative flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)]",
2451
2444
  children: [
2452
2445
  e.map((d) => /* @__PURE__ */ o.jsx(
2453
- en,
2446
+ tn,
2454
2447
  {
2455
2448
  ref: i,
2456
2449
  category: d,
@@ -2463,7 +2456,7 @@ const $r = (e, t) => {
2463
2456
  ]
2464
2457
  }
2465
2458
  ) });
2466
- }, nn = Jt(rn), on = ({
2459
+ }, rn = Jt(en), nn = ({
2467
2460
  category: e,
2468
2461
  selectedCategory: t,
2469
2462
  onCurrentCategoryChange: r,
@@ -2510,20 +2503,20 @@ const $r = (e, t) => {
2510
2503
  )
2511
2504
  ]
2512
2505
  }
2513
- ), dn = ({ categories: e, helpers: t, phone: r }) => {
2514
- const [n, i] = Zr({ root: e[0].children[0], current: e[0].children[0] });
2506
+ ), on = ({ categories: e, helpers: t, phone: r }) => {
2507
+ const [n, i] = $r({ root: e[0].children[0], current: e[0].children[0] });
2515
2508
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2516
2509
  /* @__PURE__ */ o.jsxs("div", { className: "flex w-full items-center justify-between gap-x-4 border-b border-b-[rgba(234,237,241)] py-4", children: [
2517
2510
  /* @__PURE__ */ o.jsx(c, { name: "brandLogos/logoMain", className: "mr-auto w-[130px]" }),
2518
2511
  e.map((d) => {
2519
2512
  const l = n.root.title === d.title;
2520
2513
  return /* @__PURE__ */ o.jsx(
2521
- on,
2514
+ nn,
2522
2515
  {
2523
2516
  category: d,
2524
2517
  selectedCategory: n.current,
2525
- onCurrentCategoryChange: (u) => i(Xr(u)),
2526
- onRootCategoryChange: (u) => i(Jr(u)),
2518
+ onCurrentCategoryChange: (u) => i(Zr(u)),
2519
+ onRootCategoryChange: (u) => i(Xr(u)),
2527
2520
  active: l
2528
2521
  },
2529
2522
  d.title
@@ -2552,9 +2545,9 @@ const $r = (e, t) => {
2552
2545
  }
2553
2546
  )
2554
2547
  ] }),
2555
- /* @__PURE__ */ o.jsx(nn, { categories: n.current.children })
2548
+ /* @__PURE__ */ o.jsx(rn, { categories: n.current.children })
2556
2549
  ] });
2557
- }, an = ({ category: e }) => /* @__PURE__ */ o.jsx(
2550
+ }, dn = ({ category: e }) => /* @__PURE__ */ o.jsx(
2558
2551
  ot,
2559
2552
  {
2560
2553
  label: e.title ?? "",
@@ -2595,11 +2588,11 @@ const $r = (e, t) => {
2595
2588
  }) })
2596
2589
  },
2597
2590
  e.title
2598
- ), ln = (e) => e.map((t) => ({
2591
+ ), an = (e) => e.map((t) => ({
2599
2592
  value: t.title ?? "",
2600
2593
  label: t.title ?? ""
2601
- })), un = ({ categories: e, helpers: t, phone: r, ...n }) => {
2602
- const i = ln(e), [d, l] = G(i[0]), u = (m) => {
2594
+ })), ln = ({ categories: e, helpers: t, phone: r, ...n }) => {
2595
+ const i = an(e), [d, l] = G(i[0]), u = (m) => {
2603
2596
  k.isUndefined(m) || k.isArray(m) || l(m);
2604
2597
  }, p = Ct(() => {
2605
2598
  var m;
@@ -2621,7 +2614,7 @@ const $r = (e, t) => {
2621
2614
  /* @__PURE__ */ o.jsx(Kt.SelectBase, { label: "Категория", options: i, value: d, onChange: u }),
2622
2615
  /* @__PURE__ */ o.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: p.map((m) => {
2623
2616
  var x;
2624
- return k.isArrayEmpty(m.children) ? /* @__PURE__ */ o.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ o.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__ */ o.jsx(an, { category: m }, m.title);
2617
+ return k.isArrayEmpty(m.children) ? /* @__PURE__ */ o.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ o.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__ */ o.jsx(dn, { category: m }, m.title);
2625
2618
  }) }),
2626
2619
  /* @__PURE__ */ o.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
2627
2620
  /* @__PURE__ */ o.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
@@ -2640,7 +2633,7 @@ const $r = (e, t) => {
2640
2633
  ]
2641
2634
  }
2642
2635
  );
2643
- }, pn = ({ categories: e, helpers: t, phone: r }) => {
2636
+ }, un = ({ categories: e, helpers: t, phone: r }) => {
2644
2637
  var p, m, x;
2645
2638
  const n = Tt(null), i = (p = n.current) == null ? void 0 : p.getBoundingClientRect(), [d, l] = G(!1), u = () => l(!d);
2646
2639
  return /* @__PURE__ */ o.jsxs("div", { ref: n, className: "relative flex w-full items-center justify-between border-b border-b-blue-grey-500 py-4", children: [
@@ -2648,7 +2641,7 @@ const $r = (e, t) => {
2648
2641
  /* @__PURE__ */ o.jsx("button", { type: "button", onClick: u, className: "h-max w-max", children: /* @__PURE__ */ o.jsx(c, { name: d ? "general/close" : "general/menu", className: "size-6 text-color-primary-default" }) }),
2649
2642
  d && ee(
2650
2643
  /* @__PURE__ */ o.jsx(
2651
- un,
2644
+ ln,
2652
2645
  {
2653
2646
  categories: e,
2654
2647
  helpers: t,
@@ -2662,41 +2655,41 @@ const $r = (e, t) => {
2662
2655
  ((x = (m = document.body.querySelector("#modal-preview")) == null ? void 0 : m.contentDocument) == null ? void 0 : x.body) ?? document.body
2663
2656
  )
2664
2657
  ] });
2665
- }, Bn = ({ categories: e, helpers: t, phone: r }) => {
2658
+ }, Fn = ({ categories: e, helpers: t, phone: r }) => {
2666
2659
  const { isMobile: n } = Y();
2667
2660
  return /* @__PURE__ */ o.jsxs("div", { id: j.seoHeader, "data-test-id": j.seoHeader, className: "mx-auto w-full max-w-[1440px]", children: [
2668
- n ? /* @__PURE__ */ o.jsx(pn, { categories: e.map((i) => i.children).flat(), helpers: t, phone: r }) : /* @__PURE__ */ o.jsx(dn, { categories: e, helpers: t, phone: r }),
2661
+ n ? /* @__PURE__ */ o.jsx(un, { categories: e.map((i) => i.children).flat(), helpers: t, phone: r }) : /* @__PURE__ */ o.jsx(on, { categories: e, helpers: t, phone: r }),
2669
2662
  /* @__PURE__ */ o.jsx(
2670
- Kr,
2663
+ Gr,
2671
2664
  {
2672
2665
  ellipsis: n ? 1 : void 0,
2673
- matcher: (i) => ({ label: Ee(i.label).split("-").join(" ") })
2666
+ matcher: (i) => ({ label: Me(i.label).split("-").join(" ") })
2674
2667
  }
2675
2668
  )
2676
2669
  ] });
2677
2670
  };
2678
2671
  export {
2679
2672
  kt as Advantages,
2680
- En as AuthProvider,
2681
- sn as Banner,
2673
+ In as AuthProvider,
2674
+ Nn as Banner,
2682
2675
  Pt as BannerWithSeparateImg,
2683
- vn as Benefit,
2684
- Kr as Breadcrumbs,
2676
+ wn as Benefit,
2677
+ Gr as Breadcrumbs,
2685
2678
  J as ButtonWithHandlers,
2686
- Sn as DynamicForm,
2687
- Fn as FallbacksView,
2679
+ On as DynamicForm,
2680
+ Sn as FallbacksView,
2688
2681
  Br as FieldMapper,
2689
- Cn as Footer,
2690
- Pr as HTMLParser,
2682
+ sn as Footer,
2683
+ Hr as HTMLParser,
2691
2684
  ft as HTMLRenderer,
2692
- Nn as Header,
2685
+ vn as Header,
2693
2686
  Mn as InterLinking,
2694
- In as LongBanner,
2695
- Bn as SeoHeader,
2696
- Tn as Stepper,
2697
- On as UsefulInfo,
2687
+ Tn as LongBanner,
2688
+ Fn as SeoHeader,
2689
+ Cn as Stepper,
2690
+ En as UsefulInfo,
2698
2691
  Qe as WIDGET_LIST,
2699
- Ur as queryClient,
2692
+ Ar as queryClient,
2700
2693
  j as widgetIds
2701
2694
  };
2702
2695
  //# sourceMappingURL=widget.js.map