@paynext/sdk 0.0.86 → 0.0.87
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/assets/index.css +1 -1
- package/dist/index.es.js +163 -159
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -103,7 +103,7 @@ const rn = (n = "sandbox") => ({
|
|
|
103
103
|
staging: "https://staging-api.paynext.com",
|
|
104
104
|
sandbox: "https://sandbox-api.paynext.com",
|
|
105
105
|
production: "https://api.paynext.com"
|
|
106
|
-
})[n],
|
|
106
|
+
})[n], zi = [
|
|
107
107
|
{
|
|
108
108
|
type: q.PAYPAL,
|
|
109
109
|
order: 1,
|
|
@@ -124,7 +124,7 @@ const rn = (n = "sandbox") => ({
|
|
|
124
124
|
order: 4,
|
|
125
125
|
is_active: !0
|
|
126
126
|
}
|
|
127
|
-
],
|
|
127
|
+
], ji = (n) => n.googlePay ? q.GOOGLE_PAY : n.applePay ? q.APPLE_PAY : n.paypal ? q.PAYPAL : n.braintree ? q.VENMO : q.CARD, Hi = (n) => {
|
|
128
128
|
const t = n.card;
|
|
129
129
|
if (t)
|
|
130
130
|
return {
|
|
@@ -218,7 +218,7 @@ const rn = (n = "sandbox") => ({
|
|
|
218
218
|
return (r = t == null ? void 0 : t.billingContact) != null && r.givenName ? `${t.billingContact.givenName} ${t.billingContact.familyName || ""}`.trim() : (a = e == null ? void 0 : e.metadata) == null ? void 0 : a.name;
|
|
219
219
|
}, $i = (n) => {
|
|
220
220
|
var r, a;
|
|
221
|
-
const t =
|
|
221
|
+
const t = ji(n), e = {
|
|
222
222
|
client_session: n.clientSession,
|
|
223
223
|
three_ds_session_id: n.threeDsSessionId,
|
|
224
224
|
type: t
|
|
@@ -274,7 +274,7 @@ const rn = (n = "sandbox") => ({
|
|
|
274
274
|
const r = `${rn(t)}/payments/config?client_session_id=${n}`, a = new Headers();
|
|
275
275
|
a.append("X-API-Version", e);
|
|
276
276
|
const s = yield (yield fetch(r, { headers: a })).json();
|
|
277
|
-
return s.checkout_config || (s.checkout_config =
|
|
277
|
+
return s.checkout_config || (s.checkout_config = zi), s;
|
|
278
278
|
});
|
|
279
279
|
let Zi = class {
|
|
280
280
|
constructor(t) {
|
|
@@ -599,9 +599,9 @@ function pa(n, i = {}, r, a) {
|
|
|
599
599
|
O.at !== void 0 && (p = xn(p, O.at, h, d));
|
|
600
600
|
let L = 0;
|
|
601
601
|
const I = (P, N, S, U = 0, G = 0) => {
|
|
602
|
-
const Y = ha(P), D = N, { delay: F = 0, times:
|
|
602
|
+
const Y = ha(P), D = N, { delay: F = 0, times: z = Nr(Y), type: j = "keyframes", repeat: ee, repeatType: M, repeatDelay: $ = 0 } = D, K = be(D, ["delay", "times", "type", "repeat", "repeatType", "repeatDelay"]);
|
|
603
603
|
let { ease: _ = t.ease || "easeOut", duration: g } = N;
|
|
604
|
-
const R = typeof F == "function" ? F(U, G) : F, V = Y.length, b = on(
|
|
604
|
+
const R = typeof F == "function" ? F(U, G) : F, V = Y.length, b = on(j) ? j : a == null ? void 0 : a[j];
|
|
605
605
|
if (V <= 2 && b) {
|
|
606
606
|
let A = 100;
|
|
607
607
|
if (V === 2 && va(Y)) {
|
|
@@ -615,22 +615,22 @@ function pa(n, i = {}, r, a) {
|
|
|
615
615
|
}
|
|
616
616
|
g != null || (g = o);
|
|
617
617
|
const w = p + R;
|
|
618
|
-
|
|
619
|
-
const E =
|
|
620
|
-
if (E > 0 && Or(
|
|
618
|
+
z.length === 1 && z[0] === 0 && (z[1] = 1);
|
|
619
|
+
const E = z.length - Y.length;
|
|
620
|
+
if (E > 0 && Or(z, E), Y.length === 1 && Y.unshift(null), ee) {
|
|
621
621
|
Ce(ee < da, "Repeat count too high, must be less than 20"), g = ra(g, ee);
|
|
622
|
-
const A = [...Y], B = [...
|
|
622
|
+
const A = [...Y], B = [...z];
|
|
623
623
|
_ = Array.isArray(_) ? [..._] : [_];
|
|
624
624
|
const X = [..._];
|
|
625
625
|
for (let ie = 0; ie < ee; ie++) {
|
|
626
626
|
Y.push(...A);
|
|
627
627
|
for (let k = 0; k < A.length; k++)
|
|
628
|
-
|
|
628
|
+
z.push(B[k] + (ie + 1)), _.push(k === 0 ? "linear" : wr(X, k - 1));
|
|
629
629
|
}
|
|
630
|
-
ca(
|
|
630
|
+
ca(z, ee);
|
|
631
631
|
}
|
|
632
632
|
const x = w + g;
|
|
633
|
-
oa(S, Y, _,
|
|
633
|
+
oa(S, Y, _, z, w, x), L = Math.max(R + g, L), f = Math.max(x, f);
|
|
634
634
|
};
|
|
635
635
|
if (fe(y)) {
|
|
636
636
|
const P = Pn(y, l);
|
|
@@ -1107,13 +1107,13 @@ function Sr(n, t) {
|
|
|
1107
1107
|
var e, r;
|
|
1108
1108
|
return (r = (e = n == null ? void 0 : n[t]) != null ? e : n == null ? void 0 : n.default) != null ? r : n;
|
|
1109
1109
|
}
|
|
1110
|
-
const Mr = (n) => (t) => typeof t == "string" && t.startsWith(n), Dr = /* @__PURE__ */ Mr("--"),
|
|
1110
|
+
const Mr = (n) => (t) => typeof t == "string" && t.startsWith(n), Dr = /* @__PURE__ */ Mr("--"), za = /* @__PURE__ */ Mr("var(--"), un = (n) => za(n) ? ja.test(n.split("/*")[0].trim()) : !1, ja = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Re = (n, t, e) => e > t ? t : e < n ? n : e, ze = {
|
|
1111
1111
|
test: (n) => typeof n == "number",
|
|
1112
1112
|
parse: parseFloat,
|
|
1113
1113
|
transform: (n) => n
|
|
1114
|
-
}, nt = J(H({},
|
|
1114
|
+
}, nt = J(H({}, ze), {
|
|
1115
1115
|
transform: (n) => Re(0, 1, n)
|
|
1116
|
-
}), pt = J(H({},
|
|
1116
|
+
}), pt = J(H({}, ze), {
|
|
1117
1117
|
default: 1
|
|
1118
1118
|
}), Ze = (n) => Math.round(n * 1e5) / 1e5, dn = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
1119
1119
|
function Ha(n) {
|
|
@@ -1129,7 +1129,7 @@ const Ka = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
1129
1129
|
[e]: parseFloat(s),
|
|
1130
1130
|
alpha: o !== void 0 ? parseFloat(o) : 1
|
|
1131
1131
|
};
|
|
1132
|
-
}, Wa = (n) => Re(0, 255, n), wt = J(H({},
|
|
1132
|
+
}, Wa = (n) => Re(0, 255, n), wt = J(H({}, ze), {
|
|
1133
1133
|
transform: (n) => Math.round(Wa(n))
|
|
1134
1134
|
}), Ne = {
|
|
1135
1135
|
test: /* @__PURE__ */ pn("rgb", "red"),
|
|
@@ -1183,7 +1183,7 @@ function rt(n) {
|
|
|
1183
1183
|
function Br(n) {
|
|
1184
1184
|
return rt(n).values;
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function zr(n) {
|
|
1187
1187
|
const { split: t, types: e } = rt(n), r = t.length;
|
|
1188
1188
|
return (a) => {
|
|
1189
1189
|
let i = "";
|
|
@@ -1198,12 +1198,12 @@ function jr(n) {
|
|
|
1198
1198
|
const es = (n) => typeof n == "number" ? 0 : n;
|
|
1199
1199
|
function ts(n) {
|
|
1200
1200
|
const t = Br(n);
|
|
1201
|
-
return
|
|
1201
|
+
return zr(n)(t.map(es));
|
|
1202
1202
|
}
|
|
1203
|
-
const
|
|
1203
|
+
const je = {
|
|
1204
1204
|
test: Qa,
|
|
1205
1205
|
parse: Br,
|
|
1206
|
-
createTransformer:
|
|
1206
|
+
createTransformer: zr,
|
|
1207
1207
|
getAnimatableNone: ts
|
|
1208
1208
|
};
|
|
1209
1209
|
function It(n, t, e) {
|
|
@@ -1245,18 +1245,18 @@ const Un = (n, t) => {
|
|
|
1245
1245
|
return bt(n, t);
|
|
1246
1246
|
const a = H({}, e);
|
|
1247
1247
|
return (i) => (a.red = Ot(e.red, r.red, i), a.green = Ot(e.green, r.green, i), a.blue = Ot(e.blue, r.blue, i), a.alpha = at(e.alpha, r.alpha, i), Ne.transform(a));
|
|
1248
|
-
},
|
|
1248
|
+
}, zt = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
1249
1249
|
function as(n, t) {
|
|
1250
|
-
return
|
|
1250
|
+
return zt.has(n) ? (e) => e <= 0 ? n : t : (e) => e >= 1 ? t : n;
|
|
1251
1251
|
}
|
|
1252
1252
|
const ss = (n, t) => (e) => t(n(e)), hn = (...n) => n.reduce(ss);
|
|
1253
1253
|
function os(n, t) {
|
|
1254
1254
|
return (e) => at(n, t, e);
|
|
1255
1255
|
}
|
|
1256
1256
|
function fn(n) {
|
|
1257
|
-
return typeof n == "number" ? os : typeof n == "string" ? un(n) ? bt : de.test(n) ? Un : us : Array.isArray(n) ?
|
|
1257
|
+
return typeof n == "number" ? os : typeof n == "string" ? un(n) ? bt : de.test(n) ? Un : us : Array.isArray(n) ? jr : typeof n == "object" ? de.test(n) ? Un : cs : bt;
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1259
|
+
function jr(n, t) {
|
|
1260
1260
|
const e = [...n], r = e.length, a = n.map((i, s) => fn(i)(i, t[s]));
|
|
1261
1261
|
return (i) => {
|
|
1262
1262
|
for (let s = 0; s < r; s++)
|
|
@@ -1284,8 +1284,8 @@ function ls(n, t) {
|
|
|
1284
1284
|
return e;
|
|
1285
1285
|
}
|
|
1286
1286
|
const us = (n, t) => {
|
|
1287
|
-
const e =
|
|
1288
|
-
return r.indexes.var.length === a.indexes.var.length && r.indexes.color.length === a.indexes.color.length && r.indexes.number.length >= a.indexes.number.length ?
|
|
1287
|
+
const e = je.createTransformer(t), r = rt(n), a = rt(t);
|
|
1288
|
+
return r.indexes.var.length === a.indexes.var.length && r.indexes.color.length === a.indexes.color.length && r.indexes.number.length >= a.indexes.number.length ? zt.has(n) && !a.values.length || zt.has(t) && !r.values.length ? as(n, t) : hn(jr(ls(r, a), a.values), e) : (st(!0, `Complex values '${n}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), bt(n, t));
|
|
1289
1289
|
};
|
|
1290
1290
|
function Hr(n, t, e) {
|
|
1291
1291
|
return typeof n == "number" && typeof t == "number" && typeof e == "number" ? at(n, t, e) : fn(n)(n, t);
|
|
@@ -1346,10 +1346,10 @@ function hs({ duration: n = ae.duration, bounce: t = ae.bounce, velocity: e = ae
|
|
|
1346
1346
|
st(n <= /* @__PURE__ */ Ee(ae.maxDuration), "Spring duration must be 10 seconds or less");
|
|
1347
1347
|
let s = 1 - t;
|
|
1348
1348
|
s = Re(ae.minDamping, ae.maxDamping, s), n = Re(ae.minDuration, ae.maxDuration, /* @__PURE__ */ _e(n)), s < 1 ? (a = (l) => {
|
|
1349
|
-
const u = l * s, d = u * n, h = u - e, p =
|
|
1349
|
+
const u = l * s, d = u * n, h = u - e, p = jt(l, s), f = Math.exp(-d);
|
|
1350
1350
|
return Nt - h / p * f;
|
|
1351
1351
|
}, i = (l) => {
|
|
1352
|
-
const d = l * s * n, h = d * e + e, p = Math.pow(s, 2) * Math.pow(l, 2) * n, f = Math.exp(-d), m =
|
|
1352
|
+
const d = l * s * n, h = d * e + e, p = Math.pow(s, 2) * Math.pow(l, 2) * n, f = Math.exp(-d), m = jt(Math.pow(l, 2), s);
|
|
1353
1353
|
return (-a(l) + Nt > 0 ? -1 : 1) * ((h - p) * f) / m;
|
|
1354
1354
|
}) : (a = (l) => {
|
|
1355
1355
|
const u = Math.exp(-l * n), d = (l - e) * n + 1;
|
|
@@ -1381,7 +1381,7 @@ function ms(n, t, e) {
|
|
|
1381
1381
|
r = r - n(r) / t(r);
|
|
1382
1382
|
return r;
|
|
1383
1383
|
}
|
|
1384
|
-
function
|
|
1384
|
+
function jt(n, t) {
|
|
1385
1385
|
return n * Math.sqrt(1 - t * t);
|
|
1386
1386
|
}
|
|
1387
1387
|
const vs = ["duration", "bounce"], gs = ["stiffness", "damping", "mass"];
|
|
@@ -1425,7 +1425,7 @@ function it(n = ae.visualDuration, t = ae.bounce) {
|
|
|
1425
1425
|
r || (r = T ? ae.restSpeed.granular : ae.restSpeed.default), a || (a = T ? ae.restDelta.granular : ae.restDelta.default);
|
|
1426
1426
|
let O;
|
|
1427
1427
|
if (m < 1) {
|
|
1428
|
-
const I =
|
|
1428
|
+
const I = jt(y, m);
|
|
1429
1429
|
O = (P) => {
|
|
1430
1430
|
const N = Math.exp(-m * y * P);
|
|
1431
1431
|
return s - N * ((f + m * y * v) / I * Math.sin(I * P) + v * Math.cos(I * P));
|
|
@@ -1547,7 +1547,7 @@ function ct(n, t, e, r) {
|
|
|
1547
1547
|
const a = (i) => Ts(i, 0, 1, n, e);
|
|
1548
1548
|
return (i) => i === 0 || i === 1 ? i : Gr(a(i), t, r);
|
|
1549
1549
|
}
|
|
1550
|
-
const ws = /* @__PURE__ */ ct(0.42, 0, 1, 1), Is = /* @__PURE__ */ ct(0, 0, 0.58, 1), Yr = /* @__PURE__ */ ct(0.42, 0, 0.58, 1), $r = (n) => (t) => t <= 0.5 ? n(2 * t) / 2 : (2 - n(2 * (1 - t))) / 2, qr = (n) => (t) => 1 - n(1 - t), Qr = /* @__PURE__ */ ct(0.33, 1.53, 0.69, 0.99), mn = /* @__PURE__ */ qr(Qr), Xr = /* @__PURE__ */ $r(mn), Zr = (n) => (n *= 2) < 1 ? 0.5 * mn(n) : 0.5 * (2 - Math.pow(2, -10 * (n - 1))), vn = (n) => 1 - Math.sin(Math.acos(n)), Os = qr(vn), Jr = $r(vn), ei = (n) => Array.isArray(n) && typeof n[0] == "number",
|
|
1550
|
+
const ws = /* @__PURE__ */ ct(0.42, 0, 1, 1), Is = /* @__PURE__ */ ct(0, 0, 0.58, 1), Yr = /* @__PURE__ */ ct(0.42, 0, 0.58, 1), $r = (n) => (t) => t <= 0.5 ? n(2 * t) / 2 : (2 - n(2 * (1 - t))) / 2, qr = (n) => (t) => 1 - n(1 - t), Qr = /* @__PURE__ */ ct(0.33, 1.53, 0.69, 0.99), mn = /* @__PURE__ */ qr(Qr), Xr = /* @__PURE__ */ $r(mn), Zr = (n) => (n *= 2) < 1 ? 0.5 * mn(n) : 0.5 * (2 - Math.pow(2, -10 * (n - 1))), vn = (n) => 1 - Math.sin(Math.acos(n)), Os = qr(vn), Jr = $r(vn), ei = (n) => Array.isArray(n) && typeof n[0] == "number", zn = {
|
|
1551
1551
|
linear: Fe,
|
|
1552
1552
|
easeIn: ws,
|
|
1553
1553
|
easeInOut: Yr,
|
|
@@ -1559,20 +1559,20 @@ const ws = /* @__PURE__ */ ct(0.42, 0, 1, 1), Is = /* @__PURE__ */ ct(0, 0, 0.58
|
|
|
1559
1559
|
backInOut: Xr,
|
|
1560
1560
|
backOut: Qr,
|
|
1561
1561
|
anticipate: Zr
|
|
1562
|
-
}, Ns = (n) => typeof n == "string",
|
|
1562
|
+
}, Ns = (n) => typeof n == "string", jn = (n) => {
|
|
1563
1563
|
if (ei(n)) {
|
|
1564
1564
|
Ce(n.length === 4, "Cubic bezier arrays must contain four numerical values.");
|
|
1565
1565
|
const [t, e, r, a] = n;
|
|
1566
1566
|
return ct(t, e, r, a);
|
|
1567
1567
|
} else if (Ns(n))
|
|
1568
|
-
return Ce(
|
|
1568
|
+
return Ce(zn[n] !== void 0, `Invalid easing type '${n}'`), zn[n];
|
|
1569
1569
|
return n;
|
|
1570
1570
|
};
|
|
1571
1571
|
function Ls(n, t) {
|
|
1572
1572
|
return n.map(() => t || Yr).splice(0, n.length - 1);
|
|
1573
1573
|
}
|
|
1574
1574
|
function Me({ duration: n = 300, keyframes: t, times: e, ease: r = "easeInOut" }) {
|
|
1575
|
-
const a = Tr(r) ? r.map(
|
|
1575
|
+
const a = Tr(r) ? r.map(jn) : jn(r), i = {
|
|
1576
1576
|
done: !1,
|
|
1577
1577
|
value: t[0]
|
|
1578
1578
|
}, s = _s(
|
|
@@ -1804,7 +1804,7 @@ const Ds = (n, t) => {
|
|
|
1804
1804
|
function Vs(n) {
|
|
1805
1805
|
return parseFloat(n.trim());
|
|
1806
1806
|
}
|
|
1807
|
-
const Gn = (n) => n ===
|
|
1807
|
+
const Gn = (n) => n === ze || n === Z, Fs = /* @__PURE__ */ new Set(["x", "y", "z"]), Us = Ue.filter((n) => !Fs.has(n));
|
|
1808
1808
|
function Bs(n) {
|
|
1809
1809
|
const t = [];
|
|
1810
1810
|
return Us.forEach((e) => {
|
|
@@ -1852,7 +1852,7 @@ function ri() {
|
|
|
1852
1852
|
n.readKeyframes(), n.needsMeasurement && (qt = !0);
|
|
1853
1853
|
});
|
|
1854
1854
|
}
|
|
1855
|
-
function
|
|
1855
|
+
function zs() {
|
|
1856
1856
|
Qt = !0, ri(), ni(), Qt = !1;
|
|
1857
1857
|
}
|
|
1858
1858
|
class En {
|
|
@@ -1894,9 +1894,9 @@ class En {
|
|
|
1894
1894
|
this.state === "pending" && this.scheduleResolve();
|
|
1895
1895
|
}
|
|
1896
1896
|
}
|
|
1897
|
-
const
|
|
1897
|
+
const js = (n) => n.startsWith("--");
|
|
1898
1898
|
function Hs(n, t, e) {
|
|
1899
|
-
|
|
1899
|
+
js(t) ? n.style.setProperty(t, e) : n.style[t] = e;
|
|
1900
1900
|
}
|
|
1901
1901
|
// @__NO_SIDE_EFFECTS__
|
|
1902
1902
|
function _n(n) {
|
|
@@ -2087,7 +2087,7 @@ class Zs extends qs {
|
|
|
2087
2087
|
}
|
|
2088
2088
|
}
|
|
2089
2089
|
const qn = (n, t) => t === "zIndex" ? !1 : !!(typeof n == "number" || Array.isArray(n) || typeof n == "string" && // It's animatable if we have a string
|
|
2090
|
-
(
|
|
2090
|
+
(je.test(n) || n === "0") && // And it contains numbers and/or colors
|
|
2091
2091
|
!n.startsWith("url("));
|
|
2092
2092
|
function Js(n) {
|
|
2093
2093
|
const t = n[0];
|
|
@@ -2177,7 +2177,7 @@ class so extends yn {
|
|
|
2177
2177
|
}
|
|
2178
2178
|
get animation() {
|
|
2179
2179
|
var t;
|
|
2180
|
-
return this._animation || ((t = this.keyframeResolver) == null || t.resume(),
|
|
2180
|
+
return this._animation || ((t = this.keyframeResolver) == null || t.resume(), zs()), this._animation;
|
|
2181
2181
|
}
|
|
2182
2182
|
get duration() {
|
|
2183
2183
|
return this.animation.duration;
|
|
@@ -2394,7 +2394,7 @@ function Eo(n, t, e) {
|
|
|
2394
2394
|
const pi = (n) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n), hi = (n) => /^0[^.\s]+$/u.test(n), _o = {
|
|
2395
2395
|
test: (n) => n === "auto",
|
|
2396
2396
|
parse: (n) => n
|
|
2397
|
-
}, fi = (n) => (t) => t.test(n), mi = [
|
|
2397
|
+
}, fi = (n) => (t) => t.test(n), mi = [ze, Z, De, Ie, $a, Ya, _o], Zn = (n) => mi.find(fi(n)), Co = [...mi, de, je], Ao = (n) => Co.find(fi(n)), To = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
2398
2398
|
function wo(n) {
|
|
2399
2399
|
const [t, e] = n.slice(0, -1).split("(");
|
|
2400
2400
|
if (t === "drop-shadow")
|
|
@@ -2406,12 +2406,12 @@ function wo(n) {
|
|
|
2406
2406
|
let i = To.has(t) ? 1 : 0;
|
|
2407
2407
|
return r !== e && (i *= 100), t + "(" + i + a + ")";
|
|
2408
2408
|
}
|
|
2409
|
-
const Io = /\b([a-z-]*)\(.*?\)/gu, Jt = J(H({},
|
|
2409
|
+
const Io = /\b([a-z-]*)\(.*?\)/gu, Jt = J(H({}, je), {
|
|
2410
2410
|
getAnimatableNone: (n) => {
|
|
2411
2411
|
const t = n.match(Io);
|
|
2412
2412
|
return t ? t.map(wo).join(" ") : n;
|
|
2413
2413
|
}
|
|
2414
|
-
}), Jn = J(H({},
|
|
2414
|
+
}), Jn = J(H({}, ze), {
|
|
2415
2415
|
transform: Math.round
|
|
2416
2416
|
}), Oo = {
|
|
2417
2417
|
rotate: Ie,
|
|
@@ -2498,7 +2498,7 @@ const Io = /\b([a-z-]*)\(.*?\)/gu, Jt = J(H({}, ze), {
|
|
|
2498
2498
|
}), vi = (n) => No[n];
|
|
2499
2499
|
function gi(n, t) {
|
|
2500
2500
|
let e = vi(n);
|
|
2501
|
-
return e !== Jt && (e =
|
|
2501
|
+
return e !== Jt && (e = je), e.getAnimatableNone ? e.getAnimatableNone(t) : void 0;
|
|
2502
2502
|
}
|
|
2503
2503
|
const er = [
|
|
2504
2504
|
"AnimationStart",
|
|
@@ -2671,7 +2671,7 @@ class yi {
|
|
|
2671
2671
|
readValue(t, e) {
|
|
2672
2672
|
var a;
|
|
2673
2673
|
let r = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : (a = this.getBaseTargetFromProps(this.props, t)) != null ? a : this.readValueFromInstance(this.current, t, this.options);
|
|
2674
|
-
return r != null && (typeof r == "string" && (pi(r) || hi(r)) ? r = parseFloat(r) : !Ao(r) &&
|
|
2674
|
+
return r != null && (typeof r == "string" && (pi(r) || hi(r)) ? r = parseFloat(r) : !Ao(r) && je.test(e) && (r = gi(t, e)), this.setBaseTarget(t, fe(r) ? r.get() : r)), fe(r) ? r.get() : r;
|
|
2675
2675
|
}
|
|
2676
2676
|
/**
|
|
2677
2677
|
* Set the base target to later animate back to. This is currently
|
|
@@ -2879,10 +2879,10 @@ function Ti(n, t, e) {
|
|
|
2879
2879
|
(fe(r[s]) || t.style && fe(t.style[s]) || Bo(s, n) || ((i = e == null ? void 0 : e.getValue(s)) == null ? void 0 : i.liveStyle) !== void 0) && (a[s] = r[s]);
|
|
2880
2880
|
return a;
|
|
2881
2881
|
}
|
|
2882
|
-
function
|
|
2882
|
+
function zo(n) {
|
|
2883
2883
|
return window.getComputedStyle(n);
|
|
2884
2884
|
}
|
|
2885
|
-
class
|
|
2885
|
+
class jo extends Ei {
|
|
2886
2886
|
constructor() {
|
|
2887
2887
|
super(...arguments), this.type = "html", this.renderInstance = Ai;
|
|
2888
2888
|
}
|
|
@@ -2891,7 +2891,7 @@ class zo extends Ei {
|
|
|
2891
2891
|
if (Be.has(e))
|
|
2892
2892
|
return (r = this.projection) != null && r.isProjecting ? Gt(e) : Ds(t, e);
|
|
2893
2893
|
{
|
|
2894
|
-
const a =
|
|
2894
|
+
const a = zo(t), i = (Dr(e) ? a.getPropertyValue(e) : a[e]) || 0;
|
|
2895
2895
|
return typeof i == "string" ? i.trim() : i;
|
|
2896
2896
|
}
|
|
2897
2897
|
}
|
|
@@ -3062,7 +3062,7 @@ function ec(n) {
|
|
|
3062
3062
|
},
|
|
3063
3063
|
latestValues: {}
|
|
3064
3064
|
}
|
|
3065
|
-
}, e = Ii(n) && !Jo(n) ? new Zo(t) : new
|
|
3065
|
+
}, e = Ii(n) && !Jo(n) ? new Zo(t) : new jo(t);
|
|
3066
3066
|
e.mount(n), et.set(n, e);
|
|
3067
3067
|
}
|
|
3068
3068
|
function tc(n) {
|
|
@@ -3188,7 +3188,7 @@ function cc(n) {
|
|
|
3188
3188
|
}
|
|
3189
3189
|
return t;
|
|
3190
3190
|
}
|
|
3191
|
-
const ce = cc(), lc = "
|
|
3191
|
+
const ce = cc(), lc = "_spinner_4n5ur_1", uc = "_spinnerContainer_4n5ur_5", dc = "_success_4n5ur_9", pc = "_successContainer_4n5ur_14", hc = "_container_4n5ur_57", fc = "_card_4n5ur_66", mc = "_warning_4n5ur_75", vc = "_svg_4n5ur_83", gc = "_srOnly_4n5ur_88", yc = "_backButton_4n5ur_92", ne = {
|
|
3192
3192
|
spinner: lc,
|
|
3193
3193
|
spinnerContainer: uc,
|
|
3194
3194
|
success: dc,
|
|
@@ -3735,7 +3735,7 @@ const Et = [
|
|
|
3735
3735
|
cardType: (r == null ? void 0 : r.name) || null,
|
|
3736
3736
|
error: le.Invalid
|
|
3737
3737
|
};
|
|
3738
|
-
},
|
|
3738
|
+
}, zc = (n) => {
|
|
3739
3739
|
var t;
|
|
3740
3740
|
return n ? typeof n.amount != "number" ? (console.error("Transaction amount is missing or invalid for Google Pay"), null) : n.currency ? n.country ? n.merchant_id ? n.checkout_config && !((t = n.checkout_config) == null ? void 0 : t.find(
|
|
3741
3741
|
({ is_active: r, type: a }) => r && a === q.GOOGLE_PAY
|
|
@@ -3746,7 +3746,7 @@ const Et = [
|
|
|
3746
3746
|
merchantId: n.merchant_id,
|
|
3747
3747
|
lineItems: []
|
|
3748
3748
|
} : (console.error("Transaction merchant_id is missing for Google Pay"), null) : (console.error("Transaction country is missing for Google Pay"), null) : (console.error("Transaction currency is missing for Google Pay"), null) : (console.error("TransactionConfig is missing for Google Pay"), null);
|
|
3749
|
-
},
|
|
3749
|
+
}, jc = (n) => {
|
|
3750
3750
|
var t, e;
|
|
3751
3751
|
return n ? typeof n.amount != "number" ? (console.error("Transaction amount is missing or invalid for Apple Pay"), null) : n.currency ? n.country ? n.merchant_id ? n.checkout_config && !((t = n.checkout_config) == null ? void 0 : t.find(
|
|
3752
3752
|
({ is_active: a, type: i }) => a && i === q.APPLE_PAY
|
|
@@ -4050,7 +4050,7 @@ function $c() {
|
|
|
4050
4050
|
var A = R.children;
|
|
4051
4051
|
if (A !== void 0)
|
|
4052
4052
|
if (b)
|
|
4053
|
-
if (
|
|
4053
|
+
if (z(A)) {
|
|
4054
4054
|
for (b = 0; b < A.length; b++)
|
|
4055
4055
|
d(A[b]);
|
|
4056
4056
|
Object.freeze && Object.freeze(A);
|
|
@@ -4099,7 +4099,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
4099
4099
|
function d(g) {
|
|
4100
4100
|
typeof g == "object" && g !== null && g.$$typeof === p && g._store && (g._store.validated = 1);
|
|
4101
4101
|
}
|
|
4102
|
-
var h = Fi, p = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), O = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), G = Symbol.for("react.client.reference"), Y = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty,
|
|
4102
|
+
var h = Fi, p = Symbol.for("react.transitional.element"), f = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), T = Symbol.for("react.consumer"), O = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), I = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), G = Symbol.for("react.client.reference"), Y = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, F = Object.prototype.hasOwnProperty, z = Array.isArray, j = console.createTask ? console.createTask : function() {
|
|
4103
4103
|
return null;
|
|
4104
4104
|
};
|
|
4105
4105
|
h = {
|
|
@@ -4110,7 +4110,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
4110
4110
|
var ee, M = {}, $ = h.react_stack_bottom_frame.bind(
|
|
4111
4111
|
h,
|
|
4112
4112
|
i
|
|
4113
|
-
)(), K =
|
|
4113
|
+
)(), K = j(r(i)), _ = {};
|
|
4114
4114
|
Qe.Fragment = m, Qe.jsx = function(g, R, V, b, w) {
|
|
4115
4115
|
var E = 1e4 > Y.recentlyCreatedOwnerStacks++;
|
|
4116
4116
|
return u(
|
|
@@ -4121,7 +4121,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
4121
4121
|
b,
|
|
4122
4122
|
w,
|
|
4123
4123
|
E ? Error("react-stack-top-frame") : $,
|
|
4124
|
-
E ?
|
|
4124
|
+
E ? j(r(g)) : K
|
|
4125
4125
|
);
|
|
4126
4126
|
}, Qe.jsxs = function(g, R, V, b, w) {
|
|
4127
4127
|
var E = 1e4 > Y.recentlyCreatedOwnerStacks++;
|
|
@@ -4133,7 +4133,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
4133
4133
|
b,
|
|
4134
4134
|
w,
|
|
4135
4135
|
E ? Error("react-stack-top-frame") : $,
|
|
4136
|
-
E ?
|
|
4136
|
+
E ? j(r(g)) : K
|
|
4137
4137
|
);
|
|
4138
4138
|
};
|
|
4139
4139
|
}()), Qe;
|
|
@@ -4178,7 +4178,7 @@ class Zc {
|
|
|
4178
4178
|
init(t) {
|
|
4179
4179
|
return W(this, null, function* () {
|
|
4180
4180
|
if (!this.config) return !1;
|
|
4181
|
-
const e = this.config.state.transaction.getState(), r = this.config.state.translate.locale(), a =
|
|
4181
|
+
const e = this.config.state.transaction.getState(), r = this.config.state.translate.locale(), a = jc(e);
|
|
4182
4182
|
if (!a)
|
|
4183
4183
|
return !1;
|
|
4184
4184
|
const i = t ? J(H({}, t), {
|
|
@@ -4256,7 +4256,7 @@ class nl {
|
|
|
4256
4256
|
init(t) {
|
|
4257
4257
|
return W(this, null, function* () {
|
|
4258
4258
|
if (!this.config) return !1;
|
|
4259
|
-
const e = this.config.state.transaction.getState(), r = this.config.state.translate.locale(), a =
|
|
4259
|
+
const e = this.config.state.transaction.getState(), r = this.config.state.translate.locale(), a = zc(e);
|
|
4260
4260
|
if (!a)
|
|
4261
4261
|
return !1;
|
|
4262
4262
|
const i = t ? J(H({}, t), {
|
|
@@ -4957,10 +4957,10 @@ class Ul {
|
|
|
4957
4957
|
return this.toggleLabelError(r), this.isDisabled ? (this.inputContainer.classList.add(se.disabled), this.input.classList.add(se.disabledInput)) : (this.inputContainer.classList.remove(se.disabled), this.input.classList.remove(se.disabledInput)), this.element;
|
|
4958
4958
|
}
|
|
4959
4959
|
}
|
|
4960
|
-
const Bl = "_wrapper_1dxfo_1",
|
|
4960
|
+
const Bl = "_wrapper_1dxfo_1", zl = "_inputContainer_1dxfo_5", jl = "_errorInput_1dxfo_23", Hl = "_disabled_1dxfo_23", Kl = "_input_1dxfo_5", Wl = "_endContent_1dxfo_32", Gl = "_error_1dxfo_23", Yl = "_label_1dxfo_44", $l = "_labelError_1dxfo_48", ql = "_disabledInput_1dxfo_56", Ql = "_hidden_1dxfo_63", re = {
|
|
4961
4961
|
wrapper: Bl,
|
|
4962
|
-
inputContainer:
|
|
4963
|
-
errorInput:
|
|
4962
|
+
inputContainer: zl,
|
|
4963
|
+
errorInput: jl,
|
|
4964
4964
|
disabled: Hl,
|
|
4965
4965
|
input: Kl,
|
|
4966
4966
|
endContent: Wl,
|
|
@@ -5496,7 +5496,7 @@ class vu {
|
|
|
5496
5496
|
a.setFullYear(2e3 + parseInt(s), parseInt(i) - 1, 31);
|
|
5497
5497
|
const o = a.getTime() < Date.now(), c = /* @__PURE__ */ new Date(), l = /* @__PURE__ */ new Date();
|
|
5498
5498
|
l.setFullYear(c.getFullYear() + 50);
|
|
5499
|
-
const u = a.getTime() > l.getTime();
|
|
5499
|
+
const u = a.getTime() > l.getTime() || a.getFullYear() < c.getFullYear();
|
|
5500
5500
|
return !e && !r && !o && !u ? null : e ? le.Empty : r ? le.Incomplete : u ? "tooFarInFuture" : a.getFullYear() === (/* @__PURE__ */ new Date()).getFullYear() ? "dateExpired" : "expired";
|
|
5501
5501
|
}
|
|
5502
5502
|
validateExpiry(t) {
|
|
@@ -5506,7 +5506,7 @@ class vu {
|
|
|
5506
5506
|
this.expiryErrorMessage = "", this.isExpiryRequired = !0;
|
|
5507
5507
|
else {
|
|
5508
5508
|
let a = e.card.expiry.error.invalid;
|
|
5509
|
-
r === "expired" ? a = e.card.expiry.error.expired.replace("{date}", "year") : r === "dateExpired" ? a = e.card.expiry.error.expired.replace("{date}", "
|
|
5509
|
+
r === "expired" ? a = e.card.expiry.error.expired.replace("{date}", "year") : r === "dateExpired" ? a = e.card.expiry.error.expired.replace("{date}", t.replace(/ /g, "")) : r === "tooFarInFuture" ? a = e.card.expiry.error.tooFarInFuture : r === le.Incomplete && (a = e.card.expiry.error.incomplete), this.isExpiryRequired = !1, this.expiryErrorMessage = a;
|
|
5510
5510
|
}
|
|
5511
5511
|
return this.render(), !r;
|
|
5512
5512
|
}
|
|
@@ -5685,7 +5685,7 @@ class _u {
|
|
|
5685
5685
|
return this.element;
|
|
5686
5686
|
}
|
|
5687
5687
|
}
|
|
5688
|
-
const Cu = "
|
|
5688
|
+
const Cu = "_container_1e7lb_1", Au = "_title_1e7lb_11", vr = {
|
|
5689
5689
|
container: Cu,
|
|
5690
5690
|
title: Au
|
|
5691
5691
|
}, Je = class Je {
|
|
@@ -5698,12 +5698,15 @@ const Cu = "_container_1cz9d_1", Au = "_title_1cz9d_10", vr = {
|
|
|
5698
5698
|
this.hasCustomMessage || (this.message.textContent = e.status.error);
|
|
5699
5699
|
}), Je.instances.add(this);
|
|
5700
5700
|
}
|
|
5701
|
+
// set message
|
|
5701
5702
|
setMessage(t) {
|
|
5702
5703
|
this.message.textContent = t, this.hasCustomMessage = !!t;
|
|
5703
5704
|
}
|
|
5705
|
+
// add class name
|
|
5704
5706
|
addClassName(t) {
|
|
5705
5707
|
this.element.classList.add(t);
|
|
5706
5708
|
}
|
|
5709
|
+
// remove class name
|
|
5707
5710
|
removeClassName(t) {
|
|
5708
5711
|
this.element.classList.remove(t);
|
|
5709
5712
|
}
|
|
@@ -5720,6 +5723,7 @@ const Cu = "_container_1cz9d_1", Au = "_title_1cz9d_10", vr = {
|
|
|
5720
5723
|
for (const t of Je.instances)
|
|
5721
5724
|
t.element.style.display = "none";
|
|
5722
5725
|
}
|
|
5726
|
+
// render alert
|
|
5723
5727
|
render() {
|
|
5724
5728
|
return this.element;
|
|
5725
5729
|
}
|
|
@@ -5920,13 +5924,13 @@ class Tu {
|
|
|
5920
5924
|
const t = this.checkout.getBoundingClientRect().height;
|
|
5921
5925
|
this.checkout.style.height = `${t}px`;
|
|
5922
5926
|
const e = this.checkout.animate(
|
|
5923
|
-
{ minHeight: [`${t}px`, `${this.
|
|
5927
|
+
{ minHeight: [`${t}px`, `${this.closedHeight}px`] },
|
|
5924
5928
|
{ duration: 250, easing: "ease-out", fill: "forwards" }
|
|
5925
5929
|
);
|
|
5926
|
-
e.onfinish = () => {
|
|
5927
|
-
this.
|
|
5930
|
+
this.checkout.style.height = "auto", e.onfinish = () => {
|
|
5931
|
+
this.errorPrevHeight = null;
|
|
5928
5932
|
}, e.oncancel = () => {
|
|
5929
|
-
this.
|
|
5933
|
+
this.errorPrevHeight = null;
|
|
5930
5934
|
};
|
|
5931
5935
|
}
|
|
5932
5936
|
}
|
|
@@ -6518,7 +6522,7 @@ const Pu = {
|
|
|
6518
6522
|
error: "Ang iyong paraan ng pagbabayad ay tinanggihan. Maaaring dahil ito sa hindi sapat na pondo, nag-expire na mga detalye ng pagbabayad, o mga paghihigpit sa seguridad. Pakisuri ang iyong mga detalye ng pagbabayad o subukang ibang paraan ng pagbabayad.",
|
|
6519
6523
|
invalidSession: "Ang iyong sesyon ng pagbabayad ay nag-expire na. Paki-refresh ang pahina upang magpatuloy."
|
|
6520
6524
|
}
|
|
6521
|
-
},
|
|
6525
|
+
}, zu = {
|
|
6522
6526
|
card: {
|
|
6523
6527
|
required: "OBLIGATOIRE",
|
|
6524
6528
|
number: {
|
|
@@ -6561,7 +6565,7 @@ const Pu = {
|
|
|
6561
6565
|
error: "Votre moyen de paiement a été refusé. Cela peut être dû à des fonds insuffisants, des détails de paiement expirés ou des restrictions de sécurité. Veuillez vérifier vos détails de paiement ou essayer un autre moyen de paiement.",
|
|
6562
6566
|
invalidSession: "Votre session de paiement a expiré. Veuillez actualiser la page pour continuer."
|
|
6563
6567
|
}
|
|
6564
|
-
},
|
|
6568
|
+
}, ju = {
|
|
6565
6569
|
card: {
|
|
6566
6570
|
required: "POTREBNO",
|
|
6567
6571
|
number: {
|
|
@@ -7605,8 +7609,8 @@ const Pu = {
|
|
|
7605
7609
|
et: Fu,
|
|
7606
7610
|
fi: Uu,
|
|
7607
7611
|
fil: Bu,
|
|
7608
|
-
fr:
|
|
7609
|
-
hr:
|
|
7612
|
+
fr: zu,
|
|
7613
|
+
hr: ju,
|
|
7610
7614
|
hu: Hu,
|
|
7611
7615
|
id: Ku,
|
|
7612
7616
|
it: Wu,
|
|
@@ -8160,32 +8164,32 @@ function Td() {
|
|
|
8160
8164
|
function Y() {
|
|
8161
8165
|
return window == null ? void 0 : window.braintree;
|
|
8162
8166
|
}
|
|
8163
|
-
var F,
|
|
8167
|
+
var F, z, j = {
|
|
8164
8168
|
Client: "client",
|
|
8165
8169
|
HostedCardFields: "hostedFields"
|
|
8166
|
-
}, ee = "braintree", M = (F = {}, F[
|
|
8170
|
+
}, ee = "braintree", M = (F = {}, F[j.Client] = "client", F[j.HostedCardFields] = "hosted-fields", F), $ = (z = {}, z[j.Client] = {
|
|
8167
8171
|
id: "client",
|
|
8168
|
-
module:
|
|
8172
|
+
module: j.Client,
|
|
8169
8173
|
amdModule: {
|
|
8170
|
-
unminified: "".concat(ee, "/").concat(M[
|
|
8171
|
-
minified: "".concat(ee, "/").concat(M[
|
|
8174
|
+
unminified: "".concat(ee, "/").concat(M[j.Client]),
|
|
8175
|
+
minified: "".concat(ee, "/").concat(M[j.Client], ".min")
|
|
8172
8176
|
},
|
|
8173
8177
|
script: {
|
|
8174
|
-
unminified: "".concat(M[
|
|
8175
|
-
minified: "".concat(M[
|
|
8178
|
+
unminified: "".concat(M[j.Client], ".js"),
|
|
8179
|
+
minified: "".concat(M[j.Client], ".min.js")
|
|
8176
8180
|
}
|
|
8177
|
-
}, j
|
|
8181
|
+
}, z[j.HostedCardFields] = {
|
|
8178
8182
|
id: "hcf",
|
|
8179
|
-
module:
|
|
8183
|
+
module: j.HostedCardFields,
|
|
8180
8184
|
amdModule: {
|
|
8181
|
-
unminified: "".concat(ee, "/").concat(M[
|
|
8182
|
-
minified: "".concat(ee, "/").concat(M[
|
|
8185
|
+
unminified: "".concat(ee, "/").concat(M[j.HostedCardFields]),
|
|
8186
|
+
minified: "".concat(ee, "/").concat(M[j.HostedCardFields], ".min")
|
|
8183
8187
|
},
|
|
8184
8188
|
script: {
|
|
8185
|
-
unminified: "".concat(M[
|
|
8186
|
-
minified: "".concat(M[
|
|
8189
|
+
unminified: "".concat(M[j.HostedCardFields], ".js"),
|
|
8190
|
+
minified: "".concat(M[j.HostedCardFields], ".min.js")
|
|
8187
8191
|
}
|
|
8188
|
-
},
|
|
8192
|
+
}, z);
|
|
8189
8193
|
function K(b) {
|
|
8190
8194
|
return s(this, void 0, void 0, function() {
|
|
8191
8195
|
var w, E, x, D;
|
|
@@ -8253,7 +8257,7 @@ function Td() {
|
|
|
8253
8257
|
});
|
|
8254
8258
|
}, {}], 9: [function(e, r, a) {
|
|
8255
8259
|
var i = e("./constants").BRAINTREE_VERSION, s = e("./request/graphql"), o = e("./request"), c = e("../lib/is-verified-domain"), l = e("../lib/braintree-error"), u = e("../lib/convert-to-braintree-error"), d = e("./get-configuration").getConfiguration, h = e("../lib/create-authorization-data"), p = e("../lib/add-metadata"), f = e("@braintree/wrap-promise"), m = e("../lib/once"), v = e("../lib/deferred"), y = e("../lib/assign").assign, T = e("../lib/analytics"), O = e("./errors"), L = e("../lib/constants").VERSION, I = e("../lib/constants").GRAPHQL_URLS, P = e("../lib/methods"), N = e("../lib/convert-methods-to-error"), S = e("../lib/assets"), U = e("../lib/constants").FRAUDNET_FNCLS, G = e("../lib/constants").FRAUDNET_SOURCE, Y = e("../lib/constants").FRAUDNET_URL, F = {};
|
|
8256
|
-
function
|
|
8260
|
+
function z(M) {
|
|
8257
8261
|
var $, K;
|
|
8258
8262
|
if (M = M || {}, $ = JSON.stringify(M), K = M.gatewayConfiguration, !K)
|
|
8259
8263
|
throw new l(O.CLIENT_MISSING_GATEWAY_CONFIGURATION);
|
|
@@ -8278,7 +8282,7 @@ function Td() {
|
|
|
8278
8282
|
});
|
|
8279
8283
|
}
|
|
8280
8284
|
}
|
|
8281
|
-
|
|
8285
|
+
z.initialize = function(M) {
|
|
8282
8286
|
var $, K, _ = F[M.authorization];
|
|
8283
8287
|
if (_)
|
|
8284
8288
|
return T.sendEvent(_, "custom.client.load.cached"), _;
|
|
@@ -8291,16 +8295,16 @@ function Td() {
|
|
|
8291
8295
|
}
|
|
8292
8296
|
return _ = d(K, M.sessionId).then(
|
|
8293
8297
|
function(g) {
|
|
8294
|
-
return M.debug && (g.isDebug = !0), g.authorization = M.authorization, $ = new
|
|
8298
|
+
return M.debug && (g.isDebug = !0), g.authorization = M.authorization, $ = new z(g), $;
|
|
8295
8299
|
}
|
|
8296
8300
|
), F[M.authorization] = _, T.sendEvent(_, "custom.client.load.initialized"), _.then(function(g) {
|
|
8297
8301
|
return T.sendEvent($, "custom.client.load.succeeded"), g;
|
|
8298
8302
|
}).catch(function(g) {
|
|
8299
8303
|
return delete F[M.authorization], Promise.reject(g);
|
|
8300
8304
|
});
|
|
8301
|
-
},
|
|
8305
|
+
}, z.clearCache = function() {
|
|
8302
8306
|
F = {};
|
|
8303
|
-
},
|
|
8307
|
+
}, z.prototype._findOrCreateFraudnetJSON = function(M) {
|
|
8304
8308
|
var $ = document.querySelector('script[fncls="' + U + '"]'), K, _, g, R;
|
|
8305
8309
|
$ || ($ = document.body.appendChild(document.createElement("script")), $.type = "application/json", $.setAttribute("fncls", U)), K = this.getConfiguration(), _ = {
|
|
8306
8310
|
rda_tenant: "bt_card",
|
|
@@ -8315,7 +8319,7 @@ function Td() {
|
|
|
8315
8319
|
bu: !1,
|
|
8316
8320
|
s: G
|
|
8317
8321
|
}, $.text = JSON.stringify(R);
|
|
8318
|
-
},
|
|
8322
|
+
}, z.prototype.request = function(M, $) {
|
|
8319
8323
|
var K = this, _ = new Promise(function(g, R) {
|
|
8320
8324
|
var V, b, w, E, x = !!(M.endpoint === "payment_methods/credit_cards" && K.getConfiguration().gatewayConfiguration.creditCards.collectDeviceData);
|
|
8321
8325
|
if (M.api !== "graphQLApi" && (M.method ? M.endpoint || (V = "options.endpoint") : V = "options.method"), V)
|
|
@@ -8359,7 +8363,7 @@ function Td() {
|
|
|
8359
8363
|
T.sendEvent(K, D);
|
|
8360
8364
|
}, K._request(E, function(D, A, B) {
|
|
8361
8365
|
var X, ie;
|
|
8362
|
-
if (ie =
|
|
8366
|
+
if (ie = j(B, D), ie) {
|
|
8363
8367
|
R(ie);
|
|
8364
8368
|
return;
|
|
8365
8369
|
}
|
|
@@ -8390,7 +8394,7 @@ function Td() {
|
|
|
8390
8394
|
}
|
|
8391
8395
|
return _;
|
|
8392
8396
|
};
|
|
8393
|
-
function
|
|
8397
|
+
function j(M, $) {
|
|
8394
8398
|
var K;
|
|
8395
8399
|
if (M === -1 ? K = new l(O.CLIENT_REQUEST_TIMEOUT) : M === 401 ? K = new l(O.CLIENT_AUTHORIZATION_INVALID) : M === 403 ? K = new l(O.CLIENT_AUTHORIZATION_INSUFFICIENT) : M === 429 ? K = new l(O.CLIENT_RATE_LIMITED) : M >= 500 ? K = new l(O.CLIENT_GATEWAY_NETWORK) : (M < 200 || M >= 400) && (K = u($, {
|
|
8396
8400
|
type: O.CLIENT_REQUEST_ERROR.type,
|
|
@@ -8399,13 +8403,13 @@ function Td() {
|
|
|
8399
8403
|
})), K)
|
|
8400
8404
|
return K.details = K.details || {}, K.details.httpStatus = M, K;
|
|
8401
8405
|
}
|
|
8402
|
-
|
|
8406
|
+
z.prototype.toJSON = function() {
|
|
8403
8407
|
return this.getConfiguration();
|
|
8404
|
-
},
|
|
8408
|
+
}, z.prototype.getVersion = function() {
|
|
8405
8409
|
return L;
|
|
8406
|
-
},
|
|
8410
|
+
}, z.prototype.teardown = f(function() {
|
|
8407
8411
|
var M = this;
|
|
8408
|
-
return delete F[M.getConfiguration().authorization], N(M, P(
|
|
8412
|
+
return delete F[M.getConfiguration().authorization], N(M, P(z.prototype)), Promise.resolve();
|
|
8409
8413
|
});
|
|
8410
8414
|
function ee(M) {
|
|
8411
8415
|
var $ = M.authorizationFingerprint || M.authorization;
|
|
@@ -8414,7 +8418,7 @@ function Td() {
|
|
|
8414
8418
|
"Braintree-Version": i
|
|
8415
8419
|
};
|
|
8416
8420
|
}
|
|
8417
|
-
r.exports =
|
|
8421
|
+
r.exports = z;
|
|
8418
8422
|
}, { "../lib/add-metadata": 29, "../lib/analytics": 30, "../lib/assets": 31, "../lib/assign": 32, "../lib/braintree-error": 33, "../lib/constants": 34, "../lib/convert-methods-to-error": 35, "../lib/convert-to-braintree-error": 36, "../lib/create-authorization-data": 37, "../lib/deferred": 38, "../lib/is-verified-domain": 43, "../lib/methods": 45, "../lib/once": 46, "./constants": 10, "./errors": 11, "./get-configuration": 12, "./request": 25, "./request/graphql": 23, "@braintree/wrap-promise": 7 }], 10: [function(e, r, a) {
|
|
8419
8423
|
r.exports = {
|
|
8420
8424
|
BRAINTREE_VERSION: "2018-05-10"
|
|
@@ -8509,13 +8513,13 @@ function Td() {
|
|
|
8509
8513
|
features: ["configuration"]
|
|
8510
8514
|
}
|
|
8511
8515
|
}), N.metadata = U), o(N, function(G, Y, F) {
|
|
8512
|
-
var
|
|
8516
|
+
var z;
|
|
8513
8517
|
if (G) {
|
|
8514
|
-
F === 403 ?
|
|
8518
|
+
F === 403 ? z = u.CLIENT_AUTHORIZATION_INSUFFICIENT : F === 401 ? z = u.CLIENT_AUTHORIZATION_INVALID : z = u.CLIENT_GATEWAY_NETWORK, O(
|
|
8515
8519
|
new i({
|
|
8516
|
-
type:
|
|
8517
|
-
code:
|
|
8518
|
-
message:
|
|
8520
|
+
type: z.type,
|
|
8521
|
+
code: z.code,
|
|
8522
|
+
message: z.message,
|
|
8519
8523
|
details: {
|
|
8520
8524
|
originalError: G
|
|
8521
8525
|
}
|
|
@@ -8564,11 +8568,11 @@ function Td() {
|
|
|
8564
8568
|
return L === "UNKNOWN" || L === "INTERNAL";
|
|
8565
8569
|
}
|
|
8566
8570
|
function y(O, L, I) {
|
|
8567
|
-
var P, N, S, U, G, Y, F,
|
|
8571
|
+
var P, N, S, U, G, Y, F, z = O.url, j = O.graphQL, ee = O.timeout, M = l.getRequestObject(), $ = I, K = !!(j && j.isGraphQLRequest(z, O.data));
|
|
8568
8572
|
O.headers = s(
|
|
8569
8573
|
{ "Content-Type": "application/json" },
|
|
8570
8574
|
O.headers
|
|
8571
|
-
), K ? S = new d(O) : S = new h(O),
|
|
8575
|
+
), K ? S = new d(O) : S = new h(O), z = S.getUrl(), U = S.getBody(), G = S.getMethod(), Y = S.getHeaders(), G === "GET" && (z = i.queryify(z, U), U = null), u ? M.onreadystatechange = function() {
|
|
8572
8576
|
if (M.readyState === 4) {
|
|
8573
8577
|
if (M.status === 0 && K) {
|
|
8574
8578
|
delete O.graphQL, y(O, L, I);
|
|
@@ -8587,7 +8591,7 @@ function Td() {
|
|
|
8587
8591
|
} else
|
|
8588
8592
|
$(null, N, P);
|
|
8589
8593
|
}
|
|
8590
|
-
} : (O.headers && (
|
|
8594
|
+
} : (O.headers && (z = i.queryify(z, Y)), M.onload = function() {
|
|
8591
8595
|
$(null, c(M.responseText), M.status);
|
|
8592
8596
|
}, M.onerror = function() {
|
|
8593
8597
|
$("error", null, 500);
|
|
@@ -8596,7 +8600,7 @@ function Td() {
|
|
|
8596
8600
|
$("timeout", null, -1);
|
|
8597
8601
|
});
|
|
8598
8602
|
try {
|
|
8599
|
-
M.open(G,
|
|
8603
|
+
M.open(G, z, !0);
|
|
8600
8604
|
} catch (_) {
|
|
8601
8605
|
if (!K)
|
|
8602
8606
|
throw _;
|
|
@@ -9829,32 +9833,32 @@ function Od() {
|
|
|
9829
9833
|
function Y() {
|
|
9830
9834
|
return window == null ? void 0 : window.braintree;
|
|
9831
9835
|
}
|
|
9832
|
-
var F,
|
|
9836
|
+
var F, z, j = {
|
|
9833
9837
|
Client: "client",
|
|
9834
9838
|
HostedCardFields: "hostedFields"
|
|
9835
|
-
}, ee = "braintree", M = (F = {}, F[
|
|
9839
|
+
}, ee = "braintree", M = (F = {}, F[j.Client] = "client", F[j.HostedCardFields] = "hosted-fields", F), $ = (z = {}, z[j.Client] = {
|
|
9836
9840
|
id: "client",
|
|
9837
|
-
module:
|
|
9841
|
+
module: j.Client,
|
|
9838
9842
|
amdModule: {
|
|
9839
|
-
unminified: "".concat(ee, "/").concat(M[
|
|
9840
|
-
minified: "".concat(ee, "/").concat(M[
|
|
9843
|
+
unminified: "".concat(ee, "/").concat(M[j.Client]),
|
|
9844
|
+
minified: "".concat(ee, "/").concat(M[j.Client], ".min")
|
|
9841
9845
|
},
|
|
9842
9846
|
script: {
|
|
9843
|
-
unminified: "".concat(M[
|
|
9844
|
-
minified: "".concat(M[
|
|
9847
|
+
unminified: "".concat(M[j.Client], ".js"),
|
|
9848
|
+
minified: "".concat(M[j.Client], ".min.js")
|
|
9845
9849
|
}
|
|
9846
|
-
}, j
|
|
9850
|
+
}, z[j.HostedCardFields] = {
|
|
9847
9851
|
id: "hcf",
|
|
9848
|
-
module:
|
|
9852
|
+
module: j.HostedCardFields,
|
|
9849
9853
|
amdModule: {
|
|
9850
|
-
unminified: "".concat(ee, "/").concat(M[
|
|
9851
|
-
minified: "".concat(ee, "/").concat(M[
|
|
9854
|
+
unminified: "".concat(ee, "/").concat(M[j.HostedCardFields]),
|
|
9855
|
+
minified: "".concat(ee, "/").concat(M[j.HostedCardFields], ".min")
|
|
9852
9856
|
},
|
|
9853
9857
|
script: {
|
|
9854
|
-
unminified: "".concat(M[
|
|
9855
|
-
minified: "".concat(M[
|
|
9858
|
+
unminified: "".concat(M[j.HostedCardFields], ".js"),
|
|
9859
|
+
minified: "".concat(M[j.HostedCardFields], ".min.js")
|
|
9856
9860
|
}
|
|
9857
|
-
},
|
|
9861
|
+
}, z);
|
|
9858
9862
|
function K(b) {
|
|
9859
9863
|
return s(this, void 0, void 0, function() {
|
|
9860
9864
|
var w, E, x, D;
|
|
@@ -10746,32 +10750,32 @@ function xd() {
|
|
|
10746
10750
|
function Y() {
|
|
10747
10751
|
return window == null ? void 0 : window.braintree;
|
|
10748
10752
|
}
|
|
10749
|
-
var F,
|
|
10753
|
+
var F, z, j = {
|
|
10750
10754
|
Client: "client",
|
|
10751
10755
|
HostedCardFields: "hostedFields"
|
|
10752
|
-
}, ee = "braintree", M = (F = {}, F[
|
|
10756
|
+
}, ee = "braintree", M = (F = {}, F[j.Client] = "client", F[j.HostedCardFields] = "hosted-fields", F), $ = (z = {}, z[j.Client] = {
|
|
10753
10757
|
id: "client",
|
|
10754
|
-
module:
|
|
10758
|
+
module: j.Client,
|
|
10755
10759
|
amdModule: {
|
|
10756
|
-
unminified: "".concat(ee, "/").concat(M[
|
|
10757
|
-
minified: "".concat(ee, "/").concat(M[
|
|
10760
|
+
unminified: "".concat(ee, "/").concat(M[j.Client]),
|
|
10761
|
+
minified: "".concat(ee, "/").concat(M[j.Client], ".min")
|
|
10758
10762
|
},
|
|
10759
10763
|
script: {
|
|
10760
|
-
unminified: "".concat(M[
|
|
10761
|
-
minified: "".concat(M[
|
|
10764
|
+
unminified: "".concat(M[j.Client], ".js"),
|
|
10765
|
+
minified: "".concat(M[j.Client], ".min.js")
|
|
10762
10766
|
}
|
|
10763
|
-
}, j
|
|
10767
|
+
}, z[j.HostedCardFields] = {
|
|
10764
10768
|
id: "hcf",
|
|
10765
|
-
module:
|
|
10769
|
+
module: j.HostedCardFields,
|
|
10766
10770
|
amdModule: {
|
|
10767
|
-
unminified: "".concat(ee, "/").concat(M[
|
|
10768
|
-
minified: "".concat(ee, "/").concat(M[
|
|
10771
|
+
unminified: "".concat(ee, "/").concat(M[j.HostedCardFields]),
|
|
10772
|
+
minified: "".concat(ee, "/").concat(M[j.HostedCardFields], ".min")
|
|
10769
10773
|
},
|
|
10770
10774
|
script: {
|
|
10771
|
-
unminified: "".concat(M[
|
|
10772
|
-
minified: "".concat(M[
|
|
10775
|
+
unminified: "".concat(M[j.HostedCardFields], ".js"),
|
|
10776
|
+
minified: "".concat(M[j.HostedCardFields], ".min.js")
|
|
10773
10777
|
}
|
|
10774
|
-
},
|
|
10778
|
+
}, z);
|
|
10775
10779
|
function K(b) {
|
|
10776
10780
|
return s(this, void 0, void 0, function() {
|
|
10777
10781
|
var w, E, x, D;
|
|
@@ -12332,23 +12336,23 @@ function xd() {
|
|
|
12332
12336
|
};
|
|
12333
12337
|
o.suppressUnhandledPromiseMessage = !0;
|
|
12334
12338
|
function v(N) {
|
|
12335
|
-
var S = N.frameServiceInstance, U = N.venmoUrl, G = N.checkForStatusChange, Y = N.cancelTokenization, F = N.checkPaymentContextStatus,
|
|
12339
|
+
var S = N.frameServiceInstance, U = N.venmoUrl, G = N.checkForStatusChange, Y = N.cancelTokenization, F = N.checkPaymentContextStatus, z = new o();
|
|
12336
12340
|
return document.getElementById(m.continueButton).addEventListener("click", function() {
|
|
12337
12341
|
S.focus();
|
|
12338
12342
|
}), document.getElementById(m.cancelButton).addEventListener("click", function() {
|
|
12339
12343
|
S.close(), Y(), T();
|
|
12340
|
-
}), S.open({}, function(
|
|
12344
|
+
}), S.open({}, function(j) {
|
|
12341
12345
|
var ee = 1;
|
|
12342
|
-
|
|
12343
|
-
|
|
12346
|
+
j ? z.reject(j) : G(ee).then(function(M) {
|
|
12347
|
+
z.resolve(M);
|
|
12344
12348
|
}).catch(function(M) {
|
|
12345
12349
|
F().then(function($) {
|
|
12346
|
-
$.status === "CREATED" ?
|
|
12350
|
+
$.status === "CREATED" ? z.reject(
|
|
12347
12351
|
new l(c.VENMO_CUSTOMER_CANCELED)
|
|
12348
|
-
) :
|
|
12352
|
+
) : z.reject(M);
|
|
12349
12353
|
});
|
|
12350
12354
|
}), S.close(), T();
|
|
12351
|
-
}), S.redirect(U),
|
|
12355
|
+
}), S.redirect(U), z;
|
|
12352
12356
|
}
|
|
12353
12357
|
function y() {
|
|
12354
12358
|
var N = Math.round((window.outerHeight - f) / 2) + window.screenTop, S = Math.round((window.outerWidth - p) / 2) + window.screenLeft;
|
|
@@ -12437,23 +12441,23 @@ function xd() {
|
|
|
12437
12441
|
"margin-top: 16px;",
|
|
12438
12442
|
"width: 400px;",
|
|
12439
12443
|
"}"
|
|
12440
|
-
],
|
|
12444
|
+
], z = N.concat(
|
|
12441
12445
|
S,
|
|
12442
12446
|
U,
|
|
12443
12447
|
G,
|
|
12444
12448
|
Y,
|
|
12445
12449
|
F
|
|
12446
12450
|
);
|
|
12447
|
-
return
|
|
12451
|
+
return z.join(`
|
|
12448
12452
|
`);
|
|
12449
12453
|
}
|
|
12450
12454
|
function L(N) {
|
|
12451
|
-
var S = document.getElementById(m.backdrop), U, G, Y, F,
|
|
12455
|
+
var S = document.getElementById(m.backdrop), U, G, Y, F, z, j, ee, M;
|
|
12452
12456
|
if (S) {
|
|
12453
12457
|
S.classList.remove("hidden");
|
|
12454
12458
|
return;
|
|
12455
12459
|
}
|
|
12456
|
-
U = document.createElement("style"), G = document.createElement("div"), Y = document.createElement("div"), F = document.createElement("div"),
|
|
12460
|
+
U = document.createElement("style"), G = document.createElement("div"), Y = document.createElement("div"), F = document.createElement("div"), z = document.createElement("div"), j = document.createElement("div"), ee = document.createElement("button"), M = document.createElement("button"), N && (U.nonce = N), U.id = "venmo-desktop-web__injected-styles", U.innerHTML = O(), G.id = m.backdrop, Y.id = m.backdropContainer, F.id = m.venmoLogo, F.innerHTML = d, z.id = m.message, z.innerText = "What would you like to do?", j.id = m.instructions, j.innerText = h, ee.id = m.continueButton, ee.innerText = "Continue payment", M.id = m.cancelButton, M.innerText = "Cancel payment", document.head.appendChild(U), Y.appendChild(F), Y.appendChild(z), Y.appendChild(j), Y.appendChild(ee), Y.appendChild(M), G.appendChild(Y), document.body.appendChild(G), G.addEventListener("click", function($) {
|
|
12457
12461
|
$.stopPropagation();
|
|
12458
12462
|
});
|
|
12459
12463
|
}
|
|
@@ -12461,19 +12465,19 @@ function xd() {
|
|
|
12461
12465
|
return L(N.styleCspNonce), v(N);
|
|
12462
12466
|
}
|
|
12463
12467
|
function P(N) {
|
|
12464
|
-
var S = new o(), U = "venmoDesktopWebLogin", G = N.assetsUrl, Y = N.debug || !1, F = y(),
|
|
12468
|
+
var S = new o(), U = "venmoDesktopWebLogin", G = N.assetsUrl, Y = N.debug || !1, F = y(), z = G + "/web/" + u + "/html";
|
|
12465
12469
|
return i.create(
|
|
12466
12470
|
{
|
|
12467
12471
|
name: U,
|
|
12468
|
-
dispatchFrameUrl:
|
|
12469
|
-
openFrameUrl:
|
|
12472
|
+
dispatchFrameUrl: z + "/dispatch-frame" + s(Y) + ".html",
|
|
12473
|
+
openFrameUrl: z + "/venmo-landing-frame" + s(Y) + ".html",
|
|
12470
12474
|
top: F.top,
|
|
12471
12475
|
left: F.left,
|
|
12472
12476
|
height: f,
|
|
12473
12477
|
width: p
|
|
12474
12478
|
},
|
|
12475
|
-
function(
|
|
12476
|
-
S.resolve(
|
|
12479
|
+
function(j) {
|
|
12480
|
+
S.resolve(j);
|
|
12477
12481
|
}
|
|
12478
12482
|
), S;
|
|
12479
12483
|
}
|
|
@@ -12552,7 +12556,7 @@ function xd() {
|
|
|
12552
12556
|
new v({
|
|
12553
12557
|
type: u.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.type,
|
|
12554
12558
|
code: u.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.code,
|
|
12555
|
-
message:
|
|
12559
|
+
message: z(x) ? x.details.originalError[0].message : u.VENMO_MOBILE_PAYMENT_CONTEXT_SETUP_FAILED.message,
|
|
12556
12560
|
details: {
|
|
12557
12561
|
originalError: x
|
|
12558
12562
|
}
|
|
@@ -12566,7 +12570,7 @@ function xd() {
|
|
|
12566
12570
|
});
|
|
12567
12571
|
}));
|
|
12568
12572
|
}
|
|
12569
|
-
function
|
|
12573
|
+
function z(_) {
|
|
12570
12574
|
return _.details && _.details.originalError && _.details.originalError[0] && _.details.originalError[0].extensions && _.details.originalError[0].extensions.errorClass === "VALIDATION" && _.details.originalError[0].extensions.errorType === "user_error";
|
|
12571
12575
|
}
|
|
12572
12576
|
F.prototype._createVenmoPaymentContext = function(_, g) {
|
|
@@ -12682,7 +12686,7 @@ function xd() {
|
|
|
12682
12686
|
}, F.prototype.hasTokenizationResult = function() {
|
|
12683
12687
|
return this._hasTokenizationResult();
|
|
12684
12688
|
}, F.prototype._hasTokenizationResult = function(_) {
|
|
12685
|
-
var g =
|
|
12689
|
+
var g = j(_), R = P.getUrlParams();
|
|
12686
12690
|
return R.resource_id ? this._venmoPaymentContextId = R.resource_id : g.id && (this._venmoPaymentContextId = g.id), typeof (g.venmoSuccess || g.venmoError || g.venmoCancel) != "undefined";
|
|
12687
12691
|
}, F.prototype._shouldIncludeReturnUrls = function() {
|
|
12688
12692
|
return this._deepLinkReturnUrl ? !0 : !this._cannotHaveReturnUrls;
|
|
@@ -13013,7 +13017,7 @@ function xd() {
|
|
|
13013
13017
|
this._visibilityChangeListener
|
|
13014
13018
|
), delete this._visibilityChangeListener, delete this._onHashChangeListener;
|
|
13015
13019
|
}, F.prototype.processHashChangeFlowResults = function(_) {
|
|
13016
|
-
var g = this, R =
|
|
13020
|
+
var g = this, R = j(_);
|
|
13017
13021
|
return new Promise(function(V, b) {
|
|
13018
13022
|
g._shouldUseLegacyFlow ? R.venmoSuccess ? (i.sendEvent(
|
|
13019
13023
|
g._createPromise,
|
|
@@ -13077,7 +13081,7 @@ function xd() {
|
|
|
13077
13081
|
window.location.href.slice(0, window.location.href.indexOf("#"))
|
|
13078
13082
|
);
|
|
13079
13083
|
};
|
|
13080
|
-
function
|
|
13084
|
+
function j(_) {
|
|
13081
13085
|
var g = (_ || window.location.hash.substring(1)).split("&"), R = g.reduce(function(V, b) {
|
|
13082
13086
|
var w = b.split("="), E = decodeURIComponent(w[0]).replace(/\W/g, ""), x = I(E), D = decodeURIComponent(w[1]);
|
|
13083
13087
|
return V[x] = D, V;
|