@alma/widgets 4.0.3 → 4.0.4
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/types/src/hooks/useFetchEligibility.test.d.ts +1 -0
- package/dist/types/src/hooks/useSessionStorage.d.ts +2 -0
- package/dist/types/src/intl/messages/messages.es.json.d.ts +1 -1
- package/dist/types/src/intl/messages/messages.nl.json.d.ts +1 -1
- package/dist/types/src/types.d.ts +4 -0
- package/dist/types/src/utils/fetch.d.ts +2 -2
- package/dist/widgets-wc.umd.js +9 -9
- package/dist/widgets-wc.umd.js.map +1 -0
- package/dist/widgets.js +276 -266
- package/dist/widgets.js.map +1 -1
- package/dist/widgets.umd.js +9 -9
- package/dist/widgets.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/widgets.js
CHANGED
|
@@ -35,7 +35,7 @@ var ar = (e, t, n) => new Promise((r, o) => {
|
|
|
35
35
|
}, s = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(a, i);
|
|
36
36
|
s((n = n.apply(e, t)).next());
|
|
37
37
|
});
|
|
38
|
-
var lt = /* @__PURE__ */ ((e) => (e.PaymentPlans = "PaymentPlans", e.Modal = "Modal", e))(lt || {}),
|
|
38
|
+
var lt = /* @__PURE__ */ ((e) => (e.PaymentPlans = "PaymentPlans", e.Modal = "Modal", e))(lt || {}), ce = /* @__PURE__ */ ((e) => (e.PENDING = "pending", e.SUCCESS = "success", e.FAILED = "failed", e))(ce || {}), be = /* @__PURE__ */ ((e) => (e.en = "en", e["fr-FR"] = "fr-FR", e.fr = "fr", e["de-DE"] = "de-DE", e.de = "de", e.it = "it", e["it-IT"] = "it-IT", e.es = "es", e["es-ES"] = "es-ES", e.pt = "pt", e["pt-PT"] = "pt-PT", e.nl = "nl", e["nl-NL"] = "nl-NL", e["nl-BE"] = "nl-BE", e))(be || {});
|
|
39
39
|
function ti(e) {
|
|
40
40
|
return Math.round(e * 100);
|
|
41
41
|
}
|
|
@@ -93,37 +93,37 @@ const ri = 800, ho = (e) => (e == null ? void 0 : e.installments_count) === 1 &&
|
|
|
93
93
|
}, c.prototype.add = function() {
|
|
94
94
|
e: for (var _ = 0, b = arguments.length, v = "", y = this[" uCL"], T = y[" uCLp"]; _ !== b; ++_) {
|
|
95
95
|
v = `${arguments[_]}`, r("add", v);
|
|
96
|
-
for (var E = 0,
|
|
96
|
+
for (var E = 0, R = T.length, g = v; E !== R; ++E) {
|
|
97
97
|
if (this[E] === v) continue e;
|
|
98
98
|
g += ` ${this[E]}`;
|
|
99
99
|
}
|
|
100
|
-
this[
|
|
100
|
+
this[R] = v, T.length += 1, T.value = g;
|
|
101
101
|
}
|
|
102
102
|
m = 1, y.className = T.value, m = 0;
|
|
103
103
|
}, c.prototype.remove = function() {
|
|
104
104
|
for (var _ = 0, b = arguments.length, v = "", y = this[" uCL"], T = y[" uCLp"]; _ !== b; ++_) {
|
|
105
105
|
v = `${arguments[_]}`, r("remove", v);
|
|
106
|
-
for (var E = 0,
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
for (var E = 0, R = T.length, g = "", O = 0; E !== R; ++E)
|
|
107
|
+
O ? this[E - 1] = this[E] : this[E] !== v ? g += `${this[E]} ` : O = 1;
|
|
108
|
+
O && (delete this[R], T.length -= 1, T.value = g);
|
|
109
109
|
}
|
|
110
110
|
m = 1, y.className = T.value, m = 0;
|
|
111
111
|
}, o.DOMTokenList = c;
|
|
112
112
|
function d() {
|
|
113
113
|
const _ = o.event, b = _.propertyName;
|
|
114
114
|
if (!m && (b === "className" || b === "classList" && !l)) {
|
|
115
|
-
const E = _.srcElement,
|
|
116
|
-
e: for (var v = 0, y =
|
|
115
|
+
const E = _.srcElement, R = E[" uCLp"], g = `${E[b]}`, O = g.trim().split(t), k = E[b === "classList" ? " uCL" : "classList"], q = R.length;
|
|
116
|
+
e: for (var v = 0, y = R.length = O.length, T = 0; v !== y; ++v) {
|
|
117
117
|
for (let U = 0; U !== v; ++U)
|
|
118
|
-
if (
|
|
118
|
+
if (O[U] === O[v]) {
|
|
119
119
|
T++;
|
|
120
120
|
continue e;
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
k[v - T] = O[v];
|
|
123
123
|
}
|
|
124
|
-
for (let U = y - T; U < q; ++U) delete
|
|
124
|
+
for (let U = y - T; U < q; ++U) delete k[U];
|
|
125
125
|
if (b !== "classList") return;
|
|
126
|
-
m = 1, E.classList =
|
|
126
|
+
m = 1, E.classList = k, E.className = g, m = 0, k.length = O.length - T;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
function h(_) {
|
|
@@ -137,33 +137,33 @@ const ri = 800, ho = (e) => (e == null ? void 0 : e.installments_count) === 1 &&
|
|
|
137
137
|
u = 0;
|
|
138
138
|
}
|
|
139
139
|
const v = b.prototype, y = new b();
|
|
140
|
-
e: for (var T = _.className.trim().split(t), E = 0,
|
|
141
|
-
for (let
|
|
142
|
-
if (T[
|
|
140
|
+
e: for (var T = _.className.trim().split(t), E = 0, R = T.length, g = 0; E !== R; ++E) {
|
|
141
|
+
for (let O = 0; O !== E; ++O)
|
|
142
|
+
if (T[O] === T[E]) {
|
|
143
143
|
g++;
|
|
144
144
|
continue e;
|
|
145
145
|
}
|
|
146
146
|
this[E - g] = T[E];
|
|
147
147
|
}
|
|
148
|
-
v.length =
|
|
148
|
+
v.length = R - g, v.value = _.className, v[" uCL"] = _, l ? (l(_, "classList", {
|
|
149
149
|
// IE8 & IE9 allow defineProperty on the DOM
|
|
150
150
|
enumerable: 1,
|
|
151
151
|
get() {
|
|
152
152
|
return y;
|
|
153
153
|
},
|
|
154
154
|
configurable: 0,
|
|
155
|
-
set(
|
|
156
|
-
m = 1, _.className = v.value =
|
|
157
|
-
const
|
|
158
|
-
e: for (var U = 0,
|
|
155
|
+
set(O) {
|
|
156
|
+
m = 1, _.className = v.value = O += "", m = 0;
|
|
157
|
+
const k = O.trim().split(t), q = v.length;
|
|
158
|
+
e: for (var U = 0, W = v.length = k.length, me = 0; U !== W; ++U) {
|
|
159
159
|
for (let Y = 0; Y !== U; ++Y)
|
|
160
|
-
if (
|
|
161
|
-
|
|
160
|
+
if (k[Y] === k[U]) {
|
|
161
|
+
me++;
|
|
162
162
|
continue e;
|
|
163
163
|
}
|
|
164
|
-
y[U -
|
|
164
|
+
y[U - me] = k[U];
|
|
165
165
|
}
|
|
166
|
-
for (let Y =
|
|
166
|
+
for (let Y = W - me; Y < q; ++Y) delete y[Y];
|
|
167
167
|
}
|
|
168
168
|
}), l(_, " uCLp", {
|
|
169
169
|
// for accessing the hidden prototype
|
|
@@ -244,7 +244,7 @@ const ri = 800, ho = (e) => (e == null ? void 0 : e.installments_count) === 1 &&
|
|
|
244
244
|
});
|
|
245
245
|
}(e.DOMTokenList.prototype, e.document.createElement("div").classList);
|
|
246
246
|
})(window);
|
|
247
|
-
var pt,
|
|
247
|
+
var pt, N, po, De, sr, _o, on, Cn, an, sn, go, ut = {}, vo = [], oi = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, kt = Array.isArray;
|
|
248
248
|
function Ae(e, t) {
|
|
249
249
|
for (var n in t) e[n] = t[n];
|
|
250
250
|
return e;
|
|
@@ -260,7 +260,7 @@ function se(e, t, n) {
|
|
|
260
260
|
}
|
|
261
261
|
function ot(e, t, n, r, o) {
|
|
262
262
|
var a = { type: e, props: t, key: n, ref: r, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: o == null ? ++po : o, __i: -1, __u: 0 };
|
|
263
|
-
return o == null &&
|
|
263
|
+
return o == null && N.vnode != null && N.vnode(a), a;
|
|
264
264
|
}
|
|
265
265
|
function bo() {
|
|
266
266
|
return { current: null };
|
|
@@ -287,11 +287,11 @@ function Eo(e) {
|
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
function ln(e) {
|
|
290
|
-
(!e.__d && (e.__d = !0) && De.push(e) && !Dt.__r++ || sr !==
|
|
290
|
+
(!e.__d && (e.__d = !0) && De.push(e) && !Dt.__r++ || sr !== N.debounceRendering) && ((sr = N.debounceRendering) || _o)(Dt);
|
|
291
291
|
}
|
|
292
292
|
function Dt() {
|
|
293
293
|
var e, t, n, r, o, a, i, s;
|
|
294
|
-
for (De.sort(on); e = De.shift(); ) e.__d && (t = De.length, r = void 0, a = (o = (n = e).__v).__e, i = [], s = [], n.__P && ((r = Ae({}, o)).__v = o.__v + 1,
|
|
294
|
+
for (De.sort(on); e = De.shift(); ) e.__d && (t = De.length, r = void 0, a = (o = (n = e).__v).__e, i = [], s = [], n.__P && ((r = Ae({}, o)).__v = o.__v + 1, N.vnode && N.vnode(r), On(n.__P, r, o, n.__n, n.__P.namespaceURI, 32 & o.__u ? [a] : null, i, a == null ? Xe(o) : a, !!(32 & o.__u), s), r.__v = o.__v, r.__.__k[r.__i] = r, Ao(i, r, s), r.__e != a && Eo(r)), De.length > t && De.sort(on));
|
|
295
295
|
Dt.__r = 0;
|
|
296
296
|
}
|
|
297
297
|
function To(e, t, n, r, o, a, i, s, l, u, m) {
|
|
@@ -363,55 +363,55 @@ function ur(e) {
|
|
|
363
363
|
var n = this.l[t.type + e];
|
|
364
364
|
if (t.t == null) t.t = Cn++;
|
|
365
365
|
else if (t.t < n.u) return;
|
|
366
|
-
return n(
|
|
366
|
+
return n(N.event ? N.event(t) : t);
|
|
367
367
|
}
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
370
|
function On(e, t, n, r, o, a, i, s, l, u) {
|
|
371
|
-
var m, c, d, h, _, b, v, y, T, E,
|
|
371
|
+
var m, c, d, h, _, b, v, y, T, E, R, g, O, k, q, U, W = t.type;
|
|
372
372
|
if (t.constructor !== void 0) return null;
|
|
373
|
-
128 & n.__u && (l = !!(32 & n.__u), a = [s = t.__e = n.__e]), (m =
|
|
374
|
-
e: if (typeof
|
|
375
|
-
if (y = t.props, T = "prototype" in
|
|
373
|
+
128 & n.__u && (l = !!(32 & n.__u), a = [s = t.__e = n.__e]), (m = N.__b) && m(t);
|
|
374
|
+
e: if (typeof W == "function") try {
|
|
375
|
+
if (y = t.props, T = "prototype" in W && W.prototype.render, E = (m = W.contextType) && r[m.__c], R = m ? E ? E.props.value : m.__ : r, n.__c ? v = (c = t.__c = n.__c).__ = c.__E : (T ? t.__c = c = new W(y, R) : (t.__c = c = new _e(y, R), c.constructor = W, c.render = li), E && E.sub(c), c.props = y, c.state || (c.state = {}), c.context = R, c.__n = r, d = c.__d = !0, c.__h = [], c._sb = []), T && c.__s == null && (c.__s = c.state), T && W.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = Ae({}, c.__s)), Ae(c.__s, W.getDerivedStateFromProps(y, c.__s))), h = c.props, _ = c.state, c.__v = t, d) T && W.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), T && c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
376
376
|
else {
|
|
377
|
-
if (T &&
|
|
378
|
-
for (t.__v !== n.__v && (c.props = y, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(
|
|
379
|
-
|
|
377
|
+
if (T && W.getDerivedStateFromProps == null && y !== h && c.componentWillReceiveProps != null && c.componentWillReceiveProps(y, R), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(y, c.__s, R) === !1 || t.__v === n.__v)) {
|
|
378
|
+
for (t.__v !== n.__v && (c.props = y, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(me) {
|
|
379
|
+
me && (me.__ = t);
|
|
380
380
|
}), g = 0; g < c._sb.length; g++) c.__h.push(c._sb[g]);
|
|
381
381
|
c._sb = [], c.__h.length && i.push(c);
|
|
382
382
|
break e;
|
|
383
383
|
}
|
|
384
|
-
c.componentWillUpdate != null && c.componentWillUpdate(y, c.__s,
|
|
384
|
+
c.componentWillUpdate != null && c.componentWillUpdate(y, c.__s, R), T && c.componentDidUpdate != null && c.__h.push(function() {
|
|
385
385
|
c.componentDidUpdate(h, _, b);
|
|
386
386
|
});
|
|
387
387
|
}
|
|
388
|
-
if (c.context =
|
|
389
|
-
for (c.state = c.__s, c.__d = !1,
|
|
388
|
+
if (c.context = R, c.props = y, c.__P = e, c.__e = !1, O = N.__r, k = 0, T) {
|
|
389
|
+
for (c.state = c.__s, c.__d = !1, O && O(t), m = c.render(c.props, c.state, c.context), q = 0; q < c._sb.length; q++) c.__h.push(c._sb[q]);
|
|
390
390
|
c._sb = [];
|
|
391
391
|
} else do
|
|
392
|
-
c.__d = !1,
|
|
393
|
-
while (c.__d && ++
|
|
392
|
+
c.__d = !1, O && O(t), m = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
393
|
+
while (c.__d && ++k < 25);
|
|
394
394
|
c.state = c.__s, c.getChildContext != null && (r = Ae(Ae({}, r), c.getChildContext())), T && !d && c.getSnapshotBeforeUpdate != null && (b = c.getSnapshotBeforeUpdate(h, _)), To(e, kt(U = m != null && m.type === le && m.key == null ? m.props.children : m) ? U : [U], t, n, r, o, a, i, s, l, u), c.base = t.__e, t.__u &= -161, c.__h.length && i.push(c), v && (c.__E = c.__ = null);
|
|
395
|
-
} catch (
|
|
395
|
+
} catch (me) {
|
|
396
396
|
if (t.__v = null, l || a != null) {
|
|
397
397
|
for (t.__u |= l ? 160 : 128; s && s.nodeType === 8 && s.nextSibling; ) s = s.nextSibling;
|
|
398
398
|
a[a.indexOf(s)] = null, t.__e = s;
|
|
399
399
|
} else t.__e = n.__e, t.__k = n.__k;
|
|
400
|
-
|
|
400
|
+
N.__e(me, t, n);
|
|
401
401
|
}
|
|
402
402
|
else a == null && t.__v === n.__v ? (t.__k = n.__k, t.__e = n.__e) : t.__e = si(n.__e, t, n, r, o, a, i, l, u);
|
|
403
|
-
(m =
|
|
403
|
+
(m = N.diffed) && m(t);
|
|
404
404
|
}
|
|
405
405
|
function Ao(e, t, n) {
|
|
406
406
|
t.__d = void 0;
|
|
407
407
|
for (var r = 0; r < n.length; r++) Nn(n[r], n[++r], n[++r]);
|
|
408
|
-
|
|
408
|
+
N.__c && N.__c(t, e), e.some(function(o) {
|
|
409
409
|
try {
|
|
410
410
|
e = o.__h, o.__h = [], e.some(function(a) {
|
|
411
411
|
a.call(o);
|
|
412
412
|
});
|
|
413
413
|
} catch (a) {
|
|
414
|
-
|
|
414
|
+
N.__e(a, o.__v);
|
|
415
415
|
}
|
|
416
416
|
});
|
|
417
417
|
}
|
|
@@ -425,7 +425,7 @@ function si(e, t, n, r, o, a, i, s, l) {
|
|
|
425
425
|
}
|
|
426
426
|
if (e == null) {
|
|
427
427
|
if (T === null) return document.createTextNode(y);
|
|
428
|
-
e = document.createElementNS(o, T, y.is && y), s && (
|
|
428
|
+
e = document.createElementNS(o, T, y.is && y), s && (N.__m && N.__m(t, a), s = !1), a = null;
|
|
429
429
|
}
|
|
430
430
|
if (T === null) v === y || s && e.data === y || (e.data = y);
|
|
431
431
|
else {
|
|
@@ -451,16 +451,16 @@ function Nn(e, t, n) {
|
|
|
451
451
|
r && e.__u(), r && t == null || (e.__u = e(t));
|
|
452
452
|
} else e.current = t;
|
|
453
453
|
} catch (o) {
|
|
454
|
-
|
|
454
|
+
N.__e(o, n);
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
457
|
function So(e, t, n) {
|
|
458
458
|
var r, o;
|
|
459
|
-
if (
|
|
459
|
+
if (N.unmount && N.unmount(e), (r = e.ref) && (r.current && r.current !== e.__e || Nn(r, null, t)), (r = e.__c) != null) {
|
|
460
460
|
if (r.componentWillUnmount) try {
|
|
461
461
|
r.componentWillUnmount();
|
|
462
462
|
} catch (a) {
|
|
463
|
-
|
|
463
|
+
N.__e(a, t);
|
|
464
464
|
}
|
|
465
465
|
r.base = r.__P = null;
|
|
466
466
|
}
|
|
@@ -472,7 +472,7 @@ function li(e, t, n) {
|
|
|
472
472
|
}
|
|
473
473
|
function ct(e, t, n) {
|
|
474
474
|
var r, o, a, i;
|
|
475
|
-
|
|
475
|
+
N.__ && N.__(e, t), o = (r = typeof n == "function") ? null : n && n.__k || t.__k, a = [], i = [], On(t, e = (!r && n || t).__k = se(le, null, [e]), o || ut, ut, t.namespaceURI, !r && n ? [n] : o ? null : t.firstChild ? pt.call(t.childNodes) : null, a, !r && n ? n : o ? o.__e : t.firstChild, r, i), Ao(a, e, i);
|
|
476
476
|
}
|
|
477
477
|
function Io(e, t) {
|
|
478
478
|
ct(e, t, Io);
|
|
@@ -505,7 +505,7 @@ function mt(e, t) {
|
|
|
505
505
|
} };
|
|
506
506
|
return n.Provider.__ = n.Consumer.contextType = n;
|
|
507
507
|
}
|
|
508
|
-
pt = vo.slice,
|
|
508
|
+
pt = vo.slice, N = { __e: function(e, t, n, r) {
|
|
509
509
|
for (var o, a, i; t = t.__; ) if ((o = t.__c) && !o.__) try {
|
|
510
510
|
if ((a = o.constructor) && a.getDerivedStateFromError != null && (o.setState(a.getDerivedStateFromError(e)), i = o.__d), o.componentDidCatch != null && (o.componentDidCatch(e, r || {}), i = o.__d), i) return o.__E = o;
|
|
511
511
|
} catch (s) {
|
|
@@ -520,9 +520,9 @@ pt = vo.slice, R = { __e: function(e, t, n, r) {
|
|
|
520
520
|
}, _e.prototype.render = le, De = [], _o = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, on = function(e, t) {
|
|
521
521
|
return e.__v.__b - t.__v.__b;
|
|
522
522
|
}, Dt.__r = 0, Cn = 0, an = ur(!1), sn = ur(!0), go = 0;
|
|
523
|
-
var Ie, B, qt, cr, Ze = 0, Co = [],
|
|
523
|
+
var Ie, B, qt, cr, Ze = 0, Co = [], $ = N, mr = $.__b, fr = $.__r, dr = $.diffed, hr = $.__c, pr = $.unmount, _r = $.__;
|
|
524
524
|
function ke(e, t) {
|
|
525
|
-
|
|
525
|
+
$.__h && $.__h(B, e, Ze || t), Ze = 0;
|
|
526
526
|
var n = B.__H || (B.__H = { __: [], __h: [] });
|
|
527
527
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
528
528
|
}
|
|
@@ -565,11 +565,11 @@ function Gt(e, t, n) {
|
|
|
565
565
|
}
|
|
566
566
|
function ue(e, t) {
|
|
567
567
|
var n = ke(Ie++, 3);
|
|
568
|
-
|
|
568
|
+
!$.__s && Hn(n.__H, t) && (n.__ = e, n.i = t, B.__H.__h.push(n));
|
|
569
569
|
}
|
|
570
570
|
function Qe(e, t) {
|
|
571
571
|
var n = ke(Ie++, 4);
|
|
572
|
-
|
|
572
|
+
!$.__s && Hn(n.__H, t) && (n.__ = e, n.i = t, B.__h.push(n));
|
|
573
573
|
}
|
|
574
574
|
function $t(e) {
|
|
575
575
|
return Ze = 5, _t(function() {
|
|
@@ -599,7 +599,7 @@ function gt(e) {
|
|
|
599
599
|
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(B)), t.props.value) : e.__;
|
|
600
600
|
}
|
|
601
601
|
function Mn(e, t) {
|
|
602
|
-
|
|
602
|
+
$.useDebugValue && $.useDebugValue(t ? t(e) : e);
|
|
603
603
|
}
|
|
604
604
|
function ci(e) {
|
|
605
605
|
var t = ke(Ie++, 10), n = oe();
|
|
@@ -622,26 +622,26 @@ function mi() {
|
|
|
622
622
|
for (var e; e = Co.shift(); ) if (e.__P && e.__H) try {
|
|
623
623
|
e.__H.__h.forEach(Ht), e.__H.__h.forEach(un), e.__H.__h = [];
|
|
624
624
|
} catch (t) {
|
|
625
|
-
e.__H.__h = [],
|
|
625
|
+
e.__H.__h = [], $.__e(t, e.__v);
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
|
-
|
|
628
|
+
$.__b = function(e) {
|
|
629
629
|
B = null, mr && mr(e);
|
|
630
|
-
},
|
|
630
|
+
}, $.__ = function(e, t) {
|
|
631
631
|
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), _r && _r(e, t);
|
|
632
|
-
},
|
|
632
|
+
}, $.__r = function(e) {
|
|
633
633
|
fr && fr(e), Ie = 0;
|
|
634
634
|
var t = (B = e.__c).__H;
|
|
635
635
|
t && (qt === B ? (t.__h = [], B.__h = [], t.__.forEach(function(n) {
|
|
636
636
|
n.__N && (n.__ = n.__N), n.i = n.__N = void 0;
|
|
637
637
|
})) : (t.__h.forEach(Ht), t.__h.forEach(un), t.__h = [], Ie = 0)), qt = B;
|
|
638
|
-
},
|
|
638
|
+
}, $.diffed = function(e) {
|
|
639
639
|
dr && dr(e);
|
|
640
640
|
var t = e.__c;
|
|
641
|
-
t && t.__H && (t.__H.__h.length && (Co.push(t) !== 1 && cr ===
|
|
641
|
+
t && t.__H && (t.__H.__h.length && (Co.push(t) !== 1 && cr === $.requestAnimationFrame || ((cr = $.requestAnimationFrame) || fi)(mi)), t.__H.__.forEach(function(n) {
|
|
642
642
|
n.i && (n.__H = n.i), n.i = void 0;
|
|
643
643
|
})), qt = B = null;
|
|
644
|
-
},
|
|
644
|
+
}, $.__c = function(e, t) {
|
|
645
645
|
t.some(function(n) {
|
|
646
646
|
try {
|
|
647
647
|
n.__h.forEach(Ht), n.__h = n.__h.filter(function(r) {
|
|
@@ -650,10 +650,10 @@ G.__b = function(e) {
|
|
|
650
650
|
} catch (r) {
|
|
651
651
|
t.some(function(o) {
|
|
652
652
|
o.__h && (o.__h = []);
|
|
653
|
-
}), t = [],
|
|
653
|
+
}), t = [], $.__e(r, n.__v);
|
|
654
654
|
}
|
|
655
655
|
}), hr && hr(e, t);
|
|
656
|
-
},
|
|
656
|
+
}, $.unmount = function(e) {
|
|
657
657
|
pr && pr(e);
|
|
658
658
|
var t, n = e.__c;
|
|
659
659
|
n && n.__H && (n.__H.__.forEach(function(r) {
|
|
@@ -662,7 +662,7 @@ G.__b = function(e) {
|
|
|
662
662
|
} catch (o) {
|
|
663
663
|
t = o;
|
|
664
664
|
}
|
|
665
|
-
}), n.__H = void 0, t &&
|
|
665
|
+
}), n.__H = void 0, t && $.__e(t, n.__v));
|
|
666
666
|
};
|
|
667
667
|
var gr = typeof requestAnimationFrame == "function";
|
|
668
668
|
function fi(e) {
|
|
@@ -708,8 +708,8 @@ function Ln(e, t) {
|
|
|
708
708
|
(ft.prototype = new _e()).isPureReactComponent = !0, ft.prototype.shouldComponentUpdate = function(e, t) {
|
|
709
709
|
return cn(this.props, e) || cn(this.state, t);
|
|
710
710
|
};
|
|
711
|
-
var vr =
|
|
712
|
-
|
|
711
|
+
var vr = N.__b;
|
|
712
|
+
N.__b = function(e) {
|
|
713
713
|
e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), vr && vr(e);
|
|
714
714
|
};
|
|
715
715
|
var di = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
@@ -731,14 +731,14 @@ var yr = function(e, t) {
|
|
|
731
731
|
var t = Se(e);
|
|
732
732
|
if (t.length !== 1) throw "Children.only";
|
|
733
733
|
return t[0];
|
|
734
|
-
}, toArray: Se }, hi =
|
|
735
|
-
|
|
734
|
+
}, toArray: Se }, hi = N.__e;
|
|
735
|
+
N.__e = function(e, t, n, r) {
|
|
736
736
|
if (e.then) {
|
|
737
737
|
for (var o, a = t; a = a.__; ) if ((o = a.__c) && o.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), o.__c(e, t);
|
|
738
738
|
}
|
|
739
739
|
hi(e, t, n, r);
|
|
740
740
|
};
|
|
741
|
-
var br =
|
|
741
|
+
var br = N.unmount;
|
|
742
742
|
function Ro(e, t, n) {
|
|
743
743
|
return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(r) {
|
|
744
744
|
typeof r.__c == "function" && r.__c();
|
|
@@ -777,7 +777,7 @@ function Po(e) {
|
|
|
777
777
|
function ze() {
|
|
778
778
|
this.u = null, this.o = null;
|
|
779
779
|
}
|
|
780
|
-
|
|
780
|
+
N.unmount = function(e) {
|
|
781
781
|
var t = e.__c;
|
|
782
782
|
t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), br && br(e);
|
|
783
783
|
}, (at.prototype = new _e()).__c = function(e, t) {
|
|
@@ -877,7 +877,7 @@ _e.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceive
|
|
|
877
877
|
Object.defineProperty(this, e, { configurable: !0, writable: !0, value: t });
|
|
878
878
|
} });
|
|
879
879
|
});
|
|
880
|
-
var Tr =
|
|
880
|
+
var Tr = N.event;
|
|
881
881
|
function Ti() {
|
|
882
882
|
}
|
|
883
883
|
function xi() {
|
|
@@ -886,13 +886,13 @@ function xi() {
|
|
|
886
886
|
function Ai() {
|
|
887
887
|
return this.defaultPrevented;
|
|
888
888
|
}
|
|
889
|
-
|
|
889
|
+
N.event = function(e) {
|
|
890
890
|
return Tr && (e = Tr(e)), e.persist = Ti, e.isPropagationStopped = xi, e.isDefaultPrevented = Ai, e.nativeEvent = e;
|
|
891
891
|
};
|
|
892
892
|
var Bn, Si = { enumerable: !1, configurable: !0, get: function() {
|
|
893
893
|
return this.class;
|
|
894
|
-
} }, xr =
|
|
895
|
-
|
|
894
|
+
} }, xr = N.vnode;
|
|
895
|
+
N.vnode = function(e) {
|
|
896
896
|
typeof e.type == "string" && function(t) {
|
|
897
897
|
var n = t.props, r = t.type, o = {}, a = r.indexOf("-") === -1;
|
|
898
898
|
for (var i in n) {
|
|
@@ -909,12 +909,12 @@ R.vnode = function(e) {
|
|
|
909
909
|
})), n.class && !n.className ? (o.class = n.class, Object.defineProperty(o, "className", Si)) : (n.className && !n.class || n.class && n.className) && (o.class = o.className = n.className), t.props = o;
|
|
910
910
|
}(e), e.$$typeof = Lo, xr && xr(e);
|
|
911
911
|
};
|
|
912
|
-
var Ar =
|
|
913
|
-
|
|
912
|
+
var Ar = N.__r;
|
|
913
|
+
N.__r = function(e) {
|
|
914
914
|
Ar && Ar(e), Bn = e.__c;
|
|
915
915
|
};
|
|
916
|
-
var Sr =
|
|
917
|
-
|
|
916
|
+
var Sr = N.diffed;
|
|
917
|
+
N.diffed = function(e) {
|
|
918
918
|
Sr && Sr(e);
|
|
919
919
|
var t = e.props, n = e.__e;
|
|
920
920
|
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), Bn = null;
|
|
@@ -3321,39 +3321,39 @@ var as = (
|
|
|
3321
3321
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3322
3322
|
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, M(E, x({}, E)));
|
|
3323
3323
|
this.bumpSpace();
|
|
3324
|
-
var
|
|
3325
|
-
if (s !== "select" &&
|
|
3324
|
+
var R = this.parseIdentifierIfPossible(), g = 0;
|
|
3325
|
+
if (s !== "select" && R.value === "offset") {
|
|
3326
3326
|
if (!this.bumpIf(":"))
|
|
3327
3327
|
return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M(this.clonePosition(), this.clonePosition()));
|
|
3328
3328
|
this.bumpSpace();
|
|
3329
3329
|
var c = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3330
3330
|
if (c.err)
|
|
3331
3331
|
return c;
|
|
3332
|
-
this.bumpSpace(),
|
|
3332
|
+
this.bumpSpace(), R = this.parseIdentifierIfPossible(), g = c.val;
|
|
3333
3333
|
}
|
|
3334
|
-
var
|
|
3335
|
-
if (
|
|
3336
|
-
return
|
|
3334
|
+
var O = this.tryParsePluralOrSelectOptions(t, s, n, R);
|
|
3335
|
+
if (O.err)
|
|
3336
|
+
return O;
|
|
3337
3337
|
var _ = this.tryParseArgumentClose(o);
|
|
3338
3338
|
if (_.err)
|
|
3339
3339
|
return _;
|
|
3340
|
-
var
|
|
3340
|
+
var k = M(o, this.clonePosition());
|
|
3341
3341
|
return s === "select" ? {
|
|
3342
3342
|
val: {
|
|
3343
3343
|
type: F.select,
|
|
3344
3344
|
value: r,
|
|
3345
|
-
options: Mr(
|
|
3346
|
-
location:
|
|
3345
|
+
options: Mr(O.val),
|
|
3346
|
+
location: k
|
|
3347
3347
|
},
|
|
3348
3348
|
err: null
|
|
3349
3349
|
} : {
|
|
3350
3350
|
val: {
|
|
3351
3351
|
type: F.plural,
|
|
3352
3352
|
value: r,
|
|
3353
|
-
options: Mr(
|
|
3353
|
+
options: Mr(O.val),
|
|
3354
3354
|
offset: g,
|
|
3355
3355
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3356
|
-
location:
|
|
3356
|
+
location: k
|
|
3357
3357
|
},
|
|
3358
3358
|
err: null
|
|
3359
3359
|
};
|
|
@@ -3699,8 +3699,8 @@ function Lt(e, t, n, r, o, a, i) {
|
|
|
3699
3699
|
throw new Oe(`Intl.PluralRules is not available in this environment.
|
|
3700
3700
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3701
3701
|
`, Te.MISSING_INTL_API, i);
|
|
3702
|
-
var
|
|
3703
|
-
E = m.options[
|
|
3702
|
+
var R = n.getPluralRules(t, { type: m.pluralType }).select(d - (m.offset || 0));
|
|
3703
|
+
E = m.options[R] || m.options.other;
|
|
3704
3704
|
}
|
|
3705
3705
|
if (!E)
|
|
3706
3706
|
throw new Hr(m.value, d, Object.keys(m.options), i);
|
|
@@ -4447,8 +4447,8 @@ function js() {
|
|
|
4447
4447
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, i = 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, h = e ? Symbol.for("react.memo") : 60115, _ = e ? Symbol.for("react.lazy") : 60116, b = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
|
|
4448
4448
|
function E(g) {
|
|
4449
4449
|
if (typeof g == "object" && g !== null) {
|
|
4450
|
-
var
|
|
4451
|
-
switch (
|
|
4450
|
+
var O = g.$$typeof;
|
|
4451
|
+
switch (O) {
|
|
4452
4452
|
case t:
|
|
4453
4453
|
switch (g = g.type, g) {
|
|
4454
4454
|
case l:
|
|
@@ -4467,20 +4467,20 @@ function js() {
|
|
|
4467
4467
|
case i:
|
|
4468
4468
|
return g;
|
|
4469
4469
|
default:
|
|
4470
|
-
return
|
|
4470
|
+
return O;
|
|
4471
4471
|
}
|
|
4472
4472
|
}
|
|
4473
4473
|
case n:
|
|
4474
|
-
return
|
|
4474
|
+
return O;
|
|
4475
4475
|
}
|
|
4476
4476
|
}
|
|
4477
4477
|
}
|
|
4478
|
-
function
|
|
4478
|
+
function R(g) {
|
|
4479
4479
|
return E(g) === u;
|
|
4480
4480
|
}
|
|
4481
4481
|
return D.AsyncMode = l, D.ConcurrentMode = u, D.ContextConsumer = s, D.ContextProvider = i, D.Element = t, D.ForwardRef = m, D.Fragment = r, D.Lazy = _, D.Memo = h, D.Portal = n, D.Profiler = a, D.StrictMode = o, D.Suspense = c, D.isAsyncMode = function(g) {
|
|
4482
|
-
return
|
|
4483
|
-
}, D.isConcurrentMode =
|
|
4482
|
+
return R(g) || E(g) === l;
|
|
4483
|
+
}, D.isConcurrentMode = R, D.isContextConsumer = function(g) {
|
|
4484
4484
|
return E(g) === s;
|
|
4485
4485
|
}, D.isContextProvider = function(g) {
|
|
4486
4486
|
return E(g) === i;
|
|
@@ -4722,7 +4722,7 @@ const Qs = {
|
|
|
4722
4722
|
"credit-features.credit-cost-display": "{creditCost} (TAE {taegPercentage})",
|
|
4723
4723
|
"credit-features.information": "Compruebe tu capacidad de reembolso antes de comprometerte.",
|
|
4724
4724
|
"credit-features.information.title": "El crédito y/o pago a plazos es un compromiso y debe devolverse.",
|
|
4725
|
-
"credit-features.legal-text": "
|
|
4725
|
+
"credit-features.legal-text": " Préstamo de {totalWithoutFirstInstallment} a un tipo deudor fijo a {taegPercentage} a lo largo de un periodo de {installmeentsCountWithoutFirst} meses. Además de un depósito de {firstInstallmentAmount}, esto te permitirá financiar una compra de {productPriceWithoutCreditCost}. Sujeto a revisión y aceptación por parte de Alma. Plazo legal de retractación de 14 días. Simulación presentada por Alma, inscrita en el Registro Mercantil de Nanterre con el número 839 100 575, sociedad de pago y financiación autorizada por la ACPR con el número 17408 (número CIB / código bancario).",
|
|
4726
4726
|
"credit-features.total-credit-cost": "Coste de crédito (incl. en el total)",
|
|
4727
4727
|
"eligibility-modal.bullet-1": "Elige <strong>Alma</strong> como método de pago.",
|
|
4728
4728
|
"eligibility-modal.bullet-2": "Déjate guiar y válida tu pago en <strong>2 minutos.</strong>",
|
|
@@ -4815,7 +4815,7 @@ const Qs = {
|
|
|
4815
4815
|
"credit-features.credit-cost-display": "{creditCost} (gemiddeld rente percentage {taegPercentage})",
|
|
4816
4816
|
"credit-features.information": "Controleer uw terugbetalingscapaciteit voordat u een toezegging doet.",
|
|
4817
4817
|
"credit-features.information.title": "Krediet is een verplichting en moet worden terugbetaald.",
|
|
4818
|
-
"credit-features.legal-text": "
|
|
4818
|
+
"credit-features.legal-text": "Krediet van {totalWithoutFirstInstallment} tegen een vaste rentevoet van {taegPercentage} over een periode van {installmeentsCountWithoutFirst} maanden. Naast een aanbetaling van {firstInstallmentAmount}, kun je hiermee een aankoop financieren van {productPriceWithoutCreditCost}. Onder voorbehoud van beoordeling en aanvaarding door Alma. Wettelijke herroepingsrecht van 14 dagen. Simulatie aangeboden door Alma, ingeschreven in het handels- en bedrijvenregister van Nanterre onder het nummer 839 100 575, betalings- en financieringsmaatschappij erkend door de ACPR onder nummer 17408 (CIB-nummer / bankcode).",
|
|
4819
4819
|
"credit-features.total-credit-cost": "Waarvan kredietkosten",
|
|
4820
4820
|
"eligibility-modal.bullet-1": "Kies <strong>Alma</strong> bij het afrekenen om de eerste termijnbetaling te voldoen. Dit kan gemakkelijk via jouw favoriete betaalmethode.",
|
|
4821
4821
|
"eligibility-modal.bullet-2": "Betaal gemakkelijk <strong>binnen 1 minuut </strong>. Je hebt hier geen account voor nodig.",
|
|
@@ -4900,7 +4900,7 @@ const Qs = {
|
|
|
4900
4900
|
),
|
|
4901
4901
|
0
|
|
4902
4902
|
).toString().replace("-", "A"), ll = (e) => Date.now() - e >= 36e5;
|
|
4903
|
-
var ul = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/
|
|
4903
|
+
var ul = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_71dd144f-9ff7-4f2a-bf60-07921f7afc4d", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", USER: "runner", BUILD_VERSION: "v4.0.4", npm_config_user_agent: "npm/10.9.2 node/v22.14.0 linux x64 workspaces/false ci/github-actions", CI: "true", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_71dd144f-9ff7-4f2a-bf60-07921f7afc4d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_config_noproxy: "", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_json: "/home/runner/work/widgets/widgets/package.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "alma", npm_package_engines_node: ">=6.0.0", GRADLE_HOME: "/usr/share/gradle-8.12.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.0.13004108", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "43338473", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/.npmrc", npm_config_local_prefix: "/home/runner/work/widgets/widgets", SYSTEMD_EXEC_PID: "836", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", COLOR: "0", NVM_DIR: "/home/runner/.nvm", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250223.1.0", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.6/x64", JOURNAL_STREAM: "8:7556", GITHUB_WORKFLOW: "Release", _: "/opt/hostedtoolcache/node/22.14.0/x64/bin/npm", npm_config_prefix: "/opt/hostedtoolcache/node/22.14.0/x64", npm_config_npm_version: "10.9.2", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13569247952", STATS_VMFE: "true", npm_config_cache: "/home/runner/.npm", GITHUB_REF_TYPE: "tag", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "4a9dd9cb714b1e3b00afc956966f31b66ca75969", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "alma/widgets/.github/workflows/release.yml@refs/tags/v4.0.4", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_config_node_gyp: "/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/widgets/widgets/node_modules/.bin:/home/runner/work/widgets/widgets/node_modules/.bin:/home/runner/work/widgets/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/widgets/widgets/node_modules/.bin:/home/runner/work/widgets/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_8d679a5d-8367-493e-bbde-26959bb09ad7", INVOCATION_ID: "f4c927299c5d4eff8e068f763c838a6a", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", npm_package_name: "@alma/widgets", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "26", GITHUB_TRIGGERING_ACTOR: "FranceBe", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 155", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "v4.0.4", GITHUB_REPOSITORY: "alma/widgets", STATS_D_D: "false", npm_lifecycle_script: "vite", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", GITHUB_REPOSITORY_ID: "436622633", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_package_version: "4.0.4", npm_lifecycle_event: "npx", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/widgets/widgets", ACCEPT_EULA: "Y", GITHUB_JOB: "publish-package", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_config_commitizen_path: "./node_modules/cz-conventional-changelog", GITHUB_SHA: "4a9dd9cb714b1e3b00afc956966f31b66ca75969", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", GITHUB_REF: "refs/tags/v4.0.4", GITHUB_ACTOR: "FranceBe", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_config_globalconfig: "/opt/hostedtoolcache/node/22.14.0/x64/etc/npmrc", npm_config_init_module: "/home/runner/.npm-init.js", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_71dd144f-9ff7-4f2a-bf60-07921f7afc4d", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/widgets/widgets", GITHUB_ACTOR_ID: "33830009", RUNNER_WORKSPACE: "/home/runner/work/widgets", npm_execpath: "/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/npm-cli.js", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "release", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_71dd144f-9ff7-4f2a-bf60-07921f7afc4d", npm_config_global_prefix: "/opt/hostedtoolcache/node/22.14.0/x64", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_command: "exec", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_71dd144f-9ff7-4f2a-bf60-07921f7afc4d", INIT_CWD: "/home/runner/work/widgets/widgets", EDITOR: "vi", NODE_ENV: "production" };
|
|
4904
4904
|
const cl = () => ({
|
|
4905
4905
|
setCache: (a, i) => {
|
|
4906
4906
|
const s = Date.now();
|
|
@@ -4917,9 +4917,16 @@ const cl = () => ({
|
|
|
4917
4917
|
sessionStorage.removeItem(a);
|
|
4918
4918
|
},
|
|
4919
4919
|
createKey: (a) => {
|
|
4920
|
-
const {
|
|
4920
|
+
const {
|
|
4921
|
+
purchaseAmount: i,
|
|
4922
|
+
plans: s,
|
|
4923
|
+
customerBillingCountry: l,
|
|
4924
|
+
customerShippingCountry: u,
|
|
4925
|
+
domain: m,
|
|
4926
|
+
merchantId: c
|
|
4927
|
+
} = a, d = i.toString(), h = JSON.stringify(s), _ = ul.BUILD_VERSION;
|
|
4921
4928
|
return sl(
|
|
4922
|
-
`${m}${c}${l}${u}${
|
|
4929
|
+
`${m}${c}${d}${h}${l}${u}${_}`
|
|
4923
4930
|
);
|
|
4924
4931
|
}
|
|
4925
4932
|
});
|
|
@@ -4953,58 +4960,61 @@ const fl = (e, t) => e.eligible && t ? e.purchase_amount >= (t == null ? void 0
|
|
|
4953
4960
|
}) : e.filter(
|
|
4954
4961
|
(n) => !(n.installments_count === 1 && n.deferred_days === 0 && n.deferred_months === 0)
|
|
4955
4962
|
);
|
|
4956
|
-
var pl = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/
|
|
4963
|
+
var pl = { GITHUB_STATE: "/home/runner/work/_temp/_runner_file_commands/save_state_71dd144f-9ff7-4f2a-bf60-07921f7afc4d", STATS_TRP: "true", DEPLOYMENT_BASEPATH: "/opt/runner", DOTNET_NOLOGO: "1", USER: "runner", BUILD_VERSION: "v4.0.4", npm_config_user_agent: "npm/10.9.2 node/v22.14.0 linux x64 workspaces/false ci/github-actions", CI: "true", RUNNER_ENVIRONMENT: "github-hosted", GITHUB_ENV: "/home/runner/work/_temp/_runner_file_commands/set_env_71dd144f-9ff7-4f2a-bf60-07921f7afc4d", PIPX_HOME: "/opt/pipx", npm_node_execpath: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", JAVA_HOME_8_X64: "/usr/lib/jvm/temurin-8-jdk-amd64", SHLVL: "1", npm_config_noproxy: "", HOME: "/home/runner", RUNNER_TEMP: "/home/runner/work/_temp", GITHUB_EVENT_PATH: "/home/runner/work/_temp/_github_workflow/event.json", npm_package_json: "/home/runner/work/widgets/widgets/package.json", JAVA_HOME_11_X64: "/usr/lib/jvm/temurin-11-jdk-amd64", PIPX_BIN_DIR: "/opt/pipx_bin", GITHUB_REPOSITORY_OWNER: "alma", npm_package_engines_node: ">=6.0.0", GRADLE_HOME: "/usr/share/gradle-8.12.1", ANDROID_NDK_LATEST_HOME: "/usr/local/lib/android/sdk/ndk/28.0.13004108", JAVA_HOME_21_X64: "/usr/lib/jvm/temurin-21-jdk-amd64", STATS_RDCL: "true", GITHUB_RETENTION_DAYS: "90", GITHUB_REPOSITORY_OWNER_ID: "43338473", POWERSHELL_DISTRIBUTION_CHANNEL: "GitHub-Actions-ubuntu24", AZURE_EXTENSION_DIR: "/opt/az/azcliextensions", GITHUB_HEAD_REF: "", npm_config_userconfig: "/home/runner/.npmrc", npm_config_local_prefix: "/home/runner/work/widgets/widgets", SYSTEMD_EXEC_PID: "836", GITHUB_GRAPHQL_URL: "https://api.github.com/graphql", COLOR: "0", NVM_DIR: "/home/runner/.nvm", DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1", GOROOT_1_21_X64: "/opt/hostedtoolcache/go/1.21.13/x64", JAVA_HOME_17_X64: "/usr/lib/jvm/temurin-17-jdk-amd64", ImageVersion: "20250223.1.0", RUNNER_OS: "Linux", GITHUB_API_URL: "https://api.github.com", GOROOT_1_22_X64: "/opt/hostedtoolcache/go/1.22.12/x64", SWIFT_PATH: "/usr/share/swift/usr/bin", RUNNER_USER: "runner", STATS_V3PS: "true", CHROMEWEBDRIVER: "/usr/local/share/chromedriver-linux64", GOROOT_1_23_X64: "/opt/hostedtoolcache/go/1.23.6/x64", JOURNAL_STREAM: "8:7556", GITHUB_WORKFLOW: "Release", _: "/opt/hostedtoolcache/node/22.14.0/x64/bin/npm", npm_config_prefix: "/opt/hostedtoolcache/node/22.14.0/x64", npm_config_npm_version: "10.9.2", MEMORY_PRESSURE_WATCH: "/sys/fs/cgroup/system.slice/runner-provisioner.service/memory.pressure", ACTIONS_RUNNER_ACTION_ARCHIVE_CACHE: "/opt/actionarchivecache", STATS_D: "false", GITHUB_RUN_ID: "13569247952", STATS_VMFE: "true", npm_config_cache: "/home/runner/.npm", GITHUB_REF_TYPE: "tag", BOOTSTRAP_HASKELL_NONINTERACTIVE: "1", GITHUB_WORKFLOW_SHA: "4a9dd9cb714b1e3b00afc956966f31b66ca75969", GITHUB_BASE_REF: "", ImageOS: "ubuntu24", GITHUB_WORKFLOW_REF: "alma/widgets/.github/workflows/release.yml@refs/tags/v4.0.4", PERFLOG_LOCATION_SETTING: "RUNNER_PERFLOG", GITHUB_ACTION_REPOSITORY: "", npm_config_node_gyp: "/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js", PATH: "/home/runner/work/widgets/widgets/node_modules/.bin:/home/runner/work/widgets/widgets/node_modules/.bin:/home/runner/work/widgets/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/home/runner/work/widgets/widgets/node_modules/.bin:/home/runner/work/widgets/node_modules/.bin:/home/runner/work/node_modules/.bin:/home/runner/node_modules/.bin:/home/node_modules/.bin:/node_modules/.bin:/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin:/opt/hostedtoolcache/node/22.14.0/x64/bin:/snap/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/bin:/home/runner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin", ANT_HOME: "/usr/share/ant", DOTNET_MULTILEVEL_LOOKUP: "0", RUNNER_TRACKING_ID: "github_8d679a5d-8367-493e-bbde-26959bb09ad7", INVOCATION_ID: "f4c927299c5d4eff8e068f763c838a6a", RUNNER_TOOL_CACHE: "/opt/hostedtoolcache", NODE: "/opt/hostedtoolcache/node/22.14.0/x64/bin/node", npm_package_name: "@alma/widgets", GITHUB_ACTION: "__run_3", GITHUB_RUN_NUMBER: "26", GITHUB_TRIGGERING_ACTOR: "FranceBe", RUNNER_ARCH: "X64", XDG_RUNTIME_DIR: "/run/user/1001", AGENT_TOOLSDIRECTORY: "/opt/hostedtoolcache", LANG: "C.UTF-8", VCPKG_INSTALLATION_ROOT: "/usr/local/share/vcpkg", CONDA: "/usr/share/miniconda", RUNNER_NAME: "GitHub Actions 155", XDG_CONFIG_HOME: "/home/runner/.config", STATS_VMD: "true", GITHUB_REF_NAME: "v4.0.4", GITHUB_REPOSITORY: "alma/widgets", STATS_D_D: "false", npm_lifecycle_script: "vite", STATS_UE: "true", ANDROID_NDK_ROOT: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_ACTION_REF: "", DEBIAN_FRONTEND: "noninteractive", GITHUB_REPOSITORY_ID: "436622633", GITHUB_ACTIONS: "true", STATS_PIP: "false", npm_package_version: "4.0.4", npm_lifecycle_event: "npx", GITHUB_REF_PROTECTED: "false", GITHUB_WORKSPACE: "/home/runner/work/widgets/widgets", ACCEPT_EULA: "Y", GITHUB_JOB: "publish-package", RUNNER_PERFLOG: "/home/runner/perflog", npm_package_config_commitizen_path: "./node_modules/cz-conventional-changelog", GITHUB_SHA: "4a9dd9cb714b1e3b00afc956966f31b66ca75969", GITHUB_RUN_ATTEMPT: "1", STATS_D_TC: "true", GITHUB_REF: "refs/tags/v4.0.4", GITHUB_ACTOR: "FranceBe", ANDROID_SDK_ROOT: "/usr/local/lib/android/sdk", npm_config_globalconfig: "/opt/hostedtoolcache/node/22.14.0/x64/etc/npmrc", npm_config_init_module: "/home/runner/.npm-init.js", GITHUB_PATH: "/home/runner/work/_temp/_runner_file_commands/add_path_71dd144f-9ff7-4f2a-bf60-07921f7afc4d", JAVA_HOME: "/usr/lib/jvm/temurin-17-jdk-amd64", PWD: "/home/runner/work/widgets/widgets", GITHUB_ACTOR_ID: "33830009", RUNNER_WORKSPACE: "/home/runner/work/widgets", npm_execpath: "/opt/hostedtoolcache/node/22.14.0/x64/lib/node_modules/npm/bin/npm-cli.js", HOMEBREW_CLEANUP_PERIODIC_FULL_DAYS: "3650", STATS_TIS: "mining", GITHUB_EVENT_NAME: "release", HOMEBREW_NO_AUTO_UPDATE: "1", ANDROID_HOME: "/usr/local/lib/android/sdk", GITHUB_SERVER_URL: "https://github.com", GECKOWEBDRIVER: "/usr/local/share/gecko_driver", GHCUP_INSTALL_BASE_PREFIX: "/usr/local", GITHUB_OUTPUT: "/home/runner/work/_temp/_runner_file_commands/set_output_71dd144f-9ff7-4f2a-bf60-07921f7afc4d", npm_config_global_prefix: "/opt/hostedtoolcache/node/22.14.0/x64", EDGEWEBDRIVER: "/usr/local/share/edge_driver", STATS_EXT: "true", npm_command: "exec", ANDROID_NDK: "/usr/local/lib/android/sdk/ndk/27.2.12479018", SGX_AESM_ADDR: "1", CHROME_BIN: "/usr/bin/google-chrome", SELENIUM_JAR_PATH: "/usr/share/java/selenium-server.jar", MEMORY_PRESSURE_WRITE: "c29tZSAyMDAwMDAgMjAwMDAwMAA=", STATS_EXTP: "https://provjobdprod.z13.web.core.windows.net/settings/provjobdsettings-latest/provjobd.data", ANDROID_NDK_HOME: "/usr/local/lib/android/sdk/ndk/27.2.12479018", GITHUB_STEP_SUMMARY: "/home/runner/work/_temp/_runner_file_commands/step_summary_71dd144f-9ff7-4f2a-bf60-07921f7afc4d", INIT_CWD: "/home/runner/work/widgets/widgets", EDITOR: "vi", NODE_ENV: "production" };
|
|
4957
4964
|
const Ca = (e, { domain: t, merchantId: n }, r, o, a) => {
|
|
4958
|
-
var
|
|
4959
|
-
const [i, s] = oe([]), [l, u] = oe(
|
|
4965
|
+
var E, R;
|
|
4966
|
+
const [i, s] = oe([]), [l, u] = oe(ce.PENDING), { getCache: m, setCache: c, createKey: d, clearCache: h } = cl(), _ = d({
|
|
4960
4967
|
purchaseAmount: e,
|
|
4961
4968
|
plans: r,
|
|
4962
4969
|
customerBillingCountry: o,
|
|
4963
|
-
customerShippingCountry: a
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4970
|
+
customerShippingCountry: a,
|
|
4971
|
+
domain: t,
|
|
4972
|
+
merchantId: n
|
|
4973
|
+
}), b = (E = m(_)) == null ? void 0 : E.value, v = (R = m(_)) == null ? void 0 : R.timestamp, y = v && ll(v), T = r == null ? void 0 : r.map((g) => ({
|
|
4974
|
+
installments_count: g.installmentsCount,
|
|
4975
|
+
deferred_days: g == null ? void 0 : g.deferredDays,
|
|
4976
|
+
deferred_months: g == null ? void 0 : g.deferredMonths
|
|
4968
4977
|
}));
|
|
4969
4978
|
return ue(() => {
|
|
4970
|
-
if (l ===
|
|
4971
|
-
let
|
|
4972
|
-
o && (
|
|
4979
|
+
if (l === ce.PENDING) {
|
|
4980
|
+
let g = null;
|
|
4981
|
+
o && (g = {
|
|
4973
4982
|
country: o
|
|
4974
4983
|
});
|
|
4975
|
-
let
|
|
4976
|
-
a && (
|
|
4984
|
+
let O = null;
|
|
4985
|
+
a && (O = {
|
|
4977
4986
|
country: a
|
|
4978
|
-
}),
|
|
4987
|
+
}), b && !y && (s(b), u(ce.SUCCESS)), y && h(), b || ml(
|
|
4979
4988
|
{
|
|
4980
4989
|
purchase_amount: e,
|
|
4981
|
-
queries:
|
|
4982
|
-
billing_address:
|
|
4983
|
-
shipping_address:
|
|
4990
|
+
queries: T,
|
|
4991
|
+
billing_address: g,
|
|
4992
|
+
shipping_address: O
|
|
4984
4993
|
},
|
|
4985
4994
|
{
|
|
4986
4995
|
Authorization: `Alma-Merchant-Auth ${n}`,
|
|
4987
4996
|
"X-Alma-Agent": `Alma Widget/${pl.BUILD_VERSION}`
|
|
4988
4997
|
},
|
|
4989
4998
|
`${t}/v2/payments/eligibility`
|
|
4990
|
-
).then((
|
|
4991
|
-
|
|
4999
|
+
).then((k) => {
|
|
5000
|
+
"error_code" in k ? u(ce.FAILED) : (s(k), c(_, k), u(ce.SUCCESS));
|
|
4992
5001
|
}).catch(() => {
|
|
4993
|
-
u(
|
|
5002
|
+
u(ce.FAILED);
|
|
4994
5003
|
});
|
|
4995
5004
|
}
|
|
4996
5005
|
}, [
|
|
4997
5006
|
l,
|
|
4998
5007
|
e,
|
|
4999
|
-
|
|
5008
|
+
_,
|
|
5000
5009
|
o,
|
|
5001
5010
|
a,
|
|
5002
|
-
|
|
5003
|
-
v,
|
|
5011
|
+
b,
|
|
5004
5012
|
y,
|
|
5013
|
+
T,
|
|
5005
5014
|
n,
|
|
5006
5015
|
t,
|
|
5007
|
-
c
|
|
5016
|
+
c,
|
|
5017
|
+
h
|
|
5008
5018
|
]), [hl(i, r), l];
|
|
5009
5019
|
};
|
|
5010
5020
|
var Xn = {};
|
|
@@ -5368,7 +5378,7 @@ const P = /* @__PURE__ */ Et(ql), Xl = "_container_xqepo_1", Zl = "_total_xqepo_
|
|
|
5368
5378
|
fees: Jl,
|
|
5369
5379
|
creditCost: Ql,
|
|
5370
5380
|
creditInfoLegalText: eu
|
|
5371
|
-
}, Z = "alma-eligibility-modal",
|
|
5381
|
+
}, Z = "alma-eligibility-modal", V = {
|
|
5372
5382
|
desktopModal: `${Z}-desktop-modal`,
|
|
5373
5383
|
mobileModal: `${Z}-mobile-modal`,
|
|
5374
5384
|
leftSide: `${Z}-left-side`,
|
|
@@ -5405,11 +5415,11 @@ const P = /* @__PURE__ */ Et(ql), Xl = "_container_xqepo_1", Zl = "_total_xqepo_
|
|
|
5405
5415
|
)), /* @__PURE__ */ f.createElement(
|
|
5406
5416
|
"div",
|
|
5407
5417
|
{
|
|
5408
|
-
className: P(Me.container,
|
|
5418
|
+
className: P(Me.container, V.summary),
|
|
5409
5419
|
"data-testid": "modal-summary"
|
|
5410
5420
|
},
|
|
5411
|
-
/* @__PURE__ */ f.createElement("div", { className: P(Me.total,
|
|
5412
|
-
/* @__PURE__ */ f.createElement("div", { className: P(Me.fees,
|
|
5421
|
+
/* @__PURE__ */ f.createElement("div", { className: P(Me.total, V.scheduleTotal) }, /* @__PURE__ */ f.createElement(L, { tagName: "div", id: "installments.total-amount", defaultMessage: "Total" }), /* @__PURE__ */ f.createElement(Ee, { value: n || 0, style: "currency", currency: "EUR" })),
|
|
5422
|
+
/* @__PURE__ */ f.createElement("div", { className: P(Me.fees, V.scheduleCredit) }, i ? /* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement(
|
|
5413
5423
|
L,
|
|
5414
5424
|
{
|
|
5415
5425
|
id: "credit-features.total-credit-cost",
|
|
@@ -5731,13 +5741,13 @@ var Su = yu, Iu = Ou(Su), Cu = ge;
|
|
|
5731
5741
|
function Ou(e) {
|
|
5732
5742
|
return e && e.__esModule ? e : { default: e };
|
|
5733
5743
|
}
|
|
5734
|
-
var
|
|
5744
|
+
var fe = null;
|
|
5735
5745
|
function Nu() {
|
|
5736
|
-
|
|
5746
|
+
fe && (fe.removeAttribute ? fe.removeAttribute("aria-hidden") : fe.length != null ? fe.forEach(function(e) {
|
|
5737
5747
|
return e.removeAttribute("aria-hidden");
|
|
5738
|
-
}) : document.querySelectorAll(
|
|
5748
|
+
}) : document.querySelectorAll(fe).forEach(function(e) {
|
|
5739
5749
|
return e.removeAttribute("aria-hidden");
|
|
5740
|
-
})),
|
|
5750
|
+
})), fe = null;
|
|
5741
5751
|
}
|
|
5742
5752
|
function Ru() {
|
|
5743
5753
|
}
|
|
@@ -5751,10 +5761,10 @@ function wu(e) {
|
|
|
5751
5761
|
var n = document.querySelectorAll(t);
|
|
5752
5762
|
Ua(n, t), t = n;
|
|
5753
5763
|
}
|
|
5754
|
-
return
|
|
5764
|
+
return fe = t || fe, fe;
|
|
5755
5765
|
}
|
|
5756
5766
|
function Jn(e) {
|
|
5757
|
-
var t = e ||
|
|
5767
|
+
var t = e || fe;
|
|
5758
5768
|
return t ? Array.isArray(t) || t instanceof HTMLCollection || t instanceof NodeList ? t : [t] : ((0, Iu.default)(!1, ["react-modal: App element is not defined.", "Please use `Modal.setAppElement(el)` or set `appElement={el}`.", "This is needed so screen readers don't see main content", "when modal is opened. It is not recommended, but you can opt-out", "by setting `ariaHideApp={false}`."].join(" ")), []);
|
|
5759
5769
|
}
|
|
5760
5770
|
function Mu(e) {
|
|
@@ -5794,7 +5804,7 @@ function Pu(e) {
|
|
|
5794
5804
|
}
|
|
5795
5805
|
}
|
|
5796
5806
|
function Hu() {
|
|
5797
|
-
|
|
5807
|
+
fe = null;
|
|
5798
5808
|
}
|
|
5799
5809
|
var et = {};
|
|
5800
5810
|
Object.defineProperty(et, "__esModule", {
|
|
@@ -5913,9 +5923,9 @@ Vu.default.subscribe(Zu);
|
|
|
5913
5923
|
});
|
|
5914
5924
|
var n = Object.assign || function(A) {
|
|
5915
5925
|
for (var S = 1; S < arguments.length; S++) {
|
|
5916
|
-
var
|
|
5917
|
-
for (var p in
|
|
5918
|
-
Object.prototype.hasOwnProperty.call(
|
|
5926
|
+
var j = arguments[S];
|
|
5927
|
+
for (var p in j)
|
|
5928
|
+
Object.prototype.hasOwnProperty.call(j, p) && (A[p] = j[p]);
|
|
5919
5929
|
}
|
|
5920
5930
|
return A;
|
|
5921
5931
|
}, r = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(A) {
|
|
@@ -5923,33 +5933,33 @@ Vu.default.subscribe(Zu);
|
|
|
5923
5933
|
} : function(A) {
|
|
5924
5934
|
return A && typeof Symbol == "function" && A.constructor === Symbol && A !== Symbol.prototype ? "symbol" : typeof A;
|
|
5925
5935
|
}, o = /* @__PURE__ */ function() {
|
|
5926
|
-
function A(S,
|
|
5927
|
-
for (var p = 0; p <
|
|
5928
|
-
var
|
|
5929
|
-
|
|
5936
|
+
function A(S, j) {
|
|
5937
|
+
for (var p = 0; p < j.length; p++) {
|
|
5938
|
+
var I = j[p];
|
|
5939
|
+
I.enumerable = I.enumerable || !1, I.configurable = !0, "value" in I && (I.writable = !0), Object.defineProperty(S, I.key, I);
|
|
5930
5940
|
}
|
|
5931
5941
|
}
|
|
5932
|
-
return function(S,
|
|
5933
|
-
return
|
|
5942
|
+
return function(S, j, p) {
|
|
5943
|
+
return j && A(S.prototype, j), p && A(S, p), S;
|
|
5934
5944
|
};
|
|
5935
|
-
}(), a = Yn, i = Zn, s = g(i), l = ve, u =
|
|
5936
|
-
function
|
|
5945
|
+
}(), a = Yn, i = Zn, s = g(i), l = ve, u = R(l), m = gu, c = g(m), d = ye, h = R(d), _ = et, b = R(_), v = ge, y = g(v), T = tt, E = g(T);
|
|
5946
|
+
function R(A) {
|
|
5937
5947
|
if (A && A.__esModule)
|
|
5938
5948
|
return A;
|
|
5939
5949
|
var S = {};
|
|
5940
5950
|
if (A != null)
|
|
5941
|
-
for (var
|
|
5942
|
-
Object.prototype.hasOwnProperty.call(A,
|
|
5951
|
+
for (var j in A)
|
|
5952
|
+
Object.prototype.hasOwnProperty.call(A, j) && (S[j] = A[j]);
|
|
5943
5953
|
return S.default = A, S;
|
|
5944
5954
|
}
|
|
5945
5955
|
function g(A) {
|
|
5946
5956
|
return A && A.__esModule ? A : { default: A };
|
|
5947
5957
|
}
|
|
5948
|
-
function
|
|
5958
|
+
function O(A, S) {
|
|
5949
5959
|
if (!(A instanceof S))
|
|
5950
5960
|
throw new TypeError("Cannot call a class as a function");
|
|
5951
5961
|
}
|
|
5952
|
-
function
|
|
5962
|
+
function k(A, S) {
|
|
5953
5963
|
if (!A)
|
|
5954
5964
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5955
5965
|
return S && (typeof S == "object" || typeof S == "function") ? S : A;
|
|
@@ -5962,21 +5972,21 @@ Vu.default.subscribe(Zu);
|
|
|
5962
5972
|
var U = {
|
|
5963
5973
|
overlay: "ReactModal__Overlay",
|
|
5964
5974
|
content: "ReactModal__Content"
|
|
5965
|
-
},
|
|
5975
|
+
}, W = function(S) {
|
|
5966
5976
|
return S.code === "Tab" || S.keyCode === 9;
|
|
5967
|
-
},
|
|
5977
|
+
}, me = function(S) {
|
|
5968
5978
|
return S.code === "Escape" || S.keyCode === 27;
|
|
5969
|
-
}, Y = 0,
|
|
5979
|
+
}, Y = 0, G = function(A) {
|
|
5970
5980
|
q(S, A);
|
|
5971
|
-
function S(
|
|
5972
|
-
|
|
5973
|
-
var p =
|
|
5974
|
-
return p.setOverlayRef = function(
|
|
5975
|
-
p.overlay =
|
|
5976
|
-
}, p.setContentRef = function(
|
|
5977
|
-
p.content =
|
|
5981
|
+
function S(j) {
|
|
5982
|
+
O(this, S);
|
|
5983
|
+
var p = k(this, (S.__proto__ || Object.getPrototypeOf(S)).call(this, j));
|
|
5984
|
+
return p.setOverlayRef = function(I) {
|
|
5985
|
+
p.overlay = I, p.props.overlayRef && p.props.overlayRef(I);
|
|
5986
|
+
}, p.setContentRef = function(I) {
|
|
5987
|
+
p.content = I, p.props.contentRef && p.props.contentRef(I);
|
|
5978
5988
|
}, p.afterClose = function() {
|
|
5979
|
-
var
|
|
5989
|
+
var I = p.props, X = I.appElement, ae = I.ariaHideApp, z = I.htmlOpenClassName, Ne = I.bodyOpenClassName, Re = I.parentSelector, St = Re && Re().ownerDocument || document;
|
|
5980
5990
|
Ne && b.remove(St.body, Ne), z && b.remove(St.getElementsByTagName("html")[0], z), ae && Y > 0 && (Y -= 1, Y === 0 && h.show(X)), p.props.shouldFocusAfterRender && (p.props.shouldReturnFocusAfterClose ? (u.returnFocus(p.props.preventScroll), u.teardownScopedFocus()) : u.popWithoutFocus()), p.props.onAfterClose && p.props.onAfterClose(), E.default.deregister(p);
|
|
5981
5991
|
}, p.open = function() {
|
|
5982
5992
|
p.beforeOpen(), p.state.afterOpen && p.state.beforeClose ? (clearTimeout(p.closeTimer), p.setState({ beforeClose: !1 })) : (p.props.shouldFocusAfterRender && (u.setupScopedFocus(p.node), u.markForFocusLater()), p.setState({ isOpen: !0 }, function() {
|
|
@@ -5992,8 +6002,8 @@ Vu.default.subscribe(Zu);
|
|
|
5992
6002
|
}, p.focusContent = function() {
|
|
5993
6003
|
return p.content && !p.contentHasFocus() && p.content.focus({ preventScroll: !0 });
|
|
5994
6004
|
}, p.closeWithTimeout = function() {
|
|
5995
|
-
var
|
|
5996
|
-
p.setState({ beforeClose: !0, closesAt:
|
|
6005
|
+
var I = Date.now() + p.props.closeTimeoutMS;
|
|
6006
|
+
p.setState({ beforeClose: !0, closesAt: I }, function() {
|
|
5997
6007
|
p.closeTimer = setTimeout(p.closeWithoutTimeout, p.state.closesAt - Date.now());
|
|
5998
6008
|
});
|
|
5999
6009
|
}, p.closeWithoutTimeout = function() {
|
|
@@ -6003,36 +6013,36 @@ Vu.default.subscribe(Zu);
|
|
|
6003
6013
|
afterOpen: !1,
|
|
6004
6014
|
closesAt: null
|
|
6005
6015
|
}, p.afterClose);
|
|
6006
|
-
}, p.handleKeyDown = function(
|
|
6007
|
-
|
|
6008
|
-
}, p.handleOverlayOnClick = function(
|
|
6009
|
-
p.shouldClose === null && (p.shouldClose = !0), p.shouldClose && p.props.shouldCloseOnOverlayClick && (p.ownerHandlesClose() ? p.requestClose(
|
|
6016
|
+
}, p.handleKeyDown = function(I) {
|
|
6017
|
+
W(I) && (0, c.default)(p.content, I), p.props.shouldCloseOnEsc && me(I) && (I.stopPropagation(), p.requestClose(I));
|
|
6018
|
+
}, p.handleOverlayOnClick = function(I) {
|
|
6019
|
+
p.shouldClose === null && (p.shouldClose = !0), p.shouldClose && p.props.shouldCloseOnOverlayClick && (p.ownerHandlesClose() ? p.requestClose(I) : p.focusContent()), p.shouldClose = null;
|
|
6010
6020
|
}, p.handleContentOnMouseUp = function() {
|
|
6011
6021
|
p.shouldClose = !1;
|
|
6012
|
-
}, p.handleOverlayOnMouseDown = function(
|
|
6013
|
-
!p.props.shouldCloseOnOverlayClick &&
|
|
6022
|
+
}, p.handleOverlayOnMouseDown = function(I) {
|
|
6023
|
+
!p.props.shouldCloseOnOverlayClick && I.target == p.overlay && I.preventDefault();
|
|
6014
6024
|
}, p.handleContentOnClick = function() {
|
|
6015
6025
|
p.shouldClose = !1;
|
|
6016
6026
|
}, p.handleContentOnMouseDown = function() {
|
|
6017
6027
|
p.shouldClose = !1;
|
|
6018
|
-
}, p.requestClose = function(
|
|
6019
|
-
return p.ownerHandlesClose() && p.props.onRequestClose(
|
|
6028
|
+
}, p.requestClose = function(I) {
|
|
6029
|
+
return p.ownerHandlesClose() && p.props.onRequestClose(I);
|
|
6020
6030
|
}, p.ownerHandlesClose = function() {
|
|
6021
6031
|
return p.props.onRequestClose;
|
|
6022
6032
|
}, p.shouldBeClosed = function() {
|
|
6023
6033
|
return !p.state.isOpen && !p.state.beforeClose;
|
|
6024
6034
|
}, p.contentHasFocus = function() {
|
|
6025
6035
|
return document.activeElement === p.content || p.content.contains(document.activeElement);
|
|
6026
|
-
}, p.buildClassName = function(
|
|
6036
|
+
}, p.buildClassName = function(I, X) {
|
|
6027
6037
|
var ae = (typeof X == "undefined" ? "undefined" : r(X)) === "object" ? X : {
|
|
6028
|
-
base: U[
|
|
6029
|
-
afterOpen: U[
|
|
6030
|
-
beforeClose: U[
|
|
6038
|
+
base: U[I],
|
|
6039
|
+
afterOpen: U[I] + "--after-open",
|
|
6040
|
+
beforeClose: U[I] + "--before-close"
|
|
6031
6041
|
}, z = ae.base;
|
|
6032
6042
|
return p.state.afterOpen && (z = z + " " + ae.afterOpen), p.state.beforeClose && (z = z + " " + ae.beforeClose), typeof X == "string" && X ? z + " " + X : z;
|
|
6033
|
-
}, p.attributesFromObject = function(
|
|
6043
|
+
}, p.attributesFromObject = function(I, X) {
|
|
6034
6044
|
return Object.keys(X).reduce(function(ae, z) {
|
|
6035
|
-
return ae[
|
|
6045
|
+
return ae[I + "-" + z] = X[z], ae;
|
|
6036
6046
|
}, {});
|
|
6037
6047
|
}, p.state = {
|
|
6038
6048
|
afterOpen: !1,
|
|
@@ -6046,8 +6056,8 @@ Vu.default.subscribe(Zu);
|
|
|
6046
6056
|
}
|
|
6047
6057
|
}, {
|
|
6048
6058
|
key: "componentDidUpdate",
|
|
6049
|
-
value: function(p,
|
|
6050
|
-
this.props.isOpen && !p.isOpen ? this.open() : !this.props.isOpen && p.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !
|
|
6059
|
+
value: function(p, I) {
|
|
6060
|
+
this.props.isOpen && !p.isOpen ? this.open() : !this.props.isOpen && p.isOpen && this.close(), this.props.shouldFocusAfterRender && this.state.isOpen && !I.isOpen && this.focusContent();
|
|
6051
6061
|
}
|
|
6052
6062
|
}, {
|
|
6053
6063
|
key: "componentWillUnmount",
|
|
@@ -6057,14 +6067,14 @@ Vu.default.subscribe(Zu);
|
|
|
6057
6067
|
}, {
|
|
6058
6068
|
key: "beforeOpen",
|
|
6059
6069
|
value: function() {
|
|
6060
|
-
var p = this.props,
|
|
6061
|
-
z && b.add(Re.body, z), ae && b.add(Re.getElementsByTagName("html")[0], ae), X && (Y += 1, h.hide(
|
|
6070
|
+
var p = this.props, I = p.appElement, X = p.ariaHideApp, ae = p.htmlOpenClassName, z = p.bodyOpenClassName, Ne = p.parentSelector, Re = Ne && Ne().ownerDocument || document;
|
|
6071
|
+
z && b.add(Re.body, z), ae && b.add(Re.getElementsByTagName("html")[0], ae), X && (Y += 1, h.hide(I)), E.default.register(this);
|
|
6062
6072
|
}
|
|
6063
6073
|
// Don't steal focus from inner elements
|
|
6064
6074
|
}, {
|
|
6065
6075
|
key: "render",
|
|
6066
6076
|
value: function() {
|
|
6067
|
-
var p = this.props,
|
|
6077
|
+
var p = this.props, I = p.id, X = p.className, ae = p.overlayClassName, z = p.defaultStyles, Ne = p.children, Re = X ? {} : z.content, St = ae ? {} : z.overlay;
|
|
6068
6078
|
if (this.shouldBeClosed())
|
|
6069
6079
|
return null;
|
|
6070
6080
|
var Za = {
|
|
@@ -6074,7 +6084,7 @@ Vu.default.subscribe(Zu);
|
|
|
6074
6084
|
onClick: this.handleOverlayOnClick,
|
|
6075
6085
|
onMouseDown: this.handleOverlayOnMouseDown
|
|
6076
6086
|
}, Ka = n({
|
|
6077
|
-
id:
|
|
6087
|
+
id: I,
|
|
6078
6088
|
ref: this.setContentRef,
|
|
6079
6089
|
style: n({}, Re, this.props.style.content),
|
|
6080
6090
|
className: this.buildClassName("content", X),
|
|
@@ -6092,13 +6102,13 @@ Vu.default.subscribe(Zu);
|
|
|
6092
6102
|
}
|
|
6093
6103
|
}]), S;
|
|
6094
6104
|
}(a.Component);
|
|
6095
|
-
|
|
6105
|
+
G.defaultProps = {
|
|
6096
6106
|
style: {
|
|
6097
6107
|
overlay: {},
|
|
6098
6108
|
content: {}
|
|
6099
6109
|
},
|
|
6100
6110
|
defaultStyles: {}
|
|
6101
|
-
},
|
|
6111
|
+
}, G.propTypes = {
|
|
6102
6112
|
isOpen: s.default.bool.isRequired,
|
|
6103
6113
|
defaultStyles: s.default.shape({
|
|
6104
6114
|
content: s.default.object,
|
|
@@ -6135,7 +6145,7 @@ Vu.default.subscribe(Zu);
|
|
|
6135
6145
|
overlayElement: s.default.func,
|
|
6136
6146
|
contentElement: s.default.func,
|
|
6137
6147
|
testId: s.default.string
|
|
6138
|
-
}, t.default =
|
|
6148
|
+
}, t.default = G, e.exports = t.default;
|
|
6139
6149
|
})(xn, xn.exports);
|
|
6140
6150
|
var Ku = xn.exports;
|
|
6141
6151
|
function ka() {
|
|
@@ -6223,7 +6233,7 @@ var Qr = Object.assign || function(e) {
|
|
|
6223
6233
|
return function(t, n, r) {
|
|
6224
6234
|
return n && e(t.prototype, n), r && e(t, r), t;
|
|
6225
6235
|
};
|
|
6226
|
-
}(), Wa = Yn, Ut = xt(Wa), tc = Yn, Ft = xt(tc), nc = Zn,
|
|
6236
|
+
}(), Wa = Yn, Ut = xt(Wa), tc = Yn, Ft = xt(tc), nc = Zn, C = xt(nc), rc = Ku, eo = xt(rc), oc = ye, ac = sc(oc), Ce = ge, to = xt(Ce), ic = Qu;
|
|
6227
6237
|
function sc(e) {
|
|
6228
6238
|
if (e && e.__esModule)
|
|
6229
6239
|
return e;
|
|
@@ -6331,44 +6341,44 @@ var At = function(e) {
|
|
|
6331
6341
|
}]), t;
|
|
6332
6342
|
}(Wa.Component);
|
|
6333
6343
|
At.propTypes = {
|
|
6334
|
-
isOpen:
|
|
6335
|
-
style:
|
|
6336
|
-
content:
|
|
6337
|
-
overlay:
|
|
6344
|
+
isOpen: C.default.bool.isRequired,
|
|
6345
|
+
style: C.default.shape({
|
|
6346
|
+
content: C.default.object,
|
|
6347
|
+
overlay: C.default.object
|
|
6338
6348
|
}),
|
|
6339
|
-
portalClassName:
|
|
6340
|
-
bodyOpenClassName:
|
|
6341
|
-
htmlOpenClassName:
|
|
6342
|
-
className:
|
|
6343
|
-
base:
|
|
6344
|
-
afterOpen:
|
|
6345
|
-
beforeClose:
|
|
6349
|
+
portalClassName: C.default.string,
|
|
6350
|
+
bodyOpenClassName: C.default.string,
|
|
6351
|
+
htmlOpenClassName: C.default.string,
|
|
6352
|
+
className: C.default.oneOfType([C.default.string, C.default.shape({
|
|
6353
|
+
base: C.default.string.isRequired,
|
|
6354
|
+
afterOpen: C.default.string.isRequired,
|
|
6355
|
+
beforeClose: C.default.string.isRequired
|
|
6346
6356
|
})]),
|
|
6347
|
-
overlayClassName:
|
|
6348
|
-
base:
|
|
6349
|
-
afterOpen:
|
|
6350
|
-
beforeClose:
|
|
6357
|
+
overlayClassName: C.default.oneOfType([C.default.string, C.default.shape({
|
|
6358
|
+
base: C.default.string.isRequired,
|
|
6359
|
+
afterOpen: C.default.string.isRequired,
|
|
6360
|
+
beforeClose: C.default.string.isRequired
|
|
6351
6361
|
})]),
|
|
6352
|
-
appElement:
|
|
6353
|
-
onAfterOpen:
|
|
6354
|
-
onRequestClose:
|
|
6355
|
-
closeTimeoutMS:
|
|
6356
|
-
ariaHideApp:
|
|
6357
|
-
shouldFocusAfterRender:
|
|
6358
|
-
shouldCloseOnOverlayClick:
|
|
6359
|
-
shouldReturnFocusAfterClose:
|
|
6360
|
-
preventScroll:
|
|
6361
|
-
parentSelector:
|
|
6362
|
-
aria:
|
|
6363
|
-
data:
|
|
6364
|
-
role:
|
|
6365
|
-
contentLabel:
|
|
6366
|
-
shouldCloseOnEsc:
|
|
6367
|
-
overlayRef:
|
|
6368
|
-
contentRef:
|
|
6369
|
-
id:
|
|
6370
|
-
overlayElement:
|
|
6371
|
-
contentElement:
|
|
6362
|
+
appElement: C.default.oneOfType([C.default.instanceOf(to.default), C.default.instanceOf(Ce.SafeHTMLCollection), C.default.instanceOf(Ce.SafeNodeList), C.default.arrayOf(C.default.instanceOf(to.default))]),
|
|
6363
|
+
onAfterOpen: C.default.func,
|
|
6364
|
+
onRequestClose: C.default.func,
|
|
6365
|
+
closeTimeoutMS: C.default.number,
|
|
6366
|
+
ariaHideApp: C.default.bool,
|
|
6367
|
+
shouldFocusAfterRender: C.default.bool,
|
|
6368
|
+
shouldCloseOnOverlayClick: C.default.bool,
|
|
6369
|
+
shouldReturnFocusAfterClose: C.default.bool,
|
|
6370
|
+
preventScroll: C.default.bool,
|
|
6371
|
+
parentSelector: C.default.func,
|
|
6372
|
+
aria: C.default.object,
|
|
6373
|
+
data: C.default.object,
|
|
6374
|
+
role: C.default.string,
|
|
6375
|
+
contentLabel: C.default.string,
|
|
6376
|
+
shouldCloseOnEsc: C.default.bool,
|
|
6377
|
+
overlayRef: C.default.func,
|
|
6378
|
+
contentRef: C.default.func,
|
|
6379
|
+
id: C.default.string,
|
|
6380
|
+
overlayElement: C.default.func,
|
|
6381
|
+
contentElement: C.default.func
|
|
6372
6382
|
};
|
|
6373
6383
|
At.defaultProps = {
|
|
6374
6384
|
isOpen: !1,
|
|
@@ -6505,7 +6515,7 @@ const hc = "_modal_19xub_1", pc = "_content_19xub_15", _c = "_contentScrollable_
|
|
|
6505
6515
|
{
|
|
6506
6516
|
type: "button",
|
|
6507
6517
|
onClick: n,
|
|
6508
|
-
className: P($e.closeButton,
|
|
6518
|
+
className: P($e.closeButton, V.closeButton),
|
|
6509
6519
|
"data-testid": "modal-close-button"
|
|
6510
6520
|
},
|
|
6511
6521
|
/* @__PURE__ */ f.createElement(dc, null)
|
|
@@ -6732,13 +6742,13 @@ const Oc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6732
6742
|
buttons: wc,
|
|
6733
6743
|
active: Mc,
|
|
6734
6744
|
textButton: Pc
|
|
6735
|
-
}, Hc = ({ eligibilityPlans: e, currentPlanIndex: t, setCurrentPlanIndex: n }) => /* @__PURE__ */ f.createElement("div", { className: P(nn.buttons,
|
|
6745
|
+
}, Hc = ({ eligibilityPlans: e, currentPlanIndex: t, setCurrentPlanIndex: n }) => /* @__PURE__ */ f.createElement("div", { className: P(nn.buttons, V.eligibilityOptions) }, e.map((r, o) => /* @__PURE__ */ f.createElement(
|
|
6736
6746
|
"button",
|
|
6737
6747
|
{
|
|
6738
6748
|
type: "button",
|
|
6739
6749
|
key: `p${r.installments_count}x-d+${r.deferred_days}-m+${r.deferred_months}`,
|
|
6740
6750
|
className: P({
|
|
6741
|
-
[P(nn.active,
|
|
6751
|
+
[P(nn.active, V.activeOption)]: o === t
|
|
6742
6752
|
}),
|
|
6743
6753
|
onClick: () => n(o)
|
|
6744
6754
|
},
|
|
@@ -6762,7 +6772,7 @@ const Oc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6762
6772
|
}, Wc = ({ currentPlan: e }) => /* @__PURE__ */ f.createElement(
|
|
6763
6773
|
"div",
|
|
6764
6774
|
{
|
|
6765
|
-
className: P($c.schedule,
|
|
6775
|
+
className: P($c.schedule, V.scheduleDetails),
|
|
6766
6776
|
"data-testid": "modal-installments-element"
|
|
6767
6777
|
},
|
|
6768
6778
|
((e == null ? void 0 : e.payment_plan) || []).map((t, n) => /* @__PURE__ */ f.createElement(kc, { key: t.due_date * 1e3, installment: t, index: n }))
|
|
@@ -6891,7 +6901,7 @@ const Oc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6891
6901
|
"div",
|
|
6892
6902
|
{
|
|
6893
6903
|
"data-testid": "card-logos",
|
|
6894
|
-
className: P(lo.cardContainer,
|
|
6904
|
+
className: P(lo.cardContainer, V.cardContainer)
|
|
6895
6905
|
},
|
|
6896
6906
|
t.map((n) => /* @__PURE__ */ f.createElement("div", { key: n, className: lo.card, "data-testid": `card-logo-${n}` }, n === "cb" && /* @__PURE__ */ f.createElement(Vc, null), n === "amex" && /* @__PURE__ */ f.createElement(jc, null), n === "mastercard" && /* @__PURE__ */ f.createElement(zc, null), n === "visa" && /* @__PURE__ */ f.createElement(qc, null)))
|
|
6897
6907
|
);
|
|
@@ -6901,7 +6911,7 @@ const Oc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6901
6911
|
bullet: Yc
|
|
6902
6912
|
}, We = (e) => /* @__PURE__ */ f.createElement("strong", null, e), za = ({ isCurrentPlanP1X: e }) => (
|
|
6903
6913
|
// TODO: refactor this component into subcomponent to factorise code and be cleaner
|
|
6904
|
-
/* @__PURE__ */ f.createElement("div", { className: P(Pe.list,
|
|
6914
|
+
/* @__PURE__ */ f.createElement("div", { className: P(Pe.list, V.info), "data-testid": "modal-info-element" }, /* @__PURE__ */ f.createElement("div", { className: Pe.listItem }, /* @__PURE__ */ f.createElement("div", { className: P(Pe.bullet, V.bullet) }, "1"), /* @__PURE__ */ f.createElement("div", { className: V.infoMessage }, e ? /* @__PURE__ */ f.createElement(
|
|
6905
6915
|
L,
|
|
6906
6916
|
{
|
|
6907
6917
|
id: "eligibility-modal.p1x-bullet-1",
|
|
@@ -6915,7 +6925,7 @@ const Oc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6915
6925
|
defaultMessage: "Choisissez <strong>Alma</strong> au moment du paiement.",
|
|
6916
6926
|
values: { strong: We }
|
|
6917
6927
|
}
|
|
6918
|
-
))), /* @__PURE__ */ f.createElement("div", { className: Pe.listItem }, /* @__PURE__ */ f.createElement("div", { className: P(Pe.bullet,
|
|
6928
|
+
))), /* @__PURE__ */ f.createElement("div", { className: Pe.listItem }, /* @__PURE__ */ f.createElement("div", { className: P(Pe.bullet, V.bullet) }, "2"), /* @__PURE__ */ f.createElement("div", { className: V.infoMessage }, e ? /* @__PURE__ */ f.createElement(
|
|
6919
6929
|
L,
|
|
6920
6930
|
{
|
|
6921
6931
|
id: "eligibility-modal.p1x-bullet-2",
|
|
@@ -6929,7 +6939,7 @@ const Oc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6929
6939
|
defaultMessage: "Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>",
|
|
6930
6940
|
values: { strong: We }
|
|
6931
6941
|
}
|
|
6932
|
-
))), /* @__PURE__ */ f.createElement("div", { className: Pe.listItem }, /* @__PURE__ */ f.createElement("div", { className: P(Pe.bullet,
|
|
6942
|
+
))), /* @__PURE__ */ f.createElement("div", { className: Pe.listItem }, /* @__PURE__ */ f.createElement("div", { className: P(Pe.bullet, V.bullet) }, "3"), /* @__PURE__ */ f.createElement("div", { className: V.infoMessage }, e ? /* @__PURE__ */ f.createElement(
|
|
6933
6943
|
L,
|
|
6934
6944
|
{
|
|
6935
6945
|
id: "eligibility-modal.p1x-bullet-3",
|
|
@@ -6952,7 +6962,7 @@ const Oc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6952
6962
|
}) => /* @__PURE__ */ f.createElement(
|
|
6953
6963
|
"div",
|
|
6954
6964
|
{
|
|
6955
|
-
className: P(Qc.title,
|
|
6965
|
+
className: P(Qc.title, V.title),
|
|
6956
6966
|
"data-testid": "modal-title-element"
|
|
6957
6967
|
},
|
|
6958
6968
|
e && /* @__PURE__ */ f.createElement(
|
|
@@ -6984,11 +6994,11 @@ const Oc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6984
6994
|
}, om = ({ children: e, isSomePlanDeferred: t, cards: n, isCurrentPlanP1X: r }) => /* @__PURE__ */ f.createElement(
|
|
6985
6995
|
"div",
|
|
6986
6996
|
{
|
|
6987
|
-
className: P(rt.container,
|
|
6997
|
+
className: P(rt.container, V.desktopModal),
|
|
6988
6998
|
"data-testid": "modal-container"
|
|
6989
6999
|
},
|
|
6990
|
-
/* @__PURE__ */ f.createElement("aside", { className: P([rt.block, rt.left,
|
|
6991
|
-
/* @__PURE__ */ f.createElement("div", { className: P(rt.block,
|
|
7000
|
+
/* @__PURE__ */ f.createElement("aside", { className: P([rt.block, rt.left, V.leftSide]) }, /* @__PURE__ */ f.createElement(qa, { isSomePlanDeferred: t, isCurrentPlanP1X: r }), /* @__PURE__ */ f.createElement(za, { isCurrentPlanP1X: r }), n && /* @__PURE__ */ f.createElement(Va, { cards: n }), /* @__PURE__ */ f.createElement(er, { className: rt.logo, width: "75" })),
|
|
7001
|
+
/* @__PURE__ */ f.createElement("div", { className: P(rt.block, V.rightSide) }, e)
|
|
6992
7002
|
), am = "_noEligibility_1lg7e_1", im = "_loader_1lg7e_9", sm = "_scheduleArea_1lg7e_16", lm = "_verticalLine_1lg7e_20", Pt = {
|
|
6993
7003
|
noEligibility: am,
|
|
6994
7004
|
loader: im,
|
|
@@ -7000,7 +7010,7 @@ const Oc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7000
7010
|
}, mm = ({ children: e, isSomePlanDeferred: t, cards: n, isCurrentPlanP1X: r }) => /* @__PURE__ */ f.createElement(
|
|
7001
7011
|
"div",
|
|
7002
7012
|
{
|
|
7003
|
-
className: P(uo.container,
|
|
7013
|
+
className: P(uo.container, V.mobileModal),
|
|
7004
7014
|
"data-testid": "modal-container"
|
|
7005
7015
|
},
|
|
7006
7016
|
/* @__PURE__ */ f.createElement(qa, { isSomePlanDeferred: t, isCurrentPlanP1X: r }),
|
|
@@ -7025,15 +7035,15 @@ const Oc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7025
7035
|
cards: o,
|
|
7026
7036
|
isCurrentPlanP1X: ho(m)
|
|
7027
7037
|
},
|
|
7028
|
-
r ===
|
|
7029
|
-
r ===
|
|
7038
|
+
r === ce.PENDING && /* @__PURE__ */ f.createElement("div", { className: Pt.loader }, /* @__PURE__ */ f.createElement(au, null)),
|
|
7039
|
+
r === ce.SUCCESS && u.length === 0 && /* @__PURE__ */ f.createElement("div", { className: Pt.noEligibility }, /* @__PURE__ */ f.createElement(
|
|
7030
7040
|
L,
|
|
7031
7041
|
{
|
|
7032
7042
|
id: "eligibility-modal.no-eligibility",
|
|
7033
7043
|
defaultMessage: "Oups, il semblerait que la simulation n'ait pas fonctionné."
|
|
7034
7044
|
}
|
|
7035
7045
|
)),
|
|
7036
|
-
r ===
|
|
7046
|
+
r === ce.SUCCESS && u.length >= 1 && /* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement(
|
|
7037
7047
|
Hc,
|
|
7038
7048
|
{
|
|
7039
7049
|
eligibilityPlans: u,
|
|
@@ -7146,28 +7156,28 @@ const Oc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7146
7156
|
t,
|
|
7147
7157
|
s,
|
|
7148
7158
|
l
|
|
7149
|
-
), _ = d.filter((
|
|
7159
|
+
), _ = d.filter((G) => G.eligible), b = vm({
|
|
7150
7160
|
eligibilityPlans: d,
|
|
7151
7161
|
suggestedPaymentPlan: a != null ? a : 0
|
|
7152
|
-
}), v = a !== void 0, y = u !== void 0, [T, E] = oe(!1),
|
|
7153
|
-
E(!1), c == null || c(
|
|
7154
|
-
},
|
|
7155
|
-
(
|
|
7162
|
+
}), v = a !== void 0, y = u !== void 0, [T, E] = oe(!1), R = () => E(!0), g = (G) => {
|
|
7163
|
+
E(!1), c == null || c(G);
|
|
7164
|
+
}, O = d.reduce(
|
|
7165
|
+
(G, A, S) => A.eligible ? [...G, S] : G,
|
|
7156
7166
|
[]
|
|
7157
|
-
),
|
|
7167
|
+
), k = () => y ? u != null ? u : co : v ? Pm : co, { current: q, onHover: U, onLeave: W } = gm(O, k());
|
|
7158
7168
|
ue(() => {
|
|
7159
|
-
h ===
|
|
7169
|
+
h === ce.SUCCESS && v && (U(b), W());
|
|
7160
7170
|
}, [h]);
|
|
7161
|
-
const
|
|
7162
|
-
const A =
|
|
7171
|
+
const me = (G) => {
|
|
7172
|
+
const A = O.findIndex((S) => S === G);
|
|
7163
7173
|
return A === -1 ? 0 : A;
|
|
7164
7174
|
};
|
|
7165
|
-
if (h ===
|
|
7175
|
+
if (h === ce.PENDING)
|
|
7166
7176
|
return /* @__PURE__ */ f.createElement("div", { className: P(J.widgetButton, J.pending) }, /* @__PURE__ */ f.createElement(_m, null));
|
|
7167
|
-
if (n && _.length === 0 || d.length === 0 || h ===
|
|
7177
|
+
if (n && _.length === 0 || d.length === 0 || h === ce.FAILED)
|
|
7168
7178
|
return null;
|
|
7169
|
-
const Y = (
|
|
7170
|
-
|
|
7179
|
+
const Y = (G) => {
|
|
7180
|
+
G.preventDefault(), _.length > 0 && R();
|
|
7171
7181
|
};
|
|
7172
7182
|
return /* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement(
|
|
7173
7183
|
"div",
|
|
@@ -7175,7 +7185,7 @@ const Oc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7175
7185
|
tabIndex: 0,
|
|
7176
7186
|
role: "button",
|
|
7177
7187
|
onClick: Y,
|
|
7178
|
-
onKeyDown: (
|
|
7188
|
+
onKeyDown: (G) => G.key === "Enter" && Y(G),
|
|
7179
7189
|
className: P(
|
|
7180
7190
|
J.widgetButton,
|
|
7181
7191
|
{
|
|
@@ -7187,24 +7197,24 @@ const Oc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7187
7197
|
),
|
|
7188
7198
|
"data-testid": "widget-button"
|
|
7189
7199
|
},
|
|
7190
|
-
/* @__PURE__ */ f.createElement("div", { className: P(J.primaryContainer, He.eligibilityLine) }, /* @__PURE__ */ f.createElement(er, { className: J.logo, color: r ? "var(--off-black)" : void 0 }), /* @__PURE__ */ f.createElement("div", { className: P(J.paymentPlans, He.eligibilityOptions) }, d.map((
|
|
7200
|
+
/* @__PURE__ */ f.createElement("div", { className: P(J.primaryContainer, He.eligibilityLine) }, /* @__PURE__ */ f.createElement(er, { className: J.logo, color: r ? "var(--off-black)" : void 0 }), /* @__PURE__ */ f.createElement("div", { className: P(J.paymentPlans, He.eligibilityOptions) }, d.map((G, A) => {
|
|
7191
7201
|
const S = A === q;
|
|
7192
7202
|
return /* @__PURE__ */ f.createElement(
|
|
7193
7203
|
"div",
|
|
7194
7204
|
{
|
|
7195
|
-
key: `p${
|
|
7205
|
+
key: `p${G.installments_count}x-d+${G.deferred_days}-m+${G.deferred_months}`,
|
|
7196
7206
|
onMouseEnter: () => U(A),
|
|
7197
7207
|
onTouchStart: () => U(A),
|
|
7198
|
-
onMouseOut:
|
|
7199
|
-
onBlur:
|
|
7200
|
-
onTouchEnd:
|
|
7208
|
+
onMouseOut: W,
|
|
7209
|
+
onBlur: W,
|
|
7210
|
+
onTouchEnd: W,
|
|
7201
7211
|
className: P(J.plan, {
|
|
7202
7212
|
[P(J.active, He.activeOption)]: S,
|
|
7203
7213
|
[J.monochrome]: r && S,
|
|
7204
|
-
[P(J.notEligible, He.notEligibleOption)]: !
|
|
7214
|
+
[P(J.notEligible, He.notEligibleOption)]: !G.eligible
|
|
7205
7215
|
})
|
|
7206
7216
|
},
|
|
7207
|
-
ja(
|
|
7217
|
+
ja(G)
|
|
7208
7218
|
);
|
|
7209
7219
|
}))),
|
|
7210
7220
|
/* @__PURE__ */ f.createElement(
|
|
@@ -7223,7 +7233,7 @@ const Oc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7223
7233
|
), T && /* @__PURE__ */ f.createElement(
|
|
7224
7234
|
Xa,
|
|
7225
7235
|
{
|
|
7226
|
-
initialPlanIndex:
|
|
7236
|
+
initialPlanIndex: me(q),
|
|
7227
7237
|
onClose: g,
|
|
7228
7238
|
eligibilityPlans: _,
|
|
7229
7239
|
status: h,
|