decord/beta/source/modules/premium/ReverseTrialUtils.native.tsx

71 lines
1.9 KiB
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 8095
// Function ID: 8096
// Name: ReverseTrialUtils
2026-10-12 16:32:48 +00:00
// Dependencies: [1390, 558, 576, 504, 2]
2026-10-02 13:37:24 +00:00
// Exports: maybeShowReverseTrialFollowupUpsellModal, maybeShowReverseTrialInitialUpsellModal, useReverseTrialDaysRemaining
2026-10-12 16:32:48 +00:00
// Module 8095 (ReverseTrialUtils)
2026-10-02 13:37:24 +00:00
import react from "react" /* 576 */;
2026-10-12 16:32:48 +00:00
import UserStore from "UserStore" /* 1390 */;
2026-10-02 13:37:24 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
2026-10-01 14:13:23 +00:00
import size from "module_2" /* 2 */;
let currentUser;
2026-10-02 13:37:24 +00:00
let tmp;
const get_initialized = tmp(504);
2026-10-12 16:32:48 +00:00
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useIsInReverseTrial() {
2026-10-02 13:37:24 +00:00
let tmp4;
let tmp5;
const obj = react;
const cResult = obj.c(2);
if (cResult[0] === Symbol.for("react.memo_cache_sentinel")) {
const items = [UserStore];
const fn = function n() {
currentUser = currentUser.getCurrentUser();
let flag;
if (currentUser != null) {
flag = currentUser.isOnReverseTrial();
}
if (flag == null) {
flag = false;
}
return flag;
};
cResult[0] = items;
cResult[1] = fn;
tmp4 = items;
tmp5 = fn;
} else {
[tmp4, tmp5] = cResult;
}
const tmpResult = get_initialized;
return tmpResult.useStateFromStores(tmp4, tmp5);
2026-10-12 16:32:48 +00:00
}) : (function useIsInReverseTrial() {
const items = [UserStore];
2026-10-01 14:13:23 +00:00
const obj = get_initialized;
return obj.useStateFromStores(items, () => {
currentUser = currentUser.getCurrentUser();
let flag;
if (currentUser != null) {
flag = currentUser.isOnReverseTrial();
}
if (flag == null) {
flag = false;
}
return flag;
});
2026-10-02 13:37:24 +00:00
});
const result = size.fileFinishedImporting("modules/premium/ReverseTrialUtils.native.tsx");
export const useIsInReverseTrial = tmp2;
export function useReverseTrialDaysRemaining() {
return 0;
}
export function maybeShowReverseTrialInitialUpsellModal() {
}
export function maybeShowReverseTrialFollowupUpsellModal() {
}