57 lines
3.6 KiB
JavaScript
57 lines
3.6 KiB
JavaScript
/* Metro module 4029; source: unknown; dependencies: [31, 4030, 4031] */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as PortalModule from './module-04030-Portal.js'; /* Metro dependency 4030 */
|
|
import * as Module04031Module from './module-04031.js'; /* Metro dependency 4031 */
|
|
|
|
function _fun33219(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33219, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4187:6, offset: 0x0102a0fb, size: 96 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.usePortal = usePortal;
|
|
function usePortal() { // fn#33220, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4187:149, offset: 0x0102a15b, size: 223 bytes, params: 1, frame: 16
|
|
let value = 'root';
|
|
const env0_0 = arguments.length > 0 ? arguments[0] === undefined ? value : arguments[0] : value;
|
|
const PortalDispatchContext = (PortalModule).PortalDispatchContext;
|
|
if (useContext(PortalDispatchContext) === null) {
|
|
throw new global.Error("'PortalDispatchContext' cannot be null, please add 'PortalProvider' to the root component.");
|
|
}
|
|
value = useCallback(_fun33221, []);
|
|
const value3 = useCallback(_fun33222, []);
|
|
const value4 = useCallback(_fun33223, []);
|
|
const object = {registerHost: value, deregisterHost: value3, addPortal: value4, updatePortal: value4};
|
|
object.removePortal = useCallback(_fun33224, []);
|
|
return object;
|
|
function _fun33221() { // fn#33221, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4187:404, offset: 0x0102a23a, size: 66 bytes, params: 1, frame: 14
|
|
const binding = env0_1;
|
|
const ACTIONS = (Module04031Module).ACTIONS;
|
|
const REGISTER_HOST = ACTIONS.REGISTER_HOST;
|
|
binding({type: REGISTER_HOST, hostName: env0_0});
|
|
}
|
|
|
|
function _fun33222() { // fn#33222, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4187:477, offset: 0x0102a27c, size: 66 bytes, params: 1, frame: 14
|
|
const binding = env0_1;
|
|
const ACTIONS = (Module04031Module).ACTIONS;
|
|
const DEREGISTER_HOST = ACTIONS.DEREGISTER_HOST;
|
|
binding({type: DEREGISTER_HOST, hostName: env0_0});
|
|
}
|
|
|
|
function _fun33223(a0, a1) { // fn#33223, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4187:552, offset: 0x0102a2be, size: 82 bytes, params: 3, frame: 14
|
|
const binding = env0_1;
|
|
const ACTIONS = (Module04031Module).ACTIONS;
|
|
const ADD_UPDATE_PORTAL = ACTIONS.ADD_UPDATE_PORTAL;
|
|
binding({type: ADD_UPDATE_PORTAL, hostName: env0_0, portalName: a0, node: a1});
|
|
}
|
|
|
|
function _fun33224(a0) { // fn#33224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4187:729, offset: 0x0102a310, size: 74 bytes, params: 2, frame: 14
|
|
const binding = env0_1;
|
|
const ACTIONS = (Module04031Module).ACTIONS;
|
|
const REMOVE_PORTAL = ACTIONS.REMOVE_PORTAL;
|
|
binding({type: REMOVE_PORTAL, hostName: env0_0, portalName: a0});
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun33219, 4029, [31, 4030, 4031]) /* metro module 4029, dependencies: [31, 4030, 4031] */;
|