"use strict";(self.webpackChunkRnwTamaroCore=self.webpackChunkRnwTamaroCore||[]).push([[611],{aEee:function(e,t,r){function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}r.d(t,{loadStripe:function(){return w}}),r("XRaS"),r("uf56"),r("ZTmD"),r("PDdz"),r("9FtE"),r("M8Ir"),r("kBiU"),r("pkfF"),r("t/wb"),r("2CTI"),r("Wy/K"),r("jPNE"),r("fLqf"),r("wHq1");var n,o="dahlia",i="https://js.stripe.com",s="".concat(i,"/").concat(o,"/stripe.js"),a=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,c=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,u="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",l=function isStripeJSURL(e){return a.test(e)||c.test(e)},p=function injectScript(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(s).concat(t);var n=document.head||document.body;if(!n)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return n.appendChild(r),r},d=null,f=null,m=null,y=!1,v=function getStripePromise(){return n||(n=function loadScript(e){return null!==d?d:(d=new Promise(function(t,r){if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(u),window.Stripe)t(window.Stripe);else try{var n=function findScript(){for(var e=document.querySelectorAll('script[src^="'.concat(i,'"]')),t=0;t<e.length;t++){var r=e[t];if(l(r.src))return r}return null}();if(n&&e)console.warn(u);else if(n){if(n&&null!==m&&null!==f){var o;n.removeEventListener("load",m),n.removeEventListener("error",f),null===(o=n.parentNode)||void 0===o||o.removeChild(n),n=p(e)}}else n=p(e);m=function onLoad(e,t){return function(){window.Stripe?e(window.Stripe):t(new Error("Stripe.js not available"))}}(t,r),f=function onError(e){return function(t){e(new Error("Failed to load Stripe.js",{cause:t}))}}(r),n.addEventListener("load",m),n.addEventListener("error",f)}catch(e){return void r(e)}else t(null)})).catch(function(e){return d=null,Promise.reject(e)})}(null).catch(function(e){return n=null,Promise.reject(e)}))};Promise.resolve().then(function(){return v()}).catch(function(e){y||console.warn(e)});var w=function loadStripe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];y=!0;var n=Date.now();return v().then(function(e){return function initStripe(e,t,r){if(null===e)return null;var n=t[0];if("string"!=typeof n)throw new Error("Expected publishable key to be of type string, got type ".concat(_typeof(n)," instead."));var i=n.match(/^pk_test/),s=function runtimeVersionToUrlVersion(e){return 3===e?"v3":e}(e.version),a=o;i&&s!==a&&console.warn("Stripe.js@".concat(s," was loaded on the page, but @stripe/stripe-js@").concat("9.6.0"," expected Stripe.js@").concat(a,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var c=e.apply(void 0,t);return function registerWrapper(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"9.6.0",startTime:t})}(c,r),c}(e,t,n)})}}}]);