PageSourceSearch

https://www.flexcar.com/cdn/cfa/2e78d02448ce171af7eba8f9e07412422d12edd3/assets/use-stripe-config-AXWDg3qt.js

js flexcar.com collected 2026-10-01 12:04:20 UTC 2,981 bytes, 6 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2f58b4a4-e1a7-5716-b12a-0576d7c7344a")}catch(e){}}();
3import{r as w}from"./chunk-62JRHF6Z-Cg50Stu2.js";var f="clover",h=function(r){return r===3?"v3":r},m="https://js.stripe.com",j="".concat(m,"/").concat(f,"/stripe.js"),L=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,R=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/;var g=function(r){return L.test(r)||R.test(r)},P=function(){for(var r=document.querySelectorAll('script[src^="'.concat(m,'"]')),e=0;e<r.length;e++){var t=r[e];if(g(t.src))return t}return null},v=function(r){var e="",t=document.createElement("script");t.src="".concat(j).concat(e);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(t),t},T=function(r,e){!r||!r._registerWrapper||r._registerWrapper({name:"stripe-js",version:"8.5.3",startTime:e})},a=null,c=null,l=null,x=function(r){return function(e){r(new Error("Failed to load Stripe.js",{cause:e}))}},y=function(r,e){return function(){window.Stripe?r(window.Stripe):e(new Error("Stripe.js not available"))}},I=function(r){return a!==null?a:(a=new Promise(function(e,t){if(typeof window>"u"||typeof document>"u"){e(null);return}if(window.Stripe){e(window.Stripe);return}try{var n=P();if(!(n&&r)){if(!n)n=v(r);else if(n&&l!==null&&c!==null){var o;n.removeEventListener("load",l),n.removeEventListener("error",c),(o=n.parentNode)===null||o===void 0||o.removeChild(n),n=v(r)}}l=y(e,t),c=x(t),n.addEventListener("load",l),n.addEventListener("error",c)}catch(u){t(u);return}}),a.catch(function(e){return a=null,Promise.reject(e)}))},U=function(r,e,t){if(r===null)return null;var n=e[0],o=n.match(/^pk_test/),u=h(r.version),d=f;o&&u!==d&&console.warn("Stripe.js@".concat(u," was loaded on the page, but @stripe/stripe-js@").concat("8.5.3"," expected Stripe.js@").concat(d,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var p=r.apply(void 0,e);return T(p,t),p},s,S=!1,E=function(){return s||(s=I(null).catch(function(r){return s=null,Promise.reject(r)}),s)};Promise.resolve().then(function(){return E()}).catch(function(i){S||console.warn(i)});var _=function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];S=!0;var n=Date.now();return E().then(function(o){return U(o,e,n)})};function b({publishableKey:i,customerSessionClientSecret:r,availablePaymentMethods:e=["card"]}){const t=w.useRef(null);if(!(!i||!r))return t.current||(t.current=_(i)),{stripePromise:t.current,customerSessionClientSecret:r,availablePaymentMethods:e}}export{b as u};
4//# sourceMappingURL=use-stripe-config-AXWDg3qt.js.map
5
6//# debugId=2f58b4a4-e1a7-5716-b12a-0576d7c7344a

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.