decord/beta/source/utils/HelpdeskUtils.tsx
github-actions 19e52f659f chore: update source for beta 347.11
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4973.js (118.4 MB)
2026-09-26 17:57:22 +00:00

61 lines
2.3 KiB
TypeScript

// Module ID: 2108
// Function ID: 2109
// Name: HelpdeskUtils
// Dependencies: [2109, 1074, 4410, 1364, 2]
// Module 2108 (HelpdeskUtils)
import PlatformUtils from "PlatformUtils" /* 1364 */;
import getLocalizedLinkDefault from "getLocalizedLink" /* 4410 */;
import LocaleStore from "LocaleStore" /* 2109 */;
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;