decord/source/modules/activities/confirmActivityChangeAlert.tsx

51 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 10717
// Function ID: 10718
2026-07-20 16:05:17 +00:00
// Name: confirmActivityChangeModal
2026-08-25 06:04:03 +00:00
// Dependencies: [4034, 1922, 4574, 4744, 1236, 1903, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 10717 (confirmActivityChangeModal)
2026-08-24 06:08:38 +00:00
import getSystemLocale from "getSystemLocale" /* 1236 */;
2026-08-25 06:04:03 +00:00
import computeChannelName from "computeChannelName" /* 4574 */;
import setDefault from "set" /* 4744 */;
import closure_3 from "markAllUserIdListsStale" /* 4034 */;
2026-08-24 06:08:38 +00:00
import closure_4 from "mergeGuildAvatar" /* 1922 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
const result = require("set").fileFinishedImporting("modules/activities/confirmActivityChangeAlert.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default function confirmActivityChangeModal(name, channel) {
2026-07-20 16:05:17 +00:00
let str = "";
if (null != channel) {
2026-08-24 06:08:38 +00:00
let obj = computeChannelName;
str = obj.computeChannelName(channel, closure_4, closure_3);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { title: null, cancelText: null, confirmText: null, onConfirm: null, onCancel: null, body: null };
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[0] = intl.string(getSystemLocale.t.XkIWkk);
const intl2 = getSystemLocale.intl;
obj[1] = intl2.string(getSystemLocale.t["ETE/oC"]);
const intl3 = getSystemLocale.intl;
obj[2] = intl3.string(getSystemLocale.t["cY+Oob"]);
2026-07-29 08:29:29 +00:00
obj[3] = arg2;
obj[4] = arg3;
2026-08-24 06:08:38 +00:00
const intl4 = getSystemLocale.intl;
2026-07-20 16:05:17 +00:00
name = undefined;
2026-07-29 08:29:29 +00:00
if (name != null) {
2026-07-20 16:05:17 +00:00
name = name.name;
}
2026-07-29 08:29:29 +00:00
if (name == null) {
const intl5 = tmp6(1236).intl;
name = intl5.string(tmp6(1236).t.G99XFs);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { currentApplicationName: name, currentApplicationChannelName: null };
2026-08-24 06:08:38 +00:00
const obj2 = setDefault;
2026-07-29 08:29:29 +00:00
if (tmp6Result.isNullOrEmpty(str)) {
const intl6 = tmp6(1236).intl;
str = intl6.string(tmp6(1236).t.OGUjmt);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[1] = str;
2026-08-24 06:08:38 +00:00
obj[5] = intl4.format(getSystemLocale.t["5/Xort"], obj);
2026-07-20 16:05:17 +00:00
obj2.show(obj);
};