103 lines
3.7 KiB
TypeScript
103 lines
3.7 KiB
TypeScript
// Module ID: 5265
|
|
// Function ID: 5266
|
|
// Dependencies: [676, 5266, 4233, 5267, 709, 4234, 5268, 2]
|
|
|
|
// Module 5265
|
|
import set from "set" /* 2 */;
|
|
import ME from "ME" /* 676 */;
|
|
import dispatcherDefault from "dispatcher" /* 709 */;
|
|
import coerceMainRoute from "coerceMainRoute" /* 4233 */;
|
|
import uniqueIdDefault from "uniqueId" /* 5266 */;
|
|
import getDeprecatedModalDataDefault from "getDeprecatedModalData" /* 5267 */;
|
|
|
|
const AppContext = ME.AppContext;
|
|
const result = set.fileFinishedImporting("actions/ModalActionCreators.tsx");
|
|
|
|
export default {
|
|
push(modal, props) {
|
|
let tmp = arg2;
|
|
if (arg2 === undefined) {
|
|
tmp = uniqueIdDefault("modal");
|
|
}
|
|
let APP = arg4;
|
|
if (arg4 === undefined) {
|
|
APP = AppContext.APP;
|
|
}
|
|
let obj = coerceMainRoute;
|
|
obj = { modal: getDeprecatedModalDataDefault(modal, {}, props, tmp) };
|
|
const merged = Object.assign(arg3);
|
|
obj.pushModal(obj);
|
|
obj = { type: "MODAL_PUSH", modal, props, key: tmp, appContext: APP };
|
|
dispatcherDefault.dispatch(obj);
|
|
return tmp;
|
|
},
|
|
pushLazy(closure_1_1, closure_0, closure_4, navigationParams) {
|
|
const self = this;
|
|
importDefault = closure_1_1;
|
|
dependencyMap = closure_0;
|
|
let tmp = closure_4;
|
|
if (closure_4 === undefined) {
|
|
tmp = uniqueIdDefault("modal");
|
|
}
|
|
closure_3 = tmp;
|
|
const _require = navigationParams;
|
|
const rootNavigationRef = _require(4234).getRootNavigationRef();
|
|
if (null != rootNavigationRef) {
|
|
if (rootNavigationRef.isReady()) {
|
|
if (closure_1_1 instanceof Promise) {
|
|
let nextPromise = closure_1_1.then((arg0) => arg0.default);
|
|
} else {
|
|
nextPromise = closure_1_1();
|
|
}
|
|
nextPromise.then((arg0) => self.push(arg0, closure_2, closure_3, closure_0));
|
|
}
|
|
}
|
|
const obj = _require(4234);
|
|
return new Promise((arg0) => {
|
|
closure_0 = arg0;
|
|
return callback(table[6]).enqueue(() => callback(closure_1_4.pushLazy(closure_1_1, closure_1_2, closure_1_3, callback)));
|
|
});
|
|
},
|
|
updateAnimation(key, SLIDE_IN_OUT) {
|
|
let obj = dispatcherDefault;
|
|
obj = { type: "MODAL_UPDATE", key, props: {}, partial: true, animation: SLIDE_IN_OUT };
|
|
obj.dispatch(obj);
|
|
},
|
|
pop() {
|
|
coerceMainRoute.popModal();
|
|
const obj = coerceMainRoute;
|
|
dispatcherDefault.dispatch({ type: "MODAL_POP" });
|
|
},
|
|
popWithKey(c3, onExited) {
|
|
let obj = coerceMainRoute;
|
|
obj.popModal(c3, onExited);
|
|
obj = { type: "MODAL_POP", key: c3, onExited };
|
|
dispatcherDefault.dispatch(obj);
|
|
},
|
|
popAboveKey(voiceChannelKey) {
|
|
return coerceMainRoute.popModalsAboveKey(voiceChannelKey);
|
|
},
|
|
popAll() {
|
|
coerceMainRoute.popAllModals();
|
|
const obj = coerceMainRoute;
|
|
dispatcherDefault.dispatch({ type: "MODAL_POP_ALL" });
|
|
const obj2 = dispatcherDefault;
|
|
dispatcherDefault.dispatch({ type: "EMAIL_VERIFICATION_MODAL_CLOSE" });
|
|
const obj3 = dispatcherDefault;
|
|
dispatcherDefault.dispatch({ type: "GUILD_SETTINGS_CLOSE" });
|
|
const obj4 = dispatcherDefault;
|
|
dispatcherDefault.dispatch({ type: "HIDE_ACTION_SHEET" });
|
|
const obj5 = dispatcherDefault;
|
|
dispatcherDefault.dispatch({ type: "DISPLAYED_INVITE_CLEAR" });
|
|
const obj6 = dispatcherDefault;
|
|
dispatcherDefault.dispatch({ type: "NOTIFICATION_SETTINGS_MODAL_CLOSE" });
|
|
const obj7 = dispatcherDefault;
|
|
dispatcherDefault.dispatch({ type: "QUICKSWITCHER_HIDE" });
|
|
const obj8 = dispatcherDefault;
|
|
dispatcherDefault.dispatch({ type: "USER_SETTINGS_MODAL_CLOSE" });
|
|
const obj9 = dispatcherDefault;
|
|
dispatcherDefault.dispatch({ type: "CONNECTIONS_GRID_MODAL_HIDE" });
|
|
const obj10 = dispatcherDefault;
|
|
dispatcherDefault.dispatch({ type: "USER_PROFILE_MODAL_CLOSE" });
|
|
}
|
|
};
|