109 lines
6.7 KiB
TypeScript
109 lines
6.7 KiB
TypeScript
/* Metro module 5080; source: actions/ModalActionCreators.tsx; dependencies: [661, 5081, 4007, 5082, 694, 4008, 5083, 2] */
|
|
function _fun44100(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#44100, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:6, offset: 0x011683ba, size: 188 bytes, params: 8, frame: 18
|
|
var object2;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = (require(661) /* metro dependency 661: Constants */).AppContext;
|
|
object2 = {push: push_44101, pushLazy: pushLazy, updateAnimation: updateAnimation, pop: pop_44108,
|
|
popWithKey: popWithKey, popAboveKey: popAboveKey, popAll: popAll};
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('actions/ModalActionCreators.tsx');
|
|
exports.default = object2;
|
|
}
|
|
|
|
function push_44101(a0, a1) { // fn#44101, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:125, offset: 0x01168476, size: 209 bytes, params: 3, frame: 23
|
|
var r0;
|
|
let value = a2;
|
|
const value2 = a4;
|
|
if (value !== undefined) {
|
|
r0 = value;
|
|
} else {
|
|
value = importDefault(5081) /* metro dependency 5081 */;
|
|
value = value('modal');
|
|
r0 = value;
|
|
}
|
|
const r4 = value2 !== undefined ? value2 : AppContext.APP;
|
|
const navigationRouteUtilsNativeModule = require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */;
|
|
const pushModal = navigationRouteUtilsNativeModule.pushModal;
|
|
const object2 = {key: r0};
|
|
object2.modal = (importDefault(5082) /* metro dependency 5082: getDeprecatedModalData */)(a0, {}, a1, r0);
|
|
copyDataProperties(object2, a3, a1);
|
|
Reflect.apply(pushModal, navigationRouteUtilsNativeModule, [object2]);
|
|
value = importDefault(694) /* metro dependency 694: Dispatcher */;
|
|
value.dispatch({type: 'MODAL_PUSH', modal: a0, props: a1, key: r0, appContext: r4});
|
|
return r0;
|
|
}
|
|
|
|
function pushLazy(a0, a1) { // fn#44102, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:294, offset: 0x01168547, size: 215 bytes, params: 3, frame: 15
|
|
var r0;
|
|
let value = a2;
|
|
const env0_1 = a0;
|
|
const env0_2 = a1;
|
|
if (value !== undefined) {
|
|
r0 = value;
|
|
} else {
|
|
value = importDefault(5081) /* metro dependency 5081 */;
|
|
value = value('modal');
|
|
r0 = value;
|
|
}
|
|
const env0_4 = a3;
|
|
value = require(4008) /* metro dependency 4008: RootNavigationRefNative */;
|
|
value = value.getRootNavigationRef();
|
|
return value == null ? new global.Promise(_fun44105) : value.isReady() ? (a0 instanceof global.Promise ? a0.then(function(a0) {
|
|
return a0.default;
|
|
}) : a0()).then(_fun44104) : new global.Promise(_fun44105);
|
|
}
|
|
|
|
function updateAnimation(a0, a1) { // fn#44107, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:546, offset: 0x011686aa, size: 77 bytes, params: 3, frame: 13
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MODAL_UPDATE', key: a0, props: {},
|
|
partial: true, animation: a1});
|
|
}
|
|
|
|
function pop_44108() { // fn#44108, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:646, offset: 0x011686f7, size: 75 bytes, params: 1, frame: 13
|
|
(require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */).popModal();
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MODAL_POP'});
|
|
}
|
|
|
|
function popWithKey(a0, a1) { // fn#44109, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:709, offset: 0x01168742, size: 92 bytes, params: 3, frame: 16
|
|
(require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */).popModal(a0, a1);
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MODAL_POP', key: a0, onExited: a1});
|
|
}
|
|
|
|
function popAboveKey(a0) { // fn#44110, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:814, offset: 0x0116879e, size: 41 bytes, params: 2, frame: 11
|
|
return (require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */).popModalsAboveKey(a0);
|
|
}
|
|
|
|
function popAll() { // fn#44111, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:846, offset: 0x011687c7, size: 344 bytes, params: 1, frame: 16
|
|
(require(4007) /* metro dependency 4007: NavigationRouteUtilsNative */).popAllModals();
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'MODAL_POP_ALL'});
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'EMAIL_VERIFICATION_MODAL_CLOSE'});
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'GUILD_SETTINGS_CLOSE'});
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'HIDE_ACTION_SHEET'});
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'DISPLAYED_INVITE_CLEAR'});
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'NOTIFICATION_SETTINGS_MODAL_CLOSE'});
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'QUICKSWITCHER_HIDE'});
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_SETTINGS_MODAL_CLOSE'});
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'CONNECTIONS_GRID_MODAL_HIDE'});
|
|
(importDefault(694) /* metro dependency 694: Dispatcher */).dispatch({type: 'USER_PROFILE_MODAL_CLOSE'});
|
|
}
|
|
|
|
function _fun44104(a0) { // fn#44104, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:454, offset: 0x0116861e, size: 36 bytes, params: 2, frame: 17
|
|
const binding = env0_0;
|
|
return binding.push(a0, require, env0_3, importAll);
|
|
}
|
|
|
|
function _fun44105(a0) { // fn#44105, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:491, offset: 0x01168642, size: 52 bytes, params: 2, frame: 12
|
|
var environment;
|
|
const env0_0 = a0;
|
|
const value = environment.__proto__;
|
|
return (importDefault(5083) /* metro dependency 5083: ModalDispatchQueue */).enqueue(_fun44106);
|
|
}
|
|
|
|
function _fun44106() { // fn#44106, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5258:511, offset: 0x01168676, size: 52 bytes, params: 1, frame: 18
|
|
const binding = env0_0;
|
|
const value = environment.__proto__;
|
|
const binding2 = env1_0;
|
|
return binding(binding2.pushLazy(env1_1, require, env1_3, importAll));
|
|
}
|
|
|