import { r as registerInstance, d as createEvent, h } from './core-1db051ba.js';

const AccordionToggle = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
        this.anjAccordionToggle = createEvent(this, "anjAccordionToggle", 7);
    }
    render() {
        const label = this.expanded ? `Expand` : `Collapse`;
        const path = this.expanded
            ? 'M7.41 18.59L8.83 20 12 16.83 15.17 20l1.41-1.41L12 14l-4.59 4.59zm9.18-13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10l4.59-4.59z'
            : 'M12 5.83L15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9 12 5.83zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15 12 18.17z';
        return (h("anj-button", { ariaLabel: label, disabled: this.disabled, context: "icon", onClick: () => this.anjAccordionToggle.emit() }, h("svg", { slot: "icon-only", width: "24", height: "24", viewBox: "0 0 24 24" }, h("path", { d: path }))));
    }
};

export { AccordionToggle as anj_accordion_toggle };
