Files
discord-decomp/_bundle/Module6338.js
T
2026-11-01 12:12:55 +02:00

58 lines
1.4 KiB
JavaScript

// Metro module 6338 (f6339).
import { NativeModules } from "react-native";
function $mk114944($env) {
return (a0) => {
const r3 = $env;
if (r3[1]) {
let originalPrice = a0.originalPrice;
a0.currency = r3[1];
a0.price = originalPrice == null ? "0.0" : originalPrice;
if (originalPrice == null) {
originalPrice = "0.0";
}
a0.localizedPrice = originalPrice;
}
};
}
let env4033 = {};
const RNIapAmazonModule = NativeModules.RNIapAmazonModule;
let c4034_0 = async (c25813_0) => {
let r60;
let c25813_1, c25813_2;
L13: {
let env29744;
const r9 = env29744 = {};
c25813_2 = r9;
env29744[0] = c25813_0;
env29744[1] = void 0;
if (RNIapAmazonModule) {
const r10 = {};
c25813_1 = r10;
r10.CA = "CAD";
r10.ES = "EUR";
r10.AU = "AUD";
r10.DE = "EUR";
r10.IN = "INR";
r10.US = "USD";
r10.JP = "JPY";
r10.GB = "GBP";
r10.IT = "EUR";
r10.BR = "BRL";
r10.FR = "EUR";
const user = await RNIapAmazonModule.getUser();
const r51 = c25813_1;
const r52 = c25813_2;
env29744[1] = r51[user.userMarketplaceAmazon];
env29744[0].forEach($mk114944(r52));
r60 = env29744[0];
break L13;
}
return env29744[0];
}
return r60;
};
export function fillProductsWithAdditionalData(a0) {
const apply = c4034_0.apply;
return c4034_0.apply(this, arguments);
}