2026-09-16 07:03:15 +00:00
|
|
|
// Module ID: 8182
|
|
|
|
|
// Function ID: 8183
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: ReverseTrialUtils
|
2026-09-15 14:23:42 +00:00
|
|
|
// Dependencies: [1372, 504, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: maybeShowReverseTrialFollowupUpsellModal, maybeShowReverseTrialInitialUpsellModal, useIsInReverseTrial, useReverseTrialDaysRemaining
|
|
|
|
|
|
2026-09-16 07:03:15 +00:00
|
|
|
// Module 8182 (ReverseTrialUtils)
|
2026-09-05 10:56:28 +00:00
|
|
|
import initialize from "initialize" /* 504 */;
|
2026-09-15 14:23:42 +00:00
|
|
|
import UserStore from "UserStore" /* 1372 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
require = fn;
|
|
|
|
|
const size = fn(2);
|
|
|
|
|
const result = size.fileFinishedImporting("modules/premium/ReverseTrialUtils.native.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const useIsInReverseTrial = function useIsInReverseTrial() {
|
2026-09-10 05:38:07 +00:00
|
|
|
const items = [UserStore];
|
2026-08-24 06:08:38 +00:00
|
|
|
return initialize.useStateFromStores(items, () => {
|
2026-07-29 08:29:29 +00:00
|
|
|
currentUser = currentUser.getCurrentUser();
|
|
|
|
|
let flag;
|
|
|
|
|
if (currentUser != null) {
|
|
|
|
|
flag = currentUser.isOnReverseTrial();
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
if (flag == null) {
|
|
|
|
|
flag = false;
|
|
|
|
|
}
|
|
|
|
|
return flag;
|
2026-07-20 16:05:17 +00:00
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
export function useReverseTrialDaysRemaining() {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
export function maybeShowReverseTrialInitialUpsellModal() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
export function maybeShowReverseTrialFollowupUpsellModal() {
|
|
|
|
|
|
|
|
|
|
}
|