99 lines
5.4 KiB
React
99 lines
5.4 KiB
React
/* Metro module 1549; source: unknown; dependencies: [29, 65, 57, 31, 33, 1506, 1550, 1519, 1512, 1511, 1551] */
|
|
function _fun17449(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17449, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1676:6, offset: 0x00e6d3d3, size: 165 bytes, params: 8, frame: 18
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importDefault(29) /* metro dependency 29 */;
|
|
const env0_3 = importDefault(65) /* metro dependency 65 */;
|
|
const env0_4 = importDefault(57) /* metro dependency 57 */;
|
|
const env0_5 = importAll(31) /* metro dependency 31 */;
|
|
const env0_6 = (require(33) /* metro dependency 33 */).jsx;
|
|
exports.default = useDescriptors;
|
|
}
|
|
|
|
function useDescriptors({state, screens, navigation, screenOptions, defaultScreenOptions, onAction, getState, setState, addListener, addKeyedListener, onRouteFocus, router, emitter}) { // fn#17451, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1676:518, offset: 0x00e6d478, size: 394 bytes, params: 2, frame: 30
|
|
const binding = onAction;
|
|
const [env0_11, property] = defaultScreenOptions(binding.useState({}), 2);
|
|
let value = binding.useContext(importDefault(1506) /* metro dependency 1506 */);
|
|
const env0_16 = binding.useMemo(function() {
|
|
return {navigation: navigation, onAction: onAction, addListener: addListener,
|
|
addKeyedListener: addKeyedListener,
|
|
onRouteFocus: onRouteFocus, onDispatchAction: onDispatchAction, onOptionsChange: onOptionsChange,
|
|
stackRef: stackRef};
|
|
}, [navigation, onAction, addListener, addKeyedListener, onRouteFocus, value.onDispatchAction,
|
|
value.onOptionsChange, value.stackRef]);
|
|
const env0_17 = (importDefault(1550) /* metro dependency 1550 */)({state: state, getState: getState,
|
|
navigation: navigation, setOptions: property, router: router, emitter: emitter});
|
|
value = importDefault(1519) /* metro dependency 1519 */;
|
|
value = value(state.routes);
|
|
return value.reduce(_fun17453, {});
|
|
}
|
|
|
|
function _fun17453(a0, a1, a2) { // fn#17453, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1676:1149, offset: 0x00e6d651, size: 302 bytes, params: 4, frame: 23
|
|
const env0_0 = a1;
|
|
const env0_1 = a2;
|
|
const property = screens[a1.name];
|
|
const props = property.props;
|
|
const property2 = env0_17[a1.key];
|
|
const items = [screenOptions];
|
|
const value6 = items.concat(env1_3(property.options ? property.options.filter(global.Boolean) : []), [props.options,
|
|
env0_11[a1.key]]).reduce(_fun17454, {});
|
|
const Object = global.Object;
|
|
a0[a1.key] = {route: a1, navigation: property2, render: render_17457, options: Object.assign({},
|
|
typeof defaultScreenOptions === 'function' ? defaultScreenOptions({route: a1, navigation: property2,
|
|
options: value6}) : defaultScreenOptions, value6)};
|
|
return a0;
|
|
}
|
|
|
|
function _fun17454(a0, a1) { // fn#17454, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1676:1287, offset: 0x00e6d77f, size: 71 bytes, params: 3, frame: 16
|
|
var r1;
|
|
let value = a1;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
if (typeof value !== 'function') {
|
|
r1 = value;
|
|
} else {
|
|
value = value({route: require, navigation: env0_3});
|
|
r1 = value;
|
|
}
|
|
return Reflect.apply(assign, Object, [a0, r1]);
|
|
}
|
|
|
|
function clearOptions() { // fn#17455, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1676:1463, offset: 0x00e6d7c6, size: 23 bytes, params: 1, frame: 11
|
|
return env1_12(_fun17456);
|
|
}
|
|
|
|
function render_17457() { // fn#17457, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1676:1635, offset: 0x00e6d829, size: 247 bytes, params: 1, frame: 25
|
|
const Provider = (importDefault(1506) /* metro dependency 1506 */).Provider;
|
|
const providerProps = {value: env1_16};
|
|
const Provider2 = (importDefault(1512) /* metro dependency 1512 */).Provider;
|
|
const binding = env0_3;
|
|
const Provider3 = (importDefault(1511) /* metro dependency 1511 */).Provider;
|
|
return (
|
|
<Provider {...providerProps} key={require.key}>
|
|
<Provider2 value={binding}>
|
|
<Provider3 value={require}>
|
|
{((Component) => <Component navigation={binding} route={require} screen={props} routeState={state.routes[importDefault].state} getState={getState} setState={setState} options={env0_4} clearOptions={clearOptions} />)(importDefault(1551) /* metro dependency 1551 */)}
|
|
</Provider3>
|
|
</Provider2>
|
|
</Provider>
|
|
);
|
|
}
|
|
|
|
function _fun17456(a0) { // fn#17456, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1676:1497, offset: 0x00e6d7dd, size: 76 bytes, params: 2, frame: 14
|
|
var binding;
|
|
var items2;
|
|
let value = environment.__proto__;
|
|
let key = require.key;
|
|
if (key in a0) {
|
|
key = require.key;
|
|
a0[key];
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
binding = env3_2;
|
|
items2 = [key];
|
|
value = items2.map(_toPropertyKey_17450);
|
|
return binding(a0, value);
|
|
}
|
|
return a0;
|
|
}
|
|
|