77 lines
4.4 KiB
React
77 lines
4.4 KiB
React
/* Metro module 1141; source: unknown; dependencies: [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;
|
|
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 = (require(826) /* metro dependency 826 */).getClient();
|
|
return client === null || value2 === client ? value2 : client.getIntegrationByName(env0_3);
|
|
}
|
|
|
|
function feedbackIntegration() { // 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 object2 = {name: env0_3, options: env0_2(r8, ['buttonOptions', 'screenshotButtonOptions', 'colorScheme',
|
|
'themeLight', 'themeDark'])};
|
|
object2.buttonOptions = buttonOptions || ({});
|
|
object2.screenshotButtonOptions = screenshotButtonOptions || ({});
|
|
colorScheme = !colorScheme ? 'system' : colorScheme;
|
|
object2.colorScheme = colorScheme;
|
|
object2.themeLight = themeLight || ({});
|
|
object2.themeDark = themeDark || ({});
|
|
return object2;
|
|
}
|
|
|
|
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 : {};
|
|
}
|
|
|