@stigg/embed-sdk 6.9.0 → 6.11.0
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/embed-sdk.chunk.js +1 -1
- package/dist/embed-sdk.js +510 -242
- package/dist/embed-sdk.js.map +1 -1
- package/package.json +2 -2
package/dist/embed-sdk.chunk.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(window.webpackJsonpStigg=window.webpackJsonpStigg||[]).push([[1],{
|
|
1
|
+
(window.webpackJsonpStigg=window.webpackJsonpStigg||[]).push([[1],{659:function(e,n,r){"use strict";r.r(n),r.d(n,"loadStripe",(function(){return l}));var t="https://js.stripe.com/v3",i=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,o="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",a=null,c=function(e){return null!==a?a:a=new Promise((function(n,r){if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(o),window.Stripe)n(window.Stripe);else try{var a=function(){for(var e=document.querySelectorAll('script[src^="'.concat(t,'"]')),n=0;n<e.length;n++){var r=e[n];if(i.test(r.src))return r}return null}();a&&e?console.warn(o):a||(a=function(e){var n=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src="".concat(t).concat(n);var i=document.head||document.body;if(!i)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return i.appendChild(r),r}(e)),a.addEventListener("load",(function(){window.Stripe?n(window.Stripe):r(new Error("Stripe.js not available"))})),a.addEventListener("error",(function(){r(new Error("Failed to load Stripe.js"))}))}catch(e){return void r(e)}else n(null)}))},s=function(e,n,r){if(null===e)return null;var t=e.apply(void 0,n);return function(e,n){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.54.2",startTime:n})}(t,r),t},u=Promise.resolve().then((function(){return c(null)})),d=!1;u.catch((function(e){d||console.warn(e)}));var l=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];d=!0;var t=Date.now();return u.then((function(e){return s(e,n,t)}))}}}]);
|
|
2
2
|
//# sourceMappingURL=embed-sdk.chunk.js.map
|