1import{__decorate as t}from"../node_modules/tslib/tslib.es6.js";import{css as i,LitElement as o,html as e}from"https://cdn.jsdelivr.net/gh/lit/dist@2/core/lit-core.min.js";import{property as n,customElement as r}from"https://cdn.skypack.dev/pin/lit@v2.5.0-jYRq0AKQogjUdUh7SCAE/mode=imports/optimized/lit/decorators.js";let l=class extends o{constructor(){super(...arguments),this.disabled=!1,this.eventName=""}render(){return e`
2      <button
3        @click="${()=>{window.dispatchEvent(new CustomEvent(this.eventName))}}"
4        class="lit-button"
5        ?disabled=${this.disabled}
6      >
7        <slot></slot>
8      </button>
9    `}};l.styles=i`
10    :host {
11      display: var(--lit-button-display, inline-block);
12      box-sizing: inherit;
13    }
14
15    :host(.block) {
16      --lit-button-display: block;
17      --lit-button-width: 100%;
18    }
19
20    .lit-button {
21      background-color: var(--lit-button-bg-color, transparent);
22      border: none;
23      border-radius: 0.25rem;
24      color: var(--lit-button-color, var(--white, #ffffff));
25      cursor: pointer;
26      font-weight: 400;
27      font-size: 1.2rem;
28      height: 2.5rem;
29      line-height: 1.5;
30      min-width: var(--lit-button-min-width, 10rem);
31      outline: 0;
32      padding: 0 var(--lit-button-padding-horizontal, 1rem);
33      position: relative;
34      transition: background-color 0.15s ease-in-out 0s;
35      text-align: center;
36      text-decoration: none;
37      text-transform: none;
38      user-select: none;
39      vertical-align: middle;
40      width: var(--lit-button-width, auto);
41    }
42    .lit-button-icon {
43      --lit-button-min-width: 5rem;
44      --lit-button-padding-horizontal: 0;
45    }
46
47    button[disabled],
48    button[disabled]:hover {
49      opacity: 0.65;
50      pointer-events: none;
51    }
52
53    button:focus::before {
54      content: '';
55      border-radius: 0.25rem;
56      border: 1px solid var(--white, #fff);
57      box-sizing: inherit;
58      display: block;
59      position: absolute;
60      height: calc(100% - 0.8rem);
61      top: 0.4rem;
62      left: 0.4rem;
63      visibility: visible;
64      width: calc(100% - 0.8rem);
65    }
66
67    :host(.primary) {
68      --lit-button-bg-color: var(--primary, #903d57);
69    }
70
71    :host(.primary) button:active,
72    :host(.primary) button:hover {
73      --lit-button-bg-color: var(--primary-active, #0062cc);
74    }
75
76    :host(.icon) {
77      --lit-button-min-width: 5rem;
78      --lit-button-padding-horizontal: 0;
79    }
80  `,t([n()],l.prototype,"disabled",void 0),t([n()],l.prototype,"eventName",void 0),l=t([r("ns-customize-button")],l);export{l as CustomizeButton};
81