2026-08-08 06:10:11 +00:00
// Module ID: 4627
// Function ID: 4628
2026-07-29 08:29:29 +00:00
// Name: t
// Dependencies: [19]
2026-08-08 06:10:11 +00:00
// Module 4627 (t)
2026-07-29 08:29:29 +00:00
let fn = function t ( exports , React ) {
let c0 = React ;
let emptyFunction = function _objectSpread2 ( prototype ) {
let closure _0 = prototype ;
for ( let num = 1 ; num < arguments . length ; num = num + 1 ) {
let tmp = num ;
let tmp2 = null != arguments [ num ] ? arguments [ num ] : { } ;
let emptyFunction = tmp2 ;
let _Object = Object ;
if ( num % 2 ) {
let _ObjectResult = _Object ( tmp2 ) ;
closure _0 = _ObjectResult ;
let _Object7 = Object ;
let keys = Object . keys ( _ObjectResult ) ;
let _Object8 = Object ;
if ( Object . getOwnPropertySymbols ) {
let _Object9 = Object ;
let ownPropertySymbols = Object . getOwnPropertySymbols ( _ObjectResult ) ;
let push2 = keys . push ;
let applyResult = push2 . apply ( keys , ownPropertySymbols . filter ( ( arg0 ) => Object . getOwnPropertyDescriptor ( closure _0 , arg0 ) . enumerable ) ) ;
}
let item = keys . forEach ( ( arg0 ) => {
if ( arg0 in closure _0 ) {
const _Object = Object ;
const obj = { value : null , enumerable : true , configurable : true , writable : true } ;
obj [ 0 ] = tmp2 ;
Object . defineProperty ( tmp , arg0 , obj ) ;
} else {
tmp [ arg0 ] = tmp2 ;
}
} ) ;
} else {
let _Object2 = Object ;
if ( _Object . getOwnPropertyDescriptors ) {
let _Object6 = Object ;
let definePropertiesResult = _Object2 . defineProperties ( prototype , Object . getOwnPropertyDescriptors ( tmp2 ) ) ;
} else {
let _Object2Result = _Object2 ( tmp2 ) ;
closure _0 = _Object2Result ;
let _Object3 = Object ;
let keys1 = Object . keys ( _Object2Result ) ;
let _Object4 = Object ;
if ( Object . getOwnPropertySymbols ) {
let _Object5 = Object ;
let push = keys1 . push ;
let applyResult1 = push . apply ( keys1 , Object . getOwnPropertySymbols ( _Object2Result ) ) ;
}
let item1 = keys1 . forEach ( ( arg0 ) => {
Object . defineProperty ( closure _0 , arg0 , Object . getOwnPropertyDescriptor ( closure _1 , arg0 ) ) ;
} ) ;
}
}
}
return prototype ;
} ;
let emptyFunctionWithReset = function _typeof ( arg0 ) {
2026-08-04 21:03:28 +00:00
if ( typeof Symbol === "function" ) {
2026-07-29 08:29:29 +00:00
let _Symbol = Symbol ;
2026-08-04 21:03:28 +00:00
if ( typeof Symbol . iterator === "symbol" ) {
2026-07-29 08:29:29 +00:00
let fn = ( arg0 ) => typeof arg0 ;
}
return fn ( arg0 ) ;
}
fn = ( arg0 ) => {
if ( arg0 ) {
const _Symbol = Symbol ;
2026-08-04 21:03:28 +00:00
if ( typeof Symbol === "function" ) {
2026-07-29 08:29:29 +00:00
const _Symbol3 = Symbol ;
if ( arg0 . constructor === Symbol ) {
const _Symbol2 = Symbol ;
let str = "symbol" ;
}
return str ;
}
}
str = typeof arg0 ;
} ;
} ;
function _objectWithoutProperties ( arg0 , arr ) {
if ( null == arg0 ) {
return { } ;
} else {
if ( null == arg0 ) {
let obj = { } ;
} else {
obj = { } ;
const _Object = Object ;
const keys = Object . keys ( arg0 ) ;
for ( let num3 = 0 ; num3 < keys . length ; num3 = num3 + 1 ) {
let tmp2 = keys [ num3 ] ;
let tmp3 = num3 ;
if ( arr . indexOf ( tmp2 ) < 0 ) {
obj [ tmp2 ] = arg0 [ tmp2 ] ;
}
}
}
const _Object2 = Object ;
if ( Object . getOwnPropertySymbols ) {
const _Object3 = Object ;
const ownPropertySymbols = Object . getOwnPropertySymbols ( arg0 ) ;
for ( let num6 = 0 ; num6 < ownPropertySymbols . length ; num6 = num6 + 1 ) {
let tmp5 = ownPropertySymbols [ num6 ] ;
let tmp6 = num6 ;
if ( arr . indexOf ( tmp5 ) < 0 ) {
let _Object4 = Object ;
let call = propertyIsEnumerable . call ;
if ( typeof call === "unknown" ? propertyIsEnumerable ( tmp5 ) : call ( arg0 , tmp5 ) ) {
obj [ tmp5 ] = arg0 [ tmp5 ] ;
}
}
}
}
return obj ;
}
}
function _slicedToArray ( iterable ) {
let tmp ;
if ( Array . isArray ( iterable ) ) {
tmp = iterable ;
}
if ( ! tmp ) {
tmp = ( function _iterableToArrayLimit ( iterable , arg1 ) {
let tmp6 = iterable ;
if ( iterable ) {
const _Symbol = Symbol ;
2026-08-04 21:03:28 +00:00
iterable = typeof Symbol !== "undefined" ;
if ( typeof Symbol !== "undefined" ) {
2026-07-29 08:29:29 +00:00
const _Symbol2 = Symbol ;
iterable = iterable [ Symbol . iterator ] ;
}
if ( ! iterable ) {
iterable = iterable [ Symbol . iterator ] ;
}
tmp6 = iterable ;
}
if ( null != tmp6 ) {
let flag2 = false ;
try {
const items = [ ] ;
try {
const call = tmp8 . call ;
if ( typeof call === "unknown" ) {
let iter = tmp8 ( ) ;
} else {
iter = call ( iterable ) ;
}
const iter3 = iter . next ( ) ;
const done = iter3 . done ;
let tmp10 = done ;
if ( ! done ) {
items . push ( iter4 . value ) ;
if ( ! arg1 ) {
const iter5 = iter2 . next ( ) ;
const done2 = iter5 . done ;
tmp10 = done2 ;
while ( ! done2 ) {
let tmp15 = iter5 ;
let arr = items . push ( iter6 . value ) ;
if ( ! arg1 ) {
continue ;
} else if ( items . length === arg1 ) {
break ;
}
continue ;
}
}
}
try {
let tmp17 = tmp10 ;
if ( ! tmp10 ) {
tmp17 = null == iter2 . return ;
}
if ( ! tmp17 ) {
iter2 . return ( ) ;
}
if ( flag2 ) {
throw tmp5 ;
} else {
return items ;
}
} catch ( tmp23 ) {
if ( tmp2 ) {
throw tmp ;
} else {
throw tmp23 ;
}
}
} catch ( tmp5 ) {
flag2 = true ;
}
} catch ( tmp26 ) {
try {
if ( ! tmp3 ) {
const tmp28 = tmp4 == obj . return ;
}
if ( ! tmp28 ) {
obj . return ( ) ;
}
if ( tmp2 ) {
throw tmp ;
} else {
throw tmp26 ;
}
} catch ( tmp33 ) {
if ( tmp2 ) {
throw tmp ;
} else {
throw tmp33 ;
}
}
}
}
} ) ( iterable , 2 ) ;
}
if ( tmp ) {
if ( tmp ) {
return tmp ;
} else {
const _TypeError = TypeError ;
const typeError = new TypeError ( "Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ;
throw typeError ;
}
} else {
if ( iterable ) {
2026-08-04 21:03:28 +00:00
if ( typeof iterable !== "string" ) {
2026-07-29 08:29:29 +00:00
const _Object = Object ;
let call = toString . call ;
let arr = typeof call === "unknown" ? toString ( ) : call ( iterable ) ;
const substr = arr . slice ( 8 , - 1 ) ;
let name = substr ;
if ( tmp4 ) {
name = iterable . constructor . name ;
}
if ( "Map" !== name ) {
if ( "Set" !== name ) {
if ( "Arguments" === name ) {
let num5 = 2 ;
if ( 2 > iterable . length ) {
num5 = iterable . length ;
}
const _Array = Array ;
let array = new Array ( num5 ) ;
let num6 = 0 ;
arr = array ;
if ( 0 < num5 ) {
do {
array [ num6 ] = iterable [ num6 ] ;
num6 = num6 + 1 ;
arr = array ;
} while ( num6 < num5 ) ;
}
} else {
const obj = /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ ;
}
}
let tmp2 = arr ;
}
const _Array2 = Array ;
arr = Array . from ( iterable ) ;
tmp4 = "Object" === substr && iterable . constructor ;
}
}
let num8 = 2 ;
if ( 2 > iterable . length ) {
num8 = iterable . length ;
}
const _Array3 = Array ;
array = new Array ( num8 ) ;
let num9 = 0 ;
tmp2 = array ;
if ( 0 < num8 ) {
do {
array [ num9 ] = iterable [ num9 ] ;
num9 = num9 + 1 ;
tmp2 = array ;
} while ( num9 < num8 ) ;
}
}
}
emptyFunction = function emptyFunction ( ) {
} ;
emptyFunctionWithReset = function emptyFunctionWithReset ( ) {
} ;
c0 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED" ;
emptyFunctionWithReset . resetWarningCache = emptyFunction ;
let tmp = ( function o ( ) {
function shim ( arg0 , arg1 , arg2 , arg3 , arg4 , arg5 ) {
if ( arg5 !== shim ) {
const _Error = Error ;
const error = 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" ) ;
error . name = "Invariant Violation" ;
throw error ;
}
}
function getShim ( ) {
return shim ;
}
shim . isRequired = shim ;
const obj = { array : shim , bool : shim , func : shim , number : shim , object : shim , string : shim , symbol : shim , any : shim , arrayOf : getShim , element : shim , elementType : shim , instanceOf : getShim , node : shim , objectOf : getShim , oneOf : getShim , oneOfType : getShim , shape : getShim , exact : getShim , checkPropTypes : emptyFunctionWithReset , resetWarningCache : emptyFunction } ;
obj . PropTypes = obj ;
return obj ;
} ) ( ) ;
let _default = tmp ;
if ( tmp ) {
_default = tmp ;
if ( tmp . _ _esModule ) {
let _Object = Object ;
let call = hasOwnProperty . call ;
if ( typeof call === "unknown" ) {
let hasOwnPropertyResult = hasOwnProperty ( "default" ) ;
} else {
hasOwnPropertyResult = call ( tmp , "default" ) ;
}
_default = tmp ;
if ( hasOwnPropertyResult ) {
_default = tmp . default ;
}
}
}
function useAttachEvent ( arg0 , arg1 , arg2 ) {
}
function usePrevious ( arg0 ) {
}
function isUnknownObject ( arg0 ) {
}
let c9 = "[object Object]" ;
function isEqual ( arg0 , arg1 ) {
let length ;
let length2 ;
2026-08-04 21:03:28 +00:00
if ( typeof isUnknownObject !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
let tmp2 = null !== arg0 ;
if ( tmp2 ) {
tmp2 = "object" === emptyFunctionWithReset ( arg0 ) ;
}
if ( tmp2 ) {
2026-08-04 21:03:28 +00:00
if ( typeof isUnknownObject !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
let tmp4 = null !== arg1 ;
if ( tmp4 ) {
tmp4 = "object" === emptyFunctionWithReset ( arg1 ) ;
}
if ( tmp4 ) {
const _Array = Array ;
const isArray = Array . isArray ( arg0 ) ;
const _Array2 = Array ;
if ( isArray !== Array . isArray ( arg1 ) ) {
return false ;
} else {
const _Object5 = Object ;
const call2 = toString2 . call ;
const _Object = Object ;
const call = toString . call ;
const tmp10 = ( typeof call2 === "unknown" ? toString2 ( ) : call2 ( arg0 ) ) === c9 ;
if ( tmp10 !== ( ( typeof call === "unknown" ? toString ( ) : call ( arg1 ) ) === c9 ) ) {
return false ;
} else {
if ( ! tmp10 ) {
if ( ! isArray ) {
return arg0 === arg1 ;
}
}
const _Object2 = Object ;
const keys = Object . keys ( arg0 ) ;
const _Object3 = Object ;
const keys1 = Object . keys ( arg1 ) ;
if ( keys . length !== keys1 . length ) {
return false ;
} else {
const obj = { } ;
let num = 0 ;
if ( 0 < keys . length ) {
do {
obj [ keys [ num ] ] = true ;
num = num + 1 ;
length = keys . length ;
} while ( num < length ) ;
}
let num2 = 0 ;
if ( 0 < keys1 . length ) {
do {
obj [ keys1 [ num2 ] ] = true ;
num2 = num2 + 1 ;
length2 = keys1 . length ;
} while ( num2 < length2 ) ;
}
const _Object4 = Object ;
const keys2 = Object . keys ( obj ) ;
if ( keys2 . length !== keys . length ) {
return false ;
} else {
let closure _0 = arg0 ;
let closure _1 = arg1 ;
return keys2 . every ( function pred ( arg0 ) {
return outer1 _27 ( table [ arg0 ] , table2 [ arg0 ] ) ;
} ) ;
}
}
}
const tmp8 = typeof call2 === "unknown" ? toString2 ( ) : call2 ( arg0 ) ;
}
}
}
return arg0 === arg1 ;
}
function extractAllowedOptionsUpdates ( arg0 , arg1 , arg2 ) {
}
let c12 = "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." ;
function validateStripe ( elements , arg1 ) {
if ( arguments . length > 1 ) {
if ( undefined !== arguments [ 1 ] ) {
let tmp = arguments [ 1 ] ;
}
if ( null !== elements ) {
2026-08-04 21:03:28 +00:00
if ( typeof isUnknownObject !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
let tmp4 = null !== elements ;
if ( tmp4 ) {
tmp4 = "object" === emptyFunctionWithReset ( elements ) ;
}
if ( tmp4 ) {
2026-08-04 21:03:28 +00:00
tmp4 = typeof elements . elements === "function" ;
2026-07-29 08:29:29 +00:00
}
if ( tmp4 ) {
2026-08-04 21:03:28 +00:00
tmp4 = typeof elements . createToken === "function" ;
2026-07-29 08:29:29 +00:00
}
if ( tmp4 ) {
2026-08-04 21:03:28 +00:00
tmp4 = typeof elements . createPaymentMethod === "function" ;
2026-07-29 08:29:29 +00:00
}
if ( tmp4 ) {
2026-08-04 21:03:28 +00:00
tmp4 = typeof elements . confirmCardPayment === "function" ;
2026-07-29 08:29:29 +00:00
}
if ( ! tmp4 ) {
const _Error = Error ;
const error = new Error ( tmp ) ;
throw error ;
}
}
return elements ;
}
tmp = c12 ;
}
function parseStripeProp ( elements ) {
if ( arguments . length > 1 ) {
if ( undefined !== arguments [ 1 ] ) {
let tmp = arguments [ 1 ] ;
}
let c0 = tmp ;
2026-08-04 21:03:28 +00:00
if ( typeof isUnknownObject !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
let tmp5 = null !== elements ;
if ( tmp5 ) {
tmp5 = "object" === emptyFunctionWithReset ( elements ) ;
}
if ( tmp5 ) {
2026-08-04 21:03:28 +00:00
tmp5 = typeof elements . then === "function" ;
2026-07-29 08:29:29 +00:00
}
if ( tmp5 ) {
let obj = { tag : "async" , stripePromise : null } ;
const resolved = Promise . resolve ( elements ) ;
obj [ 1 ] = resolved . then ( ( arg0 ) => {
outer1 _13 ( arg0 , closure _0 ) ;
return arg0 ;
} ) ;
return obj ;
} else {
validateStripe ( elements , tmp ) ;
if ( null === elements ) {
obj = { tag : "empty" } ;
} else {
obj = { tag : "sync" , stripe : null } ;
obj [ 1 ] = elements ;
}
return obj ;
}
}
tmp = c12 ;
}
function registerWithStripeJs ( arg0 ) {
}
let context = React . createContext ( null ) ;
context . displayName = "ElementsContext" ;
function parseElementsContext ( arg0 , arg1 ) {
}
class Elements {
constructor ( arg0 ) {
stripe = exports . stripe ;
options = stripe ;
options = exports . options ;
useRef = options ;
obj = options ;
items = [ ] ;
items [ 0 ] = stripe ;
memo = options . useMemo ( ( ) => outer1 _14 ( options ) , items ) ;
2026-08-08 06:10:11 +00:00
f105025 = memo ;
2026-07-29 08:29:29 +00:00
tmp2 = useMemo ( options . useState ( ( ) => {
let stripe = null ;
if ( "sync" === memo . tag ) {
stripe = tmp . stripe ;
}
const obj = { stripe , elements : null } ;
let elementsResult = null ;
if ( "sync" === memo . tag ) {
stripe = tmp . stripe ;
elementsResult = stripe . elements ( ref1 ) ;
}
obj [ 1 ] = elementsResult ;
return obj ;
} ) , 2 ) ;
first = tmp2 [ 0 ] ;
2026-08-08 06:10:11 +00:00
f105026 = first ;
2026-07-29 08:29:29 +00:00
useMemo = tmp2 [ 1 ] ;
items1 = [ , , ] ;
items1 [ 0 ] = memo ;
items1 [ 1 ] = first ;
items1 [ 2 ] = options ;
effect = options . useEffect ( ( ) => {
let stripe = true ;
if ( "async" === memo . tag ) {
if ( ! value . stripe ) {
tmp . stripePromise . then ( ( arg0 ) => {
let tmp = arg0 ;
if ( arg0 ) {
tmp = closure _0 ;
}
if ( tmp ) {
closure _0 = arg0 ;
outer1 _4 ( ( stripe ) => {
let tmp = stripe ;
if ( ! stripe . stripe ) {
const obj = { stripe : null , elements : null } ;
obj [ 0 ] = closure _0 ;
obj [ 1 ] = closure _0 . elements ( outer1 _1 ) ;
tmp = obj ;
}
return tmp ;
} ) ;
}
} ) ;
const stripePromise = tmp . stripePromise ;
}
return ( ) => {
let c0 = false ;
} ;
}
stripe = "sync" !== tmp . tag ;
if ( ! stripe ) {
stripe = value . stripe ;
}
if ( ! stripe ) {
stripe = tmp . stripe ;
callback ( ( stripe ) => {
let tmp = stripe ;
if ( ! stripe . stripe ) {
const obj = { stripe : null , elements : null } ;
obj [ 0 ] = closure _0 ;
obj [ 1 ] = closure _0 . elements ( outer1 _1 ) ;
tmp = obj ;
}
return tmp ;
} ) ;
}
} , items1 ) ;
tmp5 = usePrevious ;
2026-08-04 21:03:28 +00:00
if ( typeof usePrevious !== "function" ) {
2026-07-29 08:29:29 +00:00
str = "Trying to call a non-function" ;
throwTypeErrorResult = HermesBuiltin . throwTypeError ( ) ;
}
options = stripe ;
ref = obj . useRef ( stripe ) ;
useRef = ref ;
items2 = [ ] ;
items2 [ 0 ] = stripe ;
effect1 = obj . useEffect ( ( ) => {
ref14 . current = options ;
} , items2 ) ;
current = ref . current ;
items3 = [ , ] ;
items3 [ 0 ] = current ;
items3 [ 1 ] = stripe ;
effect2 = obj . useEffect ( ( ) => {
let tmp2 = null !== current ;
if ( tmp2 ) {
tmp2 = tmp !== options ;
}
if ( tmp2 ) {
const _console = console ;
console . warn ( "Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it." ) ;
}
} , items3 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof tmp5 !== "function" ) {
2026-07-29 08:29:29 +00:00
str2 = "Trying to call a non-function" ;
throwTypeErrorResult1 = HermesBuiltin . throwTypeError ( ) ;
}
ref1 = obj . useRef ( options ) ;
useRef = ref1 ;
items4 = [ ] ;
items4 [ 0 ] = options ;
effect3 = obj . useEffect ( ( ) => {
ref14 . current = options ;
} , items4 ) ;
current2 = ref1 . current ;
current = current2 ;
items5 = [ , , ] ;
items5 [ 0 ] = options ;
items5 [ 1 ] = current2 ;
items5 [ 2 ] = first . elements ;
effect4 = obj . useEffect ( ( ) => {
if ( value . elements ) {
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _11 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
const options = tmp3 ;
let closure _2 = [ "clientSecret" , "fonts" ] ;
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _8 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
let tmp7 = null !== tmp3 ;
if ( tmp7 ) {
tmp7 = "object" === memo ( tmp3 ) ;
}
let reduced = null ;
if ( tmp7 ) {
const _Object = Object ;
const keys = Object . keys ( tmp3 ) ;
reduced = keys . reduce ( ( arg0 , arg1 ) => {
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _8 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
let tmp2 = null !== tmp ;
if ( tmp2 ) {
tmp2 = "object" === lib ( tmp ) ;
}
let tmp4 = ! tmp2 ;
if ( tmp2 ) {
tmp4 = ! outer1 _10 ( tmp3 [ arg1 ] , tmp [ arg1 ] ) ;
}
if ( lib . includes ( arg1 ) ) {
let tmp7 = arg0 ;
if ( tmp4 ) {
const _console = console ;
const concat = "Unsupported prop change: options." . concat ;
console . warn ( "Unsupported prop change: options." . concat ( arg1 , " is not a mutable property." ) ) ;
tmp7 = arg0 ;
}
} else {
tmp7 = arg0 ;
if ( tmp4 ) {
let obj = arg0 ;
if ( ! arg0 ) {
obj = { } ;
}
obj = { } ;
closure _1 ( obj , obj ) ;
obj = { } ;
if ( arg1 in obj ) {
const _Object = Object ;
const obj1 = { value : null , enumerable : true , configurable : true , writable : true } ;
obj1 [ 0 ] = tmp11 ;
Object . defineProperty ( obj , arg1 , obj1 ) ;
} else {
obj [ arg1 ] = tmp11 ;
}
closure _1 ( obj , { } , obj ) ;
}
}
return tmp7 ;
} , null ) ;
}
if ( reduced ) {
const elements = tmp . elements ;
elements . update ( reduced ) ;
}
const ref1 = current2 ;
const tmp4 = current2 ;
}
} , items5 ) ;
items6 = [ ] ;
items6 [ 0 ] = first . stripe ;
effect5 = obj . useEffect ( ( ) => {
const stripe = value . stripe ;
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _15 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
let registerAppInfo = stripe ;
if ( stripe ) {
registerAppInfo = stripe . _registerWrapper ;
}
if ( registerAppInfo ) {
registerAppInfo = stripe . registerAppInfo ;
}
if ( registerAppInfo ) {
stripe . _registerWrapper ( { name : "react-stripe-js" , version : "3.7.0" } ) ;
stripe . registerAppInfo ( { name : "react-stripe-js" , version : "3.7.0" , url : "https://stripe.com/docs/stripe-js/react" } ) ;
}
} , items6 ) ;
return obj . createElement ( c16 . Provider , { value : first } , exports . children ) ;
}
}
Elements . propTypes = { stripe : _default . any , options : _default . object } ;
function useElementsContextWithUseCase ( arg0 ) {
}
class ElementsConsumer {
constructor ( arg0 ) {
2026-08-04 21:03:28 +00:00
if ( typeof useElementsContextWithUseCase !== "function" ) {
2026-07-29 08:29:29 +00:00
str4 = "Trying to call a non-function" ;
throwTypeErrorResult = HermesBuiltin . throwTypeError ( ) ;
}
context = c0 . useContext ( c16 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof parseElementsContext !== "function" ) {
2026-07-29 08:29:29 +00:00
str5 = "Trying to call a non-function" ;
throwTypeErrorResult1 = HermesBuiltin . throwTypeError ( ) ;
}
if ( context ) {
return exports . children ( context ) ;
} else {
tmp2 = globalThis ;
_Error = Error ;
str = "Could not find Elements context; You need to wrap the part of your app that " ;
concat = "Could not find Elements context; You need to wrap the part of your app that " . concat ;
str2 = " in an <Elements> provider." ;
str3 = "mounts <ElementsConsumer>" ;
tmp3 = new . target ;
tmp4 = new . target ;
error = new Error ( "Could not find Elements context; You need to wrap the part of your app that " . concat ( "mounts <ElementsConsumer>" , " in an <Elements> provider." ) ) ;
tmp6 = error ;
throw error ;
}
}
}
ElementsConsumer . propTypes = { children : _default . func . isRequired } ;
let closure _19 = [ "on" , "session" ] ;
let context1 = React . createContext ( null ) ;
context1 . displayName = "CheckoutSdkContext" ;
function parseCheckoutSdkContext ( arg0 , arg1 ) {
}
const context2 = React . createContext ( null ) ;
context2 . displayName = "CheckoutContext" ;
class CheckoutProvider {
constructor ( arg0 ) {
stripe = exports . stripe ;
checkoutSdk = stripe ;
options = exports . options ;
useRef = options ;
obj = checkoutSdk ;
items = [ ] ;
items [ 0 ] = stripe ;
memo = checkoutSdk . useMemo ( ( ) => outer1 _14 ( checkoutSdk , "Invalid prop `stripe` supplied to `CheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details." ) , items ) ;
emptyFunctionWithReset = memo ;
tmp2 = useState ( checkoutSdk . useState ( null ) , 2 ) ;
first = tmp2 [ 0 ] ;
_objectWithoutProperties = first ;
tmp4 = tmp2 [ 1 ] ;
useState = tmp4 ;
tmp5 = useState ( checkoutSdk . useState ( ( ) => {
let stripe = null ;
if ( "sync" === memo . tag ) {
stripe = memo . stripe ;
}
return { stripe , checkoutSdk : null } ;
} ) , 2 ) ;
first1 = tmp5 [ 0 ] ;
2026-08-08 06:10:11 +00:00
f105032 = first1 ;
2026-07-29 08:29:29 +00:00
useAttachEvent = tmp5 [ 1 ] ;
safeSetContext = function safeSetContext ( arg0 , arg1 ) {
} ;
useRef = checkoutSdk . useRef ( false ) ;
items1 = [ , , , ] ;
items1 [ 0 ] = memo ;
items1 [ 1 ] = first1 ;
items1 [ 2 ] = options ;
items1 [ 3 ] = tmp4 ;
effect = checkoutSdk . useEffect ( ( ) => {
let c0 = true ;
if ( "async" === memo . tag ) {
if ( ! first1 . stripe ) {
tmp . stripePromise . then ( ( initCheckout ) => {
let closure _0 = initCheckout ;
let tmp = initCheckout ;
if ( initCheckout ) {
tmp = closure _0 ;
}
if ( tmp ) {
tmp = ! outer1 _8 . current ;
}
if ( tmp ) {
outer1 _8 . current = true ;
const checkout = initCheckout . initCheckout ( outer1 _1 ) ;
checkout . then ( ( on ) => {
if ( on ) {
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _7 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
let closure _1 = on ;
outer1 _6 ( ( stripe ) => {
let tmp = stripe ;
if ( ! stripe . stripe ) {
const obj = { stripe : null , checkoutSdk : null } ;
obj [ 0 ] = closure _0 ;
obj [ 1 ] = closure _1 ;
tmp = obj ;
}
return tmp ;
} ) ;
on . on ( "change" , outer1 _4 ) ;
const tmp2 = closure _0 ;
}
} ) ;
}
} ) ;
const stripePromise = tmp . stripePromise ;
}
return ( ) => {
let c0 = false ;
} ;
}
let tmp4 = "sync" === tmp . tag && tmp . stripe ;
if ( tmp4 ) {
tmp4 = ! ref . current ;
}
if ( tmp4 ) {
ref . current = true ;
let stripe = tmp . stripe ;
let checkout = stripe . initCheckout ( ref2 ) ;
checkout . then ( ( on ) => {
if ( on ) {
2026-08-04 21:03:28 +00:00
if ( typeof closure _7 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
stripe = stripe . stripe ;
let closure _1 = on ;
callback ( ( stripe ) => {
let tmp = stripe ;
if ( ! stripe . stripe ) {
const obj = { stripe : null , checkoutSdk : null } ;
obj [ 0 ] = closure _0 ;
obj [ 1 ] = closure _1 ;
tmp = obj ;
}
return tmp ;
} ) ;
on . on ( "change" , closure _4 ) ;
}
} ) ;
}
} , items1 ) ;
tmp8 = safeSetContext ;
2026-08-04 21:03:28 +00:00
if ( typeof safeSetContext !== "function" ) {
2026-07-29 08:29:29 +00:00
str = "Trying to call a non-function" ;
throwTypeErrorResult = HermesBuiltin . throwTypeError ( ) ;
}
checkoutSdk = stripe ;
ref = obj . useRef ( stripe ) ;
useRef = ref ;
items2 = [ ] ;
items2 [ 0 ] = stripe ;
effect1 = obj . useEffect ( ( ) => {
ref14 . current = options ;
} , items2 ) ;
current = ref . current ;
items3 = [ , ] ;
items3 [ 0 ] = current ;
items3 [ 1 ] = stripe ;
effect2 = obj . useEffect ( ( ) => {
let tmp2 = null !== current ;
if ( tmp2 ) {
tmp2 = tmp !== checkoutSdk ;
}
if ( tmp2 ) {
const _console = console ;
console . warn ( "Unsupported prop change on CheckoutProvider: You cannot change the `stripe` prop after setting it." ) ;
}
} , items3 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof tmp8 !== "function" ) {
2026-07-29 08:29:29 +00:00
str2 = "Trying to call a non-function" ;
throwTypeErrorResult1 = HermesBuiltin . throwTypeError ( ) ;
}
checkoutSdk = options ;
ref1 = obj . useRef ( options ) ;
useRef = ref1 ;
items4 = [ ] ;
items4 [ 0 ] = options ;
effect3 = obj . useEffect ( ( ) => {
ref14 . current = options ;
} , items4 ) ;
current2 = ref1 . current ;
current = current2 ;
checkoutSdk = first1 . checkoutSdk ;
2026-08-04 21:03:28 +00:00
if ( typeof tmp8 !== "function" ) {
2026-07-29 08:29:29 +00:00
str3 = "Trying to call a non-function" ;
throwTypeErrorResult2 = HermesBuiltin . throwTypeError ( ) ;
}
ref2 = obj . useRef ( checkoutSdk ) ;
useRef = ref2 ;
items5 = [ ] ;
items5 [ 0 ] = checkoutSdk ;
effect4 = obj . useEffect ( ( ) => {
ref14 . current = options ;
} , items5 ) ;
current3 = ref2 . current ;
current = current3 ;
items6 = [ , , , ] ;
items6 [ 0 ] = options ;
items6 [ 1 ] = current2 ;
items6 [ 2 ] = first1 . checkoutSdk ;
items6 [ 3 ] = current3 ;
effect5 = obj . useEffect ( ( ) => {
if ( first1 . checkoutSdk ) {
let appearance ;
if ( null != current2 ) {
const elementsOptions = current2 . elementsOptions ;
if ( null !== elementsOptions ) {
if ( undefined !== elementsOptions ) {
appearance = elementsOptions . appearance ;
}
}
}
let appearance1 ;
if ( null != ref2 ) {
const elementsOptions2 = ref2 . elementsOptions ;
if ( null !== elementsOptions2 ) {
if ( undefined !== elementsOptions2 ) {
appearance1 = elementsOptions2 . appearance ;
}
}
}
const tmp6 = current2 ( appearance1 , appearance ) ;
let tmp7 = ! tmp6 ;
let checkoutSdk = ! current3 ;
if ( ! current3 ) {
checkoutSdk = tmp . checkoutSdk ;
}
let tmp9 = appearance1 ;
if ( appearance1 ) {
if ( tmp6 ) {
tmp7 = checkoutSdk ;
}
tmp9 = tmp7 ;
}
if ( tmp9 ) {
const checkoutSdk2 = tmp . checkoutSdk ;
checkoutSdk2 . changeAppearance ( appearance1 ) ;
}
}
} , items6 ) ;
items7 = [ ] ;
items7 [ 0 ] = first1 . stripe ;
effect6 = obj . useEffect ( ( ) => {
const stripe = first1 . stripe ;
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _15 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
let registerAppInfo = stripe ;
if ( stripe ) {
registerAppInfo = stripe . _registerWrapper ;
}
if ( registerAppInfo ) {
registerAppInfo = stripe . registerAppInfo ;
}
if ( registerAppInfo ) {
stripe . _registerWrapper ( { name : "react-stripe-js" , version : "3.7.0" } ) ;
stripe . registerAppInfo ( { name : "react-stripe-js" , version : "3.7.0" , url : "https://stripe.com/docs/stripe-js/react" } ) ;
}
} , items7 ) ;
items8 = [ , ] ;
items8 [ 0 ] = first1 . checkoutSdk ;
items8 [ 1 ] = first ;
element = null ;
if ( first1 . checkoutSdk ) {
tmp20 = isRequired ;
obj = { value : null } ;
obj [ 0 ] = first1 ;
tmp21 = isRequired ;
obj1 = { value : null } ;
obj1 [ 0 ] = tmp18 ;
element = obj . createElement ( isRequired . Provider , obj , obj . createElement ( isRequired . Provider , obj1 , exports . children ) ) ;
}
return element ;
}
}
obj = { stripe : _default . any , options : _default . shape ( obj ) . isRequired } ;
obj = { fetchClientSecret : _default . func . isRequired , elementsOptions : _default . object } ;
CheckoutProvider . propTypes = obj ;
function useElementsOrCheckoutSdkContextWithUseCase ( arg0 ) {
}
let closure _24 = [ "mode" ] ;
const context3 = React . createContext ( null ) ;
context3 . displayName = "EmbeddedCheckoutProviderContext" ;
function useEmbeddedCheckoutContext ( ) {
}
function createElementComponent ( address , arg1 ) {
let closure _0 = address ;
const formatted = address . charAt ( 0 ) . toUpperCase ( ) ;
let combined = "" . concat ( formatted + address . slice ( 1 ) , "Element" ) ;
const tmp3 = arg1 ? ( function ServerElement ( id ) {
combined = "mounts <" . concat ( combined , ">" ) ;
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _23 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
let obj = address ;
const context = address . useContext ( outer1 _20 ) ;
const context1 = address . useContext ( outer1 _16 ) ;
if ( context ) {
if ( context1 ) {
const _Error3 = Error ;
const concat3 = "You cannot wrap the part of your app that " . concat ;
const error = new Error ( "You cannot wrap the part of your app that " . concat ( combined , " in both <CheckoutProvider> and <Elements> providers." ) ) ;
throw error ;
}
}
if ( context ) {
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _21 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
if ( ! context ) {
const _Error2 = Error ;
const concat2 = "Could not find CheckoutProvider context; You need to wrap the part of your app that " . concat ;
const error1 = new Error ( "Could not find CheckoutProvider context; You need to wrap the part of your app that " . concat ( combined , " in an <CheckoutProvider> provider." ) ) ;
throw error1 ;
}
} else {
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _17 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
if ( ! context1 ) {
const _Error = Error ;
const concat = "Could not find Elements context; You need to wrap the part of your app that " . concat ;
const error2 = new Error ( "Could not find Elements context; You need to wrap the part of your app that " . concat ( combined , " in an <Elements> provider." ) ) ;
throw error2 ;
}
}
obj = { id : id . id , className : id . className } ;
return < div id = { arg0 . id } className = { arg0 . className } / > ;
} ) : ( function ClientElement ( options ) {
let className ;
let id ;
let onBlur ;
let onCancel ;
let onChange ;
let onClick ;
let onConfirm ;
let onEscape ;
let onFocus ;
let onLoadError ;
let onLoaderStart ;
let onNetworksChange ;
let onReady ;
let onShippingAddressChange ;
let onShippingRateChange ;
options = options . options ;
( { id , className } = options ) ;
if ( undefined === options ) {
options = { } ;
}
( { onBlur , onFocus , onReady } = options ) ;
let ref14 = onReady ;
( { onChange , onEscape , onClick , onLoadError , onLoaderStart , onNetworksChange , onConfirm , onCancel , onShippingAddressChange , onShippingRateChange } = options ) ;
let combined = "mounts <" . concat ( ref14 , ">" ) ;
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _23 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
const context = address . useContext ( outer1 _20 ) ;
let context1 = address . useContext ( outer1 _16 ) ;
if ( context ) {
if ( context1 ) {
let _Error3 = Error ;
const concat3 = "You cannot wrap the part of your app that " . concat ;
let error = new Error ( "You cannot wrap the part of your app that " . concat ( combined , " in both <CheckoutProvider> and <Elements> providers." ) ) ;
throw error ;
}
}
if ( context ) {
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _21 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
context1 = context ;
if ( ! context ) {
let _Error2 = Error ;
const concat2 = "Could not find CheckoutProvider context; You need to wrap the part of your app that " . concat ;
let error1 = new Error ( "Could not find CheckoutProvider context; You need to wrap the part of your app that " . concat ( combined , " in an <CheckoutProvider> provider." ) ) ;
throw error1 ;
}
} else {
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _17 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
if ( ! context1 ) {
let _Error = Error ;
let concat = "Could not find Elements context; You need to wrap the part of your app that " . concat ;
let error2 = new Error ( "Could not find Elements context; You need to wrap the part of your app that " . concat ( combined , " in an <Elements> provider." ) ) ;
throw error2 ;
}
}
let elements = null ;
if ( "elements" in context1 ) {
elements = context1 . elements ;
}
onChange = elements ;
let checkoutSdk = null ;
if ( "checkoutSdk" in context1 ) {
checkoutSdk = context1 . checkoutSdk ;
}
const tmp18 = outer1 _4 ( address . useState ( null ) , 2 ) ;
const first = tmp18 [ 0 ] ;
let ref13 = first ;
let closure _5 = tmp18 [ 1 ] ;
let closure _6 = obj2 . useRef ( null ) ;
const ref = obj2 . useRef ( null ) ;
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _6 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
options = first ;
ref14 = "blur" ;
onChange = onBlur ;
checkoutSdk = tmp22 ;
const ref1 = address . useRef ( onBlur ) ;
ref13 = ref1 ;
const items = [ onBlur ] ;
const effect = obj2 . useEffect ( ( ) => {
ref13 . current = onChange ;
} , items ) ;
const items1 = [ onBlur , "blur" , first , ref1 ] ;
const effect1 = obj2 . useEffect ( ( ) => {
if ( checkoutSdk ) {
if ( decoratedCb ) {
decoratedCb = function decoratedCb ( ) {
if ( ref . current ) {
const current = tmp . current ;
const apply = current . apply ;
if ( typeof apply === "unknown" ) {
HermesBuiltin . applyArguments ( tmp ) ;
} else {
apply ( tmp , arguments ) ;
}
}
} ;
obj . on ( ref14 , decoratedCb ) ;
return ( ) => {
decoratedCb . off ( outer1 _1 , decoratedCb ) ;
} ;
}
obj = decoratedCb ;
}
return ( ) => {
} ;
} , items1 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _6 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
options = first ;
ref14 = "focus" ;
onChange = onFocus ;
checkoutSdk = tmp26 ;
const ref2 = address . useRef ( onFocus ) ;
ref13 = ref2 ;
const items2 = [ onFocus ] ;
const effect2 = obj2 . useEffect ( ( ) => {
ref13 . current = onChange ;
} , items2 ) ;
const items3 = [ onFocus , "focus" , first , ref2 ] ;
const effect3 = obj2 . useEffect ( ( ) => {
if ( checkoutSdk ) {
if ( decoratedCb ) {
decoratedCb = function decoratedCb ( ) {
if ( ref . current ) {
const current = tmp . current ;
const apply = current . apply ;
if ( typeof apply === "unknown" ) {
HermesBuiltin . applyArguments ( tmp ) ;
} else {
apply ( tmp , arguments ) ;
}
}
} ;
obj . on ( ref14 , decoratedCb ) ;
return ( ) => {
decoratedCb . off ( outer1 _1 , decoratedCb ) ;
} ;
}
obj = decoratedCb ;
}
return ( ) => {
} ;
} , items3 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _6 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
options = first ;
ref14 = "escape" ;
onChange = onEscape ;
checkoutSdk = tmp30 ;
const ref3 = address . useRef ( onEscape ) ;
ref13 = ref3 ;
const items4 = [ onEscape ] ;
const effect4 = obj2 . useEffect ( ( ) => {
ref13 . current = onChange ;
} , items4 ) ;
const items5 = [ onEscape , "escape" , first , ref3 ] ;
const effect5 = obj2 . useEffect ( ( ) => {
if ( checkoutSdk ) {
if ( decoratedCb ) {
decoratedCb = function decoratedCb ( ) {
if ( ref . current ) {
const current = tmp . current ;
const apply = current . apply ;
if ( typeof apply === "unknown" ) {
HermesBuiltin . applyArguments ( tmp ) ;
} else {
apply ( tmp , arguments ) ;
}
}
} ;
obj . on ( ref14 , decoratedCb ) ;
return ( ) => {
decoratedCb . off ( outer1 _1 , decoratedCb ) ;
} ;
}
obj = decoratedCb ;
}
return ( ) => {
} ;
} , items5 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _6 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
options = first ;
ref14 = "click" ;
onChange = onClick ;
checkoutSdk = tmp34 ;
const ref4 = address . useRef ( onClick ) ;
ref13 = ref4 ;
const items6 = [ onClick ] ;
const effect6 = obj2 . useEffect ( ( ) => {
ref13 . current = onChange ;
} , items6 ) ;
const items7 = [ onClick , "click" , first , ref4 ] ;
const effect7 = obj2 . useEffect ( ( ) => {
if ( checkoutSdk ) {
if ( decoratedCb ) {
decoratedCb = function decoratedCb ( ) {
if ( ref . current ) {
const current = tmp . current ;
const apply = current . apply ;
if ( typeof apply === "unknown" ) {
HermesBuiltin . applyArguments ( tmp ) ;
} else {
apply ( tmp , arguments ) ;
}
}
} ;
obj . on ( ref14 , decoratedCb ) ;
return ( ) => {
decoratedCb . off ( outer1 _1 , decoratedCb ) ;
} ;
}
obj = decoratedCb ;
}
return ( ) => {
} ;
} , items7 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _6 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
options = first ;
ref14 = "loaderror" ;
onChange = onLoadError ;
checkoutSdk = tmp38 ;
const ref5 = address . useRef ( onLoadError ) ;
ref13 = ref5 ;
const items8 = [ onLoadError ] ;
const effect8 = obj2 . useEffect ( ( ) => {
ref13 . current = onChange ;
} , items8 ) ;
const items9 = [ onLoadError , "loaderror" , first , ref5 ] ;
const effect9 = obj2 . useEffect ( ( ) => {
if ( checkoutSdk ) {
if ( decoratedCb ) {
decoratedCb = function decoratedCb ( ) {
if ( ref . current ) {
const current = tmp . current ;
const apply = current . apply ;
if ( typeof apply === "unknown" ) {
HermesBuiltin . applyArguments ( tmp ) ;
} else {
apply ( tmp , arguments ) ;
}
}
} ;
obj . on ( ref14 , decoratedCb ) ;
return ( ) => {
decoratedCb . off ( outer1 _1 , decoratedCb ) ;
} ;
}
obj = decoratedCb ;
}
return ( ) => {
} ;
} , items9 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _6 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
options = first ;
ref14 = "loaderstart" ;
onChange = onLoaderStart ;
checkoutSdk = tmp42 ;
const ref6 = address . useRef ( onLoaderStart ) ;
ref13 = ref6 ;
const items10 = [ onLoaderStart ] ;
const effect10 = obj2 . useEffect ( ( ) => {
ref13 . current = onChange ;
} , items10 ) ;
const items11 = [ onLoaderStart , "loaderstart" , first , ref6 ] ;
const effect11 = obj2 . useEffect ( ( ) => {
if ( checkoutSdk ) {
if ( decoratedCb ) {
decoratedCb = function decoratedCb ( ) {
if ( ref . current ) {
const current = tmp . current ;
const apply = current . apply ;
if ( typeof apply === "unknown" ) {
HermesBuiltin . applyArguments ( tmp ) ;
} else {
apply ( tmp , arguments ) ;
}
}
} ;
obj . on ( ref14 , decoratedCb ) ;
return ( ) => {
decoratedCb . off ( outer1 _1 , decoratedCb ) ;
} ;
}
obj = decoratedCb ;
}
return ( ) => {
} ;
} , items11 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _6 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
options = first ;
ref14 = "networkschange" ;
onChange = onNetworksChange ;
checkoutSdk = tmp46 ;
const ref7 = address . useRef ( onNetworksChange ) ;
ref13 = ref7 ;
const items12 = [ onNetworksChange ] ;
const effect12 = obj2 . useEffect ( ( ) => {
ref13 . current = onChange ;
} , items12 ) ;
const items13 = [ onNetworksChange , "networkschange" , first , ref7 ] ;
const effect13 = obj2 . useEffect ( ( ) => {
if ( checkoutSdk ) {
if ( decoratedCb ) {
decoratedCb = function decoratedCb ( ) {
if ( ref . current ) {
const current = tmp . current ;
const apply = current . apply ;
if ( typeof apply === "unknown" ) {
HermesBuiltin . applyArguments ( tmp ) ;
} else {
apply ( tmp , arguments ) ;
}
}
} ;
obj . on ( ref14 , decoratedCb ) ;
return ( ) => {
decoratedCb . off ( outer1 _1 , decoratedCb ) ;
} ;
}
obj = decoratedCb ;
}
return ( ) => {
} ;
} , items13 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _6 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
options = first ;
ref14 = "confirm" ;
onChange = onConfirm ;
checkoutSdk = tmp50 ;
const ref8 = address . useRef ( onConfirm ) ;
ref13 = ref8 ;
const items14 = [ onConfirm ] ;
const effect14 = obj2 . useEffect ( ( ) => {
ref13 . current = onChange ;
} , items14 ) ;
const items15 = [ onConfirm , "confirm" , first , ref8 ] ;
const effect15 = obj2 . useEffect ( ( ) => {
if ( checkoutSdk ) {
if ( decoratedCb ) {
decoratedCb = function decoratedCb ( ) {
if ( ref . current ) {
const current = tmp . current ;
const apply = current . apply ;
if ( typeof apply === "unknown" ) {
HermesBuiltin . applyArguments ( tmp ) ;
} else {
apply ( tmp , arguments ) ;
}
}
} ;
obj . on ( ref14 , decoratedCb ) ;
return ( ) => {
decoratedCb . off ( outer1 _1 , decoratedCb ) ;
} ;
}
obj = decoratedCb ;
}
return ( ) => {
} ;
} , items15 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _6 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
options = first ;
ref14 = "cancel" ;
onChange = onCancel ;
checkoutSdk = tmp54 ;
const ref9 = address . useRef ( onCancel ) ;
ref13 = ref9 ;
const items16 = [ onCancel ] ;
const effect16 = obj2 . useEffect ( ( ) => {
ref13 . current = onChange ;
} , items16 ) ;
const items17 = [ onCancel , "cancel" , first , ref9 ] ;
const effect17 = obj2 . useEffect ( ( ) => {
if ( checkoutSdk ) {
if ( decoratedCb ) {
decoratedCb = function decoratedCb ( ) {
if ( ref . current ) {
const current = tmp . current ;
const apply = current . apply ;
if ( typeof apply === "unknown" ) {
HermesBuiltin . applyArguments ( tmp ) ;
} else {
apply ( tmp , arguments ) ;
}
}
} ;
obj . on ( ref14 , decoratedCb ) ;
return ( ) => {
decoratedCb . off ( outer1 _1 , decoratedCb ) ;
} ;
}
obj = decoratedCb ;
}
return ( ) => {
} ;
} , items17 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _6 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
options = first ;
ref14 = "shippingaddresschange" ;
onChange = onShippingAddressChange ;
checkoutSdk = tmp58 ;
const ref10 = address . useRef ( onShippingAddressChange ) ;
ref13 = ref10 ;
const items18 = [ onShippingAddressChange ] ;
const effect18 = obj2 . useEffect ( ( ) => {
ref13 . current = onChange ;
} , items18 ) ;
const items19 = [ onShippingAddressChange , "shippingaddresschange" , first , ref10 ] ;
const effect19 = obj2 . useEffect ( ( ) => {
if ( checkoutSdk ) {
if ( decoratedCb ) {
decoratedCb = function decoratedCb ( ) {
if ( ref . current ) {
const current = tmp . current ;
const apply = current . apply ;
if ( typeof apply === "unknown" ) {
HermesBuiltin . applyArguments ( tmp ) ;
} else {
apply ( tmp , arguments ) ;
}
}
} ;
obj . on ( ref14 , decoratedCb ) ;
return ( ) => {
decoratedCb . off ( outer1 _1 , decoratedCb ) ;
} ;
}
obj = decoratedCb ;
}
return ( ) => {
} ;
} , items19 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _6 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
options = first ;
ref14 = "shippingratechange" ;
onChange = onShippingRateChange ;
checkoutSdk = tmp62 ;
const ref11 = address . useRef ( onShippingRateChange ) ;
ref13 = ref11 ;
const items20 = [ onShippingRateChange ] ;
const effect20 = obj2 . useEffect ( ( ) => {
ref13 . current = onChange ;
} , items20 ) ;
const items21 = [ onShippingRateChange , "shippingratechange" , first , ref11 ] ;
const effect21 = obj2 . useEffect ( ( ) => {
if ( checkoutSdk ) {
if ( decoratedCb ) {
decoratedCb = function decoratedCb ( ) {
if ( ref . current ) {
const current = tmp . current ;
const apply = current . apply ;
if ( typeof apply === "unknown" ) {
HermesBuiltin . applyArguments ( tmp ) ;
} else {
apply ( tmp , arguments ) ;
}
}
} ;
obj . on ( ref14 , decoratedCb ) ;
return ( ) => {
decoratedCb . off ( outer1 _1 , decoratedCb ) ;
} ;
}
obj = decoratedCb ;
}
return ( ) => {
} ;
} , items21 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _6 !== "function" ) {
2026-07-29 08:29:29 +00:00
combined = HermesBuiltin . throwTypeError ( ) ;
}
options = first ;
ref14 = "change" ;
checkoutSdk = tmp66 ;
const ref12 = address . useRef ( onChange ) ;
ref13 = ref12 ;
const items22 = [ onChange ] ;
const effect22 = obj2 . useEffect ( ( ) => {
ref13 . current = onChange ;
} , items22 ) ;
const items23 = [ onChange , "change" , first , ref12 ] ;
const effect23 = obj2 . useEffect ( ( ) => {
if ( checkoutSdk ) {
if ( decoratedCb ) {
decoratedCb = function decoratedCb ( ) {
if ( ref . current ) {
const current = tmp . current ;
const apply = current . apply ;
if ( typeof apply === "unknown" ) {
HermesBuiltin . applyArguments ( tmp ) ;
} else {
apply ( tmp , arguments ) ;
}
}
} ;
obj . on ( ref14 , decoratedCb ) ;
return ( ) => {
decoratedCb . off ( outer1 _1 , decoratedCb ) ;
} ;
}
obj = decoratedCb ;
}
return ( ) => {
} ;
} , items23 ) ;
let tmp70 ;
if ( onReady ) {
if ( "expressCheckout" !== options ) {
onReady = function readyCallback ( ) {
ref14 ( ref13 ) ;
} ;
}
tmp70 = onReady ;
}
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _6 !== "function" ) {
2026-07-29 08:29:29 +00:00
combined = HermesBuiltin . throwTypeError ( ) ;
}
options = first ;
ref14 = "ready" ;
onChange = tmp70 ;
checkoutSdk = tmp72 ;
ref13 = obj2 . useRef ( tmp70 ) ;
const items24 = [ tmp70 ] ;
const effect24 = obj2 . useEffect ( ( ) => {
ref13 . current = onChange ;
} , items24 ) ;
const items25 = [ tmp70 , "ready" , first , ref13 ] ;
const effect25 = obj2 . useEffect ( ( ) => {
if ( checkoutSdk ) {
if ( decoratedCb ) {
decoratedCb = function decoratedCb ( ) {
if ( ref . current ) {
const current = tmp . current ;
const apply = current . apply ;
if ( typeof apply === "unknown" ) {
HermesBuiltin . applyArguments ( tmp ) ;
} else {
apply ( tmp , arguments ) ;
}
}
} ;
obj . on ( ref14 , decoratedCb ) ;
return ( ) => {
decoratedCb . off ( outer1 _1 , decoratedCb ) ;
} ;
}
obj = decoratedCb ;
}
return ( ) => {
} ;
} , items25 ) ;
const items26 = [ elements , checkoutSdk , options ] ;
const layoutEffect = obj2 . useLayoutEffect ( ( ) => {
if ( null === ref . current ) {
if ( null !== ref . current ) {
if ( onChange ) {
if ( checkoutSdk ) {
if ( "payment" === options ) {
let paymentElement = obj . createPaymentElement ( options ) ;
} else if ( "address" === tmp6 ) {
if ( "mode" in options ) {
const mode = tmp14 . mode ;
const tmp22 = outer2 _3 ( tmp14 , outer2 _24 ) ;
if ( "shipping" === mode ) {
paymentElement = obj . createShippingAddressElement ( tmp22 ) ;
} else if ( "billing" !== mode ) {
const _Error3 = Error ;
const error = new Error ( "Invalid options.mode. mode must be 'billing' or 'shipping'." ) ;
throw error ;
} else {
paymentElement = obj . createBillingAddressElement ( tmp22 ) ;
}
} else {
const _Error2 = Error ;
const error1 = new Error ( "You must supply options.mode. mode must be 'billing' or 'shipping'." ) ;
throw error1 ;
}
} else if ( "expressCheckout" === tmp6 ) {
paymentElement = obj . createExpressCheckoutElement ( options ) ;
} else if ( "currencySelector" === tmp6 ) {
paymentElement = obj . createCurrencySelectorElement ( ) ;
} else {
const _Error = Error ;
const concat = "Invalid Element type " . concat ;
const error2 = new Error ( "Invalid Element type " . concat ( ref14 , ". You must use either the <PaymentElement />, <AddressElement options={{mode: 'shipping'}} />, <AddressElement options={{mode: 'billing'}} />, or <ExpressCheckoutElement />." ) ) ;
throw error2 ;
}
} else {
paymentElement = null ;
if ( obj2 ) {
paymentElement = obj2 . create ( options , options ) ;
}
}
tmp . current = paymentElement ;
callback ( paymentElement ) ;
if ( paymentElement ) {
paymentElement . mount ( tmp33 . current ) ;
}
}
}
}
} , items26 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _7 !== "function" ) {
2026-07-29 08:29:29 +00:00
combined = HermesBuiltin . throwTypeError ( ) ;
}
ref14 = obj2 . useRef ( options ) ;
const items27 = [ options ] ;
const effect26 = obj2 . useEffect ( ( ) => {
ref14 . current = options ;
} , items27 ) ;
let current = ref14 . current ;
const items28 = [ options , current ] ;
const effect27 = obj2 . useEffect ( ( ) => {
if ( ref . current ) {
2026-08-04 21:03:28 +00:00
if ( typeof outer2 _11 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
const options = tmp3 ;
let closure _2 = [ "paymentRequest" ] ;
2026-08-04 21:03:28 +00:00
if ( typeof outer2 _8 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
let tmp7 = null !== tmp3 ;
if ( tmp7 ) {
tmp7 = "object" === outer2 _2 ( tmp3 ) ;
}
let reduced = null ;
if ( tmp7 ) {
let _Object = Object ;
const keys = Object . keys ( tmp3 ) ;
reduced = keys . reduce ( ( arg0 , arg1 ) => {
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _8 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
let tmp2 = null !== tmp ;
if ( tmp2 ) {
tmp2 = "object" === lib ( tmp ) ;
}
let tmp4 = ! tmp2 ;
if ( tmp2 ) {
tmp4 = ! outer1 _10 ( tmp3 [ arg1 ] , tmp [ arg1 ] ) ;
}
if ( lib . includes ( arg1 ) ) {
let tmp7 = arg0 ;
if ( tmp4 ) {
const _console = console ;
const concat = "Unsupported prop change: options." . concat ;
console . warn ( "Unsupported prop change: options." . concat ( arg1 , " is not a mutable property." ) ) ;
tmp7 = arg0 ;
}
} else {
tmp7 = arg0 ;
if ( tmp4 ) {
let obj = arg0 ;
if ( ! arg0 ) {
obj = { } ;
}
obj = { } ;
closure _1 ( obj , obj ) ;
obj = { } ;
if ( arg1 in obj ) {
const _Object = Object ;
const obj1 = { value : null , enumerable : true , configurable : true , writable : true } ;
obj1 [ 0 ] = tmp11 ;
Object . defineProperty ( obj , arg1 , obj1 ) ;
} else {
obj [ arg1 ] = tmp11 ;
}
closure _1 ( obj , { } , obj ) ;
}
}
return tmp7 ;
} , null ) ;
}
let tmp11 = reduced ;
if ( reduced ) {
tmp11 = "update" in tmp . current ;
}
if ( tmp11 ) {
const current = tmp . current ;
current . update ( reduced ) ;
}
let tmp4 = current ;
}
} , items28 ) ;
const layoutEffect1 = obj2 . useLayoutEffect ( ( ) => ( ) => {
if ( ref . current ) {
2026-08-04 21:03:28 +00:00
if ( typeof tmp . current . destroy === "function" ) {
2026-07-29 08:29:29 +00:00
try {
const current = tmp . current ;
current . destroy ( ) ;
tmp . current = null ;
} catch ( err ) {
}
}
}
} , [ ] ) ;
return < div id = { id } className = { className } ref = { ref } / > ;
} ) ;
tmp3 . propTypes = { id : _default . string , className : _default . string , onChange : _default . func , onBlur : _default . func , onFocus : _default . func , onReady : _default . func , onEscape : _default . func , onClick : _default . func , onLoadError : _default . func , onLoaderStart : _default . func , onNetworksChange : _default . func , onConfirm : _default . func , onCancel : _default . func , onShippingAddressChange : _default . func , onShippingRateChange : _default . func , options : _default . object } ;
tmp3 . displayName = combined ;
tmp3 . _ _elementType = address ;
return tmp3 ;
}
const elementComponent = createElementComponent ( "auBankAccount" , tmp9 ) ;
const elementComponent1 = createElementComponent ( "card" , tmp9 ) ;
const elementComponent2 = createElementComponent ( "cardNumber" , tmp9 ) ;
const elementComponent3 = createElementComponent ( "cardExpiry" , tmp9 ) ;
const elementComponent4 = createElementComponent ( "cardCvc" , tmp9 ) ;
const elementComponent5 = createElementComponent ( "fpxBank" , tmp9 ) ;
const elementComponent6 = createElementComponent ( "iban" , tmp9 ) ;
const elementComponent7 = createElementComponent ( "idealBank" , tmp9 ) ;
const elementComponent8 = createElementComponent ( "p24Bank" , tmp9 ) ;
const elementComponent9 = createElementComponent ( "epsBank" , tmp9 ) ;
const elementComponent10 = createElementComponent ( "payment" , tmp9 ) ;
const elementComponent11 = createElementComponent ( "expressCheckout" , tmp9 ) ;
const elementComponent12 = createElementComponent ( "currencySelector" , tmp9 ) ;
const elementComponent13 = createElementComponent ( "paymentRequestButton" , tmp9 ) ;
const elementComponent14 = createElementComponent ( "linkAuthentication" , tmp9 ) ;
const elementComponent15 = createElementComponent ( "address" , tmp9 ) ;
const elementComponent16 = createElementComponent ( "shippingAddress" , tmp9 ) ;
const elementComponent17 = createElementComponent ( "paymentMethodMessaging" , tmp9 ) ;
const elementComponent18 = createElementComponent ( "affirmMessage" , tmp9 ) ;
exports . AddressElement = elementComponent15 ;
exports . AffirmMessageElement = elementComponent18 ;
2026-08-04 21:03:28 +00:00
exports . AfterpayClearpayMessageElement = createElementComponent ( "afterpayClearpayMessage" , typeof window === "undefined" ) ;
2026-07-29 08:29:29 +00:00
exports . AuBankAccountElement = elementComponent ;
exports . CardCvcElement = elementComponent4 ;
exports . CardElement = elementComponent1 ;
exports . CardExpiryElement = elementComponent3 ;
exports . CardNumberElement = elementComponent2 ;
exports . CheckoutProvider = CheckoutProvider ;
exports . CurrencySelectorElement = elementComponent12 ;
exports . Elements = Elements ;
exports . ElementsConsumer = ElementsConsumer ;
2026-08-04 21:03:28 +00:00
exports . EmbeddedCheckout = typeof window === "undefined" ? ( function EmbeddedCheckoutServerElement ( arg0 ) {
2026-07-29 08:29:29 +00:00
let className ;
let id ;
( { id , className } = arg0 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof useEmbeddedCheckoutContext !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
let obj = React ;
if ( React . useContext ( context3 ) ) {
obj = { id : null , className : null } ;
obj [ 0 ] = id ;
obj [ 1 ] = className ;
return < div id = { null } className = { null } / > ;
} else {
const _Error = Error ;
const error = new Error ( "<EmbeddedCheckout> must be used within <EmbeddedCheckoutProvider>" ) ;
throw error ;
}
} ) : ( function EmbeddedCheckoutClientElement ( arg0 ) {
let className ;
let id ;
( { id , className } = arg0 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof useEmbeddedCheckoutContext !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
let obj = embeddedCheckout ;
const context = embeddedCheckout . useContext ( context3 ) ;
if ( context ) {
embeddedCheckout = context . embeddedCheckout ;
let closure _1 = obj . useRef ( false ) ;
const ref = obj . useRef ( null ) ;
const items = [ embeddedCheckout ] ;
const layoutEffect = obj . useLayoutEffect ( ( ) => {
const current = ref . current ;
let tmp2 = ! current ;
if ( ! current ) {
tmp2 = embeddedCheckout ;
}
if ( tmp2 ) {
tmp2 = null !== ref . current ;
}
if ( tmp2 ) {
embeddedCheckout . mount ( ref . current ) ;
ref . current = true ;
}
return ( ) => {
if ( ref . current ) {
if ( closure _0 ) {
try {
obj . unmount ( ) ;
tmp . current = false ;
} catch ( err ) {
}
}
obj = closure _0 ;
}
} ;
} , items ) ;
obj = { ref : null , id : null , className : null } ;
obj [ 0 ] = ref ;
obj [ 1 ] = id ;
obj [ 2 ] = className ;
return < div ref = { null } id = { null } className = { null } / > ;
} else {
const _Error = Error ;
const error = new Error ( "<EmbeddedCheckout> must be used within <EmbeddedCheckoutProvider>" ) ;
throw error ;
}
} ) ;
exports . EmbeddedCheckoutProvider = function EmbeddedCheckoutProvider ( stripe ) {
stripe = stripe . stripe ;
let options = stripe ;
options = stripe . options ;
let ref2 = options ;
const items = [ stripe ] ;
const memo = options . useMemo ( ( ) => outer1 _14 ( options , "Invalid prop `stripe` supplied to `EmbeddedCheckoutProvider`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details." ) , items ) ;
let closure _3 = options . useRef ( null ) ;
const ref = options . useRef ( null ) ;
const tmp3 = ref ( options . useState ( { embeddedCheckout : null } ) , 2 ) ;
const value = tmp3 [ 0 ] ;
let closure _6 = tmp3 [ 1 ] ;
const items1 = [ memo , options , value , ref ] ;
const effect = options . useEffect ( ( ) => {
if ( ! ref . current ) {
if ( ! ref . current ) {
function setStripeAndInitEmbeddedCheckout ( arg0 ) {
}
if ( "async" === memo . tag ) {
if ( ! tmp . current ) {
tmp3 . stripePromise . then ( ( current ) => {
if ( current ) {
2026-08-04 21:03:28 +00:00
if ( typeof setStripeAndInitEmbeddedCheckout !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
current = outer1 _4 . current ;
if ( ! current ) {
current = outer1 _3 . current ;
}
if ( ! current ) {
tmp2 . current = current ;
const current2 = tmp2 . current ;
const embeddedCheckout = current2 . initEmbeddedCheckout ( outer1 _1 ) ;
outer1 _3 . current = embeddedCheckout . then ( ( embeddedCheckout ) => {
callback ( { embeddedCheckout } ) ;
} ) ;
}
}
} ) ;
const stripePromise = tmp3 . stripePromise ;
}
}
let tmp5 = "sync" !== tmp3 . tag || tmp . current ;
if ( ! tmp5 ) {
const clientSecret = ref2 . clientSecret ;
let tmp6 = ! clientSecret ;
if ( ! clientSecret ) {
tmp6 = ! ref2 . fetchClientSecret ;
}
tmp5 = tmp6 ;
}
if ( ! tmp5 ) {
let current = tmp . current ;
if ( ! current ) {
current = tmp2 . current ;
}
if ( ! current ) {
tmp . current = tmp3 . stripe ;
let current2 = tmp . current ;
let embeddedCheckout = current2 . initEmbeddedCheckout ( ref2 ) ;
tmp2 . current = embeddedCheckout . then ( ( embeddedCheckout ) => {
callback ( { embeddedCheckout } ) ;
} ) ;
}
}
}
}
} , items1 ) ;
const items2 = [ value . embeddedCheckout ] ;
const effect1 = options . useEffect ( ( ) => ( ) => {
if ( embeddedCheckout . embeddedCheckout ) {
tmp2 . current = null ;
embeddedCheckout = tmp . embeddedCheckout ;
embeddedCheckout . destroy ( ) ;
} else if ( tmp2 . current ) {
const current = tmp2 . current ;
current . then ( ( ) => {
closure _3 . current = null ;
if ( closure _5 . embeddedCheckout ) {
const embeddedCheckout = closure _5 . embeddedCheckout ;
embeddedCheckout . destroy ( ) ;
}
} ) ;
}
} , items2 ) ;
const items3 = [ ref ] ;
const effect2 = options . useEffect ( ( ) => {
2026-08-04 21:03:28 +00:00
if ( typeof outer1 _15 !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
let registerAppInfo = obj ;
if ( ref ) {
registerAppInfo = obj . _registerWrapper ;
}
if ( registerAppInfo ) {
registerAppInfo = obj . registerAppInfo ;
}
if ( registerAppInfo ) {
obj . _registerWrapper ( { name : "react-stripe-js" , version : "3.7.0" } ) ;
obj . registerAppInfo ( { name : "react-stripe-js" , version : "3.7.0" , url : "https://stripe.com/docs/stripe-js/react" } ) ;
}
} , items3 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof current !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
options = stripe ;
const ref1 = options . useRef ( stripe ) ;
ref2 = ref1 ;
const items4 = [ stripe ] ;
const effect3 = obj . useEffect ( ( ) => {
ref14 . current = options ;
} , items4 ) ;
current = ref1 . current ;
const items5 = [ current , stripe ] ;
const effect4 = obj . useEffect ( ( ) => {
let tmp2 = null !== current ;
if ( tmp2 ) {
tmp2 = tmp !== options ;
}
if ( tmp2 ) {
const _console = console ;
console . warn ( "Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it." ) ;
}
} , items5 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof current !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
ref2 = obj . useRef ( options ) ;
const items6 = [ options ] ;
const effect5 = obj . useEffect ( ( ) => {
ref14 . current = options ;
} , items6 ) ;
let current2 = ref2 . current ;
const items7 = [ current2 , options ] ;
const effect6 = obj . useEffect ( ( ) => {
if ( null != current2 ) {
if ( null != ref2 ) {
if ( tmp4 ) {
const _console2 = console ;
console . warn ( "Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`." ) ;
}
if ( tmp7 ) {
const _console3 = console ;
console . warn ( "Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the client secret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead." ) ;
}
if ( tmp10 ) {
const _console4 = console ;
console . warn ( "Unsupported prop change on EmbeddedCheckoutProvider: You cannot change fetchClientSecret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead." ) ;
}
if ( tmp13 ) {
const _console5 = console ;
console . warn ( "Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it." ) ;
}
if ( tmp16 ) {
const _console6 = console ;
console . warn ( "Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it." ) ;
}
if ( tmp19 ) {
const _console7 = console ;
console . warn ( "Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onLineItemsChange option after setting it." ) ;
}
tmp10 = null != tmp . fetchClientSecret && tmp22 . fetchClientSecret !== tmp . fetchClientSecret ;
tmp13 = null != tmp . onComplete && tmp22 . onComplete !== tmp . onComplete ;
tmp16 = null != tmp . onShippingDetailsChange && tmp22 . onShippingDetailsChange !== tmp . onShippingDetailsChange ;
tmp19 = null != tmp . onLineItemsChange && tmp22 . onLineItemsChange !== tmp . onLineItemsChange ;
tmp4 = undefined === tmp22 . clientSecret && undefined === tmp22 . fetchClientSecret ;
tmp7 = null != tmp . clientSecret && tmp22 . clientSecret !== tmp . clientSecret ;
} else {
const _console = console ;
console . warn ( "Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them." ) ;
}
}
} , items7 ) ;
return < context3 . Provider value = { value } > { arg0 . children } < / c o n t e x t 3 . P r o v i d e r > ;
} ;
exports . EpsBankElement = elementComponent9 ;
exports . ExpressCheckoutElement = elementComponent11 ;
exports . FpxBankElement = elementComponent5 ;
exports . IbanElement = elementComponent6 ;
exports . IdealBankElement = elementComponent7 ;
exports . LinkAuthenticationElement = elementComponent14 ;
exports . P24BankElement = elementComponent8 ;
exports . PaymentElement = elementComponent10 ;
exports . PaymentMethodMessagingElement = elementComponent17 ;
exports . PaymentRequestButtonElement = elementComponent13 ;
exports . ShippingAddressElement = elementComponent16 ;
exports . useCheckout = function useCheckout ( ) {
const context = React . useContext ( context1 ) ;
2026-08-04 21:03:28 +00:00
if ( typeof parseCheckoutSdkContext !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
if ( context ) {
context1 = obj . useContext ( context2 ) ;
if ( context1 ) {
return context1 ;
} else {
const _Error2 = Error ;
const error = new Error ( "Could not find Checkout Context; You need to wrap the part of your app that calls useCheckout() in an <CheckoutProvider> provider." ) ;
throw error ;
}
} else {
const _Error = Error ;
const concat = "Could not find CheckoutProvider context; You need to wrap the part of your app that " . concat ;
const error1 = new Error ( "Could not find CheckoutProvider context; You need to wrap the part of your app that " . concat ( "calls useCheckout()" , " in an <CheckoutProvider> provider." ) ) ;
throw error1 ;
}
obj = React ;
} ;
exports . useElements = function useElements ( ) {
2026-08-04 21:03:28 +00:00
if ( typeof useElementsContextWithUseCase !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
context = React . useContext ( context ) ;
2026-08-04 21:03:28 +00:00
if ( typeof parseElementsContext !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
if ( context ) {
return context . elements ;
} else {
const _Error = Error ;
const concat = "Could not find Elements context; You need to wrap the part of your app that " . concat ;
const error = new Error ( "Could not find Elements context; You need to wrap the part of your app that " . concat ( "calls useElements()" , " in an <Elements> provider." ) ) ;
throw error ;
}
} ;
exports . useStripe = function useStripe ( ) {
2026-08-04 21:03:28 +00:00
if ( typeof useElementsOrCheckoutSdkContextWithUseCase !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
const context = React . useContext ( context1 ) ;
context1 = React . useContext ( context ) ;
if ( context ) {
if ( context1 ) {
const _Error3 = Error ;
const concat3 = "You cannot wrap the part of your app that " . concat ;
const error = new Error ( "You cannot wrap the part of your app that " . concat ( "calls useStripe()" , " in both <CheckoutProvider> and <Elements> providers." ) ) ;
throw error ;
}
}
if ( context ) {
2026-08-04 21:03:28 +00:00
if ( typeof parseCheckoutSdkContext !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
context1 = context ;
if ( ! context ) {
const _Error2 = Error ;
const concat2 = "Could not find CheckoutProvider context; You need to wrap the part of your app that " . concat ;
const error1 = new Error ( "Could not find CheckoutProvider context; You need to wrap the part of your app that " . concat ( "calls useStripe()" , " in an <CheckoutProvider> provider." ) ) ;
throw error1 ;
}
} else {
2026-08-04 21:03:28 +00:00
if ( typeof parseElementsContext !== "function" ) {
2026-07-29 08:29:29 +00:00
HermesBuiltin . throwTypeError ( ) ;
}
if ( ! context1 ) {
const _Error = Error ;
const concat = "Could not find Elements context; You need to wrap the part of your app that " . concat ;
const error2 = new Error ( "Could not find Elements context; You need to wrap the part of your app that " . concat ( "calls useStripe()" , " in an <Elements> provider." ) ) ;
throw error2 ;
}
}
return context1 . stripe ;
} ;
} ;
2026-08-04 21:03:28 +00:00
if ( typeof exports === "object" ) {
2026-07-29 08:29:29 +00:00
if ( undefined !== module ) {
fn ( exports , require ( "noop" ) ) ;
}
}
2026-08-04 21:03:28 +00:00
if ( typeof globalThis . define === "function" ) {
2026-07-29 08:29:29 +00:00
if ( globalThis . define . amd ) {
globalThis . define ( [ "exports" , "react" ] , fn ) ;
}
}
let self = this ;
2026-08-04 21:03:28 +00:00
if ( typeof globalThis !== "undefined" ) {
2026-07-29 08:29:29 +00:00
self = globalThis ;
}
let obj = { } ;
self . ReactStripe = obj ;
fn ( obj , self . React ) ;