decord/alpha/source/utils/HelpdeskUtils.tsx

62 lines
2.3 KiB
TypeScript
Raw Normal View History

// Module ID: 2110
// Function ID: 2111
// Name: HelpdeskUtils
// Dependencies: [2111, 1074, 4446, 1364, 2]
2026-07-20 16:05:17 +00:00
// Module 2110 (HelpdeskUtils)
import PlatformUtils from "PlatformUtils" /* 1364 */;
import getLocalizedLinkDefault from "getLocalizedLink" /* 4446 */;
import LocaleStore from "LocaleStore" /* 2111 */;
2026-07-23 10:11:24 +00:00
require = fn;
const Constants = fn(1074);
const LocalizedLinks = Constants.LocalizedLinks;
let combined = "https://" + Constants.SUPPORT_DOMAIN;
let closure_6 = "https://" + Constants.SUPPORT_DEV_DOMAIN;
const size = fn(2);
const result = size.fileFinishedImporting("utils/HelpdeskUtils.tsx");
2026-07-20 16:05:17 +00:00
export default {
getArticleURL(REFERRAL_PROGRAM) {
return combined + "/hc/" + LocaleStore.locale.toLowerCase() + "/articles/" + REFERRAL_PROGRAM;
2026-07-20 16:05:17 +00:00
},
getDevArticleURL(arg0) {
2026-07-29 08:29:29 +00:00
let tmp2 = closure_6;
combined = "/hc/" + LocaleStore.locale.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) {
return "https://creator-support.discord.com" + "/hc/" + LocaleStore.locale.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() {
return combined + "/hc/" + LocaleStore.locale.toLowerCase();
2026-07-20 16:05:17 +00:00
},
getSubmitRequestURL(arg0) {
const formatted = LocaleStore.locale.toLowerCase();
const sum = combined + "/hc/" + formatted + "/requests/new?platform=" + encodeURIComponent(PlatformUtils.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) {
return combined + "/hc/" + LocaleStore.locale.toLowerCase() + "/search?utf8=%E2%9C%93&query=" + encodeURIComponent(arg0) + "&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) {
return "https://support-apps.discord.com" + "/hc/" + LocaleStore.locale.toLowerCase() + "/articles/" + APPS_LEARN_MORE;
2026-07-20 16:05:17 +00:00
}
};
export const SUPPORT_LOCATION = combined;