Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
50 lines
1.8 KiB
TypeScript
50 lines
1.8 KiB
TypeScript
// Module ID: 9602
|
|
// Function ID: 9603
|
|
// Name: confirmActivityChangeAlert
|
|
// Dependencies: [4409, 1376, 4911, 5110, 1119, 2013, 2]
|
|
// Exports: default
|
|
|
|
// Module 9602 (confirmActivityChangeAlert)
|
|
import util from "util" /* 1119 */;
|
|
import useChannelName from "useChannelName" /* 4911 */;
|
|
import AlertActionCreatorsDefault from "AlertActionCreators" /* 5110 */;
|
|
import RelationshipStore from "RelationshipStore" /* 4409 */;
|
|
import UserStore from "UserStore" /* 1376 */;
|
|
|
|
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(1119).intl;
|
|
name = intl5.string(tmp6(1119).t.G99XFs);
|
|
}
|
|
const obj4 = { currentApplicationName: name, currentApplicationChannelName: null };
|
|
const obj2 = AlertActionCreatorsDefault;
|
|
if (tmp6Result.isNullOrEmpty(str)) {
|
|
const intl6 = tmp6(1119).intl;
|
|
str = intl6.string(tmp6(1119).t.OGUjmt);
|
|
}
|
|
obj4.currentApplicationChannelName = str;
|
|
obj3.body = intl4.format(util.t["5/Xort"], obj4);
|
|
obj2.show(obj3);
|
|
};
|