import { navigationEventCategory } from '../../../../types/tracking.js';

var savedSearchesLinkConfig = {
    translationKey: 'header.userMenu.requisitions',
    link: {
        de: '/de/me/saved-searches',
        en: '/de/me/saved-searches',
        fr: '/fr/me/saved-searches',
        it: '/it/me/saved-searches',
    },
    visibilitySettings: {
        userType: {
            private: true,
            professional: true,
        },
        brand: {
            autoscout24: true,
            motoscout24: true,
        },
    },
    projectIdentifier: 'listings-web',
};
var editUsersLinkConfig = {
    translationKey: 'header.userMenu.editUser',
    link: {
        de: '/de/account/user-list',
        en: '/en/account/user-list',
        fr: '/fr/account/user-list',
        it: '/it/account/user-list',
    },
    visibilitySettings: {
        userType: {
            private: false,
            professional: true,
        },
        brand: {
            autoscout24: true,
            motoscout24: true,
        },
    },
};
var changeLanguageLinkConfig = {
    translationKey: 'header.userMenu.userLanguage',
    link: {
        de: '/de/account/change-language',
        en: '/en/account/change-language',
        fr: '/fr/account/change-language',
        it: '/it/account/change-language',
    },
    visibilitySettings: {
        userType: {
            private: true,
            professional: true,
        },
        brand: {
            autoscout24: true,
            motoscout24: true,
        },
    },
};
var getFavoritesLinkConfig = function (_a) {
    var trackEvent = _a.trackEvent, eventLabel = _a.eventLabel;
    return ({
        translationKey: 'header.userMenu.bookmarks',
        link: {
            de: '/de/me/favorites',
            en: '/de/me/favorites',
            fr: '/fr/me/favorites',
            it: '/it/me/favorites',
        },
        visibilitySettings: {
            userType: {
                private: true,
                professional: true,
                guest: false,
            },
            brand: {
                autoscout24: true,
                motoscout24: true,
            },
        },
        projectIdentifier: 'listings-web',
        onClick: function () {
            return trackEvent === null || trackEvent === void 0 ? void 0 : trackEvent({
                eventCategory: navigationEventCategory,
                eventAction: 'open_favorites',
                eventLabel: eventLabel,
            });
        },
    });
};
var getLogoutLinkConfig = function (_a) {
    var onLogout = _a.onLogout;
    return ({
        translationKey: 'header.userMenu.logout',
        color: 'red.500',
        onClick: onLogout,
        visibilitySettings: {
            userType: {
                private: true,
                professional: true,
            },
            brand: {
                autoscout24: true,
                motoscout24: true,
            },
        },
    });
};

export { changeLanguageLinkConfig, editUsersLinkConfig, getFavoritesLinkConfig, getLogoutLinkConfig, savedSearchesLinkConfig };
//# sourceMappingURL=user.js.map
