2026-09-16 07:03:15 +00:00
|
|
|
// Module ID: 11083
|
|
|
|
|
// Function ID: 11084
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useShowUnlinkChannelAlert
|
2026-09-16 07:03:15 +00:00
|
|
|
// Dependencies: [5, 19, 8760, 4983, 1115, 5079, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-16 07:03:15 +00:00
|
|
|
// Module 11083 (useShowUnlinkChannelAlert)
|
2026-09-15 14:23:42 +00:00
|
|
|
import util from "util" /* 1115 */;
|
2026-09-16 07:03:15 +00:00
|
|
|
import actions_AlertActionCreatorsDefault from "actions/AlertActionCreators" /* 4983 */;
|
|
|
|
|
import common_AlertDefault from "common/Alert" /* 5079 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import asyncGeneratorStep from "asyncGeneratorStep" /* 5 */;
|
|
|
|
|
import noop from "module_19" /* 19 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/integration_settings/native/useShowUnlinkChannelAlert.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
export default function useShowUnlinkChannelAlert(arg0, applicationName, arg2) {
|
2026-08-24 06:08:38 +00:00
|
|
|
closure_0 = arg0;
|
|
|
|
|
closure_2 = arg2;
|
2026-07-20 16:05:17 +00:00
|
|
|
const items = [arg0, arg2];
|
2026-09-10 05:38:07 +00:00
|
|
|
onConfirm = noop.useCallback(onConfirm(function*() {
|
|
|
|
|
yield v2(tmp23[2]).removeLinkedLobby(tmp3);
|
2026-08-04 21:03:28 +00:00
|
|
|
if (1 === tmp7) {
|
|
|
|
|
c3 = 0;
|
2026-09-10 05:38:07 +00:00
|
|
|
const obj7 = { title: null, body: null };
|
|
|
|
|
const intl = tmp3(tmp23[4]).intl;
|
|
|
|
|
obj7.title = intl.string(tmp3(tmp23[4]).t.vFzPFj);
|
|
|
|
|
const intl2 = tmp3(tmp23[4]).intl;
|
|
|
|
|
obj7.body = intl2.string(tmp3(tmp23[4]).t["6D5WVg"]);
|
|
|
|
|
v2(tmp23[3]).show(obj7);
|
2026-08-24 06:08:38 +00:00
|
|
|
c4 = 3;
|
2026-09-10 05:38:07 +00:00
|
|
|
v2(tmp23[3]);
|
2026-08-04 21:03:28 +00:00
|
|
|
} else if (arg0 === 1) {
|
2026-07-29 08:29:29 +00:00
|
|
|
c4 = 3;
|
2026-08-04 21:03:28 +00:00
|
|
|
throw arg1;
|
|
|
|
|
} else if (arg0 !== 2) {
|
2026-09-10 05:38:07 +00:00
|
|
|
if (closure_128_2 != null) {
|
|
|
|
|
closure_128_2();
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-08-04 21:03:28 +00:00
|
|
|
c3 = 0;
|
2026-07-29 08:29:29 +00:00
|
|
|
}
|
2026-08-04 21:03:28 +00:00
|
|
|
return arg1;
|
2026-07-29 08:29:29 +00:00
|
|
|
}), items);
|
2026-09-10 05:38:07 +00:00
|
|
|
const items1 = [applicationName, onConfirm];
|
|
|
|
|
return noop.useCallback(() => {
|
|
|
|
|
const obj2 = { title: null, body: null, cancelText: null, confirmText: null, onConfirm: null, confirmColor: null };
|
|
|
|
|
const intl = util.intl;
|
|
|
|
|
obj2.title = intl.string(util.t.JmUENg);
|
|
|
|
|
const intl2 = util.intl;
|
|
|
|
|
obj2.body = intl2.format(util.t["6l2osp"], { applicationName });
|
|
|
|
|
const intl3 = util.intl;
|
|
|
|
|
obj2.cancelText = intl3.string(util.t["ETE/oC"]);
|
|
|
|
|
const intl4 = util.intl;
|
|
|
|
|
obj2.confirmText = intl4.string(util.t["cY+Oob"]);
|
|
|
|
|
obj2.onConfirm = onConfirm;
|
|
|
|
|
obj2.confirmColor = common_AlertDefault.Colors.RED;
|
|
|
|
|
actions_AlertActionCreatorsDefault.show(obj2);
|
2026-07-20 16:05:17 +00:00
|
|
|
}, items1);
|
|
|
|
|
};
|