/* Metro module 5398; source: unknown; dependencies: [6, 7] */ import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */ import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */ function _fun47666(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#47666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5576:6, offset: 0x011c8240, size: 93 bytes, params: 8, frame: 18 const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); exports.PressableStateMachine = _fun47667(); function _fun47667() { // fn#47667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5576:118, offset: 0x011c829d, size: 103 bytes, params: 1, frame: 15 return CreateClass(PressableStateMachine, [{key: 'setStates', value: function(a0) { this.states = a0; }}, {key: 'reset', value: function() { this.currentStepIndex = 0; this.eventPayload = null; }}, {key: 'handleEvent', value: value_47671}]); function PressableStateMachine() { // fn#47668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5576:139, offset: 0x011c8304, size: 49 bytes, params: 1, frame: 13 env1_0(this, PressableStateMachine); this.states = null; this.currentStepIndex = 0; this.eventPayload = null; } } } function value_47671(a0, a1) { // fn#47671, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5576:440, offset: 0x011c835c, size: 186 bytes, params: 3, frame: 15 var currentStepIndex; var property; const value = a1; let states = this.states; if (states) { states = this.states; currentStepIndex = this.currentStepIndex; property = states[currentStepIndex]; this.eventPayload = value || this.eventPayload; if (property.eventName === a0) { if (this.eventPayload && property.callback) { property.callback(this.eventPayload); } currentStepIndex = this.currentStepIndex; this.currentStepIndex = typeof currentStepIndex === 'bigint' ? currentStepIndex + 1n : +currentStepIndex + 1; currentStepIndex = this.currentStepIndex; if (currentStepIndex === this.states.length) { this.reset(); } } else if (this.currentStepIndex > 0) { this.reset(); this.handleEvent(a0, value); } } } global.__d(_fun47666, 5398, [6, 7]) /* metro module 5398, dependencies: [6, 7] */;