Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

braintree-web

Package Overview
Dependencies
Maintainers
1
Versions
278
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

braintree-web - npm Package Compare versions

Comparing version 3.97.0 to 3.97.1-connect-rc.1

client/request/graphql/adapters/credit-card-tokenization-paypal-connect.js

2

american-express/index.js

@@ -11,3 +11,3 @@ "use strict";

var createAssetsUrl = require("../lib/create-assets-url");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var wrapPromise = require("@braintree/wrap-promise");

@@ -14,0 +14,0 @@

@@ -15,3 +15,3 @@ "use strict";

var errors = require("./errors");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var wrapPromise = require("@braintree/wrap-promise");

@@ -18,0 +18,0 @@

@@ -5,3 +5,3 @@ "use strict";

var Client = require("./client");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var wrapPromise = require("@braintree/wrap-promise");

@@ -8,0 +8,0 @@ var sharedErrors = require("../lib/errors");

@@ -7,5 +7,8 @@ "use strict";

var snakeCaseToCamelCase = require("../../../lib/snake-case-to-camel-case");
var isConnectCheckout = require("../../../lib/is-connect-checkout");
var creditCardTokenizationBodyGenerator = require("./generators/credit-card-tokenization");
var creditCardTokenizationResponseAdapter = require("./adapters/credit-card-tokenization");
var creditCardTokenizationPayPalConnectResponseAdapter = require("./adapters/credit-card-tokenization-paypal-connect");
var creditCardForPayPalConnectTokenizationBodyGenerator = require("./generators/credit-card-for-paypal-connect-tokenization");

@@ -16,7 +19,25 @@ var configurationBodyGenerator = require("./generators/configuration");

var generators = {
"payment_methods/credit_cards": creditCardTokenizationBodyGenerator,
"payment_methods/credit_cards": function (data, isConnect) {
if (isConnect) {
// Only want to use this generator when using the Connect Checkout flow
return creditCardForPayPalConnectTokenizationBodyGenerator(data);
}
return creditCardTokenizationBodyGenerator(data);
},
configuration: configurationBodyGenerator,
};
var adapters = {
"payment_methods/credit_cards": creditCardTokenizationResponseAdapter,
"payment_methods/credit_cards": function (parsedBody, context, isConnect) {
if (isConnect) {
// Only want to use this adapter when using the Connect Checkout flow
return creditCardTokenizationPayPalConnectResponseAdapter(
parsedBody,
context
);
}
return creditCardTokenizationResponseAdapter(parsedBody, context);
},
configuration: configurationResponseAdapter,

@@ -51,3 +72,7 @@ };

