Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

+79
View File
@@ -0,0 +1,79 @@
/* Metro module 1948; source: utils/HelpdeskUtils.tsx; dependencies: [1949, 661, 3768, 477, 2] */
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
var object2;
const env0_0 = require;
const getLocale = function() {
return LocaleStore.locale.toLowerCase();
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const localeStore = importDefault(1949) /* metro dependency 1949: LocaleStore */;
let value = require(661) /* metro dependency 661: Constants */;
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;
object2 = {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};
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/HelpdeskUtils.tsx');
exports.default = object2;
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 = (require(477) /* metro dependency 477: PlatformUtils */).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');
}