Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,117 @@
|
||||
/* Metro module 1561; source: unknown; dependencies: [31, 27, 1487, 1562, 1563] */
|
||||
function _fun17517(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1688:6, offset: 0x00e6ebcc, size: 118 bytes, params: 8, frame: 18
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
(require(27) /* metro dependency 27 */).Platform;
|
||||
const getStateFromParams = function(a0) {
|
||||
var r0;
|
||||
var value;
|
||||
var object2;
|
||||
if (a0 == null) {
|
||||
value = undefined;
|
||||
if (a0 != null) {
|
||||
if (a0.screen) {
|
||||
object2 = {name: a0.screen, params: a0.params};
|
||||
object2.state = a0.screen ? getStateFromParams(a0.params) : value;
|
||||
r0 = {routes: [object2]};
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
} else if (a0.state) {
|
||||
r0 = a0.state;
|
||||
} else {
|
||||
value = undefined;
|
||||
if (a0 != null) {
|
||||
if (a0.screen) {
|
||||
object2 = {name: a0.screen, params: a0.params};
|
||||
object2.state = a0.screen ? getStateFromParams(a0.params) : value;
|
||||
r0 = {routes: [object2]};
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
}
|
||||
return r0;
|
||||
};
|
||||
exports.default = useLinkProps;
|
||||
}
|
||||
|
||||
function useLinkProps({to, action}) { // fn#17519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1688:306, offset: 0x00e6ecbc, size: 317 bytes, params: 2, frame: 21
|
||||
var r2;
|
||||
var object;
|
||||
var params;
|
||||
var getStateFromParamsBinding;
|
||||
const binding = env0_3;
|
||||
let useContext = binding.useContext;
|
||||
const NavigationContainerRefContext = (require(1487) /* metro dependency 1487 */).NavigationContainerRefContext;
|
||||
const env0_2 = Reflect.apply(useContext, binding, [NavigationContainerRefContext]);
|
||||
useContext = binding.useContext;
|
||||
const NavigationHelpersContext = (require(1487) /* metro dependency 1487 */).NavigationHelpersContext;
|
||||
var env0_3 = Reflect.apply(useContext, binding, [NavigationHelpersContext]);
|
||||
useContext = binding.useContext;
|
||||
const options = Reflect.apply(useContext, binding, [importDefault(1562) /* metro dependency 1562 */]).options;
|
||||
const env0_4 = (importDefault(1563) /* metro dependency 1563 */)();
|
||||
let getPathFromState = options?.getPathFromState;
|
||||
getPathFromState = getPathFromState ?? (require(1487) /* metro dependency 1487 */).getPathFromState;
|
||||
if (typeof to === 'string') {
|
||||
r2 = to;
|
||||
} else {
|
||||
object = {};
|
||||
object.name = to.screen;
|
||||
params = to.params;
|
||||
object.params = params;
|
||||
getStateFromParamsBinding = getStateFromParams;
|
||||
params = to.params;
|
||||
object.state = getStateFromParamsBinding(params);
|
||||
r2 = getPathFromState({routes: [object]}, options?.config);
|
||||
}
|
||||
return {href: r2, accessibilityRole: 'link', onPress: onPress_17520};
|
||||
}
|
||||
|
||||
function useLinkPropsOnPress(a0) { // fn#17520, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1688:729, owner: useLinkProps.onPress, offset: 0x00e6edf9, size: 134 bytes, params: 2, frame: 12
|
||||
var binding;
|
||||
if (a0) {
|
||||
if (a0.defaultPrevented) {
|
||||
return undefined;
|
||||
}
|
||||
if (action) {
|
||||
if (env0_3) {
|
||||
binding = env0_3;
|
||||
binding.dispatch(action);
|
||||
return undefined;
|
||||
}
|
||||
if (env0_2) {
|
||||
binding = env0_2;
|
||||
binding.dispatch(action);
|
||||
return undefined;
|
||||
}
|
||||
throw new global.Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");
|
||||
}
|
||||
binding = env0_4;
|
||||
binding(to);
|
||||
} else {
|
||||
if (action) {
|
||||
if (env0_3) {
|
||||
binding = env0_3;
|
||||
binding.dispatch(action);
|
||||
return undefined;
|
||||
}
|
||||
if (env0_2) {
|
||||
binding = env0_2;
|
||||
binding.dispatch(action);
|
||||
return undefined;
|
||||
}
|
||||
throw new global.Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");
|
||||
}
|
||||
binding = env0_4;
|
||||
binding(to);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user