@scbt-ecom/ui 0.89.1 → 0.89.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/widget.js CHANGED
@@ -1,8 +1,8 @@
1
- var Rt = Object.defineProperty;
1
+ var Dt = Object.defineProperty;
2
2
  var We = (t) => {
3
3
  throw TypeError(t);
4
4
  };
5
- var zt = (t, e, r) => e in t ? Rt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
5
+ var zt = (t, e, r) => e in t ? Dt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
6
6
  var Fe = (t, e, r) => zt(t, typeof e != "symbol" ? e + "" : e, r), Be = (t, e, r) => e.has(t) || We("Cannot " + r);
7
7
  var h = (t, e, r) => (Be(t, e, "read from private field"), r ? r.call(t) : e.get(t)), N = (t, e, r) => e.has(t) ? We("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), j = (t, e, r, n) => (Be(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r), A = (t, e, r) => (Be(t, e, "access private method"), r);
8
8
  var ye = (t, e, r, n) => ({
@@ -14,7 +14,7 @@ var ye = (t, e, r, n) => ({
14
14
  }
15
15
  });
16
16
  import { j as o } from "./mergeRefs-Danc3mp8.js";
17
- import { Y as vt, Z as Nt, _ as Ht, $ as T, a0 as Ae, a1 as Lt, a2 as Qt, a3 as Ue, a4 as $, a5 as Vt, a6 as $t, a7 as Wt, a8 as At, a9 as qe, aa as Ke, ab as Ut, ac as Ze, ad as Ye, ae as qt, B as pe, c as D, R as F, n as Ct, F as Kt, E as s, i as f, Q as ce, r as Zt, t as Yt, p as Ce, L as Xt, o as se, A as de, U as De, af as Jt, q as Gt, W as Se, z as er, ag as Re, ah as tr, M as rr } from "./index-BFZfRLgg.js";
17
+ import { Y as vt, Z as Nt, _ as Ht, $ as T, a0 as Ae, a1 as Lt, a2 as Qt, a3 as Ue, a4 as V, a5 as $t, a6 as Vt, a7 as Wt, a8 as At, a9 as qe, aa as Ke, ab as Ut, ac as Ze, ad as Ye, ae as qt, B as pe, c as R, R as F, n as Ct, F as Kt, E as s, i as f, Q as ce, r as Zt, t as Yt, p as Ce, L as Xt, o as se, A as de, U as Re, af as Jt, q as Gt, W as Se, z as er, ag as De, ah as tr, M as rr } from "./index-DM5UjNZl.js";
18
18
  import { c as d, T as _ } from "./typeGuards-BHbj394R.js";
19
19
  import * as me from "react";
20
20
  import { lazy as B, useCallback as St, useState as O, memo as fe, useMemo as ge, createElement as Ie, useRef as ze, useReducer as nr, forwardRef as or, useEffect as ve } from "react";
@@ -97,10 +97,10 @@ var L, jt, pr = (jt = class extends vt {
97
97
  });
98
98
  });
99
99
  }
100
- }, L = new WeakMap(), jt), Q, M, G, V, U, yt, cr = (yt = class extends Lt {
100
+ }, L = new WeakMap(), jt), Q, M, G, $, U, yt, cr = (yt = class extends Lt {
101
101
  constructor(e) {
102
102
  super();
103
- N(this, V);
103
+ N(this, $);
104
104
  N(this, Q);
105
105
  N(this, M);
106
106
  N(this, G);
@@ -137,15 +137,15 @@ var L, jt, pr = (jt = class extends vt {
137
137
  async execute(e) {
138
138
  var a, l, u, x, m, p, c, S, y, E, k, I, P, z, v, C, H, Y, be, je;
139
139
  const r = () => {
140
- A(this, V, U).call(this, { type: "continue" });
140
+ A(this, $, U).call(this, { type: "continue" });
141
141
  };
142
142
  j(this, G, Qt({
143
143
  fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
144
144
  onFail: (w, X) => {
145
- A(this, V, U).call(this, { type: "failed", failureCount: w, error: X });
145
+ A(this, $, U).call(this, { type: "failed", failureCount: w, error: X });
146
146
  },
147
147
  onPause: () => {
148
- A(this, V, U).call(this, { type: "pause" });
148
+ A(this, $, U).call(this, { type: "pause" });
149
149
  },
150
150
  onContinue: r,
151
151
  retry: this.options.retry ?? 0,
@@ -158,13 +158,13 @@ var L, jt, pr = (jt = class extends vt {
158
158
  if (n)
159
159
  r();
160
160
  else {
161
- A(this, V, U).call(this, { type: "pending", variables: e, isPaused: i }), await ((l = (a = h(this, M).config).onMutate) == null ? void 0 : l.call(
161
+ A(this, $, U).call(this, { type: "pending", variables: e, isPaused: i }), await ((l = (a = h(this, M).config).onMutate) == null ? void 0 : l.call(
162
162
  a,
163
163
  e,
164
164
  this
165
165
  ));
166
166
  const X = await ((x = (u = this.options).onMutate) == null ? void 0 : x.call(u, e));
167
- X !== this.state.context && A(this, V, U).call(this, {
167
+ X !== this.state.context && A(this, $, U).call(this, {
168
168
  type: "pending",
169
169
  context: X,
170
170
  variables: e,
@@ -185,7 +185,7 @@ var L, jt, pr = (jt = class extends vt {
185
185
  this.state.variables,
186
186
  this.state.context,
187
187
  this
188
- )), await ((I = (k = this.options).onSettled) == null ? void 0 : I.call(k, w, null, e, this.state.context)), A(this, V, U).call(this, { type: "success", data: w }), w;
188
+ )), await ((I = (k = this.options).onSettled) == null ? void 0 : I.call(k, w, null, e, this.state.context)), A(this, $, U).call(this, { type: "success", data: w }), w;
189
189
  } catch (w) {
190
190
  try {
191
191
  throw await ((z = (P = h(this, M).config).onError) == null ? void 0 : z.call(
@@ -214,13 +214,13 @@ var L, jt, pr = (jt = class extends vt {
214
214
  this.state.context
215
215
  )), w;
216
216
  } finally {
217
- A(this, V, U).call(this, { type: "error", error: w });
217
+ A(this, $, U).call(this, { type: "error", error: w });
218
218
  }
219
219
  } finally {
220
220
  h(this, M).runNext(this);
221
221
  }
222
222
  }
223
- }, Q = new WeakMap(), M = new WeakMap(), G = new WeakMap(), V = new WeakSet(), U = function(e) {
223
+ }, Q = new WeakMap(), M = new WeakMap(), G = new WeakMap(), $ = new WeakSet(), U = function(e) {
224
224
  const r = (n) => {
225
225
  switch (e.type) {
226
226
  case "failed":
@@ -297,13 +297,13 @@ function fr() {
297
297
  submittedAt: 0
298
298
  };
299
299
  }
300
- var W, R, he, kt, gr = (kt = class extends vt {
300
+ var W, D, he, kt, gr = (kt = class extends vt {
301
301
  constructor(e = {}) {
302
302
  super();
303
303
  N(this, W);
304
- N(this, R);
304
+ N(this, D);
305
305
  N(this, he);
306
- this.config = e, j(this, W, /* @__PURE__ */ new Set()), j(this, R, /* @__PURE__ */ new Map()), j(this, he, 0);
306
+ this.config = e, j(this, W, /* @__PURE__ */ new Set()), j(this, D, /* @__PURE__ */ new Map()), j(this, he, 0);
307
307
  }
308
308
  build(e, r, n) {
309
309
  const i = new cr({
@@ -318,8 +318,8 @@ var W, R, he, kt, gr = (kt = class extends vt {
318
318
  h(this, W).add(e);
319
319
  const r = ke(e);
320
320
  if (typeof r == "string") {
321
- const n = h(this, R).get(r);
322
- n ? n.push(e) : h(this, R).set(r, [e]);
321
+ const n = h(this, D).get(r);
322
+ n ? n.push(e) : h(this, D).set(r, [e]);
323
323
  }
324
324
  this.notify({ type: "added", mutation: e });
325
325
  }
@@ -327,12 +327,12 @@ var W, R, he, kt, gr = (kt = class extends vt {
327
327
  if (h(this, W).delete(e)) {
328
328
  const r = ke(e);
329
329
  if (typeof r == "string") {
330
- const n = h(this, R).get(r);
330
+ const n = h(this, D).get(r);
331
331
  if (n)
332
332
  if (n.length > 1) {
333
333
  const i = n.indexOf(e);
334
334
  i !== -1 && n.splice(i, 1);
335
- } else n[0] === e && h(this, R).delete(r);
335
+ } else n[0] === e && h(this, D).delete(r);
336
336
  }
337
337
  }
338
338
  this.notify({ type: "removed", mutation: e });
@@ -340,7 +340,7 @@ var W, R, he, kt, gr = (kt = class extends vt {
340
340
  canRun(e) {
341
341
  const r = ke(e);
342
342
  if (typeof r == "string") {
343
- const n = h(this, R).get(r), i = n == null ? void 0 : n.find(
343
+ const n = h(this, D).get(r), i = n == null ? void 0 : n.find(
344
344
  (a) => a.state.status === "pending"
345
345
  );
346
346
  return !i || i === e;
@@ -351,7 +351,7 @@ var W, R, he, kt, gr = (kt = class extends vt {
351
351
  var n;
352
352
  const r = ke(e);
353
353
  if (typeof r == "string") {
354
- const i = (n = h(this, R).get(r)) == null ? void 0 : n.find((a) => a !== e && a.state.isPaused);
354
+ const i = (n = h(this, D).get(r)) == null ? void 0 : n.find((a) => a !== e && a.state.isPaused);
355
355
  return (i == null ? void 0 : i.continue()) ?? Promise.resolve();
356
356
  } else
357
357
  return Promise.resolve();
@@ -360,7 +360,7 @@ var W, R, he, kt, gr = (kt = class extends vt {
360
360
  T.batch(() => {
361
361
  h(this, W).forEach((e) => {
362
362
  this.notify({ type: "removed", mutation: e });
363
- }), h(this, W).clear(), h(this, R).clear();
363
+ }), h(this, W).clear(), h(this, D).clear();
364
364
  });
365
365
  }
366
366
  getAll() {
@@ -386,11 +386,11 @@ var W, R, he, kt, gr = (kt = class extends vt {
386
386
  const e = this.getAll().filter((r) => r.state.isPaused);
387
387
  return T.batch(
388
388
  () => Promise.all(
389
- e.map((r) => r.continue().catch($))
389
+ e.map((r) => r.continue().catch(V))
390
390
  )
391
391
  );
392
392
  }
393
- }, W = new WeakMap(), R = new WeakMap(), he = new WeakMap(), kt);
393
+ }, W = new WeakMap(), D = new WeakMap(), he = new WeakMap(), kt);
394
394
  function ke(t) {
395
395
  var e;
396
396
  return (e = t.options.scope) == null ? void 0 : e.id;
@@ -410,21 +410,21 @@ function Je(t) {
410
410
  k = !0;
411
411
  }), e.signal)
412
412
  });
413
- }, P = Vt(e.options, e.fetchOptions), z = async (v, C, H) => {
413
+ }, P = $t(e.options, e.fetchOptions), z = async (v, C, H) => {
414
414
  if (k)
415
415
  return Promise.reject();
416
416
  if (C == null && v.pages.length)
417
417
  return Promise.resolve(v);
418
418
  const be = (() => {
419
- const $e = {
419
+ const Ve = {
420
420
  client: e.client,
421
421
  queryKey: e.queryKey,
422
422
  pageParam: C,
423
423
  direction: H ? "backward" : "forward",
424
424
  meta: e.options.meta
425
425
  };
426
- return I($e), $e;
427
- })(), je = await P(be), { maxPages: w } = e.options, X = H ? $t : Wt;
426
+ return I(Ve), Ve;
427
+ })(), je = await P(be), { maxPages: w } = e.options, X = H ? Vt : Wt;
428
428
  return {
429
429
  pages: X(v.pages, je, w),
430
430
  pageParams: X(v.pageParams, C, w)
@@ -574,7 +574,7 @@ var b, q, K, te, re, Z, ne, oe, wt, jr = (wt = class {
574
574
  const r = { revert: !0, ...e }, n = T.batch(
575
575
  () => h(this, b).findAll(t).map((i) => i.cancel(r))
576
576
  );
577
- return Promise.all(n).then($).catch($);
577
+ return Promise.all(n).then(V).catch(V);
578
578
  }
579
579
  invalidateQueries(t, e = {}) {
580
580
  return T.batch(() => (h(this, b).findAll(t).forEach((r) => {
@@ -594,10 +594,10 @@ var b, q, K, te, re, Z, ne, oe, wt, jr = (wt = class {
594
594
  }, n = T.batch(
595
595
  () => h(this, b).findAll(t).filter((i) => !i.isDisabled() && !i.isStatic()).map((i) => {
596
596
  let a = i.fetch(void 0, r);
597
- return r.throwOnError || (a = a.catch($)), i.state.fetchStatus === "paused" ? Promise.resolve() : a;
597
+ return r.throwOnError || (a = a.catch(V)), i.state.fetchStatus === "paused" ? Promise.resolve() : a;
598
598
  })
599
599
  );
600
- return Promise.all(n).then($);
600
+ return Promise.all(n).then(V);
601
601
  }
602
602
  fetchQuery(t) {
603
603
  const e = this.defaultQueryOptions(t);
@@ -608,13 +608,13 @@ var b, q, K, te, re, Z, ne, oe, wt, jr = (wt = class {
608
608
  ) ? r.fetch(e) : Promise.resolve(r.state.data);
609
609
  }
610
610
  prefetchQuery(t) {
611
- return this.fetchQuery(t).then($).catch($);
611
+ return this.fetchQuery(t).then(V).catch(V);
612
612
  }
613
613
  fetchInfiniteQuery(t) {
614
614
  return t.behavior = Je(t.pages), this.fetchQuery(t);
615
615
  }
616
616
  prefetchInfiniteQuery(t) {
617
- return this.fetchInfiniteQuery(t).then($).catch($);
617
+ return this.fetchInfiniteQuery(t).then(V).catch(V);
618
618
  }
619
619
  ensureInfiniteQueryData(t) {
620
620
  return t.behavior = Je(t.pages), this.ensureQueryData(t);
@@ -684,7 +684,7 @@ var b, q, K, te, re, Z, ne, oe, wt, jr = (wt = class {
684
684
  h(this, b).clear(), h(this, q).clear();
685
685
  }
686
686
  }, b = new WeakMap(), q = new WeakMap(), K = new WeakMap(), te = new WeakMap(), re = new WeakMap(), Z = new WeakMap(), ne = new WeakMap(), oe = new WeakMap(), wt);
687
- const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resolve().then(() => Eo)), wr = B(() => Promise.resolve().then(() => qn)), vr = B(() => Promise.resolve().then(() => Zn)), Nr = B(() => Promise.resolve().then(() => Jr)), Cr = B(() => Promise.resolve().then(() => Qr)), Sr = B(() => Promise.resolve().then(() => gn)), Ir = B(() => Promise.resolve().then(() => mn)), Mr = B(() => Promise.resolve().then(() => co)), _r = B(() => Promise.resolve().then(() => rn)), Or = B(() => Promise.resolve().then(() => zn)), Tr = B(() => Promise.resolve().then(() => Hr)), Fr = B(() => Promise.resolve().then(() => Do)), Br = B(() => Promise.resolve().then(() => Wo)), Er = {
687
+ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resolve().then(() => Eo)), wr = B(() => Promise.resolve().then(() => qn)), vr = B(() => Promise.resolve().then(() => Zn)), Nr = B(() => Promise.resolve().then(() => Jr)), Cr = B(() => Promise.resolve().then(() => Qr)), Sr = B(() => Promise.resolve().then(() => gn)), Ir = B(() => Promise.resolve().then(() => mn)), Mr = B(() => Promise.resolve().then(() => co)), _r = B(() => Promise.resolve().then(() => rn)), Or = B(() => Promise.resolve().then(() => zn)), Tr = B(() => Promise.resolve().then(() => Hr)), Fr = B(() => Promise.resolve().then(() => Ro)), Br = B(() => Promise.resolve().then(() => Zo)), Er = {
688
688
  header: Cr,
689
689
  seoHeader: Mr,
690
690
  banner: yr,
@@ -727,7 +727,7 @@ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resol
727
727
  }, [t]), ee = ({ handlerOptions: t, className: e, ...r }) => {
728
728
  const n = sr(t);
729
729
  return /* @__PURE__ */ o.jsx(pe, { className: d(e), onClick: n, ...r, children: r.children });
730
- }, Dr = D(
730
+ }, Rr = R(
731
731
  "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",
732
732
  {
733
733
  variants: {
@@ -738,7 +738,7 @@ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resol
738
738
  }
739
739
  }
740
740
  }
741
- ), Rr = ({
741
+ ), Dr = ({
742
742
  subtitle: t,
743
743
  title: e,
744
744
  img: r,
@@ -754,7 +754,7 @@ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resol
754
754
  "li",
755
755
  {
756
756
  style: { backgroundColor: x ?? "#F3F4F7" },
757
- className: d(Dr({ variant: u }), { "pb-0": n }, { "pb-12": !n }, i == null ? void 0 : i.root),
757
+ className: d(Rr({ variant: u }), { "pb-0": n }, { "pb-12": !n }, i == null ? void 0 : i.root),
758
758
  children: [
759
759
  /* @__PURE__ */ o.jsxs("div", { className: d("flex flex-col items-start justify-between px-4 desktop:px-8 desktop:py-8", i == null ? void 0 : i.wrapper), children: [
760
760
  /* @__PURE__ */ o.jsxs("div", { className: d("flex flex-col gap-4", i == null ? void 0 : i.textContainer), children: [
@@ -774,7 +774,7 @@ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resol
774
774
  },
775
775
  e
776
776
  );
777
- }, zr = D("grid gap-4", {
777
+ }, zr = R("grid gap-4", {
778
778
  variants: {
779
779
  variant: {
780
780
  twoCards: "grid-cols-1 mobile:grid-rows-[repeat(2,400px)] desktop:grid-cols-2",
@@ -790,7 +790,7 @@ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resol
790
790
  className: d("mob-headline-bold-s mb-8 desktop:desk-headline-bold-m", n == null ? void 0 : n.heading)
791
791
  }
792
792
  ),
793
- /* @__PURE__ */ o.jsx("ul", { className: d(zr({ variant: r }), n == null ? void 0 : n.grid), children: e == null ? void 0 : e.map((i) => /* @__PURE__ */ o.jsx(Rr, { variant: r, classes: n == null ? void 0 : n.item, ...i }, i.title)) })
793
+ /* @__PURE__ */ o.jsx("ul", { className: d(zr({ variant: r }), n == null ? void 0 : n.grid), children: e == null ? void 0 : e.map((i) => /* @__PURE__ */ o.jsx(Dr, { variant: r, classes: n == null ? void 0 : n.item, ...i }, i.title)) })
794
794
  ] }) }), Hr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
795
795
  __proto__: null,
796
796
  Benefit: et,
@@ -895,7 +895,7 @@ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resol
895
895
  ))
896
896
  }
897
897
  ) });
898
- }, Vr = ({
898
+ }, $r = ({
899
899
  headTitle: t,
900
900
  subtitle: e,
901
901
  buttonsConfig: r,
@@ -973,7 +973,7 @@ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resol
973
973
  }
974
974
  )
975
975
  ] });
976
- }, $r = ({
976
+ }, Vr = ({
977
977
  headTitle: t,
978
978
  subtitle: e,
979
979
  buttonsConfig: r,
@@ -1081,9 +1081,9 @@ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resol
1081
1081
  }, rt = ({ variant: t, ...e }) => {
1082
1082
  switch (t) {
1083
1083
  case "fullImg":
1084
- return /* @__PURE__ */ o.jsx(Vr, { ...e });
1085
- default:
1086
1084
  return /* @__PURE__ */ o.jsx($r, { ...e });
1085
+ default:
1086
+ return /* @__PURE__ */ o.jsx(Vr, { ...e });
1087
1087
  }
1088
1088
  }, Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1089
1089
  __proto__: null,
@@ -1378,7 +1378,7 @@ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resol
1378
1378
  __proto__: null,
1379
1379
  Stepper: ot,
1380
1380
  default: ot
1381
- }, Symbol.toStringTag, { value: "Module" })), nn = D("", {
1381
+ }, Symbol.toStringTag, { value: "Module" })), nn = R("", {
1382
1382
  variants: {
1383
1383
  intent: {
1384
1384
  twoItems: "mob-headline-bold-s mb-6 desktop:desk-headline-bold-m desktop:mb-12",
@@ -1394,7 +1394,7 @@ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resol
1394
1394
  defaultVariants: {
1395
1395
  intent: "twoItems"
1396
1396
  }
1397
- }), on = D("", {
1397
+ }), on = R("", {
1398
1398
  variants: {
1399
1399
  intent: {
1400
1400
  twoItems: "",
@@ -1426,7 +1426,7 @@ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resol
1426
1426
  class: "desktop:grid grid-rows-2 desktop:gap-x-10 desktop:gap-y-4 grid-flow-col"
1427
1427
  }
1428
1428
  ]
1429
- }), an = D("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
1429
+ }), an = R("border-blue-grey-500 pb-6 mobile:mb-6 mobile:border-b mobile:last:pb-0 mobile:last:mb-0", {
1430
1430
  variants: {
1431
1431
  intent: {
1432
1432
  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',
@@ -1436,7 +1436,7 @@ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resol
1436
1436
  defaultVariants: {
1437
1437
  intent: "twoItems"
1438
1438
  }
1439
- }), dn = D("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
1439
+ }), dn = R("mobile:mx-auto mobile:mb-8, h-[172px] w-[280px] ", {
1440
1440
  variants: {
1441
1441
  intent: {
1442
1442
  twoItems: "desktop:h-[232px] desktop:w-[500px]",
@@ -1700,7 +1700,7 @@ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resol
1700
1700
  }
1701
1701
  );
1702
1702
  }
1703
- }, ni = (t) => hn(t), lt = ({ links: t, classes: e }) => /* @__PURE__ */ o.jsx("nav", { className: d("flex flex-col gap-1", e == null ? void 0 : e.linksWrapper), children: t == null ? void 0 : t.map(({ path: r, label: n, ...i }) => /* @__PURE__ */ o.jsx(
1703
+ }, li = (t) => hn(t), lt = ({ links: t, classes: e }) => /* @__PURE__ */ o.jsx("nav", { className: d("flex flex-col gap-1", e == null ? void 0 : e.linksWrapper), children: t == null ? void 0 : t.map(({ path: r, label: n, ...i }) => /* @__PURE__ */ o.jsx(
1704
1704
  ce,
1705
1705
  {
1706
1706
  classes: {
@@ -1739,7 +1739,7 @@ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resol
1739
1739
  }
1740
1740
  )
1741
1741
  ] });
1742
- }, cn = ({ column: t, mobileAccordionProps: e, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: d("flex flex-col gap-4 desktop:gap-6", r == null ? void 0 : r.column), children: t == null ? void 0 : t.map((n) => /* @__PURE__ */ o.jsx(pn, { ...e, ...n, classes: r == null ? void 0 : r.columnGroup }, n.groupLabel)) }), fn = D("grid gap-4 grid-cols-1", {
1742
+ }, cn = ({ column: t, mobileAccordionProps: e, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: d("flex flex-col gap-4 desktop:gap-6", r == null ? void 0 : r.column), children: t == null ? void 0 : t.map((n) => /* @__PURE__ */ o.jsx(pn, { ...e, ...n, classes: r == null ? void 0 : r.columnGroup }, n.groupLabel)) }), fn = R("grid gap-4 grid-cols-1", {
1743
1743
  variants: {
1744
1744
  variant: {
1745
1745
  twoCols: "desktop:grid-cols-2",
@@ -1815,21 +1815,21 @@ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resol
1815
1815
  };
1816
1816
  })
1817
1817
  }))
1818
- }), Nn = D("flex flex-col", {
1818
+ }), Nn = R("flex flex-col", {
1819
1819
  variants: {
1820
1820
  columnsVariant: {
1821
1821
  twoCols: "w-full max-w-[656px]",
1822
1822
  threeCols: "w-full max-w-[768px]"
1823
1823
  }
1824
1824
  }
1825
- }), Cn = D("desktop:grid mobile:hidden px-4 mb-4", {
1825
+ }), Cn = R("desktop:grid mobile:hidden px-4 mb-4", {
1826
1826
  variants: {
1827
1827
  columnsVariant: {
1828
1828
  twoCols: "grid-cols-2 gap-16",
1829
1829
  threeCols: "grid-cols-3 gap-12"
1830
1830
  }
1831
1831
  }
1832
- }), Sn = ({ headings: t, columnsVariant: e, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: d(Cn({ columnsVariant: e }), r == null ? void 0 : r.row), children: t == null ? void 0 : t.map((n) => /* @__PURE__ */ o.jsx("div", { className: d("text-color-secondary", r == null ? void 0 : r.cell), children: n == null ? void 0 : n.heading }, n == null ? void 0 : n.heading)) }), In = D("desktop:grid mobile:hidden items-center", {
1832
+ }), Sn = ({ headings: t, columnsVariant: e, classes: r }) => /* @__PURE__ */ o.jsx("div", { className: d(Cn({ columnsVariant: e }), r == null ? void 0 : r.row), children: t == null ? void 0 : t.map((n) => /* @__PURE__ */ o.jsx("div", { className: d("text-color-secondary", r == null ? void 0 : r.cell), children: n == null ? void 0 : n.heading }, n == null ? void 0 : n.heading)) }), In = R("desktop:grid mobile:hidden items-center", {
1833
1833
  variants: {
1834
1834
  columnsVariant: {
1835
1835
  twoCols: "grid-cols-2 gap-16",
@@ -1847,7 +1847,7 @@ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resol
1847
1847
  children: a && a
1848
1848
  },
1849
1849
  l
1850
- )) }), _n = D("mobile:flex desktop:hidden flex-col gap-2", {
1850
+ )) }), _n = R("mobile:flex desktop:hidden flex-col gap-2", {
1851
1851
  variants: {
1852
1852
  tableVariant: {
1853
1853
  filled: "px-4 py-4 odd:bg-color-primary-light-default",
@@ -1923,7 +1923,7 @@ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resol
1923
1923
  }, Bn = {
1924
1924
  documentFilled: "files/documentFilled",
1925
1925
  documentOutline: "files/documentOutline"
1926
- }, En = D("size-8 transition-colors", {
1926
+ }, En = R("size-8 transition-colors", {
1927
1927
  variants: {
1928
1928
  iconType: {
1929
1929
  documentOutline: "text-icon-secondary-dark-default group-hover:text-icon-secondary-dark-hover",
@@ -1962,7 +1962,7 @@ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resol
1962
1962
  i && /* @__PURE__ */ o.jsx("div", { className: d("mt-4", a == null ? void 0 : a.description), dangerouslySetInnerHTML: { __html: i ?? "" } })
1963
1963
  ] });
1964
1964
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: e && (e != null && e.isAccordion) && (e != null && e.accordionTitle) ? /* @__PURE__ */ o.jsx(de, { label: e == null ? void 0 : e.accordionTitle, ...l, children: (l == null ? void 0 : l.children) || u }) : u });
1965
- }, Dn = ({ entity: t, classes: e, accordionsConfig: r }) => {
1965
+ }, Rn = ({ entity: t, classes: e, accordionsConfig: r }) => {
1966
1966
  var n, i, a;
1967
1967
  switch (!0) {
1968
1968
  case jn(t):
@@ -1999,20 +1999,20 @@ const yr = B(() => Promise.resolve().then(() => Wr)), kr = B(() => Promise.resol
1999
1999
  default:
2000
2000
  return null;
2001
2001
  }
2002
- }, Rn = ({ entity: t, classes: e, accordionsConfig: r }) => /* @__PURE__ */ o.jsx("div", { className: d("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: Dn({ entity: t, classes: e, accordionsConfig: r }) }), mt = ({ headline: t, tabs: e, classes: r, accordionsConfig: n }) => {
2002
+ }, Dn = ({ entity: t, classes: e, accordionsConfig: r }) => /* @__PURE__ */ o.jsx("div", { className: d("flex flex-col gap-6", e == null ? void 0 : e.entityWrapper), children: Rn({ entity: t, classes: e, accordionsConfig: r }) }), mt = ({ headline: t, tabs: e, classes: r, accordionsConfig: n }) => {
2003
2003
  var u, x;
2004
2004
  const [i, a] = O(0), l = ge(() => e == null ? void 0 : e.map((m) => m == null ? void 0 : m.tabName), [e]) ?? [];
2005
2005
  return !e || (e == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ o.jsx("section", { id: g.usefulInfo, "data-test-id": g.usefulInfo, className: d(r == null ? void 0 : r.root), children: /* @__PURE__ */ o.jsxs(F, { className: d(r == null ? void 0 : r.container), children: [
2006
2006
  /* @__PURE__ */ o.jsx(s, { className: d(r == null ? void 0 : r.headline), as: "h2", children: t }),
2007
2007
  /* @__PURE__ */ o.jsx("div", { className: d("mt-6 flex flex-col gap-2 desktop:mt-12", r == null ? void 0 : r.tabsWrapper), children: /* @__PURE__ */ o.jsx(bn, { tabsNames: l, activeTab: i, setActiveTab: a, classes: r == null ? void 0 : r.tabs }) }),
2008
- /* @__PURE__ */ o.jsx("div", { className: d("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (x = (u = e == null ? void 0 : e[i]) == null ? void 0 : u.contents) == null ? void 0 : x.map((m, p) => /* @__PURE__ */ o.jsx(Rn, { accordionsConfig: n, ...m, classes: r == null ? void 0 : r.entityClasses }, p)) })
2008
+ /* @__PURE__ */ o.jsx("div", { className: d("mt-6 flex flex-col gap-6", r == null ? void 0 : r.contentWrapper), children: (x = (u = e == null ? void 0 : e[i]) == null ? void 0 : u.contents) == null ? void 0 : x.map((m, p) => /* @__PURE__ */ o.jsx(Dn, { accordionsConfig: n, ...m, classes: r == null ? void 0 : r.entityClasses }, p)) })
2009
2009
  ] }) });
2010
2010
  }, zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2011
2011
  __proto__: null,
2012
2012
  UsefulInfo: mt,
2013
2013
  default: mt
2014
2014
  }, Symbol.toStringTag, { value: "Module" })), Qe = ({ fields: t, control: e }) => t.map(({ type: r, args: n }) => {
2015
- const i = De[r];
2015
+ const i = Re[r];
2016
2016
  return /* @__PURE__ */ Ie(i, { ...n, key: n.name, control: e });
2017
2017
  });
2018
2018
  class Hn {
@@ -2088,7 +2088,7 @@ class Hn {
2088
2088
  }
2089
2089
  }
2090
2090
  const Ln = typeof window < "u";
2091
- class oi extends Hn {
2091
+ class ui extends Hn {
2092
2092
  constructor(e) {
2093
2093
  super(e);
2094
2094
  }
@@ -2102,19 +2102,19 @@ const ae = ({ html: t, as: e, ...r }) => {
2102
2102
  }, Qn = (t, e) => t.enabled ? e.map((r) => ({
2103
2103
  name: r.args.name,
2104
2104
  ...r.args.progress
2105
- })) : null, Vn = ["getFioSchema"], Tt = (t, e, r) => {
2105
+ })) : null, $n = ["getFioSchema"], Tt = (t, e, r) => {
2106
2106
  const n = t[e];
2107
2107
  if (_.isNil(n))
2108
2108
  throw new Error(`validation for type ${String(e)} not found`);
2109
2109
  if (!_.isFunction(n))
2110
2110
  throw new Error(`Cannot generate ${String(e)} because is not a function`);
2111
2111
  return n(r);
2112
- }, $n = (t, e) => Tt(He.base, t, e), Wn = (t, e) => Tt(He.dadata, t, e), Ve = (t) => {
2112
+ }, Vn = (t, e) => Tt(He.base, t, e), Wn = (t, e) => Tt(He.dadata, t, e), $e = (t) => {
2113
2113
  const r = ((t == null ? void 0 : t.map((n) => ({ name: n.args.name, validation: n.args.validation }))) ?? []).reduce((n, i) => {
2114
- const a = Vn.includes(i.validation.type) ? Wn(
2114
+ const a = $n.includes(i.validation.type) ? Wn(
2115
2115
  i.validation.type,
2116
2116
  i.validation.args
2117
- ) : $n(
2117
+ ) : Vn(
2118
2118
  i.validation.type,
2119
2119
  i.validation.args
2120
2120
  );
@@ -2145,7 +2145,7 @@ const ae = ({ html: t, as: e, ...r }) => {
2145
2145
  buttonGroup: u
2146
2146
  }) => {
2147
2147
  var z, v;
2148
- const { submitCallback: x } = a || {}, [m, p] = O(!1), c = Ve(t), S = Te.getZodDefaults(c), { control: y, handleSubmit: E } = _e({
2148
+ const { submitCallback: x } = a || {}, [m, p] = O(!1), c = $e(t), S = Te.getZodDefaults(c), { control: y, handleSubmit: E } = _e({
2149
2149
  schema: c,
2150
2150
  defaultValues: S,
2151
2151
  mode: "onBlur"
@@ -2248,7 +2248,7 @@ const ae = ({ html: t, as: e, ...r }) => {
2248
2248
  buttonGroup: l,
2249
2249
  ...u
2250
2250
  }) => {
2251
- const { submitCallback: x } = n ?? {}, [m, p] = O(!1), c = Ve(t), S = Te.getZodDefaults(c), { control: y, handleSubmit: E } = _e({
2251
+ const { submitCallback: x } = n ?? {}, [m, p] = O(!1), c = $e(t), S = Te.getZodDefaults(c), { control: y, handleSubmit: E } = _e({
2252
2252
  schema: c,
2253
2253
  defaultValues: S,
2254
2254
  mode: "onBlur"
@@ -2342,7 +2342,7 @@ const ae = ({ html: t, as: e, ...r }) => {
2342
2342
  text: "Вернуться на главную"
2343
2343
  }
2344
2344
  }
2345
- }), ii = ({ status: t, navigationFn: e }) => /* @__PURE__ */ o.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ o.jsx(F, { 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: [
2345
+ }), mi = ({ status: t, navigationFn: e }) => /* @__PURE__ */ o.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ o.jsx(F, { 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: [
2346
2346
  /* @__PURE__ */ o.jsx(
2347
2347
  "span",
2348
2348
  {
@@ -2483,7 +2483,7 @@ const Jn = (t, e) => {
2483
2483
  var r, n;
2484
2484
  return It(
2485
2485
  /* @__PURE__ */ o.jsx(
2486
- Re.div,
2486
+ De.div,
2487
2487
  {
2488
2488
  ...e,
2489
2489
  layout: !0,
@@ -2523,7 +2523,7 @@ const Jn = (t, e) => {
2523
2523
  var x, m;
2524
2524
  const i = n && "current" in n ? n : null, a = (x = i == null ? void 0 : i.current) == null ? void 0 : x.getBoundingClientRect(), l = e && !_.isArrayEmpty(t.children), u = t.link ? _.isStringEmpty(t.link.href) ? "span" : "a" : "span";
2525
2525
  return /* @__PURE__ */ o.jsxs(
2526
- Re.div,
2526
+ De.div,
2527
2527
  {
2528
2528
  ref: n,
2529
2529
  className: d(
@@ -2720,7 +2720,7 @@ const Jn = (t, e) => {
2720
2720
  return _.isUndefined(a) || _.isArray(a) ? [] : ((m = t.find((p) => p.title === a.value)) == null ? void 0 : m.children) ?? [];
2721
2721
  }, [a, t]);
2722
2722
  return /* @__PURE__ */ o.jsxs(
2723
- Re.div,
2723
+ De.div,
2724
2724
  {
2725
2725
  ...n,
2726
2726
  className: d(
@@ -2824,7 +2824,7 @@ const Jn = (t, e) => {
2824
2824
  default:
2825
2825
  return Pt(t, Number(e));
2826
2826
  }
2827
- }, go = (t) => Object.values(t).reduce((r, n) => r.merge(Ve(n.fields)), Le({})), bo = (t, e) => (t.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in e)).length > 0 ? "" : t, st = (t, e) => {
2827
+ }, go = (t) => Object.values(t).reduce((r, n) => r.merge($e(n.fields)), Le({})), bo = (t, e) => (t.match(/[a-zA-Z_$][a-zA-Z0-9_$]*/g) || []).filter((i) => !(i in e)).length > 0 ? "" : t, st = (t, e) => {
2828
2828
  const r = Object.entries(e).map(([x, m]) => [x, _.isNil(m) ? "1" : m]), n = r.map(([x]) => x), i = r.map(([, x]) => x), a = bo(t, Object.fromEntries(r)), u = new Function(...n, `return ${a};`)(...i.map(Number));
2829
2829
  return Number.isNaN(Number(u)) ? "0" : u.toString();
2830
2830
  }, jo = (t, e) => t.map((r) => ({
@@ -2911,7 +2911,7 @@ const Jn = (t, e) => {
2911
2911
  classes: m == null ? void 0 : m.calculatorInfoFooter
2912
2912
  }
2913
2913
  )
2914
- ] }), Io = 2e4, Dt = ({
2914
+ ] }), Io = 2e4, Rt = ({
2915
2915
  slidersGroupConfig: t,
2916
2916
  additionalSliderGroupConfig: e
2917
2917
  }) => {
@@ -2973,7 +2973,7 @@ const Jn = (t, e) => {
2973
2973
  additionalSliderGroupConfig: e,
2974
2974
  classes: r
2975
2975
  }) => {
2976
- const { control: n } = Oe(), { sliderVisible: i, additionalSliderMax: a, onCheckedChange: l } = Dt({
2976
+ const { control: n } = Oe(), { sliderVisible: i, additionalSliderMax: a, onCheckedChange: l } = Rt({
2977
2977
  slidersGroupConfig: t,
2978
2978
  additionalSliderGroupConfig: e
2979
2979
  });
@@ -2983,7 +2983,7 @@ const Jn = (t, e) => {
2983
2983
  /* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l", children: "Хочу получить деньги дополнительно" })
2984
2984
  ] }),
2985
2985
  i && /* @__PURE__ */ o.jsx(
2986
- De.SliderControl,
2986
+ Re.SliderControl,
2987
2987
  {
2988
2988
  ...e.args,
2989
2989
  control: n,
@@ -2996,7 +2996,7 @@ const Jn = (t, e) => {
2996
2996
  ] });
2997
2997
  }, To = ({ modalConfig: t, fieldsGroup: e, classes: r }) => {
2998
2998
  var a;
2999
- const { sliderSumExist: n, sliderSumCorrectType: i } = Dt({
2999
+ const { sliderSumExist: n, sliderSumCorrectType: i } = Rt({
3000
3000
  slidersGroupConfig: e.slidersGroupConfig,
3001
3001
  additionalSliderGroupConfig: e.additionalSliderGroupConfig
3002
3002
  });
@@ -3136,11 +3136,11 @@ const Jn = (t, e) => {
3136
3136
  ] }) })
3137
3137
  }
3138
3138
  );
3139
- }, Do = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3139
+ }, Ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3140
3140
  __proto__: null,
3141
3141
  InfoBlock: ft,
3142
3142
  default: ft
3143
- }, Symbol.toStringTag, { value: "Module" })), Ro = (t) => {
3143
+ }, Symbol.toStringTag, { value: "Module" })), Do = (t) => {
3144
3144
  const [e, r] = O(0), [n, i] = O(0);
3145
3145
  return {
3146
3146
  selectedRating: e,
@@ -3175,75 +3175,87 @@ const Jn = (t, e) => {
3175
3175
  children: /* @__PURE__ */ o.jsx(f, { name: "general/heart", className: "size-7 fill-transparent stroke-white stroke-[3px]" })
3176
3176
  }
3177
3177
  );
3178
- }), Ho = () => /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col items-center gap-4 text-center", children: [
3178
+ }), Ho = "Спасибо за оценку!", Lo = ({ title: t = Ho }) => /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col items-center gap-4 text-center", children: [
3179
3179
  /* @__PURE__ */ o.jsx(f, { name: "status/succesCircle" }),
3180
- /* @__PURE__ */ o.jsx("p", { className: "desk-body-medium-l", children: "Спасибо за оценку!" })
3181
- ] }), Lo = ({ submitCallback: t, rating: e, setFormStep: r }) => {
3182
- const { control: n, handleSubmit: i } = _e({
3180
+ /* @__PURE__ */ o.jsx("p", { className: "desk-body-medium-l", children: t })
3181
+ ] }), Qo = "Расскажите о впечатлениях", $o = "Вам нравится сайт банка? <br /> У вас есть предложения по его улучшению?", Vo = ({
3182
+ submitCallback: t,
3183
+ rating: e,
3184
+ setFormStep: r,
3185
+ title: n = Qo,
3186
+ subtitle: i = $o
3187
+ }) => {
3188
+ const { control: a, handleSubmit: l } = _e({
3183
3189
  mode: "onBlur",
3184
3190
  schema: gt,
3185
3191
  defaultValues: Te.getZodDefaults(gt)
3186
- }), a = async (l) => {
3187
- var u;
3192
+ }), u = async (x) => {
3193
+ var m;
3188
3194
  t && (await t({
3189
3195
  rating: e,
3190
- pageUrl: (u = window == null ? void 0 : window.location) == null ? void 0 : u.href,
3191
- ...l
3196
+ pageUrl: (m = window == null ? void 0 : window.location) == null ? void 0 : m.href,
3197
+ ...x
3192
3198
  }), r("finally"));
3193
3199
  };
3194
- return /* @__PURE__ */ o.jsxs("form", { onSubmit: i(a), className: "flex flex-col gap-4", children: [
3200
+ return /* @__PURE__ */ o.jsxs("form", { onSubmit: l(u), className: "flex flex-col gap-4", children: [
3195
3201
  /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col gap-2 text-center", children: [
3196
- /* @__PURE__ */ o.jsx("p", { className: "desk-body-medium-l", children: "Расскажите о впечатлениях" }),
3197
- /* @__PURE__ */ o.jsxs("p", { className: "desk-body-regular-l", children: [
3198
- "Вам нравится сайт банка?",
3199
- /* @__PURE__ */ o.jsx("br", {}),
3200
- " У вас есть предложения по его улучшению?"
3201
- ] })
3202
+ /* @__PURE__ */ o.jsx("p", { className: "desk-body-medium-l", children: n }),
3203
+ /* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l", children: i })
3202
3204
  ] }),
3203
- /* @__PURE__ */ o.jsx(De.TextareaControl, { control: n, name: "review", label: "Поделитесь вашим мнением" }),
3205
+ /* @__PURE__ */ o.jsx(Re.TextareaControl, { control: a, name: "review", label: "Поделитесь вашим мнением" }),
3204
3206
  /* @__PURE__ */ o.jsx(pe, { type: "submit", size: "sm", intent: "negative", className: "w-full", children: "Отправить" })
3205
3207
  ] });
3206
- }, Qo = Array(5).fill(0), Vo = ({
3208
+ }, Wo = Array(5).fill(0), Ao = "Ваше мнение важно для нас!", Uo = "Пожалуйста, оцените работу сайта, чтобы мы сделали его еще удобнее", qo = ({
3207
3209
  handleMouseLeave: t,
3208
3210
  hoveredRatings: e,
3209
3211
  selectedRating: r,
3210
3212
  handleSelectRating: n,
3211
- handleMouseEnter: i
3213
+ handleMouseEnter: i,
3214
+ title: a = Ao,
3215
+ subtitle: l = Uo
3212
3216
  }) => /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col items-center gap-4", children: [
3213
3217
  /* @__PURE__ */ o.jsxs("div", { className: "flex flex-col gap-2 text-center", children: [
3214
- /* @__PURE__ */ o.jsx("p", { className: "desk-body-medium-l", children: "Ваше мнение важно для нас!" }),
3215
- /* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l", children: "Пожалуйста, оцените работу сайта, чтобы мы сделали его еще удобнее" })
3218
+ /* @__PURE__ */ o.jsx("p", { className: "desk-body-medium-l", children: a }),
3219
+ /* @__PURE__ */ o.jsx("p", { className: "desk-body-regular-l", children: l })
3216
3220
  ] }),
3217
- /* @__PURE__ */ o.jsx("div", { className: "flex items-center gap-2", children: Qo.map((a, l) => /* @__PURE__ */ o.jsx(
3221
+ /* @__PURE__ */ o.jsx("div", { className: "flex items-center gap-2", children: Wo.map((u, x) => /* @__PURE__ */ o.jsx(
3218
3222
  "button",
3219
3223
  {
3220
3224
  className: "size-8",
3221
- onMouseEnter: () => i(l + 1),
3225
+ onMouseEnter: () => i(x + 1),
3222
3226
  onMouseLeave: () => t(),
3223
- onClick: () => n(l + 1),
3227
+ onClick: () => n(x + 1),
3224
3228
  children: /* @__PURE__ */ o.jsx(
3225
3229
  f,
3226
3230
  {
3227
3231
  name: "general/heart",
3228
3232
  className: d("fill-[#b0c0d2] transition-colors duration-12", {
3229
- "fill-secondary-default": l < (e || r)
3233
+ "fill-secondary-default": x < (e || r)
3230
3234
  })
3231
3235
  }
3232
3236
  )
3233
3237
  },
3234
- l
3238
+ x
3235
3239
  )) })
3236
- ] }), $o = ({ formStep: t, setFormStep: e, ratingProps: r, submitCallback: n }) => {
3240
+ ] }), Ko = ({ formStep: t, setFormStep: e, ratingProps: r, ...n }) => {
3237
3241
  switch (t) {
3238
3242
  case "rating":
3239
- return /* @__PURE__ */ o.jsx(Vo, { ...r });
3243
+ return /* @__PURE__ */ o.jsx(qo, { ...r, ...n.selectRatingStepProps });
3240
3244
  case "review":
3241
- return /* @__PURE__ */ o.jsx(Lo, { submitCallback: n, setFormStep: e, rating: r.selectedRating });
3245
+ return /* @__PURE__ */ o.jsx(
3246
+ Vo,
3247
+ {
3248
+ submitCallback: n.submitCallback,
3249
+ setFormStep: e,
3250
+ rating: r.selectedRating,
3251
+ ...n.userReviewStepProps
3252
+ }
3253
+ );
3242
3254
  case "finally":
3243
- return /* @__PURE__ */ o.jsx(Ho, {});
3255
+ return /* @__PURE__ */ o.jsx(Lo, { ...n.successStepProps });
3244
3256
  }
3245
- }, bt = ({ submitCallback: t }) => {
3246
- const [e, r] = O("rating"), n = Ro(r);
3257
+ }, bt = (t) => {
3258
+ const [e, r] = O("rating"), n = Do(r);
3247
3259
  return /* @__PURE__ */ o.jsx("div", { className: "fixed right-5 top-[80%] z-[1000]", children: /* @__PURE__ */ o.jsx(
3248
3260
  Ce,
3249
3261
  {
@@ -3256,18 +3268,18 @@ const Jn = (t, e) => {
3256
3268
  content: "max-w-[330px] w-[330px] p-6"
3257
3269
  },
3258
3270
  triggerElement: /* @__PURE__ */ o.jsx(zo, {}),
3259
- children: /* @__PURE__ */ o.jsx("div", { className: "w-full", children: $o({ formStep: e, setFormStep: r, ratingProps: n, submitCallback: t }) })
3271
+ children: /* @__PURE__ */ o.jsx("div", { className: "w-full", children: Ko({ formStep: e, setFormStep: r, ratingProps: n, ...t }) })
3260
3272
  }
3261
3273
  ) });
3262
- }, Wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3274
+ }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3263
3275
  __proto__: null,
3264
3276
  UserFeedback: bt,
3265
3277
  default: bt
3266
3278
  }, Symbol.toStringTag, { value: "Module" }));
3267
3279
  export {
3268
- ni as AuthProvider,
3280
+ li as AuthProvider,
3269
3281
  rt as Banner,
3270
- $r as BannerWithSeparateImg,
3282
+ Vr as BannerWithSeparateImg,
3271
3283
  et as Benefit,
3272
3284
  Xn as Breadcrumbs,
3273
3285
  ee as ButtonWithHandlers,
@@ -3275,10 +3287,10 @@ export {
3275
3287
  Bo as CalculatorView,
3276
3288
  xt as DynamicForm,
3277
3289
  ht as DynamicFormDialog,
3278
- ii as FallbacksView,
3290
+ mi as FallbacksView,
3279
3291
  Qe as FieldMapper,
3280
3292
  nt as Footer,
3281
- oi as HTMLParser,
3293
+ ui as HTMLParser,
3282
3294
  ae as HTMLRenderer,
3283
3295
  tt as Header,
3284
3296
  ft as InfoBlock,