import{r as t,c as o,h as s}from"./p-890a2f7e.js";const r=class{constructor(s){t(this,s),this.trigger=o(this,"trigger",7),this.disabled=!1,this.type="button"}onClick(t){this.trigger.emit({name:this.name,value:this.value}),t.stopPropagation(),t.preventDefault()}render(){let t;switch(this.type){case"link":t=this.disabled?s("slot",null):s("a",{onClick:t=>this.onClick(t)},s("slot",null));break;case"button":t=s("button",{disabled:this.disabled,name:this.name},s("slot",null))}return t}};r.style=".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}";export{r as smoothly_trigger}