// (C) 2024-2026 GoodData Corporation
import { isIdentifierRef } from "@gooddata/sdk-model";
export const getTelemetryEventForLimitingItem = (item) => {
    if (!isIdentifierRef(item)) {
        return "attributeFilterLimitParentFilterClicked";
    }
    switch (item.type) {
        case "measure":
            return "attributeFilterLimitMetricClicked";
        case "fact":
            return "attributeFilterLimitFactMetricClicked";
        case "attribute":
            return "attributeFilterLimitAttributeMetricClicked";
        default:
            return "attributeFilterLimitParentFilterClicked";
    }
};
//# sourceMappingURL=telemetryUtils.js.map