var formattedBody = formatBodyKeys(this._data);
var generatedBody = this._generator(formattedBody);
var generatedBody = this._generator(
formattedBody,
// Since this is used for all GQL requests, we only want this if it's a Connect Checkout Tokenization request
isConnectCheckout(this._data.creditCard)
);
var body = assign(

@@ -85,3 +110,8 @@ { clientSdkMetadata: this._clientSdkMetadata },

GraphQLRequest.prototype.adaptResponseBody = function (parsedBody) {
return this._adapter(parsedBody, this);
return this._adapter(
parsedBody,
this,
// Since this is used for all GQL requests, we only want this if it's a Connect Checkout Tokenization request
"creditCard" in this._data && isConnectCheckout(this._data.creditCard)
);
};

@@ -131,2 +161,8 @@

/**
* @ignore
* This function formats the body consistently so _everything_ is camelCase.
* @param {object} originalBody the body to format
* @returns {object} The formatted object
*/
function formatBodyKeys(originalBody) {

@@ -133,0 +169,0 @@ var body = {};

@@ -12,3 +12,3 @@ "use strict";

var convertMethodsToError = require("../lib/convert-methods-to-error");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var wrapPromise = require("@braintree/wrap-promise");

@@ -15,0 +15,0 @@ var errors = require("./errors");

(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}(g.braintree || (g.braintree = {})).americanExpress = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(_dereq_,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadStylesheet = exports.loadScript = void 0;
var loadScript = _dereq_("./load-script");
exports.loadScript = loadScript;
var loadStylesheet = _dereq_("./load-stylesheet");
exports.loadStylesheet = loadStylesheet;
},{"./load-script":3,"./load-stylesheet":4}],2:[function(_dereq_,module,exports){
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -14,3 +23,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

},{"promise-polyfill":8}],2:[function(_dereq_,module,exports){
},{"promise-polyfill":13}],3:[function(_dereq_,module,exports){
"use strict";

@@ -60,6 +69,29 @@ var promise_1 = _dereq_("./lib/promise");

},{"./lib/promise":1}],3:[function(_dereq_,module,exports){
},{"./lib/promise":2}],4:[function(_dereq_,module,exports){
"use strict";
var promise_1 = _dereq_("./lib/promise");
module.exports = function loadStylesheet(options) {
var stylesheet = document.querySelector("link[href=\"" + options.href + "\"]");
if (stylesheet) {
return promise_1.PromiseGlobal.resolve(stylesheet);
}
stylesheet = document.createElement("link");
var container = options.container || document.head;
stylesheet.setAttribute("rel", "stylesheet");
stylesheet.setAttribute("type", "text/css");
stylesheet.setAttribute("href", options.href);
stylesheet.setAttribute("id", options.id);
if (container.firstChild) {
container.insertBefore(stylesheet, container.firstChild);
}
else {
container.appendChild(stylesheet);
}
return promise_1.PromiseGlobal.resolve(stylesheet);
};
},{"./lib/promise":2}],5:[function(_dereq_,module,exports){
module.exports = _dereq_("./dist/load-script");
},{"./dist/load-script":2}],4:[function(_dereq_,module,exports){
},{"./dist/load-script":3}],6:[function(_dereq_,module,exports){
"use strict";

@@ -88,3 +120,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

},{}],5:[function(_dereq_,module,exports){
},{}],7:[function(_dereq_,module,exports){
"use strict";

@@ -107,3 +139,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

},{}],6:[function(_dereq_,module,exports){
},{}],8:[function(_dereq_,module,exports){
"use strict";

@@ -120,3 +152,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

},{}],7:[function(_dereq_,module,exports){
},{}],9:[function(_dereq_,module,exports){
"use strict";

@@ -171,3 +203,158 @@ var deferred_1 = _dereq_("./lib/deferred");

},{"./lib/deferred":4,"./lib/once":5,"./lib/promise-or-callback":6}],8:[function(_dereq_,module,exports){
},{"./lib/deferred":6,"./lib/once":7,"./lib/promise-or-callback":8}],10:[function(_dereq_,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.constants = void 0;
var CDNX_PROD = "https://www.paypalobjects.com";
var ASSET_PATH = {
minified: "connect-v0/axo.min.js",
unminified: "connect-v0/axo.js",
};
var LOCALE_PATH = "connect-v0/locales/";
exports.constants = {
AXO_URL: ASSET_PATH,
LOCALE_PATH: LOCALE_PATH,
CDNX_PROD: CDNX_PROD,
};
},{}],11:[function(_dereq_,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadAxo = exports.constants = void 0;
var loadAxo = _dereq_("./load-axo-script");
exports.loadAxo = loadAxo;
var constants_1 = _dereq_("./constants");
Object.defineProperty(exports, "constants", { enumerable: true, get: function () { return constants_1.constants; } });
},{"./constants":10,"./load-axo-script":12}],12:[function(_dereq_,module,exports){
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
var asset_loader_1 = _dereq_("@braintree/asset-loader");
var constants_1 = _dereq_("./constants");
/**
* Loads accelerated checkout components.
* @param options object with a minified parameter to determine if the script that is loaded should be minified or not (defaults to true if)
* @returns an object with metadata with a localeUrl parameter to be read by AXO SDK
*/
function loadAxo(options) {
return __awaiter(this, void 0, void 0, function () {
var version, assetUrl, localeUrl, err_1;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 2, , 3]);
version = options.client.getVersion();
assetUrl = getAssetsUrl(options);
localeUrl = getLocaleUrl(options);
return [4 /*yield*/, Promise.all([loadHCFScript(version), loadAXOScript(assetUrl)])];
case 1:
_a.sent();
return [2 /*return*/, { metadata: { localeUrl: localeUrl } }];
case 2:
err_1 = _a.sent();
return [2 /*return*/, Promise.reject(err_1)];
case 3: return [2 /*return*/];
}
});
});
}
/**
* Reads the version and to load the correct version of HCF, so we don't run into a version mismatch between hcf and client
* @param version (Required) string version that should be passed from the client getVersion
* @returns Promise<HTMLScriptElement>
*/
function loadHCFScript(version) {
return (0, asset_loader_1.loadScript)({
id: "hcf-".concat(version),
src: "https://js.braintreegateway.com/web/".concat(version, "/js/hosted-fields.min.js"),
});
}
/**
* Reads the url and to load the axo bundle script
* @param url (Required) string url for the correct axo asset
* @returns Promise<HTMLScriptElement>
*/
function loadAXOScript(url) {
return (0, asset_loader_1.loadScript)({
id: "axo-id",
src: url,
forceScriptReload: true,
});
}
/**
* Prepends the domain to the asset url
* @param options object with assetUrl and bundleid parameters to determine which URL to return
* @returns full domain and assets URL as string
*/
function generateAssetUrl(_a) {
var assetUrl = _a.assetUrl, bundleId = _a.bundleId;
return bundleId
? "https://cdn-".concat(bundleId, ".static.engineering.dev.paypalinc.com/").concat(assetUrl)
: "".concat(constants_1.constants.CDNX_PROD, "/").concat(assetUrl);
}
/**
* Retrieves either the minified or unminified assets URL as specified
* @param options (Optional) object with a minified and metadata with bundleIdOverride parameters to determine which URL to return
* @returns assets URL as string
*/
function getAssetsUrl(options) {
var _a;
var assetUrl = (options === null || options === void 0 ? void 0 : options.minified) !== false
? constants_1.constants.AXO_URL.minified
: constants_1.constants.AXO_URL.unminified;
return generateAssetUrl({
assetUrl: assetUrl,
bundleId: (_a = options === null || options === void 0 ? void 0 : options.metadata) === null || _a === void 0 ? void 0 : _a.bundleIdOverride,
});
}
/**
* Retrieves the Locales URL, the path to our language files
* @param options (Optional) object with a minified and metadata with bundleIdOverride parameters to determine which URL to return
* @returns locale URL as string
*/
function getLocaleUrl(options) {
var _a;
return generateAssetUrl({
assetUrl: constants_1.constants.LOCALE_PATH,
bundleId: (_a = options === null || options === void 0 ? void 0 : options.metadata) === null || _a === void 0 ? void 0 : _a.bundleIdOverride,
});
}
module.exports = loadAxo;
},{"./constants":10,"@braintree/asset-loader":1}],13:[function(_dereq_,module,exports){
'use strict';

@@ -498,3 +685,3 @@

},{}],9:[function(_dereq_,module,exports){
},{}],14:[function(_dereq_,module,exports){
"use strict";

@@ -663,3 +850,3 @@

},{"../lib/assign":13,"../lib/braintree-error":15,"../lib/convert-methods-to-error":17,"../lib/methods":22,"./errors":10,"@braintree/wrap-promise":7}],10:[function(_dereq_,module,exports){
},{"../lib/assign":18,"../lib/braintree-error":20,"../lib/convert-methods-to-error":22,"../lib/methods":27,"./errors":15,"@braintree/wrap-promise":9}],15:[function(_dereq_,module,exports){
"use strict";

@@ -694,3 +881,3 @@

},{"../lib/braintree-error":15}],11:[function(_dereq_,module,exports){
},{"../lib/braintree-error":20}],16:[function(_dereq_,module,exports){
"use strict";

@@ -706,3 +893,3 @@ /**

var createAssetsUrl = _dereq_("../lib/create-assets-url");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var wrapPromise = _dereq_("@braintree/wrap-promise");

@@ -753,12 +940,14 @@

},{"../lib/basic-component-verification":14,"../lib/create-assets-url":18,"../lib/create-deferred-client":19,"./american-express":9,"@braintree/wrap-promise":7}],12:[function(_dereq_,module,exports){
},{"../lib/basic-component-verification":19,"../lib/create-assets-url":23,"../lib/create-deferred-client":24,"./american-express":14,"@braintree/wrap-promise":9}],17:[function(_dereq_,module,exports){
"use strict";
var loadScript = _dereq_("@braintree/asset-loader/load-script");
var loadConnectScript = _dereq_("@paypal/connect-loader-component");
module.exports = {
loadScript: loadScript,
loadConnectScript: loadConnectScript.loadAxo,
};
},{"@braintree/asset-loader/load-script":3}],13:[function(_dereq_,module,exports){
},{"@braintree/asset-loader/load-script":5,"@paypal/connect-loader-component":11}],18:[function(_dereq_,module,exports){
"use strict";

@@ -789,3 +978,3 @@

},{}],14:[function(_dereq_,module,exports){
},{}],19:[function(_dereq_,module,exports){
"use strict";

@@ -795,3 +984,3 @@

var sharedErrors = _dereq_("./errors");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -852,3 +1041,3 @@ function basicComponentVerification(options) {

},{"./braintree-error":15,"./errors":21}],15:[function(_dereq_,module,exports){
},{"./braintree-error":20,"./errors":26}],20:[function(_dereq_,module,exports){
"use strict";

@@ -942,6 +1131,6 @@

},{"./enumerate":20}],16:[function(_dereq_,module,exports){
},{"./enumerate":25}],21:[function(_dereq_,module,exports){
"use strict";
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var PLATFORM = "web";

@@ -984,3 +1173,3 @@

},{}],17:[function(_dereq_,module,exports){
},{}],22:[function(_dereq_,module,exports){
"use strict";

@@ -1003,3 +1192,3 @@

},{"./braintree-error":15,"./errors":21}],18:[function(_dereq_,module,exports){
},{"./braintree-error":20,"./errors":26}],23:[function(_dereq_,module,exports){
"use strict";

@@ -1021,3 +1210,3 @@

},{"./constants":16}],19:[function(_dereq_,module,exports){
},{"./constants":21}],24:[function(_dereq_,module,exports){
"use strict";

@@ -1029,3 +1218,3 @@

var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -1087,3 +1276,3 @@ function createDeferredClient(options) {

},{"./assets":12,"./braintree-error":15,"./errors":21}],20:[function(_dereq_,module,exports){
},{"./assets":17,"./braintree-error":20,"./errors":26}],25:[function(_dereq_,module,exports){
"use strict";

@@ -1103,3 +1292,3 @@

},{}],21:[function(_dereq_,module,exports){
},{}],26:[function(_dereq_,module,exports){
"use strict";

@@ -1154,3 +1343,3 @@

},{"./braintree-error":15}],22:[function(_dereq_,module,exports){
},{"./braintree-error":20}],27:[function(_dereq_,module,exports){
"use strict";

@@ -1164,3 +1353,3 @@

},{}]},{},[11])(11)
},{}]},{},[16])(16)
});
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}(g.braintree || (g.braintree = {})).applePay = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(_dereq_,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadStylesheet = exports.loadScript = void 0;
var loadScript = _dereq_("./load-script");
exports.loadScript = loadScript;
var loadStylesheet = _dereq_("./load-stylesheet");
exports.loadStylesheet = loadStylesheet;
},{"./load-script":3,"./load-stylesheet":4}],2:[function(_dereq_,module,exports){
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -14,3 +23,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

},{"promise-polyfill":8}],2:[function(_dereq_,module,exports){
},{"promise-polyfill":13}],3:[function(_dereq_,module,exports){
"use strict";

@@ -60,6 +69,29 @@ var promise_1 = _dereq_("./lib/promise");

},{"./lib/promise":1}],3:[function(_dereq_,module,exports){
},{"./lib/promise":2}],4:[function(_dereq_,module,exports){
"use strict";
var promise_1 = _dereq_("./lib/promise");
module.exports = function loadStylesheet(options) {
var stylesheet = document.querySelector("link[href=\"" + options.href + "\"]");
if (stylesheet) {
return promise_1.PromiseGlobal.resolve(stylesheet);
}
stylesheet = document.createElement("link");
var container = options.container || document.head;
stylesheet.setAttribute("rel", "stylesheet");
stylesheet.setAttribute("type", "text/css");
stylesheet.setAttribute("href", options.href);
stylesheet.setAttribute("id", options.id);
if (container.firstChild) {
container.insertBefore(stylesheet, container.firstChild);
}
else {
container.appendChild(stylesheet);
}
return promise_1.PromiseGlobal.resolve(stylesheet);
};
},{"./lib/promise":2}],5:[function(_dereq_,module,exports){
module.exports = _dereq_("./dist/load-script");
},{"./dist/load-script":2}],4:[function(_dereq_,module,exports){
},{"./dist/load-script":3}],6:[function(_dereq_,module,exports){
"use strict";

@@ -88,3 +120,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

},{}],5:[function(_dereq_,module,exports){
},{}],7:[function(_dereq_,module,exports){
"use strict";

@@ -107,3 +139,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

},{}],6:[function(_dereq_,module,exports){
},{}],8:[function(_dereq_,module,exports){
"use strict";

@@ -120,3 +152,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

},{}],7:[function(_dereq_,module,exports){
},{}],9:[function(_dereq_,module,exports){
"use strict";

@@ -171,3 +203,158 @@ var deferred_1 = _dereq_("./lib/deferred");

},{"./lib/deferred":4,"./lib/once":5,"./lib/promise-or-callback":6}],8:[function(_dereq_,module,exports){
},{"./lib/deferred":6,"./lib/once":7,"./lib/promise-or-callback":8}],10:[function(_dereq_,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.constants = void 0;
var CDNX_PROD = "https://www.paypalobjects.com";
var ASSET_PATH = {
minified: "connect-v0/axo.min.js",
unminified: "connect-v0/axo.js",
};
var LOCALE_PATH = "connect-v0/locales/";
exports.constants = {
AXO_URL: ASSET_PATH,
LOCALE_PATH: LOCALE_PATH,
CDNX_PROD: CDNX_PROD,
};
},{}],11:[function(_dereq_,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadAxo = exports.constants = void 0;
var loadAxo = _dereq_("./load-axo-script");
exports.loadAxo = loadAxo;
var constants_1 = _dereq_("./constants");
Object.defineProperty(exports, "constants", { enumerable: true, get: function () { return constants_1.constants; } });
},{"./constants":10,"./load-axo-script":12}],12:[function(_dereq_,module,exports){
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
var asset_loader_1 = _dereq_("@braintree/asset-loader");
var constants_1 = _dereq_("./constants");
/**
* Loads accelerated checkout components.
* @param options object with a minified parameter to determine if the script that is loaded should be minified or not (defaults to true if)
* @returns an object with metadata with a localeUrl parameter to be read by AXO SDK
*/
function loadAxo(options) {
return __awaiter(this, void 0, void 0, function () {
var version, assetUrl, localeUrl, err_1;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 2, , 3]);
version = options.client.getVersion();
assetUrl = getAssetsUrl(options);
localeUrl = getLocaleUrl(options);
return [4 /*yield*/, Promise.all([loadHCFScript(version), loadAXOScript(assetUrl)])];
case 1:
_a.sent();
return [2 /*return*/, { metadata: { localeUrl: localeUrl } }];
case 2:
err_1 = _a.sent();
return [2 /*return*/, Promise.reject(err_1)];
case 3: return [2 /*return*/];
}
});
});
}
/**
* Reads the version and to load the correct version of HCF, so we don't run into a version mismatch between hcf and client
* @param version (Required) string version that should be passed from the client getVersion
* @returns Promise<HTMLScriptElement>
*/
function loadHCFScript(version) {
return (0, asset_loader_1.loadScript)({
id: "hcf-".concat(version),
src: "https://js.braintreegateway.com/web/".concat(version, "/js/hosted-fields.min.js"),
});
}
/**
* Reads the url and to load the axo bundle script
* @param url (Required) string url for the correct axo asset
* @returns Promise<HTMLScriptElement>
*/
function loadAXOScript(url) {
return (0, asset_loader_1.loadScript)({
id: "axo-id",
src: url,
forceScriptReload: true,
});
}
/**
* Prepends the domain to the asset url
* @param options object with assetUrl and bundleid parameters to determine which URL to return
* @returns full domain and assets URL as string
*/
function generateAssetUrl(_a) {
var assetUrl = _a.assetUrl, bundleId = _a.bundleId;
return bundleId
? "https://cdn-".concat(bundleId, ".static.engineering.dev.paypalinc.com/").concat(assetUrl)
: "".concat(constants_1.constants.CDNX_PROD, "/").concat(assetUrl);
}
/**
* Retrieves either the minified or unminified assets URL as specified
* @param options (Optional) object with a minified and metadata with bundleIdOverride parameters to determine which URL to return
* @returns assets URL as string
*/
function getAssetsUrl(options) {
var _a;
var assetUrl = (options === null || options === void 0 ? void 0 : options.minified) !== false
? constants_1.constants.AXO_URL.minified
: constants_1.constants.AXO_URL.unminified;
return generateAssetUrl({
assetUrl: assetUrl,
bundleId: (_a = options === null || options === void 0 ? void 0 : options.metadata) === null || _a === void 0 ? void 0 : _a.bundleIdOverride,
});
}
/**
* Retrieves the Locales URL, the path to our language files
* @param options (Optional) object with a minified and metadata with bundleIdOverride parameters to determine which URL to return
* @returns locale URL as string
*/
function getLocaleUrl(options) {
var _a;
return generateAssetUrl({
assetUrl: constants_1.constants.LOCALE_PATH,
bundleId: (_a = options === null || options === void 0 ? void 0 : options.metadata) === null || _a === void 0 ? void 0 : _a.bundleIdOverride,
});
}
module.exports = loadAxo;
},{"./constants":10,"@braintree/asset-loader":1}],13:[function(_dereq_,module,exports){
'use strict';

@@ -498,3 +685,3 @@

},{}],9:[function(_dereq_,module,exports){
},{}],14:[function(_dereq_,module,exports){
"use strict";

@@ -897,3 +1084,3 @@

},{"../lib/analytics":13,"../lib/braintree-error":16,"../lib/convert-methods-to-error":18,"../lib/methods":25,"./errors":10,"@braintree/wrap-promise":7}],10:[function(_dereq_,module,exports){
},{"../lib/analytics":18,"../lib/braintree-error":21,"../lib/convert-methods-to-error":23,"../lib/methods":30,"./errors":15,"@braintree/wrap-promise":9}],15:[function(_dereq_,module,exports){
"use strict";

@@ -958,3 +1145,3 @@

},{"../lib/braintree-error":16}],11:[function(_dereq_,module,exports){
},{"../lib/braintree-error":21}],16:[function(_dereq_,module,exports){
"use strict";

@@ -974,3 +1161,3 @@

var errors = _dereq_("./errors");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var wrapPromise = _dereq_("@braintree/wrap-promise");

@@ -1043,3 +1230,3 @@

},{"../lib/analytics":13,"../lib/basic-component-verification":15,"../lib/braintree-error":16,"../lib/create-assets-url":19,"../lib/create-deferred-client":21,"./apple-pay":9,"./errors":10,"@braintree/wrap-promise":7}],12:[function(_dereq_,module,exports){
},{"../lib/analytics":18,"../lib/basic-component-verification":20,"../lib/braintree-error":21,"../lib/create-assets-url":24,"../lib/create-deferred-client":26,"./apple-pay":14,"./errors":15,"@braintree/wrap-promise":9}],17:[function(_dereq_,module,exports){
"use strict";

@@ -1078,3 +1265,3 @@

},{"./constants":17,"./create-authorization-data":20,"./json-clone":24}],13:[function(_dereq_,module,exports){
},{"./constants":22,"./create-authorization-data":25,"./json-clone":29}],18:[function(_dereq_,module,exports){
"use strict";

@@ -1133,12 +1320,14 @@

},{"./add-metadata":12,"./constants":17}],14:[function(_dereq_,module,exports){
},{"./add-metadata":17,"./constants":22}],19:[function(_dereq_,module,exports){
"use strict";
var loadScript = _dereq_("@braintree/asset-loader/load-script");
var loadConnectScript = _dereq_("@paypal/connect-loader-component");
module.exports = {
loadScript: loadScript,
loadConnectScript: loadConnectScript.loadAxo,
};
},{"@braintree/asset-loader/load-script":3}],15:[function(_dereq_,module,exports){
},{"@braintree/asset-loader/load-script":5,"@paypal/connect-loader-component":11}],20:[function(_dereq_,module,exports){
"use strict";

@@ -1148,3 +1337,3 @@

var sharedErrors = _dereq_("./errors");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -1205,3 +1394,3 @@ function basicComponentVerification(options) {

},{"./braintree-error":16,"./errors":23}],16:[function(_dereq_,module,exports){
},{"./braintree-error":21,"./errors":28}],21:[function(_dereq_,module,exports){
"use strict";

@@ -1295,6 +1484,6 @@

},{"./enumerate":22}],17:[function(_dereq_,module,exports){
},{"./enumerate":27}],22:[function(_dereq_,module,exports){
"use strict";
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var PLATFORM = "web";

@@ -1337,3 +1526,3 @@

},{}],18:[function(_dereq_,module,exports){
},{}],23:[function(_dereq_,module,exports){
"use strict";

@@ -1356,3 +1545,3 @@

},{"./braintree-error":16,"./errors":23}],19:[function(_dereq_,module,exports){
},{"./braintree-error":21,"./errors":28}],24:[function(_dereq_,module,exports){
"use strict";

@@ -1374,3 +1563,3 @@

},{"./constants":17}],20:[function(_dereq_,module,exports){
},{"./constants":22}],25:[function(_dereq_,module,exports){
"use strict";

@@ -1426,3 +1615,3 @@

},{"../lib/constants":17,"../lib/vendor/polyfill":26}],21:[function(_dereq_,module,exports){
},{"../lib/constants":22,"../lib/vendor/polyfill":31}],26:[function(_dereq_,module,exports){
"use strict";

@@ -1434,3 +1623,3 @@

var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -1492,3 +1681,3 @@ function createDeferredClient(options) {

},{"./assets":14,"./braintree-error":16,"./errors":23}],22:[function(_dereq_,module,exports){
},{"./assets":19,"./braintree-error":21,"./errors":28}],27:[function(_dereq_,module,exports){
"use strict";

@@ -1508,3 +1697,3 @@

},{}],23:[function(_dereq_,module,exports){
},{}],28:[function(_dereq_,module,exports){
"use strict";

@@ -1559,3 +1748,3 @@

},{"./braintree-error":16}],24:[function(_dereq_,module,exports){
},{"./braintree-error":21}],29:[function(_dereq_,module,exports){
"use strict";

@@ -1567,3 +1756,3 @@

},{}],25:[function(_dereq_,module,exports){
},{}],30:[function(_dereq_,module,exports){
"use strict";

@@ -1577,3 +1766,3 @@

},{}],26:[function(_dereq_,module,exports){
},{}],31:[function(_dereq_,module,exports){
"use strict";

@@ -1626,3 +1815,3 @@

},{}]},{},[11])(11)
},{}]},{},[16])(16)
});
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}(g.braintree || (g.braintree = {})).preferredPaymentMethods = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(_dereq_,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadStylesheet = exports.loadScript = void 0;
var loadScript = _dereq_("./load-script");
exports.loadScript = loadScript;
var loadStylesheet = _dereq_("./load-stylesheet");
exports.loadStylesheet = loadStylesheet;
},{"./load-script":3,"./load-stylesheet":4}],2:[function(_dereq_,module,exports){
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -14,3 +23,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

},{"promise-polyfill":8}],2:[function(_dereq_,module,exports){
},{"promise-polyfill":13}],3:[function(_dereq_,module,exports){
"use strict";

@@ -60,6 +69,29 @@ var promise_1 = _dereq_("./lib/promise");

},{"./lib/promise":1}],3:[function(_dereq_,module,exports){
},{"./lib/promise":2}],4:[function(_dereq_,module,exports){
"use strict";
var promise_1 = _dereq_("./lib/promise");
module.exports = function loadStylesheet(options) {
var stylesheet = document.querySelector("link[href=\"" + options.href + "\"]");
if (stylesheet) {
return promise_1.PromiseGlobal.resolve(stylesheet);
}
stylesheet = document.createElement("link");
var container = options.container || document.head;
stylesheet.setAttribute("rel", "stylesheet");
stylesheet.setAttribute("type", "text/css");
stylesheet.setAttribute("href", options.href);
stylesheet.setAttribute("id", options.id);
if (container.firstChild) {
container.insertBefore(stylesheet, container.firstChild);
}
else {
container.appendChild(stylesheet);
}
return promise_1.PromiseGlobal.resolve(stylesheet);
};
},{"./lib/promise":2}],5:[function(_dereq_,module,exports){
module.exports = _dereq_("./dist/load-script");
},{"./dist/load-script":2}],4:[function(_dereq_,module,exports){
},{"./dist/load-script":3}],6:[function(_dereq_,module,exports){
"use strict";

@@ -88,3 +120,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

},{}],5:[function(_dereq_,module,exports){
},{}],7:[function(_dereq_,module,exports){
"use strict";

@@ -107,3 +139,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

},{}],6:[function(_dereq_,module,exports){
},{}],8:[function(_dereq_,module,exports){
"use strict";

@@ -120,3 +152,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

},{}],7:[function(_dereq_,module,exports){
},{}],9:[function(_dereq_,module,exports){
"use strict";

@@ -171,3 +203,158 @@ var deferred_1 = _dereq_("./lib/deferred");

},{"./lib/deferred":4,"./lib/once":5,"./lib/promise-or-callback":6}],8:[function(_dereq_,module,exports){
},{"./lib/deferred":6,"./lib/once":7,"./lib/promise-or-callback":8}],10:[function(_dereq_,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.constants = void 0;
var CDNX_PROD = "https://www.paypalobjects.com";
var ASSET_PATH = {
minified: "connect-v0/axo.min.js",
unminified: "connect-v0/axo.js",
};
var LOCALE_PATH = "connect-v0/locales/";
exports.constants = {
AXO_URL: ASSET_PATH,
LOCALE_PATH: LOCALE_PATH,
CDNX_PROD: CDNX_PROD,
};
},{}],11:[function(_dereq_,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadAxo = exports.constants = void 0;
var loadAxo = _dereq_("./load-axo-script");
exports.loadAxo = loadAxo;
var constants_1 = _dereq_("./constants");
Object.defineProperty(exports, "constants", { enumerable: true, get: function () { return constants_1.constants; } });
},{"./constants":10,"./load-axo-script":12}],12:[function(_dereq_,module,exports){
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
var asset_loader_1 = _dereq_("@braintree/asset-loader");
var constants_1 = _dereq_("./constants");
/**
* Loads accelerated checkout components.
* @param options object with a minified parameter to determine if the script that is loaded should be minified or not (defaults to true if)
* @returns an object with metadata with a localeUrl parameter to be read by AXO SDK
*/
function loadAxo(options) {
return __awaiter(this, void 0, void 0, function () {
var version, assetUrl, localeUrl, err_1;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 2, , 3]);
version = options.client.getVersion();
assetUrl = getAssetsUrl(options);
localeUrl = getLocaleUrl(options);
return [4 /*yield*/, Promise.all([loadHCFScript(version), loadAXOScript(assetUrl)])];
case 1:
_a.sent();
return [2 /*return*/, { metadata: { localeUrl: localeUrl } }];
case 2:
err_1 = _a.sent();
return [2 /*return*/, Promise.reject(err_1)];
case 3: return [2 /*return*/];
}
});
});
}
/**
* Reads the version and to load the correct version of HCF, so we don't run into a version mismatch between hcf and client
* @param version (Required) string version that should be passed from the client getVersion
* @returns Promise<HTMLScriptElement>
*/
function loadHCFScript(version) {
return (0, asset_loader_1.loadScript)({
id: "hcf-".concat(version),
src: "https://js.braintreegateway.com/web/".concat(version, "/js/hosted-fields.min.js"),
});
}
/**
* Reads the url and to load the axo bundle script
* @param url (Required) string url for the correct axo asset
* @returns Promise<HTMLScriptElement>
*/
function loadAXOScript(url) {
return (0, asset_loader_1.loadScript)({
id: "axo-id",
src: url,
forceScriptReload: true,
});
}
/**
* Prepends the domain to the asset url
* @param options object with assetUrl and bundleid parameters to determine which URL to return
* @returns full domain and assets URL as string
*/
function generateAssetUrl(_a) {
var assetUrl = _a.assetUrl, bundleId = _a.bundleId;
return bundleId
? "https://cdn-".concat(bundleId, ".static.engineering.dev.paypalinc.com/").concat(assetUrl)
: "".concat(constants_1.constants.CDNX_PROD, "/").concat(assetUrl);
}
/**
* Retrieves either the minified or unminified assets URL as specified
* @param options (Optional) object with a minified and metadata with bundleIdOverride parameters to determine which URL to return
* @returns assets URL as string
*/
function getAssetsUrl(options) {
var _a;
var assetUrl = (options === null || options === void 0 ? void 0 : options.minified) !== false
? constants_1.constants.AXO_URL.minified
: constants_1.constants.AXO_URL.unminified;
return generateAssetUrl({
assetUrl: assetUrl,
bundleId: (_a = options === null || options === void 0 ? void 0 : options.metadata) === null || _a === void 0 ? void 0 : _a.bundleIdOverride,
});
}
/**
* Retrieves the Locales URL, the path to our language files
* @param options (Optional) object with a minified and metadata with bundleIdOverride parameters to determine which URL to return
* @returns locale URL as string
*/
function getLocaleUrl(options) {
var _a;
return generateAssetUrl({
assetUrl: constants_1.constants.LOCALE_PATH,
bundleId: (_a = options === null || options === void 0 ? void 0 : options.metadata) === null || _a === void 0 ? void 0 : _a.bundleIdOverride,
});
}
module.exports = loadAxo;
},{"./constants":10,"@braintree/asset-loader":1}],13:[function(_dereq_,module,exports){
'use strict';

@@ -498,3 +685,3 @@

},{}],9:[function(_dereq_,module,exports){
},{}],14:[function(_dereq_,module,exports){
"use strict";

@@ -533,3 +720,3 @@

},{"./constants":14,"./create-authorization-data":16,"./json-clone":20}],10:[function(_dereq_,module,exports){
},{"./constants":19,"./create-authorization-data":21,"./json-clone":25}],15:[function(_dereq_,module,exports){
"use strict";

@@ -588,12 +775,14 @@

},{"./add-metadata":9,"./constants":14}],11:[function(_dereq_,module,exports){
},{"./add-metadata":14,"./constants":19}],16:[function(_dereq_,module,exports){
"use strict";
var loadScript = _dereq_("@braintree/asset-loader/load-script");
var loadConnectScript = _dereq_("@paypal/connect-loader-component");
module.exports = {
loadScript: loadScript,
loadConnectScript: loadConnectScript.loadAxo,
};
},{"@braintree/asset-loader/load-script":3}],12:[function(_dereq_,module,exports){
},{"@braintree/asset-loader/load-script":5,"@paypal/connect-loader-component":11}],17:[function(_dereq_,module,exports){
"use strict";

@@ -603,3 +792,3 @@

var sharedErrors = _dereq_("./errors");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -660,3 +849,3 @@ function basicComponentVerification(options) {

},{"./braintree-error":13,"./errors":19}],13:[function(_dereq_,module,exports){
},{"./braintree-error":18,"./errors":24}],18:[function(_dereq_,module,exports){
"use strict";

@@ -750,6 +939,6 @@

},{"./enumerate":18}],14:[function(_dereq_,module,exports){
},{"./enumerate":23}],19:[function(_dereq_,module,exports){
"use strict";
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var PLATFORM = "web";

@@ -792,3 +981,3 @@

},{}],15:[function(_dereq_,module,exports){
},{}],20:[function(_dereq_,module,exports){
"use strict";

@@ -810,3 +999,3 @@

},{"./constants":14}],16:[function(_dereq_,module,exports){
},{"./constants":19}],21:[function(_dereq_,module,exports){
"use strict";

@@ -862,3 +1051,3 @@

},{"../lib/constants":14,"../lib/vendor/polyfill":21}],17:[function(_dereq_,module,exports){
},{"../lib/constants":19,"../lib/vendor/polyfill":26}],22:[function(_dereq_,module,exports){
"use strict";

@@ -870,3 +1059,3 @@

var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -928,3 +1117,3 @@ function createDeferredClient(options) {

},{"./assets":11,"./braintree-error":13,"./errors":19}],18:[function(_dereq_,module,exports){
},{"./assets":16,"./braintree-error":18,"./errors":24}],23:[function(_dereq_,module,exports){
"use strict";

@@ -944,3 +1133,3 @@

},{}],19:[function(_dereq_,module,exports){
},{}],24:[function(_dereq_,module,exports){
"use strict";

@@ -995,3 +1184,3 @@

},{"./braintree-error":13}],20:[function(_dereq_,module,exports){
},{"./braintree-error":18}],25:[function(_dereq_,module,exports){
"use strict";

@@ -1003,3 +1192,3 @@

},{}],21:[function(_dereq_,module,exports){
},{}],26:[function(_dereq_,module,exports){
"use strict";

@@ -1052,3 +1241,3 @@

},{}],22:[function(_dereq_,module,exports){
},{}],27:[function(_dereq_,module,exports){
"use strict";

@@ -1060,3 +1249,3 @@ /** @module braintree-web/preferred-payment-methods */

var PreferredPaymentMethods = _dereq_("./preferred-payment-methods");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -1107,3 +1296,3 @@ // NEXT_MAJOR_VERSION

},{"../lib/basic-component-verification":12,"./preferred-payment-methods":23,"@braintree/wrap-promise":7}],23:[function(_dereq_,module,exports){
},{"../lib/basic-component-verification":17,"./preferred-payment-methods":28,"@braintree/wrap-promise":9}],28:[function(_dereq_,module,exports){
"use strict";

@@ -1226,3 +1415,3 @@

},{"../lib/analytics":10,"../lib/create-assets-url":15,"../lib/create-deferred-client":17,"@braintree/wrap-promise":7}]},{},[22])(22)
},{"../lib/analytics":15,"../lib/create-assets-url":20,"../lib/create-deferred-client":22,"@braintree/wrap-promise":9}]},{},[27])(27)
});
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}(g.braintree || (g.braintree = {})).vaultManager = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(_dereq_,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadStylesheet = exports.loadScript = void 0;
var loadScript = _dereq_("./load-script");
exports.loadScript = loadScript;
var loadStylesheet = _dereq_("./load-stylesheet");
exports.loadStylesheet = loadStylesheet;
},{"./load-script":3,"./load-stylesheet":4}],2:[function(_dereq_,module,exports){
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -14,3 +23,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

},{"promise-polyfill":8}],2:[function(_dereq_,module,exports){
},{"promise-polyfill":13}],3:[function(_dereq_,module,exports){
"use strict";

@@ -60,6 +69,29 @@ var promise_1 = _dereq_("./lib/promise");

},{"./lib/promise":1}],3:[function(_dereq_,module,exports){
},{"./lib/promise":2}],4:[function(_dereq_,module,exports){
"use strict";
var promise_1 = _dereq_("./lib/promise");
module.exports = function loadStylesheet(options) {
var stylesheet = document.querySelector("link[href=\"" + options.href + "\"]");
if (stylesheet) {
return promise_1.PromiseGlobal.resolve(stylesheet);
}
stylesheet = document.createElement("link");
var container = options.container || document.head;
stylesheet.setAttribute("rel", "stylesheet");
stylesheet.setAttribute("type", "text/css");
stylesheet.setAttribute("href", options.href);
stylesheet.setAttribute("id", options.id);
if (container.firstChild) {
container.insertBefore(stylesheet, container.firstChild);
}
else {
container.appendChild(stylesheet);
}
return promise_1.PromiseGlobal.resolve(stylesheet);
};
},{"./lib/promise":2}],5:[function(_dereq_,module,exports){
module.exports = _dereq_("./dist/load-script");
},{"./dist/load-script":2}],4:[function(_dereq_,module,exports){
},{"./dist/load-script":3}],6:[function(_dereq_,module,exports){
"use strict";

@@ -88,3 +120,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

},{}],5:[function(_dereq_,module,exports){
},{}],7:[function(_dereq_,module,exports){
"use strict";

@@ -107,3 +139,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

},{}],6:[function(_dereq_,module,exports){
},{}],8:[function(_dereq_,module,exports){
"use strict";

@@ -120,3 +152,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

},{}],7:[function(_dereq_,module,exports){
},{}],9:[function(_dereq_,module,exports){
"use strict";

@@ -171,3 +203,158 @@ var deferred_1 = _dereq_("./lib/deferred");

},{"./lib/deferred":4,"./lib/once":5,"./lib/promise-or-callback":6}],8:[function(_dereq_,module,exports){
},{"./lib/deferred":6,"./lib/once":7,"./lib/promise-or-callback":8}],10:[function(_dereq_,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.constants = void 0;
var CDNX_PROD = "https://www.paypalobjects.com";
var ASSET_PATH = {
minified: "connect-v0/axo.min.js",
unminified: "connect-v0/axo.js",
};
var LOCALE_PATH = "connect-v0/locales/";
exports.constants = {
AXO_URL: ASSET_PATH,
LOCALE_PATH: LOCALE_PATH,
CDNX_PROD: CDNX_PROD,
};
},{}],11:[function(_dereq_,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadAxo = exports.constants = void 0;
var loadAxo = _dereq_("./load-axo-script");
exports.loadAxo = loadAxo;
var constants_1 = _dereq_("./constants");
Object.defineProperty(exports, "constants", { enumerable: true, get: function () { return constants_1.constants; } });
},{"./constants":10,"./load-axo-script":12}],12:[function(_dereq_,module,exports){
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
var asset_loader_1 = _dereq_("@braintree/asset-loader");
var constants_1 = _dereq_("./constants");
/**
* Loads accelerated checkout components.
* @param options object with a minified parameter to determine if the script that is loaded should be minified or not (defaults to true if)
* @returns an object with metadata with a localeUrl parameter to be read by AXO SDK
*/
function loadAxo(options) {
return __awaiter(this, void 0, void 0, function () {
var version, assetUrl, localeUrl, err_1;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 2, , 3]);
version = options.client.getVersion();
assetUrl = getAssetsUrl(options);
localeUrl = getLocaleUrl(options);
return [4 /*yield*/, Promise.all([loadHCFScript(version), loadAXOScript(assetUrl)])];
case 1:
_a.sent();
return [2 /*return*/, { metadata: { localeUrl: localeUrl } }];
case 2:
err_1 = _a.sent();
return [2 /*return*/, Promise.reject(err_1)];
case 3: return [2 /*return*/];
}
});
});
}
/**
* Reads the version and to load the correct version of HCF, so we don't run into a version mismatch between hcf and client
* @param version (Required) string version that should be passed from the client getVersion
* @returns Promise<HTMLScriptElement>
*/
function loadHCFScript(version) {
return (0, asset_loader_1.loadScript)({
id: "hcf-".concat(version),
src: "https://js.braintreegateway.com/web/".concat(version, "/js/hosted-fields.min.js"),
});
}
/**
* Reads the url and to load the axo bundle script
* @param url (Required) string url for the correct axo asset
* @returns Promise<HTMLScriptElement>
*/
function loadAXOScript(url) {
return (0, asset_loader_1.loadScript)({
id: "axo-id",
src: url,
forceScriptReload: true,
});
}
/**
* Prepends the domain to the asset url
* @param options object with assetUrl and bundleid parameters to determine which URL to return
* @returns full domain and assets URL as string
*/
function generateAssetUrl(_a) {
var assetUrl = _a.assetUrl, bundleId = _a.bundleId;
return bundleId
? "https://cdn-".concat(bundleId, ".static.engineering.dev.paypalinc.com/").concat(assetUrl)
: "".concat(constants_1.constants.CDNX_PROD, "/").concat(assetUrl);
}
/**
* Retrieves either the minified or unminified assets URL as specified
* @param options (Optional) object with a minified and metadata with bundleIdOverride parameters to determine which URL to return
* @returns assets URL as string
*/
function getAssetsUrl(options) {
var _a;
var assetUrl = (options === null || options === void 0 ? void 0 : options.minified) !== false
? constants_1.constants.AXO_URL.minified
: constants_1.constants.AXO_URL.unminified;
return generateAssetUrl({
assetUrl: assetUrl,
bundleId: (_a = options === null || options === void 0 ? void 0 : options.metadata) === null || _a === void 0 ? void 0 : _a.bundleIdOverride,
});
}
/**
* Retrieves the Locales URL, the path to our language files
* @param options (Optional) object with a minified and metadata with bundleIdOverride parameters to determine which URL to return
* @returns locale URL as string
*/
function getLocaleUrl(options) {
var _a;
return generateAssetUrl({
assetUrl: constants_1.constants.LOCALE_PATH,
bundleId: (_a = options === null || options === void 0 ? void 0 : options.metadata) === null || _a === void 0 ? void 0 : _a.bundleIdOverride,
});
}
module.exports = loadAxo;
},{"./constants":10,"@braintree/asset-loader":1}],13:[function(_dereq_,module,exports){
'use strict';

@@ -498,3 +685,3 @@

},{}],9:[function(_dereq_,module,exports){
},{}],14:[function(_dereq_,module,exports){
"use strict";

@@ -533,3 +720,3 @@

},{"./constants":14,"./create-authorization-data":17,"./json-clone":21}],10:[function(_dereq_,module,exports){
},{"./constants":19,"./create-authorization-data":22,"./json-clone":26}],15:[function(_dereq_,module,exports){
"use strict";

@@ -588,12 +775,14 @@

},{"./add-metadata":9,"./constants":14}],11:[function(_dereq_,module,exports){
},{"./add-metadata":14,"./constants":19}],16:[function(_dereq_,module,exports){
"use strict";
var loadScript = _dereq_("@braintree/asset-loader/load-script");
var loadConnectScript = _dereq_("@paypal/connect-loader-component");
module.exports = {
loadScript: loadScript,
loadConnectScript: loadConnectScript.loadAxo,
};
},{"@braintree/asset-loader/load-script":3}],12:[function(_dereq_,module,exports){
},{"@braintree/asset-loader/load-script":5,"@paypal/connect-loader-component":11}],17:[function(_dereq_,module,exports){
"use strict";

@@ -603,3 +792,3 @@

var sharedErrors = _dereq_("./errors");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -660,3 +849,3 @@ function basicComponentVerification(options) {

},{"./braintree-error":13,"./errors":20}],13:[function(_dereq_,module,exports){
},{"./braintree-error":18,"./errors":25}],18:[function(_dereq_,module,exports){
"use strict";

@@ -750,6 +939,6 @@

},{"./enumerate":19}],14:[function(_dereq_,module,exports){
},{"./enumerate":24}],19:[function(_dereq_,module,exports){
"use strict";
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var PLATFORM = "web";

@@ -792,3 +981,3 @@

},{}],15:[function(_dereq_,module,exports){
},{}],20:[function(_dereq_,module,exports){
"use strict";

@@ -811,3 +1000,3 @@

},{"./braintree-error":13,"./errors":20}],16:[function(_dereq_,module,exports){
},{"./braintree-error":18,"./errors":25}],21:[function(_dereq_,module,exports){
"use strict";

@@ -829,3 +1018,3 @@

},{"./constants":14}],17:[function(_dereq_,module,exports){
},{"./constants":19}],22:[function(_dereq_,module,exports){
"use strict";

@@ -881,3 +1070,3 @@

},{"../lib/constants":14,"../lib/vendor/polyfill":23}],18:[function(_dereq_,module,exports){
},{"../lib/constants":19,"../lib/vendor/polyfill":28}],23:[function(_dereq_,module,exports){
"use strict";

@@ -889,3 +1078,3 @@

var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -947,3 +1136,3 @@ function createDeferredClient(options) {

},{"./assets":11,"./braintree-error":13,"./errors":20}],19:[function(_dereq_,module,exports){
},{"./assets":16,"./braintree-error":18,"./errors":25}],24:[function(_dereq_,module,exports){
"use strict";

@@ -963,3 +1152,3 @@

},{}],20:[function(_dereq_,module,exports){
},{}],25:[function(_dereq_,module,exports){
"use strict";

@@ -1014,3 +1203,3 @@

},{"./braintree-error":13}],21:[function(_dereq_,module,exports){
},{"./braintree-error":18}],26:[function(_dereq_,module,exports){
"use strict";

@@ -1022,3 +1211,3 @@

},{}],22:[function(_dereq_,module,exports){
},{}],27:[function(_dereq_,module,exports){
"use strict";

@@ -1032,3 +1221,3 @@

},{}],23:[function(_dereq_,module,exports){
},{}],28:[function(_dereq_,module,exports){
"use strict";

@@ -1081,3 +1270,3 @@

},{}],24:[function(_dereq_,module,exports){
},{}],29:[function(_dereq_,module,exports){
"use strict";

@@ -1112,3 +1301,3 @@

},{"../lib/braintree-error":13}],25:[function(_dereq_,module,exports){
},{"../lib/braintree-error":18}],30:[function(_dereq_,module,exports){
"use strict";

@@ -1124,3 +1313,3 @@ /**

var VaultManager = _dereq_("./vault-manager");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var wrapPromise = _dereq_("@braintree/wrap-promise");

@@ -1168,3 +1357,3 @@

},{"../lib/basic-component-verification":12,"../lib/create-assets-url":16,"../lib/create-deferred-client":18,"./vault-manager":26,"@braintree/wrap-promise":7}],26:[function(_dereq_,module,exports){
},{"../lib/basic-component-verification":17,"../lib/create-assets-url":21,"../lib/create-deferred-client":23,"./vault-manager":31,"@braintree/wrap-promise":9}],31:[function(_dereq_,module,exports){
"use strict";

@@ -1386,3 +1575,3 @@

},{"../lib/analytics":10,"../lib/braintree-error":13,"../lib/convert-methods-to-error":15,"../lib/methods":22,"./errors":24,"@braintree/wrap-promise":7}]},{},[25])(25)
},{"../lib/analytics":15,"../lib/braintree-error":18,"../lib/convert-methods-to-error":20,"../lib/methods":27,"./errors":29,"@braintree/wrap-promise":9}]},{},[30])(30)
});
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}(g.braintree || (g.braintree = {})).visaCheckout = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(_dereq_,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadStylesheet = exports.loadScript = void 0;
var loadScript = _dereq_("./load-script");
exports.loadScript = loadScript;
var loadStylesheet = _dereq_("./load-stylesheet");
exports.loadStylesheet = loadStylesheet;
},{"./load-script":3,"./load-stylesheet":4}],2:[function(_dereq_,module,exports){
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -14,3 +23,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

},{"promise-polyfill":8}],2:[function(_dereq_,module,exports){
},{"promise-polyfill":13}],3:[function(_dereq_,module,exports){
"use strict";

@@ -60,6 +69,29 @@ var promise_1 = _dereq_("./lib/promise");

},{"./lib/promise":1}],3:[function(_dereq_,module,exports){
},{"./lib/promise":2}],4:[function(_dereq_,module,exports){
"use strict";
var promise_1 = _dereq_("./lib/promise");
module.exports = function loadStylesheet(options) {
var stylesheet = document.querySelector("link[href=\"" + options.href + "\"]");
if (stylesheet) {
return promise_1.PromiseGlobal.resolve(stylesheet);
}
stylesheet = document.createElement("link");
var container = options.container || document.head;
stylesheet.setAttribute("rel", "stylesheet");
stylesheet.setAttribute("type", "text/css");
stylesheet.setAttribute("href", options.href);
stylesheet.setAttribute("id", options.id);
if (container.firstChild) {
container.insertBefore(stylesheet, container.firstChild);
}
else {
container.appendChild(stylesheet);
}
return promise_1.PromiseGlobal.resolve(stylesheet);
};
},{"./lib/promise":2}],5:[function(_dereq_,module,exports){
module.exports = _dereq_("./dist/load-script");
},{"./dist/load-script":2}],4:[function(_dereq_,module,exports){
},{"./dist/load-script":3}],6:[function(_dereq_,module,exports){
"use strict";

@@ -88,3 +120,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

},{}],5:[function(_dereq_,module,exports){
},{}],7:[function(_dereq_,module,exports){
"use strict";

@@ -107,3 +139,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

},{}],6:[function(_dereq_,module,exports){
},{}],8:[function(_dereq_,module,exports){
"use strict";

@@ -120,3 +152,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

},{}],7:[function(_dereq_,module,exports){
},{}],9:[function(_dereq_,module,exports){
"use strict";

@@ -171,3 +203,158 @@ var deferred_1 = _dereq_("./lib/deferred");

},{"./lib/deferred":4,"./lib/once":5,"./lib/promise-or-callback":6}],8:[function(_dereq_,module,exports){
},{"./lib/deferred":6,"./lib/once":7,"./lib/promise-or-callback":8}],10:[function(_dereq_,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.constants = void 0;
var CDNX_PROD = "https://www.paypalobjects.com";
var ASSET_PATH = {
minified: "connect-v0/axo.min.js",
unminified: "connect-v0/axo.js",
};
var LOCALE_PATH = "connect-v0/locales/";
exports.constants = {
AXO_URL: ASSET_PATH,
LOCALE_PATH: LOCALE_PATH,
CDNX_PROD: CDNX_PROD,
};
},{}],11:[function(_dereq_,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadAxo = exports.constants = void 0;
var loadAxo = _dereq_("./load-axo-script");
exports.loadAxo = loadAxo;
var constants_1 = _dereq_("./constants");
Object.defineProperty(exports, "constants", { enumerable: true, get: function () { return constants_1.constants; } });
},{"./constants":10,"./load-axo-script":12}],12:[function(_dereq_,module,exports){
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};
var asset_loader_1 = _dereq_("@braintree/asset-loader");
var constants_1 = _dereq_("./constants");
/**
* Loads accelerated checkout components.
* @param options object with a minified parameter to determine if the script that is loaded should be minified or not (defaults to true if)
* @returns an object with metadata with a localeUrl parameter to be read by AXO SDK
*/
function loadAxo(options) {
return __awaiter(this, void 0, void 0, function () {
var version, assetUrl, localeUrl, err_1;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 2, , 3]);
version = options.client.getVersion();
assetUrl = getAssetsUrl(options);
localeUrl = getLocaleUrl(options);
return [4 /*yield*/, Promise.all([loadHCFScript(version), loadAXOScript(assetUrl)])];
case 1:
_a.sent();
return [2 /*return*/, { metadata: { localeUrl: localeUrl } }];
case 2:
err_1 = _a.sent();
return [2 /*return*/, Promise.reject(err_1)];
case 3: return [2 /*return*/];
}
});
});
}
/**
* Reads the version and to load the correct version of HCF, so we don't run into a version mismatch between hcf and client
* @param version (Required) string version that should be passed from the client getVersion
* @returns Promise<HTMLScriptElement>
*/
function loadHCFScript(version) {
return (0, asset_loader_1.loadScript)({
id: "hcf-".concat(version),
src: "https://js.braintreegateway.com/web/".concat(version, "/js/hosted-fields.min.js"),
});
}
/**
* Reads the url and to load the axo bundle script
* @param url (Required) string url for the correct axo asset
* @returns Promise<HTMLScriptElement>
*/
function loadAXOScript(url) {
return (0, asset_loader_1.loadScript)({
id: "axo-id",
src: url,
forceScriptReload: true,
});
}
/**
* Prepends the domain to the asset url
* @param options object with assetUrl and bundleid parameters to determine which URL to return
* @returns full domain and assets URL as string
*/
function generateAssetUrl(_a) {
var assetUrl = _a.assetUrl, bundleId = _a.bundleId;
return bundleId
? "https://cdn-".concat(bundleId, ".static.engineering.dev.paypalinc.com/").concat(assetUrl)
: "".concat(constants_1.constants.CDNX_PROD, "/").concat(assetUrl);
}
/**
* Retrieves either the minified or unminified assets URL as specified
* @param options (Optional) object with a minified and metadata with bundleIdOverride parameters to determine which URL to return
* @returns assets URL as string
*/
function getAssetsUrl(options) {
var _a;
var assetUrl = (options === null || options === void 0 ? void 0 : options.minified) !== false
? constants_1.constants.AXO_URL.minified
: constants_1.constants.AXO_URL.unminified;
return generateAssetUrl({
assetUrl: assetUrl,
bundleId: (_a = options === null || options === void 0 ? void 0 : options.metadata) === null || _a === void 0 ? void 0 : _a.bundleIdOverride,
});
}
/**
* Retrieves the Locales URL, the path to our language files
* @param options (Optional) object with a minified and metadata with bundleIdOverride parameters to determine which URL to return
* @returns locale URL as string
*/
function getLocaleUrl(options) {
var _a;
return generateAssetUrl({
assetUrl: constants_1.constants.LOCALE_PATH,
bundleId: (_a = options === null || options === void 0 ? void 0 : options.metadata) === null || _a === void 0 ? void 0 : _a.bundleIdOverride,
});
}
module.exports = loadAxo;
},{"./constants":10,"@braintree/asset-loader":1}],13:[function(_dereq_,module,exports){
'use strict';

@@ -498,3 +685,3 @@

},{}],9:[function(_dereq_,module,exports){
},{}],14:[function(_dereq_,module,exports){
"use strict";

@@ -533,3 +720,3 @@

},{"./constants":14,"./create-authorization-data":17,"./json-clone":21}],10:[function(_dereq_,module,exports){
},{"./constants":19,"./create-authorization-data":22,"./json-clone":26}],15:[function(_dereq_,module,exports){
"use strict";

@@ -588,12 +775,14 @@

},{"./add-metadata":9,"./constants":14}],11:[function(_dereq_,module,exports){
},{"./add-metadata":14,"./constants":19}],16:[function(_dereq_,module,exports){
"use strict";
var loadScript = _dereq_("@braintree/asset-loader/load-script");
var loadConnectScript = _dereq_("@paypal/connect-loader-component");
module.exports = {
loadScript: loadScript,
loadConnectScript: loadConnectScript.loadAxo,
};
},{"@braintree/asset-loader/load-script":3}],12:[function(_dereq_,module,exports){
},{"@braintree/asset-loader/load-script":5,"@paypal/connect-loader-component":11}],17:[function(_dereq_,module,exports){
"use strict";

@@ -603,3 +792,3 @@

var sharedErrors = _dereq_("./errors");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -660,3 +849,3 @@ function basicComponentVerification(options) {

},{"./braintree-error":13,"./errors":20}],13:[function(_dereq_,module,exports){
},{"./braintree-error":18,"./errors":25}],18:[function(_dereq_,module,exports){
"use strict";

@@ -750,6 +939,6 @@

},{"./enumerate":19}],14:[function(_dereq_,module,exports){
},{"./enumerate":24}],19:[function(_dereq_,module,exports){
"use strict";
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var PLATFORM = "web";

@@ -792,3 +981,3 @@

},{}],15:[function(_dereq_,module,exports){
},{}],20:[function(_dereq_,module,exports){
"use strict";

@@ -811,3 +1000,3 @@

},{"./braintree-error":13,"./errors":20}],16:[function(_dereq_,module,exports){
},{"./braintree-error":18,"./errors":25}],21:[function(_dereq_,module,exports){
"use strict";

@@ -829,3 +1018,3 @@

},{"./constants":14}],17:[function(_dereq_,module,exports){
},{"./constants":19}],22:[function(_dereq_,module,exports){
"use strict";

@@ -881,3 +1070,3 @@

},{"../lib/constants":14,"../lib/vendor/polyfill":23}],18:[function(_dereq_,module,exports){
},{"../lib/constants":19,"../lib/vendor/polyfill":28}],23:[function(_dereq_,module,exports){
"use strict";

@@ -889,3 +1078,3 @@

var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -947,3 +1136,3 @@ function createDeferredClient(options) {

},{"./assets":11,"./braintree-error":13,"./errors":20}],19:[function(_dereq_,module,exports){
},{"./assets":16,"./braintree-error":18,"./errors":25}],24:[function(_dereq_,module,exports){
"use strict";

@@ -963,3 +1152,3 @@

},{}],20:[function(_dereq_,module,exports){
},{}],25:[function(_dereq_,module,exports){
"use strict";

@@ -1014,3 +1203,3 @@

},{"./braintree-error":13}],21:[function(_dereq_,module,exports){
},{"./braintree-error":18}],26:[function(_dereq_,module,exports){
"use strict";

@@ -1022,3 +1211,3 @@

},{}],22:[function(_dereq_,module,exports){
},{}],27:[function(_dereq_,module,exports){
"use strict";

@@ -1032,3 +1221,3 @@

},{}],23:[function(_dereq_,module,exports){
},{}],28:[function(_dereq_,module,exports){
"use strict";

@@ -1081,3 +1270,3 @@

},{}],24:[function(_dereq_,module,exports){
},{}],29:[function(_dereq_,module,exports){
"use strict";

@@ -1130,3 +1319,3 @@

},{"../lib/braintree-error":13}],25:[function(_dereq_,module,exports){
},{"../lib/braintree-error":18}],30:[function(_dereq_,module,exports){
"use strict";

@@ -1146,3 +1335,3 @@

var errors = _dereq_("./errors");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var wrapPromise = _dereq_("@braintree/wrap-promise");

@@ -1203,3 +1392,3 @@

},{"../lib/analytics":10,"../lib/basic-component-verification":12,"../lib/braintree-error":13,"../lib/create-assets-url":16,"../lib/create-deferred-client":18,"./errors":24,"./visa-checkout":26,"@braintree/wrap-promise":7}],26:[function(_dereq_,module,exports){
},{"../lib/analytics":15,"../lib/basic-component-verification":17,"../lib/braintree-error":18,"../lib/create-assets-url":21,"../lib/create-deferred-client":23,"./errors":29,"./visa-checkout":31,"@braintree/wrap-promise":9}],31:[function(_dereq_,module,exports){
"use strict";

@@ -1412,3 +1601,3 @@

},{"../lib/analytics":10,"../lib/braintree-error":13,"../lib/convert-methods-to-error":15,"../lib/json-clone":21,"../lib/methods":22,"./errors":24,"@braintree/wrap-promise":7}]},{},[25])(25)
},{"../lib/analytics":15,"../lib/braintree-error":18,"../lib/convert-methods-to-error":20,"../lib/json-clone":26,"../lib/methods":27,"./errors":29,"@braintree/wrap-promise":9}]},{},[30])(30)
});

