55 lines
3.2 KiB
React
55 lines
3.2 KiB
React
/* Metro module 4029; source: unknown; dependencies: [31, 4030, 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});
|
|
const value = require(31) /* metro dependency 31 */;
|
|
const env0_2 = value.useCallback;
|
|
const env0_3 = value.useContext;
|
|
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 = (require(4030) /* metro dependency 4030 */).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 object2 = {registerHost: value, deregisterHost: value3, addPortal: value4, updatePortal: value4};
|
|
object2.removePortal = useCallback(_fun33224, []);
|
|
return object2;
|
|
}
|
|
|
|
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 = (require(4031) /* metro dependency 4031 */).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 = (require(4031) /* metro dependency 4031 */).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 = (require(4031) /* metro dependency 4031 */).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 = (require(4031) /* metro dependency 4031 */).ACTIONS;
|
|
const REMOVE_PORTAL = ACTIONS.REMOVE_PORTAL;
|
|
binding({type: REMOVE_PORTAL, hostName: env0_0, portalName: a0});
|
|
}
|
|
|