Files
2026-07-28 01:06:53 +03:00

85 lines
4.9 KiB
TypeScript

/* Metro module 1948; source: utils/HelpdeskUtils.tsx; dependencies: [1949, 661, 3768, 477, 2] */
import LocaleStore from '../modules/user_settings/LocaleStore.tsx'; /* Metro dependency 1949 */
import * as FileImportTrackerModule from '../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as PlatformUtilsModule from './PlatformUtils.tsx'; /* Metro dependency 477 */
import * as ConstantsModule from '../Constants.tsx'; /* Metro dependency 661 */
function _fun21706(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#21706, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2075:6, offset: 0x00ef7c36, size: 319 bytes, params: 8, frame: 20
const env0_0 = require;
const getLocale = function() {
return LocaleStore.locale.toLowerCase();
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = ConstantsModule;
const env0_4 = value.LocalizedLinks;
const SUPPORT_DOMAIN = value.SUPPORT_DOMAIN;
const SUPPORT_DEV_DOMAIN = value.SUPPORT_DEV_DOMAIN;
value = 'https://' + SUPPORT_DOMAIN;
const env0_6 = 'https://' + SUPPORT_DEV_DOMAIN;
object = {getArticleURL: getArticleURL, getDevArticleURL: getDevArticleURL,
getCreatorSupportArticleURL: getCreatorSupportArticleURL, getTwitterURL: function() {
return importDefault(dependencyMap[2])(LocalizedLinks.TWITTER);
}, getCommunityURL: getCommunityURL, getSubmitRequestURL: getSubmitRequestURL, getSearchURL: function(a0) {
return wrapURL('/hc/' + getLocale() + '/search?utf8=%E2%9C%93&query=' + (0,
global.encodeURIComponent)(a0) + '&commit=Search');
}, getFeaturedArticlesJsonURL: function() {
return wrapURL('/api/v2/help_center/en-us/articles.json?label_names=featured');
}, getAppsSupportURL: getAppsSupportURL};
(FileImportTrackerModule).fileFinishedImporting('utils/HelpdeskUtils.tsx');
exports.default = object;
exports.SUPPORT_LOCATION = value;
function wrapURL(a0) { // fn#21707, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2075:211, offset: 0x00ef7d75, size: 25 bytes, params: 2, frame: 2
const value = a1;
return (value !== undefined ? value : env0_5) + a0;
}
function getArticleURL(a0) { // fn#21709, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2075:318, offset: 0x00ef7da7, size: 59 bytes, params: 2, frame: 17
return wrapURL('/hc/' + getLocale() + '/articles/' + a0);
}
function getDevArticleURL(a0) { // fn#21710, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2075:382, offset: 0x00ef7de2, size: 64 bytes, params: 2, frame: 18
return wrapURL('/hc/' + getLocale() + '/articles/' + a0, env0_6);
}
function getCreatorSupportArticleURL(a0) { // fn#21711, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2075:459, offset: 0x00ef7e22, size: 66 bytes, params: 2, frame: 17
const wrapURLBinding = wrapURL;
let value = getLocale();
value = '/hc/' + value + '/articles/' + a0;
return wrapURLBinding(value, 'https://creator-support.discord.com');
}
function getCommunityURL() { // fn#21713, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2075:597, offset: 0x00ef7e8e, size: 48 bytes, params: 1, frame: 13
return wrapURL('/hc/' + getLocale());
}
function getSubmitRequestURL(a0) { // fn#21714, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2075:631, offset: 0x00ef7ebe, size: 146 bytes, params: 2, frame: 19
var r0;
var value;
const wrapURLBinding = wrapURL;
const locale = getLocale();
const encodeURIComponent = global.encodeURIComponent;
const getPlatformName = (PlatformUtilsModule).getPlatformName;
value = encodeURIComponent(Reflect.apply(getPlatformName, value, []));
value = wrapURLBinding('/hc/' + locale + '/requests/new?platform=' + value);
if (a0 == null) {
r0 = value;
} else {
value += '&device_info=' + global.encodeURIComponent(a0);
r0 = value;
}
return r0;
}
function getAppsSupportURL(a0) { // fn#21717, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:2075:1075, offset: 0x00ef7faf, size: 66 bytes, params: 2, frame: 17
const wrapURLBinding = wrapURL;
let value = getLocale();
value = '/hc/' + value + '/articles/' + a0;
return wrapURLBinding(value, 'https://support-apps.discord.com');
}
}
global.__d(_fun21706, 1948, [1949, 661, 3768, 477,
2]) /* metro module 1948, dependencies: [1949, 661, 3768, 477, 2] */;