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

@@ -0,0 +1,73 @@
/* Metro module 12169; source: modules/premium/promotions/PromotionStringUtils.tsx; dependencies: [3807, 1880, 566, 3802, 5137, 1244, 1948, 2] */
function _fun93266(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#93266, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12355:6, offset: 0x020ad048, size: 163 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const subscriptionPlanStore = importDefault(3807) /* metro dependency 3807: SubscriptionPlanStore */;
const premiumConstantsModule = require(1880) /* metro dependency 1880: PremiumConstants */;
const env0_4 = premiumConstantsModule.PremiumSubscriptionSKUs;
const env0_5 = premiumConstantsModule.SubscriptionPlans;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/promotions/PromotionStringUtils.tsx');
exports.useFormatStringWithCommonPremiumParams = useFormatStringWithCommonPremiumParams;
exports.getHelpArticleLinkProps = getHelpArticleLinkProps;
}
function useFormatStringWithCommonPremiumParams(a0) { // fn#93267, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12355:292, offset: 0x020ad0eb, size: 211 bytes, params: 2, frame: 17
var r0;
var property;
var defaultImport;
var getDefaultPrice;
var PREMIUM_MONTH_TIER_2;
var value5;
var moduleValue2;
var formatPrice;
var amount;
var currency;
var value6;
var error;
const value = '...';
const moduleValue = require(dependencyMap[2]);
const useStateFromStores = moduleValue.useStateFromStores;
if (a0.indexOf('{price}') === -1) {
r0 = value;
} else if (Reflect.apply(useStateFromStores, moduleValue, [[SubscriptionPlanStore], function() {
return SubscriptionPlanStore.isLoadedForSKU(PremiumSubscriptionSKUs.TIER_2);
}])) {
try {
property = dependencyMap[3];
defaultImport = importDefault(property);
getDefaultPrice = defaultImport.getDefaultPrice;
PREMIUM_MONTH_TIER_2 = SubscriptionPlans.PREMIUM_MONTH_TIER_2;
value5 = Reflect.apply(getDefaultPrice, defaultImport, [PREMIUM_MONTH_TIER_2]);
property = dependencyMap[4];
moduleValue2 = require(property);
formatPrice = moduleValue2.formatPrice;
amount = value5.amount;
currency = value5.currency;
value6 = Reflect.apply(formatPrice, moduleValue2, [amount, currency]);
r0 = value6;
} catch (error) {
r0 = value;
}
} else {
r0 = value;
}
return a0.replace(RegExp('\\{price\\}', 'g'), r0);
}
function getHelpArticleLinkProps(a0, a1) { // fn#93269, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:12355:625, offset: 0x020ad1dc, size: 209 bytes, params: 3, frame: 17
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const t = (require(1244) /* metro dependency 1244: indexNative */).t;
const value = a1;
const value2 = undefined;
const r5 = (a0 == null ? value2 : a0.id) == null || a0.id === '' ? value : a0.id;
if (r5 === '') {
return null;
}
const r2 = (a0 == null ? value2 : a0.linkText) == null ? intl.string(t['sBp+u0']) : a0.linkText !== '' ? a0.linkText : intl.string(t['sBp+u0']);
const object2 = {};
object2.url = (importDefault(1948) /* metro dependency 1948: HelpdeskUtils */).getArticleURL(r5);
object2.linkText = r2;
return object2;
}