import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import cx from "classnames";
import { FormattedMessage } from "react-intl";
import { Bubble, BubbleHoverTrigger } from "@gooddata/sdk-ui-kit";
import { ConfigurationPanelContent } from "./ConfigurationPanelContent.js";
import { messages } from "../../../locales.js";
import { BUBBLE_ARROW_OFFSET_X, BUBBLE_ARROW_OFFSET_Y, HIDE_DELAY_DEFAULT, SHOW_DELAY_DEFAULT, } from "../../constants/bubble.js";
import { ConfigSection } from "../configurationControls/ConfigSection.js";
import { ImageControl } from "../configurationControls/ImageControl.js";
import { RowHeightControl } from "../configurationControls/RowHeightControl.js";
import { TextWrappingControl } from "../configurationControls/TextWrappingControl.js";
import { VerticalAlignControl } from "../configurationControls/VerticalAlignControl.js";
export class RepeaterConfigurationPanel extends ConfigurationPanelContent {
    renderConfigurationPanel() {
        const { propertiesMeta, properties, pushData } = this.props;
        return (_jsxs(BubbleHoverTrigger, { showDelay: SHOW_DELAY_DEFAULT, hideDelay: HIDE_DELAY_DEFAULT, children: [_jsxs("div", { children: [this.renderColorSection(), this.renderInteractionsSection(), _jsxs(ConfigSection, { id: "canvas_section", title: messages["canvasTitle"].id, propertiesMeta: propertiesMeta, properties: properties, pushData: pushData, children: [_jsx(RowHeightControl, { pushData: pushData, properties: properties }), _jsx(VerticalAlignControl, { pushData: pushData, properties: properties }), _jsx(TextWrappingControl, { pushData: pushData, properties: properties }), _jsx(ImageControl, { pushData: pushData, properties: properties })] }), this.renderAdvancedSection()] }), _jsx(Bubble, { className: this.getBubbleClassNames(), arrowOffsets: { "tc bc": [BUBBLE_ARROW_OFFSET_X, BUBBLE_ARROW_OFFSET_Y] }, alignPoints: [{ align: "tc bc" }], children: _jsx(FormattedMessage, { id: "properties.config.not_applicable" }) })] }));
    }
    getBubbleClassNames() {
        return cx("bubble-primary", {
            invisible: true,
        });
    }
}
//# sourceMappingURL=RepeaterConfigurationPanel.js.map