import{r as registerInstance,h}from"./index-CjTHbolG.js";var verdocsToggleCss=function(){return'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}'};var VerdocsToggle=function(){function e(e){registerInstance(this,e);this.selectedOption=0}e.prototype.componentWillLoad=function(){var e;console.log("verdocs-toggle componentWillLoad",this.options);this.selectedOption=((e=this.options)===null||e===void 0?void 0:e.defaultSelection)||0};e.prototype.render=function(){var e=this;return h("div",{key:"7485d894feb67041d4e21b393733508d07ef11fd",class:"container"},h("span",{key:"89511ad3f7b70c46c3981fef93816396e41eb717",class:"label"},"".concat(this.options.label,":")),h("div",{key:"090efe730dfc6dd43f521bc95da73b9554afef1d",class:"buttons"},this.options.buttons.map((function(o,t){return h("button",{id:o.id,key:o.id,innerHTML:o.icon,class:t===e.selectedOption?"selected":"",onClick:function(){console.log("clicked",t);e.selectedOption=t}})}))))};return e}();VerdocsToggle.style=verdocsToggleCss();export{VerdocsToggle as verdocs_toggle};
//# sourceMappingURL=verdocs-toggle.entry.js.map