/* Metro module 7253; source: modules/premium/native/hooks/useCheckoutPlanPriceString.tsx; dependencies: [7042, 477, 7027, 2] */ import * as FileImportTrackerModule from '../../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */ import * as PlatformUtilsModule from '../../../../utils/PlatformUtils.tsx'; /* Metro dependency 477 */ import * as NativeCheckoutStoreModule from '../../../checkout/native/NativeCheckoutStore.tsx'; /* Metro dependency 7042 */ function _fun58275(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#58275, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7431:6, offset: 0x016c3793, size: 115 bytes, params: 8, frame: 18 const env0_0 = require; const Object = global.Object; Object.defineProperty(exports, '__esModule', {value: true}); (FileImportTrackerModule).fileFinishedImporting('modules/premium/native/hooks/useCheckoutPlanPriceString.tsx'); exports.useCheckoutPlanPriceString = useCheckoutPlanPriceString; function useCheckoutPlanPriceString(a0, a1) { // fn#58276, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:7431:251, offset: 0x016c3806, size: 168 bytes, params: 3, frame: 16 var r2; var getAvailablePlanForItems; var moduleValue2; var value5; const value = null; const priceString = value == a1 ? undefined : a1.priceString; const r0 = value != priceString ? priceString : value; const value4 = useNativeCheckoutStore(function(a0) { return a0.getCheckoutContextRecord(); }); if (PlatformUtilsModule.isIOS()) { if (value == value4) { return r0; } getAvailablePlanForItems = value4.getAvailablePlanForItems; moduleValue2 = require(7027) /* metro dependency 7027: PremiumBundledPlansUtils */; value5 = Reflect.apply(getAvailablePlanForItems, value4, [moduleValue2.getSubscriptionItemsForProduct(a0)]); r2 = value != value5 ? value5.getPriceString() : value; return value == r2 ? r0 : r2; } return r0; } } global.__d(_fun58275, 7253, [7042, 477, 7027, 2]) /* metro module 7253, dependencies: [7042, 477, 7027, 2] */;