61 lines
2.3 KiB
TypeScript
61 lines
2.3 KiB
TypeScript
// Module ID: 13376
|
|
// Function ID: 13377
|
|
// Name: useOpenNitroSubscribeActionSheet
|
|
// Dependencies: [19, 1085, 1392, 558, 576, 6848, 7135, 2]
|
|
|
|
// Module 13376 (useOpenNitroSubscribeActionSheet)
|
|
import PremiumConstants from "PremiumConstants" /* 1392 */;
|
|
import openPremiumPlanSelectionActionSheetDefault from "openPremiumPlanSelectionActionSheet" /* 7135 */;
|
|
import react from "react" /* 19 */;
|
|
import Constants from "Constants" /* 1085 */;
|
|
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
|
|
import size from "module_2" /* 2 */;
|
|
|
|
let closure_4;
|
|
let hasOwnProperty;
|
|
({ AnalyticsPages: closure_4, AnalyticsSections: hasOwnProperty } = Constants);
|
|
const PremiumTypes = PremiumConstants.PremiumTypes;
|
|
const tmp3 = ReactCompilerGating.isReactCompilerEnabled() ? (function useOpenNitroSubscribeActionSheet(arg0) {
|
|
let analyticsLocations;
|
|
let COLLECTIBLES_SHOP = arg0;
|
|
let obj = COLLECTIBLES_SHOP(576);
|
|
const cResult = obj.c(3);
|
|
if (undefined === arg0) {
|
|
COLLECTIBLES_SHOP = constants2.COLLECTIBLES_SHOP;
|
|
}
|
|
analyticsLocations = analyticsLocations(6848)().analyticsLocations;
|
|
if (cResult[0] === analyticsLocations) {
|
|
let tmp4;
|
|
if (cResult[1] === COLLECTIBLES_SHOP) {
|
|
tmp4 = cResult[2];
|
|
}
|
|
return tmp4;
|
|
}
|
|
const fn = function n() {
|
|
let obj2;
|
|
const obj = { analyticsLocation: obj2, analyticsLocations, premiumType: PremiumTypes.TIER_2 };
|
|
obj2 = { page: constants.COLLECTIBLES_SHOP, section: COLLECTIBLES_SHOP };
|
|
openPremiumPlanSelectionActionSheetDefault(obj);
|
|
};
|
|
cResult[0] = analyticsLocations;
|
|
cResult[1] = COLLECTIBLES_SHOP;
|
|
cResult[2] = fn;
|
|
tmp4 = fn;
|
|
}) : (function useOpenNitroSubscribeActionSheet() {
|
|
let COLLECTIBLES_SHOP = arg0;
|
|
if (arg0 === undefined) {
|
|
COLLECTIBLES_SHOP = constants2.COLLECTIBLES_SHOP;
|
|
}
|
|
let analyticsLocations;
|
|
analyticsLocations = analyticsLocations(6848)().analyticsLocations;
|
|
const items = [analyticsLocations, COLLECTIBLES_SHOP];
|
|
return react.useCallback(() => {
|
|
let obj2;
|
|
const obj = { analyticsLocation: obj2, analyticsLocations, premiumType: PremiumTypes.TIER_2 };
|
|
obj2 = { page: constants.COLLECTIBLES_SHOP, section: COLLECTIBLES_SHOP };
|
|
openPremiumPlanSelectionActionSheetDefault(obj);
|
|
}, items);
|
|
});
|
|
const result = size.fileFinishedImporting("modules/collectibles/native/useOpenNitroSubscribeActionSheet.tsx");
|
|
|
|
export default tmp3;
|