/* 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 goToBillingStandalonePageWithHandoff2 = goToBillingStandalonePageWithHandoff; const goToStandalonePremiumCheckout2 = goToStandalonePremiumCheckout; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (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 _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] */;