Files
discord-decomp/sources/modules/oauth2/Utils.tsx
T
2026-07-28 01:06:53 +03:00

51 lines
3.5 KiB
TypeScript

/* Metro module 9408; source: modules/oauth2/Utils.tsx; dependencies: [661, 9393, 1244, 2] */
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as UseIsSocialLayerParentApplicationModule from '../applications/useIsSocialLayerParentApplication.tsx'; /* Metro dependency 9393 */
function _fun73321(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#73321, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9594:6, offset: 0x01d6850b, size: 117 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(FileImportTrackerModule).fileFinishedImporting('modules/oauth2/Utils.tsx');
exports.getApplicationDetailsText = getApplicationDetailsText;
function getApplicationDetailsText(a0) { // fn#73322, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9594:206, offset: 0x01d68580, size: 559 bytes, params: 2, frame: 18
const t = (IndexNativeModule).t;
const intl = (IndexNativeModule).intl;
const isSocialLayerParentApplication = (UseIsSocialLayerParentApplicationModule).getIsSocialLayerParentApplication(a0);
if (a0.privacy_policy_url == null) {
if (a0.privacy_policy_url != null) {
return intl.format(isSocialLayerParentApplication ? t.pYVSah : t.TBvmM2, {application: a0.name,
privacyPolicyURL: a0.privacy_policy_url, discordPrivacyPolicyURL: MarketingURLs.PRIVACY});
}
if (a0.terms_of_service_url != null) {
return intl.format(isSocialLayerParentApplication ? t.nBLOp5 : t['q0T/Q1'], {application: a0.name,
termsOfServiceURL: a0.terms_of_service_url, discordPrivacyPolicyURL: MarketingURLs.PRIVACY});
}
return intl.format(isSocialLayerParentApplication ? t['8LemYv'] : t['3Ywek3'], {application: a0.name,
discordPrivacyPolicyURL: MarketingURLs.PRIVACY});
}
if (a0.terms_of_service_url != null) {
return intl.format(isSocialLayerParentApplication ? t.yVfotv : t.rxlyKL, {application: a0.name,
privacyPolicyURL: a0.privacy_policy_url, termsOfServiceURL: a0.terms_of_service_url,
discordPrivacyPolicyURL: MarketingURLs.PRIVACY});
}
if (a0.privacy_policy_url != null) {
return intl.format(isSocialLayerParentApplication ? t.pYVSah : t.TBvmM2, {application: a0.name,
privacyPolicyURL: a0.privacy_policy_url, discordPrivacyPolicyURL: MarketingURLs.PRIVACY});
}
if (a0.terms_of_service_url != null) {
return intl.format(isSocialLayerParentApplication ? t.nBLOp5 : t['q0T/Q1'], {application: a0.name,
termsOfServiceURL: a0.terms_of_service_url, discordPrivacyPolicyURL: MarketingURLs.PRIVACY});
}
const r7 = isSocialLayerParentApplication ? t['8LemYv'] : t['3Ywek3'];
const format = intl.format;
const PRIVACY = MarketingURLs.PRIVACY;
return Reflect.apply(format, intl, [r7, {application: a0.name, discordPrivacyPolicyURL: PRIVACY}]);
}
}
global.__d(_fun73321, 9408, [661, 9393, 1244, 2]) /* metro module 9408, dependencies: [661, 9393, 1244, 2] */;