2026-08-24 06:08:38 +00:00
|
|
|
// Module ID: 12408
|
|
|
|
|
// Function ID: 12409
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: ConfirmStartCall
|
2026-08-24 06:08:38 +00:00
|
|
|
// Dependencies: [19, 21, 4667, 1236, 4667, 4663, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: confirmStartCall
|
|
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
// Module 12408 (ConfirmStartCall)
|
|
|
|
|
import noopAll from "noop" /* 19 */;
|
|
|
|
|
import getSystemLocale from "getSystemLocale" /* 1236 */;
|
|
|
|
|
import useAlertStore from "useAlertStore" /* 4663 */;
|
|
|
|
|
import getAlertModalItemKey from "getAlertModalItemKey" /* 4667 */;
|
|
|
|
|
import jsxProd from "jsxProd" /* 21 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
require = arg1;
|
2026-07-20 16:05:17 +00:00
|
|
|
function ConfirmStartCall(onConfirm) {
|
2026-07-29 08:29:29 +00:00
|
|
|
let obj = { title: null, content: null, actions: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
const intl = getSystemLocale.intl;
|
|
|
|
|
obj[0] = intl.string(getSystemLocale.t.HlAPoq);
|
|
|
|
|
const intl2 = getSystemLocale.intl;
|
|
|
|
|
obj[1] = intl2.string(getSystemLocale.t["cRW4D/"]);
|
2026-07-29 08:29:29 +00:00
|
|
|
obj = { children: null };
|
|
|
|
|
obj = { variant: "active", text: null, onPress: null };
|
2026-08-24 06:08:38 +00:00
|
|
|
const intl3 = getSystemLocale.intl;
|
|
|
|
|
obj[1] = intl3.string(getSystemLocale.t.rimG2R);
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[2] = onConfirm.onConfirm;
|
2026-08-24 06:08:38 +00:00
|
|
|
const items = [callback(getAlertModalItemKey.AlertActionButton, obj, "confirm"), ];
|
|
|
|
|
obj1 = { variant: "secondary", text: null };
|
|
|
|
|
const intl4 = getSystemLocale.intl;
|
|
|
|
|
obj1[1] = intl4.string(getSystemLocale.t["ETE/oC"]);
|
|
|
|
|
items[1] = callback(getAlertModalItemKey.AlertActionButton, obj1, "cancel");
|
2026-07-29 08:29:29 +00:00
|
|
|
obj[0] = items;
|
2026-08-24 06:08:38 +00:00
|
|
|
obj[2] = callback2(getAlertModalItemKey.AlertActions, obj);
|
|
|
|
|
return callback(getAlertModalItemKey.AlertModal, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-08-24 06:08:38 +00:00
|
|
|
noopAll;
|
2026-07-29 08:29:29 +00:00
|
|
|
({ jsx: obj1, jsxs: c3 } = jsxProd);
|
2026-08-24 06:08:38 +00:00
|
|
|
const result = require("set").fileFinishedImporting("modules/voice_calls/native/ConfirmStartCall.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const confirmStartCall = function confirmStartCall(fn) {
|
2026-08-24 06:08:38 +00:00
|
|
|
let obj = useAlertStore;
|
2026-07-20 16:05:17 +00:00
|
|
|
obj = { onConfirm: fn };
|
|
|
|
|
obj.openAlert("start-voice-call", callback(ConfirmStartCall, obj));
|
|
|
|
|
};
|