This commit is contained in:
janisslsm committed 2026-07-28 01:06:53 +03:00
1 parent af3b49f756
commit 1781d25a15
22448 files changed
+2731829 -2650550

No files matched your search

@@ -1,17 +1,21 @@
/* Metro module 7334; source: modules/billing/native/ACOMExperiments.tsx; dependencies: [1854, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ApexModule from '../../experiments/apex/index.tsx'; /* Metro dependency 1854 */
function _fun59040(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59040, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7512:6, offset: 0x016df8fe, size: 283 bytes, params: 8, frame: 24
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(1854) /* metro dependency 1854: apex */;
let value = ApexModule;
value = value.createApexExperiment({'name': '2026-03-nitro-acom-subscription', 'kind': 'user',
defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
const apexExperiment = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'name': '2026-03-acom-modify-dark-launch',
const apexExperiment = (ApexModule).createApexExperiment({'name': '2026-03-acom-modify-dark-launch',
'kind': 'user', defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
const apexExperiment2 = (require(1854) /* metro dependency 1854: apex */).createApexExperiment({'name': '2026-06-otp-acom-order',
const apexExperiment2 = (ApexModule).createApexExperiment({'name': '2026-06-otp-acom-order',
'kind': 'user', defaultConfig: {enabled: false}, variations: {[1]: {enabled: true}}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/billing/native/ACOMExperiments.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/billing/native/ACOMExperiments.tsx');
exports.NitroACOMSubscriptionExperiment = value;
exports.ACOMModifyDarkLaunchExperiment = apexExperiment;
exports.OTPACOMOrderExperiment = apexExperiment2;
}
global.__d(_fun59040, 7334, [1854, 2]) /* metro module 7334, dependencies: [1854, 2] */;
@@ -1,20 +1,26 @@
/* Metro module 7361; source: modules/billing/native/BlockedPaymentsCountryActionSheet.tsx; dependencies: [31, 33, 6275, 7327, 2] */
import BlockedPaymentsCountryDisplay from './BlockedPaymentsCountryDisplay.tsx'; /* Metro dependency 7327 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as BottomSheetNativeModule from '../../../design/components/Sheet/native/BottomSheet.native.tsx'; /* Metro dependency 6275 */
function _fun59316(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59316, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7539:6, offset: 0x016e58b8, size: 136 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/billing/native/BlockedPaymentsCountryActionSheet.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/billing/native/BlockedPaymentsCountryActionSheet.tsx');
exports.default = BlockedPaymentsCountryActionSheet;
function BlockedPaymentsCountryActionSheet() { // fn#59317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7539:222, offset: 0x016e5940, size: 73 bytes, params: 1, frame: 16
const BottomSheet = (BottomSheetNativeModule).BottomSheet;
return (
<BottomSheet>
{((Component) => <Component />)(BlockedPaymentsCountryDisplay)}
</BottomSheet>
);
}
}
function BlockedPaymentsCountryActionSheet() { // fn#59317, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7539:222, offset: 0x016e5940, size: 73 bytes, params: 1, frame: 16
const BottomSheet = (require(6275) /* metro dependency 6275: BottomSheetNative */).BottomSheet;
return (
<BottomSheet>
{((Component) => <Component />)(importDefault(7327) /* metro dependency 7327: BlockedPaymentsCountryDisplay */)}
</BottomSheet>
);
}
global.__d(_fun59316, 7361, [31, 33, 6275, 7327, 2]) /* metro module 7361, dependencies: [31, 33, 6275, 7327, 2] */;
@@ -1,43 +1,67 @@
/* Metro module 7327; source: modules/billing/native/BlockedPaymentsCountryDisplay.tsx; dependencies: [31, 27, 661, 33, 4501, 697, 4048, 1305, 1244, 1948, 4002, 7328, 7329, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import HelpdeskUtils from '../../../utils/HelpdeskUtils.tsx'; /* Metro dependency 1948 */
import UseTheme from '../../../hooks/useTheme.tsx'; /* Metro dependency 4048 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
function _fun59024(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59024, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7505:6, offset: 0x016de838, size: 301 bytes, params: 8, frame: 21
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
let value = require(27) /* metro dependency 27 */;
ReactModule;
let value = ReactNativeModule;
const env0_3 = value.View;
const env0_4 = value.Image;
const env0_5 = (require(661) /* metro dependency 661: Constants */).HelpdeskArticles;
value = require(33) /* metro dependency 33 */;
const env0_6 = value.jsx;
const env0_7 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const TEXT_SUBTLE = (importDefault(697) /* metro dependency 697: native */).colors.TEXT_SUBTLE;
const TEXT_SUBTLE = (Native).colors.TEXT_SUBTLE;
const env0_8 = Reflect.apply(createStyles, value, [{container: {alignItems: 'center'}, header: {'fontSize': 20,
'fontWeight': '700', 'color': null, 'marginBottom': 16, color: TEXT_SUBTLE}, image: {marginTop: 38}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/billing/native/BlockedPaymentsCountryDisplay.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/billing/native/BlockedPaymentsCountryDisplay.tsx');
exports.default = BlockedPaymentsCountryDisplay;
function BlockedPaymentsCountryDisplay() { // fn#59025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7505:454, offset: 0x016de965, size: 380 bytes, params: 1, frame: 29
const styles = useStyles();
const value2 = (UseTheme)();
const LegacyText = (NativeModule).LegacyText;
const intl = (IndexNativeModule).intl;
const items2 = [
<LegacyText style={styles.header}>
{intl.string((IndexNativeModule).t.vwMEHS)}
</LegacyText>,
];
const format = intl.format;
const IHxEJU = (IndexNativeModule).t.IHxEJU;
const defaultImport = HelpdeskUtils;
const getArticleURL = defaultImport.getArticleURL;
const BLOCKED_PAYMENTS = HelpdeskArticles.BLOCKED_PAYMENTS;
items2[1] = (
<LegacyText>
{Reflect.apply(format, intl, [IHxEJU, {helpdeskArticle: Reflect.apply(getArticleURL, defaultImport,
[BLOCKED_PAYMENTS])}])}
</LegacyText>
);
items2[2] = (
<Image
style={styles.image}
source={(require(4002) /* metro dependency 4002: shared */).isThemeDark(value2) ? importDefault(7328) /* metro dependency 7328 */ : importDefault(7329) /* metro dependency 7329 */}
/>
);
return (
<View style={styles.container}>
{items2}
</View>
);
}
}
function BlockedPaymentsCountryDisplay() { // fn#59025, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7505:454, offset: 0x016de965, size: 380 bytes, params: 1, frame: 29
const styles = useStyles();
const value2 = (importDefault(4048) /* metro dependency 4048: useTheme */)();
const LegacyText = (require(1305) /* metro dependency 1305: native */).LegacyText;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const items2 = [<LegacyText style={styles.header}>{intl.string((require(1244) /* metro dependency 1244: indexNative */).t.vwMEHS)}</LegacyText>];
const format = intl.format;
const IHxEJU = (require(1244) /* metro dependency 1244: indexNative */).t.IHxEJU;
const defaultImport = importDefault(1948) /* metro dependency 1948: HelpdeskUtils */;
const getArticleURL = defaultImport.getArticleURL;
const BLOCKED_PAYMENTS = HelpdeskArticles.BLOCKED_PAYMENTS;
items2[1] = <LegacyText>{Reflect.apply(format, intl, [IHxEJU, {helpdeskArticle: Reflect.apply(getArticleURL,
defaultImport, [BLOCKED_PAYMENTS])}])}</LegacyText>;
items2[2] = <Image style={styles.image} source={(require(4002) /* metro dependency 4002: shared */).isThemeDark(value2) ? importDefault(7328) /* metro dependency 7328 */ : importDefault(7329) /* metro dependency 7329 */} />;
return (
<View style={styles.container}>
{items2}
</View>
);
}
global.__d(_fun59024, 7327, [31, 27, 661, 33, 4501, 697, 4048, 1305, 1244, 1948, 4002, 7328, 7329,
2]) /* metro module 7327, dependencies: [31, 27, 661, 33, 4501, 697, 4048, 1305, 1244, 1948, 4002, 7328, 7329, 2] */;
@@ -1,14 +1,17 @@
/* Metro module 5142; source: modules/billing/native/GenericIAPStore.tsx; dependencies: [6, 7, 15, 17, 18, 22, 5143, 566, 694, 2] */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import PossibleConstructorReturn from '../../../by-id/module-00015-PossibleConstructorReturn.js'; /* Metro dependency 15 */
import Module00017 from '../../../by-id/module-00017.js'; /* Metro dependency 17 */
import Inherits from '../../../by-id/module-00018-Inherits.js'; /* Metro dependency 18 */
import Flux from '../../../external/discord_common/js/packages/flux/index.tsx'; /* Metro dependency 566 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun45368(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#45368, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5320:6, offset: 0x0118cbbf, size: 337 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const env0_5 = importDefault(15) /* metro dependency 15 */;
const env0_6 = importDefault(17) /* metro dependency 17 */;
const env0_7 = importDefault(18) /* metro dependency 18 */;
const Store = (importDefault(566) /* metro dependency 566: flux */).Store;
const Store = (Flux).Store;
let value = _fun45372(Store);
value.displayName = 'GenericIAPStore';
value = new value(importDefault(694) /* metro dependency 694: Dispatcher */,
@@ -24,62 +27,84 @@ function _fun45368(global, require, importDefault, importAll, module, exports, d
}, GENERIC_IAP_SET_STORE_FRONT: function(a0) {
env0_10 = a0.storeFront;
}});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/billing/native/GenericIAPStore.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/billing/native/GenericIAPStore.tsx');
exports.default = value;
}
function _isNativeReflectConstruct_45369() { // fn#45369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5320:148, offset: 0x0118cd10, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
function _isNativeReflectConstruct_45369() { // fn#45369, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5320:148, offset: 0x0118cd10, size: 94 bytes, params: 1, frame: 18
var Boolean;
var prototype;
var valueOf;
var call;
var Reflect;
var construct;
var closure;
var value;
var error;
try {
Boolean = global.Boolean;
prototype = Boolean.prototype;
valueOf = prototype.valueOf;
call = valueOf.call;
Reflect = global.Reflect;
construct = Reflect.construct;
Boolean = global.Boolean;
closure = function() {
};
value = Reflect.apply(construct, Reflect, [Boolean, [], closure]);
value = Reflect.apply(call, valueOf, [value]);
var result = !value;
} catch (error) {
}
return (_isNativeReflectConstruct_45369_isNativeReflectConstruct = function() {
return !!result;
})();
}
return (_isNativeReflectConstruct_45369_isNativeReflectConstruct = function() {
return !!result;
})();
}
function _fun45372(a0) { // fn#45372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5320:370, offset: 0x0118cd6e, size: 143 bytes, params: 2, frame: 16
const closure = GenericIAPStore;
env0_7(closure, a0);
return env0_4(closure, [{key: 'isGenericIapConnected', value: value_45374}, {key: 'genericProductsLoaded',
value: value_45375}, {key: 'getProducts', value: value_45377}, {key: 'getStoreFront', value: value_45378}]);
}
function _fun45372(a0) { // fn#45372, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5320:370, offset: 0x0118cd6e, size: 143 bytes, params: 2, frame: 16
const GenericIAPStore2 = GenericIAPStore;
Inherits(GenericIAPStore2, a0);
return CreateClass(GenericIAPStore2, [{key: 'isGenericIapConnected', value: value_45374}, {key: 'genericProductsLoaded',
value: value_45375}, {key: 'getProducts', value: value_45377}, {key: 'getStoreFront', value: value_45378}]);
function GenericIAPStore() { // fn#45373, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5320:382, offset: 0x0102b796, size: 113 bytes, params: 1, frame: 20
const value = environment.__proto__;
env1_3(this, GenericIAPStore);
const value3 = env1_6(GenericIAPStore);
return env1_5(this, _isNativeReflectConstruct_45369() ? global.Reflect.construct(value3, arguments,
env1_6(this).constructor) : value3.apply(this, arguments));
}
function value_45374() { // fn#45374, offset: 0x00e07a77, size: 9 bytes, params: 1, frame: 1
return env1_9;
}
function value_45375() { // fn#45375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5320:743, offset: 0x0118cdfd, size: 98 bytes, params: 1, frame: 17
var environment;
var r0;
var defaultImport;
const value = environment.__proto__;
const value2 = env1_8 != null;
if (value2) {
defaultImport = importDefault(22) /* metro dependency 22 */;
r0 = defaultImport.filter(env1_8, function(a0) {
var GenericProductIds = require(dependencyMap[6]).GenericProductIds;
return GenericProductIds.includes(a0.identifier);
}).length === (require(5143) /* metro dependency 5143: ProductIdsAndroid */).GenericProductIds.length;
} else {
r0 = value2;
}
return r0;
}
function value_45377() { // fn#45377, offset: 0x00fbd9d4, size: 9 bytes, params: 1, frame: 1
return env1_8;
}
function value_45378() { // fn#45378, offset: 0x00fbd9ec, size: 9 bytes, params: 1, frame: 1
return env1_10;
}
function value_45375() { // fn#45375, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5320:743, offset: 0x0118cdfd, size: 98 bytes, params: 1, frame: 17
var environment;
var r0;
var defaultImport;
const value = environment.__proto__;
const value2 = env1_8 != null;
if (value2) {
defaultImport = importDefault(22) /* metro dependency 22 */;
r0 = defaultImport.filter(env1_8, function(a0) {
var GenericProductIds = require(dependencyMap[6]).GenericProductIds;
return GenericProductIds.includes(a0.identifier);
}).length === (require(5143) /* metro dependency 5143: ProductIdsAndroid */).GenericProductIds.length;
} else {
r0 = value2;
}
return r0;
}
global.__d(_fun45368, 5142, [6, 7, 15, 17, 18, 22, 5143, 566, 694,
2]) /* metro module 5142, dependencies: [6, 7, 15, 17, 18, 22, 5143, 566, 694, 2] */;
@@ -1,39 +1,56 @@
/* Metro module 7333; source: modules/billing/native/PaymentFlowWarningMessage.tsx; dependencies: [31, 27, 33, 4501, 697, 6235, 1305, 4573, 2] */
import Native from '../../../external/discord_common/js/packages/tokens/native.tsx'; /* Metro dependency 697 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as NativeModule from '../../../design/void/native.tsx'; /* Metro dependency 1305 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as LegacyTokensModule from '../../../design/migrations/native/LegacyTokens.tsx'; /* Metro dependency 6235 */
function _fun59038(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59038, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7511:6, offset: 0x016df715, size: 288 bytes, params: 8, frame: 24
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
let value = require(33) /* metro dependency 33 */;
ReactModule;
let value = JsxRuntimeModule;
const env0_4 = value.jsx;
const env0_5 = value.jsxs;
value = require(4501) /* metro dependency 4501: createStyles */;
const createStyles = value.createStyles;
const object = {'padding': 10, 'marginVertical': 5, 'borderRadius': null, 'display': 'flex', 'flexDirection': 'row',
'alignItems': 'center'};
object.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
const DARK_PRIMARY_630_LIGHT_PRIMARY_230 = (require(6235) /* metro dependency 6235: LegacyTokens */).DARK_PRIMARY_630_LIGHT_PRIMARY_230;
object.backgroundColor = DARK_PRIMARY_630_LIGHT_PRIMARY_230;
const env0_6 = Reflect.apply(createStyles, value, [{container: object, icon: {marginRight: 10},
const object2 = {'padding': 10, 'marginVertical': 5, 'borderRadius': null, 'display': 'flex',
'flexDirection': 'row', 'alignItems': 'center'};
object2.borderRadius = (importDefault(697) /* metro dependency 697: native */).radii.xs;
const DARK_PRIMARY_630_LIGHT_PRIMARY_230 = (LegacyTokensModule).DARK_PRIMARY_630_LIGHT_PRIMARY_230;
object2.backgroundColor = DARK_PRIMARY_630_LIGHT_PRIMARY_230;
const env0_6 = Reflect.apply(createStyles, value, [{container: object2, icon: {marginRight: 10},
text: {flexShrink: 1}}]);
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/billing/native/PaymentFlowWarningMessage.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/billing/native/PaymentFlowWarningMessage.tsx');
exports.default = PaymentFlowWarningMessage;
function PaymentFlowWarningMessage(a0) { // fn#59039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7511:404, offset: 0x016df835, size: 201 bytes, params: 2, frame: 21
const styles = useStyles();
const WarningCircle = (NativeModule).WarningCircle;
const YELLOW_300 = (Native).unsafe_rawColors.YELLOW_300;
const warningCircle = (
<WarningCircle
style={styles.icon}
color={YELLOW_300}
width={16}
height={16}
/>
);
const Text = (TextModule).Text;
return (
<View style={styles.container}>
{warningCircle}
<Text variant="text-sm/medium" style={styles.text}>
{a0.message}
</Text>
</View>
);
}
}
function PaymentFlowWarningMessage(a0) { // fn#59039, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7511:404, offset: 0x016df835, size: 201 bytes, params: 2, frame: 21
const styles = useStyles();
const WarningCircle = (require(1305) /* metro dependency 1305: native */).WarningCircle;
const YELLOW_300 = (importDefault(697) /* metro dependency 697: native */).unsafe_rawColors.YELLOW_300;
const warningCircle = <WarningCircle style={styles.icon} color={YELLOW_300} width={16} height={16} />;
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
return (
<View style={styles.container}>
{warningCircle}
<Text variant="text-sm/medium" style={styles.text}>
{a0.message}
</Text>
</View>
);
}
global.__d(_fun59038, 7333, [31, 27, 33, 4501, 697, 6235, 1305, 4573,
2]) /* metro module 7333, dependencies: [31, 27, 33, 4501, 697, 6235, 1305, 4573, 2] */;
@@ -1,105 +1,430 @@
/* Metro module 7356; source: modules/billing/native/StorekitIAPQueue.tsx; dependencies: [5, 6, 7, 27, 3837, 5138, 7336, 2] */
import Module00005 from '../../../by-id/module-00005.js'; /* Metro dependency 5 */
import ClassCallCheck from '../../../by-id/module-00006-ClassCallCheck.js'; /* Metro dependency 6 */
import CreateClass from '../../../by-id/module-00007-CreateClass.js'; /* Metro dependency 7 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as CountryCodeUtilsModule from '../../i18n/CountryCodeUtils.tsx'; /* Metro dependency 3837 */
import * as PriceUtilsModule from '../../../external/discord_common/js/shared/utils/PriceUtils.tsx'; /* Metro dependency 5138 */
function _fun59285(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:6, offset: 0x016e4a4f, size: 236 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(5) /* metro dependency 5 */;
const env0_3 = importDefault(6) /* metro dependency 6 */;
const env0_4 = importDefault(7) /* metro dependency 7 */;
const NativeModules = (require(27) /* metro dependency 27 */).NativeModules;
const env0_5 = (require(3837) /* metro dependency 3837: CountryCodeUtils */).convertToAlpha2;
const NativeModules = (ReactNativeModule).NativeModules;
const env0_6 = NativeModules.RNIapIosSk2;
let value = _fun59289();
value = new value();
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/billing/native/StorekitIAPQueue.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/billing/native/StorekitIAPQueue.tsx');
exports.default = value;
}
function productSK2ToIAPProduct(a0) { // fn#59286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:194, offset: 0x016e4b3b, size: 334 bytes, params: 2, frame: 18
var object2;
const r1 = a0.subscription.promotionalOffers == null ? [] : a0.subscription.promotionalOffers.map(function(a0) {
return promoOfferToDiscount(a0);
});
if (a0.subscription.introductoryOffer != null) {
r1.push(promoOfferToDiscount(a0.subscription.introductoryOffer));
function productSK2ToIAPProduct(a0) { // fn#59286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:194, offset: 0x016e4b3b, size: 334 bytes, params: 2, frame: 18
const r1 = a0.subscription.promotionalOffers == null ? [] : a0.subscription.promotionalOffers.map(function(a0) {
return promoOfferToDiscount(a0);
});
if (a0.subscription.introductoryOffer != null) {
r1.push(promoOfferToDiscount(a0.subscription.introductoryOffer));
}
const Number = global.Number;
const price = a0.price;
const toFixed = price.toFixed;
const CurrencyExponents = (PriceUtilsModule).CurrencyExponents;
const currency = a0.currency;
const value = Number(Reflect.apply(toFixed, price, [CurrencyExponents[currency.toLowerCase()]]));
object = {};
let String = global.String;
object.identifier = String(a0.id);
object.price = value;
object.currencySymbol = a0.displayPrice.split(RegExp('[0-9]', ''))[0];
object.currencyCode = a0.currency.toLowerCase();
String = global.String;
object.priceString = String(value);
object.countryCode = '';
object.downloadable = false;
object.description = a0.description;
object.title = a0.displayName;
object.discounts = r1;
return object;
}
const Number = global.Number;
const price = a0.price;
const toFixed = price.toFixed;
const CurrencyExponents = (require(5138) /* metro dependency 5138: PriceUtils */).CurrencyExponents;
const currency = a0.currency;
const value = Number(Reflect.apply(toFixed, price, [CurrencyExponents[currency.toLowerCase()]]));
object2 = {};
let String = global.String;
object2.identifier = String(a0.id);
object2.price = value;
object2.currencySymbol = a0.displayPrice.split(RegExp('[0-9]', ''))[0];
object2.currencyCode = a0.currency.toLowerCase();
String = global.String;
object2.priceString = String(value);
object2.countryCode = '';
object2.downloadable = false;
object2.description = a0.description;
object2.title = a0.displayName;
object2.discounts = r1;
return object2;
function _fun59289() { // fn#59289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1166, offset: 0x016e4d38, size: 121 bytes, params: 1, frame: 17
const StorekitIAPQueueClass2 = StorekitIAPQueueClass;
let env0_0 = Module00005(_fun59304);
return CreateClass(StorekitIAPQueueClass2, [{key: 'fetchSubscriptions', value: function(a0) {
var env0_0 = this;
var env0_1 = a0;
var Promise = global.Promise;
var value2 = new Promise(_fun59292);
this.processQueue();
return value2;
}}, {key: 'fetchProducts', value: function(a0) {
var env0_0 = this;
var env0_1 = a0;
var Promise = global.Promise;
var value2 = new Promise(_fun59297);
this.processQueue();
return value2;
}}, {key: 'processQueue', value: value_59305}]);
function StorekitIAPQueueClass() { // fn#59290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1187, offset: 0x016e4db1, size: 45 bytes, params: 1, frame: 13
env1_3(this, StorekitIAPQueueClass);
this._queue = [];
this._processingQueue = false;
}
function value_59291(a0) { // fn#59291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1325, offset: 0x016e4dde, size: 61 bytes, params: 2, frame: 12
const env0_1 = a0;
const Promise = global.Promise;
const promise = new Promise(_fun59292);
this.processQueue();
return promise;
function _fun59292(a0, a1) { // fn#59292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1356, offset: 0x016e4e1b, size: 60 bytes, params: 3, frame: 13
const env0_0 = a0;
const env0_1 = a1;
const _queue = env0_0._queue;
_queue.push(env2_2(_fun59294));
function* _fun59294() { // fn#59294, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1384, offset: 0x016e4e60, size: 116 bytes, params: 1, frame: 13
var environment;
var binding;
var getItems;
var value4;
var value5;
var value6;
var filter;
var closure;
var value7;
var map;
var error;
if (true) {
value = environment.__proto__.__proto__.__proto__.__proto__;
try {
binding = env4_6;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
getItems = binding.getItems;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
value4 = Reflect.apply(getItems, binding, [StorekitIAPQueueClass]);
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
yield value4;
try {
value5 = undefined;
value6 = false;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
if (value6) {
return value5;
}
try {
filter = value5.filter;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
closure = function(a0) {
return a0.subscription != null;
};
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
value7 = Reflect.apply(filter, value5, [closure]);
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
map = value7.map;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
binding = env4_7;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
value = Reflect.apply(map, value7, [binding]);
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
binding = env1_0;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
binding(value);
} catch (error) {
value = environment.__proto__;
env1_1(error);
}
}
}
}
}
function value_59296(a0) { // fn#59296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1575, offset: 0x016e4ee5, size: 61 bytes, params: 2, frame: 12
const env0_1 = a0;
const Promise = global.Promise;
const promise = new Promise(_fun59297);
this.processQueue();
return promise;
function _fun59297(a0, a1) { // fn#59297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1606, offset: 0x016e4f22, size: 60 bytes, params: 3, frame: 13
const env0_0 = a0;
const env0_1 = a1;
const _queue = env0_0._queue;
_queue.push(env2_2(_fun59299));
function* _fun59299() { // fn#59299, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1634, offset: 0x016e4f67, size: 125 bytes, params: 1, frame: 14
var environment;
var binding;
var binding2;
var property;
var getProducts;
var object;
var then;
var closure;
var value4;
var error;
if (true) {
value = environment.__proto__.__proto__.__proto__.__proto__;
try {
binding = env4_0;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
binding2 = env4_1;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
property = binding2[6];
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
value = binding(property);
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
getProducts = value.getProducts;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
object = {};
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
object.skus = StorekitIAPQueueClass;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
value = Reflect.apply(getProducts, value, [object]);
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
then = value.then;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
closure = function(a0) {
return a0.filter(_fun59301).map(_fun59302);
};
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
value = Reflect.apply(then, value, [closure]);
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
yield value;
try {
value = undefined;
value4 = false;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
if (value4) {
return value;
}
try {
binding = env1_0;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
binding(value);
} catch (error) {
value = environment.__proto__;
env1_1(error);
}
}
function _fun59300(a0) { // fn#59300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1698, offset: 0x016e4fe4, size: 37 bytes, params: 2, frame: 12
return a0.filter(function(a0) {
return a0.type === 'iap';
}).map(_fun59302);
function _fun59302(a0) { // fn#59302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1736, offset: 0x016e501d, size: 252 bytes, params: 2, frame: 16
var r3;
var value2;
var binding;
var value3;
var error;
let value = '';
let countryCode = a0.countryCode;
if (countryCode == null) {
r3 = value;
} else {
countryCode = a0.countryCode;
if (countryCode.length === 0) {
r3 = value;
} else {
try {
value2 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env6_5;
countryCode = a0.countryCode;
value3 = binding(countryCode);
r3 = value3;
} catch (error) {
r3 = value;
}
}
}
const object = {};
object.identifier = a0.productId;
const parseFloat = global.parseFloat;
const price = a0.price;
value = undefined;
object.price = parseFloat(price);
const localizedPrice = a0.localizedPrice;
object.currencySymbol = localizedPrice == null ? value : localizedPrice.split(RegExp('[0-9]', ''))[0];
object.currencyCode = a0.currency.toLowerCase();
object.priceString = a0.price;
object.countryCode = r3;
object.downloadable = false;
object.description = a0.description;
object.title = a0.title;
object.discounts = 'discounts' in a0 ? a0.discounts : value;
return object;
}
}
}
}
}
function value_59305() { // fn#59305, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:2428, offset: 0x00c3945f, size: 30 bytes, params: 1, frame: 13
return env0_0.apply(this, arguments);
}
}
}
function promoOfferToDiscount(a0) { // fn#59288, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:772, offset: 0x016e4c89, size: 175 bytes, params: 2, frame: 12
const paymentMode = a0.paymentMode;
const r2 = paymentMode === 'freeTrial' ? 'FREETRIAL' : paymentMode === 'payAsYouGo' ? 'PAYASYOUGO' : paymentMode === 'payUpFront' ? 'PAYUPFRONT' : '';
const object2 = {};
object2.identifier = a0.id;
object2.type = 'SUBSCRIPTION';
object2.numberOfPeriods = a0.period.value.toString();
object2.price = a0.price.toString();
object2.localizedPrice = a0.displayPrice;
object2.paymentMode = r2;
object2.subscriptionPeriod = a0.period.unit.toUpperCase();
return object2;
const object = {};
object.identifier = a0.id;
object.type = 'SUBSCRIPTION';
object.numberOfPeriods = a0.period.value.toString();
object.price = a0.price.toString();
object.localizedPrice = a0.displayPrice;
object.paymentMode = r2;
object.subscriptionPeriod = a0.period.unit.toUpperCase();
return object;
}
function _fun59289() { // fn#59289, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1166, offset: 0x016e4d38, size: 121 bytes, params: 1, frame: 17
const binding = env0_4;
const closure = StorekitIAPQueueClass;
let env0_0 = env0_2(_fun59304);
return binding(closure, [{key: 'fetchSubscriptions', value: function(a0) {
var env0_0 = this;
var env0_1 = a0;
var Promise = global.Promise;
var value2 = new Promise(_fun59292);
this.processQueue();
return value2;
}}, {key: 'fetchProducts', value: function(a0) {
var env0_0 = this;
var env0_1 = a0;
var Promise = global.Promise;
var value2 = new Promise(_fun59297);
this.processQueue();
return value2;
}}, {key: 'processQueue', value: value_59305}]);
}
function StorekitIAPQueueClass() { // fn#59290, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1187, offset: 0x016e4db1, size: 45 bytes, params: 1, frame: 13
env1_3(this, StorekitIAPQueueClass);
this._queue = [];
this._processingQueue = false;
}
function value_59291(a0) { // fn#59291, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1325, offset: 0x016e4dde, size: 61 bytes, params: 2, frame: 12
const env0_1 = a0;
const Promise = global.Promise;
const promise = new Promise(_fun59292);
this.processQueue();
return promise;
}
function value_59296(a0) { // fn#59296, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1575, offset: 0x016e4ee5, size: 61 bytes, params: 2, frame: 12
const env0_1 = a0;
const Promise = global.Promise;
const promise = new Promise(_fun59297);
this.processQueue();
return promise;
function _fun59301({type}) { // fn#59301, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1711, offset: 0x016e5009, size: 20 bytes, params: 2, frame: 2
return type === 'iap';
}
function* _fun59304() { // fn#59304, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:2257, offset: 0x016e5122, size: 132 bytes, params: 1, frame: 13
@@ -200,318 +525,5 @@ function* _fun59304() { // fn#59304, original name: ?anon_0_, source: /ci/build/
}
}
function _fun59292(a0, a1) { // fn#59292, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1356, offset: 0x016e4e1b, size: 60 bytes, params: 3, frame: 13
const env0_0 = a0;
const env0_1 = a1;
const _queue = env0_0._queue;
_queue.push(env2_2(_fun59294));
}
function _fun59297(a0, a1) { // fn#59297, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1606, offset: 0x016e4f22, size: 60 bytes, params: 3, frame: 13
const env0_0 = a0;
const env0_1 = a1;
const _queue = env0_0._queue;
_queue.push(env2_2(_fun59299));
}
function* _fun59294() { // fn#59294, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1384, offset: 0x016e4e60, size: 116 bytes, params: 1, frame: 13
var environment;
var binding;
var getItems;
var value4;
var value5;
var value6;
var filter;
var closure;
var value7;
var map;
var error;
if (true) {
value = environment.__proto__.__proto__.__proto__.__proto__;
try {
binding = env4_6;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
getItems = binding.getItems;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
value4 = Reflect.apply(getItems, binding, [StorekitIAPQueueClass]);
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
yield value4;
try {
value5 = undefined;
value6 = false;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
if (value6) {
return value5;
}
try {
filter = value5.filter;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
closure = function(a0) {
return a0.subscription != null;
};
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
value7 = Reflect.apply(filter, value5, [closure]);
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
map = value7.map;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
binding = env4_7;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
value = Reflect.apply(map, value7, [binding]);
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
binding = env1_0;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
binding(value);
} catch (error) {
value = environment.__proto__;
env1_1(error);
}
}
}
function* _fun59299() { // fn#59299, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1634, offset: 0x016e4f67, size: 125 bytes, params: 1, frame: 14
var environment;
var binding;
var binding2;
var property;
var getProducts;
var object2;
var then;
var closure;
var value4;
var error;
if (true) {
value = environment.__proto__.__proto__.__proto__.__proto__;
try {
binding = env4_0;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
binding2 = env4_1;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
property = binding2[6];
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
value = binding(property);
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
getProducts = value.getProducts;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
object2 = {};
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
object2.skus = StorekitIAPQueueClass;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
value = Reflect.apply(getProducts, value, [object2]);
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
then = value.then;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
closure = function(a0) {
return a0.filter(_fun59301).map(_fun59302);
};
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
value = Reflect.apply(then, value, [closure]);
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
yield value;
try {
value = undefined;
value4 = false;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
if (value4) {
return value;
}
try {
binding = env1_0;
} catch (error) {
value = environment.__proto__;
env1_1(error);
return undefined;
}
try {
binding(value);
} catch (error) {
value = environment.__proto__;
env1_1(error);
}
}
}
function _fun59300(a0) { // fn#59300, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1698, offset: 0x016e4fe4, size: 37 bytes, params: 2, frame: 12
return a0.filter(function(a0) {
return a0.type === 'iap';
}).map(_fun59302);
}
function _fun59302(a0) { // fn#59302, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7534:1736, offset: 0x016e501d, size: 252 bytes, params: 2, frame: 16
var r3;
var value2;
var binding;
var value3;
var error;
let value = '';
let countryCode = a0.countryCode;
if (countryCode == null) {
r3 = value;
} else {
countryCode = a0.countryCode;
if (countryCode.length === 0) {
r3 = value;
} else {
try {
value2 = environment.__proto__.__proto__.__proto__.__proto__.__proto__.__proto__;
binding = env6_5;
countryCode = a0.countryCode;
value3 = binding(countryCode);
r3 = value3;
} catch (error) {
r3 = value;
}
}
}
const object2 = {};
object2.identifier = a0.productId;
const parseFloat = global.parseFloat;
const price = a0.price;
value = undefined;
object2.price = parseFloat(price);
const localizedPrice = a0.localizedPrice;
object2.currencySymbol = localizedPrice == null ? value : localizedPrice.split(RegExp('[0-9]', ''))[0];
object2.currencyCode = a0.currency.toLowerCase();
object2.priceString = a0.price;
object2.countryCode = r3;
object2.downloadable = false;
object2.description = a0.description;
object2.title = a0.title;
object2.discounts = 'discounts' in a0 ? a0.discounts : value;
return object2;
}
global.__d(_fun59285, 7356, [5, 6, 7, 27, 3837, 5138, 7336,
2]) /* metro module 7356, dependencies: [5, 6, 7, 27, 3837, 5138, 7336, 2] */;
@@ -1,42 +1,51 @@
/* Metro module 7636; source: modules/billing/native/UnsupportedFeatureModal.tsx; dependencies: [31, 27, 33, 5280, 5282, 5080, 4573, 1244, 2] */
import ModalActionCreators from '../../../actions/ModalActionCreators.tsx'; /* Metro dependency 5080 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
import * as IndexNativeModule from '../../../intl/index.native.tsx'; /* Metro dependency 1244 */
import * as TextModule from '../../../design/components/Text/native/Text.tsx'; /* Metro dependency 4573 */
import * as NavigatorNativeModule from '../../../design/components/Navigator/native/Navigator.native.tsx'; /* Metro dependency 5280 */
function _fun61154(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#61154, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7814:6, offset: 0x0171c108, size: 157 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const env0_3 = (require(27) /* metro dependency 27 */).View;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/billing/native/UnsupportedFeatureModal.tsx');
ReactModule;
(FileImportTrackerModule).fileFinishedImporting('modules/billing/native/UnsupportedFeatureModal.tsx');
exports.default = UnsupportedFeatureModal;
}
function UnsupportedFeatureModal({title, onDismiss}) { // fn#61155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7814:227, offset: 0x0171c1a5, size: 135 bytes, params: 2, frame: 19
const Navigator = (NavigatorNativeModule).Navigator;
const object2 = {title: title};
object2.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(_fun61156);
object2.render = render_61157;
return <Navigator initialRouteName="Unsupported" screens={{Unsupported: object2}} />;
function _fun61156() { // fn#61156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7814:413, offset: 0x0171c22c, size: 58 bytes, params: 1, frame: 12
const value = environment.__proto__;
(ModalActionCreators).pop();
if (onDismiss != null) {
onDismiss();
}
}
function UnsupportedFeatureModal({title, onDismiss}) { // fn#61155, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7814:227, offset: 0x0171c1a5, size: 135 bytes, params: 2, frame: 19
const Navigator = (require(5280) /* metro dependency 5280: NavigatorNative */).Navigator;
const object = {title: title};
object.headerLeft = (require(5282) /* metro dependency 5282: NavigatorHeaderNative */).getHeaderCloseButton(_fun61156);
object.render = render_61157;
return <Navigator initialRouteName="Unsupported" screens={{Unsupported: object}} />;
}
function UnsupportedFeatureModalRender() { // fn#61157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7814:455, owner: UnsupportedFeatureModal.render, offset: 0x0171c266, size: 143 bytes, params: 1, frame: 20
const Text = (TextModule).Text;
const intl = (IndexNativeModule).intl;
const string = intl.string;
const I22zuX = (IndexNativeModule).t.I22zuX;
return (
<View style={{'flex': 1, 'alignItems': 'center', 'justifyContent': 'center', 'padding': 24}}>
<Text variant="text-lg/normal" color="text-default">
{Reflect.apply(string, intl, [I22zuX])}
</Text>
</View>
);
}
function _fun61156() { // fn#61156, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7814:413, offset: 0x0171c22c, size: 58 bytes, params: 1, frame: 12
const value = environment.__proto__;
(importDefault(5080) /* metro dependency 5080: ModalActionCreators */).pop();
if (onDismiss != null) {
onDismiss();
}
}
function UnsupportedFeatureModalRender() { // fn#61157, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7814:455, owner: UnsupportedFeatureModal.render, offset: 0x0171c266, size: 143 bytes, params: 1, frame: 20
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const string = intl.string;
const I22zuX = (require(1244) /* metro dependency 1244: indexNative */).t.I22zuX;
return (
<View style={{'flex': 1, 'alignItems': 'center', 'justifyContent': 'center', 'padding': 24}}>
<Text variant="text-lg/normal" color="text-default">
{Reflect.apply(string, intl, [I22zuX])}
</Text>
</View>
);
}
global.__d(_fun61154, 7636, [31, 27, 33, 5280, 5282, 5080, 4573, 1244,
2]) /* metro module 7636, dependencies: [31, 27, 33, 5280, 5282, 5080, 4573, 1244, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,8 +1,10 @@
/* Metro module 7359; source: modules/billing/native/iapProducts.tsx; dependencies: [2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun59313(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59313, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7537:6, offset: 0x016e5329, size: 1225 bytes, params: 8, frame: 16
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/billing/native/iapProducts.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/billing/native/iapProducts.tsx');
exports.copiedIAPProducts = [{'identifier': 'premium_tier_2_premium_guild_5_yearly', 'price': 274.99,
'currencySymbol': '$', 'currencyCode': 'usd', 'priceString': '$274.99', 'countryCode': 'US',
'downloadable': false, 'description': 'Chat perks and 7 Boosts (Yearly Sub)',
@@ -130,3 +132,4 @@ function _fun59313(global, require, importDefault, importAll, module, exports, d
'description': '1 year of sweet chat perks and 1 Nitro Boost', 'title': 'Nitro (1 Year)', discounts: []}];
}
global.__d(_fun59313, 7359, [2]) /* metro module 7359, dependencies: [2] */;
@@ -1,18 +1,21 @@
/* Metro module 7360; source: modules/billing/native/openBlockedPaymentsCountryActionSheet.tsx; dependencies: [4080, 7361, 1962, 2] */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
function _fun59314(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#59314, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7538:6, offset: 0x016e57f2, size: 101 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/billing/native/openBlockedPaymentsCountryActionSheet.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/billing/native/openBlockedPaymentsCountryActionSheet.tsx');
exports.default = _default_59315;
function _default_59315() { // fn#59315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7538:105, offset: 0x016e5857, size: 97 bytes, params: 1, frame: 16
importDefault(dependencyMap[0]).hideActionSheet();
const defaultImport2 = importDefault(dependencyMap[0]);
const openLazy = defaultImport2.openLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport2, [value, 'BlockedPaymentsCountryActionSheet']);
}
}
function _default_59315() { // fn#59315, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7538:105, offset: 0x016e5857, size: 97 bytes, params: 1, frame: 16
importDefault(dependencyMap[0]).hideActionSheet();
const defaultImport2 = importDefault(dependencyMap[0]);
const openLazy = defaultImport2.openLazy;
let value = require(dependencyMap[2]);
value = value(dependencyMap[1], dependencyMap.paths);
Reflect.apply(openLazy, defaultImport2, [value, 'BlockedPaymentsCountryActionSheet']);
}
global.__d(_fun59314, 7360, [4080, 7361, 1962, 2]) /* metro module 7360, dependencies: [4080, 7361, 1962, 2] */;
File diff suppressed because it is too large. Load diff
@@ -1,12 +1,18 @@
/* Metro module 14243; source: modules/billing/native/smoke/BillingFlows.android.tsx; dependencies: [27, 33, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
import * as JsxRuntimeModule from '../../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
function _fun107729(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#107729, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14440:6, offset: 0x023070f9, size: 136 bytes, params: 8, frame: 18
var object2;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(27) /* metro dependency 27 */).View;
const env0_1 = (require(33) /* metro dependency 33 */).jsx;
object2 = {RunAllFlows: RunAllFlows};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/billing/native/smoke/BillingFlows.android.tsx');
exports.default = object2;
object = {RunAllFlows: RunAllFlows};
(FileImportTrackerModule).fileFinishedImporting('modules/billing/native/smoke/BillingFlows.android.tsx');
exports.default = object;
function RunAllFlows() { // fn#107730, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14440:144, offset: 0x02071107, size: 23 bytes, params: 1, frame: 13
return <View />;
}
}
global.__d(_fun107729, 14243, [27, 33, 2]) /* metro module 14243, dependencies: [27, 33, 2] */;
@@ -1,221 +1,225 @@
/* Metro module 13673; source: modules/billing/native/subscription/useRestorePurchases.tsx; dependencies: [5, 57, 31, 3, 7037, 2] */
import Logger from '../../../debug/Logger.tsx'; /* Metro dependency 3 */
import Module00005 from '../../../../by-id/module-00005.js'; /* Metro dependency 5 */
import Module00057 from '../../../../by-id/module-00057.js'; /* Metro dependency 57 */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
function _fun104389(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104389, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13870:6, offset: 0x02294f59, size: 191 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importDefault(5) /* metro dependency 5 */;
const env0_3 = importDefault(57) /* metro dependency 57 */;
const env0_4 = importAll(31) /* metro dependency 31 */;
let value = importDefault(3) /* metro dependency 3: Logger */;
let value = Logger;
value = new value('useRestorePurchases');
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/billing/native/subscription/useRestorePurchases.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/billing/native/subscription/useRestorePurchases.tsx');
exports.default = useRestorePurchases;
}
function useRestorePurchases() { // fn#104390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13870:270, offset: 0x02295018, size: 139 bytes, params: 1, frame: 16
let value = a0;
let forceRestore = (value !== undefined ? value : {}).forceRestore;
forceRestore = forceRestore === undefined || forceRestore;
const binding = env0_4;
const env0_1 = binding.useRef(false);
value = env0_3(binding.useState(false), 2);
const property = value[0];
const env0_2 = value[1];
binding.useEffect(_fun104394, [forceRestore]);
return property;
}
function _restore() { // fn#104391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13870:382, owner: useRestorePurchases._restore, offset: 0x022950a3, size: 53 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__;
return env1_2(_fun104393).apply(this, arguments);
}
function _fun104394() { // fn#104394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13870:673, offset: 0x022951db, size: 44 bytes, params: 1, frame: 10
if (forceRestore || !env0_1.current) {
(function() {
return _restore.apply(this, arguments);
})();
}
}
function* _fun104393() { // fn#104393, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13870:421, offset: 0x022950e3, size: 248 bytes, params: 1, frame: 17
var value;
var value2;
var value3;
var binding;
var log;
var binding2;
var property;
var value4;
var restoreAndApplyPurchases;
var value5;
var value6;
var value7;
var error;
var error2;
exceptionLanding25: while (true) {
value = undefined;
value2 = false;
if (value2) {
return value;
}
value = environment.__proto__.__proto__;
env2_2(true);
value3 = environment.__proto__.__proto__.__proto__;
binding = env3_5;
log = binding.log;
Reflect.apply(log, binding, ['isRestoring true']);
reducibleJoin3: while (true) {
reduciblePort24: while (true) {
exceptionLanding20: while (true) {
function useRestorePurchases() { // fn#104390, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13870:270, offset: 0x02295018, size: 139 bytes, params: 1, frame: 16
let value = a0;
let forceRestore = (value !== undefined ? value : {}).forceRestore;
forceRestore = forceRestore === undefined || forceRestore;
const env0_1 = ReactModule.useRef(false);
value = Module00057(ReactModule.useState(false), 2);
const property = value[0];
const env0_2 = value[1];
ReactModule.useEffect(_fun104394, [forceRestore]);
return property;
function _restore() { // fn#104391, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13870:382, owner: useRestorePurchases._restore, offset: 0x022950a3, size: 53 bytes, params: 1, frame: 13
var environment;
const value = environment.__proto__;
return env1_2(_fun104393).apply(this, arguments);
function* _fun104393() { // fn#104393, original name: ?anon_0_, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13870:421, offset: 0x022950e3, size: 248 bytes, params: 1, frame: 17
var value;
var value2;
var value3;
var binding;
var log;
var binding2;
var property;
var value4;
var restoreAndApplyPurchases;
var value5;
var value6;
var value7;
var error;
var error2;
exceptionLanding25: while (true) {
value = undefined;
value2 = false;
if (value2) {
return value;
}
value = environment.__proto__.__proto__;
env2_2(true);
value3 = environment.__proto__.__proto__.__proto__;
binding = env3_5;
log = binding.log;
Reflect.apply(log, binding, ['isRestoring true']);
reducibleJoin3: while (true) {
reduciblePort24: while (true) {
exceptionLanding20: while (true) {
try {
try {
binding = env3_0;
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
break reducibleJoin3;
}
try {
binding = env3_5;
} catch (error) {
break exceptionLanding25;
}
try {
error2 = binding.error;
} catch (error) {
break exceptionLanding25;
}
try {
Reflect.apply(error2, binding, [error]);
} catch (error) {
break exceptionLanding25;
}
break reduciblePort24;
}
env2_2(false);
binding = env3_5;
log = binding.log;
Reflect.apply(log, binding, ['isRestoring false']);
return undefined;
}
try {
try {
binding = env3_0;
binding2 = env3_1;
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
break reducibleJoin3;
}
try {
try {
try {
property = binding2[4];
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
try {
try {
value4 = binding(property);
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
try {
try {
restoreAndApplyPurchases = value4.restoreAndApplyPurchases;
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
try {
try {
value5 = Reflect.apply(restoreAndApplyPurchases, value4, []);
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
yield value5;
try {
try {
value6 = undefined;
value7 = false;
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
if (value7) {
env2_2(false);
binding = env3_5;
binding.log('isRestoring false');
return value6;
}
try {
try {
binding = env3_5;
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
try {
try {
log = binding.log;
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
try {
try {
Reflect.apply(log, binding, ['restored unfinished transactions']);
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
try {
try {
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
try {
try {
dependencyMap.current = true;
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
env2_2(false);
binding = env3_5;
} catch (error) {
break exceptionLanding25;
log = binding.log;
Reflect.apply(log, binding, ['isRestoring false']);
return undefined;
}
try {
error2 = binding.error;
} catch (error) {
break exceptionLanding25;
}
try {
Reflect.apply(error2, binding, [error]);
} catch (error) {
break exceptionLanding25;
}
break reduciblePort24;
env2_2(false);
env3_5.log('isRestoring false');
throw error;
}
env2_2(false);
binding = env3_5;
log = binding.log;
Reflect.apply(log, binding, ['isRestoring false']);
return undefined;
}
try {
try {
binding2 = env3_1;
} catch (error) {
break exceptionLanding20;
function _fun104394() { // fn#104394, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13870:673, offset: 0x022951db, size: 44 bytes, params: 1, frame: 10
if (forceRestore || !env0_1.current) {
(function() {
return _restore.apply(this, arguments);
})();
}
} catch (error) {
break exceptionLanding25;
}
try {
try {
property = binding2[4];
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
try {
try {
value4 = binding(property);
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
try {
try {
restoreAndApplyPurchases = value4.restoreAndApplyPurchases;
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
try {
try {
value5 = Reflect.apply(restoreAndApplyPurchases, value4, []);
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
yield value5;
try {
try {
value6 = undefined;
value7 = false;
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
if (value7) {
env2_2(false);
binding = env3_5;
binding.log('isRestoring false');
return value6;
}
try {
try {
binding = env3_5;
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
try {
try {
log = binding.log;
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
try {
try {
Reflect.apply(log, binding, ['restored unfinished transactions']);
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
try {
try {
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
try {
try {
dependencyMap.current = true;
} catch (error) {
break exceptionLanding20;
}
} catch (error) {
break exceptionLanding25;
}
env2_2(false);
binding = env3_5;
log = binding.log;
Reflect.apply(log, binding, ['isRestoring false']);
return undefined;
}
env2_2(false);
env3_5.log('isRestoring false');
throw error;
}
global.__d(_fun104389, 13673, [5, 57, 31, 3, 7037,
2]) /* metro module 13673, dependencies: [5, 57, 31, 3, 7037, 2] */;
@@ -1,79 +1,82 @@
/* Metro module 7944; source: modules/billing/native/subscription/useStoreFrontPrice.tsx; dependencies: [31, 661, 3802, 2] */
import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactModule from '../../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
import * as ConstantsModule from '../../../../Constants.tsx'; /* Metro dependency 661 */
function _fun63396(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#63396, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8122:6, offset: 0x01b7e010, size: 196 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_2 = importAll(31) /* metro dependency 31 */;
const env0_3 = (require(661) /* metro dependency 661: Constants */).PriceSetAssignmentPurchaseTypes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/billing/native/subscription/useStoreFrontPrice.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/billing/native/subscription/useStoreFrontPrice.tsx');
exports.default = useStoreFrontPrice;
exports.PriceStates = {PRICE_AVAILABLE: 'PRICE_AVAILABLE',
SUBSCRIPTION_PLAN_UNAVAILABLE: 'SUBSCRIPTION_PLAN_UNAVAILABLE',
STOREFRONT_UNAVAILABLE: 'STOREFRONT_UNAVAILABLE', MISMATCHING_COUNTRIES: 'MISMATCHING_COUNTRIES',
COUNTRY_PRICE_UNAVAILABLE: 'COUNTRY_PRICE_UNAVAILABLE'};
}
function useStoreFrontPrice(a0, a1) { // fn#63397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8122:532, offset: 0x01b7e0d4, size: 53 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
return env0_2.useMemo(_fun63398, [a0, a1]);
}
function _fun63398() { // fn#63398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8122:583, offset: 0x01b7e109, size: 299 bytes, params: 1, frame: 22
var r2;
var r1;
var prices;
var value2;
var MOBILE;
var value4;
var moduleValue;
var getCountryPrices;
var binding;
var id;
var value5;
var moduleValue2;
var experimentalGetPrice;
var STOREFRONT_UNAVAILABLE;
var SUBSCRIPTION_PLAN_UNAVAILABLE;
var value;
if (env0_0 == null) {
value = environment.__proto__;
SUBSCRIPTION_PLAN_UNAVAILABLE = env1_4.SUBSCRIPTION_PLAN_UNAVAILABLE;
value = undefined;
r1 = SUBSCRIPTION_PLAN_UNAVAILABLE;
r2 = value;
} else if (require == null) {
value = environment.__proto__;
STOREFRONT_UNAVAILABLE = env1_4.STOREFRONT_UNAVAILABLE;
value = undefined;
r1 = STOREFRONT_UNAVAILABLE;
r2 = value;
} else {
prices = env0_0.prices;
value2 = undefined;
r2 = prices == null ? value2 : prices[PriceSetAssignmentPurchaseTypes.MOBILE];
if (r2 == null) {
value = environment.__proto__;
r1 = env1_4.COUNTRY_PRICE_UNAVAILABLE;
r2 = value2;
} else {
value4 = environment.__proto__;
moduleValue = require(3802) /* metro dependency 3802: PremiumUtils */;
getCountryPrices = moduleValue.getCountryPrices;
binding = env0_0;
id = binding.id;
MOBILE = PriceSetAssignmentPurchaseTypes.MOBILE;
value5 = Reflect.apply(getCountryPrices, moduleValue, [id, MOBILE]);
moduleValue2 = require(3802) /* metro dependency 3802: PremiumUtils */;
experimentalGetPrice = moduleValue2.experimentalGetPrice;
id = binding.id;
MOBILE = PriceSetAssignmentPurchaseTypes.MOBILE;
value = Reflect.apply(experimentalGetPrice, moduleValue2, [id, {purchaseType: MOBILE,
currency: require.currency}]);
r1 = value5.countryCode !== require.country ? env1_4.MISMATCHING_COUNTRIES : value == null ? env1_4.COUNTRY_PRICE_UNAVAILABLE : env1_4.PRICE_AVAILABLE;
r2 = value;
function useStoreFrontPrice(a0, a1) { // fn#63397, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8122:532, offset: 0x01b7e0d4, size: 53 bytes, params: 3, frame: 15
const env0_0 = a0;
const env0_1 = a1;
return ReactModule.useMemo(_fun63398, [a0, a1]);
function _fun63398() { // fn#63398, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:8122:583, offset: 0x01b7e109, size: 299 bytes, params: 1, frame: 22
var r2;
var r1;
var prices;
var value2;
var MOBILE;
var value4;
var moduleValue;
var getCountryPrices;
var binding;
var id;
var value5;
var moduleValue2;
var experimentalGetPrice;
var STOREFRONT_UNAVAILABLE;
var SUBSCRIPTION_PLAN_UNAVAILABLE;
var value;
if (env0_0 == null) {
value = environment.__proto__;
SUBSCRIPTION_PLAN_UNAVAILABLE = env1_4.SUBSCRIPTION_PLAN_UNAVAILABLE;
value = undefined;
r1 = SUBSCRIPTION_PLAN_UNAVAILABLE;
r2 = value;
} else if (require == null) {
value = environment.__proto__;
STOREFRONT_UNAVAILABLE = env1_4.STOREFRONT_UNAVAILABLE;
value = undefined;
r1 = STOREFRONT_UNAVAILABLE;
r2 = value;
} else {
prices = env0_0.prices;
value2 = undefined;
r2 = prices == null ? value2 : prices[PriceSetAssignmentPurchaseTypes.MOBILE];
if (r2 == null) {
value = environment.__proto__;
r1 = env1_4.COUNTRY_PRICE_UNAVAILABLE;
r2 = value2;
} else {
value4 = environment.__proto__;
moduleValue = require(3802) /* metro dependency 3802: PremiumUtils */;
getCountryPrices = moduleValue.getCountryPrices;
binding = env0_0;
id = binding.id;
MOBILE = PriceSetAssignmentPurchaseTypes.MOBILE;
value5 = Reflect.apply(getCountryPrices, moduleValue, [id, MOBILE]);
moduleValue2 = require(3802) /* metro dependency 3802: PremiumUtils */;
experimentalGetPrice = moduleValue2.experimentalGetPrice;
id = binding.id;
MOBILE = PriceSetAssignmentPurchaseTypes.MOBILE;
value = Reflect.apply(experimentalGetPrice, moduleValue2, [id, {purchaseType: MOBILE,
currency: require.currency}]);
r1 = value5.countryCode !== require.country ? env1_4.MISMATCHING_COUNTRIES : value == null ? env1_4.COUNTRY_PRICE_UNAVAILABLE : env1_4.PRICE_AVAILABLE;
r2 = value;
}
}
return {price: r2, priceState: r1};
}
}
return {price: r2, priceState: r1};
}
global.__d(_fun63396, 7944, [31, 661, 3802, 2]) /* metro module 7944, dependencies: [31, 661, 3802, 2] */;