Files
2026-07-28 01:06:53 +03:00

143 lines
7.9 KiB
React

/* Metro module 1564; source: unknown; dependencies: [57, 29, 31, 33, 1565, 1487, 1566, 1567, 1568, 1570, 1562, 1571] */
import ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
import Module00057 from './module-00057.js'; /* Metro dependency 57 */
import Module01566 from './module-01566.js'; /* Metro dependency 1566 */
import Module01567 from './module-01567.js'; /* Metro dependency 1567 */
import Module01568 from './module-01568.js'; /* Metro dependency 1568 */
import Module01570 from './module-01570.js'; /* Metro dependency 1570 */
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */
function _fun17525(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17525, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1691:6, offset: 0x00e6f132, size: 204 bytes, params: 8, frame: 20
const env0_0 = require;
const env0_3 = ['theme', 'linking', 'fallback', 'documentTitle', 'onReady'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const WeakMap = global.WeakMap;
const value2 = Object.create(WeakMap.prototype, {constructor: {value: WeakMap}});
const weakMap = new WeakMap();
global.REACT_NAVIGATION_DEVTOOLS = weakMap instanceof Object ? weakMap : value2;
exports.default = ReactModule.forwardRef(NavigationContainerInner);
function NavigationContainerInner(a0, a1) { // fn#17526, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1691:263, offset: 0x00e6f1fe, size: 653 bytes, params: 3, frame: 30
var moduleValue;
var Provider;
var defaultImport2;
var object;
var BaseNavigationContainer;
const theme = a0.theme;
const r10 = theme !== undefined ? theme : importDefault(1565) /* metro dependency 1565 */;
const linking = a0.linking;
const fallback = a0.fallback;
let value = null;
let r0 = fallback === undefined ? value : fallback;
const documentTitle = a0.documentTitle;
const onReady = a0.onReady;
let binding = env0_5;
const value3 = binding(a0, env0_3);
const r11 = linking ? linking.enabled !== false : !!linking;
if (value != linking && linking.config) {
moduleValue = require(1487) /* metro dependency 1487 */;
moduleValue.validatePathConfig(linking.config);
}
binding = env0_6;
const value7 = binding.useRef(value);
(Module01566)(value7);
(Module01567)(value7, documentTitle);
const defaultImport = Module01568;
let Object = global.Object;
const assign = Object.assign;
let object2 = {};
object2.independent = value3.independent;
object2.enabled = r11;
object2.prefixes = [];
const getInitialState = defaultImport(value7, Reflect.apply(assign, Object, [object2, linking])).getInitialState;
binding.useEffect(_fun17527);
const value9 = Module00057((Module01570)(getInitialState), 2);
const property = value9[0];
const property2 = value9[1];
binding.useImperativeHandle(a1, _fun17529);
const value10 = binding.useMemo(function() {
return {options: linking};
}, [linking]);
let r1 = value != value3.initialState || !r11;
r1 = !r1 ? property : r1;
binding = env0_6;
var env0_5 = binding.useRef(onReady);
binding.useEffect(_fun17531);
binding.useEffect(_fun17532, [r1]);
if (r1) {
Provider = (importDefault(1562) /* metro dependency 1562 */).Provider;
object2 = {value: value10};
defaultImport2 = importDefault(1571) /* metro dependency 1571 */;
object = {value: r10};
BaseNavigationContainer = (require(1487) /* metro dependency 1487 */).BaseNavigationContainer;
Object = global.Object;
value = (
<Provider {...object2}>
{((Component) => <Component {...object}><BaseNavigationContainer {...Object.assign({}, value3,
{initialState: value == value3.initialState ? property2 : value3.initialState,
ref: value7})} /></Component>)(defaultImport2)}
</Provider>
);
r0 = value;
}
return r0;
function _fun17527() { // fn#17527, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1691:659, offset: 0x00e6f48b, size: 70 bytes, params: 1, frame: 16
var REACT_NAVIGATION_DEVTOOLS;
var set;
var object;
let current = env0_3.current;
if (current) {
REACT_NAVIGATION_DEVTOOLS = global.REACT_NAVIGATION_DEVTOOLS;
set = REACT_NAVIGATION_DEVTOOLS.set;
current = env0_3.current;
object = {};
Object.defineProperty(object, 'linking', {get: _fun17528, set: undefined, enumerable: true,
configurable: true});
Reflect.apply(set, REACT_NAVIGATION_DEVTOOLS, [current, object]);
}
function _fun17528() { // fn#17528, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1691:722, offset: 0x00e6f4d1, size: 264 bytes, params: 1, frame: 21
const Object = global.Object;
const assign = Object.assign;
const linkingBinding = linking;
const object = {enabled: env1_2};
const linkingBinding2 = linking;
const value2 = undefined;
object.prefixes = (linkingBinding2 == null ? value2 : linking.prefixes) ?? [];
let getStateFromPath = linking == null ? value2 : linking.getStateFromPath;
getStateFromPath = getStateFromPath ?? (require(1487) /* metro dependency 1487 */).getStateFromPath;
object.getStateFromPath = getStateFromPath;
let getPathFromState = linking == null ? value2 : linking.getPathFromState;
getPathFromState = getPathFromState ?? (require(1487) /* metro dependency 1487 */).getPathFromState;
object.getPathFromState = getPathFromState;
let getActionFromState = linking == null ? value2 : linking.getActionFromState;
getActionFromState = getActionFromState ?? (require(1487) /* metro dependency 1487 */).getActionFromState;
object.getActionFromState = getActionFromState;
return Reflect.apply(assign, Object, [{}, linkingBinding, object]);
}
}
function _fun17529() { // fn#17529, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1691:1178, offset: 0x00e6f5d9, size: 14 bytes, params: 1, frame: 1
return env0_3.current;
}
function _fun17531() { // fn#17531, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1691:1326, offset: 0x00e6f5f6, size: 21 bytes, params: 1, frame: 2
env0_5.current = onReady;
}
function _fun17532() { // fn#17532, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1691:1365, offset: 0x00e6f60b, size: 42 bytes, params: 1, frame: 10
if (Module00057) {
if (env0_5.current != null) {
env0_5.current();
}
}
}
}
}
global.__d(_fun17525, 1564, [57, 29, 31, 33, 1565, 1487, 1566, 1567, 1568, 1570, 1562,
1571]) /* metro module 1564, dependencies: [57, 29, 31, 33, 1565, 1487, 1566, 1567, 1568, 1570, 1562, 1571] */;