"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.shouldRedirectToPostOnboardingOrRecoverUpsell = void 0;
function shouldRedirectToPostOnboardingOrRecoverUpsell({ hasBeenUpsoldRecover, hasRedirectedToPostOnboarding, lastConnectedDevice, supportedDeviceModels, }) {
    const eligibleForUpsell = lastConnectedDevice?.modelId
        ? supportedDeviceModels.includes(lastConnectedDevice.modelId)
        : false;
    const shouldRedirectToRecoverUpsell = !hasBeenUpsoldRecover && eligibleForUpsell;
    const shouldRedirectToPostOnboarding = !shouldRedirectToRecoverUpsell && !hasRedirectedToPostOnboarding;
    return {
        shouldRedirectToRecoverUpsell,
        shouldRedirectToPostOnboarding,
    };
}
exports.shouldRedirectToPostOnboardingOrRecoverUpsell = shouldRedirectToPostOnboardingOrRecoverUpsell;
//# sourceMappingURL=shouldRedirectToPostOnboardingOrRecoverUpsell.js.map