@scbt-ecom/ui 0.62.1 → 0.63.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
@@ -4,22 +4,22 @@ var It = (e) => {
4
4
  };
5
5
  var ae = (e, t, r) => t in e ? de(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
6
6
  var it = (e, t, r) => ae(e, typeof t != "symbol" ? t + "" : t, r), gt = (e, t, r) => t.has(e) || It("Cannot " + r);
7
- var m = (e, t, r) => (gt(e, t, "read from private field"), r ? r.call(e) : t.get(e)), C = (e, t, r) => t.has(e) ? It("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, n) => (gt(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), z = (e, t, r) => (gt(e, t, "access private method"), r);
8
- var mt = (e, t, r, n) => ({
7
+ var h = (e, t, r) => (gt(e, t, "read from private field"), r ? r.call(e) : t.get(e)), C = (e, t, r) => t.has(e) ? It("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), y = (e, t, r, n) => (gt(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r), z = (e, t, r) => (gt(e, t, "access private method"), r);
8
+ var ht = (e, t, r, n) => ({
9
9
  set _(i) {
10
10
  y(e, t, i, r);
11
11
  },
12
12
  get _() {
13
- return m(e, t, n);
13
+ return h(e, t, n);
14
14
  }
15
15
  });
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 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-CdpI3L3r.js";
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 he, M as me, 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-9RerNC5J.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 } from "react";
20
20
  import { s as Te, c as bt, g as Rt, a as Ie } from "./uuid-2wKG15vy.js";
21
21
  import { i as Yt } from "./isClient-C9aZtt2Q.js";
22
- import { a as Y, c as Me, b as Ee } from "./useDebounce-QgEEiWs9.js";
22
+ import { a as Y, c as Ee, b as Me } from "./useDebounce-QgEEiWs9.js";
23
23
  import { o as Oe } from "./utils-DaXd4sci.js";
24
24
  import { z as te, Z as Se } from "./index-BKXpPQ1s.js";
25
25
  import { u as Fe } from "./useFieldsProgress-BXzIWmGP.js";
@@ -43,54 +43,54 @@ var F, zt, Be = (zt = class extends Vt {
43
43
  }), this.add(l)), l;
44
44
  }
45
45
  add(t) {
46
- m(this, F).has(t.queryHash) || (m(this, F).set(t.queryHash, t), this.notify({
46
+ h(this, F).has(t.queryHash) || (h(this, F).set(t.queryHash, t), this.notify({
47
47
  type: "added",
48
48
  query: t
49
49
  }));
50
50
  }
51
51
  remove(t) {
52
- const r = m(this, F).get(t.queryHash);
53
- r && (t.destroy(), r === t && m(this, F).delete(t.queryHash), this.notify({ type: "removed", query: t }));
52
+ const r = h(this, F).get(t.queryHash);
53
+ r && (t.destroy(), r === t && h(this, F).delete(t.queryHash), this.notify({ type: "removed", query: t }));
54
54
  }
55
55
  clear() {
56
- M.batch(() => {
56
+ E.batch(() => {
57
57
  this.getAll().forEach((t) => {
58
58
  this.remove(t);
59
59
  });
60
60
  });
61
61
  }
62
62
  get(t) {
63
- return m(this, F).get(t);
63
+ return h(this, F).get(t);
64
64
  }
65
65
  getAll() {
66
- return [...m(this, F).values()];
66
+ return [...h(this, F).values()];
67
67
  }
68
68
  find(t) {
69
69
  const r = { exact: !0, ...t };
70
70
  return this.getAll().find(
71
- (n) => Mt(r, n)
71
+ (n) => Et(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) => Mt(t, n)) : r;
76
+ return Object.keys(t).length > 0 ? r.filter((n) => Et(t, n)) : r;
77
77
  }
78
78
  notify(t) {
79
- M.batch(() => {
79
+ E.batch(() => {
80
80
  this.listeners.forEach((r) => {
81
81
  r(t);
82
82
  });
83
83
  });
84
84
  }
85
85
  onFocus() {
86
- M.batch(() => {
86
+ E.batch(() => {
87
87
  this.getAll().forEach((t) => {
88
88
  t.onFocus();
89
89
  });
90
90
  });
91
91
  }
92
92
  onOnline() {
93
- M.batch(() => {
93
+ E.batch(() => {
94
94
  this.getAll().forEach((t) => {
95
95
  t.onOnline();
96
96
  });
@@ -112,29 +112,29 @@ var F, zt, Be = (zt = class extends Vt {
112
112
  return this.options.meta;
113
113
  }
114
114
  addObserver(t) {
115
- m(this, B).includes(t) || (m(this, B).push(t), this.clearGcTimeout(), m(this, I).notify({
115
+ h(this, B).includes(t) || (h(this, B).push(t), this.clearGcTimeout(), h(this, I).notify({
116
116
  type: "observerAdded",
117
117
  mutation: this,
118
118
  observer: t
119
119
  }));
120
120
  }
121
121
  removeObserver(t) {
122
- y(this, B, m(this, B).filter((r) => r !== t)), this.scheduleGc(), m(this, I).notify({
122
+ y(this, B, h(this, B).filter((r) => r !== t)), this.scheduleGc(), h(this, I).notify({
123
123
  type: "observerRemoved",
124
124
  mutation: this,
125
125
  observer: t
126
126
  });
127
127
  }
128
128
  optionalRemove() {
129
- m(this, B).length || (this.state.status === "pending" ? this.scheduleGc() : m(this, I).remove(this));
129
+ h(this, B).length || (this.state.status === "pending" ? this.scheduleGc() : h(this, I).remove(this));
130
130
  }
131
131
  continue() {
132
132
  var t;
133
- return ((t = m(this, X)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
133
+ return ((t = h(this, X)) == null ? void 0 : t.continue()) ?? // continuing a mutation assumes that variables are set, mutation must have been dehydrated before
134
134
  this.execute(this.state.variables);
135
135
  }
136
136
  async execute(t) {
137
- var i, d, l, u, p, h, 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, _, K, D, 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) => {
@@ -149,12 +149,12 @@ var F, zt, Be = (zt = class extends Vt {
149
149
  retry: this.options.retry ?? 0,
150
150
  retryDelay: this.options.retryDelay,
151
151
  networkMode: this.options.networkMode,
152
- canRun: () => m(this, I).canRun(this)
152
+ canRun: () => h(this, I).canRun(this)
153
153
  }));
154
- const r = this.state.status === "pending", n = !m(this, X).canStart();
154
+ const r = this.state.status === "pending", n = !h(this, X).canStart();
155
155
  try {
156
156
  if (!r) {
157
- z(this, R, q).call(this, { type: "pending", variables: t, isPaused: n }), await ((d = (i = m(this, I).config).onMutate) == null ? void 0 : d.call(
157
+ z(this, R, q).call(this, { type: "pending", variables: t, isPaused: n }), await ((d = (i = h(this, I).config).onMutate) == null ? void 0 : d.call(
158
158
  i,
159
159
  t,
160
160
  this
@@ -167,14 +167,14 @@ var F, zt, Be = (zt = class extends Vt {
167
167
  isPaused: n
168
168
  });
169
169
  }
170
- const w = await m(this, X).start();
171
- return await ((h = (p = m(this, I).config).onSuccess) == null ? void 0 : h.call(
170
+ const w = await h(this, X).start();
171
+ return await ((m = (p = h(this, I).config).onSuccess) == null ? void 0 : m.call(
172
172
  p,
173
173
  w,
174
174
  t,
175
175
  this.state.context,
176
176
  this
177
- )), await ((f = (x = this.options).onSuccess) == null ? void 0 : f.call(x, w, t, this.state.context)), await ((v = (b = m(this, I).config).onSettled) == null ? void 0 : v.call(
177
+ )), await ((f = (x = this.options).onSuccess) == null ? void 0 : f.call(x, w, t, this.state.context)), await ((v = (b = h(this, I).config).onSettled) == null ? void 0 : v.call(
178
178
  b,
179
179
  w,
180
180
  null,
@@ -184,7 +184,7 @@ var F, zt, Be = (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 = (_ = m(this, I).config).onError) == null ? void 0 : K.call(
187
+ throw await ((K = (_ = h(this, I).config).onError) == null ? void 0 : K.call(
188
188
  _,
189
189
  w,
190
190
  t,
@@ -195,7 +195,7 @@ var F, zt, Be = (zt = class extends Vt {
195
195
  w,
196
196
  t,
197
197
  this.state.context
198
- )), await ((Q = (O = m(this, I).config).onSettled) == null ? void 0 : Q.call(
198
+ )), await ((Q = (O = h(this, I).config).onSettled) == null ? void 0 : Q.call(
199
199
  O,
200
200
  void 0,
201
201
  w,
@@ -213,7 +213,7 @@ var F, zt, Be = (zt = class extends Vt {
213
213
  z(this, R, q).call(this, { type: "error", error: w });
214
214
  }
215
215
  } finally {
216
- m(this, I).runNext(this);
216
+ h(this, I).runNext(this);
217
217
  }
218
218
  }
219
219
  }, B = new WeakMap(), I = new WeakMap(), X = new WeakMap(), R = new WeakSet(), q = function(t) {
@@ -270,10 +270,10 @@ var F, zt, Be = (zt = class extends Vt {
270
270
  };
271
271
  }
272
272
  };
273
- this.state = r(this.state), M.batch(() => {
274
- m(this, B).forEach((n) => {
273
+ this.state = r(this.state), E.batch(() => {
274
+ h(this, B).forEach((n) => {
275
275
  n.onMutationUpdate(t);
276
- }), m(this, I).notify({
276
+ }), h(this, I).notify({
277
277
  mutation: this,
278
278
  type: "updated",
279
279
  action: t
@@ -304,39 +304,39 @@ var L, S, ut, At, _e = (At = class extends Vt {
304
304
  build(t, r, n) {
305
305
  const i = new Re({
306
306
  mutationCache: this,
307
- mutationId: ++mt(this, ut)._,
307
+ mutationId: ++ht(this, ut)._,
308
308
  options: t.defaultMutationOptions(r),
309
309
  state: n
310
310
  });
311
311
  return this.add(i), i;
312
312
  }
313
313
  add(t) {
314
- m(this, L).add(t);
315
- const r = ht(t);
314
+ h(this, L).add(t);
315
+ const r = mt(t);
316
316
  if (typeof r == "string") {
317
- const n = m(this, S).get(r);
318
- n ? n.push(t) : m(this, S).set(r, [t]);
317
+ const n = h(this, S).get(r);
318
+ n ? n.push(t) : h(this, S).set(r, [t]);
319
319
  }
320
320
  this.notify({ type: "added", mutation: t });
321
321
  }
322
322
  remove(t) {
323
- if (m(this, L).delete(t)) {
324
- const r = ht(t);
323
+ if (h(this, L).delete(t)) {
324
+ const r = mt(t);
325
325
  if (typeof r == "string") {
326
- const n = m(this, S).get(r);
326
+ const n = h(this, S).get(r);
327
327
  if (n)
328
328
  if (n.length > 1) {
329
329
  const i = n.indexOf(t);
330
330
  i !== -1 && n.splice(i, 1);
331
- } else n[0] === t && m(this, S).delete(r);
331
+ } else n[0] === t && h(this, S).delete(r);
332
332
  }
333
333
  }
334
334
  this.notify({ type: "removed", mutation: t });
335
335
  }
336
336
  canRun(t) {
337
- const r = ht(t);
337
+ const r = mt(t);
338
338
  if (typeof r == "string") {
339
- const n = m(this, S).get(r), i = n == null ? void 0 : n.find(
339
+ const n = h(this, S).get(r), i = n == null ? void 0 : n.find(
340
340
  (d) => d.state.status === "pending"
341
341
  );
342
342
  return !i || i === t;
@@ -345,34 +345,34 @@ var L, S, ut, At, _e = (At = class extends Vt {
345
345
  }
346
346
  runNext(t) {
347
347
  var n;
348
- const r = ht(t);
348
+ const r = mt(t);
349
349
  if (typeof r == "string") {
350
- const i = (n = m(this, S).get(r)) == null ? void 0 : n.find((d) => d !== t && d.state.isPaused);
350
+ const i = (n = h(this, S).get(r)) == null ? void 0 : n.find((d) => d !== t && d.state.isPaused);
351
351
  return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
352
352
  } else
353
353
  return Promise.resolve();
354
354
  }
355
355
  clear() {
356
- M.batch(() => {
357
- m(this, L).forEach((t) => {
356
+ E.batch(() => {
357
+ h(this, L).forEach((t) => {
358
358
  this.notify({ type: "removed", mutation: t });
359
- }), m(this, L).clear(), m(this, S).clear();
359
+ }), h(this, L).clear(), h(this, S).clear();
360
360
  });
361
361
  }
362
362
  getAll() {
363
- return Array.from(m(this, L));
363
+ return Array.from(h(this, L));
364
364
  }
365
365
  find(t) {
366
366
  const r = { exact: !0, ...t };
367
367
  return this.getAll().find(
368
- (n) => Et(r, n)
368
+ (n) => Mt(r, n)
369
369
  );
370
370
  }
371
371
  findAll(t = {}) {
372
- return this.getAll().filter((r) => Et(t, r));
372
+ return this.getAll().filter((r) => Mt(t, r));
373
373
  }
374
374
  notify(t) {
375
- M.batch(() => {
375
+ E.batch(() => {
376
376
  this.listeners.forEach((r) => {
377
377
  r(t);
378
378
  });
@@ -380,14 +380,14 @@ var L, S, ut, At, _e = (At = class extends Vt {
380
380
  }
381
381
  resumePausedMutations() {
382
382
  const t = this.getAll().filter((r) => r.state.isPaused);
383
- return M.batch(
383
+ return E.batch(
384
384
  () => Promise.all(
385
385
  t.map((r) => r.continue().catch(P))
386
386
  )
387
387
  );
388
388
  }
389
389
  }, L = new WeakMap(), S = new WeakMap(), ut = new WeakMap(), At);
390
- function ht(e) {
390
+ function mt(e) {
391
391
  var t;
392
392
  return (t = e.options.scope) == null ? void 0 : t.id;
393
393
  }
@@ -397,7 +397,7 @@ function Ht(e) {
397
397
  var x, f, b, v, N;
398
398
  const n = t.options, i = (b = (f = (x = t.fetchOptions) == null ? void 0 : x.meta) == null ? void 0 : f.fetchMore) == null ? void 0 : b.direction, d = ((v = t.state.data) == null ? void 0 : v.pages) || [], l = ((N = t.state.data) == null ? void 0 : N.pageParams) || [];
399
399
  let u = { pages: [], pageParams: [] }, p = 0;
400
- const h = async () => {
400
+ const m = async () => {
401
401
  let T = !1;
402
402
  const _ = (s) => {
403
403
  Object.defineProperty(s, "signal", {
@@ -406,7 +406,7 @@ function Ht(e) {
406
406
  T = !0;
407
407
  }), t.signal)
408
408
  });
409
- }, K = me(t.options, t.fetchOptions), D = async (s, O, Q) => {
409
+ }, K = he(t.options, t.fetchOptions), D = async (s, O, Q) => {
410
410
  if (T)
411
411
  return Promise.reject();
412
412
  if (O == null && s.pages.length)
@@ -421,7 +421,7 @@ function Ht(e) {
421
421
  _($);
422
422
  const pt = await K(
423
423
  $
424
- ), { maxPages: w } = t.options, Z = Q ? he : xe;
424
+ ), { maxPages: w } = t.options, Z = Q ? me : xe;
425
425
  return {
426
426
  pages: Z(s.pages, pt, w),
427
427
  pageParams: Z(s.pageParams, O, w)
@@ -448,7 +448,7 @@ function Ht(e) {
448
448
  var T, _;
449
449
  return (_ = (T = t.options).persister) == null ? void 0 : _.call(
450
450
  T,
451
- h,
451
+ m,
452
452
  {
453
453
  client: t.client,
454
454
  queryKey: t.queryKey,
@@ -457,7 +457,7 @@ function Ht(e) {
457
457
  },
458
458
  r
459
459
  );
460
- } : t.fetchFn = h;
460
+ } : t.fetchFn = m;
461
461
  }
462
462
  };
463
463
  }
@@ -487,47 +487,47 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
487
487
  y(this, g, e.queryCache || new Be()), y(this, A, e.mutationCache || new _e()), y(this, U, e.defaultOptions || {}), y(this, tt, /* @__PURE__ */ new Map()), y(this, et, /* @__PURE__ */ new Map()), y(this, V, 0);
488
488
  }
489
489
  mount() {
490
- mt(this, V)._++, m(this, V) === 1 && (y(this, rt, fe.subscribe(async (e) => {
491
- e && (await this.resumePausedMutations(), m(this, g).onFocus());
490
+ ht(this, V)._++, h(this, V) === 1 && (y(this, rt, fe.subscribe(async (e) => {
491
+ e && (await this.resumePausedMutations(), h(this, g).onFocus());
492
492
  })), y(this, nt, Ot.subscribe(async (e) => {
493
- e && (await this.resumePausedMutations(), m(this, g).onOnline());
493
+ e && (await this.resumePausedMutations(), h(this, g).onOnline());
494
494
  })));
495
495
  }
496
496
  unmount() {
497
497
  var e, t;
498
- mt(this, V)._--, m(this, V) === 0 && ((e = m(this, rt)) == null || e.call(this), y(this, rt, void 0), (t = m(this, nt)) == null || t.call(this), y(this, nt, void 0));
498
+ ht(this, V)._--, h(this, V) === 0 && ((e = h(this, rt)) == null || e.call(this), y(this, rt, void 0), (t = h(this, nt)) == null || t.call(this), y(this, nt, void 0));
499
499
  }
500
500
  isFetching(e) {
501
- return m(this, g).findAll({ ...e, fetchStatus: "fetching" }).length;
501
+ return h(this, g).findAll({ ...e, fetchStatus: "fetching" }).length;
502
502
  }
503
503
  isMutating(e) {
504
- return m(this, A).findAll({ ...e, status: "pending" }).length;
504
+ return h(this, A).findAll({ ...e, status: "pending" }).length;
505
505
  }
506
506
  getQueryData(e) {
507
507
  var r;
508
508
  const t = this.defaultQueryOptions({ queryKey: e });
509
- return (r = m(this, g).get(t.queryHash)) == null ? void 0 : r.state.data;
509
+ return (r = h(this, g).get(t.queryHash)) == null ? void 0 : r.state.data;
510
510
  }
511
511
  ensureQueryData(e) {
512
- const t = this.defaultQueryOptions(e), r = m(this, g).build(this, t), n = r.state.data;
512
+ const t = this.defaultQueryOptions(e), r = h(this, g).build(this, t), n = r.state.data;
513
513
  return n === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && r.isStaleByTime(St(t.staleTime, r)) && this.prefetchQuery(t), Promise.resolve(n));
514
514
  }
515
515
  getQueriesData(e) {
516
- return m(this, g).findAll(e).map(({ queryKey: t, state: r }) => {
516
+ return h(this, g).findAll(e).map(({ queryKey: t, state: r }) => {
517
517
  const n = r.data;
518
518
  return [t, n];
519
519
  });
520
520
  }
521
521
  setQueryData(e, t, r) {
522
- const n = this.defaultQueryOptions({ queryKey: e }), i = m(this, g).get(
522
+ const n = this.defaultQueryOptions({ queryKey: e }), i = h(this, g).get(
523
523
  n.queryHash
524
524
  ), d = i == null ? void 0 : i.state.data, l = ce(t, d);
525
525
  if (l !== void 0)
526
- return m(this, g).build(this, n).setData(l, { ...r, manual: !0 });
526
+ return h(this, g).build(this, n).setData(l, { ...r, manual: !0 });
527
527
  }
528
528
  setQueriesData(e, t, r) {
529
- return M.batch(
530
- () => m(this, g).findAll(e).map(({ queryKey: n }) => [
529
+ return E.batch(
530
+ () => h(this, g).findAll(e).map(({ queryKey: n }) => [
531
531
  n,
532
532
  this.setQueryData(n, t, r)
533
533
  ])
@@ -536,21 +536,21 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
536
536
  getQueryState(e) {
537
537
  var r;
538
538
  const t = this.defaultQueryOptions({ queryKey: e });
539
- return (r = m(this, g).get(
539
+ return (r = h(this, g).get(
540
540
  t.queryHash
541
541
  )) == null ? void 0 : r.state;
542
542
  }
543
543
  removeQueries(e) {
544
- const t = m(this, g);
545
- M.batch(() => {
544
+ const t = h(this, g);
545
+ E.batch(() => {
546
546
  t.findAll(e).forEach((r) => {
547
547
  t.remove(r);
548
548
  });
549
549
  });
550
550
  }
551
551
  resetQueries(e, t) {
552
- const r = m(this, g);
553
- return M.batch(() => (r.findAll(e).forEach((n) => {
552
+ const r = h(this, g);
553
+ return E.batch(() => (r.findAll(e).forEach((n) => {
554
554
  n.reset();
555
555
  }), this.refetchQueries(
556
556
  {
@@ -561,13 +561,13 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
561
561
  )));
562
562
  }
563
563
  cancelQueries(e, t = {}) {
564
- const r = { revert: !0, ...t }, n = M.batch(
565
- () => m(this, g).findAll(e).map((i) => i.cancel(r))
564
+ const r = { revert: !0, ...t }, n = E.batch(
565
+ () => h(this, g).findAll(e).map((i) => i.cancel(r))
566
566
  );
567
567
  return Promise.all(n).then(P).catch(P);
568
568
  }
569
569
  invalidateQueries(e, t = {}) {
570
- return M.batch(() => (m(this, g).findAll(e).forEach((r) => {
570
+ return E.batch(() => (h(this, g).findAll(e).forEach((r) => {
571
571
  r.invalidate();
572
572
  }), (e == null ? void 0 : e.refetchType) === "none" ? Promise.resolve() : this.refetchQueries(
573
573
  {
@@ -581,8 +581,8 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
581
581
  const r = {
582
582
  ...t,
583
583
  cancelRefetch: t.cancelRefetch ?? !0
584
- }, n = M.batch(
585
- () => m(this, g).findAll(e).filter((i) => !i.isDisabled()).map((i) => {
584
+ }, n = E.batch(
585
+ () => h(this, g).findAll(e).filter((i) => !i.isDisabled()).map((i) => {
586
586
  let d = i.fetch(void 0, r);
587
587
  return r.throwOnError || (d = d.catch(P)), i.state.fetchStatus === "paused" ? Promise.resolve() : d;
588
588
  })
@@ -592,7 +592,7 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
592
592
  fetchQuery(e) {
593
593
  const t = this.defaultQueryOptions(e);
594
594
  t.retry === void 0 && (t.retry = !1);
595
- const r = m(this, g).build(this, t);
595
+ const r = h(this, g).build(this, t);
596
596
  return r.isStaleByTime(
597
597
  St(t.staleTime, r)
598
598
  ) ? r.fetch(t) : Promise.resolve(r.state.data);
@@ -610,40 +610,40 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
610
610
  return e.behavior = Ht(e.pages), this.ensureQueryData(e);
611
611
  }
612
612
  resumePausedMutations() {
613
- return Ot.isOnline() ? m(this, A).resumePausedMutations() : Promise.resolve();
613
+ return Ot.isOnline() ? h(this, A).resumePausedMutations() : Promise.resolve();
614
614
  }
615
615
  getQueryCache() {
616
- return m(this, g);
616
+ return h(this, g);
617
617
  }
618
618
  getMutationCache() {
619
- return m(this, A);
619
+ return h(this, A);
620
620
  }
621
621
  getDefaultOptions() {
622
- return m(this, U);
622
+ return h(this, U);
623
623
  }
624
624
  setDefaultOptions(e) {
625
625
  y(this, U, e);
626
626
  }
627
627
  setQueryDefaults(e, t) {
628
- m(this, tt).set(Ft(e), {
628
+ h(this, tt).set(Ft(e), {
629
629
  queryKey: e,
630
630
  defaultOptions: t
631
631
  });
632
632
  }
633
633
  getQueryDefaults(e) {
634
- const t = [...m(this, tt).values()], r = {};
634
+ const t = [...h(this, tt).values()], r = {};
635
635
  return t.forEach((n) => {
636
636
  Bt(e, n.queryKey) && Object.assign(r, n.defaultOptions);
637
637
  }), r;
638
638
  }
639
639
  setMutationDefaults(e, t) {
640
- m(this, et).set(Ft(e), {
640
+ h(this, et).set(Ft(e), {
641
641
  mutationKey: e,
642
642
  defaultOptions: t
643
643
  });
644
644
  }
645
645
  getMutationDefaults(e) {
646
- const t = [...m(this, et).values()], r = {};
646
+ const t = [...h(this, et).values()], r = {};
647
647
  return t.forEach((n) => {
648
648
  Bt(e, n.mutationKey) && Object.assign(r, n.defaultOptions);
649
649
  }), r;
@@ -652,7 +652,7 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
652
652
  if (e._defaulted)
653
653
  return e;
654
654
  const t = {
655
- ...m(this, U).queries,
655
+ ...h(this, U).queries,
656
656
  ...this.getQueryDefaults(e.queryKey),
657
657
  ...e,
658
658
  _defaulted: !0
@@ -664,14 +664,14 @@ var g, A, U, tt, et, V, rt, nt, Ut, Le = (Ut = class {
664
664
  }
665
665
  defaultMutationOptions(e) {
666
666
  return e != null && e._defaulted ? e : {
667
- ...m(this, U).mutations,
667
+ ...h(this, U).mutations,
668
668
  ...(e == null ? void 0 : e.mutationKey) && this.getMutationDefaults(e.mutationKey),
669
669
  ...e,
670
670
  _defaulted: !0
671
671
  };
672
672
  }
673
673
  clear() {
674
- m(this, g).clear(), m(this, A).clear();
674
+ h(this, g).clear(), h(this, A).clear();
675
675
  }
676
676
  }, g = new WeakMap(), A = new WeakMap(), U = new WeakMap(), tt = new WeakMap(), et = new WeakMap(), V = new WeakMap(), rt = new WeakMap(), nt = new WeakMap(), Ut);
677
677
  const De = [
@@ -704,7 +704,7 @@ const De = [
704
704
  }, [e]), J = ({ handlerOptions: e, ...t }) => {
705
705
  const r = Qe(e);
706
706
  return /* @__PURE__ */ o.jsx(vt, { onClick: r, ...t, children: t.children });
707
- }, ze = E(
707
+ }, ze = M(
708
708
  "flex flex-col justify-between overflow-hidden rounded-md bg-color-blue-grey-100 py-6 desktop:flex-row desktop:px-0 desktop:py-0",
709
709
  {
710
710
  variants: {
@@ -726,7 +726,7 @@ const De = [
726
726
  variant: u,
727
727
  color: p
728
728
  }) => {
729
- const { isDesktop: h } = Y();
729
+ const { isDesktop: m } = Y();
730
730
  return /* @__PURE__ */ o.jsxs(
731
731
  "li",
732
732
  {
@@ -744,14 +744,14 @@ const De = [
744
744
  }
745
745
  )
746
746
  ] }),
747
- d && h && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ o.jsx(J, { intent: "primary", className: a("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...l })
747
+ d && m && (l == null ? void 0 : l.handlerOptions) && /* @__PURE__ */ o.jsx(J, { intent: "primary", className: a("desktop:w-[200px]", i == null ? void 0 : i.button), size: "lg", ...l })
748
748
  ] }),
749
- (n || h) && r && /* @__PURE__ */ o.jsx("div", { className: a("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: r && "url" in r && k.isObject(r) ? /* @__PURE__ */ o.jsx("img", { className: a("h-[246px] object-cover", i == null ? void 0 : i.img), src: r.url, alt: t }) : r })
749
+ (n || m) && r && /* @__PURE__ */ o.jsx("div", { className: a("flex w-full justify-end", i == null ? void 0 : i.imgContainer), children: r && "url" in r && k.isObject(r) ? /* @__PURE__ */ o.jsx("img", { className: a("h-[246px] object-cover", i == null ? void 0 : i.img), src: r.url, alt: r.alt }) : r })
750
750
  ]
751
751
  },
752
752
  t
753
753
  );
754
- }, Ae = E("grid gap-4", {
754
+ }, Ae = M("grid gap-4", {
755
755
  variants: {
756
756
  variant: {
757
757
  twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
@@ -815,7 +815,7 @@ const De = [
815
815
  color: u
816
816
  }) => {
817
817
  var T;
818
- const { isDesktop: p, isMobile: h } = Y(), { primary: x, secondary: f } = r || {}, b = d && "url" in d && k.isObject(d) ? /* @__PURE__ */ o.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: d.url }) : d, v = l && "url" in l && k.isObject(l) ? /* @__PURE__ */ o.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: l.url }) : l, N = /* @__PURE__ */ o.jsx(
818
+ const { isDesktop: p, isMobile: m } = Y(), { primary: x, secondary: f } = r || {}, b = d && "url" in d && k.isObject(d) ? /* @__PURE__ */ o.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: d.url }) : d, v = l && "url" in l && k.isObject(l) ? /* @__PURE__ */ o.jsx("img", { className: "h-full w-full object-cover object-center", alt: "Картинка баннера", src: l.url }) : l, N = /* @__PURE__ */ o.jsx(
819
819
  "div",
820
820
  {
821
821
  className: a(
@@ -834,7 +834,7 @@ const De = [
834
834
  style: { backgroundColor: u ?? "#d9edff" },
835
835
  className: a("relative h-[552px] desktop:h-[456px]", i == null ? void 0 : i.root),
836
836
  children: [
837
- /* @__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: h ? b : v }),
837
+ /* @__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 }),
838
838
  /* @__PURE__ */ o.jsxs(H, { className: a("h-full", i == null ? void 0 : i.container), children: [
839
839
  /* @__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: [
840
840
  /* @__PURE__ */ o.jsxs("div", { className: "z-10 flex flex-col gap-4", children: [
@@ -888,7 +888,7 @@ const De = [
888
888
  ]
889
889
  }
890
890
  ),
891
- h && (n == null ? void 0 : n.enabled) && N
891
+ m && (n == null ? void 0 : n.enabled) && N
892
892
  ] });
893
893
  }, Pt = ({
894
894
  headTitle: e,
@@ -901,7 +901,7 @@ const De = [
901
901
  color: u
902
902
  }) => {
903
903
  var v, N;
904
- const { isMobile: p } = Y(), { primary: h, secondary: x } = r || {}, f = d && "url" in d && k.isObject(d) ? /* @__PURE__ */ o.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: d.url }) : d, b = l && "url" in l && k.isObject(l) ? /* @__PURE__ */ o.jsx("img", { className: "w-full object-contain", alt: "Картинка баннера", src: l.url }) : l;
904
+ const { isMobile: p } = Y(), { primary: m, secondary: x } = r || {}, f = d && "url" in d && k.isObject(d) ? /* @__PURE__ */ o.jsx("img", { className: "w-full object-contain", alt: d.alt, src: d.url }) : d, b = l && "url" in l && k.isObject(l) ? /* @__PURE__ */ o.jsx("img", { className: "w-full object-contain", alt: l.alt, src: l.url }) : l;
905
905
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
906
906
  /* @__PURE__ */ o.jsx(
907
907
  "section",
@@ -933,18 +933,18 @@ const De = [
933
933
  "div",
934
934
  {
935
935
  className: a(
936
- "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",
936
+ "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",
937
937
  { "flex items-center gap-4": x == null ? void 0 : x.enabled },
938
938
  i == null ? void 0 : i.group
939
939
  ),
940
940
  children: [
941
- h.enabled && /* @__PURE__ */ o.jsx(
941
+ m.enabled && /* @__PURE__ */ o.jsx(
942
942
  J,
943
943
  {
944
944
  className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.primary),
945
945
  size: "lg",
946
946
  intent: "primary",
947
- ...h.buttonContent
947
+ ...m.buttonContent
948
948
  }
949
949
  ),
950
950
  (x == null ? void 0 : x.enabled) && /* @__PURE__ */ o.jsx(
@@ -952,7 +952,7 @@ const De = [
952
952
  {
953
953
  intent: "secondary",
954
954
  className: a("w-full desktop:max-w-[216px]", i == null ? void 0 : i.secondary),
955
- ...h.buttonContent
955
+ ...m.buttonContent
956
956
  }
957
957
  )
958
958
  ]
@@ -1234,7 +1234,7 @@ const De = [
1234
1234
  children: t == null ? void 0 : t.map((i, d) => /* @__PURE__ */ o.jsx(Ye, { variant: r, ...i, index: d + 1, classes: n == null ? void 0 : n.step }, i.description))
1235
1235
  }
1236
1236
  )
1237
- ] }) }) }), tr = E("", {
1237
+ ] }) }) }), tr = M("", {
1238
1238
  variants: {
1239
1239
  intent: {
1240
1240
  twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
@@ -1250,7 +1250,7 @@ const De = [
1250
1250
  defaultVariants: {
1251
1251
  intent: "twoItems"
1252
1252
  }
1253
- }), er = E("", {
1253
+ }), er = M("", {
1254
1254
  variants: {
1255
1255
  intent: {
1256
1256
  twoItems: "",
@@ -1282,7 +1282,7 @@ const De = [
1282
1282
  class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
1283
1283
  }
1284
1284
  ]
1285
- }), rr = E("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
1285
+ }), rr = M("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
1286
1286
  variants: {
1287
1287
  intent: {
1288
1288
  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',
@@ -1292,7 +1292,7 @@ const De = [
1292
1292
  defaultVariants: {
1293
1293
  intent: "twoItems"
1294
1294
  }
1295
- }), nr = E("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
1295
+ }), nr = M("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
1296
1296
  variants: {
1297
1297
  intent: {
1298
1298
  twoItems: "desktop:h-[232px] desktop:w-[500px]",
@@ -1341,7 +1341,7 @@ const De = [
1341
1341
  image: i,
1342
1342
  classes: d
1343
1343
  }) => {
1344
- 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: "Картинка баннера", src: i.url }) : i;
1344
+ 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;
1345
1345
  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: [
1346
1346
  u && /* @__PURE__ */ o.jsx(jt, { intent: r, headline: e }),
1347
1347
  /* @__PURE__ */ o.jsxs(
@@ -1590,7 +1590,7 @@ const De = [
1590
1590
  }
1591
1591
  )
1592
1592
  ] });
1593
- }, ur = ({ 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(lr, { ...t, ...n, classes: r == null ? void 0 : r.columnGroup }, n.groupLabel)) }), pr = E("grid gap-4 grid-cols-1", {
1593
+ }, ur = ({ 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(lr, { ...t, ...n, classes: r == null ? void 0 : r.columnGroup }, n.groupLabel)) }), pr = M("grid gap-4 grid-cols-1", {
1594
1594
  variants: {
1595
1595
  variant: {
1596
1596
  twoCols: "desktop:grid-cols-2",
@@ -1601,7 +1601,7 @@ const De = [
1601
1601
  defaultVariants: {
1602
1602
  variant: "fourCols"
1603
1603
  }
1604
- }), Mn = ({
1604
+ }), En = ({
1605
1605
  variant: e,
1606
1606
  details: t,
1607
1607
  headline: r,
@@ -1610,7 +1610,7 @@ const De = [
1610
1610
  classes: d,
1611
1611
  defaultOpen: l
1612
1612
  }) => {
1613
- var u, p, h;
1613
+ var u, p, m;
1614
1614
  return /* @__PURE__ */ o.jsx(
1615
1615
  "section",
1616
1616
  {
@@ -1628,14 +1628,14 @@ const De = [
1628
1628
  header: {
1629
1629
  trigger: a("bg-color-blue-grey-100", (p = (u = i == null ? void 0 : i.classes) == null ? void 0 : u.header) == null ? void 0 : p.trigger)
1630
1630
  },
1631
- content: a("max-w-full bg-color-blue-grey-100 relative", (h = i == null ? void 0 : i.classes) == null ? void 0 : h.content)
1631
+ content: a("max-w-full bg-color-blue-grey-100 relative", (m = i == null ? void 0 : i.classes) == null ? void 0 : m.content)
1632
1632
  },
1633
1633
  children: /* @__PURE__ */ o.jsx("div", { className: a(pr({ variant: e }), d == null ? void 0 : d.columnsWrapper), children: t == null ? void 0 : t.map((x, f) => /* @__PURE__ */ o.jsx(ur, { ...x, ...n, classes: d == null ? void 0 : d.column }, f)) })
1634
1634
  }
1635
1635
  ) })
1636
1636
  }
1637
1637
  );
1638
- }, mr = ({ tabsNames: e, activeTab: t, setActiveTab: r, classes: n }) => /* @__PURE__ */ o.jsx("div", { className: a("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", n == null ? void 0 : n.tabs), children: e && e.map((i, d) => /* @__PURE__ */ o.jsx(
1638
+ }, hr = ({ tabsNames: e, activeTab: t, setActiveTab: r, classes: n }) => /* @__PURE__ */ o.jsx("div", { className: a("hidden-scroll flex items-center gap-4 overflow-x-auto p-[6px]", n == null ? void 0 : n.tabs), children: e && e.map((i, d) => /* @__PURE__ */ o.jsx(
1639
1639
  "button",
1640
1640
  {
1641
1641
  onClick: () => r(d),
@@ -1649,7 +1649,7 @@ const De = [
1649
1649
  children: i
1650
1650
  },
1651
1651
  i
1652
- )) }), hr = (e) => e.variant === "HTML", xr = (e) => e.variant === "DOCUMENTS", fr = (e) => e.variant === "TABLE", cr = ({ html: e, config: t, classes: r, accordionConfig: n }) => {
1652
+ )) }), mr = (e) => e.variant === "HTML", xr = (e) => e.variant === "DOCUMENTS", fr = (e) => e.variant === "TABLE", cr = ({ html: e, config: t, classes: r, accordionConfig: n }) => {
1653
1653
  const i = /* @__PURE__ */ o.jsx("div", { className: a(r == null ? void 0 : r.html), dangerouslySetInnerHTML: { __html: e ?? "" } });
1654
1654
  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, ...n, children: (n == null ? void 0 : n.children) ?? i }) : i });
1655
1655
  }, br = (e, t) => ({
@@ -1662,21 +1662,21 @@ const De = [
1662
1662
  };
1663
1663
  })
1664
1664
  }))
1665
- }), gr = E("flex flex-col", {
1665
+ }), gr = M("flex flex-col", {
1666
1666
  variants: {
1667
1667
  columnsVariant: {
1668
1668
  twoCols: "w-full max-w-[656px]",
1669
1669
  threeCols: "w-full max-w-[768px]"
1670
1670
  }
1671
1671
  }
1672
- }), jr = E("desktop:grid mobile:hidden px-4 mb-4", {
1672
+ }), jr = M("desktop:grid mobile:hidden px-4 mb-4", {
1673
1673
  variants: {
1674
1674
  columnsVariant: {
1675
1675
  twoCols: "grid-cols-2 gap-16",
1676
1676
  threeCols: "grid-cols-3 gap-12"
1677
1677
  }
1678
1678
  }
1679
- }), yr = ({ headings: e, columnsVariant: t, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: a(jr({ 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)) }), kr = E("desktop:grid mobile:hidden items-center", {
1679
+ }), yr = ({ headings: e, columnsVariant: t, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: a(jr({ 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)) }), kr = M("desktop:grid mobile:hidden items-center", {
1680
1680
  variants: {
1681
1681
  columnsVariant: {
1682
1682
  twoCols: "grid-cols-2 gap-16",
@@ -1694,7 +1694,7 @@ const De = [
1694
1694
  children: d && d
1695
1695
  },
1696
1696
  l
1697
- )) }), vr = E("mobile:flex desktop:hidden flex-col gap-2", {
1697
+ )) }), vr = M("mobile:flex desktop:hidden flex-col gap-2", {
1698
1698
  variants: {
1699
1699
  tableVariant: {
1700
1700
  filled: "px-4 py-4 odd:bg-color-primary-light-default",
@@ -1721,18 +1721,18 @@ const De = [
1721
1721
  const d = ((u = br(t, r)) == null ? void 0 : u.rows) ?? [], l = !!(r && r.length > 0);
1722
1722
  return /* @__PURE__ */ o.jsxs("div", { className: a("flex flex-col", i == null ? void 0 : i.wrapper), children: [
1723
1723
  l && /* @__PURE__ */ o.jsx(yr, { headings: r, columnsVariant: n, classes: i == null ? void 0 : i.desktopHeading }),
1724
- t == null ? void 0 : t.map((p, h) => /* @__PURE__ */ o.jsx(
1724
+ t == null ? void 0 : t.map((p, m) => /* @__PURE__ */ o.jsx(
1725
1725
  wr,
1726
1726
  {
1727
- rowIndex: h,
1727
+ rowIndex: m,
1728
1728
  tableVariant: e,
1729
1729
  columnsVariant: n,
1730
1730
  classes: i == null ? void 0 : i.desktopRow,
1731
1731
  ...p
1732
1732
  },
1733
- h
1733
+ m
1734
1734
  )),
1735
- d == null ? void 0 : d.map((p, h) => /* @__PURE__ */ o.jsx(
1735
+ d == null ? void 0 : d.map((p, m) => /* @__PURE__ */ o.jsx(
1736
1736
  Nr,
1737
1737
  {
1738
1738
  headingsExist: l,
@@ -1741,7 +1741,7 @@ const De = [
1741
1741
  classes: i == null ? void 0 : i.desktopRow,
1742
1742
  ...p
1743
1743
  },
1744
- h
1744
+ m
1745
1745
  ))
1746
1746
  ] });
1747
1747
  }, Cr = ({
@@ -1755,7 +1755,7 @@ const De = [
1755
1755
  accordionConfig: u,
1756
1756
  classes: p
1757
1757
  }) => {
1758
- const h = /* @__PURE__ */ o.jsxs("div", { className: a(gr({ columnsVariant: r }), p == null ? void 0 : p.wrapper), children: [
1758
+ const m = /* @__PURE__ */ o.jsxs("div", { className: a(gr({ columnsVariant: r }), p == null ? void 0 : p.wrapper), children: [
1759
1759
  d && /* @__PURE__ */ o.jsx(W, { as: "h4", className: a("mb-4 desktop:mb-6", p == null ? void 0 : p.headline), children: d }),
1760
1760
  /* @__PURE__ */ o.jsx(sr, { tableVariant: e, rows: i, headings: l, columnsVariant: r }),
1761
1761
  t && /* @__PURE__ */ o.jsx(
@@ -1766,11 +1766,11 @@ const De = [
1766
1766
  }
1767
1767
  )
1768
1768
  ] });
1769
- return /* @__PURE__ */ o.jsx(o.Fragment, { children: n && (n != null && n.isAccordion) && (n != null && n.accordionTitle) ? /* @__PURE__ */ o.jsx(ot, { label: n == null ? void 0 : n.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || h }) : h });
1769
+ return /* @__PURE__ */ o.jsx(o.Fragment, { children: n && (n != null && n.isAccordion) && (n != null && n.accordionTitle) ? /* @__PURE__ */ o.jsx(ot, { label: n == null ? void 0 : n.accordionTitle, ...u, children: (u == null ? void 0 : u.children) || m }) : m });
1770
1770
  }, Tr = {
1771
1771
  documentFilled: "files/documentFilled",
1772
1772
  documentOutline: "files/documentOutline"
1773
- }, Ir = E("size-8 transition-colors", {
1773
+ }, Ir = M("size-8 transition-colors", {
1774
1774
  variants: {
1775
1775
  iconType: {
1776
1776
  documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
@@ -1780,7 +1780,7 @@ const De = [
1780
1780
  defaultVariants: {
1781
1781
  iconType: "documentOutline"
1782
1782
  }
1783
- }), Mr = ({ label: e, size: t, url: r, iconType: n, classes: i }) => /* @__PURE__ */ o.jsxs(
1783
+ }), Er = ({ label: e, size: t, url: r, iconType: n, classes: i }) => /* @__PURE__ */ o.jsxs(
1784
1784
  "a",
1785
1785
  {
1786
1786
  href: r,
@@ -1802,17 +1802,17 @@ const De = [
1802
1802
  ] })
1803
1803
  ]
1804
1804
  }
1805
- ), Er = ({ docs: e, config: t, title: r, iconType: n, description: i, classes: d, accordionConfig: l }) => {
1805
+ ), Mr = ({ docs: e, config: t, title: r, iconType: n, description: i, classes: d, accordionConfig: l }) => {
1806
1806
  const u = /* @__PURE__ */ o.jsxs("div", { className: a("flex max-w-[680px] flex-col", d == null ? void 0 : d.wrapper), children: [
1807
1807
  r && /* @__PURE__ */ o.jsx(W, { as: "h3", className: "mb-4", children: r }),
1808
- /* @__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)) }),
1808
+ /* @__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)) }),
1809
1809
  i && /* @__PURE__ */ o.jsx("div", { className: a("mt-4", d == null ? void 0 : d.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
1810
1810
  ] });
1811
1811
  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 });
1812
1812
  }, Or = ({ entity: e, classes: t, accordionsConfig: r }) => {
1813
1813
  var n, i, d;
1814
1814
  switch (!0) {
1815
- case hr(e):
1815
+ case mr(e):
1816
1816
  return (n = e.details) == null ? void 0 : n.map((l, u) => {
1817
1817
  var p;
1818
1818
  return /* @__PURE__ */ o.jsx(cr, { ...l, accordionConfig: r == null ? void 0 : r.htmlAccordion, classes: (p = t == null ? void 0 : t.entities) == null ? void 0 : p.html }, u);
@@ -1821,7 +1821,7 @@ const De = [
1821
1821
  return (i = e.details) == null ? void 0 : i.map((l, u) => {
1822
1822
  var p;
1823
1823
  return /* @__PURE__ */ o.jsx(
1824
- Er,
1824
+ Mr,
1825
1825
  {
1826
1826
  accordionConfig: r == null ? void 0 : r.documentAccordion,
1827
1827
  ...l,
@@ -1846,13 +1846,13 @@ const De = [
1846
1846
  default:
1847
1847
  return null;
1848
1848
  }
1849
- }, Sr = ({ entity: e, classes: t, accordionsConfig: r }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-6", t == null ? void 0 : t.entityWrapper), children: Or({ entity: e, classes: t, accordionsConfig: r }) }), En = ({ headline: e, tabs: t, classes: r, accordionsConfig: n }) => {
1849
+ }, Sr = ({ entity: e, classes: t, accordionsConfig: r }) => /* @__PURE__ */ o.jsx("div", { className: a("flex flex-col gap-6", t == null ? void 0 : t.entityWrapper), children: Or({ entity: e, classes: t, accordionsConfig: r }) }), Mn = ({ headline: e, tabs: t, classes: r, accordionsConfig: n }) => {
1850
1850
  var u, p;
1851
- const [i, d] = G(0), l = Ct(() => t == null ? void 0 : t.map((h) => h == null ? void 0 : h.tabName), [t]) ?? [];
1851
+ const [i, d] = G(0), l = Ct(() => t == null ? void 0 : t.map((m) => m == null ? void 0 : m.tabName), [t]) ?? [];
1852
1852
  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: [
1853
1853
  /* @__PURE__ */ o.jsx(W, { className: a(r == null ? void 0 : r.headline), as: "h2", children: e }),
1854
- /* @__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(mr, { tabsNames: l, activeTab: i, setActiveTab: d, classes: r == null ? void 0 : r.tabs }) }),
1855
- /* @__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((h, x) => /* @__PURE__ */ o.jsx(Sr, { accordionsConfig: n, ...h, classes: r == null ? void 0 : r.entityClasses }, x)) })
1854
+ /* @__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 }) }),
1855
+ /* @__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(Sr, { accordionsConfig: n, ...m, classes: r == null ? void 0 : r.entityClasses }, x)) })
1856
1856
  ] }) });
1857
1857
  }, Fr = ({ fields: e, control: t }) => e.map(({ type: r, args: n }) => {
1858
1858
  const i = ke[r];
@@ -1885,12 +1885,12 @@ class Br {
1885
1885
  if (r === "node")
1886
1886
  n.push(t);
1887
1887
  else {
1888
- const h = u.outerHTML.trim();
1889
- n.push(h);
1888
+ const m = u.outerHTML.trim();
1889
+ n.push(m);
1890
1890
  }
1891
1891
  if (d)
1892
- for (const h of t.childNodes)
1893
- this.traverse(h, r, n);
1892
+ for (const m of t.childNodes)
1893
+ this.traverse(m, r, n);
1894
1894
  break;
1895
1895
  // если узел - текстовый и требуется его добавить, добавляем
1896
1896
  case this.TEXT_NODE:
@@ -1899,8 +1899,8 @@ class Br {
1899
1899
  if (r === "node")
1900
1900
  n.push(t);
1901
1901
  else {
1902
- const h = t.textContent;
1903
- h && n.push(h);
1902
+ const m = t.textContent;
1903
+ m && n.push(m);
1904
1904
  }
1905
1905
  break;
1906
1906
  }
@@ -1974,14 +1974,14 @@ class wt {
1974
1974
  break;
1975
1975
  case "style":
1976
1976
  u = "style";
1977
- const h = {};
1977
+ const m = {};
1978
1978
  l.value.split(";").forEach((x) => {
1979
1979
  const [f, b] = x.split(":");
1980
1980
  if (f && b) {
1981
1981
  const v = f.trim().replace(/-([a-z])/g, (N, T) => T.toUpperCase());
1982
- h[v] = b.trim();
1982
+ m[v] = b.trim();
1983
1983
  }
1984
- }), p = h;
1984
+ }), p = m;
1985
1985
  break;
1986
1986
  }
1987
1987
  i[u] = p;
@@ -2063,7 +2063,7 @@ const Pr = ({ promises: e }) => {
2063
2063
  classes: l
2064
2064
  }) => {
2065
2065
  var K, D;
2066
- const { submitCallback: u, ...p } = d || {}, [h, x] = G(!1), f = zr(e), { control: b, handleSubmit: v } = Me({
2066
+ const { submitCallback: u, ...p } = d || {}, [m, x] = G(!1), f = zr(e), { control: b, handleSubmit: v } = Ee({
2067
2067
  schema: f,
2068
2068
  defaultValues: Se.getZodDefaults(f),
2069
2069
  mode: "onBlur"
@@ -2115,13 +2115,13 @@ const Pr = ({ promises: e }) => {
2115
2115
  ),
2116
2116
  /* @__PURE__ */ o.jsx(Fr, { control: b, fields: e }),
2117
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: [
2118
- Vr(n, h, x, l == null ? void 0 : l.approvement),
2118
+ Vr(n, m, x, l == null ? void 0 : l.approvement),
2119
2119
  /* @__PURE__ */ o.jsx(
2120
2120
  vt,
2121
2121
  {
2122
2122
  ...p,
2123
2123
  type: "submit",
2124
- disabled: n.type === "checkbox" ? !h : !1,
2124
+ disabled: n.type === "checkbox" ? !m : !1,
2125
2125
  className: a(
2126
2126
  "w-full whitespace-nowrap",
2127
2127
  {
@@ -2223,7 +2223,7 @@ const Pr = ({ promises: e }) => {
2223
2223
  return;
2224
2224
  let u = window.location.pathname.split("/").filter((x) => !k.isStringEmpty(x));
2225
2225
  k.isUndefined(e) || (k.isString(e) ? u = u.slice(u.findIndex((x) => x === e)) : u = u.slice(e)), k.isUndefined(t) || (k.isString(t) ? u = u.slice(0, u.findIndex((x) => x === t) + 1) : u = u.slice(0, t + 1));
2226
- let p = [], h = "";
2226
+ let p = [], m = "";
2227
2227
  if (i) {
2228
2228
  const x = {
2229
2229
  index: 0,
@@ -2234,13 +2234,13 @@ const Pr = ({ promises: e }) => {
2234
2234
  p.push(x);
2235
2235
  }
2236
2236
  u.forEach((x, f) => {
2237
- h += `/${x}`;
2237
+ m += `/${x}`;
2238
2238
  const b = {
2239
2239
  // while root enabled we need to increment index
2240
2240
  // cuz we have root breadcrumb
2241
2241
  index: i ? f + 1 : f,
2242
2242
  id: Rt(),
2243
- path: h,
2243
+ path: m,
2244
2244
  label: x
2245
2245
  };
2246
2246
  p.push(b);
@@ -2265,8 +2265,8 @@ const Pr = ({ promises: e }) => {
2265
2265
  ] }, i.id);
2266
2266
  }), Gr = ({ separator: e, ellipsis: t, classes: r, ...n }) => {
2267
2267
  const [i, d] = G(!1), l = Tt(null);
2268
- Ee(l, () => d(!1));
2269
- const u = Wr(n), { first: p, middle: h, last: x } = Ct(() => {
2268
+ Me(l, () => d(!1));
2269
+ const u = Wr(n), { first: p, middle: m, last: x } = Ct(() => {
2270
2270
  let b = [], v = [], N = [];
2271
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 };
2272
2272
  }, [u, t]), f = e ?? /* @__PURE__ */ o.jsx(c, { name: "arrows/arrowRight", className: a("size-4", r == null ? void 0 : r.separator) });
@@ -2286,7 +2286,7 @@ const Pr = ({ promises: e }) => {
2286
2286
  /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2287
2287
  xt(p, f, r == null ? void 0 : r.breadcrumb),
2288
2288
  f,
2289
- h.length > 0 && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2289
+ m.length > 0 && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2290
2290
  /* @__PURE__ */ o.jsxs("div", { className: "relative", children: [
2291
2291
  /* @__PURE__ */ o.jsx("button", { onClick: () => d(!0), children: "..." }),
2292
2292
  /* @__PURE__ */ o.jsx(
@@ -2301,7 +2301,7 @@ const Pr = ({ promises: e }) => {
2301
2301
  "visible opacity-100": i
2302
2302
  }
2303
2303
  ),
2304
- children: h.map((b) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
2304
+ children: m.map((b) => /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
2305
2305
  ie,
2306
2306
  {
2307
2307
  breadcrumb: b,
@@ -2576,11 +2576,11 @@ const Kr = (e, t) => {
2576
2576
  value: t.title ?? "",
2577
2577
  label: t.title ?? ""
2578
2578
  })), ln = ({ categories: e, helpers: t, phone: r, ...n }) => {
2579
- const i = an(e), [d, l] = G(i[0]), u = (h) => {
2580
- k.isUndefined(h) || k.isArray(h) || l(h);
2579
+ const i = an(e), [d, l] = G(i[0]), u = (m) => {
2580
+ k.isUndefined(m) || k.isArray(m) || l(m);
2581
2581
  }, p = Ct(() => {
2582
- var h;
2583
- return k.isUndefined(d) || k.isArray(d) ? [] : ((h = e.find((x) => x.title === d.value)) == null ? void 0 : h.children) ?? [];
2582
+ var m;
2583
+ return k.isUndefined(d) || k.isArray(d) ? [] : ((m = e.find((x) => x.title === d.value)) == null ? void 0 : m.children) ?? [];
2584
2584
  }, [d, e]);
2585
2585
  return /* @__PURE__ */ o.jsxs(
2586
2586
  st.div,
@@ -2596,18 +2596,18 @@ const Kr = (e, t) => {
2596
2596
  animate: { opacity: 1 },
2597
2597
  children: [
2598
2598
  /* @__PURE__ */ o.jsx(Kt.SelectBase, { label: "Категория", options: i, value: d, onChange: u }),
2599
- /* @__PURE__ */ o.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: p.map((h) => {
2599
+ /* @__PURE__ */ o.jsx("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: p.map((m) => {
2600
2600
  var x;
2601
- return k.isArrayEmpty(h.children) ? /* @__PURE__ */ o.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ o.jsx("a", { href: (x = h.link) == null ? void 0 : x.href, className: "desk-body-regular-m inline-block w-full", children: h.title }) }, h.title) : /* @__PURE__ */ o.jsx(dn, { category: h }, h.title);
2601
+ 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);
2602
2602
  }) }),
2603
2603
  /* @__PURE__ */ o.jsx("div", { className: "h-[1px] w-full bg-color-blue-grey-200" }),
2604
2604
  /* @__PURE__ */ o.jsxs("div", { className: "flex w-full flex-col items-center justify-center gap-y-1", children: [
2605
- t.map((h) => {
2605
+ t.map((m) => {
2606
2606
  var x, f;
2607
- return /* @__PURE__ */ o.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ o.jsxs("a", { href: (x = h.link) == null ? void 0 : x.href, className: "flex w-full items-center gap-x-1", children: [
2608
- ((f = h.link) == null ? void 0 : f.icon) && /* @__PURE__ */ o.jsx(c, { name: h.link.icon, className: "size-4" }),
2609
- h.title
2610
- ] }) }, h.title);
2607
+ return /* @__PURE__ */ o.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ o.jsxs("a", { href: (x = m.link) == null ? void 0 : x.href, className: "flex w-full items-center gap-x-1", children: [
2608
+ ((f = m.link) == null ? void 0 : f.icon) && /* @__PURE__ */ o.jsx(c, { name: m.link.icon, className: "size-4" }),
2609
+ m.title
2610
+ ] }) }, m.title);
2611
2611
  }),
2612
2612
  /* @__PURE__ */ o.jsx("div", { className: "w-full px-4 py-2.5", children: /* @__PURE__ */ o.jsxs("a", { href: `tel:${r}`, className: "flex w-full items-center gap-x-1", children: [
2613
2613
  /* @__PURE__ */ o.jsx(c, { name: "communication/phone", className: "size-4" }),
@@ -2664,11 +2664,11 @@ export {
2664
2664
  _r as HTMLParser,
2665
2665
  ft as HTMLRenderer,
2666
2666
  vn as Header,
2667
- Mn as InterLinking,
2667
+ En as InterLinking,
2668
2668
  Tn as LongBanner,
2669
2669
  Fn as SeoHeader,
2670
2670
  Cn as Stepper,
2671
- En as UsefulInfo,
2671
+ Mn as UsefulInfo,
2672
2672
  De as WIDGET_LIST,
2673
2673
  Ar as queryClient,
2674
2674
  j as widgetIds