93 lines
4.3 KiB
JavaScript
93 lines
4.3 KiB
JavaScript
/* Metro module 231; source: unknown; dependencies: [6, 7, 232] */
|
|
import ClassCallCheck from './module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
|
|
import CreateClass from './module-00007-CreateClass.js'; /* Metro dependency 7 */
|
|
import * as Module00232Module from './module-00232.js'; /* Metro dependency 232 */
|
|
|
|
function _fun3227(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#3227, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:262:6, offset: 0x00c939eb, size: 104 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.default = _fun3228();
|
|
function _fun3228() { // fn#3228, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:262:118, offset: 0x00c93a53, size: 81 bytes, params: 1, frame: 16
|
|
return CreateClass(Alert, null, [{key: 'alert', value: value_3230}, {key: 'prompt', value: function(a0, a1, a2) {
|
|
}}]);
|
|
function Alert() { // fn#3229, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:262:139, offset: 0x00c618a4, size: 27 bytes, params: 1, frame: 13
|
|
env1_2(this, Alert);
|
|
}
|
|
|
|
function value_3230(a0, a1, a2, a3) { // fn#3230, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:262:197, offset: 0x00c93aa4, size: 295 bytes, params: 5, frame: 19
|
|
var r3;
|
|
var r7;
|
|
var text;
|
|
var object;
|
|
var value5;
|
|
var value6;
|
|
let value = a0;
|
|
const value2 = a1;
|
|
const value3 = a3;
|
|
const property = (Module00232Module).default;
|
|
if (property) {
|
|
var env0_1 = property.getConstants();
|
|
object = {};
|
|
object.title = value || '';
|
|
r3 = value2 || '';
|
|
object.message = r3;
|
|
object.cancelable = false;
|
|
r3 = value3 && value3.cancelable;
|
|
if (r3) {
|
|
object.cancelable = value3.cancelable;
|
|
}
|
|
r7 = a2 ? a2.slice(0, 3) : [{text: 'OK'}];
|
|
value = r7.pop();
|
|
value5 = r7.pop();
|
|
value6 = r7.pop();
|
|
if (value6) {
|
|
text = value6.text;
|
|
text = !text ? '' : text;
|
|
object.buttonNeutral = text;
|
|
}
|
|
if (value5) {
|
|
text = value5.text;
|
|
text = !text ? '' : text;
|
|
object.buttonNegative = text;
|
|
}
|
|
if (value) {
|
|
text = value.text;
|
|
text = !text ? 'OK' : text;
|
|
object.buttonPositive = text;
|
|
}
|
|
property.showAlert(object, function(a0) {
|
|
return global.console.warn(a0);
|
|
}, onAction);
|
|
}
|
|
function onAction(a0, a1) { // fn#3232, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:262:587, owner: value_3230.onAction, offset: 0x00c93be2, size: 210 bytes, params: 3, frame: 11
|
|
var r1;
|
|
if (a0 === env0_1.buttonClicked) {
|
|
if (a1 === env0_1.buttonNeutral) {
|
|
if (env0_4.onPress) {
|
|
env0_4.onPress();
|
|
}
|
|
} else if (a1 === env0_1.buttonNegative) {
|
|
if (CreateClass.onPress) {
|
|
CreateClass.onPress();
|
|
}
|
|
} else if (a1 === env0_1.buttonPositive && ClassCallCheck.onPress) {
|
|
ClassCallCheck.onPress();
|
|
}
|
|
} else {
|
|
r1 = a0 === env0_1.dismissed && importAll;
|
|
r1 = r1 && importAll.onDismiss;
|
|
if (r1) {
|
|
importAll.onDismiss();
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun3227, 231, [6, 7, 232]) /* metro module 231, dependencies: [6, 7, 232] */;
|