PageSourceSearch

https://app.alitu.com/npm.stripe-8584e52c66bab09b54b7.bundle.js

js alitu.com collected 2026-09-24 08:48:27 UTC 12,825 bytes, 2 lines download raw bytes

vendor: 6,424 bytes, line 1
1"use strict";(self.webpackChunkalitu_frontend=self.webpackChunkalitu_frontend||[]).push([[8079],{7547(e,t,n){n.d(t,{H1:()=>M,HH:()=>O,He:()=>L,S8:()=>C,t2:()=>I});var r=n(96540),o=n(5556);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f=function(e,t,n){var o=!!n,i=r.useRef(n);r.useEffect((function(){i.current=n}),[n]),r.useEffect((function(){if(!o||!e)return function(){};var n=function(){if(i.current)return i.current.apply(i,arguments)};return e.on(t,n),function(){e.off(t,n)}}),[o,t,e,i])},d=function(e){var t=r.useRef(e);return r.useEffect((function(){t.current=e}),[e]),t.current},m=function(e){return null!==e&&"object"===c(e)},y="[object Object]",h=function e(t,n){if(!m(t)||!m(n))return t===n;var r=Array.isArray(t);if(r!==Array.isArray(n))return!1;var o=Object.prototype.toString.call(t)===y;if(o!==(Object.prototype.toString.call(n)===y))return!1;if(!o&&!r)return t===n;var i=Object.keys(t),a=Object.keys(n);if(i.length!==a.length)return!1;for(var c={},u=0;u<i.length;u+=1)c[i[u]]=!0;for(var s=0;s<a.length;s+=1)c[a[s]]=!0;var l=Object.keys(c);if(l.length!==i.length)return!1;var p=t,f=n;return l.every((function(t){return e(p[t],f[t])}))},v=function(e,t,n){return m(e)?Object.keys(e).reduce((function(r,o){var i=!m(t)||!h(e[o],t[o]);return n.includes(o)?(i&&console.warn("Unsupported prop change: options.".concat(o," is not a mutable property.")),r):i?a(a({},r||{}),{},u({},o,e[o])):r}),null):null},g="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",b=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;if(null===e||m(t=e)&&"function"==typeof t.elements&&"function"==typeof t.createToken&&"function"==typeof t.createPaymentMethod&&"function"==typeof t.confirmCardPayment)return e;throw new Error(n)},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g;if(function(e){return m(e)&&"function"==typeof e.then}(e))return{tag:"async",stripePromise:Promise.resolve(e).then((function(e){return b(e,t)}))};var n=b(e,t);return null===n?{tag:"empty"}:{tag:"sync",stripe:n}},S=function(e){e&&e._registerWrapper&&e.registerAppInfo&&(e._registerWrapper({name:"react-stripe-js",version:"6.6.0"}),e.registerAppInfo({name:"react-stripe-js",version:"6.6.0",url:"https://stripe.com/docs/stripe-js/react"}))},E=r.createContext(null);E.displayName="ElementsContext";var j=function(e,t){if(!e)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(t," in an <Elements> provider."));return e},C=function(e){var t=e.stripe,n=e.options,o=e.children,i=r.useMemo((function(){return w(t)}),[t]),a=l(r.useState((function(){return{stripe:"sync"===i.tag?i.stripe:null,elements:"sync"===i.tag?i.stripe.elements(n):null}})),2),c=a[0],u=a[1];r.useEffect((function(){var e=!0,t=function(e){u((function(t){return t.stripe?t:{stripe:e,elements:e.elements(n)}}))};return"async"!==i.tag||c.stripe?"sync"!==i.tag||c.stripe||t(i.stripe):i.stripePromise.then((function(n){n&&e&&t(n)})),function(){e=!1}}),[i,c,n]);var s=d(t);r.useEffect((function(){null!==s&&s!==t&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")}),[s,t]);var p=d(n);return r.useEffect((function(){if(c.elements){var e=v(n,p,["clientSecret","fonts"]);e&&c.elements.update(e)}}),[n,p,c.elements]),r.useEffect((function(){S(c.stripe)}),[c.stripe]),r.createElement(E.Provider,{value:c},o)};C.propTypes={stripe:o.any,options:o.object};var k=function(e){var t=r.useContext(E);return j(t,e)},O=function(){return k("calls useElements()").elements};o.func.isRequired;var P=r.createContext(null);P.displayName="CheckoutContext";var x=function(e){var t=r.useContext(P),n=r.useContext(E);if(t){if(n)throw new Error("You cannot wrap the part of your app that ".concat(e," in both a checkout provider and <Elements> provider."));return t}return j(n,e)},A=["mode"],N=function(e,t,n){var i,a="".concat((i=e).charAt(0).toUpperCase()+i.slice(1),"Element"),c=t?function(e){x("mounts <".concat(a,">"));var t=e.id,n=e.className;return r.createElement("div",{id:t,className:n})}
1:function(t){var n,o=t.id,i=t.className,c=t.options,u=void 0===c?{}:c,p=t.onBlur,m=t.onFocus,y=t.onReady,h=t.onChange,g=t.onEscape,b=t.onClick,w=t.onLoadError,S=t.onLoaderStart,E=t.onNetworksChange,j=t.onConfirm,C=t.onCancel,k=t.onShippingAddressChange,O=t.onShippingRateChange,P=t.onSavedPaymentMethodRemove,N=t.onSavedPaymentMethodUpdate,R=t.onAvailablePaymentMethodsChange,D=x("mounts <".concat(a,">")),I="elements"in D?D.elements:null,L="checkoutState"in D?D.checkoutState:null,M="success"===(null==L?void 0:L.type)||"loading"===(null==L?void 0:L.type)?L.sdk:null,_=l(r.useState(null),2),F=_[0],T=_[1],U=r.useRef(null),B=r.useRef(null);f(F,"blur",p),f(F,"focus",m),f(F,"escape",g),f(F,"click",b),f(F,"loaderror",w),f(F,"loaderstart",S),f(F,"networkschange",E),f(F,"confirm",j),f(F,"cancel",C),f(F,"shippingaddresschange",k),f(F,"shippingratechange",O),f(F,"savedpaymentmethodremove",P),f(F,"savedpaymentmethodupdate",N),f(F,"availablepaymentmethodschange",R),f(F,"change",h),y&&(n="expressCheckout"===e?y:function(){y(F)}),f(F,"ready",n),r.useLayoutEffect((function(){if(null===U.current&&null!==B.current&&(I||M)){var t=null;if(M){var n=M,r=M;switch(e){case"paymentForm":t=r.createForm(u);break;case"payment":t=n.createPaymentElement(u);break;case"address":if(!("mode"in u))throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");var o=u.mode,i=s(u,A);if("shipping"===o)t=n.createShippingAddressElement(i);else{if("billing"!==o)throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.");t=n.createBillingAddressElement(i)}break;case"expressCheckout":t=n.createExpressCheckoutElement(u);break;case"currencySelector":t=M.createCurrencySelectorElement();break;case"taxId":t=n.createTaxIdElement(u);break;case"contactDetails":t=n.createContactDetailsElement();break;default:throw new Error("<".concat(a,"> is not supported inside a checkout provider. Use an <Elements> provider instead."))}}else I&&(t=I.create(e,u));U.current=t,T(t),t&&t.mount(B.current)}}),[I,M,u]);var q=d(u);return r.useEffect((function(){if(U.current){var e=v(u,q,["paymentRequest"]);e&&"update"in U.current&&U.current.update(e)}}),[u,q]),r.useLayoutEffect((function(){return function(){if(U.current&&"function"==typeof U.current.destroy)try{U.current.destroy(),U.current=null}catch(e){}}}),[]),r.createElement("div",{id:o,className:i,ref:B})};return c.propTypes={id:o.string,className:o.string,onChange:o.func,onBlur:o.func,onFocus:o.func,onReady:o.func,onEscape:o.func,onClick:o.func,onLoadError:o.func,onLoaderStart:o.func,onNetworksChange:o.func,onConfirm:o.func,onCancel:o.func,onShippingAddressChange:o.func,onShippingRateChange:o.func,onSavedPaymentMethodRemove:o.func,onSavedPaymentMethodUpdate:o.func,onAvailablePaymentMethodsChange:o.func,options:o.object},c.displayName=a,c.__elementType=e,c},R="undefined"==typeof window,D=r.createContext(null);D.displayName="EmbeddedCheckoutProviderContext";var I=function(){return x("calls useStripe()").stripe},L=(N("auBankAccount",R),N("card",R),N("cardNumber",R),N("cardExpiry",R),N("cardCvc",R),N("currencySelector",R),N("iban",R),N("payment",R)),M=(N("expressCheckout",R),N("paymentRequestButton",R),N("linkAuthentication",R),N("contactDetails",R),N("address",R));N("shippingAddress",R),N("paymentMethodMessaging",R),N("taxId",R),N("issuingCardNumberDisplay",R),N("issuingCardCvcDisplay",R),N("issuingCardExpiryDisplay",R),N("issuingCardPinDisplay",R),N("issuingCardCopyButton",R)},22037(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{c:()=>g});var o,i="dahlia",a="https://js.stripe.com",c="".concat(a,"/").concat(i,"/stripe.js"),u=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,s=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,l="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",p=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(c).concat(t);var r=document.head||document.body;if(!r)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return r.appendChild(n),n},f=null,d=null,m=null,y=function(e){return null!==f?f:(f=new Promise((function(t,n){if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(l),window.Stripe)t(window.Stripe);else try{var r=function(){for(var e,t=document.querySelectorAll('script[src^="'.concat(a,'"]')),n=0;n<t.length;n++){var r=t[n];if(e=r.src,u.test(e)||s.test(e))return r}return null}();if(r&&e)console.warn(l);else if(r){if(r&&null!==m&&null!==d){var o;r.removeEventListener("load",m),r.removeEventListener("error",d),null===(o=r.parentNode)||void 0===o||o.removeChild(r),r=p(e)}}else r=p(e);m=function(e,t){return function(){window.Stripe?e(window.Stripe):t(new Error("Stripe.js not available"))}}(t,n),d=function(e){return function(t){e(new Error("Failed to load Stripe.js",{cause:t}))}}(n),r.addEventListener("load",m),r.addEventListener("error",d)}catch(e){return void n(e)}else t(null)}))).catch((function(e){return f=null,Promise.reject(e)}))}
1,h=!1,v=function(){return o||(o=y(null).catch((function(e){return o=null,Promise.reject(e)})))};Promise.resolve().then((function(){return v()})).catch((function(e){h||console.warn(e)}));var g=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];h=!0;var o=Date.now();return v().then((function(e){return function(e,t,n){if(null===e)return null;var o=t[0];if("string"!=typeof o)throw new Error("Expected publishable key to be of type string, got type ".concat(r(o)," instead."));var a=o.match(/^pk_test/),c=function(e){return 3===e?"v3":e}(e.version),u=i;a&&c!==u&&console.warn("Stripe.js@".concat(c," was loaded on the page, but @stripe/stripe-js@").concat("9.8.0"," expected Stripe.js@").concat(u,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var s=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"9.8.0",startTime:t})}(s,n),s}(e,t,o)}))}}}]);
2//# sourceMappingURL=npm.stripe-8584e52c66bab09b54b7.bundle.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.