@@ -13,3 +13,3 @@ "use strict";

var wrapPromise = require("@braintree/wrap-promise");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var errors = require("./errors");

@@ -16,0 +16,0 @@

@@ -417,3 +417,3 @@ "use strict";

verifyDomain: isVerifiedDomain,
targetFrames: [],
targetFrames: [window],
});

@@ -420,0 +420,0 @@

@@ -10,3 +10,3 @@ "use strict";

var BraintreeError = require("../lib/braintree-error");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -13,0 +13,0 @@ /**

@@ -5,3 +5,3 @@ "use strict";

var errors = require("./errors");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -131,2 +131,30 @@ var constants = {

},
allowedBillingAddressFields: [
"company",
"countryCodeNumeric",
"countryCodeAlpha2",
"countryCodeAlpha3",
"countryName",
"extendedAddress",
"locality",
"region",
"firstName",
"lastName",
"postalCode",
"streetAddress",
],
allowedShippingAddressFields: [
"company",
"countryCodeNumeric",
"countryCodeAlpha2",
"countryCodeAlpha3",
"countryName",
"extendedAddress",
"locality",
"region",
"firstName",
"lastName",
"postalCode",
"streetAddress",
],
autocompleteMappings: {

@@ -133,0 +161,0 @@ "cardholder-name": "cc-name",

@@ -42,2 +42,3 @@ "use strict";

var client = require("./client");
var connect = require("./connect");
var dataCollector = require("./data-collector");

@@ -59,5 +60,7 @@ var hostedFields = require("./hosted-fields");

var preferredPaymentMethods = require("./preferred-payment-methods");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
module.exports = {
/** @type {module:braintree-web/connect} */
connect: connect,
/** @type {module:braintree-web/american-express} */

