Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,56 @@
|
||||
/* Metro module 7036; source: modules/premium/hooks/useGeoForUser.native.tsx; dependencies: [31, 1226, 3804, 5140, 566, 7033, 4223, 2] */
|
||||
function _fun55745(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55745, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7214:6, offset: 0x013b0bf6, size: 167 bytes, params: 8, frame: 20
|
||||
const env0_0 = require;
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_3 = importAll(31) /* metro dependency 31 */;
|
||||
const authenticationStore = importDefault(1226) /* metro dependency 1226: AuthenticationStore */;
|
||||
const billingInfoStore = importDefault(3804) /* metro dependency 3804: BillingInfoStore */;
|
||||
const iapStoreAndroid = importDefault(5140) /* metro dependency 5140: IAPStoreAndroid */;
|
||||
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/hooks/useGeoForUser.native.tsx');
|
||||
exports.default = useGeoForUser;
|
||||
}
|
||||
|
||||
function useGeoForUser() { // fn#55746, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7214:226, offset: 0x013b0c9d, size: 218 bytes, params: 1, frame: 20
|
||||
const value2 = undefined;
|
||||
const value3 = (require(566) /* metro dependency 566: flux */).useStateFromStores([IAPStoreAndroid], _fun55747);
|
||||
const ipLocation = (require(566) /* metro dependency 566: flux */).useStateFromStores([BillingInfoStore],
|
||||
function() {
|
||||
return BillingInfoStore.ipLocation;
|
||||
});
|
||||
env0_3.useEffect(_fun55750, [ipLocation,
|
||||
(require(566) /* metro dependency 566: flux */).useStateFromStores([AuthenticationStore], function() {
|
||||
return AuthenticationStore.isAuthenticated();
|
||||
})]);
|
||||
return {defaultBillingCountryCode: value3, ipCountryCode: ipLocation == null ? value2 : ipLocation.countryCode,
|
||||
ipSubdivisionCode: ipLocation == null ? value2 : ipLocation.subdivisionCode};
|
||||
}
|
||||
|
||||
function _fun55747() { // fn#55747, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7214:289, offset: 0x013b0d77, size: 69 bytes, params: 1, frame: 13
|
||||
let value = environment.__proto__;
|
||||
const getProduct = IAPStoreAndroid.getProduct;
|
||||
value = undefined;
|
||||
const ProductIds = (require(7033) /* metro dependency 7033: ProductIdsIos */).ProductIds;
|
||||
const PREMIUM_TIER_2_MONTHLY = ProductIds.PREMIUM_TIER_2_MONTHLY;
|
||||
const value2 = Reflect.apply(getProduct, IAPStoreAndroid, [PREMIUM_TIER_2_MONTHLY]);
|
||||
return value2 == null ? value : value2.countryCode;
|
||||
}
|
||||
|
||||
function _fun55750() { // fn#55750, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7214:530, offset: 0x013b0de0, size: 70 bytes, params: 1, frame: 11
|
||||
var r0;
|
||||
var value;
|
||||
const binding = env0_0;
|
||||
if (binding) {
|
||||
value = environment.__proto__;
|
||||
value = !BillingInfoStore.ipLocationLoaded;
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = binding;
|
||||
}
|
||||
if (r0) {
|
||||
value = environment.__proto__;
|
||||
value = importAll(4223) /* metro dependency 4223: BillingActionCreators */;
|
||||
value.fetchIpLocation();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user