Files
discord-decomp/sources/by-id/module-00431.jsx
T
2026-07-27 16:20:00 +03:00

63 lines
4.7 KiB
React

/* Metro module 431; source: unknown; dependencies: [29, 44, 432, 38] */
function _fun5981(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#5981, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:472:6, offset: 0x00cebbf4, size: 129 bytes, params: 8, frame: 18
const env0_0 = require;
const env0_3 = ['tintColor', 'cancelButtonTintColor', 'disabledButtonTintColor', 'destructiveButtonIndex'];
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_4 = importDefault(29) /* metro dependency 29 */;
exports.default = {showActionSheetWithOptions: showActionSheetWithOptions,
showShareActionSheetWithOptions: showShareActionSheetWithOptions, dismissActionSheet: dismissActionSheet};
}
function showActionSheetWithOptions(a0, a1) { // fn#5982, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:472:231, offset: 0x00cebc75, size: 502 bytes, params: 3, frame: 26
(require(44) /* metro dependency 44 */)(typeof a0 === 'object' && a0 !== null, 'Options must be a valid object');
(require(44) /* metro dependency 44 */)(typeof a1 === 'function', 'Must provide a valid callback');
(require(44) /* metro dependency 44 */)(importDefault(432) /* metro dependency 432 */,
"ActionSheetManager doesn't exist");
const tintColor = a0.tintColor;
const cancelButtonTintColor = a0.cancelButtonTintColor;
const disabledButtonTintColor = a0.disabledButtonTintColor;
const destructiveButtonIndex = a0.destructiveButtonIndex;
const value4 = env0_4(a0, env0_3);
const Array = global.Array;
const r1 = Array.isArray(destructiveButtonIndex) ? destructiveButtonIndex : typeof destructiveButtonIndex !== 'number' ? null : [destructiveButtonIndex];
const value6 = (require(38) /* metro dependency 38 */).default(tintColor);
const value7 = (require(38) /* metro dependency 38 */).default(cancelButtonTintColor);
const value8 = (require(38) /* metro dependency 38 */).default(disabledButtonTintColor);
(require(44) /* metro dependency 44 */)(value6 == null || typeof value6 === 'number',
'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions tintColor');
(require(44) /* metro dependency 44 */)(value7 == null || typeof value7 === 'number',
'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions cancelButtonTintColor');
(require(44) /* metro dependency 44 */)(value8 == null || typeof value8 === 'number',
'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions disabledButtonTintColor');
const value = importDefault(432) /* metro dependency 432 */;
const showActionSheetWithOptions = value.showActionSheetWithOptions;
const Object = global.Object;
Reflect.apply(showActionSheetWithOptions, value, [Object.assign({}, value4, {tintColor: value6,
cancelButtonTintColor: value7, disabledButtonTintColor: value8, destructiveButtonIndices: r1}), a1]);
}
function showShareActionSheetWithOptions(a0, a1, a2) { // fn#5983, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:472:1250, offset: 0x00cebe6b, size: 252 bytes, params: 4, frame: 22
(require(44) /* metro dependency 44 */)(typeof a0 === 'object' && a0 !== null, 'Options must be a valid object');
(require(44) /* metro dependency 44 */)(typeof a1 === 'function', 'Must provide a valid failureCallback');
(require(44) /* metro dependency 44 */)(typeof a2 === 'function', 'Must provide a valid successCallback');
(require(44) /* metro dependency 44 */)(importDefault(432) /* metro dependency 432 */,
"ActionSheetManager doesn't exist");
const value = importDefault(432) /* metro dependency 432 */;
const showShareActionSheetWithOptions = value.showShareActionSheetWithOptions;
const Object = global.Object;
const assign = Object.assign;
const object2 = {};
object2.tintColor = (require(38) /* metro dependency 38 */).default(a0.tintColor);
Reflect.apply(showShareActionSheetWithOptions, value, [Reflect.apply(assign, Object, [{}, a0, object2]), a1, a2]);
}
function dismissActionSheet() { // fn#5984, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:472:1685, offset: 0x00cebf67, size: 108 bytes, params: 1, frame: 17
(require(44) /* metro dependency 44 */)(importDefault(432) /* metro dependency 432 */,
"ActionSheetManager doesn't exist");
if (typeof (importDefault(432) /* metro dependency 432 */).dismissActionSheet === 'function') {
(importDefault(432) /* metro dependency 432 */).dismissActionSheet();
}
}