@ranty/ranty-sdk 0.0.35 → 1.0.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.
- package/dist/index.js +557 -557
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var qd = Object.defineProperty, Hd = Object.defineProperties;
|
|
2
2
|
var Kd = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var iu = Object.getOwnPropertySymbols, Gd = Object.getPrototypeOf,
|
|
3
|
+
var iu = Object.getOwnPropertySymbols, Gd = Object.getPrototypeOf, Yd = Object.prototype.hasOwnProperty, Wd = Object.prototype.propertyIsEnumerable, Jd = Reflect.get;
|
|
4
4
|
var ou = (r, e, t) => e in r ? qd(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, ge = (r, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
|
|
6
|
+
Yd.call(e, t) && ou(r, t, e[t]);
|
|
7
7
|
if (iu)
|
|
8
8
|
for (var t of iu(e))
|
|
9
|
-
|
|
9
|
+
Wd.call(e, t) && ou(r, t, e[t]);
|
|
10
10
|
return r;
|
|
11
|
-
},
|
|
11
|
+
}, Te = (r, e) => Hd(r, Kd(e));
|
|
12
12
|
var nr = (r, e, t) => Jd(Gd(r), t, e);
|
|
13
13
|
var F = (r, e, t) => new Promise((n, i) => {
|
|
14
14
|
var o = (c) => {
|
|
@@ -693,7 +693,7 @@ const lu = qh, Kc = {
|
|
|
693
693
|
silentJSONParsing: !0,
|
|
694
694
|
forcedJSONParsing: !0,
|
|
695
695
|
clarifyTimeoutError: !1
|
|
696
|
-
}, Hh = typeof URLSearchParams != "undefined" ? URLSearchParams : ha, Kh = typeof FormData != "undefined" ? FormData : null, Gh = typeof Blob != "undefined" ? Blob : null,
|
|
696
|
+
}, Hh = typeof URLSearchParams != "undefined" ? URLSearchParams : ha, Kh = typeof FormData != "undefined" ? FormData : null, Gh = typeof Blob != "undefined" ? Blob : null, Yh = {
|
|
697
697
|
isBrowser: !0,
|
|
698
698
|
classes: {
|
|
699
699
|
URLSearchParams: Hh,
|
|
@@ -701,13 +701,13 @@ const lu = qh, Kc = {
|
|
|
701
701
|
Blob: Gh
|
|
702
702
|
},
|
|
703
703
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
704
|
-
}, Gc = typeof window != "undefined" && typeof document != "undefined",
|
|
704
|
+
}, Gc = typeof window != "undefined" && typeof document != "undefined", Wh = ((r) => Gc && ["ReactNative", "NativeScript", "NS"].indexOf(r) < 0)(typeof navigator != "undefined" && navigator.product), Jh = (() => typeof WorkerGlobalScope != "undefined" && // eslint-disable-next-line no-undef
|
|
705
705
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function")(), Xh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
706
706
|
__proto__: null,
|
|
707
707
|
hasBrowserEnv: Gc,
|
|
708
|
-
hasStandardBrowserEnv:
|
|
708
|
+
hasStandardBrowserEnv: Wh,
|
|
709
709
|
hasStandardBrowserWebWorkerEnv: Jh
|
|
710
|
-
}, Symbol.toStringTag, { value: "Module" })), Pt = ge(ge({}, Xh),
|
|
710
|
+
}, Symbol.toStringTag, { value: "Module" })), Pt = ge(ge({}, Xh), Yh);
|
|
711
711
|
function Zh(r, e) {
|
|
712
712
|
return So(r, new Pt.classes.URLSearchParams(), Object.assign({
|
|
713
713
|
visitor: function(t, n, i, o) {
|
|
@@ -727,7 +727,7 @@ function ef(r) {
|
|
|
727
727
|
o = t[n], e[o] = r[o];
|
|
728
728
|
return e;
|
|
729
729
|
}
|
|
730
|
-
function
|
|
730
|
+
function Yc(r) {
|
|
731
731
|
function e(t, n, i, o) {
|
|
732
732
|
let s = t[o++];
|
|
733
733
|
if (s === "__proto__")
|
|
@@ -759,7 +759,7 @@ const fa = {
|
|
|
759
759
|
transformRequest: [function(e, t) {
|
|
760
760
|
const n = t.getContentType() || "", i = n.indexOf("application/json") > -1, o = T.isObject(e);
|
|
761
761
|
if (o && T.isHTMLForm(e) && (e = new FormData(e)), T.isFormData(e))
|
|
762
|
-
return i ? JSON.stringify(
|
|
762
|
+
return i ? JSON.stringify(Yc(e)) : e;
|
|
763
763
|
if (T.isArrayBuffer(e) || T.isBuffer(e) || T.isStream(e) || T.isFile(e) || T.isBlob(e))
|
|
764
764
|
return e;
|
|
765
765
|
if (T.isArrayBufferView(e))
|
|
@@ -1012,7 +1012,7 @@ function jo(r, e) {
|
|
|
1012
1012
|
o = a.call(t, o, i.normalize(), e ? e.status : void 0);
|
|
1013
1013
|
}), i.normalize(), o;
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1015
|
+
function Wc(r) {
|
|
1016
1016
|
return !!(r && r.__CANCEL__);
|
|
1017
1017
|
}
|
|
1018
1018
|
function hi(r, e, t) {
|
|
@@ -1270,7 +1270,7 @@ function pu(r) {
|
|
|
1270
1270
|
n
|
|
1271
1271
|
), n.headers = jt.from(n.headers), n;
|
|
1272
1272
|
}, function(n) {
|
|
1273
|
-
return
|
|
1273
|
+
return Wc(n) || (Vo(r), n && n.response && (n.response.data = jo.call(
|
|
1274
1274
|
r,
|
|
1275
1275
|
r.transformResponse,
|
|
1276
1276
|
n.response
|
|
@@ -1663,27 +1663,27 @@ function Qc(r) {
|
|
|
1663
1663
|
return Qc(gn(r, i));
|
|
1664
1664
|
}, t;
|
|
1665
1665
|
}
|
|
1666
|
-
const
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1666
|
+
const Ae = Qc(pa);
|
|
1667
|
+
Ae.Axios = zi;
|
|
1668
|
+
Ae.CanceledError = hi;
|
|
1669
|
+
Ae.CancelToken = wf;
|
|
1670
|
+
Ae.isCancel = Wc;
|
|
1671
|
+
Ae.VERSION = Zc;
|
|
1672
|
+
Ae.toFormData = So;
|
|
1673
|
+
Ae.AxiosError = J;
|
|
1674
|
+
Ae.Cancel = Ae.CanceledError;
|
|
1675
|
+
Ae.all = function(e) {
|
|
1676
1676
|
return Promise.all(e);
|
|
1677
1677
|
};
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
const el =
|
|
1678
|
+
Ae.spread = _f;
|
|
1679
|
+
Ae.isAxiosError = Sf;
|
|
1680
|
+
Ae.mergeConfig = gn;
|
|
1681
|
+
Ae.AxiosHeaders = jt;
|
|
1682
|
+
Ae.formToJSON = (r) => Yc(T.isHTMLForm(r) ? new FormData(r) : r);
|
|
1683
|
+
Ae.getAdapter = Xc.getAdapter;
|
|
1684
|
+
Ae.HttpStatusCode = xf;
|
|
1685
|
+
Ae.default = Ae;
|
|
1686
|
+
const el = Ae;
|
|
1687
1687
|
var Vt = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
1688
1688
|
function Ef(r) {
|
|
1689
1689
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
@@ -2197,7 +2197,7 @@ const Qe = new Mf(), ul = (r = !1) => {
|
|
|
2197
2197
|
(t) => {
|
|
2198
2198
|
console.log(Qe.getEnvironment().VITE_DATADOG_ENV, "datadog"), t.baseURL = Qe.getEnvironment().VITE_API_RANTY_DOMAIN_API, t.headers["content-type"] = "application/json";
|
|
2199
2199
|
const n = sessionStorage.getItem("key");
|
|
2200
|
-
return n && (t.params =
|
|
2200
|
+
return n && (t.params = Te(ge({}, t.params), {
|
|
2201
2201
|
publicKey: n
|
|
2202
2202
|
})), t;
|
|
2203
2203
|
},
|
|
@@ -2349,7 +2349,7 @@ function Gf(r) {
|
|
|
2349
2349
|
var e = 0;
|
|
2350
2350
|
return r & 65535 || (r >>= 16, e += 16), r & 255 || (r >>= 8, e += 8), r & 15 || (r >>= 4, e += 4), r & 3 || (r >>= 2, e += 2), r & 1 || ++e, e;
|
|
2351
2351
|
}
|
|
2352
|
-
function
|
|
2352
|
+
function Yf(r) {
|
|
2353
2353
|
for (var e = 0; r != 0; )
|
|
2354
2354
|
r &= r - 1, ++e;
|
|
2355
2355
|
return e;
|
|
@@ -2371,7 +2371,7 @@ function xu(r) {
|
|
|
2371
2371
|
}
|
|
2372
2372
|
return n == 1 && (e += Ft(i << 2)), e;
|
|
2373
2373
|
}
|
|
2374
|
-
var en,
|
|
2374
|
+
var en, Wf = {
|
|
2375
2375
|
decode: function(r) {
|
|
2376
2376
|
var e;
|
|
2377
2377
|
if (en === void 0) {
|
|
@@ -2797,7 +2797,7 @@ var Ho = (
|
|
|
2797
2797
|
return this.tagClass === 0 && this.tagNumber === 0;
|
|
2798
2798
|
}, r;
|
|
2799
2799
|
}()
|
|
2800
|
-
), fr, Qf = 244837814094590, Cu = (Qf & 16777215) == 15715070,
|
|
2800
|
+
), fr, Qf = 244837814094590, Cu = (Qf & 16777215) == 15715070, Ye = [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], ep = (1 << 26) / Ye[Ye.length - 1], q = (
|
|
2801
2801
|
/** @class */
|
|
2802
2802
|
function() {
|
|
2803
2803
|
function r(e, t, n) {
|
|
@@ -2825,7 +2825,7 @@ var Ho = (
|
|
|
2825
2825
|
c < t ? (i = (this[a] & (1 << c) - 1) << t - c, i |= this[--a] >> (c += this.DB - t)) : (i = this[a] >> (c -= t) & n, c <= 0 && (c += this.DB, --a)), i > 0 && (o = !0), o && (s += Ft(i));
|
|
2826
2826
|
return o ? s : "0";
|
|
2827
2827
|
}, r.prototype.negate = function() {
|
|
2828
|
-
var e =
|
|
2828
|
+
var e = Y();
|
|
2829
2829
|
return r.ZERO.subTo(this, e), e;
|
|
2830
2830
|
}, r.prototype.abs = function() {
|
|
2831
2831
|
return this.s < 0 ? this.negate() : this;
|
|
@@ -2843,13 +2843,13 @@ var Ho = (
|
|
|
2843
2843
|
}, r.prototype.bitLength = function() {
|
|
2844
2844
|
return this.t <= 0 ? 0 : this.DB * (this.t - 1) + _i(this[this.t - 1] ^ this.s & this.DM);
|
|
2845
2845
|
}, r.prototype.mod = function(e) {
|
|
2846
|
-
var t =
|
|
2846
|
+
var t = Y();
|
|
2847
2847
|
return this.abs().divRemTo(e, null, t), this.s < 0 && t.compareTo(r.ZERO) > 0 && e.subTo(t, t), t;
|
|
2848
2848
|
}, r.prototype.modPowInt = function(e, t) {
|
|
2849
2849
|
var n;
|
|
2850
2850
|
return e < 256 || t.isEven() ? n = new Tu(t) : n = new Au(t), this.exp(e, n);
|
|
2851
2851
|
}, r.prototype.clone = function() {
|
|
2852
|
-
var e =
|
|
2852
|
+
var e = Y();
|
|
2853
2853
|
return this.copyTo(e), e;
|
|
2854
2854
|
}, r.prototype.intValue = function() {
|
|
2855
2855
|
if (this.s < 0) {
|
|
@@ -2885,26 +2885,26 @@ var Ho = (
|
|
|
2885
2885
|
}, r.prototype.max = function(e) {
|
|
2886
2886
|
return this.compareTo(e) > 0 ? this : e;
|
|
2887
2887
|
}, r.prototype.and = function(e) {
|
|
2888
|
-
var t =
|
|
2888
|
+
var t = Y();
|
|
2889
2889
|
return this.bitwiseTo(e, Kf, t), t;
|
|
2890
2890
|
}, r.prototype.or = function(e) {
|
|
2891
|
-
var t =
|
|
2891
|
+
var t = Y();
|
|
2892
2892
|
return this.bitwiseTo(e, wi, t), t;
|
|
2893
2893
|
}, r.prototype.xor = function(e) {
|
|
2894
|
-
var t =
|
|
2894
|
+
var t = Y();
|
|
2895
2895
|
return this.bitwiseTo(e, _u, t), t;
|
|
2896
2896
|
}, r.prototype.andNot = function(e) {
|
|
2897
|
-
var t =
|
|
2897
|
+
var t = Y();
|
|
2898
2898
|
return this.bitwiseTo(e, Su, t), t;
|
|
2899
2899
|
}, r.prototype.not = function() {
|
|
2900
|
-
for (var e =
|
|
2900
|
+
for (var e = Y(), t = 0; t < this.t; ++t)
|
|
2901
2901
|
e[t] = this.DM & ~this[t];
|
|
2902
2902
|
return e.t = this.t, e.s = ~this.s, e;
|
|
2903
2903
|
}, r.prototype.shiftLeft = function(e) {
|
|
2904
|
-
var t =
|
|
2904
|
+
var t = Y();
|
|
2905
2905
|
return e < 0 ? this.rShiftTo(-e, t) : this.lShiftTo(e, t), t;
|
|
2906
2906
|
}, r.prototype.shiftRight = function(e) {
|
|
2907
|
-
var t =
|
|
2907
|
+
var t = Y();
|
|
2908
2908
|
return e < 0 ? this.lShiftTo(-e, t) : this.rShiftTo(e, t), t;
|
|
2909
2909
|
}, r.prototype.getLowestSetBit = function() {
|
|
2910
2910
|
for (var e = 0; e < this.t; ++e)
|
|
@@ -2913,7 +2913,7 @@ var Ho = (
|
|
|
2913
2913
|
return this.s < 0 ? this.t * this.DB : -1;
|
|
2914
2914
|
}, r.prototype.bitCount = function() {
|
|
2915
2915
|
for (var e = 0, t = this.s & this.DM, n = 0; n < this.t; ++n)
|
|
2916
|
-
e +=
|
|
2916
|
+
e += Yf(this[n] ^ t);
|
|
2917
2917
|
return e;
|
|
2918
2918
|
}, r.prototype.testBit = function(e) {
|
|
2919
2919
|
var t = Math.floor(e / this.DB);
|
|
@@ -2925,22 +2925,22 @@ var Ho = (
|
|
|
2925
2925
|
}, r.prototype.flipBit = function(e) {
|
|
2926
2926
|
return this.changeBit(e, _u);
|
|
2927
2927
|
}, r.prototype.add = function(e) {
|
|
2928
|
-
var t =
|
|
2928
|
+
var t = Y();
|
|
2929
2929
|
return this.addTo(e, t), t;
|
|
2930
2930
|
}, r.prototype.subtract = function(e) {
|
|
2931
|
-
var t =
|
|
2931
|
+
var t = Y();
|
|
2932
2932
|
return this.subTo(e, t), t;
|
|
2933
2933
|
}, r.prototype.multiply = function(e) {
|
|
2934
|
-
var t =
|
|
2934
|
+
var t = Y();
|
|
2935
2935
|
return this.multiplyTo(e, t), t;
|
|
2936
2936
|
}, r.prototype.divide = function(e) {
|
|
2937
|
-
var t =
|
|
2937
|
+
var t = Y();
|
|
2938
2938
|
return this.divRemTo(e, t, null), t;
|
|
2939
2939
|
}, r.prototype.remainder = function(e) {
|
|
2940
|
-
var t =
|
|
2940
|
+
var t = Y();
|
|
2941
2941
|
return this.divRemTo(e, null, t), t;
|
|
2942
2942
|
}, r.prototype.divideAndRemainder = function(e) {
|
|
2943
|
-
var t =
|
|
2943
|
+
var t = Y(), n = Y();
|
|
2944
2944
|
return this.divRemTo(e, t, n), [t, n];
|
|
2945
2945
|
}, r.prototype.modPow = function(e, t) {
|
|
2946
2946
|
var n = e.bitLength(), i, o = ar(1), s;
|
|
@@ -2949,11 +2949,11 @@ var Ho = (
|
|
|
2949
2949
|
n < 18 ? i = 1 : n < 48 ? i = 3 : n < 144 ? i = 4 : n < 768 ? i = 5 : i = 6, n < 8 ? s = new Tu(t) : t.isEven() ? s = new rp(t) : s = new Au(t);
|
|
2950
2950
|
var a = [], c = 3, u = i - 1, l = (1 << i) - 1;
|
|
2951
2951
|
if (a[1] = s.convert(this), i > 1) {
|
|
2952
|
-
var d =
|
|
2952
|
+
var d = Y();
|
|
2953
2953
|
for (s.sqrTo(a[1], d); c <= l; )
|
|
2954
|
-
a[c] =
|
|
2954
|
+
a[c] = Y(), s.mulTo(d, a[c - 2], a[c]), c += 2;
|
|
2955
2955
|
}
|
|
2956
|
-
var p = e.t - 1, m, g = !0, v =
|
|
2956
|
+
var p = e.t - 1, m, g = !0, v = Y(), _;
|
|
2957
2957
|
for (n = _i(e[p]) - 1; p >= 0; ) {
|
|
2958
2958
|
for (n >= u ? m = e[p] >> n - u & l : (m = (e[p] & (1 << n + 1) - 1) << u - n, p > 0 && (m |= e[p - 1] >> this.DB + n - u)), c = i; !(m & 1); )
|
|
2959
2959
|
m >>= 1, --c;
|
|
@@ -3004,19 +3004,19 @@ var Ho = (
|
|
|
3004
3004
|
return s > 0 && n.lShiftTo(s, n), n;
|
|
3005
3005
|
}, r.prototype.isProbablePrime = function(e) {
|
|
3006
3006
|
var t, n = this.abs();
|
|
3007
|
-
if (n.t == 1 && n[0] <=
|
|
3008
|
-
for (t = 0; t <
|
|
3009
|
-
if (n[0] ==
|
|
3007
|
+
if (n.t == 1 && n[0] <= Ye[Ye.length - 1]) {
|
|
3008
|
+
for (t = 0; t < Ye.length; ++t)
|
|
3009
|
+
if (n[0] == Ye[t])
|
|
3010
3010
|
return !0;
|
|
3011
3011
|
return !1;
|
|
3012
3012
|
}
|
|
3013
3013
|
if (n.isEven())
|
|
3014
3014
|
return !1;
|
|
3015
|
-
for (t = 1; t <
|
|
3016
|
-
for (var i =
|
|
3017
|
-
i *=
|
|
3015
|
+
for (t = 1; t < Ye.length; ) {
|
|
3016
|
+
for (var i = Ye[t], o = t + 1; o < Ye.length && i < ep; )
|
|
3017
|
+
i *= Ye[o++];
|
|
3018
3018
|
for (i = n.modInt(i); t < o; )
|
|
3019
|
-
if (i %
|
|
3019
|
+
if (i % Ye[t++] == 0)
|
|
3020
3020
|
return !1;
|
|
3021
3021
|
}
|
|
3022
3022
|
return n.millerRabin(e);
|
|
@@ -3122,12 +3122,12 @@ var Ho = (
|
|
|
3122
3122
|
t != null && t.fromInt(0), n != null && this.copyTo(n);
|
|
3123
3123
|
return;
|
|
3124
3124
|
}
|
|
3125
|
-
n == null && (n =
|
|
3126
|
-
var s =
|
|
3125
|
+
n == null && (n = Y());
|
|
3126
|
+
var s = Y(), a = this.s, c = e.s, u = this.DB - _i(i[i.t - 1]);
|
|
3127
3127
|
u > 0 ? (i.lShiftTo(u, s), o.lShiftTo(u, n)) : (i.copyTo(s), o.copyTo(n));
|
|
3128
3128
|
var l = s.t, d = s[l - 1];
|
|
3129
3129
|
if (d != 0) {
|
|
3130
|
-
var p = d * (1 << this.F1) + (l > 1 ? s[l - 2] >> this.F2 : 0), m = this.FV / p, g = (1 << this.F1) / p, v = 1 << this.F2, _ = n.t, E = _ - l, x = t == null ?
|
|
3130
|
+
var p = d * (1 << this.F1) + (l > 1 ? s[l - 2] >> this.F2 : 0), m = this.FV / p, g = (1 << this.F1) / p, v = 1 << this.F2, _ = n.t, E = _ - l, x = t == null ? Y() : t;
|
|
3131
3131
|
for (s.dlShiftTo(E, x), n.compareTo(x) >= 0 && (n[n.t++] = 1, n.subTo(x, n)), r.ONE.dlShiftTo(l, x), x.subTo(s, s); s.t < l; )
|
|
3132
3132
|
s[s.t++] = 0;
|
|
3133
3133
|
for (; --E >= 0; ) {
|
|
@@ -3152,7 +3152,7 @@ var Ho = (
|
|
|
3152
3152
|
}, r.prototype.exp = function(e, t) {
|
|
3153
3153
|
if (e > 4294967295 || e < 1)
|
|
3154
3154
|
return r.ONE;
|
|
3155
|
-
var n =
|
|
3155
|
+
var n = Y(), i = Y(), o = t.convert(this), s = _i(e) - 1;
|
|
3156
3156
|
for (o.copyTo(n); --s >= 0; )
|
|
3157
3157
|
if (t.sqrTo(n, i), (e & 1 << s) > 0)
|
|
3158
3158
|
t.mulTo(i, o, n);
|
|
@@ -3166,7 +3166,7 @@ var Ho = (
|
|
|
3166
3166
|
}, r.prototype.toRadix = function(e) {
|
|
3167
3167
|
if (e == null && (e = 10), this.signum() == 0 || e < 2 || e > 36)
|
|
3168
3168
|
return "0";
|
|
3169
|
-
var t = this.chunkSize(e), n = Math.pow(e, t), i = ar(n), o =
|
|
3169
|
+
var t = this.chunkSize(e), n = Math.pow(e, t), i = ar(n), o = Y(), s = Y(), a = "";
|
|
3170
3170
|
for (this.divRemTo(i, o, s); o.signum() > 0; )
|
|
3171
3171
|
a = (n + s.intValue()).toString(e).substr(1) + a, o.divRemTo(i, o, s);
|
|
3172
3172
|
return s.intValue().toString(e) + a;
|
|
@@ -3264,9 +3264,9 @@ var Ho = (
|
|
|
3264
3264
|
if (n <= 0)
|
|
3265
3265
|
return !1;
|
|
3266
3266
|
var i = t.shiftRight(n);
|
|
3267
|
-
e = e + 1 >> 1, e >
|
|
3268
|
-
for (var o =
|
|
3269
|
-
o.fromInt(
|
|
3267
|
+
e = e + 1 >> 1, e > Ye.length && (e = Ye.length);
|
|
3268
|
+
for (var o = Y(), s = 0; s < e; ++s) {
|
|
3269
|
+
o.fromInt(Ye[Math.floor(Math.random() * Ye.length)]);
|
|
3270
3270
|
var a = o.modPow(i, this);
|
|
3271
3271
|
if (a.compareTo(r.ONE) != 0 && a.compareTo(t) != 0) {
|
|
3272
3272
|
for (var c = 1; c++ < n && a.compareTo(t) != 0; )
|
|
@@ -3278,7 +3278,7 @@ var Ho = (
|
|
|
3278
3278
|
}
|
|
3279
3279
|
return !0;
|
|
3280
3280
|
}, r.prototype.square = function() {
|
|
3281
|
-
var e =
|
|
3281
|
+
var e = Y();
|
|
3282
3282
|
return this.squareTo(e), e;
|
|
3283
3283
|
}, r.prototype.gcda = function(e, t) {
|
|
3284
3284
|
var n = this.s < 0 ? this.negate() : this.clone(), i = e.s < 0 ? e.negate() : e.clone();
|
|
@@ -3357,10 +3357,10 @@ var Ho = (
|
|
|
3357
3357
|
this.m = e, this.mp = e.invDigit(), this.mpl = this.mp & 32767, this.mph = this.mp >> 15, this.um = (1 << e.DB - 15) - 1, this.mt2 = 2 * e.t;
|
|
3358
3358
|
}
|
|
3359
3359
|
return r.prototype.convert = function(e) {
|
|
3360
|
-
var t =
|
|
3361
|
-
return e.abs().dlShiftTo(this.m.t, t), t.divRemTo(this.m, null, t), e.s < 0 && t.compareTo(
|
|
3360
|
+
var t = Y();
|
|
3361
|
+
return e.abs().dlShiftTo(this.m.t, t), t.divRemTo(this.m, null, t), e.s < 0 && t.compareTo(q.ZERO) > 0 && this.m.subTo(t, t), t;
|
|
3362
3362
|
}, r.prototype.revert = function(e) {
|
|
3363
|
-
var t =
|
|
3363
|
+
var t = Y();
|
|
3364
3364
|
return e.copyTo(t), this.reduce(t), t;
|
|
3365
3365
|
}, r.prototype.reduce = function(e) {
|
|
3366
3366
|
for (; e.t <= this.mt2; )
|
|
@@ -3381,14 +3381,14 @@ var Ho = (
|
|
|
3381
3381
|
/** @class */
|
|
3382
3382
|
function() {
|
|
3383
3383
|
function r(e) {
|
|
3384
|
-
this.m = e, this.r2 =
|
|
3384
|
+
this.m = e, this.r2 = Y(), this.q3 = Y(), q.ONE.dlShiftTo(2 * e.t, this.r2), this.mu = this.r2.divide(e);
|
|
3385
3385
|
}
|
|
3386
3386
|
return r.prototype.convert = function(e) {
|
|
3387
3387
|
if (e.s < 0 || e.t > 2 * this.m.t)
|
|
3388
3388
|
return e.mod(this.m);
|
|
3389
3389
|
if (e.compareTo(this.m) < 0)
|
|
3390
3390
|
return e;
|
|
3391
|
-
var t =
|
|
3391
|
+
var t = Y();
|
|
3392
3392
|
return e.copyTo(t), this.reduce(t), t;
|
|
3393
3393
|
}, r.prototype.revert = function(e) {
|
|
3394
3394
|
return e;
|
|
@@ -3404,39 +3404,39 @@ var Ho = (
|
|
|
3404
3404
|
}, r;
|
|
3405
3405
|
}()
|
|
3406
3406
|
);
|
|
3407
|
-
function
|
|
3408
|
-
return new
|
|
3407
|
+
function Y() {
|
|
3408
|
+
return new q(null);
|
|
3409
3409
|
}
|
|
3410
3410
|
function we(r, e) {
|
|
3411
|
-
return new
|
|
3411
|
+
return new q(r, e);
|
|
3412
3412
|
}
|
|
3413
3413
|
var Iu = typeof navigator != "undefined";
|
|
3414
|
-
Iu && Cu && navigator.appName == "Microsoft Internet Explorer" ? (
|
|
3414
|
+
Iu && Cu && navigator.appName == "Microsoft Internet Explorer" ? (q.prototype.am = function(e, t, n, i, o, s) {
|
|
3415
3415
|
for (var a = t & 32767, c = t >> 15; --s >= 0; ) {
|
|
3416
3416
|
var u = this[e] & 32767, l = this[e++] >> 15, d = c * u + l * a;
|
|
3417
3417
|
u = a * u + ((d & 32767) << 15) + n[i] + (o & 1073741823), o = (u >>> 30) + (d >>> 15) + c * l + (o >>> 30), n[i++] = u & 1073741823;
|
|
3418
3418
|
}
|
|
3419
3419
|
return o;
|
|
3420
|
-
}, fr = 30) : Iu && Cu && navigator.appName != "Netscape" ? (
|
|
3420
|
+
}, fr = 30) : Iu && Cu && navigator.appName != "Netscape" ? (q.prototype.am = function(e, t, n, i, o, s) {
|
|
3421
3421
|
for (; --s >= 0; ) {
|
|
3422
3422
|
var a = t * this[e++] + n[i] + o;
|
|
3423
3423
|
o = Math.floor(a / 67108864), n[i++] = a & 67108863;
|
|
3424
3424
|
}
|
|
3425
3425
|
return o;
|
|
3426
|
-
}, fr = 26) : (
|
|
3426
|
+
}, fr = 26) : (q.prototype.am = function(e, t, n, i, o, s) {
|
|
3427
3427
|
for (var a = t & 16383, c = t >> 14; --s >= 0; ) {
|
|
3428
3428
|
var u = this[e] & 16383, l = this[e++] >> 14, d = c * u + l * a;
|
|
3429
3429
|
u = a * u + ((d & 16383) << 14) + n[i] + o, o = (u >> 28) + (d >> 14) + c * l, n[i++] = u & 268435455;
|
|
3430
3430
|
}
|
|
3431
3431
|
return o;
|
|
3432
3432
|
}, fr = 28);
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3433
|
+
q.prototype.DB = fr;
|
|
3434
|
+
q.prototype.DM = (1 << fr) - 1;
|
|
3435
|
+
q.prototype.DV = 1 << fr;
|
|
3436
3436
|
var wa = 52;
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3437
|
+
q.prototype.FV = Math.pow(2, wa);
|
|
3438
|
+
q.prototype.F1 = wa - fr;
|
|
3439
|
+
q.prototype.F2 = 2 * fr - wa;
|
|
3440
3440
|
var Eo = [], En, pt;
|
|
3441
3441
|
En = "0".charCodeAt(0);
|
|
3442
3442
|
for (pt = 0; pt <= 9; ++pt)
|
|
@@ -3452,15 +3452,15 @@ function Du(r, e) {
|
|
|
3452
3452
|
return t == null ? -1 : t;
|
|
3453
3453
|
}
|
|
3454
3454
|
function ar(r) {
|
|
3455
|
-
var e =
|
|
3455
|
+
var e = Y();
|
|
3456
3456
|
return e.fromInt(r), e;
|
|
3457
3457
|
}
|
|
3458
3458
|
function _i(r) {
|
|
3459
3459
|
var e = 1, t;
|
|
3460
3460
|
return (t = r >>> 16) != 0 && (r = t, e += 16), (t = r >> 8) != 0 && (r = t, e += 8), (t = r >> 4) != 0 && (r = t, e += 4), (t = r >> 2) != 0 && (r = t, e += 2), (t = r >> 1) != 0 && (r = t, e += 1), e;
|
|
3461
3461
|
}
|
|
3462
|
-
|
|
3463
|
-
|
|
3462
|
+
q.ZERO = ar(0);
|
|
3463
|
+
q.ONE = ar(1);
|
|
3464
3464
|
var np = (
|
|
3465
3465
|
/** @class */
|
|
3466
3466
|
function() {
|
|
@@ -3549,7 +3549,7 @@ function ap(r, e) {
|
|
|
3549
3549
|
o.nextBytes(s);
|
|
3550
3550
|
t[--e] = s[0];
|
|
3551
3551
|
}
|
|
3552
|
-
return t[--e] = 2, t[--e] = 0, new
|
|
3552
|
+
return t[--e] = 2, t[--e] = 0, new q(t);
|
|
3553
3553
|
}
|
|
3554
3554
|
var up = (
|
|
3555
3555
|
/** @class */
|
|
@@ -3584,17 +3584,17 @@ var up = (
|
|
|
3584
3584
|
}, r.prototype.generate = function(e, t) {
|
|
3585
3585
|
var n = new Cs(), i = e >> 1;
|
|
3586
3586
|
this.e = parseInt(t, 16);
|
|
3587
|
-
for (var o = new
|
|
3588
|
-
for (; this.p = new
|
|
3587
|
+
for (var o = new q(t, 16); ; ) {
|
|
3588
|
+
for (; this.p = new q(e - i, 1, n), !(this.p.subtract(q.ONE).gcd(o).compareTo(q.ONE) == 0 && this.p.isProbablePrime(10)); )
|
|
3589
3589
|
;
|
|
3590
|
-
for (; this.q = new
|
|
3590
|
+
for (; this.q = new q(i, 1, n), !(this.q.subtract(q.ONE).gcd(o).compareTo(q.ONE) == 0 && this.q.isProbablePrime(10)); )
|
|
3591
3591
|
;
|
|
3592
3592
|
if (this.p.compareTo(this.q) <= 0) {
|
|
3593
3593
|
var s = this.p;
|
|
3594
3594
|
this.p = this.q, this.q = s;
|
|
3595
3595
|
}
|
|
3596
|
-
var a = this.p.subtract(
|
|
3597
|
-
if (u.gcd(o).compareTo(
|
|
3596
|
+
var a = this.p.subtract(q.ONE), c = this.q.subtract(q.ONE), u = a.multiply(c);
|
|
3597
|
+
if (u.gcd(o).compareTo(q.ONE) == 0) {
|
|
3598
3598
|
this.n = this.p.multiply(this.q), this.d = o.modInverse(u), this.dmp1 = this.d.mod(a), this.dmq1 = this.d.mod(c), this.coeff = this.q.modInverse(this.p);
|
|
3599
3599
|
break;
|
|
3600
3600
|
}
|
|
@@ -3605,26 +3605,26 @@ var up = (
|
|
|
3605
3605
|
}, r.prototype.generateAsync = function(e, t, n) {
|
|
3606
3606
|
var i = new Cs(), o = e >> 1;
|
|
3607
3607
|
this.e = parseInt(t, 16);
|
|
3608
|
-
var s = new
|
|
3608
|
+
var s = new q(t, 16), a = this, c = function() {
|
|
3609
3609
|
var u = function() {
|
|
3610
3610
|
if (a.p.compareTo(a.q) <= 0) {
|
|
3611
3611
|
var p = a.p;
|
|
3612
3612
|
a.p = a.q, a.q = p;
|
|
3613
3613
|
}
|
|
3614
|
-
var m = a.p.subtract(
|
|
3615
|
-
v.gcd(s).compareTo(
|
|
3614
|
+
var m = a.p.subtract(q.ONE), g = a.q.subtract(q.ONE), v = m.multiply(g);
|
|
3615
|
+
v.gcd(s).compareTo(q.ONE) == 0 ? (a.n = a.p.multiply(a.q), a.d = s.modInverse(v), a.dmp1 = a.d.mod(m), a.dmq1 = a.d.mod(g), a.coeff = a.q.modInverse(a.p), setTimeout(function() {
|
|
3616
3616
|
n();
|
|
3617
3617
|
}, 0)) : setTimeout(c, 0);
|
|
3618
3618
|
}, l = function() {
|
|
3619
|
-
a.q =
|
|
3620
|
-
a.q.subtract(
|
|
3621
|
-
p.compareTo(
|
|
3619
|
+
a.q = Y(), a.q.fromNumberAsync(o, 1, i, function() {
|
|
3620
|
+
a.q.subtract(q.ONE).gcda(s, function(p) {
|
|
3621
|
+
p.compareTo(q.ONE) == 0 && a.q.isProbablePrime(10) ? setTimeout(u, 0) : setTimeout(l, 0);
|
|
3622
3622
|
});
|
|
3623
3623
|
});
|
|
3624
3624
|
}, d = function() {
|
|
3625
|
-
a.p =
|
|
3626
|
-
a.p.subtract(
|
|
3627
|
-
p.compareTo(
|
|
3625
|
+
a.p = Y(), a.p.fromNumberAsync(e - o, 1, i, function() {
|
|
3626
|
+
a.p.subtract(q.ONE).gcda(s, function(p) {
|
|
3627
|
+
p.compareTo(q.ONE) == 0 && a.p.isProbablePrime(10) ? setTimeout(l, 0) : setTimeout(d, 0);
|
|
3628
3628
|
});
|
|
3629
3629
|
});
|
|
3630
3630
|
};
|
|
@@ -3691,8 +3691,8 @@ Code licensed under the BSD License:
|
|
|
3691
3691
|
http://developer.yahoo.com/yui/license.html
|
|
3692
3692
|
version: 2.9.0
|
|
3693
3693
|
*/
|
|
3694
|
-
var
|
|
3695
|
-
|
|
3694
|
+
var Ee = {};
|
|
3695
|
+
Ee.lang = {
|
|
3696
3696
|
/**
|
|
3697
3697
|
* Utility to set up the prototype, constructor and superclass properties to
|
|
3698
3698
|
* support an inheritance strategy that can chain constructors and methods.
|
|
@@ -3754,7 +3754,7 @@ A.asn1.ASN1Util = new function() {
|
|
|
3754
3754
|
n % 2 == 1 ? n += 1 : e.match(/^[0-7]/) || (n += 2);
|
|
3755
3755
|
for (var i = "", o = 0; o < n; o++)
|
|
3756
3756
|
i += "f";
|
|
3757
|
-
var s = new
|
|
3757
|
+
var s = new q(i, 16), a = s.xor(r).add(q.ONE);
|
|
3758
3758
|
e = a.toString(16).replace(/^-/, "");
|
|
3759
3759
|
}
|
|
3760
3760
|
return e;
|
|
@@ -3812,17 +3812,17 @@ A.asn1.ASN1Util = new function() {
|
|
|
3812
3812
|
if (P == "tag") {
|
|
3813
3813
|
var oe = r[P];
|
|
3814
3814
|
if (Object.prototype.toString.call(oe) === "[object Array]" && oe.length == 3) {
|
|
3815
|
-
var
|
|
3815
|
+
var $e = U(oe[2]);
|
|
3816
3816
|
return new R({
|
|
3817
3817
|
tag: oe[0],
|
|
3818
3818
|
explicit: oe[1],
|
|
3819
|
-
obj:
|
|
3819
|
+
obj: $e
|
|
3820
3820
|
});
|
|
3821
3821
|
} else {
|
|
3822
|
-
var
|
|
3823
|
-
if (oe.explicit !== void 0 && (
|
|
3822
|
+
var xe = {};
|
|
3823
|
+
if (oe.explicit !== void 0 && (xe.explicit = oe.explicit), oe.tag !== void 0 && (xe.tag = oe.tag), oe.obj === void 0)
|
|
3824
3824
|
throw "obj shall be specified for 'tag'.";
|
|
3825
|
-
return
|
|
3825
|
+
return xe.obj = U(oe.obj), new R(xe);
|
|
3826
3826
|
}
|
|
3827
3827
|
}
|
|
3828
3828
|
}, this.jsonToASN1HEX = function(r) {
|
|
@@ -3834,7 +3834,7 @@ A.asn1.ASN1Util.oidHexToInt = function(r) {
|
|
|
3834
3834
|
for (var i = "", e = parseInt(r.substr(0, 2), 16), t = Math.floor(e / 40), n = e % 40, i = t + "." + n, o = "", s = 2; s < r.length; s += 2) {
|
|
3835
3835
|
var a = parseInt(r.substr(s, 2), 16), c = ("00000000" + a.toString(2)).slice(-8);
|
|
3836
3836
|
if (o = o + c.substr(1, 7), c.substr(0, 1) == "0") {
|
|
3837
|
-
var u = new
|
|
3837
|
+
var u = new q(o, 2);
|
|
3838
3838
|
i = i + "." + u.toString(10), o = "";
|
|
3839
3839
|
}
|
|
3840
3840
|
}
|
|
@@ -3845,7 +3845,7 @@ A.asn1.ASN1Util.oidIntToHex = function(r) {
|
|
|
3845
3845
|
var c = a.toString(16);
|
|
3846
3846
|
return c.length == 1 && (c = "0" + c), c;
|
|
3847
3847
|
}, t = function(a) {
|
|
3848
|
-
var c = "", u = new
|
|
3848
|
+
var c = "", u = new q(a, 10), l = u.toString(2), d = 7 - l.length % 7;
|
|
3849
3849
|
d == 7 && (d = 0);
|
|
3850
3850
|
for (var p = "", m = 0; m < d; m++)
|
|
3851
3851
|
p += "0";
|
|
@@ -3898,7 +3898,7 @@ A.asn1.DERAbstractString = function(r) {
|
|
|
3898
3898
|
return this.hV;
|
|
3899
3899
|
}, typeof r != "undefined" && (typeof r == "string" ? this.setString(r) : typeof r.str != "undefined" ? this.setString(r.str) : typeof r.hex != "undefined" && this.setStringHex(r.hex));
|
|
3900
3900
|
};
|
|
3901
|
-
|
|
3901
|
+
Ee.lang.extend(A.asn1.DERAbstractString, A.asn1.ASN1Object);
|
|
3902
3902
|
A.asn1.DERAbstractTime = function(r) {
|
|
3903
3903
|
A.asn1.DERAbstractTime.superclass.constructor.call(this), this.localDateToUTC = function(e) {
|
|
3904
3904
|
utc = e.getTime() + e.getTimezoneOffset() * 6e4;
|
|
@@ -3929,7 +3929,7 @@ A.asn1.DERAbstractTime = function(r) {
|
|
|
3929
3929
|
return this.hV;
|
|
3930
3930
|
};
|
|
3931
3931
|
};
|
|
3932
|
-
|
|
3932
|
+
Ee.lang.extend(A.asn1.DERAbstractTime, A.asn1.ASN1Object);
|
|
3933
3933
|
A.asn1.DERAbstractStructured = function(r) {
|
|
3934
3934
|
A.asn1.DERAbstractString.superclass.constructor.call(this), this.setByASN1ObjectArray = function(e) {
|
|
3935
3935
|
this.hTLV = null, this.isModified = !0, this.asn1Array = e;
|
|
@@ -3937,16 +3937,16 @@ A.asn1.DERAbstractStructured = function(r) {
|
|
|
3937
3937
|
this.hTLV = null, this.isModified = !0, this.asn1Array.push(e);
|
|
3938
3938
|
}, this.asn1Array = new Array(), typeof r != "undefined" && typeof r.array != "undefined" && (this.asn1Array = r.array);
|
|
3939
3939
|
};
|
|
3940
|
-
|
|
3940
|
+
Ee.lang.extend(A.asn1.DERAbstractStructured, A.asn1.ASN1Object);
|
|
3941
3941
|
A.asn1.DERBoolean = function() {
|
|
3942
3942
|
A.asn1.DERBoolean.superclass.constructor.call(this), this.hT = "01", this.hTLV = "0101ff";
|
|
3943
3943
|
};
|
|
3944
|
-
|
|
3944
|
+
Ee.lang.extend(A.asn1.DERBoolean, A.asn1.ASN1Object);
|
|
3945
3945
|
A.asn1.DERInteger = function(r) {
|
|
3946
3946
|
A.asn1.DERInteger.superclass.constructor.call(this), this.hT = "02", this.setByBigInteger = function(e) {
|
|
3947
3947
|
this.hTLV = null, this.isModified = !0, this.hV = A.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e);
|
|
3948
3948
|
}, this.setByInteger = function(e) {
|
|
3949
|
-
var t = new
|
|
3949
|
+
var t = new q(String(e), 10);
|
|
3950
3950
|
this.setByBigInteger(t);
|
|
3951
3951
|
}, this.setValueHex = function(e) {
|
|
3952
3952
|
this.hV = e;
|
|
@@ -3954,7 +3954,7 @@ A.asn1.DERInteger = function(r) {
|
|
|
3954
3954
|
return this.hV;
|
|
3955
3955
|
}, typeof r != "undefined" && (typeof r.bigint != "undefined" ? this.setByBigInteger(r.bigint) : typeof r.int != "undefined" ? this.setByInteger(r.int) : typeof r == "number" ? this.setByInteger(r) : typeof r.hex != "undefined" && this.setValueHex(r.hex));
|
|
3956
3956
|
};
|
|
3957
|
-
|
|
3957
|
+
Ee.lang.extend(A.asn1.DERInteger, A.asn1.ASN1Object);
|
|
3958
3958
|
A.asn1.DERBitString = function(r) {
|
|
3959
3959
|
if (r !== void 0 && typeof r.obj != "undefined") {
|
|
3960
3960
|
var e = A.asn1.ASN1Util.newObject(r.obj);
|
|
@@ -3990,7 +3990,7 @@ A.asn1.DERBitString = function(r) {
|
|
|
3990
3990
|
return this.hV;
|
|
3991
3991
|
}, typeof r != "undefined" && (typeof r == "string" && r.toLowerCase().match(/^[0-9a-f]+$/) ? this.setHexValueIncludingUnusedBits(r) : typeof r.hex != "undefined" ? this.setHexValueIncludingUnusedBits(r.hex) : typeof r.bin != "undefined" ? this.setByBinaryString(r.bin) : typeof r.array != "undefined" && this.setByBooleanArray(r.array));
|
|
3992
3992
|
};
|
|
3993
|
-
|
|
3993
|
+
Ee.lang.extend(A.asn1.DERBitString, A.asn1.ASN1Object);
|
|
3994
3994
|
A.asn1.DEROctetString = function(r) {
|
|
3995
3995
|
if (r !== void 0 && typeof r.obj != "undefined") {
|
|
3996
3996
|
var e = A.asn1.ASN1Util.newObject(r.obj);
|
|
@@ -3998,17 +3998,17 @@ A.asn1.DEROctetString = function(r) {
|
|
|
3998
3998
|
}
|
|
3999
3999
|
A.asn1.DEROctetString.superclass.constructor.call(this, r), this.hT = "04";
|
|
4000
4000
|
};
|
|
4001
|
-
|
|
4001
|
+
Ee.lang.extend(A.asn1.DEROctetString, A.asn1.DERAbstractString);
|
|
4002
4002
|
A.asn1.DERNull = function() {
|
|
4003
4003
|
A.asn1.DERNull.superclass.constructor.call(this), this.hT = "05", this.hTLV = "0500";
|
|
4004
4004
|
};
|
|
4005
|
-
|
|
4005
|
+
Ee.lang.extend(A.asn1.DERNull, A.asn1.ASN1Object);
|
|
4006
4006
|
A.asn1.DERObjectIdentifier = function(r) {
|
|
4007
4007
|
var e = function(n) {
|
|
4008
4008
|
var i = n.toString(16);
|
|
4009
4009
|
return i.length == 1 && (i = "0" + i), i;
|
|
4010
4010
|
}, t = function(n) {
|
|
4011
|
-
var i = "", o = new
|
|
4011
|
+
var i = "", o = new q(n, 10), s = o.toString(2), a = 7 - s.length % 7;
|
|
4012
4012
|
a == 7 && (a = 0);
|
|
4013
4013
|
for (var c = "", u = 0; u < a; u++)
|
|
4014
4014
|
c += "0";
|
|
@@ -4039,12 +4039,12 @@ A.asn1.DERObjectIdentifier = function(r) {
|
|
|
4039
4039
|
return this.hV;
|
|
4040
4040
|
}, r !== void 0 && (typeof r == "string" ? r.match(/^[0-2].[0-9.]+$/) ? this.setValueOidString(r) : this.setValueName(r) : r.oid !== void 0 ? this.setValueOidString(r.oid) : r.hex !== void 0 ? this.setValueHex(r.hex) : r.name !== void 0 && this.setValueName(r.name));
|
|
4041
4041
|
};
|
|
4042
|
-
|
|
4042
|
+
Ee.lang.extend(A.asn1.DERObjectIdentifier, A.asn1.ASN1Object);
|
|
4043
4043
|
A.asn1.DEREnumerated = function(r) {
|
|
4044
4044
|
A.asn1.DEREnumerated.superclass.constructor.call(this), this.hT = "0a", this.setByBigInteger = function(e) {
|
|
4045
4045
|
this.hTLV = null, this.isModified = !0, this.hV = A.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e);
|
|
4046
4046
|
}, this.setByInteger = function(e) {
|
|
4047
|
-
var t = new
|
|
4047
|
+
var t = new q(String(e), 10);
|
|
4048
4048
|
this.setByBigInteger(t);
|
|
4049
4049
|
}, this.setValueHex = function(e) {
|
|
4050
4050
|
this.hV = e;
|
|
@@ -4052,27 +4052,27 @@ A.asn1.DEREnumerated = function(r) {
|
|
|
4052
4052
|
return this.hV;
|
|
4053
4053
|
}, typeof r != "undefined" && (typeof r.int != "undefined" ? this.setByInteger(r.int) : typeof r == "number" ? this.setByInteger(r) : typeof r.hex != "undefined" && this.setValueHex(r.hex));
|
|
4054
4054
|
};
|
|
4055
|
-
|
|
4055
|
+
Ee.lang.extend(A.asn1.DEREnumerated, A.asn1.ASN1Object);
|
|
4056
4056
|
A.asn1.DERUTF8String = function(r) {
|
|
4057
4057
|
A.asn1.DERUTF8String.superclass.constructor.call(this, r), this.hT = "0c";
|
|
4058
4058
|
};
|
|
4059
|
-
|
|
4059
|
+
Ee.lang.extend(A.asn1.DERUTF8String, A.asn1.DERAbstractString);
|
|
4060
4060
|
A.asn1.DERNumericString = function(r) {
|
|
4061
4061
|
A.asn1.DERNumericString.superclass.constructor.call(this, r), this.hT = "12";
|
|
4062
4062
|
};
|
|
4063
|
-
|
|
4063
|
+
Ee.lang.extend(A.asn1.DERNumericString, A.asn1.DERAbstractString);
|
|
4064
4064
|
A.asn1.DERPrintableString = function(r) {
|
|
4065
4065
|
A.asn1.DERPrintableString.superclass.constructor.call(this, r), this.hT = "13";
|
|
4066
4066
|
};
|
|
4067
|
-
|
|
4067
|
+
Ee.lang.extend(A.asn1.DERPrintableString, A.asn1.DERAbstractString);
|
|
4068
4068
|
A.asn1.DERTeletexString = function(r) {
|
|
4069
4069
|
A.asn1.DERTeletexString.superclass.constructor.call(this, r), this.hT = "14";
|
|
4070
4070
|
};
|
|
4071
|
-
|
|
4071
|
+
Ee.lang.extend(A.asn1.DERTeletexString, A.asn1.DERAbstractString);
|
|
4072
4072
|
A.asn1.DERIA5String = function(r) {
|
|
4073
4073
|
A.asn1.DERIA5String.superclass.constructor.call(this, r), this.hT = "16";
|
|
4074
4074
|
};
|
|
4075
|
-
|
|
4075
|
+
Ee.lang.extend(A.asn1.DERIA5String, A.asn1.DERAbstractString);
|
|
4076
4076
|
A.asn1.DERUTCTime = function(r) {
|
|
4077
4077
|
A.asn1.DERUTCTime.superclass.constructor.call(this, r), this.hT = "17", this.setByDate = function(e) {
|
|
4078
4078
|
this.hTLV = null, this.isModified = !0, this.date = e, this.s = this.formatDate(this.date, "utc"), this.hV = stohex(this.s);
|
|
@@ -4080,7 +4080,7 @@ A.asn1.DERUTCTime = function(r) {
|
|
|
4080
4080
|
return typeof this.date == "undefined" && typeof this.s == "undefined" && (this.date = /* @__PURE__ */ new Date(), this.s = this.formatDate(this.date, "utc"), this.hV = stohex(this.s)), this.hV;
|
|
4081
4081
|
}, r !== void 0 && (r.str !== void 0 ? this.setString(r.str) : typeof r == "string" && r.match(/^[0-9]{12}Z$/) ? this.setString(r) : r.hex !== void 0 ? this.setStringHex(r.hex) : r.date !== void 0 && this.setByDate(r.date));
|
|
4082
4082
|
};
|
|
4083
|
-
|
|
4083
|
+
Ee.lang.extend(A.asn1.DERUTCTime, A.asn1.DERAbstractTime);
|
|
4084
4084
|
A.asn1.DERGeneralizedTime = function(r) {
|
|
4085
4085
|
A.asn1.DERGeneralizedTime.superclass.constructor.call(this, r), this.hT = "18", this.withMillis = !1, this.setByDate = function(e) {
|
|
4086
4086
|
this.hTLV = null, this.isModified = !0, this.date = e, this.s = this.formatDate(this.date, "gen", this.withMillis), this.hV = stohex(this.s);
|
|
@@ -4088,7 +4088,7 @@ A.asn1.DERGeneralizedTime = function(r) {
|
|
|
4088
4088
|
return this.date === void 0 && this.s === void 0 && (this.date = /* @__PURE__ */ new Date(), this.s = this.formatDate(this.date, "gen", this.withMillis), this.hV = stohex(this.s)), this.hV;
|
|
4089
4089
|
}, r !== void 0 && (r.str !== void 0 ? this.setString(r.str) : typeof r == "string" && r.match(/^[0-9]{14}Z$/) ? this.setString(r) : r.hex !== void 0 ? this.setStringHex(r.hex) : r.date !== void 0 && this.setByDate(r.date), r.millis === !0 && (this.withMillis = !0));
|
|
4090
4090
|
};
|
|
4091
|
-
|
|
4091
|
+
Ee.lang.extend(A.asn1.DERGeneralizedTime, A.asn1.DERAbstractTime);
|
|
4092
4092
|
A.asn1.DERSequence = function(r) {
|
|
4093
4093
|
A.asn1.DERSequence.superclass.constructor.call(this, r), this.hT = "30", this.getFreshValueHex = function() {
|
|
4094
4094
|
for (var e = "", t = 0; t < this.asn1Array.length; t++) {
|
|
@@ -4098,7 +4098,7 @@ A.asn1.DERSequence = function(r) {
|
|
|
4098
4098
|
return this.hV = e, this.hV;
|
|
4099
4099
|
};
|
|
4100
4100
|
};
|
|
4101
|
-
|
|
4101
|
+
Ee.lang.extend(A.asn1.DERSequence, A.asn1.DERAbstractStructured);
|
|
4102
4102
|
A.asn1.DERSet = function(r) {
|
|
4103
4103
|
A.asn1.DERSet.superclass.constructor.call(this, r), this.hT = "31", this.sortFlag = !0, this.getFreshValueHex = function() {
|
|
4104
4104
|
for (var e = new Array(), t = 0; t < this.asn1Array.length; t++) {
|
|
@@ -4108,7 +4108,7 @@ A.asn1.DERSet = function(r) {
|
|
|
4108
4108
|
return this.sortFlag == !0 && e.sort(), this.hV = e.join(""), this.hV;
|
|
4109
4109
|
}, typeof r != "undefined" && typeof r.sortflag != "undefined" && r.sortflag == !1 && (this.sortFlag = !1);
|
|
4110
4110
|
};
|
|
4111
|
-
|
|
4111
|
+
Ee.lang.extend(A.asn1.DERSet, A.asn1.DERAbstractStructured);
|
|
4112
4112
|
A.asn1.DERTaggedObject = function(r) {
|
|
4113
4113
|
A.asn1.DERTaggedObject.superclass.constructor.call(this), this.hT = "a0", this.hV = "", this.isExplicit = !0, this.asn1Object = null, this.setASN1Object = function(e, t, n) {
|
|
4114
4114
|
this.hT = t, this.isExplicit = e, this.asn1Object = n, this.isExplicit ? (this.hV = this.asn1Object.getEncodedHex(), this.hTLV = null, this.isModified = !0) : (this.hV = null, this.hTLV = n.getEncodedHex(), this.hTLV = this.hTLV.replace(/^../, t), this.isModified = !1);
|
|
@@ -4116,7 +4116,7 @@ A.asn1.DERTaggedObject = function(r) {
|
|
|
4116
4116
|
return this.hV;
|
|
4117
4117
|
}, typeof r != "undefined" && (typeof r.tag != "undefined" && (this.hT = r.tag), typeof r.explicit != "undefined" && (this.isExplicit = r.explicit), typeof r.obj != "undefined" && (this.asn1Object = r.obj, this.setASN1Object(this.isExplicit, this.hT, this.asn1Object)));
|
|
4118
4118
|
};
|
|
4119
|
-
|
|
4119
|
+
Ee.lang.extend(A.asn1.DERTaggedObject, A.asn1.ASN1Object);
|
|
4120
4120
|
var hp = globalThis && globalThis.__extends || function() {
|
|
4121
4121
|
var r = function(e, t) {
|
|
4122
4122
|
return r = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, i) {
|
|
@@ -4145,7 +4145,7 @@ var hp = globalThis && globalThis.__extends || function() {
|
|
|
4145
4145
|
}
|
|
4146
4146
|
return e.prototype.parseKey = function(t) {
|
|
4147
4147
|
try {
|
|
4148
|
-
var n = 0, i = 0, o = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/, s = o.test(t) ?
|
|
4148
|
+
var n = 0, i = 0, o = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/, s = o.test(t) ? Wf.decode(t) : Es.unarmor(t), a = Zf.decode(s);
|
|
4149
4149
|
if (a.sub.length === 3 && (a = a.sub[2].sub[0]), a.sub.length === 9) {
|
|
4150
4150
|
n = a.sub[1].getHexStringValue(), this.n = we(n, 16), i = a.sub[2].getHexStringValue(), this.e = parseInt(i, 16);
|
|
4151
4151
|
var c = a.sub[3].getHexStringValue();
|
|
@@ -4308,14 +4308,14 @@ const hl = (r) => F(void 0, null, function* () {
|
|
|
4308
4308
|
return [
|
|
4309
4309
|
{
|
|
4310
4310
|
products: [
|
|
4311
|
-
|
|
4311
|
+
Te(ge({}, e[0]), {
|
|
4312
4312
|
unit_price: {
|
|
4313
4313
|
currency: e[0].unit_price.currency,
|
|
4314
4314
|
value: As(e[0].unit_price.value, !1).toString()
|
|
4315
4315
|
}
|
|
4316
4316
|
})
|
|
4317
4317
|
],
|
|
4318
|
-
amount:
|
|
4318
|
+
amount: Te(ge({}, t), {
|
|
4319
4319
|
value: As(t.value, !1).toString()
|
|
4320
4320
|
}),
|
|
4321
4321
|
soft_descriptor: "sdk"
|
|
@@ -4378,7 +4378,7 @@ var ht = {
|
|
|
4378
4378
|
Object.keys(ht).forEach(function(r) {
|
|
4379
4379
|
kr[r] = Rt[r];
|
|
4380
4380
|
});
|
|
4381
|
-
var Ln = "Datadog Browser SDK:",
|
|
4381
|
+
var Ln = "Datadog Browser SDK:", Ke = {
|
|
4382
4382
|
debug: kr.debug.bind(Rt, Ln),
|
|
4383
4383
|
log: kr.log.bind(Rt, Ln),
|
|
4384
4384
|
info: kr.info.bind(Rt, Ln),
|
|
@@ -4392,7 +4392,7 @@ function pl(r, e) {
|
|
|
4392
4392
|
try {
|
|
4393
4393
|
return r.apply(void 0, t);
|
|
4394
4394
|
} catch (i) {
|
|
4395
|
-
|
|
4395
|
+
Ke.error(e, i);
|
|
4396
4396
|
}
|
|
4397
4397
|
};
|
|
4398
4398
|
}
|
|
@@ -4415,7 +4415,7 @@ function yp() {
|
|
|
4415
4415
|
function Is(r) {
|
|
4416
4416
|
return r !== 0 && Math.random() * 100 <= r;
|
|
4417
4417
|
}
|
|
4418
|
-
function
|
|
4418
|
+
function Yo(r) {
|
|
4419
4419
|
return vp(r) && r >= 0 && r <= 100;
|
|
4420
4420
|
}
|
|
4421
4421
|
function vp(r) {
|
|
@@ -4446,9 +4446,9 @@ function Sp(r, e) {
|
|
|
4446
4446
|
function xp(r) {
|
|
4447
4447
|
return r - ml();
|
|
4448
4448
|
}
|
|
4449
|
-
var
|
|
4449
|
+
var Wo;
|
|
4450
4450
|
function ml() {
|
|
4451
|
-
return
|
|
4451
|
+
return Wo === void 0 && (Wo = performance.timing.navigationStart), Wo;
|
|
4452
4452
|
}
|
|
4453
4453
|
var Ht = 1024, yl = 1024 * Ht, Ep = /[^\u0000-\u007F]/;
|
|
4454
4454
|
function Sa(r) {
|
|
@@ -4569,7 +4569,7 @@ function ri(r, e, t) {
|
|
|
4569
4569
|
function Ds() {
|
|
4570
4570
|
for (var r = [], e = 0; e < arguments.length; e++)
|
|
4571
4571
|
r[e] = arguments[e];
|
|
4572
|
-
wl &&
|
|
4572
|
+
wl && Ke.error.apply(Ke, Rp(["[MONITOR]"], r, !1));
|
|
4573
4573
|
}
|
|
4574
4574
|
function gi(r, e) {
|
|
4575
4575
|
return vn(Cr(), "setTimeout")(ae(r), e);
|
|
@@ -4719,7 +4719,7 @@ function Mp(r) {
|
|
|
4719
4719
|
var n = Ca(e) === t;
|
|
4720
4720
|
return Ta(e, r), n;
|
|
4721
4721
|
} catch (i) {
|
|
4722
|
-
return
|
|
4722
|
+
return Ke.error(i), !1;
|
|
4723
4723
|
}
|
|
4724
4724
|
}
|
|
4725
4725
|
var Xo;
|
|
@@ -4758,14 +4758,14 @@ function jp(r) {
|
|
|
4758
4758
|
return !!r && (r.indexOf(Aa) !== -1 || Al.test(r));
|
|
4759
4759
|
}
|
|
4760
4760
|
var Vp = "_dd", qp = "_dd_r", Hp = "_dd_l", Kp = "rum", Gp = "logs";
|
|
4761
|
-
function
|
|
4761
|
+
function Yp(r) {
|
|
4762
4762
|
var e = Br(Hr);
|
|
4763
4763
|
if (!e) {
|
|
4764
4764
|
var t = Br(Vp), n = Br(qp), i = Br(Hp), o = {};
|
|
4765
4765
|
t && (o.id = t), i && /^[01]$/.test(i) && (o[Gp] = i), n && /^[012]$/.test(n) && (o[Kp] = n), Rs(o) || (Il(o), r.persistSession(o));
|
|
4766
4766
|
}
|
|
4767
4767
|
}
|
|
4768
|
-
function
|
|
4768
|
+
function Wp(r) {
|
|
4769
4769
|
var e = eg(r);
|
|
4770
4770
|
return Mp(e) ? { type: "Cookie", cookieOptions: e } : void 0;
|
|
4771
4771
|
}
|
|
@@ -4780,7 +4780,7 @@ function Jp(r) {
|
|
|
4780
4780
|
retrieveSession: Zp,
|
|
4781
4781
|
clearSession: Qp(r)
|
|
4782
4782
|
};
|
|
4783
|
-
return
|
|
4783
|
+
return Yp(e), e;
|
|
4784
4784
|
}
|
|
4785
4785
|
function Xp(r) {
|
|
4786
4786
|
return function(e) {
|
|
@@ -4879,7 +4879,7 @@ function Ou(r) {
|
|
|
4879
4879
|
}
|
|
4880
4880
|
var Pu = pi;
|
|
4881
4881
|
function cg(r) {
|
|
4882
|
-
var e =
|
|
4882
|
+
var e = Wp(r);
|
|
4883
4883
|
return !e && r.allowFallbackToLocalStorage && (e = rg()), e;
|
|
4884
4884
|
}
|
|
4885
4885
|
function lg(r, e, t) {
|
|
@@ -5013,7 +5013,7 @@ function pg(r) {
|
|
|
5013
5013
|
return "".concat(r.protocol, "//").concat(e);
|
|
5014
5014
|
}
|
|
5015
5015
|
var gg = "datad0g.com", mg = "dd0g-gov.com", Gn = "datadoghq.com", yg = "ddog-gov.com";
|
|
5016
|
-
function
|
|
5016
|
+
function Yn(r, e, t) {
|
|
5017
5017
|
var n = vg(r, e);
|
|
5018
5018
|
return {
|
|
5019
5019
|
build: function(i, o) {
|
|
@@ -5071,7 +5071,7 @@ function Sg(r) {
|
|
|
5071
5071
|
var xg = /[^a-z0-9_:./-]/;
|
|
5072
5072
|
function Di(r, e) {
|
|
5073
5073
|
var t = _g - r.length - 1;
|
|
5074
|
-
(e.length > t || xg.test(e)) &&
|
|
5074
|
+
(e.length > t || xg.test(e)) && Ke.warn("".concat(r, " value doesn't meet tag requirements and will be sanitized"));
|
|
5075
5075
|
var n = e.replace(/,/g, "_");
|
|
5076
5076
|
return "".concat(r, ":").concat(n);
|
|
5077
5077
|
}
|
|
@@ -5091,9 +5091,9 @@ function Eg(r) {
|
|
|
5091
5091
|
}
|
|
5092
5092
|
function Cg(r, e) {
|
|
5093
5093
|
return {
|
|
5094
|
-
logsEndpointBuilder:
|
|
5095
|
-
rumEndpointBuilder:
|
|
5096
|
-
sessionReplayEndpointBuilder:
|
|
5094
|
+
logsEndpointBuilder: Yn(r, "logs", e),
|
|
5095
|
+
rumEndpointBuilder: Yn(r, "rum", e),
|
|
5096
|
+
sessionReplayEndpointBuilder: Yn(r, "replay", e)
|
|
5097
5097
|
};
|
|
5098
5098
|
}
|
|
5099
5099
|
function Tg(r, e, t) {
|
|
@@ -5102,8 +5102,8 @@ function Tg(r, e, t) {
|
|
|
5102
5102
|
site: Gn,
|
|
5103
5103
|
clientToken: r.replica.clientToken
|
|
5104
5104
|
}), i = {
|
|
5105
|
-
logsEndpointBuilder:
|
|
5106
|
-
rumEndpointBuilder:
|
|
5105
|
+
logsEndpointBuilder: Yn(n, "logs", t),
|
|
5106
|
+
rumEndpointBuilder: Yn(n, "rum", t)
|
|
5107
5107
|
};
|
|
5108
5108
|
return e.push.apply(e, yn(i).map(function(o) {
|
|
5109
5109
|
return o.urlPrefix;
|
|
@@ -5113,19 +5113,19 @@ function Tg(r, e, t) {
|
|
|
5113
5113
|
function Ag(r) {
|
|
5114
5114
|
var e, t, n;
|
|
5115
5115
|
if (!r || !r.clientToken) {
|
|
5116
|
-
|
|
5116
|
+
Ke.error("Client Token is not configured, we will not send any data.");
|
|
5117
5117
|
return;
|
|
5118
5118
|
}
|
|
5119
|
-
if (r.sessionSampleRate !== void 0 && !
|
|
5120
|
-
|
|
5119
|
+
if (r.sessionSampleRate !== void 0 && !Yo(r.sessionSampleRate)) {
|
|
5120
|
+
Ke.error("Session Sample Rate should be a number between 0 and 100");
|
|
5121
5121
|
return;
|
|
5122
5122
|
}
|
|
5123
|
-
if (r.telemetrySampleRate !== void 0 && !
|
|
5124
|
-
|
|
5123
|
+
if (r.telemetrySampleRate !== void 0 && !Yo(r.telemetrySampleRate)) {
|
|
5124
|
+
Ke.error("Telemetry Sample Rate should be a number between 0 and 100");
|
|
5125
5125
|
return;
|
|
5126
5126
|
}
|
|
5127
|
-
if (r.telemetryConfigurationSampleRate !== void 0 && !
|
|
5128
|
-
|
|
5127
|
+
if (r.telemetryConfigurationSampleRate !== void 0 && !Yo(r.telemetryConfigurationSampleRate)) {
|
|
5128
|
+
Ke.error("Telemetry Configuration Sample Rate should be a number between 0 and 100");
|
|
5129
5129
|
return;
|
|
5130
5130
|
}
|
|
5131
5131
|
return Array.isArray(r.enableExperimentalFeatures) && mp(r.enableExperimentalFeatures.filter(function(i) {
|
|
@@ -5318,7 +5318,7 @@ function Kt(r, e) {
|
|
|
5318
5318
|
return n(), i(), a;
|
|
5319
5319
|
}
|
|
5320
5320
|
function Qo(r, e, t, n, i) {
|
|
5321
|
-
var o =
|
|
5321
|
+
var o = Yg(r);
|
|
5322
5322
|
if (!o || typeof o != "object")
|
|
5323
5323
|
return Kg(o);
|
|
5324
5324
|
var s = Gg(o);
|
|
@@ -5346,7 +5346,7 @@ function Gg(r) {
|
|
|
5346
5346
|
}
|
|
5347
5347
|
return "[Unserializable]";
|
|
5348
5348
|
}
|
|
5349
|
-
function
|
|
5349
|
+
function Yg(r) {
|
|
5350
5350
|
var e = r;
|
|
5351
5351
|
if (e && typeof e.toJSON == "function")
|
|
5352
5352
|
try {
|
|
@@ -5356,11 +5356,11 @@ function Wg(r) {
|
|
|
5356
5356
|
return r;
|
|
5357
5357
|
}
|
|
5358
5358
|
function es(r, e, t) {
|
|
5359
|
-
|
|
5359
|
+
Ke.warn("The data provided has been ".concat(e, " as it is over the limit of ").concat(r, " characters:"), t);
|
|
5360
5360
|
}
|
|
5361
5361
|
var kl = "No stack, consider using an instance of Error";
|
|
5362
5362
|
function Ul(r) {
|
|
5363
|
-
var e = r.stackTrace, t = r.originalError, n = r.handlingStack, i = r.startClocks, o = r.nonErrorPrefix, s = r.source, a = r.handling, c = t instanceof Error, u =
|
|
5363
|
+
var e = r.stackTrace, t = r.originalError, n = r.handlingStack, i = r.startClocks, o = r.nonErrorPrefix, s = r.source, a = r.handling, c = t instanceof Error, u = Wg(e, c, o, t), l = Jg(c, e) ? Kr(e) : kl, d = c ? Qg(t, s) : void 0, p = e == null ? void 0 : e.name, m = Nl(t);
|
|
5364
5364
|
return {
|
|
5365
5365
|
startClocks: i,
|
|
5366
5366
|
source: s,
|
|
@@ -5374,7 +5374,7 @@ function Ul(r) {
|
|
|
5374
5374
|
fingerprint: m
|
|
5375
5375
|
};
|
|
5376
5376
|
}
|
|
5377
|
-
function
|
|
5377
|
+
function Wg(r, e, t, n) {
|
|
5378
5378
|
return r != null && r.message && (r != null && r.name) ? r.message : e ? "Empty message" : "".concat(t, " ").concat(An(Kt(n)));
|
|
5379
5379
|
}
|
|
5380
5380
|
function Jg(r, e) {
|
|
@@ -5484,10 +5484,10 @@ function im(r, e, t) {
|
|
|
5484
5484
|
return pl(i, "onReady callback threw an error:")();
|
|
5485
5485
|
});
|
|
5486
5486
|
}
|
|
5487
|
-
var
|
|
5487
|
+
var qe;
|
|
5488
5488
|
(function(r) {
|
|
5489
5489
|
r.BEFORE_UNLOAD = "beforeunload", r.CLICK = "click", r.DBL_CLICK = "dblclick", r.KEY_DOWN = "keydown", r.LOAD = "load", r.POP_STATE = "popstate", r.SCROLL = "scroll", r.TOUCH_START = "touchstart", r.TOUCH_END = "touchend", r.TOUCH_MOVE = "touchmove", r.VISIBILITY_CHANGE = "visibilitychange", r.PAGE_SHOW = "pageshow", r.FREEZE = "freeze", r.RESUME = "resume", r.DOM_CONTENT_LOADED = "DOMContentLoaded", r.POINTER_DOWN = "pointerdown", r.POINTER_UP = "pointerup", r.POINTER_CANCEL = "pointercancel", r.HASH_CHANGE = "hashchange", r.PAGE_HIDE = "pagehide", r.MOUSE_DOWN = "mousedown", r.MOUSE_UP = "mouseup", r.MOUSE_MOVE = "mousemove", r.FOCUS = "focus", r.BLUR = "blur", r.CONTEXT_MENU = "contextmenu", r.RESIZE = "resize", r.CHANGE = "change", r.INPUT = "input", r.PLAY = "play", r.PAUSE = "pause", r.SECURITY_POLICY_VIOLATION = "securitypolicyviolation", r.SELECTION_CHANGE = "selectionchange", r.STORAGE = "storage";
|
|
5490
|
-
})(
|
|
5490
|
+
})(qe || (qe = {}));
|
|
5491
5491
|
function In(r, e, t, n, i) {
|
|
5492
5492
|
return Da(r, e, [t], n, i);
|
|
5493
5493
|
}
|
|
@@ -5540,7 +5540,7 @@ function sm(r) {
|
|
|
5540
5540
|
}
|
|
5541
5541
|
function am(r) {
|
|
5542
5542
|
return new et(function(e) {
|
|
5543
|
-
var t = In(r, document,
|
|
5543
|
+
var t = In(r, document, qe.SECURITY_POLICY_VIOLATION, function(n) {
|
|
5544
5544
|
e.notify(cm(n));
|
|
5545
5545
|
}).stop;
|
|
5546
5546
|
return t;
|
|
@@ -5841,13 +5841,13 @@ function Em(r, e, t) {
|
|
|
5841
5841
|
};
|
|
5842
5842
|
}
|
|
5843
5843
|
function Cm(r, e) {
|
|
5844
|
-
Da(r, window, [
|
|
5844
|
+
Da(r, window, [qe.CLICK, qe.TOUCH_START, qe.KEY_DOWN, qe.SCROLL], e, { capture: !0, passive: !0 }).stop;
|
|
5845
5845
|
}
|
|
5846
5846
|
function Tm(r, e) {
|
|
5847
5847
|
var t = function() {
|
|
5848
5848
|
document.visibilityState === "visible" && e();
|
|
5849
5849
|
};
|
|
5850
|
-
In(r, document,
|
|
5850
|
+
In(r, document, qe.VISIBILITY_CHANGE, t).stop, Ea(t, Sm);
|
|
5851
5851
|
}
|
|
5852
5852
|
function jl(r) {
|
|
5853
5853
|
return r >= 500;
|
|
@@ -5863,7 +5863,7 @@ var Im = 80 * Ht, Dm = 32, Vl = 3 * yl, Rm = Vr, ql = pi;
|
|
|
5863
5863
|
function Hl(r, e, t, n, i) {
|
|
5864
5864
|
e.transportStatus === 0 && e.queuedPayloads.size() === 0 && e.bandwidthMonitor.canHandle(r) ? Gl(r, e, t, {
|
|
5865
5865
|
onSuccess: function() {
|
|
5866
|
-
return
|
|
5866
|
+
return Yl(0, e, t, n, i);
|
|
5867
5867
|
},
|
|
5868
5868
|
onFailure: function() {
|
|
5869
5869
|
e.queuedPayloads.enqueue(r), Kl(e, t, n, i);
|
|
@@ -5875,7 +5875,7 @@ function Kl(r, e, t, n) {
|
|
|
5875
5875
|
var i = r.queuedPayloads.first();
|
|
5876
5876
|
Gl(i, r, e, {
|
|
5877
5877
|
onSuccess: function() {
|
|
5878
|
-
r.queuedPayloads.dequeue(), r.currentBackoffTime = ql,
|
|
5878
|
+
r.queuedPayloads.dequeue(), r.currentBackoffTime = ql, Yl(1, r, e, t, n);
|
|
5879
5879
|
},
|
|
5880
5880
|
onFailure: function() {
|
|
5881
5881
|
r.currentBackoffTime = Math.min(Rm, r.currentBackoffTime * 2), Kl(r, e, t, n);
|
|
@@ -5892,14 +5892,14 @@ function Gl(r, e, t, n) {
|
|
|
5892
5892
|
}, o()) : (e.transportStatus = 0, i());
|
|
5893
5893
|
});
|
|
5894
5894
|
}
|
|
5895
|
-
function
|
|
5895
|
+
function Yl(r, e, t, n, i) {
|
|
5896
5896
|
r === 0 && e.queuedPayloads.isFull() && !e.queueFullReported && (i({
|
|
5897
5897
|
message: "Reached max ".concat(n, " events size queued for upload: ").concat(Vl / yl, "MiB"),
|
|
5898
5898
|
source: Ct.AGENT,
|
|
5899
5899
|
startClocks: Cn()
|
|
5900
5900
|
}), e.queueFullReported = !0);
|
|
5901
5901
|
var o = e.queuedPayloads;
|
|
5902
|
-
for (e.queuedPayloads =
|
|
5902
|
+
for (e.queuedPayloads = Wl(); o.size() > 0; )
|
|
5903
5903
|
Hl(o.dequeue(), e, t, n, i);
|
|
5904
5904
|
}
|
|
5905
5905
|
function Om(r) {
|
|
@@ -5910,11 +5910,11 @@ function Pm() {
|
|
|
5910
5910
|
transportStatus: 0,
|
|
5911
5911
|
currentBackoffTime: ql,
|
|
5912
5912
|
bandwidthMonitor: km(),
|
|
5913
|
-
queuedPayloads:
|
|
5913
|
+
queuedPayloads: Wl(),
|
|
5914
5914
|
queueFullReported: !1
|
|
5915
5915
|
};
|
|
5916
5916
|
}
|
|
5917
|
-
function
|
|
5917
|
+
function Wl() {
|
|
5918
5918
|
var r = [];
|
|
5919
5919
|
return {
|
|
5920
5920
|
bytesCount: 0,
|
|
@@ -6048,10 +6048,10 @@ var Vn = {
|
|
|
6048
6048
|
};
|
|
6049
6049
|
function Mm(r) {
|
|
6050
6050
|
return new et(function(e) {
|
|
6051
|
-
var t = gl(ti.PAGEHIDE), n = Da(r, window, [
|
|
6052
|
-
o.type ===
|
|
6051
|
+
var t = gl(ti.PAGEHIDE), n = Da(r, window, [qe.VISIBILITY_CHANGE, qe.FREEZE, qe.PAGE_HIDE], function(o) {
|
|
6052
|
+
o.type === qe.PAGE_HIDE && t ? e.notify({ reason: Vn.PAGEHIDE }) : o.type === qe.VISIBILITY_CHANGE && document.visibilityState === "hidden" ? e.notify({ reason: Vn.HIDDEN }) : o.type === qe.FREEZE && e.notify({ reason: Vn.FROZEN });
|
|
6053
6053
|
}, { capture: !0 }).stop, i = mi;
|
|
6054
|
-
return t || (i = In(r, window,
|
|
6054
|
+
return t || (i = In(r, window, qe.BEFORE_UNLOAD, function() {
|
|
6055
6055
|
e.notify({ reason: Vn.UNLOADING });
|
|
6056
6056
|
}).stop), function() {
|
|
6057
6057
|
n(), i();
|
|
@@ -6103,7 +6103,7 @@ var jm = (
|
|
|
6103
6103
|
}, r.prototype.addOrUpdate = function(e, t) {
|
|
6104
6104
|
var n = An(e), i = this.encoder.estimateEncodedBytesCount(n);
|
|
6105
6105
|
if (i >= this.messageBytesLimit) {
|
|
6106
|
-
|
|
6106
|
+
Ke.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit, "KB."));
|
|
6107
6107
|
return;
|
|
6108
6108
|
}
|
|
6109
6109
|
this.hasMessageFor(t) && this.remove(t), this.push(n, i, t);
|
|
@@ -6321,11 +6321,11 @@ function Km(r, e, t) {
|
|
|
6321
6321
|
}
|
|
6322
6322
|
var ts, Ua = /* @__PURE__ */ new WeakMap();
|
|
6323
6323
|
function Gm(r) {
|
|
6324
|
-
return ts || (ts =
|
|
6324
|
+
return ts || (ts = Ym(r)), ts;
|
|
6325
6325
|
}
|
|
6326
|
-
function
|
|
6326
|
+
function Ym(r) {
|
|
6327
6327
|
return new et(function(e) {
|
|
6328
|
-
var t = $r(XMLHttpRequest.prototype, "open",
|
|
6328
|
+
var t = $r(XMLHttpRequest.prototype, "open", Wm).stop, n = $r(XMLHttpRequest.prototype, "send", function(o) {
|
|
6329
6329
|
Jm(o, r, e);
|
|
6330
6330
|
}).stop, i = $r(XMLHttpRequest.prototype, "abort", Xm).stop;
|
|
6331
6331
|
return function() {
|
|
@@ -6333,7 +6333,7 @@ function Wm(r) {
|
|
|
6333
6333
|
};
|
|
6334
6334
|
});
|
|
6335
6335
|
}
|
|
6336
|
-
function
|
|
6336
|
+
function Wm(r) {
|
|
6337
6337
|
var e = r.target, t = r.parameters, n = t[0], i = t[1];
|
|
6338
6338
|
Ua.set(e, {
|
|
6339
6339
|
state: "open",
|
|
@@ -6482,7 +6482,7 @@ function ks(r) {
|
|
|
6482
6482
|
var uy = "_dd_c", cy = [];
|
|
6483
6483
|
function Bu(r, e, t, n) {
|
|
6484
6484
|
var i = ly(t, n);
|
|
6485
|
-
cy.push(In(r, window,
|
|
6485
|
+
cy.push(In(r, window, qe.STORAGE, function(c) {
|
|
6486
6486
|
var u = c.key;
|
|
6487
6487
|
i === u && o();
|
|
6488
6488
|
})), e.changeObservable.subscribe(s), e.setContext(wn(a(), e.getContext()));
|
|
@@ -6565,7 +6565,7 @@ function Lu(r) {
|
|
|
6565
6565
|
};
|
|
6566
6566
|
}
|
|
6567
6567
|
function gy(r) {
|
|
6568
|
-
|
|
6568
|
+
Ke.warn("Customer data exceeds the recommended ".concat(r / Ht, "KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-threshold-warning"));
|
|
6569
6569
|
}
|
|
6570
6570
|
function my(r, e, t) {
|
|
6571
6571
|
var n = r.getReader(), i = [], o = 0;
|
|
@@ -6624,7 +6624,7 @@ function Fu(r) {
|
|
|
6624
6624
|
}
|
|
6625
6625
|
function Sy(r) {
|
|
6626
6626
|
var e = Ra(r) === "object";
|
|
6627
|
-
return e ||
|
|
6627
|
+
return e || Ke.error("Unsupported user:", r), e;
|
|
6628
6628
|
}
|
|
6629
6629
|
var xy = 32 * Ht;
|
|
6630
6630
|
function Ey(r) {
|
|
@@ -6643,7 +6643,7 @@ function $u(r, e, t) {
|
|
|
6643
6643
|
if (!(r === "all" || Array.isArray(r) && r.every(function(n) {
|
|
6644
6644
|
return Tn(e, n);
|
|
6645
6645
|
}))) {
|
|
6646
|
-
|
|
6646
|
+
Ke.error("".concat(t, ' should be "all" or an array with allowed values "').concat(e.join('", "'), '"'));
|
|
6647
6647
|
return;
|
|
6648
6648
|
}
|
|
6649
6649
|
return r === "all" ? e : qm(r);
|
|
@@ -6771,7 +6771,7 @@ function Dy(r) {
|
|
|
6771
6771
|
init: ae(function(g) {
|
|
6772
6772
|
var v;
|
|
6773
6773
|
if (!g) {
|
|
6774
|
-
|
|
6774
|
+
Ke.error("Missing configuration");
|
|
6775
6775
|
return;
|
|
6776
6776
|
}
|
|
6777
6777
|
if (u = function() {
|
|
@@ -6845,7 +6845,7 @@ function Dy(r) {
|
|
|
6845
6845
|
return st({}, g, { clientToken: "empty" });
|
|
6846
6846
|
}
|
|
6847
6847
|
function m(g) {
|
|
6848
|
-
return e ? (g.silentMultipleInit ||
|
|
6848
|
+
return e ? (g.silentMultipleInit || Ke.error("DD_LOGS is already initialized."), !1) : !0;
|
|
6849
6849
|
}
|
|
6850
6850
|
}
|
|
6851
6851
|
var Ry = "logs";
|
|
@@ -7061,8 +7061,8 @@ function Gy(r, e) {
|
|
|
7061
7061
|
}
|
|
7062
7062
|
};
|
|
7063
7063
|
}
|
|
7064
|
-
var
|
|
7065
|
-
function
|
|
7064
|
+
var Yy = Hm, rn, Vu = (rn = {}, rn[me.debug] = 0, rn[me.info] = 1, rn[me.warn] = 2, rn[me.error] = 3, rn);
|
|
7065
|
+
function Wy(r) {
|
|
7066
7066
|
function e(t, n, i, o) {
|
|
7067
7067
|
var s = wn(n.getContext(), t.context);
|
|
7068
7068
|
qu(t.status, Us.console, n) && Jy(t, s), qu(t.status, Us.http, n) && r.notify(0, {
|
|
@@ -7183,7 +7183,7 @@ function tv(r, e, t, n, i) {
|
|
|
7183
7183
|
};
|
|
7184
7184
|
}
|
|
7185
7185
|
function rv(r, e, t) {
|
|
7186
|
-
var n = new
|
|
7186
|
+
var n = new Yy(), i = [];
|
|
7187
7187
|
n.subscribe(1, function(p) {
|
|
7188
7188
|
return Fl("logs", p);
|
|
7189
7189
|
});
|
|
@@ -7191,7 +7191,7 @@ function rv(r, e, t) {
|
|
|
7191
7191
|
i.push(function() {
|
|
7192
7192
|
return c();
|
|
7193
7193
|
}), My(e, n), Gy(e, n), Ly(e, n), $y(e, n);
|
|
7194
|
-
var u =
|
|
7194
|
+
var u = Wy(n).handleLog;
|
|
7195
7195
|
if (Ny(a, e, n, t, o), ro())
|
|
7196
7196
|
Zy(n);
|
|
7197
7197
|
else {
|
|
@@ -7216,11 +7216,11 @@ im(Cr(), "DD_LOGS", Ba);
|
|
|
7216
7216
|
const nv = () => {
|
|
7217
7217
|
const r = Qe.getDatadogConfig();
|
|
7218
7218
|
Ba.init(r);
|
|
7219
|
-
},
|
|
7220
|
-
Ba.logger.info(
|
|
7219
|
+
}, Wn = (r, e) => {
|
|
7220
|
+
Ba.logger.info(Te(ge({}, e), { tag: r }));
|
|
7221
7221
|
};
|
|
7222
|
-
function
|
|
7223
|
-
|
|
7222
|
+
function He(r, e) {
|
|
7223
|
+
Wn(r, e);
|
|
7224
7224
|
}
|
|
7225
7225
|
function iv(r, e) {
|
|
7226
7226
|
return F(this, null, function* () {
|
|
@@ -7229,7 +7229,7 @@ function iv(r, e) {
|
|
|
7229
7229
|
const t = yield r.init(e);
|
|
7230
7230
|
return console.log("init result", t), t;
|
|
7231
7231
|
} catch (t) {
|
|
7232
|
-
throw console.error(t.details),
|
|
7232
|
+
throw console.error(t.details), He("C2P-SERVICE-ERROR", Te(ge({}, t), { function: "INITIALIZE-MASTERCARD-CHECKOUT-SERVICE" })), t;
|
|
7233
7233
|
}
|
|
7234
7234
|
});
|
|
7235
7235
|
}
|
|
@@ -7239,7 +7239,7 @@ function ov(r) {
|
|
|
7239
7239
|
const e = yield r.getCards();
|
|
7240
7240
|
return console.log("getCards", e), e;
|
|
7241
7241
|
} catch (e) {
|
|
7242
|
-
throw console.error(e.details),
|
|
7242
|
+
throw console.error(e.details), He("C2P-SERVICE-ERROR", Te(ge({}, e), { function: "GET-CARDS-HANDLER" })), e;
|
|
7243
7243
|
}
|
|
7244
7244
|
});
|
|
7245
7245
|
}
|
|
@@ -7251,7 +7251,7 @@ function sv(r, e) {
|
|
|
7251
7251
|
});
|
|
7252
7252
|
return console.log("idLookup", t), t;
|
|
7253
7253
|
} catch (t) {
|
|
7254
|
-
throw console.error(t.details),
|
|
7254
|
+
throw console.error(t.details), He("C2P-SERVICE-ERROR", Te(ge({}, t), { function: "ID-LOOKUP-HANDLER" })), t;
|
|
7255
7255
|
}
|
|
7256
7256
|
});
|
|
7257
7257
|
}
|
|
@@ -7265,7 +7265,7 @@ function Hu(r, e) {
|
|
|
7265
7265
|
const n = yield r.initiateValidation(t);
|
|
7266
7266
|
return console.log("initiateValidation", n), n;
|
|
7267
7267
|
} catch (n) {
|
|
7268
|
-
throw console.error(n.details),
|
|
7268
|
+
throw console.error(n.details), He("C2P-SERVICE-ERROR", Te(ge({}, n), { function: "INITIATE-VALIDATION-HANDLER" })), n;
|
|
7269
7269
|
}
|
|
7270
7270
|
});
|
|
7271
7271
|
}
|
|
@@ -7275,7 +7275,7 @@ function av(r, e) {
|
|
|
7275
7275
|
const t = yield r.encryptCard(e);
|
|
7276
7276
|
return console.log("encryptCardHandler", t), t;
|
|
7277
7277
|
} catch (t) {
|
|
7278
|
-
throw console.error(t.details),
|
|
7278
|
+
throw console.error(t.details), He("C2P-SERVICE-ERROR", Te(ge({}, t), { function: "ENCRYPT-CARD-HANDLER" })), t;
|
|
7279
7279
|
}
|
|
7280
7280
|
});
|
|
7281
7281
|
}
|
|
@@ -7285,7 +7285,7 @@ function uv(r, e) {
|
|
|
7285
7285
|
const t = yield r.validate({ value: e });
|
|
7286
7286
|
return console.log("validateHandler", t), t;
|
|
7287
7287
|
} catch (t) {
|
|
7288
|
-
throw console.error(t.details),
|
|
7288
|
+
throw console.error(t.details), He("C2P-SERVICE-ERROR", Te(ge({}, t), { function: "VALIDATE-HANDLER" })), t;
|
|
7289
7289
|
}
|
|
7290
7290
|
});
|
|
7291
7291
|
}
|
|
@@ -7295,7 +7295,7 @@ function cv(r, e) {
|
|
|
7295
7295
|
const t = yield r.checkoutWithNewCard(e);
|
|
7296
7296
|
return console.log("checkoutWithNewCardHandler response", t), t;
|
|
7297
7297
|
} catch (t) {
|
|
7298
|
-
throw console.error(t.details),
|
|
7298
|
+
throw console.error(t.details), He("C2P-SERVICE-ERROR", Te(ge({}, t), { function: "CHECKOUT-NEW-CARD-HANDLER" })), t;
|
|
7299
7299
|
}
|
|
7300
7300
|
});
|
|
7301
7301
|
}
|
|
@@ -7305,7 +7305,7 @@ function lv(r, e) {
|
|
|
7305
7305
|
const t = yield r.checkoutWithCard(e);
|
|
7306
7306
|
return console.log("checkoutWithCardHandler response", t), t;
|
|
7307
7307
|
} catch (t) {
|
|
7308
|
-
throw console.error(t.details),
|
|
7308
|
+
throw console.error(t.details), He("C2P-SERVICE-ERROR", Te(ge({}, t), { function: "CHECKOUT-CARD-HANDLER" })), t;
|
|
7309
7309
|
}
|
|
7310
7310
|
});
|
|
7311
7311
|
}
|
|
@@ -7316,7 +7316,7 @@ const dv = (r) => F(void 0, null, function* () {
|
|
|
7316
7316
|
});
|
|
7317
7317
|
return console.log("makeC2PCheckout", e), e.data;
|
|
7318
7318
|
} catch (e) {
|
|
7319
|
-
throw console.error(e),
|
|
7319
|
+
throw console.error(e), He("C2P-SERVICE-ERROR", Te(ge({}, e), { function: "MAKE-C2P-CHECKOUT" })), e;
|
|
7320
7320
|
}
|
|
7321
7321
|
}), hv = (r) => r !== "CREDIT" ? "DEBIT" : "CREDIT", Ns = class {
|
|
7322
7322
|
};
|
|
@@ -7334,7 +7334,7 @@ Ns.getInstallmentPlans = (r, e, t) => F(void 0, null, function* () {
|
|
|
7334
7334
|
return Ns.plans = n.response.data.plans.cards, n;
|
|
7335
7335
|
} catch (n) {
|
|
7336
7336
|
if (n) {
|
|
7337
|
-
|
|
7337
|
+
He("GET-INSTALLMENT-PLANS-ERROR", n);
|
|
7338
7338
|
const { message: i, code: o } = n;
|
|
7339
7339
|
throw new kt(i, o);
|
|
7340
7340
|
}
|
|
@@ -7526,18 +7526,18 @@ var Gu;
|
|
|
7526
7526
|
(function(r) {
|
|
7527
7527
|
r.Record = "1", r.UpdateEndpoint = "2";
|
|
7528
7528
|
})(Gu || (Gu = {}));
|
|
7529
|
-
var
|
|
7529
|
+
var Yu;
|
|
7530
7530
|
(function(r) {
|
|
7531
7531
|
r.GraphQl = "1", r.Get = "2", r.Post = "3", r.Put = "4", r.Patch = "5", r.Del = "6", r.Head = "7";
|
|
7532
|
-
})(
|
|
7532
|
+
})(Yu || (Yu = {}));
|
|
7533
7533
|
var Ls;
|
|
7534
7534
|
(function(r) {
|
|
7535
7535
|
r.FederatedSignIn = "30";
|
|
7536
7536
|
})(Ls || (Ls = {}));
|
|
7537
|
-
var
|
|
7537
|
+
var Wu;
|
|
7538
7538
|
(function(r) {
|
|
7539
7539
|
r.Subscribe = "1", r.GraphQl = "2";
|
|
7540
|
-
})(
|
|
7540
|
+
})(Wu || (Wu = {}));
|
|
7541
7541
|
var Ju;
|
|
7542
7542
|
(function(r) {
|
|
7543
7543
|
r.None = "0";
|
|
@@ -8019,7 +8019,7 @@ var Hv = (
|
|
|
8019
8019
|
throw u[1];
|
|
8020
8020
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
8021
8021
|
}
|
|
8022
|
-
},
|
|
8022
|
+
}, Yv = globalThis && globalThis.__read || function(r, e) {
|
|
8023
8023
|
var t = typeof Symbol == "function" && r[Symbol.iterator];
|
|
8024
8024
|
if (!t)
|
|
8025
8025
|
return r;
|
|
@@ -8038,7 +8038,7 @@ var Hv = (
|
|
|
8038
8038
|
}
|
|
8039
8039
|
}
|
|
8040
8040
|
return o;
|
|
8041
|
-
},
|
|
8041
|
+
}, Wv = globalThis && globalThis.__spreadArray || function(r, e, t) {
|
|
8042
8042
|
if (t || arguments.length === 2)
|
|
8043
8043
|
for (var n = 0, i = e.length, o; n < i; n++)
|
|
8044
8044
|
(o || !(n in e)) && (o || (o = Array.prototype.slice.call(e, 0, n)), o[n] = e[n]);
|
|
@@ -8079,7 +8079,7 @@ function Xv(r, e, t, n) {
|
|
|
8079
8079
|
case 0:
|
|
8080
8080
|
c++, Oi.debug("".concat(r.name, " attempt #").concat(c, " with this vars: ").concat(JSON.stringify(e))), U.label = 1;
|
|
8081
8081
|
case 1:
|
|
8082
|
-
return U.trys.push([1, 3, , 7]), _ = {}, E = s, [4, r.apply(void 0,
|
|
8082
|
+
return U.trys.push([1, 3, , 7]), _ = {}, E = s, [4, r.apply(void 0, Wv([], Yv(e), !1))];
|
|
8083
8083
|
case 2:
|
|
8084
8084
|
return [2, (_.value = E.apply(void 0, [U.sent()]), _)];
|
|
8085
8085
|
case 3:
|
|
@@ -8744,14 +8744,14 @@ Ro.convertToBuffer = Gb;
|
|
|
8744
8744
|
var Oo = {};
|
|
8745
8745
|
Object.defineProperty(Oo, "__esModule", { value: !0 });
|
|
8746
8746
|
Oo.isEmptyData = void 0;
|
|
8747
|
-
function
|
|
8747
|
+
function Yb(r) {
|
|
8748
8748
|
return typeof r == "string" ? r.length === 0 : r.byteLength === 0;
|
|
8749
8749
|
}
|
|
8750
|
-
Oo.isEmptyData =
|
|
8750
|
+
Oo.isEmptyData = Yb;
|
|
8751
8751
|
var Po = {};
|
|
8752
8752
|
Object.defineProperty(Po, "__esModule", { value: !0 });
|
|
8753
8753
|
Po.numToUint8 = void 0;
|
|
8754
|
-
function
|
|
8754
|
+
function Wb(r) {
|
|
8755
8755
|
return new Uint8Array([
|
|
8756
8756
|
(r & 4278190080) >> 24,
|
|
8757
8757
|
(r & 16711680) >> 16,
|
|
@@ -8759,7 +8759,7 @@ function Yb(r) {
|
|
|
8759
8759
|
r & 255
|
|
8760
8760
|
]);
|
|
8761
8761
|
}
|
|
8762
|
-
Po.numToUint8 =
|
|
8762
|
+
Po.numToUint8 = Wb;
|
|
8763
8763
|
var ko = {};
|
|
8764
8764
|
Object.defineProperty(ko, "__esModule", { value: !0 });
|
|
8765
8765
|
ko.uint32ArrayFrom = void 0;
|
|
@@ -9808,7 +9808,7 @@ var cs = function(r) {
|
|
|
9808
9808
|
// API Gateway
|
|
9809
9809
|
], G0 = function(r) {
|
|
9810
9810
|
return K0.includes(r);
|
|
9811
|
-
},
|
|
9811
|
+
}, Y0 = globalThis && globalThis.__awaiter || function(r, e, t, n) {
|
|
9812
9812
|
function i(o) {
|
|
9813
9813
|
return o instanceof t ? o : new t(function(s) {
|
|
9814
9814
|
s(o);
|
|
@@ -9834,7 +9834,7 @@ var cs = function(r) {
|
|
|
9834
9834
|
}
|
|
9835
9835
|
u((n = n.apply(r, e || [])).next());
|
|
9836
9836
|
});
|
|
9837
|
-
},
|
|
9837
|
+
}, W0 = globalThis && globalThis.__generator || function(r, e) {
|
|
9838
9838
|
var t = { label: 0, sent: function() {
|
|
9839
9839
|
if (o[0] & 1)
|
|
9840
9840
|
throw o[1];
|
|
@@ -9900,9 +9900,9 @@ var cs = function(r) {
|
|
|
9900
9900
|
}
|
|
9901
9901
|
}, J0 = function(r) {
|
|
9902
9902
|
return function(e, t) {
|
|
9903
|
-
return
|
|
9903
|
+
return Y0(void 0, void 0, void 0, function() {
|
|
9904
9904
|
var n, i, o, s;
|
|
9905
|
-
return
|
|
9905
|
+
return W0(this, function(a) {
|
|
9906
9906
|
switch (a.label) {
|
|
9907
9907
|
case 0:
|
|
9908
9908
|
return t == null ? [3, 1] : (i = t, [3, 3]);
|
|
@@ -10709,7 +10709,7 @@ var Sd = function(r) {
|
|
|
10709
10709
|
}
|
|
10710
10710
|
return r;
|
|
10711
10711
|
}, ho.apply(this, arguments);
|
|
10712
|
-
},
|
|
10712
|
+
}, je = globalThis && globalThis.__awaiter || function(r, e, t, n) {
|
|
10713
10713
|
function i(o) {
|
|
10714
10714
|
return o instanceof t ? o : new t(function(s) {
|
|
10715
10715
|
s(o);
|
|
@@ -10735,7 +10735,7 @@ var Sd = function(r) {
|
|
|
10735
10735
|
}
|
|
10736
10736
|
u((n = n.apply(r, e || [])).next());
|
|
10737
10737
|
});
|
|
10738
|
-
},
|
|
10738
|
+
}, Ve = globalThis && globalThis.__generator || function(r, e) {
|
|
10739
10739
|
var t = { label: 0, sent: function() {
|
|
10740
10740
|
if (o[0] & 1)
|
|
10741
10741
|
throw o[1];
|
|
@@ -10824,9 +10824,9 @@ var Sd = function(r) {
|
|
|
10824
10824
|
}, r.prototype._pickupCredentials = function() {
|
|
10825
10825
|
return G.debug("picking up credentials"), !this._gettingCredPromise || !this._gettingCredPromise.isPending() ? (G.debug("getting new cred promise"), this._gettingCredPromise = Kv(this._keepAlive())) : G.debug("getting old cred promise"), this._gettingCredPromise;
|
|
10826
10826
|
}, r.prototype._keepAlive = function() {
|
|
10827
|
-
return
|
|
10827
|
+
return je(this, void 0, void 0, function() {
|
|
10828
10828
|
var e, t, n, i, o, s, a, c;
|
|
10829
|
-
return
|
|
10829
|
+
return Ve(this, function(u) {
|
|
10830
10830
|
switch (u.label) {
|
|
10831
10831
|
case 0:
|
|
10832
10832
|
if (G.debug("checking if credentials exists and not expired"), e = this._credentials, e && !this._isExpired(e) && !this._isPastTTL())
|
|
@@ -10895,17 +10895,17 @@ var Sd = function(r) {
|
|
|
10895
10895
|
return this._nextCredentialsRefresh <= Date.now();
|
|
10896
10896
|
}, r.prototype._setCredentialsForGuest = function() {
|
|
10897
10897
|
var e;
|
|
10898
|
-
return
|
|
10898
|
+
return je(this, void 0, void 0, function() {
|
|
10899
10899
|
var t, n, i, o, s, a, c, u, l, d, p = this;
|
|
10900
|
-
return
|
|
10900
|
+
return Ve(this, function(m) {
|
|
10901
10901
|
switch (m.label) {
|
|
10902
10902
|
case 0:
|
|
10903
10903
|
return G.debug("setting credentials for guest"), !((e = this._config) === null || e === void 0) && e.identityPoolId || (this._config = Object.assign({}, this._config, gd(this._config || {}).Auth)), t = this._config, n = t.identityPoolId, i = t.region, o = t.mandatorySignIn, s = t.identityPoolRegion, o ? [2, Promise.reject("cannot get guest credentials when mandatory signin enabled")] : n ? !s && !i ? (G.debug("region is not configured for getting the credentials"), [2, Promise.reject("region is not configured for getting the credentials")]) : (c = this, [4, this._getGuestIdentityId()]) : (G.debug("No Cognito Identity pool provided for unauthenticated access"), [2, Promise.reject("No Cognito Identity pool provided for unauthenticated access")]);
|
|
10904
10904
|
case 1:
|
|
10905
10905
|
return a = c._identityId = m.sent(), u = { region: s != null ? s : i }, l = function() {
|
|
10906
|
-
return
|
|
10906
|
+
return je(p, void 0, void 0, function() {
|
|
10907
10907
|
var g, v;
|
|
10908
|
-
return
|
|
10908
|
+
return Ve(this, function(_) {
|
|
10909
10909
|
switch (_.label) {
|
|
10910
10910
|
case 0:
|
|
10911
10911
|
return a ? [3, 2] : [4, Ui(u, {
|
|
@@ -10929,25 +10929,25 @@ var Sd = function(r) {
|
|
|
10929
10929
|
});
|
|
10930
10930
|
});
|
|
10931
10931
|
}, d = l().catch(function(g) {
|
|
10932
|
-
return
|
|
10933
|
-
return
|
|
10932
|
+
return je(p, void 0, void 0, function() {
|
|
10933
|
+
return Ve(this, function(v) {
|
|
10934
10934
|
throw g;
|
|
10935
10935
|
});
|
|
10936
10936
|
});
|
|
10937
10937
|
}), [2, this._loadCredentials(d, "guest", !1, null).then(function(g) {
|
|
10938
10938
|
return g;
|
|
10939
10939
|
}).catch(function(g) {
|
|
10940
|
-
return
|
|
10940
|
+
return je(p, void 0, void 0, function() {
|
|
10941
10941
|
var v, _ = this;
|
|
10942
|
-
return
|
|
10942
|
+
return Ve(this, function(E) {
|
|
10943
10943
|
switch (E.label) {
|
|
10944
10944
|
case 0:
|
|
10945
10945
|
return g.name === "ResourceNotFoundException" && g.message === "Identity '".concat(a, "' not found.") ? (G.debug("Failed to load guest credentials"), [4, this._removeGuestIdentityId()]) : [3, 2];
|
|
10946
10946
|
case 1:
|
|
10947
10947
|
return E.sent(), v = function() {
|
|
10948
|
-
return
|
|
10948
|
+
return je(_, void 0, void 0, function() {
|
|
10949
10949
|
var x, R;
|
|
10950
|
-
return
|
|
10950
|
+
return Ve(this, function(U) {
|
|
10951
10951
|
switch (U.label) {
|
|
10952
10952
|
case 0:
|
|
10953
10953
|
return [4, Ui(u, {
|
|
@@ -10969,8 +10969,8 @@ var Sd = function(r) {
|
|
|
10969
10969
|
});
|
|
10970
10970
|
});
|
|
10971
10971
|
}, d = v().catch(function(x) {
|
|
10972
|
-
return
|
|
10973
|
-
return
|
|
10972
|
+
return je(_, void 0, void 0, function() {
|
|
10973
|
+
return Ve(this, function(R) {
|
|
10974
10974
|
throw x;
|
|
10975
10975
|
});
|
|
10976
10976
|
});
|
|
@@ -11001,9 +11001,9 @@ var Sd = function(r) {
|
|
|
11001
11001
|
if (!p && !d)
|
|
11002
11002
|
return G.debug("region is not configured for getting the credentials"), Promise.reject("region is not configured for getting the credentials");
|
|
11003
11003
|
var m = { region: p != null ? p : d }, g = function() {
|
|
11004
|
-
return
|
|
11004
|
+
return je(t, void 0, void 0, function() {
|
|
11005
11005
|
var _, E;
|
|
11006
|
-
return
|
|
11006
|
+
return Ve(this, function(x) {
|
|
11007
11007
|
switch (x.label) {
|
|
11008
11008
|
case 0:
|
|
11009
11009
|
return o ? [3, 2] : [4, Ui(m, {
|
|
@@ -11029,8 +11029,8 @@ var Sd = function(r) {
|
|
|
11029
11029
|
});
|
|
11030
11030
|
});
|
|
11031
11031
|
}, v = g().catch(function(_) {
|
|
11032
|
-
return
|
|
11033
|
-
return
|
|
11032
|
+
return je(t, void 0, void 0, function() {
|
|
11033
|
+
return Ve(this, function(E) {
|
|
11034
11034
|
throw _;
|
|
11035
11035
|
});
|
|
11036
11036
|
});
|
|
@@ -11047,9 +11047,9 @@ var Sd = function(r) {
|
|
|
11047
11047
|
var u = "cognito-idp." + o + ".amazonaws.com/" + s, l = {};
|
|
11048
11048
|
l[u] = n;
|
|
11049
11049
|
var d = { region: c != null ? c : o }, p = function() {
|
|
11050
|
-
return
|
|
11050
|
+
return je(t, void 0, void 0, function() {
|
|
11051
11051
|
var g, v, _, E, x, R, U, k, P, M;
|
|
11052
|
-
return
|
|
11052
|
+
return Ve(this, function(z) {
|
|
11053
11053
|
switch (z.label) {
|
|
11054
11054
|
case 0:
|
|
11055
11055
|
return [4, this._getGuestIdentityId()];
|
|
@@ -11081,8 +11081,8 @@ var Sd = function(r) {
|
|
|
11081
11081
|
});
|
|
11082
11082
|
});
|
|
11083
11083
|
}, m = p().catch(function(g) {
|
|
11084
|
-
return
|
|
11085
|
-
return
|
|
11084
|
+
return je(t, void 0, void 0, function() {
|
|
11085
|
+
return Ve(this, function(v) {
|
|
11086
11086
|
throw g;
|
|
11087
11087
|
});
|
|
11088
11088
|
});
|
|
@@ -11092,9 +11092,9 @@ var Sd = function(r) {
|
|
|
11092
11092
|
var o = this, s = this;
|
|
11093
11093
|
return new Promise(function(a, c) {
|
|
11094
11094
|
e.then(function(u) {
|
|
11095
|
-
return
|
|
11095
|
+
return je(o, void 0, void 0, function() {
|
|
11096
11096
|
var l, d, p, m, g;
|
|
11097
|
-
return
|
|
11097
|
+
return Ve(this, function(v) {
|
|
11098
11098
|
switch (v.label) {
|
|
11099
11099
|
case 0:
|
|
11100
11100
|
if (G.debug("Load credentials successfully", u), this._identityId && !u.identityId && (u.identityId = this._identityId), s._credentials = u, s._credentials.authenticated = n, s._credentials_source = t, s._nextCredentialsRefresh = (/* @__PURE__ */ new Date()).getTime() + Ew, t === "federated") {
|
|
@@ -11132,8 +11132,8 @@ var Sd = function(r) {
|
|
|
11132
11132
|
}, r.prototype.set = function(e, t) {
|
|
11133
11133
|
return t === "session" ? this._setCredentialsFromSession(e) : t === "federation" ? this._setCredentialsFromFederation(e) : t === "guest" ? this._setCredentialsForGuest() : (G.debug("no source specified for setting credentials"), Promise.reject("invalid source"));
|
|
11134
11134
|
}, r.prototype.clear = function() {
|
|
11135
|
-
return
|
|
11136
|
-
return
|
|
11135
|
+
return je(this, void 0, void 0, function() {
|
|
11136
|
+
return Ve(this, function(e) {
|
|
11137
11137
|
return this._credentials = null, this._credentials_source = null, G.debug("removing aws-amplify-federatedInfo from storage"), this._storage.removeItem("aws-amplify-federatedInfo"), [
|
|
11138
11138
|
2
|
|
11139
11139
|
/*return*/
|
|
@@ -11141,9 +11141,9 @@ var Sd = function(r) {
|
|
|
11141
11141
|
});
|
|
11142
11142
|
});
|
|
11143
11143
|
}, r.prototype._getGuestIdentityId = function() {
|
|
11144
|
-
return
|
|
11144
|
+
return je(this, void 0, void 0, function() {
|
|
11145
11145
|
var e, t;
|
|
11146
|
-
return
|
|
11146
|
+
return Ve(this, function(n) {
|
|
11147
11147
|
switch (n.label) {
|
|
11148
11148
|
case 0:
|
|
11149
11149
|
e = this._config.identityPoolId, n.label = 1;
|
|
@@ -11162,9 +11162,9 @@ var Sd = function(r) {
|
|
|
11162
11162
|
});
|
|
11163
11163
|
});
|
|
11164
11164
|
}, r.prototype._setGuestIdentityId = function(e) {
|
|
11165
|
-
return
|
|
11165
|
+
return je(this, void 0, void 0, function() {
|
|
11166
11166
|
var t, n;
|
|
11167
|
-
return
|
|
11167
|
+
return Ve(this, function(i) {
|
|
11168
11168
|
switch (i.label) {
|
|
11169
11169
|
case 0:
|
|
11170
11170
|
t = this._config.identityPoolId, i.label = 1;
|
|
@@ -11183,9 +11183,9 @@ var Sd = function(r) {
|
|
|
11183
11183
|
});
|
|
11184
11184
|
});
|
|
11185
11185
|
}, r.prototype._removeGuestIdentityId = function() {
|
|
11186
|
-
return
|
|
11186
|
+
return je(this, void 0, void 0, function() {
|
|
11187
11187
|
var e;
|
|
11188
|
-
return
|
|
11188
|
+
return Ve(this, function(t) {
|
|
11189
11189
|
return e = this._config.identityPoolId, G.debug("removing ".concat(this._getCognitoIdentityIdStorageKey(e), " from storage")), this._storage.removeItem(this._getCognitoIdentityIdStorageKey(e)), [
|
|
11190
11190
|
2
|
|
11191
11191
|
/*return*/
|
|
@@ -11640,7 +11640,7 @@ var mc = /* @__PURE__ */ function() {
|
|
|
11640
11640
|
}, r;
|
|
11641
11641
|
}(), ue = {}, No = {};
|
|
11642
11642
|
No.byteLength = Gw;
|
|
11643
|
-
No.toByteArray =
|
|
11643
|
+
No.toByteArray = Ww;
|
|
11644
11644
|
No.fromByteArray = Zw;
|
|
11645
11645
|
var Ot = [], dt = [], Hw = typeof Uint8Array != "undefined" ? Uint8Array : Array, hs = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
11646
11646
|
for (var sn = 0, Kw = hs.length; sn < Kw; ++sn)
|
|
@@ -11660,11 +11660,11 @@ function Gw(r) {
|
|
|
11660
11660
|
var e = Id(r), t = e[0], n = e[1];
|
|
11661
11661
|
return (t + n) * 3 / 4 - n;
|
|
11662
11662
|
}
|
|
11663
|
-
function
|
|
11663
|
+
function Yw(r, e, t) {
|
|
11664
11664
|
return (e + t) * 3 / 4 - t;
|
|
11665
11665
|
}
|
|
11666
|
-
function
|
|
11667
|
-
var e, t = Id(r), n = t[0], i = t[1], o = new Hw(
|
|
11666
|
+
function Ww(r) {
|
|
11667
|
+
var e, t = Id(r), n = t[0], i = t[1], o = new Hw(Yw(r, n, i)), s = 0, a = i > 0 ? n - 4 : n, c;
|
|
11668
11668
|
for (c = 0; c < a; c += 4)
|
|
11669
11669
|
e = dt[r.charCodeAt(c)] << 18 | dt[r.charCodeAt(c + 1)] << 12 | dt[r.charCodeAt(c + 2)] << 6 | dt[r.charCodeAt(c + 3)], o[s++] = e >> 16 & 255, o[s++] = e >> 8 & 255, o[s++] = e & 255;
|
|
11670
11670
|
return i === 2 && (e = dt[r.charCodeAt(c)] << 2 | dt[r.charCodeAt(c + 1)] >> 4, o[s++] = e & 255), i === 1 && (e = dt[r.charCodeAt(c)] << 10 | dt[r.charCodeAt(c + 1)] << 4 | dt[r.charCodeAt(c + 2)] >> 2, o[s++] = e >> 8 & 255, o[s++] = e & 255), o;
|
|
@@ -11935,7 +11935,7 @@ var Qw = {}.toString, e_ = Array.isArray || function(r) {
|
|
|
11935
11935
|
case "binary":
|
|
11936
11936
|
return Fo(this, h, f);
|
|
11937
11937
|
case "base64":
|
|
11938
|
-
return
|
|
11938
|
+
return xe(this, h, f);
|
|
11939
11939
|
case "ucs2":
|
|
11940
11940
|
case "ucs-2":
|
|
11941
11941
|
case "utf16le":
|
|
@@ -11996,9 +11996,9 @@ var Qw = {}.toString, e_ = Array.isArray || function(r) {
|
|
|
11996
11996
|
return 1;
|
|
11997
11997
|
if (f >>>= 0, b >>>= 0, S >>>= 0, I >>>= 0, this === h)
|
|
11998
11998
|
return 0;
|
|
11999
|
-
for (var O = I - S, X = b - f, le = Math.min(O, X), he = this.slice(S, I),
|
|
12000
|
-
if (he[ve] !==
|
|
12001
|
-
O = he[ve], X =
|
|
11999
|
+
for (var O = I - S, X = b - f, le = Math.min(O, X), he = this.slice(S, I), ze = h.slice(f, b), ve = 0; ve < le; ++ve)
|
|
12000
|
+
if (he[ve] !== ze[ve]) {
|
|
12001
|
+
O = he[ve], X = ze[ve];
|
|
12002
12002
|
break;
|
|
12003
12003
|
}
|
|
12004
12004
|
return O < X ? -1 : X < O ? 1 : 0;
|
|
@@ -12033,13 +12033,13 @@ var Qw = {}.toString, e_ = Array.isArray || function(r) {
|
|
|
12033
12033
|
}
|
|
12034
12034
|
var he;
|
|
12035
12035
|
if (S) {
|
|
12036
|
-
var
|
|
12036
|
+
var ze = -1;
|
|
12037
12037
|
for (he = f; he < O; he++)
|
|
12038
|
-
if (le(y, he) === le(h,
|
|
12039
|
-
if (
|
|
12040
|
-
return
|
|
12038
|
+
if (le(y, he) === le(h, ze === -1 ? 0 : he - ze)) {
|
|
12039
|
+
if (ze === -1 && (ze = he), he - ze + 1 === X)
|
|
12040
|
+
return ze * I;
|
|
12041
12041
|
} else
|
|
12042
|
-
|
|
12042
|
+
ze !== -1 && (he -= he - ze), ze = -1;
|
|
12043
12043
|
} else
|
|
12044
12044
|
for (f + X > O && (f = O - X), he = f; he >= 0; he--) {
|
|
12045
12045
|
for (var ve = !0, bi = 0; bi < X; bi++)
|
|
@@ -12087,7 +12087,7 @@ var Qw = {}.toString, e_ = Array.isArray || function(r) {
|
|
|
12087
12087
|
function oe(y, h, f, b) {
|
|
12088
12088
|
return rr(It(h), y, f, b);
|
|
12089
12089
|
}
|
|
12090
|
-
function
|
|
12090
|
+
function $e(y, h, f, b) {
|
|
12091
12091
|
return rr(At(h, y.length - f), y, f, b);
|
|
12092
12092
|
}
|
|
12093
12093
|
a.prototype.write = function(h, f, b, S) {
|
|
@@ -12123,7 +12123,7 @@ var Qw = {}.toString, e_ = Array.isArray || function(r) {
|
|
|
12123
12123
|
case "ucs-2":
|
|
12124
12124
|
case "utf16le":
|
|
12125
12125
|
case "utf-16le":
|
|
12126
|
-
return
|
|
12126
|
+
return $e(this, h, f, b);
|
|
12127
12127
|
default:
|
|
12128
12128
|
if (O)
|
|
12129
12129
|
throw new TypeError("Unknown encoding: " + S);
|
|
@@ -12135,7 +12135,7 @@ var Qw = {}.toString, e_ = Array.isArray || function(r) {
|
|
|
12135
12135
|
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
12136
12136
|
};
|
|
12137
12137
|
};
|
|
12138
|
-
function
|
|
12138
|
+
function xe(y, h, f) {
|
|
12139
12139
|
return h === 0 && f === y.length ? e.fromByteArray(y) : e.fromByteArray(y.slice(h, f));
|
|
12140
12140
|
}
|
|
12141
12141
|
function ut(y, h, f) {
|
|
@@ -12143,7 +12143,7 @@ var Qw = {}.toString, e_ = Array.isArray || function(r) {
|
|
|
12143
12143
|
for (var b = [], S = h; S < f; ) {
|
|
12144
12144
|
var I = y[S], O = null, X = I > 239 ? 4 : I > 223 ? 3 : I > 191 ? 2 : 1;
|
|
12145
12145
|
if (S + X <= f) {
|
|
12146
|
-
var le, he,
|
|
12146
|
+
var le, he, ze, ve;
|
|
12147
12147
|
switch (X) {
|
|
12148
12148
|
case 1:
|
|
12149
12149
|
I < 128 && (O = I);
|
|
@@ -12155,7 +12155,7 @@ var Qw = {}.toString, e_ = Array.isArray || function(r) {
|
|
|
12155
12155
|
le = y[S + 1], he = y[S + 2], (le & 192) === 128 && (he & 192) === 128 && (ve = (I & 15) << 12 | (le & 63) << 6 | he & 63, ve > 2047 && (ve < 55296 || ve > 57343) && (O = ve));
|
|
12156
12156
|
break;
|
|
12157
12157
|
case 4:
|
|
12158
|
-
le = y[S + 1], he = y[S + 2],
|
|
12158
|
+
le = y[S + 1], he = y[S + 2], ze = y[S + 3], (le & 192) === 128 && (he & 192) === 128 && (ze & 192) === 128 && (ve = (I & 15) << 18 | (le & 63) << 12 | (he & 63) << 6 | ze & 63, ve > 65535 && ve < 1114112 && (O = ve));
|
|
12159
12159
|
}
|
|
12160
12160
|
}
|
|
12161
12161
|
O === null ? (O = 65533, X = 1) : O > 65535 && (O -= 65536, b.push(O >>> 10 & 1023 | 55296), O = 56320 | O & 1023), b.push(O), S += X;
|
|
@@ -12356,21 +12356,21 @@ var Qw = {}.toString, e_ = Array.isArray || function(r) {
|
|
|
12356
12356
|
if (f < 0)
|
|
12357
12357
|
throw new RangeError("Index out of range");
|
|
12358
12358
|
}
|
|
12359
|
-
function
|
|
12359
|
+
function Ce(y, h, f, b, S) {
|
|
12360
12360
|
return S || Re(y, h, f, 4), t.write(y, h, f, b, 23, 4), f + 4;
|
|
12361
12361
|
}
|
|
12362
12362
|
a.prototype.writeFloatLE = function(h, f, b) {
|
|
12363
|
-
return
|
|
12363
|
+
return Ce(this, h, f, !0, b);
|
|
12364
12364
|
}, a.prototype.writeFloatBE = function(h, f, b) {
|
|
12365
|
-
return
|
|
12365
|
+
return Ce(this, h, f, !1, b);
|
|
12366
12366
|
};
|
|
12367
|
-
function
|
|
12367
|
+
function Me(y, h, f, b, S) {
|
|
12368
12368
|
return S || Re(y, h, f, 8), t.write(y, h, f, b, 52, 8), f + 8;
|
|
12369
12369
|
}
|
|
12370
12370
|
a.prototype.writeDoubleLE = function(h, f, b) {
|
|
12371
|
-
return
|
|
12371
|
+
return Me(this, h, f, !0, b);
|
|
12372
12372
|
}, a.prototype.writeDoubleBE = function(h, f, b) {
|
|
12373
|
-
return
|
|
12373
|
+
return Me(this, h, f, !1, b);
|
|
12374
12374
|
}, a.prototype.copy = function(h, f, b, S) {
|
|
12375
12375
|
if (b || (b = 0), !S && S !== 0 && (S = this.length), f >= h.length && (f = h.length), f || (f = 0), S > 0 && S < b && (S = b), S === b || h.length === 0 || this.length === 0)
|
|
12376
12376
|
return 0;
|
|
@@ -12561,7 +12561,7 @@ var n_ = /* @__PURE__ */ function() {
|
|
|
12561
12561
|
function B(r, e) {
|
|
12562
12562
|
r != null && this.fromString(r, e);
|
|
12563
12563
|
}
|
|
12564
|
-
function
|
|
12564
|
+
function We() {
|
|
12565
12565
|
return new B(null);
|
|
12566
12566
|
}
|
|
12567
12567
|
var mr, i_ = 244837814094590, yc = (i_ & 16777215) == 15715070;
|
|
@@ -12620,8 +12620,8 @@ function l_(r) {
|
|
|
12620
12620
|
function d_(r) {
|
|
12621
12621
|
this.t = 1, this.s = r < 0 ? -1 : 0, r > 0 ? this[0] = r : r < -1 ? this[0] = r + this.DV : this.t = 0;
|
|
12622
12622
|
}
|
|
12623
|
-
function
|
|
12624
|
-
var e =
|
|
12623
|
+
function Ya(r) {
|
|
12624
|
+
var e = We();
|
|
12625
12625
|
return e.fromInt(r), e;
|
|
12626
12626
|
}
|
|
12627
12627
|
function h_(r, e) {
|
|
@@ -12676,7 +12676,7 @@ function p_(r) {
|
|
|
12676
12676
|
return i ? o : "0";
|
|
12677
12677
|
}
|
|
12678
12678
|
function g_() {
|
|
12679
|
-
var r =
|
|
12679
|
+
var r = We();
|
|
12680
12680
|
return B.ZERO.subTo(this, r), r;
|
|
12681
12681
|
}
|
|
12682
12682
|
function m_() {
|
|
@@ -12694,12 +12694,12 @@ function y_(r) {
|
|
|
12694
12694
|
return e;
|
|
12695
12695
|
return 0;
|
|
12696
12696
|
}
|
|
12697
|
-
function
|
|
12697
|
+
function Wa(r) {
|
|
12698
12698
|
var e = 1, t;
|
|
12699
12699
|
return (t = r >>> 16) != 0 && (r = t, e += 16), (t = r >> 8) != 0 && (r = t, e += 8), (t = r >> 4) != 0 && (r = t, e += 4), (t = r >> 2) != 0 && (r = t, e += 2), (t = r >> 1) != 0 && (r = t, e += 1), e;
|
|
12700
12700
|
}
|
|
12701
12701
|
function v_() {
|
|
12702
|
-
return this.t <= 0 ? 0 : this.DB * (this.t - 1) +
|
|
12702
|
+
return this.t <= 0 ? 0 : this.DB * (this.t - 1) + Wa(this[this.t - 1] ^ this.s & this.DM);
|
|
12703
12703
|
}
|
|
12704
12704
|
function b_(r, e) {
|
|
12705
12705
|
var t;
|
|
@@ -12774,12 +12774,12 @@ function T_(r, e, t) {
|
|
|
12774
12774
|
e != null && e.fromInt(0), t != null && this.copyTo(t);
|
|
12775
12775
|
return;
|
|
12776
12776
|
}
|
|
12777
|
-
t == null && (t =
|
|
12778
|
-
var o =
|
|
12777
|
+
t == null && (t = We());
|
|
12778
|
+
var o = We(), s = this.s, a = r.s, c = this.DB - Wa(n[n.t - 1]);
|
|
12779
12779
|
c > 0 ? (n.lShiftTo(c, o), i.lShiftTo(c, t)) : (n.copyTo(o), i.copyTo(t));
|
|
12780
12780
|
var u = o.t, l = o[u - 1];
|
|
12781
12781
|
if (l != 0) {
|
|
12782
|
-
var d = l * (1 << this.F1) + (u > 1 ? o[u - 2] >> this.F2 : 0), p = this.FV / d, m = (1 << this.F1) / d, g = 1 << this.F2, v = t.t, _ = v - u, E = e == null ?
|
|
12782
|
+
var d = l * (1 << this.F1) + (u > 1 ? o[u - 2] >> this.F2 : 0), p = this.FV / d, m = (1 << this.F1) / d, g = 1 << this.F2, v = t.t, _ = v - u, E = e == null ? We() : e;
|
|
12783
12783
|
for (o.dlShiftTo(_, E), t.compareTo(E) >= 0 && (t[t.t++] = 1, t.subTo(E, t)), B.ONE.dlShiftTo(u, E), E.subTo(o, o); o.t < u; )
|
|
12784
12784
|
o[o.t++] = 0;
|
|
12785
12785
|
for (; --_ >= 0; ) {
|
|
@@ -12793,7 +12793,7 @@ function T_(r, e, t) {
|
|
|
12793
12793
|
}
|
|
12794
12794
|
}
|
|
12795
12795
|
function A_(r) {
|
|
12796
|
-
var e =
|
|
12796
|
+
var e = We();
|
|
12797
12797
|
return this.abs().divRemTo(r, null, e), this.s < 0 && e.compareTo(B.ZERO) > 0 && r.subTo(e, e), e;
|
|
12798
12798
|
}
|
|
12799
12799
|
function I_() {
|
|
@@ -12823,30 +12823,30 @@ function R_(r, e) {
|
|
|
12823
12823
|
e.s = n < 0 ? -1 : 0, n > 0 ? e[t++] = n : n < -1 && (e[t++] = this.DV + n), e.t = t, e.clamp();
|
|
12824
12824
|
}
|
|
12825
12825
|
function O_(r) {
|
|
12826
|
-
var e =
|
|
12826
|
+
var e = We();
|
|
12827
12827
|
return this.addTo(r, e), e;
|
|
12828
12828
|
}
|
|
12829
12829
|
function P_(r) {
|
|
12830
|
-
var e =
|
|
12830
|
+
var e = We();
|
|
12831
12831
|
return this.subTo(r, e), e;
|
|
12832
12832
|
}
|
|
12833
12833
|
function k_(r) {
|
|
12834
|
-
var e =
|
|
12834
|
+
var e = We();
|
|
12835
12835
|
return this.multiplyTo(r, e), e;
|
|
12836
12836
|
}
|
|
12837
12837
|
function U_(r) {
|
|
12838
|
-
var e =
|
|
12838
|
+
var e = We();
|
|
12839
12839
|
return this.divRemTo(r, e, null), e;
|
|
12840
12840
|
}
|
|
12841
12841
|
function On(r) {
|
|
12842
12842
|
this.m = r, this.mp = r.invDigit(), this.mpl = this.mp & 32767, this.mph = this.mp >> 15, this.um = (1 << r.DB - 15) - 1, this.mt2 = 2 * r.t;
|
|
12843
12843
|
}
|
|
12844
12844
|
function N_(r) {
|
|
12845
|
-
var e =
|
|
12845
|
+
var e = We();
|
|
12846
12846
|
return r.abs().dlShiftTo(this.m.t, e), e.divRemTo(this.m, null, e), r.s < 0 && e.compareTo(B.ZERO) > 0 && this.m.subTo(e, e), e;
|
|
12847
12847
|
}
|
|
12848
12848
|
function B_(r) {
|
|
12849
|
-
var e =
|
|
12849
|
+
var e = We();
|
|
12850
12850
|
return r.copyTo(e), this.reduce(e), e;
|
|
12851
12851
|
}
|
|
12852
12852
|
function L_(r) {
|
|
@@ -12871,18 +12871,18 @@ On.prototype.reduce = L_;
|
|
|
12871
12871
|
On.prototype.mulTo = $_;
|
|
12872
12872
|
On.prototype.sqrTo = F_;
|
|
12873
12873
|
function M_(r, e, t) {
|
|
12874
|
-
var n = r.bitLength(), i, o =
|
|
12874
|
+
var n = r.bitLength(), i, o = Ya(1), s = new On(e);
|
|
12875
12875
|
if (n <= 0)
|
|
12876
12876
|
return o;
|
|
12877
12877
|
n < 18 ? i = 1 : n < 48 ? i = 3 : n < 144 ? i = 4 : n < 768 ? i = 5 : i = 6;
|
|
12878
12878
|
var a = new Array(), c = 3, u = i - 1, l = (1 << i) - 1;
|
|
12879
12879
|
if (a[1] = s.convert(this), i > 1) {
|
|
12880
|
-
var d =
|
|
12880
|
+
var d = We();
|
|
12881
12881
|
for (s.sqrTo(a[1], d); c <= l; )
|
|
12882
|
-
a[c] =
|
|
12882
|
+
a[c] = We(), s.mulTo(d, a[c - 2], a[c]), c += 2;
|
|
12883
12883
|
}
|
|
12884
|
-
var p = r.t - 1, m, g = !0, v =
|
|
12885
|
-
for (n =
|
|
12884
|
+
var p = r.t - 1, m, g = !0, v = We(), _;
|
|
12885
|
+
for (n = Wa(r[p]) - 1; p >= 0; ) {
|
|
12886
12886
|
for (n >= u ? m = r[p] >> n - u & l : (m = (r[p] & (1 << n + 1) - 1) << u - n, p > 0 && (m |= r[p - 1] >> this.DB + n - u)), c = i; !(m & 1); )
|
|
12887
12887
|
m >>= 1, --c;
|
|
12888
12888
|
if ((n -= c) < 0 && (n += this.DB, --p), g)
|
|
@@ -12924,8 +12924,8 @@ B.prototype.subtract = P_;
|
|
|
12924
12924
|
B.prototype.multiply = k_;
|
|
12925
12925
|
B.prototype.divide = U_;
|
|
12926
12926
|
B.prototype.modPow = M_;
|
|
12927
|
-
B.ZERO =
|
|
12928
|
-
B.ONE =
|
|
12927
|
+
B.ZERO = Ya(0);
|
|
12928
|
+
B.ONE = Ya(1);
|
|
12929
12929
|
/*!
|
|
12930
12930
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
12931
12931
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -13065,14 +13065,14 @@ var Gs = /* @__PURE__ */ function(r) {
|
|
|
13065
13065
|
return e;
|
|
13066
13066
|
}(Dd);
|
|
13067
13067
|
function H_(r, e) {
|
|
13068
|
-
r.prototype = Object.create(e.prototype), r.prototype.constructor = r,
|
|
13068
|
+
r.prototype = Object.create(e.prototype), r.prototype.constructor = r, Ys(r, e);
|
|
13069
13069
|
}
|
|
13070
|
-
function
|
|
13071
|
-
return
|
|
13070
|
+
function Ys(r, e) {
|
|
13071
|
+
return Ys = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(n, i) {
|
|
13072
13072
|
return n.__proto__ = i, n;
|
|
13073
|
-
},
|
|
13073
|
+
}, Ys(r, e);
|
|
13074
13074
|
}
|
|
13075
|
-
var
|
|
13075
|
+
var Ws = /* @__PURE__ */ function(r) {
|
|
13076
13076
|
H_(e, r);
|
|
13077
13077
|
function e(t) {
|
|
13078
13078
|
var n = t === void 0 ? {} : t, i = n.IdToken;
|
|
@@ -13101,7 +13101,7 @@ var Js = /* @__PURE__ */ function() {
|
|
|
13101
13101
|
var G_ = "aws-amplify/" + K_, Rd = {
|
|
13102
13102
|
userAgent: G_,
|
|
13103
13103
|
isReactNative: typeof navigator != "undefined" && navigator.product === "ReactNative"
|
|
13104
|
-
},
|
|
13104
|
+
}, Y_ = function() {
|
|
13105
13105
|
return Rd.userAgent;
|
|
13106
13106
|
};
|
|
13107
13107
|
/*!
|
|
@@ -13136,12 +13136,12 @@ var Xs = /* @__PURE__ */ function() {
|
|
|
13136
13136
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
13137
13137
|
* SPDX-License-Identifier: Apache-2.0
|
|
13138
13138
|
*/
|
|
13139
|
-
var
|
|
13139
|
+
var W_ = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], J_ = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], wc = /* @__PURE__ */ function() {
|
|
13140
13140
|
function r() {
|
|
13141
13141
|
}
|
|
13142
13142
|
var e = r.prototype;
|
|
13143
13143
|
return e.getNowString = function() {
|
|
13144
|
-
var n = /* @__PURE__ */ new Date(), i = J_[n.getUTCDay()], o =
|
|
13144
|
+
var n = /* @__PURE__ */ new Date(), i = J_[n.getUTCDay()], o = W_[n.getUTCMonth()], s = n.getUTCDate(), a = n.getUTCHours();
|
|
13145
13145
|
a < 10 && (a = "0" + a);
|
|
13146
13146
|
var c = n.getUTCMinutes();
|
|
13147
13147
|
c < 10 && (c = "0" + c);
|
|
@@ -13265,9 +13265,9 @@ var Z_ = typeof navigator != "undefined", _c = Z_ ? Rd.isReactNative ? "react-na
|
|
|
13265
13265
|
P.update(k);
|
|
13266
13266
|
var M = P.digestSync(), z = ue.Buffer.from(M).toString("base64"), K = {};
|
|
13267
13267
|
K.USERNAME = o.username, K.PASSWORD_CLAIM_SECRET_BLOCK = E.SECRET_BLOCK, K.TIMESTAMP = U, K.PASSWORD_CLAIM_SIGNATURE = z, o.deviceKey != null && (K.DEVICE_KEY = o.deviceKey);
|
|
13268
|
-
var pe = function
|
|
13269
|
-
return o.client.request("RespondToAuthChallenge",
|
|
13270
|
-
return Ze && Ze.code === "ResourceNotFoundException" && Ze.message.toLowerCase().indexOf("device") !== -1 ? (K.DEVICE_KEY = null, o.deviceKey = null, o.randomPassword = null, o.deviceGroupKey = null, o.clearCachedDeviceKeyAndPassword(),
|
|
13268
|
+
var pe = function $e(xe, ut) {
|
|
13269
|
+
return o.client.request("RespondToAuthChallenge", xe, function(Ze, vt) {
|
|
13270
|
+
return Ze && Ze.code === "ResourceNotFoundException" && Ze.message.toLowerCase().indexOf("device") !== -1 ? (K.DEVICE_KEY = null, o.deviceKey = null, o.randomPassword = null, o.deviceGroupKey = null, o.clearCachedDeviceKeyAndPassword(), $e(xe, ut)) : ut(Ze, vt);
|
|
13271
13271
|
});
|
|
13272
13272
|
}, oe = {
|
|
13273
13273
|
ChallengeName: "PASSWORD_VERIFIER",
|
|
@@ -13276,8 +13276,8 @@ var Z_ = typeof navigator != "undefined", _c = Z_ ? Rd.isReactNative ? "react-na
|
|
|
13276
13276
|
Session: _.Session,
|
|
13277
13277
|
ClientMetadata: m
|
|
13278
13278
|
};
|
|
13279
|
-
o.getUserContextData() && (oe.UserContextData = o.getUserContextData()), pe(oe, function(
|
|
13280
|
-
return
|
|
13279
|
+
o.getUserContextData() && (oe.UserContextData = o.getUserContextData()), pe(oe, function($e, xe) {
|
|
13280
|
+
return $e ? i.onFailure($e) : o.authenticateUserInternal(xe, s, i);
|
|
13281
13281
|
});
|
|
13282
13282
|
});
|
|
13283
13283
|
});
|
|
@@ -13634,7 +13634,7 @@ var Z_ = typeof navigator != "undefined", _c = Z_ ? Rd.isReactNative ? "react-na
|
|
|
13634
13634
|
return n(null, this.signInUserSession);
|
|
13635
13635
|
var o = "CognitoIdentityServiceProvider." + this.pool.getClientId() + "." + this.username, s = o + ".idToken", a = o + ".accessToken", c = o + ".refreshToken", u = o + ".clockDrift";
|
|
13636
13636
|
if (this.storage.getItem(s)) {
|
|
13637
|
-
var l = new
|
|
13637
|
+
var l = new Ws({
|
|
13638
13638
|
IdToken: this.storage.getItem(s)
|
|
13639
13639
|
}), d = new Gs({
|
|
13640
13640
|
AccessToken: this.storage.getItem(a)
|
|
@@ -13698,7 +13698,7 @@ var Z_ = typeof navigator != "undefined", _c = Z_ ? Rd.isReactNative ? "react-na
|
|
|
13698
13698
|
var n = "CognitoIdentityServiceProvider." + this.pool.getClientId(), i = n + "." + this.username + ".idToken", o = n + "." + this.username + ".accessToken", s = n + "." + this.username + ".refreshToken", a = n + ".LastAuthUser", c = n + "." + this.username + ".clockDrift";
|
|
13699
13699
|
this.storage.removeItem(i), this.storage.removeItem(o), this.storage.removeItem(s), this.storage.removeItem(a), this.storage.removeItem(c);
|
|
13700
13700
|
}, e.getCognitoUserSession = function(n) {
|
|
13701
|
-
var i = new
|
|
13701
|
+
var i = new Ws(n), o = new Gs(n), s = new Js(n), a = {
|
|
13702
13702
|
IdToken: i,
|
|
13703
13703
|
AccessToken: o,
|
|
13704
13704
|
RefreshToken: s
|
|
@@ -13924,7 +13924,7 @@ var Z_ = typeof navigator != "undefined", _c = Z_ ? Rd.isReactNative ? "react-na
|
|
|
13924
13924
|
}(), Q_ = "auth";
|
|
13925
13925
|
function lr() {
|
|
13926
13926
|
}
|
|
13927
|
-
lr.prototype.userAgent =
|
|
13927
|
+
lr.prototype.userAgent = Y_();
|
|
13928
13928
|
var eS = function() {
|
|
13929
13929
|
lr.category = Q_;
|
|
13930
13930
|
}, Sc = function(e) {
|
|
@@ -13949,18 +13949,18 @@ function Qs(r) {
|
|
|
13949
13949
|
e.set(n, i);
|
|
13950
13950
|
}
|
|
13951
13951
|
function i() {
|
|
13952
|
-
return
|
|
13952
|
+
return Yi(n, arguments, ea(this).constructor);
|
|
13953
13953
|
}
|
|
13954
13954
|
return i.prototype = Object.create(n.prototype, { constructor: { value: i, enumerable: !1, writable: !0, configurable: !0 } }), oi(i, n);
|
|
13955
13955
|
}, Qs(r);
|
|
13956
13956
|
}
|
|
13957
|
-
function
|
|
13958
|
-
return nS() ?
|
|
13957
|
+
function Yi(r, e, t) {
|
|
13958
|
+
return nS() ? Yi = Reflect.construct.bind() : Yi = function(i, o, s) {
|
|
13959
13959
|
var a = [null];
|
|
13960
13960
|
a.push.apply(a, o);
|
|
13961
13961
|
var c = Function.bind.apply(i, a), u = new c();
|
|
13962
13962
|
return s && oi(u, s.prototype), u;
|
|
13963
|
-
},
|
|
13963
|
+
}, Yi.apply(null, arguments);
|
|
13964
13964
|
}
|
|
13965
13965
|
function nS() {
|
|
13966
13966
|
if (typeof Reflect == "undefined" || !Reflect.construct || Reflect.construct.sham)
|
|
@@ -14327,13 +14327,13 @@ go.exports;
|
|
|
14327
14327
|
ce = $.charCodeAt(j++), ce >= 55296 && ce <= 56319 && j < se ? (Re = $.charCodeAt(j++), (Re & 64512) == 56320 ? L.push(((ce & 1023) << 10) + (Re & 1023) + 65536) : (L.push(ce), j--)) : L.push(ce);
|
|
14328
14328
|
return L;
|
|
14329
14329
|
}
|
|
14330
|
-
function
|
|
14330
|
+
function $e($) {
|
|
14331
14331
|
return K($, function(L) {
|
|
14332
14332
|
var j = "";
|
|
14333
14333
|
return L > 65535 && (L -= 65536, j += P(L >>> 10 & 1023 | 55296), L = 56320 | L & 1023), j += P(L), j;
|
|
14334
14334
|
}).join("");
|
|
14335
14335
|
}
|
|
14336
|
-
function
|
|
14336
|
+
function xe($) {
|
|
14337
14337
|
return $ - 48 < 10 ? $ - 22 : $ - 65 < 26 ? $ - 65 : $ - 97 < 26 ? $ - 97 : c;
|
|
14338
14338
|
}
|
|
14339
14339
|
function ut($, L) {
|
|
@@ -14346,25 +14346,25 @@ go.exports;
|
|
|
14346
14346
|
return k(se + (U + 1) * $ / ($ + d));
|
|
14347
14347
|
}
|
|
14348
14348
|
function vt($) {
|
|
14349
|
-
var L = [], j = $.length, se, ce = 0, Re = g,
|
|
14350
|
-
for (
|
|
14349
|
+
var L = [], j = $.length, se, ce = 0, Re = g, Ce = m, Me, rt, ct, bt, Oe, ke, nt, At, It;
|
|
14350
|
+
for (Me = $.lastIndexOf(v), Me < 0 && (Me = 0), rt = 0; rt < Me; ++rt)
|
|
14351
14351
|
$.charCodeAt(rt) >= 128 && z("not-basic"), L.push($.charCodeAt(rt));
|
|
14352
|
-
for (ct =
|
|
14353
|
-
for (bt = ce, Oe = 1, ke = c; ct >= j && z("invalid-input"), nt =
|
|
14352
|
+
for (ct = Me > 0 ? Me + 1 : 0; ct < j; ) {
|
|
14353
|
+
for (bt = ce, Oe = 1, ke = c; ct >= j && z("invalid-input"), nt = xe($.charCodeAt(ct++)), (nt >= c || nt > k((a - ce) / Oe)) && z("overflow"), ce += nt * Oe, At = ke <= Ce ? u : ke >= Ce + l ? l : ke - Ce, !(nt < At); ke += c)
|
|
14354
14354
|
It = c - At, Oe > k(a / It) && z("overflow"), Oe *= It;
|
|
14355
|
-
se = L.length + 1,
|
|
14355
|
+
se = L.length + 1, Ce = Ze(ce - bt, se, bt == 0), k(ce / se) > a - Re && z("overflow"), Re += k(ce / se), ce %= se, L.splice(ce++, 0, Re);
|
|
14356
14356
|
}
|
|
14357
|
-
return
|
|
14357
|
+
return $e(L);
|
|
14358
14358
|
}
|
|
14359
14359
|
function Qr($) {
|
|
14360
|
-
var L, j, se, ce, Re,
|
|
14361
|
-
for ($ = oe($), nt = $.length, L = g, j = 0, Re = m,
|
|
14362
|
-
Oe = $[
|
|
14360
|
+
var L, j, se, ce, Re, Ce, Me, rt, ct, bt, Oe, ke = [], nt, At, It, rr;
|
|
14361
|
+
for ($ = oe($), nt = $.length, L = g, j = 0, Re = m, Ce = 0; Ce < nt; ++Ce)
|
|
14362
|
+
Oe = $[Ce], Oe < 128 && ke.push(P(Oe));
|
|
14363
14363
|
for (se = ce = ke.length, ce && ke.push(v); se < nt; ) {
|
|
14364
|
-
for (
|
|
14365
|
-
Oe = $[
|
|
14366
|
-
for (At = se + 1,
|
|
14367
|
-
if (Oe = $[
|
|
14364
|
+
for (Me = a, Ce = 0; Ce < nt; ++Ce)
|
|
14365
|
+
Oe = $[Ce], Oe >= L && Oe < Me && (Me = Oe);
|
|
14366
|
+
for (At = se + 1, Me - L > k((a - j) / At) && z("overflow"), j += (Me - L) * At, L = Me, Ce = 0; Ce < nt; ++Ce)
|
|
14367
|
+
if (Oe = $[Ce], Oe < L && ++j > a && z("overflow"), Oe == L) {
|
|
14368
14368
|
for (rt = j, ct = c; bt = ct <= Re ? u : ct >= Re + l ? l : ct - Re, !(rt < bt); ct += c)
|
|
14369
14369
|
rr = rt - bt, It = c - bt, ke.push(
|
|
14370
14370
|
P(ut(bt + rr % It, 0))
|
|
@@ -14401,7 +14401,7 @@ go.exports;
|
|
|
14401
14401
|
*/
|
|
14402
14402
|
ucs2: {
|
|
14403
14403
|
decode: oe,
|
|
14404
|
-
encode:
|
|
14404
|
+
encode: $e
|
|
14405
14405
|
},
|
|
14406
14406
|
decode: vt,
|
|
14407
14407
|
encode: Qr,
|
|
@@ -14548,15 +14548,15 @@ qt.prototype.parse = function(r, e, t) {
|
|
|
14548
14548
|
}
|
|
14549
14549
|
}
|
|
14550
14550
|
this.hostname.length > CS ? this.hostname = "" : this.hostname = this.hostname.toLowerCase(), E || (this.hostname = bS.toASCII(this.hostname));
|
|
14551
|
-
var oe = this.port ? ":" + this.port : "",
|
|
14552
|
-
this.host =
|
|
14551
|
+
var oe = this.port ? ":" + this.port : "", $e = this.hostname || "";
|
|
14552
|
+
this.host = $e + oe, this.href += this.host, E && (this.hostname = this.hostname.substr(1, this.hostname.length - 2), a[0] !== "/" && (a = "/" + a));
|
|
14553
14553
|
}
|
|
14554
14554
|
if (!AS[l])
|
|
14555
14555
|
for (var m = 0, R = ta.length; m < R; m++) {
|
|
14556
|
-
var
|
|
14557
|
-
if (a.indexOf(
|
|
14558
|
-
var ut = encodeURIComponent(
|
|
14559
|
-
ut ===
|
|
14556
|
+
var xe = ta[m];
|
|
14557
|
+
if (a.indexOf(xe) !== -1) {
|
|
14558
|
+
var ut = encodeURIComponent(xe);
|
|
14559
|
+
ut === xe && (ut = escape(xe)), a = a.split(xe).join(ut);
|
|
14560
14560
|
}
|
|
14561
14561
|
}
|
|
14562
14562
|
var Ze = a.indexOf("#");
|
|
@@ -14939,7 +14939,7 @@ var FS = new Tt("AuthError"), or = (
|
|
|
14939
14939
|
default: {
|
|
14940
14940
|
message: Ue.DEFAULT_MSG
|
|
14941
14941
|
}
|
|
14942
|
-
}, D = new Tt("AuthClass"), Tc = "aws.cognito.signin.user.admin", zS = 10 * 1e3, jS = typeof Symbol != "undefined" && typeof Symbol.for == "function" ? Symbol.for("amplify_default") : "@@amplify_default",
|
|
14942
|
+
}, D = new Tt("AuthClass"), Tc = "aws.cognito.signin.user.admin", zS = 10 * 1e3, jS = typeof Symbol != "undefined" && typeof Symbol.for == "function" ? Symbol.for("amplify_default") : "@@amplify_default", W = function(r, e, t) {
|
|
14943
14943
|
Mt.dispatch("auth", { event: r, data: e, message: t }, "Auth", jS);
|
|
14944
14944
|
}, VS = 60, qS = 3 * 60 * 1e3, HS = (
|
|
14945
14945
|
/** @class */
|
|
@@ -14948,7 +14948,7 @@ var FS = new Tt("AuthError"), or = (
|
|
|
14948
14948
|
var t = this;
|
|
14949
14949
|
this.userPool = null, this.user = null, this.oAuthFlowInProgress = !1, this.autoSignInInitiated = !1, this.inflightSessionPromise = null, this.inflightSessionPromiseCounter = 0, this.Credentials = Cd, this.wrapRefreshSessionCallback = function(n) {
|
|
14950
14950
|
var i = function(o, s) {
|
|
14951
|
-
return s ?
|
|
14951
|
+
return s ? W("tokenRefresh", void 0, "New token retrieved") : W("tokenRefresh_failure", o, "Failed to retrieve new token"), n(o, s);
|
|
14952
14952
|
};
|
|
14953
14953
|
return i;
|
|
14954
14954
|
}, this.configure(e), this.currentCredentials = this.currentCredentials.bind(this), this.currentUserCredentials = this.currentUserCredentials.bind(this), Mt.listen("auth", function(n) {
|
|
@@ -15028,9 +15028,9 @@ var FS = new Tt("AuthError"), or = (
|
|
|
15028
15028
|
U[M] || (U[M] = !0, t._handleAuthResponse(M));
|
|
15029
15029
|
});
|
|
15030
15030
|
}
|
|
15031
|
-
if (
|
|
15031
|
+
if (W("configured", null, "The Auth category has been configured successfully"), !this.autoSignInInitiated && typeof this._storage.getItem == "function") {
|
|
15032
15032
|
var k = this.isTrueStorageValue("amplify-polling-started");
|
|
15033
|
-
k && (
|
|
15033
|
+
k && (W("autoSignIn_failure", null, re.AutoSignInError), this._storage.removeItem("amplify-auto-sign-in")), this._storage.removeItem("amplify-polling-started");
|
|
15034
15034
|
}
|
|
15035
15035
|
return this._config;
|
|
15036
15036
|
}, r.prototype.signUp = function(e) {
|
|
@@ -15064,7 +15064,7 @@ var FS = new Tt("AuthError"), or = (
|
|
|
15064
15064
|
return this.rejectAuthError(re.SignUpError);
|
|
15065
15065
|
return c ? u ? (D.debug("signUp attrs:", l), D.debug("signUp validation data:", d), new Promise(function(U, k) {
|
|
15066
15066
|
t.userPool.signUp(c, u, l, d, function(P, M) {
|
|
15067
|
-
P ? (
|
|
15067
|
+
P ? (W("signUp_failure", P, c + " failed to signup"), k(P)) : (W("signUp", M, c + " has signed up successfully"), m.enabled && t.handleAutoSignIn(c, u, g, v, M), U(M));
|
|
15068
15068
|
}, p);
|
|
15069
15069
|
})) : this.rejectAuthError(re.EmptyPassword) : this.rejectAuthError(re.EmptyUsername);
|
|
15070
15070
|
}, r.prototype.handleAutoSignIn = function(e, t, n, i, o) {
|
|
@@ -15086,7 +15086,7 @@ var FS = new Tt("AuthError"), or = (
|
|
|
15086
15086
|
var t = this;
|
|
15087
15087
|
this._storage.setItem("amplify-polling-started", "true");
|
|
15088
15088
|
var n = Date.now(), i = setInterval(function() {
|
|
15089
|
-
Date.now() - n > qS ? (clearInterval(i),
|
|
15089
|
+
Date.now() - n > qS ? (clearInterval(i), W("autoSignIn_failure", null, "Please confirm your account and use your credentials to sign in."), t._storage.removeItem("amplify-auto-sign-in")) : t.signInAfterUserConfirmed(e, null, i);
|
|
15090
15090
|
}, 5e3);
|
|
15091
15091
|
}, r.prototype.signInAfterUserConfirmed = function(e, t, n) {
|
|
15092
15092
|
return ee(this, void 0, void 0, function() {
|
|
@@ -15097,7 +15097,7 @@ var FS = new Tt("AuthError"), or = (
|
|
|
15097
15097
|
i = this.createCognitoUser(e.getUsername()), a.label = 1;
|
|
15098
15098
|
case 1:
|
|
15099
15099
|
return a.trys.push([1, 3, , 4]), [4, i.authenticateUser(e, this.authCallbacks(i, function(c) {
|
|
15100
|
-
|
|
15100
|
+
W("autoSignIn", c, e.getUsername() + " has signed in successfully"), t && Mt.remove("auth", t), n && (clearInterval(n), s._storage.removeItem("amplify-polling-started")), s._storage.removeItem("amplify-auto-sign-in");
|
|
15101
15101
|
}, function(c) {
|
|
15102
15102
|
D.error(c), s._storage.removeItem("amplify-auto-sign-in");
|
|
15103
15103
|
}))];
|
|
@@ -15127,9 +15127,9 @@ var FS = new Tt("AuthError"), or = (
|
|
|
15127
15127
|
if (l)
|
|
15128
15128
|
u(l);
|
|
15129
15129
|
else {
|
|
15130
|
-
|
|
15130
|
+
W("confirmSignUp", d, e + " has been confirmed successfully");
|
|
15131
15131
|
var p = i.isTrueStorageValue("amplify-auto-sign-in");
|
|
15132
|
-
p && !i.autoSignInInitiated && (
|
|
15132
|
+
p && !i.autoSignInInitiated && (W("autoSignIn_failure", null, re.AutoSignInError), i._storage.removeItem("amplify-auto-sign-in")), c(d);
|
|
15133
15133
|
}
|
|
15134
15134
|
}, a);
|
|
15135
15135
|
});
|
|
@@ -15187,7 +15187,7 @@ var FS = new Tt("AuthError"), or = (
|
|
|
15187
15187
|
case 5:
|
|
15188
15188
|
return d.trys.push([5, 7, , 8]), [4, this.currentUserPoolUser()];
|
|
15189
15189
|
case 6:
|
|
15190
|
-
return u = d.sent(), o.user = u,
|
|
15190
|
+
return u = d.sent(), o.user = u, W("signIn", u, "A user " + e.getUsername() + " has been signed in"), t(u), [3, 8];
|
|
15191
15191
|
case 7:
|
|
15192
15192
|
return l = d.sent(), D.error("Failed to get the signed in user", l), n(l), [3, 8];
|
|
15193
15193
|
case 8:
|
|
@@ -15205,7 +15205,7 @@ var FS = new Tt("AuthError"), or = (
|
|
|
15205
15205
|
});
|
|
15206
15206
|
},
|
|
15207
15207
|
onFailure: function(s) {
|
|
15208
|
-
D.debug("signIn failure", s),
|
|
15208
|
+
D.debug("signIn failure", s), W("signIn_failure", s, e.getUsername() + " failed to signin"), n(s);
|
|
15209
15209
|
},
|
|
15210
15210
|
customChallenge: function(s) {
|
|
15211
15211
|
D.debug("signIn custom challenge answer required"), e.challengeName = "CUSTOM_CHALLENGE", e.challengeParam = s, t(e);
|
|
@@ -15497,7 +15497,7 @@ var FS = new Tt("AuthError"), or = (
|
|
|
15497
15497
|
D.debug("verifyTotpToken failed", a), s(a);
|
|
15498
15498
|
},
|
|
15499
15499
|
onSuccess: function(a) {
|
|
15500
|
-
i ||
|
|
15500
|
+
i || W("signIn", e, "A user " + e.getUsername() + " has been signed in"), W("verify", e, "A user " + e.getUsername() + " has been verified"), D.debug("verifyTotpToken success", a), o(a);
|
|
15501
15501
|
}
|
|
15502
15502
|
});
|
|
15503
15503
|
});
|
|
@@ -15532,7 +15532,7 @@ var FS = new Tt("AuthError"), or = (
|
|
|
15532
15532
|
case 8:
|
|
15533
15533
|
return m = g.sent(), D.debug("cannot get updated Cognito User", m), [3, 9];
|
|
15534
15534
|
case 9:
|
|
15535
|
-
return
|
|
15535
|
+
return W("signIn", e, "A user " + e.getUsername() + " has been signed in"), a(e), [
|
|
15536
15536
|
7
|
|
15537
15537
|
/*endfinally*/
|
|
15538
15538
|
];
|
|
@@ -15573,7 +15573,7 @@ var FS = new Tt("AuthError"), or = (
|
|
|
15573
15573
|
case 4:
|
|
15574
15574
|
return d = p.sent(), D.debug("cannot get cognito credentials", d), [3, 6];
|
|
15575
15575
|
case 5:
|
|
15576
|
-
return s.user = e,
|
|
15576
|
+
return s.user = e, W("signIn", e, "A user " + e.getUsername() + " has been signed in"), a(e), [
|
|
15577
15577
|
7
|
|
15578
15578
|
/*endfinally*/
|
|
15579
15579
|
];
|
|
@@ -15587,7 +15587,7 @@ var FS = new Tt("AuthError"), or = (
|
|
|
15587
15587
|
});
|
|
15588
15588
|
},
|
|
15589
15589
|
onFailure: function(u) {
|
|
15590
|
-
D.debug("completeNewPassword failure", u),
|
|
15590
|
+
D.debug("completeNewPassword failure", u), W("completeNewPassword_failure", u, o.user + " failed to complete the new password flow"), c(u);
|
|
15591
15591
|
},
|
|
15592
15592
|
mfaRequired: function(u, l) {
|
|
15593
15593
|
D.debug("signIn MFA required"), e.challengeName = u, e.challengeParam = l, a(e);
|
|
@@ -15659,13 +15659,13 @@ var FS = new Tt("AuthError"), or = (
|
|
|
15659
15659
|
if (v)
|
|
15660
15660
|
s(v);
|
|
15661
15661
|
else {
|
|
15662
|
-
|
|
15662
|
+
W("userDeleted", _, "The authenticated user has been deleted."), a.signOut(), m.user = null;
|
|
15663
15663
|
try {
|
|
15664
15664
|
m.cleanCachedItems();
|
|
15665
15665
|
} catch (E) {
|
|
15666
15666
|
D.debug("failed to clear cached items");
|
|
15667
15667
|
}
|
|
15668
|
-
t ? m.oAuthSignOutRedirect(o, s) : (
|
|
15668
|
+
t ? m.oAuthSignOutRedirect(o, s) : (W("signOut", m.user, "A user has been signed out"), o(_));
|
|
15669
15669
|
}
|
|
15670
15670
|
}), g.label = 6;
|
|
15671
15671
|
case 6:
|
|
@@ -15707,9 +15707,9 @@ var FS = new Tt("AuthError"), or = (
|
|
|
15707
15707
|
}
|
|
15708
15708
|
e.updateAttributes(o, function(p, m, g) {
|
|
15709
15709
|
if (p)
|
|
15710
|
-
return
|
|
15710
|
+
return W("updateUserAttributes_failure", p, "Failed to update attributes"), c(p);
|
|
15711
15711
|
var v = i.createUpdateAttributesResultList(t, g == null ? void 0 : g.CodeDeliveryDetailsList);
|
|
15712
|
-
return
|
|
15712
|
+
return W("updateUserAttributes", v, "Attributes successfully updated"), a(m);
|
|
15713
15713
|
}, n);
|
|
15714
15714
|
});
|
|
15715
15715
|
});
|
|
@@ -15776,7 +15776,7 @@ var FS = new Tt("AuthError"), or = (
|
|
|
15776
15776
|
case 4:
|
|
15777
15777
|
return this.isSignedInHostedUI() ? [2, new Promise(function(i, o) {
|
|
15778
15778
|
t.oAuthSignOutRedirect(i, o);
|
|
15779
|
-
})] : (
|
|
15779
|
+
})] : (W("signOut", this.user, "A user has been signed out"), [
|
|
15780
15780
|
2
|
|
15781
15781
|
/*return*/
|
|
15782
15782
|
]);
|
|
@@ -16148,7 +16148,7 @@ var FS = new Tt("AuthError"), or = (
|
|
|
16148
16148
|
case 7:
|
|
16149
16149
|
D.debug("no Cognito User pool"), n.label = 8;
|
|
16150
16150
|
case 8:
|
|
16151
|
-
return
|
|
16151
|
+
return W("signOut", this.user, "A user has been signed out"), this.user = null, [
|
|
16152
16152
|
2
|
|
16153
16153
|
/*return*/
|
|
16154
16154
|
];
|
|
@@ -16190,10 +16190,10 @@ var FS = new Tt("AuthError"), or = (
|
|
|
16190
16190
|
i();
|
|
16191
16191
|
},
|
|
16192
16192
|
onFailure: function(s) {
|
|
16193
|
-
D.debug("forgot password failure", s),
|
|
16193
|
+
D.debug("forgot password failure", s), W("forgotPassword_failure", s, e + " forgotPassword failed"), o(s);
|
|
16194
16194
|
},
|
|
16195
16195
|
inputVerificationCode: function(s) {
|
|
16196
|
-
|
|
16196
|
+
W("forgotPassword", n, e + " has initiated forgot password flow"), i(s);
|
|
16197
16197
|
}
|
|
16198
16198
|
}, t);
|
|
16199
16199
|
});
|
|
@@ -16210,10 +16210,10 @@ var FS = new Tt("AuthError"), or = (
|
|
|
16210
16210
|
return new Promise(function(s, a) {
|
|
16211
16211
|
o.confirmPassword(t, n, {
|
|
16212
16212
|
onSuccess: function(c) {
|
|
16213
|
-
|
|
16213
|
+
W("forgotPasswordSubmit", o, e + " forgotPasswordSubmit successful"), s(c);
|
|
16214
16214
|
},
|
|
16215
16215
|
onFailure: function(c) {
|
|
16216
|
-
|
|
16216
|
+
W("forgotPasswordSubmit_failure", c, e + " forgotPasswordSubmit failed"), a(c);
|
|
16217
16217
|
}
|
|
16218
16218
|
}, i);
|
|
16219
16219
|
});
|
|
@@ -16280,7 +16280,7 @@ var FS = new Tt("AuthError"), or = (
|
|
|
16280
16280
|
case 2:
|
|
16281
16281
|
return m = v.sent(), [4, this.currentAuthenticatedUser()];
|
|
16282
16282
|
case 3:
|
|
16283
|
-
return g = v.sent(),
|
|
16283
|
+
return g = v.sent(), W("signIn", g, "A user " + g.username + " has been signed in"), D.debug("federated sign in credentials", m), [2, m];
|
|
16284
16284
|
case 4:
|
|
16285
16285
|
return [
|
|
16286
16286
|
2
|
|
@@ -16304,7 +16304,7 @@ var FS = new Tt("AuthError"), or = (
|
|
|
16304
16304
|
case 1:
|
|
16305
16305
|
if (_.trys.push([1, , 8, 9]), this.oAuthFlowInProgress = !0, !this._config.userPoolId)
|
|
16306
16306
|
throw new Error("OAuth responses require a User Pool defined in config");
|
|
16307
|
-
if (
|
|
16307
|
+
if (W("parsingCallbackUrl", { url: e }, "The callback url is being parsed"), t = e || (Gt().isBrowser ? window.location.href : ""), n = !!(cr(t).query || "").split("&").map(function(E) {
|
|
16308
16308
|
return E.split("=");
|
|
16309
16309
|
}).find(function(E) {
|
|
16310
16310
|
var x = $t(E, 1), R = x[0];
|
|
@@ -16321,7 +16321,7 @@ var FS = new Tt("AuthError"), or = (
|
|
|
16321
16321
|
return _.trys.push([2, 6, , 7]), [4, this._oAuthHandler.handleAuthResponse(t)];
|
|
16322
16322
|
case 3:
|
|
16323
16323
|
return o = _.sent(), s = o.accessToken, a = o.idToken, c = o.refreshToken, u = o.state, l = new Xs({
|
|
16324
|
-
IdToken: new
|
|
16324
|
+
IdToken: new Ws({ IdToken: a }),
|
|
16325
16325
|
RefreshToken: new Js({
|
|
16326
16326
|
RefreshToken: c
|
|
16327
16327
|
}),
|
|
@@ -16332,9 +16332,9 @@ var FS = new Tt("AuthError"), or = (
|
|
|
16332
16332
|
case 4:
|
|
16333
16333
|
d = _.sent(), D.debug("AWS credentials", d), _.label = 5;
|
|
16334
16334
|
case 5:
|
|
16335
|
-
return p = /-/.test(u), m = this.createCognitoUser(l.getIdToken().decodePayload()["cognito:username"]), m.setSignInUserSession(l), window && typeof window.history != "undefined" && window.history.replaceState(window.history.state, "", this._config.oauth.redirectSignIn),
|
|
16335
|
+
return p = /-/.test(u), m = this.createCognitoUser(l.getIdToken().decodePayload()["cognito:username"]), m.setSignInUserSession(l), window && typeof window.history != "undefined" && window.history.replaceState(window.history.state, "", this._config.oauth.redirectSignIn), W("signIn", m, "A user " + m.getUsername() + " has been signed in"), W("cognitoHostedUI", m, "A user " + m.getUsername() + " has been signed in via Cognito Hosted UI"), p && (g = u.split("-").splice(1).join("-"), W("customOAuthState", rb(g), "State for user " + m.getUsername())), [2, d];
|
|
16336
16336
|
case 6:
|
|
16337
|
-
return v = _.sent(), D.debug("Error in cognito hosted auth response", v), window && typeof window.history != "undefined" && window.history.replaceState(window.history.state, "", this._config.oauth.redirectSignIn),
|
|
16337
|
+
return v = _.sent(), D.debug("Error in cognito hosted auth response", v), window && typeof window.history != "undefined" && window.history.replaceState(window.history.state, "", this._config.oauth.redirectSignIn), W("signIn_failure", v, "The OAuth response flow failed"), W("cognitoHostedUI_failure", v, "A failure occurred when returning to the Cognito Hosted UI"), W("customState_failure", v, "A failure occurred when returning state"), [3, 7];
|
|
16338
16338
|
case 7:
|
|
16339
16339
|
return [3, 9];
|
|
16340
16340
|
case 8:
|
|
@@ -16570,8 +16570,8 @@ const hr = new KS(), Ld = (r) => {
|
|
|
16570
16570
|
const t = e.slice(0, -1).join(" "), n = e[e.length - 1];
|
|
16571
16571
|
return { firstName: t, lastName: n };
|
|
16572
16572
|
}, oa = (r) => r.replace(/\s/g, "").replace(/\D/g, "").replace(/(\d{4})/g, "$1 ").trim(), sa = (r = "", e = "") => `${r} ${e}`.trim();
|
|
16573
|
-
var GS = Object.defineProperty,
|
|
16574
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
16573
|
+
var GS = Object.defineProperty, YS = Object.getOwnPropertyDescriptor, er = (r, e, t, n) => {
|
|
16574
|
+
for (var i = n > 1 ? void 0 : n ? YS(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
16575
16575
|
(s = r[o]) && (i = (n ? s(e, t, i) : s(i)) || i);
|
|
16576
16576
|
return n && i && GS(e, t, i), i;
|
|
16577
16577
|
};
|
|
@@ -16591,7 +16591,7 @@ let St = class extends Z {
|
|
|
16591
16591
|
o.length === 16 ? this.shouldValidateBin ? yield ba(o.slice(0, 6)).then((a) => {
|
|
16592
16592
|
this.validCredit = a.response.data.bines, this.validCredit && this.validCredit.brand === "NARANJA" ? (this.isError = !1, this.isBrand = !0, this.isTouched = !0) : (this.isTouched = !0, this.isBrand = !1, this.isError = !0);
|
|
16593
16593
|
}).catch((a) => {
|
|
16594
|
-
|
|
16594
|
+
Wn("HANDLE-INPUT-ERROR", a), console.log("handleInput", a), this.serviceError();
|
|
16595
16595
|
}) : (this.isBrand = !0, this.isTouched = !0) : this.isError = !1;
|
|
16596
16596
|
const s = new CustomEvent("onChange", {
|
|
16597
16597
|
bubbles: !0,
|
|
@@ -16675,10 +16675,10 @@ er([
|
|
|
16675
16675
|
St = er([
|
|
16676
16676
|
Q("input-credit-card")
|
|
16677
16677
|
], St);
|
|
16678
|
-
var
|
|
16678
|
+
var WS = Object.defineProperty, JS = Object.getOwnPropertyDescriptor, Tr = (r, e, t, n) => {
|
|
16679
16679
|
for (var i = n > 1 ? void 0 : n ? JS(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
16680
16680
|
(s = r[o]) && (i = (n ? s(e, t, i) : s(i)) || i);
|
|
16681
|
-
return n && i &&
|
|
16681
|
+
return n && i && WS(e, t, i), i;
|
|
16682
16682
|
};
|
|
16683
16683
|
let Ut = class extends Z {
|
|
16684
16684
|
constructor() {
|
|
@@ -16770,7 +16770,7 @@ var XS = Object.defineProperty, ZS = Object.getOwnPropertyDescriptor, Gr = (r, e
|
|
|
16770
16770
|
(s = r[o]) && (i = (n ? s(e, t, i) : s(i)) || i);
|
|
16771
16771
|
return n && i && XS(e, t, i), i;
|
|
16772
16772
|
};
|
|
16773
|
-
let
|
|
16773
|
+
let Yt = class extends Z {
|
|
16774
16774
|
constructor() {
|
|
16775
16775
|
super(...arguments), this.email = "", this.isTouched = !1, this.isError = !1, this.formSubmitted = !1, this.label = "Email", this.placeholder = C``;
|
|
16776
16776
|
}
|
|
@@ -16815,30 +16815,30 @@ let Wt = class extends Z {
|
|
|
16815
16815
|
`;
|
|
16816
16816
|
}
|
|
16817
16817
|
};
|
|
16818
|
-
|
|
16818
|
+
Yt.styles = ne`
|
|
16819
16819
|
${ie(xr)}
|
|
16820
16820
|
`;
|
|
16821
16821
|
Gr([
|
|
16822
16822
|
w({ type: String })
|
|
16823
|
-
],
|
|
16823
|
+
], Yt.prototype, "email", 2);
|
|
16824
16824
|
Gr([
|
|
16825
16825
|
w({ type: Boolean })
|
|
16826
|
-
],
|
|
16826
|
+
], Yt.prototype, "isTouched", 2);
|
|
16827
16827
|
Gr([
|
|
16828
16828
|
w({ type: Boolean })
|
|
16829
|
-
],
|
|
16829
|
+
], Yt.prototype, "isError", 2);
|
|
16830
16830
|
Gr([
|
|
16831
16831
|
w({ type: Boolean })
|
|
16832
|
-
],
|
|
16832
|
+
], Yt.prototype, "formSubmitted", 2);
|
|
16833
16833
|
Gr([
|
|
16834
16834
|
w({ type: String })
|
|
16835
|
-
],
|
|
16835
|
+
], Yt.prototype, "label", 2);
|
|
16836
16836
|
Gr([
|
|
16837
16837
|
w({ type: String })
|
|
16838
|
-
],
|
|
16839
|
-
|
|
16838
|
+
], Yt.prototype, "placeholder", 2);
|
|
16839
|
+
Yt = Gr([
|
|
16840
16840
|
Q("input-email")
|
|
16841
|
-
],
|
|
16841
|
+
], Yt);
|
|
16842
16842
|
const Ja = (r) => {
|
|
16843
16843
|
if (!/^(0[1-9]|1[0-2])\/\d{2}$/.test(r))
|
|
16844
16844
|
return !1;
|
|
@@ -16938,12 +16938,12 @@ Pn([
|
|
|
16938
16938
|
vr = Pn([
|
|
16939
16939
|
Q("input-expired")
|
|
16940
16940
|
], vr);
|
|
16941
|
-
var rx = Object.defineProperty, nx = Object.getOwnPropertyDescriptor,
|
|
16941
|
+
var rx = Object.defineProperty, nx = Object.getOwnPropertyDescriptor, Yr = (r, e, t, n) => {
|
|
16942
16942
|
for (var i = n > 1 ? void 0 : n ? nx(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
16943
16943
|
(s = r[o]) && (i = (n ? s(e, t, i) : s(i)) || i);
|
|
16944
16944
|
return n && i && rx(e, t, i), i;
|
|
16945
16945
|
};
|
|
16946
|
-
let
|
|
16946
|
+
let Wt = class extends Z {
|
|
16947
16947
|
constructor() {
|
|
16948
16948
|
super(...arguments), this.name = "", this.isTouched = !1, this.isError = !1, this.formSubmitted = !1, this.label = "Nombre completo", this.placeholder = "Tal como está impreso en la tarjeta";
|
|
16949
16949
|
}
|
|
@@ -16992,7 +16992,7 @@ let Yt = class extends Z {
|
|
|
16992
16992
|
`;
|
|
16993
16993
|
}
|
|
16994
16994
|
};
|
|
16995
|
-
|
|
16995
|
+
Wt.styles = ne`
|
|
16996
16996
|
.errorBin {
|
|
16997
16997
|
color: red;
|
|
16998
16998
|
padding: 5px;
|
|
@@ -17010,27 +17010,27 @@ Yt.styles = ne`
|
|
|
17010
17010
|
}
|
|
17011
17011
|
${ie(xr)}
|
|
17012
17012
|
`;
|
|
17013
|
-
|
|
17013
|
+
Yr([
|
|
17014
17014
|
w({ type: String })
|
|
17015
|
-
],
|
|
17016
|
-
|
|
17015
|
+
], Wt.prototype, "name", 2);
|
|
17016
|
+
Yr([
|
|
17017
17017
|
w({ type: Boolean })
|
|
17018
|
-
],
|
|
17019
|
-
|
|
17018
|
+
], Wt.prototype, "isTouched", 2);
|
|
17019
|
+
Yr([
|
|
17020
17020
|
w({ type: Boolean })
|
|
17021
|
-
],
|
|
17022
|
-
|
|
17021
|
+
], Wt.prototype, "isError", 2);
|
|
17022
|
+
Yr([
|
|
17023
17023
|
w({ type: Boolean })
|
|
17024
|
-
],
|
|
17025
|
-
|
|
17024
|
+
], Wt.prototype, "formSubmitted", 2);
|
|
17025
|
+
Yr([
|
|
17026
17026
|
w({ type: String })
|
|
17027
|
-
],
|
|
17028
|
-
|
|
17027
|
+
], Wt.prototype, "label", 2);
|
|
17028
|
+
Yr([
|
|
17029
17029
|
w({ type: String })
|
|
17030
|
-
],
|
|
17031
|
-
|
|
17030
|
+
], Wt.prototype, "placeholder", 2);
|
|
17031
|
+
Wt = Yr([
|
|
17032
17032
|
Q("input-name")
|
|
17033
|
-
],
|
|
17033
|
+
], Wt);
|
|
17034
17034
|
var ix = Object.defineProperty, ox = Object.getOwnPropertyDescriptor, kn = (r, e, t, n) => {
|
|
17035
17035
|
for (var i = n > 1 ? void 0 : n ? ox(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
17036
17036
|
(s = r[o]) && (i = (n ? s(e, t, i) : s(i)) || i);
|
|
@@ -17187,7 +17187,7 @@ Sn = Lo([
|
|
|
17187
17187
|
], Sn);
|
|
17188
17188
|
const ux = `/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}form{margin:inherit}.clickeable{cursor:pointer}*{user-select:none}.card__image{align-items:center;display:flex;gap:16px;padding-top:24px}.card__description{align-items:center;display:flex;justify-content:space-between}.card__payment{background:#ffffff;border:1px solid #e5e7eb;border-radius:16px;padding:0 24px 24px}.card__hr{border:.5px solid #6a6a6a}.card__purchase-detail{color:#2b2b2b;font-family:Inter,Arial,"sans-serif";font-size:16px;font-weight:600;padding-top:6px;margin:0}.card__description-text{color:#6a6a6a;font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:400}.card__amount{color:#6a6a6a;font-family:Inter,Arial,"sans-serif";font-size:16px;font-weight:600}@media only screen and (max-width: 800px){.card__payment{background:#ffffff;border:1px solid #e5e7eb;border-radius:16px;margin-left:8px;margin-right:8px;padding:0 24px 24px}}
|
|
17189
17189
|
`;
|
|
17190
|
-
var cx = Object.defineProperty, lx = Object.getOwnPropertyDescriptor,
|
|
17190
|
+
var cx = Object.defineProperty, lx = Object.getOwnPropertyDescriptor, Wr = (r, e, t, n) => {
|
|
17191
17191
|
for (var i = n > 1 ? void 0 : n ? lx(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
17192
17192
|
(s = r[o]) && (i = (n ? s(e, t, i) : s(i)) || i);
|
|
17193
17193
|
return n && i && cx(e, t, i), i;
|
|
@@ -17220,25 +17220,25 @@ let Jt = class extends Z {
|
|
|
17220
17220
|
Jt.styles = ne`
|
|
17221
17221
|
${ie(ux)}
|
|
17222
17222
|
`;
|
|
17223
|
-
|
|
17223
|
+
Wr([
|
|
17224
17224
|
w({ type: String })
|
|
17225
17225
|
], Jt.prototype, "image", 2);
|
|
17226
|
-
|
|
17226
|
+
Wr([
|
|
17227
17227
|
w({ type: String })
|
|
17228
17228
|
], Jt.prototype, "description_purchase", 2);
|
|
17229
|
-
|
|
17229
|
+
Wr([
|
|
17230
17230
|
w({ type: String })
|
|
17231
17231
|
], Jt.prototype, "unit_value", 2);
|
|
17232
|
-
|
|
17232
|
+
Wr([
|
|
17233
17233
|
w({ type: String })
|
|
17234
17234
|
], Jt.prototype, "total_amount", 2);
|
|
17235
|
-
|
|
17235
|
+
Wr([
|
|
17236
17236
|
w({ type: String })
|
|
17237
17237
|
], Jt.prototype, "quantity", 2);
|
|
17238
|
-
|
|
17238
|
+
Wr([
|
|
17239
17239
|
w({ type: String })
|
|
17240
17240
|
], Jt.prototype, "customClassPayment", 2);
|
|
17241
|
-
Jt =
|
|
17241
|
+
Jt = Wr([
|
|
17242
17242
|
Q("card-payment")
|
|
17243
17243
|
], Jt);
|
|
17244
17244
|
const dx = `/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}form{margin:inherit}.clickeable{cursor:pointer}.card{align-items:center;background:#ffffff;border:1px solid #e5e7eb;border-radius:1rem;display:flex;height:6.25rem;justify-content:space-between;padding:.75rem 1rem}.card__content{width:100%}.card__content p{margin:0;line-height:20px}.card__content h3{margin:0;color:#2b2b2b}.font_semiBold{font-family:Inter,Arial,"sans-serif";font-size:16px;font-weight:600;line-height:2}.font_regular{font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:400;color:#6a6a6a}.card__icon-qr{margin-right:1.25rem}.card__icon-qr .image{width:34px;height:34px}.titleImage{width:180px;height:40px}@media only screen and (max-width: 800px){.card{margin-left:8px;margin-right:8px}.card__title{height:31px}.card__icon-qr{margin-top:16px}}
|
|
@@ -17439,7 +17439,7 @@ function yx({ context: r }) {
|
|
|
17439
17439
|
} };
|
|
17440
17440
|
} else {
|
|
17441
17441
|
const s = i == null ? void 0 : i.set;
|
|
17442
|
-
o =
|
|
17442
|
+
o = Te(ge({}, i), { set: function(a) {
|
|
17443
17443
|
var c;
|
|
17444
17444
|
(c = n.get(this)) == null || c.setValue(a), s == null || s.call(this, a);
|
|
17445
17445
|
} });
|
|
@@ -17481,7 +17481,7 @@ const vx = (r, e, t, n) => ({
|
|
|
17481
17481
|
* Copyright 2019 Google LLC
|
|
17482
17482
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17483
17483
|
*/
|
|
17484
|
-
const
|
|
17484
|
+
const Wi = window, Xa = Wi.ShadowRoot && (Wi.ShadyCSS === void 0 || Wi.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Md = Symbol(), Dc = /* @__PURE__ */ new WeakMap();
|
|
17485
17485
|
let bx = class {
|
|
17486
17486
|
constructor(e, t, n) {
|
|
17487
17487
|
if (this._$cssResult$ = !0, n !== Md)
|
|
@@ -17503,7 +17503,7 @@ let bx = class {
|
|
|
17503
17503
|
};
|
|
17504
17504
|
const wx = (r) => new bx(typeof r == "string" ? r : r + "", void 0, Md), _x = (r, e) => {
|
|
17505
17505
|
Xa ? r.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet) : e.forEach((t) => {
|
|
17506
|
-
const n = document.createElement("style"), i =
|
|
17506
|
+
const n = document.createElement("style"), i = Wi.litNonce;
|
|
17507
17507
|
i !== void 0 && n.setAttribute("nonce", i), n.textContent = t.cssText, r.appendChild(n);
|
|
17508
17508
|
});
|
|
17509
17509
|
}, Rc = Xa ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((e) => {
|
|
@@ -17862,7 +17862,7 @@ let fe = class r extends Z {
|
|
|
17862
17862
|
hasError: !1,
|
|
17863
17863
|
hasPayError: !1,
|
|
17864
17864
|
hasC2PAuthError: !1,
|
|
17865
|
-
|
|
17865
|
+
websocketResponse: !1,
|
|
17866
17866
|
hasBlockedWebSocket: !1,
|
|
17867
17867
|
hasStatusPaymentRequest: "",
|
|
17868
17868
|
locale: "",
|
|
@@ -17929,14 +17929,14 @@ let fe = class r extends Z {
|
|
|
17929
17929
|
}
|
|
17930
17930
|
}
|
|
17931
17931
|
}, a = yield dv(s);
|
|
17932
|
-
a.ccvRequired && this._lastStepCvv.length < 3 ? (this.contextData.cvvRequired = !0, this._isLoading = !1) : (this.contextData.checkoutReady = !0, console.log(this.contextData.
|
|
17932
|
+
a.ccvRequired && this._lastStepCvv.length < 3 ? (this.contextData.cvvRequired = !0, this._isLoading = !1) : (this.contextData.componentsVisibility.showOrderCompleted = !0, this.contextData.checkoutReady = !0, console.log("THIS.SOWORDER COMPPLÑETE", this.contextData.componentsVisibility.showOrderCompleted), this._isLoading = !0, this._wsPaymentResponse()), a || (this._isLoading = !1, this.contextData.hasPayError = !0);
|
|
17933
17933
|
})
|
|
17934
17934
|
});
|
|
17935
17935
|
}
|
|
17936
17936
|
// @state() protected _directPaymentPayload = {}
|
|
17937
17937
|
firstUpdated(e) {
|
|
17938
17938
|
return F(this, null, function* () {
|
|
17939
|
-
nr(r.prototype, this, "firstUpdated").call(this, e), Qe.setEnvironment(this.mode), yield Be.createToken(this.publicKey), yield this.getPaymentRequest(), this._isLoading = !1, this.contextData.installmentsData = yield fv(this.contextData.paymentRequest), this.contextData =
|
|
17939
|
+
nr(r.prototype, this, "firstUpdated").call(this, e), Qe.setEnvironment(this.mode), yield Be.createToken(this.publicKey), yield this.getPaymentRequest(), this._isLoading = !1, this.contextData.installmentsData = yield fv(this.contextData.paymentRequest), this.contextData = Te(ge({}, this.contextData), {
|
|
17940
17940
|
locale: this.locale,
|
|
17941
17941
|
dpaId: this.dpaId,
|
|
17942
17942
|
rememberMe: !0,
|
|
@@ -17950,23 +17950,23 @@ let fe = class r extends Z {
|
|
|
17950
17950
|
const t = e.response;
|
|
17951
17951
|
this.contextData.paymentRequest = t, this.contextData.orderInfo.seller = t.seller.fantasy_name, this.contextData.orderInfo.totalAmount = t.transactions[0].amount.value, this.contextData.orderInfo.descriptionPurchase = t.transactions[0].products[0].description, this.contextData.orderInfo.unitValue = t.transactions[0].products[0].unit_price.value, this.contextData.orderInfo.quantity = t.transactions[0].products[0].quantity, this.contextData.additionalInfo.callback_url = t.additional_info.callback_url, this.contextData.hasStatusPaymentRequest = t.status, this._qrData = t.qr_data, this._wallet = t.payment_inputs.wallet, this._click2Pay = t.payment_inputs.click_to_pay, this._manualInput = t.payment_inputs.manual_input;
|
|
17952
17952
|
}).catch((e) => {
|
|
17953
|
-
console.log(e),
|
|
17953
|
+
console.log(e), He("GET-PAYMENT-REQUESTS-ERROR", e), this.contextData.hasError = !0;
|
|
17954
17954
|
});
|
|
17955
17955
|
});
|
|
17956
17956
|
}
|
|
17957
17957
|
_wsPaymentResponse() {
|
|
17958
17958
|
this._isLoading = !0, Bd(this.paymentRequestId).then((e) => {
|
|
17959
|
-
e.status === "FAILURE_PROCESSED" ? (this.contextData.
|
|
17959
|
+
e.status === "FAILURE_PROCESSED" ? (this.contextData.websocketResponse = !0, this.contextData.messageError = "No llegó a cobrarse nada. Podés reintentar el pago.", this._isLoading = !1, He("WS-PAYMENT-RESPONSE-C2P", { status: "PAYMENT-REJECTED" })) : e.status === "SUCCESS_PROCESSED" ? (this._isLoading = !1, this.contextData.websocketResponse = !0, this.contextData.messageSuccess = "Se proceso correctamente el pago", He("WS-PAYMENT-RESPONSE-C2P", { status: "PAYMENT-APPROVED" })) : e.status === "BLOCKED" && (this._isLoading = !1, this.contextData.hasBlockedWebSocket = !0, this.contextData.messageSuccess = "El tiempo para pagar con este link se terminó.", He("WS-PAYMENT-RESPONSE-C2P", { status: "PAYMENT-APPROVED" }));
|
|
17960
17960
|
}).catch((e) => {
|
|
17961
|
-
this._isLoading = !1, console.log(e),
|
|
17961
|
+
this._isLoading = !1, console.log(e), He("WS-PAYMENT-RESPONSE-C2P", Te(ge({}, e), { status: "PAYMENT-ERROR" }));
|
|
17962
17962
|
});
|
|
17963
17963
|
}
|
|
17964
17964
|
connectedCallback() {
|
|
17965
17965
|
super.connectedCallback(), this.addEventListener("errorOnClick2pay", (e) => {
|
|
17966
17966
|
const t = e;
|
|
17967
|
-
console.log("There was an error with click2pay platform"), this.contextData.hasError = !0, t.detail.hasPayError && (this.contextData.hasPayError = !0), t.detail.
|
|
17967
|
+
console.log("There was an error with click2pay platform"), this.contextData.hasError = !0, t.detail.hasPayError && (this.contextData.hasPayError = !0), t.detail.websocketResponse && (this.contextData.websocketResponse = !0), t.detail.hasBlockedWebSocket && (this.contextData.hasBlockedWebSocket = !0), t.detail.hasC2PAuthError && (this.contextData.hasC2PAuthError = !0);
|
|
17968
17968
|
}), this.addEventListener("clearErrors", () => {
|
|
17969
|
-
this.contextData.hasError = !1, this.contextData.hasPayError = !1, this.contextData.
|
|
17969
|
+
this.contextData.hasError = !1, this.contextData.hasPayError = !1, this.contextData.websocketResponse = !1, this.contextData.hasBlockedWebSocket = !1;
|
|
17970
17970
|
}), this.addEventListener("click2payNotAvailable", () => {
|
|
17971
17971
|
console.log("click2pay is Not Available"), this.contextData.isC2pAvailable = !1;
|
|
17972
17972
|
}), this.addEventListener("click2payInitialized", (e) => {
|
|
@@ -18011,17 +18011,14 @@ let fe = class r extends Z {
|
|
|
18011
18011
|
installmentPlan: this.contextData.selectedInstallment
|
|
18012
18012
|
});
|
|
18013
18013
|
const a = !0;
|
|
18014
|
-
this.contextData.paymentRequest =
|
|
18014
|
+
this.contextData.paymentRequest = Te(ge({}, this.contextData.paymentRequest), { flag: a });
|
|
18015
18015
|
const c = fl(
|
|
18016
18016
|
this.contextData.paymentRequest,
|
|
18017
18017
|
this.contextData.directPaymentData.formData,
|
|
18018
18018
|
this.contextData.selectedInstallment,
|
|
18019
18019
|
!1
|
|
18020
18020
|
), u = yield hl(c);
|
|
18021
|
-
(t = u.response) != null && t.success && ((n = u.response) != null && n.approved) ? (this._isLoading = !1, this.contextData.hasError = !0, this.contextData.hasDuplicateApprovedError = !0) : (i = u.response) != null && i.success && (this.contextData.componentsVisibility.showOrderCompleted = !0, this._isLoading = !1, console.log(
|
|
18022
|
-
"this.contextData.componentsVisibility.showOrderCompleted",
|
|
18023
|
-
this.contextData.componentsVisibility.showOrderCompleted
|
|
18024
|
-
), this._wsPaymentResponse()), ((o = u.response) == null ? void 0 : o.success) === !1 && ((s = u.response) == null ? void 0 : s.pending) === !0 && (this._isLoading = !1, this.contextData.hasError = !0, this.contextData.hasDuplicatePendingError = !0);
|
|
18021
|
+
(t = u.response) != null && t.success && ((n = u.response) != null && n.approved) ? (this._isLoading = !1, this.contextData.hasError = !0, this.contextData.hasDuplicateApprovedError = !0) : (i = u.response) != null && i.success && (this.contextData.componentsVisibility.showOrderCompleted = !0, this._isLoading = !1, this._wsPaymentResponse()), ((o = u.response) == null ? void 0 : o.success) === !1 && ((s = u.response) == null ? void 0 : s.pending) === !0 && (this._isLoading = !1, this.contextData.hasError = !0, this.contextData.hasDuplicatePendingError = !0), this.contextData.componentsVisibility.showOrderCompleted = !0, console.log("entro en el trigger", this.contextData.componentsVisibility.showOrderCompleted = !0);
|
|
18025
18022
|
}
|
|
18026
18023
|
} catch (a) {
|
|
18027
18024
|
this._isLoading = !1, this.contextData.hasError = !0, this.contextData.hasPayError = !0;
|
|
@@ -18038,7 +18035,7 @@ let fe = class r extends Z {
|
|
|
18038
18035
|
}
|
|
18039
18036
|
this._isLoading = !0, delete this.contextData.srcDigitalCardId;
|
|
18040
18037
|
const [n, i] = t.detail.expired.split("/"), o = yield ba(t.detail.creditNumber.slice(0, 6));
|
|
18041
|
-
if (console.log("binData on newCardSelected", o), this.contextData.cardBrand = o.response.data.bines.brand, this.contextData.cardType = o.response.data.bines.
|
|
18038
|
+
if (console.log("binData on newCardSelected", o), this.contextData.cardBrand = o.response.data.bines.brand, this.contextData.cardType = o.response.data.bines.type, !((a = this.contextData.availableNetworks) != null && a.includes(this.contextData.cardBrand))) {
|
|
18042
18039
|
this.contextData.directPaymentData.formData = {
|
|
18043
18040
|
creditNumber: t.detail.creditNumber,
|
|
18044
18041
|
name: sa(
|
|
@@ -18064,13 +18061,13 @@ let fe = class r extends Z {
|
|
|
18064
18061
|
try {
|
|
18065
18062
|
this.contextData.encryptedCardData = yield av(this.contextData.mcService, s), this.contextData.componentsVisibility.showInstallmentPlan = !0;
|
|
18066
18063
|
} catch (c) {
|
|
18067
|
-
console.error("Error handling new card"),
|
|
18064
|
+
console.error("Error handling new card"), He("ERROR-NEW-CARD", c), this.contextData.hasError = !0;
|
|
18068
18065
|
}
|
|
18069
18066
|
this._isLoading = !1;
|
|
18070
18067
|
}));
|
|
18071
18068
|
}
|
|
18072
18069
|
_getMasterSDKUrl() {
|
|
18073
|
-
return `https://src.mastercard.com/srci/integration/2/lib.js?srcDpaId=${this.dpaId}&locale=${this.locale}`;
|
|
18070
|
+
return `https://sandbox.src.mastercard.com/srci/integration/2/lib.js?srcDpaId=${this.dpaId}&locale=${this.locale}`;
|
|
18074
18071
|
}
|
|
18075
18072
|
_getInitPayload() {
|
|
18076
18073
|
const e = parseInt(this.contextData.orderInfo.totalAmount), t = {
|
|
@@ -18092,6 +18089,7 @@ let fe = class r extends Z {
|
|
|
18092
18089
|
.wallet="${this._wallet}"
|
|
18093
18090
|
.manualInput="${this._manualInput}"
|
|
18094
18091
|
.click2Pay="${this._click2Pay}"
|
|
18092
|
+
.mode=${this.mode}
|
|
18095
18093
|
></app-home>
|
|
18096
18094
|
</div>
|
|
18097
18095
|
`;
|
|
@@ -18195,7 +18193,7 @@ let Xt = class extends Z {
|
|
|
18195
18193
|
render() {
|
|
18196
18194
|
return C`
|
|
18197
18195
|
<button
|
|
18198
|
-
class="
|
|
18196
|
+
class="btn ${this.color} ${this.font}"
|
|
18199
18197
|
?disabled=${this.buttonDisabled}
|
|
18200
18198
|
type="button"
|
|
18201
18199
|
@click=${this.handleClick}
|
|
@@ -18665,7 +18663,7 @@ Qa([
|
|
|
18665
18663
|
ai = Qa([
|
|
18666
18664
|
Q("click2pay-header")
|
|
18667
18665
|
], ai);
|
|
18668
|
-
var qx = Object.defineProperty, Hx = Object.getOwnPropertyDescriptor,
|
|
18666
|
+
var qx = Object.defineProperty, Hx = Object.getOwnPropertyDescriptor, Ge = (r, e, t, n) => {
|
|
18669
18667
|
for (var i = n > 1 ? void 0 : n ? Hx(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
18670
18668
|
(s = r[o]) && (i = (n ? s(e, t, i) : s(i)) || i);
|
|
18671
18669
|
return n && i && qx(e, t, i), i;
|
|
@@ -18831,59 +18829,59 @@ let Pe = class extends Z {
|
|
|
18831
18829
|
Pe.styles = ne`
|
|
18832
18830
|
${ie(Fx)}
|
|
18833
18831
|
`;
|
|
18834
|
-
|
|
18832
|
+
Ge([
|
|
18835
18833
|
w({ type: Boolean })
|
|
18836
18834
|
], Pe.prototype, "hasPrevState", 2);
|
|
18837
|
-
|
|
18835
|
+
Ge([
|
|
18838
18836
|
w({ type: Array })
|
|
18839
18837
|
], Pe.prototype, "availableNetworks", 2);
|
|
18840
|
-
|
|
18838
|
+
Ge([
|
|
18841
18839
|
w({ type: Boolean })
|
|
18842
18840
|
], Pe.prototype, "showCardIcon", 2);
|
|
18843
|
-
|
|
18841
|
+
Ge([
|
|
18844
18842
|
w({ type: Boolean })
|
|
18845
18843
|
], Pe.prototype, "showTerms", 2);
|
|
18846
|
-
|
|
18844
|
+
Ge([
|
|
18847
18845
|
w({ type: Boolean })
|
|
18848
18846
|
], Pe.prototype, "isC2P", 2);
|
|
18849
|
-
|
|
18847
|
+
Ge([
|
|
18850
18848
|
N()
|
|
18851
18849
|
], Pe.prototype, "_icon", 2);
|
|
18852
|
-
|
|
18850
|
+
Ge([
|
|
18853
18851
|
N()
|
|
18854
18852
|
], Pe.prototype, "_cardNumber", 2);
|
|
18855
|
-
|
|
18853
|
+
Ge([
|
|
18856
18854
|
N()
|
|
18857
18855
|
], Pe.prototype, "_expired", 2);
|
|
18858
|
-
|
|
18856
|
+
Ge([
|
|
18859
18857
|
N()
|
|
18860
18858
|
], Pe.prototype, "_codSeg", 2);
|
|
18861
|
-
|
|
18859
|
+
Ge([
|
|
18862
18860
|
N()
|
|
18863
18861
|
], Pe.prototype, "_cardBrand", 2);
|
|
18864
|
-
|
|
18862
|
+
Ge([
|
|
18865
18863
|
N()
|
|
18866
18864
|
], Pe.prototype, "_cardType", 2);
|
|
18867
|
-
|
|
18865
|
+
Ge([
|
|
18868
18866
|
N()
|
|
18869
18867
|
], Pe.prototype, "_isButtonDisabled", 2);
|
|
18870
|
-
|
|
18868
|
+
Ge([
|
|
18871
18869
|
N()
|
|
18872
18870
|
], Pe.prototype, "_shouldAddCard", 2);
|
|
18873
|
-
|
|
18871
|
+
Ge([
|
|
18874
18872
|
N()
|
|
18875
18873
|
], Pe.prototype, "_cardNumberErrors", 2);
|
|
18876
|
-
|
|
18874
|
+
Ge([
|
|
18877
18875
|
Ar({ context: tr, subscribe: !0 }),
|
|
18878
18876
|
N()
|
|
18879
18877
|
], Pe.prototype, "_contextData", 2);
|
|
18880
|
-
Pe =
|
|
18878
|
+
Pe = Ge([
|
|
18881
18879
|
Q("form-credit-card")
|
|
18882
18880
|
], Pe);
|
|
18883
18881
|
const Kx = `/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}form{margin:inherit}.clickeable{cursor:pointer}.spinner{animation:rotate 2s linear infinite;z-index:2;position:absolute;width:50px;height:50px;margin-bottom:130px}.spinner .path{stroke:#652bdf;stroke-linecap:round;animation:dash 1.5s ease-in-out infinite}.container{display:flex;justify-content:center;align-items:center;height:100%;width:468.45px}span{color:#2b2b2b;font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:500}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}to{stroke-dasharray:90,150;stroke-dashoffset:-124}}.loading-container{margin-top:65px}@media only screen and (max-width: 660px){.container{width:300px}.loading-container{margin-top:163px}}
|
|
18884
18882
|
`;
|
|
18885
|
-
var Gx = Object.defineProperty,
|
|
18886
|
-
for (var i = n > 1 ? void 0 : n ?
|
|
18883
|
+
var Gx = Object.defineProperty, Yx = Object.getOwnPropertyDescriptor, eu = (r, e, t, n) => {
|
|
18884
|
+
for (var i = n > 1 ? void 0 : n ? Yx(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
18887
18885
|
(s = r[o]) && (i = (n ? s(e, t, i) : s(i)) || i);
|
|
18888
18886
|
return n && i && Gx(e, t, i), i;
|
|
18889
18887
|
};
|
|
@@ -18914,9 +18912,9 @@ eu([
|
|
|
18914
18912
|
ui = eu([
|
|
18915
18913
|
Q("app-loading")
|
|
18916
18914
|
], ui);
|
|
18917
|
-
const
|
|
18915
|
+
const Wx = `/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}form{margin:inherit}.clickeable{cursor:pointer}*{box-sizing:border-box;padding:0;margin:0;user-select:none}p{max-width:600px}.items{max-width:1100px;margin:0 auto}.container{gap:24px;display:flex;flex-direction:row-reverse;justify-content:center}.container__items{display:flex;flex-direction:column;gap:24px}.panel-container{background:#ffffff;border:1px solid #e5e7eb;border-radius:20px;display:flex;justify-content:center;align-items:center;max-width:500px;min-height:600px}.panel{background:#ffffff;border-radius:20px;width:100%}.form{padding:0 18px}.card-form__select{align-self:start;border-top:none;border-left:none;border-right:none;color:#6a6a6a;font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:400;padding-top:8px;width:100%;height:28px}.credit-details__select-type{color:#6a6a6a;font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:400;min-width:135px}.credit-details__select-type :focus-visible{outline:none}.card-form__placeholder{align-self:end;color:#6a6a6a;font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:400}.container__span{color:#6a6a6a;font-family:Inter,Arial,"sans-serif";font-size:12px;padding-top:20px}.credit-details{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-height:95px;max-width:425px}.card-form__buttons{display:flex;justify-content:center}.card__description{align-items:center;display:flex;justify-content:space-between}:host{--flipped-class: "flipped"}.error{color:red;padding:5px;padding-left:0!important;font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:400;font-weight:200;position:relative;max-height:40px;bottom:35px}.input-credit-card{max-height:85px}.left{left:218px}.validate-card{position:relative;bottom:30px;color:#6a6a6a;font-family:Inter,Arial,"sans-serif";font-size:14px;font-weight:400}.bottom{bottom:59px}.bottomDni{bottom:48px}.left{left:221px}@media only screen and (max-width: 660px){.panel-container{grid-column:1/span 12}.card-form__buttons{flex-direction:column;align-items:center;margin-top:20px}.items{padding-top:0!important;padding-bottom:0!important}#container{display:flex;flex-direction:column;align-items:center;padding:24px}.container__items{display:flex;flex-direction:column;align-items:center}.credit-details{width:292px;max-height:110px}.left{left:150px}.form{padding:30px 18px 18px 24px}}
|
|
18918
18916
|
`;
|
|
18919
|
-
var Jx = Object.defineProperty, Xx = Object.getOwnPropertyDescriptor,
|
|
18917
|
+
var Jx = Object.defineProperty, Xx = Object.getOwnPropertyDescriptor, Ie = (r, e, t, n) => {
|
|
18920
18918
|
for (var i = n > 1 ? void 0 : n ? Xx(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
18921
18919
|
(s = r[o]) && (i = (n ? s(e, t, i) : s(i)) || i);
|
|
18922
18920
|
return n && i && Jx(e, t, i), i;
|
|
@@ -18932,9 +18930,9 @@ let _e = class extends Z {
|
|
|
18932
18930
|
}
|
|
18933
18931
|
wsPaymentResponse() {
|
|
18934
18932
|
this.isLoading = !0, Bd(Vi.paymentRequestResponse.payment_request_id).then((r) => {
|
|
18935
|
-
this.isLoading = !0, r.status === "FAILURE_PROCESSED" ? (this.isLoading = !1, hr.handleServiceError("PAYMENT_RESULT", "REJECTED."),
|
|
18933
|
+
this.isLoading = !0, r.status === "FAILURE_PROCESSED" ? (this.isLoading = !1, hr.handleServiceError("PAYMENT_RESULT", "REJECTED."), Wn("WS-PAYMENT-RESPONSE-RENTAS", { status: "PAYMENT-REJECTED" })) : r.status === "SUCCESS_PROCESSED" && (this.isLoading = !1, hr.handleServiceError("PAYMENT_RESULT", "SUCCESS."), Wn("WS-PAYMENT-RESPONSE-RENTAS", { status: "PAYMENT-APPROVED" }));
|
|
18936
18934
|
}).catch((r) => {
|
|
18937
|
-
this.isLoading = !1, this.error = !0,
|
|
18935
|
+
this.isLoading = !1, this.error = !0, Wn("WS-PAYMENT-RESPONSE-RENTAS", Te(ge({}, r), { status: "ERROR" })), this.formLoadingMessage = "", console.log(r);
|
|
18938
18936
|
});
|
|
18939
18937
|
}
|
|
18940
18938
|
submit(r) {
|
|
@@ -18962,7 +18960,7 @@ let _e = class extends Z {
|
|
|
18962
18960
|
dateOfBirth: this.dateOfBirth
|
|
18963
18961
|
}, e = this.dateOfBirth.split("/").reverse().join(""), { response: t } = yield Vf(this.dni.replaceAll(".", ""), e);
|
|
18964
18962
|
this.isclientSuccess = !0;
|
|
18965
|
-
const n = !1, { payment_request_id: i, transaction_id: o } = Vi.paymentRequestResponse, s =
|
|
18963
|
+
const n = !1, { payment_request_id: i, transaction_id: o } = Vi.paymentRequestResponse, s = Te(ge({}, Vi.paymentRequest), { payment_request_id: i, transaction_id: o, flag: n });
|
|
18966
18964
|
if (t && t.success) {
|
|
18967
18965
|
this.wsPaymentResponse();
|
|
18968
18966
|
const a = fl(
|
|
@@ -19178,66 +19176,66 @@ let _e = class extends Z {
|
|
|
19178
19176
|
}
|
|
19179
19177
|
};
|
|
19180
19178
|
_e.styles = ne`
|
|
19181
|
-
${ie(
|
|
19179
|
+
${ie(Wx)}
|
|
19182
19180
|
`;
|
|
19183
|
-
|
|
19181
|
+
Ie([
|
|
19184
19182
|
w({ type: String })
|
|
19185
19183
|
], _e.prototype, "creditNumber", 2);
|
|
19186
|
-
|
|
19184
|
+
Ie([
|
|
19187
19185
|
w({ type: String })
|
|
19188
19186
|
], _e.prototype, "name", 2);
|
|
19189
|
-
|
|
19187
|
+
Ie([
|
|
19190
19188
|
w({ type: String })
|
|
19191
19189
|
], _e.prototype, "expired", 2);
|
|
19192
|
-
|
|
19190
|
+
Ie([
|
|
19193
19191
|
w({ type: String })
|
|
19194
19192
|
], _e.prototype, "dateOfBirth", 2);
|
|
19195
|
-
|
|
19193
|
+
Ie([
|
|
19196
19194
|
w({ type: String })
|
|
19197
19195
|
], _e.prototype, "codSeg", 2);
|
|
19198
|
-
|
|
19196
|
+
Ie([
|
|
19199
19197
|
w({ type: String })
|
|
19200
19198
|
], _e.prototype, "email", 2);
|
|
19201
|
-
|
|
19199
|
+
Ie([
|
|
19202
19200
|
w({ type: String })
|
|
19203
19201
|
], _e.prototype, "dni", 2);
|
|
19204
|
-
|
|
19202
|
+
Ie([
|
|
19205
19203
|
w({ type: String })
|
|
19206
19204
|
], _e.prototype, "passport", 2);
|
|
19207
|
-
|
|
19205
|
+
Ie([
|
|
19208
19206
|
w({ type: String })
|
|
19209
19207
|
], _e.prototype, "messageError", 2);
|
|
19210
|
-
|
|
19208
|
+
Ie([
|
|
19211
19209
|
w({ type: Boolean })
|
|
19212
19210
|
], _e.prototype, "isFlipper", 2);
|
|
19213
|
-
|
|
19211
|
+
Ie([
|
|
19214
19212
|
w({ type: Boolean })
|
|
19215
19213
|
], _e.prototype, "isBrand", 2);
|
|
19216
|
-
|
|
19214
|
+
Ie([
|
|
19217
19215
|
w({ type: Boolean })
|
|
19218
19216
|
], _e.prototype, "isLoading", 2);
|
|
19219
|
-
|
|
19217
|
+
Ie([
|
|
19220
19218
|
w({ type: Boolean })
|
|
19221
19219
|
], _e.prototype, "error", 2);
|
|
19222
|
-
|
|
19220
|
+
Ie([
|
|
19223
19221
|
w({ type: Boolean })
|
|
19224
19222
|
], _e.prototype, "formSubmitted", 2);
|
|
19225
|
-
|
|
19223
|
+
Ie([
|
|
19226
19224
|
w({ type: Boolean })
|
|
19227
19225
|
], _e.prototype, "showCardFormat", 2);
|
|
19228
|
-
|
|
19226
|
+
Ie([
|
|
19229
19227
|
w({ type: Boolean })
|
|
19230
19228
|
], _e.prototype, "isclientSuccess", 2);
|
|
19231
|
-
|
|
19229
|
+
Ie([
|
|
19232
19230
|
w({ type: Boolean })
|
|
19233
19231
|
], _e.prototype, "isDirectPaymentSuccess", 2);
|
|
19234
|
-
|
|
19232
|
+
Ie([
|
|
19235
19233
|
w({ type: Boolean })
|
|
19236
19234
|
], _e.prototype, "showError", 2);
|
|
19237
|
-
|
|
19235
|
+
Ie([
|
|
19238
19236
|
w({ type: String })
|
|
19239
19237
|
], _e.prototype, "selectedDocumentType", 2);
|
|
19240
|
-
_e =
|
|
19238
|
+
_e = Ie([
|
|
19241
19239
|
Q("form-rentas")
|
|
19242
19240
|
], _e);
|
|
19243
19241
|
const Zx = `/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}form{margin:inherit}.clickeable{cursor:pointer}*{-webkit-transition:.25s ease-in-out;-moz-transition:.25s ease-in-out;-o-transition:.25s ease-in-out;transition:.25s ease-in-out;-webkit-text-size-adjust:none}.drawer{position:fixed;top:0;right:-320px;height:100%;width:320px;background:#f7f7f7;z-index:1000;-webkit-overflow-scrolling:touch}.drawer .iframeContainer{height:100%}.drawer .iframeContainer iframe{border-style:hidden}.visible{right:0}@media only screen and (max-width: 360px){.drawer{position:fixed;height:100%;width:100%;background:#f7f7f7}}@media only screen and (max-width: 650px){.drawer{right:-650px;width:100%}.visible{right:0}}
|
|
@@ -19276,7 +19274,7 @@ jd([
|
|
|
19276
19274
|
yo = jd([
|
|
19277
19275
|
Q("drawer-component")
|
|
19278
19276
|
], yo);
|
|
19279
|
-
const t1 = `/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}form{margin:inherit}.clickeable{cursor:pointer}.container{display:flex}.panel-container{padding:20px;background:#ffffff;width:100%;border:1px solid #e5e7eb;border-radius:20px;font-family:Inter,Arial,"sans-serif"}.data-text{margin-top:.5em;margin-bottom:.5em;font-size:15px;font-weight:400;color:#6a6a6a}.title{margin-top:.5em;margin-bottom:.5em;font-size:15px;font-weight:400}.cvv-input{margin-top:25px}.top-half{padding:5px;border-bottom:solid 1px rgba(147,146,146,.6039215686)}.bottom-half{padding:5px}.button-container{margin-top:24px;display:flex;justify-content:space-between;flex-wrap:wrap}@media only screen and (max-width: 560px){.
|
|
19277
|
+
const t1 = `/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}form{margin:inherit}.clickeable{cursor:pointer}.container{display:flex}.panel-container{padding:20px;background:#ffffff;width:100%;border:1px solid #e5e7eb;border-radius:20px;font-family:Inter,Arial,"sans-serif"}.data-text{margin-top:.5em;margin-bottom:.5em;font-size:15px;font-weight:400;color:#6a6a6a}.title{margin-top:.5em;margin-bottom:.5em;font-size:15px;font-weight:400}.cvv-input{margin-top:25px}.top-half{padding:5px;border-bottom:solid 1px rgba(147,146,146,.6039215686)}.bottom-half{padding:5px}.button-container{margin-top:24px;display:flex;justify-content:space-between;flex-wrap:wrap}@media only screen and (max-width: 560px){.mb{margin-bottom:10px}}@media only screen and (max-width: 800px){.panel-container{margin-left:8px;margin-right:8px}}src-card{--src-card-art-width: 54px;--src-card-art-height: 35px}
|
|
19280
19278
|
`;
|
|
19281
19279
|
var r1 = Object.defineProperty, n1 = Object.getOwnPropertyDescriptor, ye = (r, e, t, n) => {
|
|
19282
19280
|
for (var i = n > 1 ? void 0 : n ? n1(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
@@ -19311,8 +19309,7 @@ let de = class extends Z {
|
|
|
19311
19309
|
return this._codSeg.length >= 3;
|
|
19312
19310
|
}
|
|
19313
19311
|
render() {
|
|
19314
|
-
var
|
|
19315
|
-
const r = "button";
|
|
19312
|
+
var r, e;
|
|
19316
19313
|
return this.checkoutReady && this._triggerCheckout(), this._dataAssignment(), C`
|
|
19317
19314
|
<div class="container">
|
|
19318
19315
|
<div class="panel-container">
|
|
@@ -19323,7 +19320,7 @@ let de = class extends Z {
|
|
|
19323
19320
|
</div>
|
|
19324
19321
|
<div class="bottom-half">
|
|
19325
19322
|
<src-card
|
|
19326
|
-
descriptor-name="${(
|
|
19323
|
+
descriptor-name="${(r = this.digitalCardData) != null && r.descriptorName ? (e = this.digitalCardData) == null ? void 0 : e.descriptorName : ""}"
|
|
19327
19324
|
account-number-suffix="${this.panLastFour}"
|
|
19328
19325
|
card-art="${this.cardArt}"
|
|
19329
19326
|
></src-card>
|
|
@@ -19332,15 +19329,14 @@ let de = class extends Z {
|
|
|
19332
19329
|
${this.cvvNeeded ? C`<div class="cvv-input">
|
|
19333
19330
|
<input-cod-seg
|
|
19334
19331
|
.codSeg="${this._codSeg}"
|
|
19335
|
-
@onChange="${(
|
|
19336
|
-
this._codSeg =
|
|
19332
|
+
@onChange="${(t) => {
|
|
19333
|
+
this._codSeg = t.detail.codSeg, this._validateForm();
|
|
19337
19334
|
}}"
|
|
19338
19335
|
></input-cod-seg>
|
|
19339
19336
|
</div>` : ""}
|
|
19340
19337
|
<div class="button-container">
|
|
19341
19338
|
<div>
|
|
19342
19339
|
<my-button
|
|
19343
|
-
.customClass="${r}"
|
|
19344
19340
|
button-title="Volver"
|
|
19345
19341
|
button-type="submit"
|
|
19346
19342
|
button-text="regular"
|
|
@@ -19351,7 +19347,6 @@ let de = class extends Z {
|
|
|
19351
19347
|
</div>
|
|
19352
19348
|
<div class="mb">
|
|
19353
19349
|
<my-button
|
|
19354
|
-
.customClass="${r}"
|
|
19355
19350
|
button-title="Pagar"
|
|
19356
19351
|
button-type="submit"
|
|
19357
19352
|
button-text="regular"
|
|
@@ -20218,9 +20213,9 @@ var D1 = Object.defineProperty, R1 = Object.getOwnPropertyDescriptor, H = (r, e,
|
|
|
20218
20213
|
(s = r[o]) && (i = (n ? s(e, t, i) : s(i)) || i);
|
|
20219
20214
|
return n && i && D1(e, t, i), i;
|
|
20220
20215
|
};
|
|
20221
|
-
let
|
|
20216
|
+
let V = class r extends Z {
|
|
20222
20217
|
constructor() {
|
|
20223
|
-
super(...arguments), this.email = "", this.firstName = "", this.lastName = "", this.dni = "", this.paymentRequestId = "", this.qrData = "", this.wallet = "", this.manualInput = "", this.click2Pay = "", this.showQr = !1, this.masterLibUrl = "", this.isLoading = !0, this.showLearnMore = !1, this.isError = !1, this._cards = [], this._showDrawerComponent = !1, this._showInitialPanels = !0, this._showPersonalDataForm = !1, this._showOrderReview = !1, this._showOrderCompleted = !1, this._showC2pOtpInput = !1, this._showCardForm = !1, this._showC2pCardList = !1, this._isC2P = !0, this._loadingSub = "Puede tardar unos segundos", this._loadingMsg = "Estamos cargando la página", this.lastPanFour = "", this.hasStatusPaymentRequest = "", this.isSuccess = !0, this._handlePaymentModalResponse = (e) => {
|
|
20218
|
+
super(...arguments), this.email = "", this.firstName = "", this.lastName = "", this.dni = "", this.paymentRequestId = "", this.qrData = "", this.wallet = "", this.manualInput = "", this.click2Pay = "", this.showQr = !1, this.masterLibUrl = "", this.isLoading = !0, this.showLearnMore = !1, this.isError = !1, this._cards = [], this._showDrawerComponent = !1, this._showInitialPanels = !0, this._showPersonalDataForm = !1, this._showOrderReview = !1, this._showOrderCompleted = !1, this._showC2pOtpInput = !1, this._showCardForm = !1, this._showC2pCardList = !1, this._isC2P = !0, this._loadingSub = "Puede tardar unos segundos", this._loadingMsg = "Estamos cargando la página", this.lastPanFour = "", this.hasStatusPaymentRequest = "", this.isSuccess = !0, this.mode = "staging", this._handlePaymentModalResponse = (e) => {
|
|
20224
20219
|
if (e.data.type === "PAYMENT_MODAL_RESPONSE") {
|
|
20225
20220
|
const { closeModal: t } = e.data.data;
|
|
20226
20221
|
t ? (this._showInitialPanels = !0, this.isLoading = !1, this.showQr = !1) : (this._showInitialPanels = !1, this.showQr = !0);
|
|
@@ -20512,7 +20507,10 @@ let q = class r extends Z {
|
|
|
20512
20507
|
e && (window.location.href = e);
|
|
20513
20508
|
}
|
|
20514
20509
|
_constructIframeUrl() {
|
|
20515
|
-
|
|
20510
|
+
if (this.mode === "staging")
|
|
20511
|
+
return `https://e3-ecommerce.ranty.io/sdk/nave/checkout?payment_request_id=${this.paymentRequestId}&qr_data=${encodeURIComponent(this.qrData)}`;
|
|
20512
|
+
if (this.mode === "production")
|
|
20513
|
+
return `https://ecommerce.ranty.io/sdk/nave/checkout?payment_request_id=${this.paymentRequestId}&qr_data=${encodeURIComponent(this.qrData)}`;
|
|
20516
20514
|
}
|
|
20517
20515
|
_prepareCheckout() {
|
|
20518
20516
|
return F(this, null, function* () {
|
|
@@ -20575,7 +20573,7 @@ let q = class r extends Z {
|
|
|
20575
20573
|
}
|
|
20576
20574
|
_retryPanels() {
|
|
20577
20575
|
var e, t, n, i, o;
|
|
20578
|
-
console.log("retryPanels 2"), this.isLoading = !0, Fi(this), this.isLoading = !1, (e = this._contextData) != null && e.hasC2PAuthError ? this._showInitialPanels = !0 : (t = this._contextData) != null && t.hasDuplicateApprovedError || (n = this._contextData) != null && n.hasDuplicatePendingError ? this._showPersonalDataForm = !0 : (i = this._contextData) != null && i.
|
|
20576
|
+
console.log("retryPanels 2"), this.isLoading = !0, Fi(this), this.isLoading = !1, (e = this._contextData) != null && e.hasC2PAuthError ? this._showInitialPanels = !0 : (t = this._contextData) != null && t.hasDuplicateApprovedError || (n = this._contextData) != null && n.hasDuplicatePendingError ? this._showPersonalDataForm = !0 : (i = this._contextData) != null && i.websocketResponse || (o = this._contextData) != null && o.hasBlockedWebSocket ? location.reload() : this._showC2pCardList = !0, this.dispatchEvent(
|
|
20579
20577
|
new CustomEvent("clearErrors", {
|
|
20580
20578
|
bubbles: !0,
|
|
20581
20579
|
composed: !0
|
|
@@ -20593,10 +20591,9 @@ let q = class r extends Z {
|
|
|
20593
20591
|
}
|
|
20594
20592
|
_renderError() {
|
|
20595
20593
|
var s, a, c, u, l;
|
|
20596
|
-
this.isLoading = !1;
|
|
20597
20594
|
const e = "https://ranty-sdk-js.naranjax.com/images/error.svg", t = "https://ranty-sdk-js.naranjax.com/images/circle-info.svg";
|
|
20598
20595
|
let n = "No pudimos cargar las opciones", i = "Hubo un problema al intentar cargar las opciones de pago. Podés volver a intentarlo.", o = !1;
|
|
20599
|
-
return (s = this._contextData) != null && s.hasPayError && (n = "No se pudo realizar el pago", i = "Hubo un problema al intentar realizar el pago. Podés volver a intentarlo."), (a = this._contextData) != null && a.hasDuplicatePendingError && (n = "No es posible realizar este pago", i = "Este pago ya se encuentra siendo procesado, volvé a intentarlo en unos minutos.", o = !0), (c = this._contextData) != null && c.hasDuplicateApprovedError ? (n = "Esta orden ya está paga", i = "Si fuiste vos quien pagó, podés encontrar el detalle en la app.", o = !0) : (u = this._contextData) != null && u.
|
|
20596
|
+
return (s = this._contextData) != null && s.hasPayError && (n = "No se pudo realizar el pago", i = "Hubo un problema al intentar realizar el pago. Podés volver a intentarlo."), (a = this._contextData) != null && a.hasDuplicatePendingError && (n = "No es posible realizar este pago", i = "Este pago ya se encuentra siendo procesado, volvé a intentarlo en unos minutos.", o = !0), (c = this._contextData) != null && c.hasDuplicateApprovedError ? (n = "Esta orden ya está paga", i = "Si fuiste vos quien pagó, podés encontrar el detalle en la app.", o = !0) : (u = this._contextData) != null && u.websocketResponse ? (n = "No se pudo realizar el pago", i = this._contextData.messageError) : (l = this._contextData) != null && l.hasBlockedWebSocket ? (n = "Vas a tener que pedir un nuevo link de pago", i = this._contextData.messageError) : (this.hasStatusPaymentRequest === "EXPIRED" || this.hasStatusPaymentRequest === "BLOCKED") && (n = "Vas a tener que pedir un nuevo link de pago", i = "El tiempo para pagar con este link se terminó."), C`
|
|
20600
20597
|
<click2pay-modal
|
|
20601
20598
|
.title="${n}"
|
|
20602
20599
|
.message="${i}"
|
|
@@ -20611,7 +20608,7 @@ let q = class r extends Z {
|
|
|
20611
20608
|
`;
|
|
20612
20609
|
}
|
|
20613
20610
|
render() {
|
|
20614
|
-
var i, o, s, a, c, u, l, d, p, m, g, v, _, E, x, R, U, k, P, M, z, K, pe, oe;
|
|
20611
|
+
var i, o, s, a, c, u, l, d, p, m, g, v, _, E, x, R, U, k, P, M, z, K, pe, oe, $e;
|
|
20615
20612
|
const e = this.isSuccess ? "fade-in-subtitle" : "", t = this.isSuccess ? "fade-in-title" : "", n = this._showPersonalDataForm ? "card__payment_margin" : "";
|
|
20616
20613
|
return C`
|
|
20617
20614
|
<div class="card-form">
|
|
@@ -20626,7 +20623,7 @@ let q = class r extends Z {
|
|
|
20626
20623
|
</div>
|
|
20627
20624
|
<div class="${this._showDrawerComponent ? this.openDrawerClass("card-form__content") : "card-form__content"}">
|
|
20628
20625
|
${!this.isLoading && (this.hasStatusPaymentRequest === "PENDING" || this.hasStatusPaymentRequest === "FAILURE_PROCESSED") && this._showInitialPanels && !((o = this._contextData) != null && o.hasError) ? this.renderCardPaymentPanel() : ""}
|
|
20629
|
-
${(s = this._contextData) != null && s.hasError || (a = this._contextData) != null && a.hasPayError || (c = this._contextData) != null && c.
|
|
20626
|
+
${(s = this._contextData) != null && s.hasError || (a = this._contextData) != null && a.hasPayError || (c = this._contextData) != null && c.websocketResponse && this._contextData.messageError || this.hasStatusPaymentRequest === "EXPIRED" || this.hasStatusPaymentRequest === "BLOCKED" ? this._renderError() : ""}
|
|
20630
20627
|
${this._showPersonalDataForm ? C`
|
|
20631
20628
|
<click2pay-personal-data
|
|
20632
20629
|
@goToPrevState="${this._backToShowInitialPanels}"
|
|
@@ -20678,8 +20675,8 @@ let q = class r extends Z {
|
|
|
20678
20675
|
<plan-component
|
|
20679
20676
|
.hasPrevState="${!0}"
|
|
20680
20677
|
@goToPrevState="${this._backToCardSelection}"
|
|
20681
|
-
@orderData="${(
|
|
20682
|
-
this.orderData =
|
|
20678
|
+
@orderData="${(xe) => {
|
|
20679
|
+
this.orderData = xe.detail.installmentData;
|
|
20683
20680
|
}}"
|
|
20684
20681
|
@installmentSelected="${this._prepareCheckout}"
|
|
20685
20682
|
></plan-component>
|
|
@@ -20701,7 +20698,7 @@ let q = class r extends Z {
|
|
|
20701
20698
|
></click2pay-order-review>
|
|
20702
20699
|
` : ""}
|
|
20703
20700
|
${(R = this._contextData) != null && R.componentsVisibility.showOrderCompleted ? C`
|
|
20704
|
-
${(U = this._contextData) != null && U.
|
|
20701
|
+
${this._contextData.cardBrand === "MASTERCARD" && ((U = this._contextData) != null && U.websocketResponse) && ((k = this._contextData) != null && k.messageSuccess) ? C`
|
|
20705
20702
|
<click2pay-modal
|
|
20706
20703
|
.customClassSub="${e}"
|
|
20707
20704
|
.customClass="${t}"
|
|
@@ -20713,7 +20710,7 @@ let q = class r extends Z {
|
|
|
20713
20710
|
.showButton="${!0}"
|
|
20714
20711
|
></click2pay-modal>
|
|
20715
20712
|
` : C`
|
|
20716
|
-
${(P = this._contextData) != null && P.
|
|
20713
|
+
${(P = this._contextData) != null && P.websocketResponse && ((M = this._contextData) != null && M.messageSuccess) ? C`
|
|
20717
20714
|
<click2pay-modal
|
|
20718
20715
|
.customClassSub="${e}"
|
|
20719
20716
|
.customClass="${t}"
|
|
@@ -20727,7 +20724,7 @@ let q = class r extends Z {
|
|
|
20727
20724
|
`}
|
|
20728
20725
|
` : ""}
|
|
20729
20726
|
</div>
|
|
20730
|
-
${((
|
|
20727
|
+
${((z = this._contextData) == null ? void 0 : z.hasStatusPaymentRequest) === "SUCCESS_PROCESSED" ? C`
|
|
20731
20728
|
<click2pay-modal
|
|
20732
20729
|
.showLoading="${!1}"
|
|
20733
20730
|
title="¡El link ya está pago!"
|
|
@@ -20738,10 +20735,10 @@ let q = class r extends Z {
|
|
|
20738
20735
|
${this._showInitialPanels ? this._renderMobileSubtitle("Ingresá los datos de la tarjeta") : this._renderMobileSubtitle("Ingresá los datos de la persona titular")}
|
|
20739
20736
|
<div class="${this._showDrawerComponent ? this.openDrawerClass("payment__detail") : "payment__detail"}">
|
|
20740
20737
|
<card-payment
|
|
20741
|
-
.quantity="${(
|
|
20742
|
-
.description_purchase="${(
|
|
20743
|
-
.total_amount="${(
|
|
20744
|
-
.unit_value="${(
|
|
20738
|
+
.quantity="${(K = this._contextData) == null ? void 0 : K.orderInfo.quantity}"
|
|
20739
|
+
.description_purchase="${(pe = this._contextData) == null ? void 0 : pe.orderInfo.descriptionPurchase}"
|
|
20740
|
+
.total_amount="${(oe = this._contextData) == null ? void 0 : oe.orderInfo.totalAmount}"
|
|
20741
|
+
.unit_value="${($e = this._contextData) == null ? void 0 : $e.orderInfo.unitValue}"
|
|
20745
20742
|
.customClassPayment="${n}"
|
|
20746
20743
|
></card-payment>
|
|
20747
20744
|
</div>
|
|
@@ -20749,127 +20746,130 @@ let q = class r extends Z {
|
|
|
20749
20746
|
`;
|
|
20750
20747
|
}
|
|
20751
20748
|
};
|
|
20752
|
-
|
|
20749
|
+
V.styles = ne`
|
|
20753
20750
|
${ie(A1)}
|
|
20754
20751
|
`;
|
|
20755
20752
|
H([
|
|
20756
20753
|
w({ type: String })
|
|
20757
|
-
],
|
|
20754
|
+
], V.prototype, "email", 2);
|
|
20758
20755
|
H([
|
|
20759
20756
|
w({ type: String })
|
|
20760
|
-
],
|
|
20757
|
+
], V.prototype, "firstName", 2);
|
|
20761
20758
|
H([
|
|
20762
20759
|
w({ type: String })
|
|
20763
|
-
],
|
|
20760
|
+
], V.prototype, "lastName", 2);
|
|
20764
20761
|
H([
|
|
20765
20762
|
w({ type: String })
|
|
20766
|
-
],
|
|
20763
|
+
], V.prototype, "dni", 2);
|
|
20767
20764
|
H([
|
|
20768
20765
|
w({ type: String })
|
|
20769
|
-
],
|
|
20766
|
+
], V.prototype, "paymentRequestId", 2);
|
|
20770
20767
|
H([
|
|
20771
20768
|
w({ type: String })
|
|
20772
|
-
],
|
|
20769
|
+
], V.prototype, "qrData", 2);
|
|
20773
20770
|
H([
|
|
20774
20771
|
w({ type: String })
|
|
20775
|
-
],
|
|
20772
|
+
], V.prototype, "wallet", 2);
|
|
20776
20773
|
H([
|
|
20777
20774
|
w({ type: String })
|
|
20778
|
-
],
|
|
20775
|
+
], V.prototype, "manualInput", 2);
|
|
20779
20776
|
H([
|
|
20780
20777
|
w({ type: String })
|
|
20781
|
-
],
|
|
20778
|
+
], V.prototype, "click2Pay", 2);
|
|
20782
20779
|
H([
|
|
20783
20780
|
w({ type: Boolean })
|
|
20784
|
-
],
|
|
20781
|
+
], V.prototype, "showQr", 2);
|
|
20785
20782
|
H([
|
|
20786
20783
|
w({ type: String })
|
|
20787
|
-
],
|
|
20784
|
+
], V.prototype, "masterLibUrl", 2);
|
|
20788
20785
|
H([
|
|
20789
20786
|
w({ type: Object })
|
|
20790
|
-
],
|
|
20787
|
+
], V.prototype, "initPayload", 2);
|
|
20791
20788
|
H([
|
|
20792
20789
|
w({ type: Boolean })
|
|
20793
|
-
],
|
|
20790
|
+
], V.prototype, "isLoading", 2);
|
|
20794
20791
|
H([
|
|
20795
20792
|
w({ type: Boolean })
|
|
20796
|
-
],
|
|
20793
|
+
], V.prototype, "showLearnMore", 2);
|
|
20797
20794
|
H([
|
|
20798
20795
|
w({ type: Boolean })
|
|
20799
|
-
],
|
|
20796
|
+
], V.prototype, "isError", 2);
|
|
20800
20797
|
H([
|
|
20801
20798
|
N()
|
|
20802
|
-
],
|
|
20799
|
+
], V.prototype, "_cards", 2);
|
|
20803
20800
|
H([
|
|
20804
20801
|
N()
|
|
20805
|
-
],
|
|
20802
|
+
], V.prototype, "_showDrawerComponent", 2);
|
|
20806
20803
|
H([
|
|
20807
20804
|
N()
|
|
20808
|
-
],
|
|
20805
|
+
], V.prototype, "_showInitialPanels", 2);
|
|
20809
20806
|
H([
|
|
20810
20807
|
N()
|
|
20811
|
-
],
|
|
20808
|
+
], V.prototype, "_showPersonalDataForm", 2);
|
|
20812
20809
|
H([
|
|
20813
20810
|
N()
|
|
20814
|
-
],
|
|
20811
|
+
], V.prototype, "_initResponse", 2);
|
|
20815
20812
|
H([
|
|
20816
20813
|
N()
|
|
20817
|
-
],
|
|
20814
|
+
], V.prototype, "_otpOptions", 2);
|
|
20818
20815
|
H([
|
|
20819
20816
|
N()
|
|
20820
|
-
],
|
|
20817
|
+
], V.prototype, "_otpError", 2);
|
|
20821
20818
|
H([
|
|
20822
20819
|
N()
|
|
20823
|
-
],
|
|
20820
|
+
], V.prototype, "_otpValidationChannel", 2);
|
|
20824
20821
|
H([
|
|
20825
20822
|
N()
|
|
20826
|
-
],
|
|
20823
|
+
], V.prototype, "_orderReview", 2);
|
|
20827
20824
|
H([
|
|
20828
20825
|
N()
|
|
20829
|
-
],
|
|
20826
|
+
], V.prototype, "_showOrderReview", 2);
|
|
20830
20827
|
H([
|
|
20831
20828
|
N()
|
|
20832
|
-
],
|
|
20829
|
+
], V.prototype, "_showOrderCompleted", 2);
|
|
20833
20830
|
H([
|
|
20834
20831
|
N()
|
|
20835
|
-
],
|
|
20832
|
+
], V.prototype, "_showC2pOtpInput", 2);
|
|
20836
20833
|
H([
|
|
20837
20834
|
N()
|
|
20838
|
-
],
|
|
20835
|
+
], V.prototype, "_showCardForm", 2);
|
|
20839
20836
|
H([
|
|
20840
20837
|
N()
|
|
20841
|
-
],
|
|
20838
|
+
], V.prototype, "_showC2pCardList", 2);
|
|
20842
20839
|
H([
|
|
20843
20840
|
N()
|
|
20844
|
-
],
|
|
20841
|
+
], V.prototype, "_isC2P", 2);
|
|
20845
20842
|
H([
|
|
20846
20843
|
N()
|
|
20847
|
-
],
|
|
20844
|
+
], V.prototype, "_loadingSub", 2);
|
|
20848
20845
|
H([
|
|
20849
20846
|
N()
|
|
20850
|
-
],
|
|
20847
|
+
], V.prototype, "_loadingMsg", 2);
|
|
20851
20848
|
H([
|
|
20852
20849
|
w({ type: String })
|
|
20853
|
-
],
|
|
20850
|
+
], V.prototype, "lastPanFour", 2);
|
|
20854
20851
|
H([
|
|
20855
20852
|
w({ type: String })
|
|
20856
|
-
],
|
|
20853
|
+
], V.prototype, "hasStatusPaymentRequest", 2);
|
|
20857
20854
|
H([
|
|
20858
20855
|
w()
|
|
20859
|
-
],
|
|
20856
|
+
], V.prototype, "orderData", 2);
|
|
20860
20857
|
H([
|
|
20861
20858
|
w()
|
|
20862
|
-
],
|
|
20859
|
+
], V.prototype, "digitalCardData", 2);
|
|
20863
20860
|
H([
|
|
20864
20861
|
w({ type: Boolean })
|
|
20865
|
-
],
|
|
20862
|
+
], V.prototype, "isSuccess", 2);
|
|
20863
|
+
H([
|
|
20864
|
+
w({ type: String })
|
|
20865
|
+
], V.prototype, "mode", 2);
|
|
20866
20866
|
H([
|
|
20867
20867
|
Ar({ context: tr, subscribe: !0 }),
|
|
20868
20868
|
N()
|
|
20869
|
-
],
|
|
20870
|
-
|
|
20869
|
+
], V.prototype, "_contextData", 2);
|
|
20870
|
+
V = H([
|
|
20871
20871
|
Q("app-home")
|
|
20872
|
-
],
|
|
20872
|
+
], V);
|
|
20873
20873
|
var O1 = Object.defineProperty, P1 = Object.getOwnPropertyDescriptor, Bt = (r, e, t, n) => {
|
|
20874
20874
|
for (var i = n > 1 ? void 0 : n ? P1(e, t) : e, o = r.length - 1, s; o >= 0; o--)
|
|
20875
20875
|
(s = r[o]) && (i = (n ? s(e, t, i) : s(i)) || i);
|
|
@@ -21011,7 +21011,7 @@ xt = Bt([
|
|
|
21011
21011
|
Q("ranty-sdk-min")
|
|
21012
21012
|
], xt);
|
|
21013
21013
|
export {
|
|
21014
|
-
|
|
21014
|
+
V as AppHome,
|
|
21015
21015
|
ui as AppLoading,
|
|
21016
21016
|
wr as CardHome,
|
|
21017
21017
|
Jt as CardPaymentDetail,
|
|
@@ -21026,12 +21026,12 @@ export {
|
|
|
21026
21026
|
br as DateOfBirth,
|
|
21027
21027
|
Ut as DniInput,
|
|
21028
21028
|
yo as DrawerComponent,
|
|
21029
|
-
|
|
21029
|
+
Yt as EmailInput,
|
|
21030
21030
|
vr as ExpiredInput,
|
|
21031
21031
|
pn as FooterComponent,
|
|
21032
21032
|
Pe as FormCreditCard,
|
|
21033
21033
|
_e as FormRentas,
|
|
21034
|
-
|
|
21034
|
+
Wt as NameInput,
|
|
21035
21035
|
Sn as PassportInput,
|
|
21036
21036
|
zr as PaymentSummary,
|
|
21037
21037
|
_r as PlanComponent,
|