@ranty/ranty-sdk 3.2.0-beta.0 → 3.2.0-beta.1
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.
|
@@ -916,7 +916,7 @@ function le(t) {
|
|
|
916
916
|
*/
|
|
917
917
|
var H1;
|
|
918
918
|
((H1 = window.HTMLSlotElement) === null || H1 === void 0 ? void 0 : H1.prototype.assignedElements) != null;
|
|
919
|
-
const aS = "@ranty/ranty-sdk", lS = "3.2.0-beta.
|
|
919
|
+
const aS = "@ranty/ranty-sdk", lS = "3.2.0-beta.1", dS = "Ranty sdk", cS = "dist/index.js", AS = {
|
|
920
920
|
".": "./dist/index.js"
|
|
921
921
|
}, uS = "types/index.d.ts", pS = [
|
|
922
922
|
"dist",
|
|
@@ -1456,10 +1456,10 @@ const u8 = (t) => {
|
|
|
1456
1456
|
setImmediate: PC,
|
|
1457
1457
|
asap: g8
|
|
1458
1458
|
};
|
|
1459
|
-
function
|
|
1459
|
+
function St(t, e, n, r, s) {
|
|
1460
1460
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), r && (this.request = r), s && (this.response = s, this.status = s.status ? s.status : null);
|
|
1461
1461
|
}
|
|
1462
|
-
Ie.inherits(
|
|
1462
|
+
Ie.inherits(St, Error, {
|
|
1463
1463
|
toJSON: function() {
|
|
1464
1464
|
return {
|
|
1465
1465
|
// Standard
|
|
@@ -1480,7 +1480,7 @@ Ie.inherits(kt, Error, {
|
|
|
1480
1480
|
};
|
|
1481
1481
|
}
|
|
1482
1482
|
});
|
|
1483
|
-
const jC =
|
|
1483
|
+
const jC = St.prototype, FC = {};
|
|
1484
1484
|
[
|
|
1485
1485
|
"ERR_BAD_OPTION_VALUE",
|
|
1486
1486
|
"ERR_BAD_OPTION",
|
|
@@ -1498,13 +1498,13 @@ const jC = kt.prototype, FC = {};
|
|
|
1498
1498
|
].forEach((t) => {
|
|
1499
1499
|
FC[t] = { value: t };
|
|
1500
1500
|
});
|
|
1501
|
-
Object.defineProperties(
|
|
1501
|
+
Object.defineProperties(St, FC);
|
|
1502
1502
|
Object.defineProperty(jC, "isAxiosError", { value: !0 });
|
|
1503
|
-
|
|
1503
|
+
St.from = (t, e, n, r, s, i) => {
|
|
1504
1504
|
const o = Object.create(jC);
|
|
1505
1505
|
return Ie.toFlatObject(t, o, function(d) {
|
|
1506
1506
|
return d !== Error.prototype;
|
|
1507
|
-
}, (a) => a !== "isAxiosError"),
|
|
1507
|
+
}, (a) => a !== "isAxiosError"), St.call(o, t.message, e, n, r, s), o.cause = t, o.name = t.name, i && Object.assign(o, i), o;
|
|
1508
1508
|
};
|
|
1509
1509
|
const f8 = null;
|
|
1510
1510
|
function mv(t) {
|
|
@@ -1543,7 +1543,7 @@ function Qm(t, e, n) {
|
|
|
1543
1543
|
if (Ie.isDate(m))
|
|
1544
1544
|
return m.toISOString();
|
|
1545
1545
|
if (!d && Ie.isBlob(m))
|
|
1546
|
-
throw new
|
|
1546
|
+
throw new St("Blob is not supported. Use a Buffer instead.");
|
|
1547
1547
|
return Ie.isArrayBuffer(m) || Ie.isTypedArray(m) ? d && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
|
|
1548
1548
|
}
|
|
1549
1549
|
function c(m, y, _) {
|
|
@@ -1791,7 +1791,7 @@ const d2 = {
|
|
|
1791
1791
|
return JSON.parse(e);
|
|
1792
1792
|
} catch (a) {
|
|
1793
1793
|
if (o)
|
|
1794
|
-
throw a.name === "SyntaxError" ?
|
|
1794
|
+
throw a.name === "SyntaxError" ? St.from(a, St.ERR_BAD_RESPONSE, this, null, this.response) : a;
|
|
1795
1795
|
}
|
|
1796
1796
|
}
|
|
1797
1797
|
return e;
|
|
@@ -2027,16 +2027,16 @@ function QC(t) {
|
|
|
2027
2027
|
return !!(t && t.__CANCEL__);
|
|
2028
2028
|
}
|
|
2029
2029
|
function HA(t, e, n) {
|
|
2030
|
-
|
|
2030
|
+
St.call(this, t == null ? "canceled" : t, St.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
2031
2031
|
}
|
|
2032
|
-
Ie.inherits(HA,
|
|
2032
|
+
Ie.inherits(HA, St, {
|
|
2033
2033
|
__CANCEL__: !0
|
|
2034
2034
|
});
|
|
2035
2035
|
function MC(t, e, n) {
|
|
2036
2036
|
const r = n.config.validateStatus;
|
|
2037
|
-
!n.status || !r || r(n.status) ? t(n) : e(new
|
|
2037
|
+
!n.status || !r || r(n.status) ? t(n) : e(new St(
|
|
2038
2038
|
"Request failed with status code " + n.status,
|
|
2039
|
-
[
|
|
2039
|
+
[St.ERR_BAD_REQUEST, St.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
2040
2040
|
n.config,
|
|
2041
2041
|
n.request,
|
|
2042
2042
|
n
|
|
@@ -2261,15 +2261,15 @@ const HC = (t) => {
|
|
|
2261
2261
|
"onloadend" in _ ? _.onloadend = b : _.onreadystatechange = function() {
|
|
2262
2262
|
!_ || _.readyState !== 4 || _.status === 0 && !(_.responseURL && _.responseURL.indexOf("file:") === 0) || setTimeout(b);
|
|
2263
2263
|
}, _.onabort = function() {
|
|
2264
|
-
_ && (r(new
|
|
2264
|
+
_ && (r(new St("Request aborted", St.ECONNABORTED, t, _)), _ = null);
|
|
2265
2265
|
}, _.onerror = function() {
|
|
2266
|
-
r(new
|
|
2266
|
+
r(new St("Network Error", St.ERR_NETWORK, t, _)), _ = null;
|
|
2267
2267
|
}, _.ontimeout = function() {
|
|
2268
2268
|
let N = s.timeout ? "timeout of " + s.timeout + "ms exceeded" : "timeout exceeded";
|
|
2269
2269
|
const V = s.transitional || NC;
|
|
2270
|
-
s.timeoutErrorMessage && (N = s.timeoutErrorMessage), r(new
|
|
2270
|
+
s.timeoutErrorMessage && (N = s.timeoutErrorMessage), r(new St(
|
|
2271
2271
|
N,
|
|
2272
|
-
V.clarifyTimeoutError ?
|
|
2272
|
+
V.clarifyTimeoutError ? St.ETIMEDOUT : St.ECONNABORTED,
|
|
2273
2273
|
t,
|
|
2274
2274
|
_
|
|
2275
2275
|
)), _ = null;
|
|
@@ -2280,7 +2280,7 @@ const HC = (t) => {
|
|
|
2280
2280
|
}, s.cancelToken && s.cancelToken.subscribe(c), s.signal && (s.signal.aborted ? c() : s.signal.addEventListener("abort", c)));
|
|
2281
2281
|
const x = L8(s.url);
|
|
2282
2282
|
if (x && jr.protocols.indexOf(x) === -1) {
|
|
2283
|
-
r(new
|
|
2283
|
+
r(new St("Unsupported protocol " + x + ":", St.ERR_BAD_REQUEST, t));
|
|
2284
2284
|
return;
|
|
2285
2285
|
}
|
|
2286
2286
|
_.send(i || null);
|
|
@@ -2293,11 +2293,11 @@ const HC = (t) => {
|
|
|
2293
2293
|
if (!s) {
|
|
2294
2294
|
s = !0, a();
|
|
2295
2295
|
const c = l instanceof Error ? l : this.reason;
|
|
2296
|
-
r.abort(c instanceof
|
|
2296
|
+
r.abort(c instanceof St ? c : new HA(c instanceof Error ? c.message : c));
|
|
2297
2297
|
}
|
|
2298
2298
|
};
|
|
2299
2299
|
let o = e && setTimeout(() => {
|
|
2300
|
-
o = null, i(new
|
|
2300
|
+
o = null, i(new St(`timeout ${e} of ms exceeded`, St.ETIMEDOUT));
|
|
2301
2301
|
}, e);
|
|
2302
2302
|
const a = () => {
|
|
2303
2303
|
t && (o && clearTimeout(o), o = null, t.forEach((l) => {
|
|
@@ -2408,7 +2408,7 @@ const HC = (t) => {
|
|
|
2408
2408
|
zm && ((t) => {
|
|
2409
2409
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
2410
2410
|
!Qf[e] && (Qf[e] = Ie.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
|
|
2411
|
-
throw new
|
|
2411
|
+
throw new St(`Response type '${e}' is not supported`, St.ERR_NOT_SUPPORT, r);
|
|
2412
2412
|
});
|
|
2413
2413
|
});
|
|
2414
2414
|
})(new Response());
|
|
@@ -2507,11 +2507,11 @@ const tI = (t) => ce(void 0, null, function* () {
|
|
|
2507
2507
|
});
|
|
2508
2508
|
} catch (b) {
|
|
2509
2509
|
throw y && y(), b && b.name === "TypeError" && /fetch/i.test(b.message) ? Object.assign(
|
|
2510
|
-
new
|
|
2510
|
+
new St("Network Error", St.ERR_NETWORK, t, m),
|
|
2511
2511
|
{
|
|
2512
2512
|
cause: b.cause || b
|
|
2513
2513
|
}
|
|
2514
|
-
) :
|
|
2514
|
+
) : St.from(b, b && b.code, t, m);
|
|
2515
2515
|
}
|
|
2516
2516
|
})), bv = {
|
|
2517
2517
|
http: f8,
|
|
@@ -2537,7 +2537,7 @@ const q5 = (t) => `- ${t}`, sI = (t) => Ie.isFunction(t) || t === null || t ===
|
|
|
2537
2537
|
n = t[i];
|
|
2538
2538
|
let o;
|
|
2539
2539
|
if (r = n, !sI(n) && (r = bv[(o = String(n)).toLowerCase()], r === void 0))
|
|
2540
|
-
throw new
|
|
2540
|
+
throw new St(`Unknown adapter '${o}'`);
|
|
2541
2541
|
if (r)
|
|
2542
2542
|
break;
|
|
2543
2543
|
s[o || "#" + i] = r;
|
|
@@ -2549,7 +2549,7 @@ const q5 = (t) => `- ${t}`, sI = (t) => Ie.isFunction(t) || t === null || t ===
|
|
|
2549
2549
|
let o = e ? i.length > 1 ? `since :
|
|
2550
2550
|
` + i.map(q5).join(`
|
|
2551
2551
|
`) : " " + q5(i[0]) : "as no adapter specified";
|
|
2552
|
-
throw new
|
|
2552
|
+
throw new St(
|
|
2553
2553
|
"There is no suitable adapter to dispatch the request " + o,
|
|
2554
2554
|
"ERR_NOT_SUPPORT"
|
|
2555
2555
|
);
|
|
@@ -2593,9 +2593,9 @@ Hm.transitional = function(e, n, r) {
|
|
|
2593
2593
|
}
|
|
2594
2594
|
return (i, o, a) => {
|
|
2595
2595
|
if (e === !1)
|
|
2596
|
-
throw new
|
|
2596
|
+
throw new St(
|
|
2597
2597
|
s(o, " has been removed" + (n ? " in " + n : "")),
|
|
2598
|
-
|
|
2598
|
+
St.ERR_DEPRECATED
|
|
2599
2599
|
);
|
|
2600
2600
|
return n && !K5[o] && (K5[o] = !0, console.warn(
|
|
2601
2601
|
s(
|
|
@@ -2610,7 +2610,7 @@ Hm.spelling = function(e) {
|
|
|
2610
2610
|
};
|
|
2611
2611
|
function iI(t, e, n) {
|
|
2612
2612
|
if (typeof t != "object")
|
|
2613
|
-
throw new
|
|
2613
|
+
throw new St("options must be an object", St.ERR_BAD_OPTION_VALUE);
|
|
2614
2614
|
const r = Object.keys(t);
|
|
2615
2615
|
let s = r.length;
|
|
2616
2616
|
for (; s-- > 0; ) {
|
|
@@ -2618,11 +2618,11 @@ function iI(t, e, n) {
|
|
|
2618
2618
|
if (o) {
|
|
2619
2619
|
const a = t[i], d = a === void 0 || o(a, i, t);
|
|
2620
2620
|
if (d !== !0)
|
|
2621
|
-
throw new
|
|
2621
|
+
throw new St("option " + i + " must be " + d, St.ERR_BAD_OPTION_VALUE);
|
|
2622
2622
|
continue;
|
|
2623
2623
|
}
|
|
2624
2624
|
if (n !== !0)
|
|
2625
|
-
throw new
|
|
2625
|
+
throw new St("Unknown option " + i, St.ERR_BAD_OPTION);
|
|
2626
2626
|
}
|
|
2627
2627
|
}
|
|
2628
2628
|
const gf = {
|
|
@@ -2921,7 +2921,7 @@ Kn.CancelToken = oI;
|
|
|
2921
2921
|
Kn.isCancel = QC;
|
|
2922
2922
|
Kn.VERSION = GC;
|
|
2923
2923
|
Kn.toFormData = Qm;
|
|
2924
|
-
Kn.AxiosError =
|
|
2924
|
+
Kn.AxiosError = St;
|
|
2925
2925
|
Kn.Cancel = Kn.CanceledError;
|
|
2926
2926
|
Kn.all = function(e) {
|
|
2927
2927
|
return Promise.all(e);
|
|
@@ -4127,7 +4127,7 @@ var W1 = (
|
|
|
4127
4127
|
return this.tagClass === 0 && this.tagNumber === 0;
|
|
4128
4128
|
}, t;
|
|
4129
4129
|
}()
|
|
4130
|
-
), ol, zI = 244837814094590, n_ = (zI & 16777215) == 15715070, zr = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997], HI = (1 << 26) / zr[zr.length - 1],
|
|
4130
|
+
), ol, zI = 244837814094590, n_ = (zI & 16777215) == 15715070, zr = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997], HI = (1 << 26) / zr[zr.length - 1], Tt = (
|
|
4131
4131
|
/** @class */
|
|
4132
4132
|
function() {
|
|
4133
4133
|
function t(e, n, r) {
|
|
@@ -4688,7 +4688,7 @@ var W1 = (
|
|
|
4688
4688
|
}
|
|
4689
4689
|
return t.prototype.convert = function(e) {
|
|
4690
4690
|
var n = Ft();
|
|
4691
|
-
return e.abs().dlShiftTo(this.m.t, n), n.divRemTo(this.m, null, n), e.s < 0 && n.compareTo(
|
|
4691
|
+
return e.abs().dlShiftTo(this.m.t, n), n.divRemTo(this.m, null, n), e.s < 0 && n.compareTo(Tt.ZERO) > 0 && this.m.subTo(n, n), n;
|
|
4692
4692
|
}, t.prototype.revert = function(e) {
|
|
4693
4693
|
var n = Ft();
|
|
4694
4694
|
return e.copyTo(n), this.reduce(n), n;
|
|
@@ -4711,7 +4711,7 @@ var W1 = (
|
|
|
4711
4711
|
/** @class */
|
|
4712
4712
|
function() {
|
|
4713
4713
|
function t(e) {
|
|
4714
|
-
this.m = e, this.r2 = Ft(), this.q3 = Ft(),
|
|
4714
|
+
this.m = e, this.r2 = Ft(), this.q3 = Ft(), Tt.ONE.dlShiftTo(2 * e.t, this.r2), this.mu = this.r2.divide(e);
|
|
4715
4715
|
}
|
|
4716
4716
|
return t.prototype.convert = function(e) {
|
|
4717
4717
|
if (e.s < 0 || e.t > 2 * this.m.t)
|
|
@@ -4735,38 +4735,38 @@ var W1 = (
|
|
|
4735
4735
|
}()
|
|
4736
4736
|
);
|
|
4737
4737
|
function Ft() {
|
|
4738
|
-
return new
|
|
4738
|
+
return new Tt(null);
|
|
4739
4739
|
}
|
|
4740
4740
|
function Bn(t, e) {
|
|
4741
|
-
return new
|
|
4741
|
+
return new Tt(t, e);
|
|
4742
4742
|
}
|
|
4743
4743
|
var i_ = typeof navigator != "undefined";
|
|
4744
|
-
i_ && n_ && navigator.appName == "Microsoft Internet Explorer" ? (
|
|
4744
|
+
i_ && n_ && navigator.appName == "Microsoft Internet Explorer" ? (Tt.prototype.am = function(e, n, r, s, i, o) {
|
|
4745
4745
|
for (var a = n & 32767, d = n >> 15; --o >= 0; ) {
|
|
4746
4746
|
var l = this[e] & 32767, c = this[e++] >> 15, u = d * l + c * a;
|
|
4747
4747
|
l = a * l + ((u & 32767) << 15) + r[s] + (i & 1073741823), i = (l >>> 30) + (u >>> 15) + d * c + (i >>> 30), r[s++] = l & 1073741823;
|
|
4748
4748
|
}
|
|
4749
4749
|
return i;
|
|
4750
|
-
}, ol = 30) : i_ && n_ && navigator.appName != "Netscape" ? (
|
|
4750
|
+
}, ol = 30) : i_ && n_ && navigator.appName != "Netscape" ? (Tt.prototype.am = function(e, n, r, s, i, o) {
|
|
4751
4751
|
for (; --o >= 0; ) {
|
|
4752
4752
|
var a = n * this[e++] + r[s] + i;
|
|
4753
4753
|
i = Math.floor(a / 67108864), r[s++] = a & 67108863;
|
|
4754
4754
|
}
|
|
4755
4755
|
return i;
|
|
4756
|
-
}, ol = 26) : (
|
|
4756
|
+
}, ol = 26) : (Tt.prototype.am = function(e, n, r, s, i, o) {
|
|
4757
4757
|
for (var a = n & 16383, d = n >> 14; --o >= 0; ) {
|
|
4758
4758
|
var l = this[e] & 16383, c = this[e++] >> 14, u = d * l + c * a;
|
|
4759
4759
|
l = a * l + ((u & 16383) << 14) + r[s] + i, i = (l >> 28) + (u >> 14) + d * c, r[s++] = l & 268435455;
|
|
4760
4760
|
}
|
|
4761
4761
|
return i;
|
|
4762
4762
|
}, ol = 28);
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4763
|
+
Tt.prototype.DB = ol;
|
|
4764
|
+
Tt.prototype.DM = (1 << ol) - 1;
|
|
4765
|
+
Tt.prototype.DV = 1 << ol;
|
|
4766
4766
|
var g2 = 52;
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4767
|
+
Tt.prototype.FV = Math.pow(2, g2);
|
|
4768
|
+
Tt.prototype.F1 = g2 - ol;
|
|
4769
|
+
Tt.prototype.F2 = 2 * ol - g2;
|
|
4770
4770
|
var qm = [], qA, Hs;
|
|
4771
4771
|
qA = "0".charCodeAt(0);
|
|
4772
4772
|
for (Hs = 0; Hs <= 9; ++Hs)
|
|
@@ -4789,8 +4789,8 @@ function ug(t) {
|
|
|
4789
4789
|
var e = 1, n;
|
|
4790
4790
|
return (n = t >>> 16) != 0 && (t = n, e += 16), (n = t >> 8) != 0 && (t = n, e += 8), (n = t >> 4) != 0 && (t = n, e += 4), (n = t >> 2) != 0 && (t = n, e += 2), (n = t >> 1) != 0 && (t = n, e += 1), e;
|
|
4791
4791
|
}
|
|
4792
|
-
|
|
4793
|
-
|
|
4792
|
+
Tt.ZERO = Va(0);
|
|
4793
|
+
Tt.ONE = Va(1);
|
|
4794
4794
|
var KI = (
|
|
4795
4795
|
/** @class */
|
|
4796
4796
|
function() {
|
|
@@ -4879,7 +4879,7 @@ function JI(t, e) {
|
|
|
4879
4879
|
i.nextBytes(o);
|
|
4880
4880
|
n[--e] = o[0];
|
|
4881
4881
|
}
|
|
4882
|
-
return n[--e] = 2, n[--e] = 0, new
|
|
4882
|
+
return n[--e] = 2, n[--e] = 0, new Tt(n);
|
|
4883
4883
|
}
|
|
4884
4884
|
var XI = (
|
|
4885
4885
|
/** @class */
|
|
@@ -4914,17 +4914,17 @@ var XI = (
|
|
|
4914
4914
|
}, t.prototype.generate = function(e, n) {
|
|
4915
4915
|
var r = new Ev(), s = e >> 1;
|
|
4916
4916
|
this.e = parseInt(n, 16);
|
|
4917
|
-
for (var i = new
|
|
4918
|
-
for (; this.p = new
|
|
4917
|
+
for (var i = new Tt(n, 16); ; ) {
|
|
4918
|
+
for (; this.p = new Tt(e - s, 1, r), !(this.p.subtract(Tt.ONE).gcd(i).compareTo(Tt.ONE) == 0 && this.p.isProbablePrime(10)); )
|
|
4919
4919
|
;
|
|
4920
|
-
for (; this.q = new
|
|
4920
|
+
for (; this.q = new Tt(s, 1, r), !(this.q.subtract(Tt.ONE).gcd(i).compareTo(Tt.ONE) == 0 && this.q.isProbablePrime(10)); )
|
|
4921
4921
|
;
|
|
4922
4922
|
if (this.p.compareTo(this.q) <= 0) {
|
|
4923
4923
|
var o = this.p;
|
|
4924
4924
|
this.p = this.q, this.q = o;
|
|
4925
4925
|
}
|
|
4926
|
-
var a = this.p.subtract(
|
|
4927
|
-
if (l.gcd(i).compareTo(
|
|
4926
|
+
var a = this.p.subtract(Tt.ONE), d = this.q.subtract(Tt.ONE), l = a.multiply(d);
|
|
4927
|
+
if (l.gcd(i).compareTo(Tt.ONE) == 0) {
|
|
4928
4928
|
this.n = this.p.multiply(this.q), this.d = i.modInverse(l), this.dmp1 = this.d.mod(a), this.dmq1 = this.d.mod(d), this.coeff = this.q.modInverse(this.p);
|
|
4929
4929
|
break;
|
|
4930
4930
|
}
|
|
@@ -4935,26 +4935,26 @@ var XI = (
|
|
|
4935
4935
|
}, t.prototype.generateAsync = function(e, n, r) {
|
|
4936
4936
|
var s = new Ev(), i = e >> 1;
|
|
4937
4937
|
this.e = parseInt(n, 16);
|
|
4938
|
-
var o = new
|
|
4938
|
+
var o = new Tt(n, 16), a = this, d = function() {
|
|
4939
4939
|
var l = function() {
|
|
4940
4940
|
if (a.p.compareTo(a.q) <= 0) {
|
|
4941
4941
|
var h = a.p;
|
|
4942
4942
|
a.p = a.q, a.q = h;
|
|
4943
4943
|
}
|
|
4944
|
-
var p = a.p.subtract(
|
|
4945
|
-
y.gcd(o).compareTo(
|
|
4944
|
+
var p = a.p.subtract(Tt.ONE), m = a.q.subtract(Tt.ONE), y = p.multiply(m);
|
|
4945
|
+
y.gcd(o).compareTo(Tt.ONE) == 0 ? (a.n = a.p.multiply(a.q), a.d = o.modInverse(y), a.dmp1 = a.d.mod(p), a.dmq1 = a.d.mod(m), a.coeff = a.q.modInverse(a.p), setTimeout(function() {
|
|
4946
4946
|
r();
|
|
4947
4947
|
}, 0)) : setTimeout(d, 0);
|
|
4948
4948
|
}, c = function() {
|
|
4949
4949
|
a.q = Ft(), a.q.fromNumberAsync(i, 1, s, function() {
|
|
4950
|
-
a.q.subtract(
|
|
4951
|
-
h.compareTo(
|
|
4950
|
+
a.q.subtract(Tt.ONE).gcda(o, function(h) {
|
|
4951
|
+
h.compareTo(Tt.ONE) == 0 && a.q.isProbablePrime(10) ? setTimeout(l, 0) : setTimeout(c, 0);
|
|
4952
4952
|
});
|
|
4953
4953
|
});
|
|
4954
4954
|
}, u = function() {
|
|
4955
4955
|
a.p = Ft(), a.p.fromNumberAsync(e - i, 1, s, function() {
|
|
4956
|
-
a.p.subtract(
|
|
4957
|
-
h.compareTo(
|
|
4956
|
+
a.p.subtract(Tt.ONE).gcda(o, function(h) {
|
|
4957
|
+
h.compareTo(Tt.ONE) == 0 && a.p.isProbablePrime(10) ? setTimeout(c, 0) : setTimeout(u, 0);
|
|
4958
4958
|
});
|
|
4959
4959
|
});
|
|
4960
4960
|
};
|
|
@@ -5084,7 +5084,7 @@ Re.asn1.ASN1Util = new function() {
|
|
|
5084
5084
|
r % 2 == 1 ? r += 1 : e.match(/^[0-7]/) || (r += 2);
|
|
5085
5085
|
for (var s = "", i = 0; i < r; i++)
|
|
5086
5086
|
s += "f";
|
|
5087
|
-
var o = new
|
|
5087
|
+
var o = new Tt(s, 16), a = o.xor(t).add(Tt.ONE);
|
|
5088
5088
|
e = a.toString(16).replace(/^-/, "");
|
|
5089
5089
|
}
|
|
5090
5090
|
return e;
|
|
@@ -5164,7 +5164,7 @@ Re.asn1.ASN1Util.oidHexToInt = function(t) {
|
|
|
5164
5164
|
for (var s = "", e = parseInt(t.substr(0, 2), 16), n = Math.floor(e / 40), r = e % 40, s = n + "." + r, i = "", o = 2; o < t.length; o += 2) {
|
|
5165
5165
|
var a = parseInt(t.substr(o, 2), 16), d = ("00000000" + a.toString(2)).slice(-8);
|
|
5166
5166
|
if (i = i + d.substr(1, 7), d.substr(0, 1) == "0") {
|
|
5167
|
-
var l = new
|
|
5167
|
+
var l = new Tt(i, 2);
|
|
5168
5168
|
s = s + "." + l.toString(10), i = "";
|
|
5169
5169
|
}
|
|
5170
5170
|
}
|
|
@@ -5175,7 +5175,7 @@ Re.asn1.ASN1Util.oidIntToHex = function(t) {
|
|
|
5175
5175
|
var d = a.toString(16);
|
|
5176
5176
|
return d.length == 1 && (d = "0" + d), d;
|
|
5177
5177
|
}, n = function(a) {
|
|
5178
|
-
var d = "", l = new
|
|
5178
|
+
var d = "", l = new Tt(a, 10), c = l.toString(2), u = 7 - c.length % 7;
|
|
5179
5179
|
u == 7 && (u = 0);
|
|
5180
5180
|
for (var h = "", p = 0; p < u; p++)
|
|
5181
5181
|
h += "0";
|
|
@@ -5276,7 +5276,7 @@ Re.asn1.DERInteger = function(t) {
|
|
|
5276
5276
|
Re.asn1.DERInteger.superclass.constructor.call(this), this.hT = "02", this.setByBigInteger = function(e) {
|
|
5277
5277
|
this.hTLV = null, this.isModified = !0, this.hV = Re.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e);
|
|
5278
5278
|
}, this.setByInteger = function(e) {
|
|
5279
|
-
var n = new
|
|
5279
|
+
var n = new Tt(String(e), 10);
|
|
5280
5280
|
this.setByBigInteger(n);
|
|
5281
5281
|
}, this.setValueHex = function(e) {
|
|
5282
5282
|
this.hV = e;
|
|
@@ -5338,7 +5338,7 @@ Re.asn1.DERObjectIdentifier = function(t) {
|
|
|
5338
5338
|
var s = r.toString(16);
|
|
5339
5339
|
return s.length == 1 && (s = "0" + s), s;
|
|
5340
5340
|
}, n = function(r) {
|
|
5341
|
-
var s = "", i = new
|
|
5341
|
+
var s = "", i = new Tt(r, 10), o = i.toString(2), a = 7 - o.length % 7;
|
|
5342
5342
|
a == 7 && (a = 0);
|
|
5343
5343
|
for (var d = "", l = 0; l < a; l++)
|
|
5344
5344
|
d += "0";
|
|
@@ -5374,7 +5374,7 @@ Re.asn1.DEREnumerated = function(t) {
|
|
|
5374
5374
|
Re.asn1.DEREnumerated.superclass.constructor.call(this), this.hT = "0a", this.setByBigInteger = function(e) {
|
|
5375
5375
|
this.hTLV = null, this.isModified = !0, this.hV = Re.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e);
|
|
5376
5376
|
}, this.setByInteger = function(e) {
|
|
5377
|
-
var n = new
|
|
5377
|
+
var n = new Tt(String(e), 10);
|
|
5378
5378
|
this.setByBigInteger(n);
|
|
5379
5379
|
}, this.setValueHex = function(e) {
|
|
5380
5380
|
this.hV = e;
|
|
@@ -5754,7 +5754,7 @@ function lT(t, e) {
|
|
|
5754
5754
|
const th = (t) => ce(void 0, null, function* () {
|
|
5755
5755
|
return (yield Pt.instanceWithRetries.get(`/sdk/payments/${t}`, {})).data.response;
|
|
5756
5756
|
});
|
|
5757
|
-
var at = /* @__PURE__ */ ((t) => (t.LOADING = "scof-loading", t.MAIN = "scof-main", t.HOLDER_FORM = "scof-holder-form", t.CARD_FORM = "scof-card-form", t.CARD_LIST = "scof-cards-list", t.PLANS = "scof-plans", t.SUMMARY = "scof-summary", t.STATUS = "scof-status", t.QR = "qr-component", t))(at || {}),
|
|
5757
|
+
var at = /* @__PURE__ */ ((t) => (t.LOADING = "scof-loading", t.MAIN = "scof-main", t.HOLDER_FORM = "scof-holder-form", t.CARD_FORM = "scof-card-form", t.CARD_LIST = "scof-cards-list", t.PLANS = "scof-plans", t.SUMMARY = "scof-summary", t.STATUS = "scof-status", t.QR = "qr-component", t))(at || {}), Ut = /* @__PURE__ */ ((t) => (t.LOADING = "manual-input-loading", t.MANUAL_HOME = "payment-manual-home", t.HOLDER_FORM = "payment-manual-holder-form", t.CARD_FORM = "payment-manual-card-form", t.PLANS = "payment-manual-plans", t.SUMMARY = "payment-manual-summary", t.STATUS = "payment-manual-status", t.QR = "qr-component", t.MANUAL_INPUT = "manual-input", t.INVOICE = "payment-manual-invoice", t))(Ut || {}), dt = /* @__PURE__ */ ((t) => (t.LOADING = "a2a-loading", t.MANUAL_HOME = "a2a-home", t.HOLDER_FORM = "a2a-holder-form", t.CARD_FORM = "a2a-card-form", t.PLANS = "a2a-plans", t.SUMMARY = "a2a-summary", t.ACCOUNT_LIST = "a2a-account-list", t.STATUS = "a2a-status", t.QR = "qr-component", t.MAIN = "a2a-main", t.INVOICE = "a2a-invoice", t.PCP_LIST = "a2a-pcp-list", t.PANEL_ASSOCIATION = "a2a-panel-association", t.ASSOCIATION_PROCESS = "a2a-association-process", t))(dt || {}), al = /* @__PURE__ */ ((t) => (t.LOADING = "a2a-feedback-loading", t.ACCOUNT_DETAILS = "a2a-feedback-account-details", t.STATUS = "a2a-feedback-status", t.HOME = "a2a-feedback-home", t))(al || {});
|
|
5758
5758
|
const d_ = {
|
|
5759
5759
|
"scof-loading": j`<scof-loading></scof-loading>`,
|
|
5760
5760
|
"scof-main": j`<scof-main></scof-main>`,
|
|
@@ -8736,7 +8736,7 @@ function tm(t, e, n) {
|
|
|
8736
8736
|
var r = n.getHandler(), s = Array.isArray(r) ? r : [r];
|
|
8737
8737
|
return B_[t] >= B_[n.getLevel()] && Yd(s, e);
|
|
8738
8738
|
}
|
|
8739
|
-
var
|
|
8739
|
+
var It = {
|
|
8740
8740
|
ok: "ok",
|
|
8741
8741
|
debug: "debug",
|
|
8742
8742
|
info: "info",
|
|
@@ -8746,7 +8746,7 @@ var St = {
|
|
|
8746
8746
|
critical: "critical",
|
|
8747
8747
|
alert: "alert",
|
|
8748
8748
|
emerg: "emerg"
|
|
8749
|
-
}, B_ = (ci = {}, ci[
|
|
8749
|
+
}, B_ = (ci = {}, ci[It.ok] = 0, ci[It.debug] = 1, ci[It.info] = 2, ci[It.notice] = 4, ci[It.warn] = 5, ci[It.error] = 6, ci[It.critical] = 7, ci[It.alert] = 8, ci[It.emerg] = 9, ci);
|
|
8750
8750
|
function Jm(t, e) {
|
|
8751
8751
|
var n = e === void 0 ? {} : e, r = n.includeMessage, s = r === void 0 ? !1 : r;
|
|
8752
8752
|
return {
|
|
@@ -8770,14 +8770,14 @@ var Jj = globalThis && globalThis.__decorate || function(t, e, n, r) {
|
|
|
8770
8770
|
console: "console",
|
|
8771
8771
|
http: "http",
|
|
8772
8772
|
silent: "silent"
|
|
8773
|
-
}, Xj = Object.keys(
|
|
8773
|
+
}, Xj = Object.keys(It), _i = (
|
|
8774
8774
|
/** @class */
|
|
8775
8775
|
function() {
|
|
8776
8776
|
function t(e, n, r, s, i, o) {
|
|
8777
|
-
s === void 0 && (s = Fp.http), i === void 0 && (i =
|
|
8777
|
+
s === void 0 && (s = Fp.http), i === void 0 && (i = It.debug), o === void 0 && (o = {}), this.handleLogStrategy = e, this.handlerType = s, this.level = i, this.contextManager = jv(n), this.contextManager.setContext(o), r && this.contextManager.setContextProperty("logger", { name: r });
|
|
8778
8778
|
}
|
|
8779
8779
|
return t.prototype.logImplementation = function(e, n, r, s, i) {
|
|
8780
|
-
r === void 0 && (r =
|
|
8780
|
+
r === void 0 && (r = It.info);
|
|
8781
8781
|
var o = Zo(n), a;
|
|
8782
8782
|
if (s != null) {
|
|
8783
8783
|
var d = UB({
|
|
@@ -8799,7 +8799,7 @@ var Jj = globalThis && globalThis.__decorate || function(t, e, n, r) {
|
|
|
8799
8799
|
status: r
|
|
8800
8800
|
}, this, i);
|
|
8801
8801
|
}, t.prototype.log = function(e, n, r, s) {
|
|
8802
|
-
r === void 0 && (r =
|
|
8802
|
+
r === void 0 && (r = It.info);
|
|
8803
8803
|
var i;
|
|
8804
8804
|
tm(r, Fp.http, this) && (i = Ym()), this.logImplementation(e, n, r, s, i);
|
|
8805
8805
|
}, t.prototype.setContext = function(e) {
|
|
@@ -8825,15 +8825,15 @@ var Jj = globalThis && globalThis.__decorate || function(t, e, n, r) {
|
|
|
8825
8825
|
], t.prototype, "logImplementation", null), t;
|
|
8826
8826
|
}()
|
|
8827
8827
|
);
|
|
8828
|
-
_i.prototype.ok = Aa(
|
|
8829
|
-
_i.prototype.debug = Aa(
|
|
8830
|
-
_i.prototype.info = Aa(
|
|
8831
|
-
_i.prototype.notice = Aa(
|
|
8832
|
-
_i.prototype.warn = Aa(
|
|
8833
|
-
_i.prototype.error = Aa(
|
|
8834
|
-
_i.prototype.critical = Aa(
|
|
8835
|
-
_i.prototype.alert = Aa(
|
|
8836
|
-
_i.prototype.emerg = Aa(
|
|
8828
|
+
_i.prototype.ok = Aa(It.ok);
|
|
8829
|
+
_i.prototype.debug = Aa(It.debug);
|
|
8830
|
+
_i.prototype.info = Aa(It.info);
|
|
8831
|
+
_i.prototype.notice = Aa(It.notice);
|
|
8832
|
+
_i.prototype.warn = Aa(It.warn);
|
|
8833
|
+
_i.prototype.error = Aa(It.error);
|
|
8834
|
+
_i.prototype.critical = Aa(It.critical);
|
|
8835
|
+
_i.prototype.alert = Aa(It.alert);
|
|
8836
|
+
_i.prototype.emerg = Aa(It.emerg);
|
|
8837
8837
|
function Aa(t) {
|
|
8838
8838
|
return function(e, n, r) {
|
|
8839
8839
|
var s;
|
|
@@ -9091,7 +9091,7 @@ function A7(t, e, n, r, s) {
|
|
|
9091
9091
|
}
|
|
9092
9092
|
});
|
|
9093
9093
|
}
|
|
9094
|
-
var rd, u7 = (rd = {}, rd[Hn.log] =
|
|
9094
|
+
var rd, u7 = (rd = {}, rd[Hn.log] = It.info, rd[Hn.debug] = It.debug, rd[Hn.info] = It.info, rd[Hn.warn] = It.warn, rd[Hn.error] = It.error, rd);
|
|
9095
9095
|
function p7(t, e) {
|
|
9096
9096
|
var n = Pj(t.forwardConsoleLogs).subscribe(function(r) {
|
|
9097
9097
|
var s = {
|
|
@@ -9116,8 +9116,8 @@ function p7(t, e) {
|
|
|
9116
9116
|
}
|
|
9117
9117
|
function h7(t, e) {
|
|
9118
9118
|
var n = PP(t, t.forwardReports).subscribe(function(r) {
|
|
9119
|
-
var s = r.message, i, o = r.originalError.type === "deprecation" ?
|
|
9120
|
-
o ===
|
|
9119
|
+
var s = r.message, i, o = r.originalError.type === "deprecation" ? It.warn : It.error;
|
|
9120
|
+
o === It.error ? i = Jm(r) : r.stack && (s += " Found in ".concat(EP(r.stack))), e.notify(0, {
|
|
9121
9121
|
rawLogsEvent: {
|
|
9122
9122
|
date: Sl(),
|
|
9123
9123
|
message: s,
|
|
@@ -9163,7 +9163,7 @@ function g7(t, e) {
|
|
|
9163
9163
|
status_code: o.status,
|
|
9164
9164
|
url: o.url
|
|
9165
9165
|
},
|
|
9166
|
-
status:
|
|
9166
|
+
status: It.error,
|
|
9167
9167
|
origin: Es.NETWORK
|
|
9168
9168
|
},
|
|
9169
9169
|
domainContext: l
|
|
@@ -9224,7 +9224,7 @@ function _7(t, e) {
|
|
|
9224
9224
|
date: i.startClocks.timeStamp,
|
|
9225
9225
|
error: Jm(i),
|
|
9226
9226
|
origin: Es.SOURCE,
|
|
9227
|
-
status:
|
|
9227
|
+
status: It.error
|
|
9228
9228
|
}
|
|
9229
9229
|
});
|
|
9230
9230
|
});
|
|
@@ -9256,7 +9256,7 @@ function C7(t) {
|
|
|
9256
9256
|
handleLog: e
|
|
9257
9257
|
};
|
|
9258
9258
|
}
|
|
9259
|
-
var B7 = (Ai = {}, Ai[
|
|
9259
|
+
var B7 = (Ai = {}, Ai[It.ok] = Hn.debug, Ai[It.debug] = Hn.debug, Ai[It.info] = Hn.info, Ai[It.notice] = Hn.info, Ai[It.warn] = Hn.warn, Ai[It.error] = Hn.error, Ai[It.critical] = Hn.error, Ai[It.alert] = Hn.error, Ai[It.emerg] = Hn.error, Ai);
|
|
9260
9260
|
function E7(t, e) {
|
|
9261
9261
|
var n = t.status, r = t.message;
|
|
9262
9262
|
gd[B7[n]].call(io, r, e);
|
|
@@ -9297,7 +9297,7 @@ function T7(t) {
|
|
|
9297
9297
|
message: e.message,
|
|
9298
9298
|
date: e.startClocks.timeStamp,
|
|
9299
9299
|
origin: Es.AGENT,
|
|
9300
|
-
status:
|
|
9300
|
+
status: It.error
|
|
9301
9301
|
}
|
|
9302
9302
|
}), zB("Error reported to customer", { "error.message": e.message });
|
|
9303
9303
|
};
|
|
@@ -9387,10 +9387,10 @@ function P7(t, e, n, r) {
|
|
|
9387
9387
|
}
|
|
9388
9388
|
var pp = s7(P7);
|
|
9389
9389
|
UP(Tl(), "DD_LOGS", pp);
|
|
9390
|
-
const j7 = "@ranty/ranty-sdk", F7 = "3.2.0-beta.
|
|
9390
|
+
const j7 = "@ranty/ranty-sdk", F7 = "3.2.0-beta.1", D7 = 3, R7 = !0, O7 = {
|
|
9391
9391
|
"": {
|
|
9392
9392
|
name: "@ranty/ranty-sdk",
|
|
9393
|
-
version: "3.2.0-beta.
|
|
9393
|
+
version: "3.2.0-beta.1",
|
|
9394
9394
|
license: "ISC",
|
|
9395
9395
|
dependencies: {
|
|
9396
9396
|
"@datadog/browser-logs": "^5.35.1",
|
|
@@ -37056,8 +37056,8 @@ var GO = {}.toString, WO = Array.isArray || function(t) {
|
|
|
37056
37056
|
vt !== -1 && (At -= At - vt), vt = -1;
|
|
37057
37057
|
} else
|
|
37058
37058
|
for (C + We > Ce && (C = Ce - We), At = C; At >= 0; At--) {
|
|
37059
|
-
for (var et = !0,
|
|
37060
|
-
if (st(R, At +
|
|
37059
|
+
for (var et = !0, Et = 0; Et < We; Et++)
|
|
37060
|
+
if (st(R, At + Et) !== st(w, Et)) {
|
|
37061
37061
|
et = !1;
|
|
37062
37062
|
break;
|
|
37063
37063
|
}
|
|
@@ -41580,7 +41580,8 @@ const Gu = sA, Ci = class extends EventTarget {
|
|
|
41580
41580
|
}, e);
|
|
41581
41581
|
}
|
|
41582
41582
|
static extendHeartbeat(e) {
|
|
41583
|
-
|
|
41583
|
+
const r = Date.now() - this.connectionStartTime, s = this.connectionDuration / 2;
|
|
41584
|
+
r < s && (this.isExtended = !0, this.stopHeartbeat(), this.startHeartbeat(e, this.extendedDuration));
|
|
41584
41585
|
}
|
|
41585
41586
|
static extendConnectionOnPayment() {
|
|
41586
41587
|
const e = Date.now() - this.connectionStartTime, r = Math.max(this.connectionDuration - e, 0) + this.extendedDuration;
|
|
@@ -41640,7 +41641,7 @@ Ci.isExtended = !1;
|
|
|
41640
41641
|
Ci.connectionAttemptCount = 0;
|
|
41641
41642
|
Ci.isRunning = !1;
|
|
41642
41643
|
Ci.webSocketServiceInstance = new Ci();
|
|
41643
|
-
let
|
|
41644
|
+
let Bt = Ci;
|
|
41644
41645
|
const Q6 = (t) => {
|
|
41645
41646
|
const e = t.trim().split(" ");
|
|
41646
41647
|
if (e.length === 1)
|
|
@@ -43444,7 +43445,7 @@ let ki = class t extends qe {
|
|
|
43444
43445
|
contextObject: {
|
|
43445
43446
|
payment_request_id: this.stateScofProps.paymentRequestId
|
|
43446
43447
|
}
|
|
43447
|
-
}), this.stateScof.isExtendedWs && (yield this.extendedWs()), !(pn.isPollingRunning() && !
|
|
43448
|
+
}), this.stateScof.isExtendedWs && (yield this.extendedWs()), !(pn.isPollingRunning() && !Bt.getEndPaymentTime()) && Bt.wsConnectionAttemptCount() > 0 && this.createEvent("button-pushed", at.MAIN);
|
|
43448
43449
|
});
|
|
43449
43450
|
}
|
|
43450
43451
|
loadData() {
|
|
@@ -44524,7 +44525,7 @@ let Ii = class extends qe {
|
|
|
44524
44525
|
this.isShowToast = !1;
|
|
44525
44526
|
}, 3e3);
|
|
44526
44527
|
}), (r = this.shadowRoot) == null || r.addEventListener("button-pushed", (s) => {
|
|
44527
|
-
this.stateScof.page = s.detail ? s.detail : at.MAIN, (s.detail === at.QR || s.detail === at.STATUS || s.detail === at.LOADING) && (this.isShowCardPayment = !1), s.detail === at.MAIN && (this.stateScof.isActiveWs || this.webSocket()), (this.stateScof.page === at.PLANS || this.stateScof.page === at.SUMMARY) && this.isShowToast === !0 && setTimeout(() => {
|
|
44528
|
+
Bt.extendHeartbeat(this.stateScof.statePaymentRequest.id), this.stateScof.page = s.detail ? s.detail : at.MAIN, (s.detail === at.QR || s.detail === at.STATUS || s.detail === at.LOADING) && (this.isShowCardPayment = !1), s.detail === at.MAIN && (this.stateScof.isActiveWs || this.webSocket()), (this.stateScof.page === at.PLANS || this.stateScof.page === at.SUMMARY) && this.isShowToast === !0 && setTimeout(() => {
|
|
44528
44529
|
this.isShowToast = !1;
|
|
44529
44530
|
}, 3e3), this.requestUpdate(), this.routerState(), this.stateScof.statePaymentRequest && ae.info("connectedCallback", {
|
|
44530
44531
|
context: xe.CARD_ON_FILE,
|
|
@@ -44544,9 +44545,9 @@ let Ii = class extends qe {
|
|
|
44544
44545
|
const n = t.detail.data, { payment_request: r } = n;
|
|
44545
44546
|
if (pn.ignoreStatusPayment(r.status) || r.payment_id === ((i = this.stateScof.statePaymentRequest) == null ? void 0 : i.payment_id) && r.status === ((o = this.stateScof.statePaymentRequest) == null ? void 0 : o.status))
|
|
44546
44547
|
return;
|
|
44547
|
-
this.statusMessage = r.status, this.stateScof.statePaymentRequest = r,
|
|
44548
|
+
this.statusMessage = r.status, this.stateScof.statePaymentRequest = r, Bt.wsIsRunning() && Bt.cleanup(), pn.stopPolling("manual");
|
|
44548
44549
|
const s = this.setMessagePaymentStatus(r);
|
|
44549
|
-
s && (this.stateScofStatus.title = s.title, this.stateScofStatus.subtitle = s.subtitle, this.stateScofStatus.icon = s.icon, this.stateScofStatus.status = s.status, this.stateScofStatus.name = s.name, this.stateScofStatus.returnButton = s.returnButton, this.stateScofStatus.nameReturnButton = s.nameReturnButton, this.stateScof.page = at.STATUS, this.setDurationPayment(r), this.requestUpdate(), this.routerState(), this.stateScof.isActiveWs =
|
|
44550
|
+
s && (this.stateScofStatus.title = s.title, this.stateScofStatus.subtitle = s.subtitle, this.stateScofStatus.icon = s.icon, this.stateScofStatus.status = s.status, this.stateScofStatus.name = s.name, this.stateScofStatus.returnButton = s.returnButton, this.stateScofStatus.nameReturnButton = s.nameReturnButton, this.stateScof.page = at.STATUS, this.setDurationPayment(r), this.requestUpdate(), this.routerState(), this.stateScof.isActiveWs = Bt.wsIsRunning());
|
|
44550
44551
|
}), pn.pollingServiceInstance.addEventListener("polling-stopped", (t) => {
|
|
44551
44552
|
const e = t, n = vn.messages.find((r) => r.status === e.detail.reason);
|
|
44552
44553
|
n && (this.stateScofStatus.title = n.title, this.stateScofStatus.subtitle = n.subtitle, this.stateScofStatus.icon = n.icon, this.stateScofStatus.status = n.status, this.stateScofStatus.name = n.name, this.stateScofStatus.returnButton = n.returnButton, this.stateScofStatus.nameReturnButton = n.nameReturnButton), this.stateScof.page = at.STATUS, this.requestUpdate(), this.routerState();
|
|
@@ -44560,10 +44561,10 @@ let Ii = class extends qe {
|
|
|
44560
44561
|
}
|
|
44561
44562
|
webSocket() {
|
|
44562
44563
|
return ce(this, null, function* () {
|
|
44563
|
-
if (!(
|
|
44564
|
+
if (!(Bt.wsConnectionAttemptCount() > 0)) {
|
|
44564
44565
|
this.stateScof.isActiveWs = !0;
|
|
44565
44566
|
try {
|
|
44566
|
-
if ((yield
|
|
44567
|
+
if ((yield Bt.connect(this.stateScof.statePaymentRequest.id)).status === "WS_DISCONNECTED") {
|
|
44567
44568
|
this.statusMessage = "WS_DISCONNECTED", this.isShowCardPayment = !1;
|
|
44568
44569
|
const e = document.querySelector("confirmation-modal");
|
|
44569
44570
|
e == null || e.remove();
|
|
@@ -44585,7 +44586,7 @@ let Ii = class extends qe {
|
|
|
44585
44586
|
}
|
|
44586
44587
|
setDurationPayment(t) {
|
|
44587
44588
|
var o, a, d, l, c, u, h, p;
|
|
44588
|
-
if (!
|
|
44589
|
+
if (!Bt.getStartPaymentTime())
|
|
44589
44590
|
return;
|
|
44590
44591
|
const { tag_user_type: e, tag_payment_type: n } = AM(this.stateScof), r = t.transactions[0].payment_method ? t.transactions[0].payment_method.name : "no_card_name", s = t.transactions[0].payment_method ? t.transactions[0].payment_method.card_type : "no_card_type", i = uM(n) ? {
|
|
44591
44592
|
card_brand: r,
|
|
@@ -44600,7 +44601,7 @@ let Ii = class extends qe {
|
|
|
44600
44601
|
tag: "PAYMENT_DURATION",
|
|
44601
44602
|
is_embedded: this.payfacContext.isEmbedded,
|
|
44602
44603
|
contextObject: {
|
|
44603
|
-
duration_context:
|
|
44604
|
+
duration_context: Bt.endPayment(),
|
|
44604
44605
|
payment_request_id: t == null ? void 0 : t.id,
|
|
44605
44606
|
payment_request_status: this.statusMessage,
|
|
44606
44607
|
payment_type: t.payment_type,
|
|
@@ -44608,7 +44609,7 @@ let Ii = class extends qe {
|
|
|
44608
44609
|
tag_payment_type: n,
|
|
44609
44610
|
card_data: i
|
|
44610
44611
|
}
|
|
44611
|
-
}),
|
|
44612
|
+
}), Bt.setEndPaymentTime(), this.stateScof.isAddCardConsent = !1;
|
|
44612
44613
|
}
|
|
44613
44614
|
getPaymentRequestAndRedirectToStatus() {
|
|
44614
44615
|
return ce(this, null, function* () {
|
|
@@ -46328,7 +46329,7 @@ let ra = class extends qe {
|
|
|
46328
46329
|
}
|
|
46329
46330
|
submit() {
|
|
46330
46331
|
var t;
|
|
46331
|
-
this.isClickSubmit || (this.isLoading = !0, this.isClickSubmit = !0, this.stateScofStatus.isStart = !0, this.createEvent("button-pushed", at.LOADING),
|
|
46332
|
+
this.isClickSubmit || (this.isLoading = !0, this.isClickSubmit = !0, this.stateScofStatus.isStart = !0, this.createEvent("button-pushed", at.LOADING), Bt.startPayment(), ae.info("submit", {
|
|
46332
46333
|
context: xe.CARD_ON_FILE,
|
|
46333
46334
|
tag: "SUMMARY",
|
|
46334
46335
|
is_embedded: this.payfacContext.isEmbedded,
|
|
@@ -46453,7 +46454,7 @@ class Ah extends qe {
|
|
|
46453
46454
|
return q7(this.payfacContext.paymentRequest) && ar.allowManualInput;
|
|
46454
46455
|
}
|
|
46455
46456
|
startPolling() {
|
|
46456
|
-
!
|
|
46457
|
+
!Bt.wsIsRunning() && Bt.wsConnectionAttemptCount() > 0 && (pn.isPollingRunning() && pn.extendTime(), pn.isPollingRunning() || (pn.startPolling(this.payfacContext.paymentRequest.id, this.payfacContext.context), ae.info("START_POLLING", {
|
|
46457
46458
|
context: this.payfacContext.context,
|
|
46458
46459
|
tag: "START_POLLING",
|
|
46459
46460
|
is_embedded: this.payfacContext.isEmbedded,
|
|
@@ -46657,7 +46658,7 @@ const va = "manual-input-context", KM = "payment-manual-holder-context", eu = "p
|
|
|
46657
46658
|
let zd = class t extends qe {
|
|
46658
46659
|
constructor() {
|
|
46659
46660
|
super(...arguments), this.paymentRequestId = "", this.publicKey = "", this.statePaymentManualInput = {
|
|
46660
|
-
page:
|
|
46661
|
+
page: Ut.LOADING,
|
|
46661
46662
|
statePaymentRequest: null,
|
|
46662
46663
|
payment: null,
|
|
46663
46664
|
binData: null,
|
|
@@ -46737,7 +46738,7 @@ let sa = class extends qe {
|
|
|
46737
46738
|
connectedCallback() {
|
|
46738
46739
|
var t;
|
|
46739
46740
|
super.connectedCallback(), this.pollingWatcher(), (t = this.shadowRoot) == null || t.addEventListener("button-pushed", (e) => {
|
|
46740
|
-
this.isShowCardPayment = !0, this._statePaymentManualInput.page = e.detail ? e.detail :
|
|
46741
|
+
Bt.extendHeartbeat(this._statePaymentManualInput.statePaymentRequest.id), this.isShowCardPayment = !0, this._statePaymentManualInput.page = e.detail ? e.detail : Ut.MANUAL_INPUT, (e.detail === Ut.QR || e.detail === Ut.STATUS || e.detail === Ut.LOADING) && (this.isShowCardPayment = !1), e.detail === Ut.MANUAL_INPUT && (this._statePaymentManualInput.isActiveWs || this.webSocket(), !this._statePaymentManualInput.isActiveInstallment && !this._statePaymentManualInput.isCardPresent && this._getinstallment()), this.requestUpdate(), this.routerState();
|
|
46741
46742
|
});
|
|
46742
46743
|
}
|
|
46743
46744
|
_getinstallment() {
|
|
@@ -46784,12 +46785,12 @@ let sa = class extends qe {
|
|
|
46784
46785
|
const n = t.detail.data.response;
|
|
46785
46786
|
if (pn.ignoreStatusPayment(n.status) || ((s = this._statePaymentManualInput.statePaymentRequest) == null ? void 0 : s.payment_id) === n.payment_id && ((i = this._statePaymentManualInput.statePaymentRequest) == null ? void 0 : i.status) === n.status)
|
|
46786
46787
|
return;
|
|
46787
|
-
this.statusMessage = n.status, this._statePaymentManualInput.statePaymentRequest = n,
|
|
46788
|
+
this.statusMessage = n.status, this._statePaymentManualInput.statePaymentRequest = n, Bt.wsIsRunning() && Bt.cleanup(), pn.stopPolling("manual");
|
|
46788
46789
|
const r = this.setMessagePaymentStatus(n);
|
|
46789
|
-
r && (this.stateStatus.title = r.title, this.stateStatus.subtitle = r.subtitle, this.stateStatus.icon = r.icon, this.stateStatus.status = r.status, this.stateStatus.name = r.name, this.stateStatus.returnButton = r.returnButton, this.stateStatus.nameReturnButton = r.nameReturnButton, this._statePaymentManualInput.page =
|
|
46790
|
+
r && (this.stateStatus.title = r.title, this.stateStatus.subtitle = r.subtitle, this.stateStatus.icon = r.icon, this.stateStatus.status = r.status, this.stateStatus.name = r.name, this.stateStatus.returnButton = r.returnButton, this.stateStatus.nameReturnButton = r.nameReturnButton, this._statePaymentManualInput.page = Ut.STATUS, Bt.getStartPaymentTime() && this.setDurationPayment(n), this.requestUpdate(), this.routerState(), this._statePaymentManualInput.isActiveWs = Bt.wsIsRunning());
|
|
46790
46791
|
}), pn.pollingServiceInstance.addEventListener("polling-stopped", (t) => {
|
|
46791
46792
|
const e = t, n = vn.messages.find((r) => r.status === e.detail.reason);
|
|
46792
|
-
n && (this.stateStatus.title = n.title, this.stateStatus.subtitle = n.subtitle, this.stateStatus.icon = n.icon, this.stateStatus.status = n.status, this.stateStatus.name = n.name, this.stateStatus.returnButton = n.returnButton, this.stateStatus.nameReturnButton = n.nameReturnButton), this._statePaymentManualInput.page =
|
|
46793
|
+
n && (this.stateStatus.title = n.title, this.stateStatus.subtitle = n.subtitle, this.stateStatus.icon = n.icon, this.stateStatus.status = n.status, this.stateStatus.name = n.name, this.stateStatus.returnButton = n.returnButton, this.stateStatus.nameReturnButton = n.nameReturnButton), this._statePaymentManualInput.page = Ut.STATUS, this.requestUpdate(), this.routerState();
|
|
46793
46794
|
});
|
|
46794
46795
|
}
|
|
46795
46796
|
setMessagePaymentStatus(t) {
|
|
@@ -46800,10 +46801,10 @@ let sa = class extends qe {
|
|
|
46800
46801
|
}
|
|
46801
46802
|
webSocket() {
|
|
46802
46803
|
return ce(this, null, function* () {
|
|
46803
|
-
if (!(
|
|
46804
|
+
if (!(Bt.wsConnectionAttemptCount() > 0))
|
|
46804
46805
|
try {
|
|
46805
|
-
const t = yield
|
|
46806
|
-
if (this._statePaymentManualInput.isActiveWs =
|
|
46806
|
+
const t = yield Bt.connect(this._statePaymentManualInput.statePaymentRequest.id);
|
|
46807
|
+
if (this._statePaymentManualInput.isActiveWs = Bt.wsIsRunning(), t.status === "WS_DISCONNECTED") {
|
|
46807
46808
|
this.statusMessage = "WS_DISCONNECTED", this.isShowCardPayment = !1;
|
|
46808
46809
|
return;
|
|
46809
46810
|
}
|
|
@@ -46816,26 +46817,26 @@ let sa = class extends qe {
|
|
|
46816
46817
|
const e = this._statePaymentManualInput.statePaymentRequest;
|
|
46817
46818
|
pn.stopPolling("manual"), t = this.setMessagePaymentStatus(e);
|
|
46818
46819
|
}
|
|
46819
|
-
t && (this.stateStatus.title = t.title, this.stateStatus.subtitle = t.subtitle, this.stateStatus.icon = t.icon, this.stateStatus.status = t.status, this.stateStatus.name = t.name, this.stateStatus.returnButton = t.returnButton, this.stateStatus.nameReturnButton = t.nameReturnButton, this._statePaymentManualInput.page =
|
|
46820
|
+
t && (this.stateStatus.title = t.title, this.stateStatus.subtitle = t.subtitle, this.stateStatus.icon = t.icon, this.stateStatus.status = t.status, this.stateStatus.name = t.name, this.stateStatus.returnButton = t.returnButton, this.stateStatus.nameReturnButton = t.nameReturnButton, this._statePaymentManualInput.page = Ut.STATUS, this.requestUpdate(), this.routerState(), this._statePaymentManualInput.isActiveWs = Bt.wsIsRunning());
|
|
46820
46821
|
}
|
|
46821
46822
|
});
|
|
46822
46823
|
}
|
|
46823
46824
|
setDurationPayment(t) {
|
|
46824
46825
|
var e;
|
|
46825
|
-
|
|
46826
|
+
Bt.getStartPaymentTime() && (ae.info("paymentDuration", {
|
|
46826
46827
|
context: xe.DEFAULT,
|
|
46827
46828
|
origin_sdk: Ug,
|
|
46828
46829
|
tag: "PAYMENT_DURATION",
|
|
46829
46830
|
is_embedded: this.payfacContext.isEmbedded,
|
|
46830
46831
|
contextObject: {
|
|
46831
|
-
duration_context:
|
|
46832
|
+
duration_context: Bt.endPayment(),
|
|
46832
46833
|
payment_request_id: (e = this._statePaymentManualInput.statePaymentRequest) == null ? void 0 : e.id,
|
|
46833
46834
|
payment_request_status: this.statusMessage,
|
|
46834
46835
|
card_name: t.transactions[0].payment_method ? t.transactions[0].payment_method.name : "no_card_name",
|
|
46835
46836
|
card_type: t.transactions[0].payment_method ? t.transactions[0].payment_method.card_type : "no_card_type",
|
|
46836
46837
|
payment_type: t.payment_type
|
|
46837
46838
|
}
|
|
46838
|
-
}),
|
|
46839
|
+
}), Bt.setEndPaymentTime());
|
|
46839
46840
|
}
|
|
46840
46841
|
getPaymentRequestAndRedirectToStatus() {
|
|
46841
46842
|
return ce(this, null, function* () {
|
|
@@ -46865,19 +46866,19 @@ let sa = class extends qe {
|
|
|
46865
46866
|
_renderSubtitle() {
|
|
46866
46867
|
let t = "";
|
|
46867
46868
|
switch (!0) {
|
|
46868
|
-
case this._statePaymentManualInput.page ===
|
|
46869
|
+
case this._statePaymentManualInput.page === Ut.MANUAL_INPUT:
|
|
46869
46870
|
t = "Medios de pago";
|
|
46870
46871
|
break;
|
|
46871
|
-
case this._statePaymentManualInput.page ===
|
|
46872
|
+
case this._statePaymentManualInput.page === Ut.HOLDER_FORM:
|
|
46872
46873
|
t = "Ingresá los datos de la persona titular";
|
|
46873
46874
|
break;
|
|
46874
|
-
case this._statePaymentManualInput.page ===
|
|
46875
|
+
case this._statePaymentManualInput.page === Ut.CARD_FORM:
|
|
46875
46876
|
t = "Ingresá los datos de la Tarjeta";
|
|
46876
46877
|
break;
|
|
46877
|
-
case this._statePaymentManualInput.page ===
|
|
46878
|
+
case this._statePaymentManualInput.page === Ut.PLANS:
|
|
46878
46879
|
t = "Elegí la cantidad de cuotas";
|
|
46879
46880
|
break;
|
|
46880
|
-
case this._statePaymentManualInput.page ===
|
|
46881
|
+
case this._statePaymentManualInput.page === Ut.SUMMARY:
|
|
46881
46882
|
t = "Resumen del pago";
|
|
46882
46883
|
break;
|
|
46883
46884
|
default:
|
|
@@ -46892,7 +46893,7 @@ let sa = class extends qe {
|
|
|
46892
46893
|
routerState() {
|
|
46893
46894
|
var t, e, n, r, s, i, o, a, d, l;
|
|
46894
46895
|
return j`
|
|
46895
|
-
${this._statePaymentManualInput.page ===
|
|
46896
|
+
${this._statePaymentManualInput.page === Ut.LOADING || this._statePaymentManualInput.page === Ut.QR || this._statePaymentManualInput.page === Ut.STATUS ? j`${Ex(this._statePaymentManualInput.page)}` : j` <div class="container">
|
|
46896
46897
|
<div class="container-text">
|
|
46897
46898
|
<h1 class="container__title">
|
|
46898
46899
|
<p>
|
|
@@ -47043,14 +47044,14 @@ let xs = class extends qe {
|
|
|
47043
47044
|
codSeg: this.cardFormValue.cvv,
|
|
47044
47045
|
expired: i
|
|
47045
47046
|
}, GA(this._statePaymentManualInput.binData.installment)) {
|
|
47046
|
-
this._statePaymentManualInput.binData.installment.installment_plans.length > 0 && (this._statePaymentManualInput.installment = this._statePaymentManualInput.binData.installment.installment_plans[0]), this.createEvent("button-pushed",
|
|
47047
|
+
this._statePaymentManualInput.binData.installment.installment_plans.length > 0 && (this._statePaymentManualInput.installment = this._statePaymentManualInput.binData.installment.installment_plans[0]), this.createEvent("button-pushed", Ut.SUMMARY);
|
|
47047
47048
|
return;
|
|
47048
47049
|
}
|
|
47049
|
-
this.createEvent("button-pushed",
|
|
47050
|
+
this.createEvent("button-pushed", Ut.PLANS);
|
|
47050
47051
|
}
|
|
47051
47052
|
}
|
|
47052
47053
|
back() {
|
|
47053
|
-
this.createEvent("button-pushed",
|
|
47054
|
+
this.createEvent("button-pushed", Ut.HOLDER_FORM);
|
|
47054
47055
|
}
|
|
47055
47056
|
getBrandCardAccepted() {
|
|
47056
47057
|
return this._statePaymentManualInput.cardsAccepted.map((t) => M2(t));
|
|
@@ -47268,7 +47269,7 @@ let Ui = class t extends qe {
|
|
|
47268
47269
|
doc_number: ew(this.holder.doc_number, this.holder.doc_type),
|
|
47269
47270
|
doc_type: this.holder.doc_type
|
|
47270
47271
|
};
|
|
47271
|
-
sessionStorage.setItem("holder", JSON.stringify(n)), this._stateHolderPaymentManual = n, this.createEvent("button-pushed",
|
|
47272
|
+
sessionStorage.setItem("holder", JSON.stringify(n)), this._stateHolderPaymentManual = n, this.createEvent("button-pushed", Ut.CARD_FORM);
|
|
47272
47273
|
}
|
|
47273
47274
|
}
|
|
47274
47275
|
_getinstallment() {
|
|
@@ -47310,7 +47311,7 @@ let Ui = class t extends qe {
|
|
|
47310
47311
|
});
|
|
47311
47312
|
}
|
|
47312
47313
|
back() {
|
|
47313
|
-
this._statePaymentManualInput.isCardPresent = !0, this.createEvent("button-pushed",
|
|
47314
|
+
this._statePaymentManualInput.isCardPresent = !0, this.createEvent("button-pushed", Ut.MANUAL_INPUT);
|
|
47314
47315
|
}
|
|
47315
47316
|
createEvent(e, n) {
|
|
47316
47317
|
const r = new CustomEvent(e, {
|
|
@@ -47492,10 +47493,10 @@ let Mp = class extends qe {
|
|
|
47492
47493
|
return this.isGovernmentPlan(t) ? v2 : this.isPlanZ(t) ? y2 : b2;
|
|
47493
47494
|
}
|
|
47494
47495
|
back() {
|
|
47495
|
-
this.createEvent("button-pushed",
|
|
47496
|
+
this.createEvent("button-pushed", Ut.CARD_FORM);
|
|
47496
47497
|
}
|
|
47497
47498
|
submit() {
|
|
47498
|
-
this._statePaymentManualInput.installment = this.installmentSelected, this.createEvent("button-pushed",
|
|
47499
|
+
this._statePaymentManualInput.installment = this.installmentSelected, this.createEvent("button-pushed", Ut.SUMMARY);
|
|
47499
47500
|
}
|
|
47500
47501
|
createEvent(t, e) {
|
|
47501
47502
|
const n = new CustomEvent(t, {
|
|
@@ -47668,7 +47669,7 @@ let wr = class t extends qe {
|
|
|
47668
47669
|
}
|
|
47669
47670
|
retryPayment() {
|
|
47670
47671
|
var e;
|
|
47671
|
-
this.createEvent("button-pushed",
|
|
47672
|
+
this.createEvent("button-pushed", Ut.LOADING), ae.info("retryPayment", {
|
|
47672
47673
|
context: xe.DEFAULT,
|
|
47673
47674
|
origin_sdk: Cy,
|
|
47674
47675
|
tag: "RETRY_PAYMENT",
|
|
@@ -47736,11 +47737,11 @@ let wr = class t extends qe {
|
|
|
47736
47737
|
return ce(this, null, function* () {
|
|
47737
47738
|
var e;
|
|
47738
47739
|
try {
|
|
47739
|
-
if (
|
|
47740
|
-
this._statePaymentManualInput.isExtendedWs = !1, this._stateStatus.isStart = !1, this.createEvent("button-pushed",
|
|
47740
|
+
if (Bt.wsConnectionAttemptCount() > 0) {
|
|
47741
|
+
this._statePaymentManualInput.isExtendedWs = !1, this._stateStatus.isStart = !1, this.createEvent("button-pushed", Ut.LOADING);
|
|
47741
47742
|
return;
|
|
47742
47743
|
}
|
|
47743
|
-
|
|
47744
|
+
Bt.extendHeartbeat(this._statePaymentManualInput.statePaymentRequest.id), this._statePaymentManualInput.isExtendedWs = !0, this._stateStatus.isStart = !1, this.createEvent("button-pushed", Ut.LOADING), ae.info("extendHeartBeat", {
|
|
47744
47745
|
context: xe.DEFAULT,
|
|
47745
47746
|
origin_sdk: Cy,
|
|
47746
47747
|
tag: "EXTEND_HEART_BEAT",
|
|
@@ -47888,14 +47889,14 @@ let vl = class extends qe {
|
|
|
47888
47889
|
}
|
|
47889
47890
|
back() {
|
|
47890
47891
|
if (GA(this._statePaymentManualInput.binData.installment)) {
|
|
47891
|
-
this.createEvent("button-pushed",
|
|
47892
|
+
this.createEvent("button-pushed", Ut.CARD_FORM);
|
|
47892
47893
|
return;
|
|
47893
47894
|
}
|
|
47894
|
-
this.createEvent("button-pushed",
|
|
47895
|
+
this.createEvent("button-pushed", Ut.PLANS);
|
|
47895
47896
|
}
|
|
47896
47897
|
submit() {
|
|
47897
47898
|
var t;
|
|
47898
|
-
this.isLoading = !0, this._stateStatus.isStart = !0,
|
|
47899
|
+
this.isLoading = !0, this._stateStatus.isStart = !0, Bt.startPayment(), Bt.wsIsRunning() && Bt.extendConnectionOnPayment(), this.createEvent("button-pushed", Ut.LOADING), ae.info("submit", {
|
|
47899
47900
|
context: xe.DEFAULT,
|
|
47900
47901
|
origin_sdk: i9,
|
|
47901
47902
|
tag: "PAYMENT_SUBMITTED",
|
|
@@ -48018,7 +48019,7 @@ let Ab = class extends Ah {
|
|
|
48018
48019
|
title="Tarjeta de crédito o débito"
|
|
48019
48020
|
subtitle="${this.manualInputDescription}"
|
|
48020
48021
|
?hasPromotion="${this.hasManualInputPromotions}"
|
|
48021
|
-
@click="${() => this.goToQr(
|
|
48022
|
+
@click="${() => this.goToQr(Ut.HOLDER_FORM)}"
|
|
48022
48023
|
></card-home>` : j``;
|
|
48023
48024
|
}
|
|
48024
48025
|
renderWalletAvailable() {
|
|
@@ -48032,7 +48033,7 @@ let Ab = class extends Ah {
|
|
|
48032
48033
|
class="clickeable"
|
|
48033
48034
|
subtitle="${this.walletDescription}"
|
|
48034
48035
|
?hasPromotion="${this.hasWalletPromotions}"
|
|
48035
|
-
@click="${() => this.goToQr(
|
|
48036
|
+
@click="${() => this.goToQr(Ut.QR)}"
|
|
48036
48037
|
></card-home>` : j``;
|
|
48037
48038
|
}
|
|
48038
48039
|
render() {
|
|
@@ -49610,7 +49611,7 @@ let go = class t extends qe {
|
|
|
49610
49611
|
}
|
|
49611
49612
|
firstUpdated(e) {
|
|
49612
49613
|
return ce(this, null, function* () {
|
|
49613
|
-
Xt(t.prototype, this, "firstUpdated").call(this, e), this.stateStatus.isRetry && (yield this.loadData(), this.stateStatus.isRetry = !1), this.stateStatus.isStart && (this.title = "Estamos procesando el pago", this.subtitle = "Puede tardar unos segundos.", yield this.directPaymentTransparent()), this._statePaymentManualInput.isExtendedWs && (yield this.extendedWs()), !(pn.isPollingRunning() && !
|
|
49614
|
+
Xt(t.prototype, this, "firstUpdated").call(this, e), this.stateStatus.isRetry && (yield this.loadData(), this.stateStatus.isRetry = !1), this.stateStatus.isStart && (this.title = "Estamos procesando el pago", this.subtitle = "Puede tardar unos segundos.", yield this.directPaymentTransparent()), this._statePaymentManualInput.isExtendedWs && (yield this.extendedWs()), !(pn.isPollingRunning() && !Bt.getEndPaymentTime()) && Bt.wsConnectionAttemptCount() > 0 && this.createEvent("button-pushed", Ut.MANUAL_INPUT);
|
|
49614
49615
|
});
|
|
49615
49616
|
}
|
|
49616
49617
|
loadData() {
|
|
@@ -49621,10 +49622,10 @@ let go = class t extends qe {
|
|
|
49621
49622
|
this._statePaymentManualInput.statePaymentRequest = e;
|
|
49622
49623
|
const n = yield tw(this._statePaymentManualInput.statePaymentRequest);
|
|
49623
49624
|
if (n && n.error) {
|
|
49624
|
-
this.stateStatus.title = n.message.title, this.stateStatus.subtitle = n.message.subtitle, this.stateStatus.icon = n.message.icon, this.stateStatus.status = n.status, this.stateStatus.nameReturnButton = n.message.nameReturnButton || "", this.stateStatus.returnButton = n.message.returnButton || !1, this.stateStatus.hasDownloadPDF = n.message.hasDownloadPDF || !1, this.createEvent("button-pushed",
|
|
49625
|
+
this.stateStatus.title = n.message.title, this.stateStatus.subtitle = n.message.subtitle, this.stateStatus.icon = n.message.icon, this.stateStatus.status = n.status, this.stateStatus.nameReturnButton = n.message.nameReturnButton || "", this.stateStatus.returnButton = n.message.returnButton || !1, this.stateStatus.hasDownloadPDF = n.message.hasDownloadPDF || !1, this.createEvent("button-pushed", Ut.STATUS);
|
|
49625
49626
|
return;
|
|
49626
49627
|
}
|
|
49627
|
-
yield this.validateCircuitBreaker(), yield this.getPromotions(), this._statePaymentManualInput.page =
|
|
49628
|
+
yield this.validateCircuitBreaker(), yield this.getPromotions(), this._statePaymentManualInput.page = Ut.MANUAL_INPUT, this.stateManualInputProps = Ve({}, this.stateManualInputProps), this.createEvent("button-pushed", this._statePaymentManualInput.page), this.requestUpdate();
|
|
49628
49629
|
} catch (e) {
|
|
49629
49630
|
nt("LOAD_DATA_ERROR", "Load data failed."), console.log(e), this.redirectByUnknownError();
|
|
49630
49631
|
}
|
|
@@ -49668,7 +49669,7 @@ let go = class t extends qe {
|
|
|
49668
49669
|
}
|
|
49669
49670
|
redirectByUnknownError() {
|
|
49670
49671
|
const e = vn.messages.find((n) => n.name === "unknown-error");
|
|
49671
|
-
this.stateStatus.title = e.title, this.stateStatus.subtitle = e.subtitle, this.stateStatus.icon = e.icon, this.stateStatus.status = e.status, this.stateStatus.returnButton = e.returnButton, this.createEvent("button-pushed",
|
|
49672
|
+
this.stateStatus.title = e.title, this.stateStatus.subtitle = e.subtitle, this.stateStatus.icon = e.icon, this.stateStatus.status = e.status, this.stateStatus.returnButton = e.returnButton, this.createEvent("button-pushed", Ut.STATUS);
|
|
49672
49673
|
}
|
|
49673
49674
|
directPaymentTransparent() {
|
|
49674
49675
|
return ce(this, null, function* () {
|
|
@@ -49720,7 +49721,7 @@ let go = class t extends qe {
|
|
|
49720
49721
|
l
|
|
49721
49722
|
), nt("DIRECT_PAYMENT_ERROR", "Direct payment failed.");
|
|
49722
49723
|
const c = Gm;
|
|
49723
|
-
this.stateStatus.title = c.title, this.stateStatus.subtitle = c.subtitle, this.stateStatus.icon = c.icon, this.stateStatus.status = c.status, this.stateStatus.name = c.name, this.stateStatus.returnButton = c.returnButton, this.stateStatus.nameReturnButton = c.nameReturnButton, this.createEvent("button-pushed",
|
|
49724
|
+
this.stateStatus.title = c.title, this.stateStatus.subtitle = c.subtitle, this.stateStatus.icon = c.icon, this.stateStatus.status = c.status, this.stateStatus.name = c.name, this.stateStatus.returnButton = c.returnButton, this.stateStatus.nameReturnButton = c.nameReturnButton, this.createEvent("button-pushed", Ut.STATUS);
|
|
49724
49725
|
} finally {
|
|
49725
49726
|
this.stateStatus.isStart = !1;
|
|
49726
49727
|
}
|
|
@@ -49732,10 +49733,10 @@ let go = class t extends qe {
|
|
|
49732
49733
|
const e = yield xi(this._statePaymentManualInput.statePaymentRequest.id);
|
|
49733
49734
|
if (this._statePaymentManualInput.statePaymentRequest = e.response, e.response.status === Vn.SUCCESS_PROCESSED) {
|
|
49734
49735
|
let n = vn.messages.find((r) => r.status === e.response.status);
|
|
49735
|
-
n = Ld(e.response.payment_type), nt(n.status, ""), n && (this.stateStatus.title = n.title, this.stateStatus.subtitle = n.subtitle, this.stateStatus.icon = n.icon, this.stateStatus.status = n.status, this.stateStatus.name = n.name, this.stateStatus.returnButton = n.returnButton, this.stateStatus.nameReturnButton = n.nameReturnButton, this._statePaymentManualInput.isActiveWs = !1, this._statePaymentManualInput.isExtendedWs = !1, this.createEvent("button-pushed",
|
|
49736
|
+
n = Ld(e.response.payment_type), nt(n.status, ""), n && (this.stateStatus.title = n.title, this.stateStatus.subtitle = n.subtitle, this.stateStatus.icon = n.icon, this.stateStatus.status = n.status, this.stateStatus.name = n.name, this.stateStatus.returnButton = n.returnButton, this.stateStatus.nameReturnButton = n.nameReturnButton, this._statePaymentManualInput.isActiveWs = !1, this._statePaymentManualInput.isExtendedWs = !1, this.createEvent("button-pushed", Ut.STATUS));
|
|
49736
49737
|
return;
|
|
49737
49738
|
}
|
|
49738
|
-
this.createEvent("button-pushed",
|
|
49739
|
+
this.createEvent("button-pushed", Ut.MANUAL_INPUT);
|
|
49739
49740
|
} catch (e) {
|
|
49740
49741
|
console.log(e), nt("PAYMENT_REQUEST_EXTENDED_WS_ERROR", "Payment request in the extended web socket failed.");
|
|
49741
49742
|
}
|
|
@@ -55701,7 +55702,7 @@ function gt(t) {
|
|
|
55701
55702
|
throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");
|
|
55702
55703
|
return et[f] = k;
|
|
55703
55704
|
};
|
|
55704
|
-
var
|
|
55705
|
+
var Et, Ye, Yn, Mt, $s, rn = {}, fn = {}, Ki = [], Kt = {}, Ml = {}, bn = {}, ei = {}, ko = null, wn = 0, wt = [], Gt = new Q3(p), zl = t.hotfixes || [], Ar = {}, Gi = {}, Wi = [], ft = function f(k, W, te, pe, Te, Le) {
|
|
55705
55706
|
if (!(this instanceof f))
|
|
55706
55707
|
return new f(k, W, te, pe, Te, Le);
|
|
55707
55708
|
isNaN(k) && (k = 1), isNaN(W) && (W = 0), isNaN(te) && (te = 0), isNaN(pe) && (pe = 1), isNaN(Te) && (Te = 0), isNaN(Le) && (Le = 0), this._matrix = [k, W, te, pe, Te, Le];
|
|
@@ -56060,7 +56061,7 @@ Q`), us(pe, !0), Ts({ data: Te, filters: Ji(), objectId: pe }), X("endobj"), te;
|
|
|
56060
56061
|
}, f.foo.bar = f, f.foo;
|
|
56061
56062
|
}, mc = function(f, k) {
|
|
56062
56063
|
var W, te, pe, Te, Le, $e, ut, Ct, _t;
|
|
56063
|
-
if (pe = (k = k || {}).sourceEncoding || "Unicode", Le = k.outputEncoding, (k.autoencode || Le) && rn[
|
|
56064
|
+
if (pe = (k = k || {}).sourceEncoding || "Unicode", Le = k.outputEncoding, (k.autoencode || Le) && rn[Et].metadata && rn[Et].metadata[pe] && rn[Et].metadata[pe].encoding && (Te = rn[Et].metadata[pe].encoding, !Le && rn[Et].encoding && (Le = rn[Et].encoding), !Le && Te.codePages && (Le = Te.codePages[0]), typeof Le == "string" && (Le = Te[Le]), Le)) {
|
|
56064
56065
|
for (ut = !1, $e = [], W = 0, te = f.length; W < te; W++)
|
|
56065
56066
|
(Ct = Le[f.charCodeAt(W)]) ? $e.push(String.fromCharCode(Ct)) : $e.push(f[W]), $e[W].charCodeAt(0) >> 8 && (ut = !0);
|
|
56066
56067
|
f = $e.join("");
|
|
@@ -56097,7 +56098,7 @@ Q`), us(pe, !0), Ts({ data: Te, filters: Ji(), objectId: pe }), X("endobj"), te;
|
|
|
56097
56098
|
return De.length - 1;
|
|
56098
56099
|
}, Ih = function(f, k, W) {
|
|
56099
56100
|
var te, pe = void 0;
|
|
56100
|
-
return W = W || {}, f = f !== void 0 ? f : rn[
|
|
56101
|
+
return W = W || {}, f = f !== void 0 ? f : rn[Et].fontName, k = k !== void 0 ? k : rn[Et].fontStyle, te = f.toLowerCase(), fn[te] !== void 0 && fn[te][k] !== void 0 ? pe = fn[te][k] : fn[f] !== void 0 && fn[f][k] !== void 0 ? pe = fn[f][k] : W.disableWarning === !1 && an.warn("Unable to look up font label for font '" + f + "', '" + k + "'. Refer to getFontList() for available fonts."), pe || W.noFallback || (pe = fn.times[k]) == null && (pe = fn.times.normal), pe;
|
|
56101
56102
|
}, e1 = p.__private__.putInfo = function() {
|
|
56102
56103
|
var f = Jn(), k = function(te) {
|
|
56103
56104
|
return te;
|
|
@@ -56347,7 +56348,7 @@ Q`), us(pe, !0), Ts({ data: Te, filters: Ji(), objectId: pe }), X("endobj"), te;
|
|
|
56347
56348
|
}
|
|
56348
56349
|
if ((_t = te.maxWidth || 0) > 0 && (typeof f == "string" ? f = Qn.splitTextToSize(f, _t) : Object.prototype.toString.call(f) === "[object Array]" && (f = f.reduce(function(cn, An) {
|
|
56349
56350
|
return cn.concat(Qn.splitTextToSize(An, _t));
|
|
56350
|
-
}, []))), Te = { text: f, x: k, y: W, options: te, mutex: { pdfEscape: $r, activeFontKey:
|
|
56351
|
+
}, []))), Te = { text: f, x: k, y: W, options: te, mutex: { pdfEscape: $r, activeFontKey: Et, fonts: rn, activeFontSize: C } }, Gt.publish("preProcessText", Te), f = Te.text, $e = (te = Te.options).angle, !(_n instanceof ft) && $e && typeof $e == "number") {
|
|
56351
56352
|
$e *= Math.PI / 180, te.rotationDirection === 0 && ($e = -$e), I === x.ADVANCED && ($e = -$e);
|
|
56352
56353
|
var Ic = Math.cos($e), ku = Math.sin($e);
|
|
56353
56354
|
_n = new ft(Ic, ku, -ku, Ic, 0, 0);
|
|
@@ -56396,7 +56397,7 @@ Q`), us(pe, !0), Ts({ data: Te, filters: Ji(), objectId: pe }), X("endobj"), te;
|
|
|
56396
56397
|
es !== -1 ? tr += es + ` Tr
|
|
56397
56398
|
` : Mh !== -1 && (tr += `0 Tr
|
|
56398
56399
|
`), es !== -1 && (Su.usedRenderingMode = es), ut = te.align || "left";
|
|
56399
|
-
var Us, Tc = C * ps, zh = Qn.internal.pageSize.getWidth(), Hh = rn[
|
|
56400
|
+
var Us, Tc = C * ps, zh = Qn.internal.pageSize.getWidth(), Hh = rn[Et];
|
|
56400
56401
|
Ct = te.charSpace || _c, _t = te.maxWidth || 0, Nt = Object.assign({ autoencode: !0, noBOM: !0 }, te.flags);
|
|
56401
56402
|
var ka = [], Wl = function(cn) {
|
|
56402
56403
|
return Qn.getStringUnitWidth(cn, { font: Hh, charSpace: Ct, fontSize: C, doKerning: !1 }) * C / eo;
|
|
@@ -56440,8 +56441,8 @@ Q`), us(pe, !0), Ts({ data: Te, filters: Ji(), objectId: pe }), X("endobj"), te;
|
|
|
56440
56441
|
var qh = typeof te.R2L == "boolean" ? te.R2L : fe;
|
|
56441
56442
|
qh === !0 && (f = Cu(f, function(cn, An, Tn) {
|
|
56442
56443
|
return [cn.split("").reverse().join(""), An, Tn];
|
|
56443
|
-
})), Te = { text: f, x: k, y: W, options: te, mutex: { pdfEscape: $r, activeFontKey:
|
|
56444
|
-
var Tu = rn[
|
|
56444
|
+
})), Te = { text: f, x: k, y: W, options: te, mutex: { pdfEscape: $r, activeFontKey: Et, fonts: rn, activeFontSize: C } }, Gt.publish("postProcessText", Te), f = Te.text, ai = Te.mutex.isHex || !1;
|
|
56445
|
+
var Tu = rn[Et].encoding;
|
|
56445
56446
|
Tu !== "WinAnsiEncoding" && Tu !== "StandardEncoding" || (f = Cu(f, function(cn, An, Tn) {
|
|
56446
56447
|
return [Qh(cn), An, Tn];
|
|
56447
56448
|
})), Le = xu(f), f = [];
|
|
@@ -56467,10 +56468,10 @@ T* `) : f.join(` Tj
|
|
|
56467
56468
|
`;
|
|
56468
56469
|
var Fs = `BT
|
|
56469
56470
|
/`;
|
|
56470
|
-
return Fs +=
|
|
56471
|
+
return Fs += Et + " " + C + ` Tf
|
|
56471
56472
|
`, Fs += q(C * ps) + ` TL
|
|
56472
56473
|
`, Fs += Kl + `
|
|
56473
|
-
`, Fs += tr, Fs += f, X(Fs += "ET"), h[
|
|
56474
|
+
`, Fs += tr, Fs += f, X(Fs += "ET"), h[Et] = !0, Qn;
|
|
56474
56475
|
};
|
|
56475
56476
|
var o1 = p.__private__.clip = p.clip = function(f) {
|
|
56476
56477
|
return X(f === "evenodd" ? "W*" : "W"), this;
|
|
@@ -56616,7 +56617,7 @@ T* `) : f.join(` Tj
|
|
|
56616
56617
|
throw new Error("Invalid arguments passed to jsPDF.circle");
|
|
56617
56618
|
return this.ellipse(f, k, W, W, te);
|
|
56618
56619
|
}, p.setFont = function(f, k, W) {
|
|
56619
|
-
return W && (k = z(k, W)),
|
|
56620
|
+
return W && (k = z(k, W)), Et = Ih(f, k, { disableWarning: !1 }), this;
|
|
56620
56621
|
};
|
|
56621
56622
|
var c1 = p.__private__.getFont = p.getFont = function() {
|
|
56622
56623
|
return rn[Ih.apply(p, arguments)];
|
|
@@ -56730,11 +56731,11 @@ T* `) : f.join(` Tj
|
|
|
56730
56731
|
p.addGState = function(f, k) {
|
|
56731
56732
|
return Nh(f, k), this;
|
|
56732
56733
|
}, p.saveGraphicsState = function() {
|
|
56733
|
-
return X("q"), Ki.push({ key:
|
|
56734
|
+
return X("q"), Ki.push({ key: Et, size: C, color: Kl }), this;
|
|
56734
56735
|
}, p.restoreGraphicsState = function() {
|
|
56735
56736
|
X("Q");
|
|
56736
56737
|
var f = Ki.pop();
|
|
56737
|
-
return
|
|
56738
|
+
return Et = f.key, C = f.size, Kl = f.color, ko = null, this;
|
|
56738
56739
|
}, p.setCurrentTransformationMatrix = function(f) {
|
|
56739
56740
|
return X(f.toString() + " cm"), this;
|
|
56740
56741
|
}, p.comment = function(f) {
|
|
@@ -56839,7 +56840,7 @@ T* `) : f.join(` Tj
|
|
|
56839
56840
|
return Ea(H);
|
|
56840
56841
|
}, set: function(f) {
|
|
56841
56842
|
_u(H, f);
|
|
56842
|
-
}, enumerable: !0, configurable: !0 }), X0.call(p, w),
|
|
56843
|
+
}, enumerable: !0, configurable: !0 }), X0.call(p, w), Et = "F1", kh(s, n), Gt.publish("initialized"), p;
|
|
56843
56844
|
}
|
|
56844
56845
|
aA.prototype.lsbFirstWord = function(t) {
|
|
56845
56846
|
return String.fromCharCode(t >> 0 & 255, t >> 8 & 255, t >> 16 & 255, t >> 24 & 255);
|
|
@@ -58562,16 +58563,16 @@ var of, K3, G3, iv = ["times"];
|
|
|
58562
58563
|
var C = X[6], L = /^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(w)[2];
|
|
58563
58564
|
w = Math.floor(L === "px" ? parseFloat(w) * this.pdf.internal.scaleFactor : L === "em" ? parseFloat(w) * this.pdf.getFontSize() : parseFloat(w) * this.pdf.internal.scaleFactor), this.pdf.setFontSize(w);
|
|
58564
58565
|
var $ = function(et) {
|
|
58565
|
-
var
|
|
58566
|
+
var Et, Ye, Yn = [], Mt = et.trim();
|
|
58566
58567
|
if (Mt === "")
|
|
58567
58568
|
return iv;
|
|
58568
58569
|
if (Mt in H3)
|
|
58569
58570
|
return [H3[Mt]];
|
|
58570
58571
|
for (; Mt !== ""; ) {
|
|
58571
|
-
switch (Ye = null,
|
|
58572
|
+
switch (Ye = null, Et = (Mt = V3(Mt)).charAt(0)) {
|
|
58572
58573
|
case '"':
|
|
58573
58574
|
case "'":
|
|
58574
|
-
Ye = rW(Mt.substring(1),
|
|
58575
|
+
Ye = rW(Mt.substring(1), Et);
|
|
58575
58576
|
break;
|
|
58576
58577
|
default:
|
|
58577
58578
|
Ye = sW(Mt);
|
|
@@ -58807,7 +58808,7 @@ var of, K3, G3, iv = ["times"];
|
|
|
58807
58808
|
if (I($), this.autoPaging)
|
|
58808
58809
|
for (var Ce = $[0], We = $[$.length - 1], st = Ce; st < We + 1; st++) {
|
|
58809
58810
|
this.pdf.setPage(st);
|
|
58810
|
-
var At = this.pdf.internal.pageSize.width - this.margin[3] - this.margin[1], vt = st === 1 ? this.posY + this.margin[0] : this.margin[0], et = this.pdf.internal.pageSize.height - this.posY - this.margin[0] - this.margin[2],
|
|
58811
|
+
var At = this.pdf.internal.pageSize.width - this.margin[3] - this.margin[1], vt = st === 1 ? this.posY + this.margin[0] : this.margin[0], et = this.pdf.internal.pageSize.height - this.posY - this.margin[0] - this.margin[2], Et = this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2], Ye = st === 1 ? 0 : et + (st - 2) * Et;
|
|
58811
58812
|
if (this.ctx.clip_path.length !== 0) {
|
|
58812
58813
|
var Yn = this.path;
|
|
58813
58814
|
X = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = x(X, this.posX + this.margin[3], -Ye + vt + this.ctx.prevPageLastElemOffset), V.call(this, "fill", !0), this.path = Yn;
|
|
@@ -58815,7 +58816,7 @@ var of, K3, G3, iv = ["times"];
|
|
|
58815
58816
|
var Mt = JSON.parse(JSON.stringify(C));
|
|
58816
58817
|
Mt = x([Mt], this.posX + this.margin[3], -Ye + vt + this.ctx.prevPageLastElemOffset)[0];
|
|
58817
58818
|
var $s = (st > Ce || st < We) && y.call(this);
|
|
58818
|
-
$s && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], At,
|
|
58819
|
+
$s && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], At, Et, null).clip().discardPath()), this.pdf.addImage(S, "JPEG", Mt.x, Mt.y, Mt.w, Mt.h, null, null, R), $s && this.pdf.restoreGraphicsState();
|
|
58819
58820
|
}
|
|
58820
58821
|
else
|
|
58821
58822
|
this.pdf.addImage(S, "JPEG", C.x, C.y, C.w, C.h, null, null, R);
|
|
@@ -59024,10 +59025,10 @@ var of, K3, G3, iv = ["times"];
|
|
|
59024
59025
|
}
|
|
59025
59026
|
var et = x([JSON.parse(JSON.stringify(ct))], this.posX + this.margin[3], -At + L + this.ctx.prevPageLastElemOffset)[0];
|
|
59026
59027
|
S.scale >= 0.01 && (De = this.pdf.internal.getFontSize(), this.pdf.setFontSize(De * S.scale), Me = this.lineWidth, this.lineWidth = Me * S.scale);
|
|
59027
|
-
var
|
|
59028
|
-
if (
|
|
59029
|
-
if (
|
|
59030
|
-
var Ye =
|
|
59028
|
+
var Et = this.autoPaging !== "text";
|
|
59029
|
+
if (Et || et.y + et.h <= fe) {
|
|
59030
|
+
if (Et || et.y >= L && et.x <= We) {
|
|
59031
|
+
var Ye = Et ? S.text : this.pdf.splitTextToSize(S.text, S.maxWidth || We - et.x)[0], Yn = x([JSON.parse(JSON.stringify(ze))], this.posX + this.margin[3], -At + L + this.ctx.prevPageLastElemOffset)[0], Mt = Et && (C > R || C < w) && y.call(this);
|
|
59031
59032
|
Mt && (this.pdf.saveGraphicsState(), this.pdf.rect(this.margin[3], this.margin[0], st, Ce, null).clip().discardPath()), this.pdf.text(Ye, Yn.x, Yn.y, { angle: S.angle, align: H, renderingMode: S.renderingMode }), Mt && this.pdf.restoreGraphicsState();
|
|
59032
59033
|
}
|
|
59033
59034
|
} else
|
|
@@ -60025,7 +60026,7 @@ function ov(t) {
|
|
|
60025
60026
|
}
|
|
60026
60027
|
function ie(S, H, G, ee, ne) {
|
|
60027
60028
|
for (var ue, ve = ne[0], we = ne[240], Qe = function(w, C) {
|
|
60028
|
-
var L, $, fe, Ce, We, st, At, vt, et,
|
|
60029
|
+
var L, $, fe, Ce, We, st, At, vt, et, Et, Ye = 0;
|
|
60029
60030
|
for (et = 0; et < 8; ++et) {
|
|
60030
60031
|
L = w[Ye], $ = w[Ye + 1], fe = w[Ye + 2], Ce = w[Ye + 3], We = w[Ye + 4], st = w[Ye + 5], At = w[Ye + 6];
|
|
60031
60032
|
var Yn = L + (vt = w[Ye + 7]), Mt = L - vt, $s = $ + At, rn = $ - At, fn = fe + st, Ki = fe - st, Kt = Ce + We, Ml = Ce - We, bn = Yn + Kt, ei = Yn - Kt, ko = $s + fn, wn = $s - fn;
|
|
@@ -60045,7 +60046,7 @@ function ov(t) {
|
|
|
60045
60046
|
w[Ye + 40] = hc + Hl, w[Ye + 24] = hc - Hl, w[Ye + 8] = pc + Ac, w[Ye + 56] = pc - Ac, Ye++;
|
|
60046
60047
|
}
|
|
60047
60048
|
for (et = 0; et < 64; ++et)
|
|
60048
|
-
|
|
60049
|
+
Et = w[et] * C[et], p[et] = Et > 0 ? Et + 0.5 | 0 : Et - 0.5 | 0;
|
|
60049
60050
|
return p;
|
|
60050
60051
|
}(S, H), De = 0; De < 64; ++De)
|
|
60051
60052
|
m[q[De]] = Qe[De];
|
|
@@ -60400,7 +60401,7 @@ function Z3(t) {
|
|
|
60400
60401
|
K = 255 & (K = (K = K + ((A.hd << 24 >> 24) * (O << 24 >> 24) >>> 5)) + ((A.ud << 24 >> 24) * (re << 24 >> 24) >>> 5)), E[U + P] = (4278255360 & F) + (re << 16) + K;
|
|
60401
60402
|
}
|
|
60402
60403
|
}
|
|
60403
|
-
function
|
|
60404
|
+
function Et(A, g, v, B, E) {
|
|
60404
60405
|
M[g] = function(U, P, F, O, K, re, me, ye, de) {
|
|
60405
60406
|
for (O = me; O < ye; ++O)
|
|
60406
60407
|
for (me = 0; me < de; ++me)
|
|
@@ -60807,7 +60808,7 @@ function Z3(t) {
|
|
|
60807
60808
|
var sn;
|
|
60808
60809
|
if (sn = U)
|
|
60809
60810
|
t: {
|
|
60810
|
-
var tn,
|
|
60811
|
+
var tn, kt, Mn, ns = B, zn = P, rs = F, Jt = me, gs = v, fs = ns.m, nr = ns.s, pr = [null], Lr = 1, Os = 0, to = rk[Jt];
|
|
60811
60812
|
n:
|
|
60812
60813
|
for (; ; ) {
|
|
60813
60814
|
if (gs && ie(fs, 1)) {
|
|
@@ -60821,9 +60822,9 @@ function Z3(t) {
|
|
|
60821
60822
|
}
|
|
60822
60823
|
if (fs.h)
|
|
60823
60824
|
break n;
|
|
60824
|
-
for (
|
|
60825
|
-
var xn = Hw[
|
|
60826
|
-
!
|
|
60825
|
+
for (kt = 0; 5 > kt; ++kt) {
|
|
60826
|
+
var xn = Hw[kt];
|
|
60827
|
+
!kt && 0 < Jt && (xn += 1 << Jt), Os < xn && (Os = xn);
|
|
60827
60828
|
}
|
|
60828
60829
|
var C1 = o(Lr * to, Q), e5 = Lr, t5 = o(e5, Z);
|
|
60829
60830
|
if (t5 == null)
|
|
@@ -60838,8 +60839,8 @@ function Z3(t) {
|
|
|
60838
60839
|
var ng = C1;
|
|
60839
60840
|
for (tn = Mn = 0; tn < Lr; ++tn) {
|
|
60840
60841
|
var di = tg[tn], Rc = di.G, Oc = di.H, n5 = 0, rg = 1, r5 = 0;
|
|
60841
|
-
for (
|
|
60842
|
-
xn = Hw[
|
|
60842
|
+
for (kt = 0; 5 > kt; ++kt) {
|
|
60843
|
+
xn = Hw[kt], Rc[kt] = ng, Oc[kt] = Mn, !kt && 0 < Jt && (xn += 1 << Jt);
|
|
60843
60844
|
s: {
|
|
60844
60845
|
var sg, B1 = xn, ig = ns, Ru = Du, Ck = ng, Bk = Mn, E1 = 0, Fa = ig.m, Ek = ie(Fa, 1);
|
|
60845
60846
|
if (s(Ru, 0, 0, B1), Ek) {
|
|
@@ -60888,7 +60889,7 @@ function Z3(t) {
|
|
|
60888
60889
|
}
|
|
60889
60890
|
if (ag == 0)
|
|
60890
60891
|
break n;
|
|
60891
|
-
if (rg && ek[
|
|
60892
|
+
if (rg && ek[kt] == 1 && (rg = ng[Mn].g == 0), n5 += ng[Mn].g, Mn += ag, 3 >= kt) {
|
|
60892
60893
|
var Nu, I1 = Du[0];
|
|
60893
60894
|
for (Nu = 1; Nu < xn; ++Nu)
|
|
60894
60895
|
Du[Nu] > I1 && (I1 = Du[Nu]);
|
|
@@ -61217,7 +61218,7 @@ function Z3(t) {
|
|
|
61217
61218
|
if (Pe = se, Oe = (oe = de).rb[oe.sb - 1], tt = oe.rb[oe.sb + oe.ja], Se = oe.ya[oe.aa + oe.ja], Ke = oe.kc ? Se.Ad : 0)
|
|
61218
61219
|
Oe.la = tt.la = 0, Se.Za || (Oe.Na = tt.Na = 0), Se.Hc = 0, Se.Gc = 0, Se.ia = 0;
|
|
61219
61220
|
else {
|
|
61220
|
-
var tn,
|
|
61221
|
+
var tn, kt;
|
|
61221
61222
|
if (Oe = tt, tt = Pe, Ke = oe.Pa.Xc, ht = oe.ya[oe.aa + oe.ja], Ge = oe.pb[ht.$b], je = ht.ad, qt = 0, Yt = oe.rb[oe.sb - 1], Dt = Lt = 0, s(je, qt, 0, 384), ht.Za)
|
|
61222
61223
|
var Mn = 0, ns = Ke[3];
|
|
61223
61224
|
else {
|
|
@@ -61235,17 +61236,17 @@ function Z3(t) {
|
|
|
61235
61236
|
var Jt = 15 & Oe.la, gs = 15 & Yt.la;
|
|
61236
61237
|
for (sn = 0; 4 > sn; ++sn) {
|
|
61237
61238
|
var fs = 1 & gs;
|
|
61238
|
-
for (rs =
|
|
61239
|
-
Jt = Jt >> 1 | (fs = (zn = ju(tt, ns, zn = fs + (1 & Jt), Ge.Sc, Mn, je, qt)) > Mn) << 7,
|
|
61240
|
-
Jt >>= 4, gs = gs >> 1 | fs << 7, Lt = (Lt << 8 |
|
|
61239
|
+
for (rs = kt = 0; 4 > rs; ++rs)
|
|
61240
|
+
Jt = Jt >> 1 | (fs = (zn = ju(tt, ns, zn = fs + (1 & Jt), Ge.Sc, Mn, je, qt)) > Mn) << 7, kt = kt << 2 | (3 < zn ? 3 : 1 < zn ? 2 : je[qt + 0] != 0), qt += 16;
|
|
61241
|
+
Jt >>= 4, gs = gs >> 1 | fs << 7, Lt = (Lt << 8 | kt) >>> 0;
|
|
61241
61242
|
}
|
|
61242
61243
|
for (ns = Jt, Mn = gs >> 4, tn = 0; 4 > tn; tn += 2) {
|
|
61243
|
-
for (
|
|
61244
|
+
for (kt = 0, Jt = Oe.la >> 4 + tn, gs = Yt.la >> 4 + tn, sn = 0; 2 > sn; ++sn) {
|
|
61244
61245
|
for (fs = 1 & gs, rs = 0; 2 > rs; ++rs)
|
|
61245
|
-
zn = fs + (1 & Jt), Jt = Jt >> 1 | (fs = 0 < (zn = ju(tt, Ke[2], zn, Ge.Qc, 0, je, qt))) << 3,
|
|
61246
|
+
zn = fs + (1 & Jt), Jt = Jt >> 1 | (fs = 0 < (zn = ju(tt, Ke[2], zn, Ge.Qc, 0, je, qt))) << 3, kt = kt << 2 | (3 < zn ? 3 : 1 < zn ? 2 : je[qt + 0] != 0), qt += 16;
|
|
61246
61247
|
Jt >>= 2, gs = gs >> 1 | fs << 5;
|
|
61247
61248
|
}
|
|
61248
|
-
Dt |=
|
|
61249
|
+
Dt |= kt << 4 * tn, ns |= Jt << 4 << tn, Mn |= (240 & gs) << tn;
|
|
61249
61250
|
}
|
|
61250
61251
|
Oe.la = ns, Yt.la = Mn, ht.Hc = Lt, ht.Gc = Dt, ht.ia = 43690 & Dt ? 0 : Ge.ia, Ke = !(Lt | Dt);
|
|
61251
61252
|
}
|
|
@@ -61254,9 +61255,9 @@ function Z3(t) {
|
|
|
61254
61255
|
}
|
|
61255
61256
|
if (cu(de), oe = Fe, Pe = 1, Se = (se = de).D, Oe = 0 < se.L && se.M >= se.zb && se.M <= se.Va, se.Aa == 0)
|
|
61256
61257
|
e: {
|
|
61257
|
-
if (Se.M = se.M, Se.uc = Oe, Cu(se, Se), Pe = 1, Se = (
|
|
61258
|
-
for (fs = (zn = se).D.M, e(zn.D.uc),
|
|
61259
|
-
Mn =
|
|
61258
|
+
if (Se.M = se.M, Se.uc = Oe, Cu(se, Se), Pe = 1, Se = (kt = se.D).Nb, Oe = (Dt = eg[se.L]) * se.R, tt = Dt / 2 * se.B, sn = 16 * Se * se.R, rs = 8 * Se * se.B, Ke = se.sa, ht = se.ta - Oe + sn, Ge = se.qa, je = se.ra - tt + rs, qt = se.Ha, Yt = se.Ia - tt + rs, gs = (Jt = kt.M) == 0, Lt = Jt >= se.Va - 1, se.Aa == 2 && Cu(se, kt), kt.uc)
|
|
61259
|
+
for (fs = (zn = se).D.M, e(zn.D.uc), kt = zn.yb; kt < zn.Hb; ++kt) {
|
|
61260
|
+
Mn = kt, ns = fs;
|
|
61260
61261
|
var nr = (pr = (xn = zn).D).Nb;
|
|
61261
61262
|
tn = xn.R;
|
|
61262
61263
|
var pr = pr.wa[pr.Y + Mn], Lr = xn.sa, Os = xn.ta + 16 * nr * tn + 16 * Mn, to = pr.dd, rr = pr.tc;
|
|
@@ -61269,11 +61270,11 @@ function Z3(t) {
|
|
|
61269
61270
|
}
|
|
61270
61271
|
}
|
|
61271
61272
|
if (se.ia && alert("todo:DitherRow"), oe.put != null) {
|
|
61272
|
-
if (
|
|
61273
|
+
if (kt = 16 * Jt, Jt = 16 * (Jt + 1), gs ? (oe.y = se.sa, oe.O = se.ta + sn, oe.f = se.qa, oe.N = se.ra + rs, oe.ea = se.Ha, oe.W = se.Ia + rs) : (kt -= Dt, oe.y = Ke, oe.O = ht, oe.f = Ge, oe.N = je, oe.ea = qt, oe.W = Yt), Lt || (Jt -= Dt), Jt > oe.o && (Jt = oe.o), oe.F = null, oe.J = null, se.Fa != null && 0 < se.Fa.length && kt < Jt && (oe.J = _u(se, oe, kt, Jt - kt), oe.F = se.mb, oe.F == null && oe.F.length == 0)) {
|
|
61273
61274
|
Pe = Sn(se, 3, "Could not decode alpha data.");
|
|
61274
61275
|
break e;
|
|
61275
61276
|
}
|
|
61276
|
-
|
|
61277
|
+
kt < oe.j && (Dt = oe.j - kt, kt = oe.j, e(!(1 & Dt)), oe.O += se.R * Dt, oe.N += se.B * (Dt >> 1), oe.W += se.B * (Dt >> 1), oe.F != null && (oe.J += oe.width * Dt)), kt < Jt && (oe.O += oe.v, oe.N += oe.v >> 1, oe.W += oe.v >> 1, oe.F != null && (oe.J += oe.v), oe.ka = kt - oe.j, oe.U = oe.va - oe.v, oe.T = Jt - kt, Pe = oe.put(oe));
|
|
61277
61278
|
}
|
|
61278
61279
|
Se + 1 != se.Ic || Lt || (r(se.sa, se.ta - Oe, Ke, ht + 16 * se.R, Oe), r(se.qa, se.ra - tt, Ge, je + 8 * se.B, tt), r(se.Ha, se.Ia - tt, qt, Yt + 8 * se.B, tt));
|
|
61279
61280
|
}
|
|
@@ -62081,11 +62082,11 @@ function Z3(t) {
|
|
|
62081
62082
|
var g1 = M.PredictorAdd0;
|
|
62082
62083
|
M.PredictorAdd1 = st, C("Predictor2", "PredictorAdd2"), C("Predictor3", "PredictorAdd3"), C("Predictor4", "PredictorAdd4"), C("Predictor5", "PredictorAdd5"), C("Predictor6", "PredictorAdd6"), C("Predictor7", "PredictorAdd7"), C("Predictor8", "PredictorAdd8"), C("Predictor9", "PredictorAdd9"), C("Predictor10", "PredictorAdd10"), C("Predictor11", "PredictorAdd11"), C("Predictor12", "PredictorAdd12"), C("Predictor13", "PredictorAdd13");
|
|
62083
62084
|
var Su = M.PredictorAdd2;
|
|
62084
|
-
|
|
62085
|
+
Et("ColorIndexInverseTransform", "MapARGB", "32b", function(A) {
|
|
62085
62086
|
return A >> 8 & 255;
|
|
62086
62087
|
}, function(A) {
|
|
62087
62088
|
return A;
|
|
62088
|
-
}),
|
|
62089
|
+
}), Et("VP8LColorIndexInverseTransformAlpha", "MapAlpha", "8b", function(A) {
|
|
62089
62090
|
return A;
|
|
62090
62091
|
}, function(A) {
|
|
62091
62092
|
return A >> 8 & 255;
|
|
@@ -62671,7 +62672,7 @@ function(t) {
|
|
|
62671
62672
|
*/
|
|
62672
62673
|
function(t) {
|
|
62673
62674
|
function e() {
|
|
62674
|
-
return (mt.canvg ? Promise.resolve(mt.canvg) : import("./index.es-
|
|
62675
|
+
return (mt.canvg ? Promise.resolve(mt.canvg) : import("./index.es-e8fed60a.js")).catch(function(n) {
|
|
62675
62676
|
return Promise.reject(new Error("Could not load canvg: " + n));
|
|
62676
62677
|
}).then(function(n) {
|
|
62677
62678
|
return n.default ? n.default : n;
|
|
@@ -64588,8 +64589,8 @@ let Gr = class extends qe {
|
|
|
64588
64589
|
var t;
|
|
64589
64590
|
ae.info("app-home::webSocket");
|
|
64590
64591
|
try {
|
|
64591
|
-
const e = yield
|
|
64592
|
-
if (this._stateC2p.isActiveWs =
|
|
64592
|
+
const e = yield Bt.connect(this._stateC2p.statePaymentRequest.id);
|
|
64593
|
+
if (this._stateC2p.isActiveWs = Bt.wsIsRunning(), e.status === "WS_DISCONNECTED") {
|
|
64593
64594
|
this._statusMessage = "WS_DISCONNECTED", this._isShowCardPayment = !1, this._updateCustomerProperties(pt.STATUS);
|
|
64594
64595
|
return;
|
|
64595
64596
|
}
|
|
@@ -64608,20 +64609,20 @@ let Gr = class extends qe {
|
|
|
64608
64609
|
}
|
|
64609
64610
|
setDurationPayment(t) {
|
|
64610
64611
|
var e;
|
|
64611
|
-
|
|
64612
|
+
Bt.getStartPaymentTime() && (ae.info("paymentDuration", {
|
|
64612
64613
|
context: xe.CLICK_TO_PAY,
|
|
64613
64614
|
origin_sdk: av,
|
|
64614
64615
|
tag: "PAYMENT_DURATION",
|
|
64615
64616
|
is_embedded: this._payfacContext.isEmbedded,
|
|
64616
64617
|
contextObject: {
|
|
64617
|
-
duration_context:
|
|
64618
|
+
duration_context: Bt.endPayment(),
|
|
64618
64619
|
payment_request_id: (e = this._stateC2p.statePaymentRequest) == null ? void 0 : e.id,
|
|
64619
64620
|
payment_request_status: this._statusMessage,
|
|
64620
64621
|
card_name: t.transactions[0].payment_method.name,
|
|
64621
64622
|
card_type: t.transactions[0].payment_method.card_type,
|
|
64622
64623
|
payment_type: t.payment_type
|
|
64623
64624
|
}
|
|
64624
|
-
}),
|
|
64625
|
+
}), Bt.setEndPaymentTime());
|
|
64625
64626
|
}
|
|
64626
64627
|
getPaymentRequestAndRedirectToStatus() {
|
|
64627
64628
|
return ce(this, null, function* () {
|
|
@@ -64755,7 +64756,7 @@ let Pi = class extends qe {
|
|
|
64755
64756
|
this._startPolling(), this.createEvent("button-pushed", pt.QR), this.isLoading = !1, this.showQr = !0;
|
|
64756
64757
|
}
|
|
64757
64758
|
_startPolling() {
|
|
64758
|
-
!
|
|
64759
|
+
!Bt.wsIsRunning() && !pn.isPollingRunning() ? pn.startPolling(this._stateC2P.statePaymentRequest.id, this._payfacContext.context) : pn.isPollingRunning() && pn.extendTime();
|
|
64759
64760
|
}
|
|
64760
64761
|
_toggleShowPersonalDataForm() {
|
|
64761
64762
|
const t = this._stateC2P.digitalCards.length > 0 ? pt.CARD_LIST : pt.HOLDER_FORM;
|
|
@@ -66765,7 +66766,7 @@ let On = class t extends qe {
|
|
|
66765
66766
|
return ce(this, null, function* () {
|
|
66766
66767
|
var e;
|
|
66767
66768
|
try {
|
|
66768
|
-
|
|
66769
|
+
Bt.extendHeartbeat(this._stateC2P.statePaymentRequest.id), ae.info("status::extendHeartBeat"), this._stateC2P.isExtendedWs = !0, this._stateStatus.isStart = !1, this.createEvent("button-pushed", pt.LOADING), ae.info("extendHeartBeat", {
|
|
66769
66770
|
context: xe.CLICK_TO_PAY,
|
|
66770
66771
|
origin_sdk: aC,
|
|
66771
66772
|
tag: "EXTEND_HEART_BEAT",
|
|
@@ -67918,7 +67919,7 @@ let Fi = class extends qe {
|
|
|
67918
67919
|
this.isShowToast = !1;
|
|
67919
67920
|
}, 3e3);
|
|
67920
67921
|
}), (e = this.shadowRoot) == null || e.addEventListener("button-pushed", (n) => {
|
|
67921
|
-
this.isShowCardPayment = !0, this.state.page = n.detail ? n.detail : dt.MAIN, (n.detail === dt.QR || n.detail === dt.STATUS || n.detail === dt.LOADING || n.detail === dt.PCP_LIST || n.detail === dt.PANEL_ASSOCIATION || n.detail === dt.ASSOCIATION_PROCESS) && (this.isShowCardPayment = !1), n.detail === dt.MAIN && (this.state.isActiveWs || this.webSocket(), !this.state.isActiveInstallment && !this.state.isCardPresent && this.getinstallment()), this.requestUpdate(), this.routerState(), this.state.statePaymentRequest && ae.info("connectedCallback", {
|
|
67922
|
+
Bt.extendHeartbeat(this.state.statePaymentRequest.id), this.isShowCardPayment = !0, this.state.page = n.detail ? n.detail : dt.MAIN, (n.detail === dt.QR || n.detail === dt.STATUS || n.detail === dt.LOADING || n.detail === dt.PCP_LIST || n.detail === dt.PANEL_ASSOCIATION || n.detail === dt.ASSOCIATION_PROCESS) && (this.isShowCardPayment = !1), n.detail === dt.MAIN && (this.state.isActiveWs || this.webSocket(), !this.state.isActiveInstallment && !this.state.isCardPresent && this.getinstallment()), this.requestUpdate(), this.routerState(), this.state.statePaymentRequest && ae.info("connectedCallback", {
|
|
67922
67923
|
context: xe.ACCOUNT_TO_ACCOUNT,
|
|
67923
67924
|
tag: "APP_HOME_PAGES",
|
|
67924
67925
|
is_embedded: this.payfacContext.isEmbedded,
|
|
@@ -67995,7 +67996,7 @@ let Fi = class extends qe {
|
|
|
67995
67996
|
var t;
|
|
67996
67997
|
this.state.isActiveWs = !0;
|
|
67997
67998
|
try {
|
|
67998
|
-
if ((yield
|
|
67999
|
+
if ((yield Bt.connect(this.state.statePaymentRequest.id)).status === "WS_DISCONNECTED") {
|
|
67999
68000
|
this.statusMessage = "WS_DISCONNECTED", this.isShowCardPayment = !1, this.payfacContext.window && !this.payfacContext.window.closed && this.payfacContext.window.close();
|
|
68000
68001
|
const n = document.querySelector("confirmation-modal");
|
|
68001
68002
|
n == null || n.remove();
|
|
@@ -68982,7 +68983,7 @@ let Dr = class t extends qe {
|
|
|
68982
68983
|
extendHeartBeat() {
|
|
68983
68984
|
return ce(this, null, function* () {
|
|
68984
68985
|
try {
|
|
68985
|
-
|
|
68986
|
+
Bt.extendHeartbeat(this.state.statePaymentRequest.id), this.state.isExtendedWs = !0, this.createEvent("button-pushed", dt.LOADING);
|
|
68986
68987
|
} catch (e) {
|
|
68987
68988
|
console.error(e), nt("EXTEND_HEART_BEAT_ERROR", "Extend heart beat failed.");
|
|
68988
68989
|
}
|