1/*! For license information please see 9188.3b290dddbec666b9c29e.bundle.min.js.LICENSE.txt */ 2(self.webpackChunknyp_membership=self.webpackChunknyp_membership||[]).push([[9188],{8627:function(e){e.exports=function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[a]={exports:{}};t[a][0].call(u.exports,function(e){return i(t[a][1][e]||e)},u,u.exports,e,t,r,n)}return r[a].exports}for(var o=void 0,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(e,t,r){"use strict";var n={};function i(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var i=document.createElement("script"),o=e.dataAttributes||{},a=e.container||document.head;return i.src=e.src,i.id=e.id||"",i.async=!0,e.type&&i.setAttribute("type","".concat(e.type)),e.crossorigin&&i.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&i.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEach(function(e){i.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){i.addEventListener("load",function(){t(i)}),i.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),i.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),a.appendChild(i)}),n[r]=t,t}i.clearCache=function(){n={}},t.exports=i},{}],2:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];setTimeout(function(){try{e.apply(void 0,t)}catch(e){console.log("Error in callback function"),console.log(e)}},1)}}},{}],4:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.once=function(e){var t=!1;return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];t||(t=!0,e.apply(void 0,r))}}},{}],5:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=function(e,t){if(!t)return e;e.then(function(e){return t(null,e)}).catch(function(e){return t(e)})}},{}],6:[function(e,t,r){"use strict";var n=e("./lib/deferred"),i=e("./lib/once"),o=e("./lib/promise-or-callback");function a(e){return function(){for(var t,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=i.once(n.deferred(t))),o.promiseOrCallback(e.apply(this,r),t)}}a.wrapPrototype=function(e,t){void 0===t&&(t={});var r=t.ignoreMethods||[],n=!0===t.transformPrivateMethods;return Object.getOwnPropertyNames(e.prototype).filter(function(t){var i,o="constructor"!==t&&"function"==typeof e.prototype[t],a=-1===r.indexOf(t);return i=!!n||"_"!==t.charAt(0),o&&i&&a}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=a(r)}),e},t.exports=a},{"./lib/deferred":3,"./lib/once":4,"./lib/promise-or-callback":5}],7:[function(e,t,r){var n,i;n=this,i=function(e){"use strict";function t(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function r(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var n={},i={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=i[r]))return t;var n=document.createElement("script"),o=e.dataAttributes||{},a=e.container||document.head;return n.src=e.src,n.id=e.id||"",n.async=!0,e.type&&n.setAttribute("type","".concat(e.type)),e.crossorigin&&n.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(o).forEac
2h(function(e){n.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){n.addEventListener("load",function(){t(n)}),n.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),n.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),a.appendChild(n)}),i[r]=t,t}o.clearCache=function(){i={}};var a=o;Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=c=n.loadScript=void 0;var s=a,c=n.loadScript=s,u=function(e){var t=document.querySelector('link[href="'.concat(e.href,'"]'));if(t)return Promise.resolve(t);t=document.createElement("link");var r=e.container||document.head;return t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",e.href),t.setAttribute("id",e.id),r.firstChild?r.insertBefore(t,r.firstChild):r.appendChild(t),Promise.resolve(t)};n.loadStylesheet=u;var d,l,p="fastlane",f="connect-boba",h={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:f,LOCALE_PATH:"".concat(f,"/locales/"),CDNX_PROD:"https://www.paypalobjects.com"},_="BT",m="PPCP";function E(){return"function"==typeof window.define&&!!window.define.amd}function y(e,n,i){var o,a;return void 0===i&&(i=!0),t(this,void 0,void 0,function(){var t,s;return r(this,function(r){if((t=null===window||void 0===window?void 0:window.braintree)&&t[e.module]){if(n&&(null===(o=t[e.module])||void 0===o?void 0:o.VERSION)!==n)throw s=null===(a=t[e.module])||void 0===a?void 0:a.VERSION,new Error("".concat(e.module," already loaded with version ").concat(s," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,v(e,n,i)]})})}function v(e,t,r){if(void 0===r&&(r=!0),E()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var i=r?e.script.minified:e.script.unminified;return c({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(i)})}var b="client",T="hostedFields",A="braintree",g=((d={})[b]="client",d[T]="hosted-fields",d),R=((l={})[b]={id:"client",module:b,amdModule:{unminified:"".concat(A,"/").concat(g[b]),minified:"".concat(A,"/").concat(g[b],".min")},script:{unminified:"".concat(g[b],".js"),minified:"".concat(g[b],".min.js")}},l[T]={id:"hcf",module:T,amdModule:{unminified:"".concat(A,"/").concat(g[T]),minified:"".concat(A,"/").concat(g[T],".min")},script:{unminified:"".concat(g[T],".js"),minified:"".concat(g[T],".min.js")}},l);function I(e,t){var r;if(void 0===t&&(t=!0),E()){E()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config&&requirejs.config({paths:(r={},r[p]=e,r)});var n="".concat(p,"/").concat(t?h.AXO_ASSET_NAME.minified:h.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([n],e,t)})}return c({id:"axo-id",src:e,forceScriptReload:!0})}function N(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(h.CDNX_PROD,"/").concat(t)}e.constants=h,e.loadAxo=function(e){return t(this,void 0,void 0,function(){var t,n,i,o;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,i=function(e){var t,r=!1!==(null==e?void 0:e.minified)?h.AXO_ASSET_NAME.minified:h.AXO_ASSET_NAME.unminified;return N({assetUrl:E()?h.AXO_ASSET_PATH:"".concat(h.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}(e),o=function(e){var t;return N({assetUrl:h.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}(e),e.platform!==_?[3,2]:[4,Promise.all([y(R.hostedFields,t,n),I(i,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==m?[3,4]:[4,Promise.all([y(R.client,t,n),y(R.hostedFields,t,n),I(i,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:o}}]}})})}},i("object"==typeof r&&void 0!==t?r:(n="undefined"!=typeof globalThis?globalThis:n||self).loadAxo={})},{}],8:[function(e,t,r){"use strict";var n=e("../lib/braintree-error");t.exports={DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS:{type:n.types.MERCHANT,code:"DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS",message:"Data Collector must be created with Kount and/or PayPal."}}},{"../lib/braintree-error":13}],9:[function(e,t,r){"use strict";
2var n,i=e("../lib/constants").FRAUDNET_FNCLS,o=e("../lib/constants").FRAUDNET_SOURCE,a=e("../lib/constants").FRAUDNET_URL,s=e("../lib/assets").loadScript;function c(){}function u(e){e&&e.parentNode&&e.parentNode.removeChild(e)}c.prototype.initialize=function(e){var t=this;this.sessionId=e.sessionId||e.clientSessionId,this.sessionId&&(this.sessionId=this.sessionId.substring(0,32)),e.sessionId||(n=this.sessionId);var r,c,u,d={f:this.sessionId,s:o};return e.hasOwnProperty("beacon")&&!0!==e.beacon?d.bu=!1:d.b="https://b.stats.paypal.com/counter.cgi?i=127.0.0.1&p="+this.sessionId+"&t="+(new Date).getTime()/1e3+"&a=14",e.hasOwnProperty("cb1")&&(d.cb1=e.cb1),this._parameterBlock=(r=d,c=e.environment,u=document.body.appendChild(document.createElement("script")),"production"!==c&&(r.sandbox=!0),u.type="application/json",u.setAttribute("fncls",i),u.text=JSON.stringify(r),u),s({src:a}).then(function(e){return t._thirdPartyBlock=e,t}).catch(function(){return null})},c.prototype.teardown=function(){u(document.querySelector('iframe[title="ppfniframe"]')),u(document.querySelector('iframe[title="pbf"]')),u(this._parameterBlock),u(this._thirdPartyBlock)},t.exports={setup:function(e){var t=new c;return!(e=e||{}).sessionId&&n?(t.sessionId=n,Promise.resolve(t)):t.initialize(e)},clearSessionIdCache:function(){n=null}}},{"../lib/assets":11,"../lib/constants":14}],10:[function(e,t,r){"use strict";var n=e("./fraudnet"),i=e("../lib/braintree-error"),o=e("../lib/basic-component-verification"),a=e("../lib/create-deferred-client"),s=e("../lib/create-assets-url"),c=e("../lib/methods"),u=e("../lib/convert-methods-to-error"),d=e("@braintree/wrap-promise"),l=e("./errors");t.exports={create:d(function(e){var t="Data Collector",r={_instances:[]},p={};return o.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){return r._instantiatedWithAClient=!e.useDeferredClient,r._createPromise=a.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:s.create(e.authorization),name:t}).then(function(t){var i=t.getConfiguration(),o={sessionId:e.riskCorrelationId||e.clientMetadataId||e.correlationId,clientSessionId:i.analyticsMetadata.sessionId,environment:i.gatewayConfiguration.environment,cb1:e.cb1};return e.hasOwnProperty("beacon")&&(o.beacon=e.beacon),n.setup(o).then(function(e){e&&(p.correlation_id=e.sessionId,r._instances.push(e))})}).then(function(){return 0===r._instances.length?Promise.reject(new i(l.DATA_COLLECTOR_REQUIRES_CREATE_OPTIONS)):(r.deviceData=JSON.stringify(p),r.rawDeviceData=p,r)}),r.teardown=function(e){return d(function(){return e._createPromise.then(function(){e._instances.forEach(function(e){e&&e.teardown()}),u(e,c(e))})})}(r),r.getDeviceData=function(e){return d(function(t){return t=t||{},e._createPromise.then(function(){return t.raw?Promise.resolve(e.rawDeviceData):Promise.resolve(e.deviceData)})})}(r),r._instantiatedWithAClient?r._createPromise:r})}),VERSION:"3.143.0"}},{"../lib/basic-component-verification":12,"../lib/braintree-error":13,"../lib/convert-methods-to-error":15,"../lib/create-assets-url":16,"../lib/create-deferred-client":17,"../lib/methods":20,"./errors":8,"./fraudnet":9,"@braintree/wrap-promise":6}],11:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),i=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:i.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":7}],12:[function(e,t,r){"use strict";var n=e("./braintree-error"),i=e("./errors"),o="3.143.0";t.exports={verify:function(e){var t,r,a;return e?(a=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===o?Promise.resolve():Promise.reject(new n({type:i.INCOMPATIBLE_VERSIONS.type,code:i.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+a+" (version "+o+") components must be from the same SDK version."})):Promise.reject(new n({type:i.INSTANTIATION_OPTION_REQUIRED.type,code:i.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+a+"."}))):Promise.reject(new n({type:i.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:i.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}}},{"./braintree-error":13,"./errors":19}],13:[function(e,t,r){"use strict";var n=e("./enumerate");function i(e){if(!i.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");
2if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),i.findRootError=function(e){return e instanceof i&&e.details&&e.details.originalError?i.findRootError(e.details.originalError):e},t.exports=i},{"./enumerate":18}],14:[function(e,t,r){"use strict";var n="3.143.0",i="web";t.exports={ANALYTICS_PREFIX:i+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:{production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},CLIENT_API_URLS:{production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},FRAUDNET_SOURCE:"BRAINTREE_SIGNIN",FRAUDNET_FNCLS:"fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99",FRAUDNET_URL:"https://c.paypal.com/da/r/fb.js",BUS_CONFIGURATION_REQUEST_EVENT:"BUS_CONFIGURATION_REQUEST",GRAPHQL_URLS:{production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"},INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:i,BRAINTREE_LIBRARY_VERSION:"braintree/web/"+n,ALLOWED_EXTRA_EVENT_FIELDS:["context_id","context_type","payment_ready_button_order","payment_ready_experiment_type","payment_ready_page_type","payment_ready_session_id","button_type","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],15:[function(e,t,r){"use strict";var n=e("./braintree-error"),i=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:i.METHOD_CALLED_AFTER_TEARDOWN.type,code:i.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":13,"./errors":19}],16:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;t.exports={create:function(e){return n.production}}},{"./constants":14}],17:[function(e,t,r){"use strict";var n=e("./braintree-error"),i=e("./assets"),o=e("./errors"),a="3.143.0";t.exports={create:function(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=i.loadScript({src:e.assetsUrl+"/web/"+a+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:o.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:o.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:o.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))})),t.then(function(){return window.braintree.client.VERSION!==a?Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+a+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}}},{"./assets":11,"./braintree-error":13,"./errors":19}],18:[function(e,t,r){"use strict";t.exports=function(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}},{}],19:[function(e,t,r){"use strict";var n=e("./braintree-error");t.exports={INVALID_USE_OF_INTERNAL_FUNCTION:{type:n.types.INTERNAL,code:"INVALID_USE_OF_INTERNAL_FUNCTION"},INSTANTIATION_OPTION_REQUIRED:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_REQUIRED"},INCOMPATIBLE_VERSIONS:{type:n.types.MERCHANT,code:"INCOMPATIBLE_VERSIONS"},CLIENT_SCRIPT_FAILED_TO_LOAD:{type:n.types.NETWORK,code:"CLIENT_SCRIPT_FAILED_TO_LOAD",message:"Braintree client script could not be loaded."},METHOD_CALLED_AFTER_TEARDOWN:{type:n.types.MERCHANT,code:"METHOD_CALLED_AFTER_TEARDOWN"},INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":13}],20:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}]},{},[10])(10)},3696:function(e){e.exports=function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=r[a]={exports:{}};t[a][0].call(u.exports,function(e){return i(t[a][1][e]||e)},u,u.exports,e,t,r,n)}return r[a].exports}for(var o=void 0,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(e,t,r){"use strict";var n={};function i(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=n[r]))return t;var i=document.createElement("script"),o=e.dataAttributes||{},a=e.container||document.head;return i.src=e.src,i.id=e.id||"",i.async=!0,e.type&&i.setAttribute("type","".concat(e.type)),e.crossorigin&&i.setAttribute("crossorigin","".concat(e.crossorigin)),e.integrity&&i.setAttribute("integrity","".concat(e.integrity)),Object.keys(o).forEac
2h(function(e){i.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){i.addEventListener("load",function(){t(i)}),i.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),i.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),a.appendChild(i)}),n[r]=t,t}i.clearCache=function(){n={}},t.exports=i},{}],2:[function(e,t,r){t.exports=e("./dist/load-script")},{"./dist/load-script":1}],3:[function(e,t,r){"use strict";var n=function(){function e(){this._events={}}return e.prototype.on=function(e,t){this._events[e]?this._events[e].push(t):this._events[e]=[t]},e.prototype.off=function(e,t){var r=this._events[e];if(r){var n=r.indexOf(t);r.splice(n,1)}},e.prototype._emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=this._events[e];n&&n.forEach(function(e){e.apply(void 0,t)})},e.prototype.hasListener=function(e){var t=this._events[e];return!!t&&t.length>0},e.createChild=function(t){t.prototype=Object.create(e.prototype,{constructor:t})},e}();t.exports=n},{}],4:[function(e,t,r){"use strict";var n="undefined"!=typeof Promise?Promise:null,i=function(){function e(t){var r=this;"function"!=typeof t?(this._promise=new e.Promise(function(e,t){r._resolveFunction=e,r._rejectFunction=t}),t=t||{},this._onResolve=t.onResolve||e.defaultOnResolve,this._onReject=t.onReject||e.defaultOnReject,e.shouldCatchExceptions(t)&&this._promise.catch(function(){}),this._resetState()):this._promise=new e.Promise(t)}return e.defaultOnResolve=function(t){return e.Promise.resolve(t)},e.defaultOnReject=function(t){return e.Promise.reject(t)},e.setPromise=function(t){e.Promise=t},e.shouldCatchExceptions=function(t){return t.hasOwnProperty("suppressUnhandledPromiseMessage")?Boolean(t.suppressUnhandledPromiseMessage):Boolean(e.suppressUnhandledPromiseMessage)},e.all=function(t){return e.Promise.all(t)},e.allSettled=function(t){return e.Promise.allSettled(t)},e.race=function(t){return e.Promise.race(t)},e.reject=function(t){return e.Promise.reject(t)},e.resolve=function(t){return e.Promise.resolve(t)},e.prototype.then=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=this._promise).then.apply(e,t)},e.prototype.catch=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(e=this._promise).catch.apply(e,t)},e.prototype.resolve=function(t){var r=this;return this.isFulfilled||(this._setResolved(),e.Promise.resolve().then(function(){return r._onResolve(t)}).then(function(e){r._resolveFunction(e)}).catch(function(e){r._resetState(),r.reject(e)})),this},e.prototype.reject=function(t){var r=this;return this.isFulfilled||(this._setRejected(),e.Promise.resolve().then(function(){return r._onReject(t)}).then(function(e){r._setResolved(),r._resolveFunction(e)}).catch(function(e){return r._rejectFunction(e)})),this},e.prototype._resetState=function(){this.isFulfilled=!1,this.isResolved=!1,this.isRejected=!1},e.prototype._setResolved=function(){this.isFulfilled=!0,this.isResolved=!0,this.isRejected=!1},e.prototype._setRejected=function(){this.isFulfilled=!0,this.isResolved=!1,this.isRejected=!0},e.Promise=n,e}();t.exports=i},{}],5:[function(e,t,r){"use strict";var n=e("./lib/set-attributes"),i=e("./lib/default-attributes"),o=e("./lib/assign");t.exports=function(e){void 0===e&&(e={});var t=document.createElement("iframe"),r=(0,o.assign)({},i.defaultAttributes,e);return r.style&&"string"!=typeof r.style&&((0,o.assign)(t.style,r.style),delete r.style),(0,n.setAttributes)(t,r),t.getAttribute("id")||(t.id=t.name),t}},{"./lib/assign":6,"./lib/default-attributes":7,"./lib/set-attributes":8}],6:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.assign=void 0,r.assign=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.forEach(function(t){"object"==typeof t&&Object.keys(t).forEach(function(r){e[r]=t[r]})}),e}},{}],7:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.defaultAttributes=void 0,r.defaultAttributes={src:"about:blank",frameBorder:0,allowtransparency:!0,scrolling:"no"}},{}],8:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.setAttributes=void 0,r.setAttributes=function(e,t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];null==n?e.removeAttribute(r):e.setAttribute(r,n)}}},{}],9:[function(e,t,r){"use strict";t.exports=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID)try{return crypto.randomUUID()}catch(e){}if("undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues){var e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128;for(var t=new Array(256),r=0;r<256;r++)t[r]=(r<16?"0":"")+r.toString(16);return t[e[0]]+t[e[1]]+t[e[2]]+t[e[3]]+"-"+t[e[4]]+t[e[5]]+"-"+t[e[6]]+t[e[7]]+"-"+t[e[8]]+t[e[9]]+"-"+t[e[10]]+t[e[11]]+t[e[12]]+t[e[13]]+t[e[14]]+t[e[15]]}throw new Error("@braintree/uuid: No secure random source available")}},{}],10:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.deferred=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];setTimeout(function(){try{e.apply(void 0,t)}catch(e){console.log("Error in callback function"),console.log(e)}},1)}}},{}],11:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.once=function(e){var t=!1;return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];t||(t=!0,e.apply(void 0,r))}}},{}],12:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.promiseOrCallback=function(e,t){if(!t)return e;e.then(function(e){return t(null,e)}).catch(function(e){return t(e)})}},{}],13:[function(e,t,r){"use strict";var n=e("./lib/deferred"),i=e("./lib/once"),o=e("./lib/promise-or-callback");function a(e){return function(){for(var t,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return"function"==typeof r[r.length-1]&&(t=r.pop(),t=i.once(n.deferred(t))),o.promiseOrCallback(e.apply(this,r),t)}}a.wrapPrototype=function(e,t){void 0===t&&(t={});var r=t.ignoreMethods||[],n=!0===t.transformPrivateMethods;return Object.getOwnPropertyNames(e.prototype).filter(function(t){var i,o="constructor"!==t&&"function"==typeof e.prototype[t],a=-1===r.indexOf(t);return i=!!n||"_"!==t.charAt(0),o&&i&&a}).forEach(function(t){var r=e.prototype[t];e.prototype[t]=a(r)}),e},t.exports=a},{"./lib/deferred":10,"./lib/once":11,"./lib/promise-or-callback":12}],14:[function(e,t,r){var n,i;n=this,i=function(e){"use strict";function t(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})}function r(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var n={},i={};function o(e){var t,r=JSON.stringify(e);if(!e.forceScriptReload&&(t=i[r]))return t;var n=document.createElement("script"),o=e.dataAttributes||{},a=e.container||document.head;return n.src=e.src,n.id=e.id||"",n.async=!0,e.type&&n.setAttribute("type","".concat(e.type)),e.crossorigin&&n.setAttribute("crossorigin","".concat(e.crossorigin)),Object.keys(o).forEac
2h(function(e){n.setAttribute("data-".concat(e),"".concat(o[e]))}),t=new Promise(function(t,r){n.addEventListener("load",function(){t(n)}),n.addEventListener("error",function(){r(new Error("".concat(e.src," failed to load.")))}),n.addEventListener("abort",function(){r(new Error("".concat(e.src," has aborted.")))}),a.appendChild(n)}),i[r]=t,t}o.clearCache=function(){i={}};var a=o;Object.defineProperty(n,"__esModule",{value:!0}),n.loadStylesheet=c=n.loadScript=void 0;var s=a,c=n.loadScript=s,u=function(e){var t=document.querySelector('link[href="'.concat(e.href,'"]'));if(t)return Promise.resolve(t);t=document.createElement("link");var r=e.container||document.head;return t.setAttribute("rel","stylesheet"),t.setAttribute("type","text/css"),t.setAttribute("href",e.href),t.setAttribute("id",e.id),r.firstChild?r.insertBefore(t,r.firstChild):r.appendChild(t),Promise.resolve(t)};n.loadStylesheet=u;var d,l,p="fastlane",f="connect-boba",h={AXO_ASSET_NAME:{minified:"axo.min",unminified:"axo"},AXO_ASSET_PATH:f,LOCALE_PATH:"".concat(f,"/locales/"),CDNX_PROD:"https://www.paypalobjects.com"},_="BT",m="PPCP";function E(){return"function"==typeof window.define&&!!window.define.amd}function y(e,n,i){var o,a;return void 0===i&&(i=!0),t(this,void 0,void 0,function(){var t,s;return r(this,function(r){if((t=null===window||void 0===window?void 0:window.braintree)&&t[e.module]){if(n&&(null===(o=t[e.module])||void 0===o?void 0:o.VERSION)!==n)throw s=null===(a=t[e.module])||void 0===a?void 0:a.VERSION,new Error("".concat(e.module," already loaded with version ").concat(s," cannot load version ").concat(n));return[2,!0]}if(!n)throw new Error("Attempted to load ".concat(e.module," without specifying version"));return[2,v(e,n,i)]})})}function v(e,t,r){if(void 0===r&&(r=!0),E()){var n=r?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([n],e,t)})}var i=r?e.script.minified:e.script.unminified;return c({id:"".concat(e.id,"-").concat(t),src:"https://js.braintreegateway.com/web/".concat(t,"/js/").concat(i)})}var b="client",T="hostedFields",A="braintree",g=((d={})[b]="client",d[T]="hosted-fields",d),R=((l={})[b]={id:"client",module:b,amdModule:{unminified:"".concat(A,"/").concat(g[b]),minified:"".concat(A,"/").concat(g[b],".min")},script:{unminified:"".concat(g[b],".js"),minified:"".concat(g[b],".min.js")}},l[T]={id:"hcf",module:T,amdModule:{unminified:"".concat(A,"/").concat(g[T]),minified:"".concat(A,"/").concat(g[T],".min")},script:{unminified:"".concat(g[T],".js"),minified:"".concat(g[T],".min.js")}},l);function I(e,t){var r;if(void 0===t&&(t=!0),E()){E()&&"function"==typeof window.requirejs&&"function"==typeof window.requirejs.config&&requirejs.config({paths:(r={},r[p]=e,r)});var n="".concat(p,"/").concat(t?h.AXO_ASSET_NAME.minified:h.AXO_ASSET_NAME.unminified);return new Promise(function(e,t){window.require([n],e,t)})}return c({id:"axo-id",src:e,forceScriptReload:!0})}function N(e){var t=e.assetUrl,r=e.bundleId;return r?"https://cdn-".concat(r,".static.engineering.dev.paypalinc.com/").concat(t):"".concat(h.CDNX_PROD,"/").concat(t)}e.constants=h,e.loadAxo=function(e){return t(this,void 0,void 0,function(){var t,n,i,o;return r(this,function(r){switch(r.label){case 0:return performance.mark("pp_axo_sdk_init_invoked"),t=e.btSdkVersion,n=e.minified,i=function(e){var t,r=!1!==(null==e?void 0:e.minified)?h.AXO_ASSET_NAME.minified:h.AXO_ASSET_NAME.unminified;return N({assetUrl:E()?h.AXO_ASSET_PATH:"".concat(h.AXO_ASSET_PATH,"/").concat(r,".js"),bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}(e),o=function(e){var t;return N({assetUrl:h.LOCALE_PATH,bundleId:null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.bundleIdOverride})}(e),e.platform!==_?[3,2]:[4,Promise.all([y(R.hostedFields,t,n),I(i,n)])];case 1:case 3:return r.sent(),[3,5];case 2:return e.platform!==m?[3,4]:[4,Promise.all([y(R.client,t,n),y(R.hostedFields,t,n),I(i,n)])];case 4:throw new Error("unsupported axo platform");case 5:return[2,{metadata:{localeUrl:o}}]}})})}},i("object"==typeof r&&void 0!==t?r:(n="undefined"!=typeof globalThis?globalThis:n||self).loadAxo={})},{}],15:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.Framebus=void 0;var n=e("./lib"),i="undefined"!=typeof window&&window.Promise,o=function(){function e(e){void 0===e&&(e={}),this.origin=e.origin||"*",this.channel=e.channel||"",this.verifyDomain=e.verifyDomain,this.targetFrames=e.targetFrames||[],this.limitBroadcastToFramesArray=Boolean(e.targetFrames),this.isDestroyed=!1,this.listeners=[],this.hasAdditionalChecksForOnListeners=Boolean(this.verifyDomain||this.limitBroadcastToFramesArray)}return e.setPromise=function(t){e.Promise=t},e.target=function(t){return new e(t)},e.prototype.addTargetFrame=function(e){this.limitBroadcastToFramesArray&&this.targetFrames.push(e)},e.prototype.include=function(e){return null!=e&&null!=e.Window&&e.constructor===e.Window&&(n.childWindows.push(e),!0)},e.prototype.target=function(t){return e.target(t)},e.prototype.emit=function(e,t,r){if(this.isDestroyed)return!1;var i=this.origin;if(e=this.namespaceEvent(e),(0,n.isntString)(e))return!1;if((0,n.isntString)(i))return!1;"function"==typeof t&&(r=t,t=void 0);var o=(0,n.packagePayload)(e,i,t,r);return!!o&&(this.limitBroadcastToFramesArray?this.targetFramesAsWindows().forEach(function(e){(0,n.sendMessage)(e,o,i)}):(0,n.broadcast)(o,{origin:i,frame:window.top||window.self}),!0)},e.prototype.emitAsPromise=function(t,r){var n=this;return new e.Promise(function(e,i){n.emit(t,r,function(t){e(t)})||i(new Error('Listener not added for "'.concat(t,'"')))})},e.prototype.on=function(e,t){if(this.isDestroyed)return!1;var r=this,i=this.origin,o=t;return e=this.namespaceEvent(e),!(0,n.subscriptionArgsInvalid)(e,o,i)&&(this.hasAdditionalChecksForOnListeners&&(o=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r.passesVerifyDomainCheck(this&&this.origin)&&r.hasMatchingTargetFrame(this&&this.source)&&t.apply(void 0,e)}),this.listeners.push({eventName:e,handler:o,originalHandler:t}),n.subscribers[i]=n.subscribers[i]||{},n.subscribers[i][e]=n.subscribers[i][e]||[],n.subscribers[i][e].push(o),!0)},e.prototype.off=function(e,t){var r=t;if(this.isDestroyed)return!1;if(this.hasAdditionalChecksForOnListeners)for(var i=0;i<this.listeners.length;i++){var o=this.listeners[i];o.originalHandler===t&&(r=o.handler)}e=this.namespaceEvent(e);var a=this.origin;if((0,n.subscriptionArgsInvalid)(e,r,a))return!1;var s=n.subscribers[a]&&n.subscribers[a][e];if(!s)return!1;for(i=0;i<s.length;i++)if(s[i]===r)return s.splice(i,1),!0;return!1},e.prototype.teardown=function(){if(!this.isDestroyed){this.isDestroyed=!0;for(var e=0;e<this.listeners.length;e++){var t=this.listeners[e];this.off(t.eventName,t.handler)}this.listeners.length=0}},e.prototype.passesVerifyDomainCheck=function(e){return!this.verifyDomain||this.checkOrigin(e)},e.prototype.targetFramesAsWindows=function(){return this.limitBroadcastToFramesArray?this.targetFrames.map(function(e){return e instanceof HTMLIFrameElement?e.contentWindow:e}).filter(function(e){return e}):[]},e.prototype.hasMatchingTargetFrame=function(e){if(!this.limitBroadcastToFramesArray)return!0;var t=this.targetFramesAsWindows().find(function(t){return t===e});return Boolean(t)},e.prototype.checkOrigin=function(e){var t,r=document.createElement("a");return r.href=location.href,t="https:"===r.protocol?r.host.replace(/:443$/,""):"http:"===r.protocol?r.host.replace(/:80$/,""):r.host,r.protocol+"//"+t===e||!this.verifyDomain||this.verifyDomain(e)},e.prototype.namespaceEvent=function(e){return this.channel?"".concat(this.channel,":").concat(e):e},e.Promise=i,e}();r.Framebus=o},{"./lib":23}],16:[function(e,t,r){"use strict";var n=e("./lib"),i=e("./framebus");(0,n.attach)(),t.exports=i.Framebus},{"./framebus":15,"./lib":23}],17:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.detach=r.attach=void 0;var n=e("./"),i=!1;r.attach=function(){i||"undefined"==typeof window||(i=!0,window.addEventListener("message",n.onMessage,!1))},r.detach=function(){i=!1,window.removeEventListener("message",n.onMessage,!1)}},{"./":23}],18:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.broadcastToChildWindows=void 0;var n=e("./");r.broadcastToChildWindows=function(e,t,r){for(var i=n.childWindows.length-1;i>=0;i--){var o=n.childWindows[i];
2o.closed?n.childWindows.splice(i,1):r!==o&&(0,n.broadcast)(e,{origin:t,frame:o.top})}}},{"./":23}],19:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.broadcast=void 0;var n=e("./");r.broadcast=function e(t,r){var i,o=0,a=r.origin,s=r.frame;try{for(s.postMessage(t,a),(0,n.hasOpener)(s)&&s.opener.top!==window.top&&e(t,{origin:a,frame:s.opener.top});i=s.frames[o];)e(t,{origin:a,frame:i}),o++}catch(e){}}},{"./":23}],20:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.subscribers=r.childWindows=r.prefix=void 0,r.prefix="/*framebus*/",r.childWindows=[],r.subscribers={}},{}],21:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.dispatch=void 0;var n=e("./");r.dispatch=function(e,t,r,i,o){if(n.subscribers[e]&&n.subscribers[e][t]){var a=[];r&&a.push(r),i&&a.push(i);for(var s=0;s<n.subscribers[e][t].length;s++)n.subscribers[e][t][s].apply(o,a)}}},{"./":23}],22:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.hasOpener=void 0,r.hasOpener=function(e){return e.top===e&&null!=e.opener&&e.opener!==e&&!0!==e.opener.closed}},{}],23:[function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e("./attach"),r),i(e("./broadcast-to-child-windows"),r),i(e("./broadcast"),r),i(e("./constants"),r),i(e("./dispatch"),r),i(e("./has-opener"),r),i(e("./is-not-string"),r),i(e("./message"),r),i(e("./package-payload"),r),i(e("./send-message"),r),i(e("./subscribe-replier"),r),i(e("./subscription-args-invalid"),r),i(e("./types"),r),i(e("./unpack-payload"),r)},{"./attach":17,"./broadcast":19,"./broadcast-to-child-windows":18,"./constants":20,"./dispatch":21,"./has-opener":22,"./is-not-string":24,"./message":25,"./package-payload":26,"./send-message":27,"./subscribe-replier":28,"./subscription-args-invalid":29,"./types":30,"./unpack-payload":31}],24:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isntString=void 0,r.isntString=function(e){return"string"!=typeof e}},{}],25:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.onMessage=void 0;var n=e("./");r.onMessage=function(e){if(!(0,n.isntString)(e.data)){var t=(0,n.unpackPayload)(e);if(t){var r=t.eventData,i=t.reply;(0,n.dispatch)("*",t.event,r,i,e),(0,n.dispatch)(e.origin,t.event,r,i,e),(0,n.broadcastToChildWindows)(e.data,t.origin,e.source)}}}},{"./":23}],26:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.packagePayload=void 0;var n=e("./");r.packagePayload=function(e,t,r,i){var o,a={event:e,origin:t};"function"==typeof i&&(a.reply=(0,n.subscribeReplier)(i,t)),a.eventData=r;try{o=n.prefix+JSON.stringify(a)}catch(e){throw new Error("Could not stringify event: ".concat(e.message))}return o}},{"./":23}],27:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.sendMessage=void 0,r.sendMessage=function(e,t,r){try{e.postMessage(t,r)}catch(e){}}},{}],28:[function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.subscribeReplier=void 0;var i=e("../framebus"),o=n(e("@braintree/uuid"));r.subscribeReplier=function(e,t){var r=(0,o.default)();return i.Framebus.target({origin:t}).on(r,function n(o,a){e(o,a),i.Framebus.target({origin:t}).off(r,n)}),r}},{"../framebus":15,"@braintree/uuid":32}],29:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.subscriptionArgsInvalid=void 0;var n=e("./");r.subscriptionArgsInvalid=function(e,t,r){return!!(0,n.isntString)(e)||"function"!=typeof t||(0,n.isntString)(r)}},{"./":23}],30:[function(e,t,r){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0})},{}],31:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.unpackPayload=void 0;var n=e("./");r.unpackPayload=function(e){var t;if(e.data.slice(0,n.prefix.length)!==n.prefix)return!1;try{t=JSON.parse(e.data.slice(n.prefix.length))}catch(e){return!1}if(t.reply){var r=e.origin,i=e.source,o=t.reply;t.reply=function(e){if(i){var t=(0,n.packagePayload)(o,r,e);t&&i.postMessage(t,r)}}}return t}},{"./":23}],32:[function(e,t,r){"use strict";t.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}},{}],33:[function(e,t,r){"use strict";var n=e("./create-authorization-data"),i=e("./json-clone"),o=e("./constants");t.exports={addMetadata:function(e,t){var r,a=t?i(t):{},s=n(e.authorization).attrs,c=i(e.analyticsMetadata);for(r in a.braintreeLibraryVersion=o.BRAINTREE_LIBRARY_VERSION,a._meta)a._meta.hasOwnProperty(r)&&(c[r]=a._meta[r]);return a._meta=c,s.tokenizationKey?a.tokenizationKey=s.tokenizationKey:a.authorizationFingerprint=s.authorizationFingerprint,a},addEventMetadata:function(e){var t=e.getConfiguration(),r=n(t.authorization).attrs,i="production"===t.gatewayConfiguration.environment,a={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:o.VERSION,component:"braintreeclientsdk",merchant_sdk_env:i?"production":"sandbox",merchant_id:t.gatewayConfiguration.merchantId,event_source:"web",platform:o.PLATFORM,platform_version:window.navigator.userAgent,session_id:t.analyticsMetadata.sessionId,client_session_id:t.analyticsMetadata.sessionId,tenant_name:"braintree",product_name:"BT_DCC",space_key:"SKDUYK"};return r.tokenizationKey?a.tokenization_key=r.tokenizationKey:a.auth_fingerprint=r.authorizationFingerprint,a}}},{"./constants":39,"./create-authorization-data":43,"./json-clone":50}],34:[function(e,t,r){"use strict";var n=e("./constants"),i=e("./add-metadata"),o=e("./assign").assign;function a(e,t,r,a){var c=Date.now();return"vault"===r.flow?r.context_type="BA_Token":"checkout"===r.flow&&(r.context_type="EC_Token"),Promise.resolve(e).then(function(e){var u=e._request,d=n.ANALYTICS_URL,l=n.ANALYTICS_PREFIX+t,p="production"===e.getConfiguration().gatewayConfiguration.environment,f={events:[],tracking:[]},h=i.addEventMetadata(e,f);return h.event_name=l,h.t=c,f.events=[{level:"info",event:l,payload:o({env:p?"production":"sandbox",timestamp:c},r)}],f.tracking=[h],r&&"object"==typeof r&&(f.tracking=[s(h,r)]),u({url:d,method:"post",data:f,timeout:n.ANALYTICS_REQUEST_TIMEOUT_MS},a)}).catch(function(e){a&&a(e)})}function s(e,t){var r=o({},t);return Object.keys(r).forEach(function(e){-1===n.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)&&delete r[e]}),o(e,r)}t.exports={sendEvent:function(e,t,r){return a(e,t,{},r)},sendEventPlus:a}},{"./add-metadata":33,"./assign":36,"./constants":39}],35:[function(e,t,r){"use strict";var n=e("@braintree/asset-loader/load-script"),i=e("@paypal/fastlane-sdk-loader");t.exports={loadScript:n,loadFastlane:i.loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/fastlane-sdk-loader":14}],36:[function(e,t,r){"use strict";var n="function"==typeof Object.assign?Object.assign:i;function i(e){var t,r,n;for(t=1;t<arguments.length;t++)for(n in r=arguments[t])r.hasOwnProperty(n)&&(e[n]=r[n]);return e}t.exports={assign:n,_assign:i}},{}],37:[function(e,t,r){"use strict";var n=e("./braintree-error"),i=e("./errors"),o="3.143.0";t.exports={verify:function(e){var t,r,a;return e?(a=e.name,t=e.client,r=e.authorization,t||r?r||t.getVersion()===o?Promise.resolve():Promise.reject(new n({type:i.INCOMPATIBLE_VERSIONS.type,code:i.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+t.getVersion()+") and "+a+" (version "+o+") components must be from the same SDK version."})):Promise.reject(new n({type:i.INSTANTIATION_OPTION_REQUIRED.type,code:i.INSTANTIATION_OPTION_REQUIRED.code,message:"options.client is required when instantiating "+a+"."}))):Promise.reject(new n({type:i.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:i.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:"Options must be passed to basicComponentVerification function."}))}}},{"./braintree-error":38,"./errors":47}],38:[function(e,t,r){"use strict";var n=e("./enumerate");function i(e){if(!i.types.hasOwnProperty(e.type))throw new Error(e.type+" is not a valid type.");if(!e.code)throw new Error("Error code required.");
2if(!e.message)throw new Error("Error message required.");this.name="BraintreeError",this.code=e.code,this.message=e.message,this.type=e.type,this.details=e.details}i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i.types=n(["CUSTOMER","MERCHANT","NETWORK","INTERNAL","UNKNOWN"]),i.findRootError=function(e){return e instanceof i&&e.details&&e.details.originalError?i.findRootError(e.details.originalError):e},t.exports=i},{"./enumerate":46}],39:[function(e,t,r){"use strict";var n="3.143.0",i="web";t.exports={ANALYTICS_PREFIX:i+".",ANALYTICS_REQUEST_TIMEOUT_MS:2e3,ANALYTICS_URL:"https://www.paypal.com/xoplatform/logger/api/logger",ASSETS_URLS:{production:"https://assets.braintreegateway.com",sandbox:"https://assets.braintreegateway.com"},CLIENT_API_URLS:{production:"https://api.braintreegateway.com:443",sandbox:"https://api.sandbox.braintreegateway.com:443"},FRAUDNET_SOURCE:"BRAINTREE_SIGNIN",FRAUDNET_FNCLS:"fnparams-dede7cc5-15fd-4c75-a9f4-36c430ee3a99",FRAUDNET_URL:"https://c.paypal.com/da/r/fb.js",BUS_CONFIGURATION_REQUEST_EVENT:"BUS_CONFIGURATION_REQUEST",GRAPHQL_URLS:{production:"https://payments.braintree-api.com/graphql",sandbox:"https://payments.sandbox.braintree-api.com/graphql"},INTEGRATION_TIMEOUT_MS:6e4,VERSION:n,INTEGRATION:"custom",SOURCE:"client",PLATFORM:i,BRAINTREE_LIBRARY_VERSION:"braintree/web/"+n,ALLOWED_EXTRA_EVENT_FIELDS:["context_id","context_type","payment_ready_button_order","payment_ready_experiment_type","payment_ready_page_type","payment_ready_session_id","button_type","connect_start_time","domain","endpoint","end_time","request_start_time","start_time"]}},{}],40:[function(e,t,r){"use strict";var n=e("./braintree-error"),i=e("./errors");t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new n({type:i.METHOD_CALLED_AFTER_TEARDOWN.type,code:i.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+" cannot be called after teardown."})}})}},{"./braintree-error":38,"./errors":47}],41:[function(e,t,r){"use strict";var n=e("./braintree-error");t.exports=function(e,t){return e instanceof n?e:new n({type:t.type,code:t.code,message:t.message,details:{originalError:e}})}},{"./braintree-error":38}],42:[function(e,t,r){"use strict";var n=e("./constants").ASSETS_URLS;t.exports={create:function(e){return n.production}}},{"./constants":39}],43:[function(e,t,r){"use strict";var n=e("../lib/vendor/polyfill").atob,i=e("../lib/constants").CLIENT_API_URLS;t.exports=function(e){var t,r,o,a,s={attrs:{},configUrl:""};return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)?(o=e.split("_"),a=o[0],r={merchantId:o.slice(2).join("_"),environment:a},s.environment=r.environment,s.attrs.tokenizationKey=e,s.configUrl=i[r.environment]+"/merchants/"+r.merchantId+"/client_api/v1/configuration"):(t=JSON.parse(n(e)),s.environment=t.environment,s.attrs.authorizationFingerprint=t.authorizationFingerprint,s.configUrl=t.configUrl,s.graphQL=t.graphQL),s}},{"../lib/constants":39,"../lib/vendor/polyfill":53}],44:[function(e,t,r){"use strict";var n=e("./braintree-error"),i=e("./assets"),o=e("./errors"),a="3.143.0";t.exports={create:function(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=i.loadScript({src:e.assetsUrl+"/web/"+a+"/js/client.min.js"}).catch(function(e){return Promise.reject(new n({type:o.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:o.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:o.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))})),t.then(function(){return window.braintree.client.VERSION!==a?Promise.reject(new n({type:o.INCOMPATIBLE_VERSIONS.type,code:o.INCOMPATIBLE_VERSIONS.code,message:"Client (version "+window.braintree.client.VERSION+") and "+e.name+" (version "+a+") components must be from the same SDK version."})):window.braintree.client.create({authorization:e.authorization,debug:e.debug})}))}}},{"./assets":35,"./braintree-error":38,"./errors":47}],45:[function(e,t,r){"use strict";t.exports=function(e){return function(){var t=arguments;setTimeout(function(){e.apply(null,t)},1)}}},{}],46:[function(e,t,r){"use strict";
2t.exports=function(e,t){return t=null==t?"":t,e.reduce(function(e,r){return e[r]=t+r,e},{})}},{}],47:[function(e,t,r){"use strict";var n=e("./braintree-error");t.exports={INVALID_USE_OF_INTERNAL_FUNCTION:{type:n.types.INTERNAL,code:"INVALID_USE_OF_INTERNAL_FUNCTION"},INSTANTIATION_OPTION_REQUIRED:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_REQUIRED"},INCOMPATIBLE_VERSIONS:{type:n.types.MERCHANT,code:"INCOMPATIBLE_VERSIONS"},CLIENT_SCRIPT_FAILED_TO_LOAD:{type:n.types.NETWORK,code:"CLIENT_SCRIPT_FAILED_TO_LOAD",message:"Braintree client script could not be loaded."},METHOD_CALLED_AFTER_TEARDOWN:{type:n.types.MERCHANT,code:"METHOD_CALLED_AFTER_TEARDOWN"},INSTANTIATION_OPTION_INVALID:{type:n.types.MERCHANT,code:"INSTANTIATION_OPTION_INVALID"}}},{"./braintree-error":38}],48:[function(e,t,r){"use strict";t.exports={isHTTPS:function(e){return"https:"===(e||window.location.protocol)}}},{}],49:[function(e,t,r){"use strict";var n,i={"paypal.com":1,"braintreepayments.com":1,"braintreegateway.com":1,"braintree-api.com":1};t.exports=function(e){var t;return e=e.toLowerCase(),!!/^https:/.test(e)&&((n=n||document.createElement("a")).href=e,t=n.hostname.split(".").slice(-2).join("."),i.hasOwnProperty(t))}},{}],50:[function(e,t,r){"use strict";t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],51:[function(e,t,r){"use strict";t.exports=function(e){return Object.keys(e).filter(function(t){return"function"==typeof e[t]})}},{}],52:[function(e,t,r){"use strict";t.exports=function(e){return e?"":".min"}},{}],53:[function(e,t,r){"use strict";var n="function"==typeof atob?atob:i;function i(e){var t,r,n,i,o,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="";if(!/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})([=]{1,2})?$/.test(e))throw new Error("Non base64 encoded input passed to window.atob polyfill");a=0;do{t=(63&s.indexOf(e.charAt(a++)))<<2|(i=s.indexOf(e.charAt(a++)))>>4&3,r=(15&i)<<4|(o=s.indexOf(e.charAt(a++)))>>2&15,n=(3&o)<<6|63&s.indexOf(e.charAt(a++)),c+=String.fromCharCode(t)+(r?String.fromCharCode(r):"")+(n?String.fromCharCode(n):"")}while(a<e.length);return c}t.exports={atob:function(e){return n.call(window,e)},_atob:i}},{}],54:[function(e,t,r){"use strict";var n=e("../../../lib/assign").assign,i=e("../../../lib/analytics"),o=e("../../../lib/braintree-error"),a=e("../../../lib/is-verified-domain"),s=e("@braintree/extended-promise"),c=e("@braintree/event-emitter"),u=e("../../shared/errors"),d=e("@braintree/iframer"),l=e("framebus"),p=e("../../shared/constants"),f=e("@braintree/uuid"),h=e("../../shared/events"),_=e("../../../lib/use-min"),m=e("../../../lib/constants").BUS_CONFIGURATION_REQUEST_EVENT,E="3.143.0";function y(e){c.call(this),this._client=e.client,this._createPromise=e.createPromise,this._createOptions=e,this._client?(this._isDebug=this._client.getConfiguration().isDebug,this._assetsUrl=this._client.getConfiguration().gatewayConfiguration.assetsUrl):(this._isDebug=Boolean(e.isDebug),this._assetsUrl=e.assetsUrl),this._assetsUrl=this._assetsUrl+"/web/"+E}s.suppressUnhandledPromiseMessage=!0,c.createChild(y),y.prototype._waitForClient=function(){return this._client?Promise.resolve():this._createPromise.then(function(e){this._client=e}.bind(this))},y.prototype.setUpEventListeners=function(){throw new o(u.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},y.prototype.verifyCard=function(e,t){var r,n,o=this;return t=t||{},(n=this._checkForVerifyCardError(e,t))?Promise.reject(n):(this._verifyCardInProgress=!0,r=this._formatVerifyCardOptions(e),this._formatLookupData(r).then(function(e){return i.sendEvent(o._createPromise,"three-d-secure.verification-flow.started"),o._performLookup(r.nonce,e)}).then(function(e){return i.sendEvent(o._createPromise,"three-d-secure.verification-flow.3ds-version."+e.lookup.threeDSecureVersion),o._onLookupComplete(e,r)}).then(function(e){return o.initializeChallengeWithLookupResponse(e,r)}).then(function(e){return o._resetVerificationState(),i.sendEvent(o._createPromise,"three-d-secure.verification-flow.completed"),e}).catch(function(e){return o._resetVerificationState(),i.sendEvent(o._createPromise,"three-d-secure.verification-flow.failed"),Promise.reject(e)}))},y.prototype._checkForFrameworkSpecificVerifyCardErrors=function(){throw new o(u.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENT
2ED)},y.prototype._presentChallenge=function(){throw new o(u.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},y.prototype.prepareLookup=function(){throw new o(u.THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED)},y.prototype._resetVerificationState=function(){this._verifyCardInProgress=!1,this._verifyCardPromisePlus=null,"function"==typeof this._reloadThreeDSecure&&this._reloadThreeDSecure()},y.prototype._performLookup=function(e,t){var r=this,n="payment_methods/"+e+"/three_d_secure/lookup";return this._waitForClient().then(function(){return r._client.request({endpoint:n,method:"post",data:t}).catch(function(e){var t,n=e&&e.details&&e.details.httpStatus,a="three-d-secure.verification-flow.lookup-failed";return 404===n?(t=u.THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR,a+=".404"):422===n?(t=u.THREEDS_LOOKUP_VALIDATION_ERROR,a+=".422"):t=u.THREEDS_LOOKUP_ERROR,i.sendEvent(r._createPromise,a),Promise.reject(new o({type:t.type,code:t.code,message:t.message,details:{originalError:e}}))})})},y.prototype._existsAndIsNumeric=function(e){return!(null==e||Array.isArray(e)||"boolean"==typeof e||"string"==typeof e&&""===e.trim()||isNaN(Number(e)))},y.prototype._checkForVerifyCardError=function(e,t){var r;return!0===this._verifyCardInProgress?new o(u.THREEDS_AUTHENTICATION_IN_PROGRESS):(e.nonce?this._existsAndIsNumeric(e.amount)||(r="an amount"):r="a nonce",r||(r=this._checkForFrameworkSpecificVerifyCardErrors(e,t)),r?new o({type:u.THREEDS_MISSING_VERIFY_CARD_OPTION.type,code:u.THREEDS_MISSING_VERIFY_CARD_OPTION.code,message:"verifyCard options must include "+r+"."}):null)},y.prototype.initializeChallengeWithLookupResponse=function(e,t){var r=this;return t=t||{},this._lookupPaymentMethod=e.paymentMethod,r._verifyCardPromisePlus=r._verifyCardPromisePlus||new s,r._handleLookupResponse(e,t),r._verifyCardPromisePlus.then(function(e){return i.sendEvent(r._createPromise,"three-d-secure.verification-flow.liability-shifted."+String(e.liabilityShifted)),i.sendEvent(r._createPromise,"three-d-secure.verification-flow.liability-shift-possible."+String(e.liabilityShiftPossible)),e})},y.prototype._handleLookupResponse=function(e,t){var r,n=Boolean(e.lookup&&e.lookup.acsUrl);i.sendEvent(this._createPromise,"three-d-secure.verification-flow.challenge-presented."+String(n)),n?this._presentChallenge(e,t):((r=this._formatAuthResponse(e.paymentMethod,e.threeDSecureInfo)).verificationDetails=e.threeDSecureInfo,this._verifyCardPromisePlus.resolve(r))},y.prototype._onLookupComplete=function(e){return this._lookupPaymentMethod=e.paymentMethod,this._verifyCardPromisePlus=new s,Promise.resolve(e)},y.prototype._formatAuthResponse=function(e,t){return{nonce:e.nonce,type:e.type,binData:e.binData,details:e.details,description:e.description&&e.description.replace(/\+/g," "),liabilityShifted:t&&t.liabilityShifted,liabilityShiftPossible:t&&t.liabilityShiftPossible,threeDSecureInfo:e.threeDSecureInfo}},y.prototype._formatVerifyCardOptions=function(e){return n({},e)},y.prototype._formatLookupData=function(e){var t={amount:e.amount};return!0===e.collectDeviceData&&(t.browserColorDepth=window.screen.colorDepth,t.browserJavaEnabled=window.navigator.javaEnabled(),t.browserJavascriptEnabled=!0,t.browserLanguage=window.navigator.language,t.browserScreenHeight=window.screen.height,t.browserScreenWidth=window.screen.width,t.browserTimeZone=(new Date).getTimezoneOffset(),t.deviceChannel="Browser"),Promise.resolve(t)},y.prototype._handleV1AuthResponse=function(e){var t=JSON.parse(e.auth_response);t.success?this._verifyCardPromisePlus.resolve(this._formatAuthResponse(t.paymentMethod,t.threeDSecureInfo)):t.threeDSecureInfo&&t.threeDSecureInfo.liabilityShiftPossible?this._verifyCardPromisePlus.resolve(this._formatAuthResponse(this._lookupPaymentMethod,t.threeDSecureInfo)):this._verifyCardPromisePlus.reject(new o({type:o.types.UNKNOWN,code:"UNKNOWN_AUTH_RESPONSE",message:t.error.message}))},y.prototype.cancelVerifyCard=function(){var e,t;return this._verifyCardInProgress=!1,this._lookupPaymentMethod?(t=this._lookupPaymentMethod.threeDSecureInfo,e=n({},this._lookupPaymentMethod,{liabilityShiftPossible:t&&t.liabilityShiftPossible,liabilityShifted:t&&t.liabilityShifted,verificationDetail
2s:t&&t.verificationDetails}),Promise.resolve(e)):Promise.reject(new o(u.THREEDS_NO_VERIFICATION_PAYLOAD))},y.prototype._setupV1Bus=function(e){var t=this._client.getConfiguration(),r=window.location.href.split("#")[0],n=e.lookupResponse,i=f(),o=new l({channel:i,verifyDomain:a}),s=this._assetsUrl+"/html/three-d-secure-authentication-complete-frame.html?channel="+encodeURIComponent(i)+"&";return o.on(m,function(i){i({clientConfiguration:t,nonce:e.nonce,acsUrl:n.acsUrl,pareq:n.pareq,termUrl:n.termUrl+"&three_d_secure_version="+E+"&authentication_complete_base_url="+encodeURIComponent(s),md:n.md,parentUrl:r})}),o.on(h.AUTHENTICATION_COMPLETE,e.handleAuthResponse),o},y.prototype._setupV1Iframe=function(e){var t=this._assetsUrl+"/html/three-d-secure-bank-frame"+_(this._isDebug)+".html?showLoader="+e.showLoader;return d({src:t,height:400,width:400,name:p.LANDING_FRAME_NAME+"_"+this._v1Bus.channel,title:"3D Secure Authorization Frame"})},y.prototype._setupV1Elements=function(e){this._v1Bus=this._setupV1Bus(e),this._v1Iframe=this._setupV1Iframe(e)},y.prototype._teardownV1Elements=function(){this._v1Bus&&(this._v1Bus.teardown(),this._v1Bus=null),this._v1Iframe&&this._v1Iframe.parentNode&&(this._v1Iframe.parentNode.removeChild(this._v1Iframe),this._v1Iframe=null),this._onV1Keyup&&(document.removeEventListener("keyup",this._onV1Keyup),this._onV1Keyup=null)},y.prototype.teardown=function(){return i.sendEvent(this._createPromise,"three-d-secure.teardown-completed"),this._teardownV1Elements(),Promise.resolve()},t.exports=y},{"../../../lib/analytics":34,"../../../lib/assign":36,"../../../lib/braintree-error":38,"../../../lib/constants":39,"../../../lib/is-verified-domain":49,"../../../lib/use-min":52,"../../shared/constants":62,"../../shared/errors":63,"../../shared/events":64,"@braintree/event-emitter":3,"@braintree/extended-promise":4,"@braintree/iframer":5,"@braintree/uuid":9,framebus:16}],55:[function(e,t,r){"use strict";var n=e("./songbird");function i(e){n.call(this,e)}i.prototype=Object.create(n.prototype,{constructor:n}),i.prototype._createV1IframeModalElement=function(e){var t=document.createElement("div");return t.innerHTML='<div class="modal fade in" tabindex="-1" role="dialog" aria-labelledby="CCAFrameModal-label" aria-hidden="true" style="display: block;"><div class="modal-dialog" style="width:440px;z-index:999999;"><div class="modal-content"><div class="modal-body" data-braintree-v1-fallback-iframe-container><button type="button" data-braintree-v1-fallback-close-button class="close" data-dismiss="modal" aria-hidden="true">Ã</button></div></div></div><div data-braintree-v1-fallback-backdrop style="position: fixed;cursor: pointer;z-index: 999998;top: 0;left: 0;width: 100%;height: 100%;"></div></div>',t.querySelector("[data-braintree-v1-fallback-iframe-container]").appendChild(e),t},i.prototype._createCardinalConfigurationOptions=function(e){var t=n.prototype._createCardinalConfigurationOptions.call(this,e);return t.payment.framework="bootstrap3",t},t.exports=i},{"./songbird":59}],56:[function(e,t,r){"use strict";var n=e("./songbird");function i(e){n.call(this,e)}i.prototype=Object.create(n.prototype,{constructor:n}),i.prototype._createV1IframeModalElement=function(e){var t=document.createElement("div"),r=Boolean(this._createOptions&&this._createOptions.cardinalSDKConfig&&this._createOptions.cardinalSDKConfig.payment&&this._createOptions.cardinalSDKConfig.payment.displayExitButton);return t.innerHTML='<div style="position: fixed;z-index: 999999;top: 50%;left: 50%;padding: 24px 20px;transform: translate(-50%,-50%);border-radius: 2px;background: #fff;max-width: 100%;overflow: auto;"><div><button data-braintree-v1-fallback-close-button style="font-family: Helvetica,Arial,sans-serif;font-size: 25px;line-height: 12px;position: absolute;top: 2px;right: 0px;cursor: pointer;color: #999;border: 0;outline: none;background: none;" onMouseOver="this.style.color=\'#000\'" onMouseOut="this.style.color=\'#999\'">Ã</button></div><div data-braintree-v1-fallback-iframe-container style="height: 400px;"></div></div><div data-braintree-v1-fallback-backdrop style="position: fixed;z-index: 999998;cursor: pointer;top: 0;left: 0;width: 100%;height: 100%;transition: opacity 1ms ease;background: rgba(0,0,0,.6);"></div>',r||(t.querySelector("[data-braintree-v1-fallback-close-button]").style.display="none"),t.querySelector("[data-braintree-v1-fallback-iframe-container]").appendChild(e),t}
2,t.exports=i},{"./songbird":59}],57:[function(e,t,r){"use strict";var n=e("./cardinal-modal"),i=e("./bootstrap3-modal"),o=e("./inline-iframe");t.exports={"cardinal-modal":n,"bootstrap3-modal":i,"inline-iframe":o}},{"./bootstrap3-modal":55,"./cardinal-modal":56,"./inline-iframe":58}],58:[function(e,t,r){"use strict";var n=e("./songbird"),i=e("../../../lib/braintree-error"),o=e("../../shared/errors"),a=e("../../../lib/enumerate");function s(e){n.call(this,e)}s.prototype=Object.create(n.prototype,{constructor:n}),s.events=a(["AUTHENTICATION_IFRAME_AVAILABLE"],"inline-iframe-framework:"),s.prototype.setUpEventListeners=function(e){n.prototype.setUpEventListeners.call(this,e),this.on(s.events.AUTHENTICATION_IFRAME_AVAILABLE,function(t,r){e("authentication-iframe-available",t,r)})},s.prototype._createCardinalConfigurationOptions=function(e){var t=n.prototype._createCardinalConfigurationOptions.call(this,e);return t.payment.framework="inline",t},s.prototype._addV1IframeToPage=function(){this._emit(s.events.AUTHENTICATION_IFRAME_AVAILABLE,{element:this._v1Modal},function(){})},s.prototype._setupFrameworkSpecificListeners=function(){this.setCardinalListener("ui.inline.setup",this._onInlineSetup.bind(this))},s.prototype._onInlineSetup=function(e,t,r,n){var a,c;e&&t?("CCA"!==t.paymentType||"suppress"!==t.data.mode&&"static"!==t.data.mode)&&(c=!0):c=!0,c?n(new i(o.THREEDS_INLINE_IFRAME_DETAILS_INCORRECT)):((a=document.createElement("div")).innerHTML=e,"suppress"===t.data.mode?(a.style.display="none",document.body.appendChild(a),r()):"static"===t.data.mode&&this._emit(s.events.AUTHENTICATION_IFRAME_AVAILABLE,{element:a},function(){r()}))},t.exports=s},{"../../../lib/braintree-error":38,"../../../lib/enumerate":46,"../../shared/errors":63,"./songbird":59}],59:[function(e,t,r){"use strict";var n=e("./base"),i=e("../../../lib/assign").assign,o=e("../../../lib/deferred"),a=e("../../../lib/braintree-error"),s=e("../../../lib/convert-to-braintree-error"),c=e("../../../lib/analytics"),u=e("../../../lib/assets"),d=e("../../shared/errors"),l=e("../../../lib/enumerate"),p=e("@braintree/extended-promise"),f=e("../../../lib/constants").INTEGRATION_TIMEOUT_MS,h=e("../../../lib/constants").PLATFORM,_="3.143.0",m=["ui.close","ui.render","ui.renderHidden","ui.loading.close","ui.loading.render"],E=["low_value","transaction_risk_analysis"];function y(e){n.call(this,e),this._songbirdInitFailed=!1,this._clientMetadata={requestedThreeDSecureVersion:"2",sdkVersion:h+"/"+_},this.originalSetupOptions=e,this._getDfReferenceIdPromisePlus=new p,this.setupSongbird(e),this._cardinalEvents=[]}function v(e,t,r){t[r+"Line1"]=e.streetAddress,t[r+"Line2"]=e.extendedAddress,t[r+"Line3"]=e.line3,t[r+"City"]=e.locality,t[r+"State"]=e.region,t[r+"PostalCode"]=e.postalCode,t[r+"CountryCode"]=e.countryCodeAlpha2}p.suppressUnhandledPromiseMessage=!0,y.prototype=Object.create(n.prototype,{constructor:y}),y.events=l(["LOOKUP_COMPLETE","CUSTOMER_CANCELED","UI.CLOSE","UI.RENDER","UI.RENDERHIDDEN","UI.LOADING.CLOSE","UI.LOADING.RENDER"],"songbird-framework:"),y.prototype.setUpEventListeners=function(e){this.on(y.events.LOOKUP_COMPLETE,function(t,r){e("lookup-complete",t,r)}),this.on(y.events.CUSTOMER_CANCELED,function(){e("customer-canceled")}),this.on(y.events["UI.CLOSE"],function(){e("authentication-modal-close")}),this.on(y.events["UI.RENDER"],function(){e("authentication-modal-render")}),this.on(y.events["UI.RENDERHIDDEN"],function(){e("authentication-modal-render-hidden")}),this.on(y.events["UI.LOADING.CLOSE"],function(){e("authentication-modal-loader-close")}),this.on(y.events["UI.LOADING.RENDER"],function(){e("authentication-modal-loader-render")})},y.prototype.prepareLookup=function(e){var t=i({},e),r=this;return this.getDfReferenceId().then(function(e){t.dfReferenceId=e}).then(function(){return r._triggerCardinalBinProcess(e.bin)}).catch(function(){}).then(function(){return r._waitForClient()}).then(function(){return t.clientMetadata=r._clientMetadata,t.authorizationFingerprint=r._client.getConfiguration().authorizationFingerprint,t.braintreeLibraryVersion="braintree/web/"+_,t})},y.prototype.initializeChallengeWithLookupResponse=function(e,t){return this.setupSongbird().then(function(){return n.prototype.initializeChallengeWithLookupResponse.call(this,e,t)}.bind(this))},y.prototype.handleSongbirdError=function(e){this._songbirdInitFailed=!0,this._removeSongbirdListeners(),c.sendEvent(this._createPromise,"three-d-secure.cardinal-sdk.songbird-error."+e),this._songbirdPromise&&this._songbirdPromise.resolve()},y.prototype._triggerCardinalBinProcess=function(e){var t=this,r=Date.now();return window.Cardinal.trigger("bin.process",e).then(function(e){t._clientMetadata.issuerDeviceDataCollectionTimeElapsed=Date.now()-r,t._clientMetadata.issuerDeviceDataCollectionResult=e&&e.Status})},y.prototype.transformBillingAddress=function(e,t){return t&&(v(t,e,"billing"),e.billingPhoneNumber=t.phoneNumber,e.billingGivenName=t.givenName,e.billingSurname=t.surname),e},y.prototype.transformShippingAddress=function(e){var t=e.shippingAddress;return t&&(v(t,e,"shipping"),delete e.shippingAddress),e},y.prototype._createV1IframeModalElement=function(e){var t=document.createElement("div");return t.innerHTML='<div data-braintree-v1-fallback-iframe-container="true" style="height: 400px;"></div>',t.querySelector('[data-braintree-v1-fallback-iframe-container="true"]').appendChild(e),t},y.prototype._createV1IframeModal=function(e){var t=this._createV1IframeModalElement(e),r=t.querySelector("[data-braintree-v1-fallback-close-button]"),n=t.querySelector("[data-braintree-v1-fallback-backdrop]"),i=this;function o(){t.parentNode.removeChild(t),i.cancelVerifyCard(d.THREEDS_CARDINAL_SDK_CANCELED),document.removeEventListener("keyup",i._onV1Keyup),i._onV1Keyup=null}return this._onV1Keyup=function(e){"Escape"===e.key&&t.parentNode&&o()},r&&r.addEventListener("click",o),n&&n.addEventListener("click",o),document.addEventListener("keyup",this._onV1Keyup),t},y.prototype._addV1IframeToPage=function(){document.body.appendChild(this._v1Modal)},y.prototype.setupSongbird=function(e){var t=this,r=Date.now();return this._songbirdPromise||(e=e||{},this._songbirdPromise=new p,this._v2SetupFailureReason="reason-unknown",t._loadCardinalScript(e).then(function(){return window.Cardinal?t._configureCardinalSdk({setupOptions:e,setupStartTime:r}):(t._v2SetupFailureReason="cardinal-global-unavailable",Promise.reject(new a(d.THREEDS_CARDINAL_SDK_SETUP_FAILED)))}).catch(function(e){var r=s(e,{type:d.THREEDS_CARDINAL_SDK_SETUP_FAILED.type,code:d.THREEDS_CARDINAL_SDK_SETUP_FAILED.code,message:d.THREEDS_CARDINAL_SDK_SETUP_FAILED.message});t._getDfReferenceIdPromisePlus.reject(r),window.clearTimeout(t._songbirdSetupTimeoutReference),c.sendEvent(t._client,"three-d-secure.cardinal-sdk.init.setup-failed"),t.handleSongbirdError("cardinal-sdk-setup-failed."+t._v2SetupFailureReason)})),this._songbirdPromise},y.prototype._configureCardinalSdk=function(e){var t=this;return this._waitForClient().then(function(){return t._client.getConfiguration().gatewayConfiguration.threeDSecure}).then(function(r){var n=r.cardinalAuthenticationJWT,i=e.setupOptions,o=e.setupStartTime,a=t._createCardinalConfigurationOptions(i);m.forEach(function(e){t.setCardinalListener(e,function(){t._emit
2(y.events[e.toUpperCase()])})}),t.setCardinalListener("payments.setupComplete",t._createPaymentsSetupCompleteCallback()),t._setupFrameworkSpecificListeners(),window.Cardinal.configure(a),window.Cardinal.setup("init",{jwt:n}),t._clientMetadata.cardinalDeviceDataCollectionTimeElapsed=Date.now()-o,t.setCardinalListener("payments.validated",t._createPaymentsValidatedCallback())}).catch(function(e){return t._v2SetupFailureReason="cardinal-configuration-threw-error",Promise.reject(e)})},y.prototype.setCardinalListener=function(e,t){this._cardinalEvents.push(e),window.Cardinal.on(e,t)},y.prototype._setupFrameworkSpecificListeners=function(){},y.prototype._createCardinalConfigurationOptions=function(e){var t=e.cardinalSDKConfig||{},r=t.payment||{};return!t.logging&&e.loggingEnabled&&(t.logging={level:"verbose"}),t.payment={},r.hasOwnProperty("displayLoading")&&(t.payment.displayLoading=r.displayLoading),r.hasOwnProperty("displayExitButton")&&(t.payment.displayExitButton=r.displayExitButton),t},y.prototype._loadCardinalScript=function(e){var t,r=this,n={};return this._waitForClient().then(function(){return n.src=r._client.getConfiguration().gatewayConfiguration.threeDSecure.cardinalSongbirdUrl,(t=r._client.getConfiguration().gatewayConfiguration.threeDSecure.cardinalSongbirdIdentityHash)&&(n.crossorigin="anonymous",n.integrity=t),r._songbirdSetupTimeoutReference=window.setTimeout(function(){c.sendEvent(r._client,"three-d-secure.cardinal-sdk.init.setup-timeout"),r.handleSongbirdError("cardinal-sdk-setup-timeout")},e.timeout||f),u.loadScript(n)}).catch(function(e){return r._v2SetupFailureReason="songbird-js-failed-to-load",Promise.reject(s(e,d.THREEDS_CARDINAL_SDK_SCRIPT_LOAD_FAILED))})},y.prototype._createPaymentsSetupCompleteCallback=function(){var e=this;return function(t){e._getDfReferenceIdPromisePlus.resolve(t.sessionId),window.clearTimeout(e._songbirdSetupTimeoutReference),c.sendEvent(e._createPromise,"three-d-secure.cardinal-sdk.init.setup-completed"),e._songbirdPromise.resolve()}},y.prototype.getDfReferenceId=function(){return this._getDfReferenceIdPromisePlus},y.prototype._performJWTValidation=function(e,t){var r=this,n=this._lookupPaymentMethod.nonce,i="payment_methods/"+n+"/three_d_secure/authenticate_from_jwt",o=e&&e.Payment&&e.Payment.ExtendedData&&e.Payment.ExtendedData.ChallengeCancel;return o&&(c.sendEvent(this._createPromise,"three-d-secure.verification-flow.cardinal-sdk.cancel-code."+o),"01"===o&&this._emit(y.events.CUSTOMER_CANCELED)),c.sendEvent(this._createPromise,"three-d-secure.verification-flow.upgrade-payment-method.started"),this._waitForClient().then(function(){return r._client.request({method:"post",endpoint:i,data:{jwt:t,paymentMethodNonce:n}})}).then(function(t){var n=t.paymentMethod||r._lookupPaymentMethod,i=r._formatAuthResponse(n,t.threeDSecureInfo);return i.rawCardinalSDKVerificationData=e,c.sendEvent(r._client,"three-d-secure.verification-flow.upgrade-payment-method.succeeded"),Promise.resolve(i)}).catch(function(e){var t=new a({type:d.THREEDS_JWT_AUTHENTICATION_FAILED.type,code:d.THREEDS_JWT_AUTHENTICATION_FAILED.code,message:d.THREEDS_JWT_AUTHENTICATION_FAILED.message,details:{originalError:e}});return c.sendEvent(r._client,"three-d-secure.verification-flow.upgrade-payment-method.errored"),Promise.reject(t)})},y.prototype._createPaymentsValidatedCallback=function(){var e=this;return function(t,r){var n;if(c.sendEvent(e._createPromise,"three-d-secure.verification-flow.cardinal-sdk.action-code."+t.ActionCode.toLowerCase()),e._verifyCardPromisePlus)switch(t.ActionCode){case"SUCCESS":case"NOACTION":case"FAILURE":e._performJWTValidation(t,r).then(function(t){e._verifyCardPromisePlus.resolve(t)}).catch(function(t){e._verifyCardPromisePlus.reject(t)});break;case"ERROR":switch(c.sendEvent(e._createPromise,"three-d-secure.verification-flow.cardinal-sdk-error."+t.ErrorNumber),t.ErrorNumber){case 10001:case 10002:n=new a(d.THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT);break;case 10003:case 10007:case 10009:n=new a(d.THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT);break;case 10005:case 10006:n=new a(d.THREEDS_CARDINAL_SDK_BAD_CONFIG);break;
2case 10008:case 10010:n=new a(d.THREEDS_CARDINAL_SDK_BAD_JWT);break;case 10011:c.sendEvent(e._createPromise,"three-d-secure.verification-flow.canceled"),n=new a(d.THREEDS_CARDINAL_SDK_CANCELED);break;default:n=new a(d.THREEDS_CARDINAL_SDK_ERROR)}n.details={originalError:{code:t.ErrorNumber,description:t.ErrorDescription}},e._verifyCardPromisePlus.reject(n)}else e.handleSongbirdError("cardinal-sdk-setup-error.number-"+t.ErrorNumber)}},y.prototype._checkForVerifyCardError=function(e,t){return e.bin?n.prototype._checkForVerifyCardError.call(this,e,t):new a({type:d.THREEDS_MISSING_VERIFY_CARD_OPTION.type,code:d.THREEDS_MISSING_VERIFY_CARD_OPTION.code,message:"verifyCard options must include a BIN."})},y.prototype._checkForFrameworkSpecificVerifyCardErrors=function(e,t){var r;return"function"==typeof e.onLookupComplete||t.ignoreOnLookupCompleteRequirement||(r="an onLookupComplete function"),r},y.prototype._formatVerifyCardOptions=function(e){var t=n.prototype._formatVerifyCardOptions.call(this,e),r=t.additionalInformation||{};return r=this.transformBillingAddress(r,e.billingAddress),r=this.transformShippingAddress(r),e.onLookupComplete&&(t.onLookupComplete=o(e.onLookupComplete)),e.email&&(r.email=e.email),e.mobilePhoneNumber&&(r.mobilePhoneNumber=e.mobilePhoneNumber),t.additionalInformation=r,t},y.prototype._onLookupComplete=function(e,t){var r=this;return n.prototype._onLookupComplete.call(this,e).then(function(e){return new Promise(function(n,i){function o(){n(e)}e.requiresUserAuthentication=Boolean(e.lookup&&e.lookup.acsUrl),r._verifyCardPromisePlus.catch(i),t.onLookupComplete?t.onLookupComplete(e,o):r._emit(y.events.LOOKUP_COMPLETE,e,o)})})},y.prototype._presentChallenge=function(e){!this._songbirdInitFailed&&e.lookup.transactionId&&window.Cardinal.continue("cca",{AcsUrl:e.lookup.acsUrl,Payload:e.lookup.pareq},{OrderDetails:{TransactionId:e.lookup.transactionId}})},y.prototype._formatLookupData=function(e){var t=this;return n.prototype._formatLookupData.call(this,e).then(function(r){if(r.additionalInfo=e.additionalInformation,e.accountType&&(r.accountType=e.accountType),e.challengeRequested&&(r.challengeRequested=e.challengeRequested),e.requestedExemptionType){if(!E.includes(e.requestedExemptionType))throw new a({code:d.THREEDS_REQUESTED_EXEMPTION_TYPE_INVALID.code,type:d.THREEDS_REQUESTED_EXEMPTION_TYPE_INVALID.type,message:"requestedExemptionType `"+e.requestedExemptionType+"` is not a valid exemption. The accepted values are: `"+E.join("`, `")+"`"});r.requestedExemptionType=e.requestedExemptionType}return e.customFields&&(r.customFields=e.customFields),e.dataOnlyRequested&&(r.dataOnlyRequested=e.dataOnlyRequested),e.exemptionRequested&&(r.exemptionRequested=e.exemptionRequested),e.requestVisaDAF&&(r.requestVisaDAF=e.requestVisaDAF),e.bin&&(r.bin=e.bin),null!=e.cardAdd&&(r.cardAdd=e.cardAdd),null!=e.cardAddChallengeRequested&&(r.cardAdd=e.cardAddChallengeRequested),e.merchantName&&(r.merchantName=e.merchantName),e.applySmartAuthentication&&(r.applySmartAuthentication=e.applySmartAuthentication),t.prepareLookup(r)})},y.prototype.cancelVerifyCard=function(e){var t=this;return n.prototype.cancelVerifyCard.call(this).then(function(r){return t._verifyCardPromisePlus&&(e=e||new a(d.THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT),t._verifyCardPromisePlus.reject(e)),r})},y.prototype._removeSongbirdListeners=function(){this._cardinalEvents.forEach(function(e){window.Cardinal.off(e)}),this._cardinalEvents=[]},y.prototype.teardown=function(){return window.Cardinal&&this._removeSongbirdListeners(),n.prototype.teardown.call(this)},y.prototype._reloadThreeDSecure=function(){var e=this,t=Date.now();return e.teardown().then(function(){e._configureCardinalSdk({setupOptions:e.originalSetupOptions,setupStartTime:t})})},t.exports=y},{"../../../lib/analytics":34,"../../../lib/assets":35,"../../../lib/assign":36,"../../../lib/braintree-error":38,"../../../lib/constants":39,"../../../lib/convert-to-braintree-error":41,"../../../lib/deferred":45,"../../../lib/enumerate":46,"../../shared/errors":63,"./base":54,"@braintree/extended-promise":4}],60:[function(e,t,r){"use strict";var n=e("@braintree/wrap-promise"),i=e("../../lib/methods"),o=e("../../lib/convert-methods-to-error"),a=e("@braintree/event-emitter"),s=e("./frameworks");function c(e){var t=this,r=s[e.framework];a.call(this),this._framework=new r(e),this._framework.setUpEventListeners(function(){t._emit.apply(t,arguments)})}a.createChild(c),c.prototype.verifyCard=function(e){var t;return this.hasListener("lookup-complete")&&(t={ignoreOnLookupCompleteRequirement:!0}),this._framework.verifyCard(e,t)},c.prototype.initializeChallengeWithLookupResponse=function(e){return"string"==typeof e&&(e=JSON.parse(e)),this._framework.initializeChallengeWithLookupResponse(e)},c.prototype.prepareLookup=function(e){return this._framework.prepareLookup(e).then(function(e){return JSON.stringify(e)})},c.prototype.cancelVerifyCard=function(){return this._framework.cancelVerifyCard()},c.prototype.teardown=function(){var e=i(c.prototype).concat(i(a.prototype));return o(this,e),this._framework.teardown()},t.exports=n.wrapPrototype(c)},{"../../lib/convert-methods-to-error":40,"../../lib/methods":51,"./frameworks":57,"@braintree/event-emitter":3,"@braintree/wrap-promise":13}],61:[function(e,t,r){"use strict";var n=e("./external/three-d-secure"),i=e("../lib/is-https").isHTTPS,o=e("../lib/basic-component-verification"),a=e("../lib/create-deferred-client"),s=e("../lib/create-assets-url"),c=e("../lib/braintree-error"),u=e("../lib/analytics"),d=e("./shared/errors"),l=e("@braintree/wrap-promise");t.exports={create:l(function(e){var t="3D Secure",r=function(e){var t=String(e.version||"");if(!t||"1"===t)throw new c({code:d.THREEDS_UNSUPPORTED_VERSION.code,type:d.THREEDS_UNSUPPORTED_VERSION.type,message:d.THREEDS_UNSUPPORTED_VERSION.message});switch(t){case"2":case"2-cardinal-modal":return"cardinal-modal";case"2-bootstrap3-modal":return"bootstrap3-modal";case"2-inline-iframe":return"inline-iframe";default:throw new c({code:d.THREEDS_UNRECOGNIZED_VERSION.code,type:d.THREEDS_UNRECOGNIZED_VERSION.type,message:"Version `"+e.version+"` is not a recognized ver
2sion. You may need to update the version of your Braintree SDK to support this version."})}}(e);return o.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){var o=s.create(e.authorization),l=a.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:o,name:t}).then(function(t){var r,n=t.getConfiguration(),o=n.gatewayConfiguration;return e.client=t,o.threeDSecureEnabled||(r=d.THREEDS_NOT_ENABLED),"TOKENIZATION_KEY"===n.authorizationType&&(r=d.THREEDS_CAN_NOT_USE_TOKENIZATION_KEY),"production"===o.environment&&!i()&&(r=d.THREEDS_HTTPS_REQUIRED),o.threeDSecure&&o.threeDSecure.cardinalAuthenticationJWT||(u.sendEvent(e.client,"three-d-secure.initialization.failed.missing-cardinalAuthenticationJWT"),r=d.THREEDS_NOT_ENABLED_FOR_V2),r?Promise.reject(new c(r)):(u.sendEvent(e.client,"three-d-secure.initialized"),t)}),p=new n({client:e.client,assetsUrl:o,createPromise:l,loggingEnabled:e.loggingEnabled,cardinalSDKConfig:e.cardinalSDKConfig,framework:r});return e.client?l.then(function(){return p}):p})}),VERSION:"3.143.0"}},{"../lib/analytics":34,"../lib/basic-component-verification":37,"../lib/braintree-error":38,"../lib/create-assets-url":42,"../lib/create-deferred-client":44,"../lib/is-https":48,"./external/three-d-secure":60,"./shared/errors":63,"@braintree/wrap-promise":13}],62:[function(e,t,r){"use strict";t.exports={LANDING_FRAME_NAME:"braintreethreedsecurelanding"}},{}],63:[function(e,t,r){"use strict";var n=e("../../lib/braintree-error");t.exports={THREEDS_NOT_ENABLED:{type:n.types.MERCHANT,code:"THREEDS_NOT_ENABLED",message:"3D Secure is not enabled for this merchant."},THREEDS_CAN_NOT_USE_TOKENIZATION_KEY:{type:n.types.MERCHANT,code:"THREEDS_CAN_NOT_USE_TOKENIZATION_KEY",message:"3D Secure can not use a tokenization key for authorization."},THREEDS_HTTPS_REQUIRED:{type:n.types.MERCHANT,code:"THREEDS_HTTPS_REQUIRED",message:"3D Secure requires HTTPS."},THREEDS_NOT_ENABLED_FOR_V2:{type:n.types.MERCHANT,code:"THREEDS_NOT_ENABLED_FOR_V2",message:"3D Secure version 2 is not enabled for this merchant. Contact Braintree Support for assistance at https://help.braintreepayments.com/"},THREEDS_UNRECOGNIZED_VERSION:{type:n.types.MERCHANT,code:"THREEDS_UNRECOGNIZED_VERSION"},THREEDS_CARDINAL_SDK_SETUP_FAILED:{type:n.types.UNKNOWN,code:"THREEDS_CARDINAL_SDK_SETUP_FAILED",message:"Something went wrong setting up Cardinal's Songbird.js library."},THREEDS_CARDINAL_SDK_SCRIPT_LOAD_FAILED:{type:n.types.NETWORK,code:"THREEDS_CARDINAL_SDK_SCRIPT_LOAD_FAILED",message:"Cardinal's Songbird.js library could not be loaded."},THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT:{type:n.types.UNKNOWN,code:"THREEDS_CARDINAL_SDK_SETUP_TIMEDOUT",message:"Cardinal's Songbird.js took too long to setup."},THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT:{type:n.types.UNKNOWN,code:"THREEDS_CARDINAL_SDK_RESPONSE_TIMEDOUT",message:"Cardinal's API took too long to respond."},THREEDS_CARDINAL_SDK_BAD_CONFIG:{type:n.types.MERCHANT,code:"THREEDS_CARDINAL_SDK_BAD_CONFIG",message:"JWT or other required field missing. Please check your setup configuration."},THREEDS_CARDINAL_SDK_BAD_JWT:{type:n.types.MERCHANT,code:"THREEDS_CARDINAL_SDK_BAD_JWT",message:"Cardinal JWT missing or malformed. Please check your setup configuration."},THREEDS_CARDINAL_SDK_ERROR:{type:n.types.UNKNOWN,code:"THREEDS_CARDINAL_SDK_ERROR",message:"A general error has occurred with Cardinal. See description for more information."},THREEDS_CARDINAL_SDK_CANCELED:{type:n.types.CUSTOMER,code:"THREEDS_CARDINAL_SDK_CANCELED",message:"Canceled by user."},THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT:{type:n.types.MERCHANT,code:"THREEDS_VERIFY_CARD_CANCELED_BY_MERCHANT",message:"3D Secure verfication canceled by merchant."},THREEDS_AUTHENTICATION_IN_PROGRESS:{type:n.types.MERCHANT,code:"THREEDS_AUTHENTICATION_IN_PROGRESS",message:"Cannot call verifyCard while existing authentication is in progress."},THREEDS_MISSING_VERIFY_CARD_OPTION:{type:n.types.MERCHANT,code:"THREEDS_MISSING_VERIFY_CARD_OPTION"},THREEDS_JWT_AUTHENTICATION_FAILED:{type:n.types.UNKNOWN,code:"THREEDS_JWT_AUTHENTICATION_FAILED",message:"Something went wrong authenticating the JWT from Cardinal"},THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR:{type:n.types.MERCHANT,code:"THREEDS_LOOKUP_TOKENIZED_CARD_NOT_FOUND_ERROR",message:"Either the payment method nonce passed to `verifyCard` does not exist, or it was already consumed"},THREEDS_LOOKUP_VALIDATION_ERROR:{type:n.types.CUSTOMER,code:"THREEDS_LOOKUP_VALIDATION_ERROR",message:"The data passed in `verifyCard` did not pass validation checks. See details for more info"},THREEDS_LOOKUP_ERROR:{type:n.types.UNKNOWN,code:"THREEDS_LOOKUP_ERROR",message:"Something went wrong during the 3D Secure lookup"},THREEDS_INLINE_IFRAME_DETAILS_INCORRECT:{type:n.types.UNKNOWN,code:"THREEDS_INLINE_IFRAME_DETAILS_INCORRECT",message:"Something went wrong when attempting to add the authentication iframe to the page."},THREEDS_NO_VERIFICATION_PAYLOAD:{type:n.types.MERCHANT,code:"THREEDS_NO_VERIFICATION_PAYLOAD",message:"No verification payload available."},THREEDS_TERM_URL_REQUIRES_BRAINTREE_DOMAIN:{type:n.types.INTERNAL,code:"THREEDS_TERM_URL_REQUIRES_BRAINTREE_DOMAIN",message:"Term Url must be on a Braintree domain."}
2,THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED:{type:n.types.INTERNAL,code:"THREEDS_FRAMEWORK_METHOD_NOT_IMPLEMENTED",message:"Method not implemented for this framework."},THREEDS_REQUESTED_EXEMPTION_TYPE_INVALID:{type:n.types.MERCHANT,code:"THREEDS_REQUESTED_EXEMPTION_TYPE_INVALID",message:"Requested Exemption Type is invalid."},THREEDS_UNSUPPORTED_VERSION:{type:n.types.MERCHANT,code:"THREEDS_UNSUPPORTED_VERSION",message:"3D Secure `1` is deprecated and no longer supported. See available versions at https://braintree.github.io/braintree-web/current/module-braintree-web_three-d-secure.html#.create"}}},{"../../lib/braintree-error":38}],64:[function(e,t,r){"use strict";var n=e("../../lib/enumerate");t.exports=n(["AUTHENTICATION_COMPLETE"],"threedsecure:")},{"../../lib/enumerate":46}]},{},[61])(61)},9188:function(e,t,r){!function(e,t,r,n,i,o,a){"use strict";function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=s(t),u=s(r),d=s(n),l=s(i),p=s(o),f=s(a);function h(){return h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(this,arguments)}function _(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}class m{constructor(e){var{authorization:t,styles:r,onAuthorizationSuccess:n}=e,i=_(e,["authorization","styles","onAuthorizationSuccess"]);this.fields=Object.create(null),this._nextFieldId=0,this.fieldHandlers=Object.create(null),this.styles=r||{},this.wrapperHandlers=i||{},this.setAuthorization(t,n)}setAuthorization(e,t){if(!e&&this.authorization)this.teardown();else if(e&&e!==this.authorization){if(0===Object.keys(this.fields).length&&!this.pendingAuthTimer)return void(this.pendingAuthTimer=setTimeout(()=>{this.pendingAuthTimer=null,this.setAuthorization(e,t)},5));this.authorization&&this.teardown(),this.authorization=e,d.default.create({authorization:e},(e,r)=>{e?this.onError(e):(this.create(r,t),this.wrapperHandlers.onThreeDSecureReady&&f.default.create({client:r,version:2},this.wrapperHandlers.onThreeDSecureReady),this.wrapperHandlers.onDataCollectorInstanceReady&&p.default.create({client:r,kount:!0},this.wrapperHandlers.onDataCollectorInstanceReady))})}}nextFieldId(){return this._nextFieldId+=1,this._nextFieldId}onError(e){e&&this.wrapperHandlers.onError&&this.wrapperHandlers.onError(e)}create(e,t){this.client=e,l.default.create({client:e,styles:this.styles,fields:this.fields},(e,r)=>{e?this.onError(e):(this.hostedFields=r,["blur","focus","empty","notEmpty","cardTypeChange","validityChange"].forEach(e=>{r.on(e,t=>{return this.onFieldEvent("on"+((r=e).charAt(0).toUpperCase()+r.slice(1)),t);var r})}),this.onError(e),t&&t())})}teardown(){this.hostedFields&&this.hostedFields.teardown(),this.pendingAuthTimer&&(clearTimeout(this.pendingAuthTimer),this.pendingAuthTimer=null)}checkInField(e){var{formatInput:t,maxlength:r,minlength:n,placeholder:i,select:o,type:a,prefill:s,rejectUnsupportedCards:c,id:u="braintree-field-wrapper-"+this.nextFieldId(),options:d={}}=e,l=_(e,["formatInput","maxlength","minlength","placeholder","select","type","prefill","rejectUnsupportedCards","id","options"]);return[u,()=>{this.fieldHandlers[a]=l,this.fields[a]=h({formatInput:t,maxlength:r,minlength:n,placeholder:i,select:o,prefill:s,selector:"#"+u},d),"number"===a&&c&&(this.fields.number.rejectUnsupportedCards=!0)}]}focusField(e,t){this.hostedFields.focus(e,t)}clearField(e,t){this.hostedFields.clear(e,t)}setAttribute(e,t,r){this.hostedFields.setAttribute({field:e,attribute:t,value:r})}onFieldEvent(e,t){var r=this.fieldHandlers[t.emittedBy];r&&r[e]&&r[e](t.fields[t.emittedBy],t),this.wrapperHandlers[e]&&this.wrapperHandlers[e](t)}tokenize(e){return void 0===e&&(e={}),new Promise((t,r)=>{this.hostedFields.tokenize(e,(e,n)=>{e?(this.onError(e),r(e)):t(n)})})}}var E=c.default.createContext({braintreeApi:null});class y extends c.default.Component{constructor(e){super(e),this.api=new m(e),this.contextValue={braintreeApi:this.api}}componentDidMount(){this.api.setAuthorization(this.props.authorization,this.props.onAuthorizationSuccess),this.props.getTokenRef&&this.props.getTokenRef(this.api.tokenize.bind(this.api))}componentWillUnmount(){this.api.teardown()}componentDidUpdate(){this.api.setAuthorization(this.props.authorization,this.props.onAuthorizationSuccess)}tokenize(e){return this.api.tokenize(e)}render(){var{className:e,tagName:t}=this.props,r="braintree-hosted-fields-wrapper";return e&&(r+=" "+e),c.default.createElement(E.Provider,{value:this.contextValue},c.default.createElement(t,{className:r},this.props.children))}}y.propTypes={children:u.default.node.isRequired,onAuthorizationSuccess:u.default.func,authorization:u.default.string,getTokenRef:u.default.func,onValidityChange:u.default.func,onCardTypeChange:u.default.func,onError:u.default.func,styles:u.default.object,className:u.default.string,tagName:u.default.string},y.defaultProps={tagName:"div"};class v extends c.default.Component{constructor(){super(...arguments),this.state={}}focus(){this.context.braintreeApi.focusField(this.props.type)}clear(){this.context.braintreeApi.clearField(this.props.type)}setPlaceholder(e){this.context.braintreeApi.setAttribute(this.props.type,"placeholder",e)}componentDidMount(){var[e,t]=this.context.braintreeApi.checkInField(this.props);this.setState({fieldId:e},t)}get className(){var e=["braintree-hosted-field"];return this.props.className&&e.push(this.props.className),e.join(" ")}render(){var{fieldId:e}=this.state;return e?c.default.createElement("div",{id:e,className:this.className}):null}}
2v.propTypes={type:u.default.oneOf(["number","expirationDate","expirationMonth","expirationYear","cvv","postalCode","cardholderName"]).isRequired,id:u.default.oneOfType([u.default.string,u.default.number]),placeholder:u.default.string,className:u.default.string,onCardTypeChange:u.default.func,onValidityChange:u.default.func,onNotEmpty:u.default.func,onFocus:u.default.func,onEmpty:u.default.func,onBlur:u.default.func,prefill:u.default.string},v.contextType=E,e.Braintree=y,e.HostedField=v,Object.defineProperty(e,"__esModule",{value:!0})}(t,r(4041),r(9067),r(3582),r(3442),r(8627),r(3696))}}]); 3//# sourceMappingURL=9188.3b290dddbec666b9c29e.bundle.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.