@alma/widgets 4.0.7 → 4.0.9
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/Widgets/PaymentPlans/__tests__/KnowMoreButton.test.d.ts +1 -0
- package/dist/types/src/Widgets/PaymentPlans/classNames.const.d.ts +1 -0
- package/dist/types/src/assets/Cross.d.ts +18 -2
- package/dist/types/src/assets/__tests__/Accessibility.test.d.ts +1 -0
- package/dist/types/src/assets/almaLogo.d.ts +17 -1
- package/dist/types/src/intl/messages/messages.de.json.d.ts +8 -7
- package/dist/types/src/intl/messages/messages.en.json.d.ts +5 -4
- package/dist/types/src/intl/messages/messages.es.json.d.ts +5 -4
- package/dist/types/src/intl/messages/messages.fr.json.d.ts +8 -7
- package/dist/types/src/intl/messages/messages.it.json.d.ts +5 -4
- package/dist/types/src/intl/messages/messages.nl.json.d.ts +5 -4
- package/dist/types/src/intl/messages/messages.pt.json.d.ts +5 -4
- package/dist/widgets-wc.umd.js +15 -15
- package/dist/widgets.css +1 -1
- package/dist/widgets.js +760 -728
- package/dist/widgets.js.map +1 -1
- package/dist/widgets.min.css +1 -1
- package/dist/widgets.umd.js +15 -15
- package/dist/widgets.umd.js.map +1 -1
- package/package.json +1 -1
- /package/dist/types/src/{assets/__tests__/intl.test.d.ts → Widgets/PaymentPlans/__tests__/AriaLandmarks.test.d.ts} +0 -0
package/dist/widgets.js
CHANGED
|
@@ -2,7 +2,7 @@ var eo = Object.defineProperty, to = Object.defineProperties;
|
|
|
2
2
|
var no = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Rt = Object.getOwnPropertySymbols;
|
|
4
4
|
var ia = Object.prototype.hasOwnProperty, oa = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var ra = (e, t, n) => t in e ? eo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
5
|
+
var ra = (e, t, n) => t in e ? eo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ne = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
7
|
ia.call(t, n) && ra(e, n, t[n]);
|
|
8
8
|
if (Rt)
|
|
@@ -10,7 +10,7 @@ var ra = (e, t, n) => t in e ? eo(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
oa.call(t, n) && ra(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, sa = (e, t) => to(e, no(t));
|
|
13
|
-
var
|
|
13
|
+
var Lt = (e, t) => {
|
|
14
14
|
var n = {};
|
|
15
15
|
for (var a in e)
|
|
16
16
|
ia.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
|
|
@@ -39,11 +39,11 @@ var pt = /* @__PURE__ */ ((e) => (e.PaymentPlans = "PaymentPlans", e.Modal = "Mo
|
|
|
39
39
|
function ao(e) {
|
|
40
40
|
return Math.round(e * 100);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function fe(e) {
|
|
43
43
|
return Number((e / 100).toFixed(2));
|
|
44
44
|
}
|
|
45
45
|
function ro(e) {
|
|
46
|
-
return String(
|
|
46
|
+
return String(fe(e)).replace(".", ",");
|
|
47
47
|
}
|
|
48
48
|
const io = 800, gr = (e) => (e == null ? void 0 : e.installments_count) === 1 && (e == null ? void 0 : e.deferred_days) === 0 && (e == null ? void 0 : e.deferred_months) === 0;
|
|
49
49
|
(function(e) {
|
|
@@ -91,7 +91,7 @@ const io = 800, gr = (e) => (e == null ? void 0 : e.installments_count) === 1 &&
|
|
|
91
91
|
c.prototype.toString = c.prototype.toLocaleString = function() {
|
|
92
92
|
return this.value;
|
|
93
93
|
}, c.prototype.add = function() {
|
|
94
|
-
e: for (var g = 0,
|
|
94
|
+
e: for (var g = 0, v = arguments.length, b = "", _ = this[" uCL"], x = _[" uCLp"]; g !== v; ++g) {
|
|
95
95
|
b = `${arguments[g]}`, a("add", b);
|
|
96
96
|
for (var E = 0, N = x.length, y = b; E !== N; ++E) {
|
|
97
97
|
if (this[E] === b) continue e;
|
|
@@ -99,44 +99,44 @@ const io = 800, gr = (e) => (e == null ? void 0 : e.installments_count) === 1 &&
|
|
|
99
99
|
}
|
|
100
100
|
this[N] = b, x.length += 1, x.value = y;
|
|
101
101
|
}
|
|
102
|
-
m = 1,
|
|
102
|
+
m = 1, _.className = x.value, m = 0;
|
|
103
103
|
}, c.prototype.remove = function() {
|
|
104
|
-
for (var g = 0,
|
|
104
|
+
for (var g = 0, v = arguments.length, b = "", _ = this[" uCL"], x = _[" uCLp"]; g !== v; ++g) {
|
|
105
105
|
b = `${arguments[g]}`, a("remove", b);
|
|
106
106
|
for (var E = 0, N = x.length, y = "", M = 0; E !== N; ++E)
|
|
107
107
|
M ? this[E - 1] = this[E] : this[E] !== b ? y += `${this[E]} ` : M = 1;
|
|
108
108
|
M && (delete this[N], x.length -= 1, x.value = y);
|
|
109
109
|
}
|
|
110
|
-
m = 1,
|
|
110
|
+
m = 1, _.className = x.value, m = 0;
|
|
111
111
|
}, r.DOMTokenList = c;
|
|
112
112
|
function d() {
|
|
113
|
-
const g = r.event,
|
|
114
|
-
if (!m && (
|
|
115
|
-
const E = g.srcElement, N = E[" uCLp"], y = `${E[
|
|
116
|
-
e: for (var b = 0,
|
|
117
|
-
for (let
|
|
118
|
-
if (M[
|
|
113
|
+
const g = r.event, v = g.propertyName;
|
|
114
|
+
if (!m && (v === "className" || v === "classList" && !l)) {
|
|
115
|
+
const E = g.srcElement, N = E[" uCLp"], y = `${E[v]}`, M = y.trim().split(t), z = E[v === "classList" ? " uCL" : "classList"], ge = N.length;
|
|
116
|
+
e: for (var b = 0, _ = N.length = M.length, x = 0; b !== _; ++b) {
|
|
117
|
+
for (let F = 0; F !== b; ++F)
|
|
118
|
+
if (M[F] === M[b]) {
|
|
119
119
|
x++;
|
|
120
120
|
continue e;
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
z[b - x] = M[b];
|
|
123
123
|
}
|
|
124
|
-
for (let
|
|
125
|
-
if (
|
|
126
|
-
m = 1, E.classList =
|
|
124
|
+
for (let F = _ - x; F < ge; ++F) delete z[F];
|
|
125
|
+
if (v !== "classList") return;
|
|
126
|
+
m = 1, E.classList = z, E.className = y, m = 0, z.length = M.length - x;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
function p(g) {
|
|
130
130
|
if (!g || !("innerHTML" in g)) throw TypeError("Illegal invocation");
|
|
131
131
|
g.detachEvent("onpropertychange", d), u = 1;
|
|
132
132
|
try {
|
|
133
|
-
var
|
|
133
|
+
var v = function() {
|
|
134
134
|
};
|
|
135
|
-
|
|
135
|
+
v.prototype = new c();
|
|
136
136
|
} finally {
|
|
137
137
|
u = 0;
|
|
138
138
|
}
|
|
139
|
-
const b =
|
|
139
|
+
const b = v.prototype, _ = new v();
|
|
140
140
|
e: for (var x = g.className.trim().split(t), E = 0, N = x.length, y = 0; E !== N; ++E) {
|
|
141
141
|
for (let M = 0; M !== E; ++M)
|
|
142
142
|
if (x[M] === x[E]) {
|
|
@@ -149,34 +149,34 @@ const io = 800, gr = (e) => (e == null ? void 0 : e.installments_count) === 1 &&
|
|
|
149
149
|
// IE8 & IE9 allow defineProperty on the DOM
|
|
150
150
|
enumerable: 1,
|
|
151
151
|
get() {
|
|
152
|
-
return
|
|
152
|
+
return _;
|
|
153
153
|
},
|
|
154
154
|
configurable: 0,
|
|
155
155
|
set(M) {
|
|
156
156
|
m = 1, g.className = b.value = M += "", m = 0;
|
|
157
|
-
const
|
|
158
|
-
e: for (var
|
|
159
|
-
for (let U = 0; U !==
|
|
160
|
-
if (
|
|
161
|
-
|
|
157
|
+
const z = M.trim().split(t), ge = b.length;
|
|
158
|
+
e: for (var F = 0, ee = b.length = z.length, Y = 0; F !== ee; ++F) {
|
|
159
|
+
for (let U = 0; U !== F; ++U)
|
|
160
|
+
if (z[U] === z[F]) {
|
|
161
|
+
Y++;
|
|
162
162
|
continue e;
|
|
163
163
|
}
|
|
164
|
-
|
|
164
|
+
_[F - Y] = z[F];
|
|
165
165
|
}
|
|
166
|
-
for (let U = ee -
|
|
166
|
+
for (let U = ee - Y; U < ge; ++U) delete _[U];
|
|
167
167
|
}
|
|
168
168
|
}), l(g, " uCLp", {
|
|
169
169
|
// for accessing the hidden prototype
|
|
170
170
|
enumerable: 0,
|
|
171
171
|
configurable: 0,
|
|
172
172
|
writeable: 0,
|
|
173
|
-
value:
|
|
173
|
+
value: v.prototype
|
|
174
174
|
}), l(b, " uCL", {
|
|
175
175
|
enumerable: 0,
|
|
176
176
|
configurable: 0,
|
|
177
177
|
writeable: 0,
|
|
178
178
|
value: g
|
|
179
|
-
})) : (g.classList =
|
|
179
|
+
})) : (g.classList = _, g[" uCL"] = _, g[" uCLp"] = v.prototype), g.attachEvent("onpropertychange", d);
|
|
180
180
|
}
|
|
181
181
|
try {
|
|
182
182
|
r.Object.defineProperty(r.Element.prototype, "classList", {
|
|
@@ -252,7 +252,7 @@ function Ie(e, t) {
|
|
|
252
252
|
function Rn(e) {
|
|
253
253
|
e && e.parentNode && e.parentNode.removeChild(e);
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function de(e, t, n) {
|
|
256
256
|
var a, r, i, o = {};
|
|
257
257
|
for (i in t) i == "key" ? a = t[i] : i == "ref" ? r = t[i] : o[i] = t[i];
|
|
258
258
|
if (arguments.length > 2 && (o.children = arguments.length > 3 ? xt.call(arguments, 2) : n), typeof e == "function" && e.defaultProps != null) for (i in e.defaultProps) o[i] == null && (o[i] = e.defaultProps[i]);
|
|
@@ -265,7 +265,7 @@ function ct(e, t, n, a, r) {
|
|
|
265
265
|
function Cr() {
|
|
266
266
|
return { current: null };
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function pe(e) {
|
|
269
269
|
return e.children;
|
|
270
270
|
}
|
|
271
271
|
function Ee(e, t) {
|
|
@@ -287,20 +287,20 @@ function Sr(e) {
|
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
function dn(e) {
|
|
290
|
-
(!e.__d && (e.__d = !0) && ze.push(e) && !
|
|
290
|
+
(!e.__d && (e.__d = !0) && ze.push(e) && !Wt.__r++ || ca != w.debounceRendering) && ((ca = w.debounceRendering) || _r)(Wt);
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function Wt() {
|
|
293
293
|
for (var e, t, n, a, r, i, o, s = 1; ze.length; ) ze.length > s && ze.sort(vr), e = ze.shift(), s = ze.length, e.__d && (n = void 0, r = (a = (t = e).__v).__e, i = [], o = [], t.__P && ((n = Ie({}, a)).__v = a.__v + 1, w.vnode && w.vnode(n), Ln(t.__P, n, a, t.__n, t.__P.namespaceURI, 32 & a.__u ? [r] : null, i, r == null ? et(a) : r, !!(32 & a.__u), o), n.__v = a.__v, n.__.__k[n.__i] = n, Ir(i, n, o), n.__e != r && Sr(n)));
|
|
294
|
-
|
|
294
|
+
Wt.__r = 0;
|
|
295
295
|
}
|
|
296
296
|
function Ar(e, t, n, a, r, i, o, s, l, u, m) {
|
|
297
|
-
var c, d, p, g,
|
|
298
|
-
for (l = so(n, t,
|
|
299
|
-
return n.__e =
|
|
297
|
+
var c, d, p, g, v, b, _ = a && a.__k || xr, x = t.length;
|
|
298
|
+
for (l = so(n, t, _, l, x), c = 0; c < x; c++) (p = n.__k[c]) != null && (d = p.__i == -1 ? ht : _[p.__i] || ht, p.__i = c, b = Ln(e, p, d, r, i, o, s, l, u, m), g = p.__e, p.ref && d.ref != p.ref && (d.ref && Hn(d.ref, null, p), m.push(p.ref, p.__c || g, p)), v == null && g != null && (v = g), 4 & p.__u || d.__k === p.__k ? l = Tr(p, l, e) : typeof p.type == "function" && b !== void 0 ? l = b : g && (l = g.nextSibling), p.__u &= -7);
|
|
299
|
+
return n.__e = v, l;
|
|
300
300
|
}
|
|
301
301
|
function so(e, t, n, a, r) {
|
|
302
302
|
var i, o, s, l, u, m = n.length, c = m, d = 0;
|
|
303
|
-
for (e.__k = new Array(r), i = 0; i < r; i++) (o = t[i]) != null && typeof o != "boolean" && typeof o != "function" ? (l = i + d, (o = e.__k[i] = typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? ct(null, o, null, null, null) : Ct(o) ? ct(
|
|
303
|
+
for (e.__k = new Array(r), i = 0; i < r; i++) (o = t[i]) != null && typeof o != "boolean" && typeof o != "function" ? (l = i + d, (o = e.__k[i] = typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? ct(null, o, null, null, null) : Ct(o) ? ct(pe, { children: o }, null, null, null) : o.constructor == null && o.__b > 0 ? ct(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : o).__ = e, o.__b = e.__b + 1, s = null, (u = o.__i = lo(o, n, l, c)) != -1 && (c--, (s = n[u]) && (s.__u |= 2)), s == null || s.__v == null ? (u == -1 && (r > m ? d-- : r < m && d++), typeof o.type != "function" && (o.__u |= 4)) : u != l && (u == l - 1 ? d-- : u == l + 1 ? d++ : (u > l ? d-- : d++, o.__u |= 4))) : e.__k[i] = null;
|
|
304
304
|
if (c) for (i = 0; i < m; i++) (s = n[i]) != null && !(2 & s.__u) && (s.__e == a && (a = et(s)), wr(s, s));
|
|
305
305
|
return a;
|
|
306
306
|
}
|
|
@@ -316,9 +316,9 @@ function Tr(e, t, n) {
|
|
|
316
316
|
while (t != null && t.nodeType == 8);
|
|
317
317
|
return t;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function Oe(e, t) {
|
|
320
320
|
return t = t || [], e == null || typeof e == "boolean" || (Ct(e) ? e.some(function(n) {
|
|
321
|
-
|
|
321
|
+
Oe(n, t);
|
|
322
322
|
}) : t.push(e)), t;
|
|
323
323
|
}
|
|
324
324
|
function lo(e, t, n, a) {
|
|
@@ -339,7 +339,7 @@ function lo(e, t, n, a) {
|
|
|
339
339
|
function ma(e, t, n) {
|
|
340
340
|
t[0] == "-" ? e.setProperty(t, n == null ? "" : n) : e[t] = n == null ? "" : typeof n != "number" || oo.test(t) ? n : n + "px";
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function Ht(e, t, n, a, r) {
|
|
343
343
|
var i;
|
|
344
344
|
e: if (t == "style") if (typeof n == "string") e.style.cssText = n;
|
|
345
345
|
else {
|
|
@@ -368,30 +368,30 @@ function fa(e) {
|
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
370
|
function Ln(e, t, n, a, r, i, o, s, l, u) {
|
|
371
|
-
var m, c, d, p, g,
|
|
371
|
+
var m, c, d, p, g, v, b, _, x, E, N, y, M, z, ge, F, ee, Y = t.type;
|
|
372
372
|
if (t.constructor != null) return null;
|
|
373
373
|
128 & n.__u && (l = !!(32 & n.__u), i = [s = t.__e = n.__e]), (m = w.__b) && m(t);
|
|
374
|
-
e: if (typeof
|
|
375
|
-
if (
|
|
374
|
+
e: if (typeof Y == "function") try {
|
|
375
|
+
if (_ = t.props, x = "prototype" in Y && Y.prototype.render, E = (m = Y.contextType) && a[m.__c], N = m ? E ? E.props.value : m.__ : a, n.__c ? b = (c = t.__c = n.__c).__ = c.__E : (x ? t.__c = c = new Y(_, N) : (t.__c = c = new Ee(_, N), c.constructor = Y, c.render = co), E && E.sub(c), c.props = _, c.state || (c.state = {}), c.context = N, c.__n = a, d = c.__d = !0, c.__h = [], c._sb = []), x && c.__s == null && (c.__s = c.state), x && Y.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = Ie({}, c.__s)), Ie(c.__s, Y.getDerivedStateFromProps(_, c.__s))), p = c.props, g = c.state, c.__v = t, d) x && Y.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), x && c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
376
376
|
else {
|
|
377
|
-
if (x &&
|
|
378
|
-
for (t.__v != n.__v && (c.props =
|
|
377
|
+
if (x && Y.getDerivedStateFromProps == null && _ !== p && c.componentWillReceiveProps != null && c.componentWillReceiveProps(_, N), !c.__e && c.shouldComponentUpdate != null && c.shouldComponentUpdate(_, c.__s, N) === !1 || t.__v == n.__v) {
|
|
378
|
+
for (t.__v != n.__v && (c.props = _, c.state = c.__s, c.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(U) {
|
|
379
379
|
U && (U.__ = t);
|
|
380
380
|
}), y = 0; y < c._sb.length; y++) c.__h.push(c._sb[y]);
|
|
381
381
|
c._sb = [], c.__h.length && o.push(c);
|
|
382
382
|
break e;
|
|
383
383
|
}
|
|
384
|
-
c.componentWillUpdate != null && c.componentWillUpdate(
|
|
385
|
-
c.componentDidUpdate(p, g,
|
|
384
|
+
c.componentWillUpdate != null && c.componentWillUpdate(_, c.__s, N), x && c.componentDidUpdate != null && c.__h.push(function() {
|
|
385
|
+
c.componentDidUpdate(p, g, v);
|
|
386
386
|
});
|
|
387
387
|
}
|
|
388
|
-
if (c.context = N, c.props =
|
|
389
|
-
for (c.state = c.__s, c.__d = !1, M && M(t), m = c.render(c.props, c.state, c.context),
|
|
388
|
+
if (c.context = N, c.props = _, c.__P = e, c.__e = !1, M = w.__r, z = 0, x) {
|
|
389
|
+
for (c.state = c.__s, c.__d = !1, M && M(t), m = c.render(c.props, c.state, c.context), ge = 0; ge < c._sb.length; ge++) c.__h.push(c._sb[ge]);
|
|
390
390
|
c._sb = [];
|
|
391
391
|
} else do
|
|
392
392
|
c.__d = !1, M && M(t), m = c.render(c.props, c.state, c.context), c.state = c.__s;
|
|
393
|
-
while (c.__d && ++
|
|
394
|
-
c.state = c.__s, c.getChildContext != null && (a = Ie(Ie({}, a), c.getChildContext())), x && !d && c.getSnapshotBeforeUpdate != null && (
|
|
393
|
+
while (c.__d && ++z < 25);
|
|
394
|
+
c.state = c.__s, c.getChildContext != null && (a = Ie(Ie({}, a), c.getChildContext())), x && !d && c.getSnapshotBeforeUpdate != null && (v = c.getSnapshotBeforeUpdate(p, g)), F = m, m != null && m.type === pe && m.key == null && (F = Mr(m.props.children)), s = Ar(e, Ct(F) ? F : [F], t, n, a, r, i, o, s, l, u), c.base = t.__e, t.__u &= -161, c.__h.length && o.push(c), b && (c.__E = c.__ = null);
|
|
395
395
|
} catch (U) {
|
|
396
396
|
if (t.__v = null, l || i != null) if (U.then) {
|
|
397
397
|
for (t.__u |= l ? 160 : 128; s && s.nodeType == 8 && s.nextSibling; ) s = s.nextSibling;
|
|
@@ -419,7 +419,7 @@ function Mr(e) {
|
|
|
419
419
|
return typeof e != "object" || e == null || e.__b && e.__b > 0 ? e : Ct(e) ? e.map(Mr) : Ie({}, e);
|
|
420
420
|
}
|
|
421
421
|
function uo(e, t, n, a, r, i, o, s, l) {
|
|
422
|
-
var u, m, c, d, p, g,
|
|
422
|
+
var u, m, c, d, p, g, v, b = n.props, _ = t.props, x = t.type;
|
|
423
423
|
if (x == "svg" ? r = "http://www.w3.org/2000/svg" : x == "math" ? r = "http://www.w3.org/1998/Math/MathML" : r || (r = "http://www.w3.org/1999/xhtml"), i != null) {
|
|
424
424
|
for (u = 0; u < i.length; u++) if ((p = i[u]) && "setAttribute" in p == !!x && (x ? p.localName == x : p.nodeType == 3)) {
|
|
425
425
|
e = p, i[u] = null;
|
|
@@ -427,23 +427,23 @@ function uo(e, t, n, a, r, i, o, s, l) {
|
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
if (e == null) {
|
|
430
|
-
if (x == null) return document.createTextNode(
|
|
431
|
-
e = document.createElementNS(r, x,
|
|
430
|
+
if (x == null) return document.createTextNode(_);
|
|
431
|
+
e = document.createElementNS(r, x, _.is && _), s && (w.__m && w.__m(t, i), s = !1), i = null;
|
|
432
432
|
}
|
|
433
|
-
if (x == null) b ===
|
|
433
|
+
if (x == null) b === _ || s && e.data == _ || (e.data = _);
|
|
434
434
|
else {
|
|
435
435
|
if (i = i && xt.call(e.childNodes), b = n.props || ht, !s && i != null) for (b = {}, u = 0; u < e.attributes.length; u++) b[(p = e.attributes[u]).name] = p.value;
|
|
436
436
|
for (u in b) if (p = b[u], u != "children") {
|
|
437
437
|
if (u == "dangerouslySetInnerHTML") c = p;
|
|
438
|
-
else if (!(u in
|
|
439
|
-
if (u == "value" && "defaultValue" in
|
|
440
|
-
|
|
438
|
+
else if (!(u in _)) {
|
|
439
|
+
if (u == "value" && "defaultValue" in _ || u == "checked" && "defaultChecked" in _) continue;
|
|
440
|
+
Ht(e, u, null, p, r);
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
for (u in
|
|
443
|
+
for (u in _) p = _[u], u == "children" ? d = p : u == "dangerouslySetInnerHTML" ? m = p : u == "value" ? g = p : u == "checked" ? v = p : s && typeof p != "function" || b[u] === p || Ht(e, u, p, b[u], r);
|
|
444
444
|
if (m) s || c && (m.__html == c.__html || m.__html == e.innerHTML) || (e.innerHTML = m.__html), t.__k = [];
|
|
445
445
|
else if (c && (e.innerHTML = ""), Ar(t.type == "template" ? e.content : e, Ct(d) ? d : [d], t, n, a, x == "foreignObject" ? "http://www.w3.org/1999/xhtml" : r, i, o, i ? i[0] : n.__k && et(n, 0), s, l), i != null) for (u = i.length; u--; ) Rn(i[u]);
|
|
446
|
-
s || (u = "value", x == "progress" && g == null ? e.removeAttribute("value") : g != null && (g !== e[u] || x == "progress" && !g || x == "option" && g != b[u]) &&
|
|
446
|
+
s || (u = "value", x == "progress" && g == null ? e.removeAttribute("value") : g != null && (g !== e[u] || x == "progress" && !g || x == "option" && g != b[u]) && Ht(e, u, g, b[u], r), u = "checked", v != null && v != e[u] && Ht(e, u, v, b[u], r));
|
|
447
447
|
}
|
|
448
448
|
return e;
|
|
449
449
|
}
|
|
@@ -475,7 +475,7 @@ function co(e, t, n) {
|
|
|
475
475
|
}
|
|
476
476
|
function gt(e, t, n) {
|
|
477
477
|
var a, r, i, o;
|
|
478
|
-
t == document && (t = document.documentElement), w.__ && w.__(e, t), r = (a = typeof n == "function") ? null : n && n.__k || t.__k, i = [], o = [], Ln(t, e = (!a && n || t).__k =
|
|
478
|
+
t == document && (t = document.documentElement), w.__ && w.__(e, t), r = (a = typeof n == "function") ? null : n && n.__k || t.__k, i = [], o = [], Ln(t, e = (!a && n || t).__k = de(pe, null, [e]), r || ht, ht, t.namespaceURI, !a && n ? [n] : r ? null : t.firstChild ? xt.call(t.childNodes) : null, i, !a && n ? n : r ? r.__e : t.firstChild, a, o), Ir(i, e, o);
|
|
479
479
|
}
|
|
480
480
|
function Nr(e, t) {
|
|
481
481
|
gt(e, t, Nr);
|
|
@@ -520,20 +520,20 @@ xt = xr.slice, w = { __e: function(e, t, n, a) {
|
|
|
520
520
|
n = this.__s != null && this.__s != this.state ? this.__s : this.__s = Ie({}, this.state), typeof e == "function" && (e = e(Ie({}, n), this.props)), e && Ie(n, e), e != null && this.__v && (t && this._sb.push(t), dn(this));
|
|
521
521
|
}, Ee.prototype.forceUpdate = function(e) {
|
|
522
522
|
this.__v && (this.__e = !0, e && this.__h.push(e), dn(this));
|
|
523
|
-
}, Ee.prototype.render =
|
|
523
|
+
}, Ee.prototype.render = pe, ze = [], _r = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, vr = function(e, t) {
|
|
524
524
|
return e.__v.__b - t.__v.__b;
|
|
525
|
-
},
|
|
526
|
-
var
|
|
527
|
-
function
|
|
525
|
+
}, Wt.__r = 0, br = /(PointerCapture)$|Capture$/i, Pn = 0, mn = fa(!1), fn = fa(!0), Er = 0;
|
|
526
|
+
var Pe, $, Yt, da, tt = 0, Or = [], j = w, pa = j.__b, ha = j.__r, ga = j.diffed, ya = j.__c, _a = j.unmount, va = j.__;
|
|
527
|
+
function qe(e, t) {
|
|
528
528
|
j.__h && j.__h($, e, tt || t), tt = 0;
|
|
529
529
|
var n = $.__H || ($.__H = { __: [], __h: [] });
|
|
530
530
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
531
531
|
}
|
|
532
532
|
function Q(e) {
|
|
533
|
-
return tt = 1,
|
|
533
|
+
return tt = 1, Zt(Pr, e);
|
|
534
534
|
}
|
|
535
|
-
function
|
|
536
|
-
var a =
|
|
535
|
+
function Zt(e, t, n) {
|
|
536
|
+
var a = qe(Pe++, 2);
|
|
537
537
|
if (a.t = e, !a.__c && (a.__ = [n ? n(t) : Pr(void 0, t), function(s) {
|
|
538
538
|
var l = a.__N ? a.__N[0] : a.__[0], u = a.t(l, s);
|
|
539
539
|
l !== u && (a.__N = [u, a.__[1]], a.__c.setState({}));
|
|
@@ -566,16 +566,16 @@ function qt(e, t, n) {
|
|
|
566
566
|
}
|
|
567
567
|
return a.__N || a.__;
|
|
568
568
|
}
|
|
569
|
-
function
|
|
570
|
-
var n =
|
|
571
|
-
!j.__s &&
|
|
569
|
+
function K(e, t) {
|
|
570
|
+
var n = qe(Pe++, 3);
|
|
571
|
+
!j.__s && Bn(n.__H, t) && (n.__ = e, n.u = t, $.__H.__h.push(n));
|
|
572
572
|
}
|
|
573
573
|
function it(e, t) {
|
|
574
|
-
var n =
|
|
575
|
-
!j.__s &&
|
|
574
|
+
var n = qe(Pe++, 4);
|
|
575
|
+
!j.__s && Bn(n.__H, t) && (n.__ = e, n.u = t, $.__h.push(n));
|
|
576
576
|
}
|
|
577
|
-
function
|
|
578
|
-
return tt = 5,
|
|
577
|
+
function ke(e) {
|
|
578
|
+
return tt = 5, De(function() {
|
|
579
579
|
return { current: e };
|
|
580
580
|
}, []);
|
|
581
581
|
}
|
|
@@ -592,32 +592,32 @@ function Dn(e, t, n) {
|
|
|
592
592
|
};
|
|
593
593
|
}, n == null ? n : n.concat(e));
|
|
594
594
|
}
|
|
595
|
-
function
|
|
596
|
-
var n =
|
|
597
|
-
return
|
|
595
|
+
function De(e, t) {
|
|
596
|
+
var n = qe(Pe++, 7);
|
|
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,
|
|
600
|
+
return tt = 8, De(function() {
|
|
601
601
|
return e;
|
|
602
602
|
}, t);
|
|
603
603
|
}
|
|
604
604
|
function St(e) {
|
|
605
|
-
var t = $.context[e.__c], n =
|
|
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
608
|
function kn(e, t) {
|
|
609
609
|
j.useDebugValue && j.useDebugValue(t ? t(e) : e);
|
|
610
610
|
}
|
|
611
611
|
function fo(e) {
|
|
612
|
-
var t =
|
|
612
|
+
var t = qe(Pe++, 10), n = Q();
|
|
613
613
|
return t.__ = e, $.componentDidCatch || ($.componentDidCatch = function(a, r) {
|
|
614
614
|
t.__ && t.__(a, r), n[1](a);
|
|
615
615
|
}), [n[0], function() {
|
|
616
616
|
n[1](void 0);
|
|
617
617
|
}];
|
|
618
618
|
}
|
|
619
|
-
function
|
|
620
|
-
var e =
|
|
619
|
+
function Fn() {
|
|
620
|
+
var e = qe(Pe++, 11);
|
|
621
621
|
if (!e.__) {
|
|
622
622
|
for (var t = $.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
|
|
623
623
|
var n = t.__m || (t.__m = [0, 0]);
|
|
@@ -627,7 +627,7 @@ function Bn() {
|
|
|
627
627
|
}
|
|
628
628
|
function po() {
|
|
629
629
|
for (var e; e = Or.shift(); ) if (e.__P && e.__H) try {
|
|
630
|
-
e.__H.__h.forEach(
|
|
630
|
+
e.__H.__h.forEach(Gt), e.__H.__h.forEach(pn), e.__H.__h = [];
|
|
631
631
|
} catch (t) {
|
|
632
632
|
e.__H.__h = [], j.__e(t, e.__v);
|
|
633
633
|
}
|
|
@@ -637,11 +637,11 @@ j.__b = function(e) {
|
|
|
637
637
|
}, j.__ = function(e, t) {
|
|
638
638
|
e && t.__k && t.__k.__m && (e.__m = t.__k.__m), va && va(e, t);
|
|
639
639
|
}, j.__r = function(e) {
|
|
640
|
-
ha && ha(e),
|
|
640
|
+
ha && ha(e), Pe = 0;
|
|
641
641
|
var t = ($ = e.__c).__H;
|
|
642
642
|
t && (Yt === $ ? (t.__h = [], $.__h = [], t.__.forEach(function(n) {
|
|
643
643
|
n.__N && (n.__ = n.__N), n.u = n.__N = void 0;
|
|
644
|
-
})) : (t.__h.forEach(
|
|
644
|
+
})) : (t.__h.forEach(Gt), t.__h.forEach(pn), t.__h = [], Pe = 0)), Yt = $;
|
|
645
645
|
}, j.diffed = function(e) {
|
|
646
646
|
ga && ga(e);
|
|
647
647
|
var t = e.__c;
|
|
@@ -651,7 +651,7 @@ j.__b = function(e) {
|
|
|
651
651
|
}, j.__c = function(e, t) {
|
|
652
652
|
t.some(function(n) {
|
|
653
653
|
try {
|
|
654
|
-
n.__h.forEach(
|
|
654
|
+
n.__h.forEach(Gt), n.__h = n.__h.filter(function(a) {
|
|
655
655
|
return !a.__ || pn(a);
|
|
656
656
|
});
|
|
657
657
|
} catch (a) {
|
|
@@ -665,7 +665,7 @@ j.__b = function(e) {
|
|
|
665
665
|
var t, n = e.__c;
|
|
666
666
|
n && n.__H && (n.__H.__.forEach(function(a) {
|
|
667
667
|
try {
|
|
668
|
-
|
|
668
|
+
Gt(a);
|
|
669
669
|
} catch (r) {
|
|
670
670
|
t = r;
|
|
671
671
|
}
|
|
@@ -678,7 +678,7 @@ function ho(e) {
|
|
|
678
678
|
}, a = setTimeout(n, 100);
|
|
679
679
|
ba && (t = requestAnimationFrame(n));
|
|
680
680
|
}
|
|
681
|
-
function
|
|
681
|
+
function Gt(e) {
|
|
682
682
|
var t = $, n = e.__c;
|
|
683
683
|
typeof n == "function" && (e.__c = void 0, n()), $ = t;
|
|
684
684
|
}
|
|
@@ -686,7 +686,7 @@ function pn(e) {
|
|
|
686
686
|
var t = $;
|
|
687
687
|
e.__c = e.__(), $ = t;
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function Bn(e, t) {
|
|
690
690
|
return !e || e.length !== t.length || t.some(function(n, a) {
|
|
691
691
|
return n !== e[a];
|
|
692
692
|
});
|
|
@@ -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]),
|
|
710
|
+
}, [e, n, t]), K(function() {
|
|
711
711
|
return Qt(r) && i({ t: r }), e(function() {
|
|
712
712
|
Qt(r) && i({ t: r });
|
|
713
713
|
});
|
|
@@ -725,10 +725,10 @@ function Qt(e) {
|
|
|
725
725
|
function $n(e) {
|
|
726
726
|
e();
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function Gn(e) {
|
|
729
729
|
return e;
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function zn() {
|
|
732
732
|
return [!1, $n];
|
|
733
733
|
}
|
|
734
734
|
var Wn = it;
|
|
@@ -741,7 +741,7 @@ function jn(e, t) {
|
|
|
741
741
|
return !o && i && (i.call ? i(null) : i.current = null), t ? !t(this.props, r) || !o : hn(this.props, r);
|
|
742
742
|
}
|
|
743
743
|
function a(r) {
|
|
744
|
-
return this.shouldComponentUpdate = n,
|
|
744
|
+
return this.shouldComponentUpdate = n, de(e, r);
|
|
745
745
|
}
|
|
746
746
|
return a.displayName = "Memo(" + (e.displayName || e.name) + ")", a.prototype.isReactComponent = !0, a.__f = !0, a;
|
|
747
747
|
}
|
|
@@ -761,14 +761,14 @@ function Lr(e) {
|
|
|
761
761
|
return t.$$typeof = go, t.render = t, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
|
|
762
762
|
}
|
|
763
763
|
var xa = function(e, t) {
|
|
764
|
-
return e == null ? null :
|
|
764
|
+
return e == null ? null : Oe(Oe(e).map(t));
|
|
765
765
|
}, At = { map: xa, forEach: xa, count: function(e) {
|
|
766
|
-
return e ?
|
|
766
|
+
return e ? Oe(e).length : 0;
|
|
767
767
|
}, only: function(e) {
|
|
768
|
-
var t =
|
|
768
|
+
var t = Oe(e);
|
|
769
769
|
if (t.length !== 1) throw "Children.only";
|
|
770
770
|
return t[0];
|
|
771
|
-
}, toArray:
|
|
771
|
+
}, toArray: Oe }, yo = w.__e;
|
|
772
772
|
w.__e = function(e, t, n, a) {
|
|
773
773
|
if (e.then) {
|
|
774
774
|
for (var r, i = t; i = i.__; ) if ((r = i.__c) && r.__c) return t.__e == null && (t.__e = n.__e, t.__k = n.__k), r.__c(e, t);
|
|
@@ -795,7 +795,7 @@ function kr(e) {
|
|
|
795
795
|
var t = e.__.__c;
|
|
796
796
|
return t && t.__a && t.__a(e);
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function Fr(e) {
|
|
799
799
|
var t, n, a;
|
|
800
800
|
function r(i) {
|
|
801
801
|
if (t || (t = e()).then(function(o) {
|
|
@@ -804,7 +804,7 @@ function Br(e) {
|
|
|
804
804
|
a = o;
|
|
805
805
|
}), a) throw a;
|
|
806
806
|
if (!n) throw t;
|
|
807
|
-
return
|
|
807
|
+
return de(n, i);
|
|
808
808
|
}
|
|
809
809
|
return r.displayName = "Lazy", r.__f = !0, r;
|
|
810
810
|
}
|
|
@@ -842,8 +842,8 @@ w.unmount = function(e) {
|
|
|
842
842
|
}
|
|
843
843
|
this.__b = null;
|
|
844
844
|
}
|
|
845
|
-
var r = t.__a &&
|
|
846
|
-
return r && (r.__u &= -33), [
|
|
845
|
+
var r = t.__a && de(pe, null, e.fallback);
|
|
846
|
+
return r && (r.__u &= -33), [de(pe, null, t.__a ? null : e.children), r];
|
|
847
847
|
};
|
|
848
848
|
var Sa = function(e, t, n) {
|
|
849
849
|
if (++n[1] === n[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (n = e.i; n; ) {
|
|
@@ -869,10 +869,10 @@ function vo(e) {
|
|
|
869
869
|
this.childNodes.push(a), t.h.insertBefore(a, r);
|
|
870
870
|
}, removeChild: function(a) {
|
|
871
871
|
this.childNodes.splice(this.childNodes.indexOf(a) >>> 1, 1), t.h.removeChild(a);
|
|
872
|
-
} }), gt(
|
|
872
|
+
} }), gt(de(_o, { context: t.context }, e.__v), t.v);
|
|
873
873
|
}
|
|
874
|
-
function
|
|
875
|
-
var n =
|
|
874
|
+
function Br(e, t) {
|
|
875
|
+
var n = de(vo, { __v: e, h: t });
|
|
876
876
|
return n.containerInfo = t, n;
|
|
877
877
|
}
|
|
878
878
|
(Ye.prototype = new Ee()).__a = function(e) {
|
|
@@ -885,7 +885,7 @@ function Fr(e, t) {
|
|
|
885
885
|
};
|
|
886
886
|
}, Ye.prototype.render = function(e) {
|
|
887
887
|
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
888
|
-
var t =
|
|
888
|
+
var t = Oe(e.children);
|
|
889
889
|
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
890
890
|
for (var n = t.length; n--; ) this.l.set(t[n], this.i = [1, 0, this.i]);
|
|
891
891
|
return e.children;
|
|
@@ -936,9 +936,9 @@ w.vnode = function(e) {
|
|
|
936
936
|
o === "defaultValue" && "value" in n && n.value == null ? o = "value" : o === "download" && s === !0 ? s = "" : l === "translate" && s === "no" ? s = !1 : l[0] === "o" && l[1] === "n" ? l === "ondoubleclick" ? o = "ondblclick" : l !== "onchange" || a !== "input" && a !== "textarea" || So(n.type) ? l === "onfocus" ? o = "onfocusin" : l === "onblur" ? o = "onfocusout" : Eo.test(o) && (o = l) : l = o = "oninput" : i && bo.test(o) ? o = o.replace(xo, "-$&").toLowerCase() : s === null && (s = void 0), l === "oninput" && r[o = l] && (o = "oninputCapture"), r[o] = s;
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
|
-
a == "select" && r.multiple && Array.isArray(r.value) && (r.value =
|
|
939
|
+
a == "select" && r.multiple && Array.isArray(r.value) && (r.value = Oe(n.children).forEach(function(u) {
|
|
940
940
|
u.props.selected = r.value.indexOf(u.props.value) != -1;
|
|
941
|
-
})), a == "select" && r.defaultValue != null && (r.value =
|
|
941
|
+
})), a == "select" && r.defaultValue != null && (r.value = Oe(n.children).forEach(function(u) {
|
|
942
942
|
u.props.selected = r.multiple ? r.defaultValue.indexOf(u.props.value) != -1 : r.defaultValue == u.props.value;
|
|
943
943
|
})), n.class && !n.className ? (r.class = n.class, Object.defineProperty(r, "className", Mo)) : (n.className && !n.class || n.class && n.className) && (r.class = r.className = n.className), t.props = r;
|
|
944
944
|
}(e), e.$$typeof = Ur, Ta && Ta(e);
|
|
@@ -953,17 +953,17 @@ w.diffed = function(e) {
|
|
|
953
953
|
var t = e.props, n = e.__e;
|
|
954
954
|
n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value), qn = null;
|
|
955
955
|
};
|
|
956
|
-
var
|
|
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:
|
|
959
|
-
function
|
|
960
|
-
return
|
|
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 } } }, wo = "18.3.1";
|
|
959
|
+
function zr(e) {
|
|
960
|
+
return de.bind(null, e);
|
|
961
961
|
}
|
|
962
962
|
function Tt(e) {
|
|
963
963
|
return !!e && e.$$typeof === Ur;
|
|
964
964
|
}
|
|
965
965
|
function Wr(e) {
|
|
966
|
-
return Tt(e) && e.type ===
|
|
966
|
+
return Tt(e) && e.type === pe;
|
|
967
967
|
}
|
|
968
968
|
function jr(e) {
|
|
969
969
|
return !!e && !!e.displayName && (typeof e.displayName == "string" || e.displayName instanceof String) && e.displayName.startsWith("Memo(");
|
|
@@ -981,22 +981,22 @@ var Zr = function(e, t) {
|
|
|
981
981
|
return e(t);
|
|
982
982
|
}, Xr = function(e, t) {
|
|
983
983
|
return e(t);
|
|
984
|
-
}, Kr =
|
|
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 };
|
|
985
985
|
const No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
986
986
|
__proto__: null,
|
|
987
987
|
Children: At,
|
|
988
988
|
Component: Ee,
|
|
989
|
-
Fragment:
|
|
989
|
+
Fragment: pe,
|
|
990
990
|
PureComponent: vt,
|
|
991
991
|
StrictMode: Kr,
|
|
992
992
|
Suspense: mt,
|
|
993
993
|
SuspenseList: Ye,
|
|
994
|
-
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:
|
|
994
|
+
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Gr,
|
|
995
995
|
cloneElement: Vr,
|
|
996
996
|
createContext: yt,
|
|
997
|
-
createElement:
|
|
998
|
-
createFactory:
|
|
999
|
-
createPortal:
|
|
997
|
+
createElement: de,
|
|
998
|
+
createFactory: zr,
|
|
999
|
+
createPortal: Br,
|
|
1000
1000
|
createRef: Cr,
|
|
1001
1001
|
default: f,
|
|
1002
1002
|
findDOMNode: qr,
|
|
@@ -1007,7 +1007,7 @@ const No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1007
1007
|
isFragment: Wr,
|
|
1008
1008
|
isMemo: jr,
|
|
1009
1009
|
isValidElement: Tt,
|
|
1010
|
-
lazy:
|
|
1010
|
+
lazy: Fr,
|
|
1011
1011
|
memo: jn,
|
|
1012
1012
|
render: Vn,
|
|
1013
1013
|
startTransition: $n,
|
|
@@ -1016,19 +1016,19 @@ const No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1016
1016
|
useCallback: _t,
|
|
1017
1017
|
useContext: St,
|
|
1018
1018
|
useDebugValue: kn,
|
|
1019
|
-
useDeferredValue:
|
|
1020
|
-
useEffect:
|
|
1019
|
+
useDeferredValue: Gn,
|
|
1020
|
+
useEffect: K,
|
|
1021
1021
|
useErrorBoundary: fo,
|
|
1022
|
-
useId:
|
|
1022
|
+
useId: Fn,
|
|
1023
1023
|
useImperativeHandle: Dn,
|
|
1024
1024
|
useInsertionEffect: Wn,
|
|
1025
1025
|
useLayoutEffect: it,
|
|
1026
|
-
useMemo:
|
|
1027
|
-
useReducer:
|
|
1028
|
-
useRef:
|
|
1026
|
+
useMemo: De,
|
|
1027
|
+
useReducer: Zt,
|
|
1028
|
+
useRef: ke,
|
|
1029
1029
|
useState: Q,
|
|
1030
1030
|
useSyncExternalStore: Un,
|
|
1031
|
-
useTransition:
|
|
1031
|
+
useTransition: zn,
|
|
1032
1032
|
version: wo
|
|
1033
1033
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1034
1034
|
function wa(e) {
|
|
@@ -1171,40 +1171,40 @@ var P;
|
|
|
1171
1171
|
(function(e) {
|
|
1172
1172
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
1173
1173
|
})(P || (P = {}));
|
|
1174
|
-
var
|
|
1174
|
+
var G;
|
|
1175
1175
|
(function(e) {
|
|
1176
1176
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1177
|
-
})(
|
|
1177
|
+
})(G || (G = {}));
|
|
1178
1178
|
var at;
|
|
1179
1179
|
(function(e) {
|
|
1180
1180
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1181
1181
|
})(at || (at = {}));
|
|
1182
1182
|
function Na(e) {
|
|
1183
|
-
return e.type ===
|
|
1183
|
+
return e.type === G.literal;
|
|
1184
1184
|
}
|
|
1185
1185
|
function ko(e) {
|
|
1186
|
-
return e.type ===
|
|
1186
|
+
return e.type === G.argument;
|
|
1187
1187
|
}
|
|
1188
1188
|
function ti(e) {
|
|
1189
|
-
return e.type ===
|
|
1189
|
+
return e.type === G.number;
|
|
1190
1190
|
}
|
|
1191
1191
|
function ni(e) {
|
|
1192
|
-
return e.type ===
|
|
1192
|
+
return e.type === G.date;
|
|
1193
1193
|
}
|
|
1194
1194
|
function ai(e) {
|
|
1195
|
-
return e.type ===
|
|
1195
|
+
return e.type === G.time;
|
|
1196
1196
|
}
|
|
1197
1197
|
function ri(e) {
|
|
1198
|
-
return e.type ===
|
|
1198
|
+
return e.type === G.select;
|
|
1199
1199
|
}
|
|
1200
1200
|
function ii(e) {
|
|
1201
|
-
return e.type ===
|
|
1201
|
+
return e.type === G.plural;
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return e.type ===
|
|
1203
|
+
function Fo(e) {
|
|
1204
|
+
return e.type === G.pound;
|
|
1205
1205
|
}
|
|
1206
1206
|
function oi(e) {
|
|
1207
|
-
return e.type ===
|
|
1207
|
+
return e.type === G.tag;
|
|
1208
1208
|
}
|
|
1209
1209
|
function si(e) {
|
|
1210
1210
|
return !!(e && typeof e == "object" && e.type === at.number);
|
|
@@ -1212,10 +1212,10 @@ function si(e) {
|
|
|
1212
1212
|
function yn(e) {
|
|
1213
1213
|
return !!(e && typeof e == "object" && e.type === at.dateTime);
|
|
1214
1214
|
}
|
|
1215
|
-
var li = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
1215
|
+
var li = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Bo = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
1216
1216
|
function Uo(e) {
|
|
1217
1217
|
var t = {};
|
|
1218
|
-
return e.replace(
|
|
1218
|
+
return e.replace(Bo, function(n) {
|
|
1219
1219
|
var a = n.length;
|
|
1220
1220
|
switch (n[0]) {
|
|
1221
1221
|
case "G":
|
|
@@ -1305,7 +1305,7 @@ function Uo(e) {
|
|
|
1305
1305
|
}), t;
|
|
1306
1306
|
}
|
|
1307
1307
|
var $o = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1308
|
-
function
|
|
1308
|
+
function Go(e) {
|
|
1309
1309
|
if (e.length === 0)
|
|
1310
1310
|
throw new Error("Number skeleton cannot be empty");
|
|
1311
1311
|
for (var t = e.split($o).filter(function(d) {
|
|
@@ -1323,7 +1323,7 @@ function zo(e) {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
return n;
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1326
|
+
function zo(e) {
|
|
1327
1327
|
return e.replace(/^(.*?)-/, "");
|
|
1328
1328
|
}
|
|
1329
1329
|
var Oa = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ui = /^(@+)?(\+|#+)?[rs]?$/g, Wo = /(\*)(0+)|(#+)(0+)|(0+)/g, ci = /^(0+)$/;
|
|
@@ -1415,7 +1415,7 @@ function Vo(e) {
|
|
|
1415
1415
|
continue;
|
|
1416
1416
|
case "measure-unit":
|
|
1417
1417
|
case "unit":
|
|
1418
|
-
t.style = "unit", t.unit =
|
|
1418
|
+
t.style = "unit", t.unit = zo(r.options[0]);
|
|
1419
1419
|
continue;
|
|
1420
1420
|
case "compact-short":
|
|
1421
1421
|
case "K":
|
|
@@ -1515,7 +1515,7 @@ function Vo(e) {
|
|
|
1515
1515
|
}
|
|
1516
1516
|
return t;
|
|
1517
1517
|
}
|
|
1518
|
-
var
|
|
1518
|
+
var Dt = {
|
|
1519
1519
|
"001": [
|
|
1520
1520
|
"H",
|
|
1521
1521
|
"h"
|
|
@@ -2964,11 +2964,11 @@ function Zo(e) {
|
|
|
2964
2964
|
}
|
|
2965
2965
|
var n = e.language, a;
|
|
2966
2966
|
n !== "root" && (a = e.maximize().region);
|
|
2967
|
-
var r =
|
|
2967
|
+
var r = Dt[a || ""] || Dt[n || ""] || Dt["".concat(n, "-001")] || Dt["001"];
|
|
2968
2968
|
return r[0];
|
|
2969
2969
|
}
|
|
2970
2970
|
var en, Xo = new RegExp("^".concat(li.source, "*")), Ko = new RegExp("".concat(li.source, "*$"));
|
|
2971
|
-
function
|
|
2971
|
+
function H(e, t) {
|
|
2972
2972
|
return { start: e, end: t };
|
|
2973
2973
|
}
|
|
2974
2974
|
var Jo = !!String.prototype.startsWith && "_a".startsWith("a", 1), Yo = !!String.fromCodePoint, Qo = !!Object.fromEntries, es = !!String.prototype.codePointAt, ts = !!String.prototype.trimStart, ns = !!String.prototype.trimEnd, as = !!Number.isSafeInteger, rs = as ? Number.isSafeInteger : function(e) {
|
|
@@ -3095,13 +3095,13 @@ var ls = (
|
|
|
3095
3095
|
if (i === 35 && (n === "plural" || n === "selectordinal")) {
|
|
3096
3096
|
var s = this.clonePosition();
|
|
3097
3097
|
this.bump(), r.push({
|
|
3098
|
-
type:
|
|
3099
|
-
location:
|
|
3098
|
+
type: G.pound,
|
|
3099
|
+
location: H(s, this.clonePosition())
|
|
3100
3100
|
});
|
|
3101
3101
|
} else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3102
3102
|
if (a)
|
|
3103
3103
|
break;
|
|
3104
|
-
return this.error(P.UNMATCHED_CLOSING_TAG,
|
|
3104
|
+
return this.error(P.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
|
|
3105
3105
|
} else if (i === 60 && !this.ignoreTag && En(this.peek() || 0)) {
|
|
3106
3106
|
var o = this.parseTag(t, n);
|
|
3107
3107
|
if (o.err)
|
|
@@ -3123,9 +3123,9 @@ var ls = (
|
|
|
3123
3123
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3124
3124
|
return {
|
|
3125
3125
|
val: {
|
|
3126
|
-
type:
|
|
3126
|
+
type: G.literal,
|
|
3127
3127
|
value: "<".concat(r, "/>"),
|
|
3128
|
-
location:
|
|
3128
|
+
location: H(a, this.clonePosition())
|
|
3129
3129
|
},
|
|
3130
3130
|
err: null
|
|
3131
3131
|
};
|
|
@@ -3136,21 +3136,21 @@ var ls = (
|
|
|
3136
3136
|
var o = i.val, s = this.clonePosition();
|
|
3137
3137
|
if (this.bumpIf("</")) {
|
|
3138
3138
|
if (this.isEOF() || !En(this.char()))
|
|
3139
|
-
return this.error(P.INVALID_TAG,
|
|
3139
|
+
return this.error(P.INVALID_TAG, H(s, this.clonePosition()));
|
|
3140
3140
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
3141
|
-
return r !== u ? this.error(P.UNMATCHED_CLOSING_TAG,
|
|
3141
|
+
return r !== u ? this.error(P.UNMATCHED_CLOSING_TAG, H(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3142
3142
|
val: {
|
|
3143
|
-
type:
|
|
3143
|
+
type: G.tag,
|
|
3144
3144
|
value: r,
|
|
3145
3145
|
children: o,
|
|
3146
|
-
location:
|
|
3146
|
+
location: H(a, this.clonePosition())
|
|
3147
3147
|
},
|
|
3148
3148
|
err: null
|
|
3149
|
-
} : this.error(P.INVALID_TAG,
|
|
3149
|
+
} : this.error(P.INVALID_TAG, H(s, this.clonePosition())));
|
|
3150
3150
|
} else
|
|
3151
|
-
return this.error(P.UNCLOSED_TAG,
|
|
3151
|
+
return this.error(P.UNCLOSED_TAG, H(a, this.clonePosition()));
|
|
3152
3152
|
} else
|
|
3153
|
-
return this.error(P.INVALID_TAG,
|
|
3153
|
+
return this.error(P.INVALID_TAG, H(a, this.clonePosition()));
|
|
3154
3154
|
}, e.prototype.parseTagName = function() {
|
|
3155
3155
|
var t = this.offset();
|
|
3156
3156
|
for (this.bump(); !this.isEOF() && cs(this.char()); )
|
|
@@ -3175,9 +3175,9 @@ var ls = (
|
|
|
3175
3175
|
}
|
|
3176
3176
|
break;
|
|
3177
3177
|
}
|
|
3178
|
-
var l =
|
|
3178
|
+
var l = H(a, this.clonePosition());
|
|
3179
3179
|
return {
|
|
3180
|
-
val: { type:
|
|
3180
|
+
val: { type: G.literal, value: r, location: l },
|
|
3181
3181
|
err: null
|
|
3182
3182
|
};
|
|
3183
3183
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -3225,40 +3225,40 @@ var ls = (
|
|
|
3225
3225
|
}, e.prototype.parseArgument = function(t, n) {
|
|
3226
3226
|
var a = this.clonePosition();
|
|
3227
3227
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
3228
|
-
return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3228
|
+
return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, H(a, this.clonePosition()));
|
|
3229
3229
|
if (this.char() === 125)
|
|
3230
|
-
return this.bump(), this.error(P.EMPTY_ARGUMENT,
|
|
3230
|
+
return this.bump(), this.error(P.EMPTY_ARGUMENT, H(a, this.clonePosition()));
|
|
3231
3231
|
var r = this.parseIdentifierIfPossible().value;
|
|
3232
3232
|
if (!r)
|
|
3233
|
-
return this.error(P.MALFORMED_ARGUMENT,
|
|
3233
|
+
return this.error(P.MALFORMED_ARGUMENT, H(a, this.clonePosition()));
|
|
3234
3234
|
if (this.bumpSpace(), this.isEOF())
|
|
3235
|
-
return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3235
|
+
return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, H(a, this.clonePosition()));
|
|
3236
3236
|
switch (this.char()) {
|
|
3237
3237
|
case 125:
|
|
3238
3238
|
return this.bump(), {
|
|
3239
3239
|
val: {
|
|
3240
|
-
type:
|
|
3240
|
+
type: G.argument,
|
|
3241
3241
|
// value does not include the opening and closing braces.
|
|
3242
3242
|
value: r,
|
|
3243
|
-
location:
|
|
3243
|
+
location: H(a, this.clonePosition())
|
|
3244
3244
|
},
|
|
3245
3245
|
err: null
|
|
3246
3246
|
};
|
|
3247
3247
|
case 44:
|
|
3248
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3248
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, H(a, this.clonePosition())) : this.parseArgumentOptions(t, n, r, a);
|
|
3249
3249
|
default:
|
|
3250
|
-
return this.error(P.MALFORMED_ARGUMENT,
|
|
3250
|
+
return this.error(P.MALFORMED_ARGUMENT, H(a, this.clonePosition()));
|
|
3251
3251
|
}
|
|
3252
3252
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3253
3253
|
var t = this.clonePosition(), n = this.offset(), a = bn(this.message, n), r = n + a.length;
|
|
3254
3254
|
this.bumpTo(r);
|
|
3255
|
-
var i = this.clonePosition(), o =
|
|
3255
|
+
var i = this.clonePosition(), o = H(t, i);
|
|
3256
3256
|
return { value: a, location: o };
|
|
3257
3257
|
}, e.prototype.parseArgumentOptions = function(t, n, a, r) {
|
|
3258
3258
|
var i, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
3259
3259
|
switch (s) {
|
|
3260
3260
|
case "":
|
|
3261
|
-
return this.error(P.EXPECT_ARGUMENT_TYPE,
|
|
3261
|
+
return this.error(P.EXPECT_ARGUMENT_TYPE, H(o, l));
|
|
3262
3262
|
case "number":
|
|
3263
3263
|
case "date":
|
|
3264
3264
|
case "time": {
|
|
@@ -3271,44 +3271,44 @@ var ls = (
|
|
|
3271
3271
|
return c;
|
|
3272
3272
|
var d = ss(c.val);
|
|
3273
3273
|
if (d.length === 0)
|
|
3274
|
-
return this.error(P.EXPECT_ARGUMENT_STYLE,
|
|
3275
|
-
var p =
|
|
3274
|
+
return this.error(P.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
|
|
3275
|
+
var p = H(m, this.clonePosition());
|
|
3276
3276
|
u = { style: d, styleLocation: p };
|
|
3277
3277
|
}
|
|
3278
3278
|
var g = this.tryParseArgumentClose(r);
|
|
3279
3279
|
if (g.err)
|
|
3280
3280
|
return g;
|
|
3281
|
-
var
|
|
3281
|
+
var v = H(r, this.clonePosition());
|
|
3282
3282
|
if (u && La(u == null ? void 0 : u.style, "::", 0)) {
|
|
3283
3283
|
var b = os(u.style.slice(2));
|
|
3284
3284
|
if (s === "number") {
|
|
3285
3285
|
var c = this.parseNumberSkeletonFromString(b, u.styleLocation);
|
|
3286
3286
|
return c.err ? c : {
|
|
3287
|
-
val: { type:
|
|
3287
|
+
val: { type: G.number, value: a, location: v, style: c.val },
|
|
3288
3288
|
err: null
|
|
3289
3289
|
};
|
|
3290
3290
|
} else {
|
|
3291
3291
|
if (b.length === 0)
|
|
3292
|
-
return this.error(P.EXPECT_DATE_TIME_SKELETON,
|
|
3293
|
-
var
|
|
3294
|
-
this.locale && (
|
|
3292
|
+
return this.error(P.EXPECT_DATE_TIME_SKELETON, v);
|
|
3293
|
+
var _ = b;
|
|
3294
|
+
this.locale && (_ = qo(b, this.locale));
|
|
3295
3295
|
var d = {
|
|
3296
3296
|
type: at.dateTime,
|
|
3297
|
-
pattern:
|
|
3297
|
+
pattern: _,
|
|
3298
3298
|
location: u.styleLocation,
|
|
3299
|
-
parsedOptions: this.shouldParseSkeletons ? Uo(
|
|
3300
|
-
}, x = s === "date" ?
|
|
3299
|
+
parsedOptions: this.shouldParseSkeletons ? Uo(_) : {}
|
|
3300
|
+
}, x = s === "date" ? G.date : G.time;
|
|
3301
3301
|
return {
|
|
3302
|
-
val: { type: x, value: a, location:
|
|
3302
|
+
val: { type: x, value: a, location: v, style: d },
|
|
3303
3303
|
err: null
|
|
3304
3304
|
};
|
|
3305
3305
|
}
|
|
3306
3306
|
}
|
|
3307
3307
|
return {
|
|
3308
3308
|
val: {
|
|
3309
|
-
type: s === "number" ?
|
|
3309
|
+
type: s === "number" ? G.number : s === "date" ? G.date : G.time,
|
|
3310
3310
|
value: a,
|
|
3311
|
-
location:
|
|
3311
|
+
location: v,
|
|
3312
3312
|
style: (i = u == null ? void 0 : u.style) !== null && i !== void 0 ? i : null
|
|
3313
3313
|
},
|
|
3314
3314
|
err: null
|
|
@@ -3319,12 +3319,12 @@ var ls = (
|
|
|
3319
3319
|
case "select": {
|
|
3320
3320
|
var E = this.clonePosition();
|
|
3321
3321
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3322
|
-
return this.error(P.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
3322
|
+
return this.error(P.EXPECT_SELECT_ARGUMENT_OPTIONS, H(E, C({}, E)));
|
|
3323
3323
|
this.bumpSpace();
|
|
3324
3324
|
var N = this.parseIdentifierIfPossible(), y = 0;
|
|
3325
3325
|
if (s !== "select" && N.value === "offset") {
|
|
3326
3326
|
if (!this.bumpIf(":"))
|
|
3327
|
-
return this.error(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
3327
|
+
return this.error(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
|
|
3328
3328
|
this.bumpSpace();
|
|
3329
3329
|
var c = this.tryParseDecimalInteger(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, P.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3330
3330
|
if (c.err)
|
|
@@ -3337,32 +3337,32 @@ var ls = (
|
|
|
3337
3337
|
var g = this.tryParseArgumentClose(r);
|
|
3338
3338
|
if (g.err)
|
|
3339
3339
|
return g;
|
|
3340
|
-
var
|
|
3340
|
+
var z = H(r, this.clonePosition());
|
|
3341
3341
|
return s === "select" ? {
|
|
3342
3342
|
val: {
|
|
3343
|
-
type:
|
|
3343
|
+
type: G.select,
|
|
3344
3344
|
value: a,
|
|
3345
3345
|
options: Ha(M.val),
|
|
3346
|
-
location:
|
|
3346
|
+
location: z
|
|
3347
3347
|
},
|
|
3348
3348
|
err: null
|
|
3349
3349
|
} : {
|
|
3350
3350
|
val: {
|
|
3351
|
-
type:
|
|
3351
|
+
type: G.plural,
|
|
3352
3352
|
value: a,
|
|
3353
3353
|
options: Ha(M.val),
|
|
3354
3354
|
offset: y,
|
|
3355
3355
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
3356
|
-
location:
|
|
3356
|
+
location: z
|
|
3357
3357
|
},
|
|
3358
3358
|
err: null
|
|
3359
3359
|
};
|
|
3360
3360
|
}
|
|
3361
3361
|
default:
|
|
3362
|
-
return this.error(P.INVALID_ARGUMENT_TYPE,
|
|
3362
|
+
return this.error(P.INVALID_ARGUMENT_TYPE, H(o, l));
|
|
3363
3363
|
}
|
|
3364
3364
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
3365
|
-
return this.isEOF() || this.char() !== 125 ? this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
3365
|
+
return this.isEOF() || this.char() !== 125 ? this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, H(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
3366
3366
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
3367
3367
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
3368
3368
|
var a = this.char();
|
|
@@ -3371,7 +3371,7 @@ var ls = (
|
|
|
3371
3371
|
this.bump();
|
|
3372
3372
|
var r = this.clonePosition();
|
|
3373
3373
|
if (!this.bumpUntil("'"))
|
|
3374
|
-
return this.error(P.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
3374
|
+
return this.error(P.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, H(r, this.clonePosition()));
|
|
3375
3375
|
this.bump();
|
|
3376
3376
|
break;
|
|
3377
3377
|
}
|
|
@@ -3401,7 +3401,7 @@ var ls = (
|
|
|
3401
3401
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3402
3402
|
var a = [];
|
|
3403
3403
|
try {
|
|
3404
|
-
a =
|
|
3404
|
+
a = Go(t);
|
|
3405
3405
|
} catch (r) {
|
|
3406
3406
|
return this.error(P.INVALID_NUMBER_SKELETON, n);
|
|
3407
3407
|
}
|
|
@@ -3422,7 +3422,7 @@ var ls = (
|
|
|
3422
3422
|
var d = this.tryParseDecimalInteger(P.EXPECT_PLURAL_ARGUMENT_SELECTOR, P.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3423
3423
|
if (d.err)
|
|
3424
3424
|
return d;
|
|
3425
|
-
m =
|
|
3425
|
+
m = H(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
|
|
3426
3426
|
} else
|
|
3427
3427
|
break;
|
|
3428
3428
|
}
|
|
@@ -3431,22 +3431,22 @@ var ls = (
|
|
|
3431
3431
|
u === "other" && (o = !0), this.bumpSpace();
|
|
3432
3432
|
var p = this.clonePosition();
|
|
3433
3433
|
if (!this.bumpIf("{"))
|
|
3434
|
-
return this.error(n === "select" ? P.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : P.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3434
|
+
return this.error(n === "select" ? P.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : P.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
|
|
3435
3435
|
var g = this.parseMessage(t + 1, n, a);
|
|
3436
3436
|
if (g.err)
|
|
3437
3437
|
return g;
|
|
3438
|
-
var
|
|
3439
|
-
if (
|
|
3440
|
-
return
|
|
3438
|
+
var v = this.tryParseArgumentClose(p);
|
|
3439
|
+
if (v.err)
|
|
3440
|
+
return v;
|
|
3441
3441
|
s.push([
|
|
3442
3442
|
u,
|
|
3443
3443
|
{
|
|
3444
3444
|
value: g.val,
|
|
3445
|
-
location:
|
|
3445
|
+
location: H(p, this.clonePosition())
|
|
3446
3446
|
}
|
|
3447
3447
|
]), l.add(u), this.bumpSpace(), i = this.parseIdentifierIfPossible(), u = i.value, m = i.location;
|
|
3448
3448
|
}
|
|
3449
|
-
return s.length === 0 ? this.error(n === "select" ? P.EXPECT_SELECT_ARGUMENT_SELECTOR : P.EXPECT_PLURAL_ARGUMENT_SELECTOR,
|
|
3449
|
+
return s.length === 0 ? this.error(n === "select" ? P.EXPECT_SELECT_ARGUMENT_SELECTOR : P.EXPECT_PLURAL_ARGUMENT_SELECTOR, H(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(P.MISSING_OTHER_CLAUSE, H(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3450
3450
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3451
3451
|
var a = 1, r = this.clonePosition();
|
|
3452
3452
|
this.bumpIf("+") || this.bumpIf("-") && (a = -1);
|
|
@@ -3457,7 +3457,7 @@ var ls = (
|
|
|
3457
3457
|
else
|
|
3458
3458
|
break;
|
|
3459
3459
|
}
|
|
3460
|
-
var l =
|
|
3460
|
+
var l = H(r, this.clonePosition());
|
|
3461
3461
|
return i ? (o *= a, rs(o) ? { val: o, err: null } : this.error(n, l)) : this.error(t, l);
|
|
3462
3462
|
}, e.prototype.offset = function() {
|
|
3463
3463
|
return this.position.offset;
|
|
@@ -3560,7 +3560,7 @@ var Me;
|
|
|
3560
3560
|
(function(e) {
|
|
3561
3561
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3562
3562
|
})(Me || (Me = {}));
|
|
3563
|
-
var
|
|
3563
|
+
var Fe = (
|
|
3564
3564
|
/** @class */
|
|
3565
3565
|
function(e) {
|
|
3566
3566
|
_e(t, e);
|
|
@@ -3580,7 +3580,7 @@ var ke = (
|
|
|
3580
3580
|
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(a, '". Options are "').concat(Object.keys(r).join('", "'), '"'), Me.INVALID_VALUE, i) || this;
|
|
3581
3581
|
}
|
|
3582
3582
|
return t;
|
|
3583
|
-
}(
|
|
3583
|
+
}(Fe)
|
|
3584
3584
|
), ds = (
|
|
3585
3585
|
/** @class */
|
|
3586
3586
|
function(e) {
|
|
@@ -3589,7 +3589,7 @@ var ke = (
|
|
|
3589
3589
|
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(a), Me.INVALID_VALUE, r) || this;
|
|
3590
3590
|
}
|
|
3591
3591
|
return t;
|
|
3592
|
-
}(
|
|
3592
|
+
}(Fe)
|
|
3593
3593
|
), ps = (
|
|
3594
3594
|
/** @class */
|
|
3595
3595
|
function(e) {
|
|
@@ -3598,7 +3598,7 @@ var ke = (
|
|
|
3598
3598
|
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(a, '"'), Me.MISSING_VALUE, a) || this;
|
|
3599
3599
|
}
|
|
3600
3600
|
return t;
|
|
3601
|
-
}(
|
|
3601
|
+
}(Fe)
|
|
3602
3602
|
), ie;
|
|
3603
3603
|
(function(e) {
|
|
3604
3604
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -3629,7 +3629,7 @@ function zt(e, t, n, a, r, i, o) {
|
|
|
3629
3629
|
});
|
|
3630
3630
|
continue;
|
|
3631
3631
|
}
|
|
3632
|
-
if (
|
|
3632
|
+
if (Fo(m)) {
|
|
3633
3633
|
typeof i == "number" && s.push({
|
|
3634
3634
|
type: ie.literal,
|
|
3635
3635
|
value: n.getNumberFormat(t).format(i)
|
|
@@ -3672,10 +3672,10 @@ function zt(e, t, n, a, r, i, o) {
|
|
|
3672
3672
|
continue;
|
|
3673
3673
|
}
|
|
3674
3674
|
if (oi(m)) {
|
|
3675
|
-
var g = m.children,
|
|
3675
|
+
var g = m.children, v = m.value, b = r[v];
|
|
3676
3676
|
if (!hi(b))
|
|
3677
|
-
throw new ds(
|
|
3678
|
-
var
|
|
3677
|
+
throw new ds(v, "function", o);
|
|
3678
|
+
var _ = zt(g, t, n, a, r, i), x = b(_.map(function(y) {
|
|
3679
3679
|
return y.value;
|
|
3680
3680
|
}));
|
|
3681
3681
|
Array.isArray(x) || (x = [x]), s.push.apply(s, x.map(function(y) {
|
|
@@ -3696,7 +3696,7 @@ function zt(e, t, n, a, r, i, o) {
|
|
|
3696
3696
|
var E = m.options["=".concat(d)];
|
|
3697
3697
|
if (!E) {
|
|
3698
3698
|
if (!Intl.PluralRules)
|
|
3699
|
-
throw new
|
|
3699
|
+
throw new Fe(`Intl.PluralRules is not available in this environment.
|
|
3700
3700
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3701
3701
|
`, Me.MISSING_INTL_API, o);
|
|
3702
3702
|
var N = n.getPluralRules(t, { type: m.pluralType }).select(d - (m.offset || 0));
|
|
@@ -3877,10 +3877,10 @@ var gi = (
|
|
|
3877
3877
|
}
|
|
3878
3878
|
}, e;
|
|
3879
3879
|
}()
|
|
3880
|
-
),
|
|
3880
|
+
), je;
|
|
3881
3881
|
(function(e) {
|
|
3882
3882
|
e.FORMAT_ERROR = "FORMAT_ERROR", e.UNSUPPORTED_FORMATTER = "UNSUPPORTED_FORMATTER", e.INVALID_CONFIG = "INVALID_CONFIG", e.MISSING_DATA = "MISSING_DATA", e.MISSING_TRANSLATION = "MISSING_TRANSLATION";
|
|
3883
|
-
})(
|
|
3883
|
+
})(je || (je = {}));
|
|
3884
3884
|
var It = (
|
|
3885
3885
|
/** @class */
|
|
3886
3886
|
function(e) {
|
|
@@ -3899,7 +3899,7 @@ var It = (
|
|
|
3899
3899
|
function(e) {
|
|
3900
3900
|
_e(t, e);
|
|
3901
3901
|
function t(n, a) {
|
|
3902
|
-
return e.call(this,
|
|
3902
|
+
return e.call(this, je.UNSUPPORTED_FORMATTER, n, a) || this;
|
|
3903
3903
|
}
|
|
3904
3904
|
return t;
|
|
3905
3905
|
}(It)
|
|
@@ -3908,16 +3908,16 @@ var It = (
|
|
|
3908
3908
|
function(e) {
|
|
3909
3909
|
_e(t, e);
|
|
3910
3910
|
function t(n, a) {
|
|
3911
|
-
return e.call(this,
|
|
3911
|
+
return e.call(this, je.INVALID_CONFIG, n, a) || this;
|
|
3912
3912
|
}
|
|
3913
3913
|
return t;
|
|
3914
3914
|
}(It)
|
|
3915
|
-
),
|
|
3915
|
+
), Fa = (
|
|
3916
3916
|
/** @class */
|
|
3917
3917
|
function(e) {
|
|
3918
3918
|
_e(t, e);
|
|
3919
3919
|
function t(n, a) {
|
|
3920
|
-
return e.call(this,
|
|
3920
|
+
return e.call(this, je.MISSING_DATA, n, a) || this;
|
|
3921
3921
|
}
|
|
3922
3922
|
return t;
|
|
3923
3923
|
}(It)
|
|
@@ -3926,7 +3926,7 @@ var It = (
|
|
|
3926
3926
|
function(e) {
|
|
3927
3927
|
_e(t, e);
|
|
3928
3928
|
function t(n, a, r) {
|
|
3929
|
-
var i = e.call(this,
|
|
3929
|
+
var i = e.call(this, je.FORMAT_ERROR, "".concat(n, `
|
|
3930
3930
|
Locale: `).concat(a, `
|
|
3931
3931
|
`), r) || this;
|
|
3932
3932
|
return i.locale = a, i;
|
|
@@ -3952,7 +3952,7 @@ Description: `).concat(r == null ? void 0 : r.description, `
|
|
|
3952
3952
|
function(e) {
|
|
3953
3953
|
_e(t, e);
|
|
3954
3954
|
function t(n, a) {
|
|
3955
|
-
var r = e.call(this,
|
|
3955
|
+
var r = e.call(this, je.MISSING_TRANSLATION, 'Missing message: "'.concat(n.id, '" for locale "').concat(a, '", using ').concat(n.defaultMessage ? "default message (".concat(typeof n.defaultMessage == "string" ? n.defaultMessage : n.defaultMessage.map(function(i) {
|
|
3956
3956
|
var o;
|
|
3957
3957
|
return (o = i.value) !== null && o !== void 0 ? o : JSON.stringify(i);
|
|
3958
3958
|
}).join(), ")") : "id", " as fallback.")) || this;
|
|
@@ -3961,7 +3961,7 @@ Description: `).concat(r == null ? void 0 : r.description, `
|
|
|
3961
3961
|
return t;
|
|
3962
3962
|
}(It)
|
|
3963
3963
|
);
|
|
3964
|
-
function
|
|
3964
|
+
function Ze(e, t, n) {
|
|
3965
3965
|
return n === void 0 && (n = {}), t.reduce(function(a, r) {
|
|
3966
3966
|
return r in e ? a[r] = e[r] : r in n && (a[r] = n[r]), a;
|
|
3967
3967
|
}, {});
|
|
@@ -4073,12 +4073,12 @@ 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
|
|
4076
|
+
function kt(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
|
}, {});
|
|
4080
4080
|
}
|
|
4081
|
-
function
|
|
4081
|
+
function Ba(e, t) {
|
|
4082
4082
|
var n = Object.keys(C(C({}, e), t));
|
|
4083
4083
|
return n.reduce(function(a, r) {
|
|
4084
4084
|
return a[r] = C(C({}, e[r] || {}), t[r] || {}), a;
|
|
@@ -4088,49 +4088,49 @@ 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:
|
|
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)) });
|
|
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;
|
|
4095
4095
|
n === void 0 && (n = { id: "" });
|
|
4096
|
-
var g = n.id,
|
|
4096
|
+
var g = n.id, v = n.defaultMessage;
|
|
4097
4097
|
ei(!!g, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
|
|
4098
|
-
var b = String(g),
|
|
4098
|
+
var b = String(g), _ = (
|
|
4099
4099
|
// In case messages is Object.create(null)
|
|
4100
4100
|
// e.g import('foo.json') from webpack)
|
|
4101
4101
|
// See https://github.com/formatjs/formatjs/issues/1914
|
|
4102
4102
|
s && Object.prototype.hasOwnProperty.call(s, b) && s[b]
|
|
4103
4103
|
);
|
|
4104
|
-
if (Array.isArray(
|
|
4105
|
-
return
|
|
4106
|
-
if (!a &&
|
|
4107
|
-
return
|
|
4108
|
-
if (a = C(C({}, p), a || {}), o = Ua(o, d), u = Ua(u, d), !
|
|
4109
|
-
if (m === !1 &&
|
|
4110
|
-
return
|
|
4111
|
-
if ((!
|
|
4104
|
+
if (Array.isArray(_) && _.length === 1 && _[0].type === G.literal)
|
|
4105
|
+
return _[0].value;
|
|
4106
|
+
if (!a && _ && typeof _ == "string" && !p)
|
|
4107
|
+
return _.replace(/'\{(.*?)\}'/gi, "{$1}");
|
|
4108
|
+
if (a = C(C({}, p), a || {}), o = Ua(o, d), u = Ua(u, d), !_) {
|
|
4109
|
+
if (m === !1 && _ === "")
|
|
4110
|
+
return _;
|
|
4111
|
+
if ((!v || i && i.toLowerCase() !== l.toLowerCase()) && c(new Es(n, i)), v)
|
|
4112
4112
|
try {
|
|
4113
|
-
var x = t.getMessageFormat(
|
|
4113
|
+
var x = t.getMessageFormat(v, l, u, r);
|
|
4114
4114
|
return x.format(a);
|
|
4115
4115
|
} catch (E) {
|
|
4116
|
-
return c(new nn('Error formatting default message for: "'.concat(b, '", rendering default message verbatim'), i, n, E)), typeof
|
|
4116
|
+
return c(new nn('Error formatting default message for: "'.concat(b, '", rendering default message verbatim'), i, n, E)), typeof v == "string" ? v : b;
|
|
4117
4117
|
}
|
|
4118
4118
|
return b;
|
|
4119
4119
|
}
|
|
4120
4120
|
try {
|
|
4121
|
-
var x = t.getMessageFormat(
|
|
4121
|
+
var x = t.getMessageFormat(_, i, o, C({ formatters: t }, r || {}));
|
|
4122
4122
|
return x.format(a);
|
|
4123
4123
|
} catch (E) {
|
|
4124
|
-
c(new nn('Error formatting message: "'.concat(b, '", using ').concat(
|
|
4124
|
+
c(new nn('Error formatting message: "'.concat(b, '", using ').concat(v ? "default message" : "id", " as fallback."), i, n, E));
|
|
4125
4125
|
}
|
|
4126
|
-
if (
|
|
4126
|
+
if (v)
|
|
4127
4127
|
try {
|
|
4128
|
-
var x = t.getMessageFormat(
|
|
4128
|
+
var x = t.getMessageFormat(v, l, u, r);
|
|
4129
4129
|
return x.format(a);
|
|
4130
4130
|
} catch (E) {
|
|
4131
4131
|
c(new nn('Error formatting the default message for: "'.concat(b, '", rendering message verbatim'), i, n, E));
|
|
4132
4132
|
}
|
|
4133
|
-
return typeof
|
|
4133
|
+
return typeof _ == "string" ? _ : typeof v == "string" ? v : b;
|
|
4134
4134
|
}, vi = [
|
|
4135
4135
|
"formatMatcher",
|
|
4136
4136
|
"timeZone",
|
|
@@ -4152,10 +4152,10 @@ var Cn = function(e, t, n, a, r) {
|
|
|
4152
4152
|
"numberingSystem",
|
|
4153
4153
|
"fractionalSecondDigits"
|
|
4154
4154
|
];
|
|
4155
|
-
function
|
|
4155
|
+
function Xt(e, t, n, a) {
|
|
4156
4156
|
var r = e.locale, i = e.formats, o = e.onError, s = e.timeZone;
|
|
4157
4157
|
a === void 0 && (a = {});
|
|
4158
|
-
var l = a.format, u = C(C({}, s && { timeZone: s }), l && Kn(i, t, l, o)), m =
|
|
4158
|
+
var l = a.format, u = C(C({}, s && { timeZone: s }), l && Kn(i, t, l, o)), m = Ze(a, vi, u);
|
|
4159
4159
|
return t === "time" && !m.hour && !m.minute && !m.second && !m.timeStyle && !m.dateStyle && (m = C(C({}, m), { hour: "numeric", minute: "numeric" })), n(r, m);
|
|
4160
4160
|
}
|
|
4161
4161
|
function As(e, t) {
|
|
@@ -4163,7 +4163,7 @@ function As(e, t) {
|
|
|
4163
4163
|
n[a - 2] = arguments[a];
|
|
4164
4164
|
var r = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof r == "string" ? new Date(r || 0) : r;
|
|
4165
4165
|
try {
|
|
4166
|
-
return
|
|
4166
|
+
return Xt(e, "date", t, o).format(s);
|
|
4167
4167
|
} catch (l) {
|
|
4168
4168
|
e.onError(new ve("Error formatting date.", e.locale, l));
|
|
4169
4169
|
}
|
|
@@ -4174,7 +4174,7 @@ function Ts(e, t) {
|
|
|
4174
4174
|
n[a - 2] = arguments[a];
|
|
4175
4175
|
var r = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof r == "string" ? new Date(r || 0) : r;
|
|
4176
4176
|
try {
|
|
4177
|
-
return
|
|
4177
|
+
return Xt(e, "time", t, o).format(s);
|
|
4178
4178
|
} catch (l) {
|
|
4179
4179
|
e.onError(new ve("Error formatting time.", e.locale, l));
|
|
4180
4180
|
}
|
|
@@ -4183,7 +4183,7 @@ function Ts(e, t) {
|
|
|
4183
4183
|
function Is(e, t) {
|
|
4184
4184
|
for (var n = [], a = 2; a < arguments.length; a++)
|
|
4185
4185
|
n[a - 2] = arguments[a];
|
|
4186
|
-
var r = n[0], i = n[1], o = n[2], s = o === void 0 ? {} : o, l = e.timeZone, u = e.locale, m = e.onError, c =
|
|
4186
|
+
var r = n[0], i = n[1], o = n[2], s = o === void 0 ? {} : o, l = e.timeZone, u = e.locale, m = e.onError, c = Ze(s, vi, l ? { timeZone: l } : {});
|
|
4187
4187
|
try {
|
|
4188
4188
|
return t(u, c).formatRange(r, i);
|
|
4189
4189
|
} catch (d) {
|
|
@@ -4196,7 +4196,7 @@ function Ms(e, t) {
|
|
|
4196
4196
|
n[a - 2] = arguments[a];
|
|
4197
4197
|
var r = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof r == "string" ? new Date(r || 0) : r;
|
|
4198
4198
|
try {
|
|
4199
|
-
return
|
|
4199
|
+
return Xt(e, "date", t, o).formatToParts(s);
|
|
4200
4200
|
} catch (l) {
|
|
4201
4201
|
e.onError(new ve("Error formatting date.", e.locale, l));
|
|
4202
4202
|
}
|
|
@@ -4207,7 +4207,7 @@ function ws(e, t) {
|
|
|
4207
4207
|
n[a - 2] = arguments[a];
|
|
4208
4208
|
var r = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof r == "string" ? new Date(r || 0) : r;
|
|
4209
4209
|
try {
|
|
4210
|
-
return
|
|
4210
|
+
return Xt(e, "time", t, o).formatToParts(s);
|
|
4211
4211
|
} catch (l) {
|
|
4212
4212
|
e.onError(new ve("Error formatting time.", e.locale, l));
|
|
4213
4213
|
}
|
|
@@ -4221,10 +4221,10 @@ var Ns = [
|
|
|
4221
4221
|
];
|
|
4222
4222
|
function Os(e, t, n, a) {
|
|
4223
4223
|
var r = e.locale, i = e.onError, o = Intl.DisplayNames;
|
|
4224
|
-
o || i(new
|
|
4224
|
+
o || i(new Fe(`Intl.DisplayNames is not available in this environment.
|
|
4225
4225
|
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
4226
4226
|
`, Me.MISSING_INTL_API));
|
|
4227
|
-
var s =
|
|
4227
|
+
var s = Ze(a, Ns);
|
|
4228
4228
|
try {
|
|
4229
4229
|
return t(r, s).of(n);
|
|
4230
4230
|
} catch (l) {
|
|
@@ -4250,10 +4250,10 @@ function bi(e, t, n, a) {
|
|
|
4250
4250
|
var r = e.locale, i = e.onError;
|
|
4251
4251
|
a === void 0 && (a = {});
|
|
4252
4252
|
var o = Intl.ListFormat;
|
|
4253
|
-
o || i(new
|
|
4253
|
+
o || i(new Fe(`Intl.ListFormat is not available in this environment.
|
|
4254
4254
|
Try polyfilling it using "@formatjs/intl-listformat"
|
|
4255
4255
|
`, Me.MISSING_INTL_API));
|
|
4256
|
-
var s =
|
|
4256
|
+
var s = Ze(a, Ps);
|
|
4257
4257
|
try {
|
|
4258
4258
|
var l = {}, u = n.map(function(m, c) {
|
|
4259
4259
|
if (typeof m == "object") {
|
|
@@ -4273,10 +4273,10 @@ Try polyfilling it using "@formatjs/intl-listformat"
|
|
|
4273
4273
|
var Hs = ["type"];
|
|
4274
4274
|
function Ds(e, t, n, a) {
|
|
4275
4275
|
var r = e.locale, i = e.onError;
|
|
4276
|
-
a === void 0 && (a = {}), Intl.PluralRules || i(new
|
|
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"
|
|
4278
4278
|
`, Me.MISSING_INTL_API));
|
|
4279
|
-
var o =
|
|
4279
|
+
var o = Ze(a, Hs);
|
|
4280
4280
|
try {
|
|
4281
4281
|
return t(r, o).select(n);
|
|
4282
4282
|
} catch (s) {
|
|
@@ -4285,20 +4285,20 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
4285
4285
|
return "other";
|
|
4286
4286
|
}
|
|
4287
4287
|
var ks = ["numeric", "style"];
|
|
4288
|
-
function
|
|
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 =
|
|
4291
|
+
var o = n.format, s = !!o && Kn(r, "relative", o, i) || {}, l = Ze(n, ks, s);
|
|
4292
4292
|
return t(a, l);
|
|
4293
4293
|
}
|
|
4294
|
-
function
|
|
4294
|
+
function Bs(e, t, n, a, r) {
|
|
4295
4295
|
r === void 0 && (r = {}), a || (a = "second");
|
|
4296
4296
|
var i = Intl.RelativeTimeFormat;
|
|
4297
|
-
i || e.onError(new
|
|
4297
|
+
i || e.onError(new Fe(`Intl.RelativeTimeFormat is not available in this environment.
|
|
4298
4298
|
Try polyfilling it using "@formatjs/intl-relativetimeformat"
|
|
4299
4299
|
`, Me.MISSING_INTL_API));
|
|
4300
4300
|
try {
|
|
4301
|
-
return
|
|
4301
|
+
return Fs(e, t, r).format(n, a);
|
|
4302
4302
|
} catch (o) {
|
|
4303
4303
|
e.onError(new ve("Error formatting relative time.", e.locale, o));
|
|
4304
4304
|
}
|
|
@@ -4333,7 +4333,7 @@ var Us = [
|
|
|
4333
4333
|
function Ei(e, t, n) {
|
|
4334
4334
|
var a = e.locale, r = e.formats, i = e.onError;
|
|
4335
4335
|
n === void 0 && (n = {});
|
|
4336
|
-
var o = n.format, s = o && Kn(r, "number", o, i) || {}, l =
|
|
4336
|
+
var o = n.format, s = o && Kn(r, "number", o, i) || {}, l = Ze(n, Us, s);
|
|
4337
4337
|
return t(a, l);
|
|
4338
4338
|
}
|
|
4339
4339
|
function $s(e, t, n, a) {
|
|
@@ -4345,7 +4345,7 @@ function $s(e, t, n, a) {
|
|
|
4345
4345
|
}
|
|
4346
4346
|
return String(n);
|
|
4347
4347
|
}
|
|
4348
|
-
function
|
|
4348
|
+
function Gs(e, t, n, a) {
|
|
4349
4349
|
a === void 0 && (a = {});
|
|
4350
4350
|
try {
|
|
4351
4351
|
return Ei(e, t, a).formatToParts(n);
|
|
@@ -4354,22 +4354,22 @@ function zs(e, t, n, a) {
|
|
|
4354
4354
|
}
|
|
4355
4355
|
return [];
|
|
4356
4356
|
}
|
|
4357
|
-
function
|
|
4357
|
+
function zs(e) {
|
|
4358
4358
|
var t = e ? e[Object.keys(e)[0]] : void 0;
|
|
4359
4359
|
return typeof t == "string";
|
|
4360
4360
|
}
|
|
4361
4361
|
function Ws(e) {
|
|
4362
|
-
e.onWarn && e.defaultRichTextElements &&
|
|
4362
|
+
e.onWarn && e.defaultRichTextElements && zs(e.messages || {}) && e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
|
|
4363
4363
|
Please consider using "@formatjs/cli" to pre-compile your messages for performance.
|
|
4364
4364
|
For more details see https://formatjs.io/docs/getting-started/message-distribution`);
|
|
4365
4365
|
}
|
|
4366
4366
|
function js(e, t) {
|
|
4367
4367
|
var n = Ss(t), a = C(C({}, yi), e), r = a.locale, i = a.defaultLocale, o = a.onError;
|
|
4368
|
-
return r ? !Intl.NumberFormat.supportedLocalesOf(r).length && o ? o(new
|
|
4368
|
+
return r ? !Intl.NumberFormat.supportedLocalesOf(r).length && o ? o(new Fa('Missing locale data for locale: "'.concat(r, '" in Intl.NumberFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(r).length && o && o(new Fa('Missing locale data for locale: "'.concat(r, '" in Intl.DateTimeFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (o && o(new bs('"locale" was not configured, using "'.concat(i, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), a.locale = a.defaultLocale || "en"), Ws(a), C(C({}, a), {
|
|
4369
4369
|
formatters: n,
|
|
4370
4370
|
formatNumber: $s.bind(null, a, n.getNumberFormat),
|
|
4371
|
-
formatNumberToParts:
|
|
4372
|
-
formatRelativeTime:
|
|
4371
|
+
formatNumberToParts: Gs.bind(null, a, n.getNumberFormat),
|
|
4372
|
+
formatRelativeTime: Bs.bind(null, a, n.getRelativeTimeFormat),
|
|
4373
4373
|
formatDate: As.bind(null, a, n.getDateTimeFormat),
|
|
4374
4374
|
formatDateToParts: Ms.bind(null, a, n.getDateTimeFormat),
|
|
4375
4375
|
formatTime: Ts.bind(null, a, n.getDateTimeFormat),
|
|
@@ -4388,7 +4388,7 @@ function js(e, t) {
|
|
|
4388
4388
|
function xi(e) {
|
|
4389
4389
|
ei(e, "[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.");
|
|
4390
4390
|
}
|
|
4391
|
-
var Ci = C(C({}, yi), { textComponent:
|
|
4391
|
+
var Ci = C(C({}, yi), { textComponent: pe });
|
|
4392
4392
|
function Vs(e) {
|
|
4393
4393
|
return function(t) {
|
|
4394
4394
|
return e(At.toArray(t));
|
|
@@ -4440,11 +4440,11 @@ var Ai = { exports: {} }, k = {};
|
|
|
4440
4440
|
* This source code is licensed under the MIT license found in the
|
|
4441
4441
|
* LICENSE file in the root directory of this source tree.
|
|
4442
4442
|
*/
|
|
4443
|
-
var
|
|
4443
|
+
var Ga;
|
|
4444
4444
|
function qs() {
|
|
4445
|
-
if (
|
|
4446
|
-
|
|
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,
|
|
4445
|
+
if (Ga) return k;
|
|
4446
|
+
Ga = 1;
|
|
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) {
|
|
4449
4449
|
if (typeof y == "object" && y !== null) {
|
|
4450
4450
|
var M = y.$$typeof;
|
|
@@ -4503,7 +4503,7 @@ function qs() {
|
|
|
4503
4503
|
}, k.isSuspense = function(y) {
|
|
4504
4504
|
return E(y) === c;
|
|
4505
4505
|
}, k.isValidElementType = function(y) {
|
|
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 ===
|
|
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
4507
|
}, k.typeOf = E, k;
|
|
4508
4508
|
}
|
|
4509
4509
|
Ai.exports = qs();
|
|
@@ -4526,7 +4526,7 @@ Ii[Ti.Memo] = Ks;
|
|
|
4526
4526
|
var Jn = typeof window != "undefined" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = yt(null)) : yt(null);
|
|
4527
4527
|
Jn.Consumer;
|
|
4528
4528
|
var Js = Jn.Provider, Ys = Js, Qs = Jn;
|
|
4529
|
-
function
|
|
4529
|
+
function he() {
|
|
4530
4530
|
var e = St(Qs);
|
|
4531
4531
|
return xi(e), e;
|
|
4532
4532
|
}
|
|
@@ -4540,21 +4540,21 @@ var Tn;
|
|
|
4540
4540
|
})(Tn || (Tn = {}));
|
|
4541
4541
|
function Mi(e) {
|
|
4542
4542
|
var t = function(n) {
|
|
4543
|
-
var a =
|
|
4543
|
+
var a = he(), r = n.value, i = n.children, o = nt(n, ["value", "children"]), s = typeof r == "string" ? new Date(r || 0) : r, l = e === "formatDate" ? a.formatDateToParts(s, o) : a.formatTimeToParts(s, o);
|
|
4544
4544
|
return i(l);
|
|
4545
4545
|
};
|
|
4546
4546
|
return t.displayName = Tn[e], t;
|
|
4547
4547
|
}
|
|
4548
4548
|
function wt(e) {
|
|
4549
4549
|
var t = function(n) {
|
|
4550
|
-
var a =
|
|
4550
|
+
var a = he(), r = n.value, i = n.children, o = nt(
|
|
4551
4551
|
n,
|
|
4552
4552
|
["value", "children"]
|
|
4553
4553
|
), s = a[e](r, o);
|
|
4554
4554
|
if (typeof i == "function")
|
|
4555
4555
|
return i(s);
|
|
4556
|
-
var l = a.textComponent ||
|
|
4557
|
-
return
|
|
4556
|
+
var l = a.textComponent || pe;
|
|
4557
|
+
return de(l, null, s);
|
|
4558
4558
|
};
|
|
4559
4559
|
return t.displayName = An[e], t;
|
|
4560
4560
|
}
|
|
@@ -4564,7 +4564,7 @@ function wi(e) {
|
|
|
4564
4564
|
return t[n] = hi(a) ? Vs(a) : a, t;
|
|
4565
4565
|
}, {});
|
|
4566
4566
|
}
|
|
4567
|
-
var
|
|
4567
|
+
var za = function(e, t, n, a) {
|
|
4568
4568
|
for (var r = [], i = 4; i < arguments.length; i++)
|
|
4569
4569
|
r[i - 4] = arguments[i];
|
|
4570
4570
|
var o = wi(a), s = Cn.apply(void 0, ce([
|
|
@@ -4587,14 +4587,14 @@ var Ga = function(e, t, n, a) {
|
|
|
4587
4587
|
defaultRichTextElements: r
|
|
4588
4588
|
};
|
|
4589
4589
|
return C(C({}, i), {
|
|
4590
|
-
formatMessage:
|
|
4590
|
+
formatMessage: za.bind(
|
|
4591
4591
|
null,
|
|
4592
4592
|
o,
|
|
4593
4593
|
// @ts-expect-error fix this
|
|
4594
4594
|
i.formatters
|
|
4595
4595
|
),
|
|
4596
4596
|
// @ts-expect-error fix this
|
|
4597
|
-
$t:
|
|
4597
|
+
$t: za.bind(null, o, i.formatters)
|
|
4598
4598
|
});
|
|
4599
4599
|
};
|
|
4600
4600
|
function an(e) {
|
|
@@ -4632,7 +4632,7 @@ var el = (
|
|
|
4632
4632
|
prevConfig: o
|
|
4633
4633
|
};
|
|
4634
4634
|
}, t.prototype.render = function() {
|
|
4635
|
-
return xi(this.state.intl),
|
|
4635
|
+
return xi(this.state.intl), de(Ys, { value: this.state.intl }, this.props.children);
|
|
4636
4636
|
}, t.displayName = "IntlProvider", t.defaultProps = Ci, t;
|
|
4637
4637
|
}(vt)
|
|
4638
4638
|
);
|
|
@@ -4641,14 +4641,14 @@ function tl(e, t) {
|
|
|
4641
4641
|
return Sn(r, n) && Sn(a, i);
|
|
4642
4642
|
}
|
|
4643
4643
|
function Ni(e) {
|
|
4644
|
-
var t =
|
|
4644
|
+
var t = he(), n = t.formatMessage, a = t.textComponent, r = a === void 0 ? pe : a, i = e.id, o = e.description, s = e.defaultMessage, l = e.values, u = e.children, m = e.tagName, c = m === void 0 ? r : m, d = e.ignoreTag, p = { id: i, description: o, defaultMessage: s }, g = n(p, l, {
|
|
4645
4645
|
ignoreTag: d
|
|
4646
4646
|
});
|
|
4647
|
-
return typeof u == "function" ? u(Array.isArray(g) ? g : [g]) : c ?
|
|
4647
|
+
return typeof u == "function" ? u(Array.isArray(g) ? g : [g]) : c ? de(c, null, At.toArray(g)) : de(pe, null, g);
|
|
4648
4648
|
}
|
|
4649
4649
|
Ni.displayName = "FormattedMessage";
|
|
4650
|
-
var
|
|
4651
|
-
|
|
4650
|
+
var L = jn(Ni, tl);
|
|
4651
|
+
L.displayName = "MemoizedFormattedMessage";
|
|
4652
4652
|
var Oi = wt("formatDate");
|
|
4653
4653
|
wt("formatTime");
|
|
4654
4654
|
var Te = wt("formatNumber");
|
|
@@ -4657,19 +4657,20 @@ wt("formatDisplayName");
|
|
|
4657
4657
|
Mi("formatDate");
|
|
4658
4658
|
Mi("formatTime");
|
|
4659
4659
|
const nl = {
|
|
4660
|
-
"accessibility.alma-logo.aria-label": "Alma-Logo - Lösung für Ratenzahlung",
|
|
4661
4660
|
"accessibility.amex-card.aria-label": "American Express-Karte akzeptiert",
|
|
4662
4661
|
"accessibility.animation-control-instructions": "Automatische Animation der Zahlungspläne aktiv. Bewegen Sie den Mauszeiger über oder navigieren Sie mit den Pfeiltasten, um die Animation zu stoppen.",
|
|
4663
4662
|
"accessibility.cb-card.aria-label": "Kreditkarte CB akzeptiert",
|
|
4664
4663
|
"accessibility.close-button.aria-label": "Fenster schließen",
|
|
4665
4664
|
"accessibility.mastercard.aria-label": "Mastercard akzeptiert",
|
|
4666
|
-
"accessibility.payment-
|
|
4665
|
+
"accessibility.payment-info.section-title": "Informationen über den ausgewählten Zahlungsplan",
|
|
4666
|
+
"accessibility.payment-options.listbox.aria-label": "Verfügbare Zahlungsoptionen",
|
|
4667
4667
|
"accessibility.payment-plan-button.aria-label": "Wählen Sie den Zahlungsplan {planName}",
|
|
4668
4668
|
"accessibility.payment-plan.option.aria-label": "Zahlungsoption {planDescription}",
|
|
4669
4669
|
"accessibility.payment-plans-title": "Verfügbare Zahlungsoptionen",
|
|
4670
|
+
"accessibility.payment-plans.section-title": "Verfügbare Zahlungsoptionen",
|
|
4670
4671
|
"accessibility.payment-schedule-title": "Ratenplan für die Zahlung",
|
|
4671
|
-
"accessibility.payment-widget.
|
|
4672
|
-
"accessibility.payment-widget.open-button.aria-label": "Alma
|
|
4672
|
+
"accessibility.payment-widget.main.aria-label": "Auswahl der Zahlungsoptionen Alma",
|
|
4673
|
+
"accessibility.payment-widget.open-button.aria-label": "Ouvrir les options de paiement Alma pour en savoir plus",
|
|
4673
4674
|
"accessibility.plan-selection-changed": "Ausgewählter Plan: {planDescription}",
|
|
4674
4675
|
"accessibility.skip-links.navigation.aria-label": "Schnelle Navigation",
|
|
4675
4676
|
"accessibility.visa-card.aria-label": "Visa-Karte wird akzeptiert",
|
|
@@ -4707,23 +4708,24 @@ const nl = {
|
|
|
4707
4708
|
"payment-plan-strings.pay-now": "Zahlen Sie jetzt {totalAmount}",
|
|
4708
4709
|
"payment-plan-strings.pay.deferred.button": "Aufgeschobenes Bezahlen: {deferredTime}",
|
|
4709
4710
|
"payment-plan-strings.pay.now.button": "Jetzt bezahlen",
|
|
4710
|
-
"skip-links.payment-info": "
|
|
4711
|
-
"skip-links.payment-plans": "
|
|
4712
|
-
"skip-links.payment-schedule": "
|
|
4711
|
+
"skip-links.payment-info": "Zu den Zahlungsinformationen gehen",
|
|
4712
|
+
"skip-links.payment-plans": "Zu den Zahlungsoptionen gehen",
|
|
4713
|
+
"skip-links.payment-schedule": "Zum Zahlungskalender gehen"
|
|
4713
4714
|
}, al = {
|
|
4714
|
-
"accessibility.alma-logo.aria-label": "Alma logo - Multi-installment payment solution",
|
|
4715
4715
|
"accessibility.amex-card.aria-label": "American Express card accepted",
|
|
4716
4716
|
"accessibility.animation-control-instructions": "Automatic animation of payment plans active. Hover or navigate with the arrows to stop animation.",
|
|
4717
4717
|
"accessibility.cb-card.aria-label": "CB credit card accepted",
|
|
4718
4718
|
"accessibility.close-button.aria-label": "Close window",
|
|
4719
4719
|
"accessibility.mastercard.aria-label": "Mastercard accepted",
|
|
4720
|
-
"accessibility.payment-
|
|
4720
|
+
"accessibility.payment-info.section-title": "Information on the selected payment plan",
|
|
4721
|
+
"accessibility.payment-options.listbox.aria-label": "Available payment options",
|
|
4721
4722
|
"accessibility.payment-plan-button.aria-label": "Select payment plan {planName}",
|
|
4722
4723
|
"accessibility.payment-plan.option.aria-label": "Payment option {planDescription}",
|
|
4723
4724
|
"accessibility.payment-plans-title": "Available payment options",
|
|
4725
|
+
"accessibility.payment-plans.section-title": "Available payment options",
|
|
4724
4726
|
"accessibility.payment-schedule-title": "Payment schedule",
|
|
4725
|
-
"accessibility.payment-widget.
|
|
4726
|
-
"accessibility.payment-widget.open-button.aria-label": "
|
|
4727
|
+
"accessibility.payment-widget.main.aria-label": "Selecting Alma payment options",
|
|
4728
|
+
"accessibility.payment-widget.open-button.aria-label": "Ouvrir les options de paiement Alma pour en savoir plus",
|
|
4727
4729
|
"accessibility.plan-selection-changed": "Selected plan: {planDescription}",
|
|
4728
4730
|
"accessibility.skip-links.navigation.aria-label": "Quick navigation",
|
|
4729
4731
|
"accessibility.visa-card.aria-label": "Visa card accepted",
|
|
@@ -4765,19 +4767,20 @@ const nl = {
|
|
|
4765
4767
|
"skip-links.payment-plans": "Go to payment options",
|
|
4766
4768
|
"skip-links.payment-schedule": "Go to payment calendar"
|
|
4767
4769
|
}, rl = {
|
|
4768
|
-
"accessibility.alma-logo.aria-label": "Logotipo Alma - Solución de pago multipago",
|
|
4769
4770
|
"accessibility.amex-card.aria-label": "Se acepta la tarjeta American Express",
|
|
4770
4771
|
"accessibility.animation-control-instructions": "La animación automática de los planes de pago está activa. Pase el ratón por encima o desplácese con las flechas para detener la animación.",
|
|
4771
4772
|
"accessibility.cb-card.aria-label": "Se acepta tarjeta de crédito CB",
|
|
4772
4773
|
"accessibility.close-button.aria-label": "Cerrar ventana",
|
|
4773
4774
|
"accessibility.mastercard.aria-label": "Se acepta Mastercard",
|
|
4774
|
-
"accessibility.payment-
|
|
4775
|
+
"accessibility.payment-info.section-title": "Información sobre el plan de pago seleccionado",
|
|
4776
|
+
"accessibility.payment-options.listbox.aria-label": "Formas de pago disponibles",
|
|
4775
4777
|
"accessibility.payment-plan-button.aria-label": "Seleccione el plan de pago {planName}",
|
|
4776
4778
|
"accessibility.payment-plan.option.aria-label": "Forma de pago {planDescription}",
|
|
4777
4779
|
"accessibility.payment-plans-title": "Formas de pago disponibles",
|
|
4780
|
+
"accessibility.payment-plans.section-title": "Formas de pago disponibles",
|
|
4778
4781
|
"accessibility.payment-schedule-title": "Calendario de pagos",
|
|
4779
|
-
"accessibility.payment-widget.
|
|
4780
|
-
"accessibility.payment-widget.open-button.aria-label": "
|
|
4782
|
+
"accessibility.payment-widget.main.aria-label": "Selección de opciones de pago Alma",
|
|
4783
|
+
"accessibility.payment-widget.open-button.aria-label": "Ouvrir les options de paiement Alma pour en savoir plus",
|
|
4781
4784
|
"accessibility.plan-selection-changed": "Plan seleccionado: {planDescription}",
|
|
4782
4785
|
"accessibility.skip-links.navigation.aria-label": "Navegación rápida",
|
|
4783
4786
|
"accessibility.visa-card.aria-label": "Se acepta tarjeta Visa",
|
|
@@ -4819,19 +4822,20 @@ const nl = {
|
|
|
4819
4822
|
"skip-links.payment-plans": "Ir a las opciones de pago",
|
|
4820
4823
|
"skip-links.payment-schedule": "Ir al calendario de pagos"
|
|
4821
4824
|
}, il = {
|
|
4822
|
-
"accessibility.alma-logo.aria-label": "Logo Alma - Solution de paiement en plusieurs fois",
|
|
4823
4825
|
"accessibility.amex-card.aria-label": "Carte American Express acceptée",
|
|
4824
4826
|
"accessibility.animation-control-instructions": "Animation automatique des plans de paiement active. Survolez ou naviguez avec les flèches pour arrêter l'animation.",
|
|
4825
4827
|
"accessibility.cb-card.aria-label": "Carte Bancaire CB acceptée",
|
|
4826
4828
|
"accessibility.close-button.aria-label": "Fermer la fenêtre",
|
|
4827
4829
|
"accessibility.mastercard.aria-label": "Carte Mastercard acceptée",
|
|
4828
|
-
"accessibility.payment-
|
|
4830
|
+
"accessibility.payment-info.section-title": "Informations sur le plan de paiement sélectionné",
|
|
4831
|
+
"accessibility.payment-options.listbox.aria-label": "Options de paiement disponibles",
|
|
4829
4832
|
"accessibility.payment-plan-button.aria-label": "Sélectionner le plan de paiement {planName}",
|
|
4830
4833
|
"accessibility.payment-plan.option.aria-label": "Option de paiement {planDescription}",
|
|
4831
4834
|
"accessibility.payment-plans-title": "Options de paiement disponibles",
|
|
4835
|
+
"accessibility.payment-plans.section-title": "Options de paiement disponibles",
|
|
4832
4836
|
"accessibility.payment-schedule-title": "Calendrier de paiement",
|
|
4833
|
-
"accessibility.payment-widget.
|
|
4834
|
-
"accessibility.payment-widget.open-button.aria-label": "Ouvrir les options de paiement Alma",
|
|
4837
|
+
"accessibility.payment-widget.main.aria-label": "Sélection des options de paiement Alma",
|
|
4838
|
+
"accessibility.payment-widget.open-button.aria-label": "Ouvrir les options de paiement Alma pour en savoir plus",
|
|
4835
4839
|
"accessibility.plan-selection-changed": "Plan sélectionné : {planDescription}",
|
|
4836
4840
|
"accessibility.skip-links.navigation.aria-label": "Navigation rapide",
|
|
4837
4841
|
"accessibility.visa-card.aria-label": "Carte Visa acceptée",
|
|
@@ -4869,23 +4873,24 @@ const nl = {
|
|
|
4869
4873
|
"payment-plan-strings.pay-now": "Payer maintenant {totalAmount}",
|
|
4870
4874
|
"payment-plan-strings.pay.deferred.button": "Payer en différé : {deferredTime}",
|
|
4871
4875
|
"payment-plan-strings.pay.now.button": "Payer maintenant",
|
|
4872
|
-
"skip-links.payment-info": "
|
|
4873
|
-
"skip-links.payment-plans": "
|
|
4874
|
-
"skip-links.payment-schedule": "
|
|
4876
|
+
"skip-links.payment-info": "Aller aux informations de paiement",
|
|
4877
|
+
"skip-links.payment-plans": "Aller aux options de paiement",
|
|
4878
|
+
"skip-links.payment-schedule": "Aller au calendrier de paiement"
|
|
4875
4879
|
}, ol = {
|
|
4876
|
-
"accessibility.alma-logo.aria-label": "Logo Alma - Soluzione di pagamento multi-pagamento",
|
|
4877
4880
|
"accessibility.amex-card.aria-label": "Carta American Express accettata",
|
|
4878
4881
|
"accessibility.animation-control-instructions": "L'animazione automatica dei piani di pagamento è attiva. Passare il mouse sopra o navigare con le frecce per fermare l'animazione.",
|
|
4879
4882
|
"accessibility.cb-card.aria-label": "Carta di credito CB accettata",
|
|
4880
4883
|
"accessibility.close-button.aria-label": "Chiudere la finestra",
|
|
4881
4884
|
"accessibility.mastercard.aria-label": "Mastercard accettata",
|
|
4882
|
-
"accessibility.payment-
|
|
4885
|
+
"accessibility.payment-info.section-title": "Informazioni sul piano di pagamento selezionato",
|
|
4886
|
+
"accessibility.payment-options.listbox.aria-label": "Opzioni di pagamento disponibili",
|
|
4883
4887
|
"accessibility.payment-plan-button.aria-label": "Selezionare il piano di pagamento {planName}",
|
|
4884
4888
|
"accessibility.payment-plan.option.aria-label": "Opzione di pagamento {planDescription}",
|
|
4885
4889
|
"accessibility.payment-plans-title": "Opzioni di pagamento disponibili",
|
|
4890
|
+
"accessibility.payment-plans.section-title": "Opzioni di pagamento disponibili",
|
|
4886
4891
|
"accessibility.payment-schedule-title": "Piano di pagamento",
|
|
4887
|
-
"accessibility.payment-widget.
|
|
4888
|
-
"accessibility.payment-widget.open-button.aria-label": "
|
|
4892
|
+
"accessibility.payment-widget.main.aria-label": "Selezione delle opzioni di pagamento Alma",
|
|
4893
|
+
"accessibility.payment-widget.open-button.aria-label": "Ouvrir les options de paiement Alma pour en savoir plus",
|
|
4889
4894
|
"accessibility.plan-selection-changed": "Piano selezionato: {planDescription}",
|
|
4890
4895
|
"accessibility.skip-links.navigation.aria-label": "Navigazione rapida",
|
|
4891
4896
|
"accessibility.visa-card.aria-label": "Carta Visa accettata",
|
|
@@ -4927,19 +4932,20 @@ const nl = {
|
|
|
4927
4932
|
"skip-links.payment-plans": "Vai alle opzioni di pagamento",
|
|
4928
4933
|
"skip-links.payment-schedule": "Vai al calendario dei pagamenti"
|
|
4929
4934
|
}, sl = {
|
|
4930
|
-
"accessibility.alma-logo.aria-label": "Alma-logo - Multi-betalingoplossing",
|
|
4931
4935
|
"accessibility.amex-card.aria-label": "American Express kaart geaccepteerd",
|
|
4932
4936
|
"accessibility.animation-control-instructions": "Automatische animatie van betalingsplannen is actief. Beweeg erover of navigeer met de pijltjes om de animatie te stoppen.",
|
|
4933
4937
|
"accessibility.cb-card.aria-label": "CB creditcard geaccepteerd",
|
|
4934
4938
|
"accessibility.close-button.aria-label": "Venster sluiten",
|
|
4935
4939
|
"accessibility.mastercard.aria-label": "Mastercard geaccepteerd",
|
|
4936
|
-
"accessibility.payment-
|
|
4940
|
+
"accessibility.payment-info.section-title": "Informatie over het geselecteerde betalingsplan",
|
|
4941
|
+
"accessibility.payment-options.listbox.aria-label": "Betalingsopties beschikbaar",
|
|
4937
4942
|
"accessibility.payment-plan-button.aria-label": "Selecteer betalingsplan {planName}",
|
|
4938
4943
|
"accessibility.payment-plan.option.aria-label": "Betalingsoptie {planDescription}",
|
|
4939
4944
|
"accessibility.payment-plans-title": "Betalingsopties beschikbaar",
|
|
4945
|
+
"accessibility.payment-plans.section-title": "Betalingsopties beschikbaar",
|
|
4940
4946
|
"accessibility.payment-schedule-title": "Betalingsschema",
|
|
4941
|
-
"accessibility.payment-widget.
|
|
4942
|
-
"accessibility.payment-widget.open-button.aria-label": "Alma
|
|
4947
|
+
"accessibility.payment-widget.main.aria-label": "Alma betalingsopties selecteren",
|
|
4948
|
+
"accessibility.payment-widget.open-button.aria-label": "Ouvrir les options de paiement Alma pour en savoir plus",
|
|
4943
4949
|
"accessibility.plan-selection-changed": "Gekozen plan: {planDescription}",
|
|
4944
4950
|
"accessibility.skip-links.navigation.aria-label": "Snelle navigatie",
|
|
4945
4951
|
"accessibility.visa-card.aria-label": "Visa-kaart geaccepteerd",
|
|
@@ -4981,19 +4987,20 @@ const nl = {
|
|
|
4981
4987
|
"skip-links.payment-plans": "Ga naar betalingsopties",
|
|
4982
4988
|
"skip-links.payment-schedule": "Ga naar de betalingskalender"
|
|
4983
4989
|
}, ll = {
|
|
4984
|
-
"accessibility.alma-logo.aria-label": "Logótipo Alma - Solução de pagamento multi-instalação",
|
|
4985
4990
|
"accessibility.amex-card.aria-label": "Aceita cartão American Express",
|
|
4986
4991
|
"accessibility.animation-control-instructions": "A animação automática dos planos de pagamento está ativa. Passe o rato por cima ou navegue com as setas para parar a animação.",
|
|
4987
4992
|
"accessibility.cb-card.aria-label": "Aceita-se cartão de crédito CB",
|
|
4988
4993
|
"accessibility.close-button.aria-label": "Fechar a janela",
|
|
4989
4994
|
"accessibility.mastercard.aria-label": "Aceita Mastercard",
|
|
4990
|
-
"accessibility.payment-
|
|
4995
|
+
"accessibility.payment-info.section-title": "Informações sobre o plano de pagamento selecionado",
|
|
4996
|
+
"accessibility.payment-options.listbox.aria-label": "Opções de pagamento disponíveis",
|
|
4991
4997
|
"accessibility.payment-plan-button.aria-label": "Selecionar plano de pagamento {planName}",
|
|
4992
4998
|
"accessibility.payment-plan.option.aria-label": "Opção de pagamento {planDescription}",
|
|
4993
4999
|
"accessibility.payment-plans-title": "Opções de pagamento disponíveis",
|
|
5000
|
+
"accessibility.payment-plans.section-title": "Opções de pagamento disponíveis",
|
|
4994
5001
|
"accessibility.payment-schedule-title": "Calendário de pagamento",
|
|
4995
|
-
"accessibility.payment-widget.
|
|
4996
|
-
"accessibility.payment-widget.open-button.aria-label": "
|
|
5002
|
+
"accessibility.payment-widget.main.aria-label": "Seleção das opções de pagamento da Alma",
|
|
5003
|
+
"accessibility.payment-widget.open-button.aria-label": "Ouvrir les options de paiement Alma pour en savoir plus",
|
|
4997
5004
|
"accessibility.plan-selection-changed": "Plano selecionado: {planDescription}",
|
|
4998
5005
|
"accessibility.skip-links.navigation.aria-label": "Navegação rápida",
|
|
4999
5006
|
"accessibility.visa-card.aria-label": "Aceita cartão Visa",
|
|
@@ -5061,7 +5068,7 @@ const nl = {
|
|
|
5061
5068
|
),
|
|
5062
5069
|
0
|
|
5063
5070
|
).toString().replace("-", "A"), ml = (e) => Date.now() - e >= 36e5;
|
|
5064
|
-
var fl = { BUILD_VERSION: "v4.0.
|
|
5071
|
+
var fl = { BUILD_VERSION: "v4.0.9" };
|
|
5065
5072
|
const dl = () => ({
|
|
5066
5073
|
setCache: (i, o) => {
|
|
5067
5074
|
const s = Date.now();
|
|
@@ -5095,7 +5102,7 @@ function pl(e, t, n = "") {
|
|
|
5095
5102
|
return la(this, null, function* () {
|
|
5096
5103
|
return (yield fetch(n, {
|
|
5097
5104
|
method: "POST",
|
|
5098
|
-
headers:
|
|
5105
|
+
headers: Ne({
|
|
5099
5106
|
"Content-Type": "application/json"
|
|
5100
5107
|
}, t),
|
|
5101
5108
|
cache: "force-cache",
|
|
@@ -5115,13 +5122,13 @@ const hl = (e, t) => e.eligible && t ? e.purchase_amount >= (t == null ? void 0
|
|
|
5115
5122
|
const o = (i.deferredMonths ? i.deferredMonths : 0) * 30 + (i.deferredDays ? i.deferredDays : 0);
|
|
5116
5123
|
return n.installments_count === i.installmentsCount && a === o;
|
|
5117
5124
|
});
|
|
5118
|
-
return
|
|
5125
|
+
return Ne(sa(Ne({}, n), {
|
|
5119
5126
|
eligible: hl(n, r)
|
|
5120
5127
|
}), gl(n, r));
|
|
5121
5128
|
}) : e.filter(
|
|
5122
5129
|
(n) => !(n.installments_count === 1 && n.deferred_days === 0 && n.deferred_months === 0)
|
|
5123
5130
|
);
|
|
5124
|
-
var _l = { BUILD_VERSION: "v4.0.
|
|
5131
|
+
var _l = { BUILD_VERSION: "v4.0.9" };
|
|
5125
5132
|
const Pi = (e, { domain: t, merchantId: n }, a, r, i) => {
|
|
5126
5133
|
var E, N;
|
|
5127
5134
|
const [o, s] = Q([]), [l, u] = Q(ue.PENDING), { getCache: m, setCache: c, createKey: d, clearCache: p } = dl(), g = d({
|
|
@@ -5131,12 +5138,12 @@ const Pi = (e, { domain: t, merchantId: n }, a, r, i) => {
|
|
|
5131
5138
|
customerShippingCountry: i,
|
|
5132
5139
|
domain: t,
|
|
5133
5140
|
merchantId: n
|
|
5134
|
-
}),
|
|
5141
|
+
}), v = (E = m(g)) == null ? void 0 : E.value, b = (N = m(g)) == null ? void 0 : N.timestamp, _ = b && ml(b), x = a == null ? void 0 : a.map((y) => ({
|
|
5135
5142
|
installments_count: y.installmentsCount,
|
|
5136
5143
|
deferred_days: y == null ? void 0 : y.deferredDays,
|
|
5137
5144
|
deferred_months: y == null ? void 0 : y.deferredMonths
|
|
5138
5145
|
}));
|
|
5139
|
-
return
|
|
5146
|
+
return K(() => {
|
|
5140
5147
|
if (l === ue.PENDING) {
|
|
5141
5148
|
let y = null;
|
|
5142
5149
|
r && (y = {
|
|
@@ -5145,7 +5152,7 @@ const Pi = (e, { domain: t, merchantId: n }, a, r, i) => {
|
|
|
5145
5152
|
let M = null;
|
|
5146
5153
|
i && (M = {
|
|
5147
5154
|
country: i
|
|
5148
|
-
}),
|
|
5155
|
+
}), v && !_ && (s(v), u(ue.SUCCESS)), _ && p(), v || pl(
|
|
5149
5156
|
{
|
|
5150
5157
|
purchase_amount: e,
|
|
5151
5158
|
queries: x,
|
|
@@ -5157,8 +5164,8 @@ const Pi = (e, { domain: t, merchantId: n }, a, r, i) => {
|
|
|
5157
5164
|
"X-Alma-Agent": `Alma Widget/${_l.BUILD_VERSION}`
|
|
5158
5165
|
},
|
|
5159
5166
|
`${t}/v2/payments/eligibility`
|
|
5160
|
-
).then((
|
|
5161
|
-
"error_code" in
|
|
5167
|
+
).then((z) => {
|
|
5168
|
+
"error_code" in z || "errors" in z ? u(ue.FAILED) : (s(z), c(g, z), u(ue.SUCCESS));
|
|
5162
5169
|
}).catch(() => {
|
|
5163
5170
|
u(ue.FAILED);
|
|
5164
5171
|
});
|
|
@@ -5169,8 +5176,8 @@ const Pi = (e, { domain: t, merchantId: n }, a, r, i) => {
|
|
|
5169
5176
|
g,
|
|
5170
5177
|
r,
|
|
5171
5178
|
i,
|
|
5172
|
-
_,
|
|
5173
5179
|
v,
|
|
5180
|
+
_,
|
|
5174
5181
|
x,
|
|
5175
5182
|
n,
|
|
5176
5183
|
t,
|
|
@@ -5409,7 +5416,7 @@ const D = /* @__PURE__ */ Mt(Qn), oe = D.oneOfType([D.string, D.number]), Di = {
|
|
|
5409
5416
|
monochrome: D.bool,
|
|
5410
5417
|
resolution: oe,
|
|
5411
5418
|
type: Object.keys(Di)
|
|
5412
|
-
}, ua = Dl, { type: Ym } = ua, kl =
|
|
5419
|
+
}, ua = Dl, { type: Ym } = ua, kl = Lt(ua, ["type"]), Fl = Ne({
|
|
5413
5420
|
minAspectRatio: D.string,
|
|
5414
5421
|
maxAspectRatio: D.string,
|
|
5415
5422
|
minDeviceAspectRatio: D.string,
|
|
@@ -5430,39 +5437,39 @@ const D = /* @__PURE__ */ Mt(Qn), oe = D.oneOfType([D.string, D.number]), Di = {
|
|
|
5430
5437
|
maxMonochrome: D.number,
|
|
5431
5438
|
minResolution: oe,
|
|
5432
5439
|
maxResolution: oe
|
|
5433
|
-
}, kl),
|
|
5440
|
+
}, kl), Bl = Ne(Ne({}, Di), Fl);
|
|
5434
5441
|
var Ul = {
|
|
5435
|
-
all:
|
|
5442
|
+
all: Bl
|
|
5436
5443
|
};
|
|
5437
|
-
const $l = (e) => `not ${e}`,
|
|
5444
|
+
const $l = (e) => `not ${e}`, Gl = (e, t) => {
|
|
5438
5445
|
const n = Li(e);
|
|
5439
5446
|
return typeof t == "number" && (t = `${t}px`), t === !0 ? n : t === !1 ? $l(n) : `(${n}: ${t})`;
|
|
5440
|
-
},
|
|
5447
|
+
}, zl = (e) => e.join(" and "), Wl = (e) => {
|
|
5441
5448
|
const t = [];
|
|
5442
5449
|
return Object.keys(Ul.all).forEach((n) => {
|
|
5443
5450
|
const a = e[n];
|
|
5444
|
-
a != null && t.push(
|
|
5445
|
-
}),
|
|
5451
|
+
a != null && t.push(Gl(n, a));
|
|
5452
|
+
}), zl(t);
|
|
5446
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 = () => {
|
|
5447
|
-
const e =
|
|
5448
|
-
return
|
|
5454
|
+
const e = ke(!1);
|
|
5455
|
+
return K(() => {
|
|
5449
5456
|
e.current = !0;
|
|
5450
5457
|
}, []), e.current;
|
|
5451
5458
|
}, ql = (e) => {
|
|
5452
5459
|
const t = St(jl), n = () => Ya(e) || Ya(t), [a, r] = Q(n);
|
|
5453
|
-
return
|
|
5460
|
+
return K(() => {
|
|
5454
5461
|
const i = n();
|
|
5455
5462
|
Rl(a, i) || r(i);
|
|
5456
5463
|
}, [e, t]), a;
|
|
5457
5464
|
}, Zl = (e) => {
|
|
5458
5465
|
const t = () => Vl(e), [n, a] = Q(t);
|
|
5459
|
-
return
|
|
5466
|
+
return K(() => {
|
|
5460
5467
|
const r = t();
|
|
5461
5468
|
n !== r && a(r);
|
|
5462
5469
|
}, [e]), n;
|
|
5463
5470
|
}, Xl = (e, t) => {
|
|
5464
5471
|
const n = () => wl(e, t || {}, !!t), [a, r] = Q(n), i = ki();
|
|
5465
|
-
return
|
|
5472
|
+
return K(() => {
|
|
5466
5473
|
if (i) {
|
|
5467
5474
|
const o = n();
|
|
5468
5475
|
return r(o), () => {
|
|
@@ -5472,7 +5479,7 @@ const $l = (e) => `not ${e}`, zl = (e, t) => {
|
|
|
5472
5479
|
}, [e, t]), a;
|
|
5473
5480
|
}, Kl = (e) => {
|
|
5474
5481
|
const [t, n] = Q(e.matches);
|
|
5475
|
-
return
|
|
5482
|
+
return K(() => {
|
|
5476
5483
|
const a = (r) => {
|
|
5477
5484
|
n(r.matches);
|
|
5478
5485
|
};
|
|
@@ -5485,12 +5492,12 @@ const $l = (e) => `not ${e}`, zl = (e, t) => {
|
|
|
5485
5492
|
if (!r)
|
|
5486
5493
|
throw new Error("Invalid or missing MediaQuery!");
|
|
5487
5494
|
const i = Xl(r, a), o = Kl(i);
|
|
5488
|
-
return ki(),
|
|
5489
|
-
}, [o]),
|
|
5495
|
+
return ki(), K(() => {
|
|
5496
|
+
}, [o]), K(() => () => {
|
|
5490
5497
|
i && i.dispose();
|
|
5491
5498
|
}, []), o;
|
|
5492
5499
|
};
|
|
5493
|
-
var
|
|
5500
|
+
var Fi = { exports: {} };
|
|
5494
5501
|
/*!
|
|
5495
5502
|
Copyright (c) 2018 Jed Watson.
|
|
5496
5503
|
Licensed under the MIT License (MIT), see
|
|
@@ -5525,11 +5532,11 @@ var Bi = { exports: {} };
|
|
|
5525
5532
|
}
|
|
5526
5533
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
5527
5534
|
})();
|
|
5528
|
-
})(
|
|
5529
|
-
var Yl =
|
|
5530
|
-
const
|
|
5535
|
+
})(Fi);
|
|
5536
|
+
var Yl = Fi.exports;
|
|
5537
|
+
const R = /* @__PURE__ */ Mt(Yl), Ql = "_loadingIndicator_1fdeg_1", eu = {
|
|
5531
5538
|
loadingIndicator: Ql
|
|
5532
|
-
}, tu = ({ className: e }) => /* @__PURE__ */ f.createElement("div", { className:
|
|
5539
|
+
}, tu = ({ className: e }) => /* @__PURE__ */ f.createElement("div", { className: R(eu.loadingIndicator, e), "data-testid": "loader" }, /* @__PURE__ */ f.createElement(
|
|
5533
5540
|
"svg",
|
|
5534
5541
|
{
|
|
5535
5542
|
width: "120",
|
|
@@ -5546,7 +5553,7 @@ const H = /* @__PURE__ */ Mt(Yl), Ql = "_loadingIndicator_rleli_1", eu = {
|
|
|
5546
5553
|
}
|
|
5547
5554
|
)
|
|
5548
5555
|
));
|
|
5549
|
-
var
|
|
5556
|
+
var Bi = { exports: {} };
|
|
5550
5557
|
(function(e) {
|
|
5551
5558
|
(function(t) {
|
|
5552
5559
|
var n = !1, a, r;
|
|
@@ -5584,10 +5591,10 @@ var Fi = { exports: {} };
|
|
|
5584
5591
|
};
|
|
5585
5592
|
e.exports = m;
|
|
5586
5593
|
})();
|
|
5587
|
-
})(
|
|
5588
|
-
var nu =
|
|
5594
|
+
})(Bi);
|
|
5595
|
+
var nu = Bi.exports;
|
|
5589
5596
|
const Qa = /* @__PURE__ */ Mt(nu);
|
|
5590
|
-
var In = { exports: {} },
|
|
5597
|
+
var In = { exports: {} }, Ve = {};
|
|
5591
5598
|
const ea = /* @__PURE__ */ Si(No);
|
|
5592
5599
|
var Mn = { exports: {} }, Ce = {}, wn = { exports: {} };
|
|
5593
5600
|
(function(e, t) {
|
|
@@ -5616,7 +5623,7 @@ var Mn = { exports: {} }, Ce = {}, wn = { exports: {} };
|
|
|
5616
5623
|
try {
|
|
5617
5624
|
var p = window.getComputedStyle(c), g = p.getPropertyValue("display");
|
|
5618
5625
|
return d ? g !== a && i(c, p) : g === n;
|
|
5619
|
-
} catch (
|
|
5626
|
+
} catch (v) {
|
|
5620
5627
|
return console.warn("Failed to inspect element style"), !1;
|
|
5621
5628
|
}
|
|
5622
5629
|
}
|
|
@@ -5732,10 +5739,10 @@ var On = { exports: {} };
|
|
|
5732
5739
|
l.preventDefault(), m.focus();
|
|
5733
5740
|
return;
|
|
5734
5741
|
}
|
|
5735
|
-
var
|
|
5742
|
+
var v = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent), b = v != null && v[1] != "Chrome" && /\biPod\b|\biPad\b/g.exec(navigator.userAgent) == null;
|
|
5736
5743
|
if (b) {
|
|
5737
|
-
var
|
|
5738
|
-
if (
|
|
5744
|
+
var _ = u.indexOf(g);
|
|
5745
|
+
if (_ > -1 && (_ += c ? -1 : 1), m = u[_], typeof m == "undefined") {
|
|
5739
5746
|
l.preventDefault(), m = c ? p : d, m.focus();
|
|
5740
5747
|
return;
|
|
5741
5748
|
}
|
|
@@ -5771,17 +5778,17 @@ var yu = gu, _u = vu(yu);
|
|
|
5771
5778
|
function vu(e) {
|
|
5772
5779
|
return e && e.__esModule ? e : { default: e };
|
|
5773
5780
|
}
|
|
5774
|
-
var
|
|
5775
|
-
xe.SafeHTMLCollection =
|
|
5776
|
-
xe.SafeNodeList =
|
|
5777
|
-
xe.canUseDOM =
|
|
5781
|
+
var Kt = _u.default, bu = Kt.canUseDOM ? window.HTMLElement : {};
|
|
5782
|
+
xe.SafeHTMLCollection = Kt.canUseDOM ? window.HTMLCollection : {};
|
|
5783
|
+
xe.SafeNodeList = Kt.canUseDOM ? window.NodeList : {};
|
|
5784
|
+
xe.canUseDOM = Kt.canUseDOM;
|
|
5778
5785
|
xe.default = bu;
|
|
5779
5786
|
Object.defineProperty(Se, "__esModule", {
|
|
5780
5787
|
value: !0
|
|
5781
5788
|
});
|
|
5782
5789
|
Se.resetState = Au;
|
|
5783
5790
|
Se.log = Tu;
|
|
5784
|
-
Se.assertNodeList =
|
|
5791
|
+
Se.assertNodeList = Gi;
|
|
5785
5792
|
Se.setElement = Iu;
|
|
5786
5793
|
Se.validateElement = ta;
|
|
5787
5794
|
Se.hide = Mu;
|
|
@@ -5801,7 +5808,7 @@ function Au() {
|
|
|
5801
5808
|
}
|
|
5802
5809
|
function Tu() {
|
|
5803
5810
|
}
|
|
5804
|
-
function
|
|
5811
|
+
function Gi(e, t) {
|
|
5805
5812
|
if (!e || !e.length)
|
|
5806
5813
|
throw new Error("react-modal: No elements were found for selector " + t + ".");
|
|
5807
5814
|
}
|
|
@@ -5809,7 +5816,7 @@ function Iu(e) {
|
|
|
5809
5816
|
var t = e;
|
|
5810
5817
|
if (typeof t == "string" && Cu.canUseDOM) {
|
|
5811
5818
|
var n = document.querySelectorAll(t);
|
|
5812
|
-
|
|
5819
|
+
Gi(n, t), t = n;
|
|
5813
5820
|
}
|
|
5814
5821
|
return ye = t || ye, ye;
|
|
5815
5822
|
}
|
|
@@ -5900,13 +5907,13 @@ var st = {};
|
|
|
5900
5907
|
Object.defineProperty(st, "__esModule", {
|
|
5901
5908
|
value: !0
|
|
5902
5909
|
});
|
|
5903
|
-
st.log =
|
|
5904
|
-
st.resetState =
|
|
5910
|
+
st.log = Fu;
|
|
5911
|
+
st.resetState = Bu;
|
|
5905
5912
|
function ku(e, t) {
|
|
5906
5913
|
if (!(e instanceof t))
|
|
5907
5914
|
throw new TypeError("Cannot call a class as a function");
|
|
5908
5915
|
}
|
|
5909
|
-
var
|
|
5916
|
+
var zi = function e() {
|
|
5910
5917
|
var t = this;
|
|
5911
5918
|
ku(this, e), this.register = function(n) {
|
|
5912
5919
|
t.openInstances.indexOf(n) === -1 && (t.openInstances.push(n), t.emit("register"));
|
|
@@ -5924,36 +5931,36 @@ var Gi = function e() {
|
|
|
5924
5931
|
);
|
|
5925
5932
|
});
|
|
5926
5933
|
}, this.openInstances = [], this.subscribers = [];
|
|
5927
|
-
},
|
|
5928
|
-
function
|
|
5929
|
-
console.log("portalOpenInstances ----------"), console.log(
|
|
5934
|
+
}, jt = new zi();
|
|
5935
|
+
function Fu() {
|
|
5936
|
+
console.log("portalOpenInstances ----------"), console.log(jt.openInstances.length), jt.openInstances.forEach(function(e) {
|
|
5930
5937
|
return console.log(e);
|
|
5931
5938
|
}), console.log("end portalOpenInstances ----------");
|
|
5932
5939
|
}
|
|
5933
|
-
function
|
|
5934
|
-
|
|
5940
|
+
function Bu() {
|
|
5941
|
+
jt = new zi();
|
|
5935
5942
|
}
|
|
5936
|
-
st.default =
|
|
5943
|
+
st.default = jt;
|
|
5937
5944
|
var na = {};
|
|
5938
5945
|
Object.defineProperty(na, "__esModule", {
|
|
5939
5946
|
value: !0
|
|
5940
5947
|
});
|
|
5941
|
-
na.resetState =
|
|
5948
|
+
na.resetState = zu;
|
|
5942
5949
|
na.log = Wu;
|
|
5943
|
-
var Uu = st, $u =
|
|
5944
|
-
function
|
|
5950
|
+
var Uu = st, $u = Gu(Uu);
|
|
5951
|
+
function Gu(e) {
|
|
5945
5952
|
return e && e.__esModule ? e : { default: e };
|
|
5946
5953
|
}
|
|
5947
|
-
var re = void 0, be = void 0,
|
|
5948
|
-
function
|
|
5954
|
+
var re = void 0, be = void 0, We = [];
|
|
5955
|
+
function zu() {
|
|
5949
5956
|
for (var e = [re, be], t = 0; t < e.length; t++) {
|
|
5950
5957
|
var n = e[t];
|
|
5951
5958
|
n && n.parentNode && n.parentNode.removeChild(n);
|
|
5952
5959
|
}
|
|
5953
|
-
re = be = null,
|
|
5960
|
+
re = be = null, We = [];
|
|
5954
5961
|
}
|
|
5955
5962
|
function Wu() {
|
|
5956
|
-
console.log("bodyTrap ----------"), console.log(
|
|
5963
|
+
console.log("bodyTrap ----------"), console.log(We.length);
|
|
5957
5964
|
for (var e = [re, be], t = 0; t < e.length; t++) {
|
|
5958
5965
|
var n = e[t], a = n || {};
|
|
5959
5966
|
console.log(a.nodeName, a.className, a.id);
|
|
@@ -5961,10 +5968,10 @@ function Wu() {
|
|
|
5961
5968
|
console.log("edn bodyTrap ----------");
|
|
5962
5969
|
}
|
|
5963
5970
|
function tr() {
|
|
5964
|
-
|
|
5971
|
+
We.length !== 0 && We[We.length - 1].focusContent();
|
|
5965
5972
|
}
|
|
5966
5973
|
function ju(e, t) {
|
|
5967
|
-
!re && !be && (re = document.createElement("div"), re.setAttribute("data-react-modal-body-trap", ""), re.style.position = "absolute", re.style.opacity = "0", re.setAttribute("tabindex", "0"), re.addEventListener("focus", tr), be = re.cloneNode(), be.addEventListener("focus", tr)),
|
|
5974
|
+
!re && !be && (re = document.createElement("div"), re.setAttribute("data-react-modal-body-trap", ""), re.style.position = "absolute", re.style.opacity = "0", re.setAttribute("tabindex", "0"), re.addEventListener("focus", tr), be = re.cloneNode(), be.addEventListener("focus", tr)), We = t, We.length > 0 ? (document.body.firstChild !== re && document.body.insertBefore(re, document.body.firstChild), document.body.lastChild !== be && document.body.appendChild(be)) : (re.parentElement && re.parentElement.removeChild(re), be.parentElement && be.parentElement.removeChild(be));
|
|
5968
5975
|
}
|
|
5969
5976
|
$u.default.subscribe(ju);
|
|
5970
5977
|
(function(e, t) {
|
|
@@ -5992,7 +5999,7 @@ $u.default.subscribe(ju);
|
|
|
5992
5999
|
return function(A, W, h) {
|
|
5993
6000
|
return W && I(A.prototype, W), h && I(A, h), A;
|
|
5994
6001
|
};
|
|
5995
|
-
}(), i = ea, o = Qn, s = y(o), l = Ce, u = N(l), m = du, c = y(m), d = Se, p = N(d), g = ot,
|
|
6002
|
+
}(), i = ea, o = Qn, s = y(o), l = Ce, u = N(l), m = du, c = y(m), d = Se, p = N(d), g = ot, v = N(g), b = xe, _ = y(b), x = st, E = y(x);
|
|
5996
6003
|
function N(I) {
|
|
5997
6004
|
if (I && I.__esModule)
|
|
5998
6005
|
return I;
|
|
@@ -6009,35 +6016,35 @@ $u.default.subscribe(ju);
|
|
|
6009
6016
|
if (!(I instanceof A))
|
|
6010
6017
|
throw new TypeError("Cannot call a class as a function");
|
|
6011
6018
|
}
|
|
6012
|
-
function
|
|
6019
|
+
function z(I, A) {
|
|
6013
6020
|
if (!I)
|
|
6014
6021
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6015
6022
|
return A && (typeof A == "object" || typeof A == "function") ? A : I;
|
|
6016
6023
|
}
|
|
6017
|
-
function
|
|
6024
|
+
function ge(I, A) {
|
|
6018
6025
|
if (typeof A != "function" && A !== null)
|
|
6019
6026
|
throw new TypeError("Super expression must either be null or a function, not " + typeof A);
|
|
6020
6027
|
I.prototype = Object.create(A && A.prototype, { constructor: { value: I, enumerable: !1, writable: !0, configurable: !0 } }), A && (Object.setPrototypeOf ? Object.setPrototypeOf(I, A) : I.__proto__ = A);
|
|
6021
6028
|
}
|
|
6022
|
-
var
|
|
6029
|
+
var F = {
|
|
6023
6030
|
overlay: "ReactModal__Overlay",
|
|
6024
6031
|
content: "ReactModal__Content"
|
|
6025
6032
|
}, ee = function(A) {
|
|
6026
6033
|
return A.code === "Tab" || A.keyCode === 9;
|
|
6027
|
-
},
|
|
6034
|
+
}, Y = function(A) {
|
|
6028
6035
|
return A.code === "Escape" || A.keyCode === 27;
|
|
6029
6036
|
}, U = 0, we = function(I) {
|
|
6030
|
-
|
|
6037
|
+
ge(A, I);
|
|
6031
6038
|
function A(W) {
|
|
6032
6039
|
M(this, A);
|
|
6033
|
-
var h =
|
|
6040
|
+
var h = z(this, (A.__proto__ || Object.getPrototypeOf(A)).call(this, W));
|
|
6034
6041
|
return h.setOverlayRef = function(S) {
|
|
6035
6042
|
h.overlay = S, h.props.overlayRef && h.props.overlayRef(S);
|
|
6036
6043
|
}, h.setContentRef = function(S) {
|
|
6037
6044
|
h.content = S, h.props.contentRef && h.props.contentRef(S);
|
|
6038
6045
|
}, h.afterClose = function() {
|
|
6039
|
-
var S = h.props,
|
|
6040
|
-
O &&
|
|
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);
|
|
6041
6048
|
}, h.open = function() {
|
|
6042
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() {
|
|
6043
6050
|
h.openAnimationFrame = requestAnimationFrame(function() {
|
|
@@ -6064,7 +6071,7 @@ $u.default.subscribe(ju);
|
|
|
6064
6071
|
closesAt: null
|
|
6065
6072
|
}, h.afterClose);
|
|
6066
6073
|
}, h.handleKeyDown = function(S) {
|
|
6067
|
-
ee(S) && (0, c.default)(h.content, S), h.props.shouldCloseOnEsc &&
|
|
6074
|
+
ee(S) && (0, c.default)(h.content, S), h.props.shouldCloseOnEsc && Y(S) && (S.stopPropagation(), h.requestClose(S));
|
|
6068
6075
|
}, h.handleOverlayOnClick = function(S) {
|
|
6069
6076
|
h.shouldClose === null && (h.shouldClose = !0), h.shouldClose && h.props.shouldCloseOnOverlayClick && (h.ownerHandlesClose() ? h.requestClose(S) : h.focusContent()), h.shouldClose = null;
|
|
6070
6077
|
}, h.handleContentOnMouseUp = function() {
|
|
@@ -6083,16 +6090,16 @@ $u.default.subscribe(ju);
|
|
|
6083
6090
|
return !h.state.isOpen && !h.state.beforeClose;
|
|
6084
6091
|
}, h.contentHasFocus = function() {
|
|
6085
6092
|
return document.activeElement === h.content || h.content.contains(document.activeElement);
|
|
6086
|
-
}, h.buildClassName = function(S,
|
|
6087
|
-
var ne = (typeof
|
|
6088
|
-
base:
|
|
6089
|
-
afterOpen:
|
|
6090
|
-
beforeClose:
|
|
6091
|
-
},
|
|
6092
|
-
return h.state.afterOpen && (
|
|
6093
|
-
}, h.attributesFromObject = function(S,
|
|
6094
|
-
return Object.keys(
|
|
6095
|
-
return ne[S + "-" +
|
|
6093
|
+
}, h.buildClassName = function(S, J) {
|
|
6094
|
+
var ne = (typeof J == "undefined" ? "undefined" : a(J)) === "object" ? J : {
|
|
6095
|
+
base: F[S],
|
|
6096
|
+
afterOpen: F[S] + "--after-open",
|
|
6097
|
+
beforeClose: F[S] + "--before-close"
|
|
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;
|
|
6096
6103
|
}, {});
|
|
6097
6104
|
}, h.state = {
|
|
6098
6105
|
afterOpen: !1,
|
|
@@ -6117,27 +6124,27 @@ $u.default.subscribe(ju);
|
|
|
6117
6124
|
}, {
|
|
6118
6125
|
key: "beforeOpen",
|
|
6119
6126
|
value: function() {
|
|
6120
|
-
var h = this.props, S = h.appElement,
|
|
6121
|
-
|
|
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);
|
|
6122
6129
|
}
|
|
6123
6130
|
// Don't steal focus from inner elements
|
|
6124
6131
|
}, {
|
|
6125
6132
|
key: "render",
|
|
6126
6133
|
value: function() {
|
|
6127
|
-
var h = this.props, S = h.id,
|
|
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;
|
|
6128
6135
|
if (this.shouldBeClosed())
|
|
6129
6136
|
return null;
|
|
6130
|
-
var
|
|
6137
|
+
var me = {
|
|
6131
6138
|
ref: this.setOverlayRef,
|
|
6132
6139
|
className: this.buildClassName("overlay", ne),
|
|
6133
|
-
style: n({},
|
|
6140
|
+
style: n({}, q, this.props.style.overlay),
|
|
6134
6141
|
onClick: this.handleOverlayOnClick,
|
|
6135
6142
|
onMouseDown: this.handleOverlayOnMouseDown
|
|
6136
6143
|
}, te = n({
|
|
6137
6144
|
id: S,
|
|
6138
6145
|
ref: this.setContentRef,
|
|
6139
|
-
style: n({},
|
|
6140
|
-
className: this.buildClassName("content",
|
|
6146
|
+
style: n({}, B, this.props.style.content),
|
|
6147
|
+
className: this.buildClassName("content", J),
|
|
6141
6148
|
tabIndex: "-1",
|
|
6142
6149
|
onKeyDown: this.handleKeyDown,
|
|
6143
6150
|
onMouseDown: this.handleContentOnMouseDown,
|
|
@@ -6148,7 +6155,7 @@ $u.default.subscribe(ju);
|
|
|
6148
6155
|
}, this.attributesFromObject("aria", n({ modal: !0 }, this.props.aria)), this.attributesFromObject("data", this.props.data || {}), {
|
|
6149
6156
|
"data-testid": this.props.testId
|
|
6150
6157
|
}), Pt = this.props.contentElement(te, O);
|
|
6151
|
-
return this.props.overlayElement(
|
|
6158
|
+
return this.props.overlayElement(me, Pt);
|
|
6152
6159
|
}
|
|
6153
6160
|
}]), A;
|
|
6154
6161
|
}(i.Component);
|
|
@@ -6174,7 +6181,7 @@ $u.default.subscribe(ju);
|
|
|
6174
6181
|
bodyOpenClassName: s.default.string,
|
|
6175
6182
|
htmlOpenClassName: s.default.string,
|
|
6176
6183
|
ariaHideApp: s.default.bool,
|
|
6177
|
-
appElement: s.default.oneOfType([s.default.instanceOf(
|
|
6184
|
+
appElement: s.default.oneOfType([s.default.instanceOf(_.default), s.default.instanceOf(b.SafeHTMLCollection), s.default.instanceOf(b.SafeNodeList), s.default.arrayOf(s.default.instanceOf(_.default))]),
|
|
6178
6185
|
onAfterOpen: s.default.func,
|
|
6179
6186
|
onAfterClose: s.default.func,
|
|
6180
6187
|
onRequestClose: s.default.func,
|
|
@@ -6262,10 +6269,10 @@ const Zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6262
6269
|
__proto__: null,
|
|
6263
6270
|
polyfill: qu
|
|
6264
6271
|
}, Symbol.toStringTag, { value: "Module" })), Xu = /* @__PURE__ */ Si(Zu);
|
|
6265
|
-
Object.defineProperty(
|
|
6272
|
+
Object.defineProperty(Ve, "__esModule", {
|
|
6266
6273
|
value: !0
|
|
6267
6274
|
});
|
|
6268
|
-
|
|
6275
|
+
Ve.bodyOpenClassName = Ve.portalClassName = void 0;
|
|
6269
6276
|
var nr = Object.assign || function(e) {
|
|
6270
6277
|
for (var t = 1; t < arguments.length; t++) {
|
|
6271
6278
|
var n = arguments[t];
|
|
@@ -6283,7 +6290,7 @@ var nr = Object.assign || function(e) {
|
|
|
6283
6290
|
return function(t, n, a) {
|
|
6284
6291
|
return n && e(t.prototype, n), a && e(t, a), t;
|
|
6285
6292
|
};
|
|
6286
|
-
}(), qi = ea,
|
|
6293
|
+
}(), qi = ea, Vt = Nt(qi), Ju = ea, qt = Nt(Ju), Yu = Qn, T = Nt(Yu), Qu = Vu, ar = Nt(Qu), ec = Se, tc = ac(ec), He = xe, rr = Nt(He), nc = Xu;
|
|
6287
6294
|
function ac(e) {
|
|
6288
6295
|
if (e && e.__esModule)
|
|
6289
6296
|
return e;
|
|
@@ -6310,12 +6317,12 @@ function ic(e, t) {
|
|
|
6310
6317
|
throw new TypeError("Super expression must either be null or a function, not " + typeof t);
|
|
6311
6318
|
e.prototype = Object.create(t && t.prototype, { constructor: { value: e, enumerable: !1, writable: !0, configurable: !0 } }), t && (Object.setPrototypeOf ? Object.setPrototypeOf(e, t) : e.__proto__ = t);
|
|
6312
6319
|
}
|
|
6313
|
-
var oc =
|
|
6320
|
+
var oc = Ve.portalClassName = "ReactModalPortal", sc = Ve.bodyOpenClassName = "ReactModal__Body--open", Ge = He.canUseDOM && qt.default.createPortal !== void 0, or = function(t) {
|
|
6314
6321
|
return document.createElement(t);
|
|
6315
6322
|
}, sr = function() {
|
|
6316
|
-
return
|
|
6323
|
+
return Ge ? qt.default.createPortal : qt.default.unstable_renderSubtreeIntoContainer;
|
|
6317
6324
|
};
|
|
6318
|
-
function
|
|
6325
|
+
function Ft(e) {
|
|
6319
6326
|
return e();
|
|
6320
6327
|
}
|
|
6321
6328
|
var Ot = function(e) {
|
|
@@ -6326,45 +6333,45 @@ var Ot = function(e) {
|
|
|
6326
6333
|
for (var o = arguments.length, s = Array(o), l = 0; l < o; l++)
|
|
6327
6334
|
s[l] = arguments[l];
|
|
6328
6335
|
return i = (a = (r = ir(this, (n = t.__proto__ || Object.getPrototypeOf(t)).call.apply(n, [this].concat(s))), r), r.removePortal = function() {
|
|
6329
|
-
|
|
6330
|
-
var u =
|
|
6336
|
+
!Ge && qt.default.unmountComponentAtNode(r.node);
|
|
6337
|
+
var u = Ft(r.props.parentSelector);
|
|
6331
6338
|
u && u.contains(r.node) ? u.removeChild(r.node) : console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.');
|
|
6332
6339
|
}, r.portalRef = function(u) {
|
|
6333
6340
|
r.portal = u;
|
|
6334
6341
|
}, r.renderPortal = function(u) {
|
|
6335
|
-
var m = sr(), c = m(r,
|
|
6342
|
+
var m = sr(), c = m(r, Vt.default.createElement(ar.default, nr({ defaultStyles: t.defaultStyles }, u)), r.node);
|
|
6336
6343
|
r.portalRef(c);
|
|
6337
6344
|
}, a), ir(r, i);
|
|
6338
6345
|
}
|
|
6339
6346
|
return Ku(t, [{
|
|
6340
6347
|
key: "componentDidMount",
|
|
6341
6348
|
value: function() {
|
|
6342
|
-
if (
|
|
6343
|
-
|
|
6344
|
-
var a =
|
|
6345
|
-
a.appendChild(this.node),
|
|
6349
|
+
if (He.canUseDOM) {
|
|
6350
|
+
Ge || (this.node = or("div")), this.node.className = this.props.portalClassName;
|
|
6351
|
+
var a = Ft(this.props.parentSelector);
|
|
6352
|
+
a.appendChild(this.node), !Ge && this.renderPortal(this.props);
|
|
6346
6353
|
}
|
|
6347
6354
|
}
|
|
6348
6355
|
}, {
|
|
6349
6356
|
key: "getSnapshotBeforeUpdate",
|
|
6350
6357
|
value: function(a) {
|
|
6351
|
-
var r =
|
|
6358
|
+
var r = Ft(a.parentSelector), i = Ft(this.props.parentSelector);
|
|
6352
6359
|
return { prevParent: r, nextParent: i };
|
|
6353
6360
|
}
|
|
6354
6361
|
}, {
|
|
6355
6362
|
key: "componentDidUpdate",
|
|
6356
6363
|
value: function(a, r, i) {
|
|
6357
|
-
if (
|
|
6364
|
+
if (He.canUseDOM) {
|
|
6358
6365
|
var o = this.props, s = o.isOpen, l = o.portalClassName;
|
|
6359
6366
|
a.portalClassName !== l && (this.node.className = l);
|
|
6360
6367
|
var u = i.prevParent, m = i.nextParent;
|
|
6361
|
-
m !== u && (u.removeChild(this.node), m.appendChild(this.node)), !(!a.isOpen && !s) &&
|
|
6368
|
+
m !== u && (u.removeChild(this.node), m.appendChild(this.node)), !(!a.isOpen && !s) && !Ge && this.renderPortal(this.props);
|
|
6362
6369
|
}
|
|
6363
6370
|
}
|
|
6364
6371
|
}, {
|
|
6365
6372
|
key: "componentWillUnmount",
|
|
6366
6373
|
value: function() {
|
|
6367
|
-
if (!(!
|
|
6374
|
+
if (!(!He.canUseDOM || !this.node || !this.portal)) {
|
|
6368
6375
|
var a = this.portal.state, r = Date.now(), i = a.isOpen && this.props.closeTimeoutMS && (a.closesAt || r + this.props.closeTimeoutMS);
|
|
6369
6376
|
i ? (a.beforeClose || this.portal.closeWithTimeout(), setTimeout(this.removePortal, i - r)) : this.removePortal();
|
|
6370
6377
|
}
|
|
@@ -6372,11 +6379,11 @@ var Ot = function(e) {
|
|
|
6372
6379
|
}, {
|
|
6373
6380
|
key: "render",
|
|
6374
6381
|
value: function() {
|
|
6375
|
-
if (!
|
|
6382
|
+
if (!He.canUseDOM || !Ge)
|
|
6376
6383
|
return null;
|
|
6377
|
-
!this.node &&
|
|
6384
|
+
!this.node && Ge && (this.node = or("div"));
|
|
6378
6385
|
var a = sr();
|
|
6379
|
-
return a(
|
|
6386
|
+
return a(Vt.default.createElement(ar.default, nr({
|
|
6380
6387
|
ref: this.portalRef,
|
|
6381
6388
|
defaultStyles: t.defaultStyles
|
|
6382
6389
|
}, this.props)), this.node);
|
|
@@ -6409,7 +6416,7 @@ Ot.propTypes = {
|
|
|
6409
6416
|
afterOpen: T.default.string.isRequired,
|
|
6410
6417
|
beforeClose: T.default.string.isRequired
|
|
6411
6418
|
})]),
|
|
6412
|
-
appElement: T.default.oneOfType([T.default.instanceOf(rr.default), T.default.instanceOf(
|
|
6419
|
+
appElement: T.default.oneOfType([T.default.instanceOf(rr.default), T.default.instanceOf(He.SafeHTMLCollection), T.default.instanceOf(He.SafeNodeList), T.default.arrayOf(T.default.instanceOf(rr.default))]),
|
|
6413
6420
|
onAfterOpen: T.default.func,
|
|
6414
6421
|
onRequestClose: T.default.func,
|
|
6415
6422
|
closeTimeoutMS: T.default.number,
|
|
@@ -6446,14 +6453,14 @@ Ot.defaultProps = {
|
|
|
6446
6453
|
return document.body;
|
|
6447
6454
|
},
|
|
6448
6455
|
overlayElement: function(t, n) {
|
|
6449
|
-
return
|
|
6456
|
+
return Vt.default.createElement(
|
|
6450
6457
|
"div",
|
|
6451
6458
|
t,
|
|
6452
6459
|
n
|
|
6453
6460
|
);
|
|
6454
6461
|
},
|
|
6455
6462
|
contentElement: function(t, n) {
|
|
6456
|
-
return
|
|
6463
|
+
return Vt.default.createElement(
|
|
6457
6464
|
"div",
|
|
6458
6465
|
t,
|
|
6459
6466
|
n
|
|
@@ -6485,12 +6492,12 @@ Ot.defaultStyles = {
|
|
|
6485
6492
|
}
|
|
6486
6493
|
};
|
|
6487
6494
|
(0, nc.polyfill)(Ot);
|
|
6488
|
-
|
|
6495
|
+
Ve.default = Ot;
|
|
6489
6496
|
(function(e, t) {
|
|
6490
6497
|
Object.defineProperty(t, "__esModule", {
|
|
6491
6498
|
value: !0
|
|
6492
6499
|
});
|
|
6493
|
-
var n =
|
|
6500
|
+
var n = Ve, a = r(n);
|
|
6494
6501
|
function r(i) {
|
|
6495
6502
|
return i && i.__esModule ? i : { default: i };
|
|
6496
6503
|
}
|
|
@@ -6498,10 +6505,7 @@ je.default = Ot;
|
|
|
6498
6505
|
})(In, In.exports);
|
|
6499
6506
|
var lc = In.exports;
|
|
6500
6507
|
const lr = /* @__PURE__ */ Mt(lc);
|
|
6501
|
-
function uc({
|
|
6502
|
-
color: e = "#fff",
|
|
6503
|
-
className: t
|
|
6504
|
-
}) {
|
|
6508
|
+
function uc({ color: e = "#fff", className: t }) {
|
|
6505
6509
|
return /* @__PURE__ */ f.createElement(
|
|
6506
6510
|
"svg",
|
|
6507
6511
|
{
|
|
@@ -6523,14 +6527,14 @@ function uc({
|
|
|
6523
6527
|
)
|
|
6524
6528
|
);
|
|
6525
6529
|
}
|
|
6526
|
-
const cc = "
|
|
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 = {
|
|
6527
6531
|
modal: cc,
|
|
6528
6532
|
content: mc,
|
|
6529
6533
|
contentScrollable: fc,
|
|
6530
6534
|
overlay: dc,
|
|
6531
6535
|
header: pc,
|
|
6532
6536
|
closeButton: hc
|
|
6533
|
-
}, ae = "alma-eligibility-modal",
|
|
6537
|
+
}, ae = "alma-eligibility-modal", X = {
|
|
6534
6538
|
desktopModal: `${ae}-desktop-modal`,
|
|
6535
6539
|
mobileModal: `${ae}-mobile-modal`,
|
|
6536
6540
|
leftSide: `${ae}-left-side`,
|
|
@@ -6555,7 +6559,7 @@ const cc = "_modal_15fxp_1", mc = "_content_15fxp_18", fc = "_contentScrollable_
|
|
|
6555
6559
|
className: a,
|
|
6556
6560
|
contentClassName: r,
|
|
6557
6561
|
scrollable: i = !1
|
|
6558
|
-
} = l, o =
|
|
6562
|
+
} = l, o = Lt(l, [
|
|
6559
6563
|
"children",
|
|
6560
6564
|
"isOpen",
|
|
6561
6565
|
"onClose",
|
|
@@ -6563,12 +6567,12 @@ const cc = "_modal_15fxp_1", mc = "_content_15fxp_18", fc = "_contentScrollable_
|
|
|
6563
6567
|
"contentClassName",
|
|
6564
6568
|
"scrollable"
|
|
6565
6569
|
]);
|
|
6566
|
-
const u =
|
|
6570
|
+
const u = he();
|
|
6567
6571
|
return lr.setAppElement("body"), /* @__PURE__ */ f.createElement(
|
|
6568
6572
|
lr,
|
|
6569
|
-
|
|
6570
|
-
className:
|
|
6571
|
-
overlayClassName:
|
|
6573
|
+
Ne({
|
|
6574
|
+
className: R(Xe.modal, a),
|
|
6575
|
+
overlayClassName: Xe.overlay,
|
|
6572
6576
|
onAfterOpen: () => {
|
|
6573
6577
|
Qa.on();
|
|
6574
6578
|
},
|
|
@@ -6582,12 +6586,12 @@ const cc = "_modal_15fxp_1", mc = "_content_15fxp_18", fc = "_contentScrollable_
|
|
|
6582
6586
|
role: "dialog",
|
|
6583
6587
|
"aria-modal": "true"
|
|
6584
6588
|
}, o),
|
|
6585
|
-
/* @__PURE__ */ f.createElement("div", { className:
|
|
6589
|
+
/* @__PURE__ */ f.createElement("div", { className: Xe.header }, /* @__PURE__ */ f.createElement(
|
|
6586
6590
|
"button",
|
|
6587
6591
|
{
|
|
6588
6592
|
type: "button",
|
|
6589
6593
|
onClick: n,
|
|
6590
|
-
className:
|
|
6594
|
+
className: R(Xe.closeButton, X.closeButton),
|
|
6591
6595
|
"data-testid": "modal-close-button",
|
|
6592
6596
|
"aria-label": u.formatMessage({
|
|
6593
6597
|
id: "accessibility.close-button.aria-label",
|
|
@@ -6596,15 +6600,15 @@ const cc = "_modal_15fxp_1", mc = "_content_15fxp_18", fc = "_contentScrollable_
|
|
|
6596
6600
|
},
|
|
6597
6601
|
/* @__PURE__ */ f.createElement(uc, { "aria-hidden": "true" })
|
|
6598
6602
|
)),
|
|
6599
|
-
/* @__PURE__ */ f.createElement("div", { className:
|
|
6603
|
+
/* @__PURE__ */ f.createElement("div", { className: R(Xe.content, r, { [Xe.contentScrollable]: i }) }, e)
|
|
6600
6604
|
);
|
|
6601
|
-
}, yc = "
|
|
6605
|
+
}, yc = "_skipLinks_14mgg_2", _c = "_skipLinksList_14mgg_10", vc = "_skipLinkItem_14mgg_16", bc = "_skipLink_14mgg_2", Bt = {
|
|
6602
6606
|
skipLinks: yc,
|
|
6603
6607
|
skipLinksList: _c,
|
|
6604
6608
|
skipLinkItem: vc,
|
|
6605
6609
|
skipLink: bc
|
|
6606
6610
|
}, Ec = ({ skipLinks: e, className: t }) => {
|
|
6607
|
-
const n =
|
|
6611
|
+
const n = he(), a = (r) => {
|
|
6608
6612
|
const i = r.currentTarget.getAttribute("href");
|
|
6609
6613
|
if (i && i.startsWith("#")) {
|
|
6610
6614
|
const o = i.substring(1), s = document.getElementById(o);
|
|
@@ -6614,26 +6618,26 @@ const cc = "_modal_15fxp_1", mc = "_content_15fxp_18", fc = "_contentScrollable_
|
|
|
6614
6618
|
}
|
|
6615
6619
|
};
|
|
6616
6620
|
return /* @__PURE__ */ f.createElement(
|
|
6617
|
-
"
|
|
6621
|
+
"nav",
|
|
6618
6622
|
{
|
|
6619
|
-
className:
|
|
6623
|
+
className: R(Bt.skipLinks, t),
|
|
6620
6624
|
role: "navigation",
|
|
6621
6625
|
"aria-label": n.formatMessage({
|
|
6622
6626
|
id: "accessibility.skip-links.navigation.aria-label",
|
|
6623
6627
|
defaultMessage: "Navigation rapide"
|
|
6624
6628
|
})
|
|
6625
6629
|
},
|
|
6626
|
-
/* @__PURE__ */ f.createElement("ul", { className: Bt.skipLinksList }, e.map(({ href: r, labelId: i, defaultMessage: o }) => /* @__PURE__ */ f.createElement("li", { key: r, className: Bt.skipLinkItem }, /* @__PURE__ */ f.createElement("a", { href: r, className: Bt.skipLink, onClick: a }, /* @__PURE__ */ f.createElement(
|
|
6630
|
+
/* @__PURE__ */ f.createElement("ul", { className: Bt.skipLinksList }, e.map(({ href: r, labelId: i, defaultMessage: o }) => /* @__PURE__ */ f.createElement("li", { key: r, className: Bt.skipLinkItem }, /* @__PURE__ */ f.createElement("a", { href: r, className: Bt.skipLink, onClick: a }, /* @__PURE__ */ f.createElement(L, { id: i, defaultMessage: o })))))
|
|
6627
6631
|
);
|
|
6628
6632
|
}, xc = 1e3, ur = Symbol.for("constructDateFrom");
|
|
6629
|
-
function
|
|
6633
|
+
function Jt(e, t) {
|
|
6630
6634
|
return typeof e == "function" ? e(t) : e && typeof e == "object" && ur in e ? e[ur](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
6631
6635
|
}
|
|
6632
6636
|
function Cc(e, t) {
|
|
6633
|
-
return
|
|
6637
|
+
return Jt(e, e);
|
|
6634
6638
|
}
|
|
6635
6639
|
function Sc(e, ...t) {
|
|
6636
|
-
const n =
|
|
6640
|
+
const n = Jt.bind(
|
|
6637
6641
|
null,
|
|
6638
6642
|
t.find((a) => typeof a == "object")
|
|
6639
6643
|
);
|
|
@@ -6644,7 +6648,7 @@ function cr(e, t) {
|
|
|
6644
6648
|
return n.setHours(0, 0, 0, 0), n;
|
|
6645
6649
|
}
|
|
6646
6650
|
function Ac(e) {
|
|
6647
|
-
return
|
|
6651
|
+
return Jt(e, Date.now());
|
|
6648
6652
|
}
|
|
6649
6653
|
function Tc(e, t, n) {
|
|
6650
6654
|
const [a, r] = Sc(
|
|
@@ -6656,14 +6660,14 @@ function Tc(e, t, n) {
|
|
|
6656
6660
|
}
|
|
6657
6661
|
function Ic(e, t) {
|
|
6658
6662
|
return Tc(
|
|
6659
|
-
|
|
6663
|
+
Jt(e, e),
|
|
6660
6664
|
Ac(e)
|
|
6661
6665
|
);
|
|
6662
6666
|
}
|
|
6663
6667
|
function Mc(e) {
|
|
6664
6668
|
return e * xc;
|
|
6665
6669
|
}
|
|
6666
|
-
const wc = "
|
|
6670
|
+
const wc = "_openModalInfo_a4893_1", Nc = {
|
|
6667
6671
|
openModalInfo: wc
|
|
6668
6672
|
}, Zi = (e) => {
|
|
6669
6673
|
const {
|
|
@@ -6672,13 +6676,13 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6672
6676
|
installments_count: a
|
|
6673
6677
|
} = e;
|
|
6674
6678
|
return a === 1 && !t && !n ? /* @__PURE__ */ f.createElement(
|
|
6675
|
-
|
|
6679
|
+
L,
|
|
6676
6680
|
{
|
|
6677
6681
|
id: "payment-plan-strings.pay.now.button",
|
|
6678
6682
|
defaultMessage: "Payer maintenant"
|
|
6679
6683
|
}
|
|
6680
6684
|
) : a === 1 && t ? /* @__PURE__ */ f.createElement(
|
|
6681
|
-
|
|
6685
|
+
L,
|
|
6682
6686
|
{
|
|
6683
6687
|
id: "payment-plan-strings.day-abbreviation",
|
|
6684
6688
|
defaultMessage: "J{deferredDays}",
|
|
@@ -6687,7 +6691,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6687
6691
|
}
|
|
6688
6692
|
}
|
|
6689
6693
|
) : a === 1 && n ? /* @__PURE__ */ f.createElement(
|
|
6690
|
-
|
|
6694
|
+
L,
|
|
6691
6695
|
{
|
|
6692
6696
|
id: "payment-plan-strings.month-abbreviation",
|
|
6693
6697
|
defaultMessage: "M{deferredMonths}",
|
|
@@ -6722,10 +6726,10 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6722
6726
|
deferredMonths: `+${a}`
|
|
6723
6727
|
}
|
|
6724
6728
|
) : `${r}x`;
|
|
6725
|
-
},
|
|
6729
|
+
}, Ut = (e) => {
|
|
6726
6730
|
var t;
|
|
6727
6731
|
if ((t = e.payment_plan) != null && t.every((n) => n.customer_fee === 0 && n.customer_interest === 0))
|
|
6728
|
-
return /* @__PURE__ */ f.createElement(f.Fragment, null, " ", /* @__PURE__ */ f.createElement(
|
|
6732
|
+
return /* @__PURE__ */ f.createElement(f.Fragment, null, " ", /* @__PURE__ */ f.createElement(L, { id: "payment-plan-strings.no-fee", defaultMessage: "(sans frais)" }));
|
|
6729
6733
|
}, Pc = (e) => {
|
|
6730
6734
|
const {
|
|
6731
6735
|
deferred_days: t,
|
|
@@ -6739,7 +6743,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6739
6743
|
} = e, u = t + n * 30;
|
|
6740
6744
|
if (!r)
|
|
6741
6745
|
return /* @__PURE__ */ f.createElement("p", null, i > s ? /* @__PURE__ */ f.createElement(
|
|
6742
|
-
|
|
6746
|
+
L,
|
|
6743
6747
|
{
|
|
6744
6748
|
id: "payment-plan-strings.ineligible-greater-than-max",
|
|
6745
6749
|
defaultMessage: "Jusqu'à {maxAmount}",
|
|
@@ -6747,7 +6751,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6747
6751
|
maxAmount: /* @__PURE__ */ f.createElement(
|
|
6748
6752
|
Te,
|
|
6749
6753
|
{
|
|
6750
|
-
value:
|
|
6754
|
+
value: fe(s),
|
|
6751
6755
|
style: "currency",
|
|
6752
6756
|
currency: "EUR"
|
|
6753
6757
|
}
|
|
@@ -6755,7 +6759,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6755
6759
|
}
|
|
6756
6760
|
}
|
|
6757
6761
|
) : /* @__PURE__ */ f.createElement(
|
|
6758
|
-
|
|
6762
|
+
L,
|
|
6759
6763
|
{
|
|
6760
6764
|
id: "payment-plan-strings.ineligible-lower-than-min",
|
|
6761
6765
|
defaultMessage: "À partir de {minAmount}",
|
|
@@ -6763,7 +6767,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6763
6767
|
minAmount: /* @__PURE__ */ f.createElement(
|
|
6764
6768
|
Te,
|
|
6765
6769
|
{
|
|
6766
|
-
value:
|
|
6770
|
+
value: fe(o),
|
|
6767
6771
|
style: "currency",
|
|
6768
6772
|
currency: "EUR"
|
|
6769
6773
|
}
|
|
@@ -6774,7 +6778,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6774
6778
|
if (l) {
|
|
6775
6779
|
if (u !== 0 && a === 1)
|
|
6776
6780
|
return /* @__PURE__ */ f.createElement("p", null, /* @__PURE__ */ f.createElement(
|
|
6777
|
-
|
|
6781
|
+
L,
|
|
6778
6782
|
{
|
|
6779
6783
|
id: "payment-plan-strings.deferred",
|
|
6780
6784
|
defaultMessage: "{totalAmount} à payer le {dueDate}",
|
|
@@ -6782,7 +6786,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6782
6786
|
totalAmount: /* @__PURE__ */ f.createElement(
|
|
6783
6787
|
Te,
|
|
6784
6788
|
{
|
|
6785
|
-
value:
|
|
6789
|
+
value: fe(l[0].total_amount),
|
|
6786
6790
|
style: "currency",
|
|
6787
6791
|
currency: "EUR"
|
|
6788
6792
|
}
|
|
@@ -6798,20 +6802,20 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6798
6802
|
)
|
|
6799
6803
|
}
|
|
6800
6804
|
}
|
|
6801
|
-
),
|
|
6805
|
+
), Ut(e));
|
|
6802
6806
|
if (a > 0) {
|
|
6803
6807
|
const m = l == null ? void 0 : l.every(
|
|
6804
6808
|
(c, d) => d === 0 || c.total_amount === l[0].total_amount
|
|
6805
6809
|
);
|
|
6806
6810
|
return a > 4 ? /* @__PURE__ */ f.createElement("p", { className: Nc.openModalInfo }, /* @__PURE__ */ f.createElement(
|
|
6807
|
-
|
|
6811
|
+
L,
|
|
6808
6812
|
{
|
|
6809
6813
|
id: "payment-plan-strings.credit",
|
|
6810
6814
|
defaultMessage: "Cliquez pour en savoir plus",
|
|
6811
6815
|
description: "Link to credit details"
|
|
6812
6816
|
}
|
|
6813
6817
|
)) : gr(e) ? /* @__PURE__ */ f.createElement("p", null, /* @__PURE__ */ f.createElement(
|
|
6814
|
-
|
|
6818
|
+
L,
|
|
6815
6819
|
{
|
|
6816
6820
|
id: "payment-plan-strings.pay-now",
|
|
6817
6821
|
defaultMessage: "Payer maintenant {totalAmount}",
|
|
@@ -6819,7 +6823,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6819
6823
|
totalAmount: /* @__PURE__ */ f.createElement(
|
|
6820
6824
|
Te,
|
|
6821
6825
|
{
|
|
6822
|
-
value:
|
|
6826
|
+
value: fe(l[0].total_amount),
|
|
6823
6827
|
style: "currency",
|
|
6824
6828
|
currency: "EUR"
|
|
6825
6829
|
}
|
|
@@ -6827,8 +6831,8 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6827
6831
|
installmentsCount: a
|
|
6828
6832
|
}
|
|
6829
6833
|
}
|
|
6830
|
-
),
|
|
6831
|
-
|
|
6834
|
+
), Ut(e)) : m ? /* @__PURE__ */ f.createElement("p", null, /* @__PURE__ */ f.createElement(
|
|
6835
|
+
L,
|
|
6832
6836
|
{
|
|
6833
6837
|
id: "payment-plan-strings.multiple-installments-same-amount",
|
|
6834
6838
|
defaultMessage: "{installmentsCount} x {totalAmount}",
|
|
@@ -6836,7 +6840,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6836
6840
|
totalAmount: /* @__PURE__ */ f.createElement(
|
|
6837
6841
|
Te,
|
|
6838
6842
|
{
|
|
6839
|
-
value:
|
|
6843
|
+
value: fe(l[0].total_amount),
|
|
6840
6844
|
style: "currency",
|
|
6841
6845
|
currency: "EUR"
|
|
6842
6846
|
}
|
|
@@ -6844,8 +6848,8 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6844
6848
|
installmentsCount: a
|
|
6845
6849
|
}
|
|
6846
6850
|
}
|
|
6847
|
-
),
|
|
6848
|
-
|
|
6851
|
+
), Ut(e)) : /* @__PURE__ */ f.createElement("p", null, /* @__PURE__ */ f.createElement(
|
|
6852
|
+
L,
|
|
6849
6853
|
{
|
|
6850
6854
|
id: "payment-plan-strings.multiple-installments",
|
|
6851
6855
|
defaultMessage: "{numberOfRemainingInstallments, plural, one {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}} other {{firstInstallmentAmount} puis {numberOfRemainingInstallments} x {othersInstallmentAmount}}}",
|
|
@@ -6853,7 +6857,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6853
6857
|
firstInstallmentAmount: /* @__PURE__ */ f.createElement(
|
|
6854
6858
|
Te,
|
|
6855
6859
|
{
|
|
6856
|
-
value:
|
|
6860
|
+
value: fe(l[0].total_amount),
|
|
6857
6861
|
style: "currency",
|
|
6858
6862
|
currency: "EUR"
|
|
6859
6863
|
}
|
|
@@ -6862,20 +6866,20 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6862
6866
|
othersInstallmentAmount: /* @__PURE__ */ f.createElement(
|
|
6863
6867
|
Te,
|
|
6864
6868
|
{
|
|
6865
|
-
value:
|
|
6869
|
+
value: fe(l[1].total_amount),
|
|
6866
6870
|
style: "currency",
|
|
6867
6871
|
currency: "EUR"
|
|
6868
6872
|
}
|
|
6869
6873
|
)
|
|
6870
6874
|
}
|
|
6871
6875
|
}
|
|
6872
|
-
),
|
|
6876
|
+
), Ut(e));
|
|
6873
6877
|
}
|
|
6874
6878
|
} else throw Error(
|
|
6875
6879
|
`No payment plan provided for payment in ${a} installments. Please contact us if you see this error.`
|
|
6876
6880
|
);
|
|
6877
6881
|
return /* @__PURE__ */ f.createElement("p", null, /* @__PURE__ */ f.createElement(
|
|
6878
|
-
|
|
6882
|
+
L,
|
|
6879
6883
|
{
|
|
6880
6884
|
id: "payment-plan-strings.default-message",
|
|
6881
6885
|
defaultMessage: "Payez en plusieurs fois avec Alma"
|
|
@@ -6904,15 +6908,15 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6904
6908
|
{ days: e.deferred_days }
|
|
6905
6909
|
)
|
|
6906
6910
|
}
|
|
6907
|
-
) : `${e.installments_count}x`, Rc = "
|
|
6911
|
+
) : `${e.installments_count}x`, Rc = "_buttons_1dtt2_1", Lc = "_active_1dtt2_54", Hc = "_textButton_1dtt2_60", ln = {
|
|
6908
6912
|
buttons: Rc,
|
|
6909
6913
|
active: Lc,
|
|
6910
6914
|
textButton: Hc
|
|
6911
6915
|
}, Dc = ({ eligibilityPlans: e, currentPlanIndex: t, setCurrentPlanIndex: n, id: a }) => {
|
|
6912
|
-
const r =
|
|
6913
|
-
|
|
6916
|
+
const r = he(), i = ke([]), o = ke(!1);
|
|
6917
|
+
K(() => {
|
|
6914
6918
|
i.current = i.current.slice(0, e.length);
|
|
6915
|
-
}, [e.length]),
|
|
6919
|
+
}, [e.length]), K(() => {
|
|
6916
6920
|
var l;
|
|
6917
6921
|
o.current && i.current[t] && ((l = i.current[t]) == null || l.focus(), o.current = !1);
|
|
6918
6922
|
}, [t]);
|
|
@@ -6920,7 +6924,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6920
6924
|
l >= 0 && l < e.length && (o.current = !0, n(l));
|
|
6921
6925
|
};
|
|
6922
6926
|
return /* @__PURE__ */ f.createElement("div", null, /* @__PURE__ */ f.createElement("h2", { id: "payment-plans-title", className: "sr-only" }, /* @__PURE__ */ f.createElement(
|
|
6923
|
-
|
|
6927
|
+
L,
|
|
6924
6928
|
{
|
|
6925
6929
|
id: "accessibility.payment-plans-title",
|
|
6926
6930
|
defaultMessage: "Options de paiement disponibles"
|
|
@@ -6929,7 +6933,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6929
6933
|
"div",
|
|
6930
6934
|
{
|
|
6931
6935
|
id: a,
|
|
6932
|
-
className:
|
|
6936
|
+
className: R(ln.buttons, X.eligibilityOptions),
|
|
6933
6937
|
role: "group",
|
|
6934
6938
|
"aria-labelledby": "payment-plans-title"
|
|
6935
6939
|
},
|
|
@@ -6938,8 +6942,8 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6938
6942
|
{
|
|
6939
6943
|
type: "button",
|
|
6940
6944
|
key: `p${l.installments_count}x-d+${l.deferred_days}-m+${l.deferred_months}`,
|
|
6941
|
-
className:
|
|
6942
|
-
[
|
|
6945
|
+
className: R({
|
|
6946
|
+
[R(ln.active, X.activeOption)]: u === t
|
|
6943
6947
|
}),
|
|
6944
6948
|
onClick: () => n(u),
|
|
6945
6949
|
onKeyDown: (m) => {
|
|
@@ -6962,13 +6966,13 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6962
6966
|
/* @__PURE__ */ f.createElement("span", { className: ln.textButton }, Zi(l))
|
|
6963
6967
|
))
|
|
6964
6968
|
));
|
|
6965
|
-
}, kc = "
|
|
6969
|
+
}, kc = "_installment_yfot3_1", Fc = "_date_yfot3_11", Bc = "_dot_yfot3_17", Uc = "_isCurrent_yfot3_26", $c = "_bold_yfot3_30", lt = {
|
|
6966
6970
|
installment: kc,
|
|
6967
|
-
date:
|
|
6968
|
-
dot:
|
|
6971
|
+
date: Fc,
|
|
6972
|
+
dot: Bc,
|
|
6969
6973
|
isCurrent: Uc,
|
|
6970
6974
|
bold: $c
|
|
6971
|
-
},
|
|
6975
|
+
}, Gc = ({ installment: e, index: t }) => /* @__PURE__ */ f.createElement("div", { className: lt.installment, "data-testid": `installment-${t}` }, /* @__PURE__ */ f.createElement("div", { className: lt.date }, /* @__PURE__ */ f.createElement("div", { className: R(lt.dot, { [lt.isCurrent]: t === 0 }) }), Ic(e.due_date * 1e3) ? /* @__PURE__ */ f.createElement(L, { id: "installments.today", defaultMessage: "Aujourd'hui", tagName: "strong" }) : /* @__PURE__ */ f.createElement(
|
|
6972
6976
|
Oi,
|
|
6973
6977
|
{
|
|
6974
6978
|
value: e.due_date * 1e3,
|
|
@@ -6976,8 +6980,8 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6976
6980
|
month: "long",
|
|
6977
6981
|
year: "numeric"
|
|
6978
6982
|
}
|
|
6979
|
-
)), /* @__PURE__ */ f.createElement("div", { className:
|
|
6980
|
-
container:
|
|
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_gyhf6_1", Wc = "_total_gyhf6_18", jc = "_creditInfo_gyhf6_25", Vc = "_creditInfoTitle_gyhf6_36", qc = "_fees_gyhf6_40", Zc = "_creditCost_gyhf6_50", Xc = "_creditInfoLegalText_gyhf6_54", Ue = {
|
|
6984
|
+
container: zc,
|
|
6981
6985
|
total: Wc,
|
|
6982
6986
|
creditInfo: jc,
|
|
6983
6987
|
creditInfoTitle: Vc,
|
|
@@ -6986,17 +6990,17 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
6986
6990
|
creditInfoLegalText: Xc
|
|
6987
6991
|
}, Kc = ({ currentPlan: e }) => {
|
|
6988
6992
|
var u, m, c, d, p, g;
|
|
6989
|
-
const t =
|
|
6993
|
+
const t = he(), n = fe(e.purchase_amount + e.customer_total_cost_amount), a = fe(e.customer_total_cost_amount), r = (e == null ? void 0 : e.annual_interest_rate) && e.annual_interest_rate / 1e4 || 0, i = fe(e.customer_total_cost_amount), o = e.installments_count > 4, s = fe((c = (m = (u = e.payment_plan) == null ? void 0 : u[0]) == null ? void 0 : m.total_amount) != null ? c : 0), l = fe(
|
|
6990
6994
|
e.purchase_amount + e.customer_total_cost_amount - ((g = (p = (d = e.payment_plan) == null ? void 0 : d[0]) == null ? void 0 : p.total_amount) != null ? g : 0)
|
|
6991
6995
|
);
|
|
6992
|
-
return /* @__PURE__ */ f.createElement(f.Fragment, null, o && /* @__PURE__ */ f.createElement("div", { className:
|
|
6993
|
-
|
|
6996
|
+
return /* @__PURE__ */ f.createElement(f.Fragment, null, o && /* @__PURE__ */ f.createElement("div", { className: Ue.creditInfo }, /* @__PURE__ */ f.createElement("span", { className: Ue.creditInfoTitle }, /* @__PURE__ */ f.createElement(
|
|
6997
|
+
L,
|
|
6994
6998
|
{
|
|
6995
6999
|
id: "credit-features.information.title",
|
|
6996
7000
|
defaultMessage: "Un crédit vous engage et doit être remboursé."
|
|
6997
7001
|
}
|
|
6998
7002
|
)), /* @__PURE__ */ f.createElement("br", null), /* @__PURE__ */ f.createElement(
|
|
6999
|
-
|
|
7003
|
+
L,
|
|
7000
7004
|
{
|
|
7001
7005
|
id: "credit-features.information",
|
|
7002
7006
|
defaultMessage: "Vérifiez vos capacités de remboursement avant de vous engager."
|
|
@@ -7004,18 +7008,18 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7004
7008
|
)), /* @__PURE__ */ f.createElement(
|
|
7005
7009
|
"div",
|
|
7006
7010
|
{
|
|
7007
|
-
className:
|
|
7011
|
+
className: R(Ue.container, X.summary),
|
|
7008
7012
|
"data-testid": "modal-summary"
|
|
7009
7013
|
},
|
|
7010
|
-
/* @__PURE__ */ f.createElement("p", { className:
|
|
7011
|
-
/* @__PURE__ */ f.createElement("p", { className:
|
|
7012
|
-
|
|
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(
|
|
7016
|
+
L,
|
|
7013
7017
|
{
|
|
7014
7018
|
id: "credit-features.total-credit-cost",
|
|
7015
7019
|
defaultMessage: "Dont coût du crédit"
|
|
7016
7020
|
}
|
|
7017
|
-
), /* @__PURE__ */ f.createElement("span", { className:
|
|
7018
|
-
|
|
7021
|
+
), /* @__PURE__ */ f.createElement("span", { className: Ue.creditCost }, /* @__PURE__ */ f.createElement(
|
|
7022
|
+
L,
|
|
7019
7023
|
{
|
|
7020
7024
|
id: "credit-features.credit-cost-display",
|
|
7021
7025
|
defaultMessage: "{creditCost} (TAEG {taegPercentage})",
|
|
@@ -7031,15 +7035,15 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7031
7035
|
}
|
|
7032
7036
|
}
|
|
7033
7037
|
))) : /* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement(
|
|
7034
|
-
|
|
7038
|
+
L,
|
|
7035
7039
|
{
|
|
7036
7040
|
id: "installments.total-fees",
|
|
7037
7041
|
defaultMessage: "Dont frais (TTC)",
|
|
7038
7042
|
tagName: "span"
|
|
7039
7043
|
}
|
|
7040
7044
|
), /* @__PURE__ */ f.createElement("span", null, /* @__PURE__ */ f.createElement(Te, { value: i, style: "currency", currency: "EUR" })))),
|
|
7041
|
-
o && /* @__PURE__ */ f.createElement("div", { className:
|
|
7042
|
-
|
|
7045
|
+
o && /* @__PURE__ */ f.createElement("div", { className: Ue.creditInfoLegalText }, /* @__PURE__ */ f.createElement(
|
|
7046
|
+
L,
|
|
7043
7047
|
{
|
|
7044
7048
|
id: "credit-features.legal-text",
|
|
7045
7049
|
defaultMessage: "Crédit d'un montant de {totalWithoutFirstInstallment} au taux débiteur fixe de {taegPercentage} sur une durée de {installmeentsCountWithoutFirst} mois. Permettant, en complément d'un acompte de {firstInstallmentAmount}, de financer un achat d'un montant de {productPriceWithoutCreditCost}. Sous réserve d'étude et d'acceptation par Alma. Délai légal de rétractation de 14 jours. Simulation présentée par Alma, immatriculée au RCS Nanterre sous le numéro 839 100 575, établissement de paiement et société de financement agréée par l’ACPR sous le n° 17408 (numéro CIB / Code banque).",
|
|
@@ -7080,7 +7084,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7080
7084
|
tabIndex: -1
|
|
7081
7085
|
},
|
|
7082
7086
|
/* @__PURE__ */ f.createElement("h2", { id: "payment-schedule-title", className: "sr-only" }, /* @__PURE__ */ f.createElement(
|
|
7083
|
-
|
|
7087
|
+
L,
|
|
7084
7088
|
{
|
|
7085
7089
|
id: "accessibility.payment-schedule-title",
|
|
7086
7090
|
defaultMessage: "Calendrier de paiement"
|
|
@@ -7089,30 +7093,25 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7089
7093
|
/* @__PURE__ */ f.createElement("div", { id: "payment-schedule-description" }, /* @__PURE__ */ f.createElement(
|
|
7090
7094
|
"ul",
|
|
7091
7095
|
{
|
|
7092
|
-
className:
|
|
7096
|
+
className: R(un.schedule, X.scheduleDetails),
|
|
7093
7097
|
"data-testid": "modal-installments-element"
|
|
7094
7098
|
},
|
|
7095
|
-
((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(
|
|
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 })))
|
|
7096
7100
|
), /* @__PURE__ */ f.createElement(Kc, { currentPlan: e }))
|
|
7097
|
-
), aa = (
|
|
7098
|
-
|
|
7101
|
+
), aa = (a) => {
|
|
7102
|
+
var r = a, { className: e, color: t = "#fa5022" } = r, n = Lt(r, ["className", "color"]);
|
|
7099
7103
|
return /* @__PURE__ */ f.createElement(
|
|
7100
7104
|
"svg",
|
|
7101
|
-
{
|
|
7105
|
+
Ne({
|
|
7102
7106
|
width: "42",
|
|
7103
7107
|
height: "24",
|
|
7104
7108
|
viewBox: "0 0 352 120",
|
|
7105
7109
|
fill: "none",
|
|
7106
7110
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7107
7111
|
className: e,
|
|
7108
|
-
"aria-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
}),
|
|
7112
|
-
focusable: !1,
|
|
7113
|
-
"aria-hidden": !0,
|
|
7114
|
-
role: "img"
|
|
7115
|
-
},
|
|
7112
|
+
"aria-hidden": "true",
|
|
7113
|
+
focusable: "false"
|
|
7114
|
+
}, n),
|
|
7116
7115
|
/* @__PURE__ */ f.createElement(
|
|
7117
7116
|
"path",
|
|
7118
7117
|
{
|
|
@@ -7122,7 +7121,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7122
7121
|
)
|
|
7123
7122
|
);
|
|
7124
7123
|
}, tm = () => {
|
|
7125
|
-
const e =
|
|
7124
|
+
const e = he();
|
|
7126
7125
|
return /* @__PURE__ */ f.createElement(
|
|
7127
7126
|
"svg",
|
|
7128
7127
|
{
|
|
@@ -7153,7 +7152,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7153
7152
|
)))
|
|
7154
7153
|
);
|
|
7155
7154
|
}, nm = () => {
|
|
7156
|
-
const e =
|
|
7155
|
+
const e = he();
|
|
7157
7156
|
return /* @__PURE__ */ f.createElement(
|
|
7158
7157
|
"svg",
|
|
7159
7158
|
{
|
|
@@ -7177,12 +7176,12 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7177
7176
|
), /* @__PURE__ */ f.createElement("g", { fill: "#FFF" }, /* @__PURE__ */ f.createElement("path", { d: "M19.094 4.03h-6.437V8h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.066-.98-1.955-2.145-1.955zM19.094 8.593h-6.437v3.97h6.498c1.165 0 2.084-.889 2.084-2.015-.06-1.067-.98-1.955-2.145-1.955zM7.017 8.06h4.966c-.245-2.371-2.391-4.267-4.966-4.267-2.758 0-5.027 2.074-5.027 4.681s2.269 4.682 5.027 4.682c2.698 0 4.904-2.015 5.027-4.563H7.017v-.534z" })))
|
|
7178
7177
|
);
|
|
7179
7178
|
}, am = () => {
|
|
7180
|
-
const e =
|
|
7179
|
+
const e = he();
|
|
7181
7180
|
return /* @__PURE__ */ f.createElement(
|
|
7182
7181
|
"svg",
|
|
7183
7182
|
{
|
|
7184
|
-
width: "
|
|
7185
|
-
height: "
|
|
7183
|
+
width: "24",
|
|
7184
|
+
height: "16",
|
|
7186
7185
|
viewBox: "0 0 24 16",
|
|
7187
7186
|
version: "1.1",
|
|
7188
7187
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7234,7 +7233,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7234
7233
|
)))))
|
|
7235
7234
|
);
|
|
7236
7235
|
}, rm = () => {
|
|
7237
|
-
const e =
|
|
7236
|
+
const e = he();
|
|
7238
7237
|
return /* @__PURE__ */ f.createElement(
|
|
7239
7238
|
"svg",
|
|
7240
7239
|
{
|
|
@@ -7288,7 +7287,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7288
7287
|
"div",
|
|
7289
7288
|
{
|
|
7290
7289
|
"data-testid": "card-logos",
|
|
7291
|
-
className:
|
|
7290
|
+
className: R(fr.cardContainer, X.cardContainer)
|
|
7292
7291
|
},
|
|
7293
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)))
|
|
7294
7293
|
);
|
|
@@ -7296,13 +7295,13 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7296
7295
|
list: om,
|
|
7297
7296
|
listItem: sm,
|
|
7298
7297
|
bullet: lm
|
|
7299
|
-
},
|
|
7298
|
+
}, Ke = (e) => /* @__PURE__ */ f.createElement("strong", null, e), Ki = ({ isCurrentPlanP1X: e, id: t }) => (
|
|
7300
7299
|
// TODO: refactor this component into subcomponents to factorize code and make it cleaner
|
|
7301
7300
|
/* @__PURE__ */ f.createElement(
|
|
7302
7301
|
"div",
|
|
7303
7302
|
{
|
|
7304
7303
|
id: t,
|
|
7305
|
-
className:
|
|
7304
|
+
className: R(Re.list, X.info),
|
|
7306
7305
|
"data-testid": "modal-info-element",
|
|
7307
7306
|
role: "region",
|
|
7308
7307
|
"aria-labelledby": "payment-info-title",
|
|
@@ -7310,54 +7309,54 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7310
7309
|
tabIndex: -1
|
|
7311
7310
|
},
|
|
7312
7311
|
/* @__PURE__ */ f.createElement("h2", { id: "payment-info-title", className: "sr-only" }, /* @__PURE__ */ f.createElement(
|
|
7313
|
-
|
|
7312
|
+
L,
|
|
7314
7313
|
{
|
|
7315
7314
|
id: "eligibility-modal.info-title",
|
|
7316
7315
|
defaultMessage: "Comment procéder au paiement"
|
|
7317
7316
|
}
|
|
7318
7317
|
)),
|
|
7319
7318
|
" ",
|
|
7320
|
-
/* @__PURE__ */ f.createElement("ol", { className: Re.listContainer, id: "payment-info-description" }, /* @__PURE__ */ f.createElement("li", { className: Re.listItem }, /* @__PURE__ */ f.createElement("div", { className:
|
|
7321
|
-
|
|
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(
|
|
7320
|
+
L,
|
|
7322
7321
|
{
|
|
7323
7322
|
id: "eligibility-modal.p1x-bullet-1",
|
|
7324
7323
|
defaultMessage: "Choisissez <strong>Alma - Payer maintenant</strong> au moment du paiement.",
|
|
7325
|
-
values: { strong:
|
|
7324
|
+
values: { strong: Ke }
|
|
7326
7325
|
}
|
|
7327
7326
|
) : /* @__PURE__ */ f.createElement(
|
|
7328
|
-
|
|
7327
|
+
L,
|
|
7329
7328
|
{
|
|
7330
7329
|
id: "eligibility-modal.bullet-1",
|
|
7331
7330
|
defaultMessage: "Choisissez <strong>Alma</strong> au moment du paiement.",
|
|
7332
|
-
values: { strong:
|
|
7331
|
+
values: { strong: Ke }
|
|
7333
7332
|
}
|
|
7334
|
-
))), /* @__PURE__ */ f.createElement("li", { className: Re.listItem }, /* @__PURE__ */ f.createElement("div", { className:
|
|
7335
|
-
|
|
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(
|
|
7334
|
+
L,
|
|
7336
7335
|
{
|
|
7337
7336
|
id: "eligibility-modal.p1x-bullet-2",
|
|
7338
7337
|
defaultMessage: "Renseignez les informations de votre <strong>carte bancaire.</strong>",
|
|
7339
|
-
values: { strong:
|
|
7338
|
+
values: { strong: Ke }
|
|
7340
7339
|
}
|
|
7341
7340
|
) : /* @__PURE__ */ f.createElement(
|
|
7342
|
-
|
|
7341
|
+
L,
|
|
7343
7342
|
{
|
|
7344
7343
|
id: "eligibility-modal.bullet-2",
|
|
7345
7344
|
defaultMessage: "Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>",
|
|
7346
|
-
values: { strong:
|
|
7345
|
+
values: { strong: Ke }
|
|
7347
7346
|
}
|
|
7348
|
-
))), /* @__PURE__ */ f.createElement("li", { className: Re.listItem }, /* @__PURE__ */ f.createElement("div", { className:
|
|
7349
|
-
|
|
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(
|
|
7348
|
+
L,
|
|
7350
7349
|
{
|
|
7351
7350
|
id: "eligibility-modal.p1x-bullet-3",
|
|
7352
7351
|
defaultMessage: "<strong>La validation </strong> de votre paiement est instantanée !",
|
|
7353
|
-
values: { strong:
|
|
7352
|
+
values: { strong: Ke }
|
|
7354
7353
|
}
|
|
7355
7354
|
) : /* @__PURE__ */ f.createElement(
|
|
7356
|
-
|
|
7355
|
+
L,
|
|
7357
7356
|
{
|
|
7358
7357
|
id: "eligibility-modal.bullet-3",
|
|
7359
7358
|
defaultMessage: "<strong>Gardez le contrôle</strong> en avançant ou reculant vos échéances à votre rythme.",
|
|
7360
|
-
values: { strong:
|
|
7359
|
+
values: { strong: Ke }
|
|
7361
7360
|
}
|
|
7362
7361
|
))))
|
|
7363
7362
|
)
|
|
@@ -7370,25 +7369,25 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7370
7369
|
"h2",
|
|
7371
7370
|
{
|
|
7372
7371
|
id: "modal-title",
|
|
7373
|
-
className:
|
|
7372
|
+
className: R(cm.title, X.title),
|
|
7374
7373
|
"data-testid": "modal-title-element"
|
|
7375
7374
|
},
|
|
7376
7375
|
e && /* @__PURE__ */ f.createElement(
|
|
7377
|
-
|
|
7376
|
+
L,
|
|
7378
7377
|
{
|
|
7379
7378
|
id: "eligibility-modal.title-deferred-plan",
|
|
7380
7379
|
defaultMessage: "Payez en plusieurs fois ou plus tard par carte bancaire avec Alma."
|
|
7381
7380
|
}
|
|
7382
7381
|
),
|
|
7383
7382
|
!e && t && /* @__PURE__ */ f.createElement(
|
|
7384
|
-
|
|
7383
|
+
L,
|
|
7385
7384
|
{
|
|
7386
7385
|
id: "eligibility-modal.title-pay-now",
|
|
7387
7386
|
defaultMessage: "Payez comptant par carte bancaire avec Alma."
|
|
7388
7387
|
}
|
|
7389
7388
|
),
|
|
7390
7389
|
!e && !t && /* @__PURE__ */ f.createElement(
|
|
7391
|
-
|
|
7390
|
+
L,
|
|
7392
7391
|
{
|
|
7393
7392
|
id: "eligibility-modal.title-normal",
|
|
7394
7393
|
defaultMessage: "Payez en plusieurs fois par carte bancaire avec Alma."
|
|
@@ -7402,15 +7401,15 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7402
7401
|
}, hm = ({ children: e, isSomePlanDeferred: t, cards: n, isCurrentPlanP1X: a }) => /* @__PURE__ */ f.createElement(
|
|
7403
7402
|
"div",
|
|
7404
7403
|
{
|
|
7405
|
-
className:
|
|
7404
|
+
className: R(ut.container, X.desktopModal),
|
|
7406
7405
|
"data-testid": "modal-container",
|
|
7407
7406
|
role: "dialog",
|
|
7408
7407
|
"aria-modal": "true",
|
|
7409
7408
|
"aria-labelledby": "modal-title"
|
|
7410
7409
|
},
|
|
7411
|
-
/* @__PURE__ */ f.createElement("aside", { className:
|
|
7412
|
-
/* @__PURE__ */ f.createElement("div", { className:
|
|
7413
|
-
), gm = "
|
|
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)
|
|
7412
|
+
), gm = "_noEligibility_1pcwf_1", ym = "_loader_1pcwf_9", _m = "_scheduleArea_1pcwf_16", vm = "_verticalLine_1pcwf_20", $t = {
|
|
7414
7413
|
noEligibility: gm,
|
|
7415
7414
|
loader: ym,
|
|
7416
7415
|
scheduleArea: _m,
|
|
@@ -7421,7 +7420,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7421
7420
|
}, xm = ({ children: e, isSomePlanDeferred: t, cards: n, isCurrentPlanP1X: a }) => /* @__PURE__ */ f.createElement(
|
|
7422
7421
|
"div",
|
|
7423
7422
|
{
|
|
7424
|
-
className:
|
|
7423
|
+
className: R(dr.container, X.mobileModal),
|
|
7425
7424
|
"data-testid": "modal-container",
|
|
7426
7425
|
role: "dialog",
|
|
7427
7426
|
"aria-modal": "true",
|
|
@@ -7439,7 +7438,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7439
7438
|
status: a,
|
|
7440
7439
|
cards: r
|
|
7441
7440
|
}) => {
|
|
7442
|
-
const [i, o] = Q(e || 0), l = Jl({ minWidth: io }) ? hm : xm, u = n.filter((g) => g.eligible), m = u[i], c =
|
|
7441
|
+
const [i, o] = Q(e || 0), l = Jl({ minWidth: io }) ? hm : xm, u = n.filter((g) => g.eligible), m = u[i], c = he(), d = n.some(
|
|
7443
7442
|
(g) => g.deferred_days > 0 || g.deferred_months > 0
|
|
7444
7443
|
), p = [
|
|
7445
7444
|
{
|
|
@@ -7447,7 +7446,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7447
7446
|
labelId: "skip-links.payment-plans",
|
|
7448
7447
|
defaultMessage: c.formatMessage({
|
|
7449
7448
|
id: "skip-links.payment-plans",
|
|
7450
|
-
defaultMessage: "
|
|
7449
|
+
defaultMessage: "Aller aux options de paiement"
|
|
7451
7450
|
})
|
|
7452
7451
|
},
|
|
7453
7452
|
{
|
|
@@ -7455,7 +7454,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7455
7454
|
labelId: "skip-links.payment-info",
|
|
7456
7455
|
defaultMessage: c.formatMessage({
|
|
7457
7456
|
id: "skip-links.payment-info",
|
|
7458
|
-
defaultMessage: "
|
|
7457
|
+
defaultMessage: "Aller aux informations de paiement"
|
|
7459
7458
|
})
|
|
7460
7459
|
},
|
|
7461
7460
|
{
|
|
@@ -7463,7 +7462,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7463
7462
|
labelId: "skip-links.payment-schedule",
|
|
7464
7463
|
defaultMessage: c.formatMessage({
|
|
7465
7464
|
id: "skip-links.payment-schedule",
|
|
7466
|
-
defaultMessage: "
|
|
7465
|
+
defaultMessage: "Aller au calendrier de paiement"
|
|
7467
7466
|
})
|
|
7468
7467
|
}
|
|
7469
7468
|
];
|
|
@@ -7487,9 +7486,9 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7487
7486
|
cards: r,
|
|
7488
7487
|
isCurrentPlanP1X: gr(m)
|
|
7489
7488
|
},
|
|
7490
|
-
a === ue.PENDING && /* @__PURE__ */ f.createElement("div", { className:
|
|
7491
|
-
a === ue.SUCCESS && u.length === 0 && /* @__PURE__ */ f.createElement("div", { className:
|
|
7492
|
-
|
|
7489
|
+
a === ue.PENDING && /* @__PURE__ */ f.createElement("div", { className: $t.loader, role: "status", "aria-live": "polite" }, /* @__PURE__ */ f.createElement(tu, null)),
|
|
7490
|
+
a === ue.SUCCESS && u.length === 0 && /* @__PURE__ */ f.createElement("div", { className: $t.noEligibility, role: "alert" }, /* @__PURE__ */ f.createElement(
|
|
7491
|
+
L,
|
|
7493
7492
|
{
|
|
7494
7493
|
id: "eligibility-modal.no-eligibility",
|
|
7495
7494
|
defaultMessage: "Oups, il semblerait que la simulation n'ait pas fonctionné."
|
|
@@ -7503,7 +7502,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7503
7502
|
currentPlanIndex: i,
|
|
7504
7503
|
setCurrentPlanIndex: o
|
|
7505
7504
|
}
|
|
7506
|
-
)), /* @__PURE__ */ f.createElement("section", { className:
|
|
7505
|
+
)), /* @__PURE__ */ f.createElement("section", { className: $t.scheduleArea, "aria-labelledby": "payment-schedule-title" }, /* @__PURE__ */ f.createElement("div", { className: $t.verticalLine }), /* @__PURE__ */ f.createElement(em, { id: "payment-schedule", currentPlan: m })))
|
|
7507
7506
|
)
|
|
7508
7507
|
);
|
|
7509
7508
|
}, Cm = ({
|
|
@@ -7532,19 +7531,19 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7532
7531
|
cards: o
|
|
7533
7532
|
}
|
|
7534
7533
|
);
|
|
7535
|
-
}, Sm = "
|
|
7534
|
+
}, Sm = "_loadingIndicator_n68kv_1", Am = "_line1_n68kv_8", Tm = "_line2_n68kv_15", cn = {
|
|
7536
7535
|
loadingIndicator: Sm,
|
|
7537
7536
|
line1: Am,
|
|
7538
7537
|
line2: Tm
|
|
7539
|
-
}, Im = ({ className: e }) => /* @__PURE__ */ f.createElement("div", { className:
|
|
7540
|
-
const [e, t] = Q(""), n =
|
|
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) => {
|
|
7541
7540
|
n.current && clearTimeout(n.current), t(i), n.current = setTimeout(() => {
|
|
7542
7541
|
t(""), n.current = null;
|
|
7543
7542
|
}, o);
|
|
7544
7543
|
}, []), r = _t(() => {
|
|
7545
7544
|
n.current && (clearTimeout(n.current), n.current = null), t("");
|
|
7546
7545
|
}, []);
|
|
7547
|
-
return
|
|
7546
|
+
return K(
|
|
7548
7547
|
() => () => {
|
|
7549
7548
|
n.current && clearTimeout(n.current);
|
|
7550
7549
|
},
|
|
@@ -7560,8 +7559,8 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7560
7559
|
eligiblePlansCount: n,
|
|
7561
7560
|
transitionDelay: a
|
|
7562
7561
|
}) => {
|
|
7563
|
-
const r =
|
|
7564
|
-
|
|
7562
|
+
const r = he(), { announce: i } = Qi();
|
|
7563
|
+
K(() => {
|
|
7565
7564
|
if (e === ue.SUCCESS && !t && n > 1 && // If transitionDelay is -1, animation is disabled, so no need to announce instructions
|
|
7566
7565
|
a !== -1) {
|
|
7567
7566
|
const s = r.formatMessage({
|
|
@@ -7575,7 +7574,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7575
7574
|
}, [e, t, n, r, i, a]);
|
|
7576
7575
|
}, wm = (e, t) => {
|
|
7577
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);
|
|
7578
|
-
return
|
|
7577
|
+
return K(() => {
|
|
7579
7578
|
let m, c = !0;
|
|
7580
7579
|
if (!(u === -1 || l))
|
|
7581
7580
|
return e.length !== 0 && (!e.includes(n) && r && a(e[0]), o === e.length + 1 && i(!1), m = setTimeout(() => {
|
|
@@ -7612,29 +7611,30 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7612
7611
|
);
|
|
7613
7612
|
return i !== -1 ? (a = i, !0) : !1;
|
|
7614
7613
|
}), a;
|
|
7615
|
-
},
|
|
7616
|
-
container: `${
|
|
7617
|
-
eligibilityLine: `${
|
|
7618
|
-
eligibilityOptions: `${
|
|
7619
|
-
notEligibleOption: `${
|
|
7620
|
-
paymentInfo: `${
|
|
7621
|
-
activeOption: `${
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7630
|
-
notEligible:
|
|
7614
|
+
}, $e = "alma-payment-plans", Le = {
|
|
7615
|
+
container: `${$e}-container`,
|
|
7616
|
+
eligibilityLine: `${$e}-eligibility-line`,
|
|
7617
|
+
eligibilityOptions: `${$e}-eligibility-options`,
|
|
7618
|
+
notEligibleOption: `${$e}-not-eligible-option`,
|
|
7619
|
+
paymentInfo: `${$e}-payment-info`,
|
|
7620
|
+
activeOption: `${$e}-active-option`,
|
|
7621
|
+
knowMoreAction: `${$e}-know-more-action`
|
|
7622
|
+
}, Om = "_widgetContainer_1e5ls_1", Pm = "_primaryContainer_1e5ls_13", Rm = "_paymentPlans_1e5ls_19", Lm = "_plan_1e5ls_28", Hm = "_planButton_1e5ls_44", Dm = "_monochrome_1e5ls_69", km = "_notEligible_1e5ls_75", Fm = "_active_1e5ls_89", Bm = "_hideBorder_1e5ls_104", Um = "_infoContainer_1e5ls_108", $m = "_info_1e5ls_108", Gm = "_announceText_1e5ls_123", zm = "_pending_1e5ls_144", Wm = "_clickable_1e5ls_148", jm = "_knowMore_1e5ls_161", Z = {
|
|
7623
|
+
widgetContainer: Om,
|
|
7624
|
+
primaryContainer: Pm,
|
|
7625
|
+
paymentPlans: Rm,
|
|
7626
|
+
plan: Lm,
|
|
7627
|
+
planButton: Hm,
|
|
7628
|
+
monochrome: Dm,
|
|
7629
|
+
notEligible: km,
|
|
7631
7630
|
active: Fm,
|
|
7632
|
-
hideBorder:
|
|
7631
|
+
hideBorder: Bm,
|
|
7632
|
+
infoContainer: Um,
|
|
7633
7633
|
info: $m,
|
|
7634
|
-
announceText:
|
|
7635
|
-
pending:
|
|
7634
|
+
announceText: Gm,
|
|
7635
|
+
pending: zm,
|
|
7636
7636
|
clickable: Wm,
|
|
7637
|
-
|
|
7637
|
+
knowMore: jm
|
|
7638
7638
|
}, Vm = 5500, qm = ({
|
|
7639
7639
|
apiData: e,
|
|
7640
7640
|
configPlans: t,
|
|
@@ -7649,187 +7649,219 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7649
7649
|
hideBorder: m = !1,
|
|
7650
7650
|
onModalClose: c
|
|
7651
7651
|
}) => {
|
|
7652
|
-
const d =
|
|
7652
|
+
const d = he(), [p, g] = Pi(
|
|
7653
7653
|
r,
|
|
7654
7654
|
e,
|
|
7655
7655
|
t,
|
|
7656
7656
|
s,
|
|
7657
7657
|
l
|
|
7658
|
-
),
|
|
7658
|
+
), v = De(
|
|
7659
7659
|
() => p.filter((O) => O.eligible),
|
|
7660
7660
|
[p]
|
|
7661
7661
|
), b = Nm({
|
|
7662
7662
|
eligibilityPlans: p,
|
|
7663
7663
|
suggestedPaymentPlan: i != null ? i : 0
|
|
7664
|
-
}),
|
|
7664
|
+
}), _ = i !== void 0, [x, E] = Q(!1), { announceText: N, announce: y } = Qi(), M = () => E(!0), z = (O) => {
|
|
7665
7665
|
E(!1), c == null || c(O);
|
|
7666
|
-
}, [
|
|
7666
|
+
}, [ge, F] = Q(!1), ee = De(
|
|
7667
7667
|
() => p.reduce(
|
|
7668
|
-
(O,
|
|
7668
|
+
(O, B, q) => B.eligible ? [...O, q] : O,
|
|
7669
7669
|
[]
|
|
7670
7670
|
),
|
|
7671
7671
|
[p]
|
|
7672
|
-
),
|
|
7673
|
-
|
|
7672
|
+
), Y = De(() => _ && !u ? -1 : u != null ? u : Vm, [u, _]), { current: U, onHover: we, onLeave: I } = wm(ee, Y), A = ke([]);
|
|
7673
|
+
K(() => {
|
|
7674
7674
|
A.current = A.current.slice(0, p.length);
|
|
7675
|
-
}, [p.length]),
|
|
7675
|
+
}, [p.length]), K(() => {
|
|
7676
7676
|
if (p[U] && g === ue.SUCCESS) {
|
|
7677
|
-
const O = p[U],
|
|
7677
|
+
const O = p[U], B = mr(O, d), q = d.formatMessage(
|
|
7678
7678
|
{
|
|
7679
7679
|
id: "accessibility.plan-selection-changed",
|
|
7680
7680
|
defaultMessage: "Plan sélectionné : {planDescription}"
|
|
7681
7681
|
},
|
|
7682
|
-
{ planDescription:
|
|
7682
|
+
{ planDescription: B }
|
|
7683
7683
|
);
|
|
7684
|
-
y(
|
|
7684
|
+
y(q, 1e3);
|
|
7685
7685
|
}
|
|
7686
|
-
}, [U, d, g, y]),
|
|
7687
|
-
g === ue.SUCCESS &&
|
|
7686
|
+
}, [U, d, g, y]), K(() => {
|
|
7687
|
+
g === ue.SUCCESS && _ && (we(b), I());
|
|
7688
7688
|
}, [g]), Mm({
|
|
7689
7689
|
status: g,
|
|
7690
|
-
hasUserInteracted:
|
|
7691
|
-
eligiblePlansCount:
|
|
7690
|
+
hasUserInteracted: ge,
|
|
7691
|
+
eligiblePlansCount: v.length,
|
|
7692
7692
|
transitionDelay: u
|
|
7693
7693
|
});
|
|
7694
7694
|
const W = (O) => {
|
|
7695
|
-
|
|
7695
|
+
F(!0), we(O);
|
|
7696
7696
|
}, h = () => {
|
|
7697
|
-
|
|
7698
|
-
}, S = (O,
|
|
7697
|
+
ge || I();
|
|
7698
|
+
}, S = (O, B) => {
|
|
7699
7699
|
var Pt;
|
|
7700
|
-
const
|
|
7701
|
-
if (
|
|
7702
|
-
let
|
|
7700
|
+
const q = ee.indexOf(B);
|
|
7701
|
+
if (q === -1) return;
|
|
7702
|
+
let me;
|
|
7703
7703
|
if (O === "next") {
|
|
7704
|
-
if (
|
|
7705
|
-
} else if (
|
|
7706
|
-
const te = ee[
|
|
7707
|
-
|
|
7708
|
-
},
|
|
7709
|
-
var
|
|
7710
|
-
const
|
|
7711
|
-
|
|
7704
|
+
if (me = q + 1, me >= ee.length) return;
|
|
7705
|
+
} else if (me = q - 1, me < 0) return;
|
|
7706
|
+
const te = ee[me];
|
|
7707
|
+
F(!0), we(te), (Pt = A.current[te]) == null || Pt.focus();
|
|
7708
|
+
}, J = (O) => {
|
|
7709
|
+
var q;
|
|
7710
|
+
const B = O === "first" ? ee[0] : ee[ee.length - 1];
|
|
7711
|
+
F(!0), we(B), (q = A.current[B]) == null || q.focus();
|
|
7712
7712
|
}, ne = (O) => {
|
|
7713
|
-
const
|
|
7714
|
-
return
|
|
7713
|
+
const B = ee.findIndex((q) => q === O);
|
|
7714
|
+
return B === -1 ? 0 : B;
|
|
7715
7715
|
};
|
|
7716
7716
|
if (g === ue.PENDING)
|
|
7717
|
-
return /* @__PURE__ */ f.createElement("div", { className:
|
|
7718
|
-
if (n &&
|
|
7717
|
+
return /* @__PURE__ */ f.createElement("div", { className: R(Z.widgetContainer, Z.pending) }, /* @__PURE__ */ f.createElement(Im, null));
|
|
7718
|
+
if (n && v.length === 0 || p.length === 0 || g === ue.FAILED)
|
|
7719
7719
|
return null;
|
|
7720
|
-
const
|
|
7721
|
-
O.preventDefault(),
|
|
7720
|
+
const V = (O) => {
|
|
7721
|
+
O.preventDefault(), v.length > 0 && M();
|
|
7722
7722
|
};
|
|
7723
7723
|
return /* @__PURE__ */ f.createElement(f.Fragment, null, /* @__PURE__ */ f.createElement(
|
|
7724
|
-
"
|
|
7724
|
+
"main",
|
|
7725
7725
|
{
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7726
|
+
role: "main",
|
|
7727
|
+
"aria-label": d.formatMessage({
|
|
7728
|
+
id: "accessibility.payment-widget.main.aria-label",
|
|
7729
|
+
defaultMessage: "Sélection des options de paiement Alma"
|
|
7730
|
+
}),
|
|
7731
|
+
className: R(
|
|
7732
|
+
Z.widgetContainer,
|
|
7732
7733
|
{
|
|
7733
|
-
[
|
|
7734
|
-
[
|
|
7735
|
-
[Y.hideBorder]: m,
|
|
7736
|
-
[Y.monochrome]: a
|
|
7734
|
+
[Z.hideBorder]: m,
|
|
7735
|
+
[Z.monochrome]: a
|
|
7737
7736
|
},
|
|
7738
|
-
|
|
7737
|
+
Le.container
|
|
7739
7738
|
),
|
|
7740
|
-
"data-testid": "widget-
|
|
7741
|
-
role: "button",
|
|
7742
|
-
tabIndex: 0,
|
|
7743
|
-
"aria-label": d.formatMessage({
|
|
7744
|
-
id: "accessibility.payment-widget.open-button.aria-label",
|
|
7745
|
-
defaultMessage: "Ouvrir les options de paiement Alma"
|
|
7746
|
-
}),
|
|
7747
|
-
"aria-description": _.length > 1 && !fe && u !== -1 ? d.formatMessage({
|
|
7748
|
-
id: "accessibility.payment-widget.animation-control-description",
|
|
7749
|
-
defaultMessage: "Animation automatique active. Survolez ou utilisez les flèches pour arrêter l'animation."
|
|
7750
|
-
}) : void 0
|
|
7739
|
+
"data-testid": "widget-container"
|
|
7751
7740
|
},
|
|
7752
|
-
/* @__PURE__ */ f.createElement(
|
|
7753
|
-
"
|
|
7741
|
+
/* @__PURE__ */ f.createElement(
|
|
7742
|
+
"section",
|
|
7754
7743
|
{
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
"aria-label": d.formatMessage({
|
|
7758
|
-
id: "accessibility.payment-options.radiogroup.aria-label",
|
|
7759
|
-
defaultMessage: "Options de paiement disponibles"
|
|
7760
|
-
})
|
|
7744
|
+
"aria-labelledby": "payment-plans-title",
|
|
7745
|
+
className: R(Z.primaryContainer, Le.eligibilityLine)
|
|
7761
7746
|
},
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
7747
|
+
/* @__PURE__ */ f.createElement("h2", { id: "payment-plans-title", className: "sr-only" }, d.formatMessage({
|
|
7748
|
+
id: "accessibility.payment-plans.section-title",
|
|
7749
|
+
defaultMessage: "Options de paiement disponibles"
|
|
7750
|
+
})),
|
|
7751
|
+
/* @__PURE__ */ f.createElement(
|
|
7752
|
+
"button",
|
|
7753
|
+
{
|
|
7754
|
+
type: "button",
|
|
7755
|
+
onClick: V,
|
|
7756
|
+
onKeyDown: (O) => {
|
|
7757
|
+
(O.key === "Enter" || O.key === " ") && (O.preventDefault(), V(O));
|
|
7758
|
+
},
|
|
7759
|
+
className: R(
|
|
7760
|
+
Z.knowMore,
|
|
7761
|
+
Z.clickable,
|
|
7762
|
+
{ [Z.monochrome]: a },
|
|
7763
|
+
Le.knowMoreAction
|
|
7764
|
+
),
|
|
7765
|
+
"aria-label": d.formatMessage({
|
|
7766
|
+
id: "accessibility.payment-widget.open-button.aria-label",
|
|
7767
|
+
defaultMessage: "Ouvrir les options de paiement Alma pour en savoir plus"
|
|
7768
|
+
}),
|
|
7769
|
+
"aria-haspopup": "dialog",
|
|
7770
|
+
"aria-describedby": "payment-info-text"
|
|
7771
|
+
},
|
|
7772
|
+
/* @__PURE__ */ f.createElement(
|
|
7773
|
+
aa,
|
|
7766
7774
|
{
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7775
|
+
"data-testid": "Alma-Logo",
|
|
7776
|
+
className: Z.logo,
|
|
7777
|
+
color: a ? "var(--off-black)" : void 0
|
|
7778
|
+
}
|
|
7779
|
+
)
|
|
7780
|
+
),
|
|
7781
|
+
/* @__PURE__ */ f.createElement(
|
|
7782
|
+
"div",
|
|
7783
|
+
{
|
|
7784
|
+
className: R(Z.paymentPlans, Le.eligibilityOptions),
|
|
7785
|
+
role: "listbox",
|
|
7786
|
+
"aria-label": d.formatMessage({
|
|
7787
|
+
id: "accessibility.payment-options.listbox.aria-label",
|
|
7788
|
+
defaultMessage: "Options de paiement disponibles"
|
|
7789
|
+
})
|
|
7790
|
+
},
|
|
7791
|
+
p.map((O, B) => {
|
|
7792
|
+
const q = B === U, me = O.eligible;
|
|
7793
|
+
return /* @__PURE__ */ f.createElement(
|
|
7794
|
+
"button",
|
|
7795
|
+
{
|
|
7796
|
+
type: "button",
|
|
7797
|
+
key: `p${O.installments_count}x-d+${O.deferred_days}-m+${O.deferred_months}`,
|
|
7798
|
+
onMouseEnter: () => W(B),
|
|
7799
|
+
onTouchStart: () => W(B),
|
|
7800
|
+
onMouseLeave: h,
|
|
7801
|
+
onBlur: h,
|
|
7802
|
+
onTouchEnd: h,
|
|
7803
|
+
onFocus: me ? () => W(B) : void 0,
|
|
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")));
|
|
7794
7806
|
},
|
|
7795
|
-
{
|
|
7796
|
-
|
|
7807
|
+
onClick: (te) => {
|
|
7808
|
+
te.stopPropagation(), me && (we(B), v.length > 0 && M());
|
|
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
|
|
7814
|
+
}),
|
|
7815
|
+
role: "option",
|
|
7816
|
+
"aria-selected": q,
|
|
7817
|
+
"aria-describedby": "payment-info-text",
|
|
7818
|
+
"aria-label": d.formatMessage(
|
|
7819
|
+
{
|
|
7820
|
+
id: "accessibility.payment-plan.option.aria-label",
|
|
7821
|
+
defaultMessage: "Option de paiement {planDescription}"
|
|
7822
|
+
},
|
|
7823
|
+
{
|
|
7824
|
+
planDescription: mr(O, d)
|
|
7825
|
+
}
|
|
7826
|
+
),
|
|
7827
|
+
"aria-disabled": !me,
|
|
7828
|
+
tabIndex: me ? 0 : -1,
|
|
7829
|
+
ref: (te) => {
|
|
7830
|
+
A.current[B] = te;
|
|
7797
7831
|
}
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
)),
|
|
7809
|
-
/* @__PURE__ */ f.createElement(
|
|
7832
|
+
},
|
|
7833
|
+
Zi(O)
|
|
7834
|
+
);
|
|
7835
|
+
})
|
|
7836
|
+
)
|
|
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({
|
|
7839
|
+
id: "accessibility.payment-info.section-title",
|
|
7840
|
+
defaultMessage: "Informations sur le plan de paiement sélectionné"
|
|
7841
|
+
})), /* @__PURE__ */ f.createElement(
|
|
7810
7842
|
"div",
|
|
7811
7843
|
{
|
|
7812
|
-
className:
|
|
7813
|
-
|
|
7844
|
+
className: R(
|
|
7845
|
+
Z.info,
|
|
7814
7846
|
{
|
|
7815
|
-
[
|
|
7847
|
+
[R(Z.notEligible, Le.notEligibleOption)]: p[U] && !p[U].eligible
|
|
7816
7848
|
},
|
|
7817
|
-
|
|
7849
|
+
Le.paymentInfo
|
|
7818
7850
|
),
|
|
7819
7851
|
id: "payment-info-text"
|
|
7820
7852
|
},
|
|
7821
7853
|
p.length !== 0 && Pc(p[U])
|
|
7822
|
-
)
|
|
7854
|
+
))
|
|
7823
7855
|
), x && /* @__PURE__ */ f.createElement(
|
|
7824
7856
|
Yi,
|
|
7825
7857
|
{
|
|
7826
7858
|
initialPlanIndex: ne(U),
|
|
7827
|
-
onClose:
|
|
7828
|
-
eligibilityPlans:
|
|
7859
|
+
onClose: z,
|
|
7860
|
+
eligibilityPlans: v,
|
|
7829
7861
|
status: g,
|
|
7830
7862
|
cards: o
|
|
7831
7863
|
}
|
|
7832
|
-
), /* @__PURE__ */ f.createElement("div", { role: "alert", "aria-live": "assertive", className:
|
|
7864
|
+
), /* @__PURE__ */ f.createElement("div", { role: "alert", "aria-live": "assertive", className: Z.announceText }, N));
|
|
7833
7865
|
}, Je = /* @__PURE__ */ new Map(), Zm = (e, t, n) => {
|
|
7834
7866
|
var r;
|
|
7835
7867
|
const a = document.querySelector(n.container);
|
|
@@ -7849,12 +7881,12 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7849
7881
|
customerBillingCountry: d,
|
|
7850
7882
|
customerShippingCountry: p,
|
|
7851
7883
|
locale: g = Ae.en,
|
|
7852
|
-
cards:
|
|
7884
|
+
cards: v,
|
|
7853
7885
|
onModalClose: b
|
|
7854
7886
|
} = n;
|
|
7855
7887
|
if (a) {
|
|
7856
|
-
const
|
|
7857
|
-
|
|
7888
|
+
const _ = wa(a);
|
|
7889
|
+
_.render(
|
|
7858
7890
|
/* @__PURE__ */ f.createElement(ja, { locale: g }, /* @__PURE__ */ f.createElement(
|
|
7859
7891
|
qm,
|
|
7860
7892
|
{
|
|
@@ -7864,7 +7896,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7864
7896
|
monochrome: m,
|
|
7865
7897
|
purchaseAmount: i,
|
|
7866
7898
|
suggestedPaymentPlan: c,
|
|
7867
|
-
cards:
|
|
7899
|
+
cards: v,
|
|
7868
7900
|
customerBillingCountry: d,
|
|
7869
7901
|
customerShippingCountry: p,
|
|
7870
7902
|
transitionDelay: s,
|
|
@@ -7872,7 +7904,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7872
7904
|
onModalClose: b
|
|
7873
7905
|
}
|
|
7874
7906
|
))
|
|
7875
|
-
), Je.set(a,
|
|
7907
|
+
), Je.set(a, _);
|
|
7876
7908
|
}
|
|
7877
7909
|
}
|
|
7878
7910
|
if (t === pt.Modal) {
|
|
@@ -7885,14 +7917,14 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7885
7917
|
customerShippingCountry: m,
|
|
7886
7918
|
cards: c,
|
|
7887
7919
|
onClose: d
|
|
7888
|
-
} = n, p = (
|
|
7920
|
+
} = n, p = (v) => {
|
|
7889
7921
|
if (!a) return;
|
|
7890
7922
|
const b = Je.get(a);
|
|
7891
|
-
b && (b.unmount(), Je.delete(a)), d == null || d(
|
|
7923
|
+
b && (b.unmount(), Je.delete(a)), d == null || d(v);
|
|
7892
7924
|
}, g = () => {
|
|
7893
7925
|
if (a) {
|
|
7894
|
-
const
|
|
7895
|
-
|
|
7926
|
+
const v = wa(a);
|
|
7927
|
+
v.render(
|
|
7896
7928
|
/* @__PURE__ */ f.createElement(ja, { locale: l }, /* @__PURE__ */ f.createElement(
|
|
7897
7929
|
Cm,
|
|
7898
7930
|
{
|
|
@@ -7905,7 +7937,7 @@ const wc = "_openModalInfo_bndtu_1", Nc = {
|
|
|
7905
7937
|
cards: c
|
|
7906
7938
|
}
|
|
7907
7939
|
))
|
|
7908
|
-
), Je.set(a,
|
|
7940
|
+
), Je.set(a, v);
|
|
7909
7941
|
}
|
|
7910
7942
|
};
|
|
7911
7943
|
return i && ((r = document.querySelector(i)) == null || r.addEventListener("click", g, !1)), {
|
|
@@ -7925,7 +7957,7 @@ var Km = /* @__PURE__ */ ((e) => (e.LIVE = "https://api.getalma.eu", e.TEST = "h
|
|
|
7925
7957
|
})(pr || (pr = {}));
|
|
7926
7958
|
var hr;
|
|
7927
7959
|
((e) => {
|
|
7928
|
-
e.priceToCents = ao, e.priceFromCents =
|
|
7960
|
+
e.priceToCents = ao, e.priceFromCents = fe, e.formatCents = ro;
|
|
7929
7961
|
})(hr || (hr = {}));
|
|
7930
7962
|
export {
|
|
7931
7963
|
Km as ApiMode,
|