/* Metro module 4227; source: unknown; dependencies: [31] */ function _fun34796(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#34796, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:6, offset: 0x010628c0, size: 184 bytes, params: 8, frame: 16 var r4; var object; const value = this; const t_347972 = t_34797; if (typeof exports !== 'object') { if (typeof global.define !== 'function') { r4 = typeof global.globalThis !== 'undefined' ? global.globalThis : value || global.self; object = {}; r4.ReactStripe = object; t_347972(object, r4.React); } else if (global.define.amd) { global.define(['exports', 'react'], t_347972); } else { r4 = typeof global.globalThis !== 'undefined' ? global.globalThis : value || global.self; object = {}; r4.ReactStripe = object; t_347972(object, r4.React); } } else if (module !== undefined) { t_347972(exports, require(31) /* metro dependency 31 */); } else if (typeof global.define !== 'function') { r4 = typeof global.globalThis !== 'undefined' ? global.globalThis : value || global.self; object = {}; r4.ReactStripe = object; t_347972(object, r4.React); } else if (global.define.amd) { global.define(['exports', 'react'], t_347972); } else { r4 = typeof global.globalThis !== 'undefined' ? global.globalThis : value || global.self; object = {}; r4.ReactStripe = object; t_347972(object, r4.React); } function t_34797(a0, a1) { // fn#34797, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:52, offset: 0x01062978, size: 1083 bytes, params: 3, frame: 38 let env0_0 = a1; const t_34797OwnKeys = function(a0, a1) { var r3; var value2; var env0_0 = a0; var property = global.Object; var value = property.keys(a0); if (global.Object.getOwnPropertySymbols) { property = global.Object; value2 = property.getOwnPropertySymbols(a0); r3 = a1 ? value2.filter(_fun34799) : value2; property = value.push; property.apply(value, r3); } return value; }; const t_34797_typeof = function(a0) { var r2; r2 = typeof global.Symbol !== 'function' ? _fun34805 : typeof global.Symbol.iterator === 'symbol' ? _fun34804 : _fun34805; env0_27 = r2; return r2(a0); }; const t_34797_defineProperty = function(a0, a1, a2) { if (a1 in a0) { global.Object.defineProperty(a0, a1, {'value': null, 'enumerable': true, 'configurable': true, 'writable': true, value: a2}); } else { a0[a1] = a2; } return a0; }; const t_34797_arrayLikeToArray = function(a0, a1) { var r0; var r1; var r2; var value3; var property; var value6; var value = a1; var value2 = value == null; reducibleJoin2: while (true) { if (value2) { r0 = value2; break reducibleJoin2; } value3 = value > a0.length; r0 = value3; break reducibleJoin2; } reducibleJoin4: while (true) { if (r0) { property = a0.length; r1 = property; break reducibleJoin4; } r1 = value; break reducibleJoin4; } var value4 = new global.Array(); var value5 = 0; if (value5 < r1) { r2 = value5; reducibleLoop5: while (true) { value4[r2] = a0[r2]; value6 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; if (value6 < r1) { r2 = value6; continue reducibleLoop5; } break reducibleLoop5; } } return value4; }; const exports = ({exports: {}, exports: requireFactoryWithThrowingShims()()}).exports; const r8 = exports && exports.__esModule && global.Object.prototype.hasOwnProperty.call(exports, 'default') ? exports.default : exports; const useAttachEvent = function(a0, a1, a2) { var env0_0 = a0; var env0_1 = a1; var env0_2 = a2; var value = !!a2; var env0_3 = value; var value3 = require.useRef(a2); var env0_4 = value3; require.useEffect(_fun34817, [a2]); require.useEffect(_fun34818, [value, a1, a0, value3]); }; const registerWithStripeJs = function(a0) { var value = a0; if (value && value._registerWrapper && value.registerAppInfo) { value._registerWrapper({'name': 'react-stripe-js', 'version': '3.7.0'}); value.registerAppInfo({'name': 'react-stripe-js', 'version': '3.7.0', 'url': 'https://stripe.com/docs/stripe-js/react'}); } }; a1.createContext(null).displayName = 'ElementsContext'; const parseElementsContext = function(a0, a1) { if (a0) { return a0; } var Error = global.Error; var value = 'Could not find Elements context; You need to wrap the part of your app that '.concat(a1, ' in an provider.'); value = new Error(value); throw value; }; const Elements2 = Elements; Elements2.propTypes = {stripe: r8.any, options: r8.object}; const closure2 = function({children}) { return children(useElementsContextWithUseCase('mounts ')); }; closure2.propTypes = {children: r8.func.isRequired}; const env0_17 = ['on', 'session']; a1.createContext(null).displayName = 'CheckoutSdkContext'; const parseCheckoutSdkContext = function(a0, a1) { if (a0) { return a0; } var Error = global.Error; var value = 'Could not find CheckoutProvider context; You need to wrap the part of your app that '.concat(a1, ' in an provider.'); value = new Error(value); throw value; }; a1.createContext(null).displayName = 'CheckoutContext'; const CheckoutProvider2 = CheckoutProvider; CheckoutProvider2.propTypes = {stripe: r8.any, options: r8.shape({fetchClientSecret: r8.func.isRequired, elementsOptions: r8.object}).isRequired}; const env0_22 = ['mode']; const createElementComponent2 = createElementComponent; value = typeof global.window === 'undefined'; a1.createContext(null).displayName = 'EmbeddedCheckoutProviderContext'; const r14 = value ? function({id, className}) { useEmbeddedCheckoutContext(); return require.createElement('div', {id: id, className: className}); } : EmbeddedCheckoutClientElement; const elementComponent2 = createElementComponent2('auBankAccount', value); const elementComponent22 = createElementComponent2('card', value); const elementComponent23 = createElementComponent2('cardNumber', value); const elementComponent24 = createElementComponent2('cardExpiry', value); const elementComponent25 = createElementComponent2('cardCvc', value); const elementComponent26 = createElementComponent2('fpxBank', value); const elementComponent27 = createElementComponent2('iban', value); const elementComponent28 = createElementComponent2('idealBank', value); const elementComponent29 = createElementComponent2('p24Bank', value); const elementComponent210 = createElementComponent2('epsBank', value); const elementComponent211 = createElementComponent2('payment', value); const elementComponent212 = createElementComponent2('expressCheckout', value); const elementComponent213 = createElementComponent2('currencySelector', value); const elementComponent214 = createElementComponent2('paymentRequestButton', value); const elementComponent215 = createElementComponent2('linkAuthentication', value); const elementComponent216 = createElementComponent2('address', value); const elementComponent217 = createElementComponent2('shippingAddress', value); const elementComponent218 = createElementComponent2('paymentMethodMessaging', value); const elementComponent219 = createElementComponent2('affirmMessage', value); value = createElementComponent2('afterpayClearpayMessage', value); a0.AddressElement = elementComponent216; a0.AffirmMessageElement = elementComponent219; a0.AfterpayClearpayMessageElement = value; a0.AuBankAccountElement = elementComponent2; a0.CardCvcElement = elementComponent25; a0.CardElement = elementComponent22; a0.CardExpiryElement = elementComponent24; a0.CardNumberElement = elementComponent23; a0.CheckoutProvider = CheckoutProvider2; a0.CurrencySelectorElement = elementComponent213; a0.Elements = Elements2; a0.ElementsConsumer = closure2; a0.EmbeddedCheckout = r14; a0.EmbeddedCheckoutProvider = EmbeddedCheckoutProvider; a0.EpsBankElement = elementComponent210; a0.ExpressCheckoutElement = elementComponent212; a0.FpxBankElement = elementComponent26; a0.IbanElement = elementComponent27; a0.IdealBankElement = elementComponent28; a0.LinkAuthenticationElement = elementComponent215; a0.P24BankElement = elementComponent29; a0.PaymentElement = elementComponent211; a0.PaymentMethodMessagingElement = elementComponent218; a0.PaymentRequestButtonElement = elementComponent214; a0.ShippingAddressElement = elementComponent217; a0.useCheckout = useCheckout; a0.useElements = function() { return useElementsContextWithUseCase('calls useElements()').elements; }; a0.useStripe = function() { return useElementsOrCheckoutSdkContextWithUseCase('calls useStripe()').stripe; }; function t_34797OwnKeys(a0, a1) { // fn#34798, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:79, owner: t_34797.ownKeys, offset: 0x01062db3, size: 101 bytes, params: 3, frame: 14 var ownPropertySymbols; const env0_0 = a0; let Object = global.Object; const value = Object.keys(a0); Object = global.Object; const getOwnPropertySymbols = Object.getOwnPropertySymbols; if (getOwnPropertySymbols) { ownPropertySymbols = global.Object.getOwnPropertySymbols(a0); value.push.apply(value, a1 ? ownPropertySymbols.filter(_fun34799) : ownPropertySymbols); } return value; function _fun34799(a0) { // fn#34799, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:209, offset: 0x01062e18, size: 37 bytes, params: 2, frame: 13 const Object = global.Object; const getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; return Reflect.apply(getOwnPropertyDescriptor, Object, [env0_0, a0]).enumerable; } } function _objectSpread2(a0) { // fn#34800, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:307, owner: t_34797._objectSpread2, offset: 0x01062e3d, size: 208 bytes, params: 2, frame: 24 var r7; var r12; var Object; var getOwnPropertyDescriptors; var t_34797OwnKeysBinding; var defineProperties; var Object2; const env0_0 = a0; let value = 1; if (value < arguments.length) { r7 = value; while (true) { r12 = arguments[r7] ?? ({}); var env0_1 = r12; if (r7 % 2) { t_34797OwnKeysBinding = t_34797OwnKeys; Object = global.Object; t_34797OwnKeysBinding(Object(r12), true).forEach(_fun34801); } else { Object = global.Object; getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors; if (getOwnPropertyDescriptors) { Object = global.Object; defineProperties = Object.defineProperties; Object2 = global.Object; getOwnPropertyDescriptors = Object2.getOwnPropertyDescriptors; Reflect.apply(defineProperties, Object, [a0, Reflect.apply(getOwnPropertyDescriptors, Object2, [r12])]); } else { t_34797OwnKeysBinding = t_34797OwnKeys; Object = global.Object; t_34797OwnKeysBinding(Object(r12)).forEach(_fun34802); } } value = typeof r7 === 'bigint' ? r7 + 1n : +r7 + 1; if (value < arguments.length) { r7 = value; continue; } break; } } return a0; function _fun34801(a0) { // fn#34801, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:446, offset: 0x01062f0d, size: 36 bytes, params: 2, frame: 15 t_34797_defineProperty(env0_0, a0, env0_1[a0]); } function _fun34802(a0) { // fn#34802, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:611, offset: 0x01062f31, size: 56 bytes, params: 2, frame: 17 const Object = global.Object; const defineProperty = Object.defineProperty; const binding = env0_0; const Object2 = global.Object; const getOwnPropertyDescriptor = Object2.getOwnPropertyDescriptor; Reflect.apply(defineProperty, Object, [binding, a0, Reflect.apply(getOwnPropertyDescriptor, Object2, [env0_1, a0])]); } } function t_34797_typeof(a0) { // fn#34803, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:699, owner: t_34797._typeof, offset: 0x01062f69, size: 74 bytes, params: 2, frame: 12 const Symbol = global.Symbol; return (typeof Symbol !== 'function' ? function(a0) { return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0; } : typeof global.Symbol.iterator === 'symbol' ? _typeof_typeof_body_34804 : _typeof_typeof_body_34805)(a0); } function _slicedToArray(a0, a1) { // fn#34808, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:1522, owner: t_34797._slicedToArray, offset: 0x01063099, size: 682 bytes, params: 3, frame: 27 var r0; var r11; var r3; var r10; var r8; var r2; var r7; var r12; var r9; var value; var Array; var isArray; var isArray2; var value2; var Symbol; var value3; var iterator; var property; var items2; var value4; var value5; var call; var value6; var next; var value7; var done; var push; var value8; var length; var value9; var value10; var value11; var value12; var error; var value13; var Object; var prototype; var toString; var value14; var slice; var value15; var value16; var constructor; var name; var regexp; var test; var value17; var from; var value18; var TypeError; var typeError; exceptionSkip72: while (true) { exceptionLanding72: while (true) { exceptionSkip62: while (true) { exceptionLanding62: while (true) { exceptionSkip59: while (true) { exceptionLanding59: while (true) { exceptionSkip46: while (true) { exceptionLanding46: while (true) { value = a0; Array = global.Array; isArray = Array.isArray; isArray2 = Reflect.apply(isArray, Array, [value]); value2 = undefined; r0 = isArray2 ? value : value2; if (!r0) { reducibleJoin8: while (true) { if (value) { Symbol = global.Symbol; value3 = typeof Symbol !== 'undefined'; reducibleJoin5: while (true) { if (value3) { Symbol = global.Symbol; iterator = Symbol.iterator; property = value[iterator]; r11 = property; break reducibleJoin5; } r11 = value3; break reducibleJoin5; } reducibleJoin7: while (true) { if (r11) { break reducibleJoin7; } property = value['@@iterator']; r11 = property; break reducibleJoin7; } r3 = r11; break reducibleJoin8; } r3 = value; break reducibleJoin8; } reducibleJoin74: while (true) { reducibleJoin57: while (true) { if (r3 != null) { items2 = []; value4 = true; value5 = false; try { try { call = r3.call; } catch (error) { r8 = r3; r10 = value4; break exceptionLanding46; } } catch (error) { r8 = r3; r10 = value4; break exceptionLanding62; } try { try { value6 = Reflect.apply(call, r3, [value]); } catch (error) { r8 = r3; r10 = value4; break exceptionLanding46; } } catch (error) { r8 = r3; r10 = value4; break exceptionLanding62; } try { try { next = value6.next; } catch (error) { r8 = value6; r10 = value4; break exceptionLanding46; } } catch (error) { r8 = value6; r10 = value4; break exceptionLanding62; } try { try { value7 = Reflect.apply(next, value6, []); } catch (error) { r8 = value6; r10 = value4; break exceptionLanding46; } } catch (error) { r8 = value6; r10 = value4; break exceptionLanding62; } try { try { done = value7.done; } catch (error) { r8 = value6; r10 = value4; break exceptionLanding46; } } catch (error) { r8 = value6; r10 = value4; break exceptionLanding62; } reducibleJoin45: while (true) { if (done) { r10 = done; break reducibleJoin45; } try { try { push = items2.push; } catch (error) { r8 = value6; r10 = done; break exceptionLanding46; } } catch (error) { r8 = value6; r10 = done; break exceptionLanding62; } try { try { value8 = value7.value; } catch (error) { r8 = value6; r10 = done; break exceptionLanding46; } } catch (error) { r8 = value6; r10 = done; break exceptionLanding62; } try { try { Reflect.apply(push, items2, [value8]); } catch (error) { r8 = value6; r10 = done; break exceptionLanding46; } } catch (error) { r8 = value6; r10 = done; break exceptionLanding62; } if (a1) { try { try { length = items2.length; } catch (error) { r8 = value6; r10 = done; break exceptionLanding46; } } catch (error) { r8 = value6; r10 = done; break exceptionLanding62; } try { try { value9 = length === a1; } catch (error) { r8 = value6; r10 = done; break exceptionLanding46; } } catch (error) { r8 = value6; r10 = done; break exceptionLanding62; } if (value9) { r10 = done; break reducibleJoin45; } } reducibleLoop29: while (true) { try { try { next = value6.next; } catch (error) { r8 = value6; r10 = value4; break exceptionLanding46; } } catch (error) { r8 = value6; r10 = value4; break exceptionLanding62; } try { try { value10 = Reflect.apply(next, value6, []); } catch (error) { r8 = value6; r10 = value4; break exceptionLanding46; } } catch (error) { r8 = value6; r10 = value4; break exceptionLanding62; } try { try { done = value10.done; } catch (error) { r8 = value6; r10 = value4; break exceptionLanding46; } } catch (error) { r8 = value6; r10 = value4; break exceptionLanding62; } if (done) { r10 = done; break reducibleJoin45; } try { try { push = items2.push; } catch (error) { r8 = value6; r10 = done; break exceptionLanding46; } } catch (error) { r8 = value6; r10 = done; break exceptionLanding62; } try { try { value11 = value10.value; } catch (error) { r8 = value6; r10 = done; break exceptionLanding46; } } catch (error) { r8 = value6; r10 = done; break exceptionLanding62; } try { try { Reflect.apply(push, items2, [value11]); } catch (error) { r8 = value6; r10 = done; break exceptionLanding46; } } catch (error) { r8 = value6; r10 = done; break exceptionLanding62; } if (a1) { try { try { length = items2.length; } catch (error) { r8 = value6; r10 = done; break exceptionLanding46; } } catch (error) { r8 = value6; r10 = done; break exceptionLanding62; } try { try { value12 = length !== a1; } catch (error) { r8 = value6; r10 = done; break exceptionLanding46; } } catch (error) { r8 = value6; r10 = done; break exceptionLanding62; } if (value12) { continue reducibleLoop29; } r10 = done; break reducibleJoin45; } continue reducibleLoop29; } } r2 = value2; r7 = value5; r8 = value6; reducibleJoin52: while (true) { if (r10) { r12 = r10; break reducibleJoin52; } try { property = r8.return; } catch (error) { break exceptionLanding59; } try { value13 = property == null; } catch (error) { break exceptionLanding59; } r12 = value13; break reducibleJoin52; } reducibleJoin56: while (true) { if (r12) { break reducibleJoin56; } try { property = r8.return; } catch (error) { break exceptionLanding59; } try { Reflect.apply(property, r8, []); } catch (error) { break exceptionLanding59; } break reducibleJoin56; } if (r7) { throw r2; } r3 = items2; break reducibleJoin57; } r3 = value2; break reducibleJoin57; } r0 = r3; break reducibleJoin74; } } reducibleJoin91: while (true) { if (r0) { break reducibleJoin91; } reducibleJoin90: while (true) { if (value) { if (typeof value === 'string') { value18 = environment; value = t_34797_arrayLikeToArray(value, a1); r2 = value; break reducibleJoin90; } Object = global.Object; prototype = Object.prototype; toString = prototype.toString; call = toString.call; value14 = Reflect.apply(call, toString, [value]); slice = value14.slice; value15 = Reflect.apply(slice, value14, [8, -1]); value16 = value15 === 'Object'; reducibleJoin79: while (true) { if (value16) { constructor = value.constructor; r3 = constructor; break reducibleJoin79; } r3 = value16; break reducibleJoin79; } reducibleJoin81: while (true) { if (r3) { constructor = value.constructor; name = constructor.name; r8 = name; break reducibleJoin81; } r8 = value15; break reducibleJoin81; } reducibleJoin88: while (true) { reducibleJoin87: while (true) { if (r8 === 'Map') { break reducibleJoin87; } if (r8 === 'Set') { break reducibleJoin87; } reducibleJoin86: while (true) { reducibleJoin85: while (true) { if (r8 === 'Arguments') { break reducibleJoin85; } regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', ''); test = regexp.test; if (Reflect.apply(test, regexp, [r8])) { break reducibleJoin85; } r3 = value2; break reducibleJoin86; } value17 = environment; value = t_34797_arrayLikeToArray(value, a1); r3 = value; break reducibleJoin86; } break reducibleJoin88; } Array = global.Array; from = Array.from; value = Reflect.apply(from, Array, [value]); r3 = value; break reducibleJoin88; } r2 = r3; break reducibleJoin90; } r2 = value2; break reducibleJoin90; } r0 = r2; break reducibleJoin91; } if (r0) { return r0; } TypeError = global.TypeError; prototype = TypeError.prototype; value = Object.create(prototype, {constructor: {value: TypeError}}); typeError = new TypeError('Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'); value = typeError instanceof Object ? typeError : value; throw value; break exceptionSkip46; } r2 = error; r7 = value4; if (r10) { r12 = r10; } else { try { property = r8.return; } catch (error) { break exceptionLanding59; } try { value13 = property == null; } catch (error) { break exceptionLanding59; } r12 = value13; } if (!r12) { try { property = r8.return; } catch (error) { break exceptionLanding59; } try { Reflect.apply(property, r8, []); } catch (error) { break exceptionLanding59; } } if (r7) { throw r2; } r3 = items2; r0 = r3; if (!r0) { if (!value) { r2 = value2; continue; } if (typeof value === 'string') { value18 = environment; value = t_34797_arrayLikeToArray(value, a1); r2 = value; } else { Object = global.Object; toString = Object.prototype.toString; call = toString.call; value14 = Reflect.apply(call, toString, [value]); slice = value14.slice; value15 = Reflect.apply(slice, value14, [8, -1]); value16 = value15 === 'Object'; if (!value16) { r3 = value16; continue; } constructor = value.constructor; r3 = constructor; if (!r3) { r8 = value15; continue; } constructor = value.constructor; name = constructor.name; r8 = name; if (r8 === 'Map') { Array = global.Array; from = Array.from; value = Reflect.apply(from, Array, [value]); r3 = value; } else if (r8 === 'Set') { Array = global.Array; from = Array.from; value = Reflect.apply(from, Array, [value]); r3 = value; } else if (r8 === 'Arguments') { value17 = environment; value = t_34797_arrayLikeToArray(value, a1); r3 = value; } else { regexp = RegExp('^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$', ''); test = regexp.test; if (!Reflect.apply(test, regexp, [r8])) { r3 = value2; continue; } value17 = environment; value = t_34797_arrayLikeToArray(value, a1); r3 = value; } r2 = r3; } r0 = r2; } if (r0) { return r0; } TypeError = global.TypeError; prototype = TypeError.prototype; value = Object.create(prototype, {constructor: {value: TypeError}}); typeError = new TypeError('Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'); value = typeError instanceof Object ? typeError : value; throw value; break exceptionSkip46; } break exceptionSkip59; } if (r7) { throw r2; } throw error; break exceptionSkip59; } break exceptionSkip62; } if (r10) { if (r10) { throw error; } try { property = r8.return; } catch (error) { break exceptionLanding72; } try { Reflect.apply(property, r8, []); } catch (error) { break exceptionLanding72; } throw error; } try { property = r8.return; } catch (error) { break exceptionLanding72; } try { value = property == null; } catch (error) { break exceptionLanding72; } r9 = value; if (r9) { throw error; } try { property = r8.return; } catch (error) { break exceptionLanding72; } try { Reflect.apply(property, r8, []); } catch (error) { break exceptionLanding72; } throw error; break exceptionSkip62; } break exceptionSkip72; } throw error; break exceptionSkip72; } } function requireFactoryWithThrowingShims() { // fn#34810, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:2775, owner: t_34797.requireFactoryWithThrowingShims, offset: 0x0106339c, size: 91 bytes, params: 1, frame: 6 const closure = function() { }; const closure2 = function() { }; if (env0_4) { return env0_3; } const env0_0 = env0_2 ? env0_1 : 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED'; closure2.resetWarningCache = closure; return factoryWithThrowingShims; function factoryWithThrowingShims() { // fn#34813, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:3075, owner: t_34797.requireFactoryWithThrowingShims.factoryWithThrowingShims, offset: 0x010633f7, size: 142 bytes, params: 1, frame: 4 const isRequired2 = isRequired; const closure2 = function() { return isRequired; }; isRequired2.isRequired = isRequired2; const object = {array: isRequired2, bool: isRequired2, func: isRequired2, number: isRequired2, object: isRequired2, string: isRequired2, symbol: isRequired2, any: isRequired2, arrayOf: closure2, element: isRequired2, elementType: isRequired2, instanceOf: closure2, node: isRequired2, objectOf: closure2, oneOf: closure2, oneOfType: closure2, shape: closure2, exact: closure2}; object.checkPropTypes = requireFactoryWithThrowingShimsEmptyFunctionWithReset; object.resetWarningCache = resetWarningCache_34811; object.PropTypes = object; return object; function factoryWithThrowingShimsAny(a0, a1, a2, a3, a4, a5) { // fn#34814, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:3111, owner: t_34797.requireFactoryWithThrowingShims.factoryWithThrowingShims.any, offset: 0x01063485, size: 66 bytes, params: 7, frame: 11 var error; const value = environment.__proto__; if (a5 !== env1_0) { error = new global.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 useAttachEvent(a0, a1, a2) { // fn#34816, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:3823, owner: t_34797.useAttachEvent, offset: 0x010634c7, size: 118 bytes, params: 4, frame: 18 const env0_0 = a0; const env0_1 = a1; const env0_2 = a2; const value = !!a2; const value3 = require.useRef(a2); require.useEffect(_fun34817, [a2]); require.useEffect(_fun34818, [value, a1, a0, value3]); function _fun34817() { // fn#34817, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:3891, offset: 0x0106353d, size: 21 bytes, params: 1, frame: 2 env0_4.current = importDefault; } function _fun34818() { // fn#34818, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:3934, offset: 0x01063552, size: 62 bytes, params: 1, frame: 14 if (result) { if (env0_0) { env0_0.on(require, decoratedCb); return _fun34821; } } return function() { }; function decoratedCb() { // fn#34820, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:3981, offset: 0x01063590, size: 43 bytes, params: 1, frame: 15 var binding; if (env1_4.current) { binding = env1_4; binding.current.apply(binding, arguments); } } function _fun34821() { // fn#34821, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:4062, offset: 0x010635bb, size: 34 bytes, params: 1, frame: 13 const binding = env1_0; binding.off(require, decoratedCb); } } } function usePrevious(a0) { // fn#34822, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:4101, owner: t_34797.usePrevious, offset: 0x010635dd, size: 61 bytes, params: 2, frame: 15 const env0_0 = a0; const value = require.useRef(a0); require.useEffect(_fun34823, [a0]); return value.current; function _fun34823() { // fn#34823, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:4163, offset: 0x00e655cf, size: 21 bytes, params: 1, frame: 2 env0_1.current = env0_0; } } function isUnknownObject(a0) { // fn#34824, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:4206, owner: t_34797.isUnknownObject, offset: 0x0106361a, size: 36 bytes, params: 2, frame: 12 var r0; let value = a0 !== null; if (value) { value = t_34797_typeof(a0); value = value === 'object'; r0 = value; } else { r0 = value; } return r0; } function t_34797IsEqual(a0, a1) { // fn#34825, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:4296, owner: t_34797.isEqual, offset: 0x0106363e, size: 367 bytes, params: 3, frame: 20 var environment; var r11; var r9; var Array; var isArray; var Object; var prototype; var toString; var call; var value2; var value3; var keys; var value4; var length; var length2; var object; var value5; var value6; var value7; var value8; var length3; var every; let value = environment; if (isUnknownObject(a0)) { reducibleJoin2: while (true) { if (isUnknownObject(a1)) { Array = global.Array; isArray = Array.isArray; value = Reflect.apply(isArray, Array, [a0]); Array = global.Array; isArray = Array.isArray; if (value !== Reflect.apply(isArray, Array, [a1])) { return false; } Object = global.Object; prototype = Object.prototype; toString = prototype.toString; call = toString.call; value2 = Reflect.apply(call, toString, [a0]); value3 = value2 === '[object Object]'; Object = global.Object; prototype = Object.prototype; toString = prototype.toString; call = toString.call; if (value3 !== (Reflect.apply(call, toString, [a1]) === '[object Object]')) { return false; } if (!value3) { reducibleJoin8: while (true) { if (!value) { return a0 === a1; } break reducibleJoin8; } } Object = global.Object; keys = Object.keys; value = Reflect.apply(keys, Object, [a0]); Object = global.Object; keys = Object.keys; value4 = Reflect.apply(keys, Object, [a1]); length = value.length; length2 = value4.length; if (length !== length2) { return false; } object = {}; length = value.length; value5 = 0; if (value5 < length) { r11 = value5; reducibleLoop10: while (true) { object[value[r11]] = true; value6 = r11 + 1; length = value.length; if (value6 < length) { r11 = value6; continue reducibleLoop10; } break reducibleLoop10; } } length = value4.length; if (value5 < length) { r9 = value5; reducibleLoop12: while (true) { object[value4[r9]] = true; value7 = r9 + 1; length = value4.length; if (value7 < length) { r9 = value7; continue reducibleLoop12; } break reducibleLoop12; } } Object = global.Object; keys = Object.keys; value8 = Reflect.apply(keys, Object, [object]); length = value8.length; length3 = value.length; if (length !== length3) { return false; } var env0_0 = a0; var env0_1 = a1; every = value8.every; return Reflect.apply(every, value8, [pred]); } break reducibleJoin2; } } return a0 === a1; function pred(a0) { // fn#34826, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:4760, owner: t_34797.isEqual.pred, offset: 0x010637ad, size: 39 bytes, params: 2, frame: 13 return t_34797IsEqual_2(env0_0[a0], require[a0]); } } function extractAllowedOptionsUpdates(a0, a1, a2) { // fn#34827, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:4809, owner: t_34797.extractAllowedOptionsUpdates, offset: 0x010637d4, size: 81 bytes, params: 4, frame: 15 var r0; const env0_0 = a0; const env0_1 = a1; const env0_2 = a2; let value = isUnknownObject(a0); const value2 = null; if (value) { value = global.Object.keys(a0); value = value.reduce(_fun34828, value2); r0 = value; } else { r0 = value2; } return r0; function _fun34828(a0, a1) { // fn#34828, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:4889, offset: 0x01063825, size: 192 bytes, params: 3, frame: 21 var r0; var _objectSpread2Binding; var object; var t_34797_definePropertyBinding; var object3; var console; const value = a0; const isUnknownObject2 = isUnknownObject(require); const r2 = isUnknownObject2 ? !t_34797IsEqual(env0_0[a1], require[a1]) : !isUnknownObject2; if (importDefault.includes(a1)) { if (r2) { console = global.console; console.warn('Unsupported prop change: options.'.concat(a1, ' is not a mutable property.')); r0 = value; } else { r0 = value; } } else if (r2) { _objectSpread2Binding = _objectSpread2; object = {}; _objectSpread2Binding(object, value || ({})); t_34797_definePropertyBinding = t_34797_defineProperty; object3 = {}; t_34797_definePropertyBinding(object3, a1, env0_0[a1]); _objectSpread2Binding(object, {}, object3); r0 = object; } else { r0 = value; } return r0; } } function validateStripe(a0) { // fn#34829, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:5338, owner: t_34797.validateStripe, offset: 0x010638e5, size: 183 bytes, params: 2, frame: 15 const value = '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.'; const r3 = arguments.length > 1 ? arguments[1] === undefined ? value : arguments[1] : value; if (a0 === null) { return a0; } let r1 = isUnknownObject(a0) && typeof a0.elements === 'function' && typeof a0.createToken === 'function'; r1 = r1 && typeof a0.createPaymentMethod === 'function' && typeof a0.confirmCardPayment === 'function'; if (r1) { return a0; } const Error = global.Error; throw new Error(r3); } function parseStripeProp(a0) { // fn#34830, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:5657, owner: t_34797.parseStripeProp, offset: 0x0106399c, size: 182 bytes, params: 2, frame: 17 var object; const value = '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.'; const r2 = arguments.length > 1 ? arguments[1] === undefined ? value : arguments[1] : value; if (isUnknownObject(a0) && typeof a0.then === 'function') { object = {tag: 'async'}; object.stripePromise = global.Promise.resolve(a0).then(_fun34831); return object; } validateStripe(a0, r2); return a0 === null ? {tag: 'empty'} : {tag: 'sync', stripe: a0}; function _fun34831(a0) { // fn#34831, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:5874, offset: 0x01063a52, size: 27 bytes, params: 2, frame: 13 validateStripe(a0, env0_0); return a0; } } function Elements({stripe, options, children}) { // fn#34834, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:6468, owner: t_34797.Elements, offset: 0x01063afe, size: 296 bytes, params: 2, frame: 22 const value2 = require.useMemo(function() { return parseStripeProp(stripe); }, [stripe]); const [property, env0_4] = _slicedToArray(require.useState(_fun34836), 2); require.useEffect(_fun34837, [value2, property, options]); require.useEffect(_fun34842, [usePrevious(stripe), stripe]); require.useEffect(_fun34843, [options, usePrevious(options), property.elements]); require.useEffect(_fun34844, [property.stripe]); const createElement = require.createElement; const Provider = env0_14.Provider; return Reflect.apply(createElement, require, [Provider, {value: property}, children]); function _fun34836() { // fn#34836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:6601, offset: 0x01063c26, size: 86 bytes, params: 1, frame: 14 const tag = env0_2.tag; const value2 = null; return {stripe: tag !== 'sync' ? value2 : env0_2.stripe, elements: env0_2.tag !== 'sync' ? value2 : env0_2.stripe.elements(options)}; } function _fun34837() { // fn#34837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:6739, offset: 0x01063c7c, size: 134 bytes, params: 1, frame: 14 const safeSetContext_348382 = safeSetContext_34838; if (env0_2.tag !== 'async') { if (!(env0_2.tag !== 'sync' || env0_3.stripe)) { safeSetContext_348382(env0_2.stripe); } } else if (env0_3.stripe) { if (!(env0_2.tag !== 'sync' || env0_3.stripe)) { safeSetContext_348382(env0_2.stripe); } } else { env0_2.stripePromise.then(_fun34840); } return function() { env0_0 = false; }; function safeSetContext_34838(a0) { // fn#34838, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:6761, offset: 0x01063d02, size: 30 bytes, params: 2, frame: 11 const env0_0 = a0; env1_4(_fun34839); function _fun34839(a0) { // fn#34839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:6791, offset: 0x01063d20, size: 54 bytes, params: 2, frame: 13 const value = a0; return value.stripe ? value : {stripe: env0_0, elements: env0_0.elements(options)}; } } function _fun34840(a0) { // fn#34840, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:6951, offset: 0x01063d56, size: 37 bytes, params: 2, frame: 11 const value = a0; if (value && env0_0) { safeSetContext_34838(value); } } } function _fun34842() { // fn#34842, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:7029, offset: 0x01063d88, size: 59 bytes, params: 1, frame: 11 if (env0_5 !== null && env0_5 !== stripe) { global.console.warn('Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.'); } } function _fun34843() { // fn#34843, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:7204, offset: 0x01063dc3, size: 78 bytes, params: 1, frame: 16 var value2; var value3; if (env0_3.elements) { value2 = environment.__proto__; value3 = extractAllowedOptionsUpdates(options, env0_6, ['clientSecret', 'fonts']); if (value3) { env0_3.elements.update(value3); } } } function _fun34844() { // fn#34844, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:7326, offset: 0x01063e11, size: 29 bytes, params: 1, frame: 11 registerWithStripeJs(env0_3.stripe); } } function useElementsContextWithUseCase(a0) { // fn#34845, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:7454, owner: t_34797.useElementsContextWithUseCase, offset: 0x01063e2e, size: 39 bytes, params: 2, frame: 13 const value2 = require.useContext(env0_14); parseElementsContext(value2, a0); return value2; } function CheckoutProvider({stripe, options, children}) { // fn#34848, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:8015, owner: t_34797.CheckoutProvider, offset: 0x01063eb8, size: 454 bytes, params: 2, frame: 27 let useMemo = require.useMemo; const value2 = Reflect.apply(useMemo, require, [function() { return parseStripeProp(stripe, '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.'); }, [stripe]]); const _slicedToArrayBinding = _slicedToArray; let useState = require.useState; const value5 = _slicedToArrayBinding(Reflect.apply(useState, require, [null]), 2); const property = value5[0]; const property2 = value5[1]; useState = require.useState; const value6 = _slicedToArrayBinding(Reflect.apply(useState, require, [_fun34850]), 2); const property3 = value6[0]; const env0_6 = value6[1]; const env0_8 = require.useRef(false); require.useEffect(_fun34853, [value2, property3, options, property2]); require.useEffect(_fun34858, [usePrevious(stripe), stripe]); require.useEffect(_fun34859, [options, usePrevious(options), property3.checkoutSdk, usePrevious(property3.checkoutSdk)]); require.useEffect(_fun34860, [property3.stripe]); useMemo = require.useMemo; return property3.checkoutSdk ? require.createElement(env0_18.Provider, {value: property3}, require.createElement(env0_20.Provider, {value: Reflect.apply(useMemo, require, [_fun34861, [property3.checkoutSdk, property]])}, children)) : null; function _fun34850() { // fn#34850, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:8412, offset: 0x0106409c, size: 48 bytes, params: 1, frame: 6 const tag = env0_2.tag; const value2 = null; return {stripe: tag !== 'sync' ? value2 : env0_2.stripe, checkoutSdk: value2}; } function safeSetContext(a0, a1) { // fn#34851, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:8506, owner: t_34797.CheckoutProvider.safeSetContext, offset: 0x010640cc, size: 37 bytes, params: 3, frame: 11 const env0_0 = a0; const env0_1 = a1; env0_6(_fun34852); function _fun34852(a0) { // fn#34852, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:8538, offset: 0x010640f1, size: 49 bytes, params: 2, frame: 4 const value = a0; return value.stripe && value.checkoutSdk ? value : {stripe: env0_0, checkoutSdk: require}; } } function _fun34853() { // fn#34853, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:8640, offset: 0x01064122, size: 173 bytes, params: 1, frame: 14 var r2; var stripe; if (env0_2.tag !== 'async') { r2 = env0_2.tag === 'sync' && env0_2.stripe; r2 = r2 && !env0_8.current; if (r2) { env0_8.current = true; stripe = env0_2.stripe; stripe.initCheckout(options).then(_fun34854); } } else { stripe = env0_5.stripe; if (stripe) { r2 = env0_2.tag === 'sync' && env0_2.stripe; r2 = r2 && !env0_8.current; if (r2) { env0_8.current = true; stripe = env0_2.stripe; stripe.initCheckout(options).then(_fun34854); } } else { env0_2.stripePromise.then(_fun34855); } } return function() { env0_0 = false; }; function _fun34854(a0) { // fn#34854, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:8775, offset: 0x010641cf, size: 55 bytes, params: 2, frame: 14 var value; if (a0) { value = environment.__proto__; safeSetContext(env1_2.stripe, a0); a0.on('change', env1_4); } } function _fun34855(a0) { // fn#34855, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:8849, offset: 0x01064206, size: 92 bytes, params: 2, frame: 13 var environment; var value5; let value = a0; if ((value || value) && !env1_8.current) { value5 = environment.__proto__; env1_8.current = true; value = value.initCheckout(options); value.then(_fun34856); } function _fun34856(a0) { // fn#34856, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:8917, offset: 0x01064262, size: 52 bytes, params: 2, frame: 14 var value; if (a0) { value = environment.__proto__.__proto__; safeSetContext(env0_0, a0); a0.on('change', env2_4); } } } } function _fun34858() { // fn#34858, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:9019, offset: 0x01064296, size: 59 bytes, params: 1, frame: 11 if (env0_9 !== null && env0_9 !== stripe) { global.console.warn('Unsupported prop change on CheckoutProvider: You cannot change the `stripe` prop after setting it.'); } } function _fun34859() { // fn#34859, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:9214, offset: 0x010642d1, size: 189 bytes, params: 1, frame: 15 var appearance; var appearance2; var value2; var value3; var value4; if (env0_5.checkoutSdk) { value2 = undefined; appearance = env0_10 == null || env0_10.elementsOptions === null || value2 === env0_10.elementsOptions ? value2 : env0_10.elementsOptions.appearance; appearance2 = options == null || options.elementsOptions === null || value2 === options.elementsOptions ? value2 : options.elementsOptions.appearance; value3 = environment.__proto__; value4 = t_34797IsEqual(appearance2, appearance); if (appearance2 && (value4 ? !env0_11 && env0_5.checkoutSdk : !value4)) { env0_5.checkoutSdk.changeAppearance(appearance2); } } } function _fun34860() { // fn#34860, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:9513, offset: 0x0106438e, size: 29 bytes, params: 1, frame: 11 registerWithStripeJs(env0_5.stripe); } function _fun34861() { // fn#34861, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:9567, offset: 0x010643ab, size: 98 bytes, params: 1, frame: 16 var r0; var Object; var assign; const checkoutSdk = env0_5.checkoutSdk; const binding = env0_3; let value = null; if (checkoutSdk) { checkoutSdk.on; checkoutSdk.session; value = environment.__proto__; value = _objectWithoutProperties(checkoutSdk, env1_17); Object = global.Object; assign = Object.assign; r0 = binding ? Reflect.apply(assign, Object, [binding, value]) : Reflect.apply(assign, Object, [checkoutSdk.session(), value]); } else { r0 = value; } return r0; } } function useElementsOrCheckoutSdkContextWithUseCase(a0) { // fn#34862, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:10021, owner: t_34797.useElementsOrCheckoutSdkContextWithUseCase, offset: 0x0106440d, size: 133 bytes, params: 2, frame: 15 var r0; var Error; var value; const value2 = require.useContext(env0_18); const value3 = require.useContext(env0_14); if (value2) { if (value3) { Error = global.Error; value = 'You cannot wrap the part of your app that '.concat(a0, ' in both and providers.'); throw new Error(); } } if (value2) { parseCheckoutSdkContext(value2, a0); r0 = value2; } else { parseElementsContext(value3, a0); r0 = value3; } return r0; } function createElementComponent(a0, a1) { // fn#34863, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:10289, owner: t_34797.createElementComponent, offset: 0x01064492, size: 293 bytes, params: 3, frame: 16 const env0_0 = a0; const concat = ''.concat; let value = a0.charAt(0); value = value.toUpperCase(); value += a0.slice(1); value = Reflect.apply(concat, '', [value, 'Element']); const r0 = a1 ? ServerElement : ClientElement; const binding = env0_5; r0.propTypes = {id: binding.string, className: binding.string, onChange: binding.func, onBlur: binding.func, onFocus: binding.func, onReady: binding.func, onEscape: binding.func, onClick: binding.func, onLoadError: binding.func, onLoaderStart: binding.func, onNetworksChange: binding.func, onConfirm: binding.func, onCancel: binding.func, onShippingAddressChange: binding.func, onShippingRateChange: binding.func, options: binding.object}; r0.displayName = value; r0.__elementType = a0; return r0; function ServerElement({id, className}) { // fn#34864, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:10429, owner: t_34797.createElementComponent.ServerElement, offset: 0x010645b7, size: 89 bytes, params: 2, frame: 16 useElementsOrCheckoutSdkContextWithUseCase('mounts <'.concat(env0_1, '>')); return require.createElement('div', {id: id, className: className}); } function ClientElement({id, className, options, onBlur, onFocus, onReady, onChange, onEscape, onClick, onLoadError, onLoaderStart, onNetworksChange, onConfirm, onCancel, onShippingAddressChange, onShippingRateChange}) { // fn#34865, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:10558, owner: t_34797.createElementComponent.ClientElement, offset: 0x01064610, size: 599 bytes, params: 2, frame: 37 const value = undefined; const r8 = value !== options ? options : {}; const env0_0 = r8; const value4 = useElementsOrCheckoutSdkContextWithUseCase('mounts <'.concat(onReady, '>')); const elements = 'elements' in value4 ? value4.elements : null; const checkoutSdk = 'checkoutSdk' in value4 ? value4.checkoutSdk : null; const [property, env0_5] = _slicedToArray(require.useState(null), 2); const env0_6 = require.useRef(null); const value8 = require.useRef(null); useAttachEvent(property, 'blur', onBlur); useAttachEvent(property, 'focus', onFocus); useAttachEvent(property, 'escape', onEscape); useAttachEvent(property, 'click', onClick); useAttachEvent(property, 'loaderror', onLoadError); useAttachEvent(property, 'loaderstart', onLoaderStart); useAttachEvent(property, 'networkschange', onNetworksChange); useAttachEvent(property, 'confirm', onConfirm); useAttachEvent(property, 'cancel', onCancel); useAttachEvent(property, 'shippingaddresschange', onShippingAddressChange); useAttachEvent(property, 'shippingratechange', onShippingRateChange); useAttachEvent(property, 'change', onChange); useAttachEvent(property, 'ready', onReady ? env0_0 === 'expressCheckout' ? onReady : readyCallback : value); require.useLayoutEffect(_fun34867, [elements, checkoutSdk, r8]); require.useEffect(_fun34868, [r8, usePrevious(r8)]); require.useLayoutEffect(function() { return _fun34870; }, []); return require.createElement('div', {id: id, className: className, ref: value8}); function readyCallback() { // fn#34866, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:11298, owner: t_34797.createElementComponent.ClientElement.readyCallback, offset: 0x01064867, size: 20 bytes, params: 1, frame: 11 onReady(env0_4); } function _fun34867() { // fn#34867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:11364, offset: 0x0106487b, size: 506 bytes, params: 1, frame: 16 var r1; var binding; var value5; var Error; var mode; var value7; var value8; var value; const current = env0_6.current; const value2 = null; if (value2 === current) { if (value2 === env0_7.current) { return undefined; } if (elements) { if (checkoutSdk) { value5 = environment.__proto__; binding = env1_0; if (binding === 'payment') { r1 = checkoutSdk.createPaymentElement(env0_0); env0_6.current = r1; env0_5(r1); if (r1) { r1.mount(env0_7.current); } return undefined; } if (binding === 'address') { if ('mode' in env0_0) { mode = env0_0.mode; value7 = environment.__proto__.__proto__; value8 = _objectWithoutProperties(env0_0, env2_22); if (mode === 'shipping') { r1 = checkoutSdk.createShippingAddressElement(value8); env0_6.current = r1; env0_5(r1); if (r1) { r1.mount(env0_7.current); } return undefined; } if (mode !== 'billing') { throw new global.Error("Invalid options.mode. mode must be 'billing' or 'shipping'."); } r1 = checkoutSdk.createBillingAddressElement(value8); env0_6.current = r1; env0_5(r1); if (r1) { r1.mount(env0_7.current); } return undefined; } throw new global.Error("You must supply options.mode. mode must be 'billing' or 'shipping'."); } if (binding === 'expressCheckout') { r1 = checkoutSdk.createExpressCheckoutElement(env0_0); env0_6.current = r1; env0_5(r1); if (r1) { r1.mount(env0_7.current); } return undefined; } if (binding === 'currencySelector') { r1 = checkoutSdk.createCurrencySelectorElement(); env0_6.current = r1; env0_5(r1); if (r1) { r1.mount(env0_7.current); } return undefined; } Error = global.Error; value = 'Invalid Element type '.concat(env1_1, ". You must use either the , , , or ."); throw new Error(); } r1 = elements ? elements.create(env1_0, env0_0) : value2; env0_6.current = r1; env0_5(r1); if (r1) { r1.mount(env0_7.current); } return undefined; } if (checkoutSdk) { if (checkoutSdk) { value5 = environment.__proto__; binding = env1_0; if (binding === 'payment') { r1 = checkoutSdk.createPaymentElement(env0_0); env0_6.current = r1; env0_5(r1); if (r1) { r1.mount(env0_7.current); } return undefined; } if (binding === 'address') { if ('mode' in env0_0) { mode = env0_0.mode; value7 = environment.__proto__.__proto__; value8 = _objectWithoutProperties(env0_0, env2_22); if (mode === 'shipping') { r1 = checkoutSdk.createShippingAddressElement(value8); env0_6.current = r1; env0_5(r1); if (r1) { r1.mount(env0_7.current); } return undefined; } if (mode !== 'billing') { throw new global.Error("Invalid options.mode. mode must be 'billing' or 'shipping'."); } r1 = checkoutSdk.createBillingAddressElement(value8); env0_6.current = r1; env0_5(r1); if (r1) { r1.mount(env0_7.current); } return undefined; } throw new global.Error("You must supply options.mode. mode must be 'billing' or 'shipping'."); } if (binding === 'expressCheckout') { r1 = checkoutSdk.createExpressCheckoutElement(env0_0); env0_6.current = r1; env0_5(r1); if (r1) { r1.mount(env0_7.current); } return undefined; } if (binding === 'currencySelector') { r1 = checkoutSdk.createCurrencySelectorElement(); env0_6.current = r1; env0_5(r1); if (r1) { r1.mount(env0_7.current); } return undefined; } Error = global.Error; value = 'Invalid Element type '.concat(env1_1, ". You must use either the , , , or ."); throw new Error(); } r1 = elements ? elements.create(env1_0, env0_0) : value2; env0_6.current = r1; env0_5(r1); if (r1) { r1.mount(env0_7.current); } return undefined; } } } function _fun34868() { // fn#34868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:12327, offset: 0x01064a75, size: 99 bytes, params: 1, frame: 16 var value2; var value3; if (env0_6.current) { value2 = environment.__proto__.__proto__; value3 = extractAllowedOptionsUpdates(env0_0, env0_8, ['paymentRequest']); if (value3 && 'update' in env0_6.current) { env0_6.current.update(value3); } } } function _fun34869() { // fn#34869, offset: 0x01064ad8, size: 9 bytes, params: 1, frame: 1 return _fun34870; function _fun34870() { // fn#34870, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:12476, offset: 0x01064ae1, size: 80 bytes, params: 1, frame: 10 var binding; var error; let current = env1_6.current; if (current) { current = env1_6.current; if (typeof current.destroy === 'function') { try { binding = env1_6; current = binding.current; current.destroy(); binding = env1_6; binding.current = null; } catch (error) { } } } } } } } function useEmbeddedCheckoutContext() { // fn#34871, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:13104, owner: t_34797.useEmbeddedCheckoutContext, offset: 0x01064b31, size: 63 bytes, params: 1, frame: 12 const value = require.useContext(env0_23); if (value) { return value; } const Error = global.Error; throw new Error(' must be used within '); } function EmbeddedCheckoutClientElement({id, className}) { // fn#34873, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:13390, owner: t_34797.EmbeddedCheckoutClientElement, offset: 0x01064bac, size: 133 bytes, params: 2, frame: 17 const embeddedCheckout = useEmbeddedCheckoutContext().embeddedCheckout; const env0_1 = require.useRef(false); const value = require.useRef(null); require.useLayoutEffect(_fun34874, [embeddedCheckout]); return require.createElement('div', {ref: value, id: id, className: className}); function _fun34874() { // fn#34874, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:13538, offset: 0x01064c31, size: 88 bytes, params: 1, frame: 12 var embeddedCheckoutBinding; if (!env0_1.current && embeddedCheckout && env0_2.current !== null) { embeddedCheckoutBinding = embeddedCheckout; embeddedCheckoutBinding.mount(env0_2.current); env0_1.current = true; } return _fun34875; function _fun34875() { // fn#34875, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:13622, offset: 0x01064c89, size: 56 bytes, params: 1, frame: 10 var binding; var error; if (env1_1.current) { if (embeddedCheckout) { try { embeddedCheckout.unmount(); binding = env1_1; binding.current = false; } catch (error) { } } } } } } function EmbeddedCheckoutProvider({stripe, options, children}) { // fn#34876, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:14502, owner: t_34797.EmbeddedCheckoutProvider, offset: 0x01064cc1, size: 346 bytes, params: 2, frame: 22 const value2 = require.useMemo(function() { return parseStripeProp(stripe, '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.'); }, [stripe]); const env0_3 = require.useRef(null); const value3 = require.useRef(null); const [property, env0_6] = _slicedToArray(require.useState({embeddedCheckout: null}), 2); require.useEffect(_fun34878, [value2, options, property, value3]); require.useEffect(function() { return _fun34883; }, [property.embeddedCheckout]); require.useEffect(_fun34885, [value3]); require.useEffect(_fun34886, [usePrevious(stripe), stripe]); require.useEffect(_fun34887, [usePrevious(options), options]); const createElement = require.createElement; const Provider = env0_23.Provider; return Reflect.apply(createElement, require, [Provider, {value: property}, children]); function _fun34878() { // fn#34878, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:14952, offset: 0x01064e39, size: 214 bytes, params: 1, frame: 13 var r1; var setStripeAndInitEmbeddedCheckout2; if (!env0_4.current) { if (!env0_3.current) { setStripeAndInitEmbeddedCheckout2 = setStripeAndInitEmbeddedCheckout; if (env0_2.tag !== 'async') { r1 = env0_2.tag !== 'sync' || env0_4.current; r1 = !r1 ? !options.clientSecret && !options.fetchClientSecret : r1; if (!r1) { setStripeAndInitEmbeddedCheckout2(env0_2.stripe); } } else if (env0_4.current) { r1 = env0_2.tag !== 'sync' || env0_4.current; r1 = !r1 ? !options.clientSecret && !options.fetchClientSecret : r1; if (!r1) { setStripeAndInitEmbeddedCheckout2(env0_2.stripe); } } else if (options.clientSecret) { env0_2.stripePromise.then(_fun34881); } else if (options.fetchClientSecret) { env0_2.stripePromise.then(_fun34881); } else { r1 = env0_2.tag !== 'sync' || env0_4.current; r1 = !r1 ? !options.clientSecret && !options.fetchClientSecret : r1; if (!r1) { setStripeAndInitEmbeddedCheckout2(env0_2.stripe); } } } } function setStripeAndInitEmbeddedCheckout(a0) { // fn#34879, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:14996, offset: 0x01064f0f, size: 93 bytes, params: 2, frame: 12 var environment; var binding; var binding2; const value = environment.__proto__; let current = env1_4.current; current = !current ? env1_3.current : current; if (!current) { binding = env1_4; binding.current = a0; binding2 = env1_3; current = binding.current; binding2.current = current.initEmbeddedCheckout(options).then(_fun34880); } function _fun34880(a0) { // fn#34880, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:15126, offset: 0x01064f6c, size: 26 bytes, params: 2, frame: 11 env2_6({embeddedCheckout: a0}); } } function _fun34881(a0) { // fn#34881, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:15333, offset: 0x01064f86, size: 24 bytes, params: 2, frame: 11 if (a0) { setStripeAndInitEmbeddedCheckout(a0); } } } function _fun34882() { // fn#34882, offset: 0x01064f9e, size: 9 bytes, params: 1, frame: 1 return _fun34883; function _fun34883() { // fn#34883, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:15401, offset: 0x01064fa7, size: 88 bytes, params: 1, frame: 13 const embeddedCheckout = env1_5.embeddedCheckout; const binding = env1_3; if (embeddedCheckout) { binding.current = null; env1_5.embeddedCheckout.destroy(); } else if (binding.current) { env1_3.current.then(_fun34884); } function _fun34884() { // fn#34884, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:15504, offset: 0x01064fff, size: 52 bytes, params: 1, frame: 10 env2_3.current = null; if (env2_5.embeddedCheckout) { env2_5.embeddedCheckout.destroy(); } } } } function _fun34885() { // fn#34885, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:15620, offset: 0x01065033, size: 23 bytes, params: 1, frame: 11 registerWithStripeJs(env0_4); } function _fun34886() { // fn#34886, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:15667, offset: 0x0106504a, size: 59 bytes, params: 1, frame: 11 if (env0_7 !== null && env0_7 !== stripe) { global.console.warn('Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the `stripe` prop after setting it.'); } } function _fun34887() { // fn#34887, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:15858, offset: 0x01065085, size: 457 bytes, params: 1, frame: 13 var r0; var clientSecret; if (env0_8 != null) { if (options != null) { clientSecret = options.clientSecret; r0 = clientSecret === undefined && options.fetchClientSecret === undefined; if (r0) { global.console.warn('Invalid props passed to EmbeddedCheckoutProvider: You must provide one of either `options.fetchClientSecret` or `options.clientSecret`.'); } clientSecret = env0_8.clientSecret; r0 = clientSecret != null && options.clientSecret !== env0_8.clientSecret; if (r0) { global.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.'); } r0 = env0_8.fetchClientSecret != null && options.fetchClientSecret !== env0_8.fetchClientSecret; if (r0) { global.console.warn('Unsupported prop change on EmbeddedCheckoutProvider: You cannot change fetchClientSecret after setting it. Unmount and create a new instance of EmbeddedCheckoutProvider instead.'); } r0 = env0_8.onComplete != null && options.onComplete !== env0_8.onComplete; if (r0) { global.console.warn('Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onComplete option after setting it.'); } r0 = env0_8.onShippingDetailsChange != null && options.onShippingDetailsChange !== env0_8.onShippingDetailsChange; if (r0) { global.console.warn('Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onShippingDetailsChange option after setting it.'); } r0 = env0_8.onLineItemsChange != null && options.onLineItemsChange !== env0_8.onLineItemsChange; if (r0) { global.console.warn('Unsupported prop change on EmbeddedCheckoutProvider: You cannot change the onLineItemsChange option after setting it.'); } } else { global.console.warn('Unsupported prop change on EmbeddedCheckoutProvider: You cannot unset options after setting them.'); } } } } function useCheckout() { // fn#34888, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:17661, owner: t_34797.useCheckout, offset: 0x0106524e, size: 96 bytes, params: 1, frame: 15 parseCheckoutSdkContext(require.useContext(env0_18), 'calls useCheckout()'); const value = require.useContext(env0_20); if (value) { return value; } const Error = global.Error; throw new Error('Could not find Checkout Context; You need to wrap the part of your app that calls useCheckout() in an provider.'); } } } function _typeof_typeof_body_34804(a0) { // fn#34804, owner: t_34797._typeof.body, offset: 0x00c39aa5, size: 8 bytes, params: 2, frame: 1 return typeof a0; } function _typeof_typeof_body_34805(a0) { // fn#34805, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:831, owner: t_34797._typeof.body, offset: 0x00c39aad, size: 63 bytes, params: 2, frame: 4 return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0; } function _objectWithoutProperties(a0, a1) { // fn#34807, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4398:1097, owner: t_34797._objectWithoutProperties, offset: 0x01062fb3, size: 230 bytes, params: 3, frame: 19 var r2; var r0; var object; var value; var length; var value2; var property; var indexOf; var value3; var value4; var prototype; var propertyIsEnumerable; var call; var value5; if (a0 == null) { return {}; } if (a0 == null) { r0 = {}; } else { object = {}; value = global.Object.keys(a0); length = value.length; value2 = 0; if (value2 < length) { r2 = value2; while (true) { property = value[r2]; indexOf = a1.indexOf; if (!(Reflect.apply(indexOf, a1, [property]) >= value2)) { object[property] = a0[property]; } value3 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; length = value.length; if (value3 < length) { r2 = value3; continue; } r0 = object; break; } } else { r0 = object; } } let Object = global.Object; const getOwnPropertySymbols = Object.getOwnPropertySymbols; if (getOwnPropertySymbols) { Object = global.Object; value = Object.getOwnPropertySymbols(a0); length = value.length; value4 = 0; if (value4 < length) { r2 = value4; while (true) { property = value[r2]; indexOf = a1.indexOf; if (!(Reflect.apply(indexOf, a1, [property]) >= value4)) { Object = global.Object; prototype = Object.prototype; propertyIsEnumerable = prototype.propertyIsEnumerable; call = propertyIsEnumerable.call; if (Reflect.apply(call, propertyIsEnumerable, [a0, property])) { r0[property] = a0[property]; break; } break; } value5 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1; length = value.length; if (value5 < length) { r2 = value5; continue; } break; } } } return r0; } global.__d(_fun34796, 4227, [31]) /* metro module 4227, dependencies: [31] */;