// (C) 2020-2025 GoodData Corporation
import { isEmpty } from "lodash-es";
/**
 * @public
 */
export function isAnalyticalDashboard(dashboard) {
    return !isEmpty(dashboard) && dashboard.version === "2";
}
/**
 * @public
 */
export function isFilterContext(filterContext) {
    return !isEmpty(filterContext) && filterContext.version === "2";
}
/**
 * @alpha
 */
export function isFilterContextWithTab(filterContext) {
    return ((!isEmpty(filterContext) &&
        filterContext.version === "2" &&
        typeof filterContext.tabLocalIdentifier === "string") ||
        filterContext.tabLocalIdentifier === undefined);
}
/**
 * @public
 */
export function isDashboardPlugin(plugin) {
    return !isEmpty(plugin) && plugin.version === "2";
}
/**
 * @public
 */
export function isDashboardPluginLink(pluginLink) {
    return !isEmpty(pluginLink) && pluginLink.version === "2";
}
/**
 * @alpha
 */
export function isDashboardTab(tab) {
    return (!isEmpty(tab) &&
        typeof tab.localIdentifier === "string" &&
        typeof tab.title === "string" &&
        typeof tab.layout === "object" &&
        typeof tab.filterContextRef === "object");
}
//# sourceMappingURL=AnalyticalDashboardModelV2.js.map