import { r as registerInstance, h } from './index-BIRwgFLv.js';

const verdocsToggleCss = "verdocs-toggle{font-family:\"Inter\", \"Barlow\", sans-serif}verdocs-toggle .container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;background-color:#f5f5fa}verdocs-toggle .label{font-size:24px;font-weight:700;color:#33354c;-ms-flex-item-align:center;align-self:center;margin-right:27px;font-family:sans-serif}verdocs-toggle .buttons{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}verdocs-toggle .buttons button{width:60px;height:60px;border:2px solid #654dcb;border-radius:5px;cursor:pointer}verdocs-toggle .buttons button:not(:last-child){margin-right:11px}verdocs-toggle .buttons svg{width:30px;height:30px}verdocs-toggle .buttons button:hover{background-color:#654dcb;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .buttons button:hover svg{fill:#f5f5fa;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .selected{background-color:#707ae5;-webkit-transition:0.25s;transition:0.25s}verdocs-toggle .selected svg{fill:#ffffff;-webkit-transition:0.25s;transition:0.25s}";

const VerdocsToggle = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
        this.selectedOption = 0;
    }
    componentWillLoad() {
        var _a;
        console.log('verdocs-toggle componentWillLoad', this.options);
        this.selectedOption = ((_a = this.options) === null || _a === void 0 ? void 0 : _a.defaultSelection) || 0;
    }
    render() {
        return (h("div", { key: '31aac06c36d64cec8c297593fbf81cbf53dba179', class: "container" }, h("span", { key: 'b289e9a9d8081c64542bdf8c1c98c315cef22a9a', class: "label" }, `${this.options.label}:`), h("div", { key: '5b6de07895d3c2f871d254dbfd6f7d2034128b77', class: "buttons" }, this.options.buttons.map((button, index) => (h("button", { id: button.id, key: button.id, innerHTML: button.icon, class: index === this.selectedOption ? 'selected' : '', onClick: () => {
                console.log('clicked', index);
                this.selectedOption = index;
            } }))))));
    }
};
VerdocsToggle.style = verdocsToggleCss;

export { VerdocsToggle as verdocs_toggle };
//# sourceMappingURL=verdocs-toggle.entry.js.map
