import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
// (C) 2026 GoodData Corporation
import { ShortenedText } from "@gooddata/sdk-ui-kit";
const tooltipAlignPoints = [{ align: "cl cr", offset: { x: -20, y: 0 } }];
export function FilterConfigurationItemLabel({ className, uniqueKey, title, isApplied, isLoading, disabled, dataTestId, onChange, }) {
    return (_jsxs("label", { "data-testid": dataTestId, className: className, htmlFor: uniqueKey, children: [
            _jsx("input", { id: uniqueKey, type: "checkbox", className: "input-checkbox", checked: isApplied, disabled: disabled, onChange: (e) => onChange(e.target.checked) }), _jsx("span", { className: "input-label-text", children: _jsx(ShortenedText, { tooltipAlignPoints: tooltipAlignPoints, tagName: "span", className: "title", children: title }) }), isLoading ? _jsx("div", { className: "gd-spinner small" }) : null] }));
}
