@kiva/kv-shop 3.0.3 → 3.0.4
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/useBraintreeDropIn.js +38 -38
- package/package.json +3 -5
- package/dist/_virtual/_commonjsHelpers.js +0 -8
- package/dist/_virtual/index.js +0 -11
- package/dist/vendor/braintree-web-drop-in/constants.js +0 -90
- package/dist/vendor/braintree-web-drop-in/dropin-model.js +0 -228
- package/dist/vendor/braintree-web-drop-in/dropin.js +0 -727
- package/dist/vendor/braintree-web-drop-in/index.js +0 -53
- package/dist/vendor/braintree-web-drop-in/lib/add-selection-event-handler.js +0 -14
- package/dist/vendor/braintree-web-drop-in/lib/analytics.js +0 -34
- package/dist/vendor/braintree-web-drop-in/lib/assign.js +0 -22
- package/dist/vendor/braintree-web-drop-in/lib/browser-detection.js +0 -15
- package/dist/vendor/braintree-web-drop-in/lib/create-from-script-tag.js +0 -74
- package/dist/vendor/braintree-web-drop-in/lib/data-collector.js +0 -38
- package/dist/vendor/braintree-web-drop-in/lib/dropin-error.js +0 -15
- package/dist/vendor/braintree-web-drop-in/lib/find-parent-form.js +0 -15
- package/dist/vendor/braintree-web-drop-in/lib/is-guest-checkout.js +0 -14
- package/dist/vendor/braintree-web-drop-in/lib/is-https.js +0 -15
- package/dist/vendor/braintree-web-drop-in/lib/is-utf-8.js +0 -10
- package/dist/vendor/braintree-web-drop-in/lib/kebab-case-to-camel-case.js +0 -15
- package/dist/vendor/braintree-web-drop-in/lib/polyfill.js +0 -26
- package/dist/vendor/braintree-web-drop-in/lib/sanitize-html.js +0 -9
- package/dist/vendor/braintree-web-drop-in/lib/supports-flexbox.js +0 -18
- package/dist/vendor/braintree-web-drop-in/lib/three-d-secure.js +0 -49
- package/dist/vendor/braintree-web-drop-in/lib/transition-helper.js +0 -26
- package/dist/vendor/braintree-web-drop-in/lib/wait.js +0 -16
- package/dist/vendor/braintree-web-drop-in/translations/ar_EG.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/cs_CZ.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/da_DK.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/de_DE.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/el_GR.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/en_AU.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/en_GB.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/en_IN.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/en_US.js +0 -84
- package/dist/vendor/braintree-web-drop-in/translations/es_ES.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/es_XC.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/fi_FI.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/fr_CA.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/fr_FR.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/fr_XC.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/he_IL.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/hu_HU.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/id_ID.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/index.js +0 -108
- package/dist/vendor/braintree-web-drop-in/translations/it_IT.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/ja_JP.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/ko_KR.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/nl_NL.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/no_NO.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/pl_PL.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/pt_BR.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/pt_PT.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/ru_RU.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/sk_SK.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/sv_SE.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/th_TH.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/zh_CN.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/zh_HK.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/zh_TW.js +0 -81
- package/dist/vendor/braintree-web-drop-in/translations/zh_XC.js +0 -81
- package/dist/vendor/braintree-web-drop-in/views/base-view.js +0 -29
- package/dist/vendor/braintree-web-drop-in/views/delete-confirmation-view.js +0 -44
- package/dist/vendor/braintree-web-drop-in/views/main-view.js +0 -152
- package/dist/vendor/braintree-web-drop-in/views/payment-method-view.js +0 -76
- package/dist/vendor/braintree-web-drop-in/views/payment-methods-view.js +0 -72
- package/dist/vendor/braintree-web-drop-in/views/payment-options-view.js +0 -61
- package/dist/vendor/braintree-web-drop-in/views/payment-sheet-views/apple-pay-view.js +0 -59
- package/dist/vendor/braintree-web-drop-in/views/payment-sheet-views/base-paypal-view.js +0 -79
- package/dist/vendor/braintree-web-drop-in/views/payment-sheet-views/card-view.js +0 -324
- package/dist/vendor/braintree-web-drop-in/views/payment-sheet-views/google-pay-view.js +0 -85
- package/dist/vendor/braintree-web-drop-in/views/payment-sheet-views/index.js +0 -17
- package/dist/vendor/braintree-web-drop-in/views/payment-sheet-views/paypal-credit-view.js +0 -20
- package/dist/vendor/braintree-web-drop-in/views/payment-sheet-views/paypal-view.js +0 -20
- package/dist/vendor/braintree-web-drop-in/views/payment-sheet-views/venmo-view.js +0 -50
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { __require as h } from "./dropin.js";
|
|
2
|
-
import y from "braintree-web/client";
|
|
3
|
-
import { __require as E } from "./lib/create-from-script-tag.js";
|
|
4
|
-
import { __require as T } from "./constants.js";
|
|
5
|
-
import { __require as z } from "./lib/analytics.js";
|
|
6
|
-
import { __require as D } from "./lib/dropin-error.js";
|
|
7
|
-
import N from "@braintree/wrap-promise";
|
|
8
|
-
var i, s;
|
|
9
|
-
function R() {
|
|
10
|
-
if (s) return i;
|
|
11
|
-
s = 1;
|
|
12
|
-
var m = h(), p = y, c = E(), t = T(), a = z(), o = D(), q = N, n = "1.44.1";
|
|
13
|
-
function u(e) {
|
|
14
|
-
return e.authorization ? p.create({
|
|
15
|
-
authorization: e.authorization
|
|
16
|
-
}).catch(function(r) {
|
|
17
|
-
return Promise.reject(new o({
|
|
18
|
-
message: "There was an error creating Drop-in.",
|
|
19
|
-
braintreeWebError: r
|
|
20
|
-
}));
|
|
21
|
-
}).then(function(r) {
|
|
22
|
-
return r = d(r), r.getConfiguration().authorizationType === "TOKENIZATION_KEY" ? a.sendEvent(r, "started.tokenization-key") : a.sendEvent(r, "started.client-token"), new Promise(function(g, _) {
|
|
23
|
-
new m({
|
|
24
|
-
merchantConfiguration: e,
|
|
25
|
-
client: r
|
|
26
|
-
})._initialize(function(f, v) {
|
|
27
|
-
if (f) {
|
|
28
|
-
_(f);
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
g(v);
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
}) : Promise.reject(new o("options.authorization is required."));
|
|
35
|
-
}
|
|
36
|
-
function d(e) {
|
|
37
|
-
var r = e.getConfiguration();
|
|
38
|
-
return r.analyticsMetadata.integration = t.INTEGRATION, r.analyticsMetadata.integrationType = t.INTEGRATION, r.analyticsMetadata.dropinVersion = n, e.getConfiguration = function() {
|
|
39
|
-
return r;
|
|
40
|
-
}, e;
|
|
41
|
-
}
|
|
42
|
-
return c(u, typeof document < "u" && document.querySelector("script[data-braintree-dropin-authorization]")), i = {
|
|
43
|
-
create: q(u),
|
|
44
|
-
/**
|
|
45
|
-
* @description The current version of Drop-in, i.e. `1.44.1`.
|
|
46
|
-
* @type {string}
|
|
47
|
-
*/
|
|
48
|
-
VERSION: n
|
|
49
|
-
}, i;
|
|
50
|
-
}
|
|
51
|
-
export {
|
|
52
|
-
R as __require
|
|
53
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { __require as v } from "./polyfill.js";
|
|
2
|
-
import { __require as p } from "../constants.js";
|
|
3
|
-
import q from "braintree-web/client";
|
|
4
|
-
var i, n;
|
|
5
|
-
function h() {
|
|
6
|
-
if (n) return i;
|
|
7
|
-
n = 1;
|
|
8
|
-
var o = v().atob, e = p(), s = q.VERSION;
|
|
9
|
-
function u(t) {
|
|
10
|
-
return Math.floor(t / 1e3);
|
|
11
|
-
}
|
|
12
|
-
function l(t, m, _) {
|
|
13
|
-
var r = t.getConfiguration(), c = t._request, f = u(Date.now()), y = r.gatewayConfiguration.analytics.url, a = {
|
|
14
|
-
analytics: [{
|
|
15
|
-
kind: e.ANALYTICS_PREFIX + m,
|
|
16
|
-
timestamp: f
|
|
17
|
-
}],
|
|
18
|
-
_meta: r.analyticsMetadata,
|
|
19
|
-
braintreeLibraryVersion: s
|
|
20
|
-
};
|
|
21
|
-
r.authorizationType === "TOKENIZATION_KEY" ? a.tokenizationKey = r.authorization : a.authorizationFingerprint = JSON.parse(o(r.authorization)).authorizationFingerprint, c({
|
|
22
|
-
url: y,
|
|
23
|
-
method: "post",
|
|
24
|
-
data: a,
|
|
25
|
-
timeout: e.ANALYTICS_REQUEST_TIMEOUT_MS
|
|
26
|
-
}, _);
|
|
27
|
-
}
|
|
28
|
-
return i = {
|
|
29
|
-
sendEvent: l
|
|
30
|
-
}, i;
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
h as __require
|
|
34
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
var e, g;
|
|
2
|
-
function u() {
|
|
3
|
-
if (g) return e;
|
|
4
|
-
g = 1;
|
|
5
|
-
var t = typeof Object.assign == "function" ? Object.assign : i;
|
|
6
|
-
function i(a) {
|
|
7
|
-
var r, s, n;
|
|
8
|
-
for (r = 1; r < arguments.length; r++) {
|
|
9
|
-
s = arguments[r];
|
|
10
|
-
for (n in s)
|
|
11
|
-
s.hasOwnProperty(n) && (a[n] = s[n]);
|
|
12
|
-
}
|
|
13
|
-
return a;
|
|
14
|
-
}
|
|
15
|
-
return e = {
|
|
16
|
-
assign: t,
|
|
17
|
-
_assign: i
|
|
18
|
-
}, e;
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
u as __require
|
|
22
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import t from "@braintree/browser-detection/is-ie9";
|
|
2
|
-
import s from "@braintree/browser-detection/is-ie10";
|
|
3
|
-
var r, e;
|
|
4
|
-
function a() {
|
|
5
|
-
if (e) return r;
|
|
6
|
-
e = 1;
|
|
7
|
-
var i = t, o = s;
|
|
8
|
-
return r = {
|
|
9
|
-
isIe9: i,
|
|
10
|
-
isIe10: o
|
|
11
|
-
}, r;
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
a as __require
|
|
15
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { __require as E } from "./analytics.js";
|
|
2
|
-
import { __require as g } from "./find-parent-form.js";
|
|
3
|
-
import C from "@braintree/uuid";
|
|
4
|
-
import { __require as S } from "./dropin-error.js";
|
|
5
|
-
import { __require as T } from "./kebab-case-to-camel-case.js";
|
|
6
|
-
var c, f;
|
|
7
|
-
function N() {
|
|
8
|
-
if (f) return c;
|
|
9
|
-
f = 1;
|
|
10
|
-
var s = E(), y = g(), v = C, p = S(), h = T(), _ = [
|
|
11
|
-
"locale",
|
|
12
|
-
"payment-option-priority",
|
|
13
|
-
"data-collector.kount",
|
|
14
|
-
"data-collector.paypal",
|
|
15
|
-
// camelcase version was accidentally used initially.
|
|
16
|
-
// we add the kebab case version to match the docs, but
|
|
17
|
-
// we retain the camelcase version for backwards compatibility
|
|
18
|
-
"card.cardholderName",
|
|
19
|
-
"card.cardholderName.required",
|
|
20
|
-
"card.cardholder-name",
|
|
21
|
-
"card.cardholder-name.required",
|
|
22
|
-
"paypal.amount",
|
|
23
|
-
"paypal.currency",
|
|
24
|
-
"paypal.flow",
|
|
25
|
-
"paypal.landing-page-type",
|
|
26
|
-
"paypal-credit.amount",
|
|
27
|
-
"paypal-credit.currency",
|
|
28
|
-
"paypal-credit.flow",
|
|
29
|
-
"paypal-credit.landing-page-type"
|
|
30
|
-
];
|
|
31
|
-
function l(r, t, a) {
|
|
32
|
-
var e = a.querySelector('[name="' + r + '"]');
|
|
33
|
-
e || (e = document.createElement("input"), e.type = "hidden", e.name = r, a.appendChild(e)), e.value = t;
|
|
34
|
-
}
|
|
35
|
-
function m(r, t, a) {
|
|
36
|
-
var e = t.split("."), i = h(e[0]);
|
|
37
|
-
e.length === 1 ? r[i] = q(a) : (r[i] = r[i] || {}, m(r[i], e.slice(1).join("."), a));
|
|
38
|
-
}
|
|
39
|
-
function q(r) {
|
|
40
|
-
try {
|
|
41
|
-
return JSON.parse(r);
|
|
42
|
-
} catch {
|
|
43
|
-
return r;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
function b(r, t) {
|
|
47
|
-
var a, e, i, n;
|
|
48
|
-
if (t) {
|
|
49
|
-
if (a = t.getAttribute("data-braintree-dropin-authorization"), !a)
|
|
50
|
-
throw new p("Authorization not found in data-braintree-dropin-authorization attribute");
|
|
51
|
-
if (e = document.createElement("div"), e.id = "braintree-dropin-" + v(), n = y.findParentForm(t), !n)
|
|
52
|
-
throw new p("No form found for script tag integration.");
|
|
53
|
-
n.addEventListener("submit", function(o) {
|
|
54
|
-
o.preventDefault();
|
|
55
|
-
}), t.parentNode.insertBefore(e, t), i = {
|
|
56
|
-
authorization: a,
|
|
57
|
-
container: e
|
|
58
|
-
}, _.forEach(function(o) {
|
|
59
|
-
var u = t.getAttribute("data-" + o);
|
|
60
|
-
u != null && m(i, o, u);
|
|
61
|
-
}), r(i).then(function(o) {
|
|
62
|
-
s.sendEvent(o._client, "integration-type.script-tag"), n.addEventListener("submit", function() {
|
|
63
|
-
o.requestPaymentMethod(function(u, d) {
|
|
64
|
-
u || (l("payment_method_nonce", d.nonce, n), d.deviceData && l("device_data", d.deviceData, n), n.submit());
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return c = b, c;
|
|
71
|
-
}
|
|
72
|
-
export {
|
|
73
|
-
N as __require
|
|
74
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { commonjsGlobal as n } from "../../../_virtual/_commonjsHelpers.js";
|
|
2
|
-
import { __require as l } from "../constants.js";
|
|
3
|
-
import { __require as u } from "./analytics.js";
|
|
4
|
-
import f from "@braintree/asset-loader";
|
|
5
|
-
var o, i;
|
|
6
|
-
function v() {
|
|
7
|
-
if (i) return o;
|
|
8
|
-
i = 1;
|
|
9
|
-
var a = l(), c = u(), s = f;
|
|
10
|
-
function r(t) {
|
|
11
|
-
this._config = t;
|
|
12
|
-
}
|
|
13
|
-
return r.prototype.initialize = function() {
|
|
14
|
-
var t = this;
|
|
15
|
-
return Promise.resolve().then(function() {
|
|
16
|
-
var e;
|
|
17
|
-
return n.braintree && n.braintree.dataCollector ? Promise.resolve() : (e = t._config.client.getVersion(), s.loadScript({
|
|
18
|
-
src: "https://js.braintreegateway.com/web/" + e + "/js/data-collector.min.js",
|
|
19
|
-
id: a.DATA_COLLECTOR_SCRIPT_ID
|
|
20
|
-
}));
|
|
21
|
-
}).then(function() {
|
|
22
|
-
return n.braintree.dataCollector.create(t._config);
|
|
23
|
-
}).then(function(e) {
|
|
24
|
-
t._instance = e;
|
|
25
|
-
}).catch(function(e) {
|
|
26
|
-
c.sendEvent(t._config.client, "data-collector.setup-failed"), t.log(e);
|
|
27
|
-
});
|
|
28
|
-
}, r.prototype.log = function(t) {
|
|
29
|
-
console.log(t);
|
|
30
|
-
}, r.prototype.getDeviceData = function() {
|
|
31
|
-
return this._instance ? this._instance.deviceData : "";
|
|
32
|
-
}, r.prototype.teardown = function() {
|
|
33
|
-
return this._instance ? this._instance.teardown() : Promise.resolve();
|
|
34
|
-
}, o = r, o;
|
|
35
|
-
}
|
|
36
|
-
export {
|
|
37
|
-
v as __require
|
|
38
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var o, t;
|
|
2
|
-
function n() {
|
|
3
|
-
if (t) return o;
|
|
4
|
-
t = 1;
|
|
5
|
-
function i(r) {
|
|
6
|
-
return r.name === "BraintreeError";
|
|
7
|
-
}
|
|
8
|
-
function e(r) {
|
|
9
|
-
this.name = "DropinError", typeof r == "string" ? this.message = r : this.message = r.message, i(r) ? this._braintreeWebError = r : this._braintreeWebError = r.braintreeWebError;
|
|
10
|
-
}
|
|
11
|
-
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, o = e, o;
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
n as __require
|
|
15
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { __require as a } from "./polyfill.js";
|
|
2
|
-
var t, e;
|
|
3
|
-
function s() {
|
|
4
|
-
if (e) return t;
|
|
5
|
-
e = 1;
|
|
6
|
-
var u = a().atob;
|
|
7
|
-
return t = function(o) {
|
|
8
|
-
var r, i = o.getConfiguration();
|
|
9
|
-
return i.authorizationType !== "TOKENIZATION_KEY" ? (r = JSON.parse(u(i.authorization)).authorizationFingerprint, !r || r.indexOf("customer_id=") === -1) : !0;
|
|
10
|
-
}, t;
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
s as __require
|
|
14
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { commonjsGlobal as s } from "../../../_virtual/_commonjsHelpers.js";
|
|
2
|
-
var r, t;
|
|
3
|
-
function e() {
|
|
4
|
-
if (t) return r;
|
|
5
|
-
t = 1;
|
|
6
|
-
function o() {
|
|
7
|
-
return s.location.protocol === "https:";
|
|
8
|
-
}
|
|
9
|
-
return r = {
|
|
10
|
-
isHTTPS: o
|
|
11
|
-
}, r;
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
e as __require
|
|
15
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { commonjsGlobal as o } from "../../../_virtual/_commonjsHelpers.js";
|
|
2
|
-
var e, t;
|
|
3
|
-
function u() {
|
|
4
|
-
return t || (t = 1, e = function(r) {
|
|
5
|
-
return r = r || o, !!(r.document.characterSet && r.document.characterSet.toLowerCase() === "utf-8");
|
|
6
|
-
}), e;
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
u as __require
|
|
10
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var a, s;
|
|
2
|
-
function o() {
|
|
3
|
-
if (s) return a;
|
|
4
|
-
s = 1;
|
|
5
|
-
function t(i) {
|
|
6
|
-
var e = i.split("-"), n = e.shift(), C = e.map(function(r) {
|
|
7
|
-
return r.charAt(0).toUpperCase() + r.substring(1);
|
|
8
|
-
});
|
|
9
|
-
return [n].concat(C).join("");
|
|
10
|
-
}
|
|
11
|
-
return a = t, a;
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
o as __require
|
|
15
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { commonjsGlobal as l } from "../../../_virtual/_commonjsHelpers.js";
|
|
2
|
-
var f, b;
|
|
3
|
-
function v() {
|
|
4
|
-
if (b) return f;
|
|
5
|
-
b = 1;
|
|
6
|
-
var m = typeof l.atob == "function" ? l.atob : c;
|
|
7
|
-
function c(r) {
|
|
8
|
-
var d, e, t, h, n, i, u, o, p = new RegExp("^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})([=]{1,2})?$"), a = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", x = "";
|
|
9
|
-
if (!p.test(r))
|
|
10
|
-
throw new Error("Non base64 encoded input passed to window.atob polyfill");
|
|
11
|
-
o = 0;
|
|
12
|
-
do
|
|
13
|
-
h = a.indexOf(r.charAt(o++)), n = a.indexOf(r.charAt(o++)), i = a.indexOf(r.charAt(o++)), u = a.indexOf(r.charAt(o++)), d = (h & 63) << 2 | n >> 4 & 3, e = (n & 15) << 4 | i >> 2 & 15, t = (i & 3) << 6 | u & 63, x += String.fromCharCode(d) + (e ? String.fromCharCode(e) : "") + (t ? String.fromCharCode(t) : "");
|
|
14
|
-
while (o < r.length);
|
|
15
|
-
return x;
|
|
16
|
-
}
|
|
17
|
-
return f = {
|
|
18
|
-
atob: function(r) {
|
|
19
|
-
return m.call(l, r);
|
|
20
|
-
},
|
|
21
|
-
_atob: c
|
|
22
|
-
}, f;
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
v as __require
|
|
26
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
var e, t;
|
|
2
|
-
function u() {
|
|
3
|
-
return t || (t = 1, e = function() {
|
|
4
|
-
var r = document.createElement("div"), o = "flex-basis: 1px", s = [
|
|
5
|
-
"-webkit-",
|
|
6
|
-
"-moz-",
|
|
7
|
-
"-ms-",
|
|
8
|
-
"-o-",
|
|
9
|
-
""
|
|
10
|
-
];
|
|
11
|
-
return s.forEach(function(n) {
|
|
12
|
-
r.style.cssText += n + o;
|
|
13
|
-
}), !!r.style.length;
|
|
14
|
-
}), e;
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
u as __require
|
|
18
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { __require as h } from "./assign.js";
|
|
2
|
-
import _ from "braintree-web/three-d-secure";
|
|
3
|
-
var a, u;
|
|
4
|
-
function S() {
|
|
5
|
-
if (u) return a;
|
|
6
|
-
u = 1;
|
|
7
|
-
var c = h().assign, s = _, f = "03", d = [
|
|
8
|
-
"customer-canceled",
|
|
9
|
-
"authentication-modal-render",
|
|
10
|
-
"authentication-modal-close"
|
|
11
|
-
];
|
|
12
|
-
function t(i, n) {
|
|
13
|
-
this._client = i, this._model = n, this._config = c({}, n.merchantConfiguration.threeDSecure);
|
|
14
|
-
}
|
|
15
|
-
return t.prototype.initialize = function() {
|
|
16
|
-
var i = this, n = {
|
|
17
|
-
client: this._client,
|
|
18
|
-
version: 2
|
|
19
|
-
};
|
|
20
|
-
return this._config.cardinalSDKConfig && (n.cardinalSDKConfig = this._config.cardinalSDKConfig), s.create(n).then(function(e) {
|
|
21
|
-
i._instance = e, d.forEach(function(r) {
|
|
22
|
-
i._instance.on(r, function(o) {
|
|
23
|
-
i._model._emit("3ds:" + r, o);
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
}, t.prototype.verify = function(i, n) {
|
|
28
|
-
var e = c({
|
|
29
|
-
amount: this._config.amount
|
|
30
|
-
}, n, {
|
|
31
|
-
nonce: i.nonce,
|
|
32
|
-
bin: i.details.bin,
|
|
33
|
-
// TODO in the future, we will allow
|
|
34
|
-
// merchants to pass in a custom
|
|
35
|
-
// onLookupComplete hook
|
|
36
|
-
onLookupComplete: function(r, o) {
|
|
37
|
-
o();
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
return e.additionalInformation = e.additionalInformation || {}, e.additionalInformation.acsWindowSize = e.additionalInformation.acsWindowSize || f, this._model.shouldWaitForVerifyCard = !0, this._instance.verifyCard(e);
|
|
41
|
-
}, t.prototype.updateConfiguration = function(i, n) {
|
|
42
|
-
this._config[i] = n;
|
|
43
|
-
}, t.prototype.teardown = function() {
|
|
44
|
-
return this._instance.teardown();
|
|
45
|
-
}, a = t, a;
|
|
46
|
-
}
|
|
47
|
-
export {
|
|
48
|
-
S as __require
|
|
49
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { __require as f } from "./browser-detection.js";
|
|
2
|
-
var n, o;
|
|
3
|
-
function v() {
|
|
4
|
-
if (o) return n;
|
|
5
|
-
o = 1;
|
|
6
|
-
var s = f();
|
|
7
|
-
function e(r) {
|
|
8
|
-
return r ? r.style.display === "none" ? !0 : e(r.parentNode) : !1;
|
|
9
|
-
}
|
|
10
|
-
function a(r, u, i) {
|
|
11
|
-
if (s.isIe9() || e(r)) {
|
|
12
|
-
i();
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
function t(d) {
|
|
16
|
-
d.propertyName === u && (r.removeEventListener("transitionend", t), i());
|
|
17
|
-
}
|
|
18
|
-
r.addEventListener("transitionend", t);
|
|
19
|
-
}
|
|
20
|
-
return n = {
|
|
21
|
-
onTransitionEnd: a
|
|
22
|
-
}, n;
|
|
23
|
-
}
|
|
24
|
-
export {
|
|
25
|
-
v as __require
|
|
26
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
var e, a;
|
|
2
|
-
function r() {
|
|
3
|
-
return a || (a = 1, e = {
|
|
4
|
-
payingWith: "الدفع بواسطة {{paymentSource}}",
|
|
5
|
-
chooseAnotherWayToPay: "اختر طريقة دفع أخرى",
|
|
6
|
-
chooseAWayToPay: "اختر طريقة الدفع",
|
|
7
|
-
otherWaysToPay: "طرق أخرى للدفع",
|
|
8
|
-
edit: "تحرير",
|
|
9
|
-
doneEditing: "تم",
|
|
10
|
-
editPaymentMethods: "تحرير طرق الدفع",
|
|
11
|
-
CreditCardDeleteConfirmationMessage: "هل تريد حذف بطاقة {{secondaryIdentifier}} التي تنتهي بالأرقام {{identifier}}؟",
|
|
12
|
-
PayPalAccountDeleteConfirmationMessage: "هل تريد حذف {{identifier}}الحساب PayPal؟",
|
|
13
|
-
VenmoAccountDeleteConfirmationMessage: "هل تريد فعلاً حذف حساب Venmo الذي يحمل اسم المستخدم {{identifier}}؟",
|
|
14
|
-
genericDeleteConfirmationMessage: "هل تريد بالفعل حذف طريقة الدفع؟",
|
|
15
|
-
deleteCancelButton: "إلغاء",
|
|
16
|
-
deleteConfirmationButton: "حذف",
|
|
17
|
-
fieldEmptyForCvv: "يرجى إدخال رمز حماية البطاقة.",
|
|
18
|
-
fieldEmptyForExpirationDate: "يرجى إدخال تاريخ انتهاء الصلاحية.",
|
|
19
|
-
fieldEmptyForCardholderName: "يرجى إدخال اسم صاحب البطاقة.",
|
|
20
|
-
fieldTooLongForCardholderName: "يجب أن يقل اسم صاحب البطاقة عن 256 حرفاً.",
|
|
21
|
-
fieldEmptyForNumber: "يرجى إدخال رقم.",
|
|
22
|
-
fieldEmptyForPostalCode: "يرجى إدخال الرمز البريدي.",
|
|
23
|
-
fieldInvalidForCardholderName: "اسم حامل البطاقة غير صحيح.",
|
|
24
|
-
fieldInvalidForCvv: "رمز الحماية غير صحيح.",
|
|
25
|
-
fieldInvalidForExpirationDate: "تاريخ انتهاء الصلاحية غير صحيح.",
|
|
26
|
-
fieldInvalidForNumber: "رقم البطاقة غير صحيح.",
|
|
27
|
-
fieldInvalidForPostalCode: "الرمز البريدي غير صحيح.",
|
|
28
|
-
noticeOfCollection: 'عندما أدفع ببطاقتي، فأنا أوافق على "بيان الخصوصية لدى PayPal".',
|
|
29
|
-
genericError: "حدث خطأ ما من جانبنا.",
|
|
30
|
-
hostedFieldsTokenizationFailOnDuplicateError: "هذه البطاقة الائتمانية محفوظة كطريقة دفع حالياً.",
|
|
31
|
-
hostedFieldsFailedTokenizationError: "يرجى مراجعة معلوماتك وإعادة المحاولة.",
|
|
32
|
-
hostedFieldsFieldsInvalidError: "يرجى مراجعة معلوماتك وإعادة المحاولة.",
|
|
33
|
-
hostedFieldsTokenizationNetworkErrorError: "خطأ في الشبكة. يرجى المحاولة مجدداً.",
|
|
34
|
-
hostedFieldsTokenizationCvvVerificationFailedError: "فشلت مصادقة بطاقة الائتمان. يرجى مراجعة معلوماتك وإعادة المحاولة.",
|
|
35
|
-
paypalButtonMustBeUsed: "استخدم زر PayPal لاستئناف الدفع.",
|
|
36
|
-
venmoButtonMustBeUsed: "استخدِم زر Venmo لمتابعة إجراء دفعتك",
|
|
37
|
-
applePayButtonMustBeUsed: " استخدِم زر Apple Pay لمتابعة عملية الدفع التي تُجريها.",
|
|
38
|
-
paypalAccountTokenizationFailedError: "وقع خطأ أثناء إضافة حساب PayPal. يرجى إعادة المحاولة.",
|
|
39
|
-
paypalFlowFailedError: "وقع خطأ أثناء الاتصال بـ PayPal. يرجى إعادة المحاولة.",
|
|
40
|
-
paypalTokenizationRequestActiveError: "تفويض الدفع عبر PayPal قيد التنفيذ.",
|
|
41
|
-
venmoCanceledError: "وقع خطأ. تأكد أن أحدث إصدار من تطبيق Venmo مثبت في جهازك وأن متصفحك يدعم التبديل إلى Venmo.",
|
|
42
|
-
vaultManagerPaymentMethodDeletionError: "فشل حذف طريقة الدفع. أعد المحاولة.",
|
|
43
|
-
venmoAppFailedError: "تطبيق Venmo غير موجود في جهازك.",
|
|
44
|
-
unsupportedCardTypeError: "نوع البطاقة غير مدعوم. يرجى تجربة بطاقة أخرى.",
|
|
45
|
-
applePayTokenizationError: "وقع خطأ في الشبكة أثناء معالجة الدفع عبر Apple Pay. يرجى إعادة المحاولة.",
|
|
46
|
-
applePayActiveCardError: "إضافة بطاقة مدعومة إلى محفظة Apple Pay.",
|
|
47
|
-
cardholderNameLabel: "اسم صاحب البطاقة",
|
|
48
|
-
cardNumberLabel: "رقم البطاقة",
|
|
49
|
-
cvvLabel: "رمز CVV",
|
|
50
|
-
cvvThreeDigitLabelSubheading: "(3 أرقام)",
|
|
51
|
-
cvvFourDigitLabelSubheading: "(4 أرقام)",
|
|
52
|
-
cardholderNamePlaceholder: "اسم صاحب البطاقة",
|
|
53
|
-
expirationDateLabel: "تاريخ انتهاء الصلاحية",
|
|
54
|
-
expirationDateLabelSubheading: "(MM/YY)",
|
|
55
|
-
expirationDatePlaceholder: "الشهر/ السنة",
|
|
56
|
-
postalCodeLabel: "الرمز البريدي",
|
|
57
|
-
saveCardLabel: "حفظ البطاقة",
|
|
58
|
-
payWithCard: "الدفع ببطاقة سحب أو ائتمان",
|
|
59
|
-
endingIn: "تنتهي بتاريخ {{lastFourCardDigits}}",
|
|
60
|
-
"Apple Pay": "Apple Pay",
|
|
61
|
-
Venmo: "Venmo",
|
|
62
|
-
Card: "البطاقة",
|
|
63
|
-
PayPal: "PayPal",
|
|
64
|
-
"PayPal Credit": "PayPal Credit",
|
|
65
|
-
"Google Pay": "Google Pay",
|
|
66
|
-
"American Express": "American Express",
|
|
67
|
-
Discover: "Discover",
|
|
68
|
-
"Diners Club": "Diners Club",
|
|
69
|
-
Elo: "Elo",
|
|
70
|
-
Hiper: "Hiper",
|
|
71
|
-
Hipercard: "Hipercard",
|
|
72
|
-
MasterCard: "Mastercard",
|
|
73
|
-
Visa: "Visa",
|
|
74
|
-
JCB: "JCB",
|
|
75
|
-
Maestro: "Maestro",
|
|
76
|
-
UnionPay: "UnionPay"
|
|
77
|
-
}), e;
|
|
78
|
-
}
|
|
79
|
-
export {
|
|
80
|
-
r as __require
|
|
81
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
var e, o;
|
|
2
|
-
function a() {
|
|
3
|
-
return o || (o = 1, e = {
|
|
4
|
-
payingWith: "Forma úhrady: {{paymentSource}}",
|
|
5
|
-
chooseAnotherWayToPay: "Vybrat jiný způsob platby",
|
|
6
|
-
chooseAWayToPay: "Vybrat způsob platby",
|
|
7
|
-
otherWaysToPay: "Jiné způsoby platby",
|
|
8
|
-
edit: "Upravit",
|
|
9
|
-
doneEditing: "Hotovo",
|
|
10
|
-
editPaymentMethods: "Upravit způsoby platby",
|
|
11
|
-
CreditCardDeleteConfirmationMessage: "Chcete kartu {{secondaryIdentifier}} s koncovým číslem {{identifier}}odstranit?",
|
|
12
|
-
PayPalAccountDeleteConfirmationMessage: "Chcete {{identifier}}účtu PayPal odstranit?",
|
|
13
|
-
VenmoAccountDeleteConfirmationMessage: "Opravdu chcete účet Venmo s uživatelským jménem {{identifier}} odstranit?",
|
|
14
|
-
genericDeleteConfirmationMessage: "Opravdu chcete tento způsob platby odstranit?",
|
|
15
|
-
deleteCancelButton: "Zrušit",
|
|
16
|
-
deleteConfirmationButton: "Odstranit",
|
|
17
|
-
fieldEmptyForCvv: "Vyplňte kód CVV.",
|
|
18
|
-
fieldEmptyForExpirationDate: "Vyplňte datum vypršení platnosti.",
|
|
19
|
-
fieldEmptyForCardholderName: "Vyplňte jméno držitele karty.",
|
|
20
|
-
fieldTooLongForCardholderName: "Jméno držitele karty musí obsahovat méně než 256 znaků.",
|
|
21
|
-
fieldEmptyForNumber: "Vyplňte číslo.",
|
|
22
|
-
fieldEmptyForPostalCode: "Vyplňte poštovní směrovací číslo.",
|
|
23
|
-
fieldInvalidForCardholderName: "Toto jméno držitele karty není platné.",
|
|
24
|
-
fieldInvalidForCvv: "Tento bezpečnostní kód není platný.",
|
|
25
|
-
fieldInvalidForExpirationDate: "Toto datum vypršení platnosti není platné.",
|
|
26
|
-
fieldInvalidForNumber: "Toto číslo karty není platné.",
|
|
27
|
-
fieldInvalidForPostalCode: "Toto poštovní směrovací číslo není platné.",
|
|
28
|
-
noticeOfCollection: "Zaplacením kartou vyjadřuji souhlas s prohlášením o ochraně osobních údajů společnosti PayPal.",
|
|
29
|
-
genericError: "Došlo k chybě na naší straně.",
|
|
30
|
-
hostedFieldsTokenizationFailOnDuplicateError: "Tato kreditní karta je již jako způsob platby uložena.",
|
|
31
|
-
hostedFieldsFailedTokenizationError: "Zkontrolujte zadané informace a zkuste to znovu.",
|
|
32
|
-
hostedFieldsFieldsInvalidError: "Zkontrolujte zadané informace a zkuste to znovu.",
|
|
33
|
-
hostedFieldsTokenizationNetworkErrorError: "Došlo k chybě sítě. Zkuste to znovu.",
|
|
34
|
-
hostedFieldsTokenizationCvvVerificationFailedError: "Ověření kreditní karty se nezdařilo. Zkontrolujte zadané informace a zkuste to znovu.",
|
|
35
|
-
paypalButtonMustBeUsed: "Chcete-li přejít k platbě, použijte tlačítko PayPal.",
|
|
36
|
-
venmoButtonMustBeUsed: "Chcete-li pokračovat v placení, použijte tlačítko Venmo.",
|
|
37
|
-
applePayButtonMustBeUsed: "Chcete-li přejít k platbě, použijte tlačítko Apple Pay.",
|
|
38
|
-
paypalAccountTokenizationFailedError: "Při přidávání účtu PayPal došlo k chybě. Zkuste to znovu.",
|
|
39
|
-
paypalFlowFailedError: "Při připojování ke službě PayPal došlo k chybě. Zkuste to znovu.",
|
|
40
|
-
paypalTokenizationRequestActiveError: "Autorizace platby přes PayPal již probíhá.",
|
|
41
|
-
venmoCanceledError: "Došlo k chybě. Zkontrolujte, zda máte v zařízení nainstalovanou nejnovější verzi aplikace Venmo a zda prohlížeč přechod na aplikaci Venmo podporuje.",
|
|
42
|
-
vaultManagerPaymentMethodDeletionError: "Způsob platby se nepodařilo odstranit. Zkuste to znovu.",
|
|
43
|
-
venmoAppFailedError: "Aplikaci Venmo se ve vašem zařízení nepodařilo najít.",
|
|
44
|
-
unsupportedCardTypeError: "Tento typ karty není podporován. Vyzkoušejte jinou kartu.",
|
|
45
|
-
applePayTokenizationError: "Při zpracování platby přes Apple Pay došlo k chybě sítě. Zkuste to znovu.",
|
|
46
|
-
applePayActiveCardError: "Přidejte si podporovanou kartu do peněženky Apple Pay.",
|
|
47
|
-
cardholderNameLabel: "Jméno držitele karty",
|
|
48
|
-
cardNumberLabel: "Číslo karty",
|
|
49
|
-
cvvLabel: "Kód CVV",
|
|
50
|
-
cvvThreeDigitLabelSubheading: "(3 číslice)",
|
|
51
|
-
cvvFourDigitLabelSubheading: "(4 číslice)",
|
|
52
|
-
cardholderNamePlaceholder: "Jméno držitele karty",
|
|
53
|
-
expirationDateLabel: "Datum vypršení platnosti",
|
|
54
|
-
expirationDateLabelSubheading: "(MM/RR)",
|
|
55
|
-
expirationDatePlaceholder: "MM/RR",
|
|
56
|
-
postalCodeLabel: "Poštovní směrovací číslo",
|
|
57
|
-
saveCardLabel: "Uložit kartu",
|
|
58
|
-
payWithCard: "Zaplatit kartou",
|
|
59
|
-
endingIn: "Koncové číslo {{lastFourCardDigits}}",
|
|
60
|
-
"Apple Pay": "Apple Pay",
|
|
61
|
-
Venmo: "Venmo",
|
|
62
|
-
Card: "Karta",
|
|
63
|
-
PayPal: "PayPal",
|
|
64
|
-
"PayPal Credit": "PayPal Credit",
|
|
65
|
-
"Google Pay": "Google Pay",
|
|
66
|
-
"American Express": "American Express",
|
|
67
|
-
Discover: "Discover",
|
|
68
|
-
"Diners Club": "Diners Club",
|
|
69
|
-
Elo: "Elo",
|
|
70
|
-
Hiper: "Hiper",
|
|
71
|
-
Hipercard: "Hipercard",
|
|
72
|
-
MasterCard: "Mastercard",
|
|
73
|
-
Visa: "Visa",
|
|
74
|
-
JCB: "JCB",
|
|
75
|
-
Maestro: "Maestro",
|
|
76
|
-
UnionPay: "UnionPay"
|
|
77
|
-
}), e;
|
|
78
|
-
}
|
|
79
|
-
export {
|
|
80
|
-
a as __require
|
|
81
|
-
};
|