decord/alpha/source/modules/activities/confirmActivityChangeAlert.tsx

55 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 10797
// Function ID: 10798
// Name: confirmActivityChangeAlert
2026-10-09 10:00:15 +00:00
// Dependencies: [4719, 1390, 5418, 5298, 1126, 2031, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-10-09 10:00:15 +00:00
// Module 10797 (confirmActivityChangeAlert)
2026-10-03 08:58:59 +00:00
import intl7 from "intl" /* 1126 */;
2026-10-09 10:00:15 +00:00
import StringUtils from "StringUtils" /* 2031 */;
import AlertActionCreatorsDefault from "AlertActionCreators" /* 5298 */;
import useChannelName from "useChannelName" /* 5418 */;
import RelationshipStore from "RelationshipStore" /* 4719 */;
import UserStore from "UserStore" /* 1390 */;
2026-10-03 08:58:59 +00:00
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const result = size.fileFinishedImporting("modules/activities/confirmActivityChangeAlert.tsx");
2026-07-20 16:05:17 +00:00
export default function confirmActivityChangeModal(name, channel, onConfirm, onCancel) {
2026-10-03 08:58:59 +00:00
let format;
let intl;
let intl2;
let intl3;
let obj3;
let prop;
2026-07-20 16:05:17 +00:00
let str = "";
if (null != channel) {
2026-10-03 08:58:59 +00:00
const obj = useChannelName;
str = obj.computeChannelName(channel, UserStore, RelationshipStore);
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
const obj2 = { title: intl.string(intl7.t.XkIWkk), cancelText: intl2.string(intl7.t["ETE/oC"]), confirmText: intl3.string(intl7.t["cY+Oob"]), onConfirm, onCancel, body: format(prop, obj3), isDismissable: false };
const show = AlertActionCreatorsDefault.show;
AlertActionCreatorsDefault;
intl = intl7.intl;
intl2 = intl7.intl;
intl3 = intl7.intl;
const intl4 = intl7.intl;
format = intl4.format;
2026-07-20 16:05:17 +00:00
name = undefined;
2026-10-03 08:58:59 +00:00
prop = intl7.t["5/Xort"];
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-10-03 08:58:59 +00:00
const intl5 = tmp7(1126).intl;
name = intl5.string(tmp7(1126).t.G99XFs);
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
obj3 = { currentApplicationName: name, currentApplicationChannelName: str };
const tmp7Result = StringUtils;
if (tmp7Result.isNullOrEmpty(str)) {
const intl6 = tmp7(1126).intl;
str = intl6.string(tmp7(1126).t.OGUjmt);
2026-07-20 16:05:17 +00:00
}
2026-10-03 08:58:59 +00:00
show(obj2);
2026-07-20 16:05:17 +00:00
};