// (C) 2022-2026 GoodData Corporation
/**
 * @internal
 */
export function isDraggableInternalItemType(type) {
    return type === "internal-width-resizer" || type === "internal-height-resizer";
}
/**
 * @internal
 */
export function isAttributeFilterDraggableItem(item) {
    return item.type === "attributeFilter";
}
/**
 * @internal
 */
export function isDateFilterDraggableItem(item) {
    return item.type === "dateFilter";
}
/**
 * @internal
 */
export function isParameterDraggableItem(item) {
    return item.type === "parameter";
}
/**
 * @internal
 */
export function isMeasureValueFilterDraggableItem(item) {
    return item.type === "measureValueFilter";
}
/**
 * @internal
 */
export function isBaseDraggableLayoutItem(item) {
    return item.size?.gridWidth !== undefined && item.size?.gridHeight !== undefined;
}
/**
 * @internal
 */
export function isBaseDraggableMovingItem(item) {
    return (isBaseDraggableLayoutItem(item) &&
        (item.layoutPath !== undefined || (item.sectionIndex !== undefined && item.itemIndex !== undefined)));
}
/**
 * @internal
 */
export function isInsightDraggableItem(item) {
    return item.type === "insight";
}
/**
 * @internal
 */
export function isKpiDraggableItem(item) {
    return item.type === "kpi";
}
/**
 * @internal
 */
export function isRichTextDraggableItem(item) {
    return item.type === "richText";
}
/**
 * @internal
 */
export function isRichTextDraggableListItem(item) {
    return item.type === "richTextListItem";
}
/**
 * @internal
 */
export function isVisualizationSwitcherDraggableItem(item) {
    return item.type === "visualizationSwitcher";
}
/**
 * @internal
 */
export function isVisualizationSwitcherDraggableListItem(item) {
    return item.type === "visualizationSwitcherListItem";
}
/**
 * @internal
 */
export function isDashboardLayoutDraggableItem(item) {
    return item.type === "dashboardLayout";
}
/**
 * @internal
 */
export function isDashboardLayoutDraggableListItem(item) {
    return item.type === "dashboardLayoutListItem";
}
/**
 * @internal
 */
export function isAttributeFilterPlaceholderDraggableItem(item) {
    return item.type === "attributeFilter-placeholder";
}
/**
 * @internal
 */
export function isKpiPlaceholderDraggableItem(item) {
    return item.type === "kpi-placeholder";
}
/**
 * @internal
 */
export function isInsightPlaceholderDraggableItem(item) {
    return item.type === "insight-placeholder";
}
/**
 * @internal
 */
export function isInsightDraggableListItem(item) {
    return item.type === "insightListItem";
}
