decord/source/actions/ModalActionCreators.tsx

98 lines
3.7 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 4338
2026-07-27 11:26:19 +00:00
// Function ID: 38303
2026-07-25 08:10:48 +00:00
// Dependencies: [653, 4339, 3982, 4340, 686, 3983, 4341, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 4338
2026-07-23 10:11:24 +00:00
import { AppContext } from "ME";
const result = require("_createForOfIteratorHelperLoose").fileFinishedImporting("actions/ModalActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
push(modal, props) {
let tmp = arg2;
let APP = arg4;
if (arg2 === undefined) {
2026-07-25 08:10:48 +00:00
tmp = importDefault(4339)("modal");
2026-07-20 16:05:17 +00:00
}
if (APP === undefined) {
APP = AppContext.APP;
}
2026-07-25 08:10:48 +00:00
let obj = require(3982) /* _createForOfIteratorHelperLoose */;
obj = { key: tmp, modal: importDefault(4340)(modal, {}, props, tmp) };
2026-07-20 16:05:17 +00:00
const merged = Object.assign(arg3);
obj.pushModal(obj);
obj = { type: "MODAL_PUSH", modal, props, key: tmp, appContext: APP };
2026-07-23 10:11:24 +00:00
importDefault(686).dispatch(obj);
2026-07-20 16:05:17 +00:00
return tmp;
},
2026-07-23 10:11:24 +00:00
pushLazy(outer1_1, merged, closure_4, navigationParams) {
2026-07-20 16:05:17 +00:00
let tmp = closure_4;
2026-07-23 10:11:24 +00:00
const self = this;
const importDefault = outer1_1;
const dependencyMap = merged;
2026-07-20 16:05:17 +00:00
if (closure_4 === undefined) {
2026-07-25 08:10:48 +00:00
tmp = importDefault(4339)("modal");
2026-07-20 16:05:17 +00:00
}
const AppContext = tmp;
2026-07-23 10:11:24 +00:00
closure_4 = navigationParams;
2026-07-25 08:10:48 +00:00
const rootNavigationRef = self(3983).getRootNavigationRef();
2026-07-20 16:05:17 +00:00
if (null != rootNavigationRef) {
if (rootNavigationRef.isReady()) {
2026-07-23 10:11:24 +00:00
if (outer1_1 instanceof Promise) {
let nextPromise = outer1_1.then((arg0) => arg0.default);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
nextPromise = outer1_1();
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
nextPromise.then((arg0) => self.push(arg0, closure_2, closure_3, closure_4));
2026-07-20 16:05:17 +00:00
}
}
2026-07-25 08:10:48 +00:00
const obj = self(3983);
2026-07-20 16:05:17 +00:00
return new Promise((arg0) => {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
return outer1_1(merged[6]).enqueue(() => lib(lib.pushLazy(outer1_1, outer1_2, outer1_3, outer1_4)));
2026-07-20 16:05:17 +00:00
});
},
updateAnimation(key, SLIDE_IN_OUT) {
2026-07-23 10:11:24 +00:00
let obj = importDefault(686);
2026-07-20 16:05:17 +00:00
obj = { type: "MODAL_UPDATE", key, props: {}, partial: true, animation: SLIDE_IN_OUT };
obj.dispatch(obj);
},
pop() {
2026-07-25 08:10:48 +00:00
require(3982) /* _createForOfIteratorHelperLoose */.popModal();
const obj = require(3982) /* _createForOfIteratorHelperLoose */;
2026-07-23 10:11:24 +00:00
importDefault(686).dispatch({ type: "MODAL_POP" });
2026-07-20 16:05:17 +00:00
},
2026-07-23 10:11:24 +00:00
popWithKey(PREMIUM_KEY, onExited) {
2026-07-25 08:10:48 +00:00
let obj = require(3982) /* _createForOfIteratorHelperLoose */;
2026-07-23 10:11:24 +00:00
obj.popModal(PREMIUM_KEY, onExited);
obj = { type: "MODAL_POP", key: PREMIUM_KEY, onExited };
importDefault(686).dispatch(obj);
2026-07-20 16:05:17 +00:00
},
popAboveKey(voiceChannelKey) {
2026-07-25 08:10:48 +00:00
return require(3982) /* _createForOfIteratorHelperLoose */.popModalsAboveKey(voiceChannelKey);
2026-07-20 16:05:17 +00:00
},
popAll() {
2026-07-25 08:10:48 +00:00
require(3982) /* _createForOfIteratorHelperLoose */.popAllModals();
const obj = require(3982) /* _createForOfIteratorHelperLoose */;
2026-07-23 10:11:24 +00:00
importDefault(686).dispatch({ type: "MODAL_POP_ALL" });
const obj2 = importDefault(686);
importDefault(686).dispatch({ type: "EMAIL_VERIFICATION_MODAL_CLOSE" });
const obj3 = importDefault(686);
importDefault(686).dispatch({ type: "GUILD_SETTINGS_CLOSE" });
const obj4 = importDefault(686);
importDefault(686).dispatch({ type: "HIDE_ACTION_SHEET" });
const obj5 = importDefault(686);
importDefault(686).dispatch({ type: "DISPLAYED_INVITE_CLEAR" });
const obj6 = importDefault(686);
importDefault(686).dispatch({ type: "NOTIFICATION_SETTINGS_MODAL_CLOSE" });
const obj7 = importDefault(686);
importDefault(686).dispatch({ type: "QUICKSWITCHER_HIDE" });
const obj8 = importDefault(686);
importDefault(686).dispatch({ type: "USER_SETTINGS_MODAL_CLOSE" });
const obj9 = importDefault(686);
importDefault(686).dispatch({ type: "CONNECTIONS_GRID_MODAL_HIDE" });
const obj10 = importDefault(686);
importDefault(686).dispatch({ type: "USER_PROFILE_MODAL_CLOSE" });
2026-07-20 16:05:17 +00:00
}
};