This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

+67
View File
@@ -0,0 +1,67 @@
// Metro module 231 (f232).
import _classCallCheck from "./_classCallCheck";
import _createClass from "./_createClass";
import * as _Module232 from "./Module232";
let env254 = {};
const Alert = function Alert() {
_classCallCheck(this, Alert);
};
export default _createClass(Alert, null, [{
key: "alert",
value: function alert(a0, a1, a2, a3) {
let constants, c23627_2, c23627_3, c23627_4;
if (_Module232.default) {
let title = a0;
constants = _Module232.default.getConstants();
if (!a0) {
title = "";
}
const r16 = {
title,
message: a1 ? a1 : "",
cancelable: false
};
if (a3 ? a3.cancelable : a3) {
r16.cancelable = a3.cancelable;
}
const r9 = a2 ? a2.slice(0, 3) : [{
text: "OK"
}];
const r23 = r9.pop();
c23627_2 = r23;
const r25 = r9.pop();
c23627_3 = r25;
const r27 = r9.pop();
c23627_4 = r27;
if (r27) {
r16.buttonNeutral = r27.text || "";
}
if (r25) {
r16.buttonNegative = r25.text || "";
}
if (r23) {
r16.buttonPositive = r23.text || "OK";
}
_Module232.default.showAlert(r16, (a0) => console.warn(a0), (a0, a1) => {
if (a0 === constants.buttonClicked) {
if (a1 === constants.buttonNeutral) {
if (c23627_4.onPress) {
c23627_4.onPress();
}
} else if (a1 === constants.buttonNegative) {
if (c23627_3.onPress) {
c23627_3.onPress();
}
} else if (a1 === constants.buttonPositive && c23627_2.onPress) {
c23627_2.onPress();
}
} else if (a0 === constants.dismissed && a3 && a3.onDismiss) {
a3.onDismiss();
}
});
}
}
}, {
key: "prompt",
value: function prompt(a0, a1, a2) {}
}]);