61 lines
3.2 KiB
JavaScript
61 lines
3.2 KiB
JavaScript
/* Metro module 1521; source: unknown; dependencies: [57] */
|
|
import Module00057 from './module-00057.js'; /* Metro dependency 57 */
|
|
|
|
function _fun17224(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17224, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1648:6, offset: 0x00e66fd9, size: 86 bytes, params: 8, frame: 16
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const formatToList = function(a0) {
|
|
return a0.map(_fun17226).join('\n');
|
|
};
|
|
exports.default = validatePathConfig;
|
|
function formatToList(a0) { // fn#17225, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1648:108, offset: 0x00e6702f, size: 36 bytes, params: 2, frame: 11
|
|
return a0.map(function(a0) {
|
|
return '- ' + a0;
|
|
}).join('\n');
|
|
}
|
|
|
|
function validatePathConfig(a0) { // fn#17227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1648:199, offset: 0x00e67070, size: 256 bytes, params: 2, frame: 20
|
|
var Error;
|
|
var formatToListBinding;
|
|
const items2 = ['initialRouteName', 'screens'];
|
|
const r7 = arguments.length > 1 && arguments[1] !== undefined;
|
|
if (!(r7 ? arguments[1] : !r7)) {
|
|
items2.push('path', 'exact', 'stringify', 'parse');
|
|
}
|
|
let Object = global.Object;
|
|
value = Object.keys(a0);
|
|
value = value.filter(_fun17228);
|
|
if (value.length) {
|
|
Error = global.Error;
|
|
formatToListBinding = formatToList;
|
|
value = formatToListBinding(value);
|
|
value = 'Found invalid properties in the configuration:\n' + value + "\n\nDid you forget to specify them under a 'screens' property?\n\nYou can only specify the following properties:\n" + formatToListBinding(items2) + '\n\nSee https://reactnavigation.org/docs/configuring-links for more details on how to specify a linking configuration.';
|
|
throw new Error(value);
|
|
}
|
|
if (a0.screens) {
|
|
Object = global.Object;
|
|
Object.entries(a0.screens).forEach(_fun17229);
|
|
}
|
|
function _fun17228(a0) { // fn#17228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1648:399, offset: 0x00e67170, size: 25 bytes, params: 2, frame: 11
|
|
return !Module00057.includes(a0);
|
|
}
|
|
|
|
function _fun17229(a0) { // fn#17229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1648:807, offset: 0x00e67189, size: 59 bytes, params: 2, frame: 14
|
|
const value2 = env1_0(a0, 2);
|
|
value2[0];
|
|
const property = value2[1];
|
|
if (typeof property !== 'string') {
|
|
validatePathConfig(property, false);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function _fun17226(a0) { // fn#17226, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1648:147, offset: 0x00e67053, size: 29 bytes, params: 2, frame: 11
|
|
return '- ' + a0;
|
|
}
|
|
|
|
global.__d(_fun17224, 1521, [57]) /* metro module 1521, dependencies: [57] */;
|