decord/alpha/source/utils/HelpdeskUtils.tsx

72 lines
2.6 KiB
TypeScript
Raw Normal View History

2026-10-08 09:57:35 +00:00
// Module ID: 2127
// Function ID: 2128
// Name: HelpdeskUtils
2026-10-09 10:00:15 +00:00
// Dependencies: [2128, 1085, 4691, 1382, 2]
2026-07-20 16:05:17 +00:00
2026-10-08 09:57:35 +00:00
// Module 2127 (HelpdeskUtils)
2026-10-09 10:00:15 +00:00
import PlatformUtils from "PlatformUtils" /* 1382 */;
import getLocalizedLinkDefault from "getLocalizedLink" /* 4691 */;
2026-10-08 09:57:35 +00:00
import LocaleStore from "LocaleStore" /* 2128 */;
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
const LocalizedLinks = Constants.LocalizedLinks;
2026-10-03 08:58:59 +00:00
const SUPPORT_DEV_DOMAIN = Constants.SUPPORT_DEV_DOMAIN;
let combined = "https://" + Constants.SUPPORT_DOMAIN;
2026-10-03 08:58:59 +00:00
let closure_6 = "https://" + SUPPORT_DEV_DOMAIN;
let obj = {
getArticleURL(TIGGER_PAWTECT_LEARN_MORE) {
const str = LocaleStore.locale;
return combined + "/hc/" + str.toLowerCase() + "/articles/" + TIGGER_PAWTECT_LEARN_MORE;
2026-07-20 16:05:17 +00:00
},
getDevArticleURL(arg0) {
2026-07-29 08:29:29 +00:00
let tmp2 = closure_6;
2026-10-03 08:58:59 +00:00
const str = LocaleStore.locale;
combined = "/hc/" + str.toLowerCase() + "/articles/" + arg0;
2026-07-29 08:29:29 +00:00
if (closure_6 === undefined) {
tmp2 = combined;
}
return tmp2 + combined;
2026-07-20 16:05:17 +00:00
},
getCreatorSupportArticleURL(MEDIA_CHANNEL) {
2026-10-03 08:58:59 +00:00
const str = LocaleStore.locale;
return "https://creator-support.discord.com" + "/hc/" + str.toLowerCase() + "/articles/" + MEDIA_CHANNEL;
2026-07-20 16:05:17 +00:00
},
getTwitterURL() {
2026-08-24 06:08:38 +00:00
return getLocalizedLinkDefault(LocalizedLinks.TWITTER);
2026-07-20 16:05:17 +00:00
},
getCommunityURL() {
2026-10-03 08:58:59 +00:00
const str = LocaleStore.locale;
return combined + "/hc/" + str.toLowerCase();
2026-07-20 16:05:17 +00:00
},
getSubmitRequestURL(arg0) {
2026-10-03 08:58:59 +00:00
const str = LocaleStore.locale;
const formatted = str.toLowerCase();
const obj = PlatformUtils;
const sum = combined + "/hc/" + formatted + "/requests/new?platform=" + encodeURIComponent(obj.getPlatformName());
2026-07-29 08:29:29 +00:00
let sum1 = sum;
2026-07-20 16:05:17 +00:00
if (null != arg0) {
const _encodeURIComponent = encodeURIComponent;
const _HermesInternal = HermesInternal;
2026-07-29 08:29:29 +00:00
sum1 = sum + "&device_info=" + encodeURIComponent(arg0);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return sum1;
2026-07-20 16:05:17 +00:00
},
getSearchURL(arg0) {
2026-10-03 08:58:59 +00:00
const str = LocaleStore.locale;
const encodeURIComponentResult = encodeURIComponent(arg0);
return combined + "/hc/" + str.toLowerCase() + "/search?utf8=%E2%9C%93&query=" + encodeURIComponentResult + "&commit=Search";
2026-07-20 16:05:17 +00:00
},
getFeaturedArticlesJsonURL() {
2026-07-29 08:29:29 +00:00
return combined + "/api/v2/help_center/en-us/articles.json?label_names=featured";
2026-07-20 16:05:17 +00:00
},
getAppsSupportURL(APPS_LEARN_MORE) {
2026-10-03 08:58:59 +00:00
const str = LocaleStore.locale;
return "https://support-apps.discord.com" + "/hc/" + str.toLowerCase() + "/articles/" + APPS_LEARN_MORE;
2026-07-20 16:05:17 +00:00
}
};
2026-10-03 08:58:59 +00:00
const result = size.fileFinishedImporting("utils/HelpdeskUtils.tsx");
export default obj;
2026-07-20 16:05:17 +00:00
export const SUPPORT_LOCATION = combined;