decord/source/modules/activities/confirmActivityChangeAlert.tsx

51 lines
1.7 KiB
TypeScript
Raw Normal View History

// Module ID: 9469
// Function ID: 9470
2026-07-20 16:05:17 +00:00
// Name: confirmActivityChangeModal
// Dependencies: [4130, 1921, 4681, 4865, 1233, 1901, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 9469 (confirmActivityChangeModal)
2026-09-02 09:53:35 +00:00
import getSystemLocale from "getSystemLocale" /* 1233 */;
import computeChannelName from "computeChannelName" /* 4681 */;
import setDefault from "set" /* 4865 */;
2026-09-01 10:26:29 +00:00
import closure_3 from "markAllUserIdListsStale" /* 4130 */;
2026-09-02 09:53:35 +00:00
import closure_4 from "mergeGuildAvatar" /* 1921 */;
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) {
2026-09-02 09:53:35 +00:00
const intl5 = tmp6(1233).intl;
name = intl5.string(tmp6(1233).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)) {
2026-09-02 09:53:35 +00:00
const intl6 = tmp6(1233).intl;
str = intl6.string(tmp6(1233).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);
};