PageSourceSearch

https://bronxzoo.com/vite/assets/apple_pay-DF852699.js

js bronxzoo.com collected 2026-09-24 17:15:51 UTC 26,733 bytes, 2 lines download raw bytes

1import{i as e,o as t,t as n}from"./rolldown-runtime-DAXXjFlN.js";import{a as r,o as i}from"./country-cD551qg8.js";import{n as a,r as o,t as s}from"./apm-utils-CU_XDr2u.js";var c=n(((t,n)=>{(function(e){if(typeof t==`object`&&n!==void 0)n.exports=e();else if(typeof define==`function`&&define.amd)define([],e);else{var r=typeof window<`u`?window:typeof globalThis<`u`?globalThis:typeof self<`u`?self:this;(r.braintree||={}).applePay=e()}})(function(){var t;return(function(){function t(n,r,i){function a(s,c){if(!r[s]){if(!n[s]){var l=typeof e==`function`&&e;if(!c&&l)return l(s,!0);if(o)return o(s,!0);var u=Error(`Cannot find module '`+s+`'`);throw u.code=`MODULE_NOT_FOUND`,u}var d=r[s]={exports:{}};n[s][0].call(d.exports,function(e){var t=n[s][1][e];return a(t||e)},d,d.exports,t,n,r,i)}return r[s].exports}for(var o=typeof e==`function`&&e,s=0;s<i.length;s++)a(i[s]);return a}return t})()({1:[function(e,t,n){var r={};function i(e){var t,n=JSON.stringify(e);if(!e.forceScriptReload&&(t=r[n],t))return t;var i=document.createElement(`script`),a=e.dataAttributes||{},o=e.container||document.head;return i.src=e.src,i.id=e.id||``,i.async=!0,e.type&&i.setAttribute(`type`,`${e.type}`),e.crossorigin&&i.setAttribute(`crossorigin`,`${e.crossorigin}`),e.integrity&&i.setAttribute(`integrity`,`${e.integrity}`),Object.keys(a).forEach(function(e){i.setAttribute(`data-${e}`,`${a[e]}`)}),t=new Promise(function(t,n){i.addEventListener(`load`,function(){t(i)}),i.addEventListener(`error`,function(){n(Error(`${e.src} failed to load.`))}),i.addEventListener(`abort`,function(){n(Error(`${e.src} has aborted.`))}),o.appendChild(i)}),r[n]=t,t}i.clearCache=function(){r={}},t.exports=i},{}],2:[function(e,t,n){t.exports=e(`./dist/load-script`)},{"./dist/load-script":1}],3:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});function r(e){return function(){var t=[...arguments];setTimeout(function(){try{e.apply(void 0,t)}catch(e){console.log(`Error in callback function`),console.log(e)}},1)}}n.deferred=r},{}],4:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});function r(e){var t=!1;return function(){var n=[...arguments];t||(t=!0,e.apply(void 0,n))}}n.once=r},{}],5:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});function r(e,t){if(!t)return e;e.then(function(e){return t(null,e)}).catch(function(e){return t(e)})}n.promiseOrCallback=r},{}],6:[function(e,t,n){var r=e(`./lib/deferred`),i=e(`./lib/once`),a=e(`./lib/promise-or-callback`);function o(e){return function(){var t=[...arguments],n;return typeof t[t.length-1]==`function`&&(n=t.pop(),n=i.once(r.deferred(n))),a.promiseOrCallback(e.apply(this,t),n)}}o.wrapPrototype=function(e,t){t===void 0&&(t={});var n=t.ignoreMethods||[],r=t.transformPrivateMethods===!0;return Object.getOwnPropertyNames(e.prototype).filter(function(t){var i,a=t!==`constructor`&&typeof e.prototype[t]==`function`,o=n.indexOf(t)===-1;return i=r?!0:t.charAt(0)!==`_`,a&&i&&o}).forEach(function(t){var n=e.prototype[t];e.prototype[t]=o(n)}),e},t.exports=o},{"./lib/deferred":3,"./lib/once":4,"./lib/promise-or-callback":5}],7:[function(e,n,r){(function(e,i){typeof r==`object`&&n!==void 0?i(r):typeof t==`function`&&t.amd?t([`exports`],i):(e=typeof globalThis<`u`?globalThis:e||self,i(e.loadAxo={}))})(this,(function(e){function t(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function n(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>
10&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1],a=o;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(o);break}a[2]&&n.ops.pop(),n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e],i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}var r={},i={};function a(e){var t,n=JSON.stringify(e);if(!e.forceScriptReload&&(t=i[n],t))return t;var r=document.createElement(`script`),a=e.dataAttributes||{},o=e.container||document.head;return r.src=e.src,r.id=e.id||``,r.async=!0,e.type&&r.setAttribute(`type`,`${e.type}`),e.crossorigin&&r.setAttribute(`crossorigin`,`${e.crossorigin}`),Object.keys(a).forEach(function(e){r.setAttribute(`data-${e}`,`${a[e]}`)}),t=new Promise(function(t,n){r.addEventListener(`load`,function(){t(r)}),r.addEventListener(`error`,function(){n(Error(`${e.src} failed to load.`))}),r.addEventListener(`abort`,function(){n(Error(`${e.src} has aborted.`))}),o.appendChild(r)}),i[n]=t,t}a.clearCache=function(){i={}};var o=a,s=function(e){var t=document.querySelector(`link[href="${e.href}"]`);if(t)return Promise.resolve(t);t=document.createElement(`link`);var n=e.container||document.head;return t.setAttribute(`rel`,`stylesheet`),t.setAttribute(`type`,`text/css`),t.setAttribute(`href`,e.href),t.setAttribute(`id`,e.id),n.firstChild?n.insertBefore(t,n.firstChild):n.appendChild(t),Promise.resolve(t)};Object.defineProperty(r,"__esModule",{value:!0}),r.loadStylesheet=c=r.loadScript=void 0;var c=r.loadScript=o;r.loadStylesheet=s;var l=`https://www.paypalobjects.com`,u={minified:`axo.min`,unminified:`axo`},d=`fastlane`,f=`connect-boba`,p={AXO_ASSET_NAME:u,AXO_ASSET_PATH:f,LOCALE_PATH:`${f}/locales/`,CDNX_PROD:l},m={BT:`BT`,PPCP:`PPCP`};function h(){return typeof window.define==`function`&&!!window.define.amd}function g(){return h()&&typeof window.requirejs==`function`&&typeof window.requirejs.config==`function`}function _(e,r,i){return i===void 0&&(i=!0),t(this,void 0,void 0,function(){var t,a;return n(this,function(n){if(t=y(),t&&t[e.module]){if(r&&t[e.module]?.VERSION!==r)throw a=t[e.module]?.VERSION,Error(`${e.module} already loaded with version ${a} cannot load version ${r}`);return[2,!0]}if(!r)throw Error(`Attempted to load ${e.module} without specifying version`);return[2,v(e,r,i)]})})}function v(e,t,n){if(n===void 0&&(n=!0),h()){var r=n?e.amdModule.minified:e.amdModule.unminified;return new Promise(function(e,t){window.require([r],e,t)})}var i=n?e.script.minified:e.script.unminified;return c({id:`${e.id}-${t}`,src:`https://js.braintreegateway.com/web/${t}/js/${i}`})}function y(){return window==null?void 0:window.braintree}var b,x,S={Client:`client`,HostedCardFields:`hostedFields`},C=`braintree`,w=(b={},b[S.Client]=`client`,b[S.HostedCardFields]=`hosted-fields`,b),T=(x={},x[S.Client]={id:`client`,module:S.Client,amdModule:{unminified:`${C}/${w[S.Client]}`,minified:`${C}/${w[S.Client]}.min`},script:{unminified:`${w[S.Client]}.js`,minified:`${w[S.Client]}.min.js`}},x[S.HostedCardFields]={id:`hcf`,module:S.HostedCardFields,amdModule:{unminified:`${C}/${w[S.HostedCardFields]}`,minified:`${C}/${w[S.HostedCardFields]}.min`},script:{unminified:`${w[S.HostedCardFields]}.js`,minified:`${w[S.HostedCardFields]}.min.js`}},x);function E(e){return t(this,void 0,void 0,function(){var t,r,i,a;return n(this,function(n){switch(n.label){case 0:return performance.mark(`pp_axo_sdk_init_invoked`),t=e.btSdkVersion,r=e.minified,i=k(e),a=A(e),e.platform===m.BT?[4,Promise.all([_(T.hostedFields,t,r),D(i,r)])]:[3,2];case 1:return n.sent(),[3,5];case 2:return e.platform===m.PPCP?[4,Promise.all([_(T.client,t,r),_(T.hostedFields,t,r),D(i,r)])]:[3,4];case 3:return n.sent(),[3,5];case 4:throw Error(`unsupported axo platform`);case 5:return[2,{metadata:{localeUrl:a}}]}})})}function D(e,t){var n;if(t===void 0&&(t=!0),h()){g()&&requirejs.config({paths:(n={},n[d]=e,n)});var r=`${d}/${t?p.AXO_ASSET_NAME.minified:p.AXO_ASSET_NAME.unminified}`;return new Promise(function(e,t){window.require([r],e,t)})}return c({id:`axo-id`,src:e,forceScriptReload:!0})}function O(e){var t=e.assetUrl,n=e.bundleId;return n?`https://cdn-${n}.static.engineering.dev.paypalinc.com/${t}`:`${p.CDNX_PROD}/${t}`}function k(e){var t=e?.minified===!1?p.AXO_ASSET_NAME.unminified:p.AXO_ASSET_NAME.minified;return O({assetUrl:h()?p.AXO_ASSET_PATH:`${p.AXO_ASSET_PATH}/${t}.js`,bundleId:e?.metadata?.bundleIdOverride})}function A(e){return O({assetUrl:p.LOCALE_PATH,bundleId:e?.metadata?.bundleIdOverride})}e.constants=p,e.loadAxo=E}))},{}],8:[function(e,t,n){var r=e(`../lib/braintree-error`),i=e(`../lib/analytics`),a=e(`./errors`),o=e(`../lib/methods`),s=e(`../lib/convert-methods-to-error`),c=e(`@braintree/wrap-promise`),l=e(`../lib/in-iframe`);function u(e){this._instantiatedWithClient=!e.useDeferredClient,this._client=e.client,this._createPromise=e.createPromise,this._client&&this._setMerchantIdentifier()}u.prototype._waitForClient=function(){return this._client?Promise.resolve():this._createPromise.then(function(e){this._client=e,this._setMerchantIdentifier()}.bind(this))},u.prototype._setMerchantIdentifier=function(){var e=this._client.getConfiguration().gatewayConfiguration.applePayWeb;e&&Object.defineProperty(this,"merchantIdentifier",{value:e.merchantIdentifier,configurable:!1,writable:!1})},u.prototype.createPaymentRequest=function(e){return this._instantiatedWithClient?this._createPaymentRequestSynchronously(e):this._waitForClient().then(function(){return this._createPaymentRequestSynchronously(e)}.bind(this))},u.prototype._createPaymentRequestSynchronously=function(e){var t=this._client.getConfiguration().gatewayConfiguration.applePayWeb,n={countryCode:t.countryCode,currencyCode:t.currencyCode,merchantCapabilities:t.merchantCapabilities||[`supports3DS`],supportedNetworks:t.supportedNetworks.map(function(e){return e===`mastercard`?`masterCard`:e})};return Object.assign({},n,e)},u.prototype.performValidation=function(e){var t=this;return!e||!e.validationURL?Promise.reject(new r(a.APPLE_PAY_VALIDATION_URL_REQUIRED)):this._waitForClient().then(function(){var n={validationUrl:e.validationURL,domainName:e.domainName||(l()?window.parent.location.hostname:window.location.hostname),merchantIdentifier:e.merchantIdentifier||t.merchantIdentifier};return e.displayName!=null&&(n.displayName=e.displayName),t._client.request({method:`post`,endpoint:`apple_pay_web/sessions`,data:{_meta:{source:`apple-pay`},applePayWebSession:n}})}).then(function(e){return i.sendEvent(t._client,`applepay.performValidation.succeeded`),Promise.resolve(e)}).catch(function(e){return i.sendEvent(t._client,`applepay.performValidation.failed`),e.code===`CLIENT_REQUEST_ERROR`?Promise.reject(new r({type:a.APPLE_PAY_MERCHANT_VALIDATION_FAILED.type,code:a.APPLE_PAY_MERCHANT_VALIDATION_FAILED.code,message:a.APPLE_PAY_MERCHANT_VALIDATION_FAILED.message,details:{originalError:e.details.originalError}})):Promise.reject(new r({type:a.APPLE_PAY_MERCHANT_VALIDATION_NETWORK.type,code:a.APPLE_PAY_MERCHANT_VALIDATION_NETWORK.code,message:a.APPLE_PAY_MERCHANT_VALIDATION_NETWORK.message,details:{originalError:e}}))})},u.prototype.tokenize=function(e){var t=this;return e.token?this._waitForClient().then(function(){return t._client.request({method:`post`,endpoint:`payment_methods/apple_payment_tokens`,data:{_meta:{source:`apple-pay`},applePaymentToken:Object.assign({},e.token,{paymentData:btoa(JSON.stringify(e.token.paymentData))})}})}).then(function(e){return i.sendEvent(t._client,`applepay.tokenize.succeeded`),Promise.resolve(e.applePayCards[0])}).catch(function(e){return i.sendEvent(t._client,`applepay.tokenize.failed`),Promise.reject(new r({type:a.APPLE_PAY_TOKENIZATION.type,code:a.APPLE_PAY_TOKENIZATION.code,message:a.APPLE_PAY_TOKENIZATION.message,details:{originalError:e}}))}):Promise.reject(new r(a.APPLE_PAY_PAYMENT_TOKEN_REQUIRED))},u.prototype.teardown=function(){return s(this,o(u.prototype)),Promise.resolve()},t.exports=c.wrapPrototype(u)},{"../lib/analytics":12,"../lib/braintree-error":16,"../lib/convert-methods-to-error":18,"../lib/in-iframe":24,"../lib/methods":26,"./errors":9,"@braintree/wrap-promise":6}],9:[function(e,t,n){var r=e(`../lib/braintree-error`);t.exports={APPLE_PAY_NOT_ENABLED:{type:r.types.MERCHANT,code:`APPLE_PAY_NOT_ENABLED`,message:`Apple Pay is not enabled for this merchant.`}
1,APPLE_PAY_VALIDATION_URL_REQUIRED:{type:r.types.MERCHANT,code:`APPLE_PAY_VALIDATION_URL_REQUIRED`,message:`performValidation must be called with a validationURL.`},APPLE_PAY_MERCHANT_VALIDATION_NETWORK:{type:r.types.NETWORK,code:`APPLE_PAY_MERCHANT_VALIDATION_NETWORK`,message:`A network error occurred when validating the Apple Pay merchant.`},APPLE_PAY_MERCHANT_VALIDATION_FAILED:{type:r.types.MERCHANT,code:`APPLE_PAY_MERCHANT_VALIDATION_FAILED`,message:`Make sure you have registered your domain name in the Braintree Control Panel.`},APPLE_PAY_PAYMENT_TOKEN_REQUIRED:{type:r.types.MERCHANT,code:`APPLE_PAY_PAYMENT_TOKEN_REQUIRED`,message:`tokenize must be called with a payment token.`},APPLE_PAY_TOKENIZATION:{type:r.types.NETWORK,code:`APPLE_PAY_TOKENIZATION`,message:`A network error occurred when processing the Apple Pay payment.`}}},{"../lib/braintree-error":16}],10:[function(e,t,n){var r=e(`./apple-pay`),i=e(`../lib/analytics`),a=e(`../lib/braintree-error`),o=e(`../lib/basic-component-verification`),s=e(`../lib/create-assets-url`),c=e(`../lib/create-deferred-client`),l=e(`./errors`),u=`3.138.0`,d=e(`@braintree/wrap-promise`);function f(e){var t=`Apple Pay`;return o.verify({name:t,client:e.client,authorization:e.authorization}).then(function(){var n,o=c.create({authorization:e.authorization,client:e.client,debug:e.debug,assetsUrl:s.create(e.authorization),name:t}).then(function(e){return e.getConfiguration().gatewayConfiguration.applePayWeb?(i.sendEvent(e,`applepay.initialized`),e):Promise.reject(new a(l.APPLE_PAY_NOT_ENABLED))});return e.createPromise=o,n=new r(e),e.useDeferredClient?n:o.then(function(e){return n._client=e,n})})}t.exports={create:d(f),VERSION:u}},{"../lib/analytics":12,"../lib/basic-component-verification":15,"../lib/braintree-error":16,"../lib/create-assets-url":19,"../lib/create-deferred-client":21,"./apple-pay":8,"./errors":9,"@braintree/wrap-promise":6}],11:[function(e,t,n){var r=e(`./create-authorization-data`),i=e(`./json-clone`),a=e(`./constants`);function o(e,t){var n,o=t?i(t):{},s=r(e.authorization).attrs,c=i(e.analyticsMetadata);for(n in o.braintreeLibraryVersion=a.BRAINTREE_LIBRARY_VERSION,o._meta)o._meta.hasOwnProperty(n)&&(c[n]=o._meta[n]);return o._meta=c,s.tokenizationKey?o.tokenizationKey=s.tokenizationKey:o.authorizationFingerprint=s.authorizationFingerprint,o}function s(e){var t=e.getConfiguration(),n=r(t.authorization).attrs,i=t.gatewayConfiguration.environment===`production`,o={api_integration_type:t.analyticsMetadata.integrationType,app_id:window.location.host,c_sdk_ver:a.VERSION,component:`braintreeclientsdk`,merchant_sdk_env:i?`production`:`sandbox`,merchant_id:t.gatewayConfiguration.merchantId,event_source:`web`,platform:a.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 n.tokenizationKey?o.tokenization_key=n.tokenizationKey:o.auth_fingerprint=n.authorizationFingerprint,o}t.exports={addMetadata:o,addEventMetadata:s}},{"./constants":17,"./create-authorization-data":20,"./json-clone":25}],12:[function(e,t,n){var r=e(`./constants`),i=e(`./add-metadata`),a=e(`./assign`).assign;function o(e,t,n){return s(e,t,{},n)}function s(e,t,n,o){var s=Date.now();return n.flow===`vault`?n.context_type=`BA_Token`:n.flow===`checkout`&&(n.context_type=`EC_Token`),Promise.resolve(e).then(function(e){var l=e._request,u=r.ANALYTICS_URL,d=r.ANALYTICS_PREFIX+t,f=e.getConfiguration().gatewayConfiguration.environment===`production`,p={events:[],tracking:[]},m=i.addEventMetadata(e,p);return m.event_name=d,m.t=s,p.events=[{level:`info`,event:d,payload:a({env:f?`production`:`sandbox`,timestamp:s},n)}],p.tracking=[m],n&&typeof n==`object`&&(p.tracking=[c(m,n)]),l({url:u,method:`post`,data:p,timeout:r.ANALYTICS_REQUEST_TIMEOUT_MS},o)}).catch(function(e){o&&o(e)})}function c(e,t){var n={},i=a({},t);
1return Object.keys(i).forEach(function(e){r.ALLOWED_EXTRA_EVENT_FIELDS.indexOf(e)===-1&&delete i[e]}),n=a(e,i),n}t.exports={sendEvent:o,sendEventPlus:s}},{"./add-metadata":11,"./assign":14,"./constants":17}],13:[function(e,t,n){t.exports={loadScript:e(`@braintree/asset-loader/load-script`),loadFastlane:e(`@paypal/accelerated-checkout-loader`).loadAxo}},{"@braintree/asset-loader/load-script":2,"@paypal/accelerated-checkout-loader":7}],14:[function(e,t,n){var r=typeof Object.assign==`function`?Object.assign:i;function i(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t],n)n.hasOwnProperty(r)&&(e[r]=n[r]);return e}t.exports={assign:r,_assign:i}},{}],15:[function(e,t,n){var r=e(`./braintree-error`),i=e(`./errors`),a=`3.138.0`;function o(e){var t,n,o;return e?(o=e.name,t=e.client,n=e.authorization,!t&&!n?Promise.reject(new r({type:i.INSTANTIATION_OPTION_REQUIRED.type,code:i.INSTANTIATION_OPTION_REQUIRED.code,message:`options.client is required when instantiating `+o+`.`})):!n&&t.getVersion()!==a?Promise.reject(new r({type:i.INCOMPATIBLE_VERSIONS.type,code:i.INCOMPATIBLE_VERSIONS.code,message:`Client (version `+t.getVersion()+`) and `+o+` (version `+a+`) components must be from the same SDK version.`})):Promise.resolve()):Promise.reject(new r({type:i.INVALID_USE_OF_INTERNAL_FUNCTION.type,code:i.INVALID_USE_OF_INTERNAL_FUNCTION.code,message:`Options must be passed to basicComponentVerification function.`}))}t.exports={verify:o}},{"./braintree-error":16,"./errors":23}],16:[function(e,t,n){var r=e(`./enumerate`);function i(e){if(!i.types.hasOwnProperty(e.type))throw Error(e.type+` is not a valid type.`);if(!e.code)throw Error(`Error code required.`);if(!e.message)throw 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=r([`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":22}],17:[function(e,t,n){var r=`3.138.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:r,INTEGRATION:`custom`,SOURCE:`client`,PLATFORM:i,BRAINTREE_LIBRARY_VERSION:`braintree/`+i+`/`+r,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`,`connectionStartTime`,`domain`,`endpoint`,`endTime`,`requestStartTime`,`startTime`]}},{}],18:[function(e,t,n){var r=e(`./braintree-error`),i=e(`./errors`);t.exports=function(e,t){t.forEach(function(t){e[t]=function(){throw new r({type:i.METHOD_CALLED_AFTER_TEARDOWN.type,code:i.METHOD_CALLED_AFTER_TEARDOWN.code,message:t+` cannot be called after teardown.`})}})}},{"./braintree-error":16,"./errors":23}],19:[function(e,t,n){var r=e(`./constants`).ASSETS_URLS;function i(e){return r.production}t.exports={create:i}},{"./constants":17}],20:[function(e,t,n){var r=e(`../lib/vendor/polyfill`).atob,i=e(`../lib/constants`).CLIENT_API_URLS;function a(e){return/^[a-zA-Z0-9]+_[a-zA-Z0-9]+_[a-zA-Z0-9_]+$/.test(e)}function o(e){var t=e.split(`_`),n=t[0];return{merchantId:t.slice(2).join(`_`),environment:n}}function s(e){var t,n,s={attrs:{},configUrl:``};return a(e)?(n=o(e),s.environment=n.environment,s.attrs.tokenizationKey=e,s.configUrl=i[n.environment]+`/merchants/`+n.merchantId+`/client_api/v1/configuration`):(t=JSON.parse(r(e)),s.environment=t.environment,s.attrs.authorizationFingerprint=t.authorizationFingerprint,s.configUrl=t.configUrl,s.graphQL=t.graphQL),s}t.exports=s},{"../lib/constants":17,"../lib/vendor/polyfill":27}],21:[function(e,t,n){var r=e(`./braintree-error`),i=e(`./assets`),a=e(`./errors`),o=`3.138.0`;function s(e){var t=Promise.resolve();return e.client?Promise.resolve(e.client):(window.braintree&&window.braintree.client||(t=i.loadScript({src:e.assetsUrl+`/web/`+o+`/js/client.min.js`}).catch(function(e){return Promise.reject(new r({type:a.CLIENT_SCRIPT_FAILED_TO_LOAD.type,code:a.CLIENT_SCRIPT_FAILED_TO_LOAD.code,message:a.CLIENT_SCRIPT_FAILED_TO_LOAD.message,details:{originalError:e}}))}
1)),t.then(function(){return window.braintree.client.VERSION===o?window.braintree.client.create({authorization:e.authorization,debug:e.debug}):Promise.reject(new r({type:a.INCOMPATIBLE_VERSIONS.type,code:a.INCOMPATIBLE_VERSIONS.code,message:`Client (version `+window.braintree.client.VERSION+`) and `+e.name+` (version `+o+`) components must be from the same SDK version.`}))}))}t.exports={create:s}},{"./assets":13,"./braintree-error":16,"./errors":23}],22:[function(e,t,n){function r(e,t){return t??=``,e.reduce(function(e,n){return e[n]=t+n,e},{})}t.exports=r},{}],23:[function(e,t,n){var r=e(`./braintree-error`);t.exports={INVALID_USE_OF_INTERNAL_FUNCTION:{type:r.types.INTERNAL,code:`INVALID_USE_OF_INTERNAL_FUNCTION`},INSTANTIATION_OPTION_REQUIRED:{type:r.types.MERCHANT,code:`INSTANTIATION_OPTION_REQUIRED`},INCOMPATIBLE_VERSIONS:{type:r.types.MERCHANT,code:`INCOMPATIBLE_VERSIONS`},CLIENT_SCRIPT_FAILED_TO_LOAD:{type:r.types.NETWORK,code:`CLIENT_SCRIPT_FAILED_TO_LOAD`,message:`Braintree client script could not be loaded.`},METHOD_CALLED_AFTER_TEARDOWN:{type:r.types.MERCHANT,code:`METHOD_CALLED_AFTER_TEARDOWN`},INSTANTIATION_OPTION_INVALID:{type:r.types.MERCHANT,code:`INSTANTIATION_OPTION_INVALID`}}},{"./braintree-error":16}],24:[function(e,t,n){t.exports=function(e){e||=window;try{return e.self!==e.top}catch{return!0}}},{}],25:[function(e,t,n){t.exports=function(e){return JSON.parse(JSON.stringify(e))}},{}],26:[function(e,t,n){t.exports=function(e){return Object.keys(e).filter(function(t){return typeof e[t]==`function`})}},{}],27:[function(e,t,n){var r=typeof atob==`function`?atob:i;function i(e){var t,n,r,i,a,o,s,c,l=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})([=]{1,2})?$/,u=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`,d=``;if(!l.test(e))throw Error(`Non base64 encoded input passed to window.atob polyfill`);c=0;do i=u.indexOf(e.charAt(c++)),a=u.indexOf(e.charAt(c++)),o=u.indexOf(e.charAt(c++)),s=u.indexOf(e.charAt(c++)),t=(i&63)<<2|a>>4&3,n=(a&15)<<4|o>>2&15,r=(o&3)<<6|s&63,d+=String.fromCharCode(t)+(n?String.fromCharCode(n):``)+(r?String.fromCharCode(r):``);while(c<e.length);return d}t.exports={atob:function(e){return r.call(window,e)},_atob:i}},{}]},{},[10])(10)})})),l=t(i(),1),u=t(c(),1),d=t(r(),1),f=async function(){if(!window.ApplePaySession){o(`applePay`,!1);return}if(!ApplePaySession.canMakePayments()){o(`applePay`,!1);return}let e=document.getElementById(`apple-pay-config`);if(!e){o(`applePay`,!1);return}let t=JSON.parse(e.innerHTML),n=t.totalAmount,r=t.displayName,i=t.clientTokenUrl,c=document.getElementById(`apple-pay-button`),f=document.getElementById(`apple-pay-form`),p=document.getElementById(`apple_pay_payment_method_nonce`),m=document.getElementById(`apple_pay_device_data`),h=document.getElementById(`apple_pay_billing_address`);if(c&&f){f.style.display=`inline-block`;let e=document.getElementById(`payment-button-skeletons`);e&&(e.style.display=`none`),o(`applePay`,!0),s(c)}let g;try{g=(await(await fetch(i)).json()).clientToken}catch(e){console.error(`Error fetching client token:`,e);return}l.default.create({authorization:g},function(e,t){if(e){console.error(`Error creating Braintree client:`,e);return}let i=``;d.default.create({client:t},function(e,t){if(e){console.error(`Error creating data collector:`,e);return}i=t.deviceData}),u.default.create({client:t},function(e,t){if(e){console.error(`Error creating Apple Pay instance:`,e);return}c.addEventListener(`keydown`,function(e){(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),c.click())}),c.addEventListener(`click`,function(e){if(e.preventDefault(),c.hasAttribute(`disabled`))return;let s=document.getElementById(`cart-terms-checkbox`);if(s&&!s.checked){alert(`Please accept the Terms & Conditions before continuing.`);return}c.style.opacity=`0.6`,c.style.pointerEvents=`none`;let l=t.createPaymentRequest({total:{label:r,amount:n},requiredBillingContactFields:[`postalAddress`,`name`],requiredShippingContactFields:[`phone`,`email`]}),u=new ApplePaySession(3,l);u.onvalidatemerchant=function(e){t.performValidation({validationURL:e.validationURL,displayName:r},function(e,t){if(e){console.error(`Error validating merchant:`,e),u.abort(),o();return}u.completeMerchantValidation(t)})},u.onpaymentauthorized=function(e){t.tokenize({token:e.payment.token},function(t,n){if(t){console.error(`Error tokenizing Apple Pay:`,t),u.completePayment(ApplePaySession.STATUS_FAILURE),o();return}let r=e.payment.billingContact,s=e.payment.shippingContact,c=r.countryCode||`US`,l=a(c,`US`),d={givenName:r.givenName||``,familyName:r.familyName||``,phoneNumber:s?.phoneNumber||``,emailAddress:s?.emailAddress||``,addressLines:r.addressLines||[],locality:r.locality||``,administrativeArea:r.administrativeArea||``,postalCode:r.postalCode||``,countryCode:c,countryName:l};p.value=n.nonce,m.value=i,h.value=JSON.stringify(d),u.completePayment(ApplePaySession.STATUS_SUCCESS),f.submit()})},u.oncancel=function(){o()},u.begin()});function o(){c.style.opacity=`1`,c.style.pointerEvents=`auto`}})})};document.addEventListener(`readystatechange`,function(){document.readyState===`complete`&&f()});
2//# sourceMappingURL=apple_pay-DF852699.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.