decord/source/modules/activities/confirmActivityChangeAlert.tsx

48 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 8739
// Function ID: 8740
2026-07-20 16:05:17 +00:00
// Name: confirmActivityChangeModal
2026-08-15 05:55:55 +00:00
// Dependencies: [4030, 1922, 4984, 4827, 1236, 1903, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-15 05:55:55 +00:00
// Module 8739 (confirmActivityChangeModal)
2026-08-11 06:20:06 +00:00
import markAllUserIdListsStale from "markAllUserIdListsStale";
2026-07-29 08:29:29 +00:00
import mergeGuildAvatar from "mergeGuildAvatar";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
const result = require("computeChannelName").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-15 05:55:55 +00:00
let obj = require(4984) /* computeChannelName */;
2026-08-11 06:20:06 +00:00
str = obj.computeChannelName(channel, mergeGuildAvatar, markAllUserIdListsStale);
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 };
const intl = require(1236) /* getSystemLocale */.intl;
obj[0] = intl.string(require(1236) /* getSystemLocale */.t.XkIWkk);
const intl2 = require(1236) /* getSystemLocale */.intl;
obj[1] = intl2.string(require(1236) /* getSystemLocale */.t["ETE/oC"]);
const intl3 = require(1236) /* getSystemLocale */.intl;
obj[2] = intl3.string(require(1236) /* getSystemLocale */.t["cY+Oob"]);
obj[3] = arg2;
obj[4] = arg3;
const intl4 = require(1236) /* 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-15 05:55:55 +00:00
const obj2 = importDefault(4827);
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;
obj[5] = intl4.format(require(1236) /* getSystemLocale */.t["5/Xort"], obj);
2026-07-20 16:05:17 +00:00
obj2.show(obj);
};