decord/beta/source/utils/HelpdeskUtils.tsx
github-actions 9b6fea255e chore: update source for beta 346.12
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-18 19:45:33 +00:00

61 lines
2.3 KiB
TypeScript

// Module ID: 2024
// Function ID: 2025
// Name: HelpdeskUtils
// Dependencies: [2025, 1074, 4258, 1363, 2]
// Module 2024 (HelpdeskUtils)
import PlatformUtils from "PlatformUtils" /* 1363 */;
import getLocalizedLinkDefault from "getLocalizedLink" /* 4258 */;
import LocaleStore from "LocaleStore" /* 2025 */;
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");
export default {
getArticleURL(REFERRAL_PROGRAM) {
return combined + "/hc/" + LocaleStore.locale.toLowerCase() + "/articles/" + REFERRAL_PROGRAM;
},
getDevArticleURL(arg0) {
let tmp2 = closure_6;
combined = "/hc/" + LocaleStore.locale.toLowerCase() + "/articles/" + arg0;
if (closure_6 === undefined) {
tmp2 = combined;
}
return tmp2 + combined;
},
getCreatorSupportArticleURL(MEDIA_CHANNEL) {
return "https://creator-support.discord.com" + "/hc/" + LocaleStore.locale.toLowerCase() + "/articles/" + MEDIA_CHANNEL;
},
getTwitterURL() {
return getLocalizedLinkDefault(LocalizedLinks.TWITTER);
},
getCommunityURL() {
return combined + "/hc/" + LocaleStore.locale.toLowerCase();
},
getSubmitRequestURL(arg0) {
const formatted = LocaleStore.locale.toLowerCase();
const sum = combined + "/hc/" + formatted + "/requests/new?platform=" + encodeURIComponent(PlatformUtils.getPlatformName());
let sum1 = sum;
if (null != arg0) {
const _encodeURIComponent = encodeURIComponent;
const _HermesInternal = HermesInternal;
sum1 = sum + "&device_info=" + encodeURIComponent(arg0);
}
return sum1;
},
getSearchURL(arg0) {
return combined + "/hc/" + LocaleStore.locale.toLowerCase() + "/search?utf8=%E2%9C%93&query=" + encodeURIComponent(arg0) + "&commit=Search";
},
getFeaturedArticlesJsonURL() {
return combined + "/api/v2/help_center/en-us/articles.json?label_names=featured";
},
getAppsSupportURL(APPS_LEARN_MORE) {
return "https://support-apps.discord.com" + "/hc/" + LocaleStore.locale.toLowerCase() + "/articles/" + APPS_LEARN_MORE;
}
};
export const SUPPORT_LOCATION = combined;