import{i as c,r as g,e as h,a as w,b as u}from"./index-B6fu-u6K.js";import{n as d,c as x}from"./if-defined-D6swbWyQ.js";import"./index-DUZ-8KUm.js";import"./index-DmDFCnkv.js";import"./index-Bl7lS5oY.js";const m=c` :host { display: block; } :host > button, :host > wui-flex { gap: var(--wui-spacing-xxs); padding: var(--wui-spacing-xs); padding-right: var(--wui-spacing-1xs); height: 40px; border-radius: var(--wui-border-radius-l); background: var(--wui-color-gray-glass-002); border-width: 0px; box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002); } :host > button wui-image { width: 24px; height: 24px; border-radius: var(--wui-border-radius-s); box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010); } `;var l=function(o,t,r,s){var n=arguments.length,e=n<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,r):s,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(o,t,r,s);else for(var p=o.length-1;p>=0;p--)(a=o[p])&&(e=(n<3?a(e):n>3?a(t,r,e):a(t,r))||e);return n>3&&e&&Object.defineProperty(t,r,e),e};let i=class extends w{constructor(){super(...arguments),this.text="",this.loading=!1}render(){return this.loading?u` `:u` `}tokenTemplate(){return this.imageSrc?u``:u` `}};i.styles=[g,h,m];l([d()],i.prototype,"imageSrc",void 0);l([d()],i.prototype,"text",void 0);l([d({type:Boolean})],i.prototype,"loading",void 0);i=l([x("wui-token-button")],i);