import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2026 GoodData Corporation
import { AttributeFilterConfigurationButton, } from "@gooddata/sdk-ui-filters";
import { Button, UiTooltip } from "@gooddata/sdk-ui-kit";
/**
 * @internal
 */
export function CustomMeasureValueFilterDropdownActions({ isApplyDisabled, onApplyButtonClick, onCancelButtonClick, onConfigurationButtonClick, cancelText, applyText, applyDisabledTooltip, withoutApply, isConfigurationButtonVisible, }) {
    return (_jsxs("div", { className: "gd-measure-value-filter-dropdown-actions__next", children: [
            _jsx("div", { className: "gd-measure-value-filter-dropdown-actions-left-content__next", children: isConfigurationButtonVisible ? (_jsx(AttributeFilterConfigurationButton, { onConfiguration: onConfigurationButtonClick })) : null }), _jsxs("div", { className: "gd-measure-value-filter-dropdown-actions-right-content__next", children: [
                    _jsx(Button, { className: "gd-measure-value-filter-cancel-button__next gd-button-secondary gd-button-small cancel-button s-mvf-dropdown-cancel", onClick: onCancelButtonClick, value: cancelText, title: cancelText }), withoutApply ? null : (_jsx(UiTooltip, { content: applyDisabledTooltip, triggerBy: ["hover", "focus"], disabled: !isApplyDisabled || !applyDisabledTooltip, arrowPlacement: "left", optimalPlacement: true, anchor: _jsx(Button, { className: "gd-measure-value-filter-apply-button__next gd-button-action gd-button-small s-mvf-dropdown-apply", onClick: onApplyButtonClick, value: applyText, title: applyText, disabled: isApplyDisabled, describedByFromValidation: true }) }))] })
        ] }));
}
/**
 * @internal
 */
export function CustomConfigureMeasureValueFilterDropdownActions({ isSaveDisabled, onSaveButtonClick, onCancelButtonClick, cancelText, saveText, }) {
    return (_jsxs("div", { className: "gd-measure-value-filter-dropdown-actions__next", children: [
            _jsx("div", { className: "gd-measure-value-filter-dropdown-actions-left-content__next" }), _jsxs("div", { className: "gd-measure-value-filter-dropdown-actions-right-content__next", children: [
                    _jsx(Button, { className: "gd-measure-value-filter-cancel-button__next gd-button-secondary gd-button-small cancel-button s-mvf-dropdown-cancel", onClick: onCancelButtonClick, value: cancelText, title: cancelText }), _jsx(Button, { className: "gd-measure-value-filter-apply-button__next gd-button-action gd-button-small s-mvf-dropdown-apply", onClick: onSaveButtonClick, value: saveText, title: saveText, disabled: isSaveDisabled })
                ] })
        ] }));
}
