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,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] */;