Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,221 @@
|
||||
/* Metro module 13673; source: modules/billing/native/subscription/useRestorePurchases.tsx; dependencies: [5, 57, 31, 3, 7037, 2] */
|
||||
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 */;
|
||||
value = new value('useRestorePurchases');
|
||||
(require(2) /* metro dependency 2 */).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) {
|
||||
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 {
|
||||
binding2 = env3_1;
|
||||
} catch (error) {
|
||||
break exceptionLanding20;
|
||||
}
|
||||
} 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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
/* Metro module 7944; source: modules/billing/native/subscription/useStoreFrontPrice.tsx; dependencies: [31, 661, 3802, 2] */
|
||||
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');
|
||||
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;
|
||||
}
|
||||
}
|
||||
return {price: r2, priceState: r1};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user