@paynext/sdk 0.0.96 → 0.0.97
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/_commonjs-dynamic-modules-C4BgavC4.js +11 -0
- package/dist/_commonjs-dynamic-modules-C4BgavC4.js.map +1 -0
- package/dist/client-Cz7Nq-cT.js +1701 -0
- package/dist/client-Cz7Nq-cT.js.map +1 -0
- package/dist/data-collector-DPBfun3X.js +713 -0
- package/dist/data-collector-DPBfun3X.js.map +1 -0
- package/dist/evervault-js-37KtqVz5.js +55 -0
- package/dist/evervault-js-37KtqVz5.js.map +1 -0
- package/dist/index.es.js +3570 -8984
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +26 -26
- package/dist/index.umd.js.map +1 -1
- package/dist/paypal-js-DZ6k5L_e.js +131 -0
- package/dist/paypal-js-DZ6k5L_e.js.map +1 -0
- package/dist/venmo-Dybrh4_x.js +2920 -0
- package/dist/venmo-Dybrh4_x.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,713 @@
|
|
|
1
|
+
import { c as j, g as re } from "./_commonjs-dynamic-modules-C4BgavC4.js";
|
|
2
|
+
function te(U, V) {
|
|
3
|
+
for (var i = 0; i < V.length; i++) {
|
|
4
|
+
const u = V[i];
|
|
5
|
+
if (typeof u != "string" && !Array.isArray(u)) {
|
|
6
|
+
for (const E in u)
|
|
7
|
+
if (E !== "default" && !(E in U)) {
|
|
8
|
+
const r = Object.getOwnPropertyDescriptor(u, E);
|
|
9
|
+
r && Object.defineProperty(U, E, r.get ? r : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => u[E]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(U, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var Q = { exports: {} }, q;
|
|
19
|
+
function ne() {
|
|
20
|
+
return q || (q = 1, function(U, V) {
|
|
21
|
+
(function(i) {
|
|
22
|
+
U.exports = i();
|
|
23
|
+
})(function() {
|
|
24
|
+
return (/* @__PURE__ */ function() {
|
|
25
|
+
function i(u, E, r) {
|
|
26
|
+
function n(o, d) {
|
|
27
|
+
if (!E[o]) {
|
|
28
|
+
if (!u[o]) {
|
|
29
|
+
var A = typeof j == "function" && j;
|
|
30
|
+
if (!d && A) return A(o, !0);
|
|
31
|
+
if (e) return e(o, !0);
|
|
32
|
+
var T = new Error("Cannot find module '" + o + "'");
|
|
33
|
+
throw T.code = "MODULE_NOT_FOUND", T;
|
|
34
|
+
}
|
|
35
|
+
var S = E[o] = { exports: {} };
|
|
36
|
+
u[o][0].call(S.exports, function(b) {
|
|
37
|
+
var y = u[o][1][b];
|
|
38
|
+
return n(y || b);
|
|
39
|
+
}, S, S.exports, i, u, E, r);
|
|
40
|
+
}
|
|
41
|
+
return E[o].exports;
|
|
42
|
+
}
|
|
43
|
+
for (var e = typeof j == "function" && j, s = 0; s < r.length; s++) n(r[s]);
|
|
44
|
+
return n;
|
|
45
|
+
}
|
|
46
|
+
return i;
|
|
47
|
+
}())({ 1: [function(i, u, E) {
|
|
48
|
+
var r = {};
|
|
49
|
+
function n(e) {
|
|
50
|
+
var s, o = JSON.stringify(e);
|
|
51
|
+
if (!e.forceScriptReload && (s = r[o], s))
|
|
52
|
+
return s;
|
|
53
|
+
var d = document.createElement("script"), A = e.dataAttributes || {}, T = e.container || document.head;
|
|
54
|
+
return d.src = e.src, d.id = e.id || "", d.async = !0, e.type && d.setAttribute("type", "".concat(e.type)), e.crossorigin && d.setAttribute("crossorigin", "".concat(e.crossorigin)), e.integrity && d.setAttribute("integrity", "".concat(e.integrity)), Object.keys(A).forEach(function(S) {
|
|
55
|
+
d.setAttribute("data-".concat(S), "".concat(A[S]));
|
|
56
|
+
}), s = new Promise(function(S, b) {
|
|
57
|
+
d.addEventListener("load", function() {
|
|
58
|
+
S(d);
|
|
59
|
+
}), d.addEventListener("error", function() {
|
|
60
|
+
b(new Error("".concat(e.src, " failed to load.")));
|
|
61
|
+
}), d.addEventListener("abort", function() {
|
|
62
|
+
b(new Error("".concat(e.src, " has aborted.")));
|
|
63
|
+
}), T.appendChild(d);
|
|
64
|
+
}), r[o] = s, s;
|
|
65
|
+
}
|
|
66
|
+
n.clearCache = function() {
|
|
67
|
+
r = {};
|
|
68
|
+
}, u.exports = n;
|
|
69
|
+
}, {}], 2: [function(i, u, E) {
|
|
70
|
+
u.exports = i("./dist/load-script");
|
|
71
|
+
}, { "./dist/load-script": 1 }], 3: [function(i, u, E) {
|
|
72
|
+
Object.defineProperty(E, "__esModule", { value: !0 });
|
|
73
|
+
function r(n) {
|
|
74
|
+
return function() {
|
|
75
|
+
for (var e = [], s = 0; s < arguments.length; s++)
|
|
76
|
+
e[s] = arguments[s];
|
|
77
|
+
setTimeout(function() {
|
|
78
|
+
try {
|
|
79
|
+
n.apply(void 0, e);
|
|
80
|
+
} catch (o) {
|
|
81
|
+
console.log("Error in callback function"), console.log(o);
|
|
82
|
+
}
|
|
83
|
+
}, 1);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
E.deferred = r;
|
|
87
|
+
}, {}], 4: [function(i, u, E) {
|
|
88
|
+
Object.defineProperty(E, "__esModule", { value: !0 });
|
|
89
|
+
function r(n) {
|
|
90
|
+
var e = !1;
|
|
91
|
+
return function() {
|
|
92
|
+
for (var s = [], o = 0; o < arguments.length; o++)
|
|
93
|
+
s[o] = arguments[o];
|
|
94
|
+
e || (e = !0, n.apply(void 0, s));
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
E.once = r;
|
|
98
|
+
}, {}], 5: [function(i, u, E) {
|
|
99
|
+
Object.defineProperty(E, "__esModule", { value: !0 });
|
|
100
|
+
function r(n, e) {
|
|
101
|
+
if (!e)
|
|
102
|
+
return n;
|
|
103
|
+
n.then(function(s) {
|
|
104
|
+
return e(null, s);
|
|
105
|
+
}).catch(function(s) {
|
|
106
|
+
return e(s);
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
E.promiseOrCallback = r;
|
|
110
|
+
}, {}], 6: [function(i, u, E) {
|
|
111
|
+
var r = i("./lib/deferred"), n = i("./lib/once"), e = i("./lib/promise-or-callback");
|
|
112
|
+
function s(o) {
|
|
113
|
+
return function() {
|
|
114
|
+
for (var d = [], A = 0; A < arguments.length; A++)
|
|
115
|
+
d[A] = arguments[A];
|
|
116
|
+
var T, S = d[d.length - 1];
|
|
117
|
+
return typeof S == "function" && (T = d.pop(), T = n.once(r.deferred(T))), e.promiseOrCallback(o.apply(this, d), T);
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
s.wrapPrototype = function(o, d) {
|
|
121
|
+
d === void 0 && (d = {});
|
|
122
|
+
var A = d.ignoreMethods || [], T = d.transformPrivateMethods === !0, S = Object.getOwnPropertyNames(o.prototype).filter(function(b) {
|
|
123
|
+
var y, P = b !== "constructor" && typeof o.prototype[b] == "function", h = A.indexOf(b) === -1;
|
|
124
|
+
return T ? y = !0 : y = b.charAt(0) !== "_", P && y && h;
|
|
125
|
+
});
|
|
126
|
+
return S.forEach(function(b) {
|
|
127
|
+
var y = o.prototype[b];
|
|
128
|
+
o.prototype[b] = s(y);
|
|
129
|
+
}), o;
|
|
130
|
+
}, u.exports = s;
|
|
131
|
+
}, { "./lib/deferred": 3, "./lib/once": 4, "./lib/promise-or-callback": 5 }], 7: [function(i, u, E) {
|
|
132
|
+
(function(r, n) {
|
|
133
|
+
typeof E == "object" && typeof u != "undefined" ? n(E) : (r = typeof globalThis != "undefined" ? globalThis : r || self, n(r.loadAxo = {}));
|
|
134
|
+
})(this, function(r) {
|
|
135
|
+
/*! *****************************************************************************
|
|
136
|
+
Copyright (c) Microsoft Corporation.
|
|
137
|
+
|
|
138
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
139
|
+
purpose with or without fee is hereby granted.
|
|
140
|
+
|
|
141
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
142
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
143
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
144
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
145
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
146
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
147
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
148
|
+
***************************************************************************** */
|
|
149
|
+
function n(a, l, t, f) {
|
|
150
|
+
function _(c) {
|
|
151
|
+
return c instanceof t ? c : new t(function(I) {
|
|
152
|
+
I(c);
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
return new (t || (t = Promise))(function(c, I) {
|
|
156
|
+
function w(C) {
|
|
157
|
+
try {
|
|
158
|
+
m(f.next(C));
|
|
159
|
+
} catch (z) {
|
|
160
|
+
I(z);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
function X(C) {
|
|
164
|
+
try {
|
|
165
|
+
m(f.throw(C));
|
|
166
|
+
} catch (z) {
|
|
167
|
+
I(z);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
function m(C) {
|
|
171
|
+
C.done ? c(C.value) : _(C.value).then(w, X);
|
|
172
|
+
}
|
|
173
|
+
m((f = f.apply(a, [])).next());
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
function e(a, l) {
|
|
177
|
+
var t = { label: 0, sent: function() {
|
|
178
|
+
if (c[0] & 1) throw c[1];
|
|
179
|
+
return c[1];
|
|
180
|
+
}, trys: [], ops: [] }, f, _, c, I;
|
|
181
|
+
return I = { next: w(0), throw: w(1), return: w(2) }, typeof Symbol == "function" && (I[Symbol.iterator] = function() {
|
|
182
|
+
return this;
|
|
183
|
+
}), I;
|
|
184
|
+
function w(m) {
|
|
185
|
+
return function(C) {
|
|
186
|
+
return X([m, C]);
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
function X(m) {
|
|
190
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
191
|
+
for (; t; ) try {
|
|
192
|
+
if (f = 1, _ && (c = m[0] & 2 ? _.return : m[0] ? _.throw || ((c = _.return) && c.call(_), 0) : _.next) && !(c = c.call(_, m[1])).done) return c;
|
|
193
|
+
switch (_ = 0, c && (m = [m[0] & 2, c.value]), m[0]) {
|
|
194
|
+
case 0:
|
|
195
|
+
case 1:
|
|
196
|
+
c = m;
|
|
197
|
+
break;
|
|
198
|
+
case 4:
|
|
199
|
+
return t.label++, { value: m[1], done: !1 };
|
|
200
|
+
case 5:
|
|
201
|
+
t.label++, _ = m[1], m = [0];
|
|
202
|
+
continue;
|
|
203
|
+
case 7:
|
|
204
|
+
m = t.ops.pop(), t.trys.pop();
|
|
205
|
+
continue;
|
|
206
|
+
default:
|
|
207
|
+
if (c = t.trys, !(c = c.length > 0 && c[c.length - 1]) && (m[0] === 6 || m[0] === 2)) {
|
|
208
|
+
t = 0;
|
|
209
|
+
continue;
|
|
210
|
+
}
|
|
211
|
+
if (m[0] === 3 && (!c || m[1] > c[0] && m[1] < c[3])) {
|
|
212
|
+
t.label = m[1];
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
if (m[0] === 6 && t.label < c[1]) {
|
|
216
|
+
t.label = c[1], c = m;
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
if (c && t.label < c[2]) {
|
|
220
|
+
t.label = c[2], t.ops.push(m);
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
c[2] && t.ops.pop(), t.trys.pop();
|
|
224
|
+
continue;
|
|
225
|
+
}
|
|
226
|
+
m = l.call(a, t);
|
|
227
|
+
} catch (C) {
|
|
228
|
+
m = [6, C], _ = 0;
|
|
229
|
+
} finally {
|
|
230
|
+
f = c = 0;
|
|
231
|
+
}
|
|
232
|
+
if (m[0] & 5) throw m[1];
|
|
233
|
+
return { value: m[0] ? m[1] : void 0, done: !0 };
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
var s = {}, o = {};
|
|
237
|
+
function d(a) {
|
|
238
|
+
var l, t = JSON.stringify(a);
|
|
239
|
+
if (!a.forceScriptReload && (l = o[t], l))
|
|
240
|
+
return l;
|
|
241
|
+
var f = document.createElement("script"), _ = a.dataAttributes || {}, c = a.container || document.head;
|
|
242
|
+
return f.src = a.src, f.id = a.id || "", f.async = !0, a.type && f.setAttribute("type", "".concat(a.type)), a.crossorigin && f.setAttribute("crossorigin", "".concat(a.crossorigin)), Object.keys(_).forEach(function(I) {
|
|
243
|
+
f.setAttribute("data-".concat(I), "".concat(_[I]));
|
|
244
|
+
}), l = new Promise(function(I, w) {
|
|
245
|
+
f.addEventListener("load", function() {
|
|
246
|
+
I(f);
|
|
247
|
+
}), f.addEventListener("error", function() {
|
|
248
|
+
w(new Error("".concat(a.src, " failed to load.")));
|
|
249
|
+
}), f.addEventListener("abort", function() {
|
|
250
|
+
w(new Error("".concat(a.src, " has aborted.")));
|
|
251
|
+
}), c.appendChild(f);
|
|
252
|
+
}), o[t] = l, l;
|
|
253
|
+
}
|
|
254
|
+
d.clearCache = function() {
|
|
255
|
+
o = {};
|
|
256
|
+
};
|
|
257
|
+
var A = d, T = function(l) {
|
|
258
|
+
var t = document.querySelector('link[href="'.concat(l.href, '"]'));
|
|
259
|
+
if (t)
|
|
260
|
+
return Promise.resolve(t);
|
|
261
|
+
t = document.createElement("link");
|
|
262
|
+
var f = l.container || document.head;
|
|
263
|
+
return t.setAttribute("rel", "stylesheet"), t.setAttribute("type", "text/css"), t.setAttribute("href", l.href), t.setAttribute("id", l.id), f.firstChild ? f.insertBefore(t, f.firstChild) : f.appendChild(t), Promise.resolve(t);
|
|
264
|
+
};
|
|
265
|
+
Object.defineProperty(s, "__esModule", { value: !0 }), s.loadStylesheet = b = s.loadScript = void 0;
|
|
266
|
+
var S = A, b = s.loadScript = S, y = T;
|
|
267
|
+
s.loadStylesheet = y;
|
|
268
|
+
var P = "https://www.paypalobjects.com", h = {
|
|
269
|
+
minified: "axo.min",
|
|
270
|
+
unminified: "axo"
|
|
271
|
+
}, v = "fastlane", R = "connect-boba", p = "".concat(R, "/locales/"), N = {
|
|
272
|
+
AXO_ASSET_NAME: h,
|
|
273
|
+
AXO_ASSET_PATH: R,
|
|
274
|
+
LOCALE_PATH: p,
|
|
275
|
+
CDNX_PROD: P
|
|
276
|
+
}, L = {
|
|
277
|
+
BT: "BT",
|
|
278
|
+
PPCP: "PPCP"
|
|
279
|
+
};
|
|
280
|
+
function D() {
|
|
281
|
+
return typeof window.define == "function" && !!window.define.amd;
|
|
282
|
+
}
|
|
283
|
+
function x() {
|
|
284
|
+
return D() && typeof window.requirejs == "function" && typeof window.requirejs.config == "function";
|
|
285
|
+
}
|
|
286
|
+
function k(a, l, t) {
|
|
287
|
+
var f, _;
|
|
288
|
+
return t === void 0 && (t = !0), n(this, void 0, void 0, function() {
|
|
289
|
+
var c, I;
|
|
290
|
+
return e(this, function(w) {
|
|
291
|
+
if (c = $(), c && c[a.module]) {
|
|
292
|
+
if (l && ((f = c[a.module]) === null || f === void 0 ? void 0 : f.VERSION) !== l)
|
|
293
|
+
throw I = (_ = c[a.module]) === null || _ === void 0 ? void 0 : _.VERSION, new Error("".concat(a.module, " already loaded with version ").concat(I, " cannot load version ").concat(l));
|
|
294
|
+
return [2, !0];
|
|
295
|
+
}
|
|
296
|
+
if (!l)
|
|
297
|
+
throw new Error("Attempted to load ".concat(a.module, " without specifying version"));
|
|
298
|
+
return [2, J(a, l, t)];
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
function J(a, l, t) {
|
|
303
|
+
if (t === void 0 && (t = !0), D()) {
|
|
304
|
+
var f = t ? a.amdModule.minified : a.amdModule.unminified;
|
|
305
|
+
return new Promise(function(c, I) {
|
|
306
|
+
window.require([f], c, I);
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
var _ = t ? a.script.minified : a.script.unminified;
|
|
310
|
+
return b({
|
|
311
|
+
id: "".concat(a.id, "-").concat(l),
|
|
312
|
+
src: "https://js.braintreegateway.com/web/".concat(l, "/js/").concat(_)
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
function $() {
|
|
316
|
+
return window == null ? void 0 : window.braintree;
|
|
317
|
+
}
|
|
318
|
+
var M, F, O = {
|
|
319
|
+
Client: "client",
|
|
320
|
+
HostedCardFields: "hostedFields"
|
|
321
|
+
}, B = "braintree", g = (M = {}, M[O.Client] = "client", M[O.HostedCardFields] = "hosted-fields", M), H = (F = {}, F[O.Client] = {
|
|
322
|
+
id: "client",
|
|
323
|
+
module: O.Client,
|
|
324
|
+
amdModule: {
|
|
325
|
+
unminified: "".concat(B, "/").concat(g[O.Client]),
|
|
326
|
+
minified: "".concat(B, "/").concat(g[O.Client], ".min")
|
|
327
|
+
},
|
|
328
|
+
script: {
|
|
329
|
+
unminified: "".concat(g[O.Client], ".js"),
|
|
330
|
+
minified: "".concat(g[O.Client], ".min.js")
|
|
331
|
+
}
|
|
332
|
+
}, F[O.HostedCardFields] = {
|
|
333
|
+
id: "hcf",
|
|
334
|
+
module: O.HostedCardFields,
|
|
335
|
+
amdModule: {
|
|
336
|
+
unminified: "".concat(B, "/").concat(g[O.HostedCardFields]),
|
|
337
|
+
minified: "".concat(B, "/").concat(g[O.HostedCardFields], ".min")
|
|
338
|
+
},
|
|
339
|
+
script: {
|
|
340
|
+
unminified: "".concat(g[O.HostedCardFields], ".js"),
|
|
341
|
+
minified: "".concat(g[O.HostedCardFields], ".min.js")
|
|
342
|
+
}
|
|
343
|
+
}, F);
|
|
344
|
+
function Y(a) {
|
|
345
|
+
return n(this, void 0, void 0, function() {
|
|
346
|
+
var l, t, f, _;
|
|
347
|
+
return e(this, function(c) {
|
|
348
|
+
switch (c.label) {
|
|
349
|
+
case 0:
|
|
350
|
+
return performance.mark("pp_axo_sdk_init_invoked"), l = a.btSdkVersion, t = a.minified, f = Z(a), _ = ee(a), a.platform !== L.BT ? [3, 2] : [4, Promise.all([
|
|
351
|
+
k(H.hostedFields, l, t),
|
|
352
|
+
G(f, t)
|
|
353
|
+
])];
|
|
354
|
+
case 1:
|
|
355
|
+
return c.sent(), [3, 5];
|
|
356
|
+
case 2:
|
|
357
|
+
return a.platform !== L.PPCP ? [3, 4] : [4, Promise.all([
|
|
358
|
+
k(H.client, l, t),
|
|
359
|
+
k(H.hostedFields, l, t),
|
|
360
|
+
G(f, t)
|
|
361
|
+
])];
|
|
362
|
+
case 3:
|
|
363
|
+
return c.sent(), [3, 5];
|
|
364
|
+
case 4:
|
|
365
|
+
throw new Error("unsupported axo platform");
|
|
366
|
+
case 5:
|
|
367
|
+
return [2, { metadata: { localeUrl: _ } }];
|
|
368
|
+
}
|
|
369
|
+
});
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
function G(a, l) {
|
|
373
|
+
var t;
|
|
374
|
+
if (l === void 0 && (l = !0), D()) {
|
|
375
|
+
x() && requirejs.config({
|
|
376
|
+
paths: (t = {}, t[v] = a, t)
|
|
377
|
+
});
|
|
378
|
+
var f = "".concat(v, "/").concat(l ? N.AXO_ASSET_NAME.minified : N.AXO_ASSET_NAME.unminified);
|
|
379
|
+
return new Promise(function(_, c) {
|
|
380
|
+
window.require([f], _, c);
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
return b({
|
|
384
|
+
id: "axo-id",
|
|
385
|
+
src: a,
|
|
386
|
+
forceScriptReload: !0
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
function W(a) {
|
|
390
|
+
var l = a.assetUrl, t = a.bundleId;
|
|
391
|
+
return t ? "https://cdn-".concat(t, ".static.engineering.dev.paypalinc.com/").concat(l) : "".concat(N.CDNX_PROD, "/").concat(l);
|
|
392
|
+
}
|
|
393
|
+
function Z(a) {
|
|
394
|
+
var l, t = (a == null ? void 0 : a.minified) !== !1 ? N.AXO_ASSET_NAME.minified : N.AXO_ASSET_NAME.unminified, f = D() ? N.AXO_ASSET_PATH : "".concat(N.AXO_ASSET_PATH, "/").concat(t, ".js");
|
|
395
|
+
return W({
|
|
396
|
+
assetUrl: f,
|
|
397
|
+
bundleId: (l = a == null ? void 0 : a.metadata) === null || l === void 0 ? void 0 : l.bundleIdOverride
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
function ee(a) {
|
|
401
|
+
var l;
|
|
402
|
+
return W({
|
|
403
|
+
assetUrl: N.LOCALE_PATH,
|
|
404
|
+
bundleId: (l = a == null ? void 0 : a.metadata) === null || l === void 0 ? void 0 : l.bundleIdOverride
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
r.constants = N, r.loadAxo = Y;
|
|
408
|
+
});
|
|
409
|
+
}, {}], 8: [function(i, u, E) {
|
|
410
|
+
var r = i("../lib/braintree-error");
|
|
411
|
+
u.exports = {
|
|
412
|
+
DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS: {
|
|
413
|
+
type: r.types.MERCHANT,
|
|
414
|
+
code: "DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS",
|
|
415
|
+
message: "Data Collector must be created with Kount and/or PayPal."
|
|
416
|
+
}
|
|
417
|
+
};
|
|
418
|
+
}, { "../lib/braintree-error": 13 }], 9: [function(i, u, E) {
|
|
419
|
+
var r = i("../lib/constants").FRAUDNET_FNCLS, n = i("../lib/constants").FRAUDNET_SOURCE, e = i("../lib/constants").FRAUDNET_URL, s = i("../lib/assets").loadScript, o = 32, d;
|
|
420
|
+
function A(h) {
|
|
421
|
+
var v = new S();
|
|
422
|
+
return h = h || {}, !h.sessionId && d ? (v.sessionId = d, Promise.resolve(v)) : v.initialize(h);
|
|
423
|
+
}
|
|
424
|
+
function T() {
|
|
425
|
+
d = null;
|
|
426
|
+
}
|
|
427
|
+
function S() {
|
|
428
|
+
}
|
|
429
|
+
S.prototype.initialize = function(h) {
|
|
430
|
+
var v = h.environment, R = this;
|
|
431
|
+
return this.sessionId = h.sessionId || h.clientSessionId, this.sessionId && (this.sessionId = this.sessionId.substring(0, o)), h.sessionId || (d = this.sessionId), this._beaconId = y(this.sessionId), this._parameterBlock = P(
|
|
432
|
+
this.sessionId,
|
|
433
|
+
this._beaconId,
|
|
434
|
+
v,
|
|
435
|
+
h.cb1
|
|
436
|
+
), s({
|
|
437
|
+
src: e
|
|
438
|
+
}).then(function(p) {
|
|
439
|
+
return R._thirdPartyBlock = p, R;
|
|
440
|
+
}).catch(function() {
|
|
441
|
+
return null;
|
|
442
|
+
});
|
|
443
|
+
}, S.prototype.teardown = function() {
|
|
444
|
+
b(document.querySelector('iframe[title="ppfniframe"]')), b(document.querySelector('iframe[title="pbf"]')), b(this._parameterBlock), b(this._thirdPartyBlock);
|
|
445
|
+
};
|
|
446
|
+
function b(h) {
|
|
447
|
+
h && h.parentNode && h.parentNode.removeChild(h);
|
|
448
|
+
}
|
|
449
|
+
function y(h) {
|
|
450
|
+
var v = (/* @__PURE__ */ new Date()).getTime() / 1e3;
|
|
451
|
+
return "https://b.stats.paypal.com/counter.cgi?i=127.0.0.1&p=" + h + "&t=" + v + "&a=14";
|
|
452
|
+
}
|
|
453
|
+
function P(h, v, R, p) {
|
|
454
|
+
var N = document.body.appendChild(document.createElement("script")), L = {
|
|
455
|
+
f: h,
|
|
456
|
+
s: n,
|
|
457
|
+
b: v,
|
|
458
|
+
cb1: p
|
|
459
|
+
};
|
|
460
|
+
return R !== "production" && (L.sandbox = !0), N.type = "application/json", N.setAttribute("fncls", r), N.text = JSON.stringify(L), N;
|
|
461
|
+
}
|
|
462
|
+
u.exports = {
|
|
463
|
+
setup: A,
|
|
464
|
+
clearSessionIdCache: T
|
|
465
|
+
};
|
|
466
|
+
}, { "../lib/assets": 11, "../lib/constants": 14 }], 10: [function(i, u, E) {
|
|
467
|
+
var r = i("./fraudnet"), n = i("../lib/braintree-error"), e = i("../lib/basic-component-verification"), s = i("../lib/create-deferred-client"), o = i("../lib/create-assets-url"), d = i("../lib/methods"), A = i("../lib/convert-methods-to-error"), T = "3.126.0", S = i("@braintree/wrap-promise"), b = i("./errors");
|
|
468
|
+
function y(v) {
|
|
469
|
+
var R = "Data Collector", p = {
|
|
470
|
+
_instances: []
|
|
471
|
+
}, N = {};
|
|
472
|
+
return e.verify({
|
|
473
|
+
name: R,
|
|
474
|
+
client: v.client,
|
|
475
|
+
authorization: v.authorization
|
|
476
|
+
}).then(function() {
|
|
477
|
+
return p._instantiatedWithAClient = !v.useDeferredClient, p._createPromise = s.create({
|
|
478
|
+
authorization: v.authorization,
|
|
479
|
+
client: v.client,
|
|
480
|
+
debug: v.debug,
|
|
481
|
+
assetsUrl: o.create(v.authorization),
|
|
482
|
+
name: R
|
|
483
|
+
}).then(function(L) {
|
|
484
|
+
var D = L.getConfiguration();
|
|
485
|
+
return r.setup({
|
|
486
|
+
sessionId: v.riskCorrelationId || v.clientMetadataId || v.correlationId,
|
|
487
|
+
clientSessionId: D.analyticsMetadata.sessionId,
|
|
488
|
+
environment: D.gatewayConfiguration.environment,
|
|
489
|
+
cb1: v.cb1
|
|
490
|
+
}).then(function(x) {
|
|
491
|
+
x && (N.correlation_id = x.sessionId, p._instances.push(x));
|
|
492
|
+
});
|
|
493
|
+
}).then(function() {
|
|
494
|
+
return p._instances.length === 0 ? Promise.reject(
|
|
495
|
+
new n(b.DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS)
|
|
496
|
+
) : (p.deviceData = JSON.stringify(N), p.rawDeviceData = N, p);
|
|
497
|
+
}), p.teardown = P(p), p.getDeviceData = h(p), p._instantiatedWithAClient ? p._createPromise : p;
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
function P(v) {
|
|
501
|
+
return S(function() {
|
|
502
|
+
return v._createPromise.then(function() {
|
|
503
|
+
v._instances.forEach(function(p) {
|
|
504
|
+
p && p.teardown();
|
|
505
|
+
}), A(v, d(v));
|
|
506
|
+
});
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
function h(v) {
|
|
510
|
+
return S(function(p) {
|
|
511
|
+
return p = p || {}, v._createPromise.then(function() {
|
|
512
|
+
return p.raw ? Promise.resolve(v.rawDeviceData) : Promise.resolve(v.deviceData);
|
|
513
|
+
});
|
|
514
|
+
});
|
|
515
|
+
}
|
|
516
|
+
u.exports = {
|
|
517
|
+
create: S(y),
|
|
518
|
+
/**
|
|
519
|
+
* @description The current version of the SDK, i.e. `{@pkg version}`.
|
|
520
|
+
* @type {string}
|
|
521
|
+
*/
|
|
522
|
+
VERSION: T
|
|
523
|
+
};
|
|
524
|
+
}, { "../lib/basic-component-verification": 12, "../lib/braintree-error": 13, "../lib/convert-methods-to-error": 15, "../lib/create-assets-url": 16, "../lib/create-deferred-client": 17, "../lib/methods": 20, "./errors": 8, "./fraudnet": 9, "@braintree/wrap-promise": 6 }], 11: [function(i, u, E) {
|
|
525
|
+
var r = i("@braintree/asset-loader/load-script"), n = i("@paypal/accelerated-checkout-loader");
|
|
526
|
+
u.exports = {
|
|
527
|
+
loadScript: r,
|
|
528
|
+
loadFastlane: n.loadAxo
|
|
529
|
+
};
|
|
530
|
+
}, { "@braintree/asset-loader/load-script": 2, "@paypal/accelerated-checkout-loader": 7 }], 12: [function(i, u, E) {
|
|
531
|
+
var r = i("./braintree-error"), n = i("./errors"), e = "3.126.0";
|
|
532
|
+
function s(o) {
|
|
533
|
+
var d, A, T;
|
|
534
|
+
return o ? (T = o.name, d = o.client, A = o.authorization, !d && !A ? Promise.reject(
|
|
535
|
+
new r({
|
|
536
|
+
type: n.INSTANTIATION_OPTION_REQUIRED.type,
|
|
537
|
+
code: n.INSTANTIATION_OPTION_REQUIRED.code,
|
|
538
|
+
// NEXT_MAJOR_VERSION in major version, we expose passing in authorization for all components
|
|
539
|
+
// instead of passing in a client instance. Leave this a silent feature for now.
|
|
540
|
+
message: "options.client is required when instantiating " + T + "."
|
|
541
|
+
})
|
|
542
|
+
) : !A && d.getVersion() !== e ? Promise.reject(
|
|
543
|
+
new r({
|
|
544
|
+
type: n.INCOMPATIBLE_VERSIONS.type,
|
|
545
|
+
code: n.INCOMPATIBLE_VERSIONS.code,
|
|
546
|
+
message: "Client (version " + d.getVersion() + ") and " + T + " (version " + e + ") components must be from the same SDK version."
|
|
547
|
+
})
|
|
548
|
+
) : Promise.resolve()) : Promise.reject(
|
|
549
|
+
new r({
|
|
550
|
+
type: n.INVALID_USE_OF_INTERNAL_FUNCTION.type,
|
|
551
|
+
code: n.INVALID_USE_OF_INTERNAL_FUNCTION.code,
|
|
552
|
+
message: "Options must be passed to basicComponentVerification function."
|
|
553
|
+
})
|
|
554
|
+
);
|
|
555
|
+
}
|
|
556
|
+
u.exports = {
|
|
557
|
+
verify: s
|
|
558
|
+
};
|
|
559
|
+
}, { "./braintree-error": 13, "./errors": 19 }], 13: [function(i, u, E) {
|
|
560
|
+
var r = i("./enumerate");
|
|
561
|
+
function n(e) {
|
|
562
|
+
if (!n.types.hasOwnProperty(e.type))
|
|
563
|
+
throw new Error(e.type + " is not a valid type.");
|
|
564
|
+
if (!e.code)
|
|
565
|
+
throw new Error("Error code required.");
|
|
566
|
+
if (!e.message)
|
|
567
|
+
throw new Error("Error message required.");
|
|
568
|
+
this.name = "BraintreeError", this.code = e.code, this.message = e.message, this.type = e.type, this.details = e.details;
|
|
569
|
+
}
|
|
570
|
+
n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n.types = r([
|
|
571
|
+
"CUSTOMER",
|
|
572
|
+
"MERCHANT",
|
|
573
|
+
"NETWORK",
|
|
574
|
+
"INTERNAL",
|
|
575
|
+
"UNKNOWN"
|
|
576
|
+
]), n.findRootError = function(e) {
|
|
577
|
+
return e instanceof n && e.details && e.details.originalError ? n.findRootError(e.details.originalError) : e;
|
|
578
|
+
}, u.exports = n;
|
|
579
|
+
}, { "./enumerate": 18 }], 14: [function(i, u, E) {
|
|
580
|
+
var r = "3.126.0", n = "web", e = {
|
|
581
|
+
production: "https://api.braintreegateway.com:443",
|
|
582
|
+
sandbox: "https://api.sandbox.braintreegateway.com:443"
|
|
583
|
+
}, s = {
|
|
584
|
+
production: "https://assets.braintreegateway.com",
|
|
585
|
+
sandbox: "https://assets.braintreegateway.com"
|
|
586
|
+
}, o = {
|
|
587
|
+
production: "https://payments.braintree-api.com/graphql",
|
|
588
|
+
sandbox: "https://payments.sandbox.braintree-api.com/graphql"
|
|
589
|
+
};
|
|
590
|
+
u.exports = {
|
|
591
|
+
ANALYTICS_PREFIX: n + ".",
|
|
592
|
+
ANALYTICS_REQUEST_TIMEOUT_MS: 2e3,
|
|
593
|
+
ANALYTICS_URL: "https://www.paypal.com/xoplatform/logger/api/logger",
|
|
594
|
+
ASSETS_URLS: s,
|
|
595
|
+
CLIENT_API_URLS: e,
|
|
596
|
+
FRAUDNET_SOURCE: "BRAINTREE_SIGNIN",
|
|
597
|
+
FRAUDNET_FNCLS: "fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99",
|
|
598
|
+
FRAUDNET_URL: "https://c.paypal.com/da/r/fb.js",
|
|
599
|
+
BUS_CONFIGURATION_REQUEST_EVENT: "BUS_CONFIGURATION_REQUEST",
|
|
600
|
+
GRAPHQL_URLS: o,
|
|
601
|
+
INTEGRATION_TIMEOUT_MS: 6e4,
|
|
602
|
+
VERSION: r,
|
|
603
|
+
INTEGRATION: "custom",
|
|
604
|
+
SOURCE: "client",
|
|
605
|
+
PLATFORM: n,
|
|
606
|
+
BRAINTREE_LIBRARY_VERSION: "braintree/" + n + "/" + r,
|
|
607
|
+
ALLOWED_EXTRA_EVENT_FIELDS: ["context_id", "context_type"]
|
|
608
|
+
};
|
|
609
|
+
}, {}], 15: [function(i, u, E) {
|
|
610
|
+
var r = i("./braintree-error"), n = i("./errors");
|
|
611
|
+
u.exports = function(e, s) {
|
|
612
|
+
s.forEach(function(o) {
|
|
613
|
+
e[o] = function() {
|
|
614
|
+
throw new r({
|
|
615
|
+
type: n.METHOD_CALLED_AFTER_TEARDOWN.type,
|
|
616
|
+
code: n.METHOD_CALLED_AFTER_TEARDOWN.code,
|
|
617
|
+
message: o + " cannot be called after teardown."
|
|
618
|
+
});
|
|
619
|
+
};
|
|
620
|
+
});
|
|
621
|
+
};
|
|
622
|
+
}, { "./braintree-error": 13, "./errors": 19 }], 16: [function(i, u, E) {
|
|
623
|
+
var r = i("./constants").ASSETS_URLS;
|
|
624
|
+
function n(e) {
|
|
625
|
+
return r.production;
|
|
626
|
+
}
|
|
627
|
+
u.exports = {
|
|
628
|
+
create: n
|
|
629
|
+
};
|
|
630
|
+
}, { "./constants": 14 }], 17: [function(i, u, E) {
|
|
631
|
+
var r = i("./braintree-error"), n = i("./assets"), e = i("./errors"), s = "3.126.0";
|
|
632
|
+
function o(d) {
|
|
633
|
+
var A = Promise.resolve();
|
|
634
|
+
return d.client ? Promise.resolve(d.client) : (window.braintree && window.braintree.client || (A = n.loadScript({
|
|
635
|
+
src: d.assetsUrl + "/web/" + s + "/js/client.min.js"
|
|
636
|
+
}).catch(function(T) {
|
|
637
|
+
return Promise.reject(
|
|
638
|
+
new r({
|
|
639
|
+
type: e.CLIENT_SCRIPT_FAILED_TO_LOAD.type,
|
|
640
|
+
code: e.CLIENT_SCRIPT_FAILED_TO_LOAD.code,
|
|
641
|
+
message: e.CLIENT_SCRIPT_FAILED_TO_LOAD.message,
|
|
642
|
+
details: {
|
|
643
|
+
originalError: T
|
|
644
|
+
}
|
|
645
|
+
})
|
|
646
|
+
);
|
|
647
|
+
})), A.then(function() {
|
|
648
|
+
return window.braintree.client.VERSION !== s ? Promise.reject(
|
|
649
|
+
new r({
|
|
650
|
+
type: e.INCOMPATIBLE_VERSIONS.type,
|
|
651
|
+
code: e.INCOMPATIBLE_VERSIONS.code,
|
|
652
|
+
message: "Client (version " + window.braintree.client.VERSION + ") and " + d.name + " (version " + s + ") components must be from the same SDK version."
|
|
653
|
+
})
|
|
654
|
+
) : window.braintree.client.create({
|
|
655
|
+
authorization: d.authorization,
|
|
656
|
+
debug: d.debug
|
|
657
|
+
});
|
|
658
|
+
}));
|
|
659
|
+
}
|
|
660
|
+
u.exports = {
|
|
661
|
+
create: o
|
|
662
|
+
};
|
|
663
|
+
}, { "./assets": 11, "./braintree-error": 13, "./errors": 19 }], 18: [function(i, u, E) {
|
|
664
|
+
function r(n, e) {
|
|
665
|
+
return e = e == null ? "" : e, n.reduce(function(s, o) {
|
|
666
|
+
return s[o] = e + o, s;
|
|
667
|
+
}, {});
|
|
668
|
+
}
|
|
669
|
+
u.exports = r;
|
|
670
|
+
}, {}], 19: [function(i, u, E) {
|
|
671
|
+
var r = i("./braintree-error");
|
|
672
|
+
u.exports = {
|
|
673
|
+
INVALID_USE_OF_INTERNAL_FUNCTION: {
|
|
674
|
+
type: r.types.INTERNAL,
|
|
675
|
+
code: "INVALID_USE_OF_INTERNAL_FUNCTION"
|
|
676
|
+
},
|
|
677
|
+
INSTANTIATION_OPTION_REQUIRED: {
|
|
678
|
+
type: r.types.MERCHANT,
|
|
679
|
+
code: "INSTANTIATION_OPTION_REQUIRED"
|
|
680
|
+
},
|
|
681
|
+
INCOMPATIBLE_VERSIONS: {
|
|
682
|
+
type: r.types.MERCHANT,
|
|
683
|
+
code: "INCOMPATIBLE_VERSIONS"
|
|
684
|
+
},
|
|
685
|
+
CLIENT_SCRIPT_FAILED_TO_LOAD: {
|
|
686
|
+
type: r.types.NETWORK,
|
|
687
|
+
code: "CLIENT_SCRIPT_FAILED_TO_LOAD",
|
|
688
|
+
message: "Braintree client script could not be loaded."
|
|
689
|
+
},
|
|
690
|
+
METHOD_CALLED_AFTER_TEARDOWN: {
|
|
691
|
+
type: r.types.MERCHANT,
|
|
692
|
+
code: "METHOD_CALLED_AFTER_TEARDOWN"
|
|
693
|
+
}
|
|
694
|
+
};
|
|
695
|
+
}, { "./braintree-error": 13 }], 20: [function(i, u, E) {
|
|
696
|
+
u.exports = function(r) {
|
|
697
|
+
return Object.keys(r).filter(function(n) {
|
|
698
|
+
return typeof r[n] == "function";
|
|
699
|
+
});
|
|
700
|
+
};
|
|
701
|
+
}, {}] }, {}, [10])(10);
|
|
702
|
+
});
|
|
703
|
+
}(Q)), Q.exports;
|
|
704
|
+
}
|
|
705
|
+
var K = ne();
|
|
706
|
+
const ie = /* @__PURE__ */ re(K), oe = /* @__PURE__ */ te({
|
|
707
|
+
__proto__: null,
|
|
708
|
+
default: ie
|
|
709
|
+
}, [K]);
|
|
710
|
+
export {
|
|
711
|
+
oe as d
|
|
712
|
+
};
|
|
713
|
+
//# sourceMappingURL=data-collector-DPBfun3X.js.map
|