@@ -64,0 +67,0 @@ americanExpress: americanExpress,

"use strict";
var loadScript = require("@braintree/asset-loader/load-script");
var loadConnectScript = require("@paypal/connect-loader-component");
module.exports = {
loadScript: loadScript,
loadConnectScript: loadConnectScript.loadAxo,
};

@@ -5,3 +5,3 @@ "use strict";

var sharedErrors = require("./errors");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -8,0 +8,0 @@ function basicComponentVerification(options) {

"use strict";
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var PLATFORM = "web";

@@ -5,0 +5,0 @@

@@ -7,3 +7,3 @@ "use strict";

var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -10,0 +10,0 @@ function createDeferredClient(options) {

"use strict";
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var assign = require("./assign").assign;

@@ -5,0 +5,0 @@

@@ -6,3 +6,3 @@ "use strict";

var useMin = require("../../lib/use-min");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var INTEGRATION_TIMEOUT_MS =

@@ -9,0 +9,0 @@ require("../../lib/constants").INTEGRATION_TIMEOUT_MS;

@@ -12,3 +12,3 @@ "use strict";

var LocalPayment = require("./external/local-payment");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var wrapPromise = require("@braintree/wrap-promise");

@@ -15,0 +15,0 @@ var BraintreeError = require("../lib/braintree-error");

@@ -6,3 +6,3 @@ "use strict";

var errors = require("../shared/errors");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var methods = require("../../lib/methods");

@@ -9,0 +9,0 @@ var wrapPromise = require("@braintree/wrap-promise");

@@ -12,3 +12,3 @@ "use strict";

var createAssetsUrl = require("../lib/create-assets-url");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var errors = require("./shared/errors");

@@ -15,0 +15,0 @@ var wrapPromise = require("@braintree/wrap-promise");

{
"name": "braintree-web",
"version": "3.97.0",
"version": "3.97.1-connect-rc.1",
"license": "MIT",

@@ -19,2 +19,3 @@ "main": "index.js",

"@braintree/wrap-promise": "2.1.0",
"@paypal/connect-loader-component": "0.4.0",
"card-validator": "8.1.1",

@@ -31,2 +32,3 @@ "credit-card-type": "9.1.0",

"client": "./dist/browser/client.js",
"connect": "./dist/browser/connect.js",
"data-collector": "./dist/browser/data-collector.js",

@@ -33,0 +35,0 @@ "google-payment": "./dist/browser/google-payment.js",

@@ -14,3 +14,3 @@ "use strict";

var BraintreeError = require("../../lib/braintree-error");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var constants = require("../shared/constants");

@@ -17,0 +17,0 @@ var events = constants.events;

@@ -14,3 +14,3 @@ "use strict";

var wrapPromise = require("@braintree/wrap-promise");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -17,0 +17,0 @@ /**

@@ -10,3 +10,3 @@ "use strict";

var PayPalCheckout = require("./paypal-checkout");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -13,0 +13,0 @@ /**

@@ -19,3 +19,3 @@ "use strict";

var querystring = require("../lib/querystring");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var INTEGRATION_TIMEOUT_MS = require("../lib/constants").INTEGRATION_TIMEOUT_MS;

@@ -22,0 +22,0 @@

@@ -8,3 +8,3 @@ "use strict";

var once = require("../../lib/once");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var constants = require("../shared/constants");

@@ -11,0 +11,0 @@ var INTEGRATION_TIMEOUT_MS =

@@ -15,3 +15,3 @@ "use strict";

var PayPal = require("./external/paypal");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var wrapPromise = require("@braintree/wrap-promise");

@@ -18,0 +18,0 @@

@@ -7,3 +7,3 @@ "use strict";

var PreferredPaymentMethods = require("./preferred-payment-methods");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -10,0 +10,0 @@ // NEXT_MAJOR_VERSION

@@ -10,3 +10,3 @@ "use strict";

var analytics = require("../../lib/analytics");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var assign = require("../../lib/assign").assign;

@@ -13,0 +13,0 @@

@@ -10,3 +10,3 @@ "use strict";

var wrapPromise = require("@braintree/wrap-promise");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -13,0 +13,0 @@ /**

@@ -19,3 +19,3 @@ "use strict";

var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var IFRAME_HEIGHT = 400;

@@ -22,0 +22,0 @@ var IFRAME_WIDTH = 400;

@@ -18,3 +18,3 @@ "use strict";

var PLATFORM = require("../../../lib/constants").PLATFORM;
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var CUSTOMER_CANCELED_SONGBIRD_MODAL = "01";

@@ -21,0 +21,0 @@ var SONGBIRD_UI_EVENTS = [

@@ -12,3 +12,3 @@ "use strict";

var errors = require("./shared/errors");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var wrapPromise = require("@braintree/wrap-promise");

@@ -15,0 +15,0 @@

@@ -14,3 +14,3 @@ "use strict";

var errors = require("./shared/errors");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var wrapPromise = require("@braintree/wrap-promise");

@@ -17,0 +17,0 @@

@@ -14,3 +14,3 @@ "use strict";

var methods = require("../../lib/methods");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var uuid = require("@braintree/uuid");

@@ -17,0 +17,0 @@ var wrapPromise = require("@braintree/wrap-promise");

@@ -13,3 +13,3 @@ "use strict";

var USBankAccount = require("./us-bank-account");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var wrapPromise = require("@braintree/wrap-promise");

@@ -16,0 +16,0 @@

@@ -11,3 +11,3 @@ "use strict";

var VaultManager = require("./vault-manager");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var wrapPromise = require("@braintree/wrap-promise");

@@ -14,0 +14,0 @@

@@ -13,3 +13,3 @@ "use strict";

var supportsVenmo = require("./shared/supports-venmo");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";

@@ -16,0 +16,0 @@ /**

@@ -7,3 +7,3 @@ "use strict";

var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var VENMO_LOGO_SVG =

@@ -10,0 +10,0 @@ '<svg width="198" height="58" viewBox="0 0 198 58" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M43.0702 13.6572C44.1935 15.4585 44.6999 17.3139 44.6999 19.6576C44.6999 27.1328 38.1277 36.8436 32.7935 43.6625H20.6099L15.7236 15.2939L26.3917 14.3105L28.9751 34.4966C31.389 30.6783 34.3678 24.6779 34.3678 20.587C34.3678 18.3477 33.9727 16.8225 33.3553 15.5666L43.0702 13.6572Z" fill="white"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M56.8965 26.1491C58.8596 26.1491 63.8018 25.2772 63.8018 22.5499C63.8018 21.2402 62.8481 20.587 61.7242 20.587C59.7579 20.587 57.1776 22.8763 56.8965 26.1491ZM56.6715 31.5506C56.6715 34.8807 58.5787 36.1873 61.107 36.1873C63.8603 36.1873 66.4966 35.534 69.923 33.8433L68.6324 42.3523C66.2183 43.4976 62.4559 44.2617 58.8039 44.2617C49.5403 44.2617 46.2249 38.8071 46.2249 31.9879C46.2249 23.1496 51.6179 13.765 62.7365 13.765C68.858 13.765 72.2809 17.0949 72.2809 21.7317C72.2815 29.2066 62.4005 31.4965 56.6715 31.5506Z" fill="white"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M103.067 20.3142C103.067 21.4052 102.897 22.9875 102.727 24.0216L99.5262 43.6622H89.1385L92.0585 25.658C92.1139 25.1696 92.284 24.1865 92.284 23.6411C92.284 22.3314 91.4414 22.0047 90.4282 22.0047C89.0826 22.0047 87.7337 22.6042 86.8354 23.0418L83.5234 43.6625H73.0772L77.8495 14.257H86.8908L87.0052 16.6041C89.1382 15.2404 91.9469 13.7656 95.932 13.7656C101.212 13.765 103.067 16.3845 103.067 20.3142Z" fill="white"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M133.906 16.9841C136.881 14.9131 139.69 13.765 143.563 13.765C148.897 13.765 150.753 16.3845 150.753 20.3142C150.753 21.4052 150.583 22.9875 150.413 24.0216L147.216 43.6622H136.825L139.801 25.2774C139.855 24.786 139.971 24.1865 139.971 23.8063C139.971 22.3317 139.128 22.0047 138.115 22.0047C136.824 22.0047 135.535 22.5501 134.577 23.0418L131.266 43.6625H120.878L123.854 25.2777C123.908 24.7863 124.02 24.1868 124.02 23.8065C124.02 22.332 123.177 22.0049 122.167 22.0049C120.819 22.0049 119.473 22.6045 118.574 23.0421L115.26 43.6628H104.817L109.589 14.2573H118.52L118.8 16.7122C120.878 15.241 123.684 13.7662 127.446 13.7662C130.704 13.765 132.837 15.129 133.906 16.9841Z" fill="white"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M171.426 25.5502C171.426 23.1496 170.808 21.513 168.956 21.513C164.857 21.513 164.015 28.55 164.015 32.1498C164.015 34.8807 164.802 36.5709 166.653 36.5709C170.528 36.5709 171.426 29.1497 171.426 25.5502ZM153.458 31.7152C153.458 22.442 158.511 13.765 170.136 13.765C178.896 13.765 182.098 18.7854 182.098 25.7148C182.098 34.8805 177.099 44.3723 165.194 44.3723C156.378 44.3723 153.458 38.7525 153.458 31.7152Z" fill="white"/>\n</svg>';

@@ -27,3 +27,3 @@ "use strict";

var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var DEFAULT_MOBILE_POLLING_INTERVAL = 250; // 1/4 second

@@ -30,0 +30,0 @@ var DEFAULT_MOBILE_EXPIRING_THRESHOLD = 300000; // 5 minutes

@@ -15,3 +15,3 @@ "use strict";

var errors = require("./errors");
var VERSION = "3.97.0";
var VERSION = "3.97.1-connect-rc.1";
var wrapPromise = require("@braintree/wrap-promise");

@@ -18,0 +18,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc