96 lines
5.9 KiB
React
96 lines
5.9 KiB
React
/* Metro module 1551; source: unknown; dependencies: [31, 33, 1505, 1498, 1510, 1552] */
|
|
import Module01498 from './module-01498.js'; /* Metro dependency 1498 */
|
|
import Module01505 from './module-01505.js'; /* Metro dependency 1505 */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
|
|
function _fun17473(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17473, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1678:6, offset: 0x00e6ddf1, size: 108 bytes, params: 8, frame: 17
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.default = SceneView;
|
|
function SceneView({screen, route, navigation, routeState, getState, setState, options, clearOptions}) { // fn#17474, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1678:132, offset: 0x00e6de5d, size: 617 bytes, params: 2, frame: 26
|
|
const binding = getState;
|
|
const env0_5 = binding.useRef();
|
|
let value2 = binding.useCallback(_fun17475, []);
|
|
const addOptionsGetter = (Module01505)({key: route.key, options: options,
|
|
navigation: navigation}).addOptionsGetter;
|
|
const value3 = binding.useCallback(_fun17476, []);
|
|
const value4 = binding.useCallback(_fun17477, [getState, route.key]);
|
|
const value5 = binding.useCallback(function(a0) {
|
|
var env0_0 = a0;
|
|
var value2 = getState();
|
|
var setStateBinding = setState;
|
|
var Object = global.Object;
|
|
var object = {};
|
|
object.routes = value2.routes.map(_fun17480);
|
|
setStateBinding(Object.assign({}, value2, object));
|
|
}, [getState, route.key, setState]);
|
|
const env0_11 = binding.useRef(true);
|
|
binding.useEffect(_fun17481);
|
|
binding.useEffect(function() {
|
|
return clearOptions;
|
|
}, []);
|
|
const value7 = binding.useMemo(_fun17484, [routeState, value4, value5, value2, value3,
|
|
binding.useCallback(_fun17483, []), addOptionsGetter]);
|
|
const getComponent = screen.getComponent;
|
|
const r11 = getComponent ? screen.getComponent() : screen.component;
|
|
const Provider = (Module01498).Provider;
|
|
return (
|
|
<Provider value={value7}>
|
|
{((Component) => <Component>{((Component) => <Component name={screen.name} render={r11 || screen.children} navigation={navigation} route={route}>{r11 !== undefined ? ((Component) => <Component navigation={navigation} route={route} />)(r11) : screen.children === undefined ? null : screen.children({navigation: navigation,
|
|
route: route})}</Component>)(importDefault(1552) /* metro dependency 1552 */)}</Component>)(importDefault(1510) /* metro dependency 1510 */)}
|
|
</Provider>
|
|
);
|
|
function _fun17475() { // fn#17475, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1678:294, offset: 0x00e6e0c6, size: 14 bytes, params: 1, frame: 1
|
|
return env0_5.current;
|
|
}
|
|
|
|
function _fun17476(a0) { // fn#17476, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1678:408, offset: 0x00e6e0d4, size: 20 bytes, params: 2, frame: 2
|
|
env0_5.current = a0;
|
|
}
|
|
|
|
function _fun17477() { // fn#17477, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1678:455, offset: 0x00e6e0e8, size: 47 bytes, params: 1, frame: 12
|
|
const getStateBinding = getState;
|
|
const value = undefined;
|
|
const value2 = getStateBinding().routes.find(function({key}) {
|
|
return key === route.key;
|
|
});
|
|
return value2 ? value2.state : value;
|
|
}
|
|
|
|
function _fun17479(a0) { // fn#17479, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1678:579, offset: 0x00e6e131, size: 83 bytes, params: 2, frame: 19
|
|
const env0_0 = a0;
|
|
const state = getState();
|
|
const setStateBinding = setState;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const object = {};
|
|
object.routes = state.routes.map(_fun17480);
|
|
setStateBinding(Reflect.apply(assign, Object, [{}, state, object]));
|
|
function _fun17480(a0) { // fn#17480, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1678:644, offset: 0x00e6e184, size: 64 bytes, params: 2, frame: 16
|
|
const value = a0;
|
|
return value.key !== route.key ? value : global.Object.assign({}, value, {state: env0_0});
|
|
}
|
|
|
|
}
|
|
|
|
function _fun17481() { // fn#17481, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1678:758, offset: 0x00e6e1c4, size: 19 bytes, params: 1, frame: 2
|
|
env0_11.current = false;
|
|
}
|
|
|
|
function _fun17483() { // fn#17483, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1678:845, offset: 0x00e6e1d7, size: 14 bytes, params: 1, frame: 1
|
|
return env0_11.current;
|
|
}
|
|
|
|
function _fun17484() { // fn#17484, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1678:892, offset: 0x00e6e1e5, size: 69 bytes, params: 1, frame: 3
|
|
return {state: routeState, getState: env0_9, setState: env0_10, getKey: env0_6, setKey: env0_8,
|
|
getIsInitial: env0_12, addOptionsGetter: addOptionsGetter};
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun17473, 1551, [31, 33, 1505, 1498, 1510,
|
|
1552]) /* metro module 1551, dependencies: [31, 33, 1505, 1498, 1510, 1552] */;
|