45 lines
3.1 KiB
TypeScript
45 lines
3.1 KiB
TypeScript
/* Metro module 6836; source: modules/virtual_currency/checkout/OrbCheckoutUtils.tsx; dependencies: [661, 663, 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 CollectiblesShopConstantsModule from '../../collectibles/CollectiblesShopConstants.tsx'; /* Metro dependency 663 */
|
|
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
|
|
|
|
function _fun53836(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#53836, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7014:6, offset: 0x01356d46, size: 168 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/virtual_currency/checkout/OrbCheckoutUtils.tsx');
|
|
exports.getOrbPriceFromPrices = getOrbPriceFromPrices;
|
|
exports.getOrbCheckoutDisclaimerMessage = getOrbCheckoutDisclaimerMessage;
|
|
function getOrbPriceFromPrices(a0, a1) { // fn#53837, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7014:325, offset: 0x01356dee, size: 162 bytes, params: 3, frame: 15
|
|
const r1 = a1 && a0[PriceSetAssignmentPurchaseTypes.PREMIUM_TIER_2] != null ? a0[PriceSetAssignmentPurchaseTypes.PREMIUM_TIER_2] : a0[PriceSetAssignmentPurchaseTypes.DEFAULT];
|
|
const value = null;
|
|
let r3 = value == r1 || value == r1.countryPrices || value == r1.countryPrices.prices ? undefined : r1.countryPrices.prices.slice(0,
|
|
2);
|
|
r3 = value == r3 ? [] : r3;
|
|
const value4 = r3.find(function({currency}) {
|
|
return currency === CurrencyCodes.DISCORD_ORB;
|
|
});
|
|
return value != value4 ? value4 : value;
|
|
}
|
|
|
|
function getOrbCheckoutDisclaimerMessage(a0) { // fn#53839, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7014:596, offset: 0x01356eac, size: 351 bytes, params: 2, frame: 22
|
|
const intl = (IndexNativeModule).intl;
|
|
const format = intl.format;
|
|
const t = (IndexNativeModule).t;
|
|
const property = t['5qdUrO'];
|
|
const intl2 = (IndexNativeModule).intl;
|
|
const PAID_TERMS = MarketingURLs.PAID_TERMS;
|
|
const PAID_TERMS_VIRTUAL_GOODS = MarketingURLs.PAID_TERMS_VIRTUAL_GOODS;
|
|
const value2 = Reflect.apply(format, intl, [property, {buyButtonLabel: intl2.string(t['zLch/S']),
|
|
paidServiceTermURL: PAID_TERMS, virtualGoodsURL: PAID_TERMS_VIRTUAL_GOODS}]);
|
|
const value3 = intl.string(t['Sxed/G']);
|
|
const ORB_PROFILE_BADGE = EXTERNAL_PRODUCT_SKU_IDS.ORB_PROFILE_BADGE;
|
|
return [value2, ' ',
|
|
a0 === ORB_PROFILE_BADGE ? intl.string(t.APcKRo) : a0 !== EXTERNAL_PRODUCT_SKU_IDS.FRACTIONAL_PREMIUM ? value3 : intl.string(t.FhJ74j)];
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun53836, 6836, [661, 663, 1244, 2]) /* metro module 6836, dependencies: [661, 663, 1244, 2] */;
|