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,57 +1,67 @@
/* Metro module 7024; source: modules/payments/utils/BillingStandaloneUtils.tsx; dependencies: [661, 1471, 491, 507, 2] */
import URLUtils from '../../../utils/URLUtils.tsx'; /* Metro dependency 1471 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as Module00491Module from '../../../by-id/module-00491.js'; /* Metro dependency 491 */
import * as HTTPUtilsModule from '../../../external/discord_common/js/packages/http-utils/HTTPUtils.tsx'; /* Metro dependency 507 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
function _fun55663(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#55663, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7202:6, offset: 0x013ad61f, size: 164 bytes, params: 8, frame: 20
const env0_0 = require;
const closure = goToBillingStandalonePageWithHandoff;
const closure2 = goToStandalonePremiumCheckout;
const goToBillingStandalonePageWithHandoff2 = goToBillingStandalonePageWithHandoff;
const goToStandalonePremiumCheckout2 = goToStandalonePremiumCheckout;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_3 = constantsModule.Endpoints;
const env0_4 = constantsModule.Routes;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/payments/utils/BillingStandaloneUtils.tsx');
exports.goToBillingStandalonePageWithHandoff = closure;
exports.goToStandalonePremiumCheckout = closure2;
(FileImportTrackerModule).fileFinishedImporting('modules/payments/utils/BillingStandaloneUtils.tsx');
exports.goToBillingStandalonePageWithHandoff = goToBillingStandalonePageWithHandoff2;
exports.goToStandalonePremiumCheckout = goToStandalonePremiumCheckout2;
exports.goToStandalonePremiumCheckoutWeb = function(a0, a1) {
return goToStandalonePremiumCheckout(a0, _fun55669, a1);
};
function goToBillingStandalonePageWithHandoff(a0, a1, a2) { // fn#55664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7202:131, offset: 0x013ad6c3, size: 266 bytes, params: 4, frame: 21
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const URL = global.URL;
const defaultImport = URLUtils;
const makeUrl = defaultImport.makeUrl;
const BILLING_LOGIN_HANDOFF = Routes.BILLING_LOGIN_HANDOFF;
const uRL = new URL(Reflect.apply(makeUrl, defaultImport, [BILLING_LOGIN_HANDOFF, false]));
const value4 = (Module00491Module).v4();
uRL.searchParams.append('handoff_key', value4);
uRL.searchParams.append('redirect_to', a0);
const HTTP = (HTTPUtilsModule).HTTP;
const post = HTTP.post;
const HANDOFF = Endpoints.HANDOFF;
return Reflect.apply(post, HTTP, [{url: HANDOFF, body: {key: value4}, oldFormErrors: true,
rejectWithError: false}]).then(_fun55665, _fun55666);
function _fun55665(a0) { // fn#55665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7202:433, offset: 0x013ad7cd, size: 24 bytes, params: 2, frame: 13
return require(a0, ConstantsModule.Endpoints);
}
function _fun55666(a0) { // fn#55666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7202:445, offset: 0x013ad7e5, size: 24 bytes, params: 2, frame: 13
return importDefault(a0, env0_0);
}
}
function goToStandalonePremiumCheckout({planId, isGift, loadId, paymentMethodType, deepLinkType, usePresetOffer, flowType}, a1, a2) { // fn#55667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7202:457, offset: 0x013ad7fd, size: 94 bytes, params: 4, frame: 24
return goToBillingStandalonePageWithHandoff(Routes.BILLING_STANDALONE_CHECKOUT_PAGE(planId, isGift, loadId,
paymentMethodType, deepLinkType, usePresetOffer, flowType), a1, a2);
}
function goToStandalonePremiumCheckoutWeb(a0, a1) { // fn#55668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7202:948, offset: 0x013ad85b, size: 31 bytes, params: 3, frame: 15
return goToStandalonePremiumCheckout(a0, function(a0, a1) {
a1.searchParams.append('handoff_token', a0.body.handoff_token);
global.window.open(a1.href);
}, a1);
}
}
function goToBillingStandalonePageWithHandoff(a0, a1, a2) { // fn#55664, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7202:131, offset: 0x013ad6c3, size: 266 bytes, params: 4, frame: 21
const env0_0 = a0;
const env0_1 = a1;
const env0_2 = a2;
const URL = global.URL;
const defaultImport = importDefault(1471) /* metro dependency 1471: URLUtils */;
const makeUrl = defaultImport.makeUrl;
const BILLING_LOGIN_HANDOFF = Routes.BILLING_LOGIN_HANDOFF;
const uRL = new URL(Reflect.apply(makeUrl, defaultImport, [BILLING_LOGIN_HANDOFF, false]));
const value4 = (require(491) /* metro dependency 491 */).v4();
uRL.searchParams.append('handoff_key', value4);
uRL.searchParams.append('redirect_to', a0);
const HTTP = (require(507) /* metro dependency 507: HTTPUtils */).HTTP;
const post = HTTP.post;
const HANDOFF = Endpoints.HANDOFF;
return Reflect.apply(post, HTTP, [{url: HANDOFF, body: {key: value4}, oldFormErrors: true,
rejectWithError: false}]).then(_fun55665, _fun55666);
}
function goToStandalonePremiumCheckout({planId, isGift, loadId, paymentMethodType, deepLinkType, usePresetOffer, flowType}, a1, a2) { // fn#55667, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7202:457, offset: 0x013ad7fd, size: 94 bytes, params: 4, frame: 24
return goToBillingStandalonePageWithHandoff(Routes.BILLING_STANDALONE_CHECKOUT_PAGE(planId, isGift, loadId,
paymentMethodType, deepLinkType, usePresetOffer, flowType), a1, a2);
}
function goToStandalonePremiumCheckoutWeb(a0, a1) { // fn#55668, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7202:948, offset: 0x013ad85b, size: 31 bytes, params: 3, frame: 15
return goToStandalonePremiumCheckout(a0, function(a0, a1) {
a1.searchParams.append('handoff_token', a0.body.handoff_token);
global.window.open(a1.href);
}, a1);
}
function _fun55665(a0) { // fn#55665, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7202:433, offset: 0x013ad7cd, size: 24 bytes, params: 2, frame: 13
return require(a0, env0_3);
}
function _fun55666(a0) { // fn#55666, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7202:445, offset: 0x013ad7e5, size: 24 bytes, params: 2, frame: 13
return importDefault(a0, env0_0);
function _fun55669({body}, {searchParams, href}) { // fn#55669, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7202:1035, offset: 0x013ad87a, size: 68 bytes, params: 3, frame: 14
searchParams.append('handoff_token', body.handoff_token);
global.window.open(href);
}
global.__d(_fun55663, 7024, [661, 1471, 491, 507,
2]) /* metro module 7024, dependencies: [661, 1471, 491, 507, 2] */;
@@ -1,19 +1,21 @@
/* Metro module 4247; source: modules/payments/utils/MobileWebRedirectCheckoutUtils.tsx; dependencies: [4095, 661, 1216, 1581, 3975, 4123, 2] */
import SentryUtilsNative from '../../../utils/SentryUtils.native.tsx'; /* Metro dependency 1216 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ConstantsModule from '../../../Constants.tsx'; /* Metro dependency 661 */
import * as MetaQuestUtilsAndroidModule from '../../device/MetaQuestUtils.android.tsx'; /* Metro dependency 1581 */
import * as PaymentConstantsModule from '../PaymentConstants.tsx'; /* Metro dependency 4095 */
function _fun35283(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#35283, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4419:6, offset: 0x0106db4d, size: 225 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_3 = (require(4095) /* metro dependency 4095: PaymentConstants */).CustomCheckoutFlow;
const constantsModule = require(661) /* metro dependency 661: Constants */;
const env0_4 = constantsModule.Routes;
const env0_5 = constantsModule.LinkingTypes;
const checkForCustomCheckoutFlow = function(a0, a1, a2) {
if (a0.startsWith(Routes.BILLING_MANAGE_SUBSCRIPTION)) {
return undefined;
}
return a1 === LinkingTypes.MOBILE_WEB_REDIRECT_CHECKOUT ? CustomCheckoutFlow.MOBILE_WEB_REDIRECT_CHECKOUT : a2 !== CustomCheckoutFlow.META_QUEST_WEB_REDIRECT_CHECKOUT ? undefined : CustomCheckoutFlow.META_QUEST_WEB_REDIRECT_CHECKOUT;
};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/payments/utils/MobileWebRedirectCheckoutUtils.tsx');
(FileImportTrackerModule).fileFinishedImporting('modules/payments/utils/MobileWebRedirectCheckoutUtils.tsx');
exports.MOBILE_WEB_REDIRECT_CHECKOUT_ERROR_TAG = 'mobile_web_redirect_checkout';
exports.captureMobileWebRedirectCheckoutSentryError = captureMobileWebRedirectCheckoutSentryError;
exports.isMobileWebRedirectCheckoutEnabled = isMobileWebRedirectCheckoutEnabled;
@@ -32,17 +34,18 @@ function _fun35283(global, require, importDefault, importAll, module, exports, d
var value2 = require(dependencyMap[5]).parse(global.window.location.search);
return checkForCustomCheckoutFlow(pathname, value2.deep_link_type, value2.flow_type);
};
function captureMobileWebRedirectCheckoutSentryError(a0, a1, {tags, extra}) { // fn#35285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4419:616, offset: 0x0106dc8c, size: 96 bytes, params: 4, frame: 16
const captureException = SentryUtilsNative.captureException;
const object2 = {app_context: 'mobile_web_redirect_checkout', source: a1};
copyDataProperties(object2, tags, a1);
Reflect.apply(captureException, SentryUtilsNative, [a0, {tags: object2, extra: extra}]);
}
function isMobileWebRedirectCheckoutEnabled() { // fn#35286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4419:748, offset: 0x0106dcec, size: 37 bytes, params: 1, frame: 11
return (MetaQuestUtilsAndroidModule).isMetaQuest();
}
}
function captureMobileWebRedirectCheckoutSentryError(a0, a1, {tags, extra}) { // fn#35285, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4419:616, offset: 0x0106dc8c, size: 96 bytes, params: 4, frame: 16
const sentryUtilsNative = importDefault(1216) /* metro dependency 1216: SentryUtilsNative */;
const captureException = sentryUtilsNative.captureException;
const object = {app_context: 'mobile_web_redirect_checkout', source: a1};
copyDataProperties(object, tags, a1);
Reflect.apply(captureException, sentryUtilsNative, [a0, {tags: object, extra: extra}]);
}
function isMobileWebRedirectCheckoutEnabled() { // fn#35286, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4419:748, offset: 0x0106dcec, size: 37 bytes, params: 1, frame: 11
return (require(1581) /* metro dependency 1581: MetaQuestUtilsAndroid */).isMetaQuest();
}
global.__d(_fun35283, 4247, [4095, 661, 1216, 1581, 3975, 4123,
2]) /* metro module 4247, dependencies: [4095, 661, 1216, 1581, 3975, 4123, 2] */;