decord/source/modules/private_channel_integrations/PrivateChannelIntegrationSystemMessageUtils.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

89 lines
4.7 KiB
TypeScript

// Module ID: 8112
// Function ID: 8113
// Name: PrivateChannelIntegrationSystemMessageUtils
// Dependencies: [1074, 1115, 2025, 2]
// Exports: getPrivateChannelIntegrationAddedSystemMessageASTContent, getPrivateChannelIntegrationAddedSystemMessageContent, getPrivateChannelIntegrationRemovedSystemMessageASTContent, getPrivateChannelIntegrationRemovedSystemMessageContent
// Module 8112 (PrivateChannelIntegrationSystemMessageUtils)
import util from "util" /* 1115 */;
import HelpdeskUtilsDefault from "HelpdeskUtils" /* 2025 */;
import Constants from "Constants" /* 1074 */;
import size from "module_2" /* 2 */;
({ HelpdeskArticles: c3, NOOP: closure_4 } = Constants);
const result = size.fileFinishedImporting("modules/private_channel_integrations/PrivateChannelIntegrationSystemMessageUtils.tsx");
export const getPrivateChannelIntegrationAddedSystemMessageContent = function getPrivateChannelIntegrationAddedSystemMessageContent(applicationNameHook) {
({ application, username, usernameHook } = applicationNameHook);
if (usernameHook === undefined) {
usernameHook = React4;
}
applicationNameHook = applicationNameHook.applicationNameHook;
if (applicationNameHook === undefined) {
applicationNameHook = React4;
}
if (null != application) {
const intl2 = util.intl;
const obj3 = { username, otherUsername: application.name, usernameHook, otherUsernameHook: applicationNameHook, helpCenterLink: HelpdeskUtilsDefault.getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS) };
let formatResult = intl2.format(util.t.J8SaGy, obj3);
} else {
const intl = util.intl;
const obj = { username, usernameHook, helpCenterLink: HelpdeskUtilsDefault.getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS) };
formatResult = intl.format(util.t["+6V2sd"], obj);
}
return formatResult;
};
export const getPrivateChannelIntegrationRemovedSystemMessageContent = function getPrivateChannelIntegrationRemovedSystemMessageContent(applicationNameHook) {
({ application, username, usernameHook } = applicationNameHook);
if (usernameHook === undefined) {
usernameHook = React4;
}
applicationNameHook = applicationNameHook.applicationNameHook;
if (applicationNameHook === undefined) {
applicationNameHook = React4;
}
if (null != application) {
const intl2 = util.intl;
const obj3 = { username, otherUsername: application.name, usernameHook, otherUsernameHook: applicationNameHook, helpCenterLink: HelpdeskUtilsDefault.getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS) };
let formatResult = intl2.format(util.t.eGCDak, obj3);
} else {
const intl = util.intl;
const obj = { username, usernameHook, helpCenterLink: HelpdeskUtilsDefault.getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS) };
formatResult = intl.format(util.t.sAX6rs, obj);
}
return formatResult;
};
export const getPrivateChannelIntegrationAddedSystemMessageASTContent = function getPrivateChannelIntegrationAddedSystemMessageASTContent(arg0) {
({ application, username, usernameOnClick, medium } = arg0);
if (null != application) {
const intl = util.intl;
const obj = { username, otherUsername: application.name, usernameOnClick, otherUsernameOnClick: tmp, medium, helpCenterLink: null };
const obj2 = { url: HelpdeskUtilsDefault.getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS) };
obj.helpCenterLink = obj2;
let formatToPartsResult = intl.formatToParts(util.t["8r+Z+I"], obj);
} else {
const intl2 = util.intl;
const obj4 = { username, usernameOnClick, medium, helpCenterLink: null };
const obj5 = { url: HelpdeskUtilsDefault.getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS) };
obj4.helpCenterLink = obj5;
formatToPartsResult = intl2.formatToParts(util.t.ojysqe, obj4);
}
return formatToPartsResult;
};
export const getPrivateChannelIntegrationRemovedSystemMessageASTContent = function getPrivateChannelIntegrationRemovedSystemMessageASTContent(arg0) {
({ application, username, usernameOnClick, medium } = arg0);
if (null != application) {
const intl = util.intl;
const obj = { username, otherUsername: application.name, usernameOnClick, otherUsernameOnClick: tmp, medium, helpCenterLink: null };
const obj2 = { url: HelpdeskUtilsDefault.getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS) };
obj.helpCenterLink = obj2;
let formatToPartsResult = intl.formatToParts(util.t.zmc0mq, obj);
} else {
const intl2 = util.intl;
const obj4 = { username, usernameOnClick, medium, helpCenterLink: null };
const obj5 = { url: HelpdeskUtilsDefault.getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS) };
obj4.helpCenterLink = obj5;
formatToPartsResult = intl2.formatToParts(util.t["x2CN/Z"], obj4);
}
return formatToPartsResult;
};