Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
50 lines
1.8 KiB
TypeScript
50 lines
1.8 KiB
TypeScript
// Module ID: 8960
|
|
// Function ID: 8961
|
|
// Name: confirmActivityChangeAlert
|
|
// Dependencies: [4479, 1372, 4989, 5369, 1115, 2011, 2]
|
|
// Exports: default
|
|
|
|
// Module 8960 (confirmActivityChangeAlert)
|
|
import util from "util" /* 1115 */;
|
|
import useChannelName from "useChannelName" /* 4989 */;
|
|
import AlertActionCreatorsDefault from "AlertActionCreators" /* 5369 */;
|
|
import RelationshipStore from "RelationshipStore" /* 4479 */;
|
|
import UserStore from "UserStore" /* 1372 */;
|
|
|
|
require = fn;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/activities/confirmActivityChangeAlert.tsx");
|
|
|
|
export default function confirmActivityChangeModal(name, channel, onConfirm, onCancel) {
|
|
let str = "";
|
|
if (null != channel) {
|
|
str = useChannelName.computeChannelName(channel, UserStore, RelationshipStore);
|
|
}
|
|
const obj3 = { title: null, cancelText: null, confirmText: null, onConfirm: null, onCancel: null, body: null, isDismissable: false };
|
|
const intl = util.intl;
|
|
obj3.title = intl.string(util.t.XkIWkk);
|
|
const intl2 = util.intl;
|
|
obj3.cancelText = intl2.string(util.t["ETE/oC"]);
|
|
const intl3 = util.intl;
|
|
obj3.confirmText = intl3.string(util.t["cY+Oob"]);
|
|
obj3.onConfirm = onConfirm;
|
|
obj3.onCancel = onCancel;
|
|
const intl4 = util.intl;
|
|
name = undefined;
|
|
if (name != null) {
|
|
name = name.name;
|
|
}
|
|
if (name == null) {
|
|
const intl5 = tmp6(1115).intl;
|
|
name = intl5.string(tmp6(1115).t.G99XFs);
|
|
}
|
|
const obj4 = { currentApplicationName: name, currentApplicationChannelName: null };
|
|
const obj2 = AlertActionCreatorsDefault;
|
|
if (tmp6Result.isNullOrEmpty(str)) {
|
|
const intl6 = tmp6(1115).intl;
|
|
str = intl6.string(tmp6(1115).t.OGUjmt);
|
|
}
|
|
obj4.currentApplicationChannelName = str;
|
|
obj3.body = intl4.format(util.t["5/Xort"], obj4);
|
|
obj2.show(obj3);
|
|
};
|