86 lines
3.2 KiB
React
86 lines
3.2 KiB
React
/* Metro module 231; source: unknown; dependencies: [6, 7, 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});
|
|
const env0_2 = importDefault(6) /* metro dependency 6 */;
|
|
const env0_3 = importDefault(7) /* metro dependency 7 */;
|
|
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 env0_3(Alert, null, [{key: 'alert', value: value_3230}, {key: 'prompt', value: function(a0, a1, a2) {
|
|
}}]);
|
|
}
|
|
|
|
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 object2;
|
|
var value5;
|
|
var value6;
|
|
let value = a0;
|
|
const value2 = a1;
|
|
const value3 = a3;
|
|
const property = (require(232) /* metro dependency 232 */).default;
|
|
if (property) {
|
|
var env0_1 = property.getConstants();
|
|
object2 = {};
|
|
object2.title = value || '';
|
|
r3 = value2 || '';
|
|
object2.message = r3;
|
|
object2.cancelable = false;
|
|
r3 = value3 && value3.cancelable;
|
|
if (r3) {
|
|
object2.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;
|
|
object2.buttonNeutral = text;
|
|
}
|
|
if (value5) {
|
|
text = value5.text;
|
|
text = !text ? '' : text;
|
|
object2.buttonNegative = text;
|
|
}
|
|
if (value) {
|
|
text = value.text;
|
|
text = !text ? 'OK' : text;
|
|
object2.buttonPositive = text;
|
|
}
|
|
property.showAlert(object2, function(a0) {
|
|
return global.console.warn(a0);
|
|
}, value_3230OnAction);
|
|
}
|
|
}
|
|
|
|
function value_3230OnAction(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 (env0_3.onPress) {
|
|
env0_3.onPress();
|
|
}
|
|
} else if (a1 === env0_1.buttonPositive && env0_2.onPress) {
|
|
env0_2.onPress();
|
|
}
|
|
} else {
|
|
r1 = a0 === env0_1.dismissed && importAll;
|
|
r1 = r1 && importAll.onDismiss;
|
|
if (r1) {
|
|
importAll.onDismiss();
|
|
}
|
|
}
|
|
}
|
|
|