import{hh as b,hi as p,hj as f,hk as m,hl as l}from"./BC4hLSsA.js";import{n as d,c as v}from"./3Z1LeTmD.js";const h=b` button { border: none; background: transparent; height: 20px; padding: ${({spacing:t})=>t[2]}; column-gap: ${({spacing:t})=>t[1]}; border-radius: ${({borderRadius:t})=>t[1]}; padding: 0 ${({spacing:t})=>t[1]}; border-radius: ${({spacing:t})=>t[1]}; } /* -- Variants --------------------------------------------------------- */ button[data-variant='accent'] { color: ${({tokens:t})=>t.core.textAccentPrimary}; } button[data-variant='secondary'] { color: ${({tokens:t})=>t.theme.textSecondary}; } /* -- Focus states --------------------------------------------------- */ button:focus-visible:enabled { box-shadow: 0px 0px 0px 4px rgba(9, 136, 240, 0.2); } button[data-variant='accent']:focus-visible:enabled { background-color: ${({tokens:t})=>t.core.foregroundAccent010}; } button[data-variant='secondary']:focus-visible:enabled { background-color: ${({tokens:t})=>t.theme.foregroundSecondary}; } /* -- Hover & Active states ----------------------------------------------------------- */ button[data-variant='accent']:hover:enabled { background-color: ${({tokens:t})=>t.core.foregroundAccent010}; } button[data-variant='secondary']:hover:enabled { background-color: ${({tokens:t})=>t.theme.foregroundSecondary}; } button[data-variant='accent']:focus-visible { background-color: ${({tokens:t})=>t.core.foregroundAccent010}; } button[data-variant='secondary']:focus-visible { background-color: ${({tokens:t})=>t.theme.foregroundSecondary}; box-shadow: 0px 0px 0px 4px rgba(9, 136, 240, 0.2); } button[disabled] { opacity: 0.5; cursor: not-allowed; } `;var r=function(t,n,a,i){var c=arguments.length,e=c<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(t,n,a,i);else for(var u=t.length-1;u>=0;u--)(s=t[u])&&(e=(c<3?s(e):c>3?s(n,a,e):s(n,a))||e);return c>3&&e&&Object.defineProperty(n,a,e),e};const y={sm:"sm-medium",md:"md-medium"},g={accent:"accent-primary",secondary:"secondary"};let o=class extends m{constructor(){super(...arguments),this.size="md",this.disabled=!1,this.variant="accent",this.icon=void 0}render(){return l` `}iconTemplate(){return this.icon?l``:null}};o.styles=[p,f,h];r([d()],o.prototype,"size",void 0);r([d({type:Boolean})],o.prototype,"disabled",void 0);r([d()],o.prototype,"variant",void 0);r([d()],o.prototype,"icon",void 0);o=r([v("wui-link")],o);