@alma/widgets 4.4.1 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/widgets-wc.umd.js +13 -13
- package/dist/widgets-wc.umd.js.map +0 -1
- package/dist/widgets.css +1 -1
- package/dist/widgets.js +216 -212
- package/dist/widgets.js.map +1 -1
- package/dist/widgets.min.css +1 -1
- package/dist/widgets.umd.js +13 -13
- package/dist/widgets.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/widgets.js
CHANGED
|
@@ -91,29 +91,29 @@ const Yi = 800, ba = (e) => (e == null ? void 0 : e.installments_count) === 1 &&
|
|
|
91
91
|
f.prototype.toString = f.prototype.toLocaleString = function() {
|
|
92
92
|
return this.value;
|
|
93
93
|
}, f.prototype.add = function() {
|
|
94
|
-
e: for (var h = 0, y = arguments.length, v = "",
|
|
94
|
+
e: for (var h = 0, y = arguments.length, v = "", b = this[" uCL"], x = b[" uCLp"]; h !== y; ++h) {
|
|
95
95
|
v = `${arguments[h]}`, r("add", v);
|
|
96
|
-
for (var
|
|
97
|
-
if (this[
|
|
98
|
-
_ += ` ${this[
|
|
96
|
+
for (var E = 0, M = x.length, _ = v; E !== M; ++E) {
|
|
97
|
+
if (this[E] === v) continue e;
|
|
98
|
+
_ += ` ${this[E]}`;
|
|
99
99
|
}
|
|
100
100
|
this[M] = v, x.length += 1, x.value = _;
|
|
101
101
|
}
|
|
102
|
-
m = 1,
|
|
102
|
+
m = 1, b.className = x.value, m = 0;
|
|
103
103
|
}, f.prototype.remove = function() {
|
|
104
|
-
for (var h = 0, y = arguments.length, v = "",
|
|
104
|
+
for (var h = 0, y = arguments.length, v = "", b = this[" uCL"], x = b[" uCLp"]; h !== y; ++h) {
|
|
105
105
|
v = `${arguments[h]}`, r("remove", v);
|
|
106
|
-
for (var
|
|
107
|
-
T ? this[
|
|
106
|
+
for (var E = 0, M = x.length, _ = "", T = 0; E !== M; ++E)
|
|
107
|
+
T ? this[E - 1] = this[E] : this[E] !== v ? _ += `${this[E]} ` : T = 1;
|
|
108
108
|
T && (delete this[M], x.length -= 1, x.value = _);
|
|
109
109
|
}
|
|
110
|
-
m = 1,
|
|
110
|
+
m = 1, b.className = x.value, m = 0;
|
|
111
111
|
}, a.DOMTokenList = f;
|
|
112
112
|
function l() {
|
|
113
113
|
const h = a.event, y = h.propertyName;
|
|
114
114
|
if (!m && (y === "className" || y === "classList" && !u)) {
|
|
115
|
-
const
|
|
116
|
-
e: for (var v = 0,
|
|
115
|
+
const E = h.srcElement, M = E[" uCLp"], _ = `${E[y]}`, T = _.trim().split(t), G = E[y === "classList" ? " uCL" : "classList"], K = M.length;
|
|
116
|
+
e: for (var v = 0, b = M.length = T.length, x = 0; v !== b; ++v) {
|
|
117
117
|
for (let $ = 0; $ !== v; ++$)
|
|
118
118
|
if (T[$] === T[v]) {
|
|
119
119
|
x++;
|
|
@@ -121,9 +121,9 @@ const Yi = 800, ba = (e) => (e == null ? void 0 : e.installments_count) === 1 &&
|
|
|
121
121
|
}
|
|
122
122
|
G[v - x] = T[v];
|
|
123
123
|
}
|
|
124
|
-
for (let $ =
|
|
124
|
+
for (let $ = b - x; $ < K; ++$) delete G[$];
|
|
125
125
|
if (y !== "classList") return;
|
|
126
|
-
m = 1,
|
|
126
|
+
m = 1, E.classList = G, E.className = _, m = 0, G.length = T.length - x;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
function p(h) {
|
|
@@ -136,20 +136,20 @@ const Yi = 800, ba = (e) => (e == null ? void 0 : e.installments_count) === 1 &&
|
|
|
136
136
|
} finally {
|
|
137
137
|
c = 0;
|
|
138
138
|
}
|
|
139
|
-
const v = y.prototype,
|
|
140
|
-
e: for (var x = h.className.trim().split(t),
|
|
141
|
-
for (let T = 0; T !==
|
|
142
|
-
if (x[T] === x[
|
|
139
|
+
const v = y.prototype, b = new y();
|
|
140
|
+
e: for (var x = h.className.trim().split(t), E = 0, M = x.length, _ = 0; E !== M; ++E) {
|
|
141
|
+
for (let T = 0; T !== E; ++T)
|
|
142
|
+
if (x[T] === x[E]) {
|
|
143
143
|
_++;
|
|
144
144
|
continue e;
|
|
145
145
|
}
|
|
146
|
-
this[
|
|
146
|
+
this[E - _] = x[E];
|
|
147
147
|
}
|
|
148
148
|
v.length = M - _, v.value = h.className, v[" uCL"] = h, u ? (u(h, "classList", {
|
|
149
149
|
// IE8 & IE9 allow defineProperty on the DOM
|
|
150
150
|
enumerable: 1,
|
|
151
151
|
get() {
|
|
152
|
-
return
|
|
152
|
+
return b;
|
|
153
153
|
},
|
|
154
154
|
configurable: 0,
|
|
155
155
|
set(T) {
|
|
@@ -161,9 +161,9 @@ const Yi = 800, ba = (e) => (e == null ? void 0 : e.installments_count) === 1 &&
|
|
|
161
161
|
w++;
|
|
162
162
|
continue e;
|
|
163
163
|
}
|
|
164
|
-
|
|
164
|
+
b[$ - w] = G[$];
|
|
165
165
|
}
|
|
166
|
-
for (let A = Z - w; A < K; ++A) delete
|
|
166
|
+
for (let A = Z - w; A < K; ++A) delete b[A];
|
|
167
167
|
}
|
|
168
168
|
}), u(h, " uCLp", {
|
|
169
169
|
// for accessing the hidden prototype
|
|
@@ -176,7 +176,7 @@ const Yi = 800, ba = (e) => (e == null ? void 0 : e.installments_count) === 1 &&
|
|
|
176
176
|
configurable: 0,
|
|
177
177
|
writeable: 0,
|
|
178
178
|
value: h
|
|
179
|
-
})) : (h.classList =
|
|
179
|
+
})) : (h.classList = b, h[" uCL"] = b, h[" uCLp"] = y.prototype), h.attachEvent("onpropertychange", l);
|
|
180
180
|
}
|
|
181
181
|
try {
|
|
182
182
|
a.Object.defineProperty(a.Element.prototype, "classList", {
|
|
@@ -271,15 +271,15 @@ function me(e) {
|
|
|
271
271
|
function Ce(e, t) {
|
|
272
272
|
this.props = e, this.context = t;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
if (t == null) return e.__ ?
|
|
274
|
+
function We(e, t) {
|
|
275
|
+
if (t == null) return e.__ ? We(e.__, e.__i + 1) : null;
|
|
276
276
|
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
|
|
277
|
-
return typeof e.type == "function" ?
|
|
277
|
+
return typeof e.type == "function" ? We(e) : null;
|
|
278
278
|
}
|
|
279
279
|
function to(e) {
|
|
280
280
|
if (e.__P && e.__d) {
|
|
281
281
|
var t = e.__v, n = t.__e, r = [], a = [], i = Me({}, t);
|
|
282
|
-
i.__v = t.__v + 1, O.vnode && O.vnode(i), Rn(e.__P, i, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n == null ?
|
|
282
|
+
i.__v = t.__v + 1, O.vnode && O.vnode(i), Rn(e.__P, i, t, e.__n, e.__P.namespaceURI, 32 & t.__u ? [n] : null, r, n == null ? We(t) : n, !!(32 & t.__u), a), i.__v = t.__v, i.__.__k[i.__i] = i, Oa(r, i, a), t.__e = t.__ = null, i.__e != n && Ia(i);
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
function Ia(e) {
|
|
@@ -298,23 +298,23 @@ function $t() {
|
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
function Ma(e, t, n, r, a, i, s, o, u, c, m) {
|
|
301
|
-
var f, l, p, h, y, v,
|
|
302
|
-
for (u = no(n, t,
|
|
301
|
+
var f, l, p, h, y, v, b = r && r.__k || Ut, x = t.length;
|
|
302
|
+
for (u = no(n, t, b, u, x), f = 0; f < x; f++) (p = n.__k[f]) != null && (l = p.__i != -1 && b[p.__i] || Bt, p.__i = f, v = Rn(e, p, l, a, i, s, o, u, c, m), h = p.__e, p.ref && l.ref != p.ref && (l.ref && Ln(l.ref, null, p), m.push(p.ref, p.__c || h, p)), y == null && h != null && (y = h), 4 & p.__u ? (u = wa(p, u, e), l.__e && (l.__e = null)) : typeof p.type == "function" && v !== void 0 ? u = v : h && (u = h.nextSibling), p.__u &= -7);
|
|
303
303
|
return n.__e = y, u;
|
|
304
304
|
}
|
|
305
305
|
function no(e, t, n, r, a) {
|
|
306
306
|
var i, s, o, u, c, m = n.length, f = m, l = 0;
|
|
307
307
|
for (e.__k = new Array(a), i = 0; i < a; i++) (s = t[i]) != null && typeof s != "boolean" && typeof s != "function" ? (typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? s = e.__k[i] = st(null, s, null, null, null) : ht(s) ? s = e.__k[i] = st(me, { children: s }, null, null, null) : s.constructor === void 0 && s.__b > 0 ? s = e.__k[i] = st(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : e.__k[i] = s, u = i + l, s.__ = e, s.__b = e.__b + 1, o = null, (c = s.__i = ro(s, n, u, f)) != -1 && (f--, (o = n[c]) && (o.__u |= 2)), o == null || o.__v == null ? (c == -1 && (a > m ? l-- : a < m && l++), typeof s.type != "function" && (s.__u |= 4)) : c != u && (c == u - 1 ? l-- : c == u + 1 ? l++ : (c > u ? l-- : l++, s.__u |= 4))) : e.__k[i] = null;
|
|
308
|
-
if (f) for (i = 0; i < m; i++) (o = n[i]) != null && (2 & o.__u) == 0 && (o.__e == r && (r =
|
|
308
|
+
if (f) for (i = 0; i < m; i++) (o = n[i]) != null && (2 & o.__u) == 0 && (o.__e == r && (r = We(o)), Ra(o, o));
|
|
309
309
|
return r;
|
|
310
310
|
}
|
|
311
|
-
function wa(e, t, n
|
|
312
|
-
var
|
|
311
|
+
function wa(e, t, n) {
|
|
312
|
+
var r, a;
|
|
313
313
|
if (typeof e.type == "function") {
|
|
314
|
-
for (
|
|
314
|
+
for (r = e.__k, a = 0; r && a < r.length; a++) r[a] && (r[a].__ = e, t = wa(r[a], t, n));
|
|
315
315
|
return t;
|
|
316
316
|
}
|
|
317
|
-
e.__e != t && (
|
|
317
|
+
e.__e != t && (t && e.type && !t.parentNode && (t = We(e)), t = n.insertBefore(e.__e, t || null));
|
|
318
318
|
do
|
|
319
319
|
t = t && t.nextSibling;
|
|
320
320
|
while (t != null && t.nodeType == 8);
|
|
@@ -365,29 +365,29 @@ function lr(e) {
|
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
367
|
function Rn(e, t, n, r, a, i, s, o, u, c) {
|
|
368
|
-
var m, f, l, p, h, y, v,
|
|
368
|
+
var m, f, l, p, h, y, v, b, x, E, M, _, T, G, K, $, Z = t.type;
|
|
369
369
|
if (t.constructor !== void 0) return null;
|
|
370
370
|
128 & n.__u && (u = !!(32 & n.__u), i = [o = t.__e = n.__e]), (m = O.__b) && m(t);
|
|
371
371
|
e: if (typeof Z == "function") {
|
|
372
372
|
f = s.length;
|
|
373
373
|
try {
|
|
374
|
-
if (x = t.props,
|
|
374
|
+
if (x = t.props, E = Z.prototype && Z.prototype.render, M = (m = Z.contextType) && r[m.__c], _ = m ? M ? M.props.value : m.__ : r, n.__c ? b = (l = t.__c = n.__c).__ = l.__E : (E ? t.__c = l = new Z(x, _) : (t.__c = l = new Ce(x, _), l.constructor = Z, l.render = io), M && M.sub(l), l.state || (l.state = {}), l.__n = r, p = l.__d = !0, l.__h = [], l._sb = []), E && l.__s == null && (l.__s = l.state), E && Z.getDerivedStateFromProps != null && (l.__s == l.state && (l.__s = Me({}, l.__s)), Me(l.__s, Z.getDerivedStateFromProps(x, l.__s))), h = l.props, y = l.state, l.__v = t, p) E && Z.getDerivedStateFromProps == null && l.componentWillMount != null && l.componentWillMount(), E && l.componentDidMount != null && l.__h.push(l.componentDidMount);
|
|
375
375
|
else {
|
|
376
|
-
if (
|
|
376
|
+
if (E && Z.getDerivedStateFromProps == null && x !== h && l.componentWillReceiveProps != null && l.componentWillReceiveProps(x, _), t.__v == n.__v || !l.__e && l.shouldComponentUpdate != null && l.shouldComponentUpdate(x, l.__s, _) === !1) {
|
|
377
377
|
t.__v != n.__v && (l.props = x, l.state = l.__s, l.__d = !1), t.__e = n.__e, t.__k = n.__k, t.__k.some(function(w) {
|
|
378
378
|
w && (w.__ = t);
|
|
379
|
-
}), Ut.push.apply(l.__h, l._sb), l._sb = [], l.__h.length && s.push(l);
|
|
379
|
+
}), Ut.push.apply(l.__h, l._sb), l._sb = [], l.__h.length && s.push(l), o = We(n);
|
|
380
380
|
break e;
|
|
381
381
|
}
|
|
382
|
-
l.componentWillUpdate != null && l.componentWillUpdate(x, l.__s, _),
|
|
382
|
+
l.componentWillUpdate != null && l.componentWillUpdate(x, l.__s, _), E && l.componentDidUpdate != null && l.__h.push(function() {
|
|
383
383
|
l.componentDidUpdate(h, y, v);
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
|
-
if (l.context = _, l.props = x, l.__P = e, l.__e = !1, T = O.__r, G = 0,
|
|
386
|
+
if (l.context = _, l.props = x, l.__P = e, l.__e = !1, T = O.__r, G = 0, E) l.state = l.__s, l.__d = !1, T && T(t), m = l.render(l.props, l.state, l.context), Ut.push.apply(l.__h, l._sb), l._sb = [];
|
|
387
387
|
else do
|
|
388
388
|
l.__d = !1, T && T(t), m = l.render(l.props, l.state, l.context), l.state = l.__s;
|
|
389
389
|
while (l.__d && ++G < 25);
|
|
390
|
-
l.state = l.__s, l.getChildContext != null && (r = Me(Me({}, r), l.getChildContext())),
|
|
390
|
+
l.state = l.__s, l.getChildContext != null && (r = Me(Me({}, r), l.getChildContext())), E && !p && l.getSnapshotBeforeUpdate != null && (v = l.getSnapshotBeforeUpdate(h, y)), K = m != null && m.type === me && m.key == null ? Pa(m.props.children) : m, o = Ma(e, ht(K) ? K : [K], t, n, r, a, i, s, o, u, c), l.base = t.__e, t.__u &= -161, l.__h.length && s.push(l), b && (l.__E = l.__ = null);
|
|
391
391
|
} catch (w) {
|
|
392
392
|
if (s.length = f, t.__v = null, u || i != null) {
|
|
393
393
|
if (w.then) {
|
|
@@ -419,7 +419,7 @@ function Pa(e) {
|
|
|
419
419
|
return typeof e != "object" || e == null || e.__b > 0 ? e : ht(e) ? e.map(Pa) : e.constructor !== void 0 ? null : Me({}, e);
|
|
420
420
|
}
|
|
421
421
|
function ao(e, t, n, r, a, i, s, o, u) {
|
|
422
|
-
var c, m, f, l, p, h, y, v = n.props || Bt,
|
|
422
|
+
var c, m, f, l, p, h, y, v = n.props || Bt, b = t.props, x = t.type;
|
|
423
423
|
if (x == "svg" ? a = "http://www.w3.org/2000/svg" : x == "math" ? a = "http://www.w3.org/1998/Math/MathML" : a || (a = "http://www.w3.org/1999/xhtml"), i != null) {
|
|
424
424
|
for (c = 0; c < i.length; c++) if ((p = i[c]) && "setAttribute" in p == !!x && (x ? p.localName == x : p.nodeType == 3)) {
|
|
425
425
|
e = p, i[c] = null;
|
|
@@ -427,16 +427,16 @@ function ao(e, t, n, r, a, i, s, o, u) {
|
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
if (e == null) {
|
|
430
|
-
if (x == null) return document.createTextNode(
|
|
431
|
-
e = document.createElementNS(a, x,
|
|
430
|
+
if (x == null) return document.createTextNode(b);
|
|
431
|
+
e = document.createElementNS(a, x, b.is && b), o && (O.__m && O.__m(t, i), o = !1), i = null;
|
|
432
432
|
}
|
|
433
|
-
if (x == null) v ===
|
|
433
|
+
if (x == null) v === b || o && e.data == b || (e.data = b);
|
|
434
434
|
else {
|
|
435
|
-
if (i = x == "textarea" &&
|
|
436
|
-
for (c in v) p = v[c], c == "dangerouslySetInnerHTML" ? f = p : c == "children" || c in
|
|
437
|
-
for (c in
|
|
435
|
+
if (i = x == "textarea" && b.defaultValue != null ? null : i && pt.call(e.childNodes), !o && i != null) for (v = {}, c = 0; c < e.attributes.length; c++) v[(p = e.attributes[c]).name] = p.value;
|
|
436
|
+
for (c in v) p = v[c], c == "dangerouslySetInnerHTML" ? f = p : c == "children" || c in b || c == "value" && "defaultValue" in b || c == "checked" && "defaultChecked" in b || At(e, c, null, p, a);
|
|
437
|
+
for (c in b) p = b[c], c == "children" ? l = p : c == "dangerouslySetInnerHTML" ? m = p : c == "value" ? h = p : c == "checked" ? y = p : o && typeof p != "function" || v[c] === p || At(e, c, p, v[c], a);
|
|
438
438
|
if (m) o || f && (m.__html == f.__html || m.__html == e.innerHTML) || (e.innerHTML = m.__html), t.__k = [];
|
|
439
|
-
else if (f && (e.innerHTML = ""), Ma(t.type == "template" ? e.content : e, ht(l) ? l : [l], t, n, r, x == "foreignObject" ? "http://www.w3.org/1999/xhtml" : a, i, s, i ? i[0] : n.__k &&
|
|
439
|
+
else if (f && (e.innerHTML = ""), Ma(t.type == "template" ? e.content : e, ht(l) ? l : [l], t, n, r, x == "foreignObject" ? "http://www.w3.org/1999/xhtml" : a, i, s, i ? i[0] : n.__k && We(n, 0), o, u), i != null) for (c = i.length; c--; ) Pn(i[c]);
|
|
440
440
|
o && x != "textarea" || (c = "value", x == "progress" && h == null ? e.removeAttribute("value") : h != null && (h !== e[c] || x == "progress" && !h || x == "option" && h != v[c]) && At(e, c, h, v[c], a), c = "checked", y != null && y != e[c] && At(e, c, y, v[c], a));
|
|
441
441
|
}
|
|
442
442
|
return e;
|
|
@@ -518,7 +518,7 @@ pt = Ut.slice, O = { __e: function(e, t, n, r) {
|
|
|
518
518
|
return e.__v.__b - t.__v.__b;
|
|
519
519
|
}, $t.__r = 0, qt = Math.random().toString(8), Dt = "__d" + qt, ot = "__a" + qt, Sa = /(PointerCapture)$|Capture$/i, On = 0, pn = lr(!1), hn = lr(!0), Aa = 0;
|
|
520
520
|
var Pe, j, Vt, ur, Ye = 0, Ha = [], X = O, cr = X.__b, mr = X.__r, fr = X.diffed, dr = X.__c, pr = X.unmount, hr = X.__;
|
|
521
|
-
function
|
|
521
|
+
function qe(e, t) {
|
|
522
522
|
X.__h && X.__h(j, e, Ye || t), Ye = 0;
|
|
523
523
|
var n = j.__H || (j.__H = { __: [], __h: [] });
|
|
524
524
|
return e >= n.__.length && n.__.push({}), n.__[e];
|
|
@@ -527,7 +527,7 @@ function te(e) {
|
|
|
527
527
|
return Ye = 1, Gt(Da, e);
|
|
528
528
|
}
|
|
529
529
|
function Gt(e, t, n) {
|
|
530
|
-
var r =
|
|
530
|
+
var r = qe(Pe++, 2);
|
|
531
531
|
if (r.t = e, !r.__c && (r.__ = [n ? n(t) : Da(void 0, t), function(o) {
|
|
532
532
|
var u = r.__N ? r.__N[0] : r.__[0], c = r.t(u, o);
|
|
533
533
|
u !== c && (r.__N = [c, r.__[1]], r.__c.setState({}));
|
|
@@ -560,11 +560,11 @@ function Gt(e, t, n) {
|
|
|
560
560
|
return r.__N || r.__;
|
|
561
561
|
}
|
|
562
562
|
function ee(e, t) {
|
|
563
|
-
var n =
|
|
563
|
+
var n = qe(Pe++, 3);
|
|
564
564
|
!X.__s && Fn(n.__H, t) && (n.__ = e, n.u = t, j.__H.__h.push(n));
|
|
565
565
|
}
|
|
566
566
|
function nt(e, t) {
|
|
567
|
-
var n =
|
|
567
|
+
var n = qe(Pe++, 4);
|
|
568
568
|
!X.__s && Fn(n.__H, t) && (n.__ = e, n.u = t, j.__h.push(n));
|
|
569
569
|
}
|
|
570
570
|
function Fe(e) {
|
|
@@ -586,7 +586,7 @@ function Hn(e, t, n) {
|
|
|
586
586
|
}, n == null ? n : n.concat(e));
|
|
587
587
|
}
|
|
588
588
|
function Ne(e, t) {
|
|
589
|
-
var n =
|
|
589
|
+
var n = qe(Pe++, 7);
|
|
590
590
|
return Fn(n.__H, t) && (n.__ = e(), n.__H = t, n.__h = e), n.__;
|
|
591
591
|
}
|
|
592
592
|
function ft(e, t) {
|
|
@@ -595,14 +595,14 @@ function ft(e, t) {
|
|
|
595
595
|
}, t);
|
|
596
596
|
}
|
|
597
597
|
function gt(e) {
|
|
598
|
-
var t = j.context[e.__c], n =
|
|
598
|
+
var t = j.context[e.__c], n = qe(Pe++, 9);
|
|
599
599
|
return n.c = e, t ? (n.__ == null && (n.__ = !0, t.sub(j)), t.props.value) : e.__;
|
|
600
600
|
}
|
|
601
601
|
function Dn(e, t) {
|
|
602
602
|
X.useDebugValue && X.useDebugValue(t ? t(e) : e);
|
|
603
603
|
}
|
|
604
604
|
function so(e) {
|
|
605
|
-
var t =
|
|
605
|
+
var t = qe(Pe++, 10), n = te();
|
|
606
606
|
return t.__ = e, j.componentDidCatch || (j.componentDidCatch = function(r, a) {
|
|
607
607
|
t.__ && t.__(r, a), n[1](r);
|
|
608
608
|
}), [n[0], function() {
|
|
@@ -610,7 +610,7 @@ function so(e) {
|
|
|
610
610
|
}];
|
|
611
611
|
}
|
|
612
612
|
function kn() {
|
|
613
|
-
var e =
|
|
613
|
+
var e = qe(Pe++, 11);
|
|
614
614
|
if (!e.__) {
|
|
615
615
|
for (var t = j.__v; t !== null && !t.__m && t.__ !== null; ) t = t.__;
|
|
616
616
|
var n = t.__m || (t.__m = [0, 0]);
|
|
@@ -803,7 +803,7 @@ function Ga(e) {
|
|
|
803
803
|
}
|
|
804
804
|
return i.displayName = "Lazy", i.__f = !0, i;
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function Qe() {
|
|
807
807
|
this.i = null, this.l = null;
|
|
808
808
|
}
|
|
809
809
|
O.unmount = function(e) {
|
|
@@ -874,7 +874,7 @@ function za(e, t) {
|
|
|
874
874
|
var n = pe(po, { __v: e, h: t });
|
|
875
875
|
return n.containerInfo = t, n;
|
|
876
876
|
}
|
|
877
|
-
(
|
|
877
|
+
(Qe.prototype = new Ce()).__a = function(e) {
|
|
878
878
|
var t = this, n = $a(t.__v), r = t.l.get(e);
|
|
879
879
|
return r[0]++, function(a) {
|
|
880
880
|
var i = function() {
|
|
@@ -882,13 +882,13 @@ function za(e, t) {
|
|
|
882
882
|
};
|
|
883
883
|
n ? n(i) : i();
|
|
884
884
|
};
|
|
885
|
-
},
|
|
885
|
+
}, Qe.prototype.render = function(e) {
|
|
886
886
|
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
887
887
|
var t = Oe(e.children);
|
|
888
888
|
e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
|
|
889
889
|
for (var n = t.length; n--; ) this.l.set(t[n], this.i = [1, 0, this.i]);
|
|
890
890
|
return e.children;
|
|
891
|
-
},
|
|
891
|
+
}, Qe.prototype.componentDidUpdate = Qe.prototype.componentDidMount = function() {
|
|
892
892
|
var e = this;
|
|
893
893
|
this.l.forEach(function(t, n) {
|
|
894
894
|
br(e, n, t);
|
|
@@ -976,13 +976,17 @@ function Ja(e) {
|
|
|
976
976
|
var Qa = function(e, t) {
|
|
977
977
|
return e(t);
|
|
978
978
|
}, Ya = function(e, t) {
|
|
979
|
-
var n = O.debounceRendering;
|
|
980
|
-
O.debounceRendering = function(
|
|
981
|
-
|
|
979
|
+
var n, r = O.debounceRendering;
|
|
980
|
+
O.debounceRendering = function(i) {
|
|
981
|
+
n = i;
|
|
982
982
|
};
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
983
|
+
try {
|
|
984
|
+
var a = e(t);
|
|
985
|
+
return n && n(), a;
|
|
986
|
+
} finally {
|
|
987
|
+
O.debounceRendering = r;
|
|
988
|
+
}
|
|
989
|
+
}, ei = vt, d = { useState: te, useId: kn, useReducer: Gt, useEffect: ee, useLayoutEffect: nt, useInsertionEffect: zn, useTransition: Gn, useDeferredValue: $n, useSyncExternalStore: Bn, startTransition: Un, useRef: Fe, useImperativeHandle: Hn, useMemo: Ne, useCallback: ft, useContext: gt, useDebugValue: Dn, version: "18.3.1", Children: yt, render: jn, hydrate: ja, unmountComponentAtNode: Vn, createPortal: za, createElement: pe, createContext: mt, createFactory: Va, cloneElement: Ka, createRef: Ta, Fragment: me, isValidElement: vt, isElement: ei, isFragment: Za, isMemo: Xa, findDOMNode: Ja, Component: Ce, PureComponent: dt, memo: Wn, forwardRef: Fa, flushSync: Ya, unstable_batchedUpdates: Qa, StrictMode: me, Suspense: lt, SuspenseList: Qe, lazy: Ga, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: qa };
|
|
986
990
|
const xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
987
991
|
__proto__: null,
|
|
988
992
|
Children: yt,
|
|
@@ -991,7 +995,7 @@ const xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
991
995
|
PureComponent: dt,
|
|
992
996
|
StrictMode: me,
|
|
993
997
|
Suspense: lt,
|
|
994
|
-
SuspenseList:
|
|
998
|
+
SuspenseList: Qe,
|
|
995
999
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: qa,
|
|
996
1000
|
cloneElement: Ka,
|
|
997
1001
|
createContext: mt,
|
|
@@ -3313,13 +3317,13 @@ var es = (
|
|
|
3313
3317
|
} else {
|
|
3314
3318
|
if (v.length === 0)
|
|
3315
3319
|
return this.error(R.EXPECT_DATE_TIME_SKELETON, y);
|
|
3316
|
-
var
|
|
3317
|
-
this.locale && (
|
|
3320
|
+
var b = v;
|
|
3321
|
+
this.locale && (b = Bo(v, this.locale));
|
|
3318
3322
|
var l = {
|
|
3319
3323
|
type: tt.dateTime,
|
|
3320
|
-
pattern:
|
|
3324
|
+
pattern: b,
|
|
3321
3325
|
location: c.styleLocation,
|
|
3322
|
-
parsedOptions: this.shouldParseSkeletons ? Po(
|
|
3326
|
+
parsedOptions: this.shouldParseSkeletons ? Po(b) : {}
|
|
3323
3327
|
}, x = o === "date" ? V.date : V.time;
|
|
3324
3328
|
return {
|
|
3325
3329
|
val: { type: x, value: r, location: y, style: l },
|
|
@@ -3340,9 +3344,9 @@ var es = (
|
|
|
3340
3344
|
case "plural":
|
|
3341
3345
|
case "selectordinal":
|
|
3342
3346
|
case "select": {
|
|
3343
|
-
var
|
|
3347
|
+
var E = this.clonePosition();
|
|
3344
3348
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3345
|
-
return this.error(R.EXPECT_SELECT_ARGUMENT_OPTIONS, D(
|
|
3349
|
+
return this.error(R.EXPECT_SELECT_ARGUMENT_OPTIONS, D(E, I({}, E)));
|
|
3346
3350
|
this.bumpSpace();
|
|
3347
3351
|
var M = this.parseIdentifierIfPossible(), _ = 0;
|
|
3348
3352
|
if (o !== "select" && M.value === "offset") {
|
|
@@ -3698,7 +3702,7 @@ function Ft(e, t, n, r, a, i, s) {
|
|
|
3698
3702
|
var h = m.children, y = m.value, v = a[y];
|
|
3699
3703
|
if (!vi(v))
|
|
3700
3704
|
throw new is(y, "function", s);
|
|
3701
|
-
var
|
|
3705
|
+
var b = Ft(h, t, n, r, a, i), x = v(b.map(function(_) {
|
|
3702
3706
|
return _.value;
|
|
3703
3707
|
}));
|
|
3704
3708
|
Array.isArray(x) || (x = [x]), o.push.apply(o, x.map(function(_) {
|
|
@@ -3709,25 +3713,25 @@ function Ft(e, t, n, r, a, i, s) {
|
|
|
3709
3713
|
}));
|
|
3710
3714
|
}
|
|
3711
3715
|
if (si(m)) {
|
|
3712
|
-
var
|
|
3713
|
-
if (!
|
|
3716
|
+
var E = m.options[l] || m.options.other;
|
|
3717
|
+
if (!E)
|
|
3714
3718
|
throw new Rr(m.value, l, Object.keys(m.options), s);
|
|
3715
|
-
o.push.apply(o, Ft(
|
|
3719
|
+
o.push.apply(o, Ft(E.value, t, n, r, a));
|
|
3716
3720
|
continue;
|
|
3717
3721
|
}
|
|
3718
3722
|
if (li(m)) {
|
|
3719
|
-
var
|
|
3720
|
-
if (!
|
|
3723
|
+
var E = m.options["=".concat(l)];
|
|
3724
|
+
if (!E) {
|
|
3721
3725
|
if (!Intl.PluralRules)
|
|
3722
3726
|
throw new Be(`Intl.PluralRules is not available in this environment.
|
|
3723
3727
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3724
3728
|
`, we.MISSING_INTL_API, s);
|
|
3725
3729
|
var M = n.getPluralRules(t, { type: m.pluralType }).select(l - (m.offset || 0));
|
|
3726
|
-
|
|
3730
|
+
E = m.options[M] || m.options.other;
|
|
3727
3731
|
}
|
|
3728
|
-
if (!
|
|
3732
|
+
if (!E)
|
|
3729
3733
|
throw new Rr(m.value, l, Object.keys(m.options), s);
|
|
3730
|
-
o.push.apply(o, Ft(
|
|
3734
|
+
o.push.apply(o, Ft(E.value, t, n, r, a, l - (m.offset || 0)));
|
|
3731
3735
|
continue;
|
|
3732
3736
|
}
|
|
3733
3737
|
}
|
|
@@ -3900,10 +3904,10 @@ var _i = (
|
|
|
3900
3904
|
}
|
|
3901
3905
|
}, e;
|
|
3902
3906
|
})()
|
|
3903
|
-
),
|
|
3907
|
+
), je;
|
|
3904
3908
|
(function(e) {
|
|
3905
3909
|
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";
|
|
3906
|
-
})(
|
|
3910
|
+
})(je || (je = {}));
|
|
3907
3911
|
var _t = (
|
|
3908
3912
|
/** @class */
|
|
3909
3913
|
(function(e) {
|
|
@@ -3922,7 +3926,7 @@ var _t = (
|
|
|
3922
3926
|
(function(e) {
|
|
3923
3927
|
_e(t, e);
|
|
3924
3928
|
function t(n, r) {
|
|
3925
|
-
return e.call(this,
|
|
3929
|
+
return e.call(this, je.UNSUPPORTED_FORMATTER, n, r) || this;
|
|
3926
3930
|
}
|
|
3927
3931
|
return t;
|
|
3928
3932
|
})(_t)
|
|
@@ -3931,7 +3935,7 @@ var _t = (
|
|
|
3931
3935
|
(function(e) {
|
|
3932
3936
|
_e(t, e);
|
|
3933
3937
|
function t(n, r) {
|
|
3934
|
-
return e.call(this,
|
|
3938
|
+
return e.call(this, je.INVALID_CONFIG, n, r) || this;
|
|
3935
3939
|
}
|
|
3936
3940
|
return t;
|
|
3937
3941
|
})(_t)
|
|
@@ -3940,7 +3944,7 @@ var _t = (
|
|
|
3940
3944
|
(function(e) {
|
|
3941
3945
|
_e(t, e);
|
|
3942
3946
|
function t(n, r) {
|
|
3943
|
-
return e.call(this,
|
|
3947
|
+
return e.call(this, je.MISSING_DATA, n, r) || this;
|
|
3944
3948
|
}
|
|
3945
3949
|
return t;
|
|
3946
3950
|
})(_t)
|
|
@@ -3949,7 +3953,7 @@ var _t = (
|
|
|
3949
3953
|
(function(e) {
|
|
3950
3954
|
_e(t, e);
|
|
3951
3955
|
function t(n, r, a) {
|
|
3952
|
-
var i = e.call(this,
|
|
3956
|
+
var i = e.call(this, je.FORMAT_ERROR, "".concat(n, `
|
|
3953
3957
|
Locale: `).concat(r, `
|
|
3954
3958
|
`), a) || this;
|
|
3955
3959
|
return i.locale = r, i;
|
|
@@ -3975,7 +3979,7 @@ Description: `).concat(a == null ? void 0 : a.description, `
|
|
|
3975
3979
|
(function(e) {
|
|
3976
3980
|
_e(t, e);
|
|
3977
3981
|
function t(n, r) {
|
|
3978
|
-
var a = e.call(this,
|
|
3982
|
+
var a = e.call(this, je.MISSING_TRANSLATION, 'Missing message: "'.concat(n.id, '" for locale "').concat(r, '", using ').concat(n.defaultMessage ? "default message (".concat(typeof n.defaultMessage == "string" ? n.defaultMessage : n.defaultMessage.map(function(i) {
|
|
3979
3983
|
var s;
|
|
3980
3984
|
return (s = i.value) !== null && s !== void 0 ? s : JSON.stringify(i);
|
|
3981
3985
|
}).join(), ")") : "id", " as fallback.")) || this;
|
|
@@ -3984,7 +3988,7 @@ Description: `).concat(a == null ? void 0 : a.description, `
|
|
|
3984
3988
|
return t;
|
|
3985
3989
|
})(_t)
|
|
3986
3990
|
);
|
|
3987
|
-
function
|
|
3991
|
+
function Ve(e, t, n) {
|
|
3988
3992
|
return n === void 0 && (n = {}), t.reduce(function(r, a) {
|
|
3989
3993
|
return a in e ? r[a] = e[a] : a in n && (r[a] = n[a]), r;
|
|
3990
3994
|
}, {});
|
|
@@ -4118,42 +4122,42 @@ var Tn = function(e, t, n, r, a) {
|
|
|
4118
4122
|
n === void 0 && (n = { id: "" });
|
|
4119
4123
|
var h = n.id, y = n.defaultMessage;
|
|
4120
4124
|
ri(!!h, "[@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");
|
|
4121
|
-
var v = String(h),
|
|
4125
|
+
var v = String(h), b = (
|
|
4122
4126
|
// In case messages is Object.create(null)
|
|
4123
4127
|
// e.g import('foo.json') from webpack)
|
|
4124
4128
|
// See https://github.com/formatjs/formatjs/issues/1914
|
|
4125
4129
|
o && Object.prototype.hasOwnProperty.call(o, v) && o[v]
|
|
4126
4130
|
);
|
|
4127
|
-
if (Array.isArray(
|
|
4128
|
-
return
|
|
4129
|
-
if (!r &&
|
|
4130
|
-
return
|
|
4131
|
-
if (r = I(I({}, p), r || {}), s = Dr(s, l), c = Dr(c, l), !
|
|
4132
|
-
if (m === !1 &&
|
|
4133
|
-
return
|
|
4131
|
+
if (Array.isArray(b) && b.length === 1 && b[0].type === V.literal)
|
|
4132
|
+
return b[0].value;
|
|
4133
|
+
if (!r && b && typeof b == "string" && !p)
|
|
4134
|
+
return b.replace(/'\{(.*?)\}'/gi, "{$1}");
|
|
4135
|
+
if (r = I(I({}, p), r || {}), s = Dr(s, l), c = Dr(c, l), !b) {
|
|
4136
|
+
if (m === !1 && b === "")
|
|
4137
|
+
return b;
|
|
4134
4138
|
if ((!y || i && i.toLowerCase() !== u.toLowerCase()) && f(new ds(n, i)), y)
|
|
4135
4139
|
try {
|
|
4136
4140
|
var x = t.getMessageFormat(y, u, c, a);
|
|
4137
4141
|
return x.format(r);
|
|
4138
|
-
} catch (
|
|
4139
|
-
return f(new Jt('Error formatting default message for: "'.concat(v, '", rendering default message verbatim'), i, n,
|
|
4142
|
+
} catch (E) {
|
|
4143
|
+
return f(new Jt('Error formatting default message for: "'.concat(v, '", rendering default message verbatim'), i, n, E)), typeof y == "string" ? y : v;
|
|
4140
4144
|
}
|
|
4141
4145
|
return v;
|
|
4142
4146
|
}
|
|
4143
4147
|
try {
|
|
4144
|
-
var x = t.getMessageFormat(
|
|
4148
|
+
var x = t.getMessageFormat(b, i, s, I({ formatters: t }, a || {}));
|
|
4145
4149
|
return x.format(r);
|
|
4146
|
-
} catch (
|
|
4147
|
-
f(new Jt('Error formatting message: "'.concat(v, '", using ').concat(y ? "default message" : "id", " as fallback."), i, n,
|
|
4150
|
+
} catch (E) {
|
|
4151
|
+
f(new Jt('Error formatting message: "'.concat(v, '", using ').concat(y ? "default message" : "id", " as fallback."), i, n, E));
|
|
4148
4152
|
}
|
|
4149
4153
|
if (y)
|
|
4150
4154
|
try {
|
|
4151
4155
|
var x = t.getMessageFormat(y, u, c, a);
|
|
4152
4156
|
return x.format(r);
|
|
4153
|
-
} catch (
|
|
4154
|
-
f(new Jt('Error formatting the default message for: "'.concat(v, '", rendering message verbatim'), i, n,
|
|
4157
|
+
} catch (E) {
|
|
4158
|
+
f(new Jt('Error formatting the default message for: "'.concat(v, '", rendering message verbatim'), i, n, E));
|
|
4155
4159
|
}
|
|
4156
|
-
return typeof
|
|
4160
|
+
return typeof b == "string" ? b : typeof y == "string" ? y : v;
|
|
4157
4161
|
}, xi = [
|
|
4158
4162
|
"formatMatcher",
|
|
4159
4163
|
"timeZone",
|
|
@@ -4178,7 +4182,7 @@ var Tn = function(e, t, n, r, a) {
|
|
|
4178
4182
|
function zt(e, t, n, r) {
|
|
4179
4183
|
var a = e.locale, i = e.formats, s = e.onError, o = e.timeZone;
|
|
4180
4184
|
r === void 0 && (r = {});
|
|
4181
|
-
var u = r.format, c = I(I({}, o && { timeZone: o }), u && Xn(i, t, u, s)), m =
|
|
4185
|
+
var u = r.format, c = I(I({}, o && { timeZone: o }), u && Xn(i, t, u, s)), m = Ve(r, xi, c);
|
|
4182
4186
|
return t === "time" && !m.hour && !m.minute && !m.second && !m.timeStyle && !m.dateStyle && (m = I(I({}, m), { hour: "numeric", minute: "numeric" })), n(a, m);
|
|
4183
4187
|
}
|
|
4184
4188
|
function ys(e, t) {
|
|
@@ -4206,7 +4210,7 @@ function vs(e, t) {
|
|
|
4206
4210
|
function _s(e, t) {
|
|
4207
4211
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
4208
4212
|
n[r - 2] = arguments[r];
|
|
4209
|
-
var a = n[0], i = n[1], s = n[2], o = s === void 0 ? {} : s, u = e.timeZone, c = e.locale, m = e.onError, f =
|
|
4213
|
+
var a = n[0], i = n[1], s = n[2], o = s === void 0 ? {} : s, u = e.timeZone, c = e.locale, m = e.onError, f = Ve(o, xi, u ? { timeZone: u } : {});
|
|
4210
4214
|
try {
|
|
4211
4215
|
return t(c, f).formatRange(a, i);
|
|
4212
4216
|
} catch (l) {
|
|
@@ -4247,7 +4251,7 @@ function Cs(e, t, n, r) {
|
|
|
4247
4251
|
s || i(new Be(`Intl.DisplayNames is not available in this environment.
|
|
4248
4252
|
Try polyfilling it using "@formatjs/intl-displaynames"
|
|
4249
4253
|
`, we.MISSING_INTL_API));
|
|
4250
|
-
var o =
|
|
4254
|
+
var o = Ve(r, xs);
|
|
4251
4255
|
try {
|
|
4252
4256
|
return t(a, o).of(n);
|
|
4253
4257
|
} catch (u) {
|
|
@@ -4276,7 +4280,7 @@ function Ci(e, t, n, r) {
|
|
|
4276
4280
|
s || i(new Be(`Intl.ListFormat is not available in this environment.
|
|
4277
4281
|
Try polyfilling it using "@formatjs/intl-listformat"
|
|
4278
4282
|
`, we.MISSING_INTL_API));
|
|
4279
|
-
var o =
|
|
4283
|
+
var o = Ve(r, Ss);
|
|
4280
4284
|
try {
|
|
4281
4285
|
var u = {}, c = n.map(function(m, f) {
|
|
4282
4286
|
if (typeof m == "object") {
|
|
@@ -4299,7 +4303,7 @@ function Ms(e, t, n, r) {
|
|
|
4299
4303
|
r === void 0 && (r = {}), Intl.PluralRules || i(new Be(`Intl.PluralRules is not available in this environment.
|
|
4300
4304
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
4301
4305
|
`, we.MISSING_INTL_API));
|
|
4302
|
-
var s =
|
|
4306
|
+
var s = Ve(r, Is);
|
|
4303
4307
|
try {
|
|
4304
4308
|
return t(a, s).select(n);
|
|
4305
4309
|
} catch (o) {
|
|
@@ -4311,7 +4315,7 @@ var ws = ["numeric", "style"];
|
|
|
4311
4315
|
function Ns(e, t, n) {
|
|
4312
4316
|
var r = e.locale, a = e.formats, i = e.onError;
|
|
4313
4317
|
n === void 0 && (n = {});
|
|
4314
|
-
var s = n.format, o = !!s && Xn(a, "relative", s, i) || {}, u =
|
|
4318
|
+
var s = n.format, o = !!s && Xn(a, "relative", s, i) || {}, u = Ve(n, ws, o);
|
|
4315
4319
|
return t(r, u);
|
|
4316
4320
|
}
|
|
4317
4321
|
function Os(e, t, n, r, a) {
|
|
@@ -4356,7 +4360,7 @@ var Ps = [
|
|
|
4356
4360
|
function Si(e, t, n) {
|
|
4357
4361
|
var r = e.locale, a = e.formats, i = e.onError;
|
|
4358
4362
|
n === void 0 && (n = {});
|
|
4359
|
-
var s = n.format, o = s && Xn(a, "number", s, i) || {}, u =
|
|
4363
|
+
var s = n.format, o = s && Xn(a, "number", s, i) || {}, u = Ve(n, Ps, o);
|
|
4360
4364
|
return t(r, u);
|
|
4361
4365
|
}
|
|
4362
4366
|
function Rs(e, t, n, r) {
|
|
@@ -4467,8 +4471,8 @@ var Fr;
|
|
|
4467
4471
|
function Bs() {
|
|
4468
4472
|
if (Fr) return U;
|
|
4469
4473
|
Fr = 1;
|
|
4470
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, l = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117,
|
|
4471
|
-
function
|
|
4474
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, f = e ? Symbol.for("react.suspense") : 60113, l = e ? Symbol.for("react.suspense_list") : 60120, p = e ? Symbol.for("react.memo") : 60115, h = e ? Symbol.for("react.lazy") : 60116, y = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
|
|
4475
|
+
function E(_) {
|
|
4472
4476
|
if (typeof _ == "object" && _ !== null) {
|
|
4473
4477
|
var T = _.$$typeof;
|
|
4474
4478
|
switch (T) {
|
|
@@ -4499,35 +4503,35 @@ function Bs() {
|
|
|
4499
4503
|
}
|
|
4500
4504
|
}
|
|
4501
4505
|
function M(_) {
|
|
4502
|
-
return
|
|
4506
|
+
return E(_) === c;
|
|
4503
4507
|
}
|
|
4504
4508
|
return U.AsyncMode = u, U.ConcurrentMode = c, U.ContextConsumer = o, U.ContextProvider = s, U.Element = t, U.ForwardRef = m, U.Fragment = r, U.Lazy = h, U.Memo = p, U.Portal = n, U.Profiler = i, U.StrictMode = a, U.Suspense = f, U.isAsyncMode = function(_) {
|
|
4505
|
-
return M(_) ||
|
|
4509
|
+
return M(_) || E(_) === u;
|
|
4506
4510
|
}, U.isConcurrentMode = M, U.isContextConsumer = function(_) {
|
|
4507
|
-
return
|
|
4511
|
+
return E(_) === o;
|
|
4508
4512
|
}, U.isContextProvider = function(_) {
|
|
4509
|
-
return
|
|
4513
|
+
return E(_) === s;
|
|
4510
4514
|
}, U.isElement = function(_) {
|
|
4511
4515
|
return typeof _ == "object" && _ !== null && _.$$typeof === t;
|
|
4512
4516
|
}, U.isForwardRef = function(_) {
|
|
4513
|
-
return
|
|
4517
|
+
return E(_) === m;
|
|
4514
4518
|
}, U.isFragment = function(_) {
|
|
4515
|
-
return
|
|
4519
|
+
return E(_) === r;
|
|
4516
4520
|
}, U.isLazy = function(_) {
|
|
4517
|
-
return
|
|
4521
|
+
return E(_) === h;
|
|
4518
4522
|
}, U.isMemo = function(_) {
|
|
4519
|
-
return
|
|
4523
|
+
return E(_) === p;
|
|
4520
4524
|
}, U.isPortal = function(_) {
|
|
4521
|
-
return
|
|
4525
|
+
return E(_) === n;
|
|
4522
4526
|
}, U.isProfiler = function(_) {
|
|
4523
|
-
return
|
|
4527
|
+
return E(_) === i;
|
|
4524
4528
|
}, U.isStrictMode = function(_) {
|
|
4525
|
-
return
|
|
4529
|
+
return E(_) === a;
|
|
4526
4530
|
}, U.isSuspense = function(_) {
|
|
4527
|
-
return
|
|
4531
|
+
return E(_) === f;
|
|
4528
4532
|
}, U.isValidElementType = function(_) {
|
|
4529
|
-
return typeof _ == "string" || typeof _ == "function" || _ === r || _ === c || _ === i || _ === a || _ === f || _ === l || typeof _ == "object" && _ !== null && (_.$$typeof === h || _.$$typeof === p || _.$$typeof === s || _.$$typeof === o || _.$$typeof === m || _.$$typeof === v || _.$$typeof ===
|
|
4530
|
-
}, U.typeOf =
|
|
4533
|
+
return typeof _ == "string" || typeof _ == "function" || _ === r || _ === c || _ === i || _ === a || _ === f || _ === l || typeof _ == "object" && _ !== null && (_.$$typeof === h || _.$$typeof === p || _.$$typeof === s || _.$$typeof === o || _.$$typeof === m || _.$$typeof === v || _.$$typeof === b || _.$$typeof === x || _.$$typeof === y);
|
|
4534
|
+
}, U.typeOf = E, U;
|
|
4531
4535
|
}
|
|
4532
4536
|
var Br;
|
|
4533
4537
|
function Us() {
|
|
@@ -4579,14 +4583,14 @@ function $s() {
|
|
|
4579
4583
|
function p(h, y, v) {
|
|
4580
4584
|
if (typeof y != "string") {
|
|
4581
4585
|
if (l) {
|
|
4582
|
-
var
|
|
4583
|
-
|
|
4586
|
+
var b = f(y);
|
|
4587
|
+
b && b !== l && p(h, b, v);
|
|
4584
4588
|
}
|
|
4585
4589
|
var x = u(y);
|
|
4586
4590
|
c && (x = x.concat(c(y)));
|
|
4587
|
-
for (var
|
|
4591
|
+
for (var E = s(h), M = s(y), _ = 0; _ < x.length; ++_) {
|
|
4588
4592
|
var T = x[_];
|
|
4589
|
-
if (!n[T] && !(v && v[T]) && !(M && M[T]) && !(
|
|
4593
|
+
if (!n[T] && !(v && v[T]) && !(M && M[T]) && !(E && E[T])) {
|
|
4590
4594
|
var G = m(y, T);
|
|
4591
4595
|
try {
|
|
4592
4596
|
o(h, T, G);
|
|
@@ -5173,7 +5177,7 @@ const Vs = {
|
|
|
5173
5177
|
merchantId: l
|
|
5174
5178
|
} = i, p = s.toString(), h = JSON.stringify(o);
|
|
5175
5179
|
return tl(
|
|
5176
|
-
`${f}${l}${p}${h}${u}${c}${m}v4.
|
|
5180
|
+
`${f}${l}${p}${h}${u}${c}${m}v4.5.0`
|
|
5177
5181
|
);
|
|
5178
5182
|
}
|
|
5179
5183
|
});
|
|
@@ -5219,7 +5223,7 @@ const il = (e, t) => e.eligible && t ? e.purchase_amount >= (t == null ? void 0
|
|
|
5219
5223
|
merchantCoversAllFees: s,
|
|
5220
5224
|
domain: t,
|
|
5221
5225
|
merchantId: n
|
|
5222
|
-
}), v = (M = f(y)) == null ? void 0 : M.value,
|
|
5226
|
+
}), v = (M = f(y)) == null ? void 0 : M.value, b = (_ = f(y)) == null ? void 0 : _.timestamp, x = b && nl(b), E = r == null ? void 0 : r.map((T) => ({
|
|
5223
5227
|
installments_count: T.installmentsCount,
|
|
5224
5228
|
deferred_days: T == null ? void 0 : T.deferredDays,
|
|
5225
5229
|
deferred_months: T == null ? void 0 : T.deferredMonths
|
|
@@ -5236,14 +5240,14 @@ const il = (e, t) => e.eligible && t ? e.purchase_amount >= (t == null ? void 0
|
|
|
5236
5240
|
}), v && !x && (u(v), m(ue.SUCCESS)), x && h(), v || al(
|
|
5237
5241
|
{
|
|
5238
5242
|
purchase_amount: e,
|
|
5239
|
-
queries:
|
|
5243
|
+
queries: E,
|
|
5240
5244
|
billing_address: T,
|
|
5241
5245
|
shipping_address: G,
|
|
5242
5246
|
merchant_covers_all_fees: s
|
|
5243
5247
|
},
|
|
5244
5248
|
{
|
|
5245
5249
|
Authorization: `Alma-Merchant-Auth ${n}`,
|
|
5246
|
-
"X-Alma-Agent": "Alma Widget/v4.
|
|
5250
|
+
"X-Alma-Agent": "Alma Widget/v4.5.0"
|
|
5247
5251
|
},
|
|
5248
5252
|
`${t}/v2/payments/eligibility`
|
|
5249
5253
|
).then((K) => {
|
|
@@ -5260,7 +5264,7 @@ const il = (e, t) => e.eligible && t ? e.purchase_amount >= (t == null ? void 0
|
|
|
5260
5264
|
i,
|
|
5261
5265
|
v,
|
|
5262
5266
|
x,
|
|
5263
|
-
|
|
5267
|
+
E,
|
|
5264
5268
|
n,
|
|
5265
5269
|
t,
|
|
5266
5270
|
s,
|
|
@@ -5279,42 +5283,42 @@ function ll() {
|
|
|
5279
5283
|
if (h && p || !(h || p))
|
|
5280
5284
|
return !1;
|
|
5281
5285
|
var y = l.expressions.every(function(v) {
|
|
5282
|
-
var
|
|
5286
|
+
var b = v.feature, x = v.modifier, E = v.value, M = f[b];
|
|
5283
5287
|
if (!M)
|
|
5284
5288
|
return !1;
|
|
5285
|
-
switch (
|
|
5289
|
+
switch (b) {
|
|
5286
5290
|
case "orientation":
|
|
5287
5291
|
case "scan":
|
|
5288
|
-
return M.toLowerCase() ===
|
|
5292
|
+
return M.toLowerCase() === E.toLowerCase();
|
|
5289
5293
|
case "width":
|
|
5290
5294
|
case "height":
|
|
5291
5295
|
case "device-width":
|
|
5292
5296
|
case "device-height":
|
|
5293
|
-
|
|
5297
|
+
E = c(E), M = c(M);
|
|
5294
5298
|
break;
|
|
5295
5299
|
case "resolution":
|
|
5296
|
-
|
|
5300
|
+
E = u(E), M = u(M);
|
|
5297
5301
|
break;
|
|
5298
5302
|
case "aspect-ratio":
|
|
5299
5303
|
case "device-aspect-ratio":
|
|
5300
5304
|
case /* Deprecated */
|
|
5301
5305
|
"device-pixel-ratio":
|
|
5302
|
-
|
|
5306
|
+
E = o(E), M = o(M);
|
|
5303
5307
|
break;
|
|
5304
5308
|
case "grid":
|
|
5305
5309
|
case "color":
|
|
5306
5310
|
case "color-index":
|
|
5307
5311
|
case "monochrome":
|
|
5308
|
-
|
|
5312
|
+
E = parseInt(E, 10) || 1, M = parseInt(M, 10) || 0;
|
|
5309
5313
|
break;
|
|
5310
5314
|
}
|
|
5311
5315
|
switch (x) {
|
|
5312
5316
|
case "min":
|
|
5313
|
-
return M >=
|
|
5317
|
+
return M >= E;
|
|
5314
5318
|
case "max":
|
|
5315
|
-
return M <=
|
|
5319
|
+
return M <= E;
|
|
5316
5320
|
default:
|
|
5317
|
-
return M ===
|
|
5321
|
+
return M === E;
|
|
5318
5322
|
}
|
|
5319
5323
|
});
|
|
5320
5324
|
return y && !p || !y && p;
|
|
@@ -5324,11 +5328,11 @@ function ll() {
|
|
|
5324
5328
|
return m.split(",").map(function(f) {
|
|
5325
5329
|
f = f.trim();
|
|
5326
5330
|
var l = f.match(e), p = l[1], h = l[2], y = l[3] || "", v = {};
|
|
5327
|
-
return v.inverse = !!p && p.toLowerCase() === "not", v.type = h ? h.toLowerCase() : "all", y = y.match(/\([^\)]+\)/g) || [], v.expressions = y.map(function(
|
|
5328
|
-
var x =
|
|
5331
|
+
return v.inverse = !!p && p.toLowerCase() === "not", v.type = h ? h.toLowerCase() : "all", y = y.match(/\([^\)]+\)/g) || [], v.expressions = y.map(function(b) {
|
|
5332
|
+
var x = b.match(t), E = x[1].toLowerCase().match(n);
|
|
5329
5333
|
return {
|
|
5330
|
-
modifier:
|
|
5331
|
-
feature:
|
|
5334
|
+
modifier: E[1],
|
|
5335
|
+
feature: E[2],
|
|
5332
5336
|
value: x[2]
|
|
5333
5337
|
};
|
|
5334
5338
|
}), v;
|
|
@@ -5793,7 +5797,7 @@ function Gl() {
|
|
|
5793
5797
|
try {
|
|
5794
5798
|
r.length !== 0 && (v = r.pop(), v.focus({ preventScroll: y }));
|
|
5795
5799
|
return;
|
|
5796
|
-
} catch (
|
|
5800
|
+
} catch (b) {
|
|
5797
5801
|
console.warn(["You tried to return focus to", v, "but it is not in the DOM anymore"].join(" "));
|
|
5798
5802
|
}
|
|
5799
5803
|
}
|
|
@@ -5839,8 +5843,8 @@ function zl() {
|
|
|
5839
5843
|
}
|
|
5840
5844
|
var y = /(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent), v = y != null && y[1] != "Chrome" && /\biPod\b|\biPad\b/g.exec(navigator.userAgent) == null;
|
|
5841
5845
|
if (v) {
|
|
5842
|
-
var
|
|
5843
|
-
if (
|
|
5846
|
+
var b = c.indexOf(h);
|
|
5847
|
+
if (b > -1 && (b += f ? -1 : 1), m = c[b], typeof m == "undefined") {
|
|
5844
5848
|
u.preventDefault(), m = f ? p : l, m.focus();
|
|
5845
5849
|
return;
|
|
5846
5850
|
}
|
|
@@ -5930,15 +5934,15 @@ function ki() {
|
|
|
5930
5934
|
function m(p) {
|
|
5931
5935
|
var h = !0, y = !1, v = void 0;
|
|
5932
5936
|
try {
|
|
5933
|
-
for (var
|
|
5934
|
-
var
|
|
5935
|
-
|
|
5937
|
+
for (var b = c(p)[Symbol.iterator](), x; !(h = (x = b.next()).done); h = !0) {
|
|
5938
|
+
var E = x.value;
|
|
5939
|
+
E.setAttribute("aria-hidden", "true");
|
|
5936
5940
|
}
|
|
5937
5941
|
} catch (M) {
|
|
5938
5942
|
y = !0, v = M;
|
|
5939
5943
|
} finally {
|
|
5940
5944
|
try {
|
|
5941
|
-
!h &&
|
|
5945
|
+
!h && b.return && b.return();
|
|
5942
5946
|
} finally {
|
|
5943
5947
|
if (y)
|
|
5944
5948
|
throw v;
|
|
@@ -5948,15 +5952,15 @@ function ki() {
|
|
|
5948
5952
|
function f(p) {
|
|
5949
5953
|
var h = !0, y = !1, v = void 0;
|
|
5950
5954
|
try {
|
|
5951
|
-
for (var
|
|
5952
|
-
var
|
|
5953
|
-
|
|
5955
|
+
for (var b = c(p)[Symbol.iterator](), x; !(h = (x = b.next()).done); h = !0) {
|
|
5956
|
+
var E = x.value;
|
|
5957
|
+
E.removeAttribute("aria-hidden");
|
|
5954
5958
|
}
|
|
5955
5959
|
} catch (M) {
|
|
5956
5960
|
y = !0, v = M;
|
|
5957
5961
|
} finally {
|
|
5958
5962
|
try {
|
|
5959
|
-
!h &&
|
|
5963
|
+
!h && b.return && b.return();
|
|
5960
5964
|
} finally {
|
|
5961
5965
|
if (y)
|
|
5962
5966
|
throw v;
|
|
@@ -6008,12 +6012,12 @@ function ql() {
|
|
|
6008
6012
|
return u(m.classList, m.nodeName.toLowerCase() == "html" ? e : t, f.split(" "));
|
|
6009
6013
|
}, $e;
|
|
6010
6014
|
}
|
|
6011
|
-
var
|
|
6015
|
+
var Ze = {}, sa;
|
|
6012
6016
|
function Fi() {
|
|
6013
|
-
if (sa) return
|
|
6014
|
-
sa = 1, Object.defineProperty(
|
|
6017
|
+
if (sa) return Ze;
|
|
6018
|
+
sa = 1, Object.defineProperty(Ze, "__esModule", {
|
|
6015
6019
|
value: !0
|
|
6016
|
-
}),
|
|
6020
|
+
}), Ze.log = r, Ze.resetState = a;
|
|
6017
6021
|
function e(i, s) {
|
|
6018
6022
|
if (!(i instanceof s))
|
|
6019
6023
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -6045,7 +6049,7 @@ function Fi() {
|
|
|
6045
6049
|
function a() {
|
|
6046
6050
|
n = new t();
|
|
6047
6051
|
}
|
|
6048
|
-
return
|
|
6052
|
+
return Ze.default = n, Ze;
|
|
6049
6053
|
}
|
|
6050
6054
|
var rt = {}, la;
|
|
6051
6055
|
function Vl() {
|
|
@@ -6108,7 +6112,7 @@ function Zl() {
|
|
|
6108
6112
|
return function(C, H, g) {
|
|
6109
6113
|
return H && S(C.prototype, H), g && S(C, g), C;
|
|
6110
6114
|
};
|
|
6111
|
-
})(), i = Nn, s = /* @__PURE__ */ Jn(), o = _(s), u = Gl(), c = M(u), m = zl(), f = _(m), l = ki(), p = M(l), h = ql(), y = M(h), v = Qn(),
|
|
6115
|
+
})(), i = Nn, s = /* @__PURE__ */ Jn(), o = _(s), u = Gl(), c = M(u), m = zl(), f = _(m), l = ki(), p = M(l), h = ql(), y = M(h), v = Qn(), b = _(v), x = Fi(), E = _(x);
|
|
6112
6116
|
Vl();
|
|
6113
6117
|
function M(S) {
|
|
6114
6118
|
if (S && S.__esModule)
|
|
@@ -6154,7 +6158,7 @@ function Zl() {
|
|
|
6154
6158
|
g.content = N, g.props.contentRef && g.props.contentRef(N);
|
|
6155
6159
|
}, g.afterClose = function() {
|
|
6156
6160
|
var N = g.props, z = N.appElement, W = N.ariaHideApp, q = N.htmlOpenClassName, Ee = N.bodyOpenClassName, ge = N.parentSelector, fe = ge && ge().ownerDocument || document;
|
|
6157
|
-
Ee && y.remove(fe.body, Ee), q && y.remove(fe.getElementsByTagName("html")[0], q), W && A > 0 && (A -= 1, A === 0 && p.show(z)), g.props.shouldFocusAfterRender && (g.props.shouldReturnFocusAfterClose ? (c.returnFocus(g.props.preventScroll), c.teardownScopedFocus()) : c.popWithoutFocus()), g.props.onAfterClose && g.props.onAfterClose(),
|
|
6161
|
+
Ee && y.remove(fe.body, Ee), q && y.remove(fe.getElementsByTagName("html")[0], q), W && A > 0 && (A -= 1, A === 0 && p.show(z)), g.props.shouldFocusAfterRender && (g.props.shouldReturnFocusAfterClose ? (c.returnFocus(g.props.preventScroll), c.teardownScopedFocus()) : c.popWithoutFocus()), g.props.onAfterClose && g.props.onAfterClose(), E.default.deregister(g);
|
|
6158
6162
|
}, g.open = function() {
|
|
6159
6163
|
g.beforeOpen(), g.state.afterOpen && g.state.beforeClose ? (clearTimeout(g.closeTimer), g.setState({ beforeClose: !1 })) : (g.props.shouldFocusAfterRender && (c.setupScopedFocus(g.node), c.markForFocusLater()), g.setState({ isOpen: !0 }, function() {
|
|
6160
6164
|
g.openAnimationFrame = requestAnimationFrame(function() {
|
|
@@ -6235,7 +6239,7 @@ function Zl() {
|
|
|
6235
6239
|
key: "beforeOpen",
|
|
6236
6240
|
value: function() {
|
|
6237
6241
|
var g = this.props, N = g.appElement, z = g.ariaHideApp, W = g.htmlOpenClassName, q = g.bodyOpenClassName, Ee = g.parentSelector, ge = Ee && Ee().ownerDocument || document;
|
|
6238
|
-
q && y.add(ge.body, q), W && y.add(ge.getElementsByTagName("html")[0], W), z && (A += 1, p.hide(N)),
|
|
6242
|
+
q && y.add(ge.body, q), W && y.add(ge.getElementsByTagName("html")[0], W), z && (A += 1, p.hide(N)), E.default.register(this);
|
|
6239
6243
|
}
|
|
6240
6244
|
// Don't steal focus from inner elements
|
|
6241
6245
|
}, {
|
|
@@ -6291,7 +6295,7 @@ function Zl() {
|
|
|
6291
6295
|
bodyOpenClassName: o.default.string,
|
|
6292
6296
|
htmlOpenClassName: o.default.string,
|
|
6293
6297
|
ariaHideApp: o.default.bool,
|
|
6294
|
-
appElement: o.default.oneOfType([o.default.instanceOf(
|
|
6298
|
+
appElement: o.default.oneOfType([o.default.instanceOf(b.default), o.default.instanceOf(v.SafeHTMLCollection), o.default.instanceOf(v.SafeNodeList), o.default.arrayOf(o.default.instanceOf(b.default))]),
|
|
6295
6299
|
onAfterOpen: o.default.func,
|
|
6296
6300
|
onAfterClose: o.default.func,
|
|
6297
6301
|
onRequestClose: o.default.func,
|
|
@@ -6415,7 +6419,7 @@ function Ql() {
|
|
|
6415
6419
|
function v(w) {
|
|
6416
6420
|
return w && w.__esModule ? w : { default: w };
|
|
6417
6421
|
}
|
|
6418
|
-
function
|
|
6422
|
+
function b(w, A) {
|
|
6419
6423
|
if (!(w instanceof A))
|
|
6420
6424
|
throw new TypeError("Cannot call a class as a function");
|
|
6421
6425
|
}
|
|
@@ -6424,7 +6428,7 @@ function Ql() {
|
|
|
6424
6428
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6425
6429
|
return A && (typeof A == "object" || typeof A == "function") ? A : w;
|
|
6426
6430
|
}
|
|
6427
|
-
function
|
|
6431
|
+
function E(w, A) {
|
|
6428
6432
|
if (typeof A != "function" && A !== null)
|
|
6429
6433
|
throw new TypeError("Super expression must either be null or a function, not " + typeof A);
|
|
6430
6434
|
w.prototype = Object.create(A && A.prototype, { constructor: { value: w, enumerable: !1, writable: !0, configurable: !0 } }), A && (Object.setPrototypeOf ? Object.setPrototypeOf(w, A) : w.__proto__ = A);
|
|
@@ -6438,10 +6442,10 @@ function Ql() {
|
|
|
6438
6442
|
return w();
|
|
6439
6443
|
}
|
|
6440
6444
|
var Z = (function(w) {
|
|
6441
|
-
|
|
6445
|
+
E(A, w);
|
|
6442
6446
|
function A() {
|
|
6443
6447
|
var F, S, C, H;
|
|
6444
|
-
|
|
6448
|
+
b(this, A);
|
|
6445
6449
|
for (var g = arguments.length, N = Array(g), z = 0; z < g; z++)
|
|
6446
6450
|
N[z] = arguments[z];
|
|
6447
6451
|
return H = (S = (C = x(this, (F = A.__proto__ || Object.getPrototypeOf(A)).call.apply(F, [this].concat(N))), C), C.removePortal = function() {
|
|
@@ -6639,7 +6643,7 @@ function tu({ color: e = "#fff", className: t }) {
|
|
|
6639
6643
|
)
|
|
6640
6644
|
);
|
|
6641
6645
|
}
|
|
6642
|
-
const nu = "_modal_t1s7a_1", ru = "_content_t1s7a_19", au = "_contentScrollable_t1s7a_25", iu = "_overlay_t1s7a_31", ou = "_header_t1s7a_44", su = "_closeButton_t1s7a_53",
|
|
6646
|
+
const nu = "_modal_t1s7a_1", ru = "_content_t1s7a_19", au = "_contentScrollable_t1s7a_25", iu = "_overlay_t1s7a_31", ou = "_header_t1s7a_44", su = "_closeButton_t1s7a_53", Xe = {
|
|
6643
6647
|
modal: nu,
|
|
6644
6648
|
content: ru,
|
|
6645
6649
|
contentScrollable: au,
|
|
@@ -6683,8 +6687,8 @@ const nu = "_modal_t1s7a_1", ru = "_content_t1s7a_19", au = "_contentScrollable_
|
|
|
6683
6687
|
return fa.setAppElement("body"), /* @__PURE__ */ d.createElement(
|
|
6684
6688
|
fa,
|
|
6685
6689
|
Se({
|
|
6686
|
-
className: L(
|
|
6687
|
-
overlayClassName:
|
|
6690
|
+
className: L(Xe.modal, r),
|
|
6691
|
+
overlayClassName: Xe.overlay,
|
|
6688
6692
|
onAfterOpen: () => {
|
|
6689
6693
|
Qr.on();
|
|
6690
6694
|
},
|
|
@@ -6698,12 +6702,12 @@ const nu = "_modal_t1s7a_1", ru = "_content_t1s7a_19", au = "_contentScrollable_
|
|
|
6698
6702
|
role: "dialog",
|
|
6699
6703
|
"aria-modal": "true"
|
|
6700
6704
|
}, s),
|
|
6701
|
-
/* @__PURE__ */ d.createElement("div", { className:
|
|
6705
|
+
/* @__PURE__ */ d.createElement("div", { className: Xe.header }, /* @__PURE__ */ d.createElement(
|
|
6702
6706
|
"button",
|
|
6703
6707
|
{
|
|
6704
6708
|
type: "button",
|
|
6705
6709
|
onClick: n,
|
|
6706
|
-
className: L(
|
|
6710
|
+
className: L(Xe.closeButton, Y.closeButton),
|
|
6707
6711
|
"data-testid": "modal-close-button",
|
|
6708
6712
|
"aria-label": c.formatMessage({
|
|
6709
6713
|
id: "accessibility.close-button.aria-label",
|
|
@@ -6712,7 +6716,7 @@ const nu = "_modal_t1s7a_1", ru = "_content_t1s7a_19", au = "_contentScrollable_
|
|
|
6712
6716
|
},
|
|
6713
6717
|
/* @__PURE__ */ d.createElement(tu, { "aria-hidden": "true" })
|
|
6714
6718
|
)),
|
|
6715
|
-
/* @__PURE__ */ d.createElement("div", { className: L(
|
|
6719
|
+
/* @__PURE__ */ d.createElement("div", { className: L(Xe.content, a, { [Xe.contentScrollable]: i }) }, e)
|
|
6716
6720
|
);
|
|
6717
6721
|
}, uu = "_skipLinks_ki0vu_2", cu = "_skipLinksList_ki0vu_10", mu = "_skipLinkItem_ki0vu_16", fu = "_skipLink_ki0vu_2", Rt = {
|
|
6718
6722
|
skipLinks: uu,
|
|
@@ -7404,7 +7408,7 @@ const Eu = "_openModalInfo_a4893_1", xu = {
|
|
|
7404
7408
|
list: Qu,
|
|
7405
7409
|
listItem: Yu,
|
|
7406
7410
|
bullet: ec
|
|
7407
|
-
},
|
|
7411
|
+
}, Ke = (e) => /* @__PURE__ */ d.createElement("strong", null, e), Wi = ({ isCurrentPlanP1X: e, id: t }) => (
|
|
7408
7412
|
// TODO: refactor this component into subcomponents to factorize code and make it cleaner
|
|
7409
7413
|
/* @__PURE__ */ d.createElement(
|
|
7410
7414
|
"div",
|
|
@@ -7430,42 +7434,42 @@ const Eu = "_openModalInfo_a4893_1", xu = {
|
|
|
7430
7434
|
{
|
|
7431
7435
|
id: "eligibility-modal.p1x-bullet-1",
|
|
7432
7436
|
defaultMessage: "Choisissez <strong>Alma - Payer maintenant</strong> au moment du paiement.",
|
|
7433
|
-
values: { strong:
|
|
7437
|
+
values: { strong: Ke }
|
|
7434
7438
|
}
|
|
7435
7439
|
) : /* @__PURE__ */ d.createElement(
|
|
7436
7440
|
k,
|
|
7437
7441
|
{
|
|
7438
7442
|
id: "eligibility-modal.bullet-1",
|
|
7439
7443
|
defaultMessage: "Choisissez <strong>Alma</strong> au moment du paiement.",
|
|
7440
|
-
values: { strong:
|
|
7444
|
+
values: { strong: Ke }
|
|
7441
7445
|
}
|
|
7442
7446
|
))), /* @__PURE__ */ d.createElement("li", { className: He.listItem }, /* @__PURE__ */ d.createElement("div", { className: L(He.bullet, Y.bullet) }, "2"), /* @__PURE__ */ d.createElement("div", { className: Y.infoMessage }, e ? /* @__PURE__ */ d.createElement(
|
|
7443
7447
|
k,
|
|
7444
7448
|
{
|
|
7445
7449
|
id: "eligibility-modal.p1x-bullet-2",
|
|
7446
7450
|
defaultMessage: "Renseignez les informations de votre <strong>carte bancaire.</strong>",
|
|
7447
|
-
values: { strong:
|
|
7451
|
+
values: { strong: Ke }
|
|
7448
7452
|
}
|
|
7449
7453
|
) : /* @__PURE__ */ d.createElement(
|
|
7450
7454
|
k,
|
|
7451
7455
|
{
|
|
7452
7456
|
id: "eligibility-modal.bullet-2",
|
|
7453
7457
|
defaultMessage: "Laissez-vous guider et validez votre paiement en <strong>2 minutes.</strong>",
|
|
7454
|
-
values: { strong:
|
|
7458
|
+
values: { strong: Ke }
|
|
7455
7459
|
}
|
|
7456
7460
|
))), /* @__PURE__ */ d.createElement("li", { className: He.listItem }, /* @__PURE__ */ d.createElement("div", { className: L(He.bullet, Y.bullet) }, "3"), /* @__PURE__ */ d.createElement("div", { className: Y.infoMessage }, e ? /* @__PURE__ */ d.createElement(
|
|
7457
7461
|
k,
|
|
7458
7462
|
{
|
|
7459
7463
|
id: "eligibility-modal.p1x-bullet-3",
|
|
7460
7464
|
defaultMessage: "<strong>La validation </strong> de votre paiement est instantanée !",
|
|
7461
|
-
values: { strong:
|
|
7465
|
+
values: { strong: Ke }
|
|
7462
7466
|
}
|
|
7463
7467
|
) : /* @__PURE__ */ d.createElement(
|
|
7464
7468
|
k,
|
|
7465
7469
|
{
|
|
7466
7470
|
id: "eligibility-modal.bullet-3",
|
|
7467
7471
|
defaultMessage: "<strong>Gardez le contrôle</strong> en avançant ou reculant vos échéances à votre rythme.",
|
|
7468
|
-
values: { strong:
|
|
7472
|
+
values: { strong: Ke }
|
|
7469
7473
|
}
|
|
7470
7474
|
))))
|
|
7471
7475
|
)
|
|
@@ -7773,26 +7777,26 @@ const Eu = "_openModalInfo_a4893_1", xu = {
|
|
|
7773
7777
|
), v = Ne(
|
|
7774
7778
|
() => h.filter((P) => P.eligible),
|
|
7775
7779
|
[h]
|
|
7776
|
-
),
|
|
7780
|
+
), b = Ne(
|
|
7777
7781
|
() => h.filter((P) => !P.hidden),
|
|
7778
7782
|
[h]
|
|
7779
7783
|
), x = xc({
|
|
7780
|
-
eligibilityPlans:
|
|
7784
|
+
eligibilityPlans: b,
|
|
7781
7785
|
suggestedPaymentPlan: i != null ? i : 0
|
|
7782
|
-
}),
|
|
7786
|
+
}), E = i !== void 0, [M, _] = te(!1), { announceText: T, announce: G } = Vi(), K = () => _(!0), $ = (P) => {
|
|
7783
7787
|
_(!1), l == null || l(P);
|
|
7784
7788
|
}, [Z, w] = te(!1), A = Ne(
|
|
7785
|
-
() =>
|
|
7789
|
+
() => b.reduce(
|
|
7786
7790
|
(P, J, ne) => J.eligible ? [...P, ne] : P,
|
|
7787
7791
|
[]
|
|
7788
7792
|
),
|
|
7789
|
-
[
|
|
7790
|
-
), F = Ne(() =>
|
|
7793
|
+
[b]
|
|
7794
|
+
), F = Ne(() => E && !m ? -1 : m != null ? m : kc, [m, E]), { current: S, onHover: C, onLeave: H } = Ec(A, F), g = Fe([]);
|
|
7791
7795
|
ee(() => {
|
|
7792
|
-
g.current = g.current.slice(0,
|
|
7793
|
-
}, [
|
|
7794
|
-
if (
|
|
7795
|
-
const P =
|
|
7796
|
+
g.current = g.current.slice(0, b.length);
|
|
7797
|
+
}, [b.length]), ee(() => {
|
|
7798
|
+
if (b[S] && y === ue.SUCCESS) {
|
|
7799
|
+
const P = b[S], J = ha(P, p), ne = p.formatMessage(
|
|
7796
7800
|
{
|
|
7797
7801
|
id: "accessibility.plan-selection-changed",
|
|
7798
7802
|
defaultMessage: "Plan sélectionné : {planDescription}"
|
|
@@ -7802,7 +7806,7 @@ const Eu = "_openModalInfo_a4893_1", xu = {
|
|
|
7802
7806
|
G(ne, 1e3);
|
|
7803
7807
|
}
|
|
7804
7808
|
}, [S, p, y, G]), ee(() => {
|
|
7805
|
-
y === ue.SUCCESS &&
|
|
7809
|
+
y === ue.SUCCESS && E && (C(x), H());
|
|
7806
7810
|
}, [y]), bc({
|
|
7807
7811
|
status: y,
|
|
7808
7812
|
hasUserInteracted: Z,
|
|
@@ -7833,11 +7837,11 @@ const Eu = "_openModalInfo_a4893_1", xu = {
|
|
|
7833
7837
|
};
|
|
7834
7838
|
if (y === ue.PENDING)
|
|
7835
7839
|
return /* @__PURE__ */ d.createElement("div", { className: L(Q.widgetContainer, Q.pending) }, /* @__PURE__ */ d.createElement(_c, null));
|
|
7836
|
-
if (n && v.length === 0 ||
|
|
7840
|
+
if (n && v.length === 0 || b.length === 0 || y === ue.FAILED)
|
|
7837
7841
|
return null;
|
|
7838
7842
|
const ge = (P) => {
|
|
7839
7843
|
P.preventDefault(), v.length > 0 && K();
|
|
7840
|
-
}, fe =
|
|
7844
|
+
}, fe = b[S], xt = v.length > 0 && !!(fe != null && fe.eligible) && fe.installments_count > 4, Re = {};
|
|
7841
7845
|
return xt && (Re.role = "button", Re.tabIndex = 0, Re["aria-haspopup"] = "dialog", Re.onClick = ge, Re.onKeyDown = (P) => {
|
|
7842
7846
|
(P.key === "Enter" || P.key === " ") && ge(P);
|
|
7843
7847
|
}), /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement(
|
|
@@ -7905,7 +7909,7 @@ const Eu = "_openModalInfo_a4893_1", xu = {
|
|
|
7905
7909
|
defaultMessage: "Options de paiement disponibles"
|
|
7906
7910
|
})
|
|
7907
7911
|
},
|
|
7908
|
-
|
|
7912
|
+
b.map((P, J) => {
|
|
7909
7913
|
const ne = J === S, ye = P.eligible;
|
|
7910
7914
|
return /* @__PURE__ */ d.createElement(
|
|
7911
7915
|
"button",
|
|
@@ -7980,12 +7984,12 @@ const Eu = "_openModalInfo_a4893_1", xu = {
|
|
|
7980
7984
|
cards: s
|
|
7981
7985
|
}
|
|
7982
7986
|
), /* @__PURE__ */ d.createElement("div", { role: "alert", "aria-live": "assertive", className: Q.announceText }, T));
|
|
7983
|
-
},
|
|
7987
|
+
}, Je = /* @__PURE__ */ new Map(), Bc = (e, t, n) => {
|
|
7984
7988
|
var a;
|
|
7985
7989
|
const r = document.querySelector(n.container);
|
|
7986
7990
|
if (r) {
|
|
7987
|
-
const i =
|
|
7988
|
-
i && (i.unmount(),
|
|
7991
|
+
const i = Je.get(r);
|
|
7992
|
+
i && (i.unmount(), Je.delete(r));
|
|
7989
7993
|
}
|
|
7990
7994
|
if (t === ut.PaymentPlans) {
|
|
7991
7995
|
const {
|
|
@@ -8001,7 +8005,7 @@ const Eu = "_openModalInfo_a4893_1", xu = {
|
|
|
8001
8005
|
merchantCoversAllFees: h,
|
|
8002
8006
|
locale: y = Te.en,
|
|
8003
8007
|
cards: v,
|
|
8004
|
-
onModalClose:
|
|
8008
|
+
onModalClose: b
|
|
8005
8009
|
} = n;
|
|
8006
8010
|
if (r) {
|
|
8007
8011
|
const x = Ar(r);
|
|
@@ -8021,10 +8025,10 @@ const Eu = "_openModalInfo_a4893_1", xu = {
|
|
|
8021
8025
|
merchantCoversAllFees: h,
|
|
8022
8026
|
transitionDelay: o,
|
|
8023
8027
|
hideBorder: c,
|
|
8024
|
-
onModalClose:
|
|
8028
|
+
onModalClose: b
|
|
8025
8029
|
}
|
|
8026
8030
|
))
|
|
8027
|
-
),
|
|
8031
|
+
), Je.set(r, x);
|
|
8028
8032
|
}
|
|
8029
8033
|
}
|
|
8030
8034
|
if (t === ut.Modal) {
|
|
@@ -8040,8 +8044,8 @@ const Eu = "_openModalInfo_a4893_1", xu = {
|
|
|
8040
8044
|
onClose: p
|
|
8041
8045
|
} = n, h = (v) => {
|
|
8042
8046
|
if (!r) return;
|
|
8043
|
-
const
|
|
8044
|
-
|
|
8047
|
+
const b = Je.get(r);
|
|
8048
|
+
b && (b.unmount(), Je.delete(r)), p == null || p(v);
|
|
8045
8049
|
}, y = () => {
|
|
8046
8050
|
if (r) {
|
|
8047
8051
|
const v = Ar(r);
|
|
@@ -8059,7 +8063,7 @@ const Eu = "_openModalInfo_a4893_1", xu = {
|
|
|
8059
8063
|
cards: l
|
|
8060
8064
|
}
|
|
8061
8065
|
))
|
|
8062
|
-
),
|
|
8066
|
+
), Je.set(r, v);
|
|
8063
8067
|
}
|
|
8064
8068
|
};
|
|
8065
8069
|
return i && ((a = document.querySelector(i)) == null || a.addEventListener("click", y, !1)), {
|