@alma/widgets 4.0.10 → 4.0.12

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/widgets.js CHANGED
@@ -566,7 +566,7 @@ function Zt(e, t, n) {
566
566
  }
567
567
  return a.__N || a.__;
568
568
  }
569
- function K(e, t) {
569
+ function X(e, t) {
570
570
  var n = qe(Pe++, 3);
571
571
  !j.__s && Bn(n.__H, t) && (n.__ = e, n.u = t, $.__H.__h.push(n));
572
572
  }
@@ -574,12 +574,12 @@ function it(e, t) {
574
574
  var n = qe(Pe++, 4);
575
575
  !j.__s && Bn(n.__H, t) && (n.__ = e, n.u = t, $.__h.push(n));
576
576
  }
577
- function ke(e) {
578
- return tt = 5, De(function() {
577
+ function De(e) {
578
+ return tt = 5, ke(function() {
579
579
  return { current: e };
580
580
  }, []);
581
581
  }
582
- function Dn(e, t, n) {
582
+ function kn(e, t, n) {
583
583
  tt = 6, it(function() {
584
584
  if (typeof e == "function") {
585
585
  var a = e(t());
@@ -592,12 +592,12 @@ function Dn(e, t, n) {
592
592
  };
593
593
  }, n == null ? n : n.concat(e));
594
594
  }
595
- function De(e, t) {
595
+ function ke(e, t) {
596
596
  var n = qe(Pe++, 7);
597
597
  return Bn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
598
598
  }
599
599
  function _t(e, t) {
600
- return tt = 8, De(function() {
600
+ return tt = 8, ke(function() {
601
601
  return e;
602
602
  }, t);
603
603
  }
@@ -605,7 +605,7 @@ function St(e) {
605
605
  var t = $.context[e.__c], n = qe(Pe++, 9);
606
606
  return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub($)), t.props.value) : e.__;
607
607
  }
608
- function kn(e, t) {
608
+ function Dn(e, t) {
609
609
  j.useDebugValue && j.useDebugValue(t ? t(e) : e);
610
610
  }
611
611
  function fo(e) {
@@ -707,7 +707,7 @@ function Un(e, t) {
707
707
  var n = t(), a = Q({ t: { __: n, u: t } }), r = a[0].t, i = a[1];
708
708
  return it(function() {
709
709
  r.__ = n, r.u = t, Qt(r) && i({ t: r });
710
- }, [e, n, t]), K(function() {
710
+ }, [e, n, t]), X(function() {
711
711
  return Qt(r) && i({ t: r }), e(function() {
712
712
  Qt(r) && i({ t: r });
713
713
  });
@@ -783,15 +783,15 @@ function Hr(e, t, n) {
783
783
  return Hr(a, t, n);
784
784
  })), e;
785
785
  }
786
- function Dr(e, t, n) {
786
+ function kr(e, t, n) {
787
787
  return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(a) {
788
- return Dr(a, t, n);
788
+ return kr(a, t, n);
789
789
  }), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
790
790
  }
791
791
  function mt() {
792
792
  this.__u = 0, this.o = null, this.__b = null;
793
793
  }
794
- function kr(e) {
794
+ function Dr(e) {
795
795
  var t = e.__.__c;
796
796
  return t && t.__a && t.__a(e);
797
797
  }
@@ -817,7 +817,7 @@ M.unmount = function(e) {
817
817
  }, (mt.prototype = new Ee()).__c = function(e, t) {
818
818
  var n = t.__c, a = this;
819
819
  a.o == null && (a.o = []), a.o.push(n);
820
- var r = kr(a.__v), i = !1, o = function() {
820
+ var r = Dr(a.__v), i = !1, o = function() {
821
821
  i || (i = !0, n.__R = null, r ? r(s) : s());
822
822
  };
823
823
  n.__R = o;
@@ -825,7 +825,7 @@ M.unmount = function(e) {
825
825
  if (!--a.__u) {
826
826
  if (a.state.__a) {
827
827
  var l = a.state.__a;
828
- a.__v.__k[0] = Dr(l, l.__c.__P, l.__c.__O);
828
+ a.__v.__k[0] = kr(l, l.__c.__P, l.__c.__O);
829
829
  }
830
830
  var u;
831
831
  for (a.setState({ __a: a.__b = null }); u = a.o.pop(); ) u.forceUpdate();
@@ -876,7 +876,7 @@ function Br(e, t) {
876
876
  return n.containerInfo = t, n;
877
877
  }
878
878
  (Ye.prototype = new Ee()).__a = function(e) {
879
- var t = this, n = kr(t.__v), a = t.l.get(e);
879
+ var t = this, n = Dr(t.__v), a = t.l.get(e);
880
880
  return a[0]++, function(r) {
881
881
  var i = function() {
882
882
  t.props.revealOrder ? (a.push(r), Sa(t, e, a)) : r();
@@ -955,7 +955,7 @@ M.diffed = function(e) {
955
955
  };
956
956
  var Gr = { ReactCurrentDispatcher: { current: { readContext: function(e) {
957
957
  return qn.__n[e.__c].props.value;
958
- }, useCallback: _t, useContext: St, useDebugValue: kn, useDeferredValue: Gn, useEffect: K, useId: Fn, useImperativeHandle: Dn, useInsertionEffect: Wn, useLayoutEffect: it, useMemo: De, useReducer: Zt, useRef: ke, useState: Q, useSyncExternalStore: Un, useTransition: zn } } }, Mo = "18.3.1";
958
+ }, useCallback: _t, useContext: St, useDebugValue: Dn, useDeferredValue: Gn, useEffect: X, useId: Fn, useImperativeHandle: kn, useInsertionEffect: Wn, useLayoutEffect: it, useMemo: ke, useReducer: Zt, useRef: De, useState: Q, useSyncExternalStore: Un, useTransition: zn } } }, Mo = "18.3.1";
959
959
  function zr(e) {
960
960
  return de.bind(null, e);
961
961
  }
@@ -981,7 +981,7 @@ var Zr = function(e, t) {
981
981
  return e(t);
982
982
  }, Xr = function(e, t) {
983
983
  return e(t);
984
- }, Kr = pe, Jr = Tt, f = { useState: Q, useId: Fn, useReducer: Zt, useEffect: K, useLayoutEffect: it, useInsertionEffect: Wn, useTransition: zn, useDeferredValue: Gn, useSyncExternalStore: Un, startTransition: $n, useRef: ke, useImperativeHandle: Dn, useMemo: De, useCallback: _t, useContext: St, useDebugValue: kn, version: "18.3.1", Children: At, render: Vn, hydrate: $r, unmountComponentAtNode: Zn, createPortal: Br, createElement: de, createContext: yt, createFactory: zr, cloneElement: Vr, createRef: Cr, Fragment: pe, isValidElement: Tt, isElement: Jr, isFragment: Wr, isMemo: jr, findDOMNode: qr, Component: Ee, PureComponent: vt, memo: jn, forwardRef: Lr, flushSync: Xr, unstable_batchedUpdates: Zr, StrictMode: Kr, Suspense: mt, SuspenseList: Ye, lazy: Fr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Gr };
984
+ }, Kr = pe, Jr = Tt, f = { useState: Q, useId: Fn, useReducer: Zt, useEffect: X, useLayoutEffect: it, useInsertionEffect: Wn, useTransition: zn, useDeferredValue: Gn, useSyncExternalStore: Un, startTransition: $n, useRef: De, useImperativeHandle: kn, useMemo: ke, useCallback: _t, useContext: St, useDebugValue: Dn, version: "18.3.1", Children: At, render: Vn, hydrate: $r, unmountComponentAtNode: Zn, createPortal: Br, createElement: de, createContext: yt, createFactory: zr, cloneElement: Vr, createRef: Cr, Fragment: pe, isValidElement: Tt, isElement: Jr, isFragment: Wr, isMemo: jr, findDOMNode: qr, Component: Ee, PureComponent: vt, memo: jn, forwardRef: Lr, flushSync: Xr, unstable_batchedUpdates: Zr, StrictMode: Kr, Suspense: mt, SuspenseList: Ye, lazy: Fr, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Gr };
985
985
  const No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
986
986
  __proto__: null,
987
987
  Children: At,
@@ -1015,17 +1015,17 @@ const No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1015
1015
  unstable_batchedUpdates: Zr,
1016
1016
  useCallback: _t,
1017
1017
  useContext: St,
1018
- useDebugValue: kn,
1018
+ useDebugValue: Dn,
1019
1019
  useDeferredValue: Gn,
1020
- useEffect: K,
1020
+ useEffect: X,
1021
1021
  useErrorBoundary: fo,
1022
1022
  useId: Fn,
1023
- useImperativeHandle: Dn,
1023
+ useImperativeHandle: kn,
1024
1024
  useInsertionEffect: Wn,
1025
1025
  useLayoutEffect: it,
1026
- useMemo: De,
1026
+ useMemo: ke,
1027
1027
  useReducer: Zt,
1028
- useRef: ke,
1028
+ useRef: De,
1029
1029
  useState: Q,
1030
1030
  useSyncExternalStore: Un,
1031
1031
  useTransition: zn,
@@ -1082,7 +1082,7 @@ function ce(e, t, n) {
1082
1082
  return e.concat(i || Array.prototype.slice.call(t));
1083
1083
  }
1084
1084
  function se(e, t) {
1085
- var n = t && t.cache ? t.cache : Do, a = t && t.serializer ? t.serializer : Ho, r = t && t.strategy ? t.strategy : Ro;
1085
+ var n = t && t.cache ? t.cache : ko, a = t && t.serializer ? t.serializer : Ho, r = t && t.strategy ? t.strategy : Ro;
1086
1086
  return r(e, {
1087
1087
  cache: n,
1088
1088
  serializer: a
@@ -1121,7 +1121,7 @@ Xn.prototype.get = function(e) {
1121
1121
  Xn.prototype.set = function(e, t) {
1122
1122
  this.cache[e] = t;
1123
1123
  };
1124
- var Do = {
1124
+ var ko = {
1125
1125
  create: function() {
1126
1126
  return new Xn();
1127
1127
  }
@@ -1182,7 +1182,7 @@ var at;
1182
1182
  function Na(e) {
1183
1183
  return e.type === G.literal;
1184
1184
  }
1185
- function ko(e) {
1185
+ function Do(e) {
1186
1186
  return e.type === G.argument;
1187
1187
  }
1188
1188
  function ti(e) {
@@ -1515,7 +1515,7 @@ function Vo(e) {
1515
1515
  }
1516
1516
  return t;
1517
1517
  }
1518
- var Dt = {
1518
+ var kt = {
1519
1519
  "001": [
1520
1520
  "H",
1521
1521
  "h"
@@ -2964,7 +2964,7 @@ function Zo(e) {
2964
2964
  }
2965
2965
  var n = e.language, a;
2966
2966
  n !== "root" && (a = e.maximize().region);
2967
- var r = Dt[a || ""] || Dt[n || ""] || Dt["".concat(n, "-001")] || Dt["001"];
2967
+ var r = kt[a || ""] || kt[n || ""] || kt["".concat(n, "-001")] || kt["001"];
2968
2968
  return r[0];
2969
2969
  }
2970
2970
  var en, Xo = new RegExp("^".concat(li.source, "*")), Ko = new RegExp("".concat(li.source, "*$"));
@@ -3054,11 +3054,11 @@ function di(e, t) {
3054
3054
  }
3055
3055
  var bn;
3056
3056
  if (_n) {
3057
- var Da = di("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3057
+ var ka = di("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3058
3058
  bn = function(t, n) {
3059
3059
  var a;
3060
- Da.lastIndex = n;
3061
- var r = Da.exec(t);
3060
+ ka.lastIndex = n;
3061
+ var r = ka.exec(t);
3062
3062
  return (a = r[1]) !== null && a !== void 0 ? a : "";
3063
3063
  };
3064
3064
  } else
@@ -3572,7 +3572,7 @@ var Fe = (
3572
3572
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3573
3573
  }, t;
3574
3574
  }(Error)
3575
- ), ka = (
3575
+ ), Da = (
3576
3576
  /** @class */
3577
3577
  function(e) {
3578
3578
  _e(t, e);
@@ -3640,7 +3640,7 @@ function zt(e, t, n, a, r, i, o) {
3640
3640
  if (!(r && c in r))
3641
3641
  throw new ps(c, o);
3642
3642
  var d = r[c];
3643
- if (ko(m)) {
3643
+ if (Do(m)) {
3644
3644
  (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
3645
3645
  type: typeof d == "string" ? ie.literal : ie.object,
3646
3646
  value: d
@@ -3688,7 +3688,7 @@ function zt(e, t, n, a, r, i, o) {
3688
3688
  if (ri(m)) {
3689
3689
  var E = m.options[d] || m.options.other;
3690
3690
  if (!E)
3691
- throw new ka(m.value, d, Object.keys(m.options), o);
3691
+ throw new Da(m.value, d, Object.keys(m.options), o);
3692
3692
  s.push.apply(s, zt(E.value, t, n, a, r));
3693
3693
  continue;
3694
3694
  }
@@ -3703,7 +3703,7 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
3703
3703
  E = m.options[N] || m.options.other;
3704
3704
  }
3705
3705
  if (!E)
3706
- throw new ka(m.value, d, Object.keys(m.options), o);
3706
+ throw new Da(m.value, d, Object.keys(m.options), o);
3707
3707
  s.push.apply(s, zt(E.value, t, n, a, r, d - (m.offset || 0)));
3708
3708
  continue;
3709
3709
  }
@@ -4073,7 +4073,7 @@ function Kn(e, t, n, a) {
4073
4073
  return i;
4074
4074
  a(new vs("No ".concat(t, " format named: ").concat(n)));
4075
4075
  }
4076
- function kt(e, t) {
4076
+ function Dt(e, t) {
4077
4077
  return Object.keys(e).reduce(function(n, a) {
4078
4078
  return n[a] = C({ timeZone: t }, e[a]), n;
4079
4079
  }, {});
@@ -4088,7 +4088,7 @@ function Ua(e, t) {
4088
4088
  if (!t)
4089
4089
  return e;
4090
4090
  var n = gi.formats;
4091
- return C(C(C({}, n), e), { date: Ba(kt(n.date, t), kt(e.date || {}, t)), time: Ba(kt(n.time, t), kt(e.time || {}, t)) });
4091
+ return C(C(C({}, n), e), { date: Ba(Dt(n.date, t), Dt(e.date || {}, t)), time: Ba(Dt(n.time, t), Dt(e.time || {}, t)) });
4092
4092
  }
4093
4093
  var Cn = function(e, t, n, a, r) {
4094
4094
  var i = e.locale, o = e.formats, s = e.messages, l = e.defaultLocale, u = e.defaultFormats, m = e.fallbackOnEmptyString, c = e.onError, d = e.timeZone, p = e.defaultRichTextElements;
@@ -4271,7 +4271,7 @@ Try polyfilling it using "@formatjs/intl-listformat"
4271
4271
  return n;
4272
4272
  }
4273
4273
  var Hs = ["type"];
4274
- function Ds(e, t, n, a) {
4274
+ function ks(e, t, n, a) {
4275
4275
  var r = e.locale, i = e.onError;
4276
4276
  a === void 0 && (a = {}), Intl.PluralRules || i(new Fe(`Intl.PluralRules is not available in this environment.
4277
4277
  Try polyfilling it using "@formatjs/intl-pluralrules"
@@ -4284,11 +4284,11 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
4284
4284
  }
4285
4285
  return "other";
4286
4286
  }
4287
- var ks = ["numeric", "style"];
4287
+ var Ds = ["numeric", "style"];
4288
4288
  function Fs(e, t, n) {
4289
4289
  var a = e.locale, r = e.formats, i = e.onError;
4290
4290
  n === void 0 && (n = {});
4291
- var o = n.format, s = !!o && Kn(r, "relative", o, i) || {}, l = Ze(n, ks, s);
4291
+ var o = n.format, s = !!o && Kn(r, "relative", o, i) || {}, l = Ze(n, Ds, s);
4292
4292
  return t(a, l);
4293
4293
  }
4294
4294
  function Bs(e, t, n, a, r) {
@@ -4375,7 +4375,7 @@ function js(e, t) {
4375
4375
  formatTime: Ts.bind(null, a, n.getDateTimeFormat),
4376
4376
  formatDateTimeRange: Is.bind(null, a, n.getDateTimeFormat),
4377
4377
  formatTimeToParts: Ms.bind(null, a, n.getDateTimeFormat),
4378
- formatPlural: Ds.bind(null, a, n.getPluralRules),
4378
+ formatPlural: ks.bind(null, a, n.getPluralRules),
4379
4379
  // @ts-expect-error TODO: will get to this later
4380
4380
  formatMessage: Cn.bind(null, a, n),
4381
4381
  // @ts-expect-error TODO: will get to this later
@@ -4431,7 +4431,7 @@ function Si(e) {
4431
4431
  });
4432
4432
  }), n;
4433
4433
  }
4434
- var Ai = { exports: {} }, k = {};
4434
+ var Ai = { exports: {} }, D = {};
4435
4435
  /** @license React v16.13.1
4436
4436
  * react-is.production.min.js
4437
4437
  *
@@ -4442,7 +4442,7 @@ var Ai = { exports: {} }, k = {};
4442
4442
  */
4443
4443
  var Ga;
4444
4444
  function qs() {
4445
- if (Ga) return k;
4445
+ if (Ga) return D;
4446
4446
  Ga = 1;
4447
4447
  var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, a = e ? Symbol.for("react.fragment") : 60107, r = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, o = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, d = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, v = e ? Symbol.for("react.block") : 60121, b = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
4448
4448
  function E(y) {
@@ -4478,33 +4478,33 @@ function qs() {
4478
4478
  function N(y) {
4479
4479
  return E(y) === u;
4480
4480
  }
4481
- return k.AsyncMode = l, k.ConcurrentMode = u, k.ContextConsumer = s, k.ContextProvider = o, k.Element = t, k.ForwardRef = m, k.Fragment = a, k.Lazy = g, k.Memo = p, k.Portal = n, k.Profiler = i, k.StrictMode = r, k.Suspense = c, k.isAsyncMode = function(y) {
4481
+ return D.AsyncMode = l, D.ConcurrentMode = u, D.ContextConsumer = s, D.ContextProvider = o, D.Element = t, D.ForwardRef = m, D.Fragment = a, D.Lazy = g, D.Memo = p, D.Portal = n, D.Profiler = i, D.StrictMode = r, D.Suspense = c, D.isAsyncMode = function(y) {
4482
4482
  return N(y) || E(y) === l;
4483
- }, k.isConcurrentMode = N, k.isContextConsumer = function(y) {
4483
+ }, D.isConcurrentMode = N, D.isContextConsumer = function(y) {
4484
4484
  return E(y) === s;
4485
- }, k.isContextProvider = function(y) {
4485
+ }, D.isContextProvider = function(y) {
4486
4486
  return E(y) === o;
4487
- }, k.isElement = function(y) {
4487
+ }, D.isElement = function(y) {
4488
4488
  return typeof y == "object" && y !== null && y.$$typeof === t;
4489
- }, k.isForwardRef = function(y) {
4489
+ }, D.isForwardRef = function(y) {
4490
4490
  return E(y) === m;
4491
- }, k.isFragment = function(y) {
4491
+ }, D.isFragment = function(y) {
4492
4492
  return E(y) === a;
4493
- }, k.isLazy = function(y) {
4493
+ }, D.isLazy = function(y) {
4494
4494
  return E(y) === g;
4495
- }, k.isMemo = function(y) {
4495
+ }, D.isMemo = function(y) {
4496
4496
  return E(y) === p;
4497
- }, k.isPortal = function(y) {
4497
+ }, D.isPortal = function(y) {
4498
4498
  return E(y) === n;
4499
- }, k.isProfiler = function(y) {
4499
+ }, D.isProfiler = function(y) {
4500
4500
  return E(y) === i;
4501
- }, k.isStrictMode = function(y) {
4501
+ }, D.isStrictMode = function(y) {
4502
4502
  return E(y) === r;
4503
- }, k.isSuspense = function(y) {
4503
+ }, D.isSuspense = function(y) {
4504
4504
  return E(y) === c;
4505
- }, k.isValidElementType = function(y) {
4505
+ }, D.isValidElementType = function(y) {
4506
4506
  return typeof y == "string" || typeof y == "function" || y === a || y === u || y === i || y === r || y === c || y === d || typeof y == "object" && y !== null && (y.$$typeof === g || y.$$typeof === p || y.$$typeof === o || y.$$typeof === s || y.$$typeof === m || y.$$typeof === b || y.$$typeof === _ || y.$$typeof === x || y.$$typeof === v);
4507
- }, k.typeOf = E, k;
4507
+ }, D.typeOf = E, D;
4508
4508
  }
4509
4509
  Ai.exports = qs();
4510
4510
  var Zs = Ai.exports, Ti = Zs, Xs = {
@@ -5068,7 +5068,7 @@ const nl = {
5068
5068
  ),
5069
5069
  0
5070
5070
  ).toString().replace("-", "A"), ml = (e) => Date.now() - e >= 36e5;
5071
- var fl = { BUILD_VERSION: "v4.0.10" };
5071
+ var fl = { BUILD_VERSION: "v4.0.12" };
5072
5072
  const dl = () => ({
5073
5073
  setCache: (i, o) => {
5074
5074
  const s = Date.now();
@@ -5128,7 +5128,7 @@ const hl = (e, t) => e.eligible && t ? e.purchase_amount >= (t == null ? void 0
5128
5128
  }) : e.filter(
5129
5129
  (n) => !(n.installments_count === 1 && n.deferred_days === 0 && n.deferred_months === 0)
5130
5130
  );
5131
- var _l = { BUILD_VERSION: "v4.0.10" };
5131
+ var _l = { BUILD_VERSION: "v4.0.12" };
5132
5132
  const Pi = (e, { domain: t, merchantId: n }, a, r, i) => {
5133
5133
  var E, N;
5134
5134
  const [o, s] = Q([]), [l, u] = Q(ue.PENDING), { getCache: m, setCache: c, createKey: d, clearCache: p } = dl(), g = d({
@@ -5143,7 +5143,7 @@ const Pi = (e, { domain: t, merchantId: n }, a, r, i) => {
5143
5143
  deferred_days: y == null ? void 0 : y.deferredDays,
5144
5144
  deferred_months: y == null ? void 0 : y.deferredMonths
5145
5145
  }));
5146
- return K(() => {
5146
+ return X(() => {
5147
5147
  if (l === ue.PENDING) {
5148
5148
  let y = null;
5149
5149
  r && (y = {
@@ -5390,37 +5390,37 @@ function Hl() {
5390
5390
  }
5391
5391
  Hi.exports = Hl()();
5392
5392
  var Qn = Hi.exports;
5393
- const D = /* @__PURE__ */ wt(Qn), oe = D.oneOfType([D.string, D.number]), Di = {
5394
- all: D.bool,
5395
- grid: D.bool,
5396
- aural: D.bool,
5397
- braille: D.bool,
5398
- handheld: D.bool,
5399
- print: D.bool,
5400
- projection: D.bool,
5401
- screen: D.bool,
5402
- tty: D.bool,
5403
- tv: D.bool,
5404
- embossed: D.bool
5405
- }, Dl = {
5406
- orientation: D.oneOf(["portrait", "landscape"]),
5407
- scan: D.oneOf(["progressive", "interlace"]),
5408
- aspectRatio: D.string,
5409
- deviceAspectRatio: D.string,
5393
+ const k = /* @__PURE__ */ wt(Qn), oe = k.oneOfType([k.string, k.number]), ki = {
5394
+ all: k.bool,
5395
+ grid: k.bool,
5396
+ aural: k.bool,
5397
+ braille: k.bool,
5398
+ handheld: k.bool,
5399
+ print: k.bool,
5400
+ projection: k.bool,
5401
+ screen: k.bool,
5402
+ tty: k.bool,
5403
+ tv: k.bool,
5404
+ embossed: k.bool
5405
+ }, kl = {
5406
+ orientation: k.oneOf(["portrait", "landscape"]),
5407
+ scan: k.oneOf(["progressive", "interlace"]),
5408
+ aspectRatio: k.string,
5409
+ deviceAspectRatio: k.string,
5410
5410
  height: oe,
5411
5411
  deviceHeight: oe,
5412
5412
  width: oe,
5413
5413
  deviceWidth: oe,
5414
- color: D.bool,
5415
- colorIndex: D.bool,
5416
- monochrome: D.bool,
5414
+ color: k.bool,
5415
+ colorIndex: k.bool,
5416
+ monochrome: k.bool,
5417
5417
  resolution: oe,
5418
- type: Object.keys(Di)
5419
- }, ua = Dl, { type: Ym } = ua, kl = Lt(ua, ["type"]), Fl = Ne({
5420
- minAspectRatio: D.string,
5421
- maxAspectRatio: D.string,
5422
- minDeviceAspectRatio: D.string,
5423
- maxDeviceAspectRatio: D.string,
5418
+ type: Object.keys(ki)
5419
+ }, ua = kl, { type: Jm } = ua, Dl = Lt(ua, ["type"]), Fl = Ne({
5420
+ minAspectRatio: k.string,
5421
+ maxAspectRatio: k.string,
5422
+ minDeviceAspectRatio: k.string,
5423
+ maxDeviceAspectRatio: k.string,
5424
5424
  minHeight: oe,
5425
5425
  maxHeight: oe,
5426
5426
  minDeviceHeight: oe,
@@ -5429,15 +5429,15 @@ const D = /* @__PURE__ */ wt(Qn), oe = D.oneOfType([D.string, D.number]), Di = {
5429
5429
  maxWidth: oe,
5430
5430
  minDeviceWidth: oe,
5431
5431
  maxDeviceWidth: oe,
5432
- minColor: D.number,
5433
- maxColor: D.number,
5434
- minColorIndex: D.number,
5435
- maxColorIndex: D.number,
5436
- minMonochrome: D.number,
5437
- maxMonochrome: D.number,
5432
+ minColor: k.number,
5433
+ maxColor: k.number,
5434
+ minColorIndex: k.number,
5435
+ maxColorIndex: k.number,
5436
+ minMonochrome: k.number,
5437
+ maxMonochrome: k.number,
5438
5438
  minResolution: oe,
5439
5439
  maxResolution: oe
5440
- }, kl), Bl = Ne(Ne({}, Di), Fl);
5440
+ }, Dl), Bl = Ne(Ne({}, ki), Fl);
5441
5441
  var Ul = {
5442
5442
  all: Bl
5443
5443
  };
@@ -5450,26 +5450,26 @@ const $l = (e) => `not ${e}`, Gl = (e, t) => {
5450
5450
  const a = e[n];
5451
5451
  a != null && t.push(Gl(n, a));
5452
5452
  }), zl(t);
5453
- }, jl = yt(void 0), Vl = (e) => e.query || Wl(e), Ya = (e) => e ? Object.keys(e).reduce((n, a) => (n[Li(a)] = e[a], n), {}) : void 0, ki = () => {
5454
- const e = ke(!1);
5455
- return K(() => {
5453
+ }, jl = yt(void 0), Vl = (e) => e.query || Wl(e), Ya = (e) => e ? Object.keys(e).reduce((n, a) => (n[Li(a)] = e[a], n), {}) : void 0, Di = () => {
5454
+ const e = De(!1);
5455
+ return X(() => {
5456
5456
  e.current = !0;
5457
5457
  }, []), e.current;
5458
5458
  }, ql = (e) => {
5459
5459
  const t = St(jl), n = () => Ya(e) || Ya(t), [a, r] = Q(n);
5460
- return K(() => {
5460
+ return X(() => {
5461
5461
  const i = n();
5462
5462
  Rl(a, i) || r(i);
5463
5463
  }, [e, t]), a;
5464
5464
  }, Zl = (e) => {
5465
5465
  const t = () => Vl(e), [n, a] = Q(t);
5466
- return K(() => {
5466
+ return X(() => {
5467
5467
  const r = t();
5468
5468
  n !== r && a(r);
5469
5469
  }, [e]), n;
5470
5470
  }, Xl = (e, t) => {
5471
- const n = () => Ml(e, t || {}, !!t), [a, r] = Q(n), i = ki();
5472
- return K(() => {
5471
+ const n = () => Ml(e, t || {}, !!t), [a, r] = Q(n), i = Di();
5472
+ return X(() => {
5473
5473
  if (i) {
5474
5474
  const o = n();
5475
5475
  return r(o), () => {
@@ -5479,7 +5479,7 @@ const $l = (e) => `not ${e}`, Gl = (e, t) => {
5479
5479
  }, [e, t]), a;
5480
5480
  }, Kl = (e) => {
5481
5481
  const [t, n] = Q(e.matches);
5482
- return K(() => {
5482
+ return X(() => {
5483
5483
  const a = (r) => {
5484
5484
  n(r.matches);
5485
5485
  };
@@ -5492,8 +5492,8 @@ const $l = (e) => `not ${e}`, Gl = (e, t) => {
5492
5492
  if (!r)
5493
5493
  throw new Error("Invalid or missing MediaQuery!");
5494
5494
  const i = Xl(r, a), o = Kl(i);
5495
- return ki(), K(() => {
5496
- }, [o]), K(() => () => {
5495
+ return Di(), X(() => {
5496
+ }, [o]), X(() => () => {
5497
5497
  i && i.dispose();
5498
5498
  }, []), o;
5499
5499
  };
@@ -5892,7 +5892,7 @@ var Ru = function(t, n) {
5892
5892
  a.forEach(function(r) {
5893
5893
  Ru(n, r), t.add(r);
5894
5894
  });
5895
- }, Du = function(t, n, a) {
5895
+ }, ku = function(t, n, a) {
5896
5896
  a.forEach(function(r) {
5897
5897
  Lu(n, r), n[r] === 0 && t.remove(r);
5898
5898
  });
@@ -5901,7 +5901,7 @@ ot.add = function(t, n) {
5901
5901
  return Hu(t.classList, t.nodeName.toLowerCase() == "html" ? ft : dt, n.split(" "));
5902
5902
  };
5903
5903
  ot.remove = function(t, n) {
5904
- return Du(t.classList, t.nodeName.toLowerCase() == "html" ? ft : dt, n.split(" "));
5904
+ return ku(t.classList, t.nodeName.toLowerCase() == "html" ? ft : dt, n.split(" "));
5905
5905
  };
5906
5906
  var st = {};
5907
5907
  Object.defineProperty(st, "__esModule", {
@@ -5909,13 +5909,13 @@ Object.defineProperty(st, "__esModule", {
5909
5909
  });
5910
5910
  st.log = Fu;
5911
5911
  st.resetState = Bu;
5912
- function ku(e, t) {
5912
+ function Du(e, t) {
5913
5913
  if (!(e instanceof t))
5914
5914
  throw new TypeError("Cannot call a class as a function");
5915
5915
  }
5916
5916
  var zi = function e() {
5917
5917
  var t = this;
5918
- ku(this, e), this.register = function(n) {
5918
+ Du(this, e), this.register = function(n) {
5919
5919
  t.openInstances.indexOf(n) === -1 && (t.openInstances.push(n), t.emit("register"));
5920
5920
  }, this.deregister = function(n) {
5921
5921
  var a = t.openInstances.indexOf(n);
@@ -6043,8 +6043,8 @@ $u.default.subscribe(ju);
6043
6043
  }, h.setContentRef = function(S) {
6044
6044
  h.content = S, h.props.contentRef && h.props.contentRef(S);
6045
6045
  }, h.afterClose = function() {
6046
- var S = h.props, J = S.appElement, ne = S.ariaHideApp, V = S.htmlOpenClassName, O = S.bodyOpenClassName, B = S.parentSelector, q = B && B().ownerDocument || document;
6047
- O && v.remove(q.body, O), V && v.remove(q.getElementsByTagName("html")[0], V), ne && U > 0 && (U -= 1, U === 0 && p.show(J)), h.props.shouldFocusAfterRender && (h.props.shouldReturnFocusAfterClose ? (u.returnFocus(h.props.preventScroll), u.teardownScopedFocus()) : u.popWithoutFocus()), h.props.onAfterClose && h.props.onAfterClose(), E.default.deregister(h);
6046
+ var S = h.props, K = S.appElement, ne = S.ariaHideApp, V = S.htmlOpenClassName, O = S.bodyOpenClassName, B = S.parentSelector, q = B && B().ownerDocument || document;
6047
+ O && v.remove(q.body, O), V && v.remove(q.getElementsByTagName("html")[0], V), ne && U > 0 && (U -= 1, U === 0 && p.show(K)), h.props.shouldFocusAfterRender && (h.props.shouldReturnFocusAfterClose ? (u.returnFocus(h.props.preventScroll), u.teardownScopedFocus()) : u.popWithoutFocus()), h.props.onAfterClose && h.props.onAfterClose(), E.default.deregister(h);
6048
6048
  }, h.open = function() {
6049
6049
  h.beforeOpen(), h.state.afterOpen && h.state.beforeClose ? (clearTimeout(h.closeTimer), h.setState({ beforeClose: !1 })) : (h.props.shouldFocusAfterRender && (u.setupScopedFocus(h.node), u.markForFocusLater()), h.setState({ isOpen: !0 }, function() {
6050
6050
  h.openAnimationFrame = requestAnimationFrame(function() {
@@ -6090,16 +6090,16 @@ $u.default.subscribe(ju);
6090
6090
  return !h.state.isOpen && !h.state.beforeClose;
6091
6091
  }, h.contentHasFocus = function() {
6092
6092
  return document.activeElement === h.content || h.content.contains(document.activeElement);
6093
- }, h.buildClassName = function(S, J) {
6094
- var ne = (typeof J == "undefined" ? "undefined" : a(J)) === "object" ? J : {
6093
+ }, h.buildClassName = function(S, K) {
6094
+ var ne = (typeof K == "undefined" ? "undefined" : a(K)) === "object" ? K : {
6095
6095
  base: F[S],
6096
6096
  afterOpen: F[S] + "--after-open",
6097
6097
  beforeClose: F[S] + "--before-close"
6098
6098
  }, V = ne.base;
6099
- return h.state.afterOpen && (V = V + " " + ne.afterOpen), h.state.beforeClose && (V = V + " " + ne.beforeClose), typeof J == "string" && J ? V + " " + J : V;
6100
- }, h.attributesFromObject = function(S, J) {
6101
- return Object.keys(J).reduce(function(ne, V) {
6102
- return ne[S + "-" + V] = J[V], ne;
6099
+ return h.state.afterOpen && (V = V + " " + ne.afterOpen), h.state.beforeClose && (V = V + " " + ne.beforeClose), typeof K == "string" && K ? V + " " + K : V;
6100
+ }, h.attributesFromObject = function(S, K) {
6101
+ return Object.keys(K).reduce(function(ne, V) {
6102
+ return ne[S + "-" + V] = K[V], ne;
6103
6103
  }, {});
6104
6104
  }, h.state = {
6105
6105
  afterOpen: !1,
@@ -6124,14 +6124,14 @@ $u.default.subscribe(ju);
6124
6124
  }, {
6125
6125
  key: "beforeOpen",
6126
6126
  value: function() {
6127
- var h = this.props, S = h.appElement, J = h.ariaHideApp, ne = h.htmlOpenClassName, V = h.bodyOpenClassName, O = h.parentSelector, B = O && O().ownerDocument || document;
6128
- V && v.add(B.body, V), ne && v.add(B.getElementsByTagName("html")[0], ne), J && (U += 1, p.hide(S)), E.default.register(this);
6127
+ var h = this.props, S = h.appElement, K = h.ariaHideApp, ne = h.htmlOpenClassName, V = h.bodyOpenClassName, O = h.parentSelector, B = O && O().ownerDocument || document;
6128
+ V && v.add(B.body, V), ne && v.add(B.getElementsByTagName("html")[0], ne), K && (U += 1, p.hide(S)), E.default.register(this);
6129
6129
  }
6130
6130
  // Don't steal focus from inner elements
6131
6131
  }, {
6132
6132
  key: "render",
6133
6133
  value: function() {
6134
- var h = this.props, S = h.id, J = h.className, ne = h.overlayClassName, V = h.defaultStyles, O = h.children, B = J ? {} : V.content, q = ne ? {} : V.overlay;
6134
+ var h = this.props, S = h.id, K = h.className, ne = h.overlayClassName, V = h.defaultStyles, O = h.children, B = K ? {} : V.content, q = ne ? {} : V.overlay;
6135
6135
  if (this.shouldBeClosed())
6136
6136
  return null;
6137
6137
  var me = {
@@ -6144,7 +6144,7 @@ $u.default.subscribe(ju);
6144
6144
  id: S,
6145
6145
  ref: this.setContentRef,
6146
6146
  style: n({}, B, this.props.style.content),
6147
- className: this.buildClassName("content", J),
6147
+ className: this.buildClassName("content", K),
6148
6148
  tabIndex: "-1",
6149
6149
  onKeyDown: this.handleKeyDown,
6150
6150
  onMouseDown: this.handleContentOnMouseDown,
@@ -6527,14 +6527,14 @@ function uc({ color: e = "#fff", className: t }) {
6527
6527
  )
6528
6528
  );
6529
6529
  }
6530
- const cc = "_modal_1u882_1", mc = "_content_1u882_19", fc = "_contentScrollable_1u882_25", dc = "_overlay_1u882_31", pc = "_header_1u882_44", hc = "_closeButton_1u882_53", Xe = {
6530
+ const cc = "_modal_n41z8_1", mc = "_content_n41z8_19", fc = "_contentScrollable_n41z8_25", dc = "_overlay_n41z8_31", pc = "_header_n41z8_44", hc = "_closeButton_n41z8_53", Xe = {
6531
6531
  modal: cc,
6532
6532
  content: mc,
6533
6533
  contentScrollable: fc,
6534
6534
  overlay: dc,
6535
6535
  header: pc,
6536
6536
  closeButton: hc
6537
- }, ae = "alma-eligibility-modal", X = {
6537
+ }, ae = "alma-eligibility-modal", Z = {
6538
6538
  desktopModal: `${ae}-desktop-modal`,
6539
6539
  mobileModal: `${ae}-mobile-modal`,
6540
6540
  leftSide: `${ae}-left-side`,
@@ -6591,7 +6591,7 @@ const cc = "_modal_1u882_1", mc = "_content_1u882_19", fc = "_contentScrollable_
6591
6591
  {
6592
6592
  type: "button",
6593
6593
  onClick: n,
6594
- className: R(Xe.closeButton, X.closeButton),
6594
+ className: R(Xe.closeButton, Z.closeButton),
6595
6595
  "data-testid": "modal-close-button",
6596
6596
  "aria-label": u.formatMessage({
6597
6597
  id: "accessibility.close-button.aria-label",
@@ -6908,15 +6908,15 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
6908
6908
  { days: e.deferred_days }
6909
6909
  )
6910
6910
  }
6911
- ) : `${e.installments_count}x`, Rc = "_buttons_146m2_1", Lc = "_active_146m2_54", Hc = "_textButton_146m2_60", ln = {
6911
+ ) : `${e.installments_count}x`, Rc = "_buttons_1mz4n_1", Lc = "_active_1mz4n_58", Hc = "_textButton_1mz4n_70", ln = {
6912
6912
  buttons: Rc,
6913
6913
  active: Lc,
6914
6914
  textButton: Hc
6915
- }, Dc = ({ eligibilityPlans: e, currentPlanIndex: t, setCurrentPlanIndex: n, id: a }) => {
6916
- const r = he(), i = ke([]), o = ke(!1);
6917
- K(() => {
6915
+ }, kc = ({ eligibilityPlans: e, currentPlanIndex: t, setCurrentPlanIndex: n, id: a }) => {
6916
+ const r = he(), i = De([]), o = De(!1);
6917
+ X(() => {
6918
6918
  i.current = i.current.slice(0, e.length);
6919
- }, [e.length]), K(() => {
6919
+ }, [e.length]), X(() => {
6920
6920
  var l;
6921
6921
  o.current && i.current[t] && ((l = i.current[t]) == null || l.focus(), o.current = !1);
6922
6922
  }, [t]);
@@ -6933,7 +6933,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
6933
6933
  "div",
6934
6934
  {
6935
6935
  id: a,
6936
- className: R(ln.buttons, X.eligibilityOptions),
6936
+ className: R(ln.buttons, Z.eligibilityOptions),
6937
6937
  role: "group",
6938
6938
  "aria-labelledby": "payment-plans-title"
6939
6939
  },
@@ -6943,7 +6943,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
6943
6943
  type: "button",
6944
6944
  key: `p${l.installments_count}x-d+${l.deferred_days}-m+${l.deferred_months}`,
6945
6945
  className: R({
6946
- [R(ln.active, X.activeOption)]: u === t
6946
+ [R(ln.active, Z.activeOption)]: u === t
6947
6947
  }),
6948
6948
  onClick: () => n(u),
6949
6949
  onKeyDown: (m) => {
@@ -6966,8 +6966,8 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
6966
6966
  /* @__PURE__ */ f.createElement("span", { className: ln.textButton }, Zi(l))
6967
6967
  ))
6968
6968
  ));
6969
- }, kc = "_installment_yfot3_1", Fc = "_date_yfot3_11", Bc = "_dot_yfot3_17", Uc = "_isCurrent_yfot3_26", $c = "_bold_yfot3_30", lt = {
6970
- installment: kc,
6969
+ }, Dc = "_installment_yfot3_1", Fc = "_date_yfot3_11", Bc = "_dot_yfot3_17", Uc = "_isCurrent_yfot3_26", $c = "_bold_yfot3_30", lt = {
6970
+ installment: Dc,
6971
6971
  date: Fc,
6972
6972
  dot: Bc,
6973
6973
  isCurrent: Uc,
@@ -6980,7 +6980,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
6980
6980
  month: "long",
6981
6981
  year: "numeric"
6982
6982
  }
6983
- )), /* @__PURE__ */ f.createElement("div", { className: R({ [lt.bold]: t === 0 }) }, /* @__PURE__ */ f.createElement(Te, { value: e.total_amount / 100, style: "currency", currency: "EUR" }))), zc = "_container_1jhi6_1", Wc = "_total_1jhi6_18", jc = "_creditInfo_1jhi6_25", Vc = "_creditInfoTitle_1jhi6_36", qc = "_fees_1jhi6_40", Zc = "_creditCost_1jhi6_50", Xc = "_creditInfoLegalText_1jhi6_54", Ue = {
6983
+ )), /* @__PURE__ */ f.createElement("div", { className: R({ [lt.bold]: t === 0 }) }, /* @__PURE__ */ f.createElement(Te, { value: e.total_amount / 100, style: "currency", currency: "EUR" }))), zc = "_container_w9y33_1", Wc = "_total_w9y33_21", jc = "_creditInfo_w9y33_28", Vc = "_creditInfoTitle_w9y33_39", qc = "_fees_w9y33_43", Zc = "_creditCost_w9y33_53", Xc = "_creditInfoLegalText_w9y33_57", Ue = {
6984
6984
  container: zc,
6985
6985
  total: Wc,
6986
6986
  creditInfo: jc,
@@ -7008,11 +7008,11 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7008
7008
  )), /* @__PURE__ */ f.createElement(
7009
7009
  "div",
7010
7010
  {
7011
- className: R(Ue.container, X.summary),
7011
+ className: R(Ue.container, Z.summary),
7012
7012
  "data-testid": "modal-summary"
7013
7013
  },
7014
- /* @__PURE__ */ f.createElement("p", { className: R(Ue.total, X.scheduleTotal) }, /* @__PURE__ */ f.createElement(L, { tagName: "span", id: "installments.total-amount", defaultMessage: "Total" }), /* @__PURE__ */ f.createElement(Te, { value: n || 0, style: "currency", currency: "EUR" })),
7015
- /* @__PURE__ */ f.createElement("p", { className: R(Ue.fees, X.scheduleCredit) }, o ? /* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement(
7014
+ /* @__PURE__ */ f.createElement("p", { className: R(Ue.total, Z.scheduleTotal) }, /* @__PURE__ */ f.createElement(L, { tagName: "span", id: "installments.total-amount", defaultMessage: "Total" }), /* @__PURE__ */ f.createElement(Te, { value: n || 0, style: "currency", currency: "EUR" })),
7015
+ /* @__PURE__ */ f.createElement("p", { className: R(Ue.fees, Z.scheduleCredit) }, o ? /* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement(
7016
7016
  L,
7017
7017
  {
7018
7018
  id: "credit-features.total-credit-cost",
@@ -7093,7 +7093,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7093
7093
  /* @__PURE__ */ f.createElement("div", { id: "payment-schedule-description" }, /* @__PURE__ */ f.createElement(
7094
7094
  "ul",
7095
7095
  {
7096
- className: R(un.schedule, X.scheduleDetails),
7096
+ className: R(un.schedule, Z.scheduleDetails),
7097
7097
  "data-testid": "modal-installments-element"
7098
7098
  },
7099
7099
  ((e == null ? void 0 : e.payment_plan) || []).map((n, a) => /* @__PURE__ */ f.createElement("li", { key: n.due_date * 1e3, className: un.scheduleItem }, /* @__PURE__ */ f.createElement(Gc, { installment: n, index: a })))
@@ -7287,7 +7287,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7287
7287
  "div",
7288
7288
  {
7289
7289
  "data-testid": "card-logos",
7290
- className: R(fr.cardContainer, X.cardContainer)
7290
+ className: R(fr.cardContainer, Z.cardContainer)
7291
7291
  },
7292
7292
  t.map((n) => /* @__PURE__ */ f.createElement("div", { key: n, className: fr.card, "data-testid": `card-logo-${n}` }, n === "cb" && /* @__PURE__ */ f.createElement(nm, null), n === "amex" && /* @__PURE__ */ f.createElement(tm, null), n === "mastercard" && /* @__PURE__ */ f.createElement(am, null), n === "visa" && /* @__PURE__ */ f.createElement(rm, null)))
7293
7293
  );
@@ -7301,7 +7301,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7301
7301
  "div",
7302
7302
  {
7303
7303
  id: t,
7304
- className: R(Re.list, X.info),
7304
+ className: R(Re.list, Z.info),
7305
7305
  "data-testid": "modal-info-element",
7306
7306
  role: "region",
7307
7307
  "aria-labelledby": "payment-info-title",
@@ -7316,7 +7316,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7316
7316
  }
7317
7317
  )),
7318
7318
  " ",
7319
- /* @__PURE__ */ f.createElement("ol", { className: Re.listContainer, id: "payment-info-description" }, /* @__PURE__ */ f.createElement("li", { className: Re.listItem }, /* @__PURE__ */ f.createElement("div", { className: R(Re.bullet, X.bullet) }, "1"), /* @__PURE__ */ f.createElement("div", { className: X.infoMessage }, e ? /* @__PURE__ */ f.createElement(
7319
+ /* @__PURE__ */ f.createElement("ol", { className: Re.listContainer, id: "payment-info-description" }, /* @__PURE__ */ f.createElement("li", { className: Re.listItem }, /* @__PURE__ */ f.createElement("div", { className: R(Re.bullet, Z.bullet) }, "1"), /* @__PURE__ */ f.createElement("div", { className: Z.infoMessage }, e ? /* @__PURE__ */ f.createElement(
7320
7320
  L,
7321
7321
  {
7322
7322
  id: "eligibility-modal.p1x-bullet-1",
@@ -7330,7 +7330,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7330
7330
  defaultMessage: "Choisissez <strong>Alma</strong> au moment du paiement.",
7331
7331
  values: { strong: Ke }
7332
7332
  }
7333
- ))), /* @__PURE__ */ f.createElement("li", { className: Re.listItem }, /* @__PURE__ */ f.createElement("div", { className: R(Re.bullet, X.bullet) }, "2"), /* @__PURE__ */ f.createElement("div", { className: X.infoMessage }, e ? /* @__PURE__ */ f.createElement(
7333
+ ))), /* @__PURE__ */ f.createElement("li", { className: Re.listItem }, /* @__PURE__ */ f.createElement("div", { className: R(Re.bullet, Z.bullet) }, "2"), /* @__PURE__ */ f.createElement("div", { className: Z.infoMessage }, e ? /* @__PURE__ */ f.createElement(
7334
7334
  L,
7335
7335
  {
7336
7336
  id: "eligibility-modal.p1x-bullet-2",
@@ -7344,7 +7344,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7344
7344
  defaultMessage: "Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>",
7345
7345
  values: { strong: Ke }
7346
7346
  }
7347
- ))), /* @__PURE__ */ f.createElement("li", { className: Re.listItem }, /* @__PURE__ */ f.createElement("div", { className: R(Re.bullet, X.bullet) }, "3"), /* @__PURE__ */ f.createElement("div", { className: X.infoMessage }, e ? /* @__PURE__ */ f.createElement(
7347
+ ))), /* @__PURE__ */ f.createElement("li", { className: Re.listItem }, /* @__PURE__ */ f.createElement("div", { className: R(Re.bullet, Z.bullet) }, "3"), /* @__PURE__ */ f.createElement("div", { className: Z.infoMessage }, e ? /* @__PURE__ */ f.createElement(
7348
7348
  L,
7349
7349
  {
7350
7350
  id: "eligibility-modal.p1x-bullet-3",
@@ -7360,7 +7360,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7360
7360
  }
7361
7361
  ))))
7362
7362
  )
7363
- ), um = "_title_b7zxp_1", cm = {
7363
+ ), um = "_title_zeoo0_1", cm = {
7364
7364
  title: um
7365
7365
  }, Ji = ({
7366
7366
  isSomePlanDeferred: e,
@@ -7369,7 +7369,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7369
7369
  "h2",
7370
7370
  {
7371
7371
  id: "modal-title",
7372
- className: R(cm.title, X.title),
7372
+ className: R(cm.title, Z.title),
7373
7373
  "data-testid": "modal-title-element"
7374
7374
  },
7375
7375
  e && /* @__PURE__ */ f.createElement(
@@ -7401,14 +7401,14 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7401
7401
  }, hm = ({ children: e, isSomePlanDeferred: t, cards: n, isCurrentPlanP1X: a }) => /* @__PURE__ */ f.createElement(
7402
7402
  "div",
7403
7403
  {
7404
- className: R(ut.container, X.desktopModal),
7404
+ className: R(ut.container, Z.desktopModal),
7405
7405
  "data-testid": "modal-container",
7406
7406
  role: "dialog",
7407
7407
  "aria-modal": "true",
7408
7408
  "aria-labelledby": "modal-title"
7409
7409
  },
7410
- /* @__PURE__ */ f.createElement("aside", { className: R([ut.block, ut.left, X.leftSide]) }, /* @__PURE__ */ f.createElement(Ji, { isSomePlanDeferred: t, isCurrentPlanP1X: a }), /* @__PURE__ */ f.createElement(Ki, { id: "payment-info", isCurrentPlanP1X: a }), n && /* @__PURE__ */ f.createElement(Xi, { cards: n }), /* @__PURE__ */ f.createElement(aa, { className: ut.logo, width: "75" })),
7411
- /* @__PURE__ */ f.createElement("div", { className: R(ut.block, X.rightSide) }, e)
7410
+ /* @__PURE__ */ f.createElement("aside", { className: R([ut.block, ut.left, Z.leftSide]) }, /* @__PURE__ */ f.createElement(Ji, { isSomePlanDeferred: t, isCurrentPlanP1X: a }), /* @__PURE__ */ f.createElement(Ki, { id: "payment-info", isCurrentPlanP1X: a }), n && /* @__PURE__ */ f.createElement(Xi, { cards: n }), /* @__PURE__ */ f.createElement(aa, { className: ut.logo, width: "75" })),
7411
+ /* @__PURE__ */ f.createElement("div", { className: R(ut.block, Z.rightSide) }, e)
7412
7412
  ), gm = "_noEligibility_3lnq8_1", ym = "_loader_3lnq8_9", _m = "_scheduleArea_3lnq8_16", vm = "_verticalLine_3lnq8_20", $t = {
7413
7413
  noEligibility: gm,
7414
7414
  loader: ym,
@@ -7420,7 +7420,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7420
7420
  }, xm = ({ children: e, isSomePlanDeferred: t, cards: n, isCurrentPlanP1X: a }) => /* @__PURE__ */ f.createElement(
7421
7421
  "div",
7422
7422
  {
7423
- className: R(dr.container, X.mobileModal),
7423
+ className: R(dr.container, Z.mobileModal),
7424
7424
  "data-testid": "modal-container",
7425
7425
  role: "dialog",
7426
7426
  "aria-modal": "true",
@@ -7495,7 +7495,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7495
7495
  }
7496
7496
  )),
7497
7497
  a === ue.SUCCESS && u.length >= 1 && /* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement("section", { "aria-labelledby": "payment-plans-title" }, /* @__PURE__ */ f.createElement(
7498
- Dc,
7498
+ kc,
7499
7499
  {
7500
7500
  id: "payment-plans",
7501
7501
  eligibilityPlans: u,
@@ -7536,14 +7536,14 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7536
7536
  line1: Am,
7537
7537
  line2: Tm
7538
7538
  }, Im = ({ className: e }) => /* @__PURE__ */ f.createElement("div", { className: R(cn.loadingIndicator, e), "data-testid": "loader" }, /* @__PURE__ */ f.createElement("div", { className: cn.line1 }), /* @__PURE__ */ f.createElement("div", { className: cn.line2 })), Qi = () => {
7539
- const [e, t] = Q(""), n = ke(null), a = _t((i, o = 1e3) => {
7539
+ const [e, t] = Q(""), n = De(null), a = _t((i, o = 1e3) => {
7540
7540
  n.current && clearTimeout(n.current), t(i), n.current = setTimeout(() => {
7541
7541
  t(""), n.current = null;
7542
7542
  }, o);
7543
7543
  }, []), r = _t(() => {
7544
7544
  n.current && (clearTimeout(n.current), n.current = null), t("");
7545
7545
  }, []);
7546
- return K(
7546
+ return X(
7547
7547
  () => () => {
7548
7548
  n.current && clearTimeout(n.current);
7549
7549
  },
@@ -7560,7 +7560,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7560
7560
  transitionDelay: a
7561
7561
  }) => {
7562
7562
  const r = he(), { announce: i } = Qi();
7563
- K(() => {
7563
+ X(() => {
7564
7564
  if (e === ue.SUCCESS && !t && n > 1 && // If transitionDelay is -1, animation is disabled, so no need to announce instructions
7565
7565
  a !== -1) {
7566
7566
  const s = r.formatMessage({
@@ -7574,7 +7574,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7574
7574
  }, [e, t, n, r, i, a]);
7575
7575
  }, Mm = (e, t) => {
7576
7576
  const [n, a] = Q(0), [r, i] = Q(!0), [o, s] = Q(1), l = typeof window != "undefined" && window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches, u = t < 0 ? -1 : Math.max(t, 1e3);
7577
- return K(() => {
7577
+ return X(() => {
7578
7578
  let m, c = !0;
7579
7579
  if (!(u === -1 || l))
7580
7580
  return e.length !== 0 && (!e.includes(n) && r && a(e[0]), o === e.length + 1 && i(!1), m = setTimeout(() => {
@@ -7619,23 +7619,22 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7619
7619
  paymentInfo: `${$e}-payment-info`,
7620
7620
  activeOption: `${$e}-active-option`,
7621
7621
  knowMoreAction: `${$e}-know-more-action`
7622
- }, Om = "_widgetContainer_rusfw_1", Pm = "_primaryContainer_rusfw_13", Rm = "_paymentPlans_rusfw_19", Lm = "_plan_rusfw_28", Hm = "_planButton_rusfw_44", Dm = "_monochrome_rusfw_69", km = "_notEligible_rusfw_75", Fm = "_active_rusfw_89", Bm = "_hideBorder_rusfw_104", Um = "_infoContainer_rusfw_108", $m = "_info_rusfw_108", Gm = "_announceText_rusfw_123", zm = "_pending_rusfw_144", Wm = "_clickable_rusfw_148", jm = "_knowMore_rusfw_161", Z = {
7622
+ }, Om = "_widgetContainer_18cko_1", Pm = "_primaryContainer_18cko_13", Rm = "_paymentPlans_18cko_19", Lm = "_planButton_18cko_29", Hm = "_monochrome_18cko_81", km = "_notEligible_18cko_87", Dm = "_active_18cko_101", Fm = "_hideBorder_18cko_116", Bm = "_infoContainer_18cko_120", Um = "_info_18cko_120", $m = "_announceText_18cko_141", Gm = "_pending_18cko_162", zm = "_clickable_18cko_166", Wm = "_knowMore_18cko_179", J = {
7623
7623
  widgetContainer: Om,
7624
7624
  primaryContainer: Pm,
7625
7625
  paymentPlans: Rm,
7626
- plan: Lm,
7627
- planButton: Hm,
7628
- monochrome: Dm,
7626
+ planButton: Lm,
7627
+ monochrome: Hm,
7629
7628
  notEligible: km,
7630
- active: Fm,
7631
- hideBorder: Bm,
7632
- infoContainer: Um,
7633
- info: $m,
7634
- announceText: Gm,
7635
- pending: zm,
7636
- clickable: Wm,
7637
- knowMore: jm
7638
- }, Vm = 5500, qm = ({
7629
+ active: Dm,
7630
+ hideBorder: Fm,
7631
+ infoContainer: Bm,
7632
+ info: Um,
7633
+ announceText: $m,
7634
+ pending: Gm,
7635
+ clickable: zm,
7636
+ knowMore: Wm
7637
+ }, jm = 5500, Vm = ({
7639
7638
  apiData: e,
7640
7639
  configPlans: t,
7641
7640
  hideIfNotEligible: n,
@@ -7655,7 +7654,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7655
7654
  t,
7656
7655
  s,
7657
7656
  l
7658
- ), v = De(
7657
+ ), v = ke(
7659
7658
  () => p.filter((O) => O.eligible),
7660
7659
  [p]
7661
7660
  ), b = Nm({
@@ -7663,16 +7662,16 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7663
7662
  suggestedPaymentPlan: i != null ? i : 0
7664
7663
  }), _ = i !== void 0, [x, E] = Q(!1), { announceText: N, announce: y } = Qi(), w = () => E(!0), z = (O) => {
7665
7664
  E(!1), c == null || c(O);
7666
- }, [ge, F] = Q(!1), ee = De(
7665
+ }, [ge, F] = Q(!1), ee = ke(
7667
7666
  () => p.reduce(
7668
7667
  (O, B, q) => B.eligible ? [...O, q] : O,
7669
7668
  []
7670
7669
  ),
7671
7670
  [p]
7672
- ), Y = De(() => _ && !u ? -1 : u != null ? u : Vm, [u, _]), { current: U, onHover: Me, onLeave: I } = Mm(ee, Y), A = ke([]);
7673
- K(() => {
7671
+ ), Y = ke(() => _ && !u ? -1 : u != null ? u : jm, [u, _]), { current: U, onHover: Me, onLeave: I } = Mm(ee, Y), A = De([]);
7672
+ X(() => {
7674
7673
  A.current = A.current.slice(0, p.length);
7675
- }, [p.length]), K(() => {
7674
+ }, [p.length]), X(() => {
7676
7675
  if (p[U] && g === ue.SUCCESS) {
7677
7676
  const O = p[U], B = mr(O, d), q = d.formatMessage(
7678
7677
  {
@@ -7683,7 +7682,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7683
7682
  );
7684
7683
  y(q, 1e3);
7685
7684
  }
7686
- }, [U, d, g, y]), K(() => {
7685
+ }, [U, d, g, y]), X(() => {
7687
7686
  g === ue.SUCCESS && _ && (Me(b), I());
7688
7687
  }, [g]), wm({
7689
7688
  status: g,
@@ -7705,7 +7704,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7705
7704
  } else if (me = q - 1, me < 0) return;
7706
7705
  const te = ee[me];
7707
7706
  F(!0), Me(te), (Pt = A.current[te]) == null || Pt.focus();
7708
- }, J = (O) => {
7707
+ }, K = (O) => {
7709
7708
  var q;
7710
7709
  const B = O === "first" ? ee[0] : ee[ee.length - 1];
7711
7710
  F(!0), Me(B), (q = A.current[B]) == null || q.focus();
@@ -7714,7 +7713,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7714
7713
  return B === -1 ? 0 : B;
7715
7714
  };
7716
7715
  if (g === ue.PENDING)
7717
- return /* @__PURE__ */ f.createElement("div", { className: R(Z.widgetContainer, Z.pending) }, /* @__PURE__ */ f.createElement(Im, null));
7716
+ return /* @__PURE__ */ f.createElement("div", { className: R(J.widgetContainer, J.pending) }, /* @__PURE__ */ f.createElement(Im, null));
7718
7717
  if (n && v.length === 0 || p.length === 0 || g === ue.FAILED)
7719
7718
  return null;
7720
7719
  const V = (O) => {
@@ -7724,15 +7723,16 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7724
7723
  "main",
7725
7724
  {
7726
7725
  role: "main",
7726
+ id: "alma-widget-payment-plans-main-container",
7727
7727
  "aria-label": d.formatMessage({
7728
7728
  id: "accessibility.payment-widget.main.aria-label",
7729
7729
  defaultMessage: "Sélection des options de paiement Alma"
7730
7730
  }),
7731
7731
  className: R(
7732
- Z.widgetContainer,
7732
+ J.widgetContainer,
7733
7733
  {
7734
- [Z.hideBorder]: m,
7735
- [Z.monochrome]: a
7734
+ [J.hideBorder]: m,
7735
+ [J.monochrome]: a
7736
7736
  },
7737
7737
  Le.container
7738
7738
  ),
@@ -7742,7 +7742,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7742
7742
  "section",
7743
7743
  {
7744
7744
  "aria-labelledby": "payment-plans-title",
7745
- className: R(Z.primaryContainer, Le.eligibilityLine)
7745
+ className: R(J.primaryContainer, Le.eligibilityLine)
7746
7746
  },
7747
7747
  /* @__PURE__ */ f.createElement("h2", { id: "payment-plans-title", className: "sr-only" }, d.formatMessage({
7748
7748
  id: "accessibility.payment-plans.section-title",
@@ -7757,9 +7757,9 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7757
7757
  (O.key === "Enter" || O.key === " ") && (O.preventDefault(), V(O));
7758
7758
  },
7759
7759
  className: R(
7760
- Z.knowMore,
7761
- Z.clickable,
7762
- { [Z.monochrome]: a },
7760
+ J.knowMore,
7761
+ J.clickable,
7762
+ { [J.monochrome]: a },
7763
7763
  Le.knowMoreAction
7764
7764
  ),
7765
7765
  "aria-label": d.formatMessage({
@@ -7773,7 +7773,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7773
7773
  aa,
7774
7774
  {
7775
7775
  "data-testid": "Alma-Logo",
7776
- className: Z.logo,
7776
+ className: J.logo,
7777
7777
  color: a ? "var(--off-black)" : void 0
7778
7778
  }
7779
7779
  )
@@ -7781,7 +7781,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7781
7781
  /* @__PURE__ */ f.createElement(
7782
7782
  "div",
7783
7783
  {
7784
- className: R(Z.paymentPlans, Le.eligibilityOptions),
7784
+ className: R(J.paymentPlans, Le.eligibilityOptions),
7785
7785
  role: "listbox",
7786
7786
  "aria-label": d.formatMessage({
7787
7787
  id: "accessibility.payment-options.listbox.aria-label",
@@ -7802,15 +7802,15 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7802
7802
  onTouchEnd: h,
7803
7803
  onFocus: me ? () => W(B) : void 0,
7804
7804
  onKeyDown: (te) => {
7805
- me && (te.key === "ArrowLeft" ? (te.preventDefault(), S("prev", B)) : te.key === "ArrowRight" ? (te.preventDefault(), S("next", B)) : te.key === "Home" ? (te.preventDefault(), J("first")) : te.key === "End" && (te.preventDefault(), J("last")));
7805
+ me && (te.key === "ArrowLeft" ? (te.preventDefault(), S("prev", B)) : te.key === "ArrowRight" ? (te.preventDefault(), S("next", B)) : te.key === "Home" ? (te.preventDefault(), K("first")) : te.key === "End" && (te.preventDefault(), K("last")));
7806
7806
  },
7807
7807
  onClick: (te) => {
7808
7808
  te.stopPropagation(), me && (Me(B), v.length > 0 && w());
7809
7809
  },
7810
- className: R(Z.plan, Z.planButton, {
7811
- [R(Z.active, Le.activeOption)]: q,
7812
- [Z.monochrome]: a && q,
7813
- [R(Z.notEligible, Le.notEligibleOption)]: !me
7810
+ className: R(J.planButton, {
7811
+ [R(J.active, Le.activeOption)]: q,
7812
+ [J.monochrome]: a && q,
7813
+ [R(J.notEligible, Le.notEligibleOption)]: !me
7814
7814
  }),
7815
7815
  role: "option",
7816
7816
  "aria-selected": q,
@@ -7835,16 +7835,16 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7835
7835
  })
7836
7836
  )
7837
7837
  ),
7838
- /* @__PURE__ */ f.createElement("aside", { "aria-labelledby": "payment-info-title", className: Z.infoContainer }, /* @__PURE__ */ f.createElement("h3", { id: "payment-info-title", className: "sr-only" }, d.formatMessage({
7838
+ /* @__PURE__ */ f.createElement("aside", { "aria-labelledby": "payment-info-title", className: J.infoContainer }, /* @__PURE__ */ f.createElement("h3", { id: "payment-info-title", className: "sr-only" }, d.formatMessage({
7839
7839
  id: "accessibility.payment-info.section-title",
7840
7840
  defaultMessage: "Informations sur le plan de paiement sélectionné"
7841
7841
  })), /* @__PURE__ */ f.createElement(
7842
7842
  "div",
7843
7843
  {
7844
7844
  className: R(
7845
- Z.info,
7845
+ J.info,
7846
7846
  {
7847
- [R(Z.notEligible, Le.notEligibleOption)]: p[U] && !p[U].eligible
7847
+ [R(J.notEligible, Le.notEligibleOption)]: p[U] && !p[U].eligible
7848
7848
  },
7849
7849
  Le.paymentInfo
7850
7850
  ),
@@ -7861,8 +7861,8 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7861
7861
  status: g,
7862
7862
  cards: o
7863
7863
  }
7864
- ), /* @__PURE__ */ f.createElement("div", { role: "alert", "aria-live": "assertive", className: Z.announceText }, N));
7865
- }, Je = /* @__PURE__ */ new Map(), Zm = (e, t, n) => {
7864
+ ), /* @__PURE__ */ f.createElement("div", { role: "alert", "aria-live": "assertive", className: J.announceText }, N));
7865
+ }, Je = /* @__PURE__ */ new Map(), qm = (e, t, n) => {
7866
7866
  var r;
7867
7867
  const a = document.querySelector(n.container);
7868
7868
  if (a) {
@@ -7888,7 +7888,7 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7888
7888
  const _ = Ma(a);
7889
7889
  _.render(
7890
7890
  /* @__PURE__ */ f.createElement(ja, { locale: g }, /* @__PURE__ */ f.createElement(
7891
- qm,
7891
+ Vm,
7892
7892
  {
7893
7893
  apiData: e,
7894
7894
  configPlans: o,
@@ -7945,13 +7945,13 @@ const Mc = "_openModalInfo_a4893_1", Nc = {
7945
7945
  close: p
7946
7946
  };
7947
7947
  }
7948
- }, Xm = (e) => ({
7949
- add: (t, n) => Zm(e, t, n)
7948
+ }, Zm = (e) => ({
7949
+ add: (t, n) => qm(e, t, n)
7950
7950
  });
7951
- var Km = /* @__PURE__ */ ((e) => (e.LIVE = "https://api.getalma.eu", e.TEST = "https://api.sandbox.getalma.eu", e))(Km || {}), pr;
7951
+ var Xm = /* @__PURE__ */ ((e) => (e.LIVE = "https://api.getalma.eu", e.TEST = "https://api.sandbox.getalma.eu", e))(Xm || {}), pr;
7952
7952
  ((e) => {
7953
7953
  function t(n, a) {
7954
- return Xm({ domain: a, merchantId: n });
7954
+ return Zm({ domain: a, merchantId: n });
7955
7955
  }
7956
7956
  e.initialize = t, e.PaymentPlans = pt.PaymentPlans, e.Modal = pt.Modal;
7957
7957
  })(pr || (pr = {}));
@@ -7960,7 +7960,7 @@ var hr;
7960
7960
  e.priceToCents = ao, e.priceFromCents = fe, e.formatCents = ro;
7961
7961
  })(hr || (hr = {}));
7962
7962
  export {
7963
- Km as ApiMode,
7963
+ Xm as ApiMode,
7964
7964
  hr as Utils,
7965
7965
  pr as Widgets
7966
7966
  };