@paynext/sdk 0.0.50 → 0.0.52
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/README.md +4 -0
- package/dist/index.d.ts +8 -47
- package/dist/index.es.js +53 -52
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +9 -9
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -6,11 +6,6 @@ import { PayPalButtonsComponentOptions } from '@paypal/paypal-js';
|
|
|
6
6
|
import { PayPalScriptOptions } from '@paypal/paypal-js';
|
|
7
7
|
import { Venmo } from 'braintree-web/venmo';
|
|
8
8
|
|
|
9
|
-
export declare interface Amount {
|
|
10
|
-
readonly currency: string;
|
|
11
|
-
readonly value: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
9
|
declare type ApplePayButtonLocale = 'ar-AB' | 'ca-ES' | 'cs-CZ' | 'da-DK' | 'de-DE' | 'el-GR' | 'en-AU' | 'en-GB' | 'en-US' | 'es-ES' | 'es-MX' | 'fi-FI' | 'fr-CA' | 'fr-FR' | 'he-IL' | 'hi-IN' | 'hr-HR' | 'hu-HU' | 'id-ID' | 'it-IT' | 'ja-JP' | 'ko-KR' | 'ms-MY' | 'nb-NO' | 'nl-NL' | 'pl-PL' | 'pt-BR' | 'pt-PT' | 'ro-RO' | 'ru-RU' | 'sk-SK' | 'sv-SE' | 'th-TH' | 'tr-TR' | 'uk-UA' | 'vi-VN' | 'zh-CN' | 'zh-HK' | 'zh-TW';
|
|
15
10
|
|
|
16
11
|
declare type ApplePayCardNetwork = 'amex' | 'bancomat' | 'bancontact' | 'cartesBancaires' | 'chinaUnionPay' | 'dankort' | 'discover' | 'eftpos' | 'electron' | 'elo' | 'girocard' | 'interac' | 'jcb' | 'mada' | 'maestro' | 'masterCard' | 'mir' | 'privateLabel' | 'visa' | 'vPay';
|
|
@@ -36,8 +31,6 @@ declare interface ApplePayTransaction {
|
|
|
36
31
|
}>;
|
|
37
32
|
}
|
|
38
33
|
|
|
39
|
-
declare type Attributes = Record<string, unknown>;
|
|
40
|
-
|
|
41
34
|
declare class BraintreeService {
|
|
42
35
|
private client;
|
|
43
36
|
private venmoInstance;
|
|
@@ -50,22 +43,6 @@ declare class BraintreeService {
|
|
|
50
43
|
tokenize(): Promise<VenmoTokenizePayload>;
|
|
51
44
|
}
|
|
52
45
|
|
|
53
|
-
export declare interface Card {
|
|
54
|
-
readonly currency?: string;
|
|
55
|
-
readonly country?: string;
|
|
56
|
-
readonly funding?: string;
|
|
57
|
-
readonly issuer?: string;
|
|
58
|
-
readonly firstSixDigits: string;
|
|
59
|
-
readonly lastFourDigits: string;
|
|
60
|
-
readonly expMonth: number;
|
|
61
|
-
readonly expYear: number;
|
|
62
|
-
readonly cardBrand: string;
|
|
63
|
-
readonly number: string;
|
|
64
|
-
readonly cvc: string;
|
|
65
|
-
readonly type: PaymentType;
|
|
66
|
-
readonly metadata?: Attributes;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
46
|
export declare enum CardType {
|
|
70
47
|
Visa = "visa",
|
|
71
48
|
Mastercard = "mastercard",
|
|
@@ -77,7 +54,7 @@ export declare enum CardType {
|
|
|
77
54
|
Maestro = "maestro"
|
|
78
55
|
}
|
|
79
56
|
|
|
80
|
-
|
|
57
|
+
declare interface CheckoutConfig {
|
|
81
58
|
type: 'paypal' | 'apple-pay' | 'google-pay' | 'card' | 'venmo';
|
|
82
59
|
order: number;
|
|
83
60
|
is_active: boolean;
|
|
@@ -105,11 +82,6 @@ declare class CheckoutModule {
|
|
|
105
82
|
mount(): Promise<HTMLElement>;
|
|
106
83
|
}
|
|
107
84
|
|
|
108
|
-
export declare interface CheckoutResponse extends Partial<PaymentResult> {
|
|
109
|
-
error?: string;
|
|
110
|
-
three_ds_session_id?: string;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
85
|
declare class CheckoutState extends State<PayNextConfig> {
|
|
114
86
|
constructor(state?: PayNextConfig);
|
|
115
87
|
}
|
|
@@ -238,7 +210,7 @@ declare interface GooglePayTransaction {
|
|
|
238
210
|
}>;
|
|
239
211
|
}
|
|
240
212
|
|
|
241
|
-
|
|
213
|
+
declare interface InputStyles {
|
|
242
214
|
field?: {
|
|
243
215
|
styles?: CSSProperties;
|
|
244
216
|
className?: string;
|
|
@@ -421,10 +393,6 @@ export declare interface PaymentResult {
|
|
|
421
393
|
};
|
|
422
394
|
}
|
|
423
395
|
|
|
424
|
-
declare enum PaymentType {
|
|
425
|
-
Card = "CARD"
|
|
426
|
-
}
|
|
427
|
-
|
|
428
396
|
export declare class PayNextCheckout {
|
|
429
397
|
private readonly parent;
|
|
430
398
|
private readonly core;
|
|
@@ -463,13 +431,11 @@ declare abstract class State<TState> {
|
|
|
463
431
|
subscribe(listener: Listener<TState>): Unsubscribe;
|
|
464
432
|
}
|
|
465
433
|
|
|
466
|
-
declare interface StylesConfig {
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
className?: string;
|
|
472
|
-
};
|
|
434
|
+
export declare interface StylesConfig {
|
|
435
|
+
Input?: InputStyles;
|
|
436
|
+
SubmitButton?: {
|
|
437
|
+
styles?: CSSProperties;
|
|
438
|
+
className?: string;
|
|
473
439
|
};
|
|
474
440
|
}
|
|
475
441
|
|
|
@@ -486,7 +452,7 @@ declare interface ThreeDsConfig {
|
|
|
486
452
|
readonly onError?: () => void;
|
|
487
453
|
}
|
|
488
454
|
|
|
489
|
-
|
|
455
|
+
declare interface TransactionConfig {
|
|
490
456
|
amount: number;
|
|
491
457
|
currency: string;
|
|
492
458
|
country: string;
|
|
@@ -511,11 +477,6 @@ export declare interface TransactionConfig {
|
|
|
511
477
|
};
|
|
512
478
|
}
|
|
513
479
|
|
|
514
|
-
export declare interface TransactionConfigResponse extends TransactionConfig {
|
|
515
|
-
code: number;
|
|
516
|
-
success: boolean;
|
|
517
|
-
}
|
|
518
|
-
|
|
519
480
|
declare class TransactionState extends State<TransactionConfig | null> {
|
|
520
481
|
private clientToken;
|
|
521
482
|
constructor(state?: TransactionConfig);
|
package/dist/index.es.js
CHANGED
|
@@ -2,7 +2,7 @@ var Ra = Object.defineProperty, Sa = Object.defineProperties;
|
|
|
2
2
|
var ka = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var ht = Object.getOwnPropertySymbols;
|
|
4
4
|
var Nr = Object.prototype.hasOwnProperty, xr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var It = (n, e, t) => e in n ? Ra(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t,
|
|
5
|
+
var It = (n, e, t) => e in n ? Ra(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Y = (n, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
7
|
Nr.call(e, t) && It(n, t, e[t]);
|
|
8
8
|
if (ht)
|
|
@@ -343,7 +343,7 @@ function an(n) {
|
|
|
343
343
|
}
|
|
344
344
|
const ye = /* @__NO_SIDE_EFFECTS__ */ (n) => n * 1e3, Ee = /* @__NO_SIDE_EFFECTS__ */ (n) => n / 1e3;
|
|
345
345
|
function Ti(n, e = 100, t) {
|
|
346
|
-
const r = t(te(
|
|
346
|
+
const r = t(te(Y({}, n), { keyframes: [0, e] })), i = Math.min(an(r), _t);
|
|
347
347
|
return {
|
|
348
348
|
type: "keyframes",
|
|
349
349
|
ease: (a) => r.next(i * a).value / e,
|
|
@@ -386,7 +386,7 @@ function Za(n, a = {}, r, i) {
|
|
|
386
386
|
const re = q[1] - q[0];
|
|
387
387
|
N = Math.abs(re);
|
|
388
388
|
}
|
|
389
|
-
const H =
|
|
389
|
+
const H = Y({}, z);
|
|
390
390
|
E !== void 0 && (H.duration = /* @__PURE__ */ ye(E));
|
|
391
391
|
const X = Ti(H, N, _);
|
|
392
392
|
g = X.ease, E = X.duration;
|
|
@@ -438,7 +438,7 @@ function Za(n, a = {}, r, i) {
|
|
|
438
438
|
transition: {}
|
|
439
439
|
});
|
|
440
440
|
const I = l.get(v);
|
|
441
|
-
I.keyframes[y] = T, I.transition[y] =
|
|
441
|
+
I.keyframes[y] = T, I.transition[y] = Y(te(Y({}, e), {
|
|
442
442
|
duration: m,
|
|
443
443
|
ease: A,
|
|
444
444
|
times: x
|
|
@@ -456,7 +456,7 @@ function Xa(n) {
|
|
|
456
456
|
return Array.isArray(n) ? n : [n];
|
|
457
457
|
}
|
|
458
458
|
function Ja(n, e) {
|
|
459
|
-
return n && n[e] ?
|
|
459
|
+
return n && n[e] ? Y(Y({}, n), n[e]) : Y({}, n);
|
|
460
460
|
}
|
|
461
461
|
const es = (n) => typeof n == "number", ts = (n) => n.every(es), it = /* @__PURE__ */ new WeakMap(), ns = (n) => Array.isArray(n);
|
|
462
462
|
function Sr(n) {
|
|
@@ -814,7 +814,7 @@ function ds(n) {
|
|
|
814
814
|
}
|
|
815
815
|
function ps(n, e) {
|
|
816
816
|
let s = rs(n, e) || {}, { transitionEnd: r = {}, transition: i = {} } = s, a = ge(s, ["transitionEnd", "transition"]);
|
|
817
|
-
a =
|
|
817
|
+
a = Y(Y({}, a), r);
|
|
818
818
|
for (const o in a) {
|
|
819
819
|
const l = ds(a[o]);
|
|
820
820
|
us(n, o, l);
|
|
@@ -889,9 +889,9 @@ const Pi = (n) => (e) => typeof e == "string" && e.startsWith(n), Ri = /* @__PUR
|
|
|
889
889
|
test: (n) => typeof n == "number",
|
|
890
890
|
parse: parseFloat,
|
|
891
891
|
transform: (n) => n
|
|
892
|
-
}, st = te(
|
|
892
|
+
}, st = te(Y({}, Ue), {
|
|
893
893
|
transform: (n) => Le(0, 1, n)
|
|
894
|
-
}), vt = te(
|
|
894
|
+
}), vt = te(Y({}, Ue), {
|
|
895
895
|
default: 1
|
|
896
896
|
}), rt = (n) => Math.round(n * 1e5) / 1e5, ln = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
897
897
|
function Ns(n) {
|
|
@@ -907,7 +907,7 @@ const xs = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
907
907
|
[t]: parseFloat(s),
|
|
908
908
|
alpha: o !== void 0 ? parseFloat(o) : 1
|
|
909
909
|
};
|
|
910
|
-
}, Ls = (n) => Le(0, 255, n), Ot = te(
|
|
910
|
+
}, Ls = (n) => Le(0, 255, n), Ot = te(Y({}, Ue), {
|
|
911
911
|
transform: (n) => Math.round(Ls(n))
|
|
912
912
|
}), Ie = {
|
|
913
913
|
test: /* @__PURE__ */ cn("rgb", "red"),
|
|
@@ -931,7 +931,7 @@ const Ut = {
|
|
|
931
931
|
test: (e) => typeof e == "string" && e.endsWith(n) && e.split(" ").length === 1,
|
|
932
932
|
parse: parseFloat,
|
|
933
933
|
transform: (e) => `${e}${n}`
|
|
934
|
-
}), we = /* @__PURE__ */ dt("deg"), ke = /* @__PURE__ */ dt("%"), $ = /* @__PURE__ */ dt("px"), Rs = /* @__PURE__ */ dt("vh"), Ss = /* @__PURE__ */ dt("vw"), Dr = te(
|
|
934
|
+
}), we = /* @__PURE__ */ dt("deg"), ke = /* @__PURE__ */ dt("%"), $ = /* @__PURE__ */ dt("px"), Rs = /* @__PURE__ */ dt("vh"), Ss = /* @__PURE__ */ dt("vw"), Dr = te(Y({}, ke), {
|
|
935
935
|
parse: (n) => ke.parse(n) / 100,
|
|
936
936
|
transform: (n) => ke.transform(n * 100)
|
|
937
937
|
}), Re = {
|
|
@@ -1021,7 +1021,7 @@ const Ur = (n, e) => {
|
|
|
1021
1021
|
const t = Fr(n), r = Fr(e);
|
|
1022
1022
|
if (!t || !r)
|
|
1023
1023
|
return At(n, e);
|
|
1024
|
-
const i =
|
|
1024
|
+
const i = Y({}, t);
|
|
1025
1025
|
return (a) => (i.red = xt(t.red, r.red, a), i.green = xt(t.green, r.green, a), i.blue = xt(t.blue, r.blue, a), i.alpha = ct(t.alpha, r.alpha, a), Ie.transform(i));
|
|
1026
1026
|
}, Bt = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
1027
1027
|
function qs(n, e) {
|
|
@@ -1043,7 +1043,7 @@ function Fi(n, e) {
|
|
|
1043
1043
|
};
|
|
1044
1044
|
}
|
|
1045
1045
|
function Gs(n, e) {
|
|
1046
|
-
const t =
|
|
1046
|
+
const t = Y(Y({}, n), e), r = {};
|
|
1047
1047
|
for (const i in t)
|
|
1048
1048
|
n[i] !== void 0 && e[i] !== void 0 && (r[i] = dn(n[i])(n[i], e[i]));
|
|
1049
1049
|
return (i) => {
|
|
@@ -1167,7 +1167,7 @@ function zr(n, e) {
|
|
|
1167
1167
|
return e.some((t) => n[t] !== void 0);
|
|
1168
1168
|
}
|
|
1169
1169
|
function ro(n) {
|
|
1170
|
-
let e =
|
|
1170
|
+
let e = Y({
|
|
1171
1171
|
velocity: ie.velocity,
|
|
1172
1172
|
stiffness: ie.stiffness,
|
|
1173
1173
|
damping: ie.damping,
|
|
@@ -1177,14 +1177,14 @@ function ro(n) {
|
|
|
1177
1177
|
if (!zr(n, no) && zr(n, to))
|
|
1178
1178
|
if (n.visualDuration) {
|
|
1179
1179
|
const t = n.visualDuration, r = 2 * Math.PI / (t * 1.2), i = r * r, a = 2 * Le(0.05, 1, 1 - (n.bounce || 0)) * Math.sqrt(i);
|
|
1180
|
-
e = te(
|
|
1180
|
+
e = te(Y({}, e), {
|
|
1181
1181
|
mass: ie.mass,
|
|
1182
1182
|
stiffness: i,
|
|
1183
1183
|
damping: a
|
|
1184
1184
|
});
|
|
1185
1185
|
} else {
|
|
1186
1186
|
const t = Xs(n);
|
|
1187
|
-
e = te(
|
|
1187
|
+
e = te(Y(Y({}, e), t), {
|
|
1188
1188
|
mass: ie.mass
|
|
1189
1189
|
}), e.isResolvedFromDuration = !0;
|
|
1190
1190
|
}
|
|
@@ -1197,7 +1197,7 @@ function lt(n = ie.visualDuration, e = ie.bounce) {
|
|
|
1197
1197
|
bounce: e
|
|
1198
1198
|
} : n;
|
|
1199
1199
|
let { restSpeed: r, restDelta: i } = t;
|
|
1200
|
-
const a = t.keyframes[0], s = t.keyframes[t.keyframes.length - 1], o = { done: !1, value: a }, { stiffness: l, damping: c, mass: u, duration: d, velocity: h, isResolvedFromDuration: p } = ro(te(
|
|
1200
|
+
const a = t.keyframes[0], s = t.keyframes[t.keyframes.length - 1], o = { done: !1, value: a }, { stiffness: l, damping: c, mass: u, duration: d, velocity: h, isResolvedFromDuration: p } = ro(te(Y({}, t), {
|
|
1201
1201
|
velocity: -/* @__PURE__ */ Ee(t.velocity || 0)
|
|
1202
1202
|
})), m = h || 0, f = c / (2 * Math.sqrt(l * u)), v = s - a, y = /* @__PURE__ */ Ee(Math.sqrt(l / u)), w = Math.abs(v) < 5;
|
|
1203
1203
|
r || (r = w ? ie.restSpeed.granular : ie.restSpeed.default), i || (i = w ? ie.restDelta.granular : ie.restDelta.default);
|
|
@@ -1421,8 +1421,8 @@ class vn extends fn {
|
|
|
1421
1421
|
let { keyframes: o } = e;
|
|
1422
1422
|
const l = t || Se;
|
|
1423
1423
|
process.env.NODE_ENV !== "production" && l !== Se && _e(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`), l !== Se && typeof o[0] != "number" && (this.mixKeyframes = un(yo, Ui(o[0], o[1])), o = [0, 100]);
|
|
1424
|
-
const c = l(te(
|
|
1425
|
-
a === "mirror" && (this.mirroredGenerator = l(te(
|
|
1424
|
+
const c = l(te(Y({}, e), { keyframes: o }));
|
|
1425
|
+
a === "mirror" && (this.mirroredGenerator = l(te(Y({}, e), {
|
|
1426
1426
|
keyframes: [...o].reverse(),
|
|
1427
1427
|
velocity: -s
|
|
1428
1428
|
}))), c.calculatedDuration === null && (c.calculatedDuration = an(c));
|
|
@@ -1858,7 +1858,7 @@ class Fo extends Mo {
|
|
|
1858
1858
|
t.set(e);
|
|
1859
1859
|
return;
|
|
1860
1860
|
}
|
|
1861
|
-
const o = new vn(te(
|
|
1861
|
+
const o = new vn(te(Y({}, s), {
|
|
1862
1862
|
autoplay: !1
|
|
1863
1863
|
})), l = /* @__PURE__ */ ye((u = this.finishedTime) != null ? u : this.time);
|
|
1864
1864
|
t.setWithVelocity(o.sample(l - Qr).value, o.sample(l).value, Qr), o.stop();
|
|
@@ -1919,7 +1919,7 @@ class Wo extends fn {
|
|
|
1919
1919
|
var y, w;
|
|
1920
1920
|
this._animation && (this._animation.stop(), (y = this.stopTimeline) == null || y.call(this)), (w = this.keyframeResolver) == null || w.cancel();
|
|
1921
1921
|
}, this.createdAt = ve.now();
|
|
1922
|
-
const m =
|
|
1922
|
+
const m = Y({
|
|
1923
1923
|
autoplay: e,
|
|
1924
1924
|
delay: t,
|
|
1925
1925
|
type: r,
|
|
@@ -1936,12 +1936,12 @@ class Wo extends fn {
|
|
|
1936
1936
|
this.keyframeResolver = void 0;
|
|
1937
1937
|
const { name: a, type: s, velocity: o, delay: l, isHandoff: c, onUpdate: u } = r;
|
|
1938
1938
|
this.resolvedAt = ve.now(), Bo(e, a, s, o) || ((Ce.instantAnimations || !l) && (u == null || u(mn(e, r, t))), e[0] = e[e.length - 1], r.duration = 0, r.repeat = 0);
|
|
1939
|
-
const d = i ? this.resolvedAt ? this.resolvedAt - this.createdAt > Ho ? this.resolvedAt : this.createdAt : this.createdAt : void 0, h = te(
|
|
1939
|
+
const d = i ? this.resolvedAt ? this.resolvedAt - this.createdAt > Ho ? this.resolvedAt : this.createdAt : this.createdAt : void 0, h = te(Y({
|
|
1940
1940
|
startTime: d,
|
|
1941
1941
|
finalKeyframe: t
|
|
1942
1942
|
}, r), {
|
|
1943
1943
|
keyframes: e
|
|
1944
|
-
}), p = !c && qo(h) ? new Fo(te(
|
|
1944
|
+
}), p = !c && qo(h) ? new Fo(te(Y({}, h), {
|
|
1945
1945
|
element: h.motionValue.owner.current
|
|
1946
1946
|
})) : new vn(h);
|
|
1947
1947
|
p.finished.then(() => this.notifyFinished()).catch(De), this.pendingTimeline && (this.stopTimeline = p.attachTimeline(this.pendingTimeline), this.pendingTimeline = void 0), this._animation = p;
|
|
@@ -1999,7 +1999,7 @@ const ia = (n, e, t, r = {}, i, a) => (s) => {
|
|
|
1999
1999
|
const o = Li(r, n) || {}, l = o.delay || r.delay || 0;
|
|
2000
2000
|
let { elapsed: c = 0 } = r;
|
|
2001
2001
|
c = c - /* @__PURE__ */ ye(l);
|
|
2002
|
-
const u = te(
|
|
2002
|
+
const u = te(Y({
|
|
2003
2003
|
keyframes: Array.isArray(t) ? t : [null, t],
|
|
2004
2004
|
ease: "easeOut",
|
|
2005
2005
|
velocity: e.getVelocity()
|
|
@@ -2049,7 +2049,7 @@ function Yo(n, e, { delay: t = 0, transitionOverride: r, type: i } = {}) {
|
|
|
2049
2049
|
const p = n.getValue(h, (d = n.latestValues[h]) != null ? d : null), m = o[h];
|
|
2050
2050
|
if (m === void 0 || c && Go(c, h))
|
|
2051
2051
|
continue;
|
|
2052
|
-
const f =
|
|
2052
|
+
const f = Y({
|
|
2053
2053
|
delay: t
|
|
2054
2054
|
}, Li(a || {}, h)), v = p.get();
|
|
2055
2055
|
if (v !== void 0 && !p.isAnimating && !Array.isArray(m) && m === v && !f.velocity)
|
|
@@ -2184,12 +2184,12 @@ function ul(n) {
|
|
|
2184
2184
|
let a = cl.has(e) ? 1 : 0;
|
|
2185
2185
|
return r !== t && (a *= 100), e + "(" + a + i + ")";
|
|
2186
2186
|
}
|
|
2187
|
-
const dl = /\b([a-z-]*)\(.*?\)/gu, Xt = te(
|
|
2187
|
+
const dl = /\b([a-z-]*)\(.*?\)/gu, Xt = te(Y({}, Be), {
|
|
2188
2188
|
getAnimatableNone: (n) => {
|
|
2189
2189
|
const e = n.match(dl);
|
|
2190
2190
|
return e ? e.map(ul).join(" ") : n;
|
|
2191
2191
|
}
|
|
2192
|
-
}), ei = te(
|
|
2192
|
+
}), ei = te(Y({}, Ue), {
|
|
2193
2193
|
transform: Math.round
|
|
2194
2194
|
}), pl = {
|
|
2195
2195
|
rotate: we,
|
|
@@ -2216,7 +2216,7 @@ const dl = /\b([a-z-]*)\(.*?\)/gu, Xt = te(Q({}, Be), {
|
|
|
2216
2216
|
originX: Dr,
|
|
2217
2217
|
originY: Dr,
|
|
2218
2218
|
originZ: $
|
|
2219
|
-
}, En = te(
|
|
2219
|
+
}, En = te(Y({
|
|
2220
2220
|
// Border props
|
|
2221
2221
|
borderWidth: $,
|
|
2222
2222
|
borderTopWidth: $,
|
|
@@ -2258,7 +2258,7 @@ const dl = /\b([a-z-]*)\(.*?\)/gu, Xt = te(Q({}, Be), {
|
|
|
2258
2258
|
fillOpacity: st,
|
|
2259
2259
|
strokeOpacity: st,
|
|
2260
2260
|
numOctaves: ei
|
|
2261
|
-
}), hl = te(
|
|
2261
|
+
}), hl = te(Y({}, En), {
|
|
2262
2262
|
// Color props
|
|
2263
2263
|
color: ue,
|
|
2264
2264
|
backgroundColor: ue,
|
|
@@ -2306,7 +2306,7 @@ class ma {
|
|
|
2306
2306
|
this.renderScheduledAt < p && (this.renderScheduledAt = p, Ae.render(this.render, !1, !0));
|
|
2307
2307
|
};
|
|
2308
2308
|
const { latestValues: l, renderState: c } = s;
|
|
2309
|
-
this.latestValues = l, this.baseTarget =
|
|
2309
|
+
this.latestValues = l, this.baseTarget = Y({}, l), this.initialValues = t.initial ? Y({}, l) : {}, this.renderState = c, this.parent = e, this.props = t, this.presenceContext = r, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = i, this.options = o, this.blockInitialAnimation = !!a, this.isControllingVariants = oa(t), this.isVariantNode = il(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
|
|
2310
2310
|
const h = this.scrapeMotionValuesFromProps(t, {}, this), { willChange: u } = h, d = ge(h, ["willChange"]);
|
|
2311
2311
|
for (const p in d) {
|
|
2312
2312
|
const m = d[p];
|
|
@@ -2873,8 +2873,8 @@ function Aa(n, e, t, r) {
|
|
|
2873
2873
|
for (let o = 0; o < s; o++) {
|
|
2874
2874
|
const l = a[o], c = l instanceof Element ? Ul : Bl;
|
|
2875
2875
|
it.has(l) || c(l);
|
|
2876
|
-
const u = it.get(l), d =
|
|
2877
|
-
"delay" in d && typeof d.delay == "function" && (d.delay = d.delay(o, s)), i.push(...Yo(u, te(
|
|
2876
|
+
const u = it.get(l), d = Y({}, t);
|
|
2877
|
+
"delay" in d && typeof d.delay == "function" && (d.delay = d.delay(o, s)), i.push(...Yo(u, te(Y({}, e), { transition: d }), {}));
|
|
2878
2878
|
}
|
|
2879
2879
|
}
|
|
2880
2880
|
return i;
|
|
@@ -3050,7 +3050,8 @@ const mc = [
|
|
|
3050
3050
|
{ type: "paypal", is_active: !0, order: 1 },
|
|
3051
3051
|
{ type: "apple-pay", is_active: !0, order: 2 },
|
|
3052
3052
|
{ type: "google-pay", is_active: !0, order: 3 },
|
|
3053
|
-
{ type: "
|
|
3053
|
+
{ type: "venmo", is_active: !0, order: 4 },
|
|
3054
|
+
{ type: "card", is_active: !0, order: 5 }
|
|
3054
3055
|
], Pe = {
|
|
3055
3056
|
open: { y: 0, opacity: 1 },
|
|
3056
3057
|
close: { y: 100, opacity: 0 },
|
|
@@ -3630,7 +3631,7 @@ class Sc {
|
|
|
3630
3631
|
e && (yield this.paypal.init({
|
|
3631
3632
|
clientId: e.clientId,
|
|
3632
3633
|
vault: !0
|
|
3633
|
-
}), yield this.paypal.render(this.element, te(
|
|
3634
|
+
}), yield this.paypal.render(this.element, te(Y({}, e), {
|
|
3634
3635
|
onApprove: (r) => j(this, [r], function* ({ billingToken: t }) {
|
|
3635
3636
|
var i;
|
|
3636
3637
|
(i = e.onSuccess) == null || i.call(e, t || "");
|
|
@@ -3984,7 +3985,7 @@ class Qc {
|
|
|
3984
3985
|
locale: kc(t || "en"),
|
|
3985
3986
|
onError: () => this.events.error.emit(),
|
|
3986
3987
|
onCancel: () => this.events.cancel.emit(),
|
|
3987
|
-
onSuccess: (a) => this.events.success.emit(te(
|
|
3988
|
+
onSuccess: (a) => this.events.success.emit(te(Y({}, a), { type: "apple" }))
|
|
3988
3989
|
});
|
|
3989
3990
|
} catch (a) {
|
|
3990
3991
|
console.error(a);
|
|
@@ -4006,7 +4007,7 @@ class Qc {
|
|
|
4006
4007
|
locale: Mc(t || "en"),
|
|
4007
4008
|
onError: () => this.events.error.emit(),
|
|
4008
4009
|
onCancel: () => this.events.cancel.emit(),
|
|
4009
|
-
onSuccess: (i) => this.events.success.emit(te(
|
|
4010
|
+
onSuccess: (i) => this.events.success.emit(te(Y({}, i), { type: "google" }))
|
|
4010
4011
|
});
|
|
4011
4012
|
} catch (i) {
|
|
4012
4013
|
console.error(i);
|
|
@@ -4727,7 +4728,7 @@ class Vu {
|
|
|
4727
4728
|
return this.toggleLabelError(t), this.toggleErrorMessage(r), !t && !r ? (this.inputContainer.classList.remove(ne.errorInput), this.endContent.innerHTML = "", this.endContent.append(...this.getCardIcons())) : (this.endContent.innerHTML = "", this.endContent.appendChild(this.unknownCard.render())), this.isDisabled ? (this.inputContainer.classList.add(ne.disabled), this.input.classList.add(ne.disabledInput)) : (this.inputContainer.classList.remove(ne.disabled), this.input.classList.remove(ne.disabledInput)), this.element;
|
|
4728
4729
|
}
|
|
4729
4730
|
}
|
|
4730
|
-
const Fu = "_inputContainer_1xdj3_5", Uu = "_input_1xdj3_5", Bu = "_endContent_1xdj3_20", zu = "_errorInput_1xdj3_24", ju = "_error_1xdj3_24", Ku = "_label_1xdj3_32", qu = "_labelError_1xdj3_36", Hu = "_disabled_1xdj3_40", Wu = "_disabledInput_1xdj3_44", Gu = "_hidden_1xdj3_51", Yu = "_securityContent_1xdj3_55",
|
|
4731
|
+
const Fu = "_inputContainer_1xdj3_5", Uu = "_input_1xdj3_5", Bu = "_endContent_1xdj3_20", zu = "_errorInput_1xdj3_24", ju = "_error_1xdj3_24", Ku = "_label_1xdj3_32", qu = "_labelError_1xdj3_36", Hu = "_disabled_1xdj3_40", Wu = "_disabledInput_1xdj3_44", Gu = "_hidden_1xdj3_51", Yu = "_securityContent_1xdj3_55", Q = {
|
|
4731
4732
|
inputContainer: Fu,
|
|
4732
4733
|
input: Uu,
|
|
4733
4734
|
endContent: Bu,
|
|
@@ -4806,9 +4807,9 @@ class $u {
|
|
|
4806
4807
|
});
|
|
4807
4808
|
this.translate = e;
|
|
4808
4809
|
const t = e.messages();
|
|
4809
|
-
this.element = document.createElement("div"), this.element.classList.add(
|
|
4810
|
+
this.element = document.createElement("div"), this.element.classList.add(Q.securityContent), this.expiryInputContainer.classList.add(Q.inputContainer), this.expiryInput.setAttribute("id", this.expiryId), this.expiryInput.setAttribute("auto-complete", "cc-expiry"), this.expiryInput.setAttribute("placeholder", t.card.expiry.placeholder), this.expiryInput.classList.add(Q.input), this.expiryEndContent.classList.add(Q.endContent), this.expiryEndContent.appendChild(this.warning.render()), this.expiryInputContainer.append(this.expiryInput, this.expiryEndContent), this.expiryLabel.setAttribute("for", this.expiryId), this.expiryLabel.classList.add(Q.label), this.expiryLabelText.textContent = t.card.expiry.label, this.expiryLabelError.textContent = t.card.expiry.error.required, this.expiryLabelError.classList.add(Q.labelError, Q.hidden), this.expiryLabel.append(this.expiryLabelText, this.expiryLabelError), this.expiryError.classList.add(Q.error, Q.hidden);
|
|
4810
4811
|
const r = document.createElement("div");
|
|
4811
|
-
r.appendChild(this.cvcError), this.cvcInputContainer.classList.add(
|
|
4812
|
+
r.appendChild(this.cvcError), this.cvcInputContainer.classList.add(Q.inputContainer), this.cvcInput.setAttribute("id", this.cvcId), this.cvcInput.setAttribute("auto-complete", "cc-cvc"), this.cvcInput.setAttribute("placeholder", t.card.cvc.placeholder), this.cvcInput.classList.add(Q.input), this.cvcEndContent.classList.add(Q.endContent), this.cvcEndContent.appendChild(this.cardCvc.render()), this.cvcInputContainer.append(this.cvcInput, this.cvcEndContent), this.cvcLabel.setAttribute("for", this.cvcId), this.cvcLabel.classList.add(Q.label), this.cvcLabelText.textContent = t.card.cvc.label, this.cvcLabelError.textContent = t.card.cvc.error.required, this.cvcLabelError.classList.add(Q.labelError, Q.hidden), this.cvcLabel.append(this.cvcLabelText, this.cvcLabelError), this.cvcError.classList.add(Q.error, Q.hidden);
|
|
4812
4813
|
const i = document.createElement("div");
|
|
4813
4814
|
i.appendChild(this.cvcError), this.element.append(
|
|
4814
4815
|
this.expiryLabel,
|
|
@@ -4860,7 +4861,7 @@ class $u {
|
|
|
4860
4861
|
toggleCvcLabelError(e) {
|
|
4861
4862
|
return j(this, null, function* () {
|
|
4862
4863
|
if (e) {
|
|
4863
|
-
this.cvcInputContainer.classList.add(
|
|
4864
|
+
this.cvcInputContainer.classList.add(Q.errorInput), this.cvcLabelError.classList.remove(Q.hidden), yield se(this.cvcLabelError, de.open, de.transition);
|
|
4864
4865
|
return;
|
|
4865
4866
|
}
|
|
4866
4867
|
yield se(this.cvcLabelError, de.close, de.transition);
|
|
@@ -4869,7 +4870,7 @@ class $u {
|
|
|
4869
4870
|
toggleCvcErrorMessage(e) {
|
|
4870
4871
|
return j(this, null, function* () {
|
|
4871
4872
|
if (e) {
|
|
4872
|
-
this.cvcInputContainer.classList.add(
|
|
4873
|
+
this.cvcInputContainer.classList.add(Q.errorInput), this.cvcError.textContent = this.cvcErrorMessage, this.cvcError.classList.remove(Q.hidden), yield se(this.cvcError, fe.open, fe.transition);
|
|
4873
4874
|
return;
|
|
4874
4875
|
}
|
|
4875
4876
|
yield se(this.cvcError, fe.close, fe.transition);
|
|
@@ -4907,26 +4908,26 @@ class $u {
|
|
|
4907
4908
|
toggleExpiryLabelError(e) {
|
|
4908
4909
|
return j(this, null, function* () {
|
|
4909
4910
|
if (e) {
|
|
4910
|
-
this.expiryInputContainer.classList.add(
|
|
4911
|
+
this.expiryInputContainer.classList.add(Q.errorInput), this.expiryLabelError.classList.remove(Q.hidden), yield se(this.expiryLabelError, de.open, de.transition);
|
|
4911
4912
|
return;
|
|
4912
4913
|
}
|
|
4913
|
-
yield se(this.expiryLabelError, de.close, de.transition), this.expiryLabelError.classList.add(
|
|
4914
|
+
yield se(this.expiryLabelError, de.close, de.transition), this.expiryLabelError.classList.add(Q.hidden);
|
|
4914
4915
|
});
|
|
4915
4916
|
}
|
|
4916
4917
|
toggleExpiryErrorMessage(e) {
|
|
4917
4918
|
return j(this, null, function* () {
|
|
4918
4919
|
if (e) {
|
|
4919
|
-
this.expiryInputContainer.classList.add(
|
|
4920
|
+
this.expiryInputContainer.classList.add(Q.errorInput), this.expiryError.textContent = this.expiryErrorMessage, this.expiryError.classList.remove(Q.hidden), yield se(this.expiryError, fe.open, fe.transition);
|
|
4920
4921
|
return;
|
|
4921
4922
|
}
|
|
4922
|
-
yield se(this.expiryError, fe.close, fe.transition), this.expiryError.classList.add(
|
|
4923
|
+
yield se(this.expiryError, fe.close, fe.transition), this.expiryError.classList.add(Q.hidden);
|
|
4923
4924
|
});
|
|
4924
4925
|
}
|
|
4925
4926
|
addEventListener(e, t) {
|
|
4926
4927
|
return this.events[e].addListener(t);
|
|
4927
4928
|
}
|
|
4928
4929
|
disable(e) {
|
|
4929
|
-
e ? (this.expiryInput.setAttribute("disabled", "true"), this.expiryInput.classList.add(
|
|
4930
|
+
e ? (this.expiryInput.setAttribute("disabled", "true"), this.expiryInput.classList.add(Q.disabledInput), this.expiryInputContainer.classList.add(Q.disabled), this.cvcInput.setAttribute("disabled", "true"), this.cvcInput.classList.add(Q.disabledInput), this.cvcInputContainer.classList.add(Q.disabled)) : (this.expiryInput.removeAttribute("disabled"), this.expiryInput.classList.remove(Q.disabledInput), this.expiryInputContainer.classList.remove(Q.disabled), this.cvcInput.removeAttribute("disabled"), this.cvcInput.classList.remove(Q.disabledInput), this.cvcInputContainer.classList.remove(Q.disabled));
|
|
4930
4931
|
}
|
|
4931
4932
|
touchSubmit() {
|
|
4932
4933
|
this.isTouchSubmit = !0, this.render();
|
|
@@ -4946,9 +4947,9 @@ class $u {
|
|
|
4946
4947
|
}
|
|
4947
4948
|
render() {
|
|
4948
4949
|
const e = this.isTouchSubmit || this.isExpiryChanged, t = e && !this.isDisabled && this.isExpiryRequired, r = e && !this.isDisabled && !!this.expiryErrorMessage;
|
|
4949
|
-
this.toggleExpiryLabelError(t), this.toggleExpiryErrorMessage(r), !t && !r ? (this.expiryInputContainer.classList.remove(
|
|
4950
|
+
this.toggleExpiryLabelError(t), this.toggleExpiryErrorMessage(r), !t && !r ? (this.expiryInputContainer.classList.remove(Q.errorInput), this.expiryEndContent.classList.add(Q.hidden)) : this.expiryEndContent.classList.remove(Q.hidden);
|
|
4950
4951
|
const i = this.isTouchSubmit || this.isCvcChanged, a = i && !this.isDisabled && this.isCvcRequired, s = i && !this.isDisabled && !!this.cvcErrorMessage;
|
|
4951
|
-
return this.toggleCvcLabelError(a), this.toggleCvcErrorMessage(s), !a && !s ? (this.cvcInputContainer.classList.remove(
|
|
4952
|
+
return this.toggleCvcLabelError(a), this.toggleCvcErrorMessage(s), !a && !s ? (this.cvcInputContainer.classList.remove(Q.errorInput), this.cvcEndContent.innerHTML = "", this.cvcEndContent.appendChild(this.cardCvc.render())) : (this.cvcEndContent.innerHTML = "", this.cvcEndContent.appendChild(this.warning.render())), this.isDisabled ? (this.expiryInputContainer.classList.add(Q.disabled), this.expiryInput.classList.add(Q.disabledInput), this.cvcInputContainer.classList.add(Q.disabled), this.cvcInput.classList.add(Q.disabledInput)) : (this.expiryInputContainer.classList.remove(Q.disabled), this.expiryInput.classList.remove(Q.disabledInput), this.cvcInputContainer.classList.remove(Q.disabled), this.cvcInput.classList.remove(Q.disabledInput)), this.element;
|
|
4952
4953
|
}
|
|
4953
4954
|
}
|
|
4954
4955
|
const Zu = "_container_94v1h_1", Xu = "_title_94v1h_10", pi = {
|
|
@@ -5161,7 +5162,7 @@ class id {
|
|
|
5161
5162
|
yield this.config.service.ev.initThreeDs({
|
|
5162
5163
|
threeDsId: a.three_ds_session_id,
|
|
5163
5164
|
onSuccess: () => {
|
|
5164
|
-
this.setLoading(!1), this.handleSuccess(te(
|
|
5165
|
+
this.setLoading(!1), this.handleSuccess(te(Y({}, e), { threeDsSessionId: a.three_ds_session_id }));
|
|
5165
5166
|
},
|
|
5166
5167
|
onError: () => {
|
|
5167
5168
|
this.handleError("Three DS Error");
|
|
@@ -5253,13 +5254,13 @@ const sd = {
|
|
|
5253
5254
|
};
|
|
5254
5255
|
class od extends Tt {
|
|
5255
5256
|
constructor(e) {
|
|
5256
|
-
super(
|
|
5257
|
+
super(Y(Y({}, sd), e));
|
|
5257
5258
|
}
|
|
5258
5259
|
}
|
|
5259
5260
|
const ld = {};
|
|
5260
5261
|
class cd extends Tt {
|
|
5261
5262
|
constructor(e) {
|
|
5262
|
-
super(
|
|
5263
|
+
super(Y(Y({}, ld), e));
|
|
5263
5264
|
}
|
|
5264
5265
|
}
|
|
5265
5266
|
class ud extends Tt {
|
|
@@ -7303,7 +7304,7 @@ class rp {
|
|
|
7303
7304
|
render(e, t) {
|
|
7304
7305
|
return j(this, null, function* () {
|
|
7305
7306
|
var r, i;
|
|
7306
|
-
this.paypal && (yield (i = (r = this.paypal).Buttons) == null ? void 0 : i.call(r,
|
|
7307
|
+
this.paypal && (yield (i = (r = this.paypal).Buttons) == null ? void 0 : i.call(r, Y({
|
|
7307
7308
|
fundingSource: "paypal",
|
|
7308
7309
|
style: np
|
|
7309
7310
|
}, t)).render(e));
|
|
@@ -11907,7 +11908,7 @@ class up {
|
|
|
11907
11908
|
if (!this.client)
|
|
11908
11909
|
throw new Error("Braintree client must be initialized before creating Venmo instance");
|
|
11909
11910
|
try {
|
|
11910
|
-
return this.venmoInstance = yield cp.create(
|
|
11911
|
+
return this.venmoInstance = yield cp.create(Y({
|
|
11911
11912
|
client: this.client,
|
|
11912
11913
|
allowDesktop: !0,
|
|
11913
11914
|
mobileWebFallBack: !0,
|