import{r as registerInstance,c as createEvent,h}from"./index-08b73e9e.js";var styleCss=".sc-smoothly-trigger-h{display:block;border-style:solid;border-width:1px;border-radius:3px}[hidden].sc-smoothly-trigger-h{display:none}[disabled].sc-smoothly-trigger-h{opacity:0.5}button.sc-smoothly-trigger{border-color:transparent;background-color:transparent;padding:0.2em 0.3em;font-size:110%;font-weight:400}.sc-smoothly-trigger-h:not([processing]):not([disabled]):hover,.sc-smoothly-trigger-h:not([processing]):not([disabled]):focus,.sc-smoothly-trigger-h:not([processing]):not([disabled]):active{border-color:var(--smoothly-trigger-border)}[expand=fill].sc-smoothly-trigger-h>button.sc-smoothly-trigger,[expand=block].sc-smoothly-trigger-h>button.sc-smoothly-trigger{width:100%}[expand=fill].sc-smoothly-trigger-h{border-left:none;border-right:none}";var SmoothlyTrigger=function(){function t(t){registerInstance(this,t);this.trigger=createEvent(this,"trigger",7);this.disabled=false;this.type="button"}t.prototype.onClick=function(t){this.trigger.emit({name:this.name,value:this.value});t.stopPropagation();t.preventDefault()};t.prototype.render=function(){var t=this;var e;switch(this.type){case"link":e=this.disabled?h("slot",null):h("a",{onClick:function(e){return t.onClick(e)}},h("slot",null));break;case"button":e=h("button",{disabled:this.disabled,name:this.name},h("slot",null));break}return e};return t}();SmoothlyTrigger.style=styleCss;export{SmoothlyTrigger as smoothly_trigger};