// (C) 2021-2026 GoodData Corporation
import { eventGuard } from "./util.js";
/**
 * @internal
 */
export function richTextWidgetContentChanged(ctx, ref, content, correlationId) {
    return {
        type: "GDC.DASH/EVT.RICH_TEXT_WIDGET.CONTENT_CHANGED",
        ctx,
        correlationId,
        payload: {
            ref,
            content,
        },
    };
}
/**
 * Tests whether the provided object is an instance of {@link IDashboardRichTextWidgetContentChanged}.
 *
 * @param obj - object to test
 * @beta
 */
export const isDashboardRichTextWidgetContentChanged = eventGuard("GDC.DASH/EVT.RICH_TEXT_WIDGET.CONTENT_CHANGED");
/**
 * @internal
 */
export function richTextWidgetFilterSettingsChanged(ctx, ref, ignoredAttributeFilters, dateDatasetForFiltering, correlationId, ignoredDateFilters) {
    return {
        type: "GDC.DASH/EVT.RICH_TEXT_WIDGET.FILTER_SETTINGS_CHANGED",
        ctx,
        correlationId,
        payload: {
            ref,
            ignoredAttributeFilters,
            ignoredDateFilters,
            dateDatasetForFiltering,
        },
    };
}
/**
 * Tests whether the provided object is an instance of {@link IDashboardInsightWidgetFilterSettingsChanged}.
 *
 * @param obj - object to test
 * @beta
 */
export const isDashboardRichTextWidgetFilterSettingsChanged = eventGuard("GDC.DASH/EVT.RICH_TEXT_WIDGET.FILTER_SETTINGS_CHANGED");
//# sourceMappingURL=richText.js.map