66 lines
5.0 KiB
JavaScript
66 lines
5.0 KiB
JavaScript
/* Metro module 431; source: unknown; dependencies: [29, 44, 432, 38] */
|
|
import ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
|
|
import Module00432 from './module-00432.js'; /* Metro dependency 432 */
|
|
import * as Module00038Module from './module-00038.js'; /* Metro dependency 38 */
|
|
import * as Module00044Module from './module-00044.js'; /* Metro dependency 44 */
|
|
|
|
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});
|
|
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 */)(Module00432,
|
|
"ActionSheetManager doesn't exist");
|
|
const tintColor = a0.tintColor;
|
|
const cancelButtonTintColor = a0.cancelButtonTintColor;
|
|
const disabledButtonTintColor = a0.disabledButtonTintColor;
|
|
const destructiveButtonIndex = a0.destructiveButtonIndex;
|
|
const value4 = ObjectWithoutProperties(a0, env0_3);
|
|
const Array = global.Array;
|
|
const r1 = Array.isArray(destructiveButtonIndex) ? destructiveButtonIndex : typeof destructiveButtonIndex !== 'number' ? null : [destructiveButtonIndex];
|
|
const value6 = (Module00038Module).default(tintColor);
|
|
const value7 = (Module00038Module).default(cancelButtonTintColor);
|
|
const value8 = (Module00038Module).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 showActionSheetWithOptions = Module00432.showActionSheetWithOptions;
|
|
const Object = global.Object;
|
|
Reflect.apply(showActionSheetWithOptions, Module00432, [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 */)(Module00432,
|
|
"ActionSheetManager doesn't exist");
|
|
const showShareActionSheetWithOptions = Module00432.showShareActionSheetWithOptions;
|
|
const Object = global.Object;
|
|
const assign = Object.assign;
|
|
const object = {};
|
|
object.tintColor = (require(38) /* metro dependency 38 */).default(a0.tintColor);
|
|
Reflect.apply(showShareActionSheetWithOptions, Module00432, [Reflect.apply(assign, Object, [{}, a0, object]), 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
|
|
(Module00044Module)(importDefault(432) /* metro dependency 432 */,
|
|
"ActionSheetManager doesn't exist");
|
|
if (typeof (importDefault(432) /* metro dependency 432 */).dismissActionSheet === 'function') {
|
|
(importDefault(432) /* metro dependency 432 */).dismissActionSheet();
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun5981, 431, [29, 44, 432, 38]) /* metro module 431, dependencies: [29, 44, 432, 38] */;
|