decord/source/modules/private_channel_integrations/PrivateChannelIntegrationSystemMessageUtils.tsx

134 lines
5.9 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 8256
// Function ID: 8257
2026-07-20 16:05:17 +00:00
// Name: getPrivateChannelIntegrationAddedSystemMessageContent
2026-08-25 06:04:03 +00:00
// Dependencies: [676, 1236, 1995, 2]
2026-07-20 16:05:17 +00:00
// Exports: getPrivateChannelIntegrationAddedSystemMessageASTContent, getPrivateChannelIntegrationAddedSystemMessageContent, getPrivateChannelIntegrationRemovedSystemMessageASTContent, getPrivateChannelIntegrationRemovedSystemMessageContent
2026-08-25 06:04:03 +00:00
// Module 8256 (getPrivateChannelIntegrationAddedSystemMessageContent)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
2026-08-25 06:04:03 +00:00
import combinedDefault from "combined" /* 1995 */;
2026-08-24 06:08:38 +00:00
import ME from "ME" /* 676 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
({ HelpdeskArticles: c3, NOOP: c4 } = ME);
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/private_channel_integrations/PrivateChannelIntegrationSystemMessageUtils.tsx");
2026-07-20 16:05:17 +00:00
export const getPrivateChannelIntegrationAddedSystemMessageContent = function getPrivateChannelIntegrationAddedSystemMessageContent(applicationNameHook) {
({ application, username, usernameHook } = applicationNameHook);
if (usernameHook === undefined) {
usernameHook = closure_4;
}
applicationNameHook = applicationNameHook.applicationNameHook;
if (applicationNameHook === undefined) {
applicationNameHook = closure_4;
}
if (null != application) {
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
let obj = { username: null, otherUsername: null, usernameHook: null, otherUsernameHook: null, helpCenterLink: null };
obj[0] = username;
obj[1] = application.name;
obj[2] = usernameHook;
obj[3] = applicationNameHook;
2026-08-24 06:08:38 +00:00
obj[4] = combinedDefault.getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS);
let formatResult = intl2.format(getSystemLocale.t.J8SaGy, obj);
const obj4 = combinedDefault;
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
obj = { username: null, usernameHook: null, helpCenterLink: null };
obj[0] = username;
obj[1] = usernameHook;
2026-08-24 06:08:38 +00:00
obj[2] = combinedDefault.getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS);
formatResult = intl.format(getSystemLocale.t["+6V2sd"], obj);
const obj2 = combinedDefault;
2026-07-20 16:05:17 +00:00
}
return formatResult;
};
export const getPrivateChannelIntegrationRemovedSystemMessageContent = function getPrivateChannelIntegrationRemovedSystemMessageContent(applicationNameHook) {
({ application, username, usernameHook } = applicationNameHook);
if (usernameHook === undefined) {
usernameHook = closure_4;
}
applicationNameHook = applicationNameHook.applicationNameHook;
if (applicationNameHook === undefined) {
applicationNameHook = closure_4;
}
if (null != application) {
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
let obj = { username: null, otherUsername: null, usernameHook: null, otherUsernameHook: null, helpCenterLink: null };
obj[0] = username;
obj[1] = application.name;
obj[2] = usernameHook;
obj[3] = applicationNameHook;
2026-08-24 06:08:38 +00:00
obj[4] = combinedDefault.getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS);
let formatResult = intl2.format(getSystemLocale.t.eGCDak, obj);
const obj4 = combinedDefault;
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
obj = { username: null, usernameHook: null, helpCenterLink: null };
obj[0] = username;
obj[1] = usernameHook;
2026-08-24 06:08:38 +00:00
obj[2] = combinedDefault.getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS);
formatResult = intl.format(getSystemLocale.t.sAX6rs, obj);
const obj2 = combinedDefault;
2026-07-20 16:05:17 +00:00
}
return formatResult;
};
export const getPrivateChannelIntegrationAddedSystemMessageASTContent = function getPrivateChannelIntegrationAddedSystemMessageASTContent(arg0) {
({ application, username, usernameOnClick, medium } = arg0);
if (null != application) {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
let obj = { username: null, otherUsername: null, usernameOnClick: null, otherUsernameOnClick: null, medium: null, helpCenterLink: null };
obj[0] = username;
obj[1] = application.name;
obj[2] = usernameOnClick;
obj[3] = tmp;
obj[4] = medium;
obj = { url: null };
2026-08-24 06:08:38 +00:00
obj[0] = combinedDefault.getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS);
2026-07-29 08:29:29 +00:00
obj[5] = obj;
2026-08-24 06:08:38 +00:00
let formatToPartsResult = intl.formatToParts(getSystemLocale.t["8r+Z+I"], obj);
const obj3 = combinedDefault;
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
obj = { username: null, usernameOnClick: null, medium: null, helpCenterLink: null };
obj[0] = username;
obj[1] = usernameOnClick;
obj[2] = medium;
2026-08-24 06:08:38 +00:00
obj1 = { url: null };
obj1[0] = combinedDefault.getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS);
2026-07-29 08:29:29 +00:00
obj[3] = obj1;
2026-08-24 06:08:38 +00:00
formatToPartsResult = intl2.formatToParts(getSystemLocale.t.ojysqe, obj);
const obj6 = combinedDefault;
2026-07-20 16:05:17 +00:00
}
return formatToPartsResult;
};
export const getPrivateChannelIntegrationRemovedSystemMessageASTContent = function getPrivateChannelIntegrationRemovedSystemMessageASTContent(arg0) {
({ application, username, usernameOnClick, medium } = arg0);
if (null != application) {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
let obj = { username: null, otherUsername: null, usernameOnClick: null, otherUsernameOnClick: null, medium: null, helpCenterLink: null };
obj[0] = username;
obj[1] = application.name;
obj[2] = usernameOnClick;
obj[3] = tmp;
obj[4] = medium;
obj = { url: null };
2026-08-24 06:08:38 +00:00
obj[0] = combinedDefault.getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS);
2026-07-29 08:29:29 +00:00
obj[5] = obj;
2026-08-24 06:08:38 +00:00
let formatToPartsResult = intl.formatToParts(getSystemLocale.t.zmc0mq, obj);
const obj3 = combinedDefault;
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
2026-07-29 08:29:29 +00:00
obj = { username: null, usernameOnClick: null, medium: null, helpCenterLink: null };
obj[0] = username;
obj[1] = usernameOnClick;
obj[2] = medium;
2026-08-24 06:08:38 +00:00
obj1 = { url: null };
obj1[0] = combinedDefault.getArticleURL(constants.PRIVATE_CHANNEL_INTEGRATIONS);
2026-07-29 08:29:29 +00:00
obj[3] = obj1;
2026-08-24 06:08:38 +00:00
formatToPartsResult = intl2.formatToParts(getSystemLocale.t["x2CN/Z"], obj);
const obj6 = combinedDefault;
2026-07-20 16:05:17 +00:00
}
return formatToPartsResult;
};