import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2007-2026 GoodData Corporation
import { FormattedMessage } from "react-intl";
import { isInsightWidget } from "@gooddata/sdk-model";
import { Typography } from "@gooddata/sdk-ui-kit";
import { FilterConfiguration } from "../../common/configuration/FilterConfiguration.js";
import { InsightCrossFiltering } from "./InsightCrossFiltering.js";
import { InsightDateDataSetFilter } from "./InsightDateDataSetFilter.js";
export function InsightFilters({ widget }) {
    return (_jsxs("div", { className: "s-viz-filters-panel configuration-category", children: [
            _jsx(Typography, { tagName: "h3", className: "s-viz-filters-headline", children: _jsx(FormattedMessage, { id: "configurationPanel.filterBy" }) }), isInsightWidget(widget) ? _jsx(InsightDateDataSetFilter, { widget: widget }) : null, _jsx(FilterConfiguration, { widget: widget }), _jsx(InsightCrossFiltering, { widget: widget })
        ] }));
}
