160 lines
7.3 KiB
JavaScript
160 lines
7.3 KiB
JavaScript
/* Metro module 1141; source: unknown; dependencies: [826] */
|
|
import * as Module00826Module from './module-00826.js'; /* Metro dependency 826 */
|
|
|
|
function _fun12678(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#12678, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1268:6, offset: 0x00dd2641, size: 184 bytes, params: 8, frame: 17
|
|
const value = this;
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
if (value && value.__rest) {
|
|
}
|
|
exports.MOBILE_FEEDBACK_INTEGRATION_NAME = 'MobileFeedback';
|
|
exports.feedbackIntegration = feedbackIntegration_12681;
|
|
exports.getFeedbackOptions = getFeedbackOptions;
|
|
exports.getFeedbackButtonOptions = getFeedbackButtonOptions;
|
|
exports.getScreenshotButtonOptions = getScreenshotButtonOptions;
|
|
exports.getColorScheme = getColorScheme_12685;
|
|
exports.getFeedbackLightTheme = getFeedbackLightTheme;
|
|
exports.getFeedbackDarkTheme = getFeedbackDarkTheme;
|
|
function _getClientIntegration() { // fn#12680, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1268:471, offset: 0x00dd26f9, size: 65 bytes, params: 1, frame: 13
|
|
const value2 = undefined;
|
|
const client = (Module00826Module).getClient();
|
|
return client === null || value2 === client ? value2 : client.getIntegrationByName(env0_3);
|
|
}
|
|
|
|
function feedbackIntegration_12681() { // fn#12681, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1268:655, offset: 0x00dd273a, size: 150 bytes, params: 1, frame: 19
|
|
const r8 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
const buttonOptions = r8.buttonOptions;
|
|
const screenshotButtonOptions = r8.screenshotButtonOptions;
|
|
let colorScheme = r8.colorScheme;
|
|
const themeLight = r8.themeLight;
|
|
const themeDark = r8.themeDark;
|
|
const object = {name: env0_3, options: env0_2(r8, ['buttonOptions', 'screenshotButtonOptions', 'colorScheme',
|
|
'themeLight', 'themeDark'])};
|
|
object.buttonOptions = buttonOptions || ({});
|
|
object.screenshotButtonOptions = screenshotButtonOptions || ({});
|
|
colorScheme = !colorScheme ? 'system' : colorScheme;
|
|
object.colorScheme = colorScheme;
|
|
object.themeLight = themeLight || ({});
|
|
object.themeDark = themeDark || ({});
|
|
return object;
|
|
}
|
|
|
|
function getFeedbackOptions() { // fn#12682, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1268:1086, offset: 0x00dd27d0, size: 27 bytes, params: 1, frame: 10
|
|
const value = _getClientIntegration();
|
|
return value ? value.options : {};
|
|
}
|
|
|
|
function getFeedbackButtonOptions() { // fn#12683, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1268:1177, offset: 0x00dd27eb, size: 28 bytes, params: 1, frame: 10
|
|
const value = _getClientIntegration();
|
|
return value ? value.buttonOptions : {};
|
|
}
|
|
|
|
function getScreenshotButtonOptions() { // fn#12684, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1268:1282, offset: 0x00dd2807, size: 28 bytes, params: 1, frame: 10
|
|
const value = _getClientIntegration();
|
|
return value ? value.screenshotButtonOptions : {};
|
|
}
|
|
|
|
function getColorScheme_12685() { // fn#12685, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1268:1387, offset: 0x00dd2823, size: 43 bytes, params: 1, frame: 10
|
|
const _getClientIntegrationBinding = _getClientIntegration;
|
|
const value = undefined;
|
|
const value2 = _getClientIntegrationBinding();
|
|
let colorScheme = value2 == null ? value : value2.colorScheme;
|
|
colorScheme = colorScheme ? value2.colorScheme : 'system';
|
|
return colorScheme;
|
|
}
|
|
|
|
function getFeedbackLightTheme() { // fn#12686, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1268:1509, offset: 0x00dd284e, size: 28 bytes, params: 1, frame: 10
|
|
const value = _getClientIntegration();
|
|
return value ? value.themeLight : {};
|
|
}
|
|
|
|
function getFeedbackDarkTheme() { // fn#12687, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1268:1602, offset: 0x00dd286a, size: 28 bytes, params: 1, frame: 10
|
|
const value = _getClientIntegration();
|
|
return value ? value.themeDark : {};
|
|
}
|
|
|
|
}
|
|
|
|
function _fun12679(a0, a1) { // fn#12679, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1268:120, offset: 0x00d90b09, size: 244 bytes, params: 3, frame: 22
|
|
var r3;
|
|
var r10;
|
|
var r2;
|
|
var r1;
|
|
var propertyName;
|
|
var propertyName2;
|
|
var Object;
|
|
var prototype;
|
|
var hasOwnProperty;
|
|
var value2;
|
|
var indexOf;
|
|
var value3;
|
|
var ownPropertySymbols;
|
|
var length;
|
|
var value5;
|
|
var propertyIsEnumerable;
|
|
var value6;
|
|
var property;
|
|
var value7;
|
|
const object = {};
|
|
const value = 0;
|
|
for (propertyName in a0) {
|
|
Object = global.Object;
|
|
prototype = Object.prototype;
|
|
hasOwnProperty = prototype.hasOwnProperty;
|
|
value2 = hasOwnProperty.call(a0, propertyName);
|
|
if (!value2) {
|
|
r10 = value2;
|
|
continue;
|
|
}
|
|
indexOf = a1.indexOf;
|
|
value3 = Reflect.apply(indexOf, a1, [propertyName]) < value;
|
|
r10 = value3;
|
|
if (!r10) {
|
|
r3 = propertyName2;
|
|
continue;
|
|
}
|
|
object[propertyName] = a0[propertyName];
|
|
r3 = propertyName2;
|
|
}
|
|
if (a0 != null) {
|
|
Object = global.Object;
|
|
if (typeof Object.getOwnPropertySymbols === 'function') {
|
|
Object = global.Object;
|
|
ownPropertySymbols = Object.getOwnPropertySymbols(a0);
|
|
length = ownPropertySymbols.length;
|
|
if (value < length) {
|
|
r2 = value;
|
|
while (true) {
|
|
indexOf = a1.indexOf;
|
|
value5 = Reflect.apply(indexOf, a1, [ownPropertySymbols[r2]]) < value;
|
|
if (value5) {
|
|
Object = global.Object;
|
|
prototype = Object.prototype;
|
|
propertyIsEnumerable = prototype.propertyIsEnumerable;
|
|
value6 = propertyIsEnumerable.call(a0, ownPropertySymbols[r2]);
|
|
r1 = value6;
|
|
} else {
|
|
r1 = value5;
|
|
}
|
|
if (!r1) {
|
|
continue;
|
|
}
|
|
property = ownPropertySymbols[r2];
|
|
object[property] = a0[ownPropertySymbols[r2]];
|
|
value7 = typeof r2 === 'bigint' ? r2 + 1n : +r2 + 1;
|
|
length = ownPropertySymbols.length;
|
|
if (value7 < length) {
|
|
r2 = value7;
|
|
continue;
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return object;
|
|
}
|
|
|
|
global.__d(_fun12678, 1141, [826]) /* metro module 1141, dependencies: [826] */;
|