PageSourceSearch

https://www.stacyweitzminch.com/build/assets/stripe-CVmW8fJ3.js

js stacyweitzminch.com collected 2026-10-06 06:10:07 UTC 13,975 bytes, 9 lines download raw bytes

vendor: 4,305 bytes, lines 1-8
1import{g as Pe,R as u}from"./react-vendor-SL-tRHvC.js";var ee={exports:{}},ke="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",xe=ke,we=xe;function te(){}function re(){}re.resetWarningCache=te;var Oe=function(){function r(n,o,a,s,d,i){if(i!==we){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function e(){return r}var t={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:e,element:r,elementType:r,instanceOf:e,node:r,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:re,resetWarningCache:te};return t.PropTypes=t,t};ee.exports=Oe();var Re=ee.exports;const c=Pe(Re);function _(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(e){return typeof e}:_=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(r)}var ne="acacia",je=function(e){return e===3?"v3":e},oe="https://js.stripe.com",Te="".concat(oe,"/").concat(ne,"/stripe.js"),Ae=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,Le=/^https:\/\/js\.stripe\.com\/(v3|[a-z]+)\/stripe\.js(\?.*)?$/,V="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",_e=function(e){return Ae.test(e)||Le.test(e)},Ie=function(){for(var e=document.querySelectorAll('script[src^="'.concat(oe,'"]')),t=0;t<e.length;t++){var n=e[t];if(_e(n.src))return n}return null},G=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(Te).concat(t);var o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(n),n},Ne=function(e,t){!e||!e._registerWrapper||e._registerWrapper({name:"stripe-js",version:"6.1.0",startTime:t})},O=null,A=null,L=null,Ue=function(e){return function(t){e(new Error("Failed to load Stripe.js",{cause:t}))}},We=function(e,t){return function(){window.Stripe?e(window.Stripe):t(new Error("Stripe.js not available"))}},Me=function(e){return O!==null?O:(O=new Promise(function(t,n){if(typeof window>"u"||typeof document>"u"){t(null);return}if(window.Stripe&&e&&console.warn(V),window.Stripe){t(window.Stripe);return}try{var o=Ie();if(o&&e)console.warn(V);else if(!o)o=G(e);else if(o&&L!==null&&A!==null){var a;o.removeEventListener("load",L),o.removeEventListener("error",A),(a=o.parentNode)===null||a===void 0||a.removeChild(o),o=G(e)}L=We(t,n),A=Ue(n),o.addEventListener("load",L),o.addEventListener("error",A)}catch(s){n(s);return}}),O.catch(function(t){return O=null,Promise.reject(t)}))},Fe=function(e,t,n){if(e===null)return null;var o=t[0],a=o.match(/^pk_test/),s=je(e.version),d=ne;a&&s!==d&&console.warn("Stripe.js@".concat(s," was loaded on the page, but @stripe/stripe-js@").concat("6.1.0"," expected Stripe.js@").concat(d,". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));var i=e.apply(void 0,t);return Ne(i,n),i},K=function(e){var t=`invalid load parameters; expected object of shape
2
3    {advancedFraudSignals: boolean}
4
5but received
6
7    `.concat(JSON.stringify(e),`
8`);if(e===null||_(e)!=="object")throw new Error(t);if(Object.keys(e).length===1&&typeof e.advancedFraudSignals=="boolean")return e;throw new Error(t)},I,F=!1,Be=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];F=!0;var o=Date.now();return Me(I).then(function(a){return Fe(a,t,o)})};Be.setLoadParameters=function(r){if(F&&I){var e=K(r),t=Object.keys(e),n=t.reduce(function(o,a){var s;return o&&r[a]===((s=I)===null||s===void 0?void 0:s[a])},!0);if(n)return}if(F)throw new Error("You cannot change load parameters after calling loadStripe");I=K(r)};function z(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),t.push.apply(t,n)}return t}function X(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};
vendor: 4,427 bytes, lines 8-9
8e%2?z(Object(t),!0).forEach(function(n){ae(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):z(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function N(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?N=function(e){return typeof e}:N=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(r)}function ae(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function qe(r,e){if(r==null)return{};var t={},n=Object.keys(r),o,a;for(a=0;a<n.length;a++)o=n[a],!(e.indexOf(o)>=0)&&(t[o]=r[o]);return t}function De(r,e){if(r==null)return{};var t=qe(r,e),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);for(o=0;o<a.length;o++)n=a[o],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(t[n]=r[n])}return t}function ie(r,e){return $e(r)||Je(r,e)||Ye(r,e)||Ve()}function $e(r){if(Array.isArray(r))return r}function Je(r,e){var t=r&&(typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"]);if(t!=null){var n=[],o=!0,a=!1,s,d;try{for(t=t.call(r);!(o=(s=t.next()).done)&&(n.push(s.value),!(e&&n.length===e));o=!0);}catch(i){a=!0,d=i}finally{try{!o&&t.return!=null&&t.return()}finally{if(a)throw d}}return n}}function Ye(r,e){if(r){if(typeof r=="string")return H(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return H(r,e)}}function H(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function Ve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
9In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var y=function(e,t,n){var o=!!n,a=u.useRef(n);u.useEffect(function(){a.current=n},[n]),u.useEffect(function(){if(!o||!e)return function(){};var s=function(){a.current&&a.current.apply(a,arguments)};return e.on(t,s),function(){e.off(t,s)}},[o,t,e,a])},B=function(e){var t=u.useRef(e);return u.useEffect(function(){t.current=e},[e]),t.current},x=function(e){return e!==null&&N(e)==="object"},Ge=function(e){return x(e)&&typeof e.then=="function"},Ke=function(e){return x(e)&&typeof e.elements=="function"&&typeof e.createToken=="function"&&typeof e.createPaymentMethod=="function"&&typeof e.confirmCardPayment=="function"},Q="[object Object]",ze=function r(e,t){if(!x(e)||!x(t))return e===t;var n=Array.isArray(e),o=Array.isArray(t);if(n!==o)return!1;var a=Object.prototype.toString.call(e)===Q,s=Object.prototype.toString.call(t)===Q;if(a!==s)return!1;if(!a&&!n)return e===t;var d=Object.keys(e),i=Object.keys(t);if(d.length!==i.length)return!1;for(var h={},S=0;S<d.length;S+=1)h[d[S]]=!0;for(var g=0;g<i.length;g+=1)h[i[g]]=!0;var f=Object.keys(h);if(f.length!==d.length)return!1;var k=e,P=t,C=function(R){return r(k[R],P[R])};return f.every(C)},se=function(e,t,n){return x(e)?Object.keys(e).reduce(function(o,a){var s=!x(t)||!ze(e[a],t[a]);return n.includes(a)?(s&&console.warn("Unsupported prop change: options.".concat(a," is not a mutable property.")),o):s?X(X({},o||{}),{},ae({},a,e[a])):o},null):null},ue="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.",Z=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ue;if(e===null||Ke(e))return e;throw new Error(t)},Xe=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ue;if(Ge(e))return{tag:"async",stripePromise:Promise.resolve(e).then(function(o){return Z(o,t)})};var n=Z(e,t);return n===null?{tag:"empty"}:{tag:"sync",stripe:n}},He=function(e){!e||!e._registerWrapper||!e.registerAppInfo||(e._registerWrapper({name:"react-stripe-js",version:"3.10.0"}),e.registerAppInfo({name:"react-stripe-js",version:"3.10.0",url:"https://stripe.com/docs/stripe-js/react"}))},U=u.createContext(null);U.displayName="ElementsContext";var ce=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}
9,Qe=function(e){var t=e.stripe,n=e.options,o=e.children,a=u.useMemo(function(){return Xe(t)},[t]),s=u.useState(function(){return{stripe:a.tag==="sync"?a.stripe:null,elements:a.tag==="sync"?a.stripe.elements(n):null}}),d=ie(s,2),i=d[0],h=d[1];u.useEffect(function(){var f=!0,k=function(C){h(function(w){return w.stripe?w:{stripe:C,elements:C.elements(n)}})};return a.tag==="async"&&!i.stripe?a.stripePromise.then(function(P){P&&f&&k(P)}):a.tag==="sync"&&!i.stripe&&k(a.stripe),function(){f=!1}},[a,i,n]);var S=B(t);u.useEffect(function(){S!==null&&S!==t&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[S,t]);var g=B(n);return u.useEffect(function(){if(i.elements){var f=se(n,g,["clientSecret","fonts"]);f&&i.elements.update(f)}},[n,g,i.elements]),u.useEffect(function(){He(i.stripe)},[i.stripe]),u.createElement(U.Provider,{value:i},o)};Qe.propTypes={stripe:c.any,options:c.object};var Ze=function(e){var t=u.useContext(U);return ce(t,e)},it=function(){var e=Ze("calls useElements()"),t=e.elements;return t};c.func.isRequired;var le=u.createContext(null);le.displayName="CheckoutSdkContext";var et=function(e,t){if(!e)throw new Error("Could not find CheckoutProvider context; You need to wrap the part of your app that ".concat(t," in an <CheckoutProvider> provider."));return e},tt=u.createContext(null);tt.displayName="CheckoutContext";c.any,c.shape({fetchClientSecret:c.func.isRequired,elementsOptions:c.object}).isRequired;var q=function(e){var t=u.useContext(le),n=u.useContext(U);if(t&&n)throw new Error("You cannot wrap the part of your app that ".concat(e," in both <CheckoutProvider> and <Elements> providers."));return t?et(t,e):ce(n,e)},rt=["mode"],nt=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},l=function(e,t){var n="".concat(nt(e),"Element"),o=function(i){var h=i.id,S=i.className,g=i.options,f=g===void 0?{}:g,k=i.onBlur,P=i.onFocus,C=i.onReady,w=i.onChange,R=i.onEscape,pe=i.onClick,fe=i.onLoadError,de=i.onLoaderStart,ve=i.onNetworksChange,me=i.onConfirm,ye=i.onCancel,he=i.onShippingAddressChange,Se=i.onShippingRateChange,ge=i.onSavedPaymentMethodRemove,Ee=i.onSavedPaymentMethodUpdate,j=q("mounts <".concat(n,">")),T="elements"in j?j.elements:null,E="checkoutSdk"in j?j.checkoutSdk:null,be=u.useState(null),D=ie(be,2),v=D[0],Ce=D[1],b=u.useRef(null),W=u.useRef(null);y(v,"blur",k),y(v,"focus",P),y(v,"escape",R),y(v,"click",pe),y(v,"loaderror",fe),y(v,"loaderstart",de),y(v,"networkschange",ve),y(v,"confirm",me),y(v,"cancel",ye),y(v,"shippingaddresschange",he),y(v,"shippingratechange",Se),y(v,"savedpaymentmethodremove",ge),y(v,"savedpaymentmethodupdate",Ee),y(v,"change",w);var M;C&&(e==="expressCheckout"?M=C:M=function(){C(v)}),y(v,"ready",M),u.useLayoutEffect(function(){if(b.current===null&&W.current!==null&&(T||E)){var m=null;if(E)switch(e){case"payment":m=E.createPaymentElement(f);break;case"address":if("mode"in f){var J=f.mode,Y=De(f,rt);if(J==="shipping")m=E.createShippingAddressElement(Y);else if(J==="billing")m=E.createBillingAddressElement(Y);else throw new Error("Invalid options.mode. mode must be 'billing' or 'shipping'.")}else throw new Error("You must supply options.mode. mode must be 'billing' or 'shipping'.");break;case"expressCheckout":m=E.createExpressCheckoutElement(f);break;case"currencySelector":m=E.createCurrencySelectorElement();break;case"taxId":m=E.createTaxIdElement(f);break;default:throw new Error("Invalid Element type ".concat(n,". You must use either the <PaymentElement />, <AddressElement options={{mode: 'shipping'}} />, <AddressElement options={{mode: 'billing'}} />, or <ExpressCheckoutElement />."))}else T&&(m=T.create(e,f));b.current=m,Ce(m),m&&m.mount(W.current)}},[T,E,f]);var $=B(f);return u.useEffect(function(){if(b.current){var m=se(f,$,["paymentRequest"]);m&&"update"in b.current&&b.current.update(m)}},[f,$]),u.useLayoutEffect(function(){return function(){if(b.current&&typeof b.current.destroy=="function")try{b.current.destroy(),b.current=null}catch{}}},[]),u.createElement("div",{id:h,className:S,ref:W})},a=function(i){q("mounts <".concat(n,">"));var h=i.id,S=i.className;return u.createElement("div",{id:h,className:S})},s=t?a:o;return s.propTypes={id:c.string,className:c.string,onChange:c.func,onBlur:c.func,onFocus:c.func,onReady:c.func,onEscape:c.func,onClick:c.func,onLoadError:c.func,onLoaderStart:c.func,onNetworksChange:c.func,onConfirm:c.func,onCancel:c.func,onShippingAddressChange:c.func,onShippingRateChange:c.func,onSavedPaymentMethodRemove:c.func,onSavedPaymentMethodUpdate:c.func,options:c.object},s.displayName=n,s.__elementType=e,s},p=typeof window>"u",ot=u.createContext(null);ot.displayName="EmbeddedCheckoutProviderContext";var st=function(){var e=q("calls useStripe()"),t=e.stripe;return t};l("auBankAccount",p);var ut=l("card",p);l("cardNumber",p);l("cardExpiry",p);l("cardCvc",p);l("fpxBank",p);l("iban",p);l("idealBank",p);l("p24Bank",p);l("epsBank",p);l("payment",p);l("expressCheckout",p);l("currencySelector",p);l("paymentRequestButton",p);l("linkAuthentication",p);l("address",p);l("shippingAddress",p);l("paymentMethodMessaging",p);l("affirmMessage",p);l("afterpayClearpayMessage",p);l("taxId",p);export{ut as C,Qe as E,c as P,it as a,Be as l,st as u};

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.