@paypal/checkout-components 5.0.412-alpha-84b7728.0 → 5.0.413
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/button.js +1 -1
- package/dist/saved-payment-methods.js +1 -0
- package/dist/test/button.js +1 -1
- package/package.json +2 -2
- package/src/constants/button.js +6 -0
- package/src/funding/common.jsx +0 -6
- package/src/funding/itau/config.jsx +5 -15
- package/src/funding/paypal/monogramMark.jsx +10 -0
- package/src/funding/paypal/monogramMark.test.jsx +24 -0
- package/src/funding/sepa/config.jsx +1 -29
- package/src/lib/appSwitchResume.js +4 -1
- package/src/lib/appSwithResume.test.js +19 -0
- package/src/marks/component.jsx +4 -1
- package/src/marks/templateRebrand.jsx +32 -2
- package/src/marks/templateRebrand.test.jsx +101 -0
- package/src/ui/buttons/config.js +26 -50
- package/src/ui/buttons/poweredBy.jsx +3 -8
- package/src/ui/buttons/props.js +29 -2
- package/src/ui/buttons/props.test.js +42 -0
- package/src/ui/buttons/styles/button.js +3 -21
- package/src/ui/buttons/styles/color.js +41 -59
- package/src/ui/buttons/styles/labels.js +0 -1
- package/src/ui/buttons/styles/responsive.js +39 -69
- package/src/ui/buttons/styles/styleUtils.js +5 -9
- package/src/ui/buttons/styles/styleUtils.test.js +54 -18
- package/src/ui/buttons/tagline.jsx +3 -1
- package/src/ui/saved-payment-methods/index.js +3 -0
- package/src/ui/saved-payment-methods/template.jsx +255 -0
- package/src/ui/saved-payment-methods/template.test.jsx +23 -0
- package/src/zoid/saved-payment-methods/container.jsx +0 -1
- package/src/zoid/saved-payment-methods/prerender.jsx +9 -19
- package/src/ui/buttons/styles/disableMaxHeightConfig.test.js +0 -71
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports=function(r){var e={};function t(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return r[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=r,t.c=e,t.d=function(r,e,n){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:n})},t.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(1&e&&(r=t(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var o in r)t.d(n,o,function(e){return r[e]}.bind(null,o));return n},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return{}.hasOwnProperty.call(r,e)},t.p="",t(t.s=0)}([function(r,e,t){"use strict";function n(){return(n=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}function o(r,e){for(var t=[],n=0;n<r.length;n++){var o=r[n].render(e);if(o)if(Array.isArray(o))for(var i=0;i<o.length;i++){var a=o[i];a&&t.push(a)}else t.push(o)}return t}t.r(e),t.d(e,"validateSavedPaymentMethodsProps",(function(){return ne})),t.d(e,"SavedPaymentMethods",(function(){return ce}));var i=function(){function r(r,e,t){this.type="element",this.name=void 0,this.props=void 0,this.children=void 0,this.onRender=void 0,this.name=r,this.props=e||{},this.children=t;var n=this.props.onRender;"function"==typeof n&&(this.onRender=n,delete e.onRender)}var e=r.prototype;return e.render=function(r){var e=r(this);return this.onRender&&this.onRender(e),e},e.renderChildren=function(r){return o(this.children,r)},r}(),a=function(){function r(r){this.type="fragment",this.children=void 0,this.children=r}return r.prototype.render=function(r){return o(this.children,r)},r}(),c=function(){function r(r){this.type="text",this.text=void 0,this.text=r}return r.prototype.render=function(r){return r(this)},r}(),u=function(){function r(r,e,t){this.type="component",this.component=void 0,this.props=void 0,this.children=void 0,this.component=r,this.props=e||{},this.children=t,this.props.children=t}var e=r.prototype;return e.renderComponent=function(r){var e=function(r){var e=f(Array.isArray(r)?r:[r]);return 1===e.length?e[0]:e.length>1?new a(e):void 0}(this.component(this.props,this.children));if(e)return e.render(r)},e.render=function(r){return r(this)},e.renderChildren=function(r){return o(this.children,r)},r}();function f(r){for(var e=[],t=0;t<r.length;t++){var n=r[t];if(n)if("string"==typeof n||"number"==typeof n)e.push(new c(n.toString()));else{if("boolean"==typeof n)continue;if(Array.isArray(n))for(var o=0,i=f(n);o<i.length;o++)e.push(i[o]);else{if(!n||"element"!==n.type&&"text"!==n.type&&"component"!==n.type)throw new TypeError("Unrecognized node type: "+typeof n);e.push(n)}}}return e}var l,s,d,p=function(r,e){for(var t=arguments.length,n=new Array(t>2?t-2:0),o=2;o<t;o++)n[o-2]=arguments[o];if(n=f(n),"string"==typeof r)return new i(r,e,n);if("function"==typeof r)return new u(r,e,n);throw new TypeError("Expected jsx element to be a string or a function")},F=((l={}).svg="http://www.w3.org/2000/svg",l),y=((s={})["xlink:href"]="http://www.w3.org/1999/xlink",s);function h(r,e){return r.createTextNode(e.text)}function m(r,e){for(var t=e.props,n=0,o=Object.keys(t);n<o.length;n++){var i=o[n],a=t[i];if(null!=a&&"el"!==i&&"innerHTML"!==i)if(i.match(/^on[A-Z][a-z]/)&&"function"==typeof a)r.addEventListener(i.slice(2).toLowerCase(),a);else if("string"==typeof a||"number"==typeof a){var c=y[i];c?r.setAttributeNS(c,i,a.toString()):r.setAttribute(i,a.toString())}else"boolean"==typeof a&&!0===a&&r.setAttribute(i,"")}"iframe"!==r.tagName.toLowerCase()||t.id||r.setAttribute("id","jsx-iframe-"+"xxxxxxxxxx".replace(/./g,(function(){return"0123456789abcdef".charAt(Math.floor(Math.random()*"0123456789abcdef".length))})))}var v=((d={}).iframe=function(r,e){var t=e.children[0];if(1!==e.children.length||!t||"element"!==t.type||"html"!==t.name)throw new Error("Expected only single html element node as child of iframe element");r.addEventListener("load",(function(){var e=r.contentWindow;if(!e)throw new Error("Expected frame to have contentWindow");for(var n=e.document,o=n.documentElement;o.children&&o.children.length;)o.removeChild(o.children[0]);for(var i=t.render(function(r){void 0===r&&(r={});var e=r.doc,t=void 0===e?document:e,n=function(r,e){if("component"===r.type)return r.renderComponent((function(r){return n(r,e)}));if("text"===r.type)return h(t,r);if("element"===r.type){var o=function(r,e,t){return r.createElementNS(t,e.name)}(t,r,e);return m(o,r),w(o,r,t,(function(r){return n(r,e)})),o}throw new TypeError("Unhandleable node")},o=function(r){if("component"===r.type)return r.renderComponent(o);if("text"===r.type)return h(t,r);if("element"===r.type){var e=F[r.name.toLowerCase()];if(e)return n(r,e);var i=function(r,e){return e.props.el?e.props.el:r.createElement(e.name)}(t,r);return m(i,r),w(i,r,t,o),i}throw new TypeError("Unhandleable node")};return o}({doc:n}));i.children.length;)o.appendChild(i.children[0])}))},d.script=function(r,e){var t=e.children[0];if(1!==e.children.length||!t||"text"!==t.type)throw new Error("Expected only single text node as child of script element");r.text=t.text},d.default=function(r,e,t){for(var n=0,o=e.renderChildren(t);n<o.length;n++)r.appendChild(o[n])},d);function w(r,e,t,n){if(e.props.hasOwnProperty("innerHTML")){if(e.children.length)throw new Error("Expected no children to be passed when innerHTML prop is set");var o=e.props.innerHTML;if("string"!=typeof o)throw new TypeError("innerHTML prop must be string");"script"===e.name?r.text=o:(r.innerHTML=o,function(r,e){void 0===e&&(e=window.document);for(var t=0,n=r.querySelectorAll("script");t<n.length;t++){var o=n[t],i=o.parentNode;if(i){var a=e.createElement("script");a.text=o.textContent,i.replaceChild(a,o)}}}(r,t))}else(v[e.name]||v.default)(r,e,n)}function g(r,e){if(null==r)return{};var t,n,o={},i=Object.keys(r);for(n=0;n<i.length;n++)e.indexOf(t=i[n])>=0||(o[t]=r[t]);return o}var b={br:!0};function x(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}function E(r,e){return(E=Object.setPrototypeOf||function(r,e){return r.__proto__=e,r})(r,e)}function k(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,E(r,e)}function C(r){try{if(!r)return!1;if("undefined"!=typeof Promise&&r instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&r instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&r instanceof window.constructor)return!1;var e={}.toString;if(e){var t=e.call(r);if("[object Window]"===t||"[object global]"===t||"[object DOMWindow]"===t)return!1}if("function"==typeof r.then)return!0}catch(r){return!1}return!1}var j,_=[],S=[],D=0;function A(){if(!D&&j){var r=j;j=null,r.resolve()}}function O(){D+=1}function T(){D-=1,A()}var P=function(){function r(r){var e=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],r){var t,n,o=!1,i=!1,a=!1;O();try{r((function(r){a?e.resolve(r):(o=!0,t=r)}),(function(r){a?e.reject(r):(i=!0,n=r)}))}catch(r){return T(),void this.reject(r)}T(),a=!0,o?this.resolve(t):i&&this.reject(n)}}var e=r.prototype;return e.resolve=function(r){if(this.resolved||this.rejected)return this;if(C(r))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=r,this.dispatch(),this},e.reject=function(r){var e=this;if(this.resolved||this.rejected)return this;if(C(r))throw new Error("Can not reject promise with another promise");if(!r){var t=r&&"function"==typeof r.toString?r.toString():{}.toString.call(r);r=new Error("Expected reject to be called with Error, got "+t)}return this.rejected=!0,this.error=r,this.errorHandled||setTimeout((function(){e.errorHandled||function(r,e){if(-1===_.indexOf(r)){_.push(r),setTimeout((function(){throw r}),1);for(var t=0;t<S.length;t++)S[t](r,e)}}(r,e)}),1),this.dispatch(),this},e.asyncReject=function(r){return this.errorHandled=!0,this.reject(r),this},e.dispatch=function(){var e=this.resolved,t=this.rejected,n=this.handlers;if(!this.dispatching&&(e||t)){this.dispatching=!0,O();for(var o=function(r,e){return r.then((function(r){e.resolve(r)}),(function(r){e.reject(r)}))},i=0;i<n.length;i++){var a=n[i],c=a.onSuccess,u=a.onError,f=a.promise,l=void 0;if(e)try{l=c?c(this.value):this.value}catch(r){f.reject(r);continue}else if(t){if(!u){f.reject(this.error);continue}try{l=u(this.error)}catch(r){f.reject(r);continue}}if(l instanceof r&&(l.resolved||l.rejected)){var s=l;s.resolved?f.resolve(s.value):f.reject(s.error),s.errorHandled=!0}else C(l)?l instanceof r&&(l.resolved||l.rejected)?l.resolved?f.resolve(l.value):f.reject(l.error):o(l,f):f.resolve(l)}n.length=0,this.dispatching=!1,T()}},e.then=function(e,t){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.then expected a function for success handler");if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.then expected a function for error handler");var n=new r;return this.handlers.push({promise:n,onSuccess:e,onError:t}),this.errorHandled=!0,this.dispatch(),n},e.catch=function(r){return this.then(void 0,r)},e.finally=function(e){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.finally expected a function");return this.then((function(t){return r.try(e).then((function(){return t}))}),(function(t){return r.try(e).then((function(){throw t}))}))},e.timeout=function(r,e){var t=this;if(this.resolved||this.rejected)return this;var n=setTimeout((function(){t.resolved||t.rejected||t.reject(e||new Error("Promise timed out after "+r+"ms"))}),r);return this.then((function(r){return clearTimeout(n),r}))},e.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},e.lazy=function(){return this.errorHandled=!0,this},r.resolve=function(e){return e instanceof r?e:C(e)?new r((function(r,t){return e.then(r,t)})):(new r).resolve(e)},r.reject=function(e){return(new r).reject(e)},r.asyncReject=function(e){return(new r).asyncReject(e)},r.all=function(e){var t=new r,n=e.length,o=[].slice();if(!n)return t.resolve(o),t;for(var i=function(r,e,i){return e.then((function(e){o[r]=e,0==(n-=1)&&t.resolve(o)}),(function(r){i.reject(r)}))},a=0;a<e.length;a++){var c=e[a];if(c instanceof r){if(c.resolved){o[a]=c.value,n-=1;continue}}else if(!C(c)){o[a]=c,n-=1;continue}i(a,r.resolve(c),t)}return 0===n&&t.resolve(o),t},r.hash=function(e){var t={},n=[],o=function(r){if(e.hasOwnProperty(r)){var o=e[r];C(o)?n.push(o.then((function(e){t[r]=e}))):t[r]=o}};for(var i in e)o(i);return r.all(n).then((function(){return t}))},r.map=function(e,t){return r.all(e.map(t))},r.onPossiblyUnhandledException=function(r){return function(r){return S.push(r),{cancel:function(){S.splice(S.indexOf(r),1)}}}(r)},r.try=function(e,t,n){if(e&&"function"!=typeof e&&!e.call)throw new Error("Promise.try expected a function");var o;O();try{o=e.apply(t,n||[])}catch(e){return T(),r.reject(e)}return T(),r.resolve(o)},r.delay=function(e){return new r((function(r){setTimeout(r,e)}))},r.isPromise=function(e){return!!(e&&e instanceof r)||C(e)},r.flush=function(){return e=j=j||new r,A(),e;var e},r}(),M="Call was rejected by callee.\r\n";function W(r){return void 0===r&&(r=window),r.location.protocol}function B(r){if(void 0===r&&(r=window),r.mockDomain){var e=r.mockDomain.split("//")[0];if(e)return e}return W(r)}function L(r){return void 0===r&&(r=window),"about:"===B(r)}function z(r){try{return!0}catch(r){}return!1}function H(r){void 0===r&&(r=window);var e=r.location;if(!e)throw new Error("Can not read window location");var t=W(r);if(!t)throw new Error("Can not read window protocol");if("file:"===t)return"file://";if("about:"===t){var n=function(r){if(void 0===r&&(r=window),r)try{if(r.parent&&r.parent!==r)return r.parent}catch(r){}}(r);return n&&z()?H(n):"about://"}var o=e.host;if(!o)throw new Error("Can not read window host");return t+"//"+o}function R(r){void 0===r&&(r=window);var e=H(r);return e&&r.mockDomain&&0===r.mockDomain.indexOf("mock:")?r.mockDomain:e}var q=[],N=[];function I(r,e){void 0===e&&(e=!0);try{if(r===window)return!1}catch(r){return!0}try{if(!r)return!0}catch(r){return!0}try{if(r.closed)return!0}catch(r){return!r||r.message!==M}if(e&&function(r){if(!function(r){try{if(r===window)return!0}catch(r){}try{var e=Object.getOwnPropertyDescriptor(r,"location");if(e&&!1===e.enumerable)return!1}catch(r){}try{if(L(r)&&z())return!0}catch(r){}try{if(function(r){return void 0===r&&(r=window),"mock:"===B(r)}(r)&&z())return!0}catch(r){}try{if(H(r)===H(window))return!0}catch(r){}return!1}(r))return!1;try{if(r===window)return!0;if(L(r)&&z())return!0;if(R(window)===R(r))return!0}catch(r){}return!1}(r))try{if(r.mockclosed)return!0}catch(r){}try{if(!r.parent||!r.top)return!0}catch(r){}var t=function(r,e){for(var t=0;t<r.length;t++)try{if(r[t]===e)return t}catch(r){}return-1}(q,r);if(-1!==t){var n=N[t];if(n&&function(r){if(!r.contentWindow)return!0;if(!r.parentNode)return!0;var e=r.ownerDocument;if(e&&e.documentElement&&!e.documentElement.contains(r)){for(var t=r;t.parentNode&&t.parentNode!==t;)t=t.parentNode;if(!t.host||!e.documentElement.contains(t.host))return!0}return!1}(n))return!0}return!1}function U(r){try{if(r===window)return!0}catch(r){if(r&&r.message===M)return!0}try{if("[object Window]"==={}.toString.call(r))return!0}catch(r){if(r&&r.message===M)return!0}try{if(window.Window&&r instanceof window.Window)return!0}catch(r){if(r&&r.message===M)return!0}try{if(r&&r.self===r)return!0}catch(r){if(r&&r.message===M)return!0}try{if(r&&r.parent===r)return!0}catch(r){if(r&&r.message===M)return!0}try{if(r&&r.top===r)return!0}catch(r){if(r&&r.message===M)return!0}try{if(r&&"__unlikely_value__"===r.__cross_domain_utils_window_check__)return!1}catch(r){return!0}try{if("postMessage"in r&&"self"in r&&"location"in r)return!0}catch(r){}return!1}function G(r,e){for(var t=0;t<r.length;t++)try{if(r[t]===e)return t}catch(r){}return-1}var Z,J=function(){function r(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var r=new WeakMap,e={};return Object.freeze(e),r.set(e,"__testvalue__"),"__testvalue__"===r.get(e)}catch(r){return!1}}())try{this.weakmap=new WeakMap}catch(r){}this.keys=[],this.values=[]}var e=r.prototype;return e._cleanupClosedWindows=function(){for(var r=this.weakmap,e=this.keys,t=0;t<e.length;t++){var n=e[t];if(U(n)&&I(n)){if(r)try{r.delete(n)}catch(r){}e.splice(t,1),this.values.splice(t,1),t-=1}}},e.isSafeToReadWrite=function(r){return!U(r)},e.set=function(r,e){if(!r)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{t.set(r,e)}catch(r){delete this.weakmap}if(this.isSafeToReadWrite(r))try{var n=this.name,o=r[n];return void(o&&o[0]===r?o[1]=e:Object.defineProperty(r,n,{value:[r,e],writable:!0}))}catch(r){}this._cleanupClosedWindows();var i=this.keys,a=this.values,c=G(i,r);-1===c?(i.push(r),a.push(e)):a[c]=e},e.get=function(r){if(!r)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{if(e.has(r))return e.get(r)}catch(r){delete this.weakmap}if(this.isSafeToReadWrite(r))try{var t=r[this.name];return t&&t[0]===r?t[1]:void 0}catch(r){}this._cleanupClosedWindows();var n=G(this.keys,r);if(-1!==n)return this.values[n]},e.delete=function(r){if(!r)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{e.delete(r)}catch(r){delete this.weakmap}if(this.isSafeToReadWrite(r))try{var t=r[this.name];t&&t[0]===r&&(t[0]=t[1]=void 0)}catch(r){}this._cleanupClosedWindows();var n=this.keys,o=G(n,r);-1!==o&&(n.splice(o,1),this.values.splice(o,1))},e.has=function(r){if(!r)throw new Error("WeakMap expected key");var e=this.weakmap;if(e)try{if(e.has(r))return!0}catch(r){delete this.weakmap}if(this.isSafeToReadWrite(r))try{var t=r[this.name];return!(!t||t[0]!==r)}catch(r){}return this._cleanupClosedWindows(),-1!==G(this.keys,r)},e.getOrSet=function(r,e){if(this.has(r))return this.get(r);var t=e();return this.set(r,t),t},r}();function $(r){return($=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(r)}function K(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(r){return!1}}function Q(r,e,t){return(Q=K()?Reflect.construct:function(r,e,t){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(r,n));return t&&E(o,t.prototype),o}).apply(null,arguments)}function V(r){var e="function"==typeof Map?new Map:void 0;return(V=function(r){if(null===r||-1===Function.toString.call(r).indexOf("[native code]"))return r;if("function"!=typeof r)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(r))return e.get(r);e.set(r,t)}function t(){return Q(r,arguments,$(this).constructor)}return t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),E(t,r)})(r)}function X(r){if("function"==typeof btoa)return btoa(encodeURIComponent(r).replace(/%([0-9A-F]{2})/g,(function(r,e){return String.fromCharCode(parseInt(e,16))}))).replace(/[=]/g,"");if("undefined"!=typeof Buffer)return Buffer.from(r,"utf8").toString("base64").replace(/[=]/g,"");throw new Error("Can not find window.btoa or Buffer")}function Y(){var r="0123456789abcdef";return"uid_"+"xxxxxxxxxx".replace(/./g,(function(){return r.charAt(Math.floor(Math.random()*r.length))}))+"_"+X((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function rr(r){try{return JSON.stringify([].slice.call(r),(function(r,e){return"function"==typeof e?"memoize["+function(r){if(Z=Z||new J,null==r||"object"!=typeof r&&"function"!=typeof r)throw new Error("Invalid object");var e=Z.get(r);return e||(e=typeof r+":"+Y(),Z.set(r,e)),e}(e)+"]":function(r){var e=!1;try{(r instanceof window.Element||null!==r&&"object"==typeof r&&1===r.nodeType&&"object"==typeof r.style&&"object"==typeof r.ownerDocument)&&(e=!0)}catch(r){}return e}(e)?{}:e}))}catch(r){throw new Error("Arguments not serializable -- can not be used to memoize")}}function er(){return{}}var tr=0,nr=0;function or(r,e){void 0===e&&(e={});var t,n,o=e.thisNamespace,i=void 0!==o&&o,a=e.time,c=tr;tr+=1;var u,f=function(){for(var e=arguments.length,o=new Array(e),u=0;u<e;u++)o[u]=arguments[u];var f,l;c<nr&&(t=null,n=null,c=tr,tr+=1),f=i?(n=n||new J).getOrSet(this,er):t=t||{};try{l=rr(o)}catch(e){return r.apply(this,arguments)}var s=f[l];if(s&&a&&Date.now()-s.time<a&&(delete f[l],s=null),s)return s.value;var d=Date.now(),p=r.apply(this,arguments);return f[l]={time:d,value:p},p};return f.reset=function(){t=null,n=null},function(r,e){try{delete r.name,r.name=e}catch(r){}return r.__name__=r.displayName=e,r}(f,(e.name||(u=r).name||u.__name__||u.displayName||"anonymous")+"::memoized")}function ir(r){return"data:image/svg+xml;base64,"+X(r)}or.clear=function(){nr=tr},or((function(r){if(Object.values)return Object.values(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(r[t]);return e}));var ar,cr=function(r){function e(e){var t;return(t=r.call(this,e)||this).name=t.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(t,t.constructor):t.stack=new Error(e).stack,t}return k(e,r),e}(V(Error));function ur(){return Boolean(document.body)&&"complete"===document.readyState}function fr(){return Boolean(document.body)&&"interactive"===document.readyState}or((function(){return new P((function(r){if(ur()||fr())return r();var e=setInterval((function(){if(ur()||fr())return clearInterval(e),r()}),10)}))})),k((function(){return ar.apply(this,arguments)||this}),ar=cr);var lr="undefined"!=typeof document?document.currentScript:null,sr=or((function(){if(lr)return lr;if(lr=function(){try{var r=function(){try{throw new Error("_")}catch(r){return r.stack||""}}(),e=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(r),t=e&&e[1];if(!t)return;for(var n=0,o=[].slice.call(document.getElementsByTagName("script")).reverse();n<o.length;n++){var i=o[n];if(i.src&&i.src===t)return i}}catch(r){}}())return lr;throw new Error("Can not determine current script")})),dr=Y();or((function(){var r;try{r=sr()}catch(r){return dr}var e=r.getAttribute("data-uid");if(e&&"string"==typeof e)return e;if((e=r.getAttribute("data-uid-auto"))&&"string"==typeof e)return e;if(r.src){var t=function(r){for(var e="",t=0;t<r.length;t++){var n=r[t].charCodeAt(0)*t;r[t+1]&&(n+=r[t+1].charCodeAt(0)*(t-1)),e+=String.fromCharCode(97+Math.abs(n)%26)}return e}(JSON.stringify({src:r.src,dataset:r.dataset}));e="uid_"+t.slice(t.length-30)}else e=Y();return r.setAttribute("data-uid-auto",e),e}));var pr,Fr,yr,hr,mr,vr,wr,gr,br,xr,Er,kr,Cr,jr,_r,Sr,Dr,Ar,Or,Tr,Pr,Mr,Wr,Br,Lr,zr,Hr=["svg","cdnUrl"],Rr=["render","name","logoColor"];function qr(r){var e,t=r.svg,o=r.cdnUrl,i=g(r,Hr);if(o){var a=n({src:o},i);return p("img",a)}if(!t)throw new TypeError("Expected svg prop");if("string"!=typeof(t=t.render((e=function(r){if("component"===r.type)return[].concat(r.renderComponent(e)).join("");if("element"===r.type){var t=(o=r.props,(i=Object.keys(o).filter((function(r){var e=o[r];return"innerHTML"!==r&&("string"==typeof e||"number"==typeof e||!0===e)}))).length?" "+i.map((function(r){var e=o[r];if(!0===e)return""+x(r);if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Unexpected prop type: "+typeof e);return""===e?x(r):x(r)+'="'+x(e.toString())+'"'})).join(" "):"");if(b[r.name])return"<"+r.name+t+" />";var n="string"==typeof r.props.innerHTML?r.props.innerHTML:r.renderChildren(e).join("");return"<"+r.name+t+">"+n+"</"+r.name+">"}var o,i;if("text"===r.type)return x(r.text);throw new TypeError("Unhandleable node: "+r.type)},e))))throw new TypeError("Expected svg prop to be a string or jsx node");var c=n({src:ir(t)},i);return p("img",c)}function Nr(r){var e=r.render,t=r.name,o=r.logoColor,i=g(r,Rr);return p(qr,n({},i,{svg:e?e():null,alt:"",class:"paypal-logo paypal-logo-"+t+" "+(o?"paypal-logo-color-"+o:"")}))}(pr={}).default={primary:"#ffffff",secondary:"#ffffff"},pr.white={primary:"#ffffff",secondary:"#ffffff"},pr.black={primary:"#000000",secondary:"#000000"},(Fr={}).default={primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#FFFFFF",quaternary:"#FFFFFF"},Fr.white={primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#FFFFFF",quaternary:"#FFFFFF"},Fr.black={primary:"#1E3764",secondary:"#005AB9",tertiary:"#FBA900",quaternary:"#FFD800"},(yr={}).default={primary:"#333030"},yr.white={primary:"#ffffff"},yr.black={primary:"#333030"},(hr={}).default={primary:"#000000"},hr.white={primary:"#FFFFFF"},hr.black={primary:"#000000"},(mr={}).default={primary:"#003087"},mr.blue={primary:"#003087"},mr.white={primary:"#ffffff"},mr.black={primary:"#333030"},(vr={}).default={primary:"#FFFFFF",secondary:"#FFFFFF"},vr.white={primary:"#FFFFFF",secondary:"#FFFFFF"},vr.black={primary:"#C8036F",secondary:"#71706F"},(wr={}).default={primary:"#FFFFFF",secondary:"#003A7D",tertiary:"#ED1C24",quaternary:"#FFFFFF",quinary:"#FFFFFF"},wr.white={primary:"#000000",secondary:"#FFFFFF",tertiary:"#FFFFFF",quaternary:"#000000",quinary:"#FFFFFF"},wr.black={primary:"#FFFFFF",secondary:"#003A7D",tertiary:"#ED1C24",quaternary:"#FFFFFF",quinary:"#003A7D"},(gr={}).default={primary:"#FFFFFF",secondary:"#CC0066"},gr.white={primary:"#FFFFFF",secondary:"#CC0066"},gr.black={primary:"#FFFFFF",secondary:"#CC0066"},(br={}).default={primary:"#00C0EE",secondary:"#FFFFFF"},br.white={primary:"#FFFFFF",secondary:"#FFFFFF"},br.black={primary:"#00C0EE",secondary:"#1A4B67"},(xr={}).default={primary:"#FFFFFF",secondary:"#FFFFFF"},xr.white={primary:"#FFFFFF",secondary:"#FFFFFF"},xr.black={primary:"#B3B1B1",secondary:"#D03238"},(Er={}).default={primary:"#003087",secondary:"#009cde"},Er.blue={primary:"#003087",secondary:"#009cde"},Er.white={primary:"#ffffff",secondary:"#ffffff"},Er.black={primary:"#333030",secondary:"#636363"},Er.monochrome={primary:"#000000",secondary:"#000000"},(kr={}).default={primary:"#009cde",secondary:"#012169",tertiary:"#003087"},kr.blue={primary:"#009cde",secondary:"#012169",tertiary:"#003087"},kr.white={primary:"#ffffff",primaryOpacity:"0.7",secondary:"#ffffff",secondaryOpacity:"0.7",tertiary:"#ffffff"},kr.black={primary:"#808080",secondary:"#000000",tertiary:"#1a1a1a"},(Cr={}).default={main:"#005DA0",card:"#AEB1BC"},Cr.white={main:"#FFFFFF",card:"#FFFFFF"},Cr.black={main:"#333030",card:"#333030"},(jr={}).default={primary:"#EDEDED",secondary:"#393A41"},jr.white={primary:"#FFFFFF",secondary:"#000000"},jr.black={primary:"#393A41",secondary:"#EDEDED"},(_r={}).default={primary:"#3D93CE"},_r.blue={primary:"#3D93CE"},_r.white={primary:"#ffffff"},_r.black={primary:"#333030"},(Sr={}).default={primary:"#ffffff"},Sr.blue={primary:"#003087"},Sr.white={primary:"#ffffff"},Sr.black={primary:"#333030"},(Dr={}).default={primary:"#1AAD19",secondary:"#FFFFFF"},Dr.white={primary:"#FFFFFF",secondary:"#FFFFFF"},Dr.black={primary:"#1AAD19",secondary:"#4D4D4D"},(Ar={}).default={primary:"#A6C307"},Ar.white={primary:"#FFFFFF"},Ar.black={primary:"#2C2E2F"},(Or={}).default={primary:"#FF0000",secondary:"#E83E49",tertiary:"#FF00FF",quaternary:"#000000",senary:"#FFFFFF"},Or.white={primary:"#000000",secondary:"#000000",tertiary:"#000000",quaternary:"#000000",senary:"#FFFFFF"},Or.black={primary:"#FF0000",secondary:"#E83E49",tertiary:"#FF00FF",quaternary:"#4D4D4F",senary:"#FFFFFF"},(Tr={}).default={primary:"#0EE06E"},Tr.white={primary:"#FFFFFF"},Tr.black={primary:"#000000"},(Pr={}).default={primary:"#FFFFFF",secondary:"#FFFFFF"},Pr.white={primary:"#FFFFFF",secondary:"#FFFFFF"},Pr.black={primary:"#E39E39",secondary:"#D8232A"},(Mr={}).default={primary:"#FFFFFF"},Mr.white={primary:"#FFFFFF"},Mr.black={primary:"#000000"},(Wr={}).default={primary:"#009EE3",secondary:"#FFFFFF",tertiary:"#009EE3",quaternary:"#FFFFFF"},Wr.white={primary:"#000000",secondary:"#FFFFFF",tertiary:"#000000",quaternary:"#FFFFFF"},Wr.black={primary:"#FFFFFF",secondary:"#2D3277",tertiary:"#009EE3",quaternary:"#009EE3"},(Br={}).default={primary:"#FFFFFF",secondary:"#FFFFFF"},Br.white={primary:"#FFFFFF",secondary:"#FFFFFF"},Br.black={primary:"#1866AB",secondary:"#373535"},(Lr={}).default={primary:"#FFFFFF"},Lr.white={primary:"#FFFFFF"},Lr.black={primary:"#2C2E2F"},(zr={}).default={primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#FFFFFF"},zr.white={primary:"#FFFFFF",secondary:"#FFFFFF",tertiary:"#FFFFFF"},zr.black={primary:"#A6009C",secondary:"#FF009C",tertiary:"#1C1C1C"};var Ir,Ur,Gr=["logoColor"];(Ir={}).default={primary:"#000000"},Ir.black={primary:"#000000"},Ir.white={primary:"#FFFFFF"},Ir.blue={primary:"#60CDFF"};var Zr,Jr,$r,Kr,Qr,Vr=((Ur={}).default={primary:"#002991",secondary:"#60CDFF",tertiary:"#008CFF"},Ur.blue={primary:"#002991",secondary:"#60CDFF",tertiary:"#008CFF"},Ur.white={primary:"#F3F3F3",secondary:"#898989",tertiary:"#B8B8B8"},Ur.black={primary:"#0D0D0D",secondary:"#808080",tertiary:"#4D4D4D"},Ur),Xr=function(r){var e,t,o,i=r.logoColor,a=void 0===i?"default":i,c=g(r,Gr),u=(t=(e=function(r,e,t){var n;if(t&&(n=e[t]),n||(n=e.default),!n)throw new Error("No "+(t||"default")+" logo available for pp-rebrand");return n}(0,Vr,a)).secondary,o=e.tertiary,p("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"26.15",viewBox:"0 3.925 20 26.15",fill:"none"},p("g",{"clip-path":"url(#clip0_4189_85875)"},p("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.3532 12.06C15.5794 11.65 14.643 11.4 13.6227 11.4H7.5307L6.51043 18H6.51041L6.33297 19.135L5.49014 24.6H1L3.70099 7H10.9759C13.4255 7 15.3527 8.385 16.0624 10.31C16.2645 10.855 16.3631 11.445 16.3532 12.06Z",fill:e.primary}),p("path",{d:"M18.9408 17.1201C18.443 20.1701 15.8553 22.4001 12.7946 22.4001H10.2858L9.24089 29.0001H4.77539L5.49007 24.6001L6.33289 19.1351L6.51033 18.0001H10.1231C13.869 18.0001 16.3532 14.7851 16.3532 12.0601C18.1965 13.0251 19.271 14.9751 18.9408 17.1201Z",fill:t}),p("path",{d:"M16.3536 12.06C15.5797 11.65 14.6433 11.4 13.623 11.4H7.531L6.51074 18H10.1236C13.8694 18 16.3536 14.785 16.3536 12.06Z",fill:o}))));return p(Nr,n({},c,{name:"pp-rebrand",alt:"PP",role:"presentation",logoColor:a,render:function(){return u}}))};(Zr={}).default={background:"#60CDFF",foreground:"#000000"},Zr.black={background:"#000000",foreground:"#FFFFFF"},Zr.blue={background:"#60CDFF",foreground:"#000000"},Zr.white={background:"#FFFFFF",foreground:"#000000"},(Jr={}).default={primary:"#008CFF"},Jr.blue={primary:"#008CFF"},Jr.white={primary:"#ffffff"},($r={}).default={primary:"#000000"},$r.black={primary:"#000000"},$r.white={primary:"#FFFFFF"},$r.blue={primary:"#60CDFF"},(Kr={}).default={background:"#60CDFF",foreground:"#000000"},Kr.black={background:"#000000",foreground:"#FFFFFF"},Kr.blue={background:"#60CDFF",foreground:"#000000"},Kr.white={background:"#FFFFFF",foreground:"#000000"},(Qr={}).default={background:"#60CDFF",foreground:"#000000",primary:"#050A0E",secondary:"#31677F",tertiary:"#1E3E4C"},Qr.black={background:"#000000",foreground:"#FFFFFF",primary:"#F3F3F3",secondary:"#898989",tertiary:"#B8B8B8"},Qr.blue={background:"#60CDFF",foreground:"#000000",primary:"#050A0E",secondary:"#31677F",tertiary:"#1E3E4C"},Qr.white={background:"#FFFFFF",foreground:"#000000",primary:"#002991",secondary:"#60CDFF",tertiary:"#008CFF"};var Yr=new Set(["backgroundColor","fontFamily","textColorBase","fontSizeBase","primaryColor"]),re=new Set(["height","padding","borderRadius","borderColor","borderWidth"]),ee={logo:"boolean",label:"boolean",message:"boolean",logoWidth:"string",logoLabelGap:"string",labelFiGap:"string",labelFontSize:"string",fiTextFontSize:"string",iconSize:"string"};function te(r,e){if(null!=r&&("object"!=typeof r||Array.isArray(r)))throw new TypeError("Expected "+e+" to be a plain object")}function ne(r){!function(r){if(null!=r){te(r,"style");for(var e=r,t=Object.keys(e),n=new Set(["root","component","layout"]),o=0;o<t.length;o++){var i=t[o];if(!n.has(i))throw new Error("Invalid style key: "+i+". Expected only root, component, and layout")}if(null!=e.root){te(e.root,"style.root");for(var a=e.root,c=0,u=Object.keys(a);c<u.length;c++){var f=u[c];if(!Yr.has(f))throw new Error("Invalid style.root key: "+f);if("string"!=typeof a[f])throw new TypeError("Expected style.root."+f+" to be a string")}}if(null!=e.component){te(e.component,"style.component");for(var l=e.component,s=0,d=Object.keys(l);s<d.length;s++){var p=d[s];if(!re.has(p))throw new Error("Invalid style.component key: "+p);if("string"!=typeof l[p])throw new TypeError("Expected style.component."+p+" to be a string")}}if(null!=e.layout){te(e.layout,"style.layout");for(var F=e.layout,y=0,h=Object.keys(F);y<h.length;y++){var m=h[y],v=ee[m];if(!v)throw new Error("Invalid style.layout key: "+m);if(typeof F[m]!==v)throw new TypeError("Expected style.layout."+m+" to be a "+v+", got: "+F[m])}}}}(null==r?void 0:r.style)}var oe={backgroundColor:"transparent",fontFamily:"Arial, sans-serif",textColorBase:"#000000",fontSizeBase:"16px",primaryColor:"#000000"},ie={height:"32px",padding:"6px 9px",borderRadius:"6px",borderColor:"transparent",borderWidth:"0"},ae={logo:!0,label:!0,message:!0,logoWidth:"45px",logoLabelGap:"12px",labelFiGap:"8px",labelFontSize:"16px",fiTextFontSize:"14px",iconSize:"28px"};function ce(r){var e,t=r.nonce,o={root:n({},oe,(e=r.style||{}).root||{}),component:n({},ie,e.component||{}),layout:n({},ae,e.layout||{})},i=Boolean(o.layout.message);return p("div",null,p("style",{nonce:t},"\n body {\n margin: 0;\n }\n * {\n box-sizing: border-box;\n }\n .saved-payment-methods-container {\n background-color: "+o.root.backgroundColor+";\n font-family: "+o.root.fontFamily+";\n color: "+o.root.textColorBase+";\n font-size: "+o.root.fontSizeBase+";\n display: flex;\n align-items: center;\n min-width: 0;\n }\n\n .spm-content {\n min-width: 0;\n }\n\n .spm-label {\n font-size: "+o.layout.labelFontSize+";\n font-weight: 600;\n color: #222222;\n margin-right: "+o.layout.labelFiGap+";\n }\n\n .spm-logo {\n width: "+o.layout.logoWidth+";\n margin-right: "+o.layout.logoLabelGap+";\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n }\n\n .spm-logo-frame {\n aspect-ratio: 1.5;\n width: 100%;\n height: 100%;\n min-width: 0;\n min-height: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n border: 1.2px solid #CCCCCC;\n border-radius: 2px;\n }\n\n .spm-logo-frame img {\n width: 100%;\n height: 100%;\n object-fit: contain;\n }\n\n #spm-app-root {\n display: contents;\n }\n\n .spm-tag {\n display: flex;\n height: "+o.component.height+";\n align-items: center;\n justify-content: space-between;\n background-color: #F5F7FA;\n padding: "+o.component.padding+";\n border-radius: "+o.component.borderRadius+";\n border-width: "+o.component.borderWidth+";\n border-color: "+o.component.borderColor+";\n border-style: solid;\n gap: 8px;\n min-width: 0;\n max-width: 100%;\n cursor: pointer;\n }\n\n .spm-tag-label {\n font-size: "+o.layout.fiTextFontSize+";\n font-weight: 400;\n color: #000000;\n white-space: nowrap;\n }\n\n .spm-tag-label-fallback {\n display: flex;\n align-items: center;\n min-width: 0;\n }\n\n .spm-tag-label-email {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: inline-block;\n }\n\n .spm-tag-label-separator {\n flex: 0 0 auto;\n margin: 0 4px;\n }\n\n .spm-tag-label-pay-in-full {\n flex: 0 0 auto;\n white-space: nowrap;\n }\n\n .spm-tag-card-icon {\n width: "+o.layout.iconSize+";\n border-radius: 4px;\n }\n\n .spm-tag-edit-button svg path {\n fill: "+o.root.primaryColor+";\n }\n\n .spm-message {\n height: 35px;\n margin-top: 6px;\n "+(o.layout.logo?"\n margin-left: calc("+o.layout.logoWidth+" + "+o.layout.logoLabelGap+");\n ":"")+"\n }\n\n .spm-tag-loading {\n display: flex;\n height: "+o.component.height+";\n align-items: center;\n justify-content: space-between;\n background: linear-gradient(to right, #ffffff, #F5F7FA);\n padding: "+o.component.padding+";\n border-radius: "+o.component.borderRadius+";\n border-width: "+o.component.borderWidth+";\n border-color: "+o.component.borderColor+";\n border-style: solid;\n gap: 8px;\n min-width: 124px;\n max-width: 100%;\n }\n\n .spm-tag-loading.spm-tag-loading--hidden {\n display: none !important;\n }\n "),p("div",{class:"saved-payment-methods-container"},p("div",{class:"spm-content"},p("div",{class:"saved-payment-methods-container"},o.layout.logo&&p("div",{class:"spm-logo","aria-hidden":"true"},p("div",{class:"spm-logo-frame"},p(Xr,null))),o.layout.label&&p("div",{class:"spm-label"},"PayPal"),p("div",{id:"spm-app-root"},p("div",{class:"spm-tag-loading"}))),i&&p("div",{id:"spm-message-root",class:"spm-message","aria-hidden":"true"}))))}}]);
|