decord/source/actions/ModalActionCreators.tsx

98 lines
3.6 KiB
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 4460
// Function ID: 4461
// Dependencies: [676, 4461, 4106, 4462, 709, 4107, 4463, 2]
2026-07-20 16:05:17 +00:00
2026-08-05 07:35:12 +00:00
// Module 4460
2026-07-23 10:11:24 +00:00
import { AppContext } from "ME";
2026-07-29 08:29:29 +00:00
const result = require("navigationToRootTabHelper").fileFinishedImporting("actions/ModalActionCreators.tsx");
2026-07-20 16:05:17 +00:00
export default {
push(modal, props) {
let tmp = arg2;
if (arg2 === undefined) {
2026-08-05 07:35:12 +00:00
tmp = importDefault(4461)("modal");
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let APP = arg4;
if (arg4 === undefined) {
2026-07-20 16:05:17 +00:00
APP = AppContext.APP;
}
2026-08-05 07:35:12 +00:00
let obj = require(4106) /* navigationToRootTabHelper */;
obj = { key: tmp, modal: importDefault(4462)(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-29 08:29:29 +00:00
importDefault(709).dispatch(obj);
2026-07-20 16:05:17 +00:00
return tmp;
},
2026-07-29 08:29:29 +00:00
pushLazy(outer1_1, closure_0, closure_4, navigationParams) {
2026-07-23 10:11:24 +00:00
const self = this;
const importDefault = outer1_1;
2026-07-29 08:29:29 +00:00
const dependencyMap = closure_0;
let tmp = closure_4;
2026-07-20 16:05:17 +00:00
if (closure_4 === undefined) {
2026-08-05 07:35:12 +00:00
tmp = importDefault(4461)("modal");
2026-07-20 16:05:17 +00:00
}
const AppContext = tmp;
2026-07-29 08:29:29 +00:00
const _require = navigationParams;
2026-08-05 07:35:12 +00:00
const rootNavigationRef = _require(4107).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-29 08:29:29 +00:00
nextPromise.then((arg0) => self.push(arg0, closure_2, closure_3, closure_0));
2026-07-20 16:05:17 +00:00
}
}
2026-08-05 07:35:12 +00:00
const obj = _require(4107);
2026-07-20 16:05:17 +00:00
return new Promise((arg0) => {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-29 08:29:29 +00:00
return outer1_1(table[6]).enqueue(() => callback(outer1_4.pushLazy(outer1_1, outer1_2, outer1_3, callback)));
2026-07-20 16:05:17 +00:00
});
},
updateAnimation(key, SLIDE_IN_OUT) {
2026-07-29 08:29:29 +00:00
let obj = importDefault(709);
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-08-05 07:35:12 +00:00
require(4106) /* navigationToRootTabHelper */.popModal();
const obj = require(4106) /* navigationToRootTabHelper */;
2026-07-29 08:29:29 +00:00
importDefault(709).dispatch({ type: "MODAL_POP" });
2026-07-20 16:05:17 +00:00
},
2026-07-29 08:29:29 +00:00
popWithKey(c3, onExited) {
2026-08-05 07:35:12 +00:00
let obj = require(4106) /* navigationToRootTabHelper */;
2026-07-29 08:29:29 +00:00
obj.popModal(c3, onExited);
obj = { type: "MODAL_POP", key: c3, onExited };
importDefault(709).dispatch(obj);
2026-07-20 16:05:17 +00:00
},
popAboveKey(voiceChannelKey) {
2026-08-05 07:35:12 +00:00
return require(4106) /* navigationToRootTabHelper */.popModalsAboveKey(voiceChannelKey);
2026-07-20 16:05:17 +00:00
},
popAll() {
2026-08-05 07:35:12 +00:00
require(4106) /* navigationToRootTabHelper */.popAllModals();
const obj = require(4106) /* navigationToRootTabHelper */;
2026-07-29 08:29:29 +00:00
importDefault(709).dispatch({ type: "MODAL_POP_ALL" });
const obj2 = importDefault(709);
importDefault(709).dispatch({ type: "EMAIL_VERIFICATION_MODAL_CLOSE" });
const obj3 = importDefault(709);
importDefault(709).dispatch({ type: "GUILD_SETTINGS_CLOSE" });
const obj4 = importDefault(709);
importDefault(709).dispatch({ type: "HIDE_ACTION_SHEET" });
const obj5 = importDefault(709);
importDefault(709).dispatch({ type: "DISPLAYED_INVITE_CLEAR" });
const obj6 = importDefault(709);
importDefault(709).dispatch({ type: "NOTIFICATION_SETTINGS_MODAL_CLOSE" });
const obj7 = importDefault(709);
importDefault(709).dispatch({ type: "QUICKSWITCHER_HIDE" });
const obj8 = importDefault(709);
importDefault(709).dispatch({ type: "USER_SETTINGS_MODAL_CLOSE" });
const obj9 = importDefault(709);
importDefault(709).dispatch({ type: "CONNECTIONS_GRID_MODAL_HIDE" });
const obj10 = importDefault(709);
importDefault(709).dispatch({ type: "USER_PROFILE_MODAL_CLOSE" });
2026-07-20 16:05:17 +00:00
}
};