47 lines
1.8 KiB
TypeScript
47 lines
1.8 KiB
TypeScript
// Module ID: 10663
|
|
// Function ID: 10664
|
|
// Name: confirmActivityChangeModal
|
|
// Dependencies: [3830, 1874, 4384, 4532, 1236, 1856, 2]
|
|
// Exports: default
|
|
|
|
// Module 10663 (confirmActivityChangeModal)
|
|
import upsertRelationship from "upsertRelationship";
|
|
import mergeGuildAvatar from "mergeGuildAvatar";
|
|
|
|
const require = arg1;
|
|
const result = require("computeChannelName").fileFinishedImporting("modules/activities/confirmActivityChangeAlert.tsx");
|
|
|
|
export default function confirmActivityChangeModal(name, channel) {
|
|
let str = "";
|
|
if (null != channel) {
|
|
let obj = require(4384) /* computeChannelName */;
|
|
str = obj.computeChannelName(channel, mergeGuildAvatar, upsertRelationship);
|
|
}
|
|
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;
|
|
name = undefined;
|
|
if (name != null) {
|
|
name = name.name;
|
|
}
|
|
if (name == null) {
|
|
const intl5 = tmp6(1236).intl;
|
|
name = intl5.string(tmp6(1236).t.G99XFs);
|
|
}
|
|
obj = { currentApplicationName: name, currentApplicationChannelName: null };
|
|
const obj2 = importDefault(4532);
|
|
if (tmp6Result.isNullOrEmpty(str)) {
|
|
const intl6 = tmp6(1236).intl;
|
|
str = intl6.string(tmp6(1236).t.OGUjmt);
|
|
}
|
|
obj[1] = str;
|
|
obj[5] = intl4.format(require(1236) /* getSystemLocale */.t["5/Xort"], obj);
|
|
obj2.show(obj);
|
|
